Remove -lpthread -ldl and add -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
256458bc
DE
12013-11-29 Doug Evans <xdje42@gmail.com>
2
7b2d3abf
DE
3 * python/py-auto-load.c (source_section_scripts): Move comment to
4 more relevant location.
5
256458bc
DE
6 Whitespace cleanup.
7 * python/py-breakpoint.c: Remove trailing whitespace.
8 * python/py-cmd.c: Ditto.
9 * python/py-evts.c: Ditto.
10 * python/py-finishbreakpoint.c: Ditto.
11 * python/py-frame.c: Ditto.
12 * python/py-function.c: Ditto.
13 * python/py-inferior.c: Ditto.
14 * python/py-infthread.c: Ditto.
15 * python/py-param.c: Ditto.
16 * python/py-prettyprint.c: Ditto.
17 * python/py-symbol.c: Ditto.
18 * python/py-type.c: Ditto.
19 * python/py-utils.c: Ditto.
20 * python/py-value.c: Ditto.
21 * python/python-internal.h: Ditto.
22 * python/python.c: Ditto.
23
20e1ca3b
PA
242013-11-29 Pedro Alves <palves@redhat.com>
25
26 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
27
8b4f3082
PA
282013-11-29 Pedro Alves <palves@redhat.com>
29
30 * breakpoint.c (build_target_condition_list): Release previous
31 conditions.
32 (build_target_command_list): Release previous commands.
33 (bp_location_dtor): Release target conditions and commands.
34 * remote.c (remote_add_target_side_condition): Don't release
35 conditions.
36 (remote_add_target_side_commands): Don't release commands.
37
9f713294
YQ
382013-11-29 Yao Qi <yao@codesourcery.com>
39 Pedro Alves <palves@redhat.com>
40
41 * dcache.c (dcache_read_line): Use current_target.beneath
42 instead of &current_target.
43 * target.c (memory_xfer_partial_1): Factor code out to ...
44 (raw_memory_xfer_partial): ... it. New function.
45 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
46 is TARGET_OBJECT_RAW_MEMORY.
47
4cb0213d
DE
482013-11-28 Doug Evans <xdje42@gmail.com>
49
50 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
51 breakpoint_object. All uses updated.
52 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
53 breakpoint_object. All uses updated.
54 * python.c (*): All uses of breakpoint_object updated.
55 * python.h (*): All uses of breakpoint_object updated.
56 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
57 * python/py-finishbreakpoint.c (*): Ditto.
58
d344e670
DE
592013-11-28 Doug Evans <xdje42@gmail.com>
60
d729aae0 61 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
62 * configure: Regenerate.
63
eebc056c
AB
642013-11-28 Andrew Burgess <aburgess@broadcom.com>
65 Pedro Alves <palves@redhat.com>
66
67 * valprint.c (value_check_printable): If the value is entirely
68 unavailable, print a single "<unavailable>" instead of printing
69 all subfields.
70
a7300869
PA
712013-11-28 Pedro Alves <palves@redhat.com>
72
73 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
74 Add "set debug frame" output.
75 (frame_stop_reason_symbol_string): New function.
76
50fd528a
PA
772013-11-28 Pedro Alves <palves@redhat.com>
78
79 * frame-unwind.c (default_frame_unwind_stop_reason): Return
80 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
81 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
82
5de51581
PA
832013-11-28 Pedro Alves <palves@redhat.com>
84
85 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
86 set the unwind stop reason to UNWIND_OUTERMOST, not
87 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
88
739cb10c
PA
892013-11-28 Pedro Alves <palves@redhat.com>
90
91 * frame.c (frame_unwind_register): Say the register was "not
92 saved" instead of "optimized out".
93
514c0aa6 942013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 95
514c0aa6 96 PR 16152
92a021de 97 * configure: Rebuild.
514c0aa6 98 * configure.ac: Tighten cygwin detection check.
92a021de 99
908fa2aa
PA
1002013-11-27 Pedro Alves <palves@redhat.com>
101
102 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
103 register in the previous frame's arch.
104
6bd273ae
PA
1052013-11-27 Pedro Alves <palves@redhat.com>
106
107 * frame-unwind.c (frame_unwind_got_optimized): Return
108 an lval_register value instead of a not_lval value.
109
f6c01fc5
AB
1102013-11-27 Andrew Burgess <aburgess@broadcom.com>
111
112 * frame.c: Include "valprint.h".
113 (frame_unwind_register_value): Use value_optimized_out.
114 * value.c (value_fetch_lazy): Likewise.
115
4f14910f
AB
1162013-11-26 Andrew Burgess <aburgess@broadcom.com>
117
118 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
119
15859968
TT
1202013-11-26 Tom Tromey <tromey@redhat.com>
121
122 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
123 2013-11-22.
124
244ec0da
WT
1252013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
126
127 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
128 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
129 (HAS_MPX): New macro.
130 (HAS_AVX): New macro.
131 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
132
f7e3ecae
KS
1332013-11-25 Keith Seitz <keiths@redhat.com>
134
135 PR c++/14819
136 * c-exp.y (classify_inner_name): If no matching symbol was
137 found, try looking up the token as a base class.
138 Likewise if a constructor was found.
139 * cp-namespace.c (find_type_baseclass_by_name): New function.
140 * cp-support.h (find_type_baseclass_by_name): Declare.
141 * valops.c (value_struct_elt_for_reference): If we get
142 a non-static field, try to get a value based on the
143 current instance, if any.
144
283f7163
YQ
1452013-11-24 Yao Qi <yao@codesourcery.com>
146
147 * disasm.c (dis_asm_read_memory): Call target_read_code
148 instead of target_read_memory.
149
29453a14
YQ
1502013-11-24 Yao Qi <yao@codesourcery.com>
151
152 * NEWS: Add note on new "set code-cache" option.
153 * target-dcache.c (code_cache_enabled_1): New variable.
154 (code_cache_enabled): New variable.
155 (show_code_cache, set_code_cache): New function.
156 (code_cache_enabled_p): New function.
157 (_initialize_target_dcache): Register command.
158 * target-dcache.h (code_cache_enabled_p): Declare.
159 * target.c (memory_xfer_partial_1):Handle
160 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
161 (target_read_code): New function.
162 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
163 New.
164 (target_read_code): Declare.
165
0fb14d8f
YQ
1662013-11-24 Yao Qi <yao@codesourcery.com>
167
168 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
169 (stack_cache_enabled_1): ... this. New variable.
170 (stack_cache_enabled_p): Rename to ...
171 (stack_cache_enabled): ... this. New variable.
172 (set_stack_cache_enabled_p): Rename to ...
173 (set_stack_cache): ... this. Update caller.
174 (show_stack_cache_enabled_p): Rename to ...
175 (show_stack_cache): ... this. Update caller.
176 (stack_cache_enabled): Rename to ...
177 (stack_cache_enabled_p): ... this. Update caller.
178 (_initialize_target_dcache): Replace "data cache" with
179 "target memory cache".
180 * target-dcache.h (stack_cache_enabled): Remove declaration.
181 (stack_cache_enabled_p): Add declaration.
182
a12361b9
DE
1832013-11-23 Doug Evans <xdje42@gmail.com>
184
185 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
186 superfluous.
187
1e1d6920
DE
1882013-11-23 Doug Evans <xdje42@gmail.com>
189
190 * python/py-frame.c (frapy_block): Fix error message text.
191
1e9c71b8
DE
1922013-11-23 Doug Evans <xdje42@gmail.com>
193
194 * cli/cli-script.c (multi_line_command_p): New function.
195 (recurse_read_control_structure, read_command_lines_1): Call it.
196 (execute_control_command): Consistently have a blank line between
197 each case.
198
f380848e
SA
1992013-11-22 Sterling Augustine <saugustine@google.com>
200
38e1f2a7 201 PR gdb/16196:
f380848e
SA
202 * valprint.c (read_string): Set new variable fetchlen based on
203 fetchlimit and size. Use it in call to partial_memory_read.
204 Update comment.
205
da2b2fdf
TT
2062013-11-22 Tom Tromey <tromey@redhat.com>
207
208 PR backtrace/16155:
209 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
210 the return address column is unspecified.
211
6eeee81c
TT
2122013-11-22 Tom Tromey <tromey@redhat.com>
213 Pedro Alves <palves@redhat.com>
214
215 PR backtrace/16155
216 * value.c (value_fetch_lazy): Internal error if
217 get_frame_register_value returns the same register.
218
194cca41
PA
2192013-11-22 Pedro Alves <palves@redhat.com>
220 Tom Tromey <tromey@redhat.com>
221
222 * frame.c (frame_stash_add): Now returns whether a frame with the
223 same ID was already known.
224 (compute_frame_id): New function, factored out from get_frame_id.
225 (get_frame_id): No longer lazilly compute the frame id here.
226 (get_prev_frame_if_no_cycle): New function. Detects wider stack
227 cycles.
228 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
229 and checking for stack cycles here.
230
33f8fe58
PA
2312013-11-22 Pedro Alves <palves@redhat.com>
232
233 PR 16155
234 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
235 this frame and the new previous frame, not between this frame and
236 the next frame.
237
1ec56e88
PA
2382013-11-22 Pedro Alves <palves@redhat.com>
239
240 PR 16155
241 * dwarf2-frame.c (struct dwarf2_frame_cache)
242 <checked_tailcall_bottom, entry_cfa_sp_offset,
243 entry_cfa_sp_offset_p>: New fields.
244 (dwarf2_frame_cache): Adjust to use the new cache fields instead
245 of locals. Don't call dwarf2_tailcall_sniffer_first here.
246 (dwarf2_frame_prev_register): Call it here, but only once.
247
ca092b61
DE
2482013-11-21 Doug Evans <xdje42@gmail.com>
249
250 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
251 (type_equality_entry): Move here from python/py-type.c.
252 (type_equality_entry_d): Ditto.
253 (compare_maybe_null_strings, check_types_equal): Ditto.
254 (check_types_worklist, types_deeply_equal): Ditto.
255 * gdbtypes.h (types_deeply_equal): Declare.
256 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
257 (typy_richcompare): Update.
258
7c245c24
JB
2592013-11-20 Joel Brobecker <brobecker@adacore.com>
260
261 * python/py-value.c (is_intlike): Delete.
262 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
263 by use of is_integral_type.
264 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
265 by use of is_integral_type and check for TYPE_CODE_PTR.
266
8986e351
TT
2672013-11-20 Tom Tromey <tromey@redhat.com>
268
269 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
270 strerror module.
271 * gnulib/aclocal.m4: Update.
272 * gnulib/config.in: Update.
273 * gnulib/configure: Update.
274 * gnulib/import/Makefile.am: Update.
275 * gnulib/import/Makefile.in: Update.
276 * gnulib/import/errno.in.h: Remove.
277 * gnulib/import/intprops.h: Remove.
278 * gnulib/import/m4/errno_h.m4: Remove.
279 * gnulib/import/m4/gnulib-cache.m4: Update.
280 * gnulib/import/m4/gnulib-comp.m4: Update.
281 * gnulib/import/m4/strerror.m4: Remove.
282 * gnulib/import/m4/sys_socket_h.m4: Remove.
283 * gnulib/import/strerror-override.c: Remove.
284 * gnulib/import/strerror-override.h: Remove.
285 * gnulib/import/strerror.c: Remove.
286 * gnulib/update-gnulib.sh: Update.
287
6b1141e3
YQ
2882013-11-20 Yao Qi <yao@codesourcery.com>
289
290 * target-dcache.c (target_dcache_get_or_init): Call
291 set_address_space_data if 'dcache' is NULL.
292
60650f2e
WT
2932013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
294
295 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
296
09748966
WT
2972013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
298
299 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
300 * data-directory/Makefile.in: Copy bond_register.py to the right path
301 to be initialized at gdb startup.
09748966 302
e43e105e
WT
3032013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
304
305 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
306 Add MPX registers.
307 (amd64_linux_read_description): Add initialization for MPX and
308 AVX independently.
309 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
310 (amd64_linux_gregset_reg_offset): Add MPX registers.
311 (amd64_linux_core_read_description): Add initialization for MPX
312 registers.
313 (_initialize_amd64_linux_tdep): Initialize MPX targets.
314 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
315 register on the list.
316 (tdesc_amd64_mpx_linux) Add new target for MPX.
317 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
318 (amd64_mpx_names): MPX register names.
319 (amd64_init_abi): Add MPX register while initializing the ABI.
320 (_initialize_amd64_tdep): Initialize MPX targets.
321 * amd64-tdep.h (amd64_regnum): Add MPX registers.
322 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
323
1dbcd68c
WT
3242013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
325
326 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
327 registers on the range of registers to be read from
328 xsave buffer.
329 (i386_linux_read_description): Add case for MPX.
330 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
331 (i386_linux_gregset_reg_offset): Add MPX registers.
332 (i386_linux_core_read_description): Initialize also MPX.
333 (_initialize_i386_linux_tdep): Add mpx initialization.
334 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
335 mpx_register_names.
336 (i386_regnum): Add MPX registers.
337 (I386_MPX_NUM_REGS): New macro.
338 (i386_bnd_regnum_p): New function.
339 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
340 number of registers to be the number of BNDSTATUS.
341 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
342 * i386-tdep.c: Include features/i386/i386-mpx.c.
343 (i386_mpx_names): Add MPX register names array.
344 (i386_bnd_names): Add bnd pseudo register names array.
345 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
346 registers.
347 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
348 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
349 registers.
350 (i386_bnd_type): New function.
351 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
352 register types.
353 (i386_pseudo_register_read_into_value): Add bnd case.
354 (i386_pseudo_register_write): Add bnd pseudo registers.
355 (i386_register_reggroup_p): Add MPX register to the group all.
356 (i386_validate_tdesc_p): Add MPX to the target description
357 validation.
358 (i386_pseudo_register_name): Add bnd pseudo registers.
359 (i386_gdbarch_init): Add MPX for architecture initialization.
360 (_initia_initialize_i386_tdep): Add mpx initialization.
361 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
362 XSAVE buffer.
363 (XSAVE_MPX_ADDR): New macro.
364 (i387_supply_xsave): Add MPX case.
365 (i387_collect_xsave): Add MPX case.
366 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
367 (I387_BNDCFGU_REGNUM): New macro.
368 (I387_NUM_MPX_REGS): New macro.
369 (I387_NUM_BND_REGS): New macro.
370 (I387_NUM_MPX_CTRL_REGS): New macro.
371 (I387_MPXEND_REGNUM): New macro.
372 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
373 (I386_XSTATE_BNDCFG): Likewise.
374 (I386_XSTATE_MPX_MASK): Likewise.
375 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
376 (I386_XSTATE_BNDREGS_SIZE): New macro.
377 (I386_XSTATE_BNDCFG_SIZE): Likewise.
378 (I386_XSTATE_SIZE): Adapt for MPX.
379 (I386_XSTATE_MAX_SIZE): Likewise.
380
ccc42043
WT
3812013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
382
383 * features/i386/Makefile: Adapts for using MPX registers.
384 * features/i386/32bit-mpx.xml: New file.
385 * features/i386/64bit-mpx.xml: Likewise.
386 * features/i386/amd64-mpx-linux.c: Likewise.
387 * features/i386/amd64-mpx-linux.xml: Likewise.
388 * features/i386/amd64-mpx.c: Likewise.
389 * features/i386/amd64-mpx.xml: Likewise.
390 * features/i386/i386-mpx-linux.c: Likewise.
391 * features/i386/i386-mpx-linux.xml: Likewise.
392 * features/i386/i386-mpx.c: Likewise.
393 * features/i386/i386-mpx.xml: Likewise.
394 * regformats/i386/amd64-mpx-linux.dat: New file.
395 * regformats/i386/amd64-mpx.dat: Likewise.
396 * regformats/i386/i386-mpx-linux.dat: Likewise.
397 * regformats/i386/i386-mpx.dat: Likewise.
398
57803a3c
WT
3992013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
400
401 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
402 Modified logic of creating a bitfield to be in sync with
403 tdesc_gdb_type.
404
2b59118e
WN
4052013-11-20 Will Newton <will.newton@linaro.org>
406
407 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
408 error message.
409
b26dfc9a
YQ
4102013-11-20 Yao Qi <yao@codesourcery.com>
411
412 * progspace.h (struct address_space_data): Declare.
413 * target-dcache.c: Include "progspace.h".
414 (target_dache): Remove.
415 (target_dcache_aspace_key): New.
416 (target_dcache_cleanup): New function.
417 (target_dcache_init_p): Get data through
418 target_dcache_aspace_key.
419 (target_dcache_invalidate): Likewise.
420 (target_dcache_get): Likewise.
421 (target_dcache_get_or_init): Likewise.
422 (_initialize_target_dcache): Initialize
423 target_dcache_aspace_key.
424
3a8356ff
YQ
4252013-11-20 Yao Qi <yao@codesourcery.com>
426
427 * progspace.c (struct address_space): Update comments.
428 <REGISTRY_FIELDS>: New fields.
429 DEFINE_REGISTRY for address_space.
430 (new_address_space): Call address_space_alloc_data.
431 (free_address_space): Call address_space_free_data.
432 * progspace.h: Use DECLARE_REGISTRY.
433
68c765e2
YQ
4342013-11-20 Yao Qi <yao@codesourcery.com>
435
436 * Makefile.in (SFILES):Add target-dcache.c.
437 (HFILES_NO_SRCDIR): Add target-dcache.h.
438 (COMMON_OBS): Add target-dcache.o.
439 * dcache.c: Remove inclusion to "target.h". Include
440 "target-dcache.h".
441 * memattr.c: Include "target-dcache.h".
442 * top.c: Likewise.
443 * tracepoint.c: Likewise.
444 * target.c: (stack_cache_enabled_p_1): Move to
445 target-dcache.c.
446 (stack_cache_enabled_p): Likewise.
447 (set_stack_cache_enabled_p): Likewise.
448 (show_stack_cache_enabled_p): Likewise.
449 (target_dcache, target_dcache_init_p): Likewise.
450 (target_dcache_invalidate): Likewise.
451 (target_dcache_get, target_dcache_get_or_init): Likewise.
452 (memory_xfer_partial_1): Call function stack_cache_enabled.
453 (initialize_target): Move code to target-dcache.c.
454 * target.h (target_dcache_invalidate): Move to
455 target-dcache.h.
456 (target_dcache_get): Likewise.
457 * target-dcache.c: New.
458 * target-dcache.h: New.
459
f2de9785
YQ
4602013-11-20 Yao Qi <yao@codesourcery.com>
461
462 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
463 it is initialized.
464
2a2f9fe4
YQ
4652013-11-20 Yao Qi <yao@codesourcery.com>
466
467 * dcache.c (last_cache): Remove.
468 (dcache_free, dcache_init): Update.
469 (dcache_update):
470 (dcache_print_line): Add parameter 'dcache'. Replace
471 'target_dcache' with 'dcache'.
472 (dcache_info): Move code to dcache_info_1. Call
473 'dcache_info_1'.
474 (dcache_info_1): New function.
475 (set_dcache_size): Call target_dcache_invalidate.
476 (set_dcache_line_size): Call target_dcache_invalidate.
477 * target.c (target_dcache_init_p): New function.
478 (target_dcache_invalidate): Check target_dcache_init_p first.
479 (target_dcache_get, target_dcache_get_or_init): New function.
480 (memory_xfer_partial_1): Adjust.
481 (initialize_target): Don't initialize 'target_dcache'.
482 * target.h (struct dcache_struct): Declare.
483 (target_dcache_get): Declare.
484
8ab91b96
YQ
4852013-11-19 Yao Qi <yao@codesourcery.com>
486
487 * varobj.c (varobj_get_type): Fix typo.
488
df7752b0
JB
4892013-11-19 Joel Brobecker <brobecker@adacore.com>
490
491 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
492
4a0a886a
JB
4932013-11-19 Joel Brobecker <brobecker@adacore.com>
494
495 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
496 "stat.h".
497
53ce3c39
TT
4982013-11-18 Tom Tromey <tromey@redhat.com>
499
500 * common/gdb_stat.h: Remove.
501 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
502 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
503 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
504 * corefile.c: Use sys/stat.h, not gdb_stat.h.
505 * ctf.c: Use sys/stat.h, not gdb_stat.h.
506 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
507 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
508 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
509 * exec.c: Use sys/stat.h, not gdb_stat.h.
510 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
511 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
512 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
513 * jit.c: Use sys/stat.h, not gdb_stat.h.
514 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
515 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
516 * main.c: Use sys/stat.h, not gdb_stat.h.
517 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
518 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
519 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
520 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
521 * procfs.c: Use sys/stat.h, not gdb_stat.h.
522 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
523 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
524 * remote.c: Use sys/stat.h, not gdb_stat.h.
525 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
526 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
527 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
528 * source.c: Use sys/stat.h, not gdb_stat.h.
529 * symfile.c: Use sys/stat.h, not gdb_stat.h.
530 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
531 * symtab.c: Use sys/stat.h, not gdb_stat.h.
532 * top.c: Use sys/stat.h, not gdb_stat.h.
533 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
534
09607c9e
TT
5352013-11-18 Tom Tromey <tromey@redhat.com>
536
537 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
538 sys_stat.
539 * gnulib/aclocal.m4: Update.
540 * gnulib/config.in: Update.
541 * gnulib/configure: Update.
542 * gnulib/import/Makefile.am: Update.
543 * gnulib/import/Makefile.in: Update.
544 * gnulib/import/m4/gnulib-cache.m4: Update.
545 * gnulib/import/m4/gnulib-comp.m4: Update.
546 * gnulib/import/m4/sys_stat_h.m4: New.
547 * gnulib/import/m4/time_h.m4: New.
548 * gnulib/import/sys_stat.in.h: New.
549 * gnulib/import/time.in.h: New.
550
4ff70b84
TT
5512013-11-18 Tom Tromey <tromey@redhat.com>
552
553 * configure: Rebuild.
554 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
555
3447c057
TT
5562013-11-18 Tom Tromey <tromey@redhat.com>
557
558 * configure: Rebuild.
559 * configure.ac: Don't check for unistd.h.
560
0080a2f6
TT
5612013-11-18 Tom Tromey <tromey@redhat.com>
562
563 * configure: Rebuild.
564 * configure.ac: Don't check for stdlib.h
565 * defs.h: Include stdlib.h unconditionally.
566
161d1bec
TT
5672013-11-18 Tom Tromey <tromey@redhat.com>
568
569 * config.in: Rebuild.
570 * configure: Rebuild.
571 * configure.ac: Don't check for stddef.h.
572 * defs.h: Unconditionally include stddef.h. Remove duplicate
573 inclusion.
574
2978b111
TT
5752013-11-18 Tom Tromey <tromey@redhat.com>
576
577 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
578 * common/gdb_dirent.h: Remove.
579 * common/filestuff.c: Use dirent.h.
580 * common/linux-osdata.c: Use dirent.h.
581 (NAMELEN): Define.
582 * config.in: Rebuild.
583 * configure: Rebuild.
584 * configure.ac: Don't use AC_HEADER_DIRENT.
585 * linux-fork.c: Use dirent.h
586 * linux-nat.c: Use dirent.h.
587 * nto-procfs.c: Use dirent.h.
588 * procfs.c: Use dirent.h.
589
e26b6bb0
TT
5902013-11-18 Tom Tromey <tromey@redhat.com>
591
592 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
593 * gnulib/aclocal.m4: Update.
594 * gnulib/config.in: Update.
595 * gnulib/configure: Update.
596 * gnulib/import/Makefile.am: Update.
597 * gnulib/import/Makefile.in: Update.
598 * gnulib/import/dirent.in.h: New.
599 * gnulib/import/m4/dirent_h.m4: New.
600 * gnulib/import/m4/gnulib-cache.m4: Update.
601 * gnulib/import/m4/gnulib-comp.m4: Update.
602
a3d08894
TT
6032013-11-18 Tom Tromey <tromey@redhat.com>
604
605 * configure: Rebuild.
606 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
607 strings.h.
608
0e9f083f
TT
6092013-11-18 Tom Tromey <tromey@redhat.com>
610
611 * common/gdb_string.h: Remove.
612 * aarch64-tdep.c: Use string.h, not gdb_string.h.
613 * ada-exp.y: Use string.h, not gdb_string.h.
614 * ada-lang.c: Use string.h, not gdb_string.h.
615 * ada-lex.l: Use string.h, not gdb_string.h.
616 * ada-typeprint.c: Use string.h, not gdb_string.h.
617 * ada-valprint.c: Use string.h, not gdb_string.h.
618 * aix-thread.c: Use string.h, not gdb_string.h.
619 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
620 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
621 * alpha-nat.c: Use string.h, not gdb_string.h.
622 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
623 * alpha-tdep.c: Use string.h, not gdb_string.h.
624 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
625 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
626 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
627 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
628 * amd64-nat.c: Use string.h, not gdb_string.h.
629 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
630 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
631 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
632 * arch-utils.c: Use string.h, not gdb_string.h.
633 * arm-linux-nat.c: Use string.h, not gdb_string.h.
634 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
635 * arm-tdep.c: Use string.h, not gdb_string.h.
636 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
637 * armbsd-tdep.c: Use string.h, not gdb_string.h.
638 * armnbsd-nat.c: Use string.h, not gdb_string.h.
639 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
640 * armobsd-tdep.c: Use string.h, not gdb_string.h.
641 * avr-tdep.c: Use string.h, not gdb_string.h.
642 * ax-gdb.c: Use string.h, not gdb_string.h.
643 * ax-general.c: Use string.h, not gdb_string.h.
644 * bcache.c: Use string.h, not gdb_string.h.
645 * bfin-tdep.c: Use string.h, not gdb_string.h.
646 * breakpoint.c: Use string.h, not gdb_string.h.
647 * build-id.c: Use string.h, not gdb_string.h.
648 * buildsym.c: Use string.h, not gdb_string.h.
649 * c-exp.y: Use string.h, not gdb_string.h.
650 * c-lang.c: Use string.h, not gdb_string.h.
651 * c-typeprint.c: Use string.h, not gdb_string.h.
652 * c-valprint.c: Use string.h, not gdb_string.h.
653 * charset.c: Use string.h, not gdb_string.h.
654 * cli-out.c: Use string.h, not gdb_string.h.
655 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
656 * cli/cli-decode.c: Use string.h, not gdb_string.h.
657 * cli/cli-dump.c: Use string.h, not gdb_string.h.
658 * cli/cli-interp.c: Use string.h, not gdb_string.h.
659 * cli/cli-logging.c: Use string.h, not gdb_string.h.
660 * cli/cli-script.c: Use string.h, not gdb_string.h.
661 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
662 * cli/cli-utils.c: Use string.h, not gdb_string.h.
663 * coffread.c: Use string.h, not gdb_string.h.
664 * common/common-utils.c: Use string.h, not gdb_string.h.
665 * common/filestuff.c: Use string.h, not gdb_string.h.
666 * common/linux-procfs.c: Use string.h, not gdb_string.h.
667 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
668 * common/signals.c: Use string.h, not gdb_string.h.
669 * common/vec.h: Use string.h, not gdb_string.h.
670 * core-regset.c: Use string.h, not gdb_string.h.
671 * corefile.c: Use string.h, not gdb_string.h.
672 * corelow.c: Use string.h, not gdb_string.h.
673 * cp-abi.c: Use string.h, not gdb_string.h.
674 * cp-support.c: Use string.h, not gdb_string.h.
675 * cp-valprint.c: Use string.h, not gdb_string.h.
676 * cris-tdep.c: Use string.h, not gdb_string.h.
677 * d-lang.c: Use string.h, not gdb_string.h.
678 * dbxread.c: Use string.h, not gdb_string.h.
679 * dcache.c: Use string.h, not gdb_string.h.
680 * demangle.c: Use string.h, not gdb_string.h.
681 * dicos-tdep.c: Use string.h, not gdb_string.h.
682 * disasm.c: Use string.h, not gdb_string.h.
683 * doublest.c: Use string.h, not gdb_string.h.
684 * dsrec.c: Use string.h, not gdb_string.h.
685 * dummy-frame.c: Use string.h, not gdb_string.h.
686 * dwarf2-frame.c: Use string.h, not gdb_string.h.
687 * dwarf2loc.c: Use string.h, not gdb_string.h.
688 * dwarf2read.c: Use string.h, not gdb_string.h.
689 * elfread.c: Use string.h, not gdb_string.h.
690 * environ.c: Use string.h, not gdb_string.h.
691 * eval.c: Use string.h, not gdb_string.h.
692 * event-loop.c: Use string.h, not gdb_string.h.
693 * exceptions.c: Use string.h, not gdb_string.h.
694 * exec.c: Use string.h, not gdb_string.h.
695 * expprint.c: Use string.h, not gdb_string.h.
696 * f-exp.y: Use string.h, not gdb_string.h.
697 * f-lang.c: Use string.h, not gdb_string.h.
698 * f-typeprint.c: Use string.h, not gdb_string.h.
699 * f-valprint.c: Use string.h, not gdb_string.h.
700 * fbsd-nat.c: Use string.h, not gdb_string.h.
701 * findcmd.c: Use string.h, not gdb_string.h.
702 * findvar.c: Use string.h, not gdb_string.h.
703 * fork-child.c: Use string.h, not gdb_string.h.
704 * frame.c: Use string.h, not gdb_string.h.
705 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
706 * frv-tdep.c: Use string.h, not gdb_string.h.
707 * gdb.c: Use string.h, not gdb_string.h.
708 * gdb_bfd.c: Use string.h, not gdb_string.h.
709 * gdbarch.c: Use string.h, not gdb_string.h.
710 * gdbtypes.c: Use string.h, not gdb_string.h.
711 * gnu-nat.c: Use string.h, not gdb_string.h.
712 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
713 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
714 * go-exp.y: Use string.h, not gdb_string.h.
715 * go-lang.c: Use string.h, not gdb_string.h.
716 * go32-nat.c: Use string.h, not gdb_string.h.
717 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
718 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
719 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
720 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
721 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
722 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
723 * i386-linux-nat.c: Use string.h, not gdb_string.h.
724 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
725 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
726 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
727 * i386-tdep.c: Use string.h, not gdb_string.h.
728 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
729 * i386gnu-nat.c: Use string.h, not gdb_string.h.
730 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
731 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
732 * i387-tdep.c: Use string.h, not gdb_string.h.
733 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
734 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
735 * inf-child.c: Use string.h, not gdb_string.h.
736 * inf-ptrace.c: Use string.h, not gdb_string.h.
737 * inf-ttrace.c: Use string.h, not gdb_string.h.
738 * infcall.c: Use string.h, not gdb_string.h.
739 * infcmd.c: Use string.h, not gdb_string.h.
740 * inflow.c: Use string.h, not gdb_string.h.
741 * infrun.c: Use string.h, not gdb_string.h.
742 * interps.c: Use string.h, not gdb_string.h.
743 * iq2000-tdep.c: Use string.h, not gdb_string.h.
744 * irix5-nat.c: Use string.h, not gdb_string.h.
745 * jv-exp.y: Use string.h, not gdb_string.h.
746 * jv-lang.c: Use string.h, not gdb_string.h.
747 * jv-typeprint.c: Use string.h, not gdb_string.h.
748 * jv-valprint.c: Use string.h, not gdb_string.h.
749 * language.c: Use string.h, not gdb_string.h.
750 * linux-fork.c: Use string.h, not gdb_string.h.
751 * linux-nat.c: Use string.h, not gdb_string.h.
752 * lm32-tdep.c: Use string.h, not gdb_string.h.
753 * m2-exp.y: Use string.h, not gdb_string.h.
754 * m2-typeprint.c: Use string.h, not gdb_string.h.
755 * m32c-tdep.c: Use string.h, not gdb_string.h.
756 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
757 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
758 * m32r-rom.c: Use string.h, not gdb_string.h.
759 * m32r-tdep.c: Use string.h, not gdb_string.h.
760 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
761 * m68k-tdep.c: Use string.h, not gdb_string.h.
762 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
763 * m68klinux-nat.c: Use string.h, not gdb_string.h.
764 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
765 * m88k-tdep.c: Use string.h, not gdb_string.h.
766 * macrocmd.c: Use string.h, not gdb_string.h.
767 * main.c: Use string.h, not gdb_string.h.
768 * mdebugread.c: Use string.h, not gdb_string.h.
769 * mem-break.c: Use string.h, not gdb_string.h.
770 * memattr.c: Use string.h, not gdb_string.h.
771 * memory-map.c: Use string.h, not gdb_string.h.
772 * mep-tdep.c: Use string.h, not gdb_string.h.
773 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
774 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
775 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
776 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
777 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
778 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
779 * mi/mi-console.c: Use string.h, not gdb_string.h.
780 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
781 * mi/mi-interp.c: Use string.h, not gdb_string.h.
782 * mi/mi-main.c: Use string.h, not gdb_string.h.
783 * mi/mi-parse.c: Use string.h, not gdb_string.h.
784 * microblaze-rom.c: Use string.h, not gdb_string.h.
785 * microblaze-tdep.c: Use string.h, not gdb_string.h.
786 * mingw-hdep.c: Use string.h, not gdb_string.h.
787 * minidebug.c: Use string.h, not gdb_string.h.
788 * minsyms.c: Use string.h, not gdb_string.h.
789 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
790 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
791 * mips-tdep.c: Use string.h, not gdb_string.h.
792 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
793 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
794 * mipsread.c: Use string.h, not gdb_string.h.
795 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
796 * mn10300-tdep.c: Use string.h, not gdb_string.h.
797 * monitor.c: Use string.h, not gdb_string.h.
798 * moxie-tdep.c: Use string.h, not gdb_string.h.
799 * mt-tdep.c: Use string.h, not gdb_string.h.
800 * nbsd-tdep.c: Use string.h, not gdb_string.h.
801 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
802 * nto-procfs.c: Use string.h, not gdb_string.h.
803 * nto-tdep.c: Use string.h, not gdb_string.h.
804 * objc-lang.c: Use string.h, not gdb_string.h.
805 * objfiles.c: Use string.h, not gdb_string.h.
806 * opencl-lang.c: Use string.h, not gdb_string.h.
807 * osabi.c: Use string.h, not gdb_string.h.
808 * osdata.c: Use string.h, not gdb_string.h.
809 * p-exp.y: Use string.h, not gdb_string.h.
810 * p-lang.c: Use string.h, not gdb_string.h.
811 * p-typeprint.c: Use string.h, not gdb_string.h.
812 * parse.c: Use string.h, not gdb_string.h.
813 * posix-hdep.c: Use string.h, not gdb_string.h.
814 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
815 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
816 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
817 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
818 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
819 * printcmd.c: Use string.h, not gdb_string.h.
820 * procfs.c: Use string.h, not gdb_string.h.
821 * prologue-value.c: Use string.h, not gdb_string.h.
822 * python/py-auto-load.c: Use string.h, not gdb_string.h.
823 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
824 * ravenscar-thread.c: Use string.h, not gdb_string.h.
825 * regcache.c: Use string.h, not gdb_string.h.
826 * registry.c: Use string.h, not gdb_string.h.
827 * remote-fileio.c: Use string.h, not gdb_string.h.
828 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
829 * remote-mips.c: Use string.h, not gdb_string.h.
830 * remote-sim.c: Use string.h, not gdb_string.h.
831 * remote.c: Use string.h, not gdb_string.h.
832 * reverse.c: Use string.h, not gdb_string.h.
833 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
834 * ser-base.c: Use string.h, not gdb_string.h.
835 * ser-go32.c: Use string.h, not gdb_string.h.
836 * ser-mingw.c: Use string.h, not gdb_string.h.
837 * ser-pipe.c: Use string.h, not gdb_string.h.
838 * ser-tcp.c: Use string.h, not gdb_string.h.
839 * ser-unix.c: Use string.h, not gdb_string.h.
840 * serial.c: Use string.h, not gdb_string.h.
841 * sh-tdep.c: Use string.h, not gdb_string.h.
842 * sh64-tdep.c: Use string.h, not gdb_string.h.
843 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
844 * skip.c: Use string.h, not gdb_string.h.
845 * sol-thread.c: Use string.h, not gdb_string.h.
846 * solib-dsbt.c: Use string.h, not gdb_string.h.
847 * solib-frv.c: Use string.h, not gdb_string.h.
848 * solib-osf.c: Use string.h, not gdb_string.h.
849 * solib-spu.c: Use string.h, not gdb_string.h.
850 * solib-target.c: Use string.h, not gdb_string.h.
851 * solib.c: Use string.h, not gdb_string.h.
852 * somread.c: Use string.h, not gdb_string.h.
853 * source.c: Use string.h, not gdb_string.h.
854 * sparc-nat.c: Use string.h, not gdb_string.h.
855 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
856 * sparc-tdep.c: Use string.h, not gdb_string.h.
857 * sparc64-tdep.c: Use string.h, not gdb_string.h.
858 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
859 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
860 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
861 * spu-linux-nat.c: Use string.h, not gdb_string.h.
862 * spu-multiarch.c: Use string.h, not gdb_string.h.
863 * spu-tdep.c: Use string.h, not gdb_string.h.
864 * stabsread.c: Use string.h, not gdb_string.h.
865 * stack.c: Use string.h, not gdb_string.h.
866 * std-regs.c: Use string.h, not gdb_string.h.
867 * symfile.c: Use string.h, not gdb_string.h.
868 * symmisc.c: Use string.h, not gdb_string.h.
869 * symtab.c: Use string.h, not gdb_string.h.
870 * target.c: Use string.h, not gdb_string.h.
871 * thread.c: Use string.h, not gdb_string.h.
872 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
873 * tilegx-tdep.c: Use string.h, not gdb_string.h.
874 * top.c: Use string.h, not gdb_string.h.
875 * tracepoint.c: Use string.h, not gdb_string.h.
876 * tui/tui-command.c: Use string.h, not gdb_string.h.
877 * tui/tui-data.c: Use string.h, not gdb_string.h.
878 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
879 * tui/tui-file.c: Use string.h, not gdb_string.h.
880 * tui/tui-layout.c: Use string.h, not gdb_string.h.
881 * tui/tui-out.c: Use string.h, not gdb_string.h.
882 * tui/tui-regs.c: Use string.h, not gdb_string.h.
883 * tui/tui-source.c: Use string.h, not gdb_string.h.
884 * tui/tui-stack.c: Use string.h, not gdb_string.h.
885 * tui/tui-win.c: Use string.h, not gdb_string.h.
886 * tui/tui-windata.c: Use string.h, not gdb_string.h.
887 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
888 * typeprint.c: Use string.h, not gdb_string.h.
889 * ui-file.c: Use string.h, not gdb_string.h.
890 * ui-out.c: Use string.h, not gdb_string.h.
891 * user-regs.c: Use string.h, not gdb_string.h.
892 * utils.c: Use string.h, not gdb_string.h.
893 * v850-tdep.c: Use string.h, not gdb_string.h.
894 * valarith.c: Use string.h, not gdb_string.h.
895 * valops.c: Use string.h, not gdb_string.h.
896 * valprint.c: Use string.h, not gdb_string.h.
897 * value.c: Use string.h, not gdb_string.h.
898 * varobj.c: Use string.h, not gdb_string.h.
899 * vax-tdep.c: Use string.h, not gdb_string.h.
900 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
901 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
902 * windows-nat.c: Use string.h, not gdb_string.h.
903 * xcoffread.c: Use string.h, not gdb_string.h.
904 * xml-support.c: Use string.h, not gdb_string.h.
905 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
906 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
907
63ce7108
TT
9082013-11-18 Tom Tromey <tromey@redhat.com>
909
910 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
911 and strstr.
912 * gnulib/aclocal.m4: Update.
913 * gnulib/config.in: Update.
914 * gnulib/configure: Update.
915 * gnulib/import/Makefile.am: Update.
916 * gnulib/import/Makefile.in: Update.
917 * gnulib/import/errno.in.h: New.
918 * gnulib/import/intprops.h: New.
919 * gnulib/import/m4/errno_h.m4: New.
920 * gnulib/import/m4/gnulib-cache.m4: Update.
921 * gnulib/import/m4/gnulib-comp.m4: Update.
922 * gnulib/import/m4/strerror.m4: New.
923 * gnulib/import/m4/strstr.m4: New.
924 * gnulib/import/m4/sys_socket_h.m4: New.
925 * gnulib/import/strerror-override.c: New.
926 * gnulib/import/strerror-override.h: New.
927 * gnulib/import/strerror.c: New.
928 * gnulib/import/strstr.c: New.
929
a7c11ee1
TT
9302013-11-18 Tom Tromey <tromey@redhat.com>
931
932 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
933 multiple lines.
934
d0b5971a
JM
9352013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
936
937 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
938 * sparc-tdep.h: And its prototype.
939
940 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
941 function.
942 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
943
4b4589ad
PA
9442013-11-18 Pedro Alves <palves@redhat.com>
945
946 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
947 use unpack_pointer.
948
422ad5c2
JB
9492013-11-18 Joel Brobecker <brobecker@adacore.com>
950
951 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
952 to -list-features output.
953
b1370418
JB
9542013-11-17 Joel Brobecker <brobecker@adacore.com>
955
956 * dwarf2expr.h (struct dwarf_expr_context_funcs)
957 <read_addr_from_reg>: Renames "read_reg".
958 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
959 Adjust comment.
960 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
961 Use read_addr_from_reg in place of read_reg.
962 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
963 in place of read_reg.
964 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
965 dwarf_expr_read_reg.
966 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
967 with dwarf_expr_read_addr_from_reg.
968 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
969 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
970 needs_frame_read_addr_from_reg.
971
6ea71545
JK
9722013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
973
974 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
975
19a1b230
AA
9762013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
977
978 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
979 NULL.
980
805e1f19
TT
9812013-11-15 Tom Tromey <tromey@redhat.com>
982
983 PR c++/16117:
984 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
985 (classify_name): Likewise. Prefer a field of "this" over a
986 filename.
987 (classify_inner_name, yylex): Update.
988
0acf8b65
JB
9892013-11-15 Joel Brobecker <brobecker@adacore.com>
990
991 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
992 Extend the documentation a bit.
993 <get_reg_value>: New field.
994 * dwarf2loc.c (dwarf_expr_get_reg_value)
995 (needs_frame_get_reg_value): New functions.
996 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
997 callback.
998 * dwarf2-frame.c (get_reg_value): New function.
999 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1000 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1001 Use new callback to compute result_val.
1002
ef1bc9e7
AM
10032013-11-15 Alan Modra <amodra@gmail.com>
1004
1005 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1006 (ppc64_desc_entry_point): ..this. Update comments here and at
1007 call points.
1008 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1009 ppc64_standard_linkage3): Update comments.
1010 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1011 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1012 patterns.
1013 (ppc64_standard_linkage4_target): New function.
1014 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1015 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1016 nop match. Fix comment wrap.
1017
36fa8042
PA
10182013-11-14 Pedro Alves <palves@redhat.com>
1019
1020 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1021 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1022
4f5d7f63
PA
10232013-11-14 Pedro Alves <palves@redhat.com>
1024
1025 * infrun.c (struct execution_control_state)
1026 <stepped_after_stopped_by_watchpoint>: New field.
1027 (get_inferior_stop_soon): New function.
1028 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1029 moved to struct execution_control_state -- adjust. Use
1030 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1031 new function.
1032 (handle_signal_stop): New function, factored out from
1033 handle_inferior_event.
1034
47591c29
PA
10352013-11-14 Pedro Alves <palves@redhat.com>
1036
1037 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1038 return a boolean.
1039 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1040 boolean.
1041 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1042 Adjust to return a boolean.
1043 * breakpoint.h (enum bpstat_signal_value): Delete.
1044 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1045 (bpstat_explains_signal): Likewise.
1046 * infrun.c (handle_inferior_event) <random signal checks>:
1047 bpstat_explains_signal now returns a boolean - adjust. No longer
1048 consider hiding signals.
1049
bac7d97b
PA
10502013-11-14 Pedro Alves <palves@redhat.com>
1051
1052 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1053 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1054 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1055 BPSTAT_SIGNAL_HIDE.
1056 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1057 instead of BPSTAT_SIGNAL_HIDE.
1058 * infrun.c (handle_inferior_event): Rework random signal checks.
1059
ce12b012
PA
10602013-11-14 Pedro Alves <palves@redhat.com>
1061
1062 * infrun.c (struct execution_control_state): Remove
1063 'random_signal' field.
1064 (handle_syscall_event): Use bpstat_causes_stop instead of
1065 bpstat_explains_signal. Don't set ecs->random_signal.
1066 (handle_inferior_event): New 'random_signal' local.
1067 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1068 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1069 bpstat_explains_signal. Don't set ecs->random_signal.
1070 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1071 ecs->random_signal.
1072
05ba8510
PA
10732013-11-14 Pedro Alves <palves@redhat.com>
1074
1075 * infrun.c (handle_inferior_event): Move comment from the
1076 function's body to the function's description, adjusted.
1077
5c09a2c5
PA
10782013-11-14 Pedro Alves <palves@redhat.com>
1079
1080 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1081 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1082 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1083 case.
1084
91822956
TT
10852013-11-14 Tom Tromey <tromey@redhat.com>
1086
1087 * python/py-linetable.c (ltpy_has_line)
1088 (ltpy_get_all_source_lines): Fix loop termination condition.
1089
403cb6b1
JB
10902013-11-14 Joel Brobecker <brobecker@adacore.com>
1091
1092 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1093 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1094 PARSE->LANGUAGE during command execution, if set.
1095 * mi/mi-parse.c: Add "language.h" #include.
1096 (mi_parse): Add parsing of "--language" command option.
1097
1098 * NEWS: Add entry mentioning the new "--language" command option.
1099
b5be8ce0
JB
11002013-11-14 Pedro Alves <palves@redhat.com>
1101 Joel Brobecker <brobecker@adacore.com>
1102
1103 * cli/cli-utils.h (extract_arg_const): Add declaration.
1104 * cli/cli-utils.c (extract_arg_const): New function.
1105 (extract_arg): Reimplement using extract_arg_const.
1106
671afef6
JB
11072013-11-14 Joel Brobecker <brobecker@adacore.com>
1108
1109 * language.h: Add "symtab.h" #include.
1110
6c1b0f7b
DE
11112013-11-13 Doug Evans <xdje42@gmail.com>
1112
1113 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1114 specific breakpoints, don't evaluate breakpoint condition if
1115 different thread.
1116
74921315
KS
11172013-11-13 Keith Seitz <keiths@redhat.com>
1118
248ace2e 1119 PR c++/7935
74921315
KS
1120 PR c++/10541
1121 * cp-support.c (insepct_type): Add support for substituting
1122 namespace aliases, too.
1123 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1124 for DW_TAG_imported_declaration.
1125 (add_partial_symbol): Likewise.
1126 (process_die): Handle namespace aliases with
1127 read_namespace_alias.
1128 (die_needs_namespace): Add DW_TAG_imported_declaration.
1129 (read_namespace_alias): New function.
1130 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1131 (new_symbol_full): Handle DW_TAG_imported_declaration.
1132
793156e6
KS
11332013-11-13 Keith Seitz <keiths@redhat.com>
1134
1135 * p-exp.y (uptok): Make first parameter const.
1136 (yylex): Make `tokstart' and `tokptr' const.
1137 Don't copy the lexer input to a temporary buffer.
1138 Make `p' const.
1139 Remove const workaround for parse_escape.
1140 Create a temporary buffer for a convenience variable instead
1141 of doing in-place modification of the input.
1142 If a match is found with a different case from the input,
1143 do not change the input at all.
1144 Use `tmp' to construct the resultant stoken instead of
1145 `tokstart'.
1146
c42bd95a
DE
11472013-11-13 Doug Evans <xdje42@gmail.com>
1148
1149 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1150
93973826
JB
11512013-11-13 Joel Brobecker <brobecker@adacore.com>
1152
1153 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1154 entry with "ada-exceptions".
1155
846060df
JB
11562013-11-13 Joel Brobecker <brobecker@adacore.com>
1157
1158 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1159 after re-initialization of OBJFILE's obstack.
1160
5efd1b2b 11612013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1162
1163 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1164 bs->stop != 0 on entry. Update function comment. Simplify early
1165 exit for frame mismatch. Reindent rest of function.
1166
ee7615e1
AA
11672013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1168
1169 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1170 NULL.
1171
8943b874
DE
11722013-11-12 Doug Evans <dje@google.com>
1173
1174 Work around gold/15646.
1175 * dwarf2read.c (read_index_from_section): Update comment.
1176 (struct dw2_symtab_iterator): New member global_seen.
1177 (dw2_symtab_iter_init): Initialize it.
1178 (dw2_symtab_iter_next): Skip duplicate global symbols.
1179 (dw2_expand_symtabs_matching): Ditto.
1180
a8a9844d
JB
11812013-11-12 Joel Brobecker <brobecker@adacore.com>
1182
1183 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1184 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1185 command.
1186 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1187 (mi_cmd_info_ada_exceptions): New function.
1188 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1189
778865d3
JB
11902013-11-12 Joel Brobecker <brobecker@adacore.com>
1191
1192 * ada-lang.h: #include "vec.h".
1193 (struct ada_exc_info): New.
1194 (ada_exc_info): New typedef.
1195 (DEF_VEC_O(ada_exc_info)): New vector.
1196 (ada_exceptions_list): Add declaration.
1197 * ada-lang.c (ada_is_exception_sym)
1198 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1199 (sort_remove_dups_ada_exceptions_list)
1200 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1201 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1202 (ada_exceptions_list_1, ada_exceptions_list)
1203 (info_exceptions_command): New function.
1204 (_initialize_ada_language): Add "info exception" command.
1205
bc79de95
PM
12062013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1207
1208 PR python/15629
1209 * NEWS: Add linetable feature.
1210 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1211 * python/py-linetable.c: New file.
1212 * python/py-symtab.c (stpy_get_linetable): New function.
1213 * python/python-internal.h (symtab_to_linetable_object): Declare.
1214 (gdbpy_initialize_linetable): Ditto.
1215 * python/python.c (_initialize_python): Call
1216 gdbpy_initialize_linetable.
1217
2df4d1d5
JB
12182013-11-11 Joel Brobecker <brobecker@adacore.com>
1219
1220 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1221 the documentation of fields "except_string" and "condition".
1222 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1223 CONDITION on the heap before passing it to
1224 create_ada_exception_catchpoint.
1225 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1226 CONDITION.
1227
99c1d451
TT
12282013-11-11 Tom Tromey <tromey@redhat.com>
1229
1230 * config.in, configure: Rebuild.
1231 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1232
8ca5801b
JB
12332013-11-11 Joel Brobecker <brobecker@adacore.com>
1234
1235 * remote-sim.c (gdbsim_detach): Break declaration into
1236 shorter lines. No code change.
1237
7a06d430
EBM
12382013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1239
1240 * remote-sim.c (gdbsim_detach): Fix prototype.
1241
73be47f5
DE
12422013-11-08 Doug Evans <dje@google.com>
1243
1244 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1245 (create_debug_types_hash_table): Only print debugging messages for
1246 each TU if dwarf2-read >= 2.
1247 (process_queue): Ditto.
1248 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1249 Update doc string.
1250
a18d8f10
TT
12512013-11-08 Tom Tromey <tromey@redhat.com>
1252
1253 * configure: Rebuild.
1254 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1255
9467110b
TT
12562013-11-08 Tom Tromey <tromey@redhat.com>
1257
1258 * configure, config.in: Rebuild.
1259 * configure.ac: Remove unused configury.
1260
69706679
TT
12612013-11-08 Tom Tromey <tromey@redhat.com>
1262
1263 * m32c-tdep.c: Use gdb_string.h.
1264
9b4bea72
TT
12652013-11-08 Tom Tromey <tromey@redhat.com>
1266
1267 * configure, config.in: Rebuild.
1268 * configure.ac: Remove all link.h-related checks.
1269
3266f10b
TT
12702013-11-08 Tom Tromey <tromey@redhat.com>
1271
1272 * acinclude.m4: Include common.m4.
1273 * common/common.m4: New file.
1274 * configure, config.in: Rebuild.
1275 * configure.ac: Use GDB_AC_COMMON.
1276
db0fec5c
DE
12772013-11-08 Doug Evans <dje@google.com>
1278
1279 * NEWS: Mention that "set debug symtab-create" now accepts a
1280 verbosity level.
1281 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1282 to set the symtab's primary flag.
1283 * jit.c (finalize_symtab): Ditto.
1284 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1285 * symfile.c (allocate_symtab): Only print debugging messages for
1286 symtab_create_debug levels 2 and higher.
1287 * symtab.c (symtab_create_debug): Change type to unsigned int.
1288 (set_symtab_primary): New function.
1289 (_initialize_symtab): Change "set debug symtab-create" to a
1290 zuinteger option.
1291 * symtab.h (set_symtab_primary): Declare.
1292 (symtab_create_debug): Update decl.
1293
52554a0e
TT
12942013-11-08 Tom Tromey <tromey@redhat.com>
1295
1296 * aix-thread.c (aix_thread_detach): Update.
1297 * corelow.c (core_detach): Update.
1298 * darwin-nat.c (darwin_detach): Update.
1299 * dec-thread.c (dec_thread_detach): Update.
1300 * gnu-nat.c (gnu_detach): Update.
1301 * go32-nat.c (go32_detach): Update.
1302 * inf-ptrace.c (inf_ptrace_detach): Update.
1303 * inf-ttrace.c (inf_ttrace_detach): Update.
1304 * linux-fork.c (linux_fork_detach): Update.
1305 * linux-fork.h (linux_fork_detach): Update.
1306 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1307 local for const-correctness.
1308 * linux-thread-db.c (thread_db_detach): Update.
1309 * monitor.c (monitor_detach): Update.
1310 * nto-procfs.c (procfs_detach): Update.
1311 * procfs.c (procfs_detach): Update.
1312 * record.c (record_detach): Update.
1313 * record.h (record_detach): Update.
1314 * remote-m32r-sdi.c (m32r_detach): Update.
1315 * remote-mips.c (mips_detach): Update.
1316 * remote-sim.c (gdbsim_detach): Update.
1317 * remote.c (remote_detach_1, remote_detach)
1318 (extended_remote_detach): Update.
1319 * sol-thread.c (sol_thread_detach): Update.
1320 * target.c (target_detach): Make "args" const.
1321 (init_dummy_target): Update.
1322 * target.h (struct target_ops) <to_detach>: Make argument const.
1323 (target_detach): Likewise.
1324 * windows-nat.c (windows_detach): Update.
1325
204b5331
DE
13262013-11-07 Doug Evans <dje@google.com>
1327
1328 PR 11786
1329 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1330 and align fields for PT_GNU_RELRO segments.
1331
92e32e33
PM
13322013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1333
ef1bc9e7
AM
1334 PR python/15747
1335 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1336
f76c27b5
PM
13372013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1338
1339 * NEWS: Document Python temporary breakpoint support.
1340 * python/py-breakpoint.c (bppy_get_temporary): New function.
1341 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1342 to temporary if True.
1343
d52cd232
JM
13442013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1345
1346 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1347 removed to allow analyzing unconditional branch instructions
1348 with PC-relative offsets of zero.
1349
fa4d0c40
YQ
13502013-11-07 Yao Qi <yao@codesourcery.com>
1351
1352 * mi/mi-cmd-var.c: Include "language.h".
1353 (mi_cmd_var_info_expression): Get language name from
1354 language_defn.
1355 * varobj.c (varobj_language_string): Remove.
1356 (variable_language): Remove declaration.
1357 (languages): Remove.
1358 (varobj_get_language): Change the type of return value.
1359 (variable_language): Remove.
1360 * varobj.h (enum varobj_languages): Remove.
1361 (varobj_language_string): Remove declaration.
1362 (varobj_get_language): Update declaration.
1363
6abde28f
YQ
13642013-11-07 Yao Qi <yao@codesourcery.com>
1365
1366 * language.h (struct language_defn) <la_natural_name>: New
1367 field.
1368 * ada-lang.c (ada_language_defn): Initialize field
1369 'la_natural_name'.
1370 * c-lang.c (c_language_defn): Likewise.
1371 (cplus_language_defn, asm_language_defn): Likewise.
1372 * d-lang.c (d_language_defn): Likewise.
1373 * f-lang.c (f_language_defn): Likewise.
1374 * go-lang.c (go_language_defn): Likewise.
1375 * jv-lang.c (java_language_defn): Likewise.
1376 * language.c (unknown_language_defn ): Likewise.
1377 (auto_language_defn): Likewise.
1378 * m2-lang.c (m2_language_defn): Likewise.
1379 * objc-lang.c (objc_language_defn): Likewise.
1380 * opencl-lang.c (opencl_language_defn): Likewise.
1381 * p-lang.c (pascal_language_defn): Likewise.
1382
27cd387b
YQ
13832013-11-07 Yao Qi <yao@codesourcery.com>
1384
1385 * language.c (language_str): Return const char *.
1386 (add_language): Add const to 'language_names'
1387 * language.h (struct language_defn) <la_name>: Add const.
1388 (language_str: Update declaration.
1389
6682d959
AA
13902013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1391
1392 * s390-linux-nat.c (s390_read_description): Consider the TE field
1393 in the HWCAP for determining 'have_regset_tdb'.
1394
b9502d3f
WN
13952013-11-06 Will Newton <will.newton@linaro.org>
1396
1397 PR gdb/12866
1398 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1399 values. (read_partial_die): Likewise.
1400
840da61a
MB
14012013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1402
1403 PR cli/16122
1404 * top.c (command_line_input): Unify interactivity tests to use
1405 input_from_terminal_p.
1406 * event-top.c (command_line_handler): Likewise.
1407
7636ccf9
YQ
14082013-11-06 Yao Qi <yao@codesourcery.com>
1409
1410 * Makefile.in (check-perf): New target.
1411
12b27276
WN
14122013-11-05 Will Newton <will.newton@linaro.org>
1413
1414 PR gdb/7670
1415 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1416 (arm_print_float_info): Likewise.
1417
67c059c2
AB
14182013-11-04 Anton Blanchard <anton@samba.org>
1419
1420 * target.c (memory_xfer_partial): Cap write to 4KB.
1421
0569175e
TSD
14222013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1423
1424 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1425 probe scan even when the arch provides no get_longjmp_target.
1426
b18e90f5
PA
14272013-10-31 Pedro Alves <palves@redhat.com>
1428
1429 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1430 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1431 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1432 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1433 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1434 <bpstat handling>: If the bpstat chain wants the signal to be
1435 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1436 GDB_SIGNAL_TRAP.
1437
638aa5a1
AB
14382013-10-31 Andrew Burgess <aburgess@broadcom.com>
1439
1440 * breakpoint.c (update_watchpoint): Update error message and add
1441 an additional error message.
1442
0e5fae36
UW
14432013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1444
1445 * s390-tdep.h: Rename to...
1446 * s390-linux-tdep.h: ...here.
1447 * s390-tdep.c: Rename to...
1448 * s390-linux-tdep.c: ...here. Adjust #include.
1449 * s390-nat.c: Rename to...
1450 * s390-linux-nat.c: ...here. Adjust #include.
1451 * config/s390/s390.mh: Rename to...
1452 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1453 s390-linux-nat.o.
1454 * configure.host: Reflect host rename "s390" -> "linux".
1455 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1456 * Makefile.in (ALL_TARGET_OBS): Likewise.
1457 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1458 s390-linux-tdep.h.
1459 (ALLDEPFILES): Reflect rename of .c files.
1460
34201ae3
UW
14612013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1462
1463 * s390-nat.c: Whitespace cleanup.
1464 * s390-tdep.c: Likewise.
1465 * s390-tdep.h: Remove empty line at end of file.
1466
e17aaa33
MR
14672013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1468
1469 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1470 siginfo_size.
1471
aee17e42
TT
14722013-10-29 Tom Tromey <tromey@redhat.com>
1473
1474 * utils.c (reg): Move undefinition...
1475 * gdb_curses.h: ... here. Update comment to mention AIX.
1476
9ac69859
NB
14772013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1478
1479 * exec.h (add_target_sections_of_objfile): New declaration.
1480 * exec.c (add_target_sections_of_objfile): New function.
1481 * symfile.c (add_symbol_file_command): Update current target sections.
1482 (remove_symbol_file_command): New command.
1483 (symfile_free_objfile): New function.
1484 (_initialize_symfile): Register observer for free_objfile events.
1485 * NEWS: Add description of the remove-symbol-file command.
1486 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1487 * objfiles.c (free_objfile): Notify free_objfile.
1488 (is_addr_in_objfile): New function.
1489 * objfiles.h (is_addr_in_objfile): New declaration.
1490 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1491 events instead of solib_unloaded events.
1492 (_initialize_printcmd): Register observer for free_objfile instead
1493 of solib_unloaded notifications.
1494 * solib.c (remove_user_added_objfile): New function.
1495 (_initialize_symfile): Add remove-symbol-file.
1496
f69d9aef
AB
14972013-10-29 Andrew Burgess <aburgess@broadcom.com>
1498
1499 * infcmd.c (default_print_one_register_info): Use val_print to
1500 print all values even optimized out or unavailable ones. Don't
1501 try to print a raw form of optimized out or unavailable values.
1502
487ad57c
YQ
15032013-10-29 Yao Qi <yao@codesourcery.com>
1504
1505 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1506 parameter 'arg' instead of from program_space_data.
1507 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1508 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1509 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1510 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1511 * inflow.c (inflow_inferior_data_cleanup): Get data from
1512 parameter 'arg' instead of inferior_data.
1513 * registry.h: Add comments.
1514
3c4797ba
PA
15152013-10-28 Pedro Alves <palves@redhat.com>
1516
1517 * breakpoint.c (watchpoints_triggered)
1518 <!target_stopped_data_address>: Hardcode return 1.
1519
cdaa5b73
PA
15202013-10-28 Pedro Alves <palves@redhat.com>
1521
1522 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1523 level and reindent.
1524
94c57d6a
PA
15252013-10-28 Pedro Alves <palves@redhat.com>
1526
1527 * infrun.c (process_event_stop_test): New function, factored out
1528 from handle_inferior_event.
1529 (handle_inferior_event): 'process_event_stop_test' is now a
1530 function instead of a goto label -- adjust.
1531
fcf3daef
PA
15322013-10-28 Pedro Alves <palves@redhat.com>
1533
1534 * infrun.c (handle_inferior_event): Move process_event_stop_test
1535 goto label to the else branch of the ecs->random_signal check,
1536 along with FRAME and GDBARCH re-fetching.
1537
c447ac0b
PA
15382013-10-28 Pedro Alves <palves@redhat.com>
1539
1540 * infrun.c (switch_back_to_stepped_thread): New function, factored
1541 out from handle_inferior_event.
1542 (handle_inferior_event): Adjust to call
1543 switch_back_to_stepped_thread. Call it also at the tail of the
1544 random signal handling, and return, instead of also handling
1545 random signals just before the stepping tests.
1546
f05e4c11
PA
15472013-10-28 Pedro Alves <palves@redhat.com>
1548
1549 * infrun.c (clear_stop_func): Delete.
1550 (handle_inferior_event): Don't call clear_stop_func and don't
1551 clear 'ecs->random_signal'.
1552
ca20d462
YQ
15532013-10-27 Yao Qi <yao@codesourcery.com>
1554
1555 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1556 (varobj_create, varobj_get_path_expr): Update.
1557 (varobj_value_has_mutated, varobj_update): Likewise.
1558 (create_child_with_value, new_root_variable): Likewise.
1559 (number_of_children, name_of_variable): Likewise.
1560 (value_of_child, my_value_of_variable): Likewise.
1561 (varobj_value_is_changeable_p): Likewise.
1562
a53b64ea
YQ
15632013-10-25 Yao Qi <yao@codesourcery.com>
1564
1565 * language.h (struct lang_varobj_ops): Declare.
1566 (struct language_defn) <la_varobj_ops>: New field.
1567 * ada-lang.c: Include "varobj.h"
1568 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1569 ada_varobj_ops.
1570 * c-lang.c: Include "varobj.h"
1571 (c_language_defn): Initialize field 'la_varobj_ops' with
1572 c_varobj_ops.
1573 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1574 cplus_varobj_ops.
1575 (asm_language_defn): Initialize field 'la_varobj_ops' with
1576 default_varobj_ops.
1577 (minimal_language_defn): Likewise.
1578 * d-lang.c (d_language_defn): Likewise.
1579 * f-lang.c (f_language_defn): Likewise.
1580 * go-lang.c (go_language_defn): Likewise.
1581 * m2-lang.c (m2_language_defn): Likewise.
1582 * objc-lang.c (objc_language_defn): Likewise.
1583 * opencl-lang.c (opencl_language_defn): Likewise.
1584 * p-lang.c (pascal_language_defn): Likewise.
1585 * language.c (unknown_language_defn): Likewise.
1586 (auto_language_defn): Likewise.
1587 (local_language_defn): Likewise.
1588 * jv-lang.c (java_language_defn): Initialize field
1589 'la_varobj_ops' with java_varobj_ops.
1590 * varobj.c (varobj_create): Update.
1591 * varobj.h (default_varobj_ops): Define macro.
1592
686d4def
PA
15932013-10-25 Pedro Alves <palves@redhat.com>
1594
1595 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1596 static field value.
1597 (cp_print_static_field): If the value is entirely optimized out,
1598 print <optimized out> here.
1599 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1600 static field value.
1601 * p-valprint.c (pascal_object_print_static_field): If the value is
1602 entirely optimized out, print <optimized out> here.
1603 * valops.c (do_search_struct_field)
1604 (value_struct_elt_for_reference): No longer handle a NULL static
1605 field value.
1606 * value.c (value_static_field): Return an optimized out value
1607 instead of NULL.
1608
6c177e28
YQ
16092013-10-25 Yao Qi <yao@codesourcery.com>
1610
1611 * remote.c (remote_traceframe_info): Return early if
1612 traceframe is not selected.
1613
98322bfa
YQ
16142013-10-25 Yao Qi <yao@codesourcery.com>
1615
1616 * tracepoint.c (traceframe_fun): Remove.
1617 (traceframe_sal): Remove.
1618 (set_traceframe_context): Add local variables.
1619
6ba1f115
JB
16202013-10-25 Joel Brobecker <brobecker@adacore.com>
1621
1622 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1623 and parameter name.
1624
bbe769cc
MR
16252013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1626
1627 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1628 failure from register information collection.
1629
72ee4495 16302013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1631
1632 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1633 member.
1634 (linux_corefile_thread_callback): Update accordingly.
1635 (linux_make_corefile_notes): Likewise.
1636
98882a26
PA
16372013-10-24 Pedro Alves <palves@redhat.com>
1638
1639 * NEWS (New options): Mention set/show startup-with-shell.
1640 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1641 instead of 3.
1642 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1643 startup-with-shell'.
1644 (show_startup_with_shell): New function.
1645 (_initialize_fork_child): Register the set/show startup-with-shell
1646 commands.
1647 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1648 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1649 * procfs.c (procfs_init_inferior): Remove comment.
1650 * infcmd.c (startup_with_shell): New global.
1651 * inferior.h (startup_with_shell): Declare global.
1652 (STARTUP_WITH_SHELL): Delete.
1653 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1654
c9737c08
PA
16552013-10-23 Pedro Alves <palves@redhat.com>
1656
1657 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1658 * common/signals.c: Include "gdb_assert.h".
1659 (signals): New field 'symbol'.
1660 (SET): Use the 'symbol' parameter.
1661 (gdb_signal_to_symbol_string): New function.
1662 * infrun.c (handle_inferior_event) <random signal>: In debug
1663 output, print the random signal enum as string in addition to its
1664 number.
1665 * target/waitstatus.c (target_waitstatus_to_string): Print the
1666 signal's enum value as string instead of the (POSIX) signal name.
1667
f60db4f0
GB
16682013-10-23 Gary Benson <gbenson@redhat.com>
1669
1670 PR 16013
1671 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1672 from 32 to 18. Adjusted fscanf format string accordingly.
1673 (Avoids leaving cmd unterminated.)
1674 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1675 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1676 that local_address and remote_address will not overflow.
1677 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1678 leaving dependencies unterminated. Parse size as "%u" to match
1679 definition.
1680
6d3e7a94
PA
16812013-10-22 Pedro Alves <palves@redhat.com>
1682
1683 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1684 set ecs->random signal.
1685
42ec045f
PA
16862013-10-22 Pedro Alves <palves@redhat.com>
1687
1688 * infrun.c (keep_going): Update comments.
1689
16902013-10-22 Pedro Alves <palves@redhat.com>
1691
1692 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1693 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1694
16952013-10-22 Pedro Alves <palves@redhat.com>
1696
1697 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1698 GDB_EXC_BAD_ACCESS.
1699 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1700 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1701 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1702 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1703 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1704 (GDB_SIGNAL_LAST): Change description string.
1705 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1706 Adjust to signal renaming.
1707 * darwin-nat.c (darwin_decode_message): Likewise.
1708
c8fde1b1
JM
17092013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1710
1711 * MAINTAINERS (Write After Approval): Add myself to the list.
1712
e8369a73
AB
17132013-10-18 Andrew Burgess <aburgess@broadcom.com>
1714
1715 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1716 forced off, downgrade them to software watchpoints if possible,
1717 and error out if not possible.
1718 (watch_command_1): Move watchpoint type selection closer to
1719 watchpoint creation, and extend the comments.
1720
776f04fa
PA
17212013-10-18 Pedro Alves <palves@redhat.com>
1722
1723 PR gdb/16062
1724 * infrun.c (handle_inferior_event): Keep going if we got a random
1725 signal we should not stop for, instead of falling through to the
1726 step tests.
1727
0c6faab5
YQ
17282013-10-18 Yao Qi <yao@codesourcery.com>
1729
1730 * c-varobj.c (cplus_number_of_children): Fix indentation.
1731
50b34a18
TT
17322013-10-17 Tom Tromey <tromey@redhat.com>
1733
1734 PR gdb/15995:
1735 * printcmd.c (printcmd): Call gdb_flush.
1736
5c4c8a59
TT
17372013-10-17 Tom Tromey <tromey@redhat.com>
1738
1739 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1740 (elf_locate_sections): Update.
1741
c4124bf1
YQ
17422013-10-17 Yao Qi <yao@codesourcery.com>
1743
1744 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1745 * ada-varobj.c: Remove the include of ada-varobj.h.
1746 (ada_varobj_get_number_of_children): Declare.
1747 (ada_varobj_get_name_of_child): Make it static.
1748 (ada_varobj_get_path_expr_of_child): Likewise.
1749 (ada_varobj_get_value_of_child): Likewise.
1750 (ada_varobj_get_type_of_child): Likewise.
1751 (ada_varobj_get_value_of_array_variable): Likewise.
1752 * ada-varobj.h: Remove.
1753
99ad9427
YQ
17542013-10-17 Yao Qi <yao@codesourcery.com>
1755
1756 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1757 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1758 * ada-varobj.c: Include "varobj.h".
1759 (ada_number_of_children): New. Moved from varobj.c.
1760 (ada_name_of_variable, ada_name_of_child): Likewise.
1761 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1762 (ada_type_of_child, ada_value_of_variable): Likewise.
1763 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1764 (ada_varobj_ops): New.
1765 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1766 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1767 * gdbtypes.h (get_target_type): Declare.
1768 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1769 "ada-lang.h".
1770 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1771 (ANONYMOUS_UNION_NAME): Likewise.
1772 (get_type, get_value_type, get_target_type): Remove declarations.
1773 (value_get_print_value, varobj_value_get_print_value): Likewise.
1774 (c_number_of_children, c_name_of_variable): Likewise.
1775 (c_name_of_child, c_path_expr_of_child): Likewise.
1776 (c_value_of_child, c_type_of_child): Likewise.
1777 (c_value_of_variable, cplus_number_of_children): Likewise.
1778 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1779 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1780 (cplus_value_of_child, cplus_type_of_child): Likewise.
1781 (cplus_value_of_variable, java_number_of_children): Likewise.
1782 (java_name_of_variable, java_name_of_child): Likewise.
1783 (java_path_expr_of_child, java_value_of_child): Likewise.
1784 (java_type_of_child, java_value_of_variable): Likewise.
1785 (ada_number_of_children, ada_name_of_variable): Likewise.
1786 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1787 (ada_value_of_child, ada_type_of_child): Likewise.
1788 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1789 (ada_value_has_mutated): Likewise.
1790 (struct language_specific): Move it to varobj.h.
1791 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1792 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1793 Callers update.
1794 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1795 Make it extern.
1796 (is_anonymous_child): Move it to c-varobj.c and rename to
1797 varobj_is_anonymous_child. Caller update.
1798 (get_type): Move it to c-varobj.c.
1799 (get_value_type): Rename it varobj_get_value_type. Make it
1800 extern.
1801 (get_target_type): Move it gdbtypes.c.
1802 (varobj_formatted_print_options): New function.
1803 (value_get_print_value): Rename it to
1804 varobj_value_get_print_value and make it extern.
1805 (varobj_value_is_changeable_p): Make it extern.
1806 (adjust_value_for_child_access): Move it to c-varobj.c.
1807 (default_value_is_changeable_p): Rename it to
1808 varobj_default_value_is_changeable_p. Make it extern.
1809 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1810 (c_name_of_child, c_path_expr_of_child): Likewise.
1811 (c_value_of_child, c_type_of_child): Likewise.
1812 (c_value_of_variable, cplus_number_of_children): Likewise.
1813 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1814 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1815 (cplus_value_of_child, cplus_type_of_child): Likewise.
1816 (cplus_value_of_variable): Likewise.
1817 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1818 (java_name_of_child, java_path_expr_of_child): Likewise.
1819 (java_value_of_child, java_type_of_child): Likewise.
1820 (java_value_of_variable): Likewise.
1821 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1822 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1823 (ada_value_of_child, ada_type_of_child): Likewise.
1824 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1825 (ada_value_has_mutated): Likewise.
1826 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1827 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1828 (c_varobj_ops, cplus_varobj_ops): Declare.
1829 (java_varobj_ops, ada_varobj_ops): Declare.
1830 (varobj_default_value_is_changeable_p): Declare.
1831 (varobj_value_is_changeable_p): Declare.
1832 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1833 (varobj_get_path_expr_parent): Declare.
1834 (varobj_value_get_print_value): Declare.
1835 (varobj_formatted_print_options): Declare.
1836 (varobj_restrict_range): Declare.
1837
c8a62302
LM
18382013-10-17 Luis Machado <lgustavo@codesourcery.com>
1839
1840 * target/waitstatus.h (target_waitkind): Remove spurious
1841 character from the comments.
1842
eade6471
JB
18432013-10-17 Joel Brobecker <brobecker@adacore.com>
1844
1845 * gdbarch.sh (get_longjmp_target): Add method documentation.
1846 * gdbarch.h: Regenerate.
1847
5411b26c
TT
18482013-10-16 Tom Tromey <tromey@redhat.com>
1849
1850 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1851 label.
1852
87326c87
LM
18532013-10-16 Luis Machado <lgustavo@codesourcery.com>
1854
1855 * gcore.in: Call GDB using the full path to the gcore script.
1856 Error out if the GDB binary is not found.
1857
fd0a4d76
SDJ
18582013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1859
1860 PR gdb/16014
1861 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1862 sizeof.
1863
d92f7ee3
SDJ
18642013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1865
1866 PR gdb/16042
1867 * target.c (target_disable_btrace): Fix invalid return value for
1868 void function.
1869 (target_teardown_btrace): Likewise.
1870
bb5ce47a
YQ
18712013-10-14 Yao Qi <yao@codesourcery.com>
1872
1873 * varobj.c (struct varobj): Move most of the fields to
1874 varobj.h.
1875 (struct varobj_dynamic): New struct.
1876 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1877 (varobj_has_more): Likewise.
1878 (dynamic_varobj_has_child_method): Likewise.
1879 (update_dynamic_varobj_children): Likewise.
1880 (varobj_get_num_children): Likewise.
1881 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1882 (install_new_value_visualizer): Likewise.
1883 (install_new_value_visualizer, install_new_value): Likewise.
1884 (varobj_update, new_variable, free_variable): Likewise.
1885 (my_value_of_variable, value_get_print_value): Likewise.
1886 (install_visualizer): Change the type of parameter 'var' to
1887 'struct varobjd_dynamic *'. Callers update.
1888 * varobj.h (struct varobj): Moved from varobj.c.
1889 (struct varobj) <dynamic>: New field.
1890
0b76b0ce
SL
18912013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1892
1893 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1894 as the preferred name of r30.
1895 * nios2-linux-tdep.c (reg_offsets): Likewise.
1896 * features/nios2-cpu.xml: Likewise.
1897 * features/nios2-linux.c: Regenerated.
1898 * features/nios2.c: Regenerated.
1899 * regformats/nios2-linux.dat: Regenerated.
1900
4856b6bc
JK
19012013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1902
1903 Canonicalize directories for EXEC_FILENAME.
1904 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1905 exec_filename.
1906 * utils.c (gdb_realpath_keepfile): New function.
1907 * utils.h (gdb_realpath_keepfile): New declaration.
1908
9b557b58
DE
19092013-10-11 Doug Evans <dje@google.com>
1910
1911 * Makefile.in (GDBFLAGS): New variable.
1912 (run): New rule.
1913
ce13fade
JB
19142013-10-11 Joel Brobecker <brobecker@adacore.com>
1915
1916 * NEWS: Add entry documenting the new "-catch-assert" and
1917 "-catch-exception" GDB/MI commands.
1918
349774ef
JB
19192013-10-11 Joel Brobecker <brobecker@adacore.com>
1920
1921 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1922 "enabled".
1923 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1924 "enabled". Set B->ENABLE_STATE accordingly.
1925 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1926 ada-lang.c.
1927 (create_ada_exception_catchpoint): Add declaration.
1928 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1929 (create_ada_exception_catchpoint): Make non-static. Add new
1930 parameter "disabled". Use it in call to
1931 init_ada_exception_breakpoint.
1932 (catch_ada_exception_command): Add parameter "enabled" in call
1933 to create_ada_exception_catchpoint.
1934 (catch_assert_command): Likewise.
1935
1936 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1937 Add declarations.
1938 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1939 "catch-exception" commands.
1940 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1941 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1942
761269c8
JB
19432013-10-11 Joel Brobecker <brobecker@adacore.com>
1944
1945 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1946 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1947 of all its enumerates with "ada_". Update the rest of this
1948 file throughout.
1949
b4a5b78b
JB
19502013-10-11 Joel Brobecker <brobecker@adacore.com>
1951
1952 * ada-lang.c (ada_decode_exception_location): Delete.
1953 (create_ada_exception_catchpoint): Remove arguments "sal",
1954 "addr_string" and "ops". Add argument "ex_kind" instead.
1955 Adjust implementation accordingly, calling ada_exception_sal
1956 to get the entities it no longer gets passed as arguments.
1957 Document the function's arguments.
1958 (catch_ada_exception_command): Use catch_ada_exception_command_split
1959 instead of ada_decode_exception_location, and update call to
1960 create_ada_exception_catchpoint.
1961 (catch_ada_assert_command_split): Renames
1962 ada_decode_assert_location. Remove parameters "addr_string" and
1963 "ops", and now returns void. Adjust implementation accordingly.
1964 Update the function documentation.
1965 (catch_assert_command): Use catch_ada_assert_command_split
1966 instead of ada_decode_assert_location. Update call to
1967 create_ada_exception_catchpoint.
1968
7ad1d32c 19692013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1970
1971 * utils.h (perror_warning_with_name): Add declaration.
1972 * utils.c (perror_warning_with_name): New function.
1973 * cli/cli-cmds.c (source_script_with_search): Add call to
1974 perror_warning_with_name if from_tty is nul.
1975
7ad1d32c 19762013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1977
1978 * utils.c (perror_string): New function, extracted out of
1979 throw_perror_with_name.
1980 (throw_perror_with_name): Rework to use perror_string.
1981
bcc75809
YQ
19822013-10-11 Yao Qi <yao@codesourcery.com>
1983
1984 * remote.c (discard_pending_stop_replies_in_queue): Update
1985 declaration.
1986 (struct stop_reply) <rs>: New field.
1987 (remove_stop_reply_of_remote_state): New function.
1988 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1989 Callers update. Pass remove_stop_reply_of_remote_state to
1990 QUEUE_iterate.
1991 (remote_parse_stop_reply): Initialize field 'rs'.
1992
05feb193
WN
19932013-10-10 Will Newton <will.newton@linaro.org>
1994
1995 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1996 linux_init_abi.
1997
0d12017b
JB
19982013-10-10 Joel Brobecker <brobecker@adacore.com>
1999
2000 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2001 serial_baud_show_cmd.
2002 (_initialize_cli_cmds): Delete the code creating the
2003 "set/show remotebaud" commands.
2004 * serial.c (baud_rate): Move here from top.c.
2005 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2006 (_initialize_serial): Create "set/show serial baud" commands.
2007 Add "set/show remotebaud" command aliases.
2008 * top.c (baud_rate): Moved to serial.c.
2009 * NEWS: Document the new "set/show serial baud" commands,
2010 replacing "set/show remotebaud".
2011
578d3588
PA
20122013-10-09 Pedro Alves <palves@redhat.com>
2013
2014 * breakpoint.c (insert_bp_location): Use memory_error_message to
2015 build the memory error string.
2016 * c-lang.c: Include "gdbcore.h".
2017 (c_get_string): Use memory_error to throw error.
2018 (target_xfer_memory_error): Delete.
2019 (memory_error_message): New, factored out from
2020 target_xfer_memory_error.
2021 (memory_error): Change parameter type to target_xfer_error.
2022 Rewrite.
2023 (read_memory): Use memory_error instead of
2024 target_xfer_memory_error.
2025 * gdbcore.h: Include "target.h".
2026 (memory_error): Change parameter type to target_xfer_error.
2027 (memory_error_message): Declare function.
2028 * target.c (target_read_memory, target_read_stack)
2029 (target_write_memory, target_write_raw_memory): Return
2030 TARGET_XFER_E_IO on error. Adjust comments.
2031 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2032 instead of EIO.
2033 * target.h (target_read, target_insert_breakpoint)
2034 (target_remove_breakpoint): Adjust comments.
2035 * valprint.c (partial_memory_read): Rename parameter, and adjust
2036 comment.
2037 (val_print_string): Use memory_error_message to build the memory
2038 error string.
2039
c74e1ccf
JK
20402013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2043 result variable. Rename variable fopen_e_ever_failed to
2044 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2045
915215be
PA
20462013-10-09 Pedro Alves <palves@redhat.com>
2047
2048 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2049 (monitor_write_memory_longlongs, monitor_write_memory_block):
2050 Constify 'myaddr' parameter.
2051 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2052 helper.
2053 (monitor_xfer_partial): New function.
2054 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2055 hook. Install a to_xfer_partial hook.
2056
acd13123
TT
20572013-10-09 Tom Tromey <tromey@redhat.com>
2058
2059 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2060 bfd_get_alt_debug_link_info.
2061
40135bb1
JK
20622013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2063
2064 New flag OBJF_NOT_FILENAME.
2065 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2066 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2067 allocate_objfile.
2068 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2069 symbol_file_add_from_bfd.
2070 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2071 allocate_objfile.
2072 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2073 NULL.
2074 * objfiles.h (OBJF_NOT_FILENAME): New.
2075
dc294be5
TT
20762013-10-08 Tom Tromey <tromey@redhat.com>
2077
2078 * Makefile.in (SFILES): Add build-id.c.
2079 (HFILES_NO_SRCDIR): Add build-id.h.
2080 * build-id.c: New file, largely from elfread.c. Modified
2081 most functions.
2082 * build-id.h: New file.
2083 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2084 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2085 Search for dwz file using build-id.
2086 * elfread.c (build_id_bfd_get, build_id_verify)
2087 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2088
db230ce3
JB
20892013-10-08 Joel Brobecker <brobecker@adacore.com>
2090
2091 * ada-lang.c (compare_names_with_case): Renamed from
2092 compare_names, adding a new parameter "casing" and its handling.
2093 New function documentation.
2094 (compare_names): New function, implemented using
2095 compare_names_with_case.
2096
6501c98a
JB
20972013-10-08 Joel Brobecker <brobecker@adacore.com>
2098
2099 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2100
84a1243b
TT
21012013-10-07 Tom Tromey <tromey@redhat.com>
2102
2103 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2104 demangled_names_hash.
2105 (free_objfile): Don't delete the demangled_names_hash.
2106 * objfiles.h (struct objfile_per_bfd_storage)
2107 <demangled_names_hash>: New field.
2108 (struct objfile) <demangled_names_hash>: Move to
2109 objfile_per_bfd_storage.
2110 * symfile.c (reread_symbols): Don't delete the
2111 demangled_names_hash.
2112 * symtab.c (create_demangled_names_hash): Update.
2113 (symbol_set_names): Update.
2114
1da77581
TT
21152013-10-07 Tom Tromey <tromey@redhat.com>
2116
2117 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2118 needs_relocations>: New fields.
2119 (gdb_bfd_requires_relocations): New function.
2120 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2121 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2122 the BFD needs relocations applied.
2123
46ecd527
PA
21242013-10-07 Pedro Alves <palves@redhat.com>
2125
2126 PR breakpoints/11568
2127 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2128 the thread list" instead of "gone".
2129
0c557179
SDJ
21302013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2131
2132 * NEWS: Mention new convenience variable $_exitsignal.
2133 * corelow.c (core_open): Reset exit convenience variables. Set
2134 $_exitsignal to the uncaught signal which generated the corefile.
2135 * infrun.c (handle_inferior_event): Reset exit convenience
2136 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2137 (clear_exit_convenience_vars): New function.
2138 * inferior.h (clear_exit_convenience_vars): New prototype.
2139
1cc47d81
YQ
21402013-10-06 Yao Qi <yao@codesourcery.com>
2141
2142 * varobj.h: Add comments to enum varobj_languages.
2143
73869dc2
DE
21442013-10-04 Doug Evans <dje@google.com>
2145
2146 Add support for DWP file format version 2.
2147 * NEWS: Mention support for DWP file format version 2.
2148 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2149 union of asection, containing_section. New fields virtual_offset
2150 and is_virtual. Change type of readin filed from int to char.
2151 (dwo_sections, dwo_file): Tweak comments.
2152 (dwp_v2_section_ids): New enum.
2153 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2154 str_offsets, types.
2155 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2156 All uses updated.
2157 (virtual_v2_dwo_sections): New struct.
2158 (dwp_hash_table): New fields version, nr_columns. Change type of
2159 section_pool field to a union.
2160 (dwp_file): New field version.
2161 (dwarf2_has_info): Check for virtual sections.
2162 (get_containing_section): New function.
2163 (get_section_bfd_owner, get_section_bfd_section): Call it.
2164 (dwarf2_locate_sections): Update.
2165 (dwarf2_section_empty_p): Update.
2166 (dwarf2_read_section): Handle virtual sections.
2167 (locate_dwz_sections): Update.
2168 (create_dwp_hash_table): Document and handle V2 format.
2169 (locate_v1_virtual_dwo_sections): Renamed from
2170 locate_virtual_dwo_sections and update. All callers updated.
2171 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2172 Delete arg htab. Rename arg section_index to unit_index.
2173 All callers updated.
2174 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2175 All uses updated.
2176 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2177 (lookup_dwo_unit_in_dwp): Add V2 support.
2178 (dwarf2_locate_dwo_sections): Update.
2179 (dwarf2_locate_common_dwp_sections): Renamed from
2180 dwarf2_locate_dwp_sections and update. All callers updated.
2181 (dwarf2_locate_v2_dwp_sections): New function.
2182 (open_and_init_dwp_file): Add V2 support.
2183 (read_str_index): New locals str_section, str_offsets_section.
2184
9a2c3737
PA
21852013-10-04 Pedro Alves <palves@redhat.com>
2186
2187 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2188 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2189 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2190 describing comments with references to ptid.h.
2191 * common/ptid.h: Remove intro description of constructors,
2192 accessors and predicates.
2193 (struct ptid): Reformat.
2194 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2195 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2196 describing comments.
2197
f5371440
JB
21982013-10-04 Joel Brobecker <brobecker@adacore.com>
2199
2200 * aix-thread.c (sync_threadlists): Add missing ')' in call
2201 to ptid_build.
2202
793e1c06
JB
22032013-10-04 Joel Brobecker <brobecker@adacore.com>
2204
2205 * procfs.c (procfs_init_inferior): Fix typo causing the build
2206 to fail.
2207
26f0edc1
JB
22082013-10-04 Joel Brobecker <brobecker@adacore.com>
2209
2210 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2211
5713b9b5
JB
22122013-10-04 Joel Brobecker <brobecker@adacore.com>
2213
2214 * mi/mi-main.c (run_one_inferior): Add function description.
2215 Make ARG a pointer to an integer whose value determines whether
2216 we should "run" or "start" the program.
2217 (mi_cmd_exec_run): Add handling of the "--start" option.
2218 Reject all other command-line options.
2219 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2220
f48ff2a7
YQ
22212013-10-04 Yao Qi <yao@codesourcery.com>
2222
2223 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2224 (struct notif_client) <pending_event>: Moved
2225 to struct remote_notif_state.
2226 <id>: New field.
2227 (struct remote_notif_state) <pending_event>: New field.
2228 (notif_event_xfree): Declare.
2229 * remote-notif.c (handle_notification): Adjust.
2230 (notif_event_xfree): New function.
2231 (do_notif_event_xfree): Call notif_event_xfree.
2232 (remote_notif_state_xfree): Call notif_event_xfree to free
2233 each element in field pending_event.
2234 * remote.c (discard_pending_stop_replies): Remove declaration.
2235 (discard_pending_stop_replies_in_queue): Declare.
2236 (remote_close): Call discard_pending_stop_replies_in_queue
2237 instead of discard_pending_stop_replies.
2238 (remote_start_remote): Adjust.
2239 (stop_reply_xfree): Call notif_event_xfree.
2240 (notif_client_stop): Adjust initialization.
2241 (remote_notif_remove_all): Rename it to ...
2242 (remove_stop_reply_for_inferior): ... this. Update comments.
2243 Don't check INF is NULL.
2244 (discard_pending_stop_replies): Return early if notif_state is
2245 NULL. Adjust. Don't check INF is NULL.
2246 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2247 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2248 (remote_wait_ns): Likewise.
2249
5965e028
YQ
22502013-10-04 Yao Qi <yao@codesourcery.com>
2251
2252 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2253 (notif_queue): Remove.
2254 (remote_notif_process): Add one parameter 'notif_queue'.
2255 Update comments. Callers update.
2256 (remote_async_get_pending_events_token): Remove.
2257 (remote_notif_register_async_event_handler): Remove.
2258 (remote_notif_unregister_async_event_handler): Remove.
2259 (handle_notification): Add parameter 'notif_queue'. Update
2260 comments. Callers update.
2261 (notif_xfree): Remove.
2262 (remote_notif_state_allocate): New function.
2263 (remote_notif_state_xfree): New function.
2264 (_initialize_notif): Remove code to allocate queue.
2265 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2266 (struct remote_notif_state): New.
2267 (handle_notification): Update declaration.
2268 (remote_notif_process): Likewise.
2269 (remote_notif_register_async_event_handler): Remove.
2270 (remote_notif_unregister_async_event_handler): Remove.
2271 (remote_notif_state_allocate): Declare.
2272 (remote_notif_state_xfree): Declare.
2273 * remote.c (struct remote_state) <notif_state>: New field.
2274 (remote_close): Don't call
2275 remote_notif_unregister_async_event_handler. Call
2276 remote_notif_state_xfree.
2277 (remote_open_1): Don't call
2278 remote_notif_register_async_event_handler. Call
2279 remote_notif_state_allocate.
2280
5e5ac9a5
YQ
22812013-10-04 Yao Qi <yao@codesourcery.com>
2282
2283 * varobj.c (create_child_with_value): Remove 'const' from the
2284 type of parameter 'name'.
2285 (varobj_add_child): Likewise.
2286 (install_dynamic_child): Remove 'const' from the type of
2287 parameter 'name'.
2288 (varobj_add_child): Likewise.
2289 (create_child_with_value): Likewise. Update comments. Don't
2290 duplicate 'name'.
2291 (update_dynamic_varobj_children): Duplicate 'name'
2292 and pass it to install_dynamic_child.
2293
06ab7b19
PM
22942013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2295
2296 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2297 conversion logic to occur after PyLong_Check. Comment on order
2298 change significance.
2299 * python/py-arch.c (archpy_disassemble): Comment on order of
2300 conversion for integers and longs.
2301
8ae377e8
PA
23022013-10-03 Pedro Alves <palves@redhat.com>
2303
2304 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2305 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2306 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2307 PTRACE_O_TRACEFORK is not supported.
2308 (linux_test_for_tracesysgood): New function.
2309 (linux_test_for_tracefork): New function, factored out from
2310 linux_check_ptrace_features, and also don't kill child_pid here.
2311
b1328b1b
TG
23122013-10-03 Tristan Gingold <gingold@adacore.com>
2313
2314 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2315 Remove verbose error reporting. Use detected state to
2316 thread_set_state call.
2317 (i386_darwin_dr_get): Fix return type. Remove verbose error
2318 report.
2319 Remove trailing spaces.
2320
901461f8
PA
23212013-10-02 Pedro Alves <palves@redhat.com>
2322
2323 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2324 val_print_optimized_out.
2325 * jv-valprint.c (java_print_value_fields): Likewise.
2326 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2327 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2328 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2329 new optimized out value.
2330 * findvar.c (address_from_register): Likewise.
2331 * frame.c (put_frame_register): Tweak error string to say the
2332 register was not saved, rather than optimized out.
2333 * infcmd.c (default_print_one_register_info): Adjust call to
2334 val_print_optimized_out. Use value_of_register instead of
2335 get_frame_register_value.
2336 * mi/mi-main.c (output_register): Use value_of_register instead of
2337 get_frame_register_value.
2338 * valprint.c (valprint_check_validity): Likewise.
2339 (val_print_optimized_out): New value parameter. If the value is
2340 lval_register, print <not saved> instead.
2341 (value_check_printable, val_print_scalar_formatted): Adjust calls
2342 to val_print_optimized_out.
2343 * valprint.h (val_print_optimized_out): New value parameter.
2344 * value.c (struct value) <optimized_out>: Extend comment.
2345 (error_value_optimized_out): New function.
2346 (require_not_optimized_out): Use it. Use a different string for
2347 lval_register values.
2348 * value.h (error_value_optimized_out): New declaration.
2349 * NEWS: Mention <not saved>.
2350
042a84d9
JB
23512013-10-02 Joel Brobecker <brobecker@adacore.com>
2352
2353 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2354 strcmp to compare two symtab filenames.
2355
6b9780fb
JB
23562013-10-02 Joel Brobecker <brobecker@adacore.com>
2357
2358 * symtab.c (search_symbols_equal): Delete.
2359 (sort_search_symbols_remove_dups): Replace call to
2360 search_symbols_equal by call to compare_search_syms,
2361 adjusting as necessary.
2362
751e7549
PM
23632013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2364
2365 PR python/15579
751e7549
PM
2366 * python/python.c: Document gdb.execute command in Python help.
2367
1efd7661
PM
23682013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2369
2370 * python/py-frame.c (frame_info_to_frame_object): Use
2371 gdbpy_convert_exception. Clean up Python object on failure.
2372
562fc849
PM
23732013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2374
2375 * python/lib/gdb/command/frame_filters.py
2376 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2377 (ShowFrameFilterPriority.invoke): Ditto.
2378
d7561cbb
KS
23792013-10-01 Keith Seitz <keiths@redhat.com>
2380
2381 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2382 (parse_linespec): Make 'argptr' const.
2383 Remove temporary cast of 'argptr' to const char **.
2384 (decode_line_full): Pass const pointer to parse_linespec.
2385 (decode_line_1): Likewise.
2386 (decode_objc): Make local variable 'new_argptr' const.
2387 (find_function_symbols): Remove temporary cast to char *
2388 to find_imps.
2389 * objc-lang.c (find_imps): Make argument 'method' const.
2390 Return const.
2391 * objc-lang.h (find_imps): Likewise.
2392
23932013-10-01 Keith Seitz <keiths@redhat.com>
2394
2395 * completer.c (skip_quoted_chars): Make all arguments const.
2396 Return const.
2397 (skip_quoted): Likewise.
2398 * completer.h (skip_quoted_chars): Likewise.
2399 (skip_quoted): Likewise.
2400 * defs.h (skip_quoted): Remove duplicate declaration.
2401 * jv-exp.y: Include completer.h.
2402 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2403 * p-exp.y: Include completer.h.
2404
24052013-10-01 Keith Seitz <keiths@redhat.com>
2406
2407 * c-exp.y (parse_number): Make first argument const.
2408 Make a copy of the input to manipulate.
2409 (c_parse_escape): Make first argument const.
2410 Make local variable 'tokptr' const.
2411 (parse_string_or_char): Make first two arguments const.
2412 (macro_original_text): Make const.
2413 (lex_one_token): Make local variable 'tokstart' const.
2414 Likewise for local variables named 'p'.
2415 Cast away const for struct stoken (temporary).
2416 * c-lang.h (c_parse_escpae): Make first argument const.
2417 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2418 const.
2419 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2420 var_string case.
2421 * f-exp.y (parse_number): Make first argument const.
2422 (match_string_literal): Make local variable 'tokstart'
2423 const.
2424 (yylex): Make local variable 'p' const.
2425 Cast away const for struct stoken (temporary).
2426 * go-exp.y (parse_number): Make first argument const.
2427 (parse_string_or_char): Likewise.
2428 Make local variable 'tokstart' const.
2429 (lex_one_token): Likewise for numerous locals called 'p'.
2430 Cast away const for struct stoken (temporary).
2431 * jv-exp.y (parse_number): Make first argument const.
2432 Make local variables 'tokstart' and 'tokptr' const.
2433 Cast away const for call to skip_quoted (temporary).
2434 (yylex): Make local variable 'p' const.
2435 Cast away const for struct stoken (temporary).
2436 * m2-exp.y (parse_number): Make local variable 'p' const.
2437 (yylex): Likewise for 'tokstart'.
2438 Cast away const for struct stoken (temporary).
2439 Make local variable 'p' const.
2440 * macroexp.c (get_character_constant): Pass a const string
2441 to c_parse_escape.
2442 (get_string_literal): Likewise.
2443 (macro_expand_next): Make first argument const.
2444 Cast away const for init_shared_buffer.
2445 * macroexp.h (macro_expand_next): Make first argument const.
2446 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2447 Pass a const string to c_parse_escape.
2448 Make local variables 'p' and 'namestart' const.
2449 * parse.c (lexptr): Make const.
2450 (prev_lexptr): Likewise.
2451 (find_template_name_end): Return const.
2452 Make argument const, too.
2453 (parse_exp_in_context): Make first argument const.
2454 Remove the entire const_hack.
2455 (parse_exp_in_context_1): Make first argument const.
2456 * parser-defs.h (find_template_name_end): Return const.
2457 Make argument const, too.
2458 (lexptr): Make const.
2459 (prev_lexptr): Likewise.
2460 * utils.c (parse_escape): Make second argument const.
2461 * utils.h (parse_escape): Likewise.
2462
24632013-10-01 Keith Seitz <keiths@redhat.com>
2464
2465 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2466 is now const.
2467 (block_lookup): Make 'raw_name' and 'name' const.
2468 * ada-lex.l (processString): Update for struct stoken.ptr.
2469 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2470 (operator_stoken): Likewise.
2471 (lex_one_token): Remove temporary cast to char * for
2472 'yylval.sval.ptr'.
2473 * f-exp.y (yylex): Likewise.
2474 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2475 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2476 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2477 'yylval.sval.ptr'.
2478 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2479 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2480 * linespec.c (struct ls_parser): Make 'stream' const.
2481 (find_parameter_list_end): Make argument 'input' and local
2482 variable 'p' const.
2483 (linespec_lexer_lex_string): Make local variables 'start' and
2484 'p' const.
2485 Use skip_spaces_const instead of skip_spaces.
2486 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2487 const.
2488 (parse_linespec): Temporarily cast 'argptr' to const for
2489 'parser->lexer.stream'.
2490 * m2-exp.y (yylex): Remove temporary cast to char * for
2491 'yylval.sval.ptr'.
2492 * objc-lang.c (add_msglist): Make local variable 'p' const.
2493 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2494 (exp : STRING): Make 'sp' const.
2495 (parse_number): Make argument 'p' const.
2496 * parser-defs.h (struct stoken): Make 'ptr' const.
2497
193a8eac
DE
24982013-10-01 Doug Evans <dje@google.com>
2499
2500 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2501
2213e2be
YQ
25022013-10-01 Yao Qi <yao@codesourcery.com>
2503
2504 * varobj.c (c_value_of_root): Remove declaration.
2505 (cplus_value_of_root, java_value_of_root): Likewise.
2506 (ada_value_of_root): Likewise.
2507 (struct language_specific) <value_of_root>: Remove.
2508 (languages): Update initialization.
2509 (check_scope): Move earlier.
2510 (c_value_of_root): Move earlier and rename to ...
2511 (value_of_root_1): ... this.
2512 (value_of_root): Caller update.
2513 (cplus_value_of_root, java_value_of_root): Remove.
2514 (ada_value_of_root): Remove.
2515
c573f273
YQ
25162013-10-01 Yao Qi <yao@codesourcery.com>
2517
2518 * varobj.c (varobj_format_string): Remove "unknown".
2519 (languages): Remove the first element.
2520 * varobj.h (enum varobj_languages): Remove vlang_c.
2521
56250258
YQ
25222013-10-01 Yao Qi <yao@codesourcery.com>
2523
2524 * varobj.c (struct language_specific) <language>: Remove.
2525 (languages): Update the initialization.
2526
29f9ebfa
YQ
25272013-10-01 Yao Qi <yao@codesourcery.com>
2528
2529 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2530 "solib-target.h". Include "windows-tdep.h".
2531 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2532 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2533 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2534 windows-tdep.o to gdb_target_obs.
2535
64870a42
YQ
25362013-10-01 Yao Qi <yao@codesourcery.com>
2537
2538 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2539 "solib-target.h".
2540 (amd64_windows_init_abi): Don't call set_solib_ops and
2541 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2542 windows_init_abi instead.
2543 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2544 "solib-target.h".
2545 (i386_cygwin_init_abi): Don't call set_solib_ops,
2546 set_gdbarch_has_dos_based_file_system and
2547 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2548 windows_init_abi instead.
2549 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2550 (windows_init_abi): New function.
2551 (windows_iterate_over_objfiles_in_search_order): Make it
2552 static.
2553 * windows-tdep.h (windows_init_abi): Declare.
2554 (windows_iterate_over_objfiles_in_search_order): Remove
2555 declaration.
2556
0aebdefa
JB
25572013-10-01 Jerome Guitton <guitton@adacore.com>
2558
2559 Checked in by Joel Brobecker <brobecker@adacore.com>
2560 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2561 incomplete dictionnary instead of None in case of missing
2562 environment variables.
2563 (elinos_init): in case of an incomplete environment, best
2564 effort to load system libraries instead of abort.
2565
1c8e84b0
JB
25662013-10-01 Joel Brobecker <brobecker@adacore.com>
2567
2568 * ada-lang.c (ada_has_this_exception_support): Ignore
2569 mst_solib_trampoline minimal symbols.
2570
61d82a0d
TG
25712013-09-30 Tristan Gingold <gingold@adacore.com>
2572
2573 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2574 hardware watchpoint.
2575 (i386_darwin_dr_set): Support 32 and 64 bit states.
2576 (i386_darwin_dr_get): Likewise.
2577 (i386_darwin_dr_set_control): Make static.
2578 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2579 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2580
dfd4cc63
LM
25812013-09-30 Luis Machado <lgustavo@codesourcery.com>
2582
2583 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2584 Replace TIDGET with ptid_get_lwp.
2585 Replace GET_LWP with ptid_get_lwp.
2586 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2587 Replace BUILD_THREAD with ptid_build.
2588 Replace BUILD_LWP with ptid_build.
2589 Replace PIDGET with ptid_get_pid.
2590 Replace TIDGET with ptid_get_lwp.
2591 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2592 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2593 Replace TIDGET with ptid_get_lwp.
2594 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2595 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2596 Replace TIDGET with ptid_get_lwp.
2597 Replace GET_LWP with ptid_get_lwp.
2598 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2599 * auxv.c: Likewise.
2600 * breakpoint.c: Likewise.
2601 * common/ptid.c (ptid_is_pid): Condense check for
2602 null_ptid and minus_one_ptid.
2603 (ptid_lwp_p): New function.
2604 (ptid_tid_p): New function.
2605 * common/ptid.h: Update comments for accessors.
2606 (ptid_lwp_p): New prototype.
2607 (ptid_tid_p): New prototype.
2608 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2609 * gcore.c: Replace PIDGET with ptid_get_pid.
2610 * gdbthread.h: Likewise.
2611 * gnu-nat.c: Likewise.
2612 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2613 Replace TIDGET with ptid_get_lwp.
2614 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2615 * hppanbsd-nat.c: Likewise.
2616 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2617 Replace TIDGET with ptid_get_lwp.
2618 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2619 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2620 * infcmd.c: Likewise.
2621 * inferior.h: Likewise.
2622 * inflow.c: Likewise.
2623 * infrun.c: Likewise.
2624 * linux-fork.c: Likewise.
2625 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2626 Replace GET_PID with ptid_get_pid.
2627 Replace is_lwp with ptid_lwp_p.
2628 Replace GET_LWP with ptid_get_lwp.
2629 Replace BUILD_LWP with ptid_build.
2630
5b4e221c
MF
26312013-09-28 Mike Frysinger <vapier@gentoo.org>
2632
2633 * common/linux-btrace.c: Move sys/syscall.h out of the
2634 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2635 Also check for SYS_perf_event_open before attempting to buid.
2636
57d63ce2
DE
26372013-09-27 Doug Evans <dje@google.com>
2638
19ac8c2e
DE
2639 * dwarf2read.c (dwarf2_section_info): Add comment.
2640 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2641 All uses updated.
2642 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2643 (dwarf2_read_section): Delete unused local "header". Add section
2644 name to error message.
2645 (create_dwo_in_dwp): Tweak comment.
2646 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2647
a32a8923
DE
2648 * dwarf2read.c (die_reader_specs): Tweak comment.
2649 (get_section_bfd_owner, get_section_bfd_section): New functions.
2650 (get_section_name, get_section_file_name): New functions.
2651 (get_section_id, get_section_flags): New functions.
2652 (*): Use new functions to access section fields.
2653
57d63ce2
DE
2654 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2655 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2656 arg "htab". All callers updated.
2657 (create_debug_types_hash_table): Remove redundant copy of
2658 abbrev_section.
2659 (create_dwo_in_dwp): Tweak comments.
2660 (read_str_index): Tweak comment. Record dwarf form name in static
2661 local.
2662
3736004f
PA
26632013-09-27 Pedro Alves <palves@redhat.com>
2664
2665 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2666 (remote_filename_p): Add comment.
2667 * remote.c (remote_filename_p): Adjust to use
2668 REMOTE_SYSROOT_PREFIX.
2669 * solib.c (solib_find): When deciding whether we need to add a
2670 directory separator, check whether the sysroot is "remote:"
2671 instead of checking whether the patch has a drive spec. Add
2672 comments.
2673
5b5596ff
PA
26742013-09-27 Pedro Alves <palves@redhat.com>
2675
2676 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2677 Delete fields.
2678 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2679 directly.
2680
b5eef7aa
JK
26812013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2682
2683 Fix set debug frame output.
2684 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2685 SENTINEL_FRAME entry lower to match enum frame_type order.
2686
5b856f36
PM
26872013-09-26 Pierre Muller <muller@sourceware.org>
2688
2689 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2690 AMD64_R15_REGNUM when a register index is expected.
2691 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2692 Substitute in array.
2693 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2694 (amd64_push_arguments): Substitute in integer_regnum array.
2695
ade7ed9e
DE
26962013-09-25 Doug Evans <dje@google.com>
2697
d3e81981
DE
2698 * objfiles.c (allocate_objfile): Move comment to better place.
2699
8fb8eb5c
DE
2700 New option "set debug symfile on".
2701 * NEWS: Mention "set debug symfile".
2702 * Makefile.in (SFILES): Add symfile-debug.c.
2703 (COMMON_OBS): Add symfile-debug.o.
2704 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2705 objfile's symbol functions.
2706 * objfiles.h (objfile_set_sym_fns): Declare.
2707 * symfile-debug.c: New file.
2708 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2709 objfile's symbol functions.
2710 (reread_symbols): Ditto.
2711
c256e171
DE
2712 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2713 All uses updated.
2714 (add_symtab_fns): Update prototype.
2715 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2716 (registered_sym_fns): ... this.
2717 (symtab_fns): Update.
2718 (add_symtab_fns): New arg "flavour". All callers updated.
2719 (find_sym_fns): Rewrite to use new sym_fns registry.
2720
f56ce883
DE
2721 * symfile.h (struct sym_fns): Add "objfile" argument to
2722 sym_read_linetable. All uses updated.
2723
20c681d1
DE
2724 * symtab.c (domain_name, search_domain_name): New functions.
2725 * symtab.h (domain_name, search_domain_name): Declare.
2726
ade7ed9e
DE
2727 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2728 map_matching_symbols so objfile is first. All uses updated.
2729 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2730 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2731
7d760051
UW
27322013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2733
2734 PR shlibs/8882
2735 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2736 link map entries.
2737
020f7036
DE
27382013-09-24 Doug Evans <dje@google.com>
2739
2740 * objfiles.c (free_objfile): Move comment.
2741
598402f0
JB
27422013-09-24 Joel Brobecker <brobecker@adacore.com>
2743
2744 * ada-exp.y (string_to_operator): Delete.
2745 (dummy_string_to_ada_operator): Delete.
2746
bf4d6c1c
JB
27472013-09-24 Joel Brobecker <brobecker@adacore.com>
2748
2749 Revert:
2750 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2751 amd64-tdep.c.
2752 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2753 call_dummy_integer_regs, and classify.
2754 * amd64-tdep.h (amd64_classify): Add declaration.
2755 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2756 (amd64_reg_class): Delete, moved to i386-tdep.h.
2757 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2758 Replace call to amd64_classify by call to tdep->classify.
2759 (amd64_push_arguments): Get the list of registers to use for
2760 passing integer parameters from the gdbarch tdep structure,
2761 rather than using a hardcoded one. Replace calls to amd64_classify
2762 by calls to tdep->classify.
2763 (amd64_push_dummy_call): Get the register number used for
2764 the "hidden" argument from tdep->call_dummy_integer_regs.
2765 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2766 and tdep->call_dummy_integer_regs. Set tdep->classify.
2767
849e9755
JB
27682013-09-24 Joel Brobecker <brobecker@adacore.com>
2769
2770 Revert:
2771 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2772 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2773 where tdep->memory_args_by_pointer is non-zero.
2774
c1459fd6
JB
27752013-09-24 Joel Brobecker <brobecker@adacore.com>
2776
2777 Revert:
2778 * i386-tdep.h (struct gdbarch_tdep): Add new field
2779 integer_param_regs_saved_in_caller_frame.
2780 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2781 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2782
20c2e3e0
JB
27832013-09-24 Joel Brobecker <brobecker@adacore.com>
2784
874440b8 2785 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2786 (amd64_windows_classify): Delete.
2787 (amd64_windows_passed_by_integer_register)
2788 (amd64_windows_passed_by_xmm_register)
2789 (amd64_windows_passed_by_pointer)
2790 (amd64_windows_adjust_args_passed_by_pointer)
2791 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2792 (amd64_windows_push_dummy_call): New functions.
2793 (amd64_windows_init_abi): Remove setting of
2794 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2795 tdep->classify, tdep->memory_args_by_pointer and
2796 tdep->integer_param_regs_saved_in_caller_frame.
2797 Add call to set_gdbarch_push_dummy_call.
2798
82bf32bc
JK
27992013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2800
2801 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2802 objfile->original_name.
2803
24ba069a
JK
28042013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
2806 Pass down original filename for objfile.
2807 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2808 * elfread.c (elf_symfile_read): Likewise.
2809 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2810 longer set ORIGINAL_NAME.
2811 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2812 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2813 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2814 symbol_file_add_from_bfd call.
2815 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2816 (macho_check_dsym): Add parameter filenamep. Change function comment.
2817 Set *filenamep.
2818 (macho_symfile_read): New variable dsym_filename. Update
2819 macho_check_dsym call. Use it for symbol_file_add_separate.
2820 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2821 it. Use it for objfile->original_name.
2822 (objfile_name): Return OBFD's filename, if available.
2823 * objfiles.h (allocate_objfile): Add new parameter name.
2824 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2825 * symfile-mem.c (symbol_file_add_from_memory): Update
2826 symbol_file_add_from_bfd call.
2827 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2828 comment for it.
2829 (symbol_file_add_with_addrs): New parameter name, add function comment
2830 for it. Remove variable name. Update allocate_objfile call.
2831 (symbol_file_add_separate): New parameter name, add function comment
2832 for it. Update symbol_file_add_with_addrs call.
2833 (symbol_file_add_from_bfd): New parameter name. Update
2834 symbol_file_add_with_addrs call.
2835 (symbol_file_add): Update symbol_file_add_from_bfd call.
2836 (reread_symbols): New variable original_name. Save
2837 objfile->original_name by it.
2838 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2839 second parameter.
2840
4262abfb
JK
28412013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2842
2843 Code cleanup: Add objfile_name accessor function.
2844 * ada-lang.c (is_known_support_routine): Use objfile_name.
2845 * auto-load.c (source_gdb_script_for_objfile)
2846 (auto_load_objfile_script): Likewise.
2847 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2848 * dbxread.c (dbx_symfile_read): Likewise.
2849 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2850 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2851 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2852 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2853 (lookup_dwp_signatured_type, lookup_dwo_unit)
2854 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2855 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2856 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2857 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2858 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2859 (read_subrange_type, load_partial_dies, read_partial_die)
2860 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2861 (die_containing_type, build_error_marker_type, lookup_die_type)
2862 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2863 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2864 (get_DW_AT_signature_type, write_psymtabs_to_index)
2865 (save_gdb_index_command): Likewise.
2866 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2867 Likewise.
2868 * expprint.c (dump_subexp_body_standard): Likewise.
2869 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2870 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2871 original_name.
2872 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2873 obj_name, use objfile_name for it, use the variable.
2874 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2875 Use objfile_name.
2876 * machoread.c (macho_symtab_read, macho_check_dsym)
2877 (macho_symfile_relocate): Likewise.
2878 * maint.c (maintenance_translate_address): Likewise.
2879 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2880 * minsyms.c (install_minimal_symbols): Likewise.
2881 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2882 original_name.
2883 (filter_overlapping_sections): Use objfile_name.
2884 (objfile_name): New function.
2885 * objfiles.h (struct objfile): Rename field name to original_name.
2886 (objfile_name): New prototype.
2887 * printcmd.c (sym_info, address_info): Use objfile_name.
2888 * probe.c (parse_probes, collect_probes, compare_probes)
2889 (info_probes_for_ops): Likewise.
2890 * progspace.c (clone_program_space): Likewise.
2891 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2892 (maintenance_info_psymtabs): Likewise.
2893 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2894 (source_section_scripts): Likewise.
2895 * python/py-objfile.c (objfpy_get_filename): Likewise.
2896 * python/py-progspace.c (pspy_get_filename): Likewise.
2897 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2898 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2899 * solib.c (solib_read_symbols): Likewise.
2900 * stabsread.c (scan_file_globals): Likewise.
2901 * stap-probe.c (handle_stap_probe): Likewise.
2902 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2903 (find_separate_debug_file_by_debuglink): Likewise.
2904 (reread_symbols): Likewise. Use the objfile field name renamed to
2905 original_name.
2906 (allocate_symtab): Use objfile_name.
2907 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2908 (dump_objfile, dump_msymbols, dump_symtab_1)
2909 (maintenance_print_msymbols, maintenance_print_objfiles)
2910 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2911 * target.c (target_translate_tls_address, target_info): Likewise.
2912 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2913 objfile_name.
2914
4721dc18
JK
29152013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 Code cleanup.
2918 * probe.c (parse_probes): Rename variable objfile_name to
2919 objfile_namestr.
2920
a61d6db8
JK
29212013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 Remove solib-sunos.c.
2924 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2925 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2926 * objfiles.c (rt_common_objfile): Remove.
2927 (free_objfile): Remove rt_common_objfile comparison.
2928 * objfiles.h (rt_common_objfile): Remove.
2929 * solib-sunos.c: Remove.
2930 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2931
2659903b
JK
29322013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2933
2934 Remove a.out NetBSD and OpenBSD hosts.
2935 * NEWS (Removed native configurations): New.
2936 * config/arm/nbsdaout.mh: Remove.
2937 * config/i386/nbsdaout.mh: Remove.
2938 * config/i386/obsdaout.mh: Remove.
2939 * config/m68k/nbsdaout.mh: Remove.
2940 * config/sparc/nbsdaout.mh: Remove.
2941 * config/vax/nbsdaout.mh: Remove.
2942 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2943 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2944 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2945 error.
2946 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2947 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2948 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2949
f60e2d5c
TT
29502013-09-23 Tom Tromey <tromey@redhat.com>
2951
2952 * linespec.c (struct minsym_and_objfile): Remove.
2953 (minsym_and_objfile_d): Remove.
2954 (struct linespec, struct collect_info, linespec_parse_basic)
2955 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2956 (compare_msymbols, find_method, find_function_symbols)
2957 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2958 (add_minsym, search_minsyms_for_name): Update.
2959
d3eaaf66
AB
29602013-09-23 Andrew Burgess <aburgess@broadcom.com>
2961
2962 * regcache.c: Add include of valprint.h.
2963 (dump_endian_bytes): Delete.
2964 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2965
2cc762b5
AB
29662013-09-23 Andrew Burgess <aburgess@broadcom.com>
2967
2968 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2969
96181529
PA
29702013-09-19 Pedro Alves <palves@redhat.com>
2971
2972 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2973 breakpoints.
2974
9b3f3ee6
TS
29752013-09-19 Pedro Alves <palves@redhat.com>
2976 Thomas Schwinge <thomas@codesourcery.com>
2977 Yue Lu <hacklu.newborn@gmail.com>
2978
2979 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2980 Take a gdb_byte pointer instead of a char pointer.
2981
2982 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2983 gnu_xfer_partial helper.
2984 (gnu_xfer_partial): New function.
2985 (gnu_target): Don't install a deprecated_xfer_memory hook.
2986 Install a to_xfer_partial hook.
2987
69150c3d
JK
29882013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2989
2990 Constification.
2991 * main.c (captured_main): Replace catch_command_errors by
2992 catch_command_errors_const. Twice.
2993 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2994 (symbol_file_add): Make name parameter const.
2995 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2996 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2997 variable name. Change their usage accordingly.
2998 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2999 const.
3000 (symbol_file_add_main): Make args parameter const.
3001
086850b2
UW
30022013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3003 Ulrich Weigand <uweigand@de.ibm.com>
3004
3005 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3006 of c_value member.
3007 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3008
ca08a94c 30092013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3010 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3011
3012 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3013 (gnu_create_inferior)
3014 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3015 (set_sig_thread_cmd): Use the lwpid field of ptids to
3016 store/extract thread ids instead of the tid field.
3017 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3018
e4c6a2c4
AB
30192013-09-18 Andrew Burgess <aburgess@broadcom.com>
3020
3021 * infcmd.c (default_print_one_register_info): Add detection of
3022 optimized out values.
3023 (default_print_registers_info): Switch to using
3024 get_frame_register_value.
3025
58c48e72
MM
30262013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3027
3028 * infrun.c (handle_inferior_event): Check if we know the
3029 function start address before setting a resume breakpoint.
3030
c8d37639
PA
30312013-09-18 Pedro Alves <palves@redhat.com>
3032
3033 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3034 minus_one_ptid instead of looking at the ptid's tid field and
3035 comparing that to -1.
3036
71926e28
AB
30372013-09-18 Andrew Burgess <aburgess@broadcom.com>
3038
3039 * main.h (get_gdb_program_name): Remove extra whitespace.
3040
c88a1531
AB
30412013-09-18 Andrew Burgess <aburgess@broadcom.com>
3042
3043 * main.h (get_gdb_program_name): Add declaration.
3044 * main.c (get_gdb_program_name): Add definition.
3045
4390d890
DE
30462013-09-17 Doug Evans <dje@google.com>
3047
3048 * dwarf2read.c: Move definitions of complaint functions to after
3049 forward declarations of local functions.
3050
49fa26b0
PA
30512013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3052 Pedro Alves <palves@redhat.com>
3053
3054 PR gdb/11568
3055 * breakpoint.c (remove_threaded_breakpoints): New function.
3056 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3057 as thread_exit observer.
3058
08d72866
PA
30592013-09-17 Pedro Alves <palves@redhat.com>
3060
3061 PR gdb/15911
3062 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3063 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3064 * corelow.c (core_open):
3065 * frame.h (print_stack_frame, print_frame_info): New
3066 'set_current_sal' parameter.
3067 * infcmd.c (finish_command, kill_command): Adjust call to
3068 print_stack_frame.
3069 * inferior.c (inferior_command): Likewise.
3070 * infrun.c (normal_stop): Likewise.
3071 * linux-fork.c (linux_fork_context): Likewise.
3072 * record-full.c (record_full_goto_entry, record_full_restore):
3073 Likewise.
3074 * remote-mips.c (common_open): Likewise.
3075 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3076 Use it.
3077 (print_frame_info): New 'set_current_sal' parameter. Set the last
3078 displayed sal depending on the new paremeter instead of looking at
3079 print_what.
3080 (backtrace_command_1, select_and_print_frame, frame_command)
3081 (current_frame_command, up_command, down_command): Adjust call to
3082 print_stack_frame.
3083 * thread.c (print_thread_info, restore_selected_frame)
3084 (do_captured_thread_select): Adjust call to print_stack_frame.
3085 * tracepoint.c (tfind_1): Likewise.
3086 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3087 (mi_cmd_stack_info_frame): Likewise.
3088 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3089 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3090
6bc305f5
SDJ
30912013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3092
3093 * value.c (isvoid_internal_fn): Replace "parameter" with
3094 "argument".
3095
0a7cfe2c
SS
30962013-09-16 Stan Shebs <stan@codesourcery.com>
3097
3098 * README: Update references to writing code for GDB.
3099 * configure.ac (build_warnings): Remove obsolete comment.
3100 * configure: Regenerate.
3101 * gdbarch.sh: Remove references to gdbint.texinfo.
3102 * gdbarch.h: Regenerate.
3103 * gdbtypes.c (objfile_type): Remove comments referencing internals
3104 manual and D10V.
3105
a280dbd1
SDJ
31062013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3107
3108 * NEWS: Mention new convenience function $_isvoid.
3109 * value.c (isvoid_internal_fn): New function.
3110 (_initialize_values): Add new convenience function $_isvoid.
3111
04a83fee
PM
31122013-09-16 Pierre Muller <muller@sourceware.org>
3113
3114 * arm-linux-tdep.c: Add "elf/common.h" header.
3115 Remove AT_HWCAP macro definintion as it is provided in
3116 added include file.
3117 * s390-tdep.c: Remove system header <elf.h>
3118 Add "elf/common.h" header for AT_HWCAP definition.
3119 (s390_core_read_description): Use correct CORE_ADDR
3120 for hwcap local variable used as third parameter
3121 of function target_auxv_search.
3122
88505fac
PM
31232013-09-14 Pierre Muller <muller@sourceware.org>
3124 Tom Tromey <tromey@redhat.com>
3125 Pedro Alves <palves@redhat.com>
3126
3127 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3128 mode if operating system doesn't know O_CLOEXEC.
3129
d3846e71
JK
31302013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 Code cleanup.
3133 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3134 inner block.
3135
4ac33720
UW
31362013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3137
3138 * NEWS: Mention TDB support.
3139 * features/s390-tdb.xml: New file.
3140 * features/s390-te-linux64.xml: New file.
3141 * features/s390x-te-linux64.xml: New file.
3142 * features/Makefile (WHICH): Add new tdescs above.
3143 (s390-te-linux64-expedite): Set.
3144 (s390x-te-linux64-expedite): Set.
3145 * features/s390-te-linux64.c: New file (generated).
3146 * features/s390x-te-linux64.c: New file (generated).
3147 * regformats/s390-te-linux64.dat: New file (generated).
3148 * regformats/s390x-te-linux64.dat: New file (generated).
3149 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3150 (HWCAP_S390_TE): Likewise.
3151 (S390_TDB_DWORD0_REGNUM): Likewise.
3152 (S390_TDB_DWORD0_REGNUM): Likewise.
3153 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3154 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3155 (S390_TDB_ATIA_REGNUM): Likewise.
3156 (S390_TDB_R0_REGNUM): Likewise.
3157 (S390_TDB_R1_REGNUM): Likewise.
3158 (S390_TDB_R2_REGNUM): Likewise.
3159 (S390_TDB_R3_REGNUM): Likewise.
3160 (S390_TDB_R4_REGNUM): Likewise.
3161 (S390_TDB_R5_REGNUM): Likewise.
3162 (S390_TDB_R6_REGNUM): Likewise.
3163 (S390_TDB_R7_REGNUM): Likewise.
3164 (S390_TDB_R8_REGNUM): Likewise.
3165 (S390_TDB_R9_REGNUM): Likewise.
3166 (S390_TDB_R10_REGNUM): Likewise.
3167 (S390_TDB_R11_REGNUM): Likewise.
3168 (S390_TDB_R12_REGNUM): Likewise.
3169 (S390_TDB_R13_REGNUM): Likewise.
3170 (S390_TDB_R14_REGNUM): Likewise.
3171 (S390_TDB_R15_REGNUM): Likewise.
3172 (S390_NUM_REGS): Increase.
3173 (S390_IS_TDBREGSET_REGNUM): New macro.
3174 (s390_regmap_tdb): Declare.
3175 (s390_sizeof_tdbregset): Define.
3176 (tdesc_s390_te_linux64): Declare.
3177 (tdesc_s390x_te_linux64): Likewise.
3178 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3179 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3180 (s390_regmap_tdb): New regmap.
3181 (s390_supply_tdb_regset): New function.
3182 (s390_tdb_regset): New regset.
3183 (s390_linux64v2_regset_sections): Add TDB regset to list.
3184 (s390x_linux64v2_regset_sections): Likewise.
3185 (s390_regset_from_core_section): Recognize TDB core note section.
3186 (s390_core_read_description): If HWCAP indicates TE support,
3187 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3188 (s390_gdbarch_init): Handle TDB regset.
3189 (_initialize_s390_tdep): Initialize new tdescs.
3190 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3191 (have_regset_tdb): New variable.
3192 (s390_native_supply): Support register invalidation.
3193 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3194 (check_regset): Treat ENODATA as "regset exists".
3195 (s390_linux_fetch_inferior_registers): Add TDB.
3196 (s390_read_description): Check for TDB existence and select
3197 appropriate tdesc.
3198 * gdbserver/Makefile.in (clean): Add removal of new makefile
3199 targets.
3200 (s390-te-linux64.c): New makefile target.
3201 (s390x-te-linux64.c): Likewise.
3202 * gdbserver/configure.srv (srv_regobj): Append new objects
3203 s390-te-linux64.o and s390x-te-linux64.o.
3204 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3205 s390x-te-linux64.xml, and s390-tdb.xml.
3206 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3207 declaration.
3208 (tdesc_s390_te_linux64): Likewise.
3209 (init_registers_s390x_te_linux64): Likewise.
3210 (tdesc_s390x_te_linux64): Likewise.
3211 (s390_check_regset): Treat ENODATA as "regset exists".
3212 (s390_arch_setup): Add TDB regset support.
3213 (initialize_low_arch): Initialize registers for new tdescs.
3214
2ccd1468
UW
32152013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3216
3217 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3218 (S390_IS_FPREGSET_REGNUM): New macro.
3219 * s390-tdep.c (s390_dwarf_regmap): Make const.
3220 (regnum_is_gpr_full): New function for replacing repeated code.
3221 (s390_pseudo_register_name): Use it.
3222 (s390_pseudo_register_type): Likewise.
3223 (s390_pseudo_register_read): Likewise.
3224 (s390_pseudo_register_write): Likewise.
3225 (s390_unwind_pseudo_register): Likewise.
3226 (s390_regmap_gregset): New format for regmap.
3227 (s390x_regmap_gregset): Likewise.
3228 (s390_regmap_fpregset): Likewise.
3229 (s390_regmap_upper): Likewise.
3230 (s390_regmap_last_break): Likewise.
3231 (s390_regmap_system_call): Likewise.
3232 (s390_supply_regset): Adjust to new regmap format.
3233 (s390_collect_regset): Likewise.
3234 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3235 (s390_native_collect): Likewise.
3236 (supply_gregset): Likewise.
3237 (fill_gregset): Likewise.
3238 (supply_fpregset): Likewise.
3239 (fill_fpregset): Likewise.
3240 (fetch_regset): Likewise.
3241 (store_regset): Likewise.
3242 (s390_linux_fetch_inferior_registers): Likewise.
3243 (s390_linux_fetch_inferior_registers): Likewise.
3244
1aa4cd77
AP
32452013-09-12 Andrew Pinski <apinski@cavium.com>
3246
3247 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3248
d91fab15
UW
32492013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3250
3251 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3252
5a5d8ead
AB
32532013-09-09 Andrew Burgess <aburgess@broadcom.com>
3254
3255 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3256
1385f66c
PA
32572013-09-06 Pedro Alves <palves@redhat.com>
3258
3259 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3260 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3261 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3262 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3263 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3264 gdb_stdlog.
3265
146ec4db
PA
32662013-09-06 Pedro Alves <palves@redhat.com>
3267
3268 * remote-sim.c (dump_mem): Constify buf parameter.
3269 gdbsim_xfer_inferior_memory): Rename to ...
3270 (gdbsim_xfer_memory): ... this. Adjust interface as
3271 target_xfer_partial helper.
3272 (gdbsim_xfer_partial): New function.
3273 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3274 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3275
fcde0081
PA
32762013-09-06 Pedro Alves <palves@redhat.com>
3277
3278 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3279 host_address_to_string, and send debug output to gdb_stdlog.
3280
749c8b38
RW
32812013-09-06 Ricard Wanderlof <ricardw@axis.com>
3282
3283 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3284 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3285 gdb_target_obs for cris target.
3286 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3287 (cris_gdbarch_init): Move calls to
3288 set_gdbarch_fetch_tls_load_module_address and
3289 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3290 Add call to gdbarch_init_osabi.
3291 * cris-linux-tdep.c: New file.
3292 * cris-tdep.h: New file.
3293
43df09d9
AB
32942013-09-06 Andrew Burgess <aburgess@broadcom.com>
3295
3296 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3297 to deprecated_init_ui_hook.
3298
4d09c5b4
AB
32992013-09-06 Andrew Burgess <aburgess@broadcom.com>
3300
3301 * cli/cli-interp.c (_initialize_cli_interp): Add a
3302 command_loop_proc to interp_procs.
3303 * event-top.c (cli_command_loop): Change signature to match
3304 interp_command_loop_ftype.
3305 * event-top.h (cli_command_loop): Same.
3306 * interps.c (interp_new): Require every interpreter to have a
3307 command_loop_proc.
3308 (current_interp_command_loop): Just call the command_loop_proc on
3309 the current interpreter.
3310 * tui/tui-interp.c (_initialize_tui_interp): Add a
3311 command_loop_proc to interp_procs.
3312
8eb3d7b6
RW
33132013-09-06 Ricard Wanderlof <ricardw@axis.com>
3314
3315 * cris-tdep.c (cris_gdbarch_init): Add call to
3316 get_gdbarch_fetch_tls_load_module_address.
3317
18b3c2f5
RW
33182013-09-06 Ricard Wanderlof <ricardw@axis.com>
3319
3320 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3321 (cris_elf_gregset_t): Rename from elf_gregset_t.
3322 (crisv32_elf_gregset_t): Adjust.
3323 (cris_supply_gregset, fetch_core_registers): Adjust.
3324
dc8636ef
RW
33252013-09-06 Ricard Wanderlof <ricardw@axis.com>
3326
3327 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3328
257e6d53
AB
33292013-09-05 Andrew Burgess <aburgess@broadcom.com>
3330
1581d8a7 3331 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3332 references in comments.
1581d8a7 3333 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3334 deprecated_command_loop_hook.
3335 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3336 setup.
1581d8a7 3337 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3338
7c33b57c
PA
33392013-09-05 Pedro Alves <palves@redhat.com>
3340
3341 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3342 local is now int instead of ULONGEST. Print it with %d
3343 instead of paddress.
3344
9f8edbd5
TG
33452013-09-05 Tristan Gingold <gingold@adacore.com>
3346
3347 * MAINTAINERS: Remove avr maintainership.
3348
d5b495b4
PA
33492013-09-05 Pedro Alves <palves@redhat.com>
3350
3351 * findvar.c (value_of_register): Rework in terms of
3352 value_of_register_lazy.
3353
40b91786
MB
33542013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3355
3356 * symfile.c (add_symbol_file_command): Remove trailing
3357 whitespaces and blank line after comment.
3358
6eed1678
PA
33592013-09-05 Pedro Alves <palves@redhat.com>
3360
3361 * tui/tui-regs.c (tui_register_format): Don't look at the
3362 register's name here. Return string representing register
3363 value instead of storing it in the data element.
3364 (tui_get_register): Compare register string representations
3365 instead of register value states and contents.
3366
8eb6bda2
PA
33672013-09-05 Pedro Alves <palves@redhat.com>
3368
3369 PR tui/15933
3370 * tui/tui-regs.c (tui_show_registers): Show registers of the
3371 selected frame, not the current frame.
3372
48b1f08c
RW
33732013-09-05 Ricard Wanderlof <ricardw@axis.com>
3374
3375 * MAINTAINERS (Write After Approval): Add myself to the list.
3376
89e63ee4
DE
33772013-09-04 Doug Evans <dje@google.com>
3378
3379 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3380 (queue_and_load_dwo_tu): New function.
3381 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3382 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3383 Make dependent_cu optional.
3384 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3385 and an older .gdb_index is in use, queue and load all its TUs too.
3386
492c0ab7
JK
33872013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3388
3389 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3390 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3391 variable search_flags.
3392 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3393 (OPF_RETURN_REALPATH): ... here.
3394 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3395 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3396 call. Twice.
3397 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3398 openp call.
3399 * solib.c (solib_find): Likewise. Four times.
3400 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3401 in the function comment and for the realpath_fptr variable.
3402 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3403 (find_and_open_source): Likewise. Twice.
3404 * symfile.c (symfile_bfd_open): Likewise, also twice.
3405
23a44de8
DE
34062013-09-04 Doug Evans <dje@google.com>
3407
3408 * progspace.c (save_current_space_and_thread): Remove unnecessary
3409 call to save_current_inferior.
3410
47061676
AB
34112013-09-04 Andrew Burgess <aburgess@broadcom.com>
3412
3413 * sh64-tdep.c (sh64_do_register): Return after printing message
3414 about unavailable register contents.
3415
41dc8db8
MB
34162013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3417 Pedro Alves <palves@redhat.com>
3418
3419 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3420 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3421 options and collapse into single conditional branch.
41dc8db8 3422
07107ca6
LM
34232013-09-03 Luis Machado <lgustavo@codesourcery.com>
3424
a7ea61cf 3425 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3426 detach_fork.
3427 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3428 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3429 * inferior.h (detach_fork): Remove.
3430 * infrun.c (detach_fork): Adjust comment and make it
3431 static.
3432 (follow_fork): Pass detach_fork parameter to
3433 target_follow_fork.
3434 * linux-nat.c (linux_child_follow_fork): New parameter
3435 detach_fork.
3436 * target.c (target_follow_fork): New parameter detach_fork.
3437 Pass detach_fork as parameter and print its value.
3438 * target.h (struct target_ops) <to_follow_fork>: New int
3439 parameter.
3440 (target_follow_fork): New parameter detach_fork.
3441
3bec2768
JB
34422013-09-03 Joel Brobecker <brobecker@adacore.com>
3443
3444 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3445 Replace sec->bfd by sec->the_bfd_section->owner.
3446
c01cbb3d
YQ
34472013-09-03 Yao Qi <yao@codesourcery.com>
3448
3449 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3450 from linux_has_shared_address_space.
3451 (linux_has_shared_address_space): Call linux_is_uclinux.
3452 * linux-tdep.h (linux_is_uclinux): Declare.
3453 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3454 linux_is_uclinux.
3455
7b00db47
YQ
34562013-09-03 Yao Qi <yao@codesourcery.com>
3457
3458 * config/djgpp/fnchange.lst: Remove entry of
3459 i386-interix-nat.c and i386-interix-tdep.c.
3460 * configure.ac: Remove '*-*-interix*'.
3461 * configure: Re-generated.
3462 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3463 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3464 obsolete comments.
3465 * osabi.c (gdb_osabi_names): Remove "Interix".
3466
0f9741f2
YQ
34672013-09-03 Yao Qi <yao@codesourcery.com>
3468
3469 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3470
1e038f67
MM
34712013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3472
3473 * record.h (record_print_flag) <record_print_src_line,
3474 record_print_insn_range>: Rename into ...
3475 (record_print_flag) <record_print_src_line,
3476 record_print_insn_range>: ... this. Update all users.
3477
9e52adf9
PM
34782013-09-02 Pierre Muller <muller@sourceware.org>
3479
3480 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3481 error code.
3482
a2388568
PM
34832013-09-02 Pierre Muller <muller@sourceware.org>
3484
3485 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3486 by use of plongest function.
3487
9058cc3a
TG
34882013-09-02 Tristan Gingold <gingold@adacore.com>
3489
3490 * NEWS: Add entry mentioning support for native Windows x64
3491 SEH data.
3492
3493 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3494 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3495 (struct amd64_windows_frame_cache): New struct.
3496 (amd64_windows_w2gdb_regnum): New global.
3497 (pc_in_range, amd64_windows_frame_decode_epilogue)
3498 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3499 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3500 (amd64_windows_frame_this_id): New functions.
3501 (amd64_windows_frame_unwind): New static global.
3502 (amd64_windows_skip_prologue): New function.
3503 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3504 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3505 with amd64_windows_skip_prologue.
3506
3161820b 35072013-08-30 Joel Brobecker <brobecker@adacore.com>
3508
3509 GDB 7.6.1 released.
3510
02457c76
PA
35112013-08-30 Pedro Alves <palves@redhat.com>
3512
3513 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3514 SRC_AND_LOC.
3515
e0162910
PA
35162013-08-30 Pedro Alves <palves@redhat.com>
3517
3518 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3519 warning text.
3520
6391ce51
PA
35212013-08-30 Pedro Alves <palves@redhat.com>
3522
3523 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3524 Adjust arguments to print_stack_frame.
3525
d1da0587
PA
35262013-08-30 Pedro Alves <palves@redhat.com>
3527
3528 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3529
adfd8245
PA
35302013-08-30 Pedro Alves <palves@redhat.com>
3531
3532 * frame.h (show_and_print_stack_frame): Delete declaration.
3533
96d9056e
PM
35342013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3535
3536 PR python/15461
96d9056e
PM
3537 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3538 (archpy_name): Check for valid architecture.
3539 (archpy_disassemble): Ditto.
3540
11cb8762
JB
35412013-08-29 Joel Brobecker <brobecker@adacore.com>
3542
3543 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3544 instead of "long long" in call to ptrace64.
3545
1af12a7d
AB
35462013-08-29 Andrew Burgess <aburgess@broadcom.com>
3547
3548 * mi/mi-interp.c (mi_command_loop): Change signature to match
3549 interp_command_loop_ftype.
3550 (mi1_command_loop): Remove.
3551 (mi2_command_loop): Remove.
3552 (mi3_command_loop): Remove.
3553 (mi_interpreter_resume): Remove setting of
3554 deprecated_command_loop_hook.
3555 (_initialize_mi_interp): Set mi_command_loop as the command loop
3556 callback.
3557
acc900c2
SA
35582013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3559
3560 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3561 value_type.
3562
548b762d
SA
35632013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3564
3565 * value.c (allocate_value_contents): Make static.
3566 * value.h (allocate_value_contents): Remove prototype.
3567
08039c9e
SA
35682013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3569
3570 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3571 of assembling value via allocate_value_lazy and attribute setter.
3572 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3573 assembling value via allocate_value_lazy and attribute setter.
3574 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3575 assembling value via allocate_value_lazy and attribute setter.
3576
314c7de9
SA
35772013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3578
3579 * value.c (value_from_contents_and_address): Replace allocate_value and
3580 memcpy with value_from_contents.
3581
8f28f522
PM
35822013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3583
3584 * python/py-framefilter.c (py_print_frame): Remove usage of
3585 PyString_AsString. Use python_string_to_host_string instead.
3586 Refactor function to work with a string as a new allocation
3587 instead of a pointer.
3588 (py_print_frame): Ditto.
3589 * python/lib/gdb/frames.py (return_list): Cain iterators together
3590 instead of adding them as a list.
3591 (_sort_list): Call return_list, and remove duplicate code.
3592 (execute_frame_filters): Convert iterator to a list with list().
3593 * python/lib/gdb/command/frame_filters.py
3594 (SetFrameFilterPriority._set_filter_priority): Convert priority
3595 attribute to an integer.
3596 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3597 wrapper function __next__.
3598 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3599 define as "str".
3600
8ee002df
PM
36012013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3602
3603 PR python/15752
8ee002df
PM
3604 * python/py-framefilter.c (apply_frame_filter): Check
3605 gdb_python_initialized. Exit if the Python frame-filter code
3606 cannot be initialized.
3607
af4c453a
PM
36082013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3609
3610 PR cli/15842
af4c453a
PM
3611 * top.c (print_gdb_version): Remove erroneous newline after help
3612 text.
3613
bf8793bb
YQ
36142013-08-29 Yao Qi <yao@codesourcery.com>
3615
3616 * varobj.c (install_dynamic_child): Remove trailing space.
3617 Add one blank line after variable declaration.
3618
1f0c4988
JK
36192013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3620
3621 PR gdb/15415
3622 * corefile.c (get_exec_file): Use exec_filename.
3623 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3624 * exec.c (exec_close): Free EXEC_FILENAME.
3625 (exec_file_attach): New variable canonical_pathname. Use
3626 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3627 EXEC_FILENAME.
3628 * exec.h (exec_filename): New.
3629 * inferior.c (print_inferior, inferior_command): Use
3630 PSPACE_EXEC_FILENAME.
3631 * mi/mi-main.c (print_one_inferior): Likewise.
3632 * progspace.c (clone_program_space, print_program_space): Likewise.
3633 * progspace.h (struct program_space): New field pspace_exec_filename.
3634 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3635 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3636
59ee9f94
WN
36372013-08-28 Will Newton <will.newton@linaro.org>
3638
3639 * common/linux-ptrace.c: Include stdint.h unconditionally.
3640
c8a2a419
JK
36412013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3642
3643 Code cleanup.
3644 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3645
ffa4ac95
YQ
36462013-08-28 Yao Qi <yao@codesourcery.com>
3647 Pedro Alves <palves@redhat.com>
3648
3649 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3650 instead of stdio_fileopen.
3651 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3652 .Call stderr_fileopen instead of stdio_fileopen.
3653 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3654 [__MINGW32__] (stderr_file_fputs): New function.
3655 (stderr_fileopen): New function.
3656 * ui-file.h (stderr_fileopen): Declare.
3657
69d751e3
DE
36582013-08-27 Doug Evans <dje@google.com>
3659
3660 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3661 (struct dwarf2_per_cu_data): Ditto.
3662 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3663 (process_imported_unit_die): Ditto.
3664 (follow_die_sig_1): Simplify assert.
3665
44f38867
PA
36662013-08-27 Pedro Alves <palves@redhat.com>
3667
3668 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3669 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3670 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3671 windows_xfer_memory directly.
3672 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3673
d28d46b5
PA
36742013-08-27 Pedro Alves <palves@redhat.com>
3675
3676 * darwin-nat.c (darwin_xfer_memory): Delete.
3677 (_initialize_darwin_inferior): Don't install a
3678 deprecated_xfer_memory method.
3679
6211c335
YQ
36802013-08-27 Pedro Alves <pedro@codesourcery.com>
3681 Yao Qi <yao@codesourcery.com>
3682
3683 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3684 (parse_no_frames_option): Remove.
3685 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3686 (mi_cmd_stack_list_args): Adjust.
3687 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3688 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3689 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3690 Caller update.
3691 (list_args_or_locals): New parameter 'skip_unavailable'.
3692 Handle it.
3693 * valprint.c (scalar_type_p): Rename to ...
3694 (val_print_scalar_type_p): ... this. Make extern.
3695 (val_print, value_check_printable): Adjust.
3696 * valprint.h (val_print_scalar_type_p): Declare.
3697 * value.c (value_entirely_unavailable): New function.
3698 * value.h (value_entirely_unavailable): Declare.
3699
3700 * NEWS: Mention the new option "--skip-unavailable" to MI
3701 commands '-stack-list-locals', '-stack-list-arguments' and
3702 '-stack-list-variables'.
3703
242f1fd7
YQ
37042013-08-27 Yao Qi <yao@codesourcery.com>
3705
3706 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3707 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3708 options.
3709 * mi/mi-getopt.c (mi_getopt): Remove.
3710 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3711 'error_on_unknown'.
3712 (mi_getopt): Call mi_getopt_1.
3713 (mi_getopt_silent): New.
3714 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3715
260b681b
DE
37162013-08-26 Doug Evans <dje@google.com>
3717
779bd270
DE
3718 PR symtab/15885
3719 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3720 .gdb_index is in use.
3721 * symfile.c (reread_symbols): Reset objfile->sf.
3722
52e260a3
DE
3723 * NEWS: Document "mt print objfiles" now takes optional regexp.
3724 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3725 regexp of objfiles to print.
3726 (_initialize_symmisc): Update doc string for "mt print objfiles".
3727
260b681b
DE
3728 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3729 missing debug info checks.
3730
a85c52f2
UW
37312013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3732 Ulrich Weigand <uweigand@de.ibm.com>
3733
3734 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3735 line tables generated by XLC compiled binaries.
3736
4f00dda3
DE
37372013-08-23 Doug Evans <dje@google.com>
3738
db68bbae
DE
3739 * symmisc.c (dump_symtab): Delete prototype.
3740 (dump_msymbols, dump_objfile): Ditto.
3741 (maintenance_info_symtabs): Mark as dont_repeat.
3742 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3743
4f00dda3
DE
3744 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3745 debugging printf to better location.
3746
23d577b0
PA
37472013-08-23 Pedro Alves <palves@redhat.com>
3748
3749 * target.c (target_read_live_memory): Change type of 'ret' local
3750 to LONGEST.
3751
00d84524
PA
37522013-08-23 Pedro Alves <palves@redhat.com>
3753
3754 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3755 (remote_read_bytes): Change return type to LONGEST, and adjust to
3756 return a target_xfer_error on error.
3757 (remote_xfer_memory): Delete.
3758 (remote_flash_write): Change type of 'ret' local to LONGEST.
3759 (remote_xfer_partial, remote_xfer_partial): Adjust.
3760 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3761
1ed3ee94
PM
37622013-08-23 Pierre Muller <muller@sourceware.org>
3763
3764 ARI fix: Push # directives to start of line.
3765 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3766
9eaabc75
MW
37672013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3768
3769 PR gdb/15501
3770 * breakpoint.c (enable_command, disable_command): Iterate over
3771 all specified breakpoint locations.
3772
101158d9
LM
37732013-08-22 Luis Machado <lgustavo@codesourcery.com>
3774
3775 * common/linux-ptrace.c (linux_fork_to_function): Push #
3776 directives to the start of the line.
3777 (linux_check_ptrace_features): Fix warning message to use
3778 the "_" markup.
3779
96d7229d
LM
37802013-08-22 Luis Machado <lgustavo@codesourcery.com>
3781
3782 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3783 nat/linux-waitpid.h.
3784 (linux-waitpid.o): New object file rule.
3785 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3786 (current_ptrace_options): Moved from linux-nat.c.
3787 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3788 parameters.
3789 (linux_fork_to_function): New function.
3790 (linux_grandchild_function): Likewise.
3791 (linux_child_function): Likewise.
3792 (linux_check_ptrace_features): New function, heavily
3793 based on linux-nat.c:linux_test_for_tracefork.
3794 (linux_enable_event_reporting): New function.
3795 (ptrace_supports_feature): Likewise.
3796 (linux_supports_tracefork): Likewise.
3797 (linux_supports_traceclone): Likewise.
3798 (linux_supports_tracevforkdone): Likewise.
3799 (linux_supports_tracesysgood): Likewise.
3800 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3801 gdbserver/linux-low.c.
3802 (linux_enable_event_reporting): New declaration.
3803 (linux_supports_tracefork): Likewise.
3804 (linux_supports_traceclone): Likewise.
3805 (linux_supports_tracevforkdone): Likewise.
3806 (linux_supports_tracesysgood): Likewise.
3807 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3808 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3809 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3810 * config/arm/linux.mh (NATDEPFILES): Likewise.
3811 * config/i386/linux.mh (NATDEPFILES): Likewise.
3812 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3813 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3814 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3815 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3816 * config/mips/linux.mh (NATDEPFILES): Likewise.
3817 * config/pa/linux.mh (NATDEPFILES): Likewise..
3818 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3819 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3820 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3821 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3822 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3823 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3824 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3825 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3826 ptrace's 4th argument's types.
3827 Check the type of PTRACE_TYPE_ARG4.
3828 * configure: Regenerate.
3829 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3830 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3831 (linux_supports_tracefork_flag): Remove.
3832 (linux_supports_tracesysgood_flag): Likewise.
3833 (linux_supports_tracevforkdone_flag): Likewise.
3834 (current_ptrace_options): Moved to
3835 common/linux-ptrace.c.
3836 (linux_tracefork_child): Remove.
3837 (my_waitpid): Remove.
3838 (linux_test_for_tracefork): Renamed to
3839 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3840 (linux_test_for_tracesysgood): Remove.
3841 (linux_supports_tracesysgood): Remove.
3842 (linux_supports_tracefork): Remove.
3843 (linux_supports_tracevforkdone): Remove.
3844 (linux_enable_tracesysgood): Remove.
3845 (linux_enable_event_reporting): Remove.
3846 (linux_init_ptrace): New function.
3847 (linux_child_post_attach): Call linux_init_ptrace.
3848 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3849 (linux_child_follow_fork): Call linux_supports_tracefork
3850 and linux_supports_tracevforkdone.
3851 (linux_child_insert_fork_catchpoint): Call
3852 linux_supports_tracefork.
3853 (linux_child_insert_vfork_catchpoint): Likewise.
3854 (linux_child_set_syscall_catchpoint): Call
3855 linux_supports_tracesysgood.
3856 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3857 * nat/linux-nat.h: New file.
3858 * nat/linux-waitpid.c: New file.
3859 * nat/linux-waitpid.h: New file.
3860
9f948660
SDJ
38612013-08-22 Samuel Bronson <naesten@gmail.com>
3862
3863 ARM Linux support for `catch syscall'.
3864 * syscalls/arm-linux.py: New file.
3865 * syscalls/arm-linux.xml: Likewise.
3866 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3867 (arm_linux_init_abi): Register the new function and syscall xml file.
3868 * data-directory/Makefile.in: Install the new syscall xml file.
3869 * NEWS: Brag about this.
3870
6be7b56e
PA
38712013-08-22 Pedro Alves <palves@redhat.com>
3872
3873 PR gdb/15871
3874 * corefile.c (target_xfer_memory_error): New function.
3875 (memory_error): Defer EIO to target_memory_error.
3876 (read_memory): Use target_xfer_partial, and handle finer-grained
3877 target xfer errors.
3878 * target.c (target_xfer_error_to_string): New function.
3879 (memory_xfer_partial_1): If memory is known to be
3880 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3881 (target_xfer_partial): Make extern.
3882 * target.h (enum target_xfer_error): New enum.
3883 (target_xfer_error_to_string): Declare function.
3884 (target_xfer_partial): Declare function.
3885 (struct target_ops) <xfer_partial>: Adjust describing comment.
3886
bcbec14e
AM
38872013-08-22 Alan Modra <amodra@gmail.com>
3888
3889 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3890 * configure.tgt: Likewise as targets.
3891
fc474241
DE
38922013-08-20 Doug Evans <dje@google.com>
3893
3894 * buildsym.c (subfile_stack): Move here from buildsym.h.
3895 (pending_macros): Ditto.
3896 (get_macro_table): New function.
3897 (buildsym_init): Initialize subfile_stack.
3898 * coffread.c (type_vector,type_vector_length): Moved here from
3899 buildsym.h.
3900 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3901 (coff_symtab_read): Use it.
3902 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3903 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3904 with call to get_macro_table.
3905 * stabsread.c (type_vector,type_vector_length): Moved here from
3906 buildsym.h.
3907 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3908 * buildsym.h (get_macro_table): Declare.
3909
bec71544
TT
39102013-08-20 Tom Tromey <tromey@redhat.com>
3911
3912 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3913 Update.
3914 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3915
0002ad5f
DE
39162013-08-20 Doug Evans <dje@google.com>
3917
3918 * blockframe.c: Remove #include "psymtab.h".
3919 * cp-support.c: Ditto.
3920 * source.c: Ditto.
3921 * stack.c: Ditto.
3922
df302446
TT
39232013-08-20 Tom Tromey <tromey@redhat.com>
3924
3925 PR python/15816:
3926 * exceptions.h (return_mask): Now an enum.
3927 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3928 enum constants.
3929
df6d5441
TT
39302013-08-20 Tom Tromey <tromey@redhat.com>
3931
3932 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3933 get_objfile_arch.
3934 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3935 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3936 * jit.c (jit_object_close_impl): Update.
3937 * jv-lang.c (get_dynamics_objfile): Update.
3938 * linespec.c (add_minsym): Use get_dynamics_objfile.
3939 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3940 (allocate_objfile): Don't initialize 'gdbarch' field.
3941 (get_objfile_arch): Update.
3942 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3943 moved from...
3944 (struct objfile) <gdbarch>: ... here. Remove.
3945 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3946 get_objfile_arch.
3947 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3948
f5aee5ee
AM
39492013-08-20 Alan Modra <amodra@gmail.com>
3950
3951 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3952 for IBM long double nan and inf.
3953 (floatformat_is_negative, floatformat_classify,
3954 floatformat_mantissa): Similarly.
3955 (floatformat_ieee_single, floatformat_ieee_double,
3956 floatformat_ieee_quad, floatformat_arm_ext,
3957 floatformat_ia64_spill): Delete unused vars.
3958 (_initialize_doublest): Delete unused function.
3959 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3960 little-endian variants of floatformat_ibm_long_double.
3961
33b60d58 39622013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3963
33b60d58
LM
3964 * Makefile.in (SFILES): Remove common/target-common.c and
3965 add target/waitstatus.c.
3966 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3967 target/resume.h, target/wait.h and target/waitstatus.h.
3968 (COMMON_OBS): Remove target-common.o and add
3969 waitstatus.o.
3970 (target-common.o): Remove.
3971 (waitstatus.o): New target object file.
3972 * common/target-common.c: Move contents to
3973 target/waitstatus.c and remove.
3974 * common/target-common.h: Move contents to other files and
3975 remove.
3976 (enum resume_kind: Move to target/resume.h.
3977 (TARGET_WNOHANG): Move to target/wait.h.
3978 (enum target_waitkind): Move to target/waitstatus.h.
3979 (struct target_waitstatus): Likewise.
3980 * target.h: Do not include target-common.h and
3981 include target/resume.h, target/wait.h and
3982 target/waitstatus.h.
3983 * target/resume.h: New file.
3984 * target/wait.h: New file.
3985 * target/waitstatus.h: New file.
3986 * target/waitstatus.c: New file.
3987
12696c10
PA
39882013-08-19 Pedro Alves <palves@redhat.com>
3989
3990 * linux-nat.c (linux_test_for_tracefork)
3991 (linux_test_for_tracesysgood, linux_child_follow_fork)
3992 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3993 (linux_nat_wait_1): Extend comment.
3994 (linux_async_pipe): Add comment.
3995
ba89f962
KB
39962013-08-15 Kevin Buettner <kevinb@redhat.com>
3997
3998 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3999 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4000 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4001 Update to account for fact that PC is now a pseudo-register.
4002 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4003 cases for RL78_PC_REGNUM.
4004
35ab155d
MB
40052013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4006
4007 PR cli/15841
4008 * top.c (quit_force): Skip writing history file
4009 if input is not from terminal.
4010
0d031856
TT
40112013-08-14 Tom Tromey <tromey@redhat.com>
4012
4013 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4014 resultthreadlist>: New fields.
4015 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4016 (remote_get_threadlist, remote_threadlist_iterator): Use
4017 new fields. Remove static variables.
4018
ee154bee
TT
40192013-08-14 Tom Tromey <tromey@redhat.com>
4020
4021 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4022 remote_watch_data_address>: New fields.
4023 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4024 (process_stop_reply, remote_wait_as)
4025 (remote_check_watch_resources, remote_stopped_data_address): Update.
4026
88b496c3
TT
40272013-08-14 Tom Tromey <tromey@redhat.com>
4028
4029 * remote.c (struct remote_state) <async_client_callback,
4030 async_client_context>: New fields.
4031 (async_client_callback, async_client_context): Remove.
4032 (remote_async_serial_handler, remote_async): Update.
4033
2f65bcb7
TT
40342013-08-14 Tom Tromey <tromey@redhat.com>
4035
4036 * remote.c (sizeof_pkt): Remove.
4037 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4038
b80fafe3
TT
40392013-08-14 Tom Tromey <tromey@redhat.com>
4040
4041 * remote.c (struct remote_state) <use_threadinfo_query,
4042 use_threadextra_query>: New fields.
4043 (remote_threads_info, remote_threads_extra_info)
4044 (remote_open_1): Update.
4045
8e88304f
TT
40462013-08-14 Tom Tromey <tromey@redhat.com>
4047
4048 * remote.c (struct remote_state) <finished_object,
4049 finished_annex, finished_offset>: New fields.
4050 (remote_read_qxfer): Use remote_state fields; remove static
4051 variables.
4052
280ceea3
TT
40532013-08-14 Tom Tromey <tromey@redhat.com>
4054
4055 * remote.c (struct remote_state) <last_sent_step>:
4056 New field.
4057 (last_sent_step): Remove.
4058 (remote_resume, remote_wait_as): Update.
4059
b73be471
TT
40602013-08-14 Tom Tromey <tromey@redhat.com>
4061
4062 * remote.c (struct remote_state) <last_sent_signal>:
4063 New field.
4064 (last_sent_signal): Remove.
4065 (new_remote_state, remote_resume, remote_wait_as): Update.
4066
5e4a05c4
TT
40672013-08-14 Tom Tromey <tromey@redhat.com>
4068
4069 * remote.c (struct remote_state) <last_program_signals_packet>:
4070 New field.
4071 (last_program_signals_packet): Remove.
4072 (remote_program_signals, remote_open_1): Update.
4073
747dc59d
TT
40742013-08-14 Tom Tromey <tromey@redhat.com>
4075
4076 * remote.c (struct remote_state) <last_pass_packet>:
4077 New field.
4078 (last_pass_packet): Remove.
4079 (remote_pass_signals, remote_open_1): Update.
4080
262e1174
TT
40812013-08-14 Tom Tromey <tromey@redhat.com>
4082
4083 * remote.c (struct remote_state) <remote_traceframe_number>:
4084 New field.
4085 (remote_traceframe_number): Remove.
4086 (new_remote_state, remote_open_1, set_remote_traceframe)
4087 (remote_trace_find): Update.
4088
47f8a51d
TT
40892013-08-14 Tom Tromey <tromey@redhat.com>
4090
4091 * remote.c (struct remote_state) <general_thread, continue_thread>:
4092 New fields.
4093 (general_thread, continue_thread): Remove.
4094 (record_currthread, set_thread, set_general_process)
4095 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4096 (extended_remote_mourn_1): Update.
4097
5d93a237
TT
40982013-08-14 Tom Tromey <tromey@redhat.com>
4099
4100 * remote.c (struct remote_state) <remote_desc>: New field.
4101 (remote_desc): Remove.
4102 (remote_threads_info, remote_threads_extra_info, remote_close)
4103 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4104 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4105 (remote_hostio_send_command, remote_file_put, remote_file_get)
4106 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4107 (remote_async, remote_new_objfile, set_range_stepping): Update.
4108
cf792862
TT
41092013-08-14 Tom Tromey <tromey@redhat.com>
4110
4111 * remote.c (remote_state): Now a pointer.
4112 (get_remote_state_raw): Update.
4113 (new_remote_state): New function.
4114 (_initialize_remote): Use new_remote_state.
4115
dc473cfb
TT
41162013-08-14 Tom Tromey <tromey@redhat.com>
4117
4118 * remote.c (remote_protocol_features): Now const.
4119
85ec6ce7
TT
41202013-08-14 Tom Tromey <tromey@redhat.com>
4121
4122 * remote.c (crc32_table, crc32): Remove.
4123 (remote_verify_memory): Use xcrc32.
4124
73033f12
SDJ
41252013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4126
4127 * value.h (create_internalvar_type_lazy): Adjust prototype
4128 declaration.
4129
5c30d39a
AB
41302013-08-13 Andrew Burgess <aburgess@broadcom.com>
4131
4132 * common/format.c (parse_format_string): Don't allow '#' flag for
4133 pointer arguments in format string.
4134
1a66331e
PM
41352013-08-13 Pierre Muller <muller@sourceware.org>
4136
fde605f3 4137 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4138 if rl_get_screen_size did not return useful values.
4139
b4013987
AA
41402013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4141
4142 PR breakpoints/15117
4143 * linespec.c (linespec_parse_basic): Check for convenience
4144 variable or history value while parsing.
4145
959b6a66
SDJ
41462013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4147
4148 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4149 AVR.
4150 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4151 different signals between the generic Linux kernel implementation
4152 and AVR's.
4153 (avr_linux_gdb_signal_from_target): Delete.
4154 (avr_linux_gdb_signal_to_target): Delete.
4155 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4156
24a55014
DE
41572013-08-09 Doug Evans <dje@google.com>
4158
4159 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4160 entries.
4161
eb14d406
SDJ
41622013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4163
4164 * linux-tdep.c: Define enum with generic signal numbers.
4165 (linux_gdb_signal_from_target): New function.
4166 (linux_gdb_signal_to_target): Likewise.
4167 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4168 methods to the functions above.
4169 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4170 (linux_gdb_signal_to_target): Likewise.
4171 * alpha-linux-tdep.c: Define new enum with signals different
4172 from generic Linux kernel.
4173 (alpha_linux_gdb_signal_from_target): New function.
4174 (alpha_linux_gdb_signal_to_target): Likewise.
4175 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4176 with the functions mentioned above.
4177 * avr-tdep.c: Define enum with differences between Linux kernel
4178 and AVR signals.
4179 (avr_linux_gdb_signal_from_target): New function.
4180 (avr_linux_gdb_signal_to_target): Likewise.
4181 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4182 the functions mentioned above.
4183 * sparc-linux-tdep.c: Define enum with differences between SPARC
4184 and generic Linux kernel signal numbers.
4185 (sparc32_linux_gdb_signal_from_target): New function.
4186 (sparc32_linux_gdb_signal_to_target): Likewise.
4187 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4188 to the functions defined above.
4189 * xtensa-linux-tdep.c: Define enum with differences between
4190 Xtensa and Linux kernel generic signals.
4191 (xtensa_linux_gdb_signal_from_target): New function.
4192 (xtensa_linux_gdb_signal_to_target): Likewise.
4193 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4194 to the functions defined above.
4195 * mips-linux-tdep.c: Define enum with differences between
4196 signals in MIPS and Linux kernel generic ones.
4197 (mips_gdb_signal_to_target): New function.
4198 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4199 only different signals from the Linux kernel generic.
4200 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4201 the functions defined above.
4202 * mips-linux-tdep.h (enum mips_signals): Remove.
4203
156d08c8
PA
42042013-08-09 Pedro Alves <palves@redhat.com>
4205
4206 * avr-tdep.c (XMALLOC): Delete macro.
4207 * cli/cli-dump.c (XMALLOC): Delete macro.
4208
db229724
PA
42092013-08-09 Pedro Alves <palves@redhat.com>
4210
4211 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4212 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4213 (fopen_with_cleanup, add_dump_command): Make static.
4214 * cli/cli-dump.h: Delete file.
4215 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4216 cli/cli-dump.h.
4217
3f12a589
PA
42182013-08-09 Pedro Alves <palves@redhat.com>
4219
4220 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4221 error message.
4222
c718be47
PA
42232013-08-09 Pedro Alves <palves@redhat.com>
4224
156d08c8 4225 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4226 error message.
4227
1e351ed1
PA
42282013-08-09 Pedro Alves <palves@redhat.com>
4229
4230 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4231 (gcore_command): Use tilde_expand here, and when showing the
4232 filename to the user, show the expanded version.
4233
1ed8d800
YQ
42342013-08-09 Yao Qi <yao@codesourcery.com>
4235
4236 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4237 'entryval' is set.
4238
47ecca85
PA
42392013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4240
4241 * gcore.c (create_gcore_bfd): Use tilde_expand.
4242
82a0a75f
YQ
42432013-08-08 Yao Qi <yao@codesourcery.com>
4244
4245 * frame.h (read_frame_local): Declare.
4246 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4247 read_frame_local.
4248 * stack.c (read_frame_local): New.
4249
5c4aa40b
YQ
42502013-08-08 Yao Qi <yao@codesourcery.com>
4251
4252 * mi/mi-cmd-stack.c: Update comments to function
4253 list_args_or_locals.
4254
b93601f3
TT
42552013-08-07 Tom Tromey <tromey@redhat.com>
4256
4257 PR symtab/15028:
4258 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4259 (process_psymtab_comp_unit_reader): Use it.
4260 (process_psymtab_comp_unit): Update. Add "pretend_language"
4261 argument.
4262 (dwarf2_build_psymtabs_hard): Update.
4263 (scan_partial_symbols): Pass CU's language to
4264 process_psymtab_comp_unit.
4265
fa760f46
TT
42662013-08-07 Tom Tromey <tromey@redhat.com>
4267
4268 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4269 (dwarf2_gdb_index_functions): Update.
4270 * psymtab.c (find_symbol_file_from_partial): Remove.
4271 (psym_functions): Update.
4272 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4273 Remove.
4274
bf6d8a91
TT
42752013-08-07 Tom Tromey <tromey@redhat.com>
4276
4277 * symfile.c (set_initial_language): Look up "main" symbol
4278 and use its language.
4279 * symtab.c (find_main_filename): Remove.
4280 * symtab.h (find_main_filename): Remove.
4281
f9125b6c
TT
42822013-08-07 Tom Tromey <tromey@redhat.com>
4283
4284 * dwarf2read.c (recursively_compute_inclusions): Add
4285 "immediate_parent" argument. Set symtab's "user" field
4286 if not set.
4287 (compute_symtab_includes): Update.
4288
fdbb204b
TT
42892013-08-07 Tom Tromey <tromey@redhat.com>
4290
4291 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4292 when adding label symbols.
4293
49de1690
UW
42942013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4295 Ulrich Weigand <uweigand@de.ibm.com>
4296
4297 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4298 * configure.host (powerpc64-*-aix*): Likewise.
4299
b08ee99f
UW
43002013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4301 Ulrich Weigand <uweigand@de.ibm.com>
4302
4303 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4304 is defined.
4305 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4306 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4307 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4308 * configure.ac: Check for ptrace64.
4309 * configure, config.in: Regenerate.
4310
fecf803e
UW
43112013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4312 Ulrich Weigand <uweigand@de.ibm.com>
4313
4314 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4315 Call ptrace64 instead of ptrace if defined.
4316 Add macro addr_ptr to take care of ptrace address argument.
4317 (pdc_read_regs): Likewise.
4318 (pdc_write_regs): Likewise.
4319 (aix_thread_resume): Likewise.
4320 (fetch_regs_kernel_thread): Likewise.
4321 (store_regs_kernel_thread): Likewise.
4322
3bb5e4a8
AB
43232013-08-07 Anton Blanchard <anton@samba.org>
4324
4325 * MAINTAINERS: Add myself to Write After Approval.
4326
12070676
TT
43272013-08-05 Tom Tromey <tromey@redhat.com>
4328
4329 * aix-thread.c (_initialize_aix_thread): Use
4330 complete_target_initialization.
4331 * bsd-uthread.c (_initialize_bsd_uthread): Use
4332 complete_target_initialization.
4333 * dec-thread.c (_initialize_dec_thread): Use
4334 complete_target_initialization.
4335 * ravenscar-thread.c (_initialize_ravenscar): Use
4336 complete_target_initialization.
4337 * sol-thread.c (_initialize_sol_thread): Use
4338 complete_target_initialization.
4339 * spu-multiarch.c (_initialize_spu_multiarch): Use
4340 complete_target_initialization.
4341
7c7b6655
TT
43422013-08-05 Tom Tromey <tromey@redhat.com>
4343
4344 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4345 * ada-lang.c (ada_lookup_simple_minsym): Return
4346 bound_minimal_symbol.
4347 * ada-lang.h (ada_lookup_simple_minsym): Update.
4348 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4349 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4350 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4351 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4352 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4353 * minsyms.c (msymbol_objfile): Remove.
4354 (lookup_minimal_symbol_internal): New function, from
4355 lookup_minimal_symbol.
4356 (lookup_minimal_symbol): Rewrite using
4357 lookup_minimal_symbol_internal.
4358 (lookup_bound_minimal_symbol): New function.
4359 * minsyms.h (msymbol_objfile): Remove.
4360 (lookup_bound_minimal_symbol): Declare.
4361 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4362 * parse.c (write_exp_msymbol): Change parameter to a
4363 bound_minimal_symbol.
4364 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4365 * parser-defs.h (write_exp_msymbol): Update.
4366 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4367 * symfile.c (simple_read_overlay_table): Use
4368 lookup_bound_minimal_symbol.
4369 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4370 (search_symbols): Likewise.
4371 (print_msymbol_info): Take a bound_minimal_symbol argument.
4372 (symtab_symbol_info, rbreak_command): Update.
4373 * symtab.h (struct symbol_search) <msymbol>: Change type
4374 to bound_minimal_symbol.
4375 * valops.c (find_function_in_inferior): Use
4376 lookup_bound_minimal_symbol.
4377 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4378
934b9bac
JK
43792013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4380
4381 Code cleanup.
4382 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4383 to ...
4384 (async_cleanup_sigint_signal_handler): ... this.
4385 (initialize_sigint_signal_handler): Remove declaration.
4386 (handle_remote_sigint): Rename the declaration to ...
4387 (async_handle_remote_sigint): ... this.
4388 (handle_remote_sigint_twice): Rename the declaration to ...
4389 (async_handle_remote_sigint_twice): ... this.
4390 (async_remote_interrupt, async_remote_interrupt_twice)
4391 (remote_interrupt): Remove the declarations.
4392 (remote_interrupt_twice): Rename the declaration ...
4393 (sync_remote_interrupt_twice): ... this.
4394 (sigint_remote_twice_token): Rename the variable to ...
4395 (async_sigint_remote_twice_token): ... this.
4396 (sigint_remote_token): Rename the variable to ...
4397 (async_sigint_remote_token): ... this.
4398 (initialize_sigint_signal_handler): Rename the function to ...
4399 (async_initialize_sigint_signal_handler): ... this. Update the name
4400 inside.
4401 (handle_remote_sigint): Rename the function to ...
4402 (async_handle_remote_sigint): ... this. Update the names inside.
4403 (handle_remote_sigint_twice): Rename the function to ...
4404 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4405 (cleanup_sigint_signal_handler): Rename the function to ...
4406 (async_cleanup_sigint_signal_handler): ... this.
4407 (remote_interrupt): Rename the function to ...
4408 (sync_remote_interrupt): this. Update the names inside.
4409 (remote_interrupt_twice): Rename the function to ...
4410 (sync_remote_interrupt_twice): this. Update the names inside.
4411 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4412 (_initialize_remote): Update the names inside.
4413
3a1115a0
TT
44142013-08-02 Tom Tromey <tromey@redhat.com>
4415
4416 PR symtab/15719:
4417 * breakpoint.c (update_watchpoint, watchpoint_check)
4418 (watch_command_1): Update.
4419 * eval.c (fetch_subexp_value): Add "preserve_errors"
4420 parameter.
4421 * ppc-linux-nat.c (check_condition): Update.
4422 * value.h (fetch_subexp_value): Update.
4423
58b19776
AB
44242013-08-02 Andrew Burgess <aburgess@broadcom.com>
4425
4426 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4427 add_file_handler.
4428
ec94af83
DE
44292013-08-01 Doug Evans <dje@google.com>
4430
7ee85ab1
DE
4431 PR symtab/15691
4432 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4433 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4434 Add assert of sig_entry->dwo_unit == NULL.
4435 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4436 had already been read.
4437 (read_signatured_type): Set per_cu.tu_read.
4438
b846d303
DE
4439 PR symtab/15695
4440 * valops.c (value_struct_elt): Add missing call to check_typedef.
4441 (value_find_oload_method_list): Ditto.
4442
b52109bc
DE
4443 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4444 effectively, struct symbol_search **.
4445 (make_cleanup_free_search_symbols): Change arg to struct
4446 symbol_search **. All callers updated.
4447 (compare_search_syms): Compare symtab file name and block as well.
4448 (search_symbols_equal): New function.
4449 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4450 New args new_head, new_tail. Result is now void. Remove dups after
4451 sorting the symbols.
4452 (search_symbols): Sort all found symbols once, after all have been
4453 found, and remove duplicates. Simplify cleanup tracking of result.
4454 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4455
ec94af83
DE
4456 Further workarounds for binutils/15021.
4457 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4458 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4459 Watch for duplicate symtabs coming from type units.
4460 (compute_symtab_includes): Update call to
4461 recursively_compute_inclusions. Build vector of included symtabs
4462 instead of per_cus.
4463 * symtab.h (symtab_ptr): New typedef.
4464 (DEF_VEC_P (symtab_ptr)): New VEC type.
4465 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4466 instead.
4467
b2ae85cf
AB
44682013-08-01 Andrew Burgess <aburgess@broadcom.com>
4469
4470 * cli/cli-script.c (script_from_file): Remove use of
4471 error_pre_print.
4472 * main.c (captured_main): Remove use of error_pre_print and
4473 quit_pre_print.
4474 * utils.c (error_pre_print, quit_pre_print): Remove.
4475 * utils.h (error_pre_print, quit_pre_print): Likewise.
4476
645eab03
YQ
44772013-08-01 Yao Qi <yao@codesourcery.com>
4478
4479 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4480 with mi_getopt.
4481 (mi_cmd_stack_list_variables): Likewise.
4482
16f92dd4
AB
44832013-07-31 Andrew Burgess <aburgess@broadcom.com>
4484
4485 * exceptions.c (deprecated_throw_reason): Remove.
4486 * exceptions.h (deprecated_throw_reason): Remove.
4487
13f78033
AB
44882013-07-31 Andrew Burgess <aburgess@broadcom.com>
4489
4490 * remote-mips.c (mips_error): Replace use of
4491 deprecated_throw_reason with throw_verror. Use the error message
4492 passed to mips_error as the error message for throw_verror.
4493
039e3c22
AB
44942013-07-31 Andrew Burgess <aburgess@broadcom.com>
4495
4496 * monitor.c (monitor_interrupt_query): Replace use of
4497 deprecated_throw_reason with quit.
4498 * nto-procfs.c (interrupt_query): Likewise.
4499 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4500 * remote-mips.c (mips_kill): Likewise.
4501 * remote.c (interrupt_query): Likewise.
4502
8150913b
AB
45032013-07-31 Andrew Burgess <aburgess@broadcom.com>
4504
4505 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4506 with call to fatal.
4507
de74e63a
YQ
45082013-07-31 Pedro Alves <pedro@codesourcery.com>
4509 Yao Qi <yao@codesourcery.com>
4510
4511 * tracepoint.c (trace_dump_command): Select the current frame.
4512
247f5c4f
DE
45132013-07-30 Doug Evans <dje@google.com>
4514
4515 * dwarf2read.c (process_queue): Add type signature to debug output.
4516
11b4b7cc
AB
45172013-07-30 Andrew Burgess <aburgess@broadcom.com>
4518
4519 * value.c (value_fetch_lazy): Mark optimized out values as such
4520 rather than raising an error.
4521
b0c54aa5
AB
45222013-07-30 Andrew Burgess <aburgess@broadcom.com>
4523
4524 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4525 before checking which bits of the parent, not the child, value are
4526 valid.
4527
97c85fc6
MB
45282013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4529
4530 PR gdb/15715
4531 * top.c: Include "filenames.h".
4532 (set_history_filename): New function.
4533 (init_main): Install it as set hook of the "set history filename"
4534 command.
4535
ff39bb5e
SA
45362013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4537
4538 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4539 attribute parameter.
4540 (dwarf2_const_value_data): Constify struct attribute parameter.
4541 (dwarf2_const_value): Constify struct attribute parameter.
4542 (dwarf2_const_value_attr): Constify struct attribute parameter.
4543 (lookup_die_type): Constify struct attribute parameter.
4544 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4545 (follow_die_ref_or_sig): Constify struct attribute parameter.
4546 (follow_die_ref): Constify struct attribute parameter.
4547 (follow_die_sig): Constify struct attribute parameter.
4548 (get_DW_AT_signature_type): Constify struct attribute parameter.
4549 (get_type_unit_group): Constify struct attribute parameter.
4550 (fill_in_loclist_baton): Constify struct attribute parameter.
4551 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4552 (type_unit_group): Constify struct attribute parameter.
4553
6e5a29e1
SA
45542013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4555
4556 * dwarf2read.c (attr_form_is_block): Make argument const.
4557 (attr_form_is_section_offset): Make argument const.
4558 (attr_form_is_constant): Make argument const.
4559 (attr_form_is_ref): Make argument const.
4560
7771576e
SA
45612013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4562
4563 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4564 All uses updated.
4565 (attr_form_is_ref): Moved below attr_form_is_constant.
4566
a94e8645
DE
45672013-07-29 Doug Evans <dje@google.com>
4568
bb5291d0
DE
4569 * main.c (captured_command_loop): Tweak comment.
4570
b5419e49
DE
4571 * target.c (target_async_permitted_1): Fix comment.
4572
b2d23133
DE
4573 * symtab.c (iterate_over_some_symtabs): Add comment.
4574
a94e8645
DE
4575 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4576
7a60ad40
YQ
45772013-07-27 Yao Qi <yao@codesourcery.com>
4578
4579 * NEWS: Mention that GDBserver now supports hardware
4580 watchpoints on the MIPS GNU/Linux target.
4581
aaee2056
YQ
45822013-07-27 Yao Qi <yao@codesourcery.com>
4583
4584 * Makefile.in (HFILES_NO_SRCDIR): Add
4585 common/mips-linux-watch.h.
4586 (mips-linux-watch.o): New rule.
4587 * common/mips-linux-watch.c: New.
4588 * common/mips-linux-watch.h: New.
4589 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4590 * mips-linux-nat.c: Include mips-linux-watch.h.
4591 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4592 to common/mips-linux-watch.h.
4593 (MAX_DEBUG_REGISTER): Likewise.
4594 (enum pt_watch_style): Likewise.
4595 (struct mips32_watch_regs): Likewise.
4596 (struct mips64_watch_regs): Likewise.
4597 (struct pt_watch_regs): Likewise.
4598 (struct mips_watchpoint): Likewise.
4599 (mips_linux_watch_get_irw_mask): Move to
4600 common/mips-linux-watch.c.
4601 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4602 (mips_linux_watch_get_watchlo): Likewise.
4603 (mips_linux_watch_set_watchlo): Likewise.
4604 (mips_linux_watch_get_watchhi): Likewise.
4605 (mips_linux_watch_set_watchhi): Likewise.
4606 (mips_linux_read_watch_registers): Likewise.
4607 (mips_linux_watch_type_to_irw): Likewise.
4608 (mips_linux_stopped_data_address, fill_mask): Likewise.
4609 (mips_linux_watch_try_one_watch): Likewise.
4610 (mips_linux_watch_populate_regs): Likewise.
4611
b3436450
YQ
46122013-07-27 Yao Qi <yao@codesourcery.com>
4613
4614 * mips-linux-nat.c (get_irw_mask): Rename to ...
4615 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4616 'set' to 'n'. Update function comment. All callers changed.
4617 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4618 function comment. All callers changed.
4619 (get_num_valid): Rename to ...
4620 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4621 'set' to 'n'. Update function comment. All callers changed.
4622 (get_watchlo): Rename to ...
4623 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4624 'set' to 'n'. Update function comment. All callers changed.
4625 (set_watchlo): Rename to ...
4626 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4627 'set' to 'n'. Update function comment. All callers changed.
4628 (get_watchhi): Rename to ...
4629 (mips_linux_watch_get_watchhi): ... this. Update function
4630 comment. All callers changed.
4631 (set_watchhi): Rename to ...
4632 (mips_linux_watch_set_watchhi): ... this. Update function
4633 comment. All callers changed.
4634 (mips_linux_read_watch_registers): Update function comment.
4635 Add new parameters 'lwpid', 'watch_readback', and
4636 'watch_readback_valid'. Update.
4637 (type_to_irw): Rename to ...
4638 (mips_linux_watch_type_to_irw): ... this. Update function
4639 comment. All callers changed.
4640 (fill_mask): Update function comment.
4641 (try_one_watch): Rename to ...
4642 (mips_linux_watch_try_one_watch): ... this. Change the type
4643 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4644 (populate_regs_from_watches): Rename to ...
4645 (mips_linux_watch_populate_regs): ... this. Add parameter
4646 'current_watches'. All callers changed.
4647
9be14b81
YQ
46482013-07-27 Yao Qi <yao@codesourcery.com>
4649
4650 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4651 the code.
4652 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4653 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4654 (struct pt_watch_regs): Likewise.
4655 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4656 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4657 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4658 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4659 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4660
de6f69ad
YQ
46612013-07-27 Yao Qi <yao@codesourcery.com>
4662
4663 * breakpoint.h: Include break-common.h.
4664 (enum target_hw_bp_type): Move to ...
4665 * common/break-common.h: ... here. New.
4666
6f64ef53
PA
46672013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4668
4669 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4670 process group regardless of having tty on stdin.
4671
6107e809
DE
46722013-07-25 Doug Evans <dje@google.com>
4673
4674 * linux-fork.h (detach_fork): Delete.
4675
7fdc1521
TT
46762013-07-25 Tom Tromey <tromey@redhat.com>
4677
4678 PR remote/15256, PR remote/15266:
4679 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4680 * monitor.c (monitor_detach): Use unpush_target.
4681 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4682 * remote-mips.c (mips_detach): Use unpush_target. Don't
4683 call mips_close.
4684 * remote-sim.c (gdbsim_detach): Use unpush_target.
4685 * target.c (pop_target): Remove.
4686 (pop_all_targets_above): Don't call target_close.
4687 (target_close): Assert that the target is unpushed.
4688 * target.h (pop_target): Don't declare.
4689 * tracepoint.c (tfile_open): Use unpush_target.
4690
c22a2b88
TT
46912013-07-25 Tom Tromey <tromey@redhat.com>
4692
4693 * linux-thread-db.c (init_thread_db_ops): Call
4694 complete_target_initialization.
4695 (_initialize_thread_db): Don't call add_target.
4696 * target.c (complete_target_initialization): New function.
4697 (add_target_with_completer): Call it.
4698 * target.h (complete_target_initialization): Declare.
4699
cbb6aada
MK
47002013-07-25 Mark Kettenis <kettenis@gnu.org>
4701
4702 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4703 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4704 (HPPANBSD_SIZEOF_GREGS): New define.
4705 (hppaobsd_supply_gregset): Handle additional registers.
4706 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4707 we provide more registers now.
4708 (hppabsd_supply_gregset): Supply additional registers.
4709 (hppabsd_collect_gregset): Collect additional registers.
4710
17767988
MK
47112013-07-25 Mark Kettenis <kettenis@gnu.org>
4712
4713 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4714 (hppabsd_dwarf2_frame_init_reg): New function.
4715 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4716
fdc8aae8
AB
47172013-07-25 Andrew Burgess <aburgess@broadcom.com>
4718
4719 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4720 'z' format code. Remove error for optimized out values, standard
4721 code will handle these fine.
4722
6fbe845e
AB
47232013-07-25 Andrew Burgess <aburgess@broadcom.com>
4724
4725 * NEWS: Mention new 'z' formatter.
4726 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4727 (_initialize_printcmd): Mention 'z' formatter in help text of the
4728 'x' command.
4729
3373342d
MR
47302013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4731
4732 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4733 formatting.
4734
25f9533e
SDJ
47352013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4736
4737 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4738 interface can evaluate arguments. Fallback to the old mode if it
4739 cannot.
4740 (create_exception_master_breakpoint): Likewise.
4741 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4742 (struct sym_probe_fns elf_probe_fns): Export function above to the
4743 probe interface.
4744 * probe.c (can_evaluate_probe_arguments): New function.
4745 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4746 function pointer.
4747 (can_evaluate_probe_arguments): New function prototype.
4748 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4749 probe interface can evaluate arguments. Fallback to the old mode
4750 if it cannot.
4751 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4752 interface can evaluate arguments. Warning the user if it cannot.
4753 (stap_can_evaluate_probe_arguments): New function.
4754 (struct probe_ops stap_probe_ops): Export function above to the
4755 probe interface.
4756 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4757 New function pointer.
4758
3360c0bf
LM
47592013-07-24 Luis Machado <lgustavo@codesourcery.com>
4760
4761 * Makefile.in (SFILES): Add common/target-common.c.
4762 Add common/target-common.h to headers.
4763 (COMMON_OBS): Add target-common.o.
4764 (target-common.o): New target.
4765 * linux-nat.h (resume_kind): Move to common/target-common.h.
4766 * target.c (target_waitstatus_to_string): Move to
4767 common/target-common.c.
4768 * target.h: Include target-common.h.
4769 (target_waitkind): Move to common/target-common.h.
4770 (target_waitstatus): Likewise.
4771 (TARGET_WNOHANG): Likewise.
4772 * common/target-common.c: New file.
4773 * common/target-common.h: New file.
4774
6656a72d
DE
47752013-07-24 Doug Evans <dje@google.com>
4776
4777 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4778 a warning.
4779
6df81a63
YQ
47802013-07-23 Yao Qi <yao@codesourcery.com>
4781
4782 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4783 parameter 'gdbarch'.
4784 (i386_stack_tramp_frame_sniffer): Caller update.
4785 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4786 parameter 'gdbarch' and 'target'.
4787 (i386_linux_core_read_description): Caller update.
4788 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4789 Likewise.
4790 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4791 declaration.
4792
365156ad
TT
47932013-07-23 Tom Tromey <tromey@redhat.com>
4794
4795 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4796 2013-07-22.
4797
046ac79f
JK
47982013-07-22 Doug Evans <dje@google.com>
4799
4800 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4801 * exec.c (exec_close): Update call to remove_target_sections.
4802 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4803 * solib.c (update_solib_list): Ditto.
4804 (reload_shared_libraries_1): Ditto.
4805 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4806 * target.h (struct target_section): Rename key to owner.
4807 All uses updated.
046ac79f 4808
29b2cc46
TT
48092013-07-22 Tom Tromey <tromey@redhat.com>
4810
4811 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4812
d1160018
TT
48132013-07-22 Tom Tromey <tromey@redhat.com>
4814
4815 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4816 Simplify cleanup handling.
4817
2f324bf6
TT
48182013-07-22 Tom Tromey <tromey@redhat.com>
4819
4820 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4821 on all return paths.
4822
e23b9d6e
UW
48232013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4824
4825 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4826 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4827 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4828
1cf55f60
PM
48292013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4830
4831 * top.c (print_gdb_version): Add help, apropos description and
4832 url to online documentation.
4833
fa876972
HZ
48342013-07-19 Hui Zhu <hui@codesourcery.com>
4835
4836 PR gdb/15692
4837 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4838
1527aea8
YQ
48392013-07-19 Yao Qi <yao@codesourcery.com>
4840
4841 * target.c (update_current_target): Change the default action
4842 of 'to_traceframe_info' from tcomplain to return_zero.
4843 * target.h (struct target_ops) <to_traceframe_info>: Add more
4844 comments.
4845 * valops.c (read_value_memory): Call
4846 traceframe_available_memory unconditionally.
4847
886f230e
YQ
48482013-07-18 Yao Qi <yao@codesourcery.com>
4849
4850 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4851 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4852 symbol without prefix. If found, set its type to
4853 'mst_solib_trampoline'.
4854
16419bae
DE
48552013-07-17 Doug Evans <dje@google.com>
4856
e7045703
DE
4857 * NEWS: Mention "set print raw frame-arguments".
4858 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4859 * stack.c (print_raw_frame_arguments): New static global.
4860 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4861 (_initialize_stack): New command "set/show print raw frame-arguments".
4862 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4863 (set_print_raw, show_print_raw): New functions.
4864 (_initialize_valprint): New prefix command "set/show print raw".
4865 * valprint.h (value_print_options): Improve comments.
4866
453e48a5
DE
4867 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4868 of all *list variables.
4869
16419bae
DE
4870 * gdbcmd.h (togglelist): Delete.
4871 * cli/cli-cmds.c (togglelist): Delete.
4872 (init_cmd_lists): Update.
4873 * cli/cli-cmds.h (togglelist): Delete.
4874
626f2d1c
TT
48752013-07-17 Tom Tromey <tromey@redhat.com>
4876
4877 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4878 dwarf2_per_objfile.
4879
57e6060e
DE
48802013-07-16 Doug Evans <dje@google.com>
4881
4882 * nto-tdep.c (nto_relocate_section_addresses): Update,
4883 target_section.bfd deleted.
4884 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4885 * s390-tdep.c (s390_load): Ditto.
4886 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4887
5ea5559b
AB
48882013-07-16 Andrew Burgess <aburgess@broadcom.com>
4889
4890 * common/format.c (parse_format_string): Add checks for NULL
4891 character before calling strchr.
4892
2b2848e2
DE
48932013-07-16 Doug Evans <dje@google.com>
4894
2c571006
DE
4895 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4896 temp_pathname argument.
4897 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4898 when opening the file fails.
4899
2b2848e2
DE
4900 * target.h (struct target_section): Delete member bfd.
4901 All users updated to use the_bfd_section->owner instead.
4902 * exec.c (add_to_section_table): Assert bfd is expected value.
4903 Remove initialization of target_section.bfd.
4904 (remove_target_sections): Update.
4905 (section_table_available_memory): Update.
4906 (section_table_xfer_memory_partial): Update.
4907 (print_section_info): Update.
4908 (exec_set_section_address): Update.
4909 * record-full.c (record_full_core_xfer_partial): Update.
4910 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4911 * solib-target.c (solib_target_relocate_section_addresses): Update.
4912 * symfile.c (build_section_addr_info_from_section_table): Update.
4913 * target.c (memory_xfer_live_readonly_partial): Update.
4914 (memory_xfer_partial_1): Update.
4915
926bf92d
UW
49162013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4917
4918 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4919 now available for embedded (BookE) and server (BookS) processors,
4920 correct mentions of 'booke' and adjust comments accordingly in order to
4921 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4922 (have_ptrace_booke_interface): Rename function and variable
4923 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4924 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4925 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4926 'hwdebug_point_cmp'. Update all uses.
4927 (booke_find_thread_points_by_tid): Rename function
4928 'booke_find_thread_points_by_tid' to
4929 'hwdebug_find_thread_points_by_tid'. Update all uses.
4930 (booke_insert_point): Rename function 'booke_insert_point' to
4931 'hwdebug_insert_point'. Update all uses.
4932 (booke_remove_point): Rename function 'booke_remove_point' to
4933 'hwdebug_remove_point'. Update all uses.
4934
d929bc19
MR
49352013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4936
4937 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4938 numbers with enum values.
4939
054e8d9e
AA
49402013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4941
4942 PR threads/13217
4943 * thread.c (thread_apply_all_command): Check for valid threads
4944 and thread count.
4945 (thread_array_cleanup): New struct.
4946 (set_thread_refcount): New function.
4947
cf006359
AB
49482013-07-11 Andrew Burgess <aburgess@broadcom.com>
4949
4950 * infcmd.c (default_print_one_register_info): Reuse function
4951 print_hex_chars.
4952
94e36acc
TT
49532013-07-10 Tom Tromey <tromey@redhat.com>
4954
4955 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4956 (ada-exp.o): New target.
4957
915dd369
SDJ
49582013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4959
4960 * mt-tdep.c (mt_registers_info): Call
4961 get_no_prettyformat_print_options instead of
4962 get_raw_print_options (regression by last patch from Doug
4963 Evans).
4964
eca07816
JB
49652013-07-09 Pedro Alves <palves@redhat.com>
4966
4967 Checked in by Joel Brobecker <brobecker@adacore.com>.
4968 * ada-lang.c (coerce_unspec_val_to_type): Use
4969 value_optimized_out_const.
4970 * value.c (value_optimized_out_const): New function.
4971 * value.h (value_optimized_out_const): New declaration.
4972
2a998fc0
DE
49732013-07-09 Doug Evans <dje@google.com>
4974
4975 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4976 Enum values rename as well. All uses updated.
4977 * valprint.h (value_print_options): Rename member pretty to
4978 pretty format. Rename member prettyprint_arrays to
4979 prettyformat_arrays. Rename member prettyprint_structs to
4980 prettyformat_structs. All uses updated.
4981 (get_no_prettyformat_print_options): Renamed from
4982 get_raw_print_options.
4983 * valprint.c (get_no_prettyformat_print_options): Renamed from
4984 get_raw_print_options. All callers updated.
4985 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4986 All callers updated.
4987 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4988 All callers updated.
4989 (_initialize_valprint): Improve help text for "set print pretty" and
4990 "set print arrays".
4991
466c1fca
AB
49922013-07-09 Andrew Burgess <aburgess@broadcom.com>
4993
4994 * value.c (value_bits_valid): Revert previous change, and change
4995 by Pedro on 2013-07-04, due to regressions in
4996 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4997
ad0f0303
AB
49982013-07-08 Andrew Burgess <aburgess@broadcom.com>
4999 Pedro Alves <palves@redhat.com>
5000
5001 * value.c (value_bits_valid): If the value is not lval_computed
5002 or has no check validity handler then the answer is the
5003 optimized_out flag, otherwise defer to the handler.
5004
b187bec1
EZ
50052013-07-06 Eli Zaretskii <eliz@gnu.org>
5006
48d1d6f5
EZ
5007 * top.c (print_gdb_configuration): Explain in output of
5008 --configuration what does "relocatable" mean.
5009
b187bec1
EZ
5010 * main.c (print_gdb_help): Regroup options in the --help text.
5011 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5012 the relevant discussions.
5013
52d361e1
YQ
50142013-07-06 Yao Qi <yao@codesourcery.com>
5015
5016 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5017 Remove parameter 'lsal'.
5018 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5019 to inner block. Caller update.
5020 (base_breakpoint_create_breakpoints_sal): Update.
5021 (bkpt_create_breakpoints_sal): Likewise.
5022 (tracepoint_create_breakpoints_sal): Likewise.
5023 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5024 element 0 of vector 'canonical->sals'.
5025
e1ec1b42
LM
50262013-07-05 Luis Machado <lgustavo@codesourcery.com>
5027
5028 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5029 register number instead of the pseudo register one.
5030 (rs6000_dwarf2_reg_to_regnum): Likewise.
5031
7195e6f0
PA
50322013-07-04 Pedro Alves <palves@redhat.com>
5033
5034 * findvar.c (value_of_register): Use allocate_optimized_out_value
5035 if the register has been optimized out, instead of
5036 set_value_optimized_out.
5037 * frame-unwind.c (frame_unwind_got_optimized): Use
5038 allocate_optimized_out_value.
5039
58722cac
PA
50402013-07-04 Pedro Alves <palves@redhat.com>
5041
5042 * value.c (value_bits_valid): If the value is not lval_computed,
5043 or doesn't have a check_validity hook, assume the value is entirely
5044 valid.
5045
691a26f5
AB
50462013-07-04 Andrew Burgess <aburgess@broadcom.com>
5047
5048 * stack.c (read_frame_arg): No longer fetch lazy values.
5049 * value.c (value_optimized_out): If the value is not already
5050 marked optimized out, and is lazy then fetch it.
5051 (value_primitive_field): Move optimized out check to later in the
5052 function, after we have loaded any lazy values.
5053 (value_fetch_lazy): Use optimized out flag directly rather than
5054 calling optimized_out method.
5055
a58e2656
AB
50562013-07-04 Andrew Burgess <aburgess@broadcom.com>
5057
5058 * valops.c: Don't include "user-regs.h".
5059 (value_fetch_lazy): Moved to value.c.
5060 * value.c: Include "user-regs.h".
5061 (value_fetch_lazy): Moved from valops.c.
5062
bd885420
YQ
50632013-07-04 Yao Qi <yao@codesourcery.com>
5064
5065 Revert:
5066 2013-06-27 Yao Qi <yao@codesourcery.com>
5067
5068 * common/create-version.sh: Update comments. Handle the case
5069 that TARGET_ALIAS is empty.
5070
17ef446e
PA
50712013-07-03 Pedro Alves <palves@redhat.com>
5072
5073 * Makefile.in (config.status): Depend on development.sh.
5074 (aclocal_m4_deps): Add libmcheck.m4.
5075 * acinclude.m4: Include libmcheck.m4.
5076 * configure.ac: Source development.sh instead of setting
5077 'development' here. --enable-libmcheck/--disable-libmcheck code
5078 factored out to GDB_AC_LIBMCHECK. Run it.
5079 * development.sh: New file.
5080 * libmcheck.m4: New file.
5081 * configure: Regenerate.
5082
ac6dd50f
TT
50832013-07-02 Tom Tromey <tromey@redhat.com>
5084
5085 * contrib/ari/update-web-ari.sh: Update for version.in change.
5086
bd1df410
TT
50872013-07-02 Tom Tromey <tromey@redhat.com>
5088
5089 * common/ptid.h: Comment fixes.
5090
4db1a1dc
TT
50912013-07-01 Tom Tromey <tromey@redhat.com>
5092
5093 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5094 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5095 (dwarf2_read_index, create_all_comp_units): Update.
5096
dd9aa048
TT
50972013-07-01 Tom Tromey <tromey@redhat.com>
5098
5099 * configure.ac (build_warnings): Add -Wold-style-definition.
5100 * configure: Rebuild.
5101 * machoread.c (_initialize_machoread): Use "(void)".
5102 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5103 use "(void)".
5104
44d100c3
TT
51052013-07-01 Tom Tromey <tromey@redhat.com>
5106
5107 * configure.ac (build_warnings): Add -Wold-style-declaration.
5108 * configure: Rebuild.
5109 * dsrec.c (make_srec): Use "static const", not "const static".
5110 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5111 not "const static".
5112 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5113 Use "static const", not "const static".
5114 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5115 not "const static".
5116 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5117 not "const static".
5118 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5119 not "const static".
5120 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5121 not "const static".
5122 (v850_dbtrap_breakpoint_from_pc): Likewise.
5123 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5124 not "const static".
5125
2945b807
TT
51262013-07-01 Tom Tromey <tromey@redhat.com>
5127
5128 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5129 * configure: Rebuild.
5130
d8d2a3ee
PA
51312013-07-01 Pedro Alves <palves@redhat.com>
5132
5133 * defs.h: Include "pathmax.h".
5134 * utils.c: Don't include sys/param.h.
5135 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5136 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5137 instead of MAXPATHLEN.
5138 * solib-sunos.c: Don't include sys/param.h.
5139 * xcoffread.c: Don't include sys/param.h.
5140 * bsd-kvm.c: Don't include sys/param.h.
5141 * darwin-nat.c: Don't include sys/param.h.
5142 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5143 * darwin-nat-info.c: Don't include sys/param.h.
5144 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5145 MAXPATHLEN.
5146 * i386obsd-nat.c: Don't include sys/param.h.
5147 * inf-child.c: Don't include sys/param.h.
5148 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5149 * linux-fork.c: Don't include sys/param.h.
5150 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5151 * linux-nat.c: Don't include sys/param.h.
5152 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5153 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5154 * m68klinux-nat.c: Don't include sys/param.h.
5155 * nbsd-nat.c: Don't include sys/param.h.
5156 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5157 * ppc-linux-nat.c: Don't include sys/param.h.
5158 * rs6000-nat.c: Don't include sys/param.h.
5159 * spu-linux-nat.c. Don't include sys/param.h.
5160 * windows-nat.c: Don't include sys/param.h.
5161 * xtensa-linux-nat.c: Don't include sys/param.h.
5162 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5163
38ec2207
PA
51642013-07-01 Pedro Alves <palves@redhat.com>
5165
5166 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5167 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5168 * gnulib/aclocal.m4: Regenerate.
5169 * gnulib/config.in: Regenerate.
5170 * gnulib/configure: Regenerate.
5171 * gnulib/import/pathmax.h: New file.
5172 * gnulib/import/Makefile.am: Regenerate.
5173 * gnulib/import/Makefile.in: Regenerate.
5174 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5175 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5176 * gnulib/import/m4/pathmax.m4: New file.
5177
e655c1a2
PA
51782013-07-01 Pedro Alves <palves@redhat.com>
5179
5180 * configure.ac (GDBINIT): Define, depending on host.
5181 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5182 * top.c (PATH_MAX): Delete fallback definition.
5183 (GDBINIT_FILENAME): Delete.
5184 (gdbinit): Reimplement as const char array set to the GDBINIT
5185 string constant.
5186 * top.h (gdbinit): Make const.
5187 * configure, config.in: Regenerate.
5188
50dd9793
PA
51892013-07-01 Pedro Alves <palves@redhat.com>
5190
5191 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5192 * cli/cli-cmds.h (source_script): Likewise.
5193 * exceptions.c (catch_command_errors_const): New function.
5194 * exceptions.h (catch_command_errors_const): Declare.
5195 * main.c (get_init_files): Make parameters const, and adjust.
5196 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5197 'local_gdbinit' locals const. Adjust to use
5198 catch_command_errors_const.
5199 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5200 'local_gdbinit' locals const.
5201
bc7dea8d
PA
52022013-07-01 Pedro Alves <palves@redhat.com>
5203
5204 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5205 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5206 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5207 <unistd.h>.
5208
8839a007
PA
52092013-07-01 Pedro Alves <palves@redhat.com>
5210
5211 Import the "unistd" gnulib module.
5212 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5213 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5214 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5215 import/m4/unistd_h.m4.
5216 * gnulib/aclocal.m4: Renenerate.
5217 * gnulib/config.in: Renenerate.
5218 * gnulib/configure: Renenerate.
5219 * gnulib/import/Makefile.am: Renenerate.
5220 * gnulib/import/Makefile.in: Renenerate.
5221 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5222 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5223 * gnulib/import/m4/off_t.m4: New file.
5224 * gnulib/import/m4/ssize_t.m4: New file.
5225 * gnulib/import/m4/sys_types_h.m4: New file.
5226 * gnulib/import/m4/unistd_h.m4: New file.
5227 * gnulib/import/sys_types.in.h: New file.
5228 * gnulib/import/unistd.c: New file.
5229 * gnulib/import/unistd.in.h: New file.
5230
8c0da261
PA
52312013-07-01 Pedro Alves <palves@redhat.com>
5232
5233 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5234 defined instead of checking HAVE_UNISTD_H.
5235
3574124b
PA
52362013-07-01 Pedro Alves <palves@redhat.com>
5237
5238 Reimport gnulib from scratch.
5239 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5240 import/m4/onceonly.m4.
5241 * gnulib/aclocal.m4: Renegerate.
5242 * gnulib/config.in: Renegerate.
5243 * gnulib/configure: Renegerate.
5244 * gnulib/import/Makefile.in: Renegerate.
5245 * gnulib/import/extra/update-copyright: Renegerate.
5246 * gnulib/import/m4/onceonly.m4: Delete.
5247
702dc4fd
PA
52482013-07-01 Pedro Alves <palves@redhat.com>
5249
5250 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5251
47e1ce27
JK
52522013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5253
5254 Code cleanup.
5255 * remote.c (async_remote_interrupt_twice): Make it static.
5256 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5257
e82839d4
SDJ
52582013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5259
5260 * ia64-linux-tdep.c: Include <ctype.h>.
5261 (ia64_linux_stap_is_single_operand): New function.
5262 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5263
d6c2da54
TT
52642013-06-28 Tom Tromey <tromey@redhat.com>
5265
5266 * Makefile.in (version.c): Use version.in, not
5267 common/version.in.
5268 * common/create-version.sh: Likewise.
5269 * common/version.in: Move...
5270 * version.in: ...here.
5271
74da6f00
PA
52722013-06-28 Pedro Alves <palves@redhat.com>
5273
5274 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5275 here.
5276 * utils.h (pagination_enabled): Declare.
5277
d32dc48e
PA
52782013-06-28 Pedro Alves <palves@redhat.com>
5279
5280 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5281 Move higher up in file.
5282
0edd9e3b
TT
52832013-06-28 Tom Tromey <tromey@redhat.com>
5284
5285 * tracepoint.c (deprecated_readline_begin_hook)
5286 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5287 declare.
5288
4eb59108
PA
52892013-06-28 Pedro Alves <palves@redhat.com>
5290
5291 PR tui/14880
5292 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5293 checking if they're available.
5294 * value.c (value_available_contents_eq): Change comment.
5295 * value.h (value_available_contents_eq): Expand comment.
5296
97b17156
TT
52972013-06-27 Tom Tromey <tromey@redhat.com>
5298
5299 * target.c (find_run_target): Remove.
5300 * target.h (find_run_target): Remove.
5301
6a3bfc5c
TT
53022013-06-27 Tom Tromey <tromey@redhat.com>
5303
5304 * corelow.c (core_gdbarch): Now static.
5305
c9ef825d
TT
53062013-06-27 Tom Tromey <tromey@redhat.com>
5307
5308 * target.c (target_struct_index): Remove.
5309
e5823f1c
PA
53102013-06-27 Pedro Alves <palves@redhat.com>
5311
5312 * infrun.c: Remove comment describing the 'stepping over runtime
5313 loader dynamic symbol resolution code' mechanism; moved to
5314 gdbint.texinfo.
5315
97f8dd09
PA
53162013-06-27 Pedro Alves <palves@redhat.com>
5317
5318 * exceptions.c (catch_command_errors): Remove spurious space.
5319 * exceptions.h (catch_command_errors): Second parameter is "arg",
5320 not "command".
5321
02b1871e
YQ
53222013-06-27 Yao Qi <yao@codesourcery.com>
5323
5324 * common/create-version.sh: Update comments. Handle the case
5325 that TARGET_ALIAS is empty.
5326
bb1b1cf1
PA
53272013-06-26 Pedro Alves <palves@redhat.com>
5328
5329 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5330 comment.
5331
7b624e71
PA
53322013-06-26 Pedro Alves <palves@redhat.com>
5333
5334 * infrun.c: Update comments on stepping over runtime loader
5335 dynamic symbol resolution code.
5336
74e5a346
SDJ
53372013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5338
5339 * ax-gdb.h (union exp_element): Forward declare.
5340 * parser-defs.h: Include expression.h.
5341
a2fb2cee
MR
53422013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5343
5344 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5345
cdba14e0
DK
53462013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5347
5348 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5349
f30aa5af
DK
53502013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5351
5352 Fix trace-status to output proper start-time and stop-time.
5353 * tracepoint.c (trace_status_command): Fix type of printf arg to
5354 prevent improper type conversion.
5355 (trace_status_mi): Likewise.
5356
1aee363c
MR
53572013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5358
5359 * mips-tdep.c (mips_next_pc): Fix a typo.
5360
3356937a
MR
53612013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5362
5363 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5364
dc673c81
YQ
53652013-06-26 Pedro Alves <pedro@codesourcery.com>
5366 Yao Qi <yao@codesourcery.com>
5367
5368 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5369 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5370 * mi/mi-main.c (print_variable_or_computed): New function.
5371 (mi_cmd_trace_frame_collected): New function.
5372 * tracepoint.c (find_trace_state_variable_by_number): New.
5373 (struct traceframe_info): Move to tracepoint.h
5374 (struct collection_list): Likewise.
5375 (do_collect_symbol): Include locals and arguments in the
5376 collected variables list.
5377 (clear_collection_list): Clear wholly collected variables list
5378 and computed variables list.
5379 (append_exp): New function.
5380 (encode_actions_1): Include variables in the wholly
5381 collected variables list. Include memory ranges and
5382 full-fledged expressions in the computed expressions list.
5383 (encode_actions): Move some code to ...
5384 Return the cleanup chain.
5385 (encode_actions_rsp): ... here. New function.
5386 (get_traceframe_location, get_traceframe_info): Remove static.
5387 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5388 (struct collection_list): Moved from tracepoint.c. Add two
5389 new fields 'wholly_collected' and 'computed'.
5390 (find_trace_state_variable_by_number): Declare.
5391 (encode_actions): Adjust declaration.
5392 (encode_actions_rsp): Declare.
5393 (get_traceframe_info, get_traceframe_location): Declare.
5394
5395 * NEWS: Mention new MI command -trace-frame-collected.
5396
28a93511
YQ
53972013-06-26 Pedro Alves <pedro@codesourcery.com>
5398 Yao Qi <yao@codesourcery.com>
5399
5400 * ctf.c (ctf_traceframe_info): Push trace state variables
5401 present in the trace data into the traceframe info object.
5402 * breakpoint.c (DEF_VEC_I): Remove.
5403 * common/filestuff.c (DEF_VEC_I): Likewise.
5404 * dwarf2loc.c (DEF_VEC_I): Likewise.
5405 * mi/mi-main.c (DEF_VEC_I): Likewise.
5406 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5407 * features/traceframe-info.dtd: Add tvar element and its
5408 attributes.
5409 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5410 (build_traceframe_info): Push trace state variables present in
5411 the trace data into the traceframe info object.
5412 (traceframe_info_start_tvar): New function.
5413 (tvar_attributes): New.
5414 (traceframe_info_children): Add "tvar" element.
5415 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5416
5417 * NEWS: Mention the change in GDB and GDBserver.
5418
ddacd3c8
YQ
54192013-06-26 Pedro Alves <pedro@codesourcery.com>
5420 Yao Qi <yao@codesourcery.com>
5421
5422 * tracepoint.c (trace_dump_command): Move code to ...
5423 (get_traceframe_location): ... here. New.
5424
05796b35
YQ
54252013-06-26 Pedro Alves <pedro@codesourcery.com>
5426 Yao Qi <yao@codesourcery.com>
5427
5428 * tracepoint.c (trace_dump_command): GDB emits an error
5429 instead of a warning when a traceframe is not selected.
5430
cbfa3b61
YQ
54312013-06-26 Pedro Alves <pedro@codesourcery.com>
5432 Yao Qi <yao@codesourcery.com>
5433
5434 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5435 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5436 in collection_list.
5437 (do_clear_collection_list, init_collection_list): New.
5438 (encode_actions): Add local variables 'tracepoint_list' and
5439 'stepping_list'. Call init_collection_list and make cleanup
5440 which calls do_clear_collection_list. Don't call
5441 clear_collection_list.
5442 (_initialize_tracepoint): Delete references to
5443 'tracepoint_list' and 'stepping_list'.
5444
6e2048d3
TT
54452013-06-25 Tom Tromey <tromey@redhat.com>
5446
5447 * common/create-version.sh (date): Use "$", not "$$" in sed
5448 expression.
5449
42059f0e
KB
54502013-06-25 Kevin Buettner <kevinb@redhat.com>
5451
5452 * NEWS (New targets): Add entry for TI MSP430.
5453
a0743c90
YQ
54542013-06-25 Yao Qi <yao@codesourcery.com>
5455
5456 * remote.c (remote_start_remote): Move code to upload tsv
5457 earlier.
5458
9d6e6e84
HZ
54592013-06-25 Yao Qi <yao@codesourcery.com>
5460 Hui Zhu <hui@codesourcery.com>
5461 Pedro Alves <palves@redhat.com>
5462
5463 PR breakpoints/15075
5464 PR breakpoints/15434
5465 * breakpoint.c (bpstat_stop_status): Call
5466 b->ops->after_condition_true.
5467 (update_dprintf_command_list): Don't append "continue" command
5468 to the command list of dprintf breakpoint.
5469 (base_breakpoint_after_condition_true): New function.
5470 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5471 (dprintf_after_condition_true): New function.
5472 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5473 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5474
586cf749
KB
54752013-06-24 Kevin Buettner <kevinb@redhat.com>
5476
5477 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5478 (ALLDEPFILES): Add msp430-tdep.c.
5479 * configure.tgt (msp430*-*-elf): New target.
5480 * msp430-tdep.c: New file.
5481
1bbce132
MR
54822013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5483
5484 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5485 microMIPS synthetic symbols.
5486
3e5d3a5a
MR
54872013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5488
5489 * objfiles.h (pc_in_section): New prototype.
5490 (in_plt_section): Remove name argument, replace prototype with
5491 static inline function.
5492 * mips-tdep.h: Include "objfiles.h".
5493 (in_mips_stubs_section): New function.
5494 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5495 in_solib_call_trampoline member.
5496 (hppa_in_solib_call_trampoline): Remove name argument.
5497 * objfiles.c (pc_in_section): New function.
5498 (in_plt_section): Remove function.
5499 * mips-linux-tdep.c: Include "objfiles.h".
5500 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5501 name argument. Return 1 rather than the low 16-bit halfword of
5502 any instruction examined.
5503 (mips_linux_in_dynsym_resolve_code): Update
5504 mips_linux_in_dynsym_stub call accordingly.
5505 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5506 rather than an equivalent hand-coded sequence.
5507 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5508 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5509 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5510 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5511 in_opd_section.
5512 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5513 on call to tdep->in_solib_call_trampoline.
5514 (hppa_in_solib_call_trampoline): Remove name argument, update
5515 according to in_plt_section change.
5516 (hppa_skip_trampoline_code): Update according to in_plt_section
5517 change.
5518 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5519 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5520 Likewise.
5521 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5522 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5523 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5524 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5525 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5526 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5527 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5528 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5529 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5530 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5531 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5532 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5533 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5534
b9b26a16
JB
55352013-06-24 Joel Brobecker <brobecker@adacore.com>
5536
5537 * common/create-version.sh: Fix expansion of $host_alias
5538 and $target_alias in generation of HOST_NAME and TARGET_NAME
5539 (resp.).
5540
01208463
TT
55412013-06-24 Tom Tromey <tromey@redhat.com>
5542
5543 * common/create-version.sh: New file.
5544 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5545 create-version.sh.
5546 (HFILES_NO_SRCDIR): Use common/version.h.
5547 * version.in: Move to ...
5548 * common/version.in: ... here. Replace date with "DATE".
5549 * version.h: Move to ...
5550 * common/version.h: ... here.
5551
bb6b9a5e
JB
55522013-06-21 Joel Brobecker <brobecker@adacore.com>
5553
5554 * gdb/gnulib/Makefile.in: Update date in copyright header.
5555 * gdb/gnulib/configure.ac: Ditto.
5556 * gdb/gnulib/update-gnulib.sh: Ditto.
5557
c3b18ee7
JB
55582013-06-21 Joel Brobecker <brobecker@adacore.com>
5559
5560 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5561 "gdb/gnulib/import".
5562
85d3b769
WN
55632013-06-21 Will Newton <will.newton@linaro.org>
5564
5565 * doublest.c (ldfrexp): Remove function.
5566 (convert_doublest_to_floatformat): Call frexpl instead of
5567 ldfrexp.
5568
88b48903
WN
55692013-06-21 Will Newton <will.newton@linaro.org>
5570
5571 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5572 * gnulib/aclocal.m4: Regenerate.
5573 * gnulib/config.in: Regenerate.
5574 * gnulib/configure: Regenerate.
5575 * gnulib/import/Makefile.am: Update.
5576 * gnulib/import/Makefile.in: Update.
5577 * gnulib/import/m4/gnulib-cache.m4: Update.
5578 * gnulib/import/m4/gnulib-comp.m4: Update.
5579 * gnulib/import/float+.h: Import.
5580 * gnulib/import/float.c: Import.
5581 * gnulib/import/float.in.h: Import.
5582 * gnulib/import/fpucw.h: Import.
5583 * gnulib/import/frexp.c: Import.
5584 * gnulib/import/frexpl.c: Import.
5585 * gnulib/import/isnan.c: Import.
5586 * gnulib/import/isnand-nolibm.h: Import.
5587 * gnulib/import/isnand.c: Import.
5588 * gnulib/import/isnanl-nolibm.h: Import.
5589 * gnulib/import/isnanl.c: Import.
5590 * gnulib/import/itold.c: Import.
5591 * gnulib/import/m4/exponentd.m4: Import.
5592 * gnulib/import/m4/exponentl.m4: Import.
5593 * gnulib/import/m4/float_h.m4: Import.
5594 * gnulib/import/m4/fpieee.m4: Import.
5595 * gnulib/import/m4/frexp.m4: Import.
5596 * gnulib/import/m4/frexpl.m4: Import.
5597 * gnulib/import/m4/isnand.m4: Import.
5598 * gnulib/import/m4/isnanl.m4: Import.
5599 * gnulib/import/m4/math_h.m4: Import.
5600 * gnulib/import/math.c: Import.
5601 * gnulib/import/math.in.h: Import.
5602
4353c9e6
JK
56032013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5604
5605 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5606 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5607 signature_INTEL_edx comparisons.
5608
e3e06db3
DE
56092013-06-20 Doug Evans <dje@google.com>
5610
6ac97d4c
DE
5611 symtab/15652
5612 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5613 All callers updated.
5614 (open_dwp_file): If we can't find the dwp file, search the basename
5615 in debug-file-directory.
5616
93417882
DE
5617 * dwarf2read.c (struct dwp_file): Fix comment.
5618 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5619
e3e06db3
DE
5620 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5621 better.
5622
0878d0fa
YQ
56232013-06-20 Yao Qi <yao@codesourcery.com>
5624
5625 * breakpoint.c (create_breakpoint): Fix code indentation.
5626
023fa29b
YQ
56272013-06-20 Yao Qi <yao@codesourcery.com>
5628
5629 * breakpoint.c (create_breakpoints_sal_default): Remove
5630 parameter 'lsal'. Update declaration.
5631 (bkpt_create_breakpoints_sal): Caller update.
5632 (tracepoint_create_breakpoints_sal): Likewise.
5633
c898adb7
YQ
56342013-06-20 Pedro Alves <pedro@codesourcery.com>
5635 Yao Qi <yao@codesourcery.com>
5636
5637 * NEWS: Mention the new option '--skip-unavailable' of command
5638 -data-list-register-values.
5639 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5640 --skip-unavailable option. Adjust to use output_register.
5641 (output_register): Add new 'skip_unavailable' parameter.
5642 Handle it.
5643
4d157a3d
MF
56442013-06-19 Mike Frysinger <vapier@gentoo.org>
5645
5646 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5647 common/i386-gcc-cpuid.h.
5648 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5649 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5650 Copy the latest version from upstream gcc.
5651 * common/linux-btrace.c: Include i386-cpuid.h.
5652 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5653 call to i386_cpuid.
5654 (cpu_supports_btrace): Likewise.
5655 * go32-nat.c: Include i386-cpuid.h.
5656 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5657
1ce4db08
DE
56582013-06-19 Doug Evans <dje@google.com>
5659
5660 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5661 (get_section_index): Ditto.
5662
0e4777df
TT
56632013-06-19 Tom Tromey <tromey@redhat.com>
5664
5665 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5666 "dprintf" help.
5667
3190f0c6
DE
56682013-06-18 Doug Evans <dje@google.com>
5669
5670 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5671 before using it.
5672 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5673 Move test of cu_index closer to use. Print complaint if cu_index
5674 is bad.
5675
8b89a20a
JB
56762013-06-18 Joel Brobecker <brobecker@adacore.com>
5677
5678 * machoread.c (oso_vector): Delete this global.
5679 (macho_register_oso): Add new parameter "oso_vector_ptr".
5680 Use it instead of the "oso_vector" global.
5681 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5682 (macho_symfile_read): Use a local oso_vector, to be free'ed
5683 at the end of this function, in place of the old "oso_vector"
5684 global. Update various function calls accordingly. Use one
5685 single cleanup chain for the entire function.
5686
59b0c7c1
JB
56872013-06-18 Joel Brobecker <brobecker@adacore.com>
5688
937c708c 5689 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5690 DWARF2_PER_OBJFILE by uses of DATA instead.
5691
427cd150
TT
56922013-06-18 Tom Tromey <tromey@redhat.com>
5693
5694 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5695 argument.
5696 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5697 Special case signals other than GDB_SIGNAL_TRAP.
5698 (explains_signal_watchpoint): New function.
5699 (base_breakpoint_explains_signal): Add 'sig' argument.
5700 (initialize_breakpoint_ops): Set 'explains_signal' method for
5701 watchpoints.
5702 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5703 signal argument.
5704 (bpstat_explains_signal): Likewise.
5705 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5706
2d57700b
TT
57072013-06-18 Tom Tromey <tromey@redhat.com>
5708
5709 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5710
ac475191
TT
57112013-06-18 Tom Tromey <tromey@redhat.com>
5712
5713 * python/python.c (finish_python_initialization): Decref
5714 'pythondir' on failure path as well.
5715
5bd1ef56
TT
57162013-06-18 Tom Tromey <tromey@redhat.com>
5717
5718 PR symtab/15391:
5719 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5720 after taking bits_to_skip into account. Sign extend byte_offset.
5721 * utils.h (gdb_sign_extend): Declare.
5722 * utils.c (gdb_sign_extend): New function.
5723
92fac807
JK
57242013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5725
5726 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5727
2d503272
PM
57282013-06-17 Pierre Muller <muller@sourceware.org>
5729
5730 * corelow.c (core_open): Print GDB signal name instead of target
5731 signal number.
5732
6916fd98
MF
57332013-06-17 Mike Frysinger <vapier@gentoo.org>
5734
5735 * .gitignore: Add /gcore.
5736
9c02c129
DE
57372013-06-13 Doug Evans <dje@google.com>
5738
5739 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5740 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5741
d0548fa2
PM
57422013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5743
5744 * stack.c (backtrace_command_1): Fix indentation.
5745
22128028
JB
57462013-06-11 Joel Brobecker <brobecker@adacore.com>
5747
5748 * window-nat.c (thread_rec): Add missing empty line after
5749 local variable declaration.
5750
2ed3e009
JB
57512013-06-11 Joel Brobecker <brobecker@adacore.com>
5752
5753 * windows-nat.c (thread_rec): Revert format used to print
5754 error code returned by SuspendThread from %d back to %u.
5755
0c3d84be
JB
57562013-06-11 Joel Brobecker <brobecker@adacore.com>
5757
5758 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5759 ID in debug trace.
5760 (get_windows_debug_event): Likewise, for all debug traces.
5761
80e88e1a
JB
57622013-06-11 Joel Brobecker <brobecker@adacore.com>
5763
5764 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5765 warning message.
5766
1edebdbf
YQ
57672013-06-08 Pedro Alves <pedro@codesourcery.com>
5768 Yao Qi <yao@codesourcery.com>
5769
5770 * mi/mi-main.c (get_register): Remove declaration.
5771 (output_register): Declare.
5772 (mi_cmd_data_list_register_values): Remove local variable
5773 'tuple_cleanup'. Move some code into output_register.
5774 (get_register): Renamed to ...
5775 (output_register): ... this. Output the register's
5776 "number" ui_out tuple here.
5777
47d48711
PA
57782013-06-07 Pedro Alves <palves@redhat.com>
5779
5780 * darwin-nat.c: Fix formating in copyright header.
5781 * darwin-nat.h: Likewise.
5782 * gnu-nat.c: Likewise.
5783 * machoread.c: Likewise.
5784
3aee8918
PA
57852013-06-07 Pedro Alves <palves@redhat.com>
5786
5f2b57b5 5787 PR server/14823
3aee8918
PA
5788 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5789 static. Output a global target description pointer.
5790 (init_registers_${name}): Adjust to initialize a
5791 target description structure.
5792
fe8400b4
WN
57932013-06-07 Will Newton <will.newton@linaro.org>
5794
5795 * printcmd.c (build_address_symbolic): Call
5796 gdbarch_addr_bits_remove for text minimal symbols.
5797
20df6206
WN
57982013-06-07 Will Newton <will.newton@linaro.org>
5799
5800 * MAINTAINERS: Add myself to Write After Approval.
5801
aef525cb
YQ
58022013-06-07 Yao Qi <yao@codesourcery.com>
5803
5804 * tracepoint.c (start_tracing): Move code to ...
5805 (trace_reset_local_state): ... here. New.
5806 (disconnect_tracing): Don't call set_current_traceframe,
5807 set_tracepoint_num, and set_traceframe_context. Call
5808 trace_reset_local_state instead.
5809 (tfile_close): Call trace_reset_local_state.
5810 * ctf.c (ctf_close): Likewise.
5811 * remote.c (remote_close): Likewise.
5812 * tracepoint.h (trace_reset_local_state): Declare.
5813
d2415c6c
DE
58142013-06-06 Doug Evans <dje@google.com>
5815
5816 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5817 and fix header docs.
5818
69fc87c2
DE
58192013-06-05 Doug Evans <dje@google.com>
5820 Keith Seitz <keiths@redhat.com>
5821
5822 PR 15519
5823 * cp-namespace.c (find_symbol_in_baseclass): Call
5824 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5825 Check result of call to lookup_symbol_static.
5826 Call lookup_static_symbol_aux unconditionally.
5827 Call check_typedef on base types before accessing them.
5828 (cp_lookup_nested_symbol): Fix comment.
5829
a513d1e8
LM
58302013-06-05 Luis Machado <lgustavo@codesourcery.com>
5831
5832 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5833 minimal symbols pointing to function descriptors.
5834
351a6f02
TT
58352013-06-05 Tom Tromey <tromey@redhat.com>
5836
5837 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5838
5e1b953b 58392013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5840 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5841
5842 * remote.c (remote_wait_as): Restore signal handler before returning
5843 when GDB gets a notification.
5844
f9e14852
GB
58452013-06-04 Gary Benson <gbenson@redhat.com>
5846
8445cbf1 5847 PR 2328
f9e14852
GB
5848 * breakpoint.h (handle_solib_event): Moved function declaration
5849 to solib.h.
5850 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5851 (bpstat_stop_status): Pass new argument to handle_solib_event.
5852 * solib.h (update_solib_breakpoints): New function declaration.
5853 (handle_solib_event): Moved function declaration from
5854 breakpoint.h.
5855 * solib.c (update_solib_breakpoints): New function.
5856 (handle_solib_event): Moved function from breakpoint.c.
5857 Updated to call solib_ops->handle_event if not NULL.
5858 * solist.h (target_so_ops): New fields "update_breakpoints" and
5859 "handle_event".
5860 * infrun.c (set_stop_on_solib_events): New function.
5861 (_initialize_infrun): Use the above for "set
5862 stop-on-solib-events".
5863 (handle_inferior_event): Pass new argument to handle_solib_event.
5864 * solib-svr4.c (probe.h): New include.
5865 (svr4_free_library_list): New forward declaration.
5866 (probe_action): New enum.
5867 (probe_info): New struct.
5868 (probe_info): New static variable.
5869 (NUM_PROBES): New definition.
5870 (svr4_info): New fields "using_xfer", "probes_table" and
5871 "solib_list".
5872 (free_probes_table): New function.
5873 (free_solib_list): New function.
5874 (svr4_pspace_data_cleanup): Free probes table and solib list.
5875 (svr4_copy_library_list): New function.
5876 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5877 (svr4_read_so_list): New parameter "prev_lm".
5878 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5879 (svr4_current_sos): New function.
5880 (probe_and_action): New struct.
5881 (hash_probe_and_action): New function.
5882 (equal_probe_and_action): Likewise.
5883 (register_solib_event_probe): Likewise.
5884 (solib_event_probe_at): Likewise.
5885 (solib_event_probe_action): Likewise.
5886 (solist_update_full): Likewise.
5887 (solist_update_incremental): Likewise.
5888 (disable_probes_interface_cleanup): Likewise.
5889 (svr4_handle_solib_event): Likewise.
5890 (svr4_update_solib_event_breakpoint): Likewise.
5891 (svr4_update_solib_event_breakpoints): Likewise.
5892 (svr4_create_solib_event_breakpoints): Likewise.
5893 (enable_break): Free probes table before creating breakpoints.
5894 Use svr4_create_solib_event_breakpoints to create breakpoints.
5895 (svr4_solib_create_inferior_hook): Free the solib list.
5896 (_initialize_svr4_solib): Initialise
5897 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5898
ced63ec0
GB
58992013-06-04 Gary Benson <gbenson@redhat.com>
5900
5901 * target.h (target_ops): New field
5902 "to_augmented_libraries_svr4_read".
5903 (target_augmented_libraries_svr4_read): New macro.
5904 * target.c (update_current_target): Handle
5905 to_augmented_libraries_svr4_read.
5906 * remote.c (remote_state): New field
5907 "augmented_libraries_svr4_read".
5908 (remote_augmented_libraries_svr4_read_feature): New function.
5909 (remote_protocol_features): Add entry for
5910 "augmented-libraries-svr4-read".
5911 (remote_augmented_libraries_svr4_read): New function.
5912 (init_remote_ops): Initialize
5913 remote_ops.to_augmented_libraries_svr4_read.
5914
7f91dbec
GB
59152013-06-04 Gary Benson <gbenson@redhat.com>
5916
5917 * NEWS: Update.
5918
607ece04
GB
59192013-06-04 Gary Benson <gbenson@redhat.com>
5920
5921 * objfiles.h (inhibit_section_map_updates): New function
5922 declaration.
5923 (resume_section_map_updates): Likewise.
5924 (resume_section_map_updates_cleanup): Likewise.
5925 * objfiles.c (objfile_pspace_info): Removed field
5926 "objfiles_changed_p". New fields "new_objfiles_available",
5927 "section_map_dirty" and "inhibit_updates".
5928 (allocate_objfile): Set new_objfiles_available.
5929 (free_objfile): Set section_map_dirty.
5930 (objfile_relocate1): Likewise.
5931 (in_plt_section): Likewise.
5932 (find_pc_section): Update the conditions under which the
5933 section map will be updated.
5934 (inhibit_section_map_updates): New function.
5935 (resume_section_map_updates): Likewise.
5936 (resume_section_map_updates_cleanup): Likewise.
5937
9ee6a5ac
GB
59382013-06-04 Gary Benson <gbenson@redhat.com>
5939
5940 * probe.h (get_probe_argument_count): New declaration.
5941 (evaluate_probe_argument): Likewise.
5942 * probe.c (get_probe_argument_count): New function.
5943 (evaluate_probe_argument): Likewise.
5944 (probe_safe_evaluate_at_pc): Use the above new functions.
5945
845d4708
AM
59462013-06-04 Alan Modra <amodra@gmail.com>
5947
5948 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5949 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5950 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5951 target mem reads on optional insns.
5952 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5953 ppc_insns_match_pattern calls.
5954 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5955 Add match for power7 thread safety insns, and new order of
5956 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5957 invocation in comment, and update rest of comment.
5958 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5959 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5960 (ppc64_standard_linkage2_target): Update insn offsets.
5961 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5962 stubs first. Update calls.
5963
404e278f
YQ
59642013-06-04 Yao Qi <yao@codesourcery.com>
5965
5966 * solib.c (solib_find): Don't need dir separator if path has
5967 drive spec.
5968
f6aea118
JB
59692013-06-03 Joel Brobecker <brobecker@adacore.com>
5970
5971 Revert (indirectly causes a SIGSEGV):
5972 * machoread.c (macho_symfile_read): Assign first cleanup to
5973 'back_to'.
5974
87967e27
YQ
59752013-06-03 Yao Qi <yao@codesourcery.com>
5976
5977 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5978 mi-parse.c. Make them static.
5979 (mi_all_values): Likewise.
5980 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5981 mi_parse_print_values. Make it external.
5982 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5983 Remove the declarations.
5984 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5985 * mi/mi-parse.h (mi_parse_print_values): Declare.
5986 * mi/mi-cmd-stack.c: Include mi-parse.h.
5987 (parse_print_values): Remove
5988 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5989 of parse_print_values.
5990 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5991
3ca73e0c
YQ
59922013-05-31 Pedro Alves <pedro@codesourcery.com>
5993 Yao Qi <yao@codesourcery.com>
5994
5995 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5996 (encode_actions): Move code to ...
5997 (all_tracepoint_actions_and_cleanup): ... here. New.
5998 (trace_dump_command): Likewise.
5999
4e993a19
TT
60002013-05-30 Tom Tromey <tromey@redhat.com>
6001
6002 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6003
e3b76b4f
TT
60042013-05-30 Tom Tromey <tromey@redhat.com>
6005
6006 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6007 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6008 'old_chain' argument. Add 'parser_result' argument.
6009 (gdb_xml_create_parser_and_cleanup): Remove old version.
6010 (gdb_xml_parse_quick): Update.
6011 (xml_process_xincludes): Update.
6012 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6013 declare.
6014
db26349c
TT
60152013-05-30 Tom Tromey <tromey@redhat.com>
6016
6017 * probe.c (collect_probes): Check arguments for NULL before
6018 calling compile_rx_or_error.
6019 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6020 Remove NULL return.
6021
77f9e713
TT
60222013-05-30 Tom Tromey <tromey@redhat.com>
6023
6024 * infrun.c (adjust_pc_after_break): Introduce an outer null
6025 cleanup.
6026
45475de7
TT
60272013-05-30 Tom Tromey <tromey@redhat.com>
6028
6029 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6030
ac5007fd
TT
60312013-05-30 Tom Tromey <tromey@redhat.com>
6032
6033 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6034 for 'old_chain'. Do not check 'head' before processing
6035 cleanups.
6036
cd82eddc
TT
60372013-05-30 Tom Tromey <tromey@redhat.com>
6038
6039 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6040 "cleanup_tuple".
6041
57cee33a
TT
60422013-05-30 Tom Tromey <tromey@redhat.com>
6043
6044 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6045 inner scope. Unconditionally call do_cleanups.
6046
795d915c
TT
60472013-05-30 Tom Tromey <tromey@redhat.com>
6048
6049 * source.c (find_and_open_source): Call do_cleanups.
6050
1fc3cf4a
TT
60512013-05-30 Tom Tromey <tromey@redhat.com>
6052
6053 * linux-thread-db.c (thread_db_load_search): Unconditionally
6054 call do_cleanups.
6055
e35ac9bf
TT
60562013-05-30 Tom Tromey <tromey@redhat.com>
6057
6058 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6059 for 'cleanup'; instead use a later one.
6060
f3300387
TT
60612013-05-30 Tom Tromey <tromey@redhat.com>
6062
6063 * python/py-breakpoint.c (bppy_get_commands): Use
6064 explicit, unconditional return.
6065 * python/py-frame.c (frapy_read_var): Likewise.
6066 * python/python.c (gdbpy_decode_line): Likewise.
6067
c27e16e3
TT
60682013-05-30 Tom Tromey <tromey@redhat.com>
6069
6070 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6071 do_cleanups on all return paths.
6072
5ae85e44
TT
60732013-05-30 Tom Tromey <tromey@redhat.com>
6074
6075 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6076
73b8d9da
TT
60772013-05-30 Tom Tromey <tromey@redhat.com>
6078
6079 * stabsread.c (read_struct_type): Call do_cleanups along
6080 all return paths.
6081
7d266584
MR
60822013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6083
6084 * mips-linux-tdep.c: Adjust formatting throughout.
6085
0f900f54
TT
60862013-05-30 Tom Tromey <tromey@redhat.com>
6087
6088 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6089 along all return paths.
6090
a991ac28
TT
60912013-05-30 Tom Tromey <tromey@redhat.com>
6092
6093 * symfile.c (find_separate_debug_file): Call do_cleanups
6094 along all return paths.
6095
1abaf042
TT
60962013-05-30 Tom Tromey <tromey@redhat.com>
6097
6098 * symtab.c (search_symbols): Introduce a null cleanup for
6099 'retval_chain'.
6100
edefe1da
TT
61012013-05-30 Tom Tromey <tromey@redhat.com>
6102
6103 * python/py-value.c (valpy_binop): Call do_cleanups before
6104 exiting loop.
6105
54f72dcc
TT
61062013-05-30 Tom Tromey <tromey@redhat.com>
6107
6108 * python/py-prettyprint.c (print_children): Remove extra
6109 do_cleanups call.
6110
af1c6971
TT
61112013-05-30 Tom Tromey <tromey@redhat.com>
6112
6113 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6114 all return paths.
6115
b862ce75
TT
61162013-05-30 Tom Tromey <tromey@redhat.com>
6117
6118 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6119 along all return paths.
6120
e12fefc8
TT
61212013-05-30 Tom Tromey <tromey@redhat.com>
6122
6123 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6124 call do_cleanups.
6125
4867f990
TT
61262013-05-30 Tom Tromey <tromey@redhat.com>
6127
6128 * varobj.c (c_value_of_root): Call do_cleanups along all
6129 return paths.
6130
4fd2d6af
TT
61312013-05-30 Tom Tromey <tromey@redhat.com>
6132
6133 * tracepoint.c (trace_dump_command): Unconditionally call
6134 do_cleanups.
6135
752eb8b4
TT
61362013-05-30 Tom Tromey <tromey@redhat.com>
6137
6138 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6139 do_cleanups earlier.
6140
e42d0aa5
TT
61412013-05-30 Tom Tromey <tromey@redhat.com>
6142
6143 * machoread.c (macho_symfile_read): Assign first cleanup to
6144 'back_to'.
6145
4bbc010a
TT
61462013-05-30 Tom Tromey <tromey@redhat.com>
6147
6148 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6149
b9635925
TT
61502013-05-30 Tom Tromey <tromey@redhat.com>
6151
6152 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6153
25f43500
TT
61542013-05-30 Tom Tromey <tromey@redhat.com>
6155
6156 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6157 call discard_cleanups.
6158 (inf_ptrace_attach): Likewise.
6159
d6a2e54a
TT
61602013-05-30 Tom Tromey <tromey@redhat.com>
6161
6162 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6163 return paths.
6164 (mips_initialize): Likewise.
6165 (common_open): Call do_cleanups.
6166
48be7c1b
TT
61672013-05-30 Tom Tromey <tromey@redhat.com>
6168
6169 * utils.c (internal_vproblem): Call do_cleanups.
6170
e61727ab
TT
61712013-05-30 Tom Tromey <tromey@redhat.com>
6172
6173 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6174
b81b921f
TT
61752013-05-30 Tom Tromey <tromey@redhat.com>
6176
6177 * cli/cli-script.c (setup_user_args): Don't return after error.
6178
fe48dfb1
TT
61792013-05-30 Tom Tromey <tromey@redhat.com>
6180
6181 * somread.c (som_symtab_read): Call do_cleanups.
6182
27833de7
TT
61832013-05-30 Tom Tromey <tromey@redhat.com>
6184
6185 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6186
5b3fca71
TT
61872013-05-30 Tom Tromey <tromey@redhat.com>
6188
6189 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6190 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6191 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6192 * source.c (show_substitute_path_command): Call do_cleanups.
6193 (unset_substitute_path_command, set_substitute_path_command):
6194 Likewise.
6195 * symfile.c (load_command): Call do_cleanups.
6196
af83e3f8
TT
61972013-05-30 Tom Tromey <tromey@redhat.com>
6198
6199 * contrib/cleanup_check.py: New file.
6200 * contrib/gcc-with-excheck: Add option parsing.
6201
564eac42
JB
62022013-05-30 Joel Brobecker <brobecker@adacore.com>
6203
6204 * windows-nat.c (windows_delete_thread): Add missing space
6205 in cast expression.
6206
47902076
HAQ
62072013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6208
6209 * inferior.c (top level): Include tilde.h.
6210 (add_inferior_command): Call tilde_expand on the value of 'exec'
6211 argument.
6212
23da373a
YQ
62132013-05-30 Pedro Alves <pedro@codesourcery.com>
6214 Yao Qi <yao@codesourcery.com>
6215
6216 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6217 Caller update.
6218 (encode_actions): Likewise.
6219 * remote.c (remote_download_tracepoint): Caller update.
6220 * tracepoint.h (encode_actions): Update declaration.
6221
a6e6f791
PA
62222013-05-30 Pedro Alves <palves@redhat.com>
6223
6224 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6225 pointer.
6226
36d25514
YQ
62272013-05-30 Yao Qi <yao@codesourcery.com>
6228
6229 * remote.c (remote_check_symbols): Remove unused parameter
6230 'objfile'.
6231 Declaration update.
6232 (remote_start_remote, remote_new_objfile): Caller update.
6233
62a813cc
YQ
62342013-05-30 Yao Qi <yao@codesourcery.com>
6235
6236 * mi/mi-cmds.c (mi_cmds): Define MI command
6237 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6238 DEF_MI_CMD_CLI.
6239
28439a30
PA
62402013-05-29 Pedro Alves <palves@redhat.com>
6241
6242 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6243 (remote_insert_watchpoint, remote_remove_watchpoint)
6244 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6245 (remote_verify_memory, compare_sections_command)
6246 (remote_search_memory): Set the general process/thread on the
6247 remote side.
6248
6ac1c082
PA
62492013-05-29 Pedro Alves <palves@redhat.com>
6250
6251 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6252 (_initialize_aarch64_tdep): Don't call
6253 initialize_tdesc_aarch64_without_fpu.
6254 * features/Makefile (WHICH): Remove reference to
6255 aarch64-without-fpu.
6256 * features/aarch64-without-fpu.c: Delete file.
6257 * regformats/aarch64-without-fpu.dat: Delete file.
6258
a73e3634
YQ
62592013-05-28 Yao Qi <yao@codesourcery.com>
6260
6261 * tracepoint.c (stringify_collection_list): Remove parameter
6262 'string'.
6263 (encode_actions): Caller update. Remove local variables.
6264
c0ea94eb
YQ
62652013-05-24 Yao Qi <yao@codesourcery.com>
6266
6267 * tracepoint.c (TFILE_PID): Remove.
6268 (tfile_open): Don't add thread and inferior.
6269 (tfile_close): Don't set 'inferior_ptid'. Don't call
6270 exit_inferior_silent.
6271 (tfile_thread_alive): Remove.
6272 (init_tfile_ops): Don't set field 'to_thread_alive' of
6273 tfile_ops.
6274
20d7f211
DE
62752013-05-23 Doug Evans <dje@google.com>
6276
6277 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6278
8658d16d
PA
62792013-05-23 Pedro Alves <palves@redhat.com>
6280
6281 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6282 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6283 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6284 Only define if HAVE_SOCKETS is defined.
6285 * configure.ac: Check for sys/socket.h.
6286 * config.in, configure: Regenerate.
6287
21aa081e
PA
62882013-05-23 Pedro Alves <palves@redhat.com>
6289
6290 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6291 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6292 printing uint32_t variables.
6293
c2d6af84
PA
62942013-05-23 Pedro Alves <palves@redhat.com>
6295
6296 * NEWS: Mention GDBserver range stepping support.
6297
c1e36e3e
PA
62982013-05-23 Yao Qi <yao@codesourcery.com>
6299 Pedro Alves <palves@redhat.com>
6300
6301 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6302 field.
6303 * infcmd.c (step_once, until_next_command): Enable range stepping.
6304 * infrun.c (displaced_step_prepare): Disable range stepping.
6305 (resume): Disable range stepping if stepping over a breakpoint or
6306 we have software watchpoints. If range stepping is enabled,
6307 assert the thread is in the stepping range.
6308 (clear_proceed_status_thread): Clear may_range_step.
6309 (handle_inferior_event): Disable range stepping as soon as we know
6310 the thread that hit the event. Re-enable it whenever we're going
6311 to step with a step range.
6312 * remote.c (struct vCont_action_support) <r>: New field.
6313 (use_range_stepping): New global.
6314 (remote_vcont_probe): Handle 'r' action.
6315 (append_resumption): Append an 'r' action if the thread may range
6316 step.
6317 (show_range_stepping): New function.
6318 (set_range_stepping): New function.
6319 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6320 'set range-stepping' and 'show range-stepping' commands.
6321 * NEWS: Mention range stepping, the new vCont;r action, and the
6322 new "set/show range-stepping" commands.
6323
d458bd84
PA
63242013-05-23 Yao Qi <yao@codesourcery.com>
6325 Pedro Alves <palves@redhat.com>
6326
6327 * remote.c (struct vCont_action_support): New struct.
6328 (struct remote_state) <support_vCont_t>: Remove field.
6329 <vCont_actions_support>: New field.
6330 (remote_vcont_probe, remote_stop_ns): Update.
6331
ce4c476a
PA
63322013-05-23 Yao Qi <yao@codesourcery.com>
6333 Pedro Alves <palves@redhat.com>
6334
6335 * gdbthread.h (pc_in_thread_step_range): New declaration.
6336 * thread.c (pc_in_thread_step_range): New function.
6337 * infrun.c (handle_inferior_event): Use it.
6338
ce70887a
JB
63392013-05-23 Joel Brobecker <brobecker@adacore.com>
6340
6341 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6342 of sprintf.
6343
55b87a52
KS
63442013-05-22 Keith Seitz <keiths@redhat.com>
6345
6346 * ada-lang.c (is_known_support_routine): Add explicit free of
6347 'func_name' from find_frame_funname.
6348 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6349 for func_name from find_frame_funname.
6350 * python/py-frame.c (frapy_name): Add explicit free of
6351 'name' from find_frame_funname.
6352 * stack.c (find_frame_funname): Add comment explaining that
6353 funcp must be freed by the caller.
6354 Return copy of symbol names instead of pointers.
6355 (print_frame): Add a cleanup for 'funname' from
6356 find_frame_funname.
6357 * stack.h (find_frame_funname): Remove "const" from
6358 'funname' parameter.
6359
5f2e6b00
TT
63602013-05-22 Tom Tromey <tromey@redhat.com>
6361
6362 PR c++/15401:
6363 * c-valprint.c (c_value_print): Use value_addr for
6364 references. Convert back to reference type with value_ref.
6365
d85c4847
EZ
63662013-05-22 Eli Zaretskii <eliz@gnu.org>
6367
6368 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6369 unloaded DLL, it will be done by handle_solib_event. See
6370 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6371 details.
6372
54eb231c
PM
63732013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6374
6375 * ui-out.c: Create typedef ui_out_level_p and define vector
6376 operations for that type.
6377 (struct ui_out): Use a vector instead of an array.
6378 (current_level): Return level from a vector.
6379 (push_level): Create a level in a vector.
6380 (pop_level): Delete a level in a vector.
6381 (ui_out_new): Create initial level zero level, and store in a
6382 vector.
6383 (ui_out_destroy): Add vector cleanup.
6384
ac90359c
PA
63852013-05-22 Pedro Alves <palves@redhat.com>
6386
6387 * python/python-internal.h (gdb_Py_DECREF): Tag with
6388 "ARI: editCase function".
6389
6dcc1893
PP
63902013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6391
6392 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6393
c8c735b9
PA
63942013-05-21 Pedro Alves <palves@redhat.com>
6395
6396 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6397 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6398 * python/py-utils.c (py_decref): Don't check for NULL before
6399 calling Py_DECREF.
6400
1915daeb
PA
64012013-05-21 Pedro Alves <palves@redhat.com>
6402
6403 * python/py-utils.c (py_decref): Remove extra braces.
6404 (gdb_pymodule_addobject): Remove extra braces.
6405 * python-internal.h (gdb_Py_DECREF): New static inline function.
6406 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6407
bd9673a4
PW
64082013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6409
6410 * breakpoints.c (detach_breakpoints): Do not
6411 detach breakpoints locations with loc_type bp_loc_other.
6412
ff6009d0
JK
64132013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6414
6415 Workaround Python 2.6.
6416 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6417 a block.
6418
3641da11
JK
64192013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6420
6421 Code cleanup: constification.
6422 * solib.c (solib_ops): Make return type and ops variable type const.
6423 (set_solib_ops): Make the new_ops parameter and ops variable const.
6424 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6425 (solib_add, solib_keep_data_in_core, clear_solib)
6426 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6427 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6428 const.
6429 * solib.h (set_solib_ops): Make the new_ops parameter const.
6430
776af39e
JB
64312013-05-21 Joel Brobecker <brobecker@adacore.com>
6432
6433 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6434 variable.
6435 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6436 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6437 (SYSTEM_GDBINIT_FILES): New variables.
6438 (all): Add stamp-system-gdbinit.
6439 (stamp-system-gdbinit): New rule.
6440 (clean-system-gdbinit, install-system-gdbinit)
6441 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6442 (install-only): Add dependency on install-system-gdbinit.
6443 (uninstall): Add dependency on uninstall-system-gdbinit.
6444 (clean): Add dependency on clean-system-gdbinit.
6445 * system-gdbinit/elinos.py: New file.
6446 * system-gdbinit/wrs-linux.py: New file.
6447
1509e573
JB
64482013-05-21 Joel Brobecker <brobecker@adacore.com>
6449
6450 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6451
c5867ab6
HZ
64522013-05-21 Hui Zhu <hui@codesourcery.com>
6453
6454 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6455 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6456 * mi/mi-cmd-break.c (ctype.h): New include.
6457 (gdb_obstack.h): New include.
6458 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6459 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6460 (mi_cmd_dprintf_insert): New.
6461 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6462 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6463
7d38e38f
TT
64642013-05-20 Tom Tromey <tromey@redhat.com>
6465
6466 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6467
97b77b39
TT
64682013-05-20 Tom Tromey <tromey@redhat.com>
6469
6470 * python/py-value.c (valpy_get_dynamic_type): Simplify
6471 dynamic_type assignment. Use Py_XINCREF.
6472
53e66479
TT
64732013-05-20 Tom Tromey <tromey@redhat.com>
6474
6475 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6476
dcf87832
TT
64772013-05-20 Tom Tromey <tromey@redhat.com>
6478
6479 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6480 (gdbpy_selected_frame): Move object-construction code
6481 out of TRY_CATCH.
6482
aa36459a
TT
64832013-05-20 Tom Tromey <tromey@redhat.com>
6484
6485 * python/py-arch.c (gdbpy_initialize_arch): Use
6486 gdb_pymodule_addobject.
6487 * python/py-block.c (gdbpy_initialize_blocks): Use
6488 gdb_pymodule_addobject.
6489 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6490 gdb_pymodule_addobject.
6491 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6492 gdb_pymodule_addobject.
6493 * python/py-event.c (gdbpy_initialize_event_generic): Use
6494 gdb_pymodule_addobject.
6495 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6496 gdb_pymodule_addobject.
6497 * python/py-evts.c (add_new_registry): Use
6498 gdb_pymodule_addobject.
6499 (gdbpy_initialize_py_events): Likewise.
6500 * python/py-finishbreakpoint.c
6501 (gdbpy_initialize_finishbreakpoints): Use
6502 gdb_pymodule_addobject.
6503 * python/py-frame.c (gdbpy_initialize_frames): Use
6504 gdb_pymodule_addobject.
6505 * python/py-function.c (gdbpy_initialize_functions): Use
6506 gdb_pymodule_addobject.
6507 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6508 gdb_pymodule_addobject.
6509 * python/py-infthread.c (gdbpy_initialize_thread): Use
6510 gdb_pymodule_addobject.
6511 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6512 gdb_pymodule_addobject.
6513 * python/py-param.c (gdbpy_initialize_parameters): Use
6514 gdb_pymodule_addobject.
6515 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6516 gdb_pymodule_addobject.
6517 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6518 gdb_pymodule_addobject.
6519 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6520 gdb_pymodule_addobject.
6521 * python/py-type.c (gdbpy_initialize_types): Use
6522 gdb_pymodule_addobject.
6523 * python/py-utils.c (gdb_pymodule_addobject): New function.
6524 * python/py-value.c (gdbpy_initialize_values): Use
6525 gdb_pymodule_addobject.
6526 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6527 * python/python.c (_initialize_python): Use
6528 gdb_pymodule_addobject.
6529
3d4a3c3e
TT
65302013-05-20 Tom Tromey <tromey@redhat.com>
6531
6532 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6533 * python/py-param.c (get_set_value, get_show_value): Use
6534 explicit decrefs.
6535 * python/python.c (start_type_printers, apply_type_printers):
6536 Use explicit decrefs.
6537
72ff8829
TT
65382013-05-20 Tom Tromey <tromey@redhat.com>
6539
6540 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6541 incref the module.
6542
02146ba5
TT
65432013-05-20 Tom Tromey <tromey@redhat.com>
6544
6545 * python/python.c (gdbpy_run_events): Decref the result
6546 of PyObject_CallObject.
6547
33ee792f
TT
65482013-05-20 Tom Tromey <tromey@redhat.com>
6549
6550 * python/py-symtab.c (set_sal): Use
6551 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6552 (symtab_and_line_to_sal_object): Update.
6553
fcb49fc8
TT
65542013-05-20 Tom Tromey <tromey@redhat.com>
6555
6556 * python/py-param.c (compute_enum_values): Decref 'item'.
6557
0646da15
TT
65582013-05-20 Tom Tromey <tromey@redhat.com>
6559
6560 * mi/mi-main.c: Include python-internal.h.
6561 (mi_cmd_list_features): Check gdb_python_initialized.
6562 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6563 (python_inferior_exit, python_new_objfile, add_thread_object)
6564 (delete_thread_object, py_free_inferior): Check
6565 gdb_python_initialized.
6566 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6567 gdb_python_initialized.
6568 * python/py-type.c (save_objfile_types): Check
6569 gdb_python_initialized.
6570 * python/python-internal.h (gdb_python_initialized): Declare.
6571 * python/python.c (ensure_python_env): Throw exception if
6572 Python not initialized.
6573 (before_prompt_hook, source_python_script_for_objfile)
6574 (start_type_printers, apply_type_printers,
6575 free_type_printers): Check gdb_python_initialized.
6576 * varobj.c (varobj_get_display_hint)
6577 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6578 (install_new_value_visualizer, varobj_set_visualizer)
6579 (value_get_print_value): Check gdb_python_initialized.
6580
999633ed
TT
65812013-05-20 Tom Tromey <tromey@redhat.com>
6582
6583 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6584 Check errors.
6585 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6586 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6587 Check errors.
6588 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6589 Check errors.
6590 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6591 Check errors.
6592 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6593 Check errors.
6594 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6595 init function to return 'int'.
6596 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6597 Return 'int'. Check errors.
6598 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6599 Check errors.
6600 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6601 Return 'int'. Check errors.
6602 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6603 Check errors.
6604 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6605 Check errors.
6606 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6607 Check errors.
6608 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6609 Check errors.
6610 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6611 Check errors.
6612 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6613 Check errors.
6614 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6615 Check errors.
6616 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6617 Check errors.
6618 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6619 Check errors.
6620 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6621 Check errors.
6622 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6623 Check errors.
6624 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6625 Check errors.
6626 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6627 Check errors.
6628 * python/python-internal.h (gdbpy_initialize_auto_load,
6629 gdbpy_initialize_values, gdbpy_initialize_frames,
6630 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6631 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6632 gdbpy_initialize_blocks, gdbpy_initialize_types,
6633 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6634 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6635 gdbpy_initialize_finishbreakpoints,
6636 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6637 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6638 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6639 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6640 gdbpy_initialize_signal_event,
6641 gdbpy_initialize_breakpoint_event,
6642 gdbpy_initialize_continue_event,
6643 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6644 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6645 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6646 * python/python.c (gdb_python_initialized): New global.
6647 (gdbpy_initialize_events): Return 'int'. Check errors.
6648 (_initialize_python): Check errors. Set
6649 gdb_python_initialized.
6650
18868860
TT
66512013-05-20 Tom Tromey <tromey@redhat.com>
6652
6653 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6654 Decref the reslut of PyObject_CallMethod.
6655
9f4ff0c2
TT
66562013-05-20 Tom Tromey <tromey@redhat.com>
6657
6658 * python/py-event.c (gdbpy_initialize_event_generic): Return
6659 early if PyType_Ready fails.
6660
0d3a2e8a
TT
66612013-05-20 Tom Tromey <tromey@redhat.com>
6662
6663 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6664 as 'default' in the switch.
6665
b86af38a
TT
66662013-05-20 Tom Tromey <tromey@redhat.com>
6667
6668 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6669 get_addr_from_python calls out of TRY_CATCH.
6670 (infpy_write_memory, infpy_search_memory): Likewise.
6671 * python/py-utils.c (get_addr_from_python): Return negative
6672 value on error. Use TRY_CATCH.
6673 * python/python-internal.h (get_addr_from_python): Use
6674 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6675
c127ec58
TT
66762013-05-20 Tom Tromey <tromey@redhat.com>
6677
6678 * python/py-event.c (evpy_emit_event): Decref the
6679 result of PyObject_CallFunctionObjArgs.
6680
ba327838
TT
66812013-05-20 Tom Tromey <tromey@redhat.com>
6682
6683 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6684 Correctly decref.
6685
d8191432
TT
66862013-05-20 Tom Tromey <tromey@redhat.com>
6687
6688 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6689
5d153bd1
TT
66902013-05-20 Tom Tromey <tromey@redhat.com>
6691
6692 * python/py-event.h (gdbpy_initialize_event_generic): Use
6693 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6694 * python/py-evts.c (add_new_registry): Use
6695 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6696 * python/python-internal.h
6697 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6698
56cc411c
TT
66992013-05-20 Tom Tromey <tromey@redhat.com>
6700
6701 * python/py-arch.c (archpy_disassemble): Update.
6702 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6703 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6704 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6705 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6706 macro.
6707 (GDB_PY_HANDLE_EXCEPTION): Update.
6708 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6709
8919e174
TT
67102013-05-20 Tom Tromey <tromey@redhat.com>
6711
6712 * python/python-internal.h (events_object_type): Remove.
6713
9b08f225
TT
67142013-05-20 Tom Tromey <tromey@redhat.com>
6715
f5aee5ee
AM
6716 * python/py-event.h (evpy_emit_event): Use
6717 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6718 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6719 New macro.
9b08f225 6720
f04010ff
TT
67212013-05-20 Tom Tromey <tromey@redhat.com>
6722
6723 * py-evtregistry.c (create_event_object): Decref
6724 eventregistry_object if PyList_New fails.
6725
3919fd96
TT
67262013-05-20 Tom Tromey <tromey@redhat.com>
6727
6728 * py-cmd.c (gdbpy_string_to_argv): Check result of
6729 PyList_New.
6730
0430e8cb
TT
67312013-05-20 Tom Tromey <tromey@redhat.com>
6732
6733 * python/python.c (before_prompt_hook): Add cleanup to
6734 decref 'hook'.
6735
764123e4
TT
67362013-05-20 Tom Tromey <tromey@redhat.com>
6737
6738 * python/py-function.c (fnpy_init): Decref result of
6739 PyObject_GetAttrString.
6740
634c58be
TT
67412013-05-20 Tom Tromey <tromey@redhat.com>
6742
6743 * python/py-threadevent.c (get_event_thread): Use
6744 CPYCHECKER_RETURNS_BORROWED_REF.
6745 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6746 New define.
6747 (pspace_to_pspace_object, objfile_to_objfile_object)
6748 (find_thread_object): Use it.
6749
62eec1a5
TT
67502013-05-20 Tom Tromey <tromey@redhat.com>
6751
6752 * python/py-arch.c (arch_object_type): Use
6753 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6754 * python/py-block.c (block_syms_iterator_object_type):
6755 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6756 * python/py-bpevent.c (breakpoint_event_object_type):
6757 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6758 * python/py-cmd.c (cmdpy_object_type): Use
6759 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6760 * python/py-continueevent.c (continue_event_object_type):
6761 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6762 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6763 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6764 * python/py-events.h (thread_event_object_type):
6765 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6766 * python/py-evtregistry.c (eventregistry_object_type): Use
6767 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6768 * python/py-exitedevent.c (exited_event_object_type):
6769 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6770 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6771 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6772 * python/py-function.c (fnpy_object_type): Use
6773 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6774 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6775 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6776 * python/py-infthread.c (thread_object_type): Use
6777 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6778 * python/py-lazy-string.c (lazy_string_object_type):
6779 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6780 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6781 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6782 * python/py-objfile.c (objfile_object_type): Use
6783 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6784 * python/py-param.c (parmpy_object_type):
6785 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6786 * python/py-progspace.c (pspace_object_type):
6787 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6788 * python/py-signalevent.c (signal_event_object_type):
6789 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6790 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6791 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6792 * python/py-type.c (type_object_type, field_object_type)
6793 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6794 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6795 define.
6796 (value_object_type, block_object_type, symbol_object_type)
6797 (event_object_type, stop_event_object_type, breakpoint_object_type)
6798 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6799
81ea8796
AT
68002013-05-20 Andreas Tobler <andreas@fgznet.ch>
6801
6802 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6803 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6804
a2ce51a0
DE
68052013-05-20 Doug Evans <dje@google.com>
6806
6807 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6808 For Fission.
6809 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6810 reading_dwo_directly.
6811 (struct signatured_type): New member dwo_unit.
6812 (struct die_reader_specs): New member comp_dir.
6813 (create_signatured_type_table_from_index): Use malloc for
6814 all_type_units instead of objfile's obstack.
6815 (create_all_type_units): Ditto.
6816 (fill_in_sig_entry_from_dwo_entry): New function.
6817 (add_type_unit): New function.
6818 (lookup_dwo_signatured_type): New function.
6819 (lookup_dwp_signatured_type): New function.
6820 (lookup_signatured_type): New arg cu. All callers updated.
6821 (init_cu_die_reader): Initialize comp_dir.
6822 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6823 Change assert of matching type signatures to call error on mismatch.
6824 (lookup_dwo_unit): Add assert.
6825 (init_tu_and_read_dwo_dies): New function.
6826 (init_cutu_and_read_dies): Call it.
6827 (build_type_unit_groups): Handle case of no type unit groups created.
6828 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6829 (lookup_dwo_cutu): Tweak complaint.
6830 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6831 (dwarf2_per_objfile_free): Free all_type_units.
6832
a25cd31f
JB
68332013-05-20 Joel Brobecker <brobecker@adacore.com>
6834
6835 * windows-nat.c (handle_unload_dll): Add missing empty line.
6836
4d804846
JB
68372013-05-20 Joel Brobecker <brobecker@adacore.com>
6838
6839 * dwarf2read.c (prototyped_function_p): New function.
6840 (read_subroutine_type): Use it.
6841
1c432e72
JB
68422013-05-20 Joel Brobecker <brobecker@adacore.com>
6843
6844 * rs6000-aix-tdep.c: De-indent some example code provided
6845 as a comment.
6846
4feebbdd
EBM
68472013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6848
6849 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6850 region is ok for a hardware watchpoint using the new ptrace interface
6851 on Power servers.
6852
7d0c9981
DE
68532013-05-17 Doug Evans <dje@google.com>
6854
6855 * NEWS: Mention new maintenance commands check-symtabs, and
6856 expand-symtabs, and renamed check-psymtabs.
6857 * psymtab.c (maintenance_check_psymtabs): Renamed from
6858 maintenance_check_symtabs. Only process already-expanded symbol
6859 tables.
6860 (_initialize_psymtab): Update.
6861 * symmisc.c (maintenance_check_symtabs): New function.
6862 (maintenance_expand_name_matcher): New function
6863 (maintenance_expand_file_matcher): New function
6864 (maintenance_expand_symtabs): New function.
6865 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6866 commands.
6867
6cbc7c3d
TT
68682013-05-17 Tom Tromey <tromey@redhat.com>
6869
6870 * python/py-inferior.c (infpy_read_memory): Don't call
6871 PyErr_SetString if PyObject_New fails.
6872 * python/py-frame.c (frame_info_to_frame_object): Don't call
6873 PyErr_SetString if PyObject_New fails.
6874
a48b32c0
L
68752013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6876
6877 * acinclude.m4: Add check for dlopen in libdl.
6878 * configure.ac: Ditto.
6879 * configure: Regenerate.
6880
3de661e6
PM
68812013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6882
6883 * frame.c (frame_stash): Convert to htab.
6884 (frame_addr_hash): New function.
6885 (frame_addr_hash_eq): New function.
6886 (frame_stash_create): Convert function to create
6887 a hash table.
6888 (frame_stash_add): Convert function to add an entry to a hash
6889 table.
6890 (frame_stash_find): Convert function to search the hash table.
6891 (frame_stash_invalidate): Convert function to empty the hash
6892 table.
6893 (get_frame_id): Only add to stash if a frame_id is created.
6894 (_initialize_frame): Call frame_stash_create.
6895
bb4168a9 68962013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6897
6898 * configure.ac: Ensure MIG is available when building for GNU Hurd
6899 hosts.
6900 * configure: Regenerate.
6901
d1be3247
JB
69022013-05-16 Joel Brobecker <brobecker@adacore.com>
6903
6904 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6905
b8fea896
JB
69062013-05-16 Joel Brobecker <brobecker@adacore.com>
6907
6908 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6909 all cleanups are done before returning from this function.
6910
af880d85
JB
69112013-05-15 Joel Brobecker <brobecker@adacore.com>
6912
6913 * utils.h: #include "exceptions.h".
6914 (enum errors): Remove partial declaration.
6915
356a5233
JB
69162013-05-15 Joel Brobecker <brobecker@adacore.com>
6917
6918 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6919 * gdbarch.h, gdbarch.c: Regenerate.
6920 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6921 handling.
6922
6923 * rs6000-aix-tdep.h: New file.
6924 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6925 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6926 "xml-utils.h".
6927 (struct field_info, struct ld_info_desc): New types.
6928 (ld_info32_desc, ld_info64_desc): New static constants.
6929 (struct ld_info): New type.
6930 (rs6000_aix_extract_ld_info): New function.
6931 (rs6000_aix_shared_library_to_xml): Likewise.
6932 (rs6000_aix_ld_info_to_xml): Likewise.
6933 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6934 (rs6000_aix_init_osabi): Add call to
6935 set_gdbarch_core_xfer_shared_libraries_aix.
6936 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6937 Remove "xml-utils.h" include.
6938 (LdInfo): Delete typedef.
6939 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6940 Delete macros.
6941 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6942 Adjust code accordingly.
6943 (rs6000_core_ldinfo): Delete, folded into
6944 rs6000_aix_core_xfer_shared_libraries_aix.
6945 (rs6000_xfer_shared_library): Delete.
6946 (rs6000_xfer_shared_libraries): Reimplement.
6947
742ce053
MM
69482013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6949
6950 * record.c (record_goto_cmdlist): New.
6951 (cmd_record_goto): Split into this ...
6952 (cmd_record_goto_begin): ... this
6953 (cmd_record_goto_end): ... and this.
6954 (_initialize_record): Change "record goto" to prefix command.
6955 Add commands for "record goto begin" and "record goto end".
6956 Add an alias for "record goto start" to "record goto begin".
6957
e93ba630
JK
69582013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6959
6960 * linespec.c (convert_linespec_to_sals): New comment for
6961 SOURCE_FILENAME assignment.
6962
5821aace
JK
69632013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6964
6965 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6966 internal_warning.
6967
a1b8c4cc
TT
69682013-05-14 Tom Tromey <tromey@redhat.com>
6969
6970 * eval.c (parse_and_eval_long): Make 'exp' const.
6971 * value.h (parse_and_eval_long): Update.
6972
23b3a2c3
TT
69732013-05-14 Tom Tromey <tromey@redhat.com>
6974
6975 * ui-file.c (gdb_fopen): Make arguments const.
6976 * ui-file.h (gdb_fopen): Make arguments const.
6977
ca623f82
TT
69782013-05-14 Tom Tromey <tromey@redhat.com>
6979
6980 * remote.c (remote_set_trace_notes): Make arguments const.
6981 * target.c (update_current_target): Update cast.
6982 * target.h (to_set_trace_notes): Make arguments const.
6983
503ebb2c
TT
69842013-05-14 Tom Tromey <tromey@redhat.com>
6985
6986 * go32-nat.c (go32_terminal_info): Make 'args' const.
6987 * inferior.h (child_terminal_info): Update.
6988 * inflow.c (child_terminal_info): Make 'args' const.
6989 * target.c (default_terminal_info): Make 'args' const.
6990 (debug_to_terminal_save_ours): Likewise.
6991 * target.h (struct target_ops) <to_terminal_info>: Make argument
6992 const.
6993
85e1311a
TT
69942013-05-13 Tom Tromey <tromey@redhat.com>
6995
6996 * gcore.c (create_gcore_bfd): Make 'filename' const.
6997 * gcore.h (create_gcore_bfd): Make 'filename' const.
6998 * record-full.c (record_full_save): Make 'recfilename' const.
6999 * target.c (target_save_record): Make 'filename' const.
7000 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7001 const.
7002 (target_save_record): Likewise.
7003
d62bfeaf
TT
70042013-05-13 Tom Tromey <tromey@redhat.com>
7005
f5aee5ee 7006 PR gdb/15338:
d62bfeaf
TT
7007 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7008 ranges section has been read.
7009
ac1ca910
TT
70102013-05-13 Tom Tromey <tromey@redhat.com>
7011
7012 PR exp/15364:
7013 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7014 STRUCTOP_PTR>: Return a not_lval value for
7015 EVAL_AVOID_SIDE_EFFECTS.
7016 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7017 for EVAL_AVOID_SIDE_EFFECTS.
7018
36d1c68c
JB
70192013-05-13 Joel Brobecker <brobecker@adacore.com>
7020
7021 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7022 floating point registers to register type before storing
7023 value.
7024 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7025 Likewise.
7026
21ff4686
TT
70272013-05-10 Joel Brobecker <brobecker@adacore.com>
7028 Tom Tromey <tromey@redhat.com>
7029
7030 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7031 New functions.
7032 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7033 Declare.
7034 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7035 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7036 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7037 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7038
d3685d60
TT
70392013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7040 Tom Tromey <tromey@redhat.com>
7041
7042 PR build/15414:
7043 * configure: Rebuild.
7044 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7045 with -Wno-format.
7046
eb9fe518
PA
70472013-05-10 Pedro Alves <palves@redhat.com>
7048
7049 * remote.c (_initialize_remote): Fix spelling of
7050 qXfer:traceframe-info:read packet in packet config command.
7051
9779ab84
PA
70522013-05-10 David Taylor <dtaylor@emc.com>
7053
7054 PR remote/15455
7055
7056 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7057 "QTro" at start of packet.
7058
060cfbef
JB
70592013-05-10 Joel Brobecker <brobecker@adacore.com>
7060
7061 * solib-aix.c (solib_aix_relocate_section_addresses):
7062 For the .bss section action, apply the same offset as
7063 the .data section.
7064
ab1c4e88
JB
70652013-05-10 Joel Brobecker <brobecker@adacore.com>
7066
7067 * solib-aix.c (solib_aix_relocate_section_addresses):
7068 Remove FIXME comment.
7069
c1357578
JB
70702013-05-10 Joel Brobecker <brobecker@adacore.com>
7071
7072 PR tdep/15420:
7073 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7074 New functions, directly copied from sparc-sol-thread.c.
7075 * sparc-sol-thread.c: Delete.
7076 * configure.ac: Remove code handling sparc-solaris-thread.c.
7077 * configure: Regenerate.
7078
1e611234
PM
70792013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7080
7081 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7082 filter logic.
7083 (backtrace_command): Add "no-filters" option parsing.
7084 (_initialize_stack): Alter help to reflect "no-filters" option.
7085 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7086 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7087 (py-frame.o): Add target
7088 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7089 filter files.
7090 * python/python.h: Add new frame filter constants, and flag enum.
7091 (apply_frame_filter): Add definition.
7092 * python/python.c (apply_frame_filter): New non-Python
7093 enabled function.
7094 * python/py-utils.c (py_xdecref): New function.
7095 (make_cleanup_py_xdecref): Ditto.
7096 * python/py-objfile.c: Declare frame_filters dictionary.
7097 (objfpy_dealloc): Add frame_filters dealloc.
7098 (objfpy_new): Initialize frame_filters attribute.
7099 (objfile_to_objfile_object): Ditto.
7100 (objfpy_get_frame_filters): New function.
7101 (objfpy_set_frame_filters): New function.
7102 * python/py-progspace.c: Declare frame_filters dictionary.
7103 (pspy_dealloc): Add frame_filters dealloc.
7104 (pspy_new): Initialize frame_filters attribute.
7105 (pspacee_to_pspace_object): Ditto.
7106 (pspy_get_frame_filters): New function.
7107 (pspy_set_frame_filters): New function.
7108 * python/py-framefilter.c: New file.
7109 * python/lib/gdb/command/frame_filters.py: New file.
7110 * python/lib/gdb/frames.py: New file.
7111 * python/lib/gdb/__init__.py: Initialize global frame_filters
7112 dictionary
7113 * python/lib/gdb/FrameDecorator.py: New file.
7114 * python/lib/gdb/FrameIterator.py: New file.
7115 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7116 * mi/mi-cmds.h: Declare.
7117 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7118 --no-frame-filter logic, and Python frame filter logic.
7119 (stack_enable_frame_filters): New function.
7120 (parse_no_frame_option): Ditto.
7121 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7122 filter logic.
7123 (mi_cmd_stack_list_locals): Ditto.
7124 (mi_cmd_stack_list_args): Ditto.
7125 (mi_cmd_stack_list_variables): Ditto.
7126 * NEWS: Add frame filter note.
7127
2cb9c859
DE
71282013-05-09 Doug Evans <dje@google.com>
7129
6bf667bb
DE
7130 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7131 All callers updated.
7132 (syms_from_objfile): Ditto. Make static.
7133 (symbol_file_add_with_addrs): Renamed from
7134 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7135 num_offsets. All callers updated.
7136 * symfile.h (syms_from_objfile): Delete.
7137
2cb9c859
DE
7138 * symfile.c (decrement_reading_symtab): Add assert.
7139 (increment_reading_symtab): Ditto.
7140
40aea477
JB
71412013-05-09 Joel Brobecker <brobecker@adacore.com>
7142
7143 * source.c (forward_search_command): Replace call to getc
7144 by call to fgetc.
7145 (reverse_search_command): Likewise.
7146
680d1742
DE
71472013-05-08 Doug Evans <dje@google.com>
7148
7149 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7150 matching test.
7151
17e760ae
JB
71522013-05-08 Joel Brobecker <brobecker@adacore.com>
7153
7154 * sol-thread.c (info_cb): Factorize the code a little.
7155
c0f5f490
JB
71562013-05-08 Joel Brobecker <brobecker@adacore.com>
7157
7158 * sol-thread.c (info_cb): Rework the output of the "maintenance
7159 info sol-threads" command a bit.
7160
5d74e061
JB
71612013-05-08 Joel Brobecker <brobecker@adacore.com>
7162
7163 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7164 Replace ti.ti_startfunc by ti.ti_pc.
7165
814a3ff7
JB
71662013-05-08 Joel Brobecker <brobecker@adacore.com>
7167
7168 * solib-aix.c (solib_aix_free_library_list): New function
7169 for the case where HAVE_LIBEXPAT is not defined.
7170
58ce7251
SDJ
71712013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7172
7173 PR breakpoints/15413:
7174 * breakpoint.c (condition_completer): Simplify the code to
7175 disconsider multiple locations of breakpoints when completing the
7176 "condition" command.
7177
be8b1ea6
PM
71782013-05-07 Pierre Muller <muller@sourceware.org>
7179
7180 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7181 instead of <sys/wait.h>.
7182
1e52bda6
PM
71832013-05-07 Pierre Muller <muller@sourceware.org>
7184
7185 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7186 trailing new line from warning message.
7187
27fd0c6b
PM
71882013-05-07 Pierre Muller <muller@sourceware.org>
7189
7190 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7191 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7192
e228ac87
JB
71932013-05-07 Joel Brobecker <brobecker@adacore.com>
7194
7195 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7196 error message (ARI fix).
7197
71982013-05-07 Joel Brobecker <brobecker@adacore.com>
7199
7200 * features/library-list-aix.dtd: Replace library-list by
7201 library-list-aix.
7202 * rs6000-nat.c: Replace library-list by library-list-aix
7203 throughout.
7204 * solib-aix.c: Likewise.
7205
72062013-05-07 Joel Brobecker <brobecker@adacore.com>
7207
7208 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7209 Renames TARGET_OBJECT_AIX_LIBRARIES.
7210 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7211 TARGET_OBJECT_LIBRARIES_AIX throughout.
7212 * solib-aix.c: Likwise.
7213
26a4dda9
YQ
72142013-05-07 Yao Qi <yao@codesourcery.com>
7215
7216 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7217 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7218
3582629f
YQ
72192013-05-07 Yao Qi <yao@codesourcery.com>
7220
7221 * solib-dsbt.c (enable_break): Declare.
7222 (dsbt_current_sos): Remove call to enable_break2.
7223 (enable_break2): Rename to enable_break. Set solib breakpoint
7224 on '_dl_debug_state'.
7225 (enable_break): Remove.
7226
aacbb8a5
LM
72272013-05-07 Luis Machado <lgustavo@codesourcery.com>
7228
7229 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7230 debug state prior to replicating existing hardware watchpoints or
7231 breakpoints.
7232
0c013353
JK
72332013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7234
7235 * gcore.c (gcore_create_callback): Ignore sections with
7236 separate_debug_objfile_backlink != NULL.
7237
a1217d97
SL
72382013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7239 Andrew Jenner <andrew@codesourcery.com>
7240 Chung-Lin Tang <cltang@codesourcery.com>
7241 Julian Brown <julian@codesourcery.com>
7242
7243 Based on the nios2-elf port from Altera Corporation.
7244
7245 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7246 nios2-linux-tdep.o.
7247 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7248 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7249 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7250 * nios2-tdep.h: New.
7251 * nios2-tdep.c: New.
7252 * nios2-linux-tdep.c: New.
7253 * features/Makefile (WHICH): Add nios2-linux.
7254 (nios2-linux-expedite): Set.
7255 * features/nios2-cpu.xml: New.
7256 * features/nios2.xml: New.
7257 * features/nios2-linux.xml: New.
7258 * features/nios2.c: New (autogenerated).
7259 * features/nios2-linux.c: New (autogenerated).
7260 * regformats/nios2-linux.dat: New (autogenerated).
7261 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7262 and commands.
7263
0892cb63
DE
72642013-05-06 Doug Evans <dje@google.com>
7265
3b7bacac
DE
7266 * symfile.c: Whitespace cleanup.
7267
0892cb63
DE
7268 * solist.h (struct target_so_ops): New member clear_so.
7269 * solib-svr4.c (svr4_clear_so): New function.
7270 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7271 * solib.c (clear_so): Renamed from free_so_symbols.
7272 All callers updated. Call target clear_so if it exists.
7273
40501e00
TT
72742013-05-06 Tom Tromey <tromey@redhat.com>
7275
7276 * ada-lang.c (ada_value_primitive_packed_val): Don't
7277 call value_incref.
7278 * value.c (set_value_parent): Incref the new parent and decref
7279 the old parent.
7280 (value_copy, value_primitive_field): Use set_value_parent.
7281
b6807d98
TT
72822013-05-06 Tom Tromey <tromey@redhat.com>
7283
7284 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7285 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7286 if needed.
7287 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7288 * dwarf2read.c (write_constant_as_bytes)
7289 (dwarf2_fetch_constant_bytes): New functions.
7290
3aef2284
TT
72912013-05-06 Tom Tromey <tromey@redhat.com>
7292
7293 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7294 parameters.
7295 (dwarf2_const_value_attr): Update.
7296
66f65e2b
TT
72972013-05-06 Tom Tromey <tromey@redhat.com>
7298
7299 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7300 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7301 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7302 Remove declaration.
7303
7919a973
TT
73042013-05-06 Tom Tromey <tromey@redhat.com>
7305
7306 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7307 objfile's obstack.
7308
a7bfba49
DE
73092013-05-06 Doug Evans <dje@google.com>
7310
3189cb12
DE
7311 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7312 * stabsread.h (process_one_symbol): Update declaration.
7313 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7314 * elfread.c (elf_symfile_relocate_probe): Ditto.
7315 * psymtab.c (relocate_psymtabs): Ditto.
7316 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7317 (objfile_relocate): Ditto.
7318 * objfiles.h (objfile_relocate): Update declaration.
7319 * symfile.c (relative_addr_info_to_section_offsets): Constify
7320 addrs parameter.
7321 (default_symfile_offsets): Ditto.
7322 (syms_from_objfile_1): Constify offsets parameter.
7323 (syms_from_objfile): Ditto.
7324 (symbol_file_add_with_addrs_or_offsets): Ditto.
7325 (symfile_map_offsets_to_segments): Constify data parameter.
7326 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7327 delta parameters of member relocate.
7328 (struct sym_probe_fns): Constify new_offsets,
7329 delta parameters of member sym_relocate_probe.
7330 (struct sym_fns): Constify section_addr_info parameter of member
7331 sym_offsets.
7332 (relative_addr_info_to_section_offsets): Update declaration.
7333 (default_symfile_offsets): Ditto.
7334 (syms_from_objfile): Ditto.
7335 (symfile_map_offsets_to_segments): Ditto.
7336
a7bfba49
DE
7337 * symfile.c (syms_from_objfile_1): Use correct section count when
7338 objfile->sf == NULL.
7339
5f8e0b8f
MF
73402013-05-06 Mike Frysinger <vapier@gentoo.org>
7341
7342 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7343
ea52d893
DE
73442013-05-06 Doug Evans <dje@google.com>
7345
7346 * psympriv.h (struct partial_symtab): Augment comment for member
7347 section_offsets.
7348
4d1eb6b4
JB
73492013-05-06 Joel Brobecker <brobecker@adacore.com>
7350
7351 Reimplement shared library support on ppc-aix...
7352 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7353 * features/library-list-aix.dtd: New file.
7354 * solib-aix.h, solib-aix.c: New file.
7355 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7356 (rs6000_find_toc_address_hook): Delete.
7357 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7358 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7359 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7360 "xml-utils.h".
7361 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7362 (vmap_symtab, fixup_breakpoints): Delete.
7363 (rs6000_xfer_shared_libraries): New function.
7364 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7365 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7366 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7367 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7368 (rs6000_xfer_shared_library): New function.
7369 (find_toc_address): Delete.
7370 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7371 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7372 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7373 before creating minimal symbol. Adjust function description
7374 accordingly.
7375 (scan_xcoff_symtab): Replace call to
7376 prim_record_minimal_symbol_and_info by call to
7377 record_minimal_symbol.
7378 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7379 around default_symfile_offsets.
7380 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7381 powerpc-aix targets.
7382 * config/rs6000/nm-rs6000.h: Delete.
7383 * config/powerpc/aix.mh (NAT_FILE): Delete.
7384 (NATDEPFILES): Remove xcoffsolib.o.
7385 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7386 (ALL_TARGET_OBS): Add solib-aix.o.
7387 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7388 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7389 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7390 * xcoffsolib.h, xcoffsolib.c: Delete.
7391
7392 * solib.c (reload_shared_libraries): Remove reference to
7393 SOLIB_CREATE_INFERIOR_HOOK.
7394 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7395 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7396 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7397 comment.
7398 * corelow.c (deprecated_core_resize_section_table): Delete.
7399 * exec.c: Remove include of xcoffsolib.h".
7400 (map_vmap, vmap): Delete.
7401 (exec_close_1): Remove references to vmap.
7402 (exec_file_attach): Remove vmap handling code, and reference
7403 to DEPRECATED_IBM6000_TARGET.
7404 (bfdsec_to_vmap): Delete.
7405 (exec_files_info): Remove block of code handling VMAP.
7406 * infcmd.c (post_create_inferior): Remove reference to
7407 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7408 * infrun.c (follow_exec): Remove reference to
7409 SOLIB_CREATE_INFERIOR_HOOK.
7410 * stack.c (print_frame): Remove reference to PC_SOLIB.
7411 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7412 (dsbt_relocate_main_executable): Likewise.
7413 * solib-frv.c (frv_current_sos): Likewise.
7414
0c4f667c
JB
74152013-05-06 Joel Brobecker <brobecker@adacore.com>
7416
7417 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7418 to target_write_memory and target_read_memory.
7419
726ce67c
JB
74202013-05-06 Joel Brobecker <brobecker@adacore.com>
7421
7422 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7423 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7424
c8c9911f
JB
74252013-05-06 Joel Brobecker <brobecker@adacore.com>
7426
7427 * darwin-nat.c: Replace all "%x" instances in format strings
7428 into "0x%x" throughout.
7429
fda184b6
JB
74302013-05-06 Joel Brobecker <brobecker@adacore.com>
7431
7432 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7433 gdb_assert by call to MACH_CHECK_ERROR.
7434 (darwin_attach_pid): Raise an error rather than a failed
7435 assertion when various system calls failed. Report a warning
7436 instead of raising a failed assertion when PREV_NOT is not NULL
7437 after call to mach_port_request_notification.
7438 (darwin_ptrace_me): Raise an error rather than a failed
7439 assertion when read returns nonzero.
7440
d1d69afb
JB
74412013-05-06 Joel Brobecker <brobecker@adacore.com>
7442
7443 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7444
dc90b24d
JK
74452013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7446
7447 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7448
faab9922
JK
74492013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7450
7451 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7452 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7453 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7454 a stale cleanup. Fix double free of NAME.
7455
e0ea48a0
EZ
74562013-05-04 Eli Zaretskii <eliz@gnu.org>
7457
7458 * windows-nat.c (windows_delete_thread): Accept an additional
7459 argument, the thread's exit code, and announce thread death when
7460 print_thread_events is non-zero and we are deleting a thread that
7461 is not the main thread.
7462 (get_windows_debug_event): Pass thread exit code to
7463 windows_delete_thread.
7464
83b2706a
KB
74652013-05-03 Kevin Buettner <kevinb@redhat.com>
7466
7467 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7468 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7469 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7470 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7471 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7472 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7473 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7474 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7475 (gdbarch_tdep): New struct.
7476 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7477 E_NUM_REGS.
7478 (v850e3v5_register_name): New function.
7479 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7480 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7481 code handling the struct return conventions for the RH850 ABI.
7482 Update all callers.
7483 (v850_eight_byte_align_p): New function.
7484 (v850_push_call_dummy): Push structs by value, not by reference
7485 for the RH850 ABI. Add support for eight byte alignment.
7486 (v850_dbtrap_breakpoint_from_pc): New function.
7487 (v850_gdbarch_init): Add ABI detection code. Register
7488 v850e3v5_register_name for the v850e3v5 architecture. Set the
7489 number of registers for v850e3v5. Register
7490 v850_dbtrap_breakpoint_from_pc as appropriate.
7491 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7492
d445b2f6
DE
74932013-05-03 Doug Evans <dje@google.com>
7494
7495 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7496 of bfd_count_sections.
7497 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7498 * symfile.c (default_symfile_offsets): Ditto.
7499 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7500 one entry, not bfd_count_sections entries.
7501
b3ce41ea
KB
75022013-05-03 Kevin Buettner <kevinb@redhat.com>
7503
7504 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7505 `save' and `restore' register groups. Don't include SPL
7506 or SPH in these groups.
7507 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7508 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7509 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7510 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7511 dwarf2_append_unwinders().
7512
96f7d3f1
PW
75132013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7514
7515 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7516 ignore SIGINT and SIGTRAP in case these internal signals are
7517 caught explicitely.
7518
b9dd1947
JB
75192013-05-01 Joel Brobecker <brobecker@adacore.com>
7520
7521 * darwin-nat.c (darwin_read_write_inferior): Change types
7522 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7523 of copy_count to "mach_msg_type_number_t".
7524 (darwin_read_dyld_info): Change type of parameter
7525 rdaddr to "gdb_byte *".
7526
4ca18a63
JB
75272013-05-01 Joel Brobecker <brobecker@adacore.com>
7528
7529 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7530 of &info->load_map from "char *" to "gdb_byte *".
7531
2b692d32
JB
75322013-05-01 Joel Brobecker <brobecker@adacore.com>
7533
7534 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7535 from "char *" to "gdb_byte *".
7536 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7537
a98c29a0
DE
75382013-04-30 Doug Evans <dje@google.com>
7539
6a506a2d
DE
7540 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7541 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7542 DWO stub. If DWO isn't found, just use stub.
7543 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7544
a98c29a0
DE
7545 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7546 calling init_cutu_and_read_dies.
7547
f92b06da
WT
75482013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7549
7550 * target-descriptions.c (maint_print_c_tdesc_cmd):
7551 Add case to parse structures as register types and
7552 bitfields.
7553
95eebdcc
WT
75542013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7555
7556 * MAINTAINERS (Write After Approval): Add myself to the list.
7557
019c1128
JB
75582013-04-30 Joel Brobecker <brobecker@adacore.com>
7559
7560 * sol-thread.c (rw_common): Change type of parameter "buf"
7561 to "gdb_byte *".
7562 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7563 rw_common to "gdb_byte *" instead of "char *".
7564
5812197c
JB
75652013-04-30 Joel Brobecker <brobecker@adacore.com>
7566
7567 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7568 of local variable msym to const struct bound_minimal_symbol.
7569 Adjust use accordingly.
7570 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7571
ecccb813
TS
75722013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7573
7574 * i386gnu-nat.c (CREG_OFFSET): New macro.
7575 (creg_offset): New array.
7576 (CREG_ADDR): Use creg_offset instead of reg_offset.
7577
f1d02dd4 75782013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7579
7580 * mep-tdep.c (mep_write_pc): Delete.
7581 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7582 Add call to set_gdbarch_pc_regnum.
7583
f1d02dd4 75842013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7585
7586 * common/filestuff.c: Replace #include <dirent.h> by
7587 #include "gdb_dirent.h".
7588
f1d02dd4 75892013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7590
7591 * common/filestuff.c: Replace #include <sys/stat.h> by
7592 #include "gdb_stat.h".
7593
b385a60d
PM
75942013-04-29 Pierre Muller <muller@sourceware.org>
7595
7596 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7597 editCase function rule.
7598 (get_DW_AT_signature_type): Likewise.
7599
d27b54ad
JB
76002013-04-29 Joel Brobecker <brobecker@adacore.com>
7601
7602 * m32r-tdep.c (m32r_write_pc): Delete.
7603 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7604 Add call to set_gdbarch_pc_regnum.
7605
47d21dc5
PM
76062013-04-29 Pierre Muller <muller@sourceware.org>
7607
7608 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7609
9056882e
JB
76102013-04-29 Joel Brobecker <brobecker@adacore.com>
7611
7612 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7613
7ee4732a
YQ
76142013-04-28 Yao Qi <yao@codesourcery.com>
7615
7616 * solib-dsbt.c (fetch_loadmap): Re-indent.
7617 (displacement_from_map, enable_break2): Likewise.
7618 (dsbt_relocate_section_addresses): Likewise.
7619
2260af53 76202013-04-26 Joel Brobecker <brobecker@adacore.com>
7621
7622 GDB 7.6 released.
7623
ff546935
TT
76242013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7625
7626 PR corefiles/14983:
7627 * dwarf2read.c (process_full_comp_unit): Always create a static
7628 block.
7629
40fb6c5e
HZ
76302013-04-25 Hui Zhu <hui@codesourcery.com>
7631
7632 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7633 to loc->cmd_bytecode.
7634
74e04d1c
DE
76352013-04-24 Doug Evans <dje@google.com>
7636
7637 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7638
3cf62c1d
KS
76392013-04-22 Keith Seitz <keiths@redhat.com>
7640
7641 * tracepoint.c (trace_save): Call the writer's start method.
7642
bf9e4d0c
MB
76432013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7644
7645 PR gdb/10462
7646 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7647 before argument.
7648
5d71132c
TT
76492013-04-23 Tom Tromey <tromey@redhat.com>
7650
7651 * common/filestuff.c: Check USE_WIN32API before including
7652 sys/socket.h.
7653 (HAVE_F_GETFD): New define.
7654 (mark_cloexec): Check HAVE_F_GETFD.
7655 (gdb_open_cloexec): Change 'mode' to unsigned long.
7656 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7657 (gdb_pipe_cloexec): Check HAVE_PIPE.
7658 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7659 long.
7660
a11cfd87
HZ
76612013-04-23 Hui Zhu <hui@codesourcery.com>
7662
7663 PR gdb/15293
a11cfd87
HZ
7664 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7665
2d9442cc
HZ
76662013-04-23 Hui Zhu <hui@codesourcery.com>
7667
7668 PR gdb/15165
2d9442cc
HZ
7669 * breakpoint.c (dprintf_print_recreate): New.
7670 (save_breakpoints): Let it not save dprintf commands.
7671 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7672
614c279d
TT
76732013-04-22 Tom Tromey <tromey@redhat.com>
7674
7675 PR gdb/7912:
7676 * Makefile.in (SFILES): Add filestuff.c
7677 (COMMON_OBS): Add filestuff.o.
7678 (filestuff.o): New target.
7679 * auto-load.c (auto_load_objfile_script_1): Use
7680 gdb_fopen_cloexec.
7681 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7682 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7683 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7684 * common/agent.c (gdb_connect_sync_socket): Use
7685 gdb_socket_cloexec.
7686 * common/filestuff.c: New file.
7687 * common/filestuff.h: New file.
7688 * common/linux-osdata.c (linux_common_core_of_thread)
7689 (command_from_pid, commandline_from_pid, print_source_lines)
7690 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7691 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7692 gdb_fopen_cloexec.
7693 * common/linux-procfs.c (linux_proc_get_int)
7694 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7695 * config.in, configure: Rebuild.
7696 * configure.ac: Don't check for sys/socket.h. Check for
7697 fdwalk, pipe2.
7698 * corelow.c (core_open): Use gdb_open_cloexec.
7699 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7700 * fork-child.c (fork_inferior): Call close_most_fds.
7701 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7702 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7703 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7704 Use gdb_fopen_cloexec.
7705 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7706 gdb_open_cloexec.
7707 (linux_async_pipe): Use gdb_pipe_cloexec.
7708 * remote-fileio.c (remote_fileio_func_open): Use
7709 gdb_open_cloexec.
7710 * remote.c (remote_file_put, remote_file_get): Use
7711 gdb_fopen_cloexec.
7712 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7713 close_most_fds.
7714 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7715 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7716 * solib.c (solib_find): Use gdb_open_cloexec.
7717 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7718 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7719 (tfile_open): Use gdb_open_cloexec.
7720 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7721 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7722 * xml-support.c (xml_fetch_content_from_file): Use
7723 gdb_fopen_cloexec.
7724 * main.c (captured_main): Call notice_open_fds.
7725
5fda2332
EBM
77262013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7727
7728 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7729 'char *' to 'gdb_byte *'.
7730 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7731 'gdb_byte'.
7732
eb6c553b
YQ
77332013-04-22 Yao Qi <yao@codesourcery.com>
7734
7735 * infrun.c: Fix typo in comment.
7736
9991b207
SDJ
77372013-04-22 Andrew Haley <aph@redhat.com>
7738
7739 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7740 instead of "long".
7741
8b4833e3
YQ
77422013-04-20 Yao Qi <yao@codesourcery.com>
7743
7744 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7745 'char *' to 'gdb_byte *'. Cast the return value of
7746 'bt_ctf_get_char_array' to 'gdb_byte *'.
7747
bd3f3b55
PA
77482013-04-19 Pedro Alves <palves@redhat.com>
7749
7750 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7751 -Wpointer-sign.
7752 * configure: Regenerate.
7753
c49e7f76
PA
77542013-04-19 Pedro Alves <palves@redhat.com>
7755
7756 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7757 'void *'.
7758
12ff8552
PA
77592013-04-19 Pedro Alves <palves@redhat.com>
7760
7761 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7762 Change type of 'myaddr' parameter to gdb_byte pointer.
7763 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7764 to 'long long' pointer instead of to 'unsigned long long'.
7765 (monitor_write_memory_block, monitor_read_memory_single)
7766 (monitor_read_memory): Change type of 'myaddr' parameter to
7767 gdb_byte pointer.
7768
9c37696b
PA
77692013-04-19 Pedro Alves <palves@redhat.com>
7770
7771 * record.c (validate_history_size): Make parameter 'setting'
7772 unsigned.
7773
a398505b
PA
77742013-04-19 Pedro Alves <palves@redhat.com>
7775
7776 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7777 to 'gdb_byte *'.
7778
9f8afa72
PA
77792013-04-19 Pedro Alves <palves@redhat.com>
7780
7781 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7782 local to int.
7783
c714b426
PA
77842013-04-19 Pedro Alves <palves@redhat.com>
7785
7786 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7787 * ada-tasks.c (read_fat_string_value): Likewise.
7788
507a579c
PA
77892013-04-19 Pedro Alves <palves@redhat.com>
7790
7791 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7792 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7793 'offset', and adjust.
7794
f9d83a0b
PA
77952013-04-19 Pedro Alves <palves@redhat.com>
7796
7797 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7798 (read_index_from_section): Add cast to 'char *'.
7799
745eb4fd
PA
78002013-04-19 Pedro Alves <palves@redhat.com>
7801
7802 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7803
db5be46f
PA
78042013-04-19 Pedro Alves <palves@redhat.com>
7805
7806 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7807
0f928d68
PA
78082013-04-19 Pedro Alves <palves@redhat.com>
7809
7810 * record-full.c (record_full_get_bookmark): Change local 'ret'
7811 type to char * and add cast to gdb_byte *.
7812 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7813 string.
7814 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7815
89f6d837
PA
78162013-04-19 Pedro Alves <palves@redhat.com>
7817
7818 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7819 * python/py-prettyprint.c (print_string_repr): Change type of
7820 'output' local to char *. Add cast to gdb_byte * in
7821 LA_PRINT_STRING call.
7822 (print_children): Change type of 'output' local to char *.
7823 * python/py-value.c (valpy_string): Add cast to const char * in
7824 PyUnicode_Decode call.
7825
ce6ec7d8
PA
78262013-04-19 Pedro Alves <palves@redhat.com>
7827
7828 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7829 and change its type to 'const char *'. Adjust.
7830 (mips_send_packet): Add cast to 'char *', and remove cast to
7831 'unsigned char *'.
7832 (mips_receive_packet): Remove cast to 'unsigned char *'.
7833 (mips_load_srec): Use bfd_byte.
7834 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7835 (pmon_checkset): Make 'value' parameter unsigned.
7836
fda0389f
PA
78372013-04-19 Pedro Alves <palves@redhat.com>
7838
7839 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7840
bc20a4af
PA
78412013-04-19 Pedro Alves <palves@redhat.com>
7842
7843 * remote.c (remote_write_bytes_aux, compare_sections_command)
7844 (remote_read_qxfer)
7845 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7846 (remote_hostio_readlink, remote_bfd_iovec_pread)
7847 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7848 binary buffer, and char when buffer is used as string.
7849 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7850 (trace_save, tfile_open, traceframe_walk_blocks)
7851 (tfile_fetch_registers): Likewise.
7852
c628b528
PA
78532013-04-19 Pedro Alves <palves@redhat.com>
7854
7855 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7856 buffer and size_t size. Adjust.
7857 * ser-base.h (ser_base_write): Adjust.
7858 * ser-go32.c (cnts): Change type to size_t.
7859 (dos_write): Change prototype -- take 'void *'
7860 buffer and size_t size. Adjust.
7861 (dos_info): Print elements of 'cnts' as unsigned long.
7862 * serial.c (serial_write): Likewise.
7863 * serial.h (serial_write): Adjust.
7864 (struct serial_ops) <write>: Change prototype -- take 'void *'
7865 buffer and size_t size. Adjust.
7866
51a5cd90
PA
78672013-04-19 Pedro Alves <palves@redhat.com>
7868
7869 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7870 gdb_byte *.
7871 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7872
a9933661
PA
78732013-04-19 Pedro Alves <palves@redhat.com>
7874
7875 * alpha-tdep.c (alpha_extract_return_value): Use
7876 regcache_cooked_read_unsigned to read 'v0'.
7877
19afdd07
PA
78782013-04-19 Pedro Alves <palves@redhat.com>
7879
7880 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7881 parameters 'at', 'as' and 'offset' to uint32_t.
7882
96b32e50
PA
78832013-04-19 Pedro Alves <palves@redhat.com>
7884
7885 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7886 'is64' to signed 'int'.
7887
eb1bd1fb
PA
78882013-04-19 Pedro Alves <palves@redhat.com>
7889
7890 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7891 parameter to int *.
7892
463920bf
PA
78932013-04-19 Pedro Alves <palves@redhat.com>
7894
7895 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7896 'insnbuf' buffer type to unsigned int[].
7897
70242eb1
PA
78982013-04-19 Pedro Alves <palves@redhat.com>
7899
7900 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7901
9d1dd0e2
PA
79022013-04-19 Pedro Alves <palves@redhat.com>
7903
7904 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7905 unsigned long *.
7906
44096aee
PA
79072013-04-19 Pedro Alves <palves@redhat.com>
7908
7909 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7910 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7911 UINT_MAX.
7912 * mips-tdep.c (heuristic_fence_post): Change type to int.
7913 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7914
e4286e57
PA
79152013-04-19 Pedro Alves <palves@redhat.com>
7916
7917 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7918 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7919 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7920
001f13d8
PA
79212013-04-19 Pedro Alves <palves@redhat.com>
7922
7923 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7924 it to get a string view of the byte buffer.
7925 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7926 type to gdb_byte *. Adjust.
7927 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7928 Change local to char *.
7929 * solib-darwin.c (find_program_interpreter): Change return type to
7930 char *. Adjust.
7931 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7932 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7933 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7934 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7935 * solib-svr4.c (find_program_interpreter): Change return type to
7936 char *. Adjust.
7937 (enable_break): Change local 'interp_name' to char *.
7938 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7939 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7940 (spu_pseudo_register_write_spu): Use char for string buffer.
7941 Adjust.
7942 (info_spu_event_command, info_spu_signal_command): Add casts to
7943 'char *'.
7944
948f8e3d
PA
79452013-04-19 Pedro Alves <palves@redhat.com>
7946
7947 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7948 gdb_byte[].
7949 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7950 * ada-lang.c (ada_value_assign): Use gdb_byte.
7951 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7952 (alphanbsd_sigtramp_offset): Use gdb_byte.
7953 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7954 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7955 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7956 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7957 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7958 * arm-tdep.c (arm_stub_unwind_sniffer)
7959 (arm_displaced_init_closure): Use gdb_byte.
7960 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7961 (arm_default_thumb_le_breakpoint)
7962 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7963 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7964 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7965 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7966 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7967 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7968 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7969 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7970 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7971 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7972 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7973 (cris_store_return_value, cris_extract_return_value): Use
7974 gdb_byte.
7975 (constraint): Change type of parameter to char * from signed
7976 char*. Use gdb_byte.
7977 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7978 of local buffer to gdb_byte *.
7979 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7980 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7981 (add_address_entry): Change type of local buffer to gdb_byte[].
7982 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7983 (frv_push_dummy_call): Use gdb_byte.
7984 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7985 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7986 (hppa_hpux_supply_save_state): Use gdb_byte.
7987 * hppa-tdep.c (hppa32_push_dummy_call)
7988 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7989 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7990 (slotN_contents, replace_slotN_contents): Change type of parameter
7991 to gdb_byte *.
7992 (fetch_instruction, ia64_pseudo_register_write)
7993 (ia64_register_to_value, ia64_value_to_register)
7994 (ia64_extract_return_value, ia64_store_return_value)
7995 (ia64_push_dummy_call): Use gdb_byte.
7996 * m32c-tdep.c (m32c_return_value): Remove cast.
7997 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7998 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7999 gdb_byte.
8000 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8001 * mn10300-tdep.c (mn10300_store_return_value)
8002 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8003 gdb_byte.
8004 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8005 (moxie_process_record): Remove casts.
8006 * ppc-ravenscar-thread.c (supply_register_at_address)
8007 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8008 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8009 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8010 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8011 * remote.c (compare_sections_command): Use gdb_byte.
8012 * score-tdep.c (score7_free_memblock): Change type of parameter to
8013 gdb_byte *.
8014 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8015 gdb_byte *. Use gdb_byte.
8016 (sh_push_dummy_call_fpu): Use gdb_byte.
8017 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8018 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8019 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8020 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8021 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8022 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8023 (sh64_store_return_value, sh64_register_convert_to_virtual):
8024 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8025 (sh64_pseudo_register_write): Use gdb_byte.
8026 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8027 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8028 buffer.
8029 (irix_current_sos): Use gdb_byte.
8030 * solib-som.c (som_current_sos): Use gdb_byte.
8031 * sparc-ravenscar-thread.c (supply_register_at_address)
8032 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8033 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8034 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8035 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8036 'gdb_byte *'.
8037 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8038 'gdb_byte *'.
8039 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8040 * xstormy16-tdep.c (xstormy16_extract_return_value)
8041 (xstormy16_store_return_value): Change parameter type to
8042 'gdb_byte *'. Adjust.
8043 (xstormy16_push_dummy_call): Use gdb_byte.
8044 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8045 (call0_analyze_prologue, execute_code): Use gdb_byte.
8046
433730c9
PA
80472013-04-19 Vladimir Kargov <kargov@gmail.com>
8048 Pedro Alves <palves@redhat.com>
8049
8050 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8051 value contents.
8052
ac9ec31b
DE
80532013-04-17 Doug Evans <dje@google.com>
8054
8055 * dwarf2read.c (struct signatured_type): New member type.
8056 (struct attribute): Replace member signatured_type with signature.
8057 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8058 (read_call_site_scope): Call follow_die_ref instead of
8059 follow_die_ref_or_sig.
8060 (read_structure_type): Rewrite handling of signatured types.
8061 (read_enumeration_type): Ditto.
8062 (read_attribute_value): Update.
8063 (build_error_marker_type): New function.
8064 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8065 Don't call error for bad types, just build an error marker type.
8066 (dump_die_shallow): Update.
8067 (follow_die_sig_1): Renamed from follow_die_sig.
8068 Don't call error for bad types, instead return NULL.
8069 (follow_die_sig): New function.
8070 (get_signatured_type, get_DW_AT_signature_type): New functions.
8071
e546e8bb
YZ
80722013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8073
8074 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8075 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8076 function.
e546e8bb 8077
ab116149
YQ
80782013-04-17 Yao Qi <yao@codesourcery.com>
8079
8080 * top.c (print_gdb_configuration): Print configure-time
8081 parameter on using libbabeltrace or not.
8082
488a42b8
PA
80832013-04-16 Pedro Alves <palves@redhat.com>
8084
8085 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8086
f5fb825b
PA
80872013-04-16 Pedro Alves <palves@redhat.com>
8088
85d494ea 8089 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8090 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8091
e1154999
PA
80922013-04-16 Pedro Alves <palves@redhat.com>
8093
8094 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8095 * common/glibc_thread_db.h: ... this new file ...
8096 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8097
e3b50a7f
PA
80982013-04-16 Will Newton <will.newton@gmail.com>
8099 Pedro Alves <palves@redhat.com>
8100
8101 PR build/11881
8102
8103 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8104 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8105 HAVE_THREAD_DB_H.
8106
1c2e4450
PA
81072013-04-16 Pedro Alves <palves@redhat.com>
8108 Eli Zaretskii <eliz@gnu.org>
8109
8110 * NEWS: Mention "set foo unlimited".
8111
4031ecc5
DE
81122013-04-15 Doug Evans <dje@google.com>
8113
19c3d4c9
DE
8114 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8115 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8116 (create_dwo_cu_reader): Renamed from
8117 create_dwo_debug_info_hash_table_reader.
8118 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8119 Remove support for multiple CUs in a DWO file.
8120 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8121
4031ecc5
DE
8122 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8123 instead of phex.
8124 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8125 (create_dwo_in_dwp): Ditto.
8126
b340913d
TT
81272013-04-15 Tom Tromey <tromey@redhat.com>
8128
8129 * NEWS: Move recent entries into "since 7.6" section.
8130
cc16e6c9
TT
81312013-04-15 Tom Tromey <tromey@redhat.com>
8132
8133 PR c++/13588:
8134 * NEWS: Update.
8135 * break-catch-throw.c (struct exception_catchpoint)
8136 <exception_rx, pattern>: New fields.
8137 (fetch_probe_arguments, dtor_exception_catchpoint)
8138 (check_status_exception_catchpoint)
8139 (print_one_detail_exception_catchpoint): New functions.
8140 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8141 Compile regular expression if needed.
8142 (extract_exception_regexp): New function.
8143 (catch_exception_command_1): Use extract_exception_regexp.
8144 (compute_exception): Use fetch_probe_arguments.
8145 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8146 and check_status fields.
8147 * cp-abi.c (cplus_typename_from_type_info): New function.
8148 * cp-abi.h (cplus_typename_from_type_info): Declare.
8149 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8150 * gdb_regex.h (compile_rx_or_error): Declare.
8151 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8152 comment.
8153 (init_gnuv3_ops): Set get_type_from_type_info field.
8154 * probe.c (compile_rx_or_error): Move...
8155 * utils.c (compile_rx_or_error): ... here.
8156
72f1fe8a
TT
81572013-04-15 Tom Tromey <tromey@redhat.com>
8158
8159 PR c++/15176:
8160 * NEWS: Update.
8161 * break-catch-throw.c (compute_exception): New function.
8162 (exception_funcs): New global.
8163 (_initialize_break_catch_throw): Create $_exception.
8164 * cp-abi.c (cplus_type_from_type_info): New function.
8165 * cp-abi.h (cplus_type_from_type_info): Declare.
8166 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8167 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8168 (gnuv3_get_type_from_type_info): New functions.
8169 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8170
fc4746a2
TT
81712013-04-15 Tom Tromey <tromey@redhat.com>
8172
8173 * break-catch-throw.c (struct exception_names): New.
8174 (exception_functions): Change type.
8175 (re_set_exception_catchpoint): Look for SDT probes.
8176
15a73f56
TT
81772013-04-15 Tom Tromey <tromey@redhat.com>
8178
8179 PR c++/10119:
8180 * break-catch-throw.c (exception_functions): New global.
8181 (gnu_v3_exception_catchpoint_ops): Move earlier.
8182 (struct exception_catchpoint): New.
8183 (classify_exception_breakpoint): Rewrite.
8184 (re_set_exception_catchpoint): New function.
8185 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8186 Allocate a struct exception_catchpoint.
8187 (catch_exception_command_1): Update.
8188 (initialize_throw_catchpoint_ops): Set 're_set' method.
8189
916703c0
TT
81902013-04-15 Tom Tromey <tromey@redhat.com>
8191
8192 * Makefile.in (SFILES): Add break-catch-throw.c
8193 (COMMON_OBS): Add break-catch-throw.o.
8194 * break-catch-throw.c: New file.
8195 * breakpoint.c: Move exception-catching code to new file.
8196 (ep_parse_optional_if_clause): No longer static.
8197 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8198
6e72ca20
TT
81992013-04-15 Tom Tromey <tromey@redhat.com>
8200
8201 PR c++/9065:
8202 * NEWS: Update.
8203 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8204 * c-exp.y (TYPEID): New token.
8205 (exp): Add new TYPEID productions.
8206 (ident_tokens): Add "typeid".
8207 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8208 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8209 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8210 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8211 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8212 case.
8213 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8214 (build_std_type_info_type, gnuv3_get_typeid_type)
8215 (gnuv3_get_typeid): New functions.
8216 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8217 new fields on ABI object.
8218 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8219 * std-operator.def (OP_TYPEID): New.
8220
715c6909
TT
82212013-04-15 Tom Tromey <tromey@redhat.com>
8222
8223 * elfread.c (elf_symtab_read): Install versioned symbol under
8224 unversioned name as well.
8225
8de20a37
TT
82262013-04-15 Tom Tromey <tromey@redhat.com>
8227
8228 PR c++/11990:
8229 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8230 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8231 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8232 (gdb_demangle): New function.
8233 * cp-support.h (gdb_demangle): Declare.
8234 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8235 (dwarf2_name): Use gdb_demangle.
8236 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8237 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8238 suffixes from name.
8239 (gnuv3_print_method_ptr): Use gdb_demangle.
8240 * jv-lang.c (java_demangle): Use gdb_demangle.
8241 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8242 * language.c (unk_lang_demangle): Use gdb_demangle.
8243 * symtab.c (symbol_find_demangled_name)
8244 (demangle_for_lookup): Use gdb_demangle.
8245
591f19e8
TT
82462013-04-15 Tom Tromey <tromey@redhat.com>
8247
8248 PR c++/12824:
8249 * NEWS: Update.
8250 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8251 New constant.
8252 (classify_exception_breakpoint): New function.
8253 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8254 (print_mention_exception_catchpoint)
8255 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8256 (catch_exception_command_1): Handle "rethrow" catchpoint.
8257 (catch_rethrow_command): New function.
8258 (_initialize_breakpoint): Add "catch rethrow" command.
8259
4d40cad2
PM
82602013-04-15 Pierre Muller <muller@sourceware.org>
8261
8262 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8263 set_gdbarch_write_pc as deprecated anymore.
8264
30bcb456
JB
82652013-04-15 Joel Brobecker <brobecker@adacore.com>
8266
8267 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8268 declarations.
8269
da9160e4
YQ
82702013-04-13 Yao Qi <yao@codesourcery.com>
8271
8272 * ctf.c (_initialize_ctf): Include "completer.h".
8273 Call add_target_with_completer instead of add_target.
8274
39ed5604
JK
82752013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8276
8277 Fix GDB regression related to PR binutils/14813.
8278 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8279 * minidebug.c (lzma_close): Add return value comment.
8280 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8281 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8282 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8283
82842013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8285
8286 * config.in: Regenerate.
8287
d521ce57
TT
82882013-04-12 Tom Tromey <tromey@redhat.com>
8289
8290 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8291 const.
8292 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8293 (struct die_reader_specs) <buffer>: Likewise.
8294 (die_reader_func_ftype): Make 'info_ptr' const.
8295 (struct line_header) <include_dirs, statement_program_start,
8296 statement_program_end>: Now const.
8297 (struct file_entry) <name>: Likewise.
8298 (struct partial_die_info) <sibling>: Likewise.
8299 (struct dwarf_block) <data>: Likewise.
8300 (dwarf2_read_section): Remove cast.
8301 (dwarf2_get_section_info): Make 'bufp' const.
8302 (read_index_from_section): Constify.
8303 (dw2_get_file_names_reader): Make 'info_ptr' const.
8304 (dw2_get_primary_filename_reader): Likewise.
8305 (read_comp_unit_head): Make 'info_ptr' and return type const.
8306 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8307 Likewise.
8308 (read_abbrev_offset): Constify.
8309 (dwarf2_create_include_psymtab): Make 'name' const.
8310 (create_debug_types_hash_table): Update.
8311 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8312 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8313 Constify.
8314 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8315 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8316 (read_comp_units_from_section): Constify.
8317 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8318 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8319 const.
8320 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8321 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8322 (create_dwp_hash_table, dwarf2_ranges_read)
8323 (dwarf2_record_block_ranges): Constify.
8324 (read_die_and_children, read_die_and_siblings_1)
8325 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8326 const.
8327 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8328 (abbrev_table_read_table): Constify.
8329 (load_partial_dies): Make 'info_ptr' const.
8330 (read_partial_die, read_attribute_value, read_attribute): Make
8331 'info_ptr' and return type const.
8332 (read_address, read_initial_length)
8333 (read_checked_initial_length_and_offset, read_offset)
8334 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8335 const.
8336 (read_direct_string): Make 'buf' and return type const.
8337 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8338 (read_indirect_string): Make return type const.
8339 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8340 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8341 'info_ptr' const.
8342 (read_str_index): Make return type const.
8343 (add_include_dir): Make 'include_dir' const.
8344 (add_file_name): Make 'name' const.
8345 (dwarf_decode_line_header): Constify.
8346 (psymtab_include_file_name): Make return type const.
8347 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8348 (dwarf2_start_subfile): Make 'filename' const.
8349 (dwarf2_const_value_attr): Make 'bytes' const.
8350 (read_signatured_type_reader): Make 'info_ptr' const.
8351 (decode_locdesc): Constify.
8352 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8353 const.
8354 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8355 'mac_end', and return type const.
8356 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8357 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8358 type const.
8359 (per_cu_header_read_in): Constify.
8360 * symfile.h (dwarf2_get_section_info): Update.
8361
d47a1bc1
TT
83622013-04-12 Tom Tromey <tromey@redhat.com>
8363
8364 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8365
6eaaf48b
EZ
83662013-04-12 Eli Zaretskii <eliz@gnu.org>
8367
fc4c25bf 8368 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8369 * top.c (print_gdb_configuration): New function, displays the
8370 details about GDB configure-time parameters.
8371 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8372 * cli/cli-cmds.c (show_configuration): New function.
8373 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8374 * main.c (captured_main) <print_configuration>: New static var.
8375 <long_options>: Use it.
8376 If --configuration was given, call print_gdb_configuration.
8377
b292c783
JK
83782013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8379 Pedro Alves <palves@redhat.com>
8380
8381 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8382 (generated_files): Add gcore.
8383 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8384 HAVE_NATIVE_GCORE_HOST.
8385 (gcore): New.
8386 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8387 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8388 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8389 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8390 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8391 Add HAVE_NATIVE_GCORE_HOST.
8392 * configure: Regenerate.
8393 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8394 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8395 AC_CONFIG_FILES for gcore.
8396 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8397 gdb_have_gcore.
8398 * gdb_gcore.sh: Rename to ...
8399 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8400 and GCORE_TRANSFORM_NAME substitutions.
8401
c96b3c4f
JK
8402 Fix parsing tabs in ${gdb_target_obs}.
8403 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8404
d6cb50a2
JK
84052013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8406
8407 * remote.c (unpush_and_perror): Add output message final dot.
8408
cf2cb5ec
YQ
84092013-04-11 Yao Qi <yao@codesourcery.com>
8410
8411 * tracepoint.c (tfile_interp_line): Fit parameters line and
8412 utpp in one line.
8413
07293be4
JB
84142013-04-10 Joel Brobecker <brobecker@adacore.com>
8415
8416 * solib.c (solib_map_sections): Remove code overwriting
8417 SO->SO_NAME with the bfd's filename.
8418
f81d1120
PA
84192013-04-10 Pedro Alves <palves@redhat.com>
8420
8421 * cli/cli-decode.c (integer_unlimited_completer): New function.
8422 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8423 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8424 completer.
8425 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8426 (is_unlimited_literal): New function.
8427 (do_set_command): Handle literal "unlimited" arguments.
8428 * frame.c (_initialize_frame) <set backtrace limit>: Document
8429 "unlimited".
8430 * printcmd.c (_initialize_printcmd) <set print
8431 max-symbolic-offset>: Add help text.
8432 * record-full.c (_initialize_record_full) <set record full
8433 insn-number-max>: Likewise.
8434 * record.c (_initialize_record) <set record
8435 instruction-history-size, set record function-call-history-size>:
8436 Add help text.
8437 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8438 help text.
8439 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8440 Likewise.
8441 * source.c (_initialize_source) <set listsize>: Add help text.
8442 * utils.c (initialize_utils) <set height, set width>: Likewise.
8443 <set pagination>: Mention "set height unlimited".
8444 * valprint.c (_initialize_valprint) <set print elements, set print
8445 repeats>: Document "unlimited".
8446
2f9d54cf
PA
84472013-04-10 Pedro Alves <palves@redhat.com>
8448
8449 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8450 instead of disconnect_tracing.
8451 * infcmd.c (detach_command, disconnect_command): Call
8452 query_if_trace_running. Adjust.
8453 * top.c: Include "tracepoint.h".
8454 (quit_target): Delete. Contents moved ...
8455 (quit_force): ... here. Wrap each stage of teardown in
8456 TRY_CATCH. Call disconnect_tracing before detaching.
8457
393fd4c3
YQ
84582013-04-10 Hui Zhu <hui@codesourcery.com>
8459 Yao Qi <yao@codesourcery.com>
8460
8461 * configure.ac: Check libbabeltrace is installed.
8462 * config.in: Regenerate.
8463 * configure: Regenerate.
8464 * Makefile.in (LIBBABELTRACE): New.
8465 (CLIBS): Add LIBBABELTRACE.
8466 * ctf.c: Include "exec.h".
8467 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8468 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8469 (ctf_save_metadata_header): Define new type aliases in
8470 metadata.
8471 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8472 in metadata. Start a new faked packet for trace status.
8473 (ctf_write_status): Write trace status to CTF.
8474 (ctf_write_uploaded_tsv): Write TSV to CTF.
8475 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8476 (ctf_write_definition_end): End the faked packet.
8477
8478 (ctx, ctf_iter, trace_dirname): New.
8479 (start_pos): New variable.
8480 (ctf_destroy, ctf_open_dir, ctf_open): New.
8481 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8482 macros.
8483 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8484 (ctf_fetch_registers, ctf_xfer_partial): New.
8485 (ctf_get_trace_state_variable_value): New.
8486 (ctf_get_tpnum_from_frame_event): New.
8487 (ctf_get_traceframe_address): New.
8488 (ctf_trace_find, ctf_has_stack): New.
8489 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8490 (ctf_get_trace_status, ctf_read_status): New.
8491 (_initialize_ctf): New.
8492 * tracepoint.c (get_tracepoint_number): New
8493 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8494 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8495 * tracepoint.h: ... here.
8496 (get_tracepoint_number): Declare it.
8497 (get_uploaded_tsv): Declare it.
8498
8499 * NEWS: Mention new configure option.
8500
5c2b4418
HZ
85012013-04-10 Pedro Alves <palves@redhat.com>
8502 Hui Zhu <hui@codesourcery.com>
8503
8504 * breakpoint.c (dprintf_re_set): New.
8505 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8506 to dprintf_re_set.
8507
a5c66735
JB
85082013-04-09 Joel Brobecker <brobecker@adacore.com>
8509
8510 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8511 Remove solib-svr4.o from the list.
8512
9e77999c
JB
85132013-04-09 Joel Brobecker <brobecker@adacore.com>
8514
8515 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8516 Use gdb_assert_not_reached instead of invalid boolean expression.
8517
1927e618
PA
85182013-04-09 Pedro Alves <palves@redhat.com>
8519
8520 * remote.c (unpush_and_perror): New function.
8521 (readchar, remote_serial_write): Use it.
8522
10782d74
MM
85232013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8524
8525 * NEWS: Mention new btrace RSP packets.
8526
4c8429ef
TT
85272013-04-08 Tom Tromey <tromey@redhat.com>
8528
8529 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8530 long.
8531
8625fc1b
TT
85322013-04-08 Tom Tromey <tromey@redhat.com>
8533
8534 * maint.c (print_bfd_section_info): Print the section index.
8535 * symmisc.c (dump_msymbols): Print the section index.
8536
e27d198c
TT
85372013-04-08 Tom Tromey <tromey@redhat.com>
8538
8539 PR symtab/8424:
8540 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8541 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8542 * breakpoint.c (resolve_sal_pc): Update.
8543 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8544 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8545 (minsym_lookup_iterator_cb): Use it.
8546 (default_read_var_value): Update.
8547 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8548 Update.
8549 * infcmd.c (jump_command): Update.
8550 * linespec.c (minsym_found): Update.
8551 * maint.c (maintenance_translate_address): Update.
8552 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8553 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8554 * parse.c (write_exp_msymbol): Update.
8555 * printcmd.c (address_info): Update.
8556 * psymtab.c (find_pc_sect_psymbol): Update.
8557 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8558 SYMBOL_OBJ_SECTION.
8559 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8560 Don't initialize SYMBOL_OBJ_SECTION.
8561 * spu-tdep.c (spu_catch_start): Update.
8562 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8563 * symmisc.c (dump_msymbols, print_symbol): Update.
8564 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8565 how fallback section is computed.
8566 (fixup_symbol_section): Update.
8567 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8568 Update.
8569 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8570 Initialize SYMBOL_SECTION.
8571 * symtab.h (struct general_symbol_info) <section>: Update comment.
8572 <obj_section>: Remove.
8573 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8574 (SYMBOL_OBJFILE): New macro.
8575
e6dc44a8
TT
85762013-04-08 Tom Tromey <tromey@redhat.com>
8577
8578 * coffread.c (record_minimal_symbol): Update.
8579 * dbxread.c (record_minimal_symbol): Update.
8580 * elfread.c (record_minimal_symbol): Update.
8581 * machoread.c (macho_symtab_add_minsym): Update.
8582 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8583 Update.
8584 * minsyms.c (prim_record_minimal_symbol): Update.
8585 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8586 argument.
8587 (prim_record_minimal_symbol_and_info): Likewise.
8588 * minsyms.h (prim_record_minimal_symbol_full)
8589 (prim_record_minimal_symbol_and_info): Update.
8590 * symtab.c (allocate_symbol, initialize_symbol)
8591 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8592 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8593 Update.
8594
36192a8d
TT
85952013-04-08 Tom Tromey <tromey@redhat.com>
8596
8597 PR symtab/8423:
8598 * solib-som.c (som_solib_section_offsets): Use BFD section
8599 indices. Set offsets for all sections.
8600 * somread.c (som_symtab_read): Compute BFD section for
8601 symbol. Use prim_record_minimal_symbol_and_info.
8602 (som_symfile_read): Fix comment.
8603 (struct find_section_offset_arg): New.
8604 (find_section_offset, set_section_index): New functions.
8605 (som_symfile_offsets): Use set_section_index to compute
8606 section indices.
8607
65cf3563
TT
86082013-04-08 Tom Tromey <tromey@redhat.com>
8609
8610 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8611 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8612 gdb_bfd_section_index.
8613 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8614 New functions.
8615 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8616 Declare.
8617 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8618 Update.
8619 * objfiles.c (add_to_objfile_sections_full): New function.
8620 (add_to_objfile_sections): Use it.
8621 (build_section_table): Rewrite.
8622 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8623 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8624 (struct objfile) <sections>: Update comment.
8625 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8626 is NULL.
8627 (ALL_OBJSECTIONS): Use it.
8628 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8629 * solib-frv.c (frv_relocate_main_executable): Update.
8630 * solib-target.c (solib_target_relocate_section_addresses):
8631 Use gdb_bfd_section_index.
8632 * symfile.c (build_section_addr_info_from_section_table):
8633 Use gdb_bfd_section_index.
8634 (build_section_addr_info_from_bfd, place_section): Likewise.
8635 * symtab.c (fixup_section): Update.
8636 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8637
7cbd4a93
TT
86382013-04-08 Tom Tromey <tromey@redhat.com>
8639
8640 * minsyms.h (struct bound_minimal_symbol): New.
8641 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8642 Remove objfile argument.
8643 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8644 Return bound_minimal_symbol.
8645 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8646 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8647 Return bound_minimal_symbol.
8648 (in_gnu_ifunc_stub): Update.
8649 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8650 Remove 'objfile_p' argument.
8651 (lookup_solib_trampoline_symbol_by_pc): Update.
8652 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8653 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8654 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8655 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8656 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8657 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8658 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8659 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8660 stack.c, symtab.c, tui/tui-disasm.c: Update.
8661
f85f34ed
TT
86622013-04-08 Tom Tromey <tromey@redhat.com>
8663
8664 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8665 Use symbol's obstack, not an objfile.
8666 * coffread.c (process_coff_symbol): Update.
8667 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8668 * jv-lang.c (add_class_symbol): Update.
8669 * mdebugread.c (new_symbol): Update.
8670 * minsyms.c (prim_record_minimal_symbol_full)
8671 (terminate_minimal_symbol_table): Update.
8672 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8673 * stabsread.c (define_symbol, read_enum_type): Update.
8674 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8675 Handle Ada specially.
8676 (symbol_set_language): Add 'obstack' argument.
8677 (symbol_set_names): Update.
8678 (symbol_natural_name, symbol_demangled_name): Always use
8679 ada_decode_symbol.
8680 * symtab.h (struct general_symbol_info)
8681 <language_specific::obstack>: New field.
8682 <ada_mangled>: New field.
8683 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8684 (symbol_set_language): Update.
8685
ccde22c0
TT
86862013-04-08 Tom Tromey <tromey@redhat.com>
8687
8688 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8689 Take an obstack, not an objfile.
8690 (symbol_set_names): Update.
8691 * symtab.h (symbol_set_demangled_name): Update.
8692
e623cf5d
TT
86932013-04-08 Tom Tromey <tromey@redhat.com>
8694
8695 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8696 allocate_symbol.
8697 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8698 (read_func_scope): Call allocate_template_symbol.
8699 (new_symbol_full): Call allocate_symbol.
8700 * jit.c (finalize_symtab): Call allocate_symbol.
8701 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8702 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8703 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8704 (common_block_end): Call allocate_symbol.
8705 * symtab.c (allocate_symbol, initialize_symbol)
8706 (allocate_template_symbol): New functions.
8707 * symtab.c (allocate_symbol, initialize_symbol)
8708 (allocate_template_symbol): Declare.
8709 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8710
f6de8ec2
PA
87112013-04-08 Pedro Alves <palves@redhat.com>
8712 Keith Seitz <keiths@redhat.com>
8713
8714 * breakpoint.c (create_breakpoint): Rename
8715 "parse_condition_and_thread" parameter to "parse_arg". Update
8716 describing comment. If !PARSE_ARG, then error out if ARG is not
8717 the empty string after extracting the location.
8718 * breakpoint.h (create_breakpoint): Rename
8719 "parse_condition_and_thread" parameter to "parse_arg".
8720
f65ce5fb
AR
87212013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8722
8723 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8724
cc5925ad
YQ
87252013-04-07 Yao Qi <yao@codesourcery.com>
8726
8727 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8728 and 'addr2' to CORE_ADDR.
8729 * target.c (update_current_target): Update.
8730 * target.h (struct target_ops) <to_trace_find>: Change parameter
8731 type to CORE_ADDR.
8732 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8733 'addr2' to CORE_ADDR.
8734 (tfile_trace_find): Likewise.
8735 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8736 Change local variable 'addr' to type CORE_ADDR.
8737 * tracepoint.h (tfind_1): Update declaration.
8738
d9ac0664
EZ
87392013-04-06 Eli Zaretskii <eliz@gnu.org>
8740
8741 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8742 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8743 Include main.h.
8744
8745 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8746 here...
8747 * main.h (windows_get_absolute_argv0): ...to here.
8748
02142a6c
DE
87492013-04-05 Doug Evans <dje@google.com>
8750
8751 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8752 (read_cutu_die_from_dwo): Add comments.
8753 (read_structure_type): Update comment.
8754 (read_enumeration_type, read_namespace_type): Update comment.
8755 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8756
43662968
JK
87572013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8758
8759 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8760 * Makefile.in (gdb.z): Remove.
8761 (install-only): Remove $(man1dir) and gdb.1 installation.
8762 * gdb.1: Remove.
8763
9ead1b84
JK
87642013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8765
8766 Fix compatibility with Linux kernel 3.8.3.
8767 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8768 to more inner block. Remove parsing of NUMBER from outer block.
8769 Parse NUMBER only if KEYWORD has been identified.
8770
d1794952
JK
87712013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8772
8773 Fix variable name shadowing.
8774 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8775 filename to mapsfilename and update its uses.
8776
9025569e
EZ
87772013-04-05 Eli Zaretskii <eliz@gnu.org>
8778
8779 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8780 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8781 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8782 details of the problem.
8783
c9a6ce02
PA
87842013-04-04 Pedro Alves <palves@redhat.com>
8785 Hui Zhu <hui@codesourcery.com>
8786
8787 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8788 tracepoint, reset its STEP_COUNT and call validate_actionline.
8789
5ff888ce
DE
87902013-04-03 Doug Evans <dje@google.com>
8791
bf6af496
DE
8792 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8793 read_die_and_siblings.
8794 (read_die_and_siblings): New function.
8795 (read_cutu_die_from_dwo): Dump die if requested.
8796 (read_die_and_children): Call read_full_die_1 and
8797 read_die_and_siblings_1.
8798 (read_full_die): Dump die if requested.
8799
8800 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8801
0ac5b59e
DE
8802 * dwarf2read.c (struct dwo_file): New member comp_dir.
8803 Rename member name to dwo_name. All uses updated.
8804 (hash_dwo_file): Include comp_dir in computation.
8805 (eq_dwo_file): Ditto.
8806 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8807 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8808
5ff888ce
DE
8809 * psymtab.c (read_psymtabs_with_fullname): Don't call
8810 psymtab_to_fullname if the basenames are different.
8811
ec83d211
JK
88122013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8813
8814 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8815 New entry about "fullname" presence.
8816
4f4352f7
PA
88172013-04-03 Pedro Alves <palves@redhat.com>
8818
8819 * NEWS: Mention x86_64/Cygwin as new native configuration.
8820
3d1d5ea3
DE
88212013-04-02 Doug Evans <dje@google.com>
8822
8823 * dwarf2read.c (read_structure_type): Fix typo in comment.
8824
be9a8770
PA
88252013-04-02 Pedro Alves <palves@redhat.com>
8826
8827 * NEWS: Mention "set/show debug aarch64", "set/show debug
8828 coff-pe-read" and "set/show debug mach-o".
8829
a46c1e42
PA
88302013-04-02 Pedro Alves <palves@redhat.com>
8831
8832 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8833
3ad18b19
EZ
88342013-04-02 Eli Zaretskii <eliz@gnu.org>
8835
8836 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8837 gdb_string.h is now in common/.
8838
e9f1758d
PA
88392013-04-02 Pedro Alves <palves@redhat.com>
8840
8841 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8842 under "New options".
8843
049dc89b
JK
88442013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8845
8846 Revert this patch:
8847 PR gdb/15275
8848 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8849
c33e31fd
PA
88502013-04-02 Pedro Alves <palves@redhat.com>
8851
8852 PR gdb/15275
8853
8854 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8855 (remote_serial_write): New function.
8856 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8857
ea5f3910
JW
88582013-04-01 Jiong Wang <jiwang@tilera.com>
8859
8860 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8861 "New targets" sections.
ea5f3910 8862
5c6fa7ab
DE
88632013-04-01 Doug Evans <dje@google.com>
8864
c0f78cd4
DE
8865 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8866 (process_enumeration_scope): Simplify.
8867
0186c6a7
DE
8868 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8869 type_unit_group ...
8870 (struct signatured_type): ... to here.
8871 (sig_type_ptr): New typedef.
8872 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8873 out of union 't'. All uses updated.
8874 (dw2_get_file_names_reader): Assert not called for a type unit.
8875 (dw2_get_file_names): Assert not called for a type unit or type
8876 unit group.
8877 (build_type_psymtabs_reader): Assert called for a type unit.
8878 (build_type_psymtab_dependencies): Assert called for a type unit group.
8879
5c6fa7ab
DE
8880 * dwarf2read.c (free_dwo_file): Add comment.
8881 (dwarf2_per_objfile_free): Unref dwp bfd.
8882
b3c0ad67 88832013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8884
8885 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8886 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8887 (read_pe_exported_syms): Remove unused 'exportix'.
8888 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8889 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8890 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8891
e2df1547
AR
88922013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8893
8894 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8895 (print_it_watchpoint): Remove unused 'bl'.
8896 (say_where): Remove unused 'uiout'.
8897 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8898 (bkpt_breakpoint_hit): Remove unused 'b'.
8899 (internal_bkpt_print_it): Remove unused 'uiout'.
8900 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8901
d81e75c0
TD
89022013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8903
8904 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8905 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8906
5a8b3f62
DE
89072013-03-29 Doug Evans <dje@google.com>
8908
ab5088bf
DE
8909 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8910 Delete arg is_dwp. All callers updated.
8911 (open_dwp_file): New function.
8912 (open_and_init_dwp_file): Call it.
8913 (get_dwp_file): New function.
8914 (lookup_dwo_cutu): Call it.
8915
a8ad1e57
DE
8916 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8917 unnecessary, cleanup.
8918
6296d8c1
DE
8919 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8920
b0c7bfa9
DE
8921 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8922 (lookup_dwo_unit): New function.
8923 (init_cutu_and_read_dies): Move DWO handling to new functions.
8924
c88ee1f0
DE
8925 * dwarf2read.c (struct signatured_type): Tweak comment.
8926 (struct dwo_unit): Tweak comment.
8927 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8928 (create_dwo_debug_info_hash_table): Tweak comment.
8929 (dwarf2_per_cu_offset_and_type): Tweak comment.
8930
5a8b3f62
DE
8931 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8932 missing .debug_types section.
8933
9852c492
YQ
89342013-03-29 Yao Qi <yao@codesourcery.com>
8935
8936 * corelow.c: Include "completer.h".
8937 (_initialize_corelow): Call add_target_with_completer with
8938 argument 'filename_completer'.
8939 * tracepoint.c: Likewise.
8940 * exec.c (_initialize_exec): Likewise.
8941 * target.c (add_target): Rename to ...
8942 (add_target_with_completer): ... this. Call set_cmd_completer
8943 if parameter completer is not NULL.
8944 (add_target): New.
8945 * target.h: Include "command.h".
8946 (add_target_with_completer): Declare it.
8947
af312be7
JB
89482013-03-28 Joel Brobecker <brobecker@adacore.com>
8949
8950 * coffread.c (is_import_fixup_symbol): New function.
8951 (record_minimal_symbol): Use is_import_fixup_symbol to
8952 detect import fixup symbols, and discard them.
8953
8a0459fd
DE
89542013-03-28 Doug Evans <dje@google.com>
8955
0349ea22
DE
8956 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8957 types hash table until we know we need it.
8958
f652bce2
DE
8959 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8960 index numbers.
8961
e4a48d9d
DE
8962 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8963 All callers updated.
8964 (dw2_print_stats): Print #read CUs too.
8965 (dump_die_shallow): Print signatured types better.
8966
8a0459fd
DE
8967 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8968 info_or_types_section to section. All uses updated.
8969 (struct dwo_unit): Ditto.
8970
bd3eecc3
PA
89712013-03-28 Pedro Alves <palves@redhat.com>
8972
8973 * NEWS (New options): New section.
8974 (New options): Mention set/show remote trace-status-packet.
8975 * remote.c (PACKET_qTStatus): New enumeration value.
8976 (remote_get_trace_status): Skip sending qTStatus if the packet is
8977 disabled. Use packet_ok.
8978 (_initialize_remote): Register a configuration command for
8979 qTStatus packet.
8980
41245087
DE
89812013-03-28 Doug Evans <dje@google.com>
8982
7edbb660
DE
8983 * symfile.c (find_separate_debug_file): Add comment.
8984 (terminate_after_last_dir_separator): Tweak comment.
8985
0018ea6f
DE
8986 * dwarf2read.c (create_partial_symtab): Add forward decl.
8987 (create_partial_symtab): Move to be closer to other psymtab functions.
8988 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8989
ca69b9e6
DE
8990 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8991 (compute_symtab_includes): Remove unnecessary forward declaration.
8992 (die_needs_namespace): Add comment marking group of functions for
8993 dwarf2 name computation.
8994
a9375afe
DE
8995 * typeprint.c (_initialize_typeprint): Improve type help text.
8996
41245087
DE
8997 * python/python.c (finish_python_initialization): Provide suggestion
8998 for how to tell gdb to find its python files.
8999
7f7cc265
PA
90002013-03-28 Pedro Alves <palves@redhat.com>
9001
9002 PR gdb/15294
9003
9004 * source.c (_initialize_source): Change back "set listsize" to an
9005 integer command.
9006
ec21308c
JK
90072013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9008
9009 PR gdb/15275
9010 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9011
840a9a1f
PA
90122013-03-27 Pedro Alves <palves@redhat.com>
9013
9014 * top.c (history_size): Rename to ...
9015 (history_size_setshow_var): ... this. Add comment.
9016 (show_commands): Use readline's 'history_length' instead of
9017 computing the history length by calling history_get in a loop.
9018 (set_history_size_command): Error out for sizes over INT_MAX.
9019 Restore previous history size on invalid size.
9020 (init_history): If HISTSIZE is negative, leave the history size as
9021 zero. Add comments.
9022 (init_main): Adjust.
9023
826ecc4d
PA
90242013-03-27 Pedro Alves <palves@redhat.com>
9025
9026 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9027 coff_pe_read" command to "set debug coff-pe-read".
9028
0ccfeeae
MM
90292013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9030
9031 * record.c (command_size_to_target_size): Fix size comparison.
9032 Change parameter type from pointer to integer to integer.
9033 Update all users.
9034
40653b35
PM
90352013-03-27 Pierre Muller <muller@sourceware.org>
9036
9037 * windows-nat.c (handle_output_debug_string): Avoid typecast
9038 from integer of different size warning.
9039
c62fa0e2
JB
90402013-03-26 Joel Brobecker <brobecker@adacore.com>
9041
9042 * windows-nat.c (handle_output_debug_string): Add empty line
9043 after local block variable definition.
9044
2c619be2
PA
90452013-03-26 Pedro Alves <palves@redhat.com>
9046
9047 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9048 (net_open): Make 'polls' local unsigned.
9049
1b493192
PA
90502013-03-26 Pedro Alves <palves@redhat.com>
9051
9052 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9053 a zuinteger command instead of uinteger.
9054
7ee70bf5
PA
90552013-03-26 Pedro Alves <palves@redhat.com>
9056
9057 * record-full.c (record_full_insn_num): Make it unsigned.
9058 (record_full_check_insn_num, record_full_message)
9059 (record_full_registers_change, record_full_xfer_partial): Remove
9060 record_full_insn_max_num check (it's always != 0).
9061 (record_full_info, record_full_restore): Use %u as format string.
9062 (): Use %u as format string.
9063 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9064 check (it's always != 0).
9065
dfd1f9bb
PA
90662013-03-26 Pedro Alves <palves@redhat.com>
9067
9068 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9069 and "set dcache size" commands zuinteger instead of uinteger.
9070
addb4faf
PA
90712013-03-26 Pedro Alves <palves@redhat.com>
9072
9073 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9074 command zuinteger instead of uinteger.
9075
b75bf488
PA
90762013-03-26 Pedro Alves <palves@redhat.com>
9077
9078 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9079 zuinteger instead of uinteger.
9080
42c634cb
PA
90812013-03-26 Pedro Alves <palves@redhat.com>
9082
9083 * record.c (record_insn_history_size_setshow_var)
9084 (record_call_history_size_setshow_var): New globals.
9085 (command_size_to_target_size): New function.
9086 (cmd_record_insn_history, cmd_record_call_history): Use
9087 command_size_to_target_size instead of cast.
9088 (validate_history_size, set_record_insn_history_size)
9089 (set_record_call_history_size): New functions.
9090 (_initialize_record): Install set_record_insn_history_size and
9091 set_record_call_history_size as "set" hooks of "set record
9092 instruction-history-size" and "set record
9093 function-call-history-size".
9094
1fb2e2b5
PA
90952013-03-26 Pedro Alves <palves@redhat.com>
9096
9097 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9098 use with history_max_entries use. Remove FIXME note.
9099
99c819ee
MM
91002013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9101
9102 * record-btrace.c (record_btrace_close): Call
9103 record_btrace_auto_disable.
9104
9f9e404c
JB
91052013-03-25 Joel Brobecker <brobecker@adacore.com>
9106
9107 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9108
ebcdfe33
DE
91092013-03-25 Doug Evans <dje@google.com>
9110
9111 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9112
24955f63
TT
91132013-03-25 Tom Tromey <tromey@redhat.com>
9114
9115 PR symtab/11462:
9116 * c-exp.y (exp): Add new productions for destructors after '.' and
9117 '->'.
9118 (write_destructor_name): New function.
9119
fce632b6
TT
91202013-03-25 Tom Tromey <tromey@redhat.com>
9121
9122 PR c++/9197:
9123 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9124 value_struct_elt, not lookup_struct_elt_type.
9125 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9126 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9127 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9128
a4341769
YQ
91292013-03-25 Yao Qi <yao@codesourcery.com>
9130
9131 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9132 instead of '_mkdir'.
9133
b5981e5a
EZ
91342013-03-23 Eli Zaretskii <eliz@gnu.org>
9135
9136 * windows-nat.c (windows_get_absolute_argv0): New function.
9137 * windows-nat.h: Add its prototype.
9138
9139 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9140 Use IS_DIR_SEPARATOR instead of looking for a character inside
9141 SLASH_STRING. Include filenames.h.
9142 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9143 relocate_gdb_directory works when passed gdb_program_name.
9144 Include windows-nat.h.
9145
598d3636
JK
91462013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9147
9148 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9149 * remote.c (trace_error): Remove the special handling of '2'.
9150 (readchar) <SERIAL_EOF>
9151 (readchar) <SERIAL_ERROR>
9152 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9153 (remote_get_trace_status): Call throw_exception if EX is
9154 TARGET_CLOSE_ERROR.
9155 * utils.c (perror_with_name): Rename to ...
9156 (throw_perror_with_name): ... here. New parameter errcode, describe it
9157 in the function comment.
9158 (perror_with_name): New function wrapper.
9159 * utils.h (enum errors): New stub declaration.
9160 (throw_perror_with_name): New declaration.
9161
82b821e9
PA
91622013-03-22 Pedro Alves <palves@redhat.com>
9163 Yao Qi <yao@codesourcery.com>
9164 Mark Kettenis <kettenis@gnu.org>
9165
9166 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9167 Don't let the user set the value to UINT_MAX directly.
9168 <var_integer>: Don't let the user set the value to INT_MAX
9169 directly.
9170
78a095c3
JK
91712013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9172
9173 * remote.c (remote_unpush_target): New function.
9174 (remote_open_1): Remove two pop_target calls, update one comment, add
9175 comment to target_preopen call. Replace pop_target call by
9176 remote_unpush_target call.
9177 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9178 pop_target calls by remote_unpush_target calls.
9179
3e74e146
PA
91802013-03-22 Pedro Alves <palves@redhat.com>
9181
9182 * linux-nat.c (linux_child_follow_fork): Don't call
9183 linux_enable_event_reporting.
9184 (linux_handle_extended_wait): Don't call
9185 linux_enable_event_reporting.
9186
a2213dca
PA
91872013-03-22 Pedro Alves <palves@redhat.com>
9188
9189 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9190 use it to rewrite the trampoline buffers with type gdb_byte[], and
9191 undefine the macro. Remove char* cast.
9192
bd712aed
DE
91932013-03-21 Doug Evans <dje@google.com>
9194
9195 New commands "mt set per-command {space,time,symtab} {on,off}".
9196 * NEWS: Add entry.
9197 * event-top.c: #include "maint.h".
9198 * main.c: #include "maint.h".
9199 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9200 timeval-utils.h, maint.h, cli/cli-setshow.h.
9201 (per_command_time, per_command_space): New static globals.
9202 (per_command_symtab): New static global.
9203 (per_command_setlist, per_command_showlist): New static globals.
9204 (struct cmd_stats): Move here from utils.c.
9205 (set_per_command_time): Renamed from set_display_time in utils.c
9206 and moved here. All callers updated.
9207 (set_per_command_space): Renamed from set_display_space in utils.c
9208 and moved here. All callers updated.
9209 (count_symtabs_and_blocks): New function.
9210 (report_command_stats): Moved here from utils.c. Add support for
9211 printing symtab stats. Only print data if enabled before command
9212 executed.
9213 (make_command_stats_cleanup): Ditto.
9214 (sert_per_command_cmd, show_per_command_cmd): New functions.
9215 (_initialize_maint_cmds): Add new commands
9216 mt set per-command {space,time,symtab} {on,off}.
9217 * maint.h: New file.
9218 * top.c: #include "maint.h".
9219 * utils.c (reset_prompt_for_continue_wait_time): New function.
9220 (get_prompt_for_continue_wait_time): New function.
9221 * utils.h (reset_prompt_for_continue_wait_time): Declare
9222 (get_prompt_for_continue_wait_time): Declare.
9223 (make_command_stats_cleanup): Moved to maint.h.
9224 (set_display_time, set_display_space): Moved to maint.h and renamed
9225 to set_per_command_time, set_per_command_space.
9226 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9227 parse_binary_operation and made non-static. Don't call error,
9228 just return an error marker. All callers updated.
9229 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9230
d76488d8
TT
92312013-03-21 Tom Tromey <tromey@redhat.com>
9232
9233 * symfile.c (alloc_section_addr_info): Update header. Don't set
9234 'num_sections' field.
9235 (build_section_addr_info_from_section_table): Set 'num_sections'.
9236 (build_section_addr_info_from_bfd): Likewise.
9237 (build_section_addr_info_from_objfile): Remove dead loop
9238 condition.
9239 (free_section_addr_info): Unconditionally call xfree.
9240 (relative_addr_info_to_section_offsets, addrs_section_sort)
9241 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9242 condition.
9243 (syms_from_objfile_1): Remove dead 'if' condition. Check
9244 'num_sections'.
9245 (add_symbol_file_command): Set 'num_sections'.
9246 * symfile-mem.c (symbol_file_add_from_memory): Set
9247 'num_sections'.
9248 * somread.c (som_symfile_offsets): Remove dead loop condition.
9249 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9250 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9251
a72e5169 92522013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9253
9254 * tracepoint.h (decode_agent_options): Add 'trace_string'
9255 argument.
9256 * tracepoint.c (decode_agent_options): Add 'trace_string'
9257 argument.
9258 (validate_actionline): Update.
9259 (collect_symbol): Add 'trace_string' argument.
9260 (struct add_local_symbols_data) <trace_string>: New field.
9261 (do_collect_symbol): Update.
9262 (add_local_symbols): Add 'trace_string' argument.
9263 (encode_actions_1): Update.
9264 (trace_dump_actions): Update.
9265 * dwarf2loc.c (access_memory): Update.
9266 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9267 * ax-general.c (new_agent_expr): Update.
9268 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9269 (gen_trace_for_return_address): Add argument.
9270 (trace_kludge, trace_string_kludge): Remove.
9271 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9272 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9273 (gen_trace_for_var): Add 'trace_string' argument.
9274 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9275 (gen_printf, agent_eval_command_one): Update.
9276
b2f83c08
TT
92772013-03-21 Tom Tromey <tromey@redhat.com>
9278
9279 PR exp/15109:
9280 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9281 Handle FILENAME token.
9282
9507860e
TT
92832013-03-21 Tom Tromey <tromey@redhat.com>
9284
9285 * c-exp.y (YYPRINT): Define.
9286 (c_print_token): New function.
9287
e403aa4b
TT
92882013-03-21 Tom Tromey <tromey@redhat.com>
9289
9290 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9291
af307d6a
YQ
92922013-03-21 Yao Qi <yao@codesourcery.com>
9293
9294 * ctf.c: Include "gdb_stat.h".
9295 [USE_WIN32API]: New macro 'mkdir'.
9296 (ctf_start): Use permission bits macros if they are defined.
9297
fb81d016
KS
92982013-03-20 Keith Seitz <keiths@redhat.com>
9299
9300 * breakpoint.h (struct breakpoint): Add comment to
9301 extra_string indicating that this member is mallod'd.
9302 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9303
ef0026f0
PA
93042013-03-20 Pedro Alves <palves@redhat.com>
9305
9306 PR gdb/15289
9307
9308 * cli/cli-setshow.c (do_set_command)
9309 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9310 the result of parsing the command argument. Throw error if the
9311 value is greater than UINT_MAX. Print the invalid value with
9312 plongest.
9313 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9314 result of parsing the command argument. Throw error if the value
9315 is greater than INT_MAX, not greater or equal. Also throw error
9316 if the value is less than INT_MIN. Print the invalid value with
9317 plongest.
9318 <var_zuinteger_unlimited>: Throw error if the value is greater
9319 than INT_MAX, not greater or equal.
9320 (do_show_command) <var_integer, var_zinteger,
9321 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9322
24d6c2a0
TT
93232013-03-20 Tom Tromey <tromey@redhat.com>
9324
9325 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9326 if possible.
9327 * dwarf2read.c (read_func_scope): Remove old FIXME.
9328 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9329 not LOC_COMPUTED.
9330 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9331 Unconditionally call via computed ops, if possible.
9332 * printcmd.c (address_info): Unconditionally call via computed ops,
9333 if possible.
9334 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9335 if possible.
9336 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9337 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9338 if possible.
9339
f1e6e072
TT
93402013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9341 Tom Tromey <tromey@redhat.com>
9342
9343 PR symtab/8421:
9344 * coffread.c (coff_register_index): New global.
9345 (process_coff_symbol, coff_read_enum_type): Set
9346 SYMBOL_ACLASS_INDEX.
9347 (_initialize_coffread): Initialize new global.
9348 * dwarf2loc.c (locexpr_find_frame_base_location)
9349 (dwarf2_block_frame_base_locexpr_funcs)
9350 (loclist_find_frame_base_location)
9351 (dwarf2_block_frame_base_loclist_funcs): New.
9352 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9353 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9354 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9355 (dwarf2_block_frame_base_loclist_funcs): New.
9356 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9357 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9358 globals.
9359 (read_func_scope): Update.
9360 (fixup_go_packaging, mark_common_block_symbol_computed)
9361 (var_decode_location, new_symbol_full, dwarf2_const_value):
9362 Set SYMBOL_ACLASS_INDEX.
9363 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9364 (_initialize_dwarf2_read): Initialize new globals.
9365 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9366 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9367 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9368 globals.
9369 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9370 (_initialize_mdebugread): Initialize new globals.
9371 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9372 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9373 (stab_register_index, stab_regparm_index): New globals.
9374 (define_symbol, read_enum_type, common_block_end): Set
9375 SYMBOL_ACLASS_INDEX.
9376 (_initialize_stabsread): Initialize new globals.
9377 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9378 globals.
9379 (MAX_SYMBOL_IMPLS): New define.
9380 (register_symbol_computed_impl, register_symbol_block_impl)
9381 (register_symbol_register_impl)
9382 (initialize_ordinary_address_classes): New functions.
9383 (_initialize_symtab): Call initialize_ordinary_address_classes.
9384 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9385 (struct symbol_impl): New.
9386 (SYMBOL_ACLASS_BITS): New define.
9387 (struct symbol) <aclass, ops>: Remove fields.
9388 <aclass_index>: New field.
9389 (symbol_impls): Declare.
9390 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9391 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9392 (register_symbol_computed_impl, register_symbol_block_impl)
9393 (register_symbol_register_impl): Declare.
9394 (struct symbol_computed_ops): Add location_has_loclist.
9395 (struct symbol_block_ops): New.
9396 (SYMBOL_BLOCK_OPS): New.
9397 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9398
dbccfd4c
TT
93992013-03-20 Tom Tromey <tromey@redhat.com>
9400
9401 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9402 (print_partial_symbols, recursively_search_psymtabs): Use
9403 PSYMBOL_CLASS.
9404
e3f1ad4f
PM
94052013-03-20 Pierre Muller <muller@sourceware.org>
9406
9407 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9408 addtion, subtraction, multiplication and division binary operator.
9409
460014f5
JK
94102013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9411
9412 Code cleanup.
9413 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9414 * bsd-kvm.c (bsd_kvm_close): Likewise.
9415 * bsd-uthread.c (bsd_uthread_close): Likewise.
9416 * corelow.c (core_close): Likewise.
9417 (core_close_cleanup): Remove parameter quitting from a caller.
9418 * event-top.c (async_disconnect): Likewise.
9419 * exec.c (exec_close_1): Remove parameter quitting.
9420 * go32-nat.c (go32_close): Likewise.
9421 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9422 parameter quitting from a caller.
9423 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9424 variable.
9425 (mips_linux_close): Remove parameter quitting. Remove parameter
9426 quitting from a caller.
9427 * monitor.c (monitor_close): Remove parameter quitting.
9428 * monitor.h (monitor_close): Likewise.
9429 * record-btrace.c (record_btrace_close): Likewise.
9430 * record-full.c (record_full_close): Likewise.
9431 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9432 it also from fprintf_unfiltered.
9433 * remote-mips.c (mips_close): Remove parameter quitting.
9434 (mips_detach): Remove parameter quitting from a caller.
9435 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9436 (gdbsim_close): Remove duplicate function comment. Remove parameter
9437 quitting and remove it also from printf_filtered.
9438 * remote.c (remote_close): Remove parameter quitting.
9439 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9440 * target.c (update_current_target): Remove parameter int from to_close
9441 de_fault.
9442 (push_target, unpush_target, pop_target): Remove parameter quitting from
9443 a caller.
9444 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9445 Remove parameter quitting from a caller.
9446 (target_preopen): Remove parameter quitting from a caller.
9447 (target_close): Remove parameter quitting. Remove parameter quitting
9448 from a caller two times. Remove parameter quitting also from
9449 fprintf_unfiltered.
9450 * target.h (struct target_ops): Remove parameter quitting and as int
9451 from fields to_xclose and to_close.
9452 (extern struct target_ops current_target):
9453 (target_close, pop_all_targets): Remove parameter quitting. Update the
9454 comment.
9455 (pop_all_targets_above): Remove parameter quitting.
9456 * top.c (quit_target): Remove parameter quitting from a caller.
9457 * tracepoint.c (tfile_close): Remove parameter quitting.
9458 * windows-nat.c (windows_close): Remove parameter quitting.
9459
35a7120b
CV
94602013-03-20 Corinna Vinschen <vinschen@redhat.com>
9461
9462 * windows-nat.c (handle_output_debug_string): Replace call
9463 to string_to_core_addr with call to strtoull.
9464
8249a5a9
YQ
94652013-03-20 Yao Qi <yao@codesourcery.com>
9466
9467 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9468 and write it to CTF metadata.
9469
2c15ef43
CV
94702013-03-19 Corinna Vinschen <vinschen@redhat.com>
9471
9472 * windows-nat.c (handle_output_debug_string): Change type of n to
9473 SIZE_T to avoid crash on 64 bit systems.
9474
1cdd3232
EZ
94752013-03-17 Eli Zaretskii <eliz@gnu.org>
9476
9477 * python/python-internal.h (HAVE_SNPRINTF)
9478 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9479 about redefinition of snprintf by pyerrors.h.
9480
3cb2ab1a
SE
94812013-03-15 Steve Ellcey <sellcey@mips.com>
9482
9483 * remote-sim.c (sim_command_completer): Make char arguments const.
9484
9ce98649
TT
94852013-03-15 Tom Tromey <tromey@redhat.com>
9486
9487 PR c++/15116:
9488 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9489
dccee2de
TT
94902013-03-14 Tom Tromey <tromey@redhat.com>
9491
9492 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9493 New fields.
9494 (get_file_crc): Move from symfile.c.
9495 (gdb_bfd_crc): New function.
9496 * gdb_bfd.h (gdb_bfd_crc): Declare.
9497 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9498 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9499 (separate_debug_file_exists): Use gdb_bfd_crc.
9500
cc0ea93c
TT
95012013-03-14 Tom Tromey <tromey@redhat.com>
9502
9503 * symfile.c (get_debug_link_info): Remove.
9504 (find_separate_debug_file_by_debuglink): Use
9505 bfd_get_debug_link_info.
9506
08c23b0d
TT
95072013-03-14 Tom Tromey <tromey@redhat.com>
9508
9509 * symtab.c (error_in_psymtab_expansion): New function.
9510 (lookup_symbol_aux_quick)
9511 (basic_lookup_transparent_type_quick): Remove "last resort"
9512 code. Use error_in_psymtab_expansion.
9513
288e77a7
JK
95142013-03-14 Doug Evans <dje@google.com>
9515 Jan Kratochvil <jan.kratochvil@redhat.com>
9516
9517 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9518 any successful compare_filenames_for_search or FILENAME_CMP.
9519 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9520 * symtab.c (iterate_over_some_symtabs): Likewise.
9521
8f1b8b82
JK
95222013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9523
9524 * source.c (print_source_lines_base): Make a local copy of
9525 symtab_to_fullname.
9526
23eb71e4
JK
95272013-03-14 Hui Zhu <hui_zhu@mentor.com>
9528 Jan Kratochvil <jan.kratochvil@redhat.com>
9529
9530 * source.c (print_source_lines_base): Suppress "file" for TUI.
9531
bb869963
SDJ
95322013-03-14 Keith Seitz <keiths@redhat.com>
9533 Alan Matsuoka <alanm@redhat.com>
9534
9535 PR c++/15203
9536 PR c++/15210
9537 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9538 TYPE_CODE_METHOD.
9539 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9540 symbols.
9541
d6682f9e
YQ
95422013-03-14 Yao Qi <yao@codesourcery.com>
9543
9544 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9545 status to tfile if trace is stopped by command 'tstop'.
9546
a22fa6e4
YQ
95472013-03-14 Yao Qi <yao@codesourcery.com>
9548
9549 * tracepoint.c (tfile_write_status): Write trace notes and user
9550 name into tfile if they are not NULL.
9551
d0353e76
YQ
95522013-03-14 Hui Zhu <hui@codesourcery.com>
9553 Yao Qi <yao@codesourcery.com>
9554
9555 * Makefile.in (REMOTE_OBS): Add ctf.o.
9556 (SFILES): Add ctf.c.
9557 (HFILES_NO_SRCDIR): Add ctf.h.
9558 * ctf.c, ctf.h: New files.
9559 * tracepoint.c: Include 'ctf.h'.
9560 (collect_pseudocommand): Remove static.
9561 (trace_save_command): Parse option "-ctf".
9562 Produce different trace file writers per option.
9563 Adjust output message.
9564 (trace_save_tfile, trace_save_ctf): New.
9565 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9566 * mi/mi-main.c: Include 'ctf.h'.
9567 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9568 trace_save_tfile or trace_save_ctf.
9569 * NEWS: Mention these changes.
9570
3f43bc09
YQ
95712013-03-14 Yao Qi <yao@codesourcery.com>
9572
9573 * tracepoint.c (trace_file_writer_xfree): New.
9574 (struct tfile_writer_data): New.
9575 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9576 (tfile_write_header, tfile_write_regblock_type): New.
9577 (tfile_write_status, tfile_write_uploaded_tsv): New.
9578 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9579 (tfile_write_raw_data, (tfile_end): New.
9580 (tfile_write_ops): New global variable.
9581 (TRACE_WRITE_R_BLOCK): New macro.
9582 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9583 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9584 (TRACE_WRITE_V_BLOCK): New macro.
9585 (trace_save): Add extra one parameter WRITER. Make it static.
9586 Use WRITER to writer trace.
9587 (tfile_trace_file_writer_new): New.
9588 (trace_save_command): Caller update.
9589 (trace_save_tfile): Write trace data in TFILE format.
9590 * tracepoint.h (struct trace_frame_write_ops): New.
9591 (struct trace_file_write_ops): New.
9592 (struct trace_file_writer): New.
9593 (trace_save): Remove its declaration.
9594 (trace_save_tfile): Declare it.
9595 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9596 instead of trace_save.
9597
58665b40
PA
95982013-03-13 Pedro Alves <palves@redhat.com>
9599
9600 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9601
10217050
PA
96022013-03-13 Pedro Alves <palves@redhat.com>
9603
9604 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9605 commented out code.
9606 * demangle.c (current_demangling_style_string): Make it const.
9607 (set_demangling_command): Assert the demangling style is known.
9608 Remove all handling of unknown styles. Set
9609 'current_demangling_style_string' to an element of the
9610 demangling_style_names array.
9611 (set_demangling_style): Delete.
9612 (_initialize_demangler): Set current_demangling_style_string to the
9613 element of the demangling_style_names array that corresponds to
9614 the default demangling style. Remove FIXME note. Don't call
9615 set_demangling_style.
9616 * gdb-demangle.h (set_demangling_style): Remove declaration.
9617
6f937416
PA
96182013-03-13 Pedro Alves <palves@redhat.com>
9619
9620 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9621 fields const.
9622 (ada_make_symbol_completion_list): Make "text0" parameter const.
9623 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9624 * breakpoint.c (condition_completer): Make "text" and "word"
9625 parameters const. Adjust.
9626 (check_tracepoint_command): Adjust to validate_actionline
9627 prototype change.
9628 (catch_syscall_completer): Make "text" and "word" parameters
9629 const.
9630 * cli/cli-cmds.c (show_user): Make "comname" local const.
9631 (valid_command_p): Make "command" parameter const.
9632 (alias_command): Make "alias_prefix" and "command_prefix" locals
9633 const.
9634 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9635 (add_alias_cmd): Make "name" and "oldname" parameters const.
9636 Adjust. No longer make copy of OLDNAME.
9637 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9638 (add_setshow_cmd_full, add_setshow_enum_cmd)
9639 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9640 (add_setshow_filename_cmd, add_setshow_string_cmd)
9641 (add_setshow_string_noescape_cmd)
9642 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9643 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9644 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9645 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9646 Make "name" parameter const.
9647 (help_cmd): Rename "command" parameter to "arg". New const local
9648 "command".
9649 (find_cmd): Make "command" parameter const.
9650 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9651 deprecated_cmd_warning prototype change.
9652 (undef_cmd_error): Make "cmdtype" parameter const.
9653 (lookup_cmd): Make "line" parameter const.
9654 (deprecated_cmd_warning): Change type of "text" parameter to
9655 pointer to const char, from pointer to pointer to char. Adjust.
9656 (lookup_cmd_composition): Make "text" parameter const.
9657 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9658 parameters const.
9659 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9660 const.
9661 * cli/cli-script.c (validate_comname): Make "tem" local const.
9662 (define_command): New const local "tem_c". Use it in calls to
9663 lookup_cmd.
9664 (document_command): Make "tem" and "comfull" locals const.
9665 (show_user_1): Make "prefix" and "name" parameters const.
9666 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9667 const.
9668 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9669 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9670 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9671 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9672 (complete_on_enum, add_setshow_enum_cmd)
9673 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9674 (add_setshow_filename_cmd, add_setshow_string_cmd)
9675 (add_setshow_string_noescape_cmd)
9676 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9677 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9678 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9679 Change prototypes, constifying strings.
9680 * completer.c (noop_completer, filename_completer): Make "text"
9681 and "prefix" parameters const.
9682 (location_completer, expression_completer)
9683 (complete_line_internal): Make "text" and "prefix" parameters
9684 const and adjust.
9685 (command_completer, signal_completer): Make "text" and "prefix"
9686 parameters const.
9687 * completer.h (noop_completer, filename_completer)
9688 (expression_completer, location_completer, command_completer)
9689 (signal_completer): Change prototypes.
9690 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9691 parameters const.
9692 * cp-abi.c (cp_abi_completer): Likewise.
9693 * expression.h (parse_expression_for_completion): Change
9694 prototype.
9695 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9696 parameters const.
9697 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9698 * infrun.c (handle_completer): Make "text" and "word" parameters
9699 const.
9700 * interps.c (interpreter_completer): Make "text" and "word"
9701 parameters const.
9702 * language.h (struct language_defn)
9703 <la_make_symbol_completion_list>: Make "text" and "word"
9704 parameters const.
9705 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9706 (parse_exp_in_context): Rename to ...
9707 (parse_exp_in_context_1): ... this.
9708 (parse_exp_in_context): Reimplement, with const hack from
9709 parse_exp_1.
9710 (parse_expression_for_completion): Make "string" parameter const.
9711 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9712 to pointer to const char. Adjust.
9713 (print_command_1): Make "exp" parameter const.
9714 (output_command): Rename to ...
9715 (output_command_const): ... this. Make "exp" parameter const.
9716 (output_command): Reimplement.
9717 (x_command): Adjust.
9718 (display_command): Rename "exp" parameter to "arg". New "exp"
9719 local, const version of "arg".
9720 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9721 "cmd_name" local const.
9722 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9723 call.
9724 (cmdpy_completer): Make "text" and "word" parameters const.
9725 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9726 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9727 const.
9728 * remote.c (_initialize_remote): Make "cmd_name" local const.
9729 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9730 parameters const. Adjust.
9731 (completion_list_add_fields): Make "sym_text", "text" and "word"
9732 parameters const.
9733 (struct add_name_data) <sym_text, text, word>: Make fields const.
9734 (default_make_symbol_completion_list_break_on): Make "text" and
9735 "word" parameters const. Adjust locals.
9736 (default_make_symbol_completion_list)
9737 (make_symbol_completion_list, make_symbol_completion_type)
9738 (make_symbol_completion_list_fn): Make "text" and "word"
9739 parameters const.
9740 (make_file_symbol_completion_list): Make "text", "word" and
9741 "srcfile" parameters const. Adjust locals.
9742 (add_filename_to_list): Make "text" and "word" parameters const.
9743 (struct add_partial_filename_data) <text, word>: Make fields
9744 const.
9745 (make_source_files_completion_list): Make "text" and "word"
9746 parameters const.
9747 * symtab.h (default_make_symbol_completion_list_break_on)
9748 (default_make_symbol_completion_list, make_symbol_completion_list)
9749 (make_symbol_completion_type enum type_code)
9750 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9751 (make_source_files_completion_list): Change prototype.
9752 * top.c (execute_command): Adjust to pass pointer to pointer to
9753 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9754 change.
9755 (set_verbose): Make "cmdname" local const.
9756 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9757 and adjust.
9758 (validate_actionline): Make "line" parameter a pointer to const
9759 char, and adjust.
9760 (encode_actions_1): Make "action_exp" local const, and adjust.
9761 (encode_actions): Adjust.
9762 (replace_comma): Delete.
9763 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9764 const, and adjust. Don't frob the action string while splitting
9765 it at commas. Instead, make a copy of each split substring in
9766 turn.
9767 (trace_dump_command): Adjust to validate_actionline prototype
9768 change.
9769 * tracepoint.h (decode_agent_options, decode_agent_options)
9770 (encode_actions, validate_actionline): Change prototypes.
9771 * valprint.h (output_command): Delete declaration.
9772 (output_command_const): Declare.
9773 * value.c (function_destroyer): Cast const away in xfree call.
9774
a0bcdaa7
PA
97752013-03-13 Pedro Alves <palves@redhat.com>
9776
9777 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9778 rather than casting 'const char * const *' to 'const char **'.
9779 * ada-lex.l (processInt): Make "trailer" local const. Remove
9780 'const char **' cast.
9781 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9782 locals, and use those as strtol output pointer, instead than doing
9783 invalid casts to from 'const char **' to 'char **'.
9784 (_initialize_demangle): Remove cast.
9785 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9786 locals, and use those as strtol output pointer, instead than doing
9787 invalid casts to from 'const char **' to 'char **'.
9788 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9789 casts.
9790 * stap-probe.c (stap_parse_register_operand)
9791 (stap_parse_single_operand): Likewise.
9792
8ddb1965
YQ
97932013-03-13 Yao Qi <yao@codesourcery.com>
9794
9795 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9796 the last matched 'V' blcok in trace frame.
9797
2d450646
JB
97982013-03-12 Joel Brobecker <brobecker@adacore.com>
9799
9800 * NEWS: Create a new section for the next release branch.
9801 Rename the section of the current branch, now that it has
9802 been cut.
9803
b4b79973 98042013-03-12 Joel Brobecker <brobecker@adacore.com>
9805
9806 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9807 * version.in: Bump version to 7.6.50.20130312-cvs.
9808
ee047554
KS
98092013-03-12 Keith Seitz <keiths@redhat.com>
9810
9811 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9812 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9813 Remove temporary copy of input string.
9814 (mi_execute_command_wrapper): Make "cmd" const.
9815 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9816 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9817 Use const strings.
9818 (mi_parse): Make "cmd" const.
9819 Use const strings.
9820 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9821
bbc13ae3
KS
98222013-03-12 Keith Seitz <keiths@redhat.com>
9823
9824 * ada-lang.c (ada_read_renaming_var_value): Pass const
9825 pointer to expression string to parse_exp_1.
9826 (create_excep_cond_exprs): Likewise.
9827 * ax-gdb.c (agent_eval_command_one): Likewise.
9828 (maint_agent_printf_command): Likewise.
9829 Constify much of the string handling/parsing.
9830 * breakpoint.c (set_breakpoint_condition): Pass const
9831 pointer to expression string to parse_exp_1.
9832 (update_watchpoint): Likewise.
9833 (parse_cmd_to_aexpr): Constify string handling.
9834 Pass const pointer to parse_exp_1.
9835 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9836 (find_condition_and_thread): Likewise.
9837 Make TOK const.
9838 (watch_command_1): Make "arg" const.
9839 Constify string handling.
9840 Copy the expression string instead of changing the input
9841 string.
9842 (update_breakpoint_location): Pass const pointer to
9843 parse_exp_1.
9844 * eval.c (parse_and_eval_address): Make "exp" const.
9845 (parse_to_comma_and_eval): Make "expp" const.
9846 (parse_and_eval): Make "exp" const.
9847 * expression.h (parse_expression): Make argument const.
9848 (parse_exp_1): Make first argument const.
9849 * findcmd.c (parse_find_args): Treat "args" as const.
9850 * linespec.c (parse_linespec): Pass const pointer to
9851 linespec_expression_to_pc.
9852 (linespec_expression_to_pc): Make "exp_ptr" const.
9853 * parse.c (parse_exp_1): Make "stringptr" const.
9854 Make a copy of the expression to pass to parse_exp_in_context until
9855 this whole interface can be constified.
9856 (parse_expression): Make "string" const.
9857 * printcmd.c (ui_printf): Treat "arg" as const.
9858 Handle const strings.
9859 * tracepoint.c (validate_actionline): Pass const pointer to
9860 all calls to parse_exp_1.
9861 (encode_actions_1): Likewise.
9862 * value.h (parse_to_comma_and_eval): Make argument const.
9863 (parse_and_eval_address): Likewise.
9864 (parse_and_eval): Likewise.
9865 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9866 (varobj_set_value): Likewise.
9867 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9868 constify string handling.
9869 Pass const pointers to parse_and_eval_address and
9870 parse_to_comman_and_eval.
9871 * cli/cli-utils.c (skip_to_space): Rename to ...
9872 (skip_to_space_const): ... this. Handle const strings.
9873 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9874 skip_to_space_const.
9875 (skip_to_space_const): Declare.
9876 * common/format.c (parse_format_string): Make "arg" const.
9877 Handle const strings.
9878 * common/format.h (parse_format_string): Make "arg" const.
9879 * gdbserver/ax.c (ax_printf): Make "format" const.
9880 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9881 of the expression string.
9882
f3cec7e6
HZ
98832013-03-12 Hui Zhu <hui@codesourcery.com>
9884
9885 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9886
9df7235c
HZ
98872013-03-12 Yao Qi <yao@codesourcery.com>
9888 Hui Zhu <hui@codesourcery.com>
9889
9890 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9891 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9892 DW_OP_deref_size.
9893
82d049ab
PH
98942013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9895
5f8e0b8f
MF
9896 * ada-lex.l (rules): Only recognize 'thread' as a
9897 delimiter when followed by numerals, as for c-exp.y.
9898 Use new rewind_to_char function to rewind the input for
9899 expression-delimiting tokens.
9900 (rewind_to_char): New function.
82d049ab 9901
8c1fb155
JK
99022013-03-11 Pedro Alves <palves@redhat.com>
9903 Jan Kratochvil <jan.kratochvil@redhat.com>
9904
9905 * configure: Regenerate.
9906 * configure.ac (check dynamic export flag): Link python test with
9907 $PYTHON_LIBS.
9908
cc81e1c6
DE
99092013-03-11 Doug Evans <dje@google.com>
9910 Keith Seitz <keiths@redhat.com>
9911
9912 * linespec.c (find_linespec_symbols): Call find_function_symbols
9913 first, and then call lookup_prefix_sym/find_method.
9914
39086a0e
PA
99152013-03-11 Pedro Alves <palves@redhat.com>
9916
9917 * charset.c (convert_between_encodings): Don't cast between
9918 different pointer to pointer types. Instead, make the 'inp' local
9919 be of the type iconv expects.
9920 (wchar_iterate): Don't cast between different pointer to pointer
9921 types. Instead, use new pointer local of the type iconv expects.
9922 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9923 Add new local of type char pointer, and use it to get a
9924 char/string view of the byte buffer, instead of casting between
9925 pointer to pointer types.
9926
90585175
HAQ
99272013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9928
9929 * remote.c (remote_set_trace_buffer_size): Move != operator
9930 to the start of next line to fix an ARI warning.
9931
59ea5688
MM
99322013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9933
9934 * NEWS: Add record changes.
9935
946287b7
MM
99362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9937
9938 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9939 the instruction history disassembly.
9940 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9941 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9942
afedecd3
MM
99432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9944
9945 * Makefile.in (SFILES): Add record-btrace.c
9946 (COMMON_OBS): Add record-btrace.o
9947 * record-btrace.c: New.
9948 * objfiles.c: Include btrace.h.
9949 (free_objfile): call btrace_free_objfile.
9950
15984c13
MM
99512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9952
9953 * target.c (target_call_history, target_call_history_from,
9954 target_call_history_range): New.
9955 * target.h (target_ops) <to_call_history, to_call_history_from,
9956 to_call_history_range>: New fields.
9957 (target_call_history, target_call_history_from,
9958 target_call_history_range): New declaration.
9959 * record.c (get_call_history_modifiers, cmd_record_call_history,
9960 record_call_history_size): New.
9961 (_initialize_record): Add the "record function-call-history" command.
9962 Add "set/show record function-call-history-size" commands.
9963 * record.h (record_print_flag): New.
9964
67c86d06
MM
99652013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9966
9967 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9968 to_insn_history_range>: New fields.
9969 (target_insn_history): New.
9970 (target_insn_history_from): New.
9971 (target_insn_history_range): New.
9972 * target.c (target_insn_history): New.
9973 (target_insn_history_from): New.
9974 (target_insn_history_range): New.
9975 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9976 (record_insn_history_size): New.
9977 (get_insn_number): New.
9978 (get_context_size): New.
9979 (no_chunk): New.
9980 (get_insn_history_modifiers): New.
9981 (cmd_record_insn_history): New.
9982 (_initialize_record): Add "set/show record instruction-history-size"
9983 command. Add "record instruction-history" command.
9984
7c1687a9
MM
99852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9986
9987 * record.h (record_disconnect): New.
9988 (record_detach): New.
9989 (record_mourn_inferior): New.
9990 (record_kill): New.
9991 * record-full.c (record_disconnect, record_detach,
9992 record_mourn_inferior, record_kill): Move to...
9993 * record.c: ...here.
9994 (DEBUG): New.
9995 (record_stop): New.
9996 (record_unpush): New.
9997 (cmd_record_stop): Call record_stop. Replace unpush_target
9998 call with record_unpush call.
9999 (record_disconnect, record_detach): Assert that the target
10000 is of record stratum. Call record_unpush, record_stop, and
10001 DEBUG.
10002 (record_mourn_inferior, record_kill): Assert that the target
10003 is of record stratum. Call record_unpush and DEBUG.
10004
25ea693b
MM
100052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10006
10007 * record-full.h, record-full.c (record_memory_query): Rename
10008 to ...
10009 (record_full_memory_query): ...this. Update all users.
10010 (record_arch_list_add_reg): Rename to ...
10011 (record_full_arch_list_add_reg): ...this. Update all users.
10012 (record_arch_list_add_mem): Rename to ...
10013 (record_full_arch_list_add_mem): ...this. Update all users.
10014 (record_arch_list_add_end): Rename to ...
10015 (record_full_arch_list_add_end): ...this. Update all users.
10016 (record_gdb_operation_disable_set): Rename to ...
10017 (record_full_gdb_operation_disable_set): ...this.
10018 Update all users.
10019
88d1aa9d
MM
100202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10021
10022 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10023 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10024 (RECORD_IS_REPLAY): Renamed to ...
10025 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10026 (RECORD_FILE_MAGIC): Renamed to ...
10027 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10028 (record_mem_entry): Renamed to ...
10029 (record_full_mem_entry): ... this. Updated all users.
10030 (record_reg_entry): Renamed to ...
10031 (record_full_reg_entry): ... this. Updated all users.
10032 (record_end_entry): Renamed to ...
10033 (record_full_end_entry): ... this. Updated all users.
10034 (record_type) <record_end, record_reg, record_mem>: Renamed
10035 to ...
10036 (record_full_type) <record_full_end, record_full_reg,
10037 record_full_mem>: ... this. Updated all users.
10038 (record_entry): Renamed to ...
10039 (record_full_entry): ... this. Updated all users.
10040 (record_core_buf_entry): Renamed to ...
10041 (record_full_core_buf_entry): ... this. Updated all users.
10042 (record_core_regbuf): Renamed to ...
10043 (record_full_core_regbuf): ... this. Updated all users.
10044 (record_core_start): Renamed to ...
10045 (record_full_core_start): ... this. Updated all users.
10046 (record_core_end): Renamed to ...
10047 (record_full_core_end): ... this. Updated all users.
10048 (record_core_buf_list): Renamed to ...
10049 (record_full_core_buf_list): ... this. Updated all users.
10050 (record_first): Renamed to ...
10051 (record_full_first): ... this. Updated all users.
10052 (record_list): Renamed to ...
10053 (record_full_list): ... this. Updated all users.
10054 (record_arch_list_head): Renamed to ...
10055 (record_full_arch_list_head): ... this. Updated all users.
10056 (record_arch_list_tail): Renamed to ...
10057 (record_full_arch_list_tail): ... this. Updated all users.
10058 (record_stop_at_limit): Renamed to ...
10059 (record_full_stop_at_limit): ... this. Updated all users.
10060 (record_insn_max_num): Renamed to ...
10061 (record_full_insn_max_num): ... this. Updated all users.
10062 (record_insn_num): Renamed to ...
10063 (record_full_insn_num): ... this. Updated all users.
10064 (record_insn_count): Renamed to ...
10065 (record_full_insn_count): ... this. Updated all users.
10066 (record_ops): Renamed to ...
10067 (record_full_ops): ... this. Updated all users.
10068 (record_core_ops): Renamed to ...
10069 (record_full_core_ops): ... this. Updated all users.
10070 (set_record_cmdlist): Renamed to ...
10071 (set_record_full_cmdlist): ... this. Updated all users.
10072 (show_record_cmdlist): Renamed to ...
10073 (show_record_full_cmdlist): ... this. Updated all users.
10074 (record_cmdlist): Renamed to ...
10075 (record_full_cmdlist): ... this. Updated all users.
10076 (record_beneath_to_resume_ops): Renamed to ...
10077 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10078 (record_beneath_to_resume): Renamed to ...
10079 (record_full_beneath_to_resume): ... this. Updated all users.
10080 (record_beneath_to_wait_ops): Renamed to ...
10081 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10082 (record_beneath_to_wait): Renamed to ...
10083 (record_full_beneath_to_wait): ... this. Updated all users.
10084 (record_beneath_to_store_registers_ops): Renamed to ...
10085 (record_full_beneath_to_store_registers_ops): ... this.
10086 Updated all users.
10087 (record_beneath_to_store_registers): Renamed to ...
10088 (record_full_beneath_to_store_registers): ... this.
10089 Updated all users.
10090 (record_beneath_to_xfer_partial_ops): Renamed to ...
10091 (record_full_beneath_to_xfer_partial_ops): ... this.
10092 Updated all users.
10093 (record_beneath_to_xfer_partial): Renamed to ...
10094 (record_full_beneath_to_xfer_partial): ... this.
10095 Updated all users.
10096 (record_beneath_to_insert_breakpoint): Renamed to ...
10097 (record_full_beneath_to_insert_breakpoint): ... this.
10098 Updated all users.
10099 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10100 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10101 Updated all users.
10102 (record_beneath_to_stopped_data_address): Renamed to ...
10103 (record_full_beneath_to_stopped_data_address): ... this.
10104 Updated all users.
10105 (record_beneath_to_async): Renamed to ...
10106 (record_full_beneath_to_async): ... this. Updated all users.
10107 (record_goto_insn): Renamed to ...
10108 (record_full_goto_insn): ... this. Updated all users.
10109 (record_save): Renamed to ...
10110 (record_full_save): ... this. Updated all users.
10111 (record_reg_alloc): Renamed to ...
10112 (record_full_reg_alloc): ... this. Updated all users.
10113 (record_reg_release): Renamed to ...
10114 (record_full_reg_release): ... this. Updated all users.
10115 (record_mem_alloc): Renamed to ...
10116 (record_full_mem_alloc): ... this. Updated all users.
10117 (record_mem_release): Renamed to ...
10118 (record_full_mem_release): ... this. Updated all users.
10119 (record_end_alloc): Renamed to ...
10120 (record_full_end_alloc): ... this. Updated all users.
10121 (record_end_release): Renamed to ...
10122 (record_full_end_release): ... this. Updated all users.
10123 (record_entry_release): Renamed to ...
10124 (record_full_entry_release): ... this. Updated all users.
10125 (record_list_release): Renamed to ...
10126 (record_full_list_release): ... this. Updated all users.
10127 (record_list_release_following): Renamed to ...
10128 (record_full_list_release_following): ... this.
10129 Updated all users.
10130 (record_list_release_first): Renamed to ...
10131 (record_full_list_release_first): ... this. Updated all users.
10132 (record_arch_list_add): Renamed to ...
10133 (record_full_arch_list_add): ... this. Updated all users.
10134 (record_get_loc): Renamed to ...
10135 (record_full_get_loc): ... this. Updated all users.
10136 (record_check_insn_num): Renamed to ...
10137 (record_full_check_insn_num): ... this. Updated all users.
10138 (record_arch_list_cleanups): Renamed to ...
10139 (record_full_arch_list_cleanups): ... this. Updated all users.
10140 (record_message): Renamed to ...
10141 (record_full_message): ... this. Updated all users.
10142 (record_message_wrapper): Renamed to ...
10143 (record_full_message_wrapper): ... this. Updated all users.
10144 (record_message_wrapper_safe): Renamed to ...
10145 (record_full_message_wrapper_safe): ... this. Updated all users.
10146 (record_gdb_operation_disable): Renamed to ...
10147 (record_full_gdb_operation_disable): ... this. Updated all users.
10148 (record_hw_watchpoint): Renamed to ...
10149 (record_full_hw_watchpoint): ... this. Updated all users.
10150 (record_exec_insn): Renamed to ...
10151 (record_full_exec_insn): ... this. Updated all users.
10152 (record_restore): Renamed to ...
10153 (record_full_restore): ... this. Updated all users.
10154 (record_async_inferior_event_token): Renamed to ...
10155 (record_full_async_inferior_event_token): ... this.
10156 Updated all users.
10157 (record_async_inferior_event_handler): Renamed to ...
10158 (record_full_async_inferior_event_handler): ... this.
10159 Updated all users.
10160 (record_core_open_1): Renamed to ...
10161 (record_full_core_open_1): ... this. Updated all users.
10162 (record_open_1): Renamed to ...
10163 (record_full_open_1): ... this. Updated all users.
10164 (record_open): Renamed to ...
10165 (record_full_open): ... this. Updated all users.
10166 (record_close): Renamed to ...
10167 (record_full_close): ... this. Updated all users.
10168 (record_resume_step): Renamed to ...
10169 (record_full_resume_step): ... this. Updated all users.
10170 (record_resumed): Renamed to ...
10171 (record_full_resumed): ... this. Updated all users.
10172 (record_execution_dir): Renamed to ...
10173 (record_full_execution_dir): ... this. Updated all users.
10174 (record_resume): Renamed to ...
10175 (record_full_resume): ... this. Updated all users.
10176 (record_get_sig): Renamed to ...
10177 (record_full_get_sig): ... this. Updated all users.
10178 (record_sig_handler): Renamed to ...
10179 (record_full_sig_handler): ... this. Updated all users.
10180 (record_wait_cleanups): Renamed to ...
10181 (record_full_wait_cleanups): ... this. Updated all users.
10182 (record_wait_1): Renamed to ...
10183 (record_full_wait_1): ... this. Updated all users.
10184 (record_wait): Renamed to ...
10185 (record_full_wait): ... this. Updated all users.
10186 (record_stopped_by_watchpoint): Renamed to ...
10187 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10188 (record_disconnect): Renamed to ...
10189 (record_full_disconnect): ... this. Updated all users.
10190 (record_detach): Renamed to ...
10191 (record_full_detach): ... this. Updated all users.
10192 (record_mourn_inferior): Renamed to ...
10193 (record_full_mourn_inferior): ... this. Updated all users.
10194 (record_kill): Renamed to ...
10195 (record_full_kill): ... this. Updated all users.
10196 (record_stopped_data_address): Renamed to ...
10197 (record_full_stopped_data_address): ... this. Updated all users.
10198 (record_registers_change): Renamed to ...
10199 (record_full_registers_change): ... this. Updated all users.
10200 (record_store_registers): Renamed to ...
10201 (record_full_store_registers): ... this. Updated all users.
10202 (record_xfer_partial): Renamed to ...
10203 (record_full_xfer_partial): ... this. Updated all users.
10204 (record_breakpoint): Renamed to ...
10205 (record_full_breakpoint): ... this. Updated all users.
10206 (record_breakpoint_p): Renamed to ...
10207 (record_full_breakpoint_p): ... this. Updated all users.
10208 (record_breakpoints): Renamed to ...
10209 (record_full_breakpoints): ... this. Updated all users.
10210 (record_sync_record_breakpoints): Renamed to ...
10211 (record_full_sync_record_breakpoints): ... this.
10212 Updated all users.
10213 (record_init_record_breakpoints): Renamed to ...
10214 (record_full_init_record_breakpoints): ... this.
10215 Updated all users.
10216 (record_insert_breakpoint): Renamed to ...
10217 (record_full_insert_breakpoint): ... this. Updated all users.
10218 (record_remove_breakpoint): Renamed to ...
10219 (record_full_remove_breakpoint): ... this. Updated all users.
10220 (record_can_execute_reverse): Renamed to ...
10221 (record_full_can_execute_reverse): ... this. Updated all users.
10222 (record_get_bookmark): Renamed to ...
10223 (record_full_get_bookmark): ... this. Updated all users.
10224 (record_goto_bookmark): Renamed to ...
10225 (record_full_goto_bookmark): ... this. Updated all users.
10226 (record_async): Renamed to ...
10227 (record_full_async): ... this. Updated all users.
10228 (record_can_async_p): Renamed to ...
10229 (record_full_can_async_p): ... this. Updated all users.
10230 (record_is_async_p): Renamed to ...
10231 (record_full_is_async_p): ... this. Updated all users.
10232 (record_execution_direction): Renamed to ...
10233 (record_full_execution_direction): ... this. Updated all users.
10234 (record_info): Renamed to ...
10235 (record_full_info): ... this. Updated all users.
10236 (record_delete): Renamed to ...
10237 (record_full_delete): ... this. Updated all users.
10238 (record_is_replaying): Renamed to ...
10239 (record_full_is_replaying): ... this. Updated all users.
10240 (record_goto_entry): Renamed to ...
10241 (record_full_goto_entry): ... this. Updated all users.
10242 (record_goto_begin): Renamed to ...
10243 (record_full_goto_begin): ... this. Updated all users.
10244 (record_goto_end): Renamed to ...
10245 (record_full_goto_end): ... this. Updated all users.
10246 (record_goto): Renamed to ...
10247 (record_full_goto): ... this. Updated all users.
10248 (init_record_ops): Renamed to ...
10249 (init_record_full_ops): ... this. Updated all users.
10250 (record_core_resume): Renamed to ...
10251 (record_full_core_resume): ... this. Updated all users.
10252 (record_core_kill): Renamed to ...
10253 (record_full_core_kill): ... this. Updated all users.
10254 (record_core_fetch_registers): Renamed to ...
10255 (record_full_core_fetch_registers): ... this. Updated all users.
10256 (record_core_prepare_to_store): Renamed to ...
10257 (record_full_core_prepare_to_store): ... this. Updated all users.
10258 (record_core_store_registers): Renamed to ...
10259 (record_full_core_store_registers): ... this. Updated all users.
10260 (record_core_xfer_partial): Renamed to ...
10261 (record_full_core_xfer_partial): ... this. Updated all users.
10262 (record_core_insert_breakpoint): Renamed to ...
10263 (record_full_core_insert_breakpoint): ... this. Updated all users.
10264 (record_core_remove_breakpoint): Renamed to ...
10265 (record_full_core_remove_breakpoint): ... this. Updated all users.
10266 (record_core_has_execution): Renamed to ...
10267 (record_full_core_has_execution): ... this. Updated all users.
10268 (init_record_core_ops): Renamed to ...
10269 (init_record_full_core_ops): ... this. Updated all users.
10270 (cmd_record_restore): Renamed to ...
10271 (cmd_record_full_restore): ... this. Updated all users.
10272 (record_save_cleanups): Renamed to ...
10273 (record_full_save_cleanups): ... this. Updated all users.
10274 (cmd_record_start): Renamed to ...
10275 (cmd_record_full_start): ... this. Updated all users.
10276 (set_record_insn_max_num): Renamed to ...
10277 (set_record_full_insn_max_num): ... this. Updated all users.
10278 (set_record_command): Renamed to ...
10279 (set_record_full_command): ... this. Updated all users.
10280 (show_record_command): Renamed to ...
10281 (show_record_full_command): ... this. Updated all users.
10282 (_initialize_record): Renamed to ...
10283 (_initialize_record_full): ... this. Updated all users.
10284
d02ed0bb
MM
102852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10286
10287 * record.h: Split into this and ...
10288 * record-full.h: ... this.
10289 * record.c: Split into this and ...
10290 * record-full.c: ... this.
10291 * target.h (target_ops): Add new fields to_info_record,
10292 to_save_record, to_delete_record, to_record_is_replaying,
10293 to_goto_record_begin, to_goto_record_end, to_goto_record.
10294 (target_info_record): New.
10295 (target_save_record): New.
10296 (target_supports_delete_record): New.
10297 (target_delete_record): New.
10298 (target_record_is_replaying): New.
10299 (target_goto_record_begin): New.
10300 (target_goto_record_end): New.
10301 (target_goto_record): New.
10302 * target.c (target_info_record): New.
10303 (target_save_record): New.
10304 (target_supports_delete_record): New.
10305 (target_delete_record): New.
10306 (target_record_is_replaying): New.
10307 (target_goto_record_begin): New.
10308 (target_goto_record_end): New.
10309 (target_goto_record): New.
10310 * record.h: Declare struct cmd_list_element.
10311 (record_cmdlist): New declaration.
10312 (set_record_cmdlist): New declaration.
10313 (show_record_cmdlist): New declaration.
10314 (info_record_cmdlist): New declaration.
10315 (cmd_record_goto): New declaration.
10316 * record.c: Remove unnecessary includes.
10317 Include inferior.h.
10318 (cmd_record_goto): Remove declaration.
10319 (record_cmdlist): Now extern. Initialize.
10320 (set_record_cmdlist): Now extern. Initialize.
10321 (show_record_cmdlist): Now extern. Initialize.
10322 (info_record_cmdlist): Now extern. Initialize.
10323 (find_record_target): New.
10324 (require_record_target): New.
10325 (cmd_record_start): Update.
10326 (cmd_record_delete): Remove target-specific code.
10327 Call target_delete_record.
10328 (cmd_record_stop): Unpush any record target.
10329 (set_record_insn_max_num): Move to record-full.c
10330 (set_record_command): Add comment.
10331 (show_record_command): Add comment.
10332 (info_record_command): Update comment.
10333 Remove target-specific code.
10334 Call the record target's to_info_record.
10335 (cmd_record_start): New.
10336 (cmd_record_goto): Now extern.
10337 Remove target-specific code.
10338 Call target_goto_begin, target_goto_end, or target_goto.
10339 (_initialize_record): Move record target ops initialization to
10340 record-full.c.
10341 Change "record" command help text.
10342 Move "record restore", "record set", and "record show" commands to
10343 record-full.c.
10344 * Makefile.in (SFILES): Add record-full.c.
10345 (HFILES_NO_SRCDIR): Add record-full.h.
10346 (COMMON_OBS): Add record-full.o.
10347 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10348 * arm-tdep.c: Include record-full.h.
10349 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10350 * i386-tdep.c: Include record-full.h.
10351 * infrun.c: Include record-full.h.
10352 * linux-record.c: Include record-full.h.
10353 * moxie-tdep.c: Include record-full.h.
10354 * record-full.c: Include record-full.h.
10355 Change module comment.
10356 (set_record_full_cmdlist): New.
10357 (show_record_full_cmdlist): New.
10358 (record_full_cmdlist): New.
10359 (record_goto_insn): New declaration.
10360 (record_save): New declaration.
10361 (record_check_insn_num): Change query string.
10362 (record_info): New.
10363 (record_delete): New.
10364 (record_is_replaying): New.
10365 (record_goto_entry): New.
10366 (record_goto_begin): New.
10367 (record_goto_end): New.
10368 (record_goto): New.
10369 (init_record_ops): Update.
10370 (init_record_core_ops): Update.
10371 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10372 (cmd_record_start): New.
10373 (set_record_insn_max_num): Moved from record.c
10374 (set_record_full_command): New.
10375 (show_record_full_command): New.
10376 (_initialize_record_full): New.
10377
b48d48eb
MM
103782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10379
10380 * target.h (add_deprecated_target_alias): New.
10381 * target.c (add_deprecated_target_alias): New.
10382
a950d57c
MM
103832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10384
10385 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10386 and signal.h.
10387 (linux_supports_btrace): Add kernel and
10388 cpuid check.
10389 (kernel_supports_btrace): New function.
10390 (cpu_supports_btrace): New function.
10391 (intel_supports_btrace): New function.
10392
9accd112
MM
103932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10394
10395 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10396 * remote.c: Include btrace.h.
10397 (struct btrace_target_info): New struct.
10398 (remote_supports_btrace): New function.
10399 (send_Qbtrace): New function.
10400 (remote_enable_btrace): New function.
10401 (remote_disable_btrace): New function.
10402 (remote_teardown_btrace): New function.
10403 (remote_read_btrace): New function.
10404 (init_remote_ops): Add btrace ops.
10405 (enum <unnamed>): Add btrace packets.
10406 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10407 (_initialize_remote): Add packet configuration for branch tracing.
10408
c12a2917
MM
104092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10410
10411 * features/btrace.dtd: New file.
10412 * Makefile.in (XMLFILES): Add btrace.dtd.
10413 * btrace.h (parse_xml_btrace): New declaration.
10414 * btrace.c: Include xml-support.h.
10415 (parse_xml_btrace): New function.
10416 (parse_xml_btrace_block): New function.
10417 (block_attributes): New struct.
10418 (btrace_attributes): New struct.
10419 (btrace_children): New struct.
10420 (btrace_elements): New struct.
10421
3e3aea48
MM
104222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10423
10424 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10425 (amd64_linux_enable_btrace): New.
10426 (amd64_linux_disable_btrace): New.
10427 (amd64_linux_teardown_btrace): New.
10428 (_initialize_amd64_linux_nat): Initialize btrace ops.
10429 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10430 (i386_linux_enable_btrace): New.
10431 (i386_linux_disable_btrace): New.
10432 (i386_linux_teardown_btrace): New.
10433 (_initialize_i386_linux_nat): Initialize btrace ops.
10434 * config/i386/linux.mh: Add linux-btrace.o.
10435 * config/i386/linux64.mh: Add linux-btrace.o.
10436
7c97f91e
MM
104372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10438
10439 * common/linux_btrace.h: New file.
10440 * common/linux_btrace.c: New file.
10441 * Makefile.in (SFILES): Add btrace.c.
10442 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10443 (COMMON_OBS): Add btrace.o.
10444 (linux-btrace.o): New rule.
10445
1999790b 104462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10447
10448 * target.h: Include btrace.h.
10449 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10450 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10451 * target.c (target_supports_btrace): New function.
10452 (target_enable_btrace): New function.
10453 (target_disable_btrace): New function.
10454 (target_teardown_btrace): New function.
10455 (target_read_btrace): New function.
10456 * btrace.h: New file.
10457 * btrace.c: New file.
10458 * Makefile.in: Add btrace.c.
10459 * gdbthread.h: Include btrace.h.
10460 (struct thread_info): Add btrace field.
10461 * thread.c: Include btrace.h.
10462 (clear_thread_inferior_resources): Call target_teardown_btrace.
10463 * common/btrace-common.h: New file.
10464
61a31a67
JK
104652013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10468 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10469 kill_status to outer block.
10470
05c56a9d
JK
104712013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10472
10473 Fix entry-values if the callee called a noreturn function.
10474 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10475 get_frame_address_in_block. Add new comment.
10476
9112db09
JK
104772013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10478
10479 Fix entry-values in C++ across CUs.
10480 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10481 lookup_minimal_symbol. Add a comment.
10482 * dwarf2read.c
10483 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10484 DW_AT_linkage_name.
10485
9b67fcec
YQ
104862013-03-08 Yao Qi <yao@codesourcery.com>
10487
10488 * tracepoint.c (_initialize_tracepoint): Indent the code.
10489
6221be90
PA
104902013-03-08 Pedro Alves <palves@redhat.com>
10491
10492 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10493 (parse_find_args, find_command): Change type of pattern buffer
10494 locals to 'gdb_byte *'.
10495
be9a119c 104962013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10497 Hafiz Abid Qadeer <abidh@codesourcery.com>
10498
10499 * NEWS: Mention set and show trace-buffer-size commands.
10500 Mention new packet.
10501 * target.h (struct target_ops): New method
10502 to_set_trace_buffer_size.
10503 (target_set_trace_buffer_size): New macro.
10504 * target.c (update_current_target): Set up new method.
10505 * tracepoint.c (trace_buffer_size): New global.
10506 (start_tracing): Send it to the target.
10507 (set_trace_buffer_size): New function.
10508 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10509 * remote.c (remote_set_trace_buffer_size): New function.
10510 (_initialize_remote): Use it.
10511 (QTBuffer:size) New remote command.
10512 (PACKET_QTBuffer_size): New enum.
10513 (remote_protocol_features): Add an entry for
10514 PACKET_QTBuffer_size.
10515
7da3ab79
TT
105162013-03-08 Tom Tromey <tromey@redhat.com>
10517
10518 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10519 variable.
10520
0c1f71e7
PA
105212013-03-07 Pedro Alves <palves@redhat.com>
10522
10523 * target.c (target_read_stralloc, target_fileio_read_alloc):
10524 *Cast pointer to 'gdb_byte *' in target call.
10525
c8af03a2
PA
105262013-03-07 Pedro Alves <palves@redhat.com>
10527
10528 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10529 call.
10530
529480d0
KS
105312013-03-07 Keith Seitz <keiths@redhat.com>
10532
10533 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10534 (trace_pass_command): Likewise.
10535 * cli/cli-cmds.c: Include cli/cli-utils.h.
10536 (source_command): Use skip-spaces.
10537 (disassemble_command): Likewise.
10538 * findcmd.c: Include cli/cli-utils.h.
10539 (parse_find_args): Use skip_spaces.
10540 * go32-nat.c: Include cli/cli-utils.h.
10541 (go32_sldt): Use skip_spaces.
10542 (go32_sgdt): Likewise.
10543 (go32_sidt): Likewise.
10544 (go32_pde): Likewise.
10545 (go32_pte): Likewise.
10546 (go32_pte_for_address): Likewise.
10547 * infcmd.c: Include cli/cli-utils.h.
10548 (registers_info): Use skip_spaces.
10549 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10550 (linux_info_proc): Likewise.
10551 * linux-thread-db.c: Include cli/cli-utils.h.
10552 (info_auto_load_libthread_db): Use skip_spaces_const.
10553 * m32r-rom.c: Include cli/cli-utils.h.
10554 (m32r_upload_command): Use skip_spaces.
10555 * maint.c: Include cli/cli-utils.h.
10556 (maintenance_translate_address): Use skip_spaces.
10557 * mi/mi-parse.c: Include cli/cli-utils.h.
10558 (mi_parse_argv): Use skip_spaces.
10559 (mi_parse): Likewise.
10560 * minsyms.c: Include cli/cli-utils.h.
10561 (msymbol_hash_iw): Use skip_spaces_const.
10562 * objc-lang.c: Include cli/cli-utils.h.
10563 (parse_selector): Use skip_spaces.
10564 (parse_method): Likewise.
10565 * python/python.c: Include cli/cli-utils.h.
10566 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10567 (python_command)[HAVE_PYTHON]: Likewise.
10568 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10569 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10570 (m32r_load): Use skip_spaces.
10571 * serial.c: Include cli/cli-utils.h.
10572 (serial_open): Use skip_spaces_const.
10573 * stack.c: Include cli/cli-utils.h.
10574 (parse_frame_specification_1): Use skip_spaces_const.
10575 * symfile.c: Include cli/cli-utils.h.
10576 (set_ext_lang_command): Use skip_spaces.
10577 * symtab.c: Include cli/cli-utils.h.
10578 (rbreak_command): Use skip_spaces.
10579 * thread.c (thread_name_command): Use skip_spaces.
10580 * tracepoint.c (validate_actionline): Use skip_spaces.
10581 (encode_actions_1): Likewise.
10582 (trace_find_range_command): Likewise.
10583 (trace_find_outside_command): Likewise.
10584 (trace_dump_actions): Likewise.
10585
ac91cd70
PA
105862013-03-07 Pedro Alves <palves@redhat.com>
10587
10588 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10589 * expprint.c (print_subexp_standard): Likewise.
10590 * utils.c (host_char_to_target): Likewise.
10591 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10592 * varobj.c (value_get_print_value): Change type of local to char*.
10593 Cast it gdb_byte * in call to language printer.
10594
2898e560
PA
105952013-03-07 Pedro Alves <palves@redhat.com>
10596
10597 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10598 gdb_byte *'.
10599 (make_wchar_iterator): Remove cast to char*.
10600 (wchar_iterate): Change type of local.
10601
a09b4448
PA
106022013-03-07 Pedro Alves <palves@redhat.com>
10603
10604 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10605 for 'regcache->register_status'.
10606
20ced3e4
PA
106072013-03-07 Pedro Alves <palves@redhat.com>
10608
c2d6a675 10609 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10610 int.
10611
fe106009
PA
106122013-03-07 Pedro Alves <palves@redhat.com>
10613
10614 * stap-probe.c (handle_stap_probe): Add cast to char*.
10615
8ac2c12b
PA
106162013-03-07 Pedro Alves <palves@redhat.com>
10617
10618 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10619 RECORD_MSGRCV>: Pass a signed variable to
10620 regcache_raw_read_signed, instead of an unsigned one.
10621
99f0a309
PA
106222013-03-07 Pedro Alves <palves@redhat.com>
10623
10624 * remote-notif.c (notif_debug): Change type to int.
10625 * remote-notif.h (notif_debug): Likewise.
10626
964b8317
PA
106272013-03-07 Pedro Alves <palves@redhat.com>
10628
10629 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10630
f0cc8ad4
PA
106312013-03-07 Pedro Alves <palves@redhat.com>
10632
10633 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10634 * remote.h (hex2bin, bin2hex): ... here.
10635 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10636
77dec115
EZ
106372013-03-07 Eli Zaretskii <eliz@gnu.org>
10638
10639 * utils.c (initialize_utils): Improve doc strings of "set/show
10640 width", "set/show height", and "set/show pagination".
10641
741d92cf
KS
106422013-03-06 Keith Seitz <keiths@redhat.com>
10643
10644 * ax-gdb.c (gen_printf): Make FORMAT const.
10645 * ax-gdb.h (gen_printf): Likewise.
10646 * ax-general.c (ax_string): Make STR const.
10647 * ax.h (ax_string): Likewise.
10648
7b6c814e
DE
106492013-03-06 Doug Evans <dje@google.com>
10650
10651 * elfread.c (elf_symfile_read): Move debugging printf to more
10652 logical location.
10653
634334ab
PA
106542013-03-06 Pedro Alves <palves@redhat.com>
10655
10656 * python/py-utils.c (target_string_to_unicode): Delete function.
10657 * python/python-internal.h (target_string_to_unicode): Delete
10658 declaration.
10659
e482a1a7
PM
106602013-03-06 Pierre Muller <muller@sourceware.org>
10661
10662 * linespec.c (get_current_search_block): ARI fix, use (void)
10663 for empty parameter list.
10664
4eeaa230
DE
106652013-03-05 Doug Evans <dje@google.com>
10666
10667 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10668 of old ada_lookup_symbol_list. In !full_search case, don't
10669 search superblocks.
10670 (ada_lookup_symbol_list): Delete arg full_search, all callers
10671 updated. Call ada_lookup_symbol_list_worker.
10672 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10673 * ada-lang.h (ada_lookup_symbol_list): Update.
10674 * language.h (language_defn): Update comment for
10675 la_iterate_over_symbols.
10676 * linespec.c (iterate_over_file_blocks): New function.
10677 (iterate_over_all_matching_symtabs): Call it.
10678 (lookup_prefix_sym): Ditto.
10679 (get_current_search_block): New function.
10680 (get_search_block): Delete.
10681 (find_label_symbols): Call get_current_search_block.
10682 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10683 * symtab.c (iterate_over_symbols): Don't search superblocks.
10684
b69b1fb1
YQ
106852013-03-05 Yao Qi <yao@codesourcery.com>
10686
10687 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10688 parameter VAR's type from "unsigned int" to "int".
10689 * command.h (var_zuinteger_unlimited): Update its comments.
10690 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10691
3c095f49
CV
106922013-03-05 Corinna Vinschen <vinschen@redhat.de>
10693
10694 * NEWS: Mention new target x86_64-*-cygwin*.
10695
b5b0b0af
CV
106962013-03-05 Corinna Vinschen <vinschen@redhat.de>
10697
10698 * configure.host: Add x86_64-*-cygwin* as host.
10699 * configure.tgt: Add x86_64-*-cygwin* as target.
10700 * config/i386/cygwin64.mh: New file.
10701
f6f99966
JK
107022013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10703
10704 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10705
33f448b1
JK
107062013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10707
10708 * linespec.c (struct linespec_canonical_name): New.
10709 (struct linespec_state): Change canonical_names type to it.
10710 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10711 xrealloc element size. Initialize the different CANONICAL fields.
10712 (canonical_to_fullform): New.
10713 (filter_results): Use it. Add variables canonical, fullform and
10714 cleanup.
10715 (struct decode_line_2_item, decode_line_2_compare_items): New.
10716 (decode_line_2): Remove variables iter and item_names, add variables
10717 items and items_count. Modify the code for these new variables.
10718
feb14725
CV
107192013-03-04 Corinna Vinschen <vinschen@redhat.com>
10720
10721 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10722 calling do_cleanup.
10723
e83b17ba
HZ
107242013-03-04 Luis Machado <lgustavo@codesourcery.com>
10725
10726 * tracepoint.c (build_traceframe_info): Add code for byte order.
10727
a2d13a0d
KB
107282013-03-02 Kevin Buettner <kevinb@redhat.com>
10729
8dddcae8
KB
10730 * v850-tdep.c: (v850e2_register_name): Revise system register
10731 names to match current V850E2M architecture specifications.
10732 Update register number enum comments too.
f5aee5ee 10733
d79e58d8
JW
107342013-03-01 Jiong Wang <jiwang@tilera.com>
10735 Pedro Alves <palves@redhat.com>
10736
10737 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10738 to END_ADDR.
10739 (tilegx_skip_prologue): Limit prologue analysis to section end.
10740
c4be5165
JK
107412013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10742
10743 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10744 use it.
10745
e362b510
PA
107462013-03-01 Pedro Alves <palves@redhat.com>
10747
10748 Use gdb_byte for bytes from the program being debugged.
10749
10750 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10751 Change type of local 'buf' to gdb_byte.
10752 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10753 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10754 * cris-tdep.c (cris_sigcontext_addr)
10755 (cris_sigtramp_frame_unwind_cache): Likewise.
10756 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10757 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10758 Likewise.
10759 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10760 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10761 (hppa32_hpux_search_dummy_call_sequence)
10762 (hppa_hpux_supply_save_state): Likewise.
10763 * hppa-linux-tdep.c (insns_match_pattern)
10764 (hppa_linux_find_global_pointer): Likewise.
10765 * hppa-tdep.c (hppa_in_function_epilogue_p)
10766 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10767 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10768 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10769 (i386fbsd_collect_uthread): Likewise.
10770 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10771 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10772 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10773 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10774 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10775 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10776 (ia64_libunwind_frame_prev_register)
10777 (ia64_libunwind_sigtramp_frame_this_id)
10778 (ia64_find_global_pointer_from_dynamic_section)
10779 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10780 (ia64_unwind_pc): Likewise.
10781 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10782 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10783 (m68hc11_extract_return_value): Likewise.
10784 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10785 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10786 (mep_get_insn, mep_push_dummy_call): Likewise.
10787 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10788 (mips_linux_in_dynsym_stub): Likewise.
10789 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10790 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10791 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10792 to gdb_byte.
10793 * remote-mips.c (mips_set_register): Likewise.
10794 * remote-sim.c (gdbsim_fetch_register): Likewise.
10795 * score-tdep.c (score7_fetch_inst): Change type of parameter
10796 'memblock' and local 'buf' to gdb_byte.
10797 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10798 Change type of local 'buf' to gdb_byte. Adjust.
10799 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10800 to gdb_byte**.
10801 (score7_analyze_prologue): Change type of 'memblock' and
10802 'memblock_ptr' locals to gdb_byte*.
10803 * sh64-tdep.c (sh64_extract_return_value)
10804 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10805 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10806 * solib-pa64.c (pa64_solib_create_inferior_hook)
10807 (pa64_open_symbol_file_object): Remove local 'buf'.
10808 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10809 (som_open_symbol_file_object): Likewise.
10810 * solib-spu.c (spu_current_sos): Likewise.
10811 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10812 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10813 (spu_store_registers): Likewise.
10814 * target.c (debug_print_register): Likewise.
10815 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10816 * xstormy16-tdep.c (xstormy16_store_return_value)
10817 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10818 (xstormy16_find_jmp_table_entry): Likewise.
10819
75cc61ca 108202013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10821
10822 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10823 (tilegx_gdbarch_init): Install it.
10824
ddb08e9c
TT
108252013-02-28 Tom Tromey <tromey@redhat.com>
10826
10827 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10828 PyLong_Check.
10829
62d7fb51
DE
108302013-02-28 Doug Evans <dje@google.com>
10831
10832 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10833 * python/python.c (gdbpy_find_pc_line): Ditto.
10834
c4a9e8b4
TT
108352013-02-28 Tom Tromey <tromey@redhat.com>
10836
10837 * contrib/excheck.py: New file.
10838 * contrib/exsummary.py: New file.
10839 * contrib/gcc-with-excheck: New file.
10840
7f6a5dde
TT
108412013-02-28 Tom Tromey <tromey@redhat.com>
10842
10843 * python/python.c (gdbpy_print_stack): Call begin_line and
10844 fprintf_filtered inside TRY_CATCH.
10845
9e974e55
TT
108462013-02-28 Tom Tromey <tromey@redhat.com>
10847
10848 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10849 inside TRY_CATCH.
10850
dd5fa3e7
TT
108512013-02-28 Tom Tromey <tromey@redhat.com>
10852
10853 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10854 frame_object_to_frame_info inside TRY_CATCH.
10855
86a3263f
TT
108562013-02-28 Tom Tromey <tromey@redhat.com>
10857
10858 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10859 TRY_CATCH.
10860
81b52a3a
TT
108612013-02-28 Tom Tromey <tromey@redhat.com>
10862
10863 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10864
d50a0ce2
CV
108652013-02-27 Corinna Vinschen <vinschen@redhat.com>
10866
10867 * windows-nat.c: Throughout, fix format strings and casts of
10868 printf-like functions to avoid type related warnings on all
10869 platforms.
10870 (handle_output_debug_string): Fetch context information address
10871 from debug string using string_to_core_addr.
10872
e1f58301
JW
108732013-02-27 Jiong Wang <jiwang@tilera.com>
10874
10875 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10876 * regformats/reg-tilegx32.dat: New.
10877
4fcd89fc
JW
108782013-02-27 Jiong Wang <jiwang@tilera.com>
10879
10880 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10881
748d24e6
JW
108822013-02-27 Jiong Wang <jiwang@tilera.com>
10883
10884 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10885
6c8e944d
YQ
108862013-02-27 Yao Qi <yao@codesourcery.com>
10887 Pedro Alves <palves@redhat.com>
10888
10889 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10890 pc/tp/range/outside, look for the next trace frame instead of
10891 always starting from frame 0.
6c8e944d 10892
acd7db30
AG
108932013-02-26 Anthony Green <green@moxielogic.com>
10894
10895 * configure.tgt: Add support for moxie-*-rtems* target.
10896
025e6dce
PA
108972013-02-25 Pedro Alves <palves@redhat.com>
10898
10899 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10900 warning text.
10901
ca9c94ef
MR
109022013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10903
10904 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10905 if $fp is used as the virtual frame pointer.
10906
24c274a1
AM
109072013-02-23 Alan Modra <amodra@gmail.com>
10908
10909 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10910 symbol size.
10911 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10912 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10913 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10914 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10915
bfada189
JK
109162013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10917
10918 Code cleanup.
10919 * elfread.c (build_id_bfd_get): Make the return type const.
10920 (build_id_verify): Make the check parameter const.
10921 (build_id_to_debug_filename): Make the build_id parameter and variable
10922 data const.
10923 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10924
c0355132
AM
109252013-02-21 Alan Modra <amodra@gmail.com>
10926
10927 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10928
9f44fbc0
SCR
109292013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10930
10931 Add a new method 'disassemble' to gdb.Architecture class.
10932 * python/py-arch.c (archpy_disassmble): Implementation of the
10933 new method gdb.Architecture.disassemble.
10934 (arch_object_methods): Add entry for the new method.
10935
b74ea3eb
JW
109362013-02-20 Jiong Wang <jiwang@tilera.com>
10937
10938 * MAINTAINERS (Write After Approval): Add myself to the list.
10939
61a672f1
PA
109402013-02-19 Pedro Alves <palves@redhat.com>
10941
10942 Garbage collect 'struct monitor_ops'::load_routine.
10943
10944 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10945 * monitor.c (monitor_load): No longer call
10946 current_monitor->load_routine.
10947 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10948 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10949 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10950
40e397df
PA
109512013-02-19 Pedro Alves <palves@redhat.com>
10952
10953 PR gdb/15161
10954
10955 Harmonize with generic_load.
10956
10957 * monitor.c: Include "readline/readline.h".
10958 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10959 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10960 long/strtol for the 'load_offset' local. Error out if no argument
10961 is given or if too many arguments are given. Tilde expand the
10962 passed in file name.
10963
f698ca8e
KT
109642013-02-19 Kai Tietz <ktietz@redhat.com>
10965
10966 PR gdb/15161
10967 * symfile.c (load_section_data): Change type of load_offset
10968 to CORE_ADDR.
10969 (generic_load): User strtoulst instead of strtoul for conversion
10970 of load_offset.
10971
3361b059
WL
109722013-02-19 Jiong Wang <jiwang@tilera.com>
10973
10974 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10975 for return address, "lr" register, saved on stack.
10976 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10977 after we invoke tilegx_analyze_prologue.
10978
3e9d5130
WL
109792013-02-19 Jiong Wang <jiwang@tilera.com>
10980
bb1bcd86
WL
10981 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10982
3361b059 109832013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10984
b74ea3eb 10985 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10986
4aaf2503
WL
109872013-02-19 Jiong Wang <jiwang@tilera.com>
10988
b74ea3eb 10989 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10990 (tilegx_write_pc): New function.
10991 (tilegx_cannot_reference_register): Return zero if REGNO
10992 is TILEGX_FAULTNUM_REGNUM.
10993 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10994 (tilegx_register_name): Add handling of "faultnum" register.
10995 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10996 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10997 handling of TILEGX_FAULTNUM_REGNUM.
10998 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10999
bc23a956
WL
110002013-02-19 Jiong Wang <jiwang@tilera.com>
11001
11002 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11003 should be aligned to 64bit.
bc23a956 11004
42f45f1a
KT
110052013-02-19 Kai Tietz <ktietz@redhat.com>
11006
11007 * windows-nat.c (windows_xfer_memory): Fix debug-output
11008 for LLP64.
11009
6ce4c112
LL
110102013-02-19 Lei Liu <lei.liu2@windriver.com>
11011
11012 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11013 Don't check DSP register number if HAVE_DSP is not set.
11014
30e8ee25
AM
110152013-02-19 Alan Modra <amodra@gmail.com>
11016
11017 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11018 throughout file instead.
11019 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11020 Don't xmalloc return value.
11021 (build_id_verify): Similarly. Don't xfree.
11022 (build_id_to_debug_filename): Update.
11023 (find_separate_debug_file_by_buildid): Update, don't xfree.
11024
4c9ad8c2
TT
110252013-02-18 Tom Tromey <tromey@redhat.com>
11026
11027 PR gdb/15102:
11028 * dwarf2read.c (read_subrange_type): Use result of
11029 'check_typedef'.
11030
983dc440
YQ
110312013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11032
11033 * frame.c: Remove one extra white space after #include
11034 directive.
11035
7fb2b84a
JK
110362013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11037
11038 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11039
edceb2a9
JK
110402013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11041
11042 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11043 and dir commands into an if block.
11044
e81b7af8
TT
110452013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11046
11047 * python/py-breakpoint (struct pybp_code): Use int instead of
11048 enum type_code.
11049
f5911ea1
HAQ
110502013-02-15 Pedro Alves <pedro@codesourcery.com>
11051 Hafiz Abid Qadeer <abidh@codesourcery.com>
11052
11053 * NEWS: Mention new field "trace-file".
11054 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11055 (tfile_open): Record the trace file's filename in the trace
11056 status.
11057 (tfile_files_info): Mention the name of the trace file.
11058 Check the "filename" field explicitely.
11059 (trace_status_command): Explicitely check "filename" field.
11060 (trace_find_command): Ditto.
11061 (trace_find_pc_command): Ditto.
11062 (trace_find_tracepoint_command): Ditto.
11063 (trace_find_line_command): Ditto.
11064 (trace_find_range_command): Ditto.
11065 (trace_find_outside_command): Ditto.
11066 * tracepoint.h (struct trace_status) <from_file>: Rename it
11067 to "filename" and make it hold the trace file's filename
11068 instead of a boolean.
11069 * remote.c (remote_get_trace_status): Initialize "filename"
11070 field with NULL instead of 0.
11071
796cb314
YQ
110722013-02-15 Yao Qi <yao@codesourcery.com>
11073
11074 * remote.c: Fix a typo.
11075
42e79b1d
PM
110762013-02-14 Pierre Muller <muller@sourceware.org>
11077
11078 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11079
baea0dae
PA
110802013-02-14 Pedro Alves <palves@redhat.com>
11081
11082 * utils.c (savestring): Don't #undef it. Move function to
11083 common/common-utils.c.
11084 * common/common-utils.c: Include gdb_string.h.
11085 (savestring): Move here from utils.c.
11086 * common/common-utils.h (savestring): Declare.
11087
57c3b6ed
PA
110882013-02-14 Pedro Alves <palves@redhat.com>
11089
11090 * utils.c (savestring): Rename parameter 'size' to 'len'.
11091
d6c44983
YZ
110922013-02-14 Pedro Alves <palves@redhat.com>
11093 Yufeng Zhang <yufeng.zhang@arm.com>
11094
11095 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11096 (aarch64_inferior_data, struct aarch64_inferior_data):
11097 Delete.
11098 (struct aarch64_process_info): New.
11099 (aarch64_process_list): New global.
11100 (aarch64_find_process_pid, aarch64_add_process)
11101 (aarch64_process_info_get): New functions.
11102 (aarch64_inferior_data_get): Delete.
11103 (aarch64_process_info_get): New function.
11104 (aarch64_forget_process): New function.
11105 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11106 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11107 aarch64_get_debug_reg_state.
11108 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11109 instead of linux_nat_iterate_watchpoint_lwps.
11110 (aarch64_linux_new_fork): New function.
11111 (aarch64_linux_child_post_startup_inferior): Use
11112 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11113 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11114 (aarch64_linux_remove_hw_breakpoint)
11115 (aarch64_handle_aligned_watchpoint)
11116 (aarch64_handle_unaligned_watchpoint)
11117 (aarch64_linux_insert_watchpoint)
11118 (aarch64_linux_remove_watchpoint)
11119 (aarch64_linux_stopped_data_address): Adjust to pass the current
11120 process id to aarch64_debug_reg_state.
11121 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11122 linux_nat_new_fork hook, and aarch64_forget_process as
11123 linux_nat_forget_process hook; remove the call to
11124 register_inferior_data_with_cleanup.
11125
4819b3f8
PA
111262013-02-14 Pedro Alves <palves@redhat.com>
11127
11128 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11129 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11130 lval_memory.
11131
1773c82c
HAQ
111322013-02-14 Pedro Alves <pedro@codesourcery.com>
11133 Hafiz Abid Qadeer <abidh@codesourcery.com>
11134
11135 * tracepoint.h (validate_trace_state_variable_name): Declare.
11136 * tracepoint.c (validate_trace_state_variable_name): New.
11137 (trace_variable_command): Parse the trace state variable's name
11138 without using parse_expression. Do several validations.
11139 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11140 trace state variable's name with parse_expression. Validate it.
11141
53778a97
YQ
111422013-02-14 Yao Qi <yao@codesourcery.com>
11143
11144 * infcmd.c (breakpoint_proceeded): Remove it.
11145
7b3ae3a6
YQ
111462013-02-14 Yao Qi <yao@codesourcery.com>
11147
11148 * tracepoint.c (end_actions_pseudocommand): Make it static.
11149 (while_stepping_pseudocommand): Likewise.
11150 * tracepoint.h (end_actions_pseudocommand): Remove the
11151 declaration.
11152 (while_stepping_pseudocommand): Likewise.
11153
64580925
YQ
111542013-02-14 Yao Qi <yao@codesourcery.com>
11155
11156 * cli/cli-decode.c (help_cmd): Remove the declaration of
11157 "cmdlist".
11158 (help_all): Likewise.
11159
26cb8b7c
PA
111602013-02-13 Pedro Alves <palves@redhat.com>
11161
11162 * amd64-linux-nat.c (update_debug_registers_callback):
11163 Update comment.
11164 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11165 iterate_over_lwps.
11166 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11167 i386_debug_reg_state.
11168 (amd64_linux_new_fork): New function.
11169 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11170 linux_nat_new_fork hook, and i386_forget_process as
11171 linux_nat_forget_process hook.
11172 * i386-linux-nat.c (update_debug_registers_callback):
11173 Update comment.
a8256ea1 11174 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11175 iterate_over_lwps.
11176 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11177 i386_debug_reg_state.
11178 (i386_linux_new_fork): New function.
11179 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11180 linux_nat_new_fork hook, and i386_forget_process as
11181 linux_nat_forget_process hook.
11182 * i386-nat.c (i386_init_dregs): Delete.
11183 (i386_inferior_data, struct i386_inferior_data):
11184 Delete.
11185 (struct i386_process_info): New.
11186 (i386_process_list): New global.
11187 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11188 New functions.
11189 (i386_inferior_data_get): Delete.
11190 (i386_process_info_get): New function.
11191 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11192 (i386_forget_process): New function.
11193 (i386_cleanup_dregs): Rewrite.
11194 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11195 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11196 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11197 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11198 to i386_debug_reg_state.
11199 (i386_use_watchpoints): Don't register inferior data.
11200 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11201 adjust comment.
11202 (i386_forget_process): Declare.
11203 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11204 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11205 New static globals.
11206 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11207 (add_initial_lwp): New, factored out from ...
11208 (add_lwp): ... this. Don't check the number of lwps before
11209 calling linux_nat_new_thread.
11210 (linux_nat_iterate_watchpoint_lwps): Delete.
11211 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11212 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11213 forks and vforks.
11214 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11215 initial lwp.
11216 (linux_nat_kill, linux_nat_mourn_inferior): Call
11217 linux_nat_forget_process.
11218 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11219 (linux_nat_forget_process): New functions.
11220 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11221 type.
11222 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11223 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11224 types.
11225 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11226 (linux_nat_forget_process): New declarations.
11227
11228 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11229 (amd64fbsd_mourn_inferior): New function.
11230 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11231 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11232
5befea72
MS
112332013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11234
55015247
YQ
11235 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11236 Adding _().
5befea72 11237
1d3ffd6b
MS
112382013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11239
11240 * aarch64-linux-nat.c (debug_reg_change_callback)
11241 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11242 %s and phex().
11243
6eb04473
MS
112442013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11245
11246 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11247 with LONGEST.
11248
a016fc87
HAQ
112492013-02-13 Pedro Alves <palves@redhat.com>
11250 Hafiz Abid Qadeer <abidh@codesourcery.com>
11251
11252 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11253
e234dfaf
TT
112542013-02-12 Tom Tromey <tromey@redhat.com>
11255
11256 PR symtab/11464:
11257 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11258 NAME return.
11259 (classify_inner_name): Remove 'first_name' argument, add
11260 'context'. Remove unused variable.
11261 (yylex): Explicitly maintain the context type. Exit loop earlier
11262 if NAME result is seen.
11263
0b1afbb3
PA
112642013-02-12 Pedro Alves <palves@redhat.com>
11265
11266 * amd64-darwin-tdep.c: Add (C) after Copyright.
11267 * cli/cli-cmds.h: Ditto.
11268 * cli/cli-decode.c: Ditto.
11269 * cli/cli-decode.h: Ditto.
11270 * cli/cli-dump.c: Ditto.
11271 * cli/cli-dump.h: Ditto.
11272 * cli/cli-interp.c: Ditto.
11273 * cli/cli-logging.c: Ditto.
11274 * cli/cli-script.c: Ditto.
11275 * cli/cli-script.h: Ditto.
11276 * cli/cli-setshow.c: Ditto.
11277 * cli/cli-setshow.h: Ditto.
11278 * cli/cli-utils.c: Ditto.
11279 * cli/cli-utils.h: Ditto.
11280 * config/alpha/nm-osf3.h: Ditto.
11281 * config/djgpp/djconfig.sh: Ditto.
11282 * config/i386/nm-fbsd.h: Ditto.
11283 * config/i386/nm-i386gnu.h: Ditto.
11284 * config/nm-linux.h: Ditto.
11285 * config/nm-nto.h: Ditto.
11286 * config/rs6000/nm-rs6000.h: Ditto.
11287 * config/sparc/nm-sol2.h: Ditto.
11288 * darwin-nat-info.c: Ditto.
11289 * dfp.c: Ditto.
11290 * dfp.h: Ditto.
11291 * gdb-demangle.h: Ditto.
11292 * i386-darwin-nat.c: Ditto.
11293 * i386-darwin-tdep.c: Ditto.
11294 * linux-fork.h: Ditto.
11295 * m32c-tdep.c: Ditto.
11296 * microblaze-linux-tdep.c: Ditto.
11297 * microblaze-rom.c: Ditto.
11298 * microblaze-tdep.c: Ditto.
11299 * microblaze-tdep.h: Ditto.
11300 * mips-linux-tdep.h: Ditto.
11301 * ppc-ravenscar-thread.c: Ditto.
11302 * ppc-ravenscar-thread.h: Ditto.
11303 * prologue-value.c: Ditto.
11304 * prologue-value.h: Ditto.
11305 * ravenscar-thread.c: Ditto.
11306 * ravenscar-thread.h: Ditto.
11307 * sparc-ravenscar-thread.c: Ditto.
11308 * sparc-ravenscar-thread.h: Ditto.
11309 * tilegx-linux-tdep.c: Ditto.
11310 * unwind_stop_reasons.def: Ditto.
11311 * windows-nat.h: Ditto.
11312 * xtensa-linux-tdep.c: Ditto.
11313 * xtensa-xtregs.c: Ditto.
11314 * regformats/regdat.sh: Ditto.
11315 * regformats/regdef.h: Ditto.
11316
6c01dd94
PA
113172013-02-12 Pedro Alves <palves@redhat.com>
11318
11319 * break-catch-sig.c: Update copyright years.
11320
b65a2bd9
SCR
113212013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11322
11323 Add support for a destructor for ui_out data and use it to
11324 provide a ui_out destructor.
11325 * ui-out.h: Declare the new ui_out destructor.
11326 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11327 * ui-out.c (default_data_destroy): Add a default data destructor
11328 which does nothing.
11329 (default_ui_out_impl): Set the new data_destroy field to
11330 default_data_destroy
11331 (uo_data_destroy): Local function which invokes the data
11332 destructor if present.
11333 (clear_table): Local function which clears the table data of a
11334 ui_out object.
11335 (ui_out_destroy): Public function which frees a ui_out object.
11336 (ui_out_table_end): Use the new clear_table function.
11337 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11338 NULL.
11339 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11340 to NULL.
11341
c2792f5a
DE
113422013-02-11 Doug Evans <dje@google.com>
11343
11344 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11345 (printf_decfloat): New function. Broken out from ui_printf.
11346 Remove unnecessary code to shift the entire format string down.
11347 (printf_pointer): New function.
11348 (ui_printf): Code to print C strings, wide C strings, decfloats,
11349 and pointers moved to separate functions.
11350
d9e98382
SDJ
113512013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11352
11353 * valops.c (value_assign): Handling bitfield offset in
11354 `lval_internalvar_component' case.
11355
4ff3ce77
DE
113562013-02-08 Doug Evans <dje@google.com>
11357
11358 * common/format.c (parse_format_string): Fix whitespace.
11359
901900c4
MGD
113602013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11361
11362 * stack.c (return_command): Work around uninitialized variable
11363 warning.
11364
b5dbc8d4
YZ
113652013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11366
11367 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11368 number of the registers from 36 to 34.
11369
51d66578
MS
113702013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11371
11372 * NEWS: Mention new AArch64 native and target support.
11373
176b1c95
MS
113742013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11375
11376 * MAINTAINERS (Write After Approval): Add myself.
11377
9d19df75
MS
113782013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11379 Marcus Shawcroft <marcus.shawcroft@arm.com>
11380 Nigel Stephens <nigel.stephens@arm.com>
11381 Yufeng Zhang <yufeng.zhang@arm.com>
11382
11383 * aarch64-linux-nat.c: New file.
11384 * config/aarch64/linux.mh: New file.
11385 * configure.host: Add AArch64.
11386 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11387
7e1e0340
DE
113882013-02-07 Doug Evans <dje@google.com>
11389
11390 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11391 disassemble command.
11392
45e25a36
MS
113932013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11394
11395 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11396 set_gdbarch_fetch_tls_load_module_address.
11397
bbfdfe1c
DM
113982013-02-06 David S. Miller <davem@davemloft.net>
11399
11400 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11401 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11402 * value.c (struct_return_convention): New function.
11403 (using_struct_return): Implement in terms of struct_return_convention.
11404 * value.h (struct_return_convention): Declare.
11405 * stack.c (return_command): Allow successful overriding of the return
11406 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11407
bc9abe4a
TT
114082013-02-06 Tom Tromey <tromey@redhat.com>
11409
11410 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11411 outside of TRY_CATCH.
11412
134a2066
YQ
114132013-02-06 Yao Qi <yao@codesourcery.com>
11414
11415 * mi/mi-interp.c: Include "tracepoint.h".
11416 (mi_tsv_modified): Declare.
11417 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11418 (mi_interpreter_init): Call observer_attach_tsv_modified.
11419 (mi_tsv_modified): New.
11420 (mi_tsv_created, mi_tsv_deleted): Update.
11421 * tracepoint.c (trace_variable_command): Call
11422 observer_notify_tsv_modified if the initial value of tsv is
11423 changed.
11424 (delete_trace_state_variable): Call
11425 observer_notify_tsv_deleted earlier.
11426 (trace_variable_command): Caller update.
11427 (create_tsv_from_upload): Likewise.
11428 * observer.sh: Declare "struct trace_state_variable".
11429
11430 * NEWS: Mention the new MI notification "=tsv-modified".
11431
59be2b6a
DE
114322013-02-05 Doug Evans <dje@google.com>
11433
11434 * completer.c (location_completer): Fix typo in comment.
11435
d30113d4
JK
114362013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11439 ADDRESS sorted.
11440
14ac654f
MS
114412013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11442
11443 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11444 Refactor if statement to avoid trailing || operator.
11445
543bf33d
AT
114462013-02-05 Andreas Tobler <andreast@fgznet.ch>
11447
11448 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11449
dc18f110
AT
114502013-02-04 Andreas Tobler <andreast@fgznet.ch>
11451
11452 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11453 * configure.host: Add powerpc*-*-freebsd* target.
11454 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11455 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11456 * config/powerpc/fbsd.mh: New file.
11457
b3ac9c77
SDJ
114582013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11459 Denys Vlasenko <dvlasenk@redhat.com>
11460 Pedro Alves <palves@redhat.com>
11461
11462 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11463 (struct elf_internal_linux_prpsinfo): Forward declare.
11464 * gdbarch.h, gdbarch.c: Regenerate.
11465 * linux-tdep.c: Include `cli/cli-utils.h'.
11466 (linux_fill_prpsinfo): New function.
11467 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11468 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11469 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11470 depending on gdbarch pointer bitness.
11471 * ppc-linux-tdep.c: Include elf-bfd.h.
11472 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11473 on 32-bit.
11474
176eb98c
MS
114752013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11476 Marcus Shawcroft <marcus.shawcroft@arm.com>
11477 Nigel Stephens <nigel.stephens@arm.com>
11478 Yufeng Zhang <yufeng.zhang@arm.com>
11479
11480 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11481
cf0dbd6f
MS
114822013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11483 Marcus Shawcroft <marcus.shawcroft@arm.com>
11484 Nigel Stephens <nigel.stephens@arm.com>
11485 Yufeng Zhang <yufeng.zhang@arm.com>
11486
11487 * aarch64-newlib-tdep.c: New file.
11488 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11489 aarch64*-*-elf.
11490 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11491 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11492 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11493 * osabi.c (gdb_osabi_names): Add "Newlib".
11494
1ae3db19
MS
114952013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11496 Marcus Shawcroft <marcus.shawcroft@arm.com>
11497 Nigel Stephens <nigel.stephens@arm.com>
11498 Yufeng Zhang <yufeng.zhang@arm.com>
11499
11500 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11501 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11502 * aarch64-linux-tdep.c: New file.
11503 * aarch64-linux-tdep.h: New file.
11504 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11505 * configure.tgt: Add aarch64-none-linux-gnu.
11506
07b287a0
MS
115072013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11508 Marcus Shawcroft <marcus.shawcroft@arm.com>
11509 Nigel Stephens <nigel.stephens@arm.com>
11510 Yufeng Zhang <yufeng.zhang@arm.com>
11511
11512 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11513 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11514 (ALLDEPFILES): Add aarch64-tdep.c.
11515 * aarch64-tdep.c: New file.
11516 * aarch64-tdep.h: New file.
11517 * configure.tgt: Add AArch64.
11518 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11519 (aarch64-expedite): New definition.
11520 * features/aarch64-core.xml: New file.
11521 * features/aarch64-fpu.xml: New file.
11522 * features/aarch64-without-fpu.c: New file (generated).
11523 * features/aarch64-without-fpu.xml: New file.
11524 * features/aarch64.c: New file (generated).
11525 * features/aarch64.xml: New file.
11526 * regformats/aarch64-without-fpu.dat: New file (generated).
11527 * regformats/aarch64.dat: New file (generated).
11528
0f1b18ab
JK
115292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11530
11531 * contrib/expect-read1.c: New file.
11532 * contrib/expect-read1.sh: New file.
11533
233d95b5
JK
115342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11535
11536 * dwarf2read.c (file_file_name): New function with code from
11537 file_full_name.
11538 (file_full_name): Move most of the code to file_file_name.
11539 (macro_start_file): Rename variable full_name to file_name and use
11540 file_file_name for it. Add comp_dir parameter to new_macro_table.
11541 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11542 macro_source_file->filename access by macro_source_fullname call.
11543 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11544 caller.
11545 * macrotab.c (struct macro_table): New field comp_dir.
11546 (macro_include): New variables link_fullname and source_fullname.
11547 Replace any macro_source_file->filename access by macro_source_fullname
11548 call.
11549 (macro_lookup_inclusion): Remove the partial filenames checking code.
11550 (check_for_redefinition): New variables source_fullname and
11551 found_key_fullname. Replace any macro_source_file->filename access by
11552 macro_source_fullname call.
11553 (macro_undef): New variables source_fullname and key_fullname. Replace
11554 any macro_source_file->filename access by macro_source_fullname call.
11555 (macro_lookup_definition): New variables retval and source_fullname.
11556 Replace any macro_source_file->filename access by macro_source_fullname
11557 call.
11558 (foreach_macro): New variable key_fullname. Replace any
11559 macro_source_file->filename access by macro_source_fullname call.
11560 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11561 macro_source_file->filename access by macro_source_fullname call.
11562 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11563 (macro_source_fullname): New function.
11564 * macrotab.h (struct macro_source_file): Extent the filename field
11565 comment.
11566 (new_macro_table): New parameter comp_dir, add a comment for it.
11567 (macro_source_fullname): new declaration.
11568
da235a7c
JK
115692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11570
11571 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11572 this_real_name to outer block. Use it also for
11573 compare_filenames_for_search.
11574 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11575 with dw2_get_real_path for file_matcher, considering also
11576 BASENAMES_MAY_DIFFER.
11577 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11578
fbd9ab74
JK
115792013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11580
11581 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11582 to the file_matcher parameter. Pass 0 to it.
11583 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11584 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11585 NULL psymtab_to_fullname result.
11586 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11587 an expected filename instead.
11588 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11589 file_matcher parameter. Call also psymtab_to_fullname, after newly
11590 considering BASENAMES_MAY_DIFFER.
11591 * source.c (rewrite_source_path): Remove static.
11592 * source.h (rewrite_source_path): New declaration.
11593 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11594 the expand_symtabs_matching field. Comment it.
11595 * symtab.c (file_matches): New function comment. Add parameter
11596 basenames, implement it.
11597 (search_symbols_file_matches): Add basenames parameter. Update the
11598 file_matches caller.
11599 (search_symbols): Match FILES also against symtab_to_fullname.
11600 Optimize it for BASENAMES_MAY_DIFFER.
11601
56d397a3
JK
116022013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11603
11604 * source.c (print_source_lines_base): Print for TUI also "fullname".
11605 * tui/tui-data.c (init_content_element): Change tui_locator_element
11606 field to full_name.
11607 * tui/tui-data.h (struct tui_locator_element): Likewise.
11608 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11609 tui_update_locator_filename calls to tui_update_locator_fullname.
11610 Replace symtab->filename refererence by symtab_to_fullname call.
11611 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11612 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11613 field to full_name. Replace symtab->filename refererence by
11614 symtab_to_fullname call.
11615 (tui_show_symtab_source): Rename parameter to fullname. Change
11616 tui_locator_element field to full_name.
11617 * tui/tui-stack.c: Include source.h.
11618 (tui_set_locator_filename): Rename the declaration to ...
11619 (tui_set_locator_fullname): ... here. Rename its parameter to
11620 fullname, updates its comment.
11621 (tui_set_locator_info): Rename its parameter to fullname.
11622 (tui_set_locator_filename): Rename the definition to ...
11623 (tui_set_locator_fullname): ... here. Rename its parameter to
11624 fullname, updates its comment. Change tui_locator_element field to
11625 full_name.
11626 (tui_set_locator_info): Rename its parameter to fullname.
11627 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11628 (tui_update_locator_filename): Rename to ...
11629 (tui_update_locator_fullname): ... here. Rename callee to
11630 tui_set_locator_fullname.
11631 (tui_show_frame_info): Replace symtab->filename refererence by
11632 symtab_to_fullname call.
11633 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11634 (tui_update_locator_fullname): ... here.
11635 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11636 tui_update_locator_fullname. Replace symtab->filename refererence by
11637 symtab_to_fullname call.
11638 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11639 Rename the callee to tui_update_locator_fullname.
11640 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11641
05cba821
JK
116422013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11643
11644 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11645 by symtab_to_filename_for_display calls.
11646 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11647 (clear_command): New variable sal_fullname, initialize it. Replace
11648 compare_filenames_for_search by filename_cmp with sal_fullname.
11649 (say_where, update_static_tracepoint): Replace symtab->filename
11650 refererences by symtab_to_filename_for_display calls.
11651 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11652 Likewise.
11653 * dwarf2read.c: Include source.h.
11654 (fixup_go_packaging): Replace symtab->filename refererences by
11655 symtab_to_filename_for_display calls.
11656 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11657 Replace symtab->filename refererences by symtab_to_filename_for_display
11658 calls.
11659 (create_sals_line_offset, convert_linespec_to_sals): New variable
11660 fullname, initialize it, replace symtab->filename reference by the
11661 variable.
11662 * linux-fork.c: Include source.h.
11663 (info_checkpoints_command): Replace symtab->filename refererences by
11664 symtab_to_filename_for_display calls.
11665 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11666 by symtab_to_filename_for_display calls.
11667 * mdebugread.c: Include source.h.
11668 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11669 symtab_to_filename_for_display calls.
11670 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11671 (mi_cmd_file_list_exec_source_files): Likewise.
11672 * printcmd.c: Include source.h.
11673 (build_address_symbolic): Replace symtab->filename refererences by
11674 symtab_to_filename_for_display calls.
11675 * psymtab.c (partial_map_symtabs_matching_filename)
11676 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11677 with psymtab_to_fullname.
11678 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11679 by symtab_to_filename_for_display calls.
11680 (stpy_get_filename): New variable filename, initialize it, use instead
11681 of symtab->filename refererences.
11682 (salpy_str): Make variable filename const char *. Replace
11683 symtab->filename refererences by symtab_to_filename_for_display calls.
11684 * skip.c: Include source.h and filenames.h.
11685 (skip_file_command): Remove const from the symtab variable. Replace
11686 symtab->filename refererences by symtab_to_fullname call.
11687 (function_name_is_marked_for_skip): New variables searched_for_fullname
11688 and fullname. Use them to search also with symtab's fullname.
11689 * source.c (find_source_lines): Replace symtab->filename refererences
11690 by symtab_to_filename_for_display calls.
11691 (print_source_lines_base): New variable filename, use it instead of
11692 symtab->filename. Replace symtab->filename refererences by
11693 symtab_to_filename_for_display calls.
11694 (line_info, forward_search_command): Replace symtab->filename
11695 refererences by symtab_to_filename_for_display calls.
11696 (reverse_search_command): Replace symtab->filename refererences by
11697 symtab_to_filename_for_display calls. New variable filename for it.
11698 * stack.c (frame_info): Likewise.
11699 * symmisc.c: Include source.h.
11700 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11701 (maintenance_info_symtabs): Replace symtab->filename refererences by
11702 symtab_to_filename_for_display calls.
11703 * symtab.c (iterate_over_some_symtabs): Call
11704 compare_filenames_for_search also with symtab_to_fullname.
11705 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11706 symtab->filename refererences by symtab_to_filename_for_display calls.
11707 (find_line_symtab): Replace symtab->filename refererences by
11708 symtab_to_filename_for_display calls.
11709 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11710 (print_symbol_info): Make the last parameter const char *. New
11711 variable s_filename. Use it in the function.
11712 (symtab_symbol_info): Make the last_filename variable const char *.
11713 Replace symtab->filename refererences by symtab_to_filename_for_display
11714 calls.
11715 (rbreak_command): New variable fullname. Use it. Replace
11716 symtab->filename refererence by symtab_to_filename_for_display call.
11717 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11718 (print_one_static_tracepoint_marker): Replace symtab->filename
11719 refererences by symtab_to_filename_for_display calls.
11720 * tui/tui-source.c (tui_set_source_content): New variables filename and
11721 s_filename. Replace symtab->filename refererences by this variable.
11722 Replace other symtab->filename refererences by
11723 symtab_to_filename_for_display calls.
11724
1b56eb55
JK
117252013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11726 Jan Kratochvil <jan.kratochvil@redhat.com>
11727
11728 Add a new variable that controls a way in which filenames are
11729 displayed.
11730 * NEWS (set filename-display): New entry.
11731 * source.c (filename_display_basename, filename_display_relative)
11732 (filename_display_absolute, filename_display_kind_names)
11733 (filename_display_string, show_filename_display_string)
11734 (symtab_to_filename_for_display): New.
11735 (_initialize_source): Added initialization of 'filename-display'
11736 variable.
11737 * source.h (symtab_to_filename_for_display): Added declaration.
11738 * stack.c (print_frame): Added new variable and calling of a new
11739 function and condition with this variable. Changed third argument of
11740 calling of a function.
11741
aa079c93
JK
117422013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11743
11744 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11745 Rename field reference filename to fullname.
11746 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11747 fullname. New comment for it.
11748 * tui/tui-source.c (tui_set_source_content): Rename field reference
11749 filename to fullname. Initialize field by symtab_to_fullname now.
11750 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11751 reference filename to fullname. Use symtab_to_fullname during
11752 comparison.
11753
652a8996
JK
117542013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11755
11756 Code cleanup.
11757 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11758 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11759 filename to fullname. Rename variable this_name to this_fullname.
11760 Lowercase FILENAME_CMP call.
11761 (dw2_find_symbol_file): New comment for the returned string.
11762 (dwarf2_gdb_index_functions): Rename the function to
11763 dw2_expand_symtabs_with_fullname.
11764 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11765 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11766 fullname.
11767 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11768 * symfile.h (struct quick_symbol_functions): Rename field
11769 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11770 parameter filename to fullname. Document returned string meaning for
11771 find_symbol_file.
11772 * symtab.c (find_line_symtab): Rename the called function to
11773 expand_symtabs_with_fullname.
11774
af529f8f
JK
117752013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11776
11777 Code cleanup.
11778 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11779 call of filename_cmp with compare_filenames_for_search.
11780 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11781 is_abs, unify the call of FILENAME_CMP with
11782 compare_filenames_for_search. New gdb_asserts for real_path and name.
11783 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11784 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11785 * symfile.h (struct quick_symbol_functions): Extend the comment for
11786 map_symtabs_matching_filename.
11787 * symtab.c (compare_filenames_for_search): Remove the function comment
11788 relative path requirement. Handle absolute filenames, with a comment.
11789 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11790 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11791 real_path and name. Unify the call of compare_filenames_for_search
11792 with FILENAME_CMP.
11793 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11794
2f202fde
JK
117952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11796
11797 Code cleanup.
11798 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11799 source_file references by symtab field references. Remove variables
11800 sal and fullname.
11801 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11802 (clear_command, say_where): Replace bp_location field source_file
11803 references by symtab field references.
11804 (bp_location_dtor): Remove the source_file reference.
11805 (update_static_tracepoint): Replace bp_location field source_file
11806 references by symtab field references.
11807 (breakpoint_free_objfile): New function.
11808 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11809 Replace the field source_file by field symtab, extend its comment.
11810 (breakpoint_free_objfile): New declaration.
11811 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11812 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11813 field source_file references by symtab field references.
11814
f5b95b50
JK
118152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11816
11817 Replace xfullpath calls by gdb_realpath calls.
11818 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11819 function comment.
11820 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11821 Remove it from the iterate_over_some_symtabs call.
11822 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11823 Remove it from the dw2_map_expand_apply calls, remove a block handling
11824 it.
11825 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11826 Remove it from the iterate_over_some_symtabs call.
11827 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11828 Remove it from the partial_map_expand_apply calls, remove a block
11829 handling it. Drop gdb_realpath call and cleanups from the real_path
11830 handling.
11831 * source.c (openp): Drop the comment part about xfullpath. Replace
11832 xfullpath calls by gdb_realpath calls.
11833 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11834 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11835 from method map_symtabs_matching_filename and its comment.
11836 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11837 gdb_realpath call.
11838 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11839 remove it also from the function comment, remove a block handling it.
11840 Drop gdb_realpath call and cleanups from the real_path handling.
11841 (iterate_over_symtabs): Drop variable full_path and its use.
11842 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11843 * utils.c (xfullpath): Remove.
11844 * utils.h (xfullpath): Remove.
11845
d78489bf
AT
118462013-02-01 Andreas Tobler <andreast@fgznet.ch>
11847
11848 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11849 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11850 (ALLDEPFILES): Add ppc64-tdep.c.
11851 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11852 ppc64-tdep.o to gdb_target_obs.
11853 * ppc64-tdep.h: New file.
11854 * ppc64-tdep.c: New file.
11855 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11856 ppc-linux-tdep.c to here.
11857 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11858 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11859 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11860 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11861 from ppc-linux-tdep.c to here.
11862 (ppc64_convert_from_func_ptr_addr): Rename from
11863 ppc64_linux_convert_from_func_ptr_addr to
11864 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11865 here.
11866 * rs6000-tdep.c:
11867 (read_insn): Move from ppc-linux-tdep.c to here.
11868 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11869 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11870 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11871 Removed above functions.
11872 (ppc_linux_init_abi): Adjust.
11873
8db60374
AR
118742013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11875
11876 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11877
f2e5f4ce
AR
118782013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11879
11880 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11881
c1f7d745
PA
118822013-02-01 Pedro Alves <palves@redhat.com>
11883
11884 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11885 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11886
8a92335b
JK
118872013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11888
11889 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11890 files with no separate debug info.
11891 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11892 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11893 only for files with no separate debug info.
11894
8eacb197
TT
118952013-01-31 Tom Tromey <tromey@redhat.com>
11896
11897 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11898 change type.
11899 (struct jit_program_space_data): Rename from jit_inferior_data.
11900 Update comments.
11901 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11902 Change return type. Attach data to program space.
11903 (jit_program_space_data_cleanup): Rename from
11904 jit_inferior_data_cleanup; change argument type.
11905 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11906 change type.
11907 (jit_register_code): Update.
11908 (jit_update_inferior_cache): Remove.
11909 (jit_breakpoint_deleted): Get jit data from the location's program
11910 space.
11911 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11912 'ps_data', change type.
11913 (jit_inferior_init, jit_breakpoint_re_set_internal)
11914 (jit_event_handler): Update.
11915 (free_objfile_data): Get data from objfile's program space.
11916 (_initialize_jit): Update.
11917
f25c0135
TT
119182013-01-31 Tom Tromey <tromey@redhat.com>
11919
11920 PR gdb/13987:
11921 * jit.c (struct jit_inferior_data) <cached_code_address,
11922 jit_breakpoint>: New fields.
11923 (jit_breakpoint_re_set_internal): Fix logging. Only create
11924 breakpoint if cached address has changed.
11925 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11926 functions.
11927 (_initialize_jit): Register breakpoint deleted observer.
11928
974a734b
AR
119292013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11930
11931 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11932 (save_infcall_suspend_state): Ifdef out unused inf.
11933 (restore_infcall_suspend_state): Ifdef out unused inf.
11934 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11935 (jit_frame_sniffer): Remove unused inf_data.
11936
df54f8eb
AR
119372013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11938
11939 * c-exp.y (classify_inner_name): Remove unused type.
11940 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11941 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11942 need_escape.
11943 (c_get_string): Remove unused kind.
11944 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11945
5799c0b9
AR
119462013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11947
11948 * charset.c (intermediate_encoding): Remove unused i.
11949 * completer.c (signal_completer): Remove unused i.
11950 * continuations.c (discard_my_continuations_1): Remove unused
11951 continuation_ptr.
11952 * corelow.c (core_close): Remove unuseD name.
11953 (get_core_siginfo): Remove unused pid.
11954 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11955 i, cps.
11956 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11957 (loclist_describe_location): Remove unused first.
11958 * event-top.c (command_line_handler): Remove unused got_eof.
11959 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11960 (resize_section_table): Remove unused old_value.
11961 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11962 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11963 * i386-tdep.c (i386_process_record): Remove unused rex.
11964 * infcmd.c (get_return_value): Remove unused uiout.
11965 * jv-lang.c (type_from_class): Remove unused is_array.
11966 * jv-valprint.c (java_val_print): Remove unused i.
11967 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11968 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11969 * m2-typeprint.c (m2_print_type): Remove unused code.
11970 * macroexp.c (get_character_constant): Remove unused body_start.
11971 (macro_stringify): Remove unused result.
11972 * objc-lang.c (find_methods): Remove unused gdbarch.
11973 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11974 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11975 * stack.c (print_frame_args): Remove unused summary.
11976 * thread.c (thread_apply_command): Remove unused p.
11977 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11978 * valops.c (search_struct_method): Remove unused skip.
11979 * valprint.c (generic_val_print): Remove unused byte_order.
11980 * varobj.c (varobj_update): Remove unused changed.
11981 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11982 (alias_command): Remove unused c.
11983 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11984 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11985 format.
11986 (mi_cmd_data_write_memory): Remove unused word_format.
11987 (mi_cmd_data_write_memory_bytes): Remove unused r.
11988 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11989 p_start, p_end.
11990 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11991 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11992 line_width.
11993
c656bca5
AR
119942013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11995
11996 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11997 * symtab.c (iterate_over_symtabs): Remove unused s.
11998 (find_pc_sect_symtab): Remove unused pspAce.
11999 (find_pc_sect_line): Remove unused alt_symtab.
12000 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12001 (completion_list_add_name): Remove unused newsize.
12002
7078baeb
TT
120032013-01-31 Tom Tromey <tromey@redhat.com>
12004
12005 PR c++/14998:
12006 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12007 TYPE_CODE_FUNC.
12008
c2e8b827
AR
120092013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12010
12011 * target.c (target_read_string): Remove unused origlen.
12012
0e43993a
AR
120132013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12014
12015 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12016 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12017 * ax-general.c (ax_print): Remove unused is_float.
12018 * blockframe.c (block_innermost_frame): Remove unused start, end.
12019 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12020
765a97ab
AR
120212013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12022
12023 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12024 (svr4_read_so_list): Remove unused lmo.
12025 * solib-target.c (solib_target_relocate_section_addresses): Remove
12026 unused flags.
12027
a99dad3d
TT
120282013-01-30 Tom Tromey <tromey@redhat.com>
12029
12030 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12031
3bff1ecd
TT
120322013-01-30 Tom Tromey <tromey@redhat.com>
12033
12034 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12035 * utils.c (gnu_debuglink_crc32): Remove.
12036 * utils.h (gnu_debuglink_crc32): Don't declare.
12037
7d455152
TT
120382013-01-30 Tom Tromey <tromey@redhat.com>
12039
12040 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12041 (read_structure_type, read_enumeration_type): Remove cast.
12042
abee88f2
TT
120432013-01-30 Tom Tromey <tromey@redhat.com>
12044
12045 * dwarf2read.c (read_namespace_type): Remove cast.
12046 (read_typedef): Likewise.
12047
8d9878a4
TT
120482013-01-29 Tom Tromey <tromey@redhat.com>
12049
12050 * dwarf2read.c (free_dwo_file): Remove assert.
12051
a543d2a9
TT
120522013-01-29 Tom Tromey <tromey@redhat.com>
12053
12054 * value.c (deprecated_set_value_modifiable): Remove.
12055 * value.h (deprecated_set_value_modifiable): Remove.
12056
bed911e5
DE
120572013-01-28 Doug Evans <dje@google.com>
12058
12059 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12060 to addresses from dwo files.
12061
28c64fc2
SCR
120622013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12063
12064 * valops.c (find_overload_match): Remove unused argument 'lax'.
12065 * value.h: Remove unused argument 'lax' from the declaration of
12066 find_overload_match.
12067 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12068 to find_overload_match.
12069 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12070 argument to find_overload_match.
12071
4d4ec4e5
TT
120722013-01-25 Tom Tromey <tromey@redhat.com>
12073
12074 * dwarf2read.c (processing_has_namespace_info): Remove.
12075 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12076 (process_die, read_func_scope, dwarf2_start_symtab)
12077 (new_symbol_full): Update.
12078
195a3f6c
TT
120792013-01-25 Tom Tromey <tromey@redhat.com>
12080
12081 * cp-namespace.c (cp_set_block_scope): Remove.
12082 * cp-support.h (cp_set_block_scope): Remove.
12083 * dbxread.c: Include block.h.
12084 (cp_set_block_scope): New function.
12085 (process_one_symbol): Update.
12086 * dwarf2read.c (read_func_scope): Use block_set_scope.
12087
8ba0730a
PA
120882013-01-25 Pedro Alves <palves@redhat.com>
12089
12090 * remote.c (add_current_inferior_and_thread): Tweak comment.
12091
12aaed36
TT
120922013-01-25 Tom Tromey <tromey@redhat.com>
12093
12094 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12095 (cp_add_using_directive): Add 'copy_names' argument.
12096 * cp-support.h (cp_add_using_directive): Update.
12097 (struct using_direct) <import_src, import_dest, alias,
12098 declaration>: Now const.
12099 * dwarf2read.c (read_import_statement): Use obconcat.
12100 Don't copy names passed to cp_add_using_directive.
12101
7fc75ca7
TT
121022013-01-25 Tom Tromey <tromey@redhat.com>
12103
12104 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12105
3405876a
PA
121062013-01-25 Pedro Alves <palves@redhat.com>
12107
12108 * remote.c (stop_reply_extract_thread): New.
12109 (add_current_inferior_and_thread): New parameter 'wait_status'.
12110 Handle it.
12111 (remote_start_remote): Pass wait status to
12112 add_current_inferior_and_thread.
12113 (extended_remote_run): Update comment.
12114 (extended_remote_create_inferior_1): Pass wait status to
12115 add_current_inferior_and_thread.
12116
8954db33
AB
121172013-01-25 Andrew Burgess <aburgess@broadcom.com>
12118 Ulrich Weigand <uweigand@de.ibm.com>
12119
12120 * valarith.c (value_vector_widen): New function for replicating a
12121 scalar into a vector.
12122 (value_binop): Use value_vector_widen to widen scalar to vector
12123 rather than casting, this better matches gcc C behaviour.
12124 * valops.c (value_casst): Update logic for casting between vector
12125 types, and for casting from scalar to vector, try to match gcc C
12126 behaviour.
12127 * value.h (value_vector_widen): Declare.
12128 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12129 function, handle special case for casting scalar to vector.
12130 (opencl_relop): Use opencl_value_cast.
12131 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12132 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12133 in order to use opencl_value_cast.
12134
843b20dc
YQ
121352013-01-25 Yao Qi <yao@codesourcery.com>
12136
12137 * event-loop.c: Include "queue.h".
12138 (gdb_event_p): New typedef.
12139 (DECLARE_QUEUE_P): Use.
12140 (DEFINE_QUEUE_P): Use.
12141 (async_queue_event): Remove.
12142 (gdb_event_xfree): New.
12143 (initialize_event_loop): New.
12144 (process_event): Use QUEUE macros.
12145 (event_queue): Remove.
12146 (gdb_wait_for_event): Caller update.
12147 (check_async_event_handlers): Likewise.
12148 (poll_timers): Likewise.
12149 * event-loop.h (initialize_event_loop): Declare.
12150 * event-loop.c (gdb_event_xfree): New.
12151 * top.c (gdb_init): Call initialize_event_loop.
12152
20ad8856
YQ
121532013-01-25 Yao Qi <yao@codesourcery.com>
12154
12155 * event-loop.c (async_queue_event): Remove one parameter
12156 'position'. Remove code handling 'position' == TAIL.
12157 (gdb_wait_for_event): Caller update.
12158 (check_async_event_handlers): Caller update.
12159 (poll_timers): Caller update.
12160 * event-loop.h (enum queue_position): Remove.
12161
3bbbe775
MK
121622013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12163
12164 * MAINTAINERS: Update my email.
12165
a87d9ac4
YQ
121662013-01-25 Yao Qi <yao@codesourcery.com>
12167
12168 * main.c (print_gdb_help): Remove "--epoch" from the help
12169 message.
12170
2077afdd
TD
121712013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12172
12173 * symtab.c (skip_prologue_using_sal): Consider a file
12174 change the same as an increased line number
12175
63da4037
TD
121762013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12177
30e8ee25 12178 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12179
45e6c716
TT
121802013-01-24 Tom Tromey <tromey@redhat.com>
12181
12182 * ada-lang.h (ada_decode_symbol): Make return type const.
12183 * ada-lang.c (ada_decode_symbol): Likewise.
12184
b1ae631a
DE
121852013-01-23 Doug Evans <dje@google.com>
12186
12187 * linespec.c (find_linespec_symbols): Make static.
12188
55a78401
SDJ
121892013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12190
12191 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12192 type on float conversion for complex type.
12193
bea883fd
SCR
121942013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12195
12196 Add a new class gdb.Architecture which exposes GDB's
12197 internal representation of architecture via GDB Python API.
12198 * Makefile.in: Add entries corresponding to the new file
12199 python/py-arch.c.
12200 * NEWS (Python Scripting): Add entries for the new class
12201 gdb.Architecture and the new method gdb.Frame.architecture.
12202 * python/py-arch.c: Implement gdb.Architecture class.
12203 * python/py-frame.c (frapy_arch): Implement the method
12204 gdb.Frame.architecture().
12205 (frame_object_methods): Add 'architecture' to the method table.
12206 * python/python-internal.h: Add declarations of new utility
12207 functions.
12208 * python/python.c (_initialize_python): Initialize
12209 gdb.Architecture class.
12210
796a7ff8
DE
122112013-01-23 Doug Evans <dje@google.com>
12212
12213 Work around binutils/15021.
12214 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12215 type_unit_group out of union s. All uses updated.
12216 (read_index_from_section): Watch for index version 8.
12217 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12218 an imported symtab.
12219 (write_psymtabs_to_index): Increment version number to 8.
12220
0928e93d
PA
122212013-01-22 Pedro Alves <palves@redhat.com>
12222
12223 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12224 user-visible.
12225
9c97429f
PA
122262013-01-22 Pedro Alves <palves@redhat.com>
12227
12228 * annotate.c (annotate_breakpoints_changed): Rename to ...
12229 (annotate_breakpoints_invalid): ... this. Make static.
12230 (breakpoint_changed): Adjust.
12231 (_initialize_annotate): Always install the observers. Install a
12232 "breakpoint_created" observer.
12233 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12234 * breakpoint.c (set_breakpoint_condition)
12235 (breakpoint_set_commands, do_map_commands_command)
12236 (init_raw_breakpoint, clear_command, set_ignore_count)
12237 (enable_breakpoint_disp): No longer call
12238 annotate_breakpoints_changed.
12239
bd00c694
PA
122402013-01-22 Pedro Alves <palves@redhat.com>
12241
12242 * annotate.c: Include "inferior.h".
12243 (frames_invalid_emitted)
12244 (breakpoints_invalid_emitted): New globals.
12245 (async_background_execution_p): New function.
12246 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12247 emitting the annotation if it has already been emitted.
12248 (annotate_display_prompt): New function.
12249 * annotate.h (annotate_display_prompt): New declaration.
12250 * event-top.c: Include annotate.h.
12251 (display_gdb_prompt): Call annotate_display_prompt.
12252
187d10dd
PA
122532013-01-22 Pedro Alves <palves@redhat.com>
12254
12255 * annotate.c (ignore_count_changed): Delete.
12256 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12257 (annotate_ignore_count_change): Delete.
12258 (annotate_stopped): Don't emit a delayed breakpoints-changed
12259 annotation.
12260 * annotate.h (annotate_ignore_count_change): Delete.
12261 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12262 annotate_ignore_count_change.
12263
d84cf7eb
TT
122642013-01-22 Tom Tromey <tromey@redhat.com>
12265
12266 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12267 require_rvalue for a register location.
12268
8f1d5693
MK
122692013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12270
12271 * breakpoint.c (print_one_breakpoint_location): Add MI
12272 field 'thread-groups' when printing a breakpoint.
12273 (output_thread_groups): New function.
12274
aa6199c6
SCR
122752013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12276
12277 * python/lib/gdb/commands/explore.py
12278 (CompoundExplorer.explore_expr): Correct the name of a method
12279 being invoked.
12280 (ExploreTypeCommand.invoke): Add a missing 'return'.
12281
d2afef13
TT
122822013-01-21 Tom Tromey <tromey@redhat.com>
12283
12284 * gdb_obstack.h (obconcat): Move declaration here, from...
12285 * symfile.h (obconcat): ... here.
12286 * gdb_obstack.c: New file.
12287 (obconcat): Move from...
12288 * symfile.c (obconcat): ... here.
12289 * Makefile.in (SFILES): Add gdb_obstack.c.
12290 (COMMON_OBS): Add gdb_obstack.o.
12291
10f0c4bb
TT
122922013-01-21 Tom Tromey <tromey@redhat.com>
12293
12294 * symfile.h (obsavestring): Don't declare.
12295 * symfile.c (obsavestring): Remove.
12296 * ada-exp.y: Use obstack_copy0, not obsavestring.
12297 * ada-lang.c: Use obstack_copy0, not obsavestring.
12298 * coffread.c: Use obstack_copy0, not obsavestring.
12299 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12300 * dbxread.c: Use obstack_copy0, not obsavestring.
12301 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12302 * jit.c: Use obstack_copy0, not obsavestring.
12303 * mdebugread.c: Use obstack_copy0, not obsavestring.
12304 * psymtab.c: Use obstack_copy0, not obsavestring.
12305 * stabsread.c: Use obstack_copy0, not obsavestring.
12306 * xcoffread.c: Use obstack_copy0, not obsavestring.
12307
86f62fd7
TT
123082013-01-21 Tom Tromey <tromey@redhat.com>
12309
12310 * dwarf2read.c (fixup_go_packaging): Save package name
12311 on objfile obstack.
12312 * gdbtypes.c (init_type): Don't copy name.
12313
15d034d0
TT
123142013-01-21 Tom Tromey <tromey@redhat.com>
12315
12316 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12317 const.
12318 (struct attribute) <u.str>: Now const.
12319 (struct fnfieldlist) <name>: Now const.
12320 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12321 (partial_die_parent_scope): Make return type const.
12322 (partial_die_full_name, add_partial_symbol): Update.
12323 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12324 'name' const.
12325 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12326 (read_file_scope, read_func_scope, dwarf2_add_field)
12327 (dwarf2_add_member_fn, read_structure_type)
12328 (process_enumeration_scope, read_array_type, read_module_type)
12329 (read_base_type, read_subrange_type): Update.
12330 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12331 (new_symbol_full, guess_full_die_structure_name): Update.
12332 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12333 (dwarf2_name): Return const type.
12334 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12335 const.
12336
748e18ae
TT
123372013-01-21 Tom Tromey <tromey@redhat.com>
12338
12339 * gdbtypes.c (init_type): Make 'name' const.
12340 * gdbtypes.h (init_type): Update.
12341
46212e0b
TT
123422013-01-21 Tom Tromey <tromey@redhat.com>
12343
12344 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12345 (start_symtab): Make 'name' and 'dirname' const. Use
12346 set_last_source_file.
12347 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12348 (last_source_file): Define. Now static.
12349 (set_last_source_file, get_last_source_file): New functions.
12350 * buildsym.h (last_source_file): Don't declare.
12351 (start_symtab): Update.
12352 (set_last_source_file, get_last_source_file): Declare.
12353 * coffread.c (complete_symtab): Use set_last_source_file.
12354 (coff_end_symtab): Likewise.
12355 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12356 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12357 set_last_source_file.
12358 (process_one_symbol): Use get_last_source_file.
12359 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12360 (psymtab_to_symtab_1): Use get_last_source_file.
12361 * xcoffread.c (process_linenos): Use get_last_source_file.
12362 (complete_symtab): Use set_last_source_file.
12363 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12364 (scan_xcoff_symtab): Use set_last_source_file.
12365
9d2ceabe
TT
123662013-01-21 Tom Tromey <tromey@redhat.com>
12367
12368 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12369 (symbol_set_names): Remove casts. Handle field const-ness.
12370
cfc594ee
TT
123712013-01-21 Tom Tromey <tromey@redhat.com>
12372
12373 * dwarf2read.c (new_symbol_full): Remove cast.
12374 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12375 * symtab.h (symbol_set_demangled_name): Update.
12376
5484b13a
TT
123772013-01-21 Tom Tromey <tromey@redhat.com>
12378
12379 * main.c (captured_main): Call bfd_init.
12380
1605ef26
TT
123812013-01-21 Tom Tromey <tromey@redhat.com>
12382
12383 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12384 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12385 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12386 * NEWS: Update.
12387
3b74cdc3
JK
123882013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12389
12390 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12391
5a352474
JK
123922013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12393
12394 Fix gdb.fortran/common-block.exp crash in PIE mode.
12395 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12396 LOC_COMMON_BLOCK.
12397 * f-valprint.c (info_common_command_for_block): Expect
12398 LOC_COMMON_BLOCK in gdb_assert.
12399 * symtab.h (struct general_symbol_info): Update comment for the
12400 common_block member.
12401 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12402 (enum address_class): New member LOC_COMMON_BLOCK.
12403
c60797fd
DB
124042013-01-18 David Blaikie <dblaikie@gmail.com>
12405
12406 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12407
46f35228
TT
124082013-01-18 Tom Tromey <tromey@redhat.com>
12409
12410 PR c++/14999:
12411 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12412 Call require_rvalue.
12413
257e7a09
YQ
124142013-01-18 Yao Qi <yao@codesourcery.com>
12415
12416 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12417 (dbx_read_symtab): New declaration.
12418 (dbx_psymtab_to_symtab): Delete.
12419 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12420 Rename parameter PST to SELF. Exchanged two parameters.
12421 (start_psymtab): Caller update.
12422 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12423 (dwarf2_read_symtab): New declaration.
12424 (dwarf2_psymtab_to_symtab): Delete.
12425 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12426 Rename parameter PST to SELF. Exchanged two parameters.
12427 (create_partial_symtab): Caller update.
12428 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12429 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12430 Rename parameter PST to SELF. Exchanged two parameters.
12431 (parse_partial_symbols, new_psymtab): Caller update.
12432 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12433 two parameters.
12434 * psymtab.c (psymtab_to_symtab): Caller update.
12435 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12436 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12437 Rename parameter PST to SELF. Exchanged two parameters.
12438 (xcoff_start_psymtab): Caller update.
12439
0de5618e
YQ
124402013-01-18 Yao Qi <yao@codesourcery.com>
12441
12442 * infrun.c (proceed): Rename local variable 'oneproc' to
12443 'force_step'.
12444
5c04624b
DE
124452013-01-17 Doug Evans <dje@google.com>
12446
848e3e78
DE
12447 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12448 (dw2_build_type_unit_groups): Delete. All uses updated.
12449
5c04624b
DE
12450 * symtab.h (struct symbol_search): Add comment.
12451
d84fca2c
JK
124522013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12453
12454 * symtab.c (compare_filenames_for_search): New comment for
12455 HAS_DRIVE_SPEC.
12456
6108433d
TT
124572013-01-17 Tom Tromey <tromey@redhat.com>
12458
12459 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12460
c89ffd86
JK
124612013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12462
12463 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12464 initialize it by existing make_cleanup. Call new do_cleanups.
12465
db2b2972
TT
124662013-01-17 Tom Tromey <tromey@redhat.com>
12467
12468 * cp-abi.c (cp_abi_completer): New function.
12469 (_initialize_cp_abi): Set completer for "set cp-abi".
12470
be7d37a2
TT
124712013-01-17 Tom Tromey <tromey@redhat.com>
12472
12473 * mem-break.c: Remove obsolete comment.
12474 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12475
c9fb1240
SD
124762012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12477
12478 * jit.c (jit_reader_load_command): Interpret the jit reader name
12479 as an absolute path if it begins with a forward slash.
12480
db334a01
SD
124812012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12482
12483 PR gdb/14550
12484
12485 * jit.c (finalize_symtab): Ensure that only the global block has a
12486 NULL superblock.
12487
7d928dac
PA
124882013-01-17 Pedro Alves <palves@redhat.com>
12489
12490 * acinclude.m4: Include ../config/plugins.m4,
12491 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12492 * Makefile.in (aclocal_m4_deps): Update.
12493 * aclocal.m4: Renegerate.
12494
fb8cf7c5
DE
124952013-01-16 Doug Evans <dje@google.com>
12496
12497 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12498
ab04a2af
TT
124992013-01-16 Pedro Alves <palves@redhat.com>
12500 Tom Tromey <tromey@redhat.com>
12501
12502 PR cli/7221:
12503 * NEWS: Add "catch signal".
12504 * breakpoint.c (base_breakpoint_ops): No longer static.
12505 (bpstat_explains_signal): New function.
12506 (init_catchpoint): No longer static.
12507 (base_breakpoint_explains_signal): New function.
12508 (base_breakpoint_ops): Initialize new field.
12509 * breakpoint.h (enum bpstat_signal_value): New.
12510 (struct breakpoint_ops) <explains_signal>: New field.
12511 (bpstat_explains_signal): Remove macro, declare as function.
12512 (base_breakpoint_ops, init_catchpoint): Declare.
12513 * break-catch-sig.c: New file.
12514 * inferior.h (signal_catch_update): Declare.
12515 * infrun.c (signal_catch): New global.
12516 (handle_syscall_event): Update for change to
12517 bpstat_explains_signal.
12518 (handle_inferior_event): Likewise. Always handle random signals
12519 via bpstats.
12520 (signal_cache_update): Check signal_catch.
12521 (signal_catch_update): New function.
12522 (_initialize_infrun): Initialize signal_catch.
12523 * Makefile.in (SFILES): Add break-catch-sig.c.
12524 (COMMON_OBS): Add break-catch-sig.o.
12525
8ac3646f
TT
125262013-01-16 Tom Tromey <tromey@redhat.com>
12527
12528 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12529 (print_one_catch_solib, print_one_catch_syscall)
12530 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12531 "catch-type".
12532
5a18e302
YQ
125332013-01-16 Yao Qi <yao@codesourcery.com>
12534
12535 * printcmd.c (current_display_number): Make it static.
12536
3f01d0d0
YQ
125372013-01-16 Yao Qi <yao@codesourcery.com>
12538
12539 * infcmd.c (step_once): Don't check '!single_inst' as it was
12540 checked before.
12541
1ed59174
JK
125422013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12543
12544 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12545
44478ab3
TT
125462013-01-14 Tom Tromey <tromey@redhat.com>
12547
12548 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12549 set command.
12550 * command.h (add_setshow_string_noescape_cmd): Update.
12551 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12552 (complete_set_gnutarget): New function.
12553 (_initialize_core): Set the "set gnutarget" completer.
12554
06d66ee9
TT
125552013-01-14 Tom Tromey <tromey@redhat.com>
12556
12557 PR symtab/14442:
12558 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12559 (c_type_print_modifier): Likewise.
12560 * dwarf2read.c (read_tag_restrict_type): New function.
12561 (read_type_die_1): Handle DW_TAG_restrict_type.
12562 * gdbtypes.c (make_restrict_type): New function.
12563 (recursive_dump_type): Handle TYPE_RESTRICT.
12564 * gdbtypes.h (enum type_flag_values): Renumber.
12565 (enum type_instance_flag_value): Add
12566 TYPE_INSTANCE_FLAG_RESTRICT.
12567 (TYPE_RESTRICT): New macro.
12568 (make_restrict_type): Declare.
12569
c9bf0622
TT
125702013-01-14 Tom Tromey <tromey@redhat.com>
12571
12572 PR symtab/14931:
12573 * psymtab.c (struct psymtab_state): New.
12574 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12575 functions.
12576 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12577 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12578
44d594fd
PA
125792013-01-14 Richard Sharman <richard_sharman@mitel.com>
12580 Pedro Alves <palves@redhat.com>
12581
12582 PR remote/14786
12583
12584 * remote.c (remote_threads_info): Make a copy of the reply from
12585 qfThreadInfo and use that instead of rs->buf.
12586
442e4d9c
YQ
125872013-01-14 Yao Qi <yao@codesourcery.com>
12588
12589 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12590 (dbx_psymtab_to_symtab): Likewise.
12591 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12592 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12593 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12594
5b12a61c
JK
125952013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12596
12597 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12598 make_cleanup_restore_current_language. Call set_language. Move
12599 OLD_CHAIN and INNER_CHAIN cleanups.
12600 * utils.c (do_restore_current_language)
12601 (make_cleanup_restore_current_language): New functions.
12602 * utils.h (make_cleanup_restore_current_language): New declaration.
12603
f0a4b570
JK
126042013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12605
12606 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12607 non-existing files.
12608
57b3c00c
JK
12609 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12610 non-existing files if FILENAME is already absolute.
12611
daefa854
JK
126122013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12613
12614 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12615 fputs_filtered. Append trailing newline.
12616
ca9c6ee2
YQ
126172013-01-11 Yao Qi <yao@codesourcery.com>
12618 Stan Shebs <stan@codesourcery.com>
12619
12620 * psymtab.c (init_psymbol_list): Clarify the comment.
12621
f28045c2
YQ
126222013-01-11 Yao Qi <yao@codesourcery.com>
12623
12624 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12625 (update_dprintf_command_list): Assert that 'printf_line' is
12626 non-null. Remove condition check.
12627
da5132d3
JK
126282013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12629
12630 Code cleanup.
12631 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12632 type const char *.
12633 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12634 const char *.
12635 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12636
843e694d
AG
126372013-01-09 Anthony Green <green@moxielogic.com>
12638
12639 * cp-abi.c (cplus_print_vtable): Don't return value from void
12640 function.
12641 * ada-lang.c (re_set_catch_assert): Ditto.
12642
da51c347
DE
126432013-01-09 Doug Evans <dje@google.com>
12644
12645 * symfile.h (quick_symbol_functions): Delete member
12646 pre_expand_symtabs_matching. All uses removed.
12647 * dwarf2read.c (dw2_lookup_symbol): Implement.
12648 (dw2_do_expand_symtabs_matching): Delete.
12649 (dw2_pre_expand_symtabs_matching): Delete.
12650 (struct dw2_symtab_iterator): New type.
12651 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12652 (dw2_expand_symtabs_for_function): Rewrite.
12653 (dwarf2_gdb_index_functions): Update.
12654 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12655 (psym_functions): Update.
12656
b2259038
TT
126572013-01-09 Tom Tromey <tromey@redhat.com>
12658
12659 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12660 * configure: Rebuild.
12661 * configure.ac: Add somread.o to the build if BFD has SOM
12662 support.
12663 * somread.c: Include som/aout.h, not syms.h.
12664 (som_symtab_read): Use som_external_symbol_dictionary_record.
12665 Unpack records manually.
12666 (_initialize_somread): Declare.
12667
bdad4180
MF
126682012-01-08 Mike Frysinger <vapier@gentoo.org>
12669
12670 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12671 Cast return_address to 64bits.
12672
03cdf680
HZ
126732013-01-08 Hui Zhu <hui_zhu@mentor.com>
12674
12675 * printcmd.c: Remove define of function output_command.
12676 * tracepoint.c: Remove extern of function output_command.
12677 * valprint.h: (output_command): New extern.
12678
8a808554
TT
126792013-01-07 Tom Tromey <tromey@redhat.com>
12680
12681 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12682 Remove.
12683 (objc_language_defn): Use c_printchar, c_printstr,
12684 c_emit_char.
12685
e93a8774
TT
126862013-01-07 Tom Tromey <tromey@redhat.com>
12687
12688 PR cli/7719:
12689 * NEWS: Update.
12690 * ada-valprint.c (printstr, print_field_values): Remove
12691 "inspect_it" code.
12692 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12693 code.
12694 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12695 code.
12696 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12697 * main.c (captured_main): Remove "epoch" argument.
12698 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12699 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12700 * p-valprint.c (pascal_object_print_value_fields): Remove
12701 "inspect_it" code.
12702 * printcmd.c (print_command_1): Remove 'inspect' argument.
12703 (print_command, call_command): Update.
12704 (inspect_command): Remove.
12705 (_initialize_printcmd): Make "inspect" an alias for "print".
12706 * top.c (epoch_interface): Remove.
12707 * top.h (epoch_interface): Remove.
12708 * valprint.c (user_print_options): Update.
12709 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12710 * valprint.h (struct value_print_options) <inspect_it>: Remove
12711 field.
12712
127132013-01-04 Tom Tromey <tromey@redhat.com>
12714
12715 * valprint.h (read_string): Add 'extern'.
12716
b967eb24
JB
127172013-01-07 Joel Brobecker <brobecker@adacore.com>
12718
12719 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12720 used to decide whether to define darwin_read_dyld_info or not.
12721
78a8b30e
PM
127222013-01-03 Pierre Muller <muller@sourceware.org>
12723
12724 * main.c (relocate_gdb_directory): Avoid calling stat function
12725 if DIR is empty.
12726
50da2f25
YQ
127272013-01-03 Yao Qi <yao@codesourcery.com>
12728
12729 * psymtab.c (fixup_psymbol_section): Update declaration.
12730 (fixup_psymbol_section): Remove code returning value.
12731
e7e8980f
YQ
127322013-01-03 Yao Qi <yao@codesourcery.com>
12733
12734 * symtab.h: Remove some out of date comments.
12735 (enum exception_event_kind): Move it ...
12736 * breakpoint.c: ... here.
12737
569283d4
MF
127382013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12739
9f9d9a96 12740 PR gdb/14405
569283d4
MF
12741 * darwin-nat.c (darwin_read_dyld_info): Only build if
12742 TASK_DYLD_INFO_COUNT is defined.
12743 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12744 TASK_DYLD_INFO_COUNT is defined.
12745
2e36fbea
TT
127462013-01-02 Tom Tromey <tromey@redhat.com>
12747
12748 * symfile.h (struct ecoff_debug_hack): Remove.
12749 * objfiles.c: Don't include mdebugread.h.
12750
4f05add4
TT
127512013-01-02 Tom Tromey <tromey@redhat.com>
12752
12753 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12754 * configure.ac: Check for Mach-O support in BFD. Update
12755 CONFIG_OBS.
12756 * configure: Rebuild.
12757
def63ff0
TT
127582013-01-02 Tom Tromey <tromey@redhat.com>
12759
12760 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12761 * configure.ac: Use GDB_AC_CHECK_BFD.
12762 * configure: Rebuild.
12763
60c5dd93
MK
127642013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12765
12766 * MAINTAINERS: Update my email.
12767
6e58437e
JB
127682013-01-01 Joel Brobecker <brobecker@adacore.com>
12769
12770 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12771
627fe805
JB
127722013-01-01 Joel Brobecker <brobecker@adacore.com>
12773
12774 * rs6000-nat.c (bss_data_overlap): New function.
12775 (vmap_symtab): Use it to adjust the .bss section's offset.
12776
28e7fd62
JB
127772013-01-01 Joel Brobecker <brobecker@adacore.com>
12778
12779 Update year range in copyright notice of all files.
12780
e93a8774 127812013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12782
12783 * top.c (print_gdb_version): Update copyright year.
12784
72b20e9c 12785For older changes see ChangeLog-2012.
c906108c
SS
12786\f
12787Local Variables:
12788mode: change-log
12789left-margin: 8
12790fill-column: 74
12791version-control: never
57da7796 12792coding: utf-8
c906108c 12793End:
This page took 2.616271 seconds and 4 git commands to generate.