Rename breakpoint_object to gdbpy_breakpoint_object.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4cb0213d
DE
12013-11-28 Doug Evans <xdje42@gmail.com>
2
3 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
4 breakpoint_object. All uses updated.
5 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
6 breakpoint_object. All uses updated.
7 * python.c (*): All uses of breakpoint_object updated.
8 * python.h (*): All uses of breakpoint_object updated.
9 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
10 * python/py-finishbreakpoint.c (*): Ditto.
11
d344e670
DE
122013-11-28 Doug Evans <xdje42@gmail.com>
13
d729aae0 14 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
15 * configure: Regenerate.
16
eebc056c
AB
172013-11-28 Andrew Burgess <aburgess@broadcom.com>
18 Pedro Alves <palves@redhat.com>
19
20 * valprint.c (value_check_printable): If the value is entirely
21 unavailable, print a single "<unavailable>" instead of printing
22 all subfields.
23
a7300869
PA
242013-11-28 Pedro Alves <palves@redhat.com>
25
26 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
27 Add "set debug frame" output.
28 (frame_stop_reason_symbol_string): New function.
29
50fd528a
PA
302013-11-28 Pedro Alves <palves@redhat.com>
31
32 * frame-unwind.c (default_frame_unwind_stop_reason): Return
33 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
34 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
35
5de51581
PA
362013-11-28 Pedro Alves <palves@redhat.com>
37
38 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
39 set the unwind stop reason to UNWIND_OUTERMOST, not
40 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
41
739cb10c
PA
422013-11-28 Pedro Alves <palves@redhat.com>
43
44 * frame.c (frame_unwind_register): Say the register was "not
45 saved" instead of "optimized out".
46
514c0aa6 472013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 48
514c0aa6 49 PR 16152
92a021de 50 * configure: Rebuild.
514c0aa6 51 * configure.ac: Tighten cygwin detection check.
92a021de 52
908fa2aa
PA
532013-11-27 Pedro Alves <palves@redhat.com>
54
55 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
56 register in the previous frame's arch.
57
6bd273ae
PA
582013-11-27 Pedro Alves <palves@redhat.com>
59
60 * frame-unwind.c (frame_unwind_got_optimized): Return
61 an lval_register value instead of a not_lval value.
62
f6c01fc5
AB
632013-11-27 Andrew Burgess <aburgess@broadcom.com>
64
65 * frame.c: Include "valprint.h".
66 (frame_unwind_register_value): Use value_optimized_out.
67 * value.c (value_fetch_lazy): Likewise.
68
4f14910f
AB
692013-11-26 Andrew Burgess <aburgess@broadcom.com>
70
71 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
72
15859968
TT
732013-11-26 Tom Tromey <tromey@redhat.com>
74
75 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
76 2013-11-22.
77
244ec0da
WT
782013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
79
80 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
81 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
82 (HAS_MPX): New macro.
83 (HAS_AVX): New macro.
84 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
85
f7e3ecae
KS
862013-11-25 Keith Seitz <keiths@redhat.com>
87
88 PR c++/14819
89 * c-exp.y (classify_inner_name): If no matching symbol was
90 found, try looking up the token as a base class.
91 Likewise if a constructor was found.
92 * cp-namespace.c (find_type_baseclass_by_name): New function.
93 * cp-support.h (find_type_baseclass_by_name): Declare.
94 * valops.c (value_struct_elt_for_reference): If we get
95 a non-static field, try to get a value based on the
96 current instance, if any.
97
283f7163
YQ
982013-11-24 Yao Qi <yao@codesourcery.com>
99
100 * disasm.c (dis_asm_read_memory): Call target_read_code
101 instead of target_read_memory.
102
29453a14
YQ
1032013-11-24 Yao Qi <yao@codesourcery.com>
104
105 * NEWS: Add note on new "set code-cache" option.
106 * target-dcache.c (code_cache_enabled_1): New variable.
107 (code_cache_enabled): New variable.
108 (show_code_cache, set_code_cache): New function.
109 (code_cache_enabled_p): New function.
110 (_initialize_target_dcache): Register command.
111 * target-dcache.h (code_cache_enabled_p): Declare.
112 * target.c (memory_xfer_partial_1):Handle
113 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
114 (target_read_code): New function.
115 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
116 New.
117 (target_read_code): Declare.
118
0fb14d8f
YQ
1192013-11-24 Yao Qi <yao@codesourcery.com>
120
121 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
122 (stack_cache_enabled_1): ... this. New variable.
123 (stack_cache_enabled_p): Rename to ...
124 (stack_cache_enabled): ... this. New variable.
125 (set_stack_cache_enabled_p): Rename to ...
126 (set_stack_cache): ... this. Update caller.
127 (show_stack_cache_enabled_p): Rename to ...
128 (show_stack_cache): ... this. Update caller.
129 (stack_cache_enabled): Rename to ...
130 (stack_cache_enabled_p): ... this. Update caller.
131 (_initialize_target_dcache): Replace "data cache" with
132 "target memory cache".
133 * target-dcache.h (stack_cache_enabled): Remove declaration.
134 (stack_cache_enabled_p): Add declaration.
135
a12361b9
DE
1362013-11-23 Doug Evans <xdje42@gmail.com>
137
138 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
139 superfluous.
140
1e1d6920
DE
1412013-11-23 Doug Evans <xdje42@gmail.com>
142
143 * python/py-frame.c (frapy_block): Fix error message text.
144
1e9c71b8
DE
1452013-11-23 Doug Evans <xdje42@gmail.com>
146
147 * cli/cli-script.c (multi_line_command_p): New function.
148 (recurse_read_control_structure, read_command_lines_1): Call it.
149 (execute_control_command): Consistently have a blank line between
150 each case.
151
f380848e
SA
1522013-11-22 Sterling Augustine <saugustine@google.com>
153
38e1f2a7 154 PR gdb/16196:
f380848e
SA
155 * valprint.c (read_string): Set new variable fetchlen based on
156 fetchlimit and size. Use it in call to partial_memory_read.
157 Update comment.
158
da2b2fdf
TT
1592013-11-22 Tom Tromey <tromey@redhat.com>
160
161 PR backtrace/16155:
162 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
163 the return address column is unspecified.
164
6eeee81c
TT
1652013-11-22 Tom Tromey <tromey@redhat.com>
166 Pedro Alves <palves@redhat.com>
167
168 PR backtrace/16155
169 * value.c (value_fetch_lazy): Internal error if
170 get_frame_register_value returns the same register.
171
194cca41
PA
1722013-11-22 Pedro Alves <palves@redhat.com>
173 Tom Tromey <tromey@redhat.com>
174
175 * frame.c (frame_stash_add): Now returns whether a frame with the
176 same ID was already known.
177 (compute_frame_id): New function, factored out from get_frame_id.
178 (get_frame_id): No longer lazilly compute the frame id here.
179 (get_prev_frame_if_no_cycle): New function. Detects wider stack
180 cycles.
181 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
182 and checking for stack cycles here.
183
33f8fe58
PA
1842013-11-22 Pedro Alves <palves@redhat.com>
185
186 PR 16155
187 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
188 this frame and the new previous frame, not between this frame and
189 the next frame.
190
1ec56e88
PA
1912013-11-22 Pedro Alves <palves@redhat.com>
192
193 PR 16155
194 * dwarf2-frame.c (struct dwarf2_frame_cache)
195 <checked_tailcall_bottom, entry_cfa_sp_offset,
196 entry_cfa_sp_offset_p>: New fields.
197 (dwarf2_frame_cache): Adjust to use the new cache fields instead
198 of locals. Don't call dwarf2_tailcall_sniffer_first here.
199 (dwarf2_frame_prev_register): Call it here, but only once.
200
ca092b61
DE
2012013-11-21 Doug Evans <xdje42@gmail.com>
202
203 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
204 (type_equality_entry): Move here from python/py-type.c.
205 (type_equality_entry_d): Ditto.
206 (compare_maybe_null_strings, check_types_equal): Ditto.
207 (check_types_worklist, types_deeply_equal): Ditto.
208 * gdbtypes.h (types_deeply_equal): Declare.
209 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
210 (typy_richcompare): Update.
211
7c245c24
JB
2122013-11-20 Joel Brobecker <brobecker@adacore.com>
213
214 * python/py-value.c (is_intlike): Delete.
215 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
216 by use of is_integral_type.
217 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
218 by use of is_integral_type and check for TYPE_CODE_PTR.
219
8986e351
TT
2202013-11-20 Tom Tromey <tromey@redhat.com>
221
222 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
223 strerror module.
224 * gnulib/aclocal.m4: Update.
225 * gnulib/config.in: Update.
226 * gnulib/configure: Update.
227 * gnulib/import/Makefile.am: Update.
228 * gnulib/import/Makefile.in: Update.
229 * gnulib/import/errno.in.h: Remove.
230 * gnulib/import/intprops.h: Remove.
231 * gnulib/import/m4/errno_h.m4: Remove.
232 * gnulib/import/m4/gnulib-cache.m4: Update.
233 * gnulib/import/m4/gnulib-comp.m4: Update.
234 * gnulib/import/m4/strerror.m4: Remove.
235 * gnulib/import/m4/sys_socket_h.m4: Remove.
236 * gnulib/import/strerror-override.c: Remove.
237 * gnulib/import/strerror-override.h: Remove.
238 * gnulib/import/strerror.c: Remove.
239 * gnulib/update-gnulib.sh: Update.
240
6b1141e3
YQ
2412013-11-20 Yao Qi <yao@codesourcery.com>
242
243 * target-dcache.c (target_dcache_get_or_init): Call
244 set_address_space_data if 'dcache' is NULL.
245
60650f2e
WT
2462013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
247
248 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
249
09748966
WT
2502013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
251
252 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
253 * data-directory/Makefile.in: Copy bond_register.py to the right path
254 to be initialized at gdb startup.
09748966 255
e43e105e
WT
2562013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
257
258 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
259 Add MPX registers.
260 (amd64_linux_read_description): Add initialization for MPX and
261 AVX independently.
262 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
263 (amd64_linux_gregset_reg_offset): Add MPX registers.
264 (amd64_linux_core_read_description): Add initialization for MPX
265 registers.
266 (_initialize_amd64_linux_tdep): Initialize MPX targets.
267 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
268 register on the list.
269 (tdesc_amd64_mpx_linux) Add new target for MPX.
270 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
271 (amd64_mpx_names): MPX register names.
272 (amd64_init_abi): Add MPX register while initializing the ABI.
273 (_initialize_amd64_tdep): Initialize MPX targets.
274 * amd64-tdep.h (amd64_regnum): Add MPX registers.
275 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
276
1dbcd68c
WT
2772013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
278
279 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
280 registers on the range of registers to be read from
281 xsave buffer.
282 (i386_linux_read_description): Add case for MPX.
283 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
284 (i386_linux_gregset_reg_offset): Add MPX registers.
285 (i386_linux_core_read_description): Initialize also MPX.
286 (_initialize_i386_linux_tdep): Add mpx initialization.
287 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
288 mpx_register_names.
289 (i386_regnum): Add MPX registers.
290 (I386_MPX_NUM_REGS): New macro.
291 (i386_bnd_regnum_p): New function.
292 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
293 number of registers to be the number of BNDSTATUS.
294 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
295 * i386-tdep.c: Include features/i386/i386-mpx.c.
296 (i386_mpx_names): Add MPX register names array.
297 (i386_bnd_names): Add bnd pseudo register names array.
298 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
299 registers.
300 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
301 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
302 registers.
303 (i386_bnd_type): New function.
304 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
305 register types.
306 (i386_pseudo_register_read_into_value): Add bnd case.
307 (i386_pseudo_register_write): Add bnd pseudo registers.
308 (i386_register_reggroup_p): Add MPX register to the group all.
309 (i386_validate_tdesc_p): Add MPX to the target description
310 validation.
311 (i386_pseudo_register_name): Add bnd pseudo registers.
312 (i386_gdbarch_init): Add MPX for architecture initialization.
313 (_initia_initialize_i386_tdep): Add mpx initialization.
314 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
315 XSAVE buffer.
316 (XSAVE_MPX_ADDR): New macro.
317 (i387_supply_xsave): Add MPX case.
318 (i387_collect_xsave): Add MPX case.
319 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
320 (I387_BNDCFGU_REGNUM): New macro.
321 (I387_NUM_MPX_REGS): New macro.
322 (I387_NUM_BND_REGS): New macro.
323 (I387_NUM_MPX_CTRL_REGS): New macro.
324 (I387_MPXEND_REGNUM): New macro.
325 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
326 (I386_XSTATE_BNDCFG): Likewise.
327 (I386_XSTATE_MPX_MASK): Likewise.
328 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
329 (I386_XSTATE_BNDREGS_SIZE): New macro.
330 (I386_XSTATE_BNDCFG_SIZE): Likewise.
331 (I386_XSTATE_SIZE): Adapt for MPX.
332 (I386_XSTATE_MAX_SIZE): Likewise.
333
ccc42043
WT
3342013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
335
336 * features/i386/Makefile: Adapts for using MPX registers.
337 * features/i386/32bit-mpx.xml: New file.
338 * features/i386/64bit-mpx.xml: Likewise.
339 * features/i386/amd64-mpx-linux.c: Likewise.
340 * features/i386/amd64-mpx-linux.xml: Likewise.
341 * features/i386/amd64-mpx.c: Likewise.
342 * features/i386/amd64-mpx.xml: Likewise.
343 * features/i386/i386-mpx-linux.c: Likewise.
344 * features/i386/i386-mpx-linux.xml: Likewise.
345 * features/i386/i386-mpx.c: Likewise.
346 * features/i386/i386-mpx.xml: Likewise.
347 * regformats/i386/amd64-mpx-linux.dat: New file.
348 * regformats/i386/amd64-mpx.dat: Likewise.
349 * regformats/i386/i386-mpx-linux.dat: Likewise.
350 * regformats/i386/i386-mpx.dat: Likewise.
351
57803a3c
WT
3522013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
353
354 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
355 Modified logic of creating a bitfield to be in sync with
356 tdesc_gdb_type.
357
2b59118e
WN
3582013-11-20 Will Newton <will.newton@linaro.org>
359
360 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
361 error message.
362
b26dfc9a
YQ
3632013-11-20 Yao Qi <yao@codesourcery.com>
364
365 * progspace.h (struct address_space_data): Declare.
366 * target-dcache.c: Include "progspace.h".
367 (target_dache): Remove.
368 (target_dcache_aspace_key): New.
369 (target_dcache_cleanup): New function.
370 (target_dcache_init_p): Get data through
371 target_dcache_aspace_key.
372 (target_dcache_invalidate): Likewise.
373 (target_dcache_get): Likewise.
374 (target_dcache_get_or_init): Likewise.
375 (_initialize_target_dcache): Initialize
376 target_dcache_aspace_key.
377
3a8356ff
YQ
3782013-11-20 Yao Qi <yao@codesourcery.com>
379
380 * progspace.c (struct address_space): Update comments.
381 <REGISTRY_FIELDS>: New fields.
382 DEFINE_REGISTRY for address_space.
383 (new_address_space): Call address_space_alloc_data.
384 (free_address_space): Call address_space_free_data.
385 * progspace.h: Use DECLARE_REGISTRY.
386
68c765e2
YQ
3872013-11-20 Yao Qi <yao@codesourcery.com>
388
389 * Makefile.in (SFILES):Add target-dcache.c.
390 (HFILES_NO_SRCDIR): Add target-dcache.h.
391 (COMMON_OBS): Add target-dcache.o.
392 * dcache.c: Remove inclusion to "target.h". Include
393 "target-dcache.h".
394 * memattr.c: Include "target-dcache.h".
395 * top.c: Likewise.
396 * tracepoint.c: Likewise.
397 * target.c: (stack_cache_enabled_p_1): Move to
398 target-dcache.c.
399 (stack_cache_enabled_p): Likewise.
400 (set_stack_cache_enabled_p): Likewise.
401 (show_stack_cache_enabled_p): Likewise.
402 (target_dcache, target_dcache_init_p): Likewise.
403 (target_dcache_invalidate): Likewise.
404 (target_dcache_get, target_dcache_get_or_init): Likewise.
405 (memory_xfer_partial_1): Call function stack_cache_enabled.
406 (initialize_target): Move code to target-dcache.c.
407 * target.h (target_dcache_invalidate): Move to
408 target-dcache.h.
409 (target_dcache_get): Likewise.
410 * target-dcache.c: New.
411 * target-dcache.h: New.
412
f2de9785
YQ
4132013-11-20 Yao Qi <yao@codesourcery.com>
414
415 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
416 it is initialized.
417
2a2f9fe4
YQ
4182013-11-20 Yao Qi <yao@codesourcery.com>
419
420 * dcache.c (last_cache): Remove.
421 (dcache_free, dcache_init): Update.
422 (dcache_update):
423 (dcache_print_line): Add parameter 'dcache'. Replace
424 'target_dcache' with 'dcache'.
425 (dcache_info): Move code to dcache_info_1. Call
426 'dcache_info_1'.
427 (dcache_info_1): New function.
428 (set_dcache_size): Call target_dcache_invalidate.
429 (set_dcache_line_size): Call target_dcache_invalidate.
430 * target.c (target_dcache_init_p): New function.
431 (target_dcache_invalidate): Check target_dcache_init_p first.
432 (target_dcache_get, target_dcache_get_or_init): New function.
433 (memory_xfer_partial_1): Adjust.
434 (initialize_target): Don't initialize 'target_dcache'.
435 * target.h (struct dcache_struct): Declare.
436 (target_dcache_get): Declare.
437
8ab91b96
YQ
4382013-11-19 Yao Qi <yao@codesourcery.com>
439
440 * varobj.c (varobj_get_type): Fix typo.
441
df7752b0
JB
4422013-11-19 Joel Brobecker <brobecker@adacore.com>
443
444 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
445
4a0a886a
JB
4462013-11-19 Joel Brobecker <brobecker@adacore.com>
447
448 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
449 "stat.h".
450
53ce3c39
TT
4512013-11-18 Tom Tromey <tromey@redhat.com>
452
453 * common/gdb_stat.h: Remove.
454 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
455 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
456 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
457 * corefile.c: Use sys/stat.h, not gdb_stat.h.
458 * ctf.c: Use sys/stat.h, not gdb_stat.h.
459 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
460 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
461 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
462 * exec.c: Use sys/stat.h, not gdb_stat.h.
463 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
464 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
465 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
466 * jit.c: Use sys/stat.h, not gdb_stat.h.
467 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
468 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
469 * main.c: Use sys/stat.h, not gdb_stat.h.
470 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
471 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
472 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
473 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
474 * procfs.c: Use sys/stat.h, not gdb_stat.h.
475 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
476 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
477 * remote.c: Use sys/stat.h, not gdb_stat.h.
478 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
479 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
480 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
481 * source.c: Use sys/stat.h, not gdb_stat.h.
482 * symfile.c: Use sys/stat.h, not gdb_stat.h.
483 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
484 * symtab.c: Use sys/stat.h, not gdb_stat.h.
485 * top.c: Use sys/stat.h, not gdb_stat.h.
486 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
487
09607c9e
TT
4882013-11-18 Tom Tromey <tromey@redhat.com>
489
490 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
491 sys_stat.
492 * gnulib/aclocal.m4: Update.
493 * gnulib/config.in: Update.
494 * gnulib/configure: Update.
495 * gnulib/import/Makefile.am: Update.
496 * gnulib/import/Makefile.in: Update.
497 * gnulib/import/m4/gnulib-cache.m4: Update.
498 * gnulib/import/m4/gnulib-comp.m4: Update.
499 * gnulib/import/m4/sys_stat_h.m4: New.
500 * gnulib/import/m4/time_h.m4: New.
501 * gnulib/import/sys_stat.in.h: New.
502 * gnulib/import/time.in.h: New.
503
4ff70b84
TT
5042013-11-18 Tom Tromey <tromey@redhat.com>
505
506 * configure: Rebuild.
507 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
508
3447c057
TT
5092013-11-18 Tom Tromey <tromey@redhat.com>
510
511 * configure: Rebuild.
512 * configure.ac: Don't check for unistd.h.
513
0080a2f6
TT
5142013-11-18 Tom Tromey <tromey@redhat.com>
515
516 * configure: Rebuild.
517 * configure.ac: Don't check for stdlib.h
518 * defs.h: Include stdlib.h unconditionally.
519
161d1bec
TT
5202013-11-18 Tom Tromey <tromey@redhat.com>
521
522 * config.in: Rebuild.
523 * configure: Rebuild.
524 * configure.ac: Don't check for stddef.h.
525 * defs.h: Unconditionally include stddef.h. Remove duplicate
526 inclusion.
527
2978b111
TT
5282013-11-18 Tom Tromey <tromey@redhat.com>
529
530 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
531 * common/gdb_dirent.h: Remove.
532 * common/filestuff.c: Use dirent.h.
533 * common/linux-osdata.c: Use dirent.h.
534 (NAMELEN): Define.
535 * config.in: Rebuild.
536 * configure: Rebuild.
537 * configure.ac: Don't use AC_HEADER_DIRENT.
538 * linux-fork.c: Use dirent.h
539 * linux-nat.c: Use dirent.h.
540 * nto-procfs.c: Use dirent.h.
541 * procfs.c: Use dirent.h.
542
e26b6bb0
TT
5432013-11-18 Tom Tromey <tromey@redhat.com>
544
545 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
546 * gnulib/aclocal.m4: Update.
547 * gnulib/config.in: Update.
548 * gnulib/configure: Update.
549 * gnulib/import/Makefile.am: Update.
550 * gnulib/import/Makefile.in: Update.
551 * gnulib/import/dirent.in.h: New.
552 * gnulib/import/m4/dirent_h.m4: New.
553 * gnulib/import/m4/gnulib-cache.m4: Update.
554 * gnulib/import/m4/gnulib-comp.m4: Update.
555
a3d08894
TT
5562013-11-18 Tom Tromey <tromey@redhat.com>
557
558 * configure: Rebuild.
559 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
560 strings.h.
561
0e9f083f
TT
5622013-11-18 Tom Tromey <tromey@redhat.com>
563
564 * common/gdb_string.h: Remove.
565 * aarch64-tdep.c: Use string.h, not gdb_string.h.
566 * ada-exp.y: Use string.h, not gdb_string.h.
567 * ada-lang.c: Use string.h, not gdb_string.h.
568 * ada-lex.l: Use string.h, not gdb_string.h.
569 * ada-typeprint.c: Use string.h, not gdb_string.h.
570 * ada-valprint.c: Use string.h, not gdb_string.h.
571 * aix-thread.c: Use string.h, not gdb_string.h.
572 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
573 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
574 * alpha-nat.c: Use string.h, not gdb_string.h.
575 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
576 * alpha-tdep.c: Use string.h, not gdb_string.h.
577 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
578 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
579 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
580 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
581 * amd64-nat.c: Use string.h, not gdb_string.h.
582 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
583 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
584 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
585 * arch-utils.c: Use string.h, not gdb_string.h.
586 * arm-linux-nat.c: Use string.h, not gdb_string.h.
587 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
588 * arm-tdep.c: Use string.h, not gdb_string.h.
589 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
590 * armbsd-tdep.c: Use string.h, not gdb_string.h.
591 * armnbsd-nat.c: Use string.h, not gdb_string.h.
592 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
593 * armobsd-tdep.c: Use string.h, not gdb_string.h.
594 * avr-tdep.c: Use string.h, not gdb_string.h.
595 * ax-gdb.c: Use string.h, not gdb_string.h.
596 * ax-general.c: Use string.h, not gdb_string.h.
597 * bcache.c: Use string.h, not gdb_string.h.
598 * bfin-tdep.c: Use string.h, not gdb_string.h.
599 * breakpoint.c: Use string.h, not gdb_string.h.
600 * build-id.c: Use string.h, not gdb_string.h.
601 * buildsym.c: Use string.h, not gdb_string.h.
602 * c-exp.y: Use string.h, not gdb_string.h.
603 * c-lang.c: Use string.h, not gdb_string.h.
604 * c-typeprint.c: Use string.h, not gdb_string.h.
605 * c-valprint.c: Use string.h, not gdb_string.h.
606 * charset.c: Use string.h, not gdb_string.h.
607 * cli-out.c: Use string.h, not gdb_string.h.
608 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
609 * cli/cli-decode.c: Use string.h, not gdb_string.h.
610 * cli/cli-dump.c: Use string.h, not gdb_string.h.
611 * cli/cli-interp.c: Use string.h, not gdb_string.h.
612 * cli/cli-logging.c: Use string.h, not gdb_string.h.
613 * cli/cli-script.c: Use string.h, not gdb_string.h.
614 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
615 * cli/cli-utils.c: Use string.h, not gdb_string.h.
616 * coffread.c: Use string.h, not gdb_string.h.
617 * common/common-utils.c: Use string.h, not gdb_string.h.
618 * common/filestuff.c: Use string.h, not gdb_string.h.
619 * common/linux-procfs.c: Use string.h, not gdb_string.h.
620 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
621 * common/signals.c: Use string.h, not gdb_string.h.
622 * common/vec.h: Use string.h, not gdb_string.h.
623 * core-regset.c: Use string.h, not gdb_string.h.
624 * corefile.c: Use string.h, not gdb_string.h.
625 * corelow.c: Use string.h, not gdb_string.h.
626 * cp-abi.c: Use string.h, not gdb_string.h.
627 * cp-support.c: Use string.h, not gdb_string.h.
628 * cp-valprint.c: Use string.h, not gdb_string.h.
629 * cris-tdep.c: Use string.h, not gdb_string.h.
630 * d-lang.c: Use string.h, not gdb_string.h.
631 * dbxread.c: Use string.h, not gdb_string.h.
632 * dcache.c: Use string.h, not gdb_string.h.
633 * demangle.c: Use string.h, not gdb_string.h.
634 * dicos-tdep.c: Use string.h, not gdb_string.h.
635 * disasm.c: Use string.h, not gdb_string.h.
636 * doublest.c: Use string.h, not gdb_string.h.
637 * dsrec.c: Use string.h, not gdb_string.h.
638 * dummy-frame.c: Use string.h, not gdb_string.h.
639 * dwarf2-frame.c: Use string.h, not gdb_string.h.
640 * dwarf2loc.c: Use string.h, not gdb_string.h.
641 * dwarf2read.c: Use string.h, not gdb_string.h.
642 * elfread.c: Use string.h, not gdb_string.h.
643 * environ.c: Use string.h, not gdb_string.h.
644 * eval.c: Use string.h, not gdb_string.h.
645 * event-loop.c: Use string.h, not gdb_string.h.
646 * exceptions.c: Use string.h, not gdb_string.h.
647 * exec.c: Use string.h, not gdb_string.h.
648 * expprint.c: Use string.h, not gdb_string.h.
649 * f-exp.y: Use string.h, not gdb_string.h.
650 * f-lang.c: Use string.h, not gdb_string.h.
651 * f-typeprint.c: Use string.h, not gdb_string.h.
652 * f-valprint.c: Use string.h, not gdb_string.h.
653 * fbsd-nat.c: Use string.h, not gdb_string.h.
654 * findcmd.c: Use string.h, not gdb_string.h.
655 * findvar.c: Use string.h, not gdb_string.h.
656 * fork-child.c: Use string.h, not gdb_string.h.
657 * frame.c: Use string.h, not gdb_string.h.
658 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
659 * frv-tdep.c: Use string.h, not gdb_string.h.
660 * gdb.c: Use string.h, not gdb_string.h.
661 * gdb_bfd.c: Use string.h, not gdb_string.h.
662 * gdbarch.c: Use string.h, not gdb_string.h.
663 * gdbtypes.c: Use string.h, not gdb_string.h.
664 * gnu-nat.c: Use string.h, not gdb_string.h.
665 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
666 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
667 * go-exp.y: Use string.h, not gdb_string.h.
668 * go-lang.c: Use string.h, not gdb_string.h.
669 * go32-nat.c: Use string.h, not gdb_string.h.
670 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
671 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
672 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
673 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
674 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
675 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
676 * i386-linux-nat.c: Use string.h, not gdb_string.h.
677 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
678 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
679 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
680 * i386-tdep.c: Use string.h, not gdb_string.h.
681 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
682 * i386gnu-nat.c: Use string.h, not gdb_string.h.
683 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
684 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
685 * i387-tdep.c: Use string.h, not gdb_string.h.
686 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
687 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
688 * inf-child.c: Use string.h, not gdb_string.h.
689 * inf-ptrace.c: Use string.h, not gdb_string.h.
690 * inf-ttrace.c: Use string.h, not gdb_string.h.
691 * infcall.c: Use string.h, not gdb_string.h.
692 * infcmd.c: Use string.h, not gdb_string.h.
693 * inflow.c: Use string.h, not gdb_string.h.
694 * infrun.c: Use string.h, not gdb_string.h.
695 * interps.c: Use string.h, not gdb_string.h.
696 * iq2000-tdep.c: Use string.h, not gdb_string.h.
697 * irix5-nat.c: Use string.h, not gdb_string.h.
698 * jv-exp.y: Use string.h, not gdb_string.h.
699 * jv-lang.c: Use string.h, not gdb_string.h.
700 * jv-typeprint.c: Use string.h, not gdb_string.h.
701 * jv-valprint.c: Use string.h, not gdb_string.h.
702 * language.c: Use string.h, not gdb_string.h.
703 * linux-fork.c: Use string.h, not gdb_string.h.
704 * linux-nat.c: Use string.h, not gdb_string.h.
705 * lm32-tdep.c: Use string.h, not gdb_string.h.
706 * m2-exp.y: Use string.h, not gdb_string.h.
707 * m2-typeprint.c: Use string.h, not gdb_string.h.
708 * m32c-tdep.c: Use string.h, not gdb_string.h.
709 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
710 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
711 * m32r-rom.c: Use string.h, not gdb_string.h.
712 * m32r-tdep.c: Use string.h, not gdb_string.h.
713 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
714 * m68k-tdep.c: Use string.h, not gdb_string.h.
715 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
716 * m68klinux-nat.c: Use string.h, not gdb_string.h.
717 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
718 * m88k-tdep.c: Use string.h, not gdb_string.h.
719 * macrocmd.c: Use string.h, not gdb_string.h.
720 * main.c: Use string.h, not gdb_string.h.
721 * mdebugread.c: Use string.h, not gdb_string.h.
722 * mem-break.c: Use string.h, not gdb_string.h.
723 * memattr.c: Use string.h, not gdb_string.h.
724 * memory-map.c: Use string.h, not gdb_string.h.
725 * mep-tdep.c: Use string.h, not gdb_string.h.
726 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
727 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
728 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
729 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
730 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
731 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
732 * mi/mi-console.c: Use string.h, not gdb_string.h.
733 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
734 * mi/mi-interp.c: Use string.h, not gdb_string.h.
735 * mi/mi-main.c: Use string.h, not gdb_string.h.
736 * mi/mi-parse.c: Use string.h, not gdb_string.h.
737 * microblaze-rom.c: Use string.h, not gdb_string.h.
738 * microblaze-tdep.c: Use string.h, not gdb_string.h.
739 * mingw-hdep.c: Use string.h, not gdb_string.h.
740 * minidebug.c: Use string.h, not gdb_string.h.
741 * minsyms.c: Use string.h, not gdb_string.h.
742 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
743 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
744 * mips-tdep.c: Use string.h, not gdb_string.h.
745 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
746 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
747 * mipsread.c: Use string.h, not gdb_string.h.
748 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
749 * mn10300-tdep.c: Use string.h, not gdb_string.h.
750 * monitor.c: Use string.h, not gdb_string.h.
751 * moxie-tdep.c: Use string.h, not gdb_string.h.
752 * mt-tdep.c: Use string.h, not gdb_string.h.
753 * nbsd-tdep.c: Use string.h, not gdb_string.h.
754 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
755 * nto-procfs.c: Use string.h, not gdb_string.h.
756 * nto-tdep.c: Use string.h, not gdb_string.h.
757 * objc-lang.c: Use string.h, not gdb_string.h.
758 * objfiles.c: Use string.h, not gdb_string.h.
759 * opencl-lang.c: Use string.h, not gdb_string.h.
760 * osabi.c: Use string.h, not gdb_string.h.
761 * osdata.c: Use string.h, not gdb_string.h.
762 * p-exp.y: Use string.h, not gdb_string.h.
763 * p-lang.c: Use string.h, not gdb_string.h.
764 * p-typeprint.c: Use string.h, not gdb_string.h.
765 * parse.c: Use string.h, not gdb_string.h.
766 * posix-hdep.c: Use string.h, not gdb_string.h.
767 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
768 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
769 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
770 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
771 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
772 * printcmd.c: Use string.h, not gdb_string.h.
773 * procfs.c: Use string.h, not gdb_string.h.
774 * prologue-value.c: Use string.h, not gdb_string.h.
775 * python/py-auto-load.c: Use string.h, not gdb_string.h.
776 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
777 * ravenscar-thread.c: Use string.h, not gdb_string.h.
778 * regcache.c: Use string.h, not gdb_string.h.
779 * registry.c: Use string.h, not gdb_string.h.
780 * remote-fileio.c: Use string.h, not gdb_string.h.
781 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
782 * remote-mips.c: Use string.h, not gdb_string.h.
783 * remote-sim.c: Use string.h, not gdb_string.h.
784 * remote.c: Use string.h, not gdb_string.h.
785 * reverse.c: Use string.h, not gdb_string.h.
786 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
787 * ser-base.c: Use string.h, not gdb_string.h.
788 * ser-go32.c: Use string.h, not gdb_string.h.
789 * ser-mingw.c: Use string.h, not gdb_string.h.
790 * ser-pipe.c: Use string.h, not gdb_string.h.
791 * ser-tcp.c: Use string.h, not gdb_string.h.
792 * ser-unix.c: Use string.h, not gdb_string.h.
793 * serial.c: Use string.h, not gdb_string.h.
794 * sh-tdep.c: Use string.h, not gdb_string.h.
795 * sh64-tdep.c: Use string.h, not gdb_string.h.
796 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
797 * skip.c: Use string.h, not gdb_string.h.
798 * sol-thread.c: Use string.h, not gdb_string.h.
799 * solib-dsbt.c: Use string.h, not gdb_string.h.
800 * solib-frv.c: Use string.h, not gdb_string.h.
801 * solib-osf.c: Use string.h, not gdb_string.h.
802 * solib-spu.c: Use string.h, not gdb_string.h.
803 * solib-target.c: Use string.h, not gdb_string.h.
804 * solib.c: Use string.h, not gdb_string.h.
805 * somread.c: Use string.h, not gdb_string.h.
806 * source.c: Use string.h, not gdb_string.h.
807 * sparc-nat.c: Use string.h, not gdb_string.h.
808 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
809 * sparc-tdep.c: Use string.h, not gdb_string.h.
810 * sparc64-tdep.c: Use string.h, not gdb_string.h.
811 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
812 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
813 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
814 * spu-linux-nat.c: Use string.h, not gdb_string.h.
815 * spu-multiarch.c: Use string.h, not gdb_string.h.
816 * spu-tdep.c: Use string.h, not gdb_string.h.
817 * stabsread.c: Use string.h, not gdb_string.h.
818 * stack.c: Use string.h, not gdb_string.h.
819 * std-regs.c: Use string.h, not gdb_string.h.
820 * symfile.c: Use string.h, not gdb_string.h.
821 * symmisc.c: Use string.h, not gdb_string.h.
822 * symtab.c: Use string.h, not gdb_string.h.
823 * target.c: Use string.h, not gdb_string.h.
824 * thread.c: Use string.h, not gdb_string.h.
825 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
826 * tilegx-tdep.c: Use string.h, not gdb_string.h.
827 * top.c: Use string.h, not gdb_string.h.
828 * tracepoint.c: Use string.h, not gdb_string.h.
829 * tui/tui-command.c: Use string.h, not gdb_string.h.
830 * tui/tui-data.c: Use string.h, not gdb_string.h.
831 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
832 * tui/tui-file.c: Use string.h, not gdb_string.h.
833 * tui/tui-layout.c: Use string.h, not gdb_string.h.
834 * tui/tui-out.c: Use string.h, not gdb_string.h.
835 * tui/tui-regs.c: Use string.h, not gdb_string.h.
836 * tui/tui-source.c: Use string.h, not gdb_string.h.
837 * tui/tui-stack.c: Use string.h, not gdb_string.h.
838 * tui/tui-win.c: Use string.h, not gdb_string.h.
839 * tui/tui-windata.c: Use string.h, not gdb_string.h.
840 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
841 * typeprint.c: Use string.h, not gdb_string.h.
842 * ui-file.c: Use string.h, not gdb_string.h.
843 * ui-out.c: Use string.h, not gdb_string.h.
844 * user-regs.c: Use string.h, not gdb_string.h.
845 * utils.c: Use string.h, not gdb_string.h.
846 * v850-tdep.c: Use string.h, not gdb_string.h.
847 * valarith.c: Use string.h, not gdb_string.h.
848 * valops.c: Use string.h, not gdb_string.h.
849 * valprint.c: Use string.h, not gdb_string.h.
850 * value.c: Use string.h, not gdb_string.h.
851 * varobj.c: Use string.h, not gdb_string.h.
852 * vax-tdep.c: Use string.h, not gdb_string.h.
853 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
854 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
855 * windows-nat.c: Use string.h, not gdb_string.h.
856 * xcoffread.c: Use string.h, not gdb_string.h.
857 * xml-support.c: Use string.h, not gdb_string.h.
858 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
859 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
860
63ce7108
TT
8612013-11-18 Tom Tromey <tromey@redhat.com>
862
863 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
864 and strstr.
865 * gnulib/aclocal.m4: Update.
866 * gnulib/config.in: Update.
867 * gnulib/configure: Update.
868 * gnulib/import/Makefile.am: Update.
869 * gnulib/import/Makefile.in: Update.
870 * gnulib/import/errno.in.h: New.
871 * gnulib/import/intprops.h: New.
872 * gnulib/import/m4/errno_h.m4: New.
873 * gnulib/import/m4/gnulib-cache.m4: Update.
874 * gnulib/import/m4/gnulib-comp.m4: Update.
875 * gnulib/import/m4/strerror.m4: New.
876 * gnulib/import/m4/strstr.m4: New.
877 * gnulib/import/m4/sys_socket_h.m4: New.
878 * gnulib/import/strerror-override.c: New.
879 * gnulib/import/strerror-override.h: New.
880 * gnulib/import/strerror.c: New.
881 * gnulib/import/strstr.c: New.
882
a7c11ee1
TT
8832013-11-18 Tom Tromey <tromey@redhat.com>
884
885 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
886 multiple lines.
887
d0b5971a
JM
8882013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
889
890 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
891 * sparc-tdep.h: And its prototype.
892
893 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
894 function.
895 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
896
4b4589ad
PA
8972013-11-18 Pedro Alves <palves@redhat.com>
898
899 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
900 use unpack_pointer.
901
422ad5c2
JB
9022013-11-18 Joel Brobecker <brobecker@adacore.com>
903
904 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
905 to -list-features output.
906
b1370418
JB
9072013-11-17 Joel Brobecker <brobecker@adacore.com>
908
909 * dwarf2expr.h (struct dwarf_expr_context_funcs)
910 <read_addr_from_reg>: Renames "read_reg".
911 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
912 Adjust comment.
913 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
914 Use read_addr_from_reg in place of read_reg.
915 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
916 in place of read_reg.
917 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
918 dwarf_expr_read_reg.
919 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
920 with dwarf_expr_read_addr_from_reg.
921 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
922 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
923 needs_frame_read_addr_from_reg.
924
6ea71545
JK
9252013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
926
927 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
928
19a1b230
AA
9292013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
930
931 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
932 NULL.
933
805e1f19
TT
9342013-11-15 Tom Tromey <tromey@redhat.com>
935
936 PR c++/16117:
937 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
938 (classify_name): Likewise. Prefer a field of "this" over a
939 filename.
940 (classify_inner_name, yylex): Update.
941
0acf8b65
JB
9422013-11-15 Joel Brobecker <brobecker@adacore.com>
943
944 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
945 Extend the documentation a bit.
946 <get_reg_value>: New field.
947 * dwarf2loc.c (dwarf_expr_get_reg_value)
948 (needs_frame_get_reg_value): New functions.
949 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
950 callback.
951 * dwarf2-frame.c (get_reg_value): New function.
952 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
953 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
954 Use new callback to compute result_val.
955
ef1bc9e7
AM
9562013-11-15 Alan Modra <amodra@gmail.com>
957
958 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
959 (ppc64_desc_entry_point): ..this. Update comments here and at
960 call points.
961 (ppc64_standard_linkage1, ppc64_standard_linkage2,
962 ppc64_standard_linkage3): Update comments.
963 (ppc64_standard_linkage4, ppc64_standard_linkage5,
964 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
965 patterns.
966 (ppc64_standard_linkage4_target): New function.
967 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
968 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
969 nop match. Fix comment wrap.
970
36fa8042
PA
9712013-11-14 Pedro Alves <palves@redhat.com>
972
973 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
974 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
975
4f5d7f63
PA
9762013-11-14 Pedro Alves <palves@redhat.com>
977
978 * infrun.c (struct execution_control_state)
979 <stepped_after_stopped_by_watchpoint>: New field.
980 (get_inferior_stop_soon): New function.
981 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
982 moved to struct execution_control_state -- adjust. Use
983 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
984 new function.
985 (handle_signal_stop): New function, factored out from
986 handle_inferior_event.
987
47591c29
PA
9882013-11-14 Pedro Alves <palves@redhat.com>
989
990 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
991 return a boolean.
992 * breakpoint.c (bpstat_explains_signal): Adjust to return a
993 boolean.
994 (explains_signal_watchpoint, base_breakpoint_explains_signal):
995 Adjust to return a boolean.
996 * breakpoint.h (enum bpstat_signal_value): Delete.
997 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
998 (bpstat_explains_signal): Likewise.
999 * infrun.c (handle_inferior_event) <random signal checks>:
1000 bpstat_explains_signal now returns a boolean - adjust. No longer
1001 consider hiding signals.
1002
bac7d97b
PA
10032013-11-14 Pedro Alves <palves@redhat.com>
1004
1005 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1006 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1007 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1008 BPSTAT_SIGNAL_HIDE.
1009 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1010 instead of BPSTAT_SIGNAL_HIDE.
1011 * infrun.c (handle_inferior_event): Rework random signal checks.
1012
ce12b012
PA
10132013-11-14 Pedro Alves <palves@redhat.com>
1014
1015 * infrun.c (struct execution_control_state): Remove
1016 'random_signal' field.
1017 (handle_syscall_event): Use bpstat_causes_stop instead of
1018 bpstat_explains_signal. Don't set ecs->random_signal.
1019 (handle_inferior_event): New 'random_signal' local.
1020 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1021 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1022 bpstat_explains_signal. Don't set ecs->random_signal.
1023 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1024 ecs->random_signal.
1025
05ba8510
PA
10262013-11-14 Pedro Alves <palves@redhat.com>
1027
1028 * infrun.c (handle_inferior_event): Move comment from the
1029 function's body to the function's description, adjusted.
1030
5c09a2c5
PA
10312013-11-14 Pedro Alves <palves@redhat.com>
1032
1033 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1034 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1035 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1036 case.
1037
91822956
TT
10382013-11-14 Tom Tromey <tromey@redhat.com>
1039
1040 * python/py-linetable.c (ltpy_has_line)
1041 (ltpy_get_all_source_lines): Fix loop termination condition.
1042
403cb6b1
JB
10432013-11-14 Joel Brobecker <brobecker@adacore.com>
1044
1045 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1046 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1047 PARSE->LANGUAGE during command execution, if set.
1048 * mi/mi-parse.c: Add "language.h" #include.
1049 (mi_parse): Add parsing of "--language" command option.
1050
1051 * NEWS: Add entry mentioning the new "--language" command option.
1052
b5be8ce0
JB
10532013-11-14 Pedro Alves <palves@redhat.com>
1054 Joel Brobecker <brobecker@adacore.com>
1055
1056 * cli/cli-utils.h (extract_arg_const): Add declaration.
1057 * cli/cli-utils.c (extract_arg_const): New function.
1058 (extract_arg): Reimplement using extract_arg_const.
1059
671afef6
JB
10602013-11-14 Joel Brobecker <brobecker@adacore.com>
1061
1062 * language.h: Add "symtab.h" #include.
1063
6c1b0f7b
DE
10642013-11-13 Doug Evans <xdje42@gmail.com>
1065
1066 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1067 specific breakpoints, don't evaluate breakpoint condition if
1068 different thread.
1069
74921315
KS
10702013-11-13 Keith Seitz <keiths@redhat.com>
1071
248ace2e 1072 PR c++/7935
74921315
KS
1073 PR c++/10541
1074 * cp-support.c (insepct_type): Add support for substituting
1075 namespace aliases, too.
1076 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1077 for DW_TAG_imported_declaration.
1078 (add_partial_symbol): Likewise.
1079 (process_die): Handle namespace aliases with
1080 read_namespace_alias.
1081 (die_needs_namespace): Add DW_TAG_imported_declaration.
1082 (read_namespace_alias): New function.
1083 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1084 (new_symbol_full): Handle DW_TAG_imported_declaration.
1085
793156e6
KS
10862013-11-13 Keith Seitz <keiths@redhat.com>
1087
1088 * p-exp.y (uptok): Make first parameter const.
1089 (yylex): Make `tokstart' and `tokptr' const.
1090 Don't copy the lexer input to a temporary buffer.
1091 Make `p' const.
1092 Remove const workaround for parse_escape.
1093 Create a temporary buffer for a convenience variable instead
1094 of doing in-place modification of the input.
1095 If a match is found with a different case from the input,
1096 do not change the input at all.
1097 Use `tmp' to construct the resultant stoken instead of
1098 `tokstart'.
1099
c42bd95a
DE
11002013-11-13 Doug Evans <xdje42@gmail.com>
1101
1102 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1103
93973826
JB
11042013-11-13 Joel Brobecker <brobecker@adacore.com>
1105
1106 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1107 entry with "ada-exceptions".
1108
846060df
JB
11092013-11-13 Joel Brobecker <brobecker@adacore.com>
1110
1111 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1112 after re-initialization of OBJFILE's obstack.
1113
5efd1b2b 11142013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1115
1116 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1117 bs->stop != 0 on entry. Update function comment. Simplify early
1118 exit for frame mismatch. Reindent rest of function.
1119
ee7615e1
AA
11202013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1121
1122 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1123 NULL.
1124
8943b874
DE
11252013-11-12 Doug Evans <dje@google.com>
1126
1127 Work around gold/15646.
1128 * dwarf2read.c (read_index_from_section): Update comment.
1129 (struct dw2_symtab_iterator): New member global_seen.
1130 (dw2_symtab_iter_init): Initialize it.
1131 (dw2_symtab_iter_next): Skip duplicate global symbols.
1132 (dw2_expand_symtabs_matching): Ditto.
1133
a8a9844d
JB
11342013-11-12 Joel Brobecker <brobecker@adacore.com>
1135
1136 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1137 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1138 command.
1139 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1140 (mi_cmd_info_ada_exceptions): New function.
1141 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1142
778865d3
JB
11432013-11-12 Joel Brobecker <brobecker@adacore.com>
1144
1145 * ada-lang.h: #include "vec.h".
1146 (struct ada_exc_info): New.
1147 (ada_exc_info): New typedef.
1148 (DEF_VEC_O(ada_exc_info)): New vector.
1149 (ada_exceptions_list): Add declaration.
1150 * ada-lang.c (ada_is_exception_sym)
1151 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1152 (sort_remove_dups_ada_exceptions_list)
1153 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1154 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1155 (ada_exceptions_list_1, ada_exceptions_list)
1156 (info_exceptions_command): New function.
1157 (_initialize_ada_language): Add "info exception" command.
1158
bc79de95
PM
11592013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1160
1161 PR python/15629
1162 * NEWS: Add linetable feature.
1163 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1164 * python/py-linetable.c: New file.
1165 * python/py-symtab.c (stpy_get_linetable): New function.
1166 * python/python-internal.h (symtab_to_linetable_object): Declare.
1167 (gdbpy_initialize_linetable): Ditto.
1168 * python/python.c (_initialize_python): Call
1169 gdbpy_initialize_linetable.
1170
2df4d1d5
JB
11712013-11-11 Joel Brobecker <brobecker@adacore.com>
1172
1173 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1174 the documentation of fields "except_string" and "condition".
1175 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1176 CONDITION on the heap before passing it to
1177 create_ada_exception_catchpoint.
1178 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1179 CONDITION.
1180
99c1d451
TT
11812013-11-11 Tom Tromey <tromey@redhat.com>
1182
1183 * config.in, configure: Rebuild.
1184 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1185
8ca5801b
JB
11862013-11-11 Joel Brobecker <brobecker@adacore.com>
1187
1188 * remote-sim.c (gdbsim_detach): Break declaration into
1189 shorter lines. No code change.
1190
7a06d430
EBM
11912013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1192
1193 * remote-sim.c (gdbsim_detach): Fix prototype.
1194
73be47f5
DE
11952013-11-08 Doug Evans <dje@google.com>
1196
1197 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1198 (create_debug_types_hash_table): Only print debugging messages for
1199 each TU if dwarf2-read >= 2.
1200 (process_queue): Ditto.
1201 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1202 Update doc string.
1203
a18d8f10
TT
12042013-11-08 Tom Tromey <tromey@redhat.com>
1205
1206 * configure: Rebuild.
1207 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1208
9467110b
TT
12092013-11-08 Tom Tromey <tromey@redhat.com>
1210
1211 * configure, config.in: Rebuild.
1212 * configure.ac: Remove unused configury.
1213
69706679
TT
12142013-11-08 Tom Tromey <tromey@redhat.com>
1215
1216 * m32c-tdep.c: Use gdb_string.h.
1217
9b4bea72
TT
12182013-11-08 Tom Tromey <tromey@redhat.com>
1219
1220 * configure, config.in: Rebuild.
1221 * configure.ac: Remove all link.h-related checks.
1222
3266f10b
TT
12232013-11-08 Tom Tromey <tromey@redhat.com>
1224
1225 * acinclude.m4: Include common.m4.
1226 * common/common.m4: New file.
1227 * configure, config.in: Rebuild.
1228 * configure.ac: Use GDB_AC_COMMON.
1229
db0fec5c
DE
12302013-11-08 Doug Evans <dje@google.com>
1231
1232 * NEWS: Mention that "set debug symtab-create" now accepts a
1233 verbosity level.
1234 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1235 to set the symtab's primary flag.
1236 * jit.c (finalize_symtab): Ditto.
1237 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1238 * symfile.c (allocate_symtab): Only print debugging messages for
1239 symtab_create_debug levels 2 and higher.
1240 * symtab.c (symtab_create_debug): Change type to unsigned int.
1241 (set_symtab_primary): New function.
1242 (_initialize_symtab): Change "set debug symtab-create" to a
1243 zuinteger option.
1244 * symtab.h (set_symtab_primary): Declare.
1245 (symtab_create_debug): Update decl.
1246
52554a0e
TT
12472013-11-08 Tom Tromey <tromey@redhat.com>
1248
1249 * aix-thread.c (aix_thread_detach): Update.
1250 * corelow.c (core_detach): Update.
1251 * darwin-nat.c (darwin_detach): Update.
1252 * dec-thread.c (dec_thread_detach): Update.
1253 * gnu-nat.c (gnu_detach): Update.
1254 * go32-nat.c (go32_detach): Update.
1255 * inf-ptrace.c (inf_ptrace_detach): Update.
1256 * inf-ttrace.c (inf_ttrace_detach): Update.
1257 * linux-fork.c (linux_fork_detach): Update.
1258 * linux-fork.h (linux_fork_detach): Update.
1259 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1260 local for const-correctness.
1261 * linux-thread-db.c (thread_db_detach): Update.
1262 * monitor.c (monitor_detach): Update.
1263 * nto-procfs.c (procfs_detach): Update.
1264 * procfs.c (procfs_detach): Update.
1265 * record.c (record_detach): Update.
1266 * record.h (record_detach): Update.
1267 * remote-m32r-sdi.c (m32r_detach): Update.
1268 * remote-mips.c (mips_detach): Update.
1269 * remote-sim.c (gdbsim_detach): Update.
1270 * remote.c (remote_detach_1, remote_detach)
1271 (extended_remote_detach): Update.
1272 * sol-thread.c (sol_thread_detach): Update.
1273 * target.c (target_detach): Make "args" const.
1274 (init_dummy_target): Update.
1275 * target.h (struct target_ops) <to_detach>: Make argument const.
1276 (target_detach): Likewise.
1277 * windows-nat.c (windows_detach): Update.
1278
204b5331
DE
12792013-11-07 Doug Evans <dje@google.com>
1280
1281 PR 11786
1282 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1283 and align fields for PT_GNU_RELRO segments.
1284
92e32e33
PM
12852013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1286
ef1bc9e7
AM
1287 PR python/15747
1288 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1289
f76c27b5
PM
12902013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1291
1292 * NEWS: Document Python temporary breakpoint support.
1293 * python/py-breakpoint.c (bppy_get_temporary): New function.
1294 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1295 to temporary if True.
1296
d52cd232
JM
12972013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1298
1299 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1300 removed to allow analyzing unconditional branch instructions
1301 with PC-relative offsets of zero.
1302
fa4d0c40
YQ
13032013-11-07 Yao Qi <yao@codesourcery.com>
1304
1305 * mi/mi-cmd-var.c: Include "language.h".
1306 (mi_cmd_var_info_expression): Get language name from
1307 language_defn.
1308 * varobj.c (varobj_language_string): Remove.
1309 (variable_language): Remove declaration.
1310 (languages): Remove.
1311 (varobj_get_language): Change the type of return value.
1312 (variable_language): Remove.
1313 * varobj.h (enum varobj_languages): Remove.
1314 (varobj_language_string): Remove declaration.
1315 (varobj_get_language): Update declaration.
1316
6abde28f
YQ
13172013-11-07 Yao Qi <yao@codesourcery.com>
1318
1319 * language.h (struct language_defn) <la_natural_name>: New
1320 field.
1321 * ada-lang.c (ada_language_defn): Initialize field
1322 'la_natural_name'.
1323 * c-lang.c (c_language_defn): Likewise.
1324 (cplus_language_defn, asm_language_defn): Likewise.
1325 * d-lang.c (d_language_defn): Likewise.
1326 * f-lang.c (f_language_defn): Likewise.
1327 * go-lang.c (go_language_defn): Likewise.
1328 * jv-lang.c (java_language_defn): Likewise.
1329 * language.c (unknown_language_defn ): Likewise.
1330 (auto_language_defn): Likewise.
1331 * m2-lang.c (m2_language_defn): Likewise.
1332 * objc-lang.c (objc_language_defn): Likewise.
1333 * opencl-lang.c (opencl_language_defn): Likewise.
1334 * p-lang.c (pascal_language_defn): Likewise.
1335
27cd387b
YQ
13362013-11-07 Yao Qi <yao@codesourcery.com>
1337
1338 * language.c (language_str): Return const char *.
1339 (add_language): Add const to 'language_names'
1340 * language.h (struct language_defn) <la_name>: Add const.
1341 (language_str: Update declaration.
1342
6682d959
AA
13432013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1344
1345 * s390-linux-nat.c (s390_read_description): Consider the TE field
1346 in the HWCAP for determining 'have_regset_tdb'.
1347
b9502d3f
WN
13482013-11-06 Will Newton <will.newton@linaro.org>
1349
1350 PR gdb/12866
1351 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1352 values. (read_partial_die): Likewise.
1353
840da61a
MB
13542013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1355
1356 PR cli/16122
1357 * top.c (command_line_input): Unify interactivity tests to use
1358 input_from_terminal_p.
1359 * event-top.c (command_line_handler): Likewise.
1360
7636ccf9
YQ
13612013-11-06 Yao Qi <yao@codesourcery.com>
1362
1363 * Makefile.in (check-perf): New target.
1364
12b27276
WN
13652013-11-05 Will Newton <will.newton@linaro.org>
1366
1367 PR gdb/7670
1368 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1369 (arm_print_float_info): Likewise.
1370
67c059c2
AB
13712013-11-04 Anton Blanchard <anton@samba.org>
1372
1373 * target.c (memory_xfer_partial): Cap write to 4KB.
1374
0569175e
TSD
13752013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1376
1377 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1378 probe scan even when the arch provides no get_longjmp_target.
1379
b18e90f5
PA
13802013-10-31 Pedro Alves <palves@redhat.com>
1381
1382 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1383 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1384 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1385 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1386 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1387 <bpstat handling>: If the bpstat chain wants the signal to be
1388 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1389 GDB_SIGNAL_TRAP.
1390
638aa5a1
AB
13912013-10-31 Andrew Burgess <aburgess@broadcom.com>
1392
1393 * breakpoint.c (update_watchpoint): Update error message and add
1394 an additional error message.
1395
0e5fae36
UW
13962013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1397
1398 * s390-tdep.h: Rename to...
1399 * s390-linux-tdep.h: ...here.
1400 * s390-tdep.c: Rename to...
1401 * s390-linux-tdep.c: ...here. Adjust #include.
1402 * s390-nat.c: Rename to...
1403 * s390-linux-nat.c: ...here. Adjust #include.
1404 * config/s390/s390.mh: Rename to...
1405 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1406 s390-linux-nat.o.
1407 * configure.host: Reflect host rename "s390" -> "linux".
1408 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1409 * Makefile.in (ALL_TARGET_OBS): Likewise.
1410 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1411 s390-linux-tdep.h.
1412 (ALLDEPFILES): Reflect rename of .c files.
1413
34201ae3
UW
14142013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1415
1416 * s390-nat.c: Whitespace cleanup.
1417 * s390-tdep.c: Likewise.
1418 * s390-tdep.h: Remove empty line at end of file.
1419
e17aaa33
MR
14202013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1421
1422 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1423 siginfo_size.
1424
aee17e42
TT
14252013-10-29 Tom Tromey <tromey@redhat.com>
1426
1427 * utils.c (reg): Move undefinition...
1428 * gdb_curses.h: ... here. Update comment to mention AIX.
1429
9ac69859
NB
14302013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1431
1432 * exec.h (add_target_sections_of_objfile): New declaration.
1433 * exec.c (add_target_sections_of_objfile): New function.
1434 * symfile.c (add_symbol_file_command): Update current target sections.
1435 (remove_symbol_file_command): New command.
1436 (symfile_free_objfile): New function.
1437 (_initialize_symfile): Register observer for free_objfile events.
1438 * NEWS: Add description of the remove-symbol-file command.
1439 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1440 * objfiles.c (free_objfile): Notify free_objfile.
1441 (is_addr_in_objfile): New function.
1442 * objfiles.h (is_addr_in_objfile): New declaration.
1443 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1444 events instead of solib_unloaded events.
1445 (_initialize_printcmd): Register observer for free_objfile instead
1446 of solib_unloaded notifications.
1447 * solib.c (remove_user_added_objfile): New function.
1448 (_initialize_symfile): Add remove-symbol-file.
1449
f69d9aef
AB
14502013-10-29 Andrew Burgess <aburgess@broadcom.com>
1451
1452 * infcmd.c (default_print_one_register_info): Use val_print to
1453 print all values even optimized out or unavailable ones. Don't
1454 try to print a raw form of optimized out or unavailable values.
1455
487ad57c
YQ
14562013-10-29 Yao Qi <yao@codesourcery.com>
1457
1458 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1459 parameter 'arg' instead of from program_space_data.
1460 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1461 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1462 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1463 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1464 * inflow.c (inflow_inferior_data_cleanup): Get data from
1465 parameter 'arg' instead of inferior_data.
1466 * registry.h: Add comments.
1467
3c4797ba
PA
14682013-10-28 Pedro Alves <palves@redhat.com>
1469
1470 * breakpoint.c (watchpoints_triggered)
1471 <!target_stopped_data_address>: Hardcode return 1.
1472
cdaa5b73
PA
14732013-10-28 Pedro Alves <palves@redhat.com>
1474
1475 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1476 level and reindent.
1477
94c57d6a
PA
14782013-10-28 Pedro Alves <palves@redhat.com>
1479
1480 * infrun.c (process_event_stop_test): New function, factored out
1481 from handle_inferior_event.
1482 (handle_inferior_event): 'process_event_stop_test' is now a
1483 function instead of a goto label -- adjust.
1484
fcf3daef
PA
14852013-10-28 Pedro Alves <palves@redhat.com>
1486
1487 * infrun.c (handle_inferior_event): Move process_event_stop_test
1488 goto label to the else branch of the ecs->random_signal check,
1489 along with FRAME and GDBARCH re-fetching.
1490
c447ac0b
PA
14912013-10-28 Pedro Alves <palves@redhat.com>
1492
1493 * infrun.c (switch_back_to_stepped_thread): New function, factored
1494 out from handle_inferior_event.
1495 (handle_inferior_event): Adjust to call
1496 switch_back_to_stepped_thread. Call it also at the tail of the
1497 random signal handling, and return, instead of also handling
1498 random signals just before the stepping tests.
1499
f05e4c11
PA
15002013-10-28 Pedro Alves <palves@redhat.com>
1501
1502 * infrun.c (clear_stop_func): Delete.
1503 (handle_inferior_event): Don't call clear_stop_func and don't
1504 clear 'ecs->random_signal'.
1505
ca20d462
YQ
15062013-10-27 Yao Qi <yao@codesourcery.com>
1507
1508 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1509 (varobj_create, varobj_get_path_expr): Update.
1510 (varobj_value_has_mutated, varobj_update): Likewise.
1511 (create_child_with_value, new_root_variable): Likewise.
1512 (number_of_children, name_of_variable): Likewise.
1513 (value_of_child, my_value_of_variable): Likewise.
1514 (varobj_value_is_changeable_p): Likewise.
1515
a53b64ea
YQ
15162013-10-25 Yao Qi <yao@codesourcery.com>
1517
1518 * language.h (struct lang_varobj_ops): Declare.
1519 (struct language_defn) <la_varobj_ops>: New field.
1520 * ada-lang.c: Include "varobj.h"
1521 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1522 ada_varobj_ops.
1523 * c-lang.c: Include "varobj.h"
1524 (c_language_defn): Initialize field 'la_varobj_ops' with
1525 c_varobj_ops.
1526 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1527 cplus_varobj_ops.
1528 (asm_language_defn): Initialize field 'la_varobj_ops' with
1529 default_varobj_ops.
1530 (minimal_language_defn): Likewise.
1531 * d-lang.c (d_language_defn): Likewise.
1532 * f-lang.c (f_language_defn): Likewise.
1533 * go-lang.c (go_language_defn): Likewise.
1534 * m2-lang.c (m2_language_defn): Likewise.
1535 * objc-lang.c (objc_language_defn): Likewise.
1536 * opencl-lang.c (opencl_language_defn): Likewise.
1537 * p-lang.c (pascal_language_defn): Likewise.
1538 * language.c (unknown_language_defn): Likewise.
1539 (auto_language_defn): Likewise.
1540 (local_language_defn): Likewise.
1541 * jv-lang.c (java_language_defn): Initialize field
1542 'la_varobj_ops' with java_varobj_ops.
1543 * varobj.c (varobj_create): Update.
1544 * varobj.h (default_varobj_ops): Define macro.
1545
686d4def
PA
15462013-10-25 Pedro Alves <palves@redhat.com>
1547
1548 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1549 static field value.
1550 (cp_print_static_field): If the value is entirely optimized out,
1551 print <optimized out> here.
1552 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1553 static field value.
1554 * p-valprint.c (pascal_object_print_static_field): If the value is
1555 entirely optimized out, print <optimized out> here.
1556 * valops.c (do_search_struct_field)
1557 (value_struct_elt_for_reference): No longer handle a NULL static
1558 field value.
1559 * value.c (value_static_field): Return an optimized out value
1560 instead of NULL.
1561
6c177e28
YQ
15622013-10-25 Yao Qi <yao@codesourcery.com>
1563
1564 * remote.c (remote_traceframe_info): Return early if
1565 traceframe is not selected.
1566
98322bfa
YQ
15672013-10-25 Yao Qi <yao@codesourcery.com>
1568
1569 * tracepoint.c (traceframe_fun): Remove.
1570 (traceframe_sal): Remove.
1571 (set_traceframe_context): Add local variables.
1572
6ba1f115
JB
15732013-10-25 Joel Brobecker <brobecker@adacore.com>
1574
1575 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1576 and parameter name.
1577
bbe769cc
MR
15782013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1579
1580 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1581 failure from register information collection.
1582
72ee4495 15832013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1584
1585 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1586 member.
1587 (linux_corefile_thread_callback): Update accordingly.
1588 (linux_make_corefile_notes): Likewise.
1589
98882a26
PA
15902013-10-24 Pedro Alves <palves@redhat.com>
1591
1592 * NEWS (New options): Mention set/show startup-with-shell.
1593 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1594 instead of 3.
1595 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1596 startup-with-shell'.
1597 (show_startup_with_shell): New function.
1598 (_initialize_fork_child): Register the set/show startup-with-shell
1599 commands.
1600 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1601 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1602 * procfs.c (procfs_init_inferior): Remove comment.
1603 * infcmd.c (startup_with_shell): New global.
1604 * inferior.h (startup_with_shell): Declare global.
1605 (STARTUP_WITH_SHELL): Delete.
1606 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1607
c9737c08
PA
16082013-10-23 Pedro Alves <palves@redhat.com>
1609
1610 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1611 * common/signals.c: Include "gdb_assert.h".
1612 (signals): New field 'symbol'.
1613 (SET): Use the 'symbol' parameter.
1614 (gdb_signal_to_symbol_string): New function.
1615 * infrun.c (handle_inferior_event) <random signal>: In debug
1616 output, print the random signal enum as string in addition to its
1617 number.
1618 * target/waitstatus.c (target_waitstatus_to_string): Print the
1619 signal's enum value as string instead of the (POSIX) signal name.
1620
f60db4f0
GB
16212013-10-23 Gary Benson <gbenson@redhat.com>
1622
1623 PR 16013
1624 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1625 from 32 to 18. Adjusted fscanf format string accordingly.
1626 (Avoids leaving cmd unterminated.)
1627 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1628 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1629 that local_address and remote_address will not overflow.
1630 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1631 leaving dependencies unterminated. Parse size as "%u" to match
1632 definition.
1633
6d3e7a94
PA
16342013-10-22 Pedro Alves <palves@redhat.com>
1635
1636 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1637 set ecs->random signal.
1638
42ec045f
PA
16392013-10-22 Pedro Alves <palves@redhat.com>
1640
1641 * infrun.c (keep_going): Update comments.
1642
16432013-10-22 Pedro Alves <palves@redhat.com>
1644
1645 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1646 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1647
16482013-10-22 Pedro Alves <palves@redhat.com>
1649
1650 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1651 GDB_EXC_BAD_ACCESS.
1652 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1653 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1654 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1655 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1656 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1657 (GDB_SIGNAL_LAST): Change description string.
1658 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1659 Adjust to signal renaming.
1660 * darwin-nat.c (darwin_decode_message): Likewise.
1661
c8fde1b1
JM
16622013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1663
1664 * MAINTAINERS (Write After Approval): Add myself to the list.
1665
e8369a73
AB
16662013-10-18 Andrew Burgess <aburgess@broadcom.com>
1667
1668 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1669 forced off, downgrade them to software watchpoints if possible,
1670 and error out if not possible.
1671 (watch_command_1): Move watchpoint type selection closer to
1672 watchpoint creation, and extend the comments.
1673
776f04fa
PA
16742013-10-18 Pedro Alves <palves@redhat.com>
1675
1676 PR gdb/16062
1677 * infrun.c (handle_inferior_event): Keep going if we got a random
1678 signal we should not stop for, instead of falling through to the
1679 step tests.
1680
0c6faab5
YQ
16812013-10-18 Yao Qi <yao@codesourcery.com>
1682
1683 * c-varobj.c (cplus_number_of_children): Fix indentation.
1684
50b34a18
TT
16852013-10-17 Tom Tromey <tromey@redhat.com>
1686
1687 PR gdb/15995:
1688 * printcmd.c (printcmd): Call gdb_flush.
1689
5c4c8a59
TT
16902013-10-17 Tom Tromey <tromey@redhat.com>
1691
1692 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1693 (elf_locate_sections): Update.
1694
c4124bf1
YQ
16952013-10-17 Yao Qi <yao@codesourcery.com>
1696
1697 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1698 * ada-varobj.c: Remove the include of ada-varobj.h.
1699 (ada_varobj_get_number_of_children): Declare.
1700 (ada_varobj_get_name_of_child): Make it static.
1701 (ada_varobj_get_path_expr_of_child): Likewise.
1702 (ada_varobj_get_value_of_child): Likewise.
1703 (ada_varobj_get_type_of_child): Likewise.
1704 (ada_varobj_get_value_of_array_variable): Likewise.
1705 * ada-varobj.h: Remove.
1706
99ad9427
YQ
17072013-10-17 Yao Qi <yao@codesourcery.com>
1708
1709 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1710 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1711 * ada-varobj.c: Include "varobj.h".
1712 (ada_number_of_children): New. Moved from varobj.c.
1713 (ada_name_of_variable, ada_name_of_child): Likewise.
1714 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1715 (ada_type_of_child, ada_value_of_variable): Likewise.
1716 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1717 (ada_varobj_ops): New.
1718 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1719 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1720 * gdbtypes.h (get_target_type): Declare.
1721 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1722 "ada-lang.h".
1723 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1724 (ANONYMOUS_UNION_NAME): Likewise.
1725 (get_type, get_value_type, get_target_type): Remove declarations.
1726 (value_get_print_value, varobj_value_get_print_value): Likewise.
1727 (c_number_of_children, c_name_of_variable): Likewise.
1728 (c_name_of_child, c_path_expr_of_child): Likewise.
1729 (c_value_of_child, c_type_of_child): Likewise.
1730 (c_value_of_variable, cplus_number_of_children): Likewise.
1731 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1732 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1733 (cplus_value_of_child, cplus_type_of_child): Likewise.
1734 (cplus_value_of_variable, java_number_of_children): Likewise.
1735 (java_name_of_variable, java_name_of_child): Likewise.
1736 (java_path_expr_of_child, java_value_of_child): Likewise.
1737 (java_type_of_child, java_value_of_variable): Likewise.
1738 (ada_number_of_children, ada_name_of_variable): Likewise.
1739 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1740 (ada_value_of_child, ada_type_of_child): Likewise.
1741 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1742 (ada_value_has_mutated): Likewise.
1743 (struct language_specific): Move it to varobj.h.
1744 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1745 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1746 Callers update.
1747 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1748 Make it extern.
1749 (is_anonymous_child): Move it to c-varobj.c and rename to
1750 varobj_is_anonymous_child. Caller update.
1751 (get_type): Move it to c-varobj.c.
1752 (get_value_type): Rename it varobj_get_value_type. Make it
1753 extern.
1754 (get_target_type): Move it gdbtypes.c.
1755 (varobj_formatted_print_options): New function.
1756 (value_get_print_value): Rename it to
1757 varobj_value_get_print_value and make it extern.
1758 (varobj_value_is_changeable_p): Make it extern.
1759 (adjust_value_for_child_access): Move it to c-varobj.c.
1760 (default_value_is_changeable_p): Rename it to
1761 varobj_default_value_is_changeable_p. Make it extern.
1762 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1763 (c_name_of_child, c_path_expr_of_child): Likewise.
1764 (c_value_of_child, c_type_of_child): Likewise.
1765 (c_value_of_variable, cplus_number_of_children): Likewise.
1766 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1767 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1768 (cplus_value_of_child, cplus_type_of_child): Likewise.
1769 (cplus_value_of_variable): Likewise.
1770 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1771 (java_name_of_child, java_path_expr_of_child): Likewise.
1772 (java_value_of_child, java_type_of_child): Likewise.
1773 (java_value_of_variable): Likewise.
1774 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1775 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1776 (ada_value_of_child, ada_type_of_child): Likewise.
1777 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1778 (ada_value_has_mutated): Likewise.
1779 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1780 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1781 (c_varobj_ops, cplus_varobj_ops): Declare.
1782 (java_varobj_ops, ada_varobj_ops): Declare.
1783 (varobj_default_value_is_changeable_p): Declare.
1784 (varobj_value_is_changeable_p): Declare.
1785 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1786 (varobj_get_path_expr_parent): Declare.
1787 (varobj_value_get_print_value): Declare.
1788 (varobj_formatted_print_options): Declare.
1789 (varobj_restrict_range): Declare.
1790
c8a62302
LM
17912013-10-17 Luis Machado <lgustavo@codesourcery.com>
1792
1793 * target/waitstatus.h (target_waitkind): Remove spurious
1794 character from the comments.
1795
eade6471
JB
17962013-10-17 Joel Brobecker <brobecker@adacore.com>
1797
1798 * gdbarch.sh (get_longjmp_target): Add method documentation.
1799 * gdbarch.h: Regenerate.
1800
5411b26c
TT
18012013-10-16 Tom Tromey <tromey@redhat.com>
1802
1803 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1804 label.
1805
87326c87
LM
18062013-10-16 Luis Machado <lgustavo@codesourcery.com>
1807
1808 * gcore.in: Call GDB using the full path to the gcore script.
1809 Error out if the GDB binary is not found.
1810
fd0a4d76
SDJ
18112013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1812
1813 PR gdb/16014
1814 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1815 sizeof.
1816
d92f7ee3
SDJ
18172013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1818
1819 PR gdb/16042
1820 * target.c (target_disable_btrace): Fix invalid return value for
1821 void function.
1822 (target_teardown_btrace): Likewise.
1823
bb5ce47a
YQ
18242013-10-14 Yao Qi <yao@codesourcery.com>
1825
1826 * varobj.c (struct varobj): Move most of the fields to
1827 varobj.h.
1828 (struct varobj_dynamic): New struct.
1829 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1830 (varobj_has_more): Likewise.
1831 (dynamic_varobj_has_child_method): Likewise.
1832 (update_dynamic_varobj_children): Likewise.
1833 (varobj_get_num_children): Likewise.
1834 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1835 (install_new_value_visualizer): Likewise.
1836 (install_new_value_visualizer, install_new_value): Likewise.
1837 (varobj_update, new_variable, free_variable): Likewise.
1838 (my_value_of_variable, value_get_print_value): Likewise.
1839 (install_visualizer): Change the type of parameter 'var' to
1840 'struct varobjd_dynamic *'. Callers update.
1841 * varobj.h (struct varobj): Moved from varobj.c.
1842 (struct varobj) <dynamic>: New field.
1843
0b76b0ce
SL
18442013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1845
1846 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1847 as the preferred name of r30.
1848 * nios2-linux-tdep.c (reg_offsets): Likewise.
1849 * features/nios2-cpu.xml: Likewise.
1850 * features/nios2-linux.c: Regenerated.
1851 * features/nios2.c: Regenerated.
1852 * regformats/nios2-linux.dat: Regenerated.
1853
4856b6bc
JK
18542013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1855
1856 Canonicalize directories for EXEC_FILENAME.
1857 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1858 exec_filename.
1859 * utils.c (gdb_realpath_keepfile): New function.
1860 * utils.h (gdb_realpath_keepfile): New declaration.
1861
9b557b58
DE
18622013-10-11 Doug Evans <dje@google.com>
1863
1864 * Makefile.in (GDBFLAGS): New variable.
1865 (run): New rule.
1866
ce13fade
JB
18672013-10-11 Joel Brobecker <brobecker@adacore.com>
1868
1869 * NEWS: Add entry documenting the new "-catch-assert" and
1870 "-catch-exception" GDB/MI commands.
1871
349774ef
JB
18722013-10-11 Joel Brobecker <brobecker@adacore.com>
1873
1874 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1875 "enabled".
1876 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1877 "enabled". Set B->ENABLE_STATE accordingly.
1878 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1879 ada-lang.c.
1880 (create_ada_exception_catchpoint): Add declaration.
1881 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1882 (create_ada_exception_catchpoint): Make non-static. Add new
1883 parameter "disabled". Use it in call to
1884 init_ada_exception_breakpoint.
1885 (catch_ada_exception_command): Add parameter "enabled" in call
1886 to create_ada_exception_catchpoint.
1887 (catch_assert_command): Likewise.
1888
1889 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1890 Add declarations.
1891 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1892 "catch-exception" commands.
1893 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1894 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1895
761269c8
JB
18962013-10-11 Joel Brobecker <brobecker@adacore.com>
1897
1898 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1899 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1900 of all its enumerates with "ada_". Update the rest of this
1901 file throughout.
1902
b4a5b78b
JB
19032013-10-11 Joel Brobecker <brobecker@adacore.com>
1904
1905 * ada-lang.c (ada_decode_exception_location): Delete.
1906 (create_ada_exception_catchpoint): Remove arguments "sal",
1907 "addr_string" and "ops". Add argument "ex_kind" instead.
1908 Adjust implementation accordingly, calling ada_exception_sal
1909 to get the entities it no longer gets passed as arguments.
1910 Document the function's arguments.
1911 (catch_ada_exception_command): Use catch_ada_exception_command_split
1912 instead of ada_decode_exception_location, and update call to
1913 create_ada_exception_catchpoint.
1914 (catch_ada_assert_command_split): Renames
1915 ada_decode_assert_location. Remove parameters "addr_string" and
1916 "ops", and now returns void. Adjust implementation accordingly.
1917 Update the function documentation.
1918 (catch_assert_command): Use catch_ada_assert_command_split
1919 instead of ada_decode_assert_location. Update call to
1920 create_ada_exception_catchpoint.
1921
7ad1d32c 19222013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1923
1924 * utils.h (perror_warning_with_name): Add declaration.
1925 * utils.c (perror_warning_with_name): New function.
1926 * cli/cli-cmds.c (source_script_with_search): Add call to
1927 perror_warning_with_name if from_tty is nul.
1928
7ad1d32c 19292013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1930
1931 * utils.c (perror_string): New function, extracted out of
1932 throw_perror_with_name.
1933 (throw_perror_with_name): Rework to use perror_string.
1934
bcc75809
YQ
19352013-10-11 Yao Qi <yao@codesourcery.com>
1936
1937 * remote.c (discard_pending_stop_replies_in_queue): Update
1938 declaration.
1939 (struct stop_reply) <rs>: New field.
1940 (remove_stop_reply_of_remote_state): New function.
1941 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1942 Callers update. Pass remove_stop_reply_of_remote_state to
1943 QUEUE_iterate.
1944 (remote_parse_stop_reply): Initialize field 'rs'.
1945
05feb193
WN
19462013-10-10 Will Newton <will.newton@linaro.org>
1947
1948 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1949 linux_init_abi.
1950
0d12017b
JB
19512013-10-10 Joel Brobecker <brobecker@adacore.com>
1952
1953 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1954 serial_baud_show_cmd.
1955 (_initialize_cli_cmds): Delete the code creating the
1956 "set/show remotebaud" commands.
1957 * serial.c (baud_rate): Move here from top.c.
1958 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1959 (_initialize_serial): Create "set/show serial baud" commands.
1960 Add "set/show remotebaud" command aliases.
1961 * top.c (baud_rate): Moved to serial.c.
1962 * NEWS: Document the new "set/show serial baud" commands,
1963 replacing "set/show remotebaud".
1964
578d3588
PA
19652013-10-09 Pedro Alves <palves@redhat.com>
1966
1967 * breakpoint.c (insert_bp_location): Use memory_error_message to
1968 build the memory error string.
1969 * c-lang.c: Include "gdbcore.h".
1970 (c_get_string): Use memory_error to throw error.
1971 (target_xfer_memory_error): Delete.
1972 (memory_error_message): New, factored out from
1973 target_xfer_memory_error.
1974 (memory_error): Change parameter type to target_xfer_error.
1975 Rewrite.
1976 (read_memory): Use memory_error instead of
1977 target_xfer_memory_error.
1978 * gdbcore.h: Include "target.h".
1979 (memory_error): Change parameter type to target_xfer_error.
1980 (memory_error_message): Declare function.
1981 * target.c (target_read_memory, target_read_stack)
1982 (target_write_memory, target_write_raw_memory): Return
1983 TARGET_XFER_E_IO on error. Adjust comments.
1984 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1985 instead of EIO.
1986 * target.h (target_read, target_insert_breakpoint)
1987 (target_remove_breakpoint): Adjust comments.
1988 * valprint.c (partial_memory_read): Rename parameter, and adjust
1989 comment.
1990 (val_print_string): Use memory_error_message to build the memory
1991 error string.
1992
c74e1ccf
JK
19932013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1994
1995 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1996 result variable. Rename variable fopen_e_ever_failed to
1997 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1998
915215be
PA
19992013-10-09 Pedro Alves <palves@redhat.com>
2000
2001 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2002 (monitor_write_memory_longlongs, monitor_write_memory_block):
2003 Constify 'myaddr' parameter.
2004 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2005 helper.
2006 (monitor_xfer_partial): New function.
2007 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2008 hook. Install a to_xfer_partial hook.
2009
acd13123
TT
20102013-10-09 Tom Tromey <tromey@redhat.com>
2011
2012 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2013 bfd_get_alt_debug_link_info.
2014
40135bb1
JK
20152013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2016
2017 New flag OBJF_NOT_FILENAME.
2018 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2019 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2020 allocate_objfile.
2021 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2022 symbol_file_add_from_bfd.
2023 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2024 allocate_objfile.
2025 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2026 NULL.
2027 * objfiles.h (OBJF_NOT_FILENAME): New.
2028
dc294be5
TT
20292013-10-08 Tom Tromey <tromey@redhat.com>
2030
2031 * Makefile.in (SFILES): Add build-id.c.
2032 (HFILES_NO_SRCDIR): Add build-id.h.
2033 * build-id.c: New file, largely from elfread.c. Modified
2034 most functions.
2035 * build-id.h: New file.
2036 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2037 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2038 Search for dwz file using build-id.
2039 * elfread.c (build_id_bfd_get, build_id_verify)
2040 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2041
db230ce3
JB
20422013-10-08 Joel Brobecker <brobecker@adacore.com>
2043
2044 * ada-lang.c (compare_names_with_case): Renamed from
2045 compare_names, adding a new parameter "casing" and its handling.
2046 New function documentation.
2047 (compare_names): New function, implemented using
2048 compare_names_with_case.
2049
6501c98a
JB
20502013-10-08 Joel Brobecker <brobecker@adacore.com>
2051
2052 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2053
84a1243b
TT
20542013-10-07 Tom Tromey <tromey@redhat.com>
2055
2056 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2057 demangled_names_hash.
2058 (free_objfile): Don't delete the demangled_names_hash.
2059 * objfiles.h (struct objfile_per_bfd_storage)
2060 <demangled_names_hash>: New field.
2061 (struct objfile) <demangled_names_hash>: Move to
2062 objfile_per_bfd_storage.
2063 * symfile.c (reread_symbols): Don't delete the
2064 demangled_names_hash.
2065 * symtab.c (create_demangled_names_hash): Update.
2066 (symbol_set_names): Update.
2067
1da77581
TT
20682013-10-07 Tom Tromey <tromey@redhat.com>
2069
2070 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2071 needs_relocations>: New fields.
2072 (gdb_bfd_requires_relocations): New function.
2073 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2074 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2075 the BFD needs relocations applied.
2076
46ecd527
PA
20772013-10-07 Pedro Alves <palves@redhat.com>
2078
2079 PR breakpoints/11568
2080 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2081 the thread list" instead of "gone".
2082
0c557179
SDJ
20832013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2084
2085 * NEWS: Mention new convenience variable $_exitsignal.
2086 * corelow.c (core_open): Reset exit convenience variables. Set
2087 $_exitsignal to the uncaught signal which generated the corefile.
2088 * infrun.c (handle_inferior_event): Reset exit convenience
2089 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2090 (clear_exit_convenience_vars): New function.
2091 * inferior.h (clear_exit_convenience_vars): New prototype.
2092
1cc47d81
YQ
20932013-10-06 Yao Qi <yao@codesourcery.com>
2094
2095 * varobj.h: Add comments to enum varobj_languages.
2096
73869dc2
DE
20972013-10-04 Doug Evans <dje@google.com>
2098
2099 Add support for DWP file format version 2.
2100 * NEWS: Mention support for DWP file format version 2.
2101 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2102 union of asection, containing_section. New fields virtual_offset
2103 and is_virtual. Change type of readin filed from int to char.
2104 (dwo_sections, dwo_file): Tweak comments.
2105 (dwp_v2_section_ids): New enum.
2106 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2107 str_offsets, types.
2108 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2109 All uses updated.
2110 (virtual_v2_dwo_sections): New struct.
2111 (dwp_hash_table): New fields version, nr_columns. Change type of
2112 section_pool field to a union.
2113 (dwp_file): New field version.
2114 (dwarf2_has_info): Check for virtual sections.
2115 (get_containing_section): New function.
2116 (get_section_bfd_owner, get_section_bfd_section): Call it.
2117 (dwarf2_locate_sections): Update.
2118 (dwarf2_section_empty_p): Update.
2119 (dwarf2_read_section): Handle virtual sections.
2120 (locate_dwz_sections): Update.
2121 (create_dwp_hash_table): Document and handle V2 format.
2122 (locate_v1_virtual_dwo_sections): Renamed from
2123 locate_virtual_dwo_sections and update. All callers updated.
2124 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2125 Delete arg htab. Rename arg section_index to unit_index.
2126 All callers updated.
2127 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2128 All uses updated.
2129 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2130 (lookup_dwo_unit_in_dwp): Add V2 support.
2131 (dwarf2_locate_dwo_sections): Update.
2132 (dwarf2_locate_common_dwp_sections): Renamed from
2133 dwarf2_locate_dwp_sections and update. All callers updated.
2134 (dwarf2_locate_v2_dwp_sections): New function.
2135 (open_and_init_dwp_file): Add V2 support.
2136 (read_str_index): New locals str_section, str_offsets_section.
2137
9a2c3737
PA
21382013-10-04 Pedro Alves <palves@redhat.com>
2139
2140 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2141 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2142 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2143 describing comments with references to ptid.h.
2144 * common/ptid.h: Remove intro description of constructors,
2145 accessors and predicates.
2146 (struct ptid): Reformat.
2147 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2148 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2149 describing comments.
2150
f5371440
JB
21512013-10-04 Joel Brobecker <brobecker@adacore.com>
2152
2153 * aix-thread.c (sync_threadlists): Add missing ')' in call
2154 to ptid_build.
2155
793e1c06
JB
21562013-10-04 Joel Brobecker <brobecker@adacore.com>
2157
2158 * procfs.c (procfs_init_inferior): Fix typo causing the build
2159 to fail.
2160
26f0edc1
JB
21612013-10-04 Joel Brobecker <brobecker@adacore.com>
2162
2163 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2164
5713b9b5
JB
21652013-10-04 Joel Brobecker <brobecker@adacore.com>
2166
2167 * mi/mi-main.c (run_one_inferior): Add function description.
2168 Make ARG a pointer to an integer whose value determines whether
2169 we should "run" or "start" the program.
2170 (mi_cmd_exec_run): Add handling of the "--start" option.
2171 Reject all other command-line options.
2172 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2173
f48ff2a7
YQ
21742013-10-04 Yao Qi <yao@codesourcery.com>
2175
2176 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2177 (struct notif_client) <pending_event>: Moved
2178 to struct remote_notif_state.
2179 <id>: New field.
2180 (struct remote_notif_state) <pending_event>: New field.
2181 (notif_event_xfree): Declare.
2182 * remote-notif.c (handle_notification): Adjust.
2183 (notif_event_xfree): New function.
2184 (do_notif_event_xfree): Call notif_event_xfree.
2185 (remote_notif_state_xfree): Call notif_event_xfree to free
2186 each element in field pending_event.
2187 * remote.c (discard_pending_stop_replies): Remove declaration.
2188 (discard_pending_stop_replies_in_queue): Declare.
2189 (remote_close): Call discard_pending_stop_replies_in_queue
2190 instead of discard_pending_stop_replies.
2191 (remote_start_remote): Adjust.
2192 (stop_reply_xfree): Call notif_event_xfree.
2193 (notif_client_stop): Adjust initialization.
2194 (remote_notif_remove_all): Rename it to ...
2195 (remove_stop_reply_for_inferior): ... this. Update comments.
2196 Don't check INF is NULL.
2197 (discard_pending_stop_replies): Return early if notif_state is
2198 NULL. Adjust. Don't check INF is NULL.
2199 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2200 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2201 (remote_wait_ns): Likewise.
2202
5965e028
YQ
22032013-10-04 Yao Qi <yao@codesourcery.com>
2204
2205 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2206 (notif_queue): Remove.
2207 (remote_notif_process): Add one parameter 'notif_queue'.
2208 Update comments. Callers update.
2209 (remote_async_get_pending_events_token): Remove.
2210 (remote_notif_register_async_event_handler): Remove.
2211 (remote_notif_unregister_async_event_handler): Remove.
2212 (handle_notification): Add parameter 'notif_queue'. Update
2213 comments. Callers update.
2214 (notif_xfree): Remove.
2215 (remote_notif_state_allocate): New function.
2216 (remote_notif_state_xfree): New function.
2217 (_initialize_notif): Remove code to allocate queue.
2218 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2219 (struct remote_notif_state): New.
2220 (handle_notification): Update declaration.
2221 (remote_notif_process): Likewise.
2222 (remote_notif_register_async_event_handler): Remove.
2223 (remote_notif_unregister_async_event_handler): Remove.
2224 (remote_notif_state_allocate): Declare.
2225 (remote_notif_state_xfree): Declare.
2226 * remote.c (struct remote_state) <notif_state>: New field.
2227 (remote_close): Don't call
2228 remote_notif_unregister_async_event_handler. Call
2229 remote_notif_state_xfree.
2230 (remote_open_1): Don't call
2231 remote_notif_register_async_event_handler. Call
2232 remote_notif_state_allocate.
2233
5e5ac9a5
YQ
22342013-10-04 Yao Qi <yao@codesourcery.com>
2235
2236 * varobj.c (create_child_with_value): Remove 'const' from the
2237 type of parameter 'name'.
2238 (varobj_add_child): Likewise.
2239 (install_dynamic_child): Remove 'const' from the type of
2240 parameter 'name'.
2241 (varobj_add_child): Likewise.
2242 (create_child_with_value): Likewise. Update comments. Don't
2243 duplicate 'name'.
2244 (update_dynamic_varobj_children): Duplicate 'name'
2245 and pass it to install_dynamic_child.
2246
06ab7b19
PM
22472013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2248
2249 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2250 conversion logic to occur after PyLong_Check. Comment on order
2251 change significance.
2252 * python/py-arch.c (archpy_disassemble): Comment on order of
2253 conversion for integers and longs.
2254
8ae377e8
PA
22552013-10-03 Pedro Alves <palves@redhat.com>
2256
2257 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2258 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2259 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2260 PTRACE_O_TRACEFORK is not supported.
2261 (linux_test_for_tracesysgood): New function.
2262 (linux_test_for_tracefork): New function, factored out from
2263 linux_check_ptrace_features, and also don't kill child_pid here.
2264
b1328b1b
TG
22652013-10-03 Tristan Gingold <gingold@adacore.com>
2266
2267 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2268 Remove verbose error reporting. Use detected state to
2269 thread_set_state call.
2270 (i386_darwin_dr_get): Fix return type. Remove verbose error
2271 report.
2272 Remove trailing spaces.
2273
901461f8
PA
22742013-10-02 Pedro Alves <palves@redhat.com>
2275
2276 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2277 val_print_optimized_out.
2278 * jv-valprint.c (java_print_value_fields): Likewise.
2279 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2280 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2281 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2282 new optimized out value.
2283 * findvar.c (address_from_register): Likewise.
2284 * frame.c (put_frame_register): Tweak error string to say the
2285 register was not saved, rather than optimized out.
2286 * infcmd.c (default_print_one_register_info): Adjust call to
2287 val_print_optimized_out. Use value_of_register instead of
2288 get_frame_register_value.
2289 * mi/mi-main.c (output_register): Use value_of_register instead of
2290 get_frame_register_value.
2291 * valprint.c (valprint_check_validity): Likewise.
2292 (val_print_optimized_out): New value parameter. If the value is
2293 lval_register, print <not saved> instead.
2294 (value_check_printable, val_print_scalar_formatted): Adjust calls
2295 to val_print_optimized_out.
2296 * valprint.h (val_print_optimized_out): New value parameter.
2297 * value.c (struct value) <optimized_out>: Extend comment.
2298 (error_value_optimized_out): New function.
2299 (require_not_optimized_out): Use it. Use a different string for
2300 lval_register values.
2301 * value.h (error_value_optimized_out): New declaration.
2302 * NEWS: Mention <not saved>.
2303
042a84d9
JB
23042013-10-02 Joel Brobecker <brobecker@adacore.com>
2305
2306 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2307 strcmp to compare two symtab filenames.
2308
6b9780fb
JB
23092013-10-02 Joel Brobecker <brobecker@adacore.com>
2310
2311 * symtab.c (search_symbols_equal): Delete.
2312 (sort_search_symbols_remove_dups): Replace call to
2313 search_symbols_equal by call to compare_search_syms,
2314 adjusting as necessary.
2315
751e7549
PM
23162013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2317
2318 PR python/15579
751e7549
PM
2319 * python/python.c: Document gdb.execute command in Python help.
2320
1efd7661
PM
23212013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2322
2323 * python/py-frame.c (frame_info_to_frame_object): Use
2324 gdbpy_convert_exception. Clean up Python object on failure.
2325
562fc849
PM
23262013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2327
2328 * python/lib/gdb/command/frame_filters.py
2329 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2330 (ShowFrameFilterPriority.invoke): Ditto.
2331
d7561cbb
KS
23322013-10-01 Keith Seitz <keiths@redhat.com>
2333
2334 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2335 (parse_linespec): Make 'argptr' const.
2336 Remove temporary cast of 'argptr' to const char **.
2337 (decode_line_full): Pass const pointer to parse_linespec.
2338 (decode_line_1): Likewise.
2339 (decode_objc): Make local variable 'new_argptr' const.
2340 (find_function_symbols): Remove temporary cast to char *
2341 to find_imps.
2342 * objc-lang.c (find_imps): Make argument 'method' const.
2343 Return const.
2344 * objc-lang.h (find_imps): Likewise.
2345
23462013-10-01 Keith Seitz <keiths@redhat.com>
2347
2348 * completer.c (skip_quoted_chars): Make all arguments const.
2349 Return const.
2350 (skip_quoted): Likewise.
2351 * completer.h (skip_quoted_chars): Likewise.
2352 (skip_quoted): Likewise.
2353 * defs.h (skip_quoted): Remove duplicate declaration.
2354 * jv-exp.y: Include completer.h.
2355 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2356 * p-exp.y: Include completer.h.
2357
23582013-10-01 Keith Seitz <keiths@redhat.com>
2359
2360 * c-exp.y (parse_number): Make first argument const.
2361 Make a copy of the input to manipulate.
2362 (c_parse_escape): Make first argument const.
2363 Make local variable 'tokptr' const.
2364 (parse_string_or_char): Make first two arguments const.
2365 (macro_original_text): Make const.
2366 (lex_one_token): Make local variable 'tokstart' const.
2367 Likewise for local variables named 'p'.
2368 Cast away const for struct stoken (temporary).
2369 * c-lang.h (c_parse_escpae): Make first argument const.
2370 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2371 const.
2372 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2373 var_string case.
2374 * f-exp.y (parse_number): Make first argument const.
2375 (match_string_literal): Make local variable 'tokstart'
2376 const.
2377 (yylex): Make local variable 'p' const.
2378 Cast away const for struct stoken (temporary).
2379 * go-exp.y (parse_number): Make first argument const.
2380 (parse_string_or_char): Likewise.
2381 Make local variable 'tokstart' const.
2382 (lex_one_token): Likewise for numerous locals called 'p'.
2383 Cast away const for struct stoken (temporary).
2384 * jv-exp.y (parse_number): Make first argument const.
2385 Make local variables 'tokstart' and 'tokptr' const.
2386 Cast away const for call to skip_quoted (temporary).
2387 (yylex): Make local variable 'p' const.
2388 Cast away const for struct stoken (temporary).
2389 * m2-exp.y (parse_number): Make local variable 'p' const.
2390 (yylex): Likewise for 'tokstart'.
2391 Cast away const for struct stoken (temporary).
2392 Make local variable 'p' const.
2393 * macroexp.c (get_character_constant): Pass a const string
2394 to c_parse_escape.
2395 (get_string_literal): Likewise.
2396 (macro_expand_next): Make first argument const.
2397 Cast away const for init_shared_buffer.
2398 * macroexp.h (macro_expand_next): Make first argument const.
2399 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2400 Pass a const string to c_parse_escape.
2401 Make local variables 'p' and 'namestart' const.
2402 * parse.c (lexptr): Make const.
2403 (prev_lexptr): Likewise.
2404 (find_template_name_end): Return const.
2405 Make argument const, too.
2406 (parse_exp_in_context): Make first argument const.
2407 Remove the entire const_hack.
2408 (parse_exp_in_context_1): Make first argument const.
2409 * parser-defs.h (find_template_name_end): Return const.
2410 Make argument const, too.
2411 (lexptr): Make const.
2412 (prev_lexptr): Likewise.
2413 * utils.c (parse_escape): Make second argument const.
2414 * utils.h (parse_escape): Likewise.
2415
24162013-10-01 Keith Seitz <keiths@redhat.com>
2417
2418 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2419 is now const.
2420 (block_lookup): Make 'raw_name' and 'name' const.
2421 * ada-lex.l (processString): Update for struct stoken.ptr.
2422 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2423 (operator_stoken): Likewise.
2424 (lex_one_token): Remove temporary cast to char * for
2425 'yylval.sval.ptr'.
2426 * f-exp.y (yylex): Likewise.
2427 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2428 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2429 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2430 'yylval.sval.ptr'.
2431 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2432 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2433 * linespec.c (struct ls_parser): Make 'stream' const.
2434 (find_parameter_list_end): Make argument 'input' and local
2435 variable 'p' const.
2436 (linespec_lexer_lex_string): Make local variables 'start' and
2437 'p' const.
2438 Use skip_spaces_const instead of skip_spaces.
2439 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2440 const.
2441 (parse_linespec): Temporarily cast 'argptr' to const for
2442 'parser->lexer.stream'.
2443 * m2-exp.y (yylex): Remove temporary cast to char * for
2444 'yylval.sval.ptr'.
2445 * objc-lang.c (add_msglist): Make local variable 'p' const.
2446 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2447 (exp : STRING): Make 'sp' const.
2448 (parse_number): Make argument 'p' const.
2449 * parser-defs.h (struct stoken): Make 'ptr' const.
2450
193a8eac
DE
24512013-10-01 Doug Evans <dje@google.com>
2452
2453 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2454
2213e2be
YQ
24552013-10-01 Yao Qi <yao@codesourcery.com>
2456
2457 * varobj.c (c_value_of_root): Remove declaration.
2458 (cplus_value_of_root, java_value_of_root): Likewise.
2459 (ada_value_of_root): Likewise.
2460 (struct language_specific) <value_of_root>: Remove.
2461 (languages): Update initialization.
2462 (check_scope): Move earlier.
2463 (c_value_of_root): Move earlier and rename to ...
2464 (value_of_root_1): ... this.
2465 (value_of_root): Caller update.
2466 (cplus_value_of_root, java_value_of_root): Remove.
2467 (ada_value_of_root): Remove.
2468
c573f273
YQ
24692013-10-01 Yao Qi <yao@codesourcery.com>
2470
2471 * varobj.c (varobj_format_string): Remove "unknown".
2472 (languages): Remove the first element.
2473 * varobj.h (enum varobj_languages): Remove vlang_c.
2474
56250258
YQ
24752013-10-01 Yao Qi <yao@codesourcery.com>
2476
2477 * varobj.c (struct language_specific) <language>: Remove.
2478 (languages): Update the initialization.
2479
29f9ebfa
YQ
24802013-10-01 Yao Qi <yao@codesourcery.com>
2481
2482 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2483 "solib-target.h". Include "windows-tdep.h".
2484 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2485 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2486 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2487 windows-tdep.o to gdb_target_obs.
2488
64870a42
YQ
24892013-10-01 Yao Qi <yao@codesourcery.com>
2490
2491 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2492 "solib-target.h".
2493 (amd64_windows_init_abi): Don't call set_solib_ops and
2494 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2495 windows_init_abi instead.
2496 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2497 "solib-target.h".
2498 (i386_cygwin_init_abi): Don't call set_solib_ops,
2499 set_gdbarch_has_dos_based_file_system and
2500 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2501 windows_init_abi instead.
2502 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2503 (windows_init_abi): New function.
2504 (windows_iterate_over_objfiles_in_search_order): Make it
2505 static.
2506 * windows-tdep.h (windows_init_abi): Declare.
2507 (windows_iterate_over_objfiles_in_search_order): Remove
2508 declaration.
2509
0aebdefa
JB
25102013-10-01 Jerome Guitton <guitton@adacore.com>
2511
2512 Checked in by Joel Brobecker <brobecker@adacore.com>
2513 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2514 incomplete dictionnary instead of None in case of missing
2515 environment variables.
2516 (elinos_init): in case of an incomplete environment, best
2517 effort to load system libraries instead of abort.
2518
1c8e84b0
JB
25192013-10-01 Joel Brobecker <brobecker@adacore.com>
2520
2521 * ada-lang.c (ada_has_this_exception_support): Ignore
2522 mst_solib_trampoline minimal symbols.
2523
61d82a0d
TG
25242013-09-30 Tristan Gingold <gingold@adacore.com>
2525
2526 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2527 hardware watchpoint.
2528 (i386_darwin_dr_set): Support 32 and 64 bit states.
2529 (i386_darwin_dr_get): Likewise.
2530 (i386_darwin_dr_set_control): Make static.
2531 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2532 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2533
dfd4cc63
LM
25342013-09-30 Luis Machado <lgustavo@codesourcery.com>
2535
2536 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2537 Replace TIDGET with ptid_get_lwp.
2538 Replace GET_LWP with ptid_get_lwp.
2539 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2540 Replace BUILD_THREAD with ptid_build.
2541 Replace BUILD_LWP with ptid_build.
2542 Replace PIDGET with ptid_get_pid.
2543 Replace TIDGET with ptid_get_lwp.
2544 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2545 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2546 Replace TIDGET with ptid_get_lwp.
2547 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2548 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2549 Replace TIDGET with ptid_get_lwp.
2550 Replace GET_LWP with ptid_get_lwp.
2551 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2552 * auxv.c: Likewise.
2553 * breakpoint.c: Likewise.
2554 * common/ptid.c (ptid_is_pid): Condense check for
2555 null_ptid and minus_one_ptid.
2556 (ptid_lwp_p): New function.
2557 (ptid_tid_p): New function.
2558 * common/ptid.h: Update comments for accessors.
2559 (ptid_lwp_p): New prototype.
2560 (ptid_tid_p): New prototype.
2561 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2562 * gcore.c: Replace PIDGET with ptid_get_pid.
2563 * gdbthread.h: Likewise.
2564 * gnu-nat.c: Likewise.
2565 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2566 Replace TIDGET with ptid_get_lwp.
2567 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2568 * hppanbsd-nat.c: Likewise.
2569 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2570 Replace TIDGET with ptid_get_lwp.
2571 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2572 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2573 * infcmd.c: Likewise.
2574 * inferior.h: Likewise.
2575 * inflow.c: Likewise.
2576 * infrun.c: Likewise.
2577 * linux-fork.c: Likewise.
2578 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2579 Replace GET_PID with ptid_get_pid.
2580 Replace is_lwp with ptid_lwp_p.
2581 Replace GET_LWP with ptid_get_lwp.
2582 Replace BUILD_LWP with ptid_build.
2583
5b4e221c
MF
25842013-09-28 Mike Frysinger <vapier@gentoo.org>
2585
2586 * common/linux-btrace.c: Move sys/syscall.h out of the
2587 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2588 Also check for SYS_perf_event_open before attempting to buid.
2589
57d63ce2
DE
25902013-09-27 Doug Evans <dje@google.com>
2591
19ac8c2e
DE
2592 * dwarf2read.c (dwarf2_section_info): Add comment.
2593 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2594 All uses updated.
2595 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2596 (dwarf2_read_section): Delete unused local "header". Add section
2597 name to error message.
2598 (create_dwo_in_dwp): Tweak comment.
2599 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2600
a32a8923
DE
2601 * dwarf2read.c (die_reader_specs): Tweak comment.
2602 (get_section_bfd_owner, get_section_bfd_section): New functions.
2603 (get_section_name, get_section_file_name): New functions.
2604 (get_section_id, get_section_flags): New functions.
2605 (*): Use new functions to access section fields.
2606
57d63ce2
DE
2607 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2608 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2609 arg "htab". All callers updated.
2610 (create_debug_types_hash_table): Remove redundant copy of
2611 abbrev_section.
2612 (create_dwo_in_dwp): Tweak comments.
2613 (read_str_index): Tweak comment. Record dwarf form name in static
2614 local.
2615
3736004f
PA
26162013-09-27 Pedro Alves <palves@redhat.com>
2617
2618 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2619 (remote_filename_p): Add comment.
2620 * remote.c (remote_filename_p): Adjust to use
2621 REMOTE_SYSROOT_PREFIX.
2622 * solib.c (solib_find): When deciding whether we need to add a
2623 directory separator, check whether the sysroot is "remote:"
2624 instead of checking whether the patch has a drive spec. Add
2625 comments.
2626
5b5596ff
PA
26272013-09-27 Pedro Alves <palves@redhat.com>
2628
2629 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2630 Delete fields.
2631 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2632 directly.
2633
b5eef7aa
JK
26342013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2635
2636 Fix set debug frame output.
2637 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2638 SENTINEL_FRAME entry lower to match enum frame_type order.
2639
5b856f36
PM
26402013-09-26 Pierre Muller <muller@sourceware.org>
2641
2642 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2643 AMD64_R15_REGNUM when a register index is expected.
2644 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2645 Substitute in array.
2646 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2647 (amd64_push_arguments): Substitute in integer_regnum array.
2648
ade7ed9e
DE
26492013-09-25 Doug Evans <dje@google.com>
2650
d3e81981
DE
2651 * objfiles.c (allocate_objfile): Move comment to better place.
2652
8fb8eb5c
DE
2653 New option "set debug symfile on".
2654 * NEWS: Mention "set debug symfile".
2655 * Makefile.in (SFILES): Add symfile-debug.c.
2656 (COMMON_OBS): Add symfile-debug.o.
2657 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2658 objfile's symbol functions.
2659 * objfiles.h (objfile_set_sym_fns): Declare.
2660 * symfile-debug.c: New file.
2661 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2662 objfile's symbol functions.
2663 (reread_symbols): Ditto.
2664
c256e171
DE
2665 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2666 All uses updated.
2667 (add_symtab_fns): Update prototype.
2668 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2669 (registered_sym_fns): ... this.
2670 (symtab_fns): Update.
2671 (add_symtab_fns): New arg "flavour". All callers updated.
2672 (find_sym_fns): Rewrite to use new sym_fns registry.
2673
f56ce883
DE
2674 * symfile.h (struct sym_fns): Add "objfile" argument to
2675 sym_read_linetable. All uses updated.
2676
20c681d1
DE
2677 * symtab.c (domain_name, search_domain_name): New functions.
2678 * symtab.h (domain_name, search_domain_name): Declare.
2679
ade7ed9e
DE
2680 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2681 map_matching_symbols so objfile is first. All uses updated.
2682 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2683 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2684
7d760051
UW
26852013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2686
2687 PR shlibs/8882
2688 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2689 link map entries.
2690
020f7036
DE
26912013-09-24 Doug Evans <dje@google.com>
2692
2693 * objfiles.c (free_objfile): Move comment.
2694
598402f0
JB
26952013-09-24 Joel Brobecker <brobecker@adacore.com>
2696
2697 * ada-exp.y (string_to_operator): Delete.
2698 (dummy_string_to_ada_operator): Delete.
2699
bf4d6c1c
JB
27002013-09-24 Joel Brobecker <brobecker@adacore.com>
2701
2702 Revert:
2703 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2704 amd64-tdep.c.
2705 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2706 call_dummy_integer_regs, and classify.
2707 * amd64-tdep.h (amd64_classify): Add declaration.
2708 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2709 (amd64_reg_class): Delete, moved to i386-tdep.h.
2710 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2711 Replace call to amd64_classify by call to tdep->classify.
2712 (amd64_push_arguments): Get the list of registers to use for
2713 passing integer parameters from the gdbarch tdep structure,
2714 rather than using a hardcoded one. Replace calls to amd64_classify
2715 by calls to tdep->classify.
2716 (amd64_push_dummy_call): Get the register number used for
2717 the "hidden" argument from tdep->call_dummy_integer_regs.
2718 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2719 and tdep->call_dummy_integer_regs. Set tdep->classify.
2720
849e9755
JB
27212013-09-24 Joel Brobecker <brobecker@adacore.com>
2722
2723 Revert:
2724 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2725 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2726 where tdep->memory_args_by_pointer is non-zero.
2727
c1459fd6
JB
27282013-09-24 Joel Brobecker <brobecker@adacore.com>
2729
2730 Revert:
2731 * i386-tdep.h (struct gdbarch_tdep): Add new field
2732 integer_param_regs_saved_in_caller_frame.
2733 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2734 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2735
20c2e3e0
JB
27362013-09-24 Joel Brobecker <brobecker@adacore.com>
2737
874440b8 2738 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2739 (amd64_windows_classify): Delete.
2740 (amd64_windows_passed_by_integer_register)
2741 (amd64_windows_passed_by_xmm_register)
2742 (amd64_windows_passed_by_pointer)
2743 (amd64_windows_adjust_args_passed_by_pointer)
2744 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2745 (amd64_windows_push_dummy_call): New functions.
2746 (amd64_windows_init_abi): Remove setting of
2747 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2748 tdep->classify, tdep->memory_args_by_pointer and
2749 tdep->integer_param_regs_saved_in_caller_frame.
2750 Add call to set_gdbarch_push_dummy_call.
2751
82bf32bc
JK
27522013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2755 objfile->original_name.
2756
24ba069a
JK
27572013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2758
2759 Pass down original filename for objfile.
2760 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2761 * elfread.c (elf_symfile_read): Likewise.
2762 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2763 longer set ORIGINAL_NAME.
2764 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2765 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2766 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2767 symbol_file_add_from_bfd call.
2768 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2769 (macho_check_dsym): Add parameter filenamep. Change function comment.
2770 Set *filenamep.
2771 (macho_symfile_read): New variable dsym_filename. Update
2772 macho_check_dsym call. Use it for symbol_file_add_separate.
2773 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2774 it. Use it for objfile->original_name.
2775 (objfile_name): Return OBFD's filename, if available.
2776 * objfiles.h (allocate_objfile): Add new parameter name.
2777 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2778 * symfile-mem.c (symbol_file_add_from_memory): Update
2779 symbol_file_add_from_bfd call.
2780 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2781 comment for it.
2782 (symbol_file_add_with_addrs): New parameter name, add function comment
2783 for it. Remove variable name. Update allocate_objfile call.
2784 (symbol_file_add_separate): New parameter name, add function comment
2785 for it. Update symbol_file_add_with_addrs call.
2786 (symbol_file_add_from_bfd): New parameter name. Update
2787 symbol_file_add_with_addrs call.
2788 (symbol_file_add): Update symbol_file_add_from_bfd call.
2789 (reread_symbols): New variable original_name. Save
2790 objfile->original_name by it.
2791 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2792 second parameter.
2793
4262abfb
JK
27942013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 Code cleanup: Add objfile_name accessor function.
2797 * ada-lang.c (is_known_support_routine): Use objfile_name.
2798 * auto-load.c (source_gdb_script_for_objfile)
2799 (auto_load_objfile_script): Likewise.
2800 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2801 * dbxread.c (dbx_symfile_read): Likewise.
2802 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2803 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2804 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2805 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2806 (lookup_dwp_signatured_type, lookup_dwo_unit)
2807 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2808 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2809 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2810 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2811 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2812 (read_subrange_type, load_partial_dies, read_partial_die)
2813 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2814 (die_containing_type, build_error_marker_type, lookup_die_type)
2815 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2816 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2817 (get_DW_AT_signature_type, write_psymtabs_to_index)
2818 (save_gdb_index_command): Likewise.
2819 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2820 Likewise.
2821 * expprint.c (dump_subexp_body_standard): Likewise.
2822 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2823 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2824 original_name.
2825 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2826 obj_name, use objfile_name for it, use the variable.
2827 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2828 Use objfile_name.
2829 * machoread.c (macho_symtab_read, macho_check_dsym)
2830 (macho_symfile_relocate): Likewise.
2831 * maint.c (maintenance_translate_address): Likewise.
2832 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2833 * minsyms.c (install_minimal_symbols): Likewise.
2834 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2835 original_name.
2836 (filter_overlapping_sections): Use objfile_name.
2837 (objfile_name): New function.
2838 * objfiles.h (struct objfile): Rename field name to original_name.
2839 (objfile_name): New prototype.
2840 * printcmd.c (sym_info, address_info): Use objfile_name.
2841 * probe.c (parse_probes, collect_probes, compare_probes)
2842 (info_probes_for_ops): Likewise.
2843 * progspace.c (clone_program_space): Likewise.
2844 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2845 (maintenance_info_psymtabs): Likewise.
2846 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2847 (source_section_scripts): Likewise.
2848 * python/py-objfile.c (objfpy_get_filename): Likewise.
2849 * python/py-progspace.c (pspy_get_filename): Likewise.
2850 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2851 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2852 * solib.c (solib_read_symbols): Likewise.
2853 * stabsread.c (scan_file_globals): Likewise.
2854 * stap-probe.c (handle_stap_probe): Likewise.
2855 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2856 (find_separate_debug_file_by_debuglink): Likewise.
2857 (reread_symbols): Likewise. Use the objfile field name renamed to
2858 original_name.
2859 (allocate_symtab): Use objfile_name.
2860 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2861 (dump_objfile, dump_msymbols, dump_symtab_1)
2862 (maintenance_print_msymbols, maintenance_print_objfiles)
2863 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2864 * target.c (target_translate_tls_address, target_info): Likewise.
2865 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2866 objfile_name.
2867
4721dc18
JK
28682013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2869
2870 Code cleanup.
2871 * probe.c (parse_probes): Rename variable objfile_name to
2872 objfile_namestr.
2873
a61d6db8
JK
28742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2875
2876 Remove solib-sunos.c.
2877 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2878 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2879 * objfiles.c (rt_common_objfile): Remove.
2880 (free_objfile): Remove rt_common_objfile comparison.
2881 * objfiles.h (rt_common_objfile): Remove.
2882 * solib-sunos.c: Remove.
2883 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2884
2659903b
JK
28852013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2886
2887 Remove a.out NetBSD and OpenBSD hosts.
2888 * NEWS (Removed native configurations): New.
2889 * config/arm/nbsdaout.mh: Remove.
2890 * config/i386/nbsdaout.mh: Remove.
2891 * config/i386/obsdaout.mh: Remove.
2892 * config/m68k/nbsdaout.mh: Remove.
2893 * config/sparc/nbsdaout.mh: Remove.
2894 * config/vax/nbsdaout.mh: Remove.
2895 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2896 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2897 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2898 error.
2899 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2900 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2901 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2902
f60e2d5c
TT
29032013-09-23 Tom Tromey <tromey@redhat.com>
2904
2905 * linespec.c (struct minsym_and_objfile): Remove.
2906 (minsym_and_objfile_d): Remove.
2907 (struct linespec, struct collect_info, linespec_parse_basic)
2908 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2909 (compare_msymbols, find_method, find_function_symbols)
2910 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2911 (add_minsym, search_minsyms_for_name): Update.
2912
d3eaaf66
AB
29132013-09-23 Andrew Burgess <aburgess@broadcom.com>
2914
2915 * regcache.c: Add include of valprint.h.
2916 (dump_endian_bytes): Delete.
2917 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2918
2cc762b5
AB
29192013-09-23 Andrew Burgess <aburgess@broadcom.com>
2920
2921 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2922
96181529
PA
29232013-09-19 Pedro Alves <palves@redhat.com>
2924
2925 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2926 breakpoints.
2927
9b3f3ee6
TS
29282013-09-19 Pedro Alves <palves@redhat.com>
2929 Thomas Schwinge <thomas@codesourcery.com>
2930 Yue Lu <hacklu.newborn@gmail.com>
2931
2932 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2933 Take a gdb_byte pointer instead of a char pointer.
2934
2935 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2936 gnu_xfer_partial helper.
2937 (gnu_xfer_partial): New function.
2938 (gnu_target): Don't install a deprecated_xfer_memory hook.
2939 Install a to_xfer_partial hook.
2940
69150c3d
JK
29412013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2942
2943 Constification.
2944 * main.c (captured_main): Replace catch_command_errors by
2945 catch_command_errors_const. Twice.
2946 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2947 (symbol_file_add): Make name parameter const.
2948 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2949 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2950 variable name. Change their usage accordingly.
2951 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2952 const.
2953 (symbol_file_add_main): Make args parameter const.
2954
086850b2
UW
29552013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2956 Ulrich Weigand <uweigand@de.ibm.com>
2957
2958 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2959 of c_value member.
2960 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2961
ca08a94c 29622013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2963 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2964
2965 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2966 (gnu_create_inferior)
2967 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2968 (set_sig_thread_cmd): Use the lwpid field of ptids to
2969 store/extract thread ids instead of the tid field.
2970 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2971
e4c6a2c4
AB
29722013-09-18 Andrew Burgess <aburgess@broadcom.com>
2973
2974 * infcmd.c (default_print_one_register_info): Add detection of
2975 optimized out values.
2976 (default_print_registers_info): Switch to using
2977 get_frame_register_value.
2978
58c48e72
MM
29792013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2980
2981 * infrun.c (handle_inferior_event): Check if we know the
2982 function start address before setting a resume breakpoint.
2983
c8d37639
PA
29842013-09-18 Pedro Alves <palves@redhat.com>
2985
2986 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2987 minus_one_ptid instead of looking at the ptid's tid field and
2988 comparing that to -1.
2989
71926e28
AB
29902013-09-18 Andrew Burgess <aburgess@broadcom.com>
2991
2992 * main.h (get_gdb_program_name): Remove extra whitespace.
2993
c88a1531
AB
29942013-09-18 Andrew Burgess <aburgess@broadcom.com>
2995
2996 * main.h (get_gdb_program_name): Add declaration.
2997 * main.c (get_gdb_program_name): Add definition.
2998
4390d890
DE
29992013-09-17 Doug Evans <dje@google.com>
3000
3001 * dwarf2read.c: Move definitions of complaint functions to after
3002 forward declarations of local functions.
3003
49fa26b0
PA
30042013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3005 Pedro Alves <palves@redhat.com>
3006
3007 PR gdb/11568
3008 * breakpoint.c (remove_threaded_breakpoints): New function.
3009 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3010 as thread_exit observer.
3011
08d72866
PA
30122013-09-17 Pedro Alves <palves@redhat.com>
3013
3014 PR gdb/15911
3015 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3016 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3017 * corelow.c (core_open):
3018 * frame.h (print_stack_frame, print_frame_info): New
3019 'set_current_sal' parameter.
3020 * infcmd.c (finish_command, kill_command): Adjust call to
3021 print_stack_frame.
3022 * inferior.c (inferior_command): Likewise.
3023 * infrun.c (normal_stop): Likewise.
3024 * linux-fork.c (linux_fork_context): Likewise.
3025 * record-full.c (record_full_goto_entry, record_full_restore):
3026 Likewise.
3027 * remote-mips.c (common_open): Likewise.
3028 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3029 Use it.
3030 (print_frame_info): New 'set_current_sal' parameter. Set the last
3031 displayed sal depending on the new paremeter instead of looking at
3032 print_what.
3033 (backtrace_command_1, select_and_print_frame, frame_command)
3034 (current_frame_command, up_command, down_command): Adjust call to
3035 print_stack_frame.
3036 * thread.c (print_thread_info, restore_selected_frame)
3037 (do_captured_thread_select): Adjust call to print_stack_frame.
3038 * tracepoint.c (tfind_1): Likewise.
3039 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3040 (mi_cmd_stack_info_frame): Likewise.
3041 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3042 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3043
6bc305f5
SDJ
30442013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3045
3046 * value.c (isvoid_internal_fn): Replace "parameter" with
3047 "argument".
3048
0a7cfe2c
SS
30492013-09-16 Stan Shebs <stan@codesourcery.com>
3050
3051 * README: Update references to writing code for GDB.
3052 * configure.ac (build_warnings): Remove obsolete comment.
3053 * configure: Regenerate.
3054 * gdbarch.sh: Remove references to gdbint.texinfo.
3055 * gdbarch.h: Regenerate.
3056 * gdbtypes.c (objfile_type): Remove comments referencing internals
3057 manual and D10V.
3058
a280dbd1
SDJ
30592013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3060
3061 * NEWS: Mention new convenience function $_isvoid.
3062 * value.c (isvoid_internal_fn): New function.
3063 (_initialize_values): Add new convenience function $_isvoid.
3064
04a83fee
PM
30652013-09-16 Pierre Muller <muller@sourceware.org>
3066
3067 * arm-linux-tdep.c: Add "elf/common.h" header.
3068 Remove AT_HWCAP macro definintion as it is provided in
3069 added include file.
3070 * s390-tdep.c: Remove system header <elf.h>
3071 Add "elf/common.h" header for AT_HWCAP definition.
3072 (s390_core_read_description): Use correct CORE_ADDR
3073 for hwcap local variable used as third parameter
3074 of function target_auxv_search.
3075
88505fac
PM
30762013-09-14 Pierre Muller <muller@sourceware.org>
3077 Tom Tromey <tromey@redhat.com>
3078 Pedro Alves <palves@redhat.com>
3079
3080 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3081 mode if operating system doesn't know O_CLOEXEC.
3082
d3846e71
JK
30832013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3084
3085 Code cleanup.
3086 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3087 inner block.
3088
4ac33720
UW
30892013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3090
3091 * NEWS: Mention TDB support.
3092 * features/s390-tdb.xml: New file.
3093 * features/s390-te-linux64.xml: New file.
3094 * features/s390x-te-linux64.xml: New file.
3095 * features/Makefile (WHICH): Add new tdescs above.
3096 (s390-te-linux64-expedite): Set.
3097 (s390x-te-linux64-expedite): Set.
3098 * features/s390-te-linux64.c: New file (generated).
3099 * features/s390x-te-linux64.c: New file (generated).
3100 * regformats/s390-te-linux64.dat: New file (generated).
3101 * regformats/s390x-te-linux64.dat: New file (generated).
3102 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3103 (HWCAP_S390_TE): Likewise.
3104 (S390_TDB_DWORD0_REGNUM): Likewise.
3105 (S390_TDB_DWORD0_REGNUM): Likewise.
3106 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3107 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3108 (S390_TDB_ATIA_REGNUM): Likewise.
3109 (S390_TDB_R0_REGNUM): Likewise.
3110 (S390_TDB_R1_REGNUM): Likewise.
3111 (S390_TDB_R2_REGNUM): Likewise.
3112 (S390_TDB_R3_REGNUM): Likewise.
3113 (S390_TDB_R4_REGNUM): Likewise.
3114 (S390_TDB_R5_REGNUM): Likewise.
3115 (S390_TDB_R6_REGNUM): Likewise.
3116 (S390_TDB_R7_REGNUM): Likewise.
3117 (S390_TDB_R8_REGNUM): Likewise.
3118 (S390_TDB_R9_REGNUM): Likewise.
3119 (S390_TDB_R10_REGNUM): Likewise.
3120 (S390_TDB_R11_REGNUM): Likewise.
3121 (S390_TDB_R12_REGNUM): Likewise.
3122 (S390_TDB_R13_REGNUM): Likewise.
3123 (S390_TDB_R14_REGNUM): Likewise.
3124 (S390_TDB_R15_REGNUM): Likewise.
3125 (S390_NUM_REGS): Increase.
3126 (S390_IS_TDBREGSET_REGNUM): New macro.
3127 (s390_regmap_tdb): Declare.
3128 (s390_sizeof_tdbregset): Define.
3129 (tdesc_s390_te_linux64): Declare.
3130 (tdesc_s390x_te_linux64): Likewise.
3131 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3132 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3133 (s390_regmap_tdb): New regmap.
3134 (s390_supply_tdb_regset): New function.
3135 (s390_tdb_regset): New regset.
3136 (s390_linux64v2_regset_sections): Add TDB regset to list.
3137 (s390x_linux64v2_regset_sections): Likewise.
3138 (s390_regset_from_core_section): Recognize TDB core note section.
3139 (s390_core_read_description): If HWCAP indicates TE support,
3140 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3141 (s390_gdbarch_init): Handle TDB regset.
3142 (_initialize_s390_tdep): Initialize new tdescs.
3143 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3144 (have_regset_tdb): New variable.
3145 (s390_native_supply): Support register invalidation.
3146 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3147 (check_regset): Treat ENODATA as "regset exists".
3148 (s390_linux_fetch_inferior_registers): Add TDB.
3149 (s390_read_description): Check for TDB existence and select
3150 appropriate tdesc.
3151 * gdbserver/Makefile.in (clean): Add removal of new makefile
3152 targets.
3153 (s390-te-linux64.c): New makefile target.
3154 (s390x-te-linux64.c): Likewise.
3155 * gdbserver/configure.srv (srv_regobj): Append new objects
3156 s390-te-linux64.o and s390x-te-linux64.o.
3157 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3158 s390x-te-linux64.xml, and s390-tdb.xml.
3159 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3160 declaration.
3161 (tdesc_s390_te_linux64): Likewise.
3162 (init_registers_s390x_te_linux64): Likewise.
3163 (tdesc_s390x_te_linux64): Likewise.
3164 (s390_check_regset): Treat ENODATA as "regset exists".
3165 (s390_arch_setup): Add TDB regset support.
3166 (initialize_low_arch): Initialize registers for new tdescs.
3167
2ccd1468
UW
31682013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3169
3170 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3171 (S390_IS_FPREGSET_REGNUM): New macro.
3172 * s390-tdep.c (s390_dwarf_regmap): Make const.
3173 (regnum_is_gpr_full): New function for replacing repeated code.
3174 (s390_pseudo_register_name): Use it.
3175 (s390_pseudo_register_type): Likewise.
3176 (s390_pseudo_register_read): Likewise.
3177 (s390_pseudo_register_write): Likewise.
3178 (s390_unwind_pseudo_register): Likewise.
3179 (s390_regmap_gregset): New format for regmap.
3180 (s390x_regmap_gregset): Likewise.
3181 (s390_regmap_fpregset): Likewise.
3182 (s390_regmap_upper): Likewise.
3183 (s390_regmap_last_break): Likewise.
3184 (s390_regmap_system_call): Likewise.
3185 (s390_supply_regset): Adjust to new regmap format.
3186 (s390_collect_regset): Likewise.
3187 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3188 (s390_native_collect): Likewise.
3189 (supply_gregset): Likewise.
3190 (fill_gregset): Likewise.
3191 (supply_fpregset): Likewise.
3192 (fill_fpregset): Likewise.
3193 (fetch_regset): Likewise.
3194 (store_regset): Likewise.
3195 (s390_linux_fetch_inferior_registers): Likewise.
3196 (s390_linux_fetch_inferior_registers): Likewise.
3197
1aa4cd77
AP
31982013-09-12 Andrew Pinski <apinski@cavium.com>
3199
3200 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3201
d91fab15
UW
32022013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3203
3204 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3205
5a5d8ead
AB
32062013-09-09 Andrew Burgess <aburgess@broadcom.com>
3207
3208 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3209
1385f66c
PA
32102013-09-06 Pedro Alves <palves@redhat.com>
3211
3212 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3213 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3214 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3215 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3216 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3217 gdb_stdlog.
3218
146ec4db
PA
32192013-09-06 Pedro Alves <palves@redhat.com>
3220
3221 * remote-sim.c (dump_mem): Constify buf parameter.
3222 gdbsim_xfer_inferior_memory): Rename to ...
3223 (gdbsim_xfer_memory): ... this. Adjust interface as
3224 target_xfer_partial helper.
3225 (gdbsim_xfer_partial): New function.
3226 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3227 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3228
fcde0081
PA
32292013-09-06 Pedro Alves <palves@redhat.com>
3230
3231 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3232 host_address_to_string, and send debug output to gdb_stdlog.
3233
749c8b38
RW
32342013-09-06 Ricard Wanderlof <ricardw@axis.com>
3235
3236 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3237 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3238 gdb_target_obs for cris target.
3239 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3240 (cris_gdbarch_init): Move calls to
3241 set_gdbarch_fetch_tls_load_module_address and
3242 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3243 Add call to gdbarch_init_osabi.
3244 * cris-linux-tdep.c: New file.
3245 * cris-tdep.h: New file.
3246
43df09d9
AB
32472013-09-06 Andrew Burgess <aburgess@broadcom.com>
3248
3249 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3250 to deprecated_init_ui_hook.
3251
4d09c5b4
AB
32522013-09-06 Andrew Burgess <aburgess@broadcom.com>
3253
3254 * cli/cli-interp.c (_initialize_cli_interp): Add a
3255 command_loop_proc to interp_procs.
3256 * event-top.c (cli_command_loop): Change signature to match
3257 interp_command_loop_ftype.
3258 * event-top.h (cli_command_loop): Same.
3259 * interps.c (interp_new): Require every interpreter to have a
3260 command_loop_proc.
3261 (current_interp_command_loop): Just call the command_loop_proc on
3262 the current interpreter.
3263 * tui/tui-interp.c (_initialize_tui_interp): Add a
3264 command_loop_proc to interp_procs.
3265
8eb3d7b6
RW
32662013-09-06 Ricard Wanderlof <ricardw@axis.com>
3267
3268 * cris-tdep.c (cris_gdbarch_init): Add call to
3269 get_gdbarch_fetch_tls_load_module_address.
3270
18b3c2f5
RW
32712013-09-06 Ricard Wanderlof <ricardw@axis.com>
3272
3273 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3274 (cris_elf_gregset_t): Rename from elf_gregset_t.
3275 (crisv32_elf_gregset_t): Adjust.
3276 (cris_supply_gregset, fetch_core_registers): Adjust.
3277
dc8636ef
RW
32782013-09-06 Ricard Wanderlof <ricardw@axis.com>
3279
3280 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3281
257e6d53
AB
32822013-09-05 Andrew Burgess <aburgess@broadcom.com>
3283
1581d8a7 3284 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3285 references in comments.
1581d8a7 3286 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3287 deprecated_command_loop_hook.
3288 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3289 setup.
1581d8a7 3290 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3291
7c33b57c
PA
32922013-09-05 Pedro Alves <palves@redhat.com>
3293
3294 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3295 local is now int instead of ULONGEST. Print it with %d
3296 instead of paddress.
3297
9f8edbd5
TG
32982013-09-05 Tristan Gingold <gingold@adacore.com>
3299
3300 * MAINTAINERS: Remove avr maintainership.
3301
d5b495b4
PA
33022013-09-05 Pedro Alves <palves@redhat.com>
3303
3304 * findvar.c (value_of_register): Rework in terms of
3305 value_of_register_lazy.
3306
40b91786
MB
33072013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3308
3309 * symfile.c (add_symbol_file_command): Remove trailing
3310 whitespaces and blank line after comment.
3311
6eed1678
PA
33122013-09-05 Pedro Alves <palves@redhat.com>
3313
3314 * tui/tui-regs.c (tui_register_format): Don't look at the
3315 register's name here. Return string representing register
3316 value instead of storing it in the data element.
3317 (tui_get_register): Compare register string representations
3318 instead of register value states and contents.
3319
8eb6bda2
PA
33202013-09-05 Pedro Alves <palves@redhat.com>
3321
3322 PR tui/15933
3323 * tui/tui-regs.c (tui_show_registers): Show registers of the
3324 selected frame, not the current frame.
3325
48b1f08c
RW
33262013-09-05 Ricard Wanderlof <ricardw@axis.com>
3327
3328 * MAINTAINERS (Write After Approval): Add myself to the list.
3329
89e63ee4
DE
33302013-09-04 Doug Evans <dje@google.com>
3331
3332 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3333 (queue_and_load_dwo_tu): New function.
3334 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3335 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3336 Make dependent_cu optional.
3337 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3338 and an older .gdb_index is in use, queue and load all its TUs too.
3339
492c0ab7
JK
33402013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3341
3342 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3343 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3344 variable search_flags.
3345 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3346 (OPF_RETURN_REALPATH): ... here.
3347 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3348 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3349 call. Twice.
3350 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3351 openp call.
3352 * solib.c (solib_find): Likewise. Four times.
3353 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3354 in the function comment and for the realpath_fptr variable.
3355 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3356 (find_and_open_source): Likewise. Twice.
3357 * symfile.c (symfile_bfd_open): Likewise, also twice.
3358
23a44de8
DE
33592013-09-04 Doug Evans <dje@google.com>
3360
3361 * progspace.c (save_current_space_and_thread): Remove unnecessary
3362 call to save_current_inferior.
3363
47061676
AB
33642013-09-04 Andrew Burgess <aburgess@broadcom.com>
3365
3366 * sh64-tdep.c (sh64_do_register): Return after printing message
3367 about unavailable register contents.
3368
41dc8db8
MB
33692013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3370 Pedro Alves <palves@redhat.com>
3371
3372 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3373 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3374 options and collapse into single conditional branch.
41dc8db8 3375
07107ca6
LM
33762013-09-03 Luis Machado <lgustavo@codesourcery.com>
3377
a7ea61cf 3378 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3379 detach_fork.
3380 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3381 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3382 * inferior.h (detach_fork): Remove.
3383 * infrun.c (detach_fork): Adjust comment and make it
3384 static.
3385 (follow_fork): Pass detach_fork parameter to
3386 target_follow_fork.
3387 * linux-nat.c (linux_child_follow_fork): New parameter
3388 detach_fork.
3389 * target.c (target_follow_fork): New parameter detach_fork.
3390 Pass detach_fork as parameter and print its value.
3391 * target.h (struct target_ops) <to_follow_fork>: New int
3392 parameter.
3393 (target_follow_fork): New parameter detach_fork.
3394
3bec2768
JB
33952013-09-03 Joel Brobecker <brobecker@adacore.com>
3396
3397 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3398 Replace sec->bfd by sec->the_bfd_section->owner.
3399
c01cbb3d
YQ
34002013-09-03 Yao Qi <yao@codesourcery.com>
3401
3402 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3403 from linux_has_shared_address_space.
3404 (linux_has_shared_address_space): Call linux_is_uclinux.
3405 * linux-tdep.h (linux_is_uclinux): Declare.
3406 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3407 linux_is_uclinux.
3408
7b00db47
YQ
34092013-09-03 Yao Qi <yao@codesourcery.com>
3410
3411 * config/djgpp/fnchange.lst: Remove entry of
3412 i386-interix-nat.c and i386-interix-tdep.c.
3413 * configure.ac: Remove '*-*-interix*'.
3414 * configure: Re-generated.
3415 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3416 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3417 obsolete comments.
3418 * osabi.c (gdb_osabi_names): Remove "Interix".
3419
0f9741f2
YQ
34202013-09-03 Yao Qi <yao@codesourcery.com>
3421
3422 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3423
1e038f67
MM
34242013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3425
3426 * record.h (record_print_flag) <record_print_src_line,
3427 record_print_insn_range>: Rename into ...
3428 (record_print_flag) <record_print_src_line,
3429 record_print_insn_range>: ... this. Update all users.
3430
9e52adf9
PM
34312013-09-02 Pierre Muller <muller@sourceware.org>
3432
3433 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3434 error code.
3435
a2388568
PM
34362013-09-02 Pierre Muller <muller@sourceware.org>
3437
3438 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3439 by use of plongest function.
3440
9058cc3a
TG
34412013-09-02 Tristan Gingold <gingold@adacore.com>
3442
3443 * NEWS: Add entry mentioning support for native Windows x64
3444 SEH data.
3445
3446 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3447 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3448 (struct amd64_windows_frame_cache): New struct.
3449 (amd64_windows_w2gdb_regnum): New global.
3450 (pc_in_range, amd64_windows_frame_decode_epilogue)
3451 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3452 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3453 (amd64_windows_frame_this_id): New functions.
3454 (amd64_windows_frame_unwind): New static global.
3455 (amd64_windows_skip_prologue): New function.
3456 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3457 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3458 with amd64_windows_skip_prologue.
3459
3161820b 34602013-08-30 Joel Brobecker <brobecker@adacore.com>
3461
3462 GDB 7.6.1 released.
3463
02457c76
PA
34642013-08-30 Pedro Alves <palves@redhat.com>
3465
3466 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3467 SRC_AND_LOC.
3468
e0162910
PA
34692013-08-30 Pedro Alves <palves@redhat.com>
3470
3471 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3472 warning text.
3473
6391ce51
PA
34742013-08-30 Pedro Alves <palves@redhat.com>
3475
3476 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3477 Adjust arguments to print_stack_frame.
3478
d1da0587
PA
34792013-08-30 Pedro Alves <palves@redhat.com>
3480
3481 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3482
adfd8245
PA
34832013-08-30 Pedro Alves <palves@redhat.com>
3484
3485 * frame.h (show_and_print_stack_frame): Delete declaration.
3486
96d9056e
PM
34872013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3488
3489 PR python/15461
96d9056e
PM
3490 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3491 (archpy_name): Check for valid architecture.
3492 (archpy_disassemble): Ditto.
3493
11cb8762
JB
34942013-08-29 Joel Brobecker <brobecker@adacore.com>
3495
3496 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3497 instead of "long long" in call to ptrace64.
3498
1af12a7d
AB
34992013-08-29 Andrew Burgess <aburgess@broadcom.com>
3500
3501 * mi/mi-interp.c (mi_command_loop): Change signature to match
3502 interp_command_loop_ftype.
3503 (mi1_command_loop): Remove.
3504 (mi2_command_loop): Remove.
3505 (mi3_command_loop): Remove.
3506 (mi_interpreter_resume): Remove setting of
3507 deprecated_command_loop_hook.
3508 (_initialize_mi_interp): Set mi_command_loop as the command loop
3509 callback.
3510
acc900c2
SA
35112013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3512
3513 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3514 value_type.
3515
548b762d
SA
35162013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3517
3518 * value.c (allocate_value_contents): Make static.
3519 * value.h (allocate_value_contents): Remove prototype.
3520
08039c9e
SA
35212013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3522
3523 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3524 of assembling value via allocate_value_lazy and attribute setter.
3525 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3526 assembling value via allocate_value_lazy and attribute setter.
3527 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3528 assembling value via allocate_value_lazy and attribute setter.
3529
314c7de9
SA
35302013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3531
3532 * value.c (value_from_contents_and_address): Replace allocate_value and
3533 memcpy with value_from_contents.
3534
8f28f522
PM
35352013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3536
3537 * python/py-framefilter.c (py_print_frame): Remove usage of
3538 PyString_AsString. Use python_string_to_host_string instead.
3539 Refactor function to work with a string as a new allocation
3540 instead of a pointer.
3541 (py_print_frame): Ditto.
3542 * python/lib/gdb/frames.py (return_list): Cain iterators together
3543 instead of adding them as a list.
3544 (_sort_list): Call return_list, and remove duplicate code.
3545 (execute_frame_filters): Convert iterator to a list with list().
3546 * python/lib/gdb/command/frame_filters.py
3547 (SetFrameFilterPriority._set_filter_priority): Convert priority
3548 attribute to an integer.
3549 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3550 wrapper function __next__.
3551 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3552 define as "str".
3553
8ee002df
PM
35542013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3555
3556 PR python/15752
8ee002df
PM
3557 * python/py-framefilter.c (apply_frame_filter): Check
3558 gdb_python_initialized. Exit if the Python frame-filter code
3559 cannot be initialized.
3560
af4c453a
PM
35612013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3562
3563 PR cli/15842
af4c453a
PM
3564 * top.c (print_gdb_version): Remove erroneous newline after help
3565 text.
3566
bf8793bb
YQ
35672013-08-29 Yao Qi <yao@codesourcery.com>
3568
3569 * varobj.c (install_dynamic_child): Remove trailing space.
3570 Add one blank line after variable declaration.
3571
1f0c4988
JK
35722013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3573
3574 PR gdb/15415
3575 * corefile.c (get_exec_file): Use exec_filename.
3576 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3577 * exec.c (exec_close): Free EXEC_FILENAME.
3578 (exec_file_attach): New variable canonical_pathname. Use
3579 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3580 EXEC_FILENAME.
3581 * exec.h (exec_filename): New.
3582 * inferior.c (print_inferior, inferior_command): Use
3583 PSPACE_EXEC_FILENAME.
3584 * mi/mi-main.c (print_one_inferior): Likewise.
3585 * progspace.c (clone_program_space, print_program_space): Likewise.
3586 * progspace.h (struct program_space): New field pspace_exec_filename.
3587 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3588 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3589
59ee9f94
WN
35902013-08-28 Will Newton <will.newton@linaro.org>
3591
3592 * common/linux-ptrace.c: Include stdint.h unconditionally.
3593
c8a2a419
JK
35942013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3595
3596 Code cleanup.
3597 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3598
ffa4ac95
YQ
35992013-08-28 Yao Qi <yao@codesourcery.com>
3600 Pedro Alves <palves@redhat.com>
3601
3602 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3603 instead of stdio_fileopen.
3604 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3605 .Call stderr_fileopen instead of stdio_fileopen.
3606 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3607 [__MINGW32__] (stderr_file_fputs): New function.
3608 (stderr_fileopen): New function.
3609 * ui-file.h (stderr_fileopen): Declare.
3610
69d751e3
DE
36112013-08-27 Doug Evans <dje@google.com>
3612
3613 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3614 (struct dwarf2_per_cu_data): Ditto.
3615 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3616 (process_imported_unit_die): Ditto.
3617 (follow_die_sig_1): Simplify assert.
3618
44f38867
PA
36192013-08-27 Pedro Alves <palves@redhat.com>
3620
3621 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3622 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3623 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3624 windows_xfer_memory directly.
3625 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3626
d28d46b5
PA
36272013-08-27 Pedro Alves <palves@redhat.com>
3628
3629 * darwin-nat.c (darwin_xfer_memory): Delete.
3630 (_initialize_darwin_inferior): Don't install a
3631 deprecated_xfer_memory method.
3632
6211c335
YQ
36332013-08-27 Pedro Alves <pedro@codesourcery.com>
3634 Yao Qi <yao@codesourcery.com>
3635
3636 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3637 (parse_no_frames_option): Remove.
3638 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3639 (mi_cmd_stack_list_args): Adjust.
3640 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3641 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3642 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3643 Caller update.
3644 (list_args_or_locals): New parameter 'skip_unavailable'.
3645 Handle it.
3646 * valprint.c (scalar_type_p): Rename to ...
3647 (val_print_scalar_type_p): ... this. Make extern.
3648 (val_print, value_check_printable): Adjust.
3649 * valprint.h (val_print_scalar_type_p): Declare.
3650 * value.c (value_entirely_unavailable): New function.
3651 * value.h (value_entirely_unavailable): Declare.
3652
3653 * NEWS: Mention the new option "--skip-unavailable" to MI
3654 commands '-stack-list-locals', '-stack-list-arguments' and
3655 '-stack-list-variables'.
3656
242f1fd7
YQ
36572013-08-27 Yao Qi <yao@codesourcery.com>
3658
3659 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3660 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3661 options.
3662 * mi/mi-getopt.c (mi_getopt): Remove.
3663 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3664 'error_on_unknown'.
3665 (mi_getopt): Call mi_getopt_1.
3666 (mi_getopt_silent): New.
3667 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3668
260b681b
DE
36692013-08-26 Doug Evans <dje@google.com>
3670
779bd270
DE
3671 PR symtab/15885
3672 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3673 .gdb_index is in use.
3674 * symfile.c (reread_symbols): Reset objfile->sf.
3675
52e260a3
DE
3676 * NEWS: Document "mt print objfiles" now takes optional regexp.
3677 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3678 regexp of objfiles to print.
3679 (_initialize_symmisc): Update doc string for "mt print objfiles".
3680
260b681b
DE
3681 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3682 missing debug info checks.
3683
a85c52f2
UW
36842013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3685 Ulrich Weigand <uweigand@de.ibm.com>
3686
3687 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3688 line tables generated by XLC compiled binaries.
3689
4f00dda3
DE
36902013-08-23 Doug Evans <dje@google.com>
3691
db68bbae
DE
3692 * symmisc.c (dump_symtab): Delete prototype.
3693 (dump_msymbols, dump_objfile): Ditto.
3694 (maintenance_info_symtabs): Mark as dont_repeat.
3695 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3696
4f00dda3
DE
3697 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3698 debugging printf to better location.
3699
23d577b0
PA
37002013-08-23 Pedro Alves <palves@redhat.com>
3701
3702 * target.c (target_read_live_memory): Change type of 'ret' local
3703 to LONGEST.
3704
00d84524
PA
37052013-08-23 Pedro Alves <palves@redhat.com>
3706
3707 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3708 (remote_read_bytes): Change return type to LONGEST, and adjust to
3709 return a target_xfer_error on error.
3710 (remote_xfer_memory): Delete.
3711 (remote_flash_write): Change type of 'ret' local to LONGEST.
3712 (remote_xfer_partial, remote_xfer_partial): Adjust.
3713 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3714
1ed3ee94
PM
37152013-08-23 Pierre Muller <muller@sourceware.org>
3716
3717 ARI fix: Push # directives to start of line.
3718 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3719
9eaabc75
MW
37202013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3721
3722 PR gdb/15501
3723 * breakpoint.c (enable_command, disable_command): Iterate over
3724 all specified breakpoint locations.
3725
101158d9
LM
37262013-08-22 Luis Machado <lgustavo@codesourcery.com>
3727
3728 * common/linux-ptrace.c (linux_fork_to_function): Push #
3729 directives to the start of the line.
3730 (linux_check_ptrace_features): Fix warning message to use
3731 the "_" markup.
3732
96d7229d
LM
37332013-08-22 Luis Machado <lgustavo@codesourcery.com>
3734
3735 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3736 nat/linux-waitpid.h.
3737 (linux-waitpid.o): New object file rule.
3738 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3739 (current_ptrace_options): Moved from linux-nat.c.
3740 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3741 parameters.
3742 (linux_fork_to_function): New function.
3743 (linux_grandchild_function): Likewise.
3744 (linux_child_function): Likewise.
3745 (linux_check_ptrace_features): New function, heavily
3746 based on linux-nat.c:linux_test_for_tracefork.
3747 (linux_enable_event_reporting): New function.
3748 (ptrace_supports_feature): Likewise.
3749 (linux_supports_tracefork): Likewise.
3750 (linux_supports_traceclone): Likewise.
3751 (linux_supports_tracevforkdone): Likewise.
3752 (linux_supports_tracesysgood): Likewise.
3753 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3754 gdbserver/linux-low.c.
3755 (linux_enable_event_reporting): New declaration.
3756 (linux_supports_tracefork): Likewise.
3757 (linux_supports_traceclone): Likewise.
3758 (linux_supports_tracevforkdone): Likewise.
3759 (linux_supports_tracesysgood): Likewise.
3760 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3761 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3762 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3763 * config/arm/linux.mh (NATDEPFILES): Likewise.
3764 * config/i386/linux.mh (NATDEPFILES): Likewise.
3765 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3766 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3767 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3768 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3769 * config/mips/linux.mh (NATDEPFILES): Likewise.
3770 * config/pa/linux.mh (NATDEPFILES): Likewise..
3771 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3772 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3773 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3774 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3775 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3776 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3777 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3778 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3779 ptrace's 4th argument's types.
3780 Check the type of PTRACE_TYPE_ARG4.
3781 * configure: Regenerate.
3782 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3783 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3784 (linux_supports_tracefork_flag): Remove.
3785 (linux_supports_tracesysgood_flag): Likewise.
3786 (linux_supports_tracevforkdone_flag): Likewise.
3787 (current_ptrace_options): Moved to
3788 common/linux-ptrace.c.
3789 (linux_tracefork_child): Remove.
3790 (my_waitpid): Remove.
3791 (linux_test_for_tracefork): Renamed to
3792 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3793 (linux_test_for_tracesysgood): Remove.
3794 (linux_supports_tracesysgood): Remove.
3795 (linux_supports_tracefork): Remove.
3796 (linux_supports_tracevforkdone): Remove.
3797 (linux_enable_tracesysgood): Remove.
3798 (linux_enable_event_reporting): Remove.
3799 (linux_init_ptrace): New function.
3800 (linux_child_post_attach): Call linux_init_ptrace.
3801 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3802 (linux_child_follow_fork): Call linux_supports_tracefork
3803 and linux_supports_tracevforkdone.
3804 (linux_child_insert_fork_catchpoint): Call
3805 linux_supports_tracefork.
3806 (linux_child_insert_vfork_catchpoint): Likewise.
3807 (linux_child_set_syscall_catchpoint): Call
3808 linux_supports_tracesysgood.
3809 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3810 * nat/linux-nat.h: New file.
3811 * nat/linux-waitpid.c: New file.
3812 * nat/linux-waitpid.h: New file.
3813
9f948660
SDJ
38142013-08-22 Samuel Bronson <naesten@gmail.com>
3815
3816 ARM Linux support for `catch syscall'.
3817 * syscalls/arm-linux.py: New file.
3818 * syscalls/arm-linux.xml: Likewise.
3819 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3820 (arm_linux_init_abi): Register the new function and syscall xml file.
3821 * data-directory/Makefile.in: Install the new syscall xml file.
3822 * NEWS: Brag about this.
3823
6be7b56e
PA
38242013-08-22 Pedro Alves <palves@redhat.com>
3825
3826 PR gdb/15871
3827 * corefile.c (target_xfer_memory_error): New function.
3828 (memory_error): Defer EIO to target_memory_error.
3829 (read_memory): Use target_xfer_partial, and handle finer-grained
3830 target xfer errors.
3831 * target.c (target_xfer_error_to_string): New function.
3832 (memory_xfer_partial_1): If memory is known to be
3833 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3834 (target_xfer_partial): Make extern.
3835 * target.h (enum target_xfer_error): New enum.
3836 (target_xfer_error_to_string): Declare function.
3837 (target_xfer_partial): Declare function.
3838 (struct target_ops) <xfer_partial>: Adjust describing comment.
3839
bcbec14e
AM
38402013-08-22 Alan Modra <amodra@gmail.com>
3841
3842 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3843 * configure.tgt: Likewise as targets.
3844
fc474241
DE
38452013-08-20 Doug Evans <dje@google.com>
3846
3847 * buildsym.c (subfile_stack): Move here from buildsym.h.
3848 (pending_macros): Ditto.
3849 (get_macro_table): New function.
3850 (buildsym_init): Initialize subfile_stack.
3851 * coffread.c (type_vector,type_vector_length): Moved here from
3852 buildsym.h.
3853 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3854 (coff_symtab_read): Use it.
3855 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3856 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3857 with call to get_macro_table.
3858 * stabsread.c (type_vector,type_vector_length): Moved here from
3859 buildsym.h.
3860 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3861 * buildsym.h (get_macro_table): Declare.
3862
bec71544
TT
38632013-08-20 Tom Tromey <tromey@redhat.com>
3864
3865 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3866 Update.
3867 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3868
0002ad5f
DE
38692013-08-20 Doug Evans <dje@google.com>
3870
3871 * blockframe.c: Remove #include "psymtab.h".
3872 * cp-support.c: Ditto.
3873 * source.c: Ditto.
3874 * stack.c: Ditto.
3875
df302446
TT
38762013-08-20 Tom Tromey <tromey@redhat.com>
3877
3878 PR python/15816:
3879 * exceptions.h (return_mask): Now an enum.
3880 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3881 enum constants.
3882
df6d5441
TT
38832013-08-20 Tom Tromey <tromey@redhat.com>
3884
3885 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3886 get_objfile_arch.
3887 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3888 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3889 * jit.c (jit_object_close_impl): Update.
3890 * jv-lang.c (get_dynamics_objfile): Update.
3891 * linespec.c (add_minsym): Use get_dynamics_objfile.
3892 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3893 (allocate_objfile): Don't initialize 'gdbarch' field.
3894 (get_objfile_arch): Update.
3895 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3896 moved from...
3897 (struct objfile) <gdbarch>: ... here. Remove.
3898 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3899 get_objfile_arch.
3900 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3901
f5aee5ee
AM
39022013-08-20 Alan Modra <amodra@gmail.com>
3903
3904 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3905 for IBM long double nan and inf.
3906 (floatformat_is_negative, floatformat_classify,
3907 floatformat_mantissa): Similarly.
3908 (floatformat_ieee_single, floatformat_ieee_double,
3909 floatformat_ieee_quad, floatformat_arm_ext,
3910 floatformat_ia64_spill): Delete unused vars.
3911 (_initialize_doublest): Delete unused function.
3912 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3913 little-endian variants of floatformat_ibm_long_double.
3914
33b60d58 39152013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3916
33b60d58
LM
3917 * Makefile.in (SFILES): Remove common/target-common.c and
3918 add target/waitstatus.c.
3919 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3920 target/resume.h, target/wait.h and target/waitstatus.h.
3921 (COMMON_OBS): Remove target-common.o and add
3922 waitstatus.o.
3923 (target-common.o): Remove.
3924 (waitstatus.o): New target object file.
3925 * common/target-common.c: Move contents to
3926 target/waitstatus.c and remove.
3927 * common/target-common.h: Move contents to other files and
3928 remove.
3929 (enum resume_kind: Move to target/resume.h.
3930 (TARGET_WNOHANG): Move to target/wait.h.
3931 (enum target_waitkind): Move to target/waitstatus.h.
3932 (struct target_waitstatus): Likewise.
3933 * target.h: Do not include target-common.h and
3934 include target/resume.h, target/wait.h and
3935 target/waitstatus.h.
3936 * target/resume.h: New file.
3937 * target/wait.h: New file.
3938 * target/waitstatus.h: New file.
3939 * target/waitstatus.c: New file.
3940
12696c10
PA
39412013-08-19 Pedro Alves <palves@redhat.com>
3942
3943 * linux-nat.c (linux_test_for_tracefork)
3944 (linux_test_for_tracesysgood, linux_child_follow_fork)
3945 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3946 (linux_nat_wait_1): Extend comment.
3947 (linux_async_pipe): Add comment.
3948
ba89f962
KB
39492013-08-15 Kevin Buettner <kevinb@redhat.com>
3950
3951 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3952 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3953 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3954 Update to account for fact that PC is now a pseudo-register.
3955 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3956 cases for RL78_PC_REGNUM.
3957
35ab155d
MB
39582013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3959
3960 PR cli/15841
3961 * top.c (quit_force): Skip writing history file
3962 if input is not from terminal.
3963
0d031856
TT
39642013-08-14 Tom Tromey <tromey@redhat.com>
3965
3966 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3967 resultthreadlist>: New fields.
3968 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3969 (remote_get_threadlist, remote_threadlist_iterator): Use
3970 new fields. Remove static variables.
3971
ee154bee
TT
39722013-08-14 Tom Tromey <tromey@redhat.com>
3973
3974 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3975 remote_watch_data_address>: New fields.
3976 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3977 (process_stop_reply, remote_wait_as)
3978 (remote_check_watch_resources, remote_stopped_data_address): Update.
3979
88b496c3
TT
39802013-08-14 Tom Tromey <tromey@redhat.com>
3981
3982 * remote.c (struct remote_state) <async_client_callback,
3983 async_client_context>: New fields.
3984 (async_client_callback, async_client_context): Remove.
3985 (remote_async_serial_handler, remote_async): Update.
3986
2f65bcb7
TT
39872013-08-14 Tom Tromey <tromey@redhat.com>
3988
3989 * remote.c (sizeof_pkt): Remove.
3990 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3991
b80fafe3
TT
39922013-08-14 Tom Tromey <tromey@redhat.com>
3993
3994 * remote.c (struct remote_state) <use_threadinfo_query,
3995 use_threadextra_query>: New fields.
3996 (remote_threads_info, remote_threads_extra_info)
3997 (remote_open_1): Update.
3998
8e88304f
TT
39992013-08-14 Tom Tromey <tromey@redhat.com>
4000
4001 * remote.c (struct remote_state) <finished_object,
4002 finished_annex, finished_offset>: New fields.
4003 (remote_read_qxfer): Use remote_state fields; remove static
4004 variables.
4005
280ceea3
TT
40062013-08-14 Tom Tromey <tromey@redhat.com>
4007
4008 * remote.c (struct remote_state) <last_sent_step>:
4009 New field.
4010 (last_sent_step): Remove.
4011 (remote_resume, remote_wait_as): Update.
4012
b73be471
TT
40132013-08-14 Tom Tromey <tromey@redhat.com>
4014
4015 * remote.c (struct remote_state) <last_sent_signal>:
4016 New field.
4017 (last_sent_signal): Remove.
4018 (new_remote_state, remote_resume, remote_wait_as): Update.
4019
5e4a05c4
TT
40202013-08-14 Tom Tromey <tromey@redhat.com>
4021
4022 * remote.c (struct remote_state) <last_program_signals_packet>:
4023 New field.
4024 (last_program_signals_packet): Remove.
4025 (remote_program_signals, remote_open_1): Update.
4026
747dc59d
TT
40272013-08-14 Tom Tromey <tromey@redhat.com>
4028
4029 * remote.c (struct remote_state) <last_pass_packet>:
4030 New field.
4031 (last_pass_packet): Remove.
4032 (remote_pass_signals, remote_open_1): Update.
4033
262e1174
TT
40342013-08-14 Tom Tromey <tromey@redhat.com>
4035
4036 * remote.c (struct remote_state) <remote_traceframe_number>:
4037 New field.
4038 (remote_traceframe_number): Remove.
4039 (new_remote_state, remote_open_1, set_remote_traceframe)
4040 (remote_trace_find): Update.
4041
47f8a51d
TT
40422013-08-14 Tom Tromey <tromey@redhat.com>
4043
4044 * remote.c (struct remote_state) <general_thread, continue_thread>:
4045 New fields.
4046 (general_thread, continue_thread): Remove.
4047 (record_currthread, set_thread, set_general_process)
4048 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4049 (extended_remote_mourn_1): Update.
4050
5d93a237
TT
40512013-08-14 Tom Tromey <tromey@redhat.com>
4052
4053 * remote.c (struct remote_state) <remote_desc>: New field.
4054 (remote_desc): Remove.
4055 (remote_threads_info, remote_threads_extra_info, remote_close)
4056 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4057 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4058 (remote_hostio_send_command, remote_file_put, remote_file_get)
4059 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4060 (remote_async, remote_new_objfile, set_range_stepping): Update.
4061
cf792862
TT
40622013-08-14 Tom Tromey <tromey@redhat.com>
4063
4064 * remote.c (remote_state): Now a pointer.
4065 (get_remote_state_raw): Update.
4066 (new_remote_state): New function.
4067 (_initialize_remote): Use new_remote_state.
4068
dc473cfb
TT
40692013-08-14 Tom Tromey <tromey@redhat.com>
4070
4071 * remote.c (remote_protocol_features): Now const.
4072
85ec6ce7
TT
40732013-08-14 Tom Tromey <tromey@redhat.com>
4074
4075 * remote.c (crc32_table, crc32): Remove.
4076 (remote_verify_memory): Use xcrc32.
4077
73033f12
SDJ
40782013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4079
4080 * value.h (create_internalvar_type_lazy): Adjust prototype
4081 declaration.
4082
5c30d39a
AB
40832013-08-13 Andrew Burgess <aburgess@broadcom.com>
4084
4085 * common/format.c (parse_format_string): Don't allow '#' flag for
4086 pointer arguments in format string.
4087
1a66331e
PM
40882013-08-13 Pierre Muller <muller@sourceware.org>
4089
fde605f3 4090 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4091 if rl_get_screen_size did not return useful values.
4092
b4013987
AA
40932013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4094
4095 PR breakpoints/15117
4096 * linespec.c (linespec_parse_basic): Check for convenience
4097 variable or history value while parsing.
4098
959b6a66
SDJ
40992013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4100
4101 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4102 AVR.
4103 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4104 different signals between the generic Linux kernel implementation
4105 and AVR's.
4106 (avr_linux_gdb_signal_from_target): Delete.
4107 (avr_linux_gdb_signal_to_target): Delete.
4108 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4109
24a55014
DE
41102013-08-09 Doug Evans <dje@google.com>
4111
4112 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4113 entries.
4114
eb14d406
SDJ
41152013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4116
4117 * linux-tdep.c: Define enum with generic signal numbers.
4118 (linux_gdb_signal_from_target): New function.
4119 (linux_gdb_signal_to_target): Likewise.
4120 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4121 methods to the functions above.
4122 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4123 (linux_gdb_signal_to_target): Likewise.
4124 * alpha-linux-tdep.c: Define new enum with signals different
4125 from generic Linux kernel.
4126 (alpha_linux_gdb_signal_from_target): New function.
4127 (alpha_linux_gdb_signal_to_target): Likewise.
4128 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4129 with the functions mentioned above.
4130 * avr-tdep.c: Define enum with differences between Linux kernel
4131 and AVR signals.
4132 (avr_linux_gdb_signal_from_target): New function.
4133 (avr_linux_gdb_signal_to_target): Likewise.
4134 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4135 the functions mentioned above.
4136 * sparc-linux-tdep.c: Define enum with differences between SPARC
4137 and generic Linux kernel signal numbers.
4138 (sparc32_linux_gdb_signal_from_target): New function.
4139 (sparc32_linux_gdb_signal_to_target): Likewise.
4140 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4141 to the functions defined above.
4142 * xtensa-linux-tdep.c: Define enum with differences between
4143 Xtensa and Linux kernel generic signals.
4144 (xtensa_linux_gdb_signal_from_target): New function.
4145 (xtensa_linux_gdb_signal_to_target): Likewise.
4146 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4147 to the functions defined above.
4148 * mips-linux-tdep.c: Define enum with differences between
4149 signals in MIPS and Linux kernel generic ones.
4150 (mips_gdb_signal_to_target): New function.
4151 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4152 only different signals from the Linux kernel generic.
4153 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4154 the functions defined above.
4155 * mips-linux-tdep.h (enum mips_signals): Remove.
4156
156d08c8
PA
41572013-08-09 Pedro Alves <palves@redhat.com>
4158
4159 * avr-tdep.c (XMALLOC): Delete macro.
4160 * cli/cli-dump.c (XMALLOC): Delete macro.
4161
db229724
PA
41622013-08-09 Pedro Alves <palves@redhat.com>
4163
4164 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4165 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4166 (fopen_with_cleanup, add_dump_command): Make static.
4167 * cli/cli-dump.h: Delete file.
4168 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4169 cli/cli-dump.h.
4170
3f12a589
PA
41712013-08-09 Pedro Alves <palves@redhat.com>
4172
4173 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4174 error message.
4175
c718be47
PA
41762013-08-09 Pedro Alves <palves@redhat.com>
4177
156d08c8 4178 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4179 error message.
4180
1e351ed1
PA
41812013-08-09 Pedro Alves <palves@redhat.com>
4182
4183 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4184 (gcore_command): Use tilde_expand here, and when showing the
4185 filename to the user, show the expanded version.
4186
1ed8d800
YQ
41872013-08-09 Yao Qi <yao@codesourcery.com>
4188
4189 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4190 'entryval' is set.
4191
47ecca85
PA
41922013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4193
4194 * gcore.c (create_gcore_bfd): Use tilde_expand.
4195
82a0a75f
YQ
41962013-08-08 Yao Qi <yao@codesourcery.com>
4197
4198 * frame.h (read_frame_local): Declare.
4199 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4200 read_frame_local.
4201 * stack.c (read_frame_local): New.
4202
5c4aa40b
YQ
42032013-08-08 Yao Qi <yao@codesourcery.com>
4204
4205 * mi/mi-cmd-stack.c: Update comments to function
4206 list_args_or_locals.
4207
b93601f3
TT
42082013-08-07 Tom Tromey <tromey@redhat.com>
4209
4210 PR symtab/15028:
4211 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4212 (process_psymtab_comp_unit_reader): Use it.
4213 (process_psymtab_comp_unit): Update. Add "pretend_language"
4214 argument.
4215 (dwarf2_build_psymtabs_hard): Update.
4216 (scan_partial_symbols): Pass CU's language to
4217 process_psymtab_comp_unit.
4218
fa760f46
TT
42192013-08-07 Tom Tromey <tromey@redhat.com>
4220
4221 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4222 (dwarf2_gdb_index_functions): Update.
4223 * psymtab.c (find_symbol_file_from_partial): Remove.
4224 (psym_functions): Update.
4225 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4226 Remove.
4227
bf6d8a91
TT
42282013-08-07 Tom Tromey <tromey@redhat.com>
4229
4230 * symfile.c (set_initial_language): Look up "main" symbol
4231 and use its language.
4232 * symtab.c (find_main_filename): Remove.
4233 * symtab.h (find_main_filename): Remove.
4234
f9125b6c
TT
42352013-08-07 Tom Tromey <tromey@redhat.com>
4236
4237 * dwarf2read.c (recursively_compute_inclusions): Add
4238 "immediate_parent" argument. Set symtab's "user" field
4239 if not set.
4240 (compute_symtab_includes): Update.
4241
fdbb204b
TT
42422013-08-07 Tom Tromey <tromey@redhat.com>
4243
4244 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4245 when adding label symbols.
4246
49de1690
UW
42472013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4248 Ulrich Weigand <uweigand@de.ibm.com>
4249
4250 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4251 * configure.host (powerpc64-*-aix*): Likewise.
4252
b08ee99f
UW
42532013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4254 Ulrich Weigand <uweigand@de.ibm.com>
4255
4256 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4257 is defined.
4258 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4259 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4260 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4261 * configure.ac: Check for ptrace64.
4262 * configure, config.in: Regenerate.
4263
fecf803e
UW
42642013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4265 Ulrich Weigand <uweigand@de.ibm.com>
4266
4267 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4268 Call ptrace64 instead of ptrace if defined.
4269 Add macro addr_ptr to take care of ptrace address argument.
4270 (pdc_read_regs): Likewise.
4271 (pdc_write_regs): Likewise.
4272 (aix_thread_resume): Likewise.
4273 (fetch_regs_kernel_thread): Likewise.
4274 (store_regs_kernel_thread): Likewise.
4275
3bb5e4a8
AB
42762013-08-07 Anton Blanchard <anton@samba.org>
4277
4278 * MAINTAINERS: Add myself to Write After Approval.
4279
12070676
TT
42802013-08-05 Tom Tromey <tromey@redhat.com>
4281
4282 * aix-thread.c (_initialize_aix_thread): Use
4283 complete_target_initialization.
4284 * bsd-uthread.c (_initialize_bsd_uthread): Use
4285 complete_target_initialization.
4286 * dec-thread.c (_initialize_dec_thread): Use
4287 complete_target_initialization.
4288 * ravenscar-thread.c (_initialize_ravenscar): Use
4289 complete_target_initialization.
4290 * sol-thread.c (_initialize_sol_thread): Use
4291 complete_target_initialization.
4292 * spu-multiarch.c (_initialize_spu_multiarch): Use
4293 complete_target_initialization.
4294
7c7b6655
TT
42952013-08-05 Tom Tromey <tromey@redhat.com>
4296
4297 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4298 * ada-lang.c (ada_lookup_simple_minsym): Return
4299 bound_minimal_symbol.
4300 * ada-lang.h (ada_lookup_simple_minsym): Update.
4301 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4302 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4303 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4304 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4305 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4306 * minsyms.c (msymbol_objfile): Remove.
4307 (lookup_minimal_symbol_internal): New function, from
4308 lookup_minimal_symbol.
4309 (lookup_minimal_symbol): Rewrite using
4310 lookup_minimal_symbol_internal.
4311 (lookup_bound_minimal_symbol): New function.
4312 * minsyms.h (msymbol_objfile): Remove.
4313 (lookup_bound_minimal_symbol): Declare.
4314 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4315 * parse.c (write_exp_msymbol): Change parameter to a
4316 bound_minimal_symbol.
4317 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4318 * parser-defs.h (write_exp_msymbol): Update.
4319 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4320 * symfile.c (simple_read_overlay_table): Use
4321 lookup_bound_minimal_symbol.
4322 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4323 (search_symbols): Likewise.
4324 (print_msymbol_info): Take a bound_minimal_symbol argument.
4325 (symtab_symbol_info, rbreak_command): Update.
4326 * symtab.h (struct symbol_search) <msymbol>: Change type
4327 to bound_minimal_symbol.
4328 * valops.c (find_function_in_inferior): Use
4329 lookup_bound_minimal_symbol.
4330 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4331
934b9bac
JK
43322013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4333
4334 Code cleanup.
4335 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4336 to ...
4337 (async_cleanup_sigint_signal_handler): ... this.
4338 (initialize_sigint_signal_handler): Remove declaration.
4339 (handle_remote_sigint): Rename the declaration to ...
4340 (async_handle_remote_sigint): ... this.
4341 (handle_remote_sigint_twice): Rename the declaration to ...
4342 (async_handle_remote_sigint_twice): ... this.
4343 (async_remote_interrupt, async_remote_interrupt_twice)
4344 (remote_interrupt): Remove the declarations.
4345 (remote_interrupt_twice): Rename the declaration ...
4346 (sync_remote_interrupt_twice): ... this.
4347 (sigint_remote_twice_token): Rename the variable to ...
4348 (async_sigint_remote_twice_token): ... this.
4349 (sigint_remote_token): Rename the variable to ...
4350 (async_sigint_remote_token): ... this.
4351 (initialize_sigint_signal_handler): Rename the function to ...
4352 (async_initialize_sigint_signal_handler): ... this. Update the name
4353 inside.
4354 (handle_remote_sigint): Rename the function to ...
4355 (async_handle_remote_sigint): ... this. Update the names inside.
4356 (handle_remote_sigint_twice): Rename the function to ...
4357 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4358 (cleanup_sigint_signal_handler): Rename the function to ...
4359 (async_cleanup_sigint_signal_handler): ... this.
4360 (remote_interrupt): Rename the function to ...
4361 (sync_remote_interrupt): this. Update the names inside.
4362 (remote_interrupt_twice): Rename the function to ...
4363 (sync_remote_interrupt_twice): this. Update the names inside.
4364 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4365 (_initialize_remote): Update the names inside.
4366
3a1115a0
TT
43672013-08-02 Tom Tromey <tromey@redhat.com>
4368
4369 PR symtab/15719:
4370 * breakpoint.c (update_watchpoint, watchpoint_check)
4371 (watch_command_1): Update.
4372 * eval.c (fetch_subexp_value): Add "preserve_errors"
4373 parameter.
4374 * ppc-linux-nat.c (check_condition): Update.
4375 * value.h (fetch_subexp_value): Update.
4376
58b19776
AB
43772013-08-02 Andrew Burgess <aburgess@broadcom.com>
4378
4379 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4380 add_file_handler.
4381
ec94af83
DE
43822013-08-01 Doug Evans <dje@google.com>
4383
7ee85ab1
DE
4384 PR symtab/15691
4385 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4386 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4387 Add assert of sig_entry->dwo_unit == NULL.
4388 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4389 had already been read.
4390 (read_signatured_type): Set per_cu.tu_read.
4391
b846d303
DE
4392 PR symtab/15695
4393 * valops.c (value_struct_elt): Add missing call to check_typedef.
4394 (value_find_oload_method_list): Ditto.
4395
b52109bc
DE
4396 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4397 effectively, struct symbol_search **.
4398 (make_cleanup_free_search_symbols): Change arg to struct
4399 symbol_search **. All callers updated.
4400 (compare_search_syms): Compare symtab file name and block as well.
4401 (search_symbols_equal): New function.
4402 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4403 New args new_head, new_tail. Result is now void. Remove dups after
4404 sorting the symbols.
4405 (search_symbols): Sort all found symbols once, after all have been
4406 found, and remove duplicates. Simplify cleanup tracking of result.
4407 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4408
ec94af83
DE
4409 Further workarounds for binutils/15021.
4410 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4411 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4412 Watch for duplicate symtabs coming from type units.
4413 (compute_symtab_includes): Update call to
4414 recursively_compute_inclusions. Build vector of included symtabs
4415 instead of per_cus.
4416 * symtab.h (symtab_ptr): New typedef.
4417 (DEF_VEC_P (symtab_ptr)): New VEC type.
4418 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4419 instead.
4420
b2ae85cf
AB
44212013-08-01 Andrew Burgess <aburgess@broadcom.com>
4422
4423 * cli/cli-script.c (script_from_file): Remove use of
4424 error_pre_print.
4425 * main.c (captured_main): Remove use of error_pre_print and
4426 quit_pre_print.
4427 * utils.c (error_pre_print, quit_pre_print): Remove.
4428 * utils.h (error_pre_print, quit_pre_print): Likewise.
4429
645eab03
YQ
44302013-08-01 Yao Qi <yao@codesourcery.com>
4431
4432 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4433 with mi_getopt.
4434 (mi_cmd_stack_list_variables): Likewise.
4435
16f92dd4
AB
44362013-07-31 Andrew Burgess <aburgess@broadcom.com>
4437
4438 * exceptions.c (deprecated_throw_reason): Remove.
4439 * exceptions.h (deprecated_throw_reason): Remove.
4440
13f78033
AB
44412013-07-31 Andrew Burgess <aburgess@broadcom.com>
4442
4443 * remote-mips.c (mips_error): Replace use of
4444 deprecated_throw_reason with throw_verror. Use the error message
4445 passed to mips_error as the error message for throw_verror.
4446
039e3c22
AB
44472013-07-31 Andrew Burgess <aburgess@broadcom.com>
4448
4449 * monitor.c (monitor_interrupt_query): Replace use of
4450 deprecated_throw_reason with quit.
4451 * nto-procfs.c (interrupt_query): Likewise.
4452 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4453 * remote-mips.c (mips_kill): Likewise.
4454 * remote.c (interrupt_query): Likewise.
4455
8150913b
AB
44562013-07-31 Andrew Burgess <aburgess@broadcom.com>
4457
4458 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4459 with call to fatal.
4460
de74e63a
YQ
44612013-07-31 Pedro Alves <pedro@codesourcery.com>
4462 Yao Qi <yao@codesourcery.com>
4463
4464 * tracepoint.c (trace_dump_command): Select the current frame.
4465
247f5c4f
DE
44662013-07-30 Doug Evans <dje@google.com>
4467
4468 * dwarf2read.c (process_queue): Add type signature to debug output.
4469
11b4b7cc
AB
44702013-07-30 Andrew Burgess <aburgess@broadcom.com>
4471
4472 * value.c (value_fetch_lazy): Mark optimized out values as such
4473 rather than raising an error.
4474
b0c54aa5
AB
44752013-07-30 Andrew Burgess <aburgess@broadcom.com>
4476
4477 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4478 before checking which bits of the parent, not the child, value are
4479 valid.
4480
97c85fc6
MB
44812013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4482
4483 PR gdb/15715
4484 * top.c: Include "filenames.h".
4485 (set_history_filename): New function.
4486 (init_main): Install it as set hook of the "set history filename"
4487 command.
4488
ff39bb5e
SA
44892013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4490
4491 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4492 attribute parameter.
4493 (dwarf2_const_value_data): Constify struct attribute parameter.
4494 (dwarf2_const_value): Constify struct attribute parameter.
4495 (dwarf2_const_value_attr): Constify struct attribute parameter.
4496 (lookup_die_type): Constify struct attribute parameter.
4497 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4498 (follow_die_ref_or_sig): Constify struct attribute parameter.
4499 (follow_die_ref): Constify struct attribute parameter.
4500 (follow_die_sig): Constify struct attribute parameter.
4501 (get_DW_AT_signature_type): Constify struct attribute parameter.
4502 (get_type_unit_group): Constify struct attribute parameter.
4503 (fill_in_loclist_baton): Constify struct attribute parameter.
4504 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4505 (type_unit_group): Constify struct attribute parameter.
4506
6e5a29e1
SA
45072013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4508
4509 * dwarf2read.c (attr_form_is_block): Make argument const.
4510 (attr_form_is_section_offset): Make argument const.
4511 (attr_form_is_constant): Make argument const.
4512 (attr_form_is_ref): Make argument const.
4513
7771576e
SA
45142013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4515
4516 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4517 All uses updated.
4518 (attr_form_is_ref): Moved below attr_form_is_constant.
4519
a94e8645
DE
45202013-07-29 Doug Evans <dje@google.com>
4521
bb5291d0
DE
4522 * main.c (captured_command_loop): Tweak comment.
4523
b5419e49
DE
4524 * target.c (target_async_permitted_1): Fix comment.
4525
b2d23133
DE
4526 * symtab.c (iterate_over_some_symtabs): Add comment.
4527
a94e8645
DE
4528 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4529
7a60ad40
YQ
45302013-07-27 Yao Qi <yao@codesourcery.com>
4531
4532 * NEWS: Mention that GDBserver now supports hardware
4533 watchpoints on the MIPS GNU/Linux target.
4534
aaee2056
YQ
45352013-07-27 Yao Qi <yao@codesourcery.com>
4536
4537 * Makefile.in (HFILES_NO_SRCDIR): Add
4538 common/mips-linux-watch.h.
4539 (mips-linux-watch.o): New rule.
4540 * common/mips-linux-watch.c: New.
4541 * common/mips-linux-watch.h: New.
4542 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4543 * mips-linux-nat.c: Include mips-linux-watch.h.
4544 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4545 to common/mips-linux-watch.h.
4546 (MAX_DEBUG_REGISTER): Likewise.
4547 (enum pt_watch_style): Likewise.
4548 (struct mips32_watch_regs): Likewise.
4549 (struct mips64_watch_regs): Likewise.
4550 (struct pt_watch_regs): Likewise.
4551 (struct mips_watchpoint): Likewise.
4552 (mips_linux_watch_get_irw_mask): Move to
4553 common/mips-linux-watch.c.
4554 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4555 (mips_linux_watch_get_watchlo): Likewise.
4556 (mips_linux_watch_set_watchlo): Likewise.
4557 (mips_linux_watch_get_watchhi): Likewise.
4558 (mips_linux_watch_set_watchhi): Likewise.
4559 (mips_linux_read_watch_registers): Likewise.
4560 (mips_linux_watch_type_to_irw): Likewise.
4561 (mips_linux_stopped_data_address, fill_mask): Likewise.
4562 (mips_linux_watch_try_one_watch): Likewise.
4563 (mips_linux_watch_populate_regs): Likewise.
4564
b3436450
YQ
45652013-07-27 Yao Qi <yao@codesourcery.com>
4566
4567 * mips-linux-nat.c (get_irw_mask): Rename to ...
4568 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4569 'set' to 'n'. Update function comment. All callers changed.
4570 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4571 function comment. All callers changed.
4572 (get_num_valid): Rename to ...
4573 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4574 'set' to 'n'. Update function comment. All callers changed.
4575 (get_watchlo): Rename to ...
4576 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4577 'set' to 'n'. Update function comment. All callers changed.
4578 (set_watchlo): Rename to ...
4579 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4580 'set' to 'n'. Update function comment. All callers changed.
4581 (get_watchhi): Rename to ...
4582 (mips_linux_watch_get_watchhi): ... this. Update function
4583 comment. All callers changed.
4584 (set_watchhi): Rename to ...
4585 (mips_linux_watch_set_watchhi): ... this. Update function
4586 comment. All callers changed.
4587 (mips_linux_read_watch_registers): Update function comment.
4588 Add new parameters 'lwpid', 'watch_readback', and
4589 'watch_readback_valid'. Update.
4590 (type_to_irw): Rename to ...
4591 (mips_linux_watch_type_to_irw): ... this. Update function
4592 comment. All callers changed.
4593 (fill_mask): Update function comment.
4594 (try_one_watch): Rename to ...
4595 (mips_linux_watch_try_one_watch): ... this. Change the type
4596 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4597 (populate_regs_from_watches): Rename to ...
4598 (mips_linux_watch_populate_regs): ... this. Add parameter
4599 'current_watches'. All callers changed.
4600
9be14b81
YQ
46012013-07-27 Yao Qi <yao@codesourcery.com>
4602
4603 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4604 the code.
4605 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4606 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4607 (struct pt_watch_regs): Likewise.
4608 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4609 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4610 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4611 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4612 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4613
de6f69ad
YQ
46142013-07-27 Yao Qi <yao@codesourcery.com>
4615
4616 * breakpoint.h: Include break-common.h.
4617 (enum target_hw_bp_type): Move to ...
4618 * common/break-common.h: ... here. New.
4619
6f64ef53
PA
46202013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4621
4622 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4623 process group regardless of having tty on stdin.
4624
6107e809
DE
46252013-07-25 Doug Evans <dje@google.com>
4626
4627 * linux-fork.h (detach_fork): Delete.
4628
7fdc1521
TT
46292013-07-25 Tom Tromey <tromey@redhat.com>
4630
4631 PR remote/15256, PR remote/15266:
4632 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4633 * monitor.c (monitor_detach): Use unpush_target.
4634 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4635 * remote-mips.c (mips_detach): Use unpush_target. Don't
4636 call mips_close.
4637 * remote-sim.c (gdbsim_detach): Use unpush_target.
4638 * target.c (pop_target): Remove.
4639 (pop_all_targets_above): Don't call target_close.
4640 (target_close): Assert that the target is unpushed.
4641 * target.h (pop_target): Don't declare.
4642 * tracepoint.c (tfile_open): Use unpush_target.
4643
c22a2b88
TT
46442013-07-25 Tom Tromey <tromey@redhat.com>
4645
4646 * linux-thread-db.c (init_thread_db_ops): Call
4647 complete_target_initialization.
4648 (_initialize_thread_db): Don't call add_target.
4649 * target.c (complete_target_initialization): New function.
4650 (add_target_with_completer): Call it.
4651 * target.h (complete_target_initialization): Declare.
4652
cbb6aada
MK
46532013-07-25 Mark Kettenis <kettenis@gnu.org>
4654
4655 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4656 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4657 (HPPANBSD_SIZEOF_GREGS): New define.
4658 (hppaobsd_supply_gregset): Handle additional registers.
4659 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4660 we provide more registers now.
4661 (hppabsd_supply_gregset): Supply additional registers.
4662 (hppabsd_collect_gregset): Collect additional registers.
4663
17767988
MK
46642013-07-25 Mark Kettenis <kettenis@gnu.org>
4665
4666 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4667 (hppabsd_dwarf2_frame_init_reg): New function.
4668 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4669
fdc8aae8
AB
46702013-07-25 Andrew Burgess <aburgess@broadcom.com>
4671
4672 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4673 'z' format code. Remove error for optimized out values, standard
4674 code will handle these fine.
4675
6fbe845e
AB
46762013-07-25 Andrew Burgess <aburgess@broadcom.com>
4677
4678 * NEWS: Mention new 'z' formatter.
4679 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4680 (_initialize_printcmd): Mention 'z' formatter in help text of the
4681 'x' command.
4682
3373342d
MR
46832013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4684
4685 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4686 formatting.
4687
25f9533e
SDJ
46882013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4689
4690 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4691 interface can evaluate arguments. Fallback to the old mode if it
4692 cannot.
4693 (create_exception_master_breakpoint): Likewise.
4694 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4695 (struct sym_probe_fns elf_probe_fns): Export function above to the
4696 probe interface.
4697 * probe.c (can_evaluate_probe_arguments): New function.
4698 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4699 function pointer.
4700 (can_evaluate_probe_arguments): New function prototype.
4701 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4702 probe interface can evaluate arguments. Fallback to the old mode
4703 if it cannot.
4704 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4705 interface can evaluate arguments. Warning the user if it cannot.
4706 (stap_can_evaluate_probe_arguments): New function.
4707 (struct probe_ops stap_probe_ops): Export function above to the
4708 probe interface.
4709 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4710 New function pointer.
4711
3360c0bf
LM
47122013-07-24 Luis Machado <lgustavo@codesourcery.com>
4713
4714 * Makefile.in (SFILES): Add common/target-common.c.
4715 Add common/target-common.h to headers.
4716 (COMMON_OBS): Add target-common.o.
4717 (target-common.o): New target.
4718 * linux-nat.h (resume_kind): Move to common/target-common.h.
4719 * target.c (target_waitstatus_to_string): Move to
4720 common/target-common.c.
4721 * target.h: Include target-common.h.
4722 (target_waitkind): Move to common/target-common.h.
4723 (target_waitstatus): Likewise.
4724 (TARGET_WNOHANG): Likewise.
4725 * common/target-common.c: New file.
4726 * common/target-common.h: New file.
4727
6656a72d
DE
47282013-07-24 Doug Evans <dje@google.com>
4729
4730 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4731 a warning.
4732
6df81a63
YQ
47332013-07-23 Yao Qi <yao@codesourcery.com>
4734
4735 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4736 parameter 'gdbarch'.
4737 (i386_stack_tramp_frame_sniffer): Caller update.
4738 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4739 parameter 'gdbarch' and 'target'.
4740 (i386_linux_core_read_description): Caller update.
4741 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4742 Likewise.
4743 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4744 declaration.
4745
365156ad
TT
47462013-07-23 Tom Tromey <tromey@redhat.com>
4747
4748 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4749 2013-07-22.
4750
046ac79f
JK
47512013-07-22 Doug Evans <dje@google.com>
4752
4753 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4754 * exec.c (exec_close): Update call to remove_target_sections.
4755 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4756 * solib.c (update_solib_list): Ditto.
4757 (reload_shared_libraries_1): Ditto.
4758 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4759 * target.h (struct target_section): Rename key to owner.
4760 All uses updated.
046ac79f 4761
29b2cc46
TT
47622013-07-22 Tom Tromey <tromey@redhat.com>
4763
4764 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4765
d1160018
TT
47662013-07-22 Tom Tromey <tromey@redhat.com>
4767
4768 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4769 Simplify cleanup handling.
4770
2f324bf6
TT
47712013-07-22 Tom Tromey <tromey@redhat.com>
4772
4773 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4774 on all return paths.
4775
e23b9d6e
UW
47762013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4777
4778 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4779 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4780 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4781
1cf55f60
PM
47822013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4783
4784 * top.c (print_gdb_version): Add help, apropos description and
4785 url to online documentation.
4786
fa876972
HZ
47872013-07-19 Hui Zhu <hui@codesourcery.com>
4788
4789 PR gdb/15692
4790 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4791
1527aea8
YQ
47922013-07-19 Yao Qi <yao@codesourcery.com>
4793
4794 * target.c (update_current_target): Change the default action
4795 of 'to_traceframe_info' from tcomplain to return_zero.
4796 * target.h (struct target_ops) <to_traceframe_info>: Add more
4797 comments.
4798 * valops.c (read_value_memory): Call
4799 traceframe_available_memory unconditionally.
4800
886f230e
YQ
48012013-07-18 Yao Qi <yao@codesourcery.com>
4802
4803 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4804 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4805 symbol without prefix. If found, set its type to
4806 'mst_solib_trampoline'.
4807
16419bae
DE
48082013-07-17 Doug Evans <dje@google.com>
4809
e7045703
DE
4810 * NEWS: Mention "set print raw frame-arguments".
4811 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4812 * stack.c (print_raw_frame_arguments): New static global.
4813 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4814 (_initialize_stack): New command "set/show print raw frame-arguments".
4815 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4816 (set_print_raw, show_print_raw): New functions.
4817 (_initialize_valprint): New prefix command "set/show print raw".
4818 * valprint.h (value_print_options): Improve comments.
4819
453e48a5
DE
4820 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4821 of all *list variables.
4822
16419bae
DE
4823 * gdbcmd.h (togglelist): Delete.
4824 * cli/cli-cmds.c (togglelist): Delete.
4825 (init_cmd_lists): Update.
4826 * cli/cli-cmds.h (togglelist): Delete.
4827
626f2d1c
TT
48282013-07-17 Tom Tromey <tromey@redhat.com>
4829
4830 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4831 dwarf2_per_objfile.
4832
57e6060e
DE
48332013-07-16 Doug Evans <dje@google.com>
4834
4835 * nto-tdep.c (nto_relocate_section_addresses): Update,
4836 target_section.bfd deleted.
4837 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4838 * s390-tdep.c (s390_load): Ditto.
4839 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4840
5ea5559b
AB
48412013-07-16 Andrew Burgess <aburgess@broadcom.com>
4842
4843 * common/format.c (parse_format_string): Add checks for NULL
4844 character before calling strchr.
4845
2b2848e2
DE
48462013-07-16 Doug Evans <dje@google.com>
4847
2c571006
DE
4848 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4849 temp_pathname argument.
4850 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4851 when opening the file fails.
4852
2b2848e2
DE
4853 * target.h (struct target_section): Delete member bfd.
4854 All users updated to use the_bfd_section->owner instead.
4855 * exec.c (add_to_section_table): Assert bfd is expected value.
4856 Remove initialization of target_section.bfd.
4857 (remove_target_sections): Update.
4858 (section_table_available_memory): Update.
4859 (section_table_xfer_memory_partial): Update.
4860 (print_section_info): Update.
4861 (exec_set_section_address): Update.
4862 * record-full.c (record_full_core_xfer_partial): Update.
4863 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4864 * solib-target.c (solib_target_relocate_section_addresses): Update.
4865 * symfile.c (build_section_addr_info_from_section_table): Update.
4866 * target.c (memory_xfer_live_readonly_partial): Update.
4867 (memory_xfer_partial_1): Update.
4868
926bf92d
UW
48692013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4870
4871 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4872 now available for embedded (BookE) and server (BookS) processors,
4873 correct mentions of 'booke' and adjust comments accordingly in order to
4874 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4875 (have_ptrace_booke_interface): Rename function and variable
4876 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4877 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4878 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4879 'hwdebug_point_cmp'. Update all uses.
4880 (booke_find_thread_points_by_tid): Rename function
4881 'booke_find_thread_points_by_tid' to
4882 'hwdebug_find_thread_points_by_tid'. Update all uses.
4883 (booke_insert_point): Rename function 'booke_insert_point' to
4884 'hwdebug_insert_point'. Update all uses.
4885 (booke_remove_point): Rename function 'booke_remove_point' to
4886 'hwdebug_remove_point'. Update all uses.
4887
d929bc19
MR
48882013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4889
4890 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4891 numbers with enum values.
4892
054e8d9e
AA
48932013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4894
4895 PR threads/13217
4896 * thread.c (thread_apply_all_command): Check for valid threads
4897 and thread count.
4898 (thread_array_cleanup): New struct.
4899 (set_thread_refcount): New function.
4900
cf006359
AB
49012013-07-11 Andrew Burgess <aburgess@broadcom.com>
4902
4903 * infcmd.c (default_print_one_register_info): Reuse function
4904 print_hex_chars.
4905
94e36acc
TT
49062013-07-10 Tom Tromey <tromey@redhat.com>
4907
4908 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4909 (ada-exp.o): New target.
4910
915dd369
SDJ
49112013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4912
4913 * mt-tdep.c (mt_registers_info): Call
4914 get_no_prettyformat_print_options instead of
4915 get_raw_print_options (regression by last patch from Doug
4916 Evans).
4917
eca07816
JB
49182013-07-09 Pedro Alves <palves@redhat.com>
4919
4920 Checked in by Joel Brobecker <brobecker@adacore.com>.
4921 * ada-lang.c (coerce_unspec_val_to_type): Use
4922 value_optimized_out_const.
4923 * value.c (value_optimized_out_const): New function.
4924 * value.h (value_optimized_out_const): New declaration.
4925
2a998fc0
DE
49262013-07-09 Doug Evans <dje@google.com>
4927
4928 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4929 Enum values rename as well. All uses updated.
4930 * valprint.h (value_print_options): Rename member pretty to
4931 pretty format. Rename member prettyprint_arrays to
4932 prettyformat_arrays. Rename member prettyprint_structs to
4933 prettyformat_structs. All uses updated.
4934 (get_no_prettyformat_print_options): Renamed from
4935 get_raw_print_options.
4936 * valprint.c (get_no_prettyformat_print_options): Renamed from
4937 get_raw_print_options. All callers updated.
4938 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4939 All callers updated.
4940 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4941 All callers updated.
4942 (_initialize_valprint): Improve help text for "set print pretty" and
4943 "set print arrays".
4944
466c1fca
AB
49452013-07-09 Andrew Burgess <aburgess@broadcom.com>
4946
4947 * value.c (value_bits_valid): Revert previous change, and change
4948 by Pedro on 2013-07-04, due to regressions in
4949 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4950
ad0f0303
AB
49512013-07-08 Andrew Burgess <aburgess@broadcom.com>
4952 Pedro Alves <palves@redhat.com>
4953
4954 * value.c (value_bits_valid): If the value is not lval_computed
4955 or has no check validity handler then the answer is the
4956 optimized_out flag, otherwise defer to the handler.
4957
b187bec1
EZ
49582013-07-06 Eli Zaretskii <eliz@gnu.org>
4959
48d1d6f5
EZ
4960 * top.c (print_gdb_configuration): Explain in output of
4961 --configuration what does "relocatable" mean.
4962
b187bec1
EZ
4963 * main.c (print_gdb_help): Regroup options in the --help text.
4964 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4965 the relevant discussions.
4966
52d361e1
YQ
49672013-07-06 Yao Qi <yao@codesourcery.com>
4968
4969 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4970 Remove parameter 'lsal'.
4971 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4972 to inner block. Caller update.
4973 (base_breakpoint_create_breakpoints_sal): Update.
4974 (bkpt_create_breakpoints_sal): Likewise.
4975 (tracepoint_create_breakpoints_sal): Likewise.
4976 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4977 element 0 of vector 'canonical->sals'.
4978
e1ec1b42
LM
49792013-07-05 Luis Machado <lgustavo@codesourcery.com>
4980
4981 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4982 register number instead of the pseudo register one.
4983 (rs6000_dwarf2_reg_to_regnum): Likewise.
4984
7195e6f0
PA
49852013-07-04 Pedro Alves <palves@redhat.com>
4986
4987 * findvar.c (value_of_register): Use allocate_optimized_out_value
4988 if the register has been optimized out, instead of
4989 set_value_optimized_out.
4990 * frame-unwind.c (frame_unwind_got_optimized): Use
4991 allocate_optimized_out_value.
4992
58722cac
PA
49932013-07-04 Pedro Alves <palves@redhat.com>
4994
4995 * value.c (value_bits_valid): If the value is not lval_computed,
4996 or doesn't have a check_validity hook, assume the value is entirely
4997 valid.
4998
691a26f5
AB
49992013-07-04 Andrew Burgess <aburgess@broadcom.com>
5000
5001 * stack.c (read_frame_arg): No longer fetch lazy values.
5002 * value.c (value_optimized_out): If the value is not already
5003 marked optimized out, and is lazy then fetch it.
5004 (value_primitive_field): Move optimized out check to later in the
5005 function, after we have loaded any lazy values.
5006 (value_fetch_lazy): Use optimized out flag directly rather than
5007 calling optimized_out method.
5008
a58e2656
AB
50092013-07-04 Andrew Burgess <aburgess@broadcom.com>
5010
5011 * valops.c: Don't include "user-regs.h".
5012 (value_fetch_lazy): Moved to value.c.
5013 * value.c: Include "user-regs.h".
5014 (value_fetch_lazy): Moved from valops.c.
5015
bd885420
YQ
50162013-07-04 Yao Qi <yao@codesourcery.com>
5017
5018 Revert:
5019 2013-06-27 Yao Qi <yao@codesourcery.com>
5020
5021 * common/create-version.sh: Update comments. Handle the case
5022 that TARGET_ALIAS is empty.
5023
17ef446e
PA
50242013-07-03 Pedro Alves <palves@redhat.com>
5025
5026 * Makefile.in (config.status): Depend on development.sh.
5027 (aclocal_m4_deps): Add libmcheck.m4.
5028 * acinclude.m4: Include libmcheck.m4.
5029 * configure.ac: Source development.sh instead of setting
5030 'development' here. --enable-libmcheck/--disable-libmcheck code
5031 factored out to GDB_AC_LIBMCHECK. Run it.
5032 * development.sh: New file.
5033 * libmcheck.m4: New file.
5034 * configure: Regenerate.
5035
ac6dd50f
TT
50362013-07-02 Tom Tromey <tromey@redhat.com>
5037
5038 * contrib/ari/update-web-ari.sh: Update for version.in change.
5039
bd1df410
TT
50402013-07-02 Tom Tromey <tromey@redhat.com>
5041
5042 * common/ptid.h: Comment fixes.
5043
4db1a1dc
TT
50442013-07-01 Tom Tromey <tromey@redhat.com>
5045
5046 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5047 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5048 (dwarf2_read_index, create_all_comp_units): Update.
5049
dd9aa048
TT
50502013-07-01 Tom Tromey <tromey@redhat.com>
5051
5052 * configure.ac (build_warnings): Add -Wold-style-definition.
5053 * configure: Rebuild.
5054 * machoread.c (_initialize_machoread): Use "(void)".
5055 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5056 use "(void)".
5057
44d100c3
TT
50582013-07-01 Tom Tromey <tromey@redhat.com>
5059
5060 * configure.ac (build_warnings): Add -Wold-style-declaration.
5061 * configure: Rebuild.
5062 * dsrec.c (make_srec): Use "static const", not "const static".
5063 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5064 not "const static".
5065 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5066 Use "static const", not "const static".
5067 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5068 not "const static".
5069 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5070 not "const static".
5071 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5072 not "const static".
5073 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5074 not "const static".
5075 (v850_dbtrap_breakpoint_from_pc): Likewise.
5076 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5077 not "const static".
5078
2945b807
TT
50792013-07-01 Tom Tromey <tromey@redhat.com>
5080
5081 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5082 * configure: Rebuild.
5083
d8d2a3ee
PA
50842013-07-01 Pedro Alves <palves@redhat.com>
5085
5086 * defs.h: Include "pathmax.h".
5087 * utils.c: Don't include sys/param.h.
5088 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5089 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5090 instead of MAXPATHLEN.
5091 * solib-sunos.c: Don't include sys/param.h.
5092 * xcoffread.c: Don't include sys/param.h.
5093 * bsd-kvm.c: Don't include sys/param.h.
5094 * darwin-nat.c: Don't include sys/param.h.
5095 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5096 * darwin-nat-info.c: Don't include sys/param.h.
5097 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5098 MAXPATHLEN.
5099 * i386obsd-nat.c: Don't include sys/param.h.
5100 * inf-child.c: Don't include sys/param.h.
5101 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5102 * linux-fork.c: Don't include sys/param.h.
5103 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5104 * linux-nat.c: Don't include sys/param.h.
5105 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5106 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5107 * m68klinux-nat.c: Don't include sys/param.h.
5108 * nbsd-nat.c: Don't include sys/param.h.
5109 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5110 * ppc-linux-nat.c: Don't include sys/param.h.
5111 * rs6000-nat.c: Don't include sys/param.h.
5112 * spu-linux-nat.c. Don't include sys/param.h.
5113 * windows-nat.c: Don't include sys/param.h.
5114 * xtensa-linux-nat.c: Don't include sys/param.h.
5115 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5116
38ec2207
PA
51172013-07-01 Pedro Alves <palves@redhat.com>
5118
5119 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5120 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5121 * gnulib/aclocal.m4: Regenerate.
5122 * gnulib/config.in: Regenerate.
5123 * gnulib/configure: Regenerate.
5124 * gnulib/import/pathmax.h: New file.
5125 * gnulib/import/Makefile.am: Regenerate.
5126 * gnulib/import/Makefile.in: Regenerate.
5127 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5128 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5129 * gnulib/import/m4/pathmax.m4: New file.
5130
e655c1a2
PA
51312013-07-01 Pedro Alves <palves@redhat.com>
5132
5133 * configure.ac (GDBINIT): Define, depending on host.
5134 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5135 * top.c (PATH_MAX): Delete fallback definition.
5136 (GDBINIT_FILENAME): Delete.
5137 (gdbinit): Reimplement as const char array set to the GDBINIT
5138 string constant.
5139 * top.h (gdbinit): Make const.
5140 * configure, config.in: Regenerate.
5141
50dd9793
PA
51422013-07-01 Pedro Alves <palves@redhat.com>
5143
5144 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5145 * cli/cli-cmds.h (source_script): Likewise.
5146 * exceptions.c (catch_command_errors_const): New function.
5147 * exceptions.h (catch_command_errors_const): Declare.
5148 * main.c (get_init_files): Make parameters const, and adjust.
5149 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5150 'local_gdbinit' locals const. Adjust to use
5151 catch_command_errors_const.
5152 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5153 'local_gdbinit' locals const.
5154
bc7dea8d
PA
51552013-07-01 Pedro Alves <palves@redhat.com>
5156
5157 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5158 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5159 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5160 <unistd.h>.
5161
8839a007
PA
51622013-07-01 Pedro Alves <palves@redhat.com>
5163
5164 Import the "unistd" gnulib module.
5165 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5166 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5167 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5168 import/m4/unistd_h.m4.
5169 * gnulib/aclocal.m4: Renenerate.
5170 * gnulib/config.in: Renenerate.
5171 * gnulib/configure: Renenerate.
5172 * gnulib/import/Makefile.am: Renenerate.
5173 * gnulib/import/Makefile.in: Renenerate.
5174 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5175 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5176 * gnulib/import/m4/off_t.m4: New file.
5177 * gnulib/import/m4/ssize_t.m4: New file.
5178 * gnulib/import/m4/sys_types_h.m4: New file.
5179 * gnulib/import/m4/unistd_h.m4: New file.
5180 * gnulib/import/sys_types.in.h: New file.
5181 * gnulib/import/unistd.c: New file.
5182 * gnulib/import/unistd.in.h: New file.
5183
8c0da261
PA
51842013-07-01 Pedro Alves <palves@redhat.com>
5185
5186 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5187 defined instead of checking HAVE_UNISTD_H.
5188
3574124b
PA
51892013-07-01 Pedro Alves <palves@redhat.com>
5190
5191 Reimport gnulib from scratch.
5192 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5193 import/m4/onceonly.m4.
5194 * gnulib/aclocal.m4: Renegerate.
5195 * gnulib/config.in: Renegerate.
5196 * gnulib/configure: Renegerate.
5197 * gnulib/import/Makefile.in: Renegerate.
5198 * gnulib/import/extra/update-copyright: Renegerate.
5199 * gnulib/import/m4/onceonly.m4: Delete.
5200
702dc4fd
PA
52012013-07-01 Pedro Alves <palves@redhat.com>
5202
5203 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5204
47e1ce27
JK
52052013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5206
5207 Code cleanup.
5208 * remote.c (async_remote_interrupt_twice): Make it static.
5209 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5210
e82839d4
SDJ
52112013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5212
5213 * ia64-linux-tdep.c: Include <ctype.h>.
5214 (ia64_linux_stap_is_single_operand): New function.
5215 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5216
d6c2da54
TT
52172013-06-28 Tom Tromey <tromey@redhat.com>
5218
5219 * Makefile.in (version.c): Use version.in, not
5220 common/version.in.
5221 * common/create-version.sh: Likewise.
5222 * common/version.in: Move...
5223 * version.in: ...here.
5224
74da6f00
PA
52252013-06-28 Pedro Alves <palves@redhat.com>
5226
5227 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5228 here.
5229 * utils.h (pagination_enabled): Declare.
5230
d32dc48e
PA
52312013-06-28 Pedro Alves <palves@redhat.com>
5232
5233 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5234 Move higher up in file.
5235
0edd9e3b
TT
52362013-06-28 Tom Tromey <tromey@redhat.com>
5237
5238 * tracepoint.c (deprecated_readline_begin_hook)
5239 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5240 declare.
5241
4eb59108
PA
52422013-06-28 Pedro Alves <palves@redhat.com>
5243
5244 PR tui/14880
5245 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5246 checking if they're available.
5247 * value.c (value_available_contents_eq): Change comment.
5248 * value.h (value_available_contents_eq): Expand comment.
5249
97b17156
TT
52502013-06-27 Tom Tromey <tromey@redhat.com>
5251
5252 * target.c (find_run_target): Remove.
5253 * target.h (find_run_target): Remove.
5254
6a3bfc5c
TT
52552013-06-27 Tom Tromey <tromey@redhat.com>
5256
5257 * corelow.c (core_gdbarch): Now static.
5258
c9ef825d
TT
52592013-06-27 Tom Tromey <tromey@redhat.com>
5260
5261 * target.c (target_struct_index): Remove.
5262
e5823f1c
PA
52632013-06-27 Pedro Alves <palves@redhat.com>
5264
5265 * infrun.c: Remove comment describing the 'stepping over runtime
5266 loader dynamic symbol resolution code' mechanism; moved to
5267 gdbint.texinfo.
5268
97f8dd09
PA
52692013-06-27 Pedro Alves <palves@redhat.com>
5270
5271 * exceptions.c (catch_command_errors): Remove spurious space.
5272 * exceptions.h (catch_command_errors): Second parameter is "arg",
5273 not "command".
5274
02b1871e
YQ
52752013-06-27 Yao Qi <yao@codesourcery.com>
5276
5277 * common/create-version.sh: Update comments. Handle the case
5278 that TARGET_ALIAS is empty.
5279
bb1b1cf1
PA
52802013-06-26 Pedro Alves <palves@redhat.com>
5281
5282 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5283 comment.
5284
7b624e71
PA
52852013-06-26 Pedro Alves <palves@redhat.com>
5286
5287 * infrun.c: Update comments on stepping over runtime loader
5288 dynamic symbol resolution code.
5289
74e5a346
SDJ
52902013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5291
5292 * ax-gdb.h (union exp_element): Forward declare.
5293 * parser-defs.h: Include expression.h.
5294
a2fb2cee
MR
52952013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5296
5297 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5298
cdba14e0
DK
52992013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5300
5301 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5302
f30aa5af
DK
53032013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5304
5305 Fix trace-status to output proper start-time and stop-time.
5306 * tracepoint.c (trace_status_command): Fix type of printf arg to
5307 prevent improper type conversion.
5308 (trace_status_mi): Likewise.
5309
1aee363c
MR
53102013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5311
5312 * mips-tdep.c (mips_next_pc): Fix a typo.
5313
3356937a
MR
53142013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5315
5316 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5317
dc673c81
YQ
53182013-06-26 Pedro Alves <pedro@codesourcery.com>
5319 Yao Qi <yao@codesourcery.com>
5320
5321 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5322 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5323 * mi/mi-main.c (print_variable_or_computed): New function.
5324 (mi_cmd_trace_frame_collected): New function.
5325 * tracepoint.c (find_trace_state_variable_by_number): New.
5326 (struct traceframe_info): Move to tracepoint.h
5327 (struct collection_list): Likewise.
5328 (do_collect_symbol): Include locals and arguments in the
5329 collected variables list.
5330 (clear_collection_list): Clear wholly collected variables list
5331 and computed variables list.
5332 (append_exp): New function.
5333 (encode_actions_1): Include variables in the wholly
5334 collected variables list. Include memory ranges and
5335 full-fledged expressions in the computed expressions list.
5336 (encode_actions): Move some code to ...
5337 Return the cleanup chain.
5338 (encode_actions_rsp): ... here. New function.
5339 (get_traceframe_location, get_traceframe_info): Remove static.
5340 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5341 (struct collection_list): Moved from tracepoint.c. Add two
5342 new fields 'wholly_collected' and 'computed'.
5343 (find_trace_state_variable_by_number): Declare.
5344 (encode_actions): Adjust declaration.
5345 (encode_actions_rsp): Declare.
5346 (get_traceframe_info, get_traceframe_location): Declare.
5347
5348 * NEWS: Mention new MI command -trace-frame-collected.
5349
28a93511
YQ
53502013-06-26 Pedro Alves <pedro@codesourcery.com>
5351 Yao Qi <yao@codesourcery.com>
5352
5353 * ctf.c (ctf_traceframe_info): Push trace state variables
5354 present in the trace data into the traceframe info object.
5355 * breakpoint.c (DEF_VEC_I): Remove.
5356 * common/filestuff.c (DEF_VEC_I): Likewise.
5357 * dwarf2loc.c (DEF_VEC_I): Likewise.
5358 * mi/mi-main.c (DEF_VEC_I): Likewise.
5359 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5360 * features/traceframe-info.dtd: Add tvar element and its
5361 attributes.
5362 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5363 (build_traceframe_info): Push trace state variables present in
5364 the trace data into the traceframe info object.
5365 (traceframe_info_start_tvar): New function.
5366 (tvar_attributes): New.
5367 (traceframe_info_children): Add "tvar" element.
5368 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5369
5370 * NEWS: Mention the change in GDB and GDBserver.
5371
ddacd3c8
YQ
53722013-06-26 Pedro Alves <pedro@codesourcery.com>
5373 Yao Qi <yao@codesourcery.com>
5374
5375 * tracepoint.c (trace_dump_command): Move code to ...
5376 (get_traceframe_location): ... here. New.
5377
05796b35
YQ
53782013-06-26 Pedro Alves <pedro@codesourcery.com>
5379 Yao Qi <yao@codesourcery.com>
5380
5381 * tracepoint.c (trace_dump_command): GDB emits an error
5382 instead of a warning when a traceframe is not selected.
5383
cbfa3b61
YQ
53842013-06-26 Pedro Alves <pedro@codesourcery.com>
5385 Yao Qi <yao@codesourcery.com>
5386
5387 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5388 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5389 in collection_list.
5390 (do_clear_collection_list, init_collection_list): New.
5391 (encode_actions): Add local variables 'tracepoint_list' and
5392 'stepping_list'. Call init_collection_list and make cleanup
5393 which calls do_clear_collection_list. Don't call
5394 clear_collection_list.
5395 (_initialize_tracepoint): Delete references to
5396 'tracepoint_list' and 'stepping_list'.
5397
6e2048d3
TT
53982013-06-25 Tom Tromey <tromey@redhat.com>
5399
5400 * common/create-version.sh (date): Use "$", not "$$" in sed
5401 expression.
5402
42059f0e
KB
54032013-06-25 Kevin Buettner <kevinb@redhat.com>
5404
5405 * NEWS (New targets): Add entry for TI MSP430.
5406
a0743c90
YQ
54072013-06-25 Yao Qi <yao@codesourcery.com>
5408
5409 * remote.c (remote_start_remote): Move code to upload tsv
5410 earlier.
5411
9d6e6e84
HZ
54122013-06-25 Yao Qi <yao@codesourcery.com>
5413 Hui Zhu <hui@codesourcery.com>
5414 Pedro Alves <palves@redhat.com>
5415
5416 PR breakpoints/15075
5417 PR breakpoints/15434
5418 * breakpoint.c (bpstat_stop_status): Call
5419 b->ops->after_condition_true.
5420 (update_dprintf_command_list): Don't append "continue" command
5421 to the command list of dprintf breakpoint.
5422 (base_breakpoint_after_condition_true): New function.
5423 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5424 (dprintf_after_condition_true): New function.
5425 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5426 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5427
586cf749
KB
54282013-06-24 Kevin Buettner <kevinb@redhat.com>
5429
5430 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5431 (ALLDEPFILES): Add msp430-tdep.c.
5432 * configure.tgt (msp430*-*-elf): New target.
5433 * msp430-tdep.c: New file.
5434
1bbce132
MR
54352013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5436
5437 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5438 microMIPS synthetic symbols.
5439
3e5d3a5a
MR
54402013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5441
5442 * objfiles.h (pc_in_section): New prototype.
5443 (in_plt_section): Remove name argument, replace prototype with
5444 static inline function.
5445 * mips-tdep.h: Include "objfiles.h".
5446 (in_mips_stubs_section): New function.
5447 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5448 in_solib_call_trampoline member.
5449 (hppa_in_solib_call_trampoline): Remove name argument.
5450 * objfiles.c (pc_in_section): New function.
5451 (in_plt_section): Remove function.
5452 * mips-linux-tdep.c: Include "objfiles.h".
5453 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5454 name argument. Return 1 rather than the low 16-bit halfword of
5455 any instruction examined.
5456 (mips_linux_in_dynsym_resolve_code): Update
5457 mips_linux_in_dynsym_stub call accordingly.
5458 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5459 rather than an equivalent hand-coded sequence.
5460 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5461 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5462 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5463 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5464 in_opd_section.
5465 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5466 on call to tdep->in_solib_call_trampoline.
5467 (hppa_in_solib_call_trampoline): Remove name argument, update
5468 according to in_plt_section change.
5469 (hppa_skip_trampoline_code): Update according to in_plt_section
5470 change.
5471 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5472 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5473 Likewise.
5474 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5475 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5476 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5477 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5478 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5479 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5480 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5481 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5482 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5483 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5484 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5485 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5486 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5487
b9b26a16
JB
54882013-06-24 Joel Brobecker <brobecker@adacore.com>
5489
5490 * common/create-version.sh: Fix expansion of $host_alias
5491 and $target_alias in generation of HOST_NAME and TARGET_NAME
5492 (resp.).
5493
01208463
TT
54942013-06-24 Tom Tromey <tromey@redhat.com>
5495
5496 * common/create-version.sh: New file.
5497 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5498 create-version.sh.
5499 (HFILES_NO_SRCDIR): Use common/version.h.
5500 * version.in: Move to ...
5501 * common/version.in: ... here. Replace date with "DATE".
5502 * version.h: Move to ...
5503 * common/version.h: ... here.
5504
bb6b9a5e
JB
55052013-06-21 Joel Brobecker <brobecker@adacore.com>
5506
5507 * gdb/gnulib/Makefile.in: Update date in copyright header.
5508 * gdb/gnulib/configure.ac: Ditto.
5509 * gdb/gnulib/update-gnulib.sh: Ditto.
5510
c3b18ee7
JB
55112013-06-21 Joel Brobecker <brobecker@adacore.com>
5512
5513 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5514 "gdb/gnulib/import".
5515
85d3b769
WN
55162013-06-21 Will Newton <will.newton@linaro.org>
5517
5518 * doublest.c (ldfrexp): Remove function.
5519 (convert_doublest_to_floatformat): Call frexpl instead of
5520 ldfrexp.
5521
88b48903
WN
55222013-06-21 Will Newton <will.newton@linaro.org>
5523
5524 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5525 * gnulib/aclocal.m4: Regenerate.
5526 * gnulib/config.in: Regenerate.
5527 * gnulib/configure: Regenerate.
5528 * gnulib/import/Makefile.am: Update.
5529 * gnulib/import/Makefile.in: Update.
5530 * gnulib/import/m4/gnulib-cache.m4: Update.
5531 * gnulib/import/m4/gnulib-comp.m4: Update.
5532 * gnulib/import/float+.h: Import.
5533 * gnulib/import/float.c: Import.
5534 * gnulib/import/float.in.h: Import.
5535 * gnulib/import/fpucw.h: Import.
5536 * gnulib/import/frexp.c: Import.
5537 * gnulib/import/frexpl.c: Import.
5538 * gnulib/import/isnan.c: Import.
5539 * gnulib/import/isnand-nolibm.h: Import.
5540 * gnulib/import/isnand.c: Import.
5541 * gnulib/import/isnanl-nolibm.h: Import.
5542 * gnulib/import/isnanl.c: Import.
5543 * gnulib/import/itold.c: Import.
5544 * gnulib/import/m4/exponentd.m4: Import.
5545 * gnulib/import/m4/exponentl.m4: Import.
5546 * gnulib/import/m4/float_h.m4: Import.
5547 * gnulib/import/m4/fpieee.m4: Import.
5548 * gnulib/import/m4/frexp.m4: Import.
5549 * gnulib/import/m4/frexpl.m4: Import.
5550 * gnulib/import/m4/isnand.m4: Import.
5551 * gnulib/import/m4/isnanl.m4: Import.
5552 * gnulib/import/m4/math_h.m4: Import.
5553 * gnulib/import/math.c: Import.
5554 * gnulib/import/math.in.h: Import.
5555
4353c9e6
JK
55562013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5557
5558 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5559 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5560 signature_INTEL_edx comparisons.
5561
e3e06db3
DE
55622013-06-20 Doug Evans <dje@google.com>
5563
6ac97d4c
DE
5564 symtab/15652
5565 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5566 All callers updated.
5567 (open_dwp_file): If we can't find the dwp file, search the basename
5568 in debug-file-directory.
5569
93417882
DE
5570 * dwarf2read.c (struct dwp_file): Fix comment.
5571 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5572
e3e06db3
DE
5573 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5574 better.
5575
0878d0fa
YQ
55762013-06-20 Yao Qi <yao@codesourcery.com>
5577
5578 * breakpoint.c (create_breakpoint): Fix code indentation.
5579
023fa29b
YQ
55802013-06-20 Yao Qi <yao@codesourcery.com>
5581
5582 * breakpoint.c (create_breakpoints_sal_default): Remove
5583 parameter 'lsal'. Update declaration.
5584 (bkpt_create_breakpoints_sal): Caller update.
5585 (tracepoint_create_breakpoints_sal): Likewise.
5586
c898adb7
YQ
55872013-06-20 Pedro Alves <pedro@codesourcery.com>
5588 Yao Qi <yao@codesourcery.com>
5589
5590 * NEWS: Mention the new option '--skip-unavailable' of command
5591 -data-list-register-values.
5592 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5593 --skip-unavailable option. Adjust to use output_register.
5594 (output_register): Add new 'skip_unavailable' parameter.
5595 Handle it.
5596
4d157a3d
MF
55972013-06-19 Mike Frysinger <vapier@gentoo.org>
5598
5599 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5600 common/i386-gcc-cpuid.h.
5601 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5602 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5603 Copy the latest version from upstream gcc.
5604 * common/linux-btrace.c: Include i386-cpuid.h.
5605 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5606 call to i386_cpuid.
5607 (cpu_supports_btrace): Likewise.
5608 * go32-nat.c: Include i386-cpuid.h.
5609 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5610
1ce4db08
DE
56112013-06-19 Doug Evans <dje@google.com>
5612
5613 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5614 (get_section_index): Ditto.
5615
0e4777df
TT
56162013-06-19 Tom Tromey <tromey@redhat.com>
5617
5618 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5619 "dprintf" help.
5620
3190f0c6
DE
56212013-06-18 Doug Evans <dje@google.com>
5622
5623 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5624 before using it.
5625 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5626 Move test of cu_index closer to use. Print complaint if cu_index
5627 is bad.
5628
8b89a20a
JB
56292013-06-18 Joel Brobecker <brobecker@adacore.com>
5630
5631 * machoread.c (oso_vector): Delete this global.
5632 (macho_register_oso): Add new parameter "oso_vector_ptr".
5633 Use it instead of the "oso_vector" global.
5634 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5635 (macho_symfile_read): Use a local oso_vector, to be free'ed
5636 at the end of this function, in place of the old "oso_vector"
5637 global. Update various function calls accordingly. Use one
5638 single cleanup chain for the entire function.
5639
59b0c7c1
JB
56402013-06-18 Joel Brobecker <brobecker@adacore.com>
5641
937c708c 5642 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5643 DWARF2_PER_OBJFILE by uses of DATA instead.
5644
427cd150
TT
56452013-06-18 Tom Tromey <tromey@redhat.com>
5646
5647 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5648 argument.
5649 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5650 Special case signals other than GDB_SIGNAL_TRAP.
5651 (explains_signal_watchpoint): New function.
5652 (base_breakpoint_explains_signal): Add 'sig' argument.
5653 (initialize_breakpoint_ops): Set 'explains_signal' method for
5654 watchpoints.
5655 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5656 signal argument.
5657 (bpstat_explains_signal): Likewise.
5658 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5659
2d57700b
TT
56602013-06-18 Tom Tromey <tromey@redhat.com>
5661
5662 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5663
ac475191
TT
56642013-06-18 Tom Tromey <tromey@redhat.com>
5665
5666 * python/python.c (finish_python_initialization): Decref
5667 'pythondir' on failure path as well.
5668
5bd1ef56
TT
56692013-06-18 Tom Tromey <tromey@redhat.com>
5670
5671 PR symtab/15391:
5672 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5673 after taking bits_to_skip into account. Sign extend byte_offset.
5674 * utils.h (gdb_sign_extend): Declare.
5675 * utils.c (gdb_sign_extend): New function.
5676
92fac807
JK
56772013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5678
5679 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5680
2d503272
PM
56812013-06-17 Pierre Muller <muller@sourceware.org>
5682
5683 * corelow.c (core_open): Print GDB signal name instead of target
5684 signal number.
5685
6916fd98
MF
56862013-06-17 Mike Frysinger <vapier@gentoo.org>
5687
5688 * .gitignore: Add /gcore.
5689
9c02c129
DE
56902013-06-13 Doug Evans <dje@google.com>
5691
5692 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5693 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5694
d0548fa2
PM
56952013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5696
5697 * stack.c (backtrace_command_1): Fix indentation.
5698
22128028
JB
56992013-06-11 Joel Brobecker <brobecker@adacore.com>
5700
5701 * window-nat.c (thread_rec): Add missing empty line after
5702 local variable declaration.
5703
2ed3e009
JB
57042013-06-11 Joel Brobecker <brobecker@adacore.com>
5705
5706 * windows-nat.c (thread_rec): Revert format used to print
5707 error code returned by SuspendThread from %d back to %u.
5708
0c3d84be
JB
57092013-06-11 Joel Brobecker <brobecker@adacore.com>
5710
5711 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5712 ID in debug trace.
5713 (get_windows_debug_event): Likewise, for all debug traces.
5714
80e88e1a
JB
57152013-06-11 Joel Brobecker <brobecker@adacore.com>
5716
5717 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5718 warning message.
5719
1edebdbf
YQ
57202013-06-08 Pedro Alves <pedro@codesourcery.com>
5721 Yao Qi <yao@codesourcery.com>
5722
5723 * mi/mi-main.c (get_register): Remove declaration.
5724 (output_register): Declare.
5725 (mi_cmd_data_list_register_values): Remove local variable
5726 'tuple_cleanup'. Move some code into output_register.
5727 (get_register): Renamed to ...
5728 (output_register): ... this. Output the register's
5729 "number" ui_out tuple here.
5730
47d48711
PA
57312013-06-07 Pedro Alves <palves@redhat.com>
5732
5733 * darwin-nat.c: Fix formating in copyright header.
5734 * darwin-nat.h: Likewise.
5735 * gnu-nat.c: Likewise.
5736 * machoread.c: Likewise.
5737
3aee8918
PA
57382013-06-07 Pedro Alves <palves@redhat.com>
5739
5f2b57b5 5740 PR server/14823
3aee8918
PA
5741 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5742 static. Output a global target description pointer.
5743 (init_registers_${name}): Adjust to initialize a
5744 target description structure.
5745
fe8400b4
WN
57462013-06-07 Will Newton <will.newton@linaro.org>
5747
5748 * printcmd.c (build_address_symbolic): Call
5749 gdbarch_addr_bits_remove for text minimal symbols.
5750
20df6206
WN
57512013-06-07 Will Newton <will.newton@linaro.org>
5752
5753 * MAINTAINERS: Add myself to Write After Approval.
5754
aef525cb
YQ
57552013-06-07 Yao Qi <yao@codesourcery.com>
5756
5757 * tracepoint.c (start_tracing): Move code to ...
5758 (trace_reset_local_state): ... here. New.
5759 (disconnect_tracing): Don't call set_current_traceframe,
5760 set_tracepoint_num, and set_traceframe_context. Call
5761 trace_reset_local_state instead.
5762 (tfile_close): Call trace_reset_local_state.
5763 * ctf.c (ctf_close): Likewise.
5764 * remote.c (remote_close): Likewise.
5765 * tracepoint.h (trace_reset_local_state): Declare.
5766
d2415c6c
DE
57672013-06-06 Doug Evans <dje@google.com>
5768
5769 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5770 and fix header docs.
5771
69fc87c2
DE
57722013-06-05 Doug Evans <dje@google.com>
5773 Keith Seitz <keiths@redhat.com>
5774
5775 PR 15519
5776 * cp-namespace.c (find_symbol_in_baseclass): Call
5777 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5778 Check result of call to lookup_symbol_static.
5779 Call lookup_static_symbol_aux unconditionally.
5780 Call check_typedef on base types before accessing them.
5781 (cp_lookup_nested_symbol): Fix comment.
5782
a513d1e8
LM
57832013-06-05 Luis Machado <lgustavo@codesourcery.com>
5784
5785 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5786 minimal symbols pointing to function descriptors.
5787
351a6f02
TT
57882013-06-05 Tom Tromey <tromey@redhat.com>
5789
5790 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5791
5e1b953b 57922013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5793 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5794
5795 * remote.c (remote_wait_as): Restore signal handler before returning
5796 when GDB gets a notification.
5797
f9e14852
GB
57982013-06-04 Gary Benson <gbenson@redhat.com>
5799
8445cbf1 5800 PR 2328
f9e14852
GB
5801 * breakpoint.h (handle_solib_event): Moved function declaration
5802 to solib.h.
5803 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5804 (bpstat_stop_status): Pass new argument to handle_solib_event.
5805 * solib.h (update_solib_breakpoints): New function declaration.
5806 (handle_solib_event): Moved function declaration from
5807 breakpoint.h.
5808 * solib.c (update_solib_breakpoints): New function.
5809 (handle_solib_event): Moved function from breakpoint.c.
5810 Updated to call solib_ops->handle_event if not NULL.
5811 * solist.h (target_so_ops): New fields "update_breakpoints" and
5812 "handle_event".
5813 * infrun.c (set_stop_on_solib_events): New function.
5814 (_initialize_infrun): Use the above for "set
5815 stop-on-solib-events".
5816 (handle_inferior_event): Pass new argument to handle_solib_event.
5817 * solib-svr4.c (probe.h): New include.
5818 (svr4_free_library_list): New forward declaration.
5819 (probe_action): New enum.
5820 (probe_info): New struct.
5821 (probe_info): New static variable.
5822 (NUM_PROBES): New definition.
5823 (svr4_info): New fields "using_xfer", "probes_table" and
5824 "solib_list".
5825 (free_probes_table): New function.
5826 (free_solib_list): New function.
5827 (svr4_pspace_data_cleanup): Free probes table and solib list.
5828 (svr4_copy_library_list): New function.
5829 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5830 (svr4_read_so_list): New parameter "prev_lm".
5831 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5832 (svr4_current_sos): New function.
5833 (probe_and_action): New struct.
5834 (hash_probe_and_action): New function.
5835 (equal_probe_and_action): Likewise.
5836 (register_solib_event_probe): Likewise.
5837 (solib_event_probe_at): Likewise.
5838 (solib_event_probe_action): Likewise.
5839 (solist_update_full): Likewise.
5840 (solist_update_incremental): Likewise.
5841 (disable_probes_interface_cleanup): Likewise.
5842 (svr4_handle_solib_event): Likewise.
5843 (svr4_update_solib_event_breakpoint): Likewise.
5844 (svr4_update_solib_event_breakpoints): Likewise.
5845 (svr4_create_solib_event_breakpoints): Likewise.
5846 (enable_break): Free probes table before creating breakpoints.
5847 Use svr4_create_solib_event_breakpoints to create breakpoints.
5848 (svr4_solib_create_inferior_hook): Free the solib list.
5849 (_initialize_svr4_solib): Initialise
5850 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5851
ced63ec0
GB
58522013-06-04 Gary Benson <gbenson@redhat.com>
5853
5854 * target.h (target_ops): New field
5855 "to_augmented_libraries_svr4_read".
5856 (target_augmented_libraries_svr4_read): New macro.
5857 * target.c (update_current_target): Handle
5858 to_augmented_libraries_svr4_read.
5859 * remote.c (remote_state): New field
5860 "augmented_libraries_svr4_read".
5861 (remote_augmented_libraries_svr4_read_feature): New function.
5862 (remote_protocol_features): Add entry for
5863 "augmented-libraries-svr4-read".
5864 (remote_augmented_libraries_svr4_read): New function.
5865 (init_remote_ops): Initialize
5866 remote_ops.to_augmented_libraries_svr4_read.
5867
7f91dbec
GB
58682013-06-04 Gary Benson <gbenson@redhat.com>
5869
5870 * NEWS: Update.
5871
607ece04
GB
58722013-06-04 Gary Benson <gbenson@redhat.com>
5873
5874 * objfiles.h (inhibit_section_map_updates): New function
5875 declaration.
5876 (resume_section_map_updates): Likewise.
5877 (resume_section_map_updates_cleanup): Likewise.
5878 * objfiles.c (objfile_pspace_info): Removed field
5879 "objfiles_changed_p". New fields "new_objfiles_available",
5880 "section_map_dirty" and "inhibit_updates".
5881 (allocate_objfile): Set new_objfiles_available.
5882 (free_objfile): Set section_map_dirty.
5883 (objfile_relocate1): Likewise.
5884 (in_plt_section): Likewise.
5885 (find_pc_section): Update the conditions under which the
5886 section map will be updated.
5887 (inhibit_section_map_updates): New function.
5888 (resume_section_map_updates): Likewise.
5889 (resume_section_map_updates_cleanup): Likewise.
5890
9ee6a5ac
GB
58912013-06-04 Gary Benson <gbenson@redhat.com>
5892
5893 * probe.h (get_probe_argument_count): New declaration.
5894 (evaluate_probe_argument): Likewise.
5895 * probe.c (get_probe_argument_count): New function.
5896 (evaluate_probe_argument): Likewise.
5897 (probe_safe_evaluate_at_pc): Use the above new functions.
5898
845d4708
AM
58992013-06-04 Alan Modra <amodra@gmail.com>
5900
5901 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5902 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5903 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5904 target mem reads on optional insns.
5905 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5906 ppc_insns_match_pattern calls.
5907 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5908 Add match for power7 thread safety insns, and new order of
5909 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5910 invocation in comment, and update rest of comment.
5911 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5912 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5913 (ppc64_standard_linkage2_target): Update insn offsets.
5914 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5915 stubs first. Update calls.
5916
404e278f
YQ
59172013-06-04 Yao Qi <yao@codesourcery.com>
5918
5919 * solib.c (solib_find): Don't need dir separator if path has
5920 drive spec.
5921
f6aea118
JB
59222013-06-03 Joel Brobecker <brobecker@adacore.com>
5923
5924 Revert (indirectly causes a SIGSEGV):
5925 * machoread.c (macho_symfile_read): Assign first cleanup to
5926 'back_to'.
5927
87967e27
YQ
59282013-06-03 Yao Qi <yao@codesourcery.com>
5929
5930 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5931 mi-parse.c. Make them static.
5932 (mi_all_values): Likewise.
5933 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5934 mi_parse_print_values. Make it external.
5935 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5936 Remove the declarations.
5937 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5938 * mi/mi-parse.h (mi_parse_print_values): Declare.
5939 * mi/mi-cmd-stack.c: Include mi-parse.h.
5940 (parse_print_values): Remove
5941 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5942 of parse_print_values.
5943 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5944
3ca73e0c
YQ
59452013-05-31 Pedro Alves <pedro@codesourcery.com>
5946 Yao Qi <yao@codesourcery.com>
5947
5948 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5949 (encode_actions): Move code to ...
5950 (all_tracepoint_actions_and_cleanup): ... here. New.
5951 (trace_dump_command): Likewise.
5952
4e993a19
TT
59532013-05-30 Tom Tromey <tromey@redhat.com>
5954
5955 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5956
e3b76b4f
TT
59572013-05-30 Tom Tromey <tromey@redhat.com>
5958
5959 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5960 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5961 'old_chain' argument. Add 'parser_result' argument.
5962 (gdb_xml_create_parser_and_cleanup): Remove old version.
5963 (gdb_xml_parse_quick): Update.
5964 (xml_process_xincludes): Update.
5965 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5966 declare.
5967
db26349c
TT
59682013-05-30 Tom Tromey <tromey@redhat.com>
5969
5970 * probe.c (collect_probes): Check arguments for NULL before
5971 calling compile_rx_or_error.
5972 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5973 Remove NULL return.
5974
77f9e713
TT
59752013-05-30 Tom Tromey <tromey@redhat.com>
5976
5977 * infrun.c (adjust_pc_after_break): Introduce an outer null
5978 cleanup.
5979
45475de7
TT
59802013-05-30 Tom Tromey <tromey@redhat.com>
5981
5982 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5983
ac5007fd
TT
59842013-05-30 Tom Tromey <tromey@redhat.com>
5985
5986 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5987 for 'old_chain'. Do not check 'head' before processing
5988 cleanups.
5989
cd82eddc
TT
59902013-05-30 Tom Tromey <tromey@redhat.com>
5991
5992 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5993 "cleanup_tuple".
5994
57cee33a
TT
59952013-05-30 Tom Tromey <tromey@redhat.com>
5996
5997 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5998 inner scope. Unconditionally call do_cleanups.
5999
795d915c
TT
60002013-05-30 Tom Tromey <tromey@redhat.com>
6001
6002 * source.c (find_and_open_source): Call do_cleanups.
6003
1fc3cf4a
TT
60042013-05-30 Tom Tromey <tromey@redhat.com>
6005
6006 * linux-thread-db.c (thread_db_load_search): Unconditionally
6007 call do_cleanups.
6008
e35ac9bf
TT
60092013-05-30 Tom Tromey <tromey@redhat.com>
6010
6011 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6012 for 'cleanup'; instead use a later one.
6013
f3300387
TT
60142013-05-30 Tom Tromey <tromey@redhat.com>
6015
6016 * python/py-breakpoint.c (bppy_get_commands): Use
6017 explicit, unconditional return.
6018 * python/py-frame.c (frapy_read_var): Likewise.
6019 * python/python.c (gdbpy_decode_line): Likewise.
6020
c27e16e3
TT
60212013-05-30 Tom Tromey <tromey@redhat.com>
6022
6023 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6024 do_cleanups on all return paths.
6025
5ae85e44
TT
60262013-05-30 Tom Tromey <tromey@redhat.com>
6027
6028 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6029
73b8d9da
TT
60302013-05-30 Tom Tromey <tromey@redhat.com>
6031
6032 * stabsread.c (read_struct_type): Call do_cleanups along
6033 all return paths.
6034
7d266584
MR
60352013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6036
6037 * mips-linux-tdep.c: Adjust formatting throughout.
6038
0f900f54
TT
60392013-05-30 Tom Tromey <tromey@redhat.com>
6040
6041 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6042 along all return paths.
6043
a991ac28
TT
60442013-05-30 Tom Tromey <tromey@redhat.com>
6045
6046 * symfile.c (find_separate_debug_file): Call do_cleanups
6047 along all return paths.
6048
1abaf042
TT
60492013-05-30 Tom Tromey <tromey@redhat.com>
6050
6051 * symtab.c (search_symbols): Introduce a null cleanup for
6052 'retval_chain'.
6053
edefe1da
TT
60542013-05-30 Tom Tromey <tromey@redhat.com>
6055
6056 * python/py-value.c (valpy_binop): Call do_cleanups before
6057 exiting loop.
6058
54f72dcc
TT
60592013-05-30 Tom Tromey <tromey@redhat.com>
6060
6061 * python/py-prettyprint.c (print_children): Remove extra
6062 do_cleanups call.
6063
af1c6971
TT
60642013-05-30 Tom Tromey <tromey@redhat.com>
6065
6066 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6067 all return paths.
6068
b862ce75
TT
60692013-05-30 Tom Tromey <tromey@redhat.com>
6070
6071 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6072 along all return paths.
6073
e12fefc8
TT
60742013-05-30 Tom Tromey <tromey@redhat.com>
6075
6076 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6077 call do_cleanups.
6078
4867f990
TT
60792013-05-30 Tom Tromey <tromey@redhat.com>
6080
6081 * varobj.c (c_value_of_root): Call do_cleanups along all
6082 return paths.
6083
4fd2d6af
TT
60842013-05-30 Tom Tromey <tromey@redhat.com>
6085
6086 * tracepoint.c (trace_dump_command): Unconditionally call
6087 do_cleanups.
6088
752eb8b4
TT
60892013-05-30 Tom Tromey <tromey@redhat.com>
6090
6091 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6092 do_cleanups earlier.
6093
e42d0aa5
TT
60942013-05-30 Tom Tromey <tromey@redhat.com>
6095
6096 * machoread.c (macho_symfile_read): Assign first cleanup to
6097 'back_to'.
6098
4bbc010a
TT
60992013-05-30 Tom Tromey <tromey@redhat.com>
6100
6101 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6102
b9635925
TT
61032013-05-30 Tom Tromey <tromey@redhat.com>
6104
6105 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6106
25f43500
TT
61072013-05-30 Tom Tromey <tromey@redhat.com>
6108
6109 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6110 call discard_cleanups.
6111 (inf_ptrace_attach): Likewise.
6112
d6a2e54a
TT
61132013-05-30 Tom Tromey <tromey@redhat.com>
6114
6115 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6116 return paths.
6117 (mips_initialize): Likewise.
6118 (common_open): Call do_cleanups.
6119
48be7c1b
TT
61202013-05-30 Tom Tromey <tromey@redhat.com>
6121
6122 * utils.c (internal_vproblem): Call do_cleanups.
6123
e61727ab
TT
61242013-05-30 Tom Tromey <tromey@redhat.com>
6125
6126 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6127
b81b921f
TT
61282013-05-30 Tom Tromey <tromey@redhat.com>
6129
6130 * cli/cli-script.c (setup_user_args): Don't return after error.
6131
fe48dfb1
TT
61322013-05-30 Tom Tromey <tromey@redhat.com>
6133
6134 * somread.c (som_symtab_read): Call do_cleanups.
6135
27833de7
TT
61362013-05-30 Tom Tromey <tromey@redhat.com>
6137
6138 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6139
5b3fca71
TT
61402013-05-30 Tom Tromey <tromey@redhat.com>
6141
6142 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6143 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6144 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6145 * source.c (show_substitute_path_command): Call do_cleanups.
6146 (unset_substitute_path_command, set_substitute_path_command):
6147 Likewise.
6148 * symfile.c (load_command): Call do_cleanups.
6149
af83e3f8
TT
61502013-05-30 Tom Tromey <tromey@redhat.com>
6151
6152 * contrib/cleanup_check.py: New file.
6153 * contrib/gcc-with-excheck: Add option parsing.
6154
564eac42
JB
61552013-05-30 Joel Brobecker <brobecker@adacore.com>
6156
6157 * windows-nat.c (windows_delete_thread): Add missing space
6158 in cast expression.
6159
47902076
HAQ
61602013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6161
6162 * inferior.c (top level): Include tilde.h.
6163 (add_inferior_command): Call tilde_expand on the value of 'exec'
6164 argument.
6165
23da373a
YQ
61662013-05-30 Pedro Alves <pedro@codesourcery.com>
6167 Yao Qi <yao@codesourcery.com>
6168
6169 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6170 Caller update.
6171 (encode_actions): Likewise.
6172 * remote.c (remote_download_tracepoint): Caller update.
6173 * tracepoint.h (encode_actions): Update declaration.
6174
a6e6f791
PA
61752013-05-30 Pedro Alves <palves@redhat.com>
6176
6177 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6178 pointer.
6179
36d25514
YQ
61802013-05-30 Yao Qi <yao@codesourcery.com>
6181
6182 * remote.c (remote_check_symbols): Remove unused parameter
6183 'objfile'.
6184 Declaration update.
6185 (remote_start_remote, remote_new_objfile): Caller update.
6186
62a813cc
YQ
61872013-05-30 Yao Qi <yao@codesourcery.com>
6188
6189 * mi/mi-cmds.c (mi_cmds): Define MI command
6190 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6191 DEF_MI_CMD_CLI.
6192
28439a30
PA
61932013-05-29 Pedro Alves <palves@redhat.com>
6194
6195 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6196 (remote_insert_watchpoint, remote_remove_watchpoint)
6197 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6198 (remote_verify_memory, compare_sections_command)
6199 (remote_search_memory): Set the general process/thread on the
6200 remote side.
6201
6ac1c082
PA
62022013-05-29 Pedro Alves <palves@redhat.com>
6203
6204 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6205 (_initialize_aarch64_tdep): Don't call
6206 initialize_tdesc_aarch64_without_fpu.
6207 * features/Makefile (WHICH): Remove reference to
6208 aarch64-without-fpu.
6209 * features/aarch64-without-fpu.c: Delete file.
6210 * regformats/aarch64-without-fpu.dat: Delete file.
6211
a73e3634
YQ
62122013-05-28 Yao Qi <yao@codesourcery.com>
6213
6214 * tracepoint.c (stringify_collection_list): Remove parameter
6215 'string'.
6216 (encode_actions): Caller update. Remove local variables.
6217
c0ea94eb
YQ
62182013-05-24 Yao Qi <yao@codesourcery.com>
6219
6220 * tracepoint.c (TFILE_PID): Remove.
6221 (tfile_open): Don't add thread and inferior.
6222 (tfile_close): Don't set 'inferior_ptid'. Don't call
6223 exit_inferior_silent.
6224 (tfile_thread_alive): Remove.
6225 (init_tfile_ops): Don't set field 'to_thread_alive' of
6226 tfile_ops.
6227
20d7f211
DE
62282013-05-23 Doug Evans <dje@google.com>
6229
6230 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6231
8658d16d
PA
62322013-05-23 Pedro Alves <palves@redhat.com>
6233
6234 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6235 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6236 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6237 Only define if HAVE_SOCKETS is defined.
6238 * configure.ac: Check for sys/socket.h.
6239 * config.in, configure: Regenerate.
6240
21aa081e
PA
62412013-05-23 Pedro Alves <palves@redhat.com>
6242
6243 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6244 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6245 printing uint32_t variables.
6246
c2d6af84
PA
62472013-05-23 Pedro Alves <palves@redhat.com>
6248
6249 * NEWS: Mention GDBserver range stepping support.
6250
c1e36e3e
PA
62512013-05-23 Yao Qi <yao@codesourcery.com>
6252 Pedro Alves <palves@redhat.com>
6253
6254 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6255 field.
6256 * infcmd.c (step_once, until_next_command): Enable range stepping.
6257 * infrun.c (displaced_step_prepare): Disable range stepping.
6258 (resume): Disable range stepping if stepping over a breakpoint or
6259 we have software watchpoints. If range stepping is enabled,
6260 assert the thread is in the stepping range.
6261 (clear_proceed_status_thread): Clear may_range_step.
6262 (handle_inferior_event): Disable range stepping as soon as we know
6263 the thread that hit the event. Re-enable it whenever we're going
6264 to step with a step range.
6265 * remote.c (struct vCont_action_support) <r>: New field.
6266 (use_range_stepping): New global.
6267 (remote_vcont_probe): Handle 'r' action.
6268 (append_resumption): Append an 'r' action if the thread may range
6269 step.
6270 (show_range_stepping): New function.
6271 (set_range_stepping): New function.
6272 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6273 'set range-stepping' and 'show range-stepping' commands.
6274 * NEWS: Mention range stepping, the new vCont;r action, and the
6275 new "set/show range-stepping" commands.
6276
d458bd84
PA
62772013-05-23 Yao Qi <yao@codesourcery.com>
6278 Pedro Alves <palves@redhat.com>
6279
6280 * remote.c (struct vCont_action_support): New struct.
6281 (struct remote_state) <support_vCont_t>: Remove field.
6282 <vCont_actions_support>: New field.
6283 (remote_vcont_probe, remote_stop_ns): Update.
6284
ce4c476a
PA
62852013-05-23 Yao Qi <yao@codesourcery.com>
6286 Pedro Alves <palves@redhat.com>
6287
6288 * gdbthread.h (pc_in_thread_step_range): New declaration.
6289 * thread.c (pc_in_thread_step_range): New function.
6290 * infrun.c (handle_inferior_event): Use it.
6291
ce70887a
JB
62922013-05-23 Joel Brobecker <brobecker@adacore.com>
6293
6294 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6295 of sprintf.
6296
55b87a52
KS
62972013-05-22 Keith Seitz <keiths@redhat.com>
6298
6299 * ada-lang.c (is_known_support_routine): Add explicit free of
6300 'func_name' from find_frame_funname.
6301 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6302 for func_name from find_frame_funname.
6303 * python/py-frame.c (frapy_name): Add explicit free of
6304 'name' from find_frame_funname.
6305 * stack.c (find_frame_funname): Add comment explaining that
6306 funcp must be freed by the caller.
6307 Return copy of symbol names instead of pointers.
6308 (print_frame): Add a cleanup for 'funname' from
6309 find_frame_funname.
6310 * stack.h (find_frame_funname): Remove "const" from
6311 'funname' parameter.
6312
5f2e6b00
TT
63132013-05-22 Tom Tromey <tromey@redhat.com>
6314
6315 PR c++/15401:
6316 * c-valprint.c (c_value_print): Use value_addr for
6317 references. Convert back to reference type with value_ref.
6318
d85c4847
EZ
63192013-05-22 Eli Zaretskii <eliz@gnu.org>
6320
6321 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6322 unloaded DLL, it will be done by handle_solib_event. See
6323 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6324 details.
6325
54eb231c
PM
63262013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6327
6328 * ui-out.c: Create typedef ui_out_level_p and define vector
6329 operations for that type.
6330 (struct ui_out): Use a vector instead of an array.
6331 (current_level): Return level from a vector.
6332 (push_level): Create a level in a vector.
6333 (pop_level): Delete a level in a vector.
6334 (ui_out_new): Create initial level zero level, and store in a
6335 vector.
6336 (ui_out_destroy): Add vector cleanup.
6337
ac90359c
PA
63382013-05-22 Pedro Alves <palves@redhat.com>
6339
6340 * python/python-internal.h (gdb_Py_DECREF): Tag with
6341 "ARI: editCase function".
6342
6dcc1893
PP
63432013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6344
6345 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6346
c8c735b9
PA
63472013-05-21 Pedro Alves <palves@redhat.com>
6348
6349 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6350 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6351 * python/py-utils.c (py_decref): Don't check for NULL before
6352 calling Py_DECREF.
6353
1915daeb
PA
63542013-05-21 Pedro Alves <palves@redhat.com>
6355
6356 * python/py-utils.c (py_decref): Remove extra braces.
6357 (gdb_pymodule_addobject): Remove extra braces.
6358 * python-internal.h (gdb_Py_DECREF): New static inline function.
6359 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6360
bd9673a4
PW
63612013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6362
6363 * breakpoints.c (detach_breakpoints): Do not
6364 detach breakpoints locations with loc_type bp_loc_other.
6365
ff6009d0
JK
63662013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6367
6368 Workaround Python 2.6.
6369 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6370 a block.
6371
3641da11
JK
63722013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6373
6374 Code cleanup: constification.
6375 * solib.c (solib_ops): Make return type and ops variable type const.
6376 (set_solib_ops): Make the new_ops parameter and ops variable const.
6377 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6378 (solib_add, solib_keep_data_in_core, clear_solib)
6379 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6380 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6381 const.
6382 * solib.h (set_solib_ops): Make the new_ops parameter const.
6383
776af39e
JB
63842013-05-21 Joel Brobecker <brobecker@adacore.com>
6385
6386 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6387 variable.
6388 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6389 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6390 (SYSTEM_GDBINIT_FILES): New variables.
6391 (all): Add stamp-system-gdbinit.
6392 (stamp-system-gdbinit): New rule.
6393 (clean-system-gdbinit, install-system-gdbinit)
6394 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6395 (install-only): Add dependency on install-system-gdbinit.
6396 (uninstall): Add dependency on uninstall-system-gdbinit.
6397 (clean): Add dependency on clean-system-gdbinit.
6398 * system-gdbinit/elinos.py: New file.
6399 * system-gdbinit/wrs-linux.py: New file.
6400
1509e573
JB
64012013-05-21 Joel Brobecker <brobecker@adacore.com>
6402
6403 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6404
c5867ab6
HZ
64052013-05-21 Hui Zhu <hui@codesourcery.com>
6406
6407 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6408 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6409 * mi/mi-cmd-break.c (ctype.h): New include.
6410 (gdb_obstack.h): New include.
6411 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6412 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6413 (mi_cmd_dprintf_insert): New.
6414 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6415 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6416
7d38e38f
TT
64172013-05-20 Tom Tromey <tromey@redhat.com>
6418
6419 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6420
97b77b39
TT
64212013-05-20 Tom Tromey <tromey@redhat.com>
6422
6423 * python/py-value.c (valpy_get_dynamic_type): Simplify
6424 dynamic_type assignment. Use Py_XINCREF.
6425
53e66479
TT
64262013-05-20 Tom Tromey <tromey@redhat.com>
6427
6428 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6429
dcf87832
TT
64302013-05-20 Tom Tromey <tromey@redhat.com>
6431
6432 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6433 (gdbpy_selected_frame): Move object-construction code
6434 out of TRY_CATCH.
6435
aa36459a
TT
64362013-05-20 Tom Tromey <tromey@redhat.com>
6437
6438 * python/py-arch.c (gdbpy_initialize_arch): Use
6439 gdb_pymodule_addobject.
6440 * python/py-block.c (gdbpy_initialize_blocks): Use
6441 gdb_pymodule_addobject.
6442 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6443 gdb_pymodule_addobject.
6444 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6445 gdb_pymodule_addobject.
6446 * python/py-event.c (gdbpy_initialize_event_generic): Use
6447 gdb_pymodule_addobject.
6448 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6449 gdb_pymodule_addobject.
6450 * python/py-evts.c (add_new_registry): Use
6451 gdb_pymodule_addobject.
6452 (gdbpy_initialize_py_events): Likewise.
6453 * python/py-finishbreakpoint.c
6454 (gdbpy_initialize_finishbreakpoints): Use
6455 gdb_pymodule_addobject.
6456 * python/py-frame.c (gdbpy_initialize_frames): Use
6457 gdb_pymodule_addobject.
6458 * python/py-function.c (gdbpy_initialize_functions): Use
6459 gdb_pymodule_addobject.
6460 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6461 gdb_pymodule_addobject.
6462 * python/py-infthread.c (gdbpy_initialize_thread): Use
6463 gdb_pymodule_addobject.
6464 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6465 gdb_pymodule_addobject.
6466 * python/py-param.c (gdbpy_initialize_parameters): Use
6467 gdb_pymodule_addobject.
6468 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6469 gdb_pymodule_addobject.
6470 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6471 gdb_pymodule_addobject.
6472 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6473 gdb_pymodule_addobject.
6474 * python/py-type.c (gdbpy_initialize_types): Use
6475 gdb_pymodule_addobject.
6476 * python/py-utils.c (gdb_pymodule_addobject): New function.
6477 * python/py-value.c (gdbpy_initialize_values): Use
6478 gdb_pymodule_addobject.
6479 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6480 * python/python.c (_initialize_python): Use
6481 gdb_pymodule_addobject.
6482
3d4a3c3e
TT
64832013-05-20 Tom Tromey <tromey@redhat.com>
6484
6485 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6486 * python/py-param.c (get_set_value, get_show_value): Use
6487 explicit decrefs.
6488 * python/python.c (start_type_printers, apply_type_printers):
6489 Use explicit decrefs.
6490
72ff8829
TT
64912013-05-20 Tom Tromey <tromey@redhat.com>
6492
6493 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6494 incref the module.
6495
02146ba5
TT
64962013-05-20 Tom Tromey <tromey@redhat.com>
6497
6498 * python/python.c (gdbpy_run_events): Decref the result
6499 of PyObject_CallObject.
6500
33ee792f
TT
65012013-05-20 Tom Tromey <tromey@redhat.com>
6502
6503 * python/py-symtab.c (set_sal): Use
6504 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6505 (symtab_and_line_to_sal_object): Update.
6506
fcb49fc8
TT
65072013-05-20 Tom Tromey <tromey@redhat.com>
6508
6509 * python/py-param.c (compute_enum_values): Decref 'item'.
6510
0646da15
TT
65112013-05-20 Tom Tromey <tromey@redhat.com>
6512
6513 * mi/mi-main.c: Include python-internal.h.
6514 (mi_cmd_list_features): Check gdb_python_initialized.
6515 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6516 (python_inferior_exit, python_new_objfile, add_thread_object)
6517 (delete_thread_object, py_free_inferior): Check
6518 gdb_python_initialized.
6519 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6520 gdb_python_initialized.
6521 * python/py-type.c (save_objfile_types): Check
6522 gdb_python_initialized.
6523 * python/python-internal.h (gdb_python_initialized): Declare.
6524 * python/python.c (ensure_python_env): Throw exception if
6525 Python not initialized.
6526 (before_prompt_hook, source_python_script_for_objfile)
6527 (start_type_printers, apply_type_printers,
6528 free_type_printers): Check gdb_python_initialized.
6529 * varobj.c (varobj_get_display_hint)
6530 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6531 (install_new_value_visualizer, varobj_set_visualizer)
6532 (value_get_print_value): Check gdb_python_initialized.
6533
999633ed
TT
65342013-05-20 Tom Tromey <tromey@redhat.com>
6535
6536 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6537 Check errors.
6538 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6539 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6540 Check errors.
6541 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6542 Check errors.
6543 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6544 Check errors.
6545 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6546 Check errors.
6547 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6548 init function to return 'int'.
6549 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6550 Return 'int'. Check errors.
6551 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6552 Check errors.
6553 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6554 Return 'int'. Check errors.
6555 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6556 Check errors.
6557 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6558 Check errors.
6559 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6560 Check errors.
6561 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6562 Check errors.
6563 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6564 Check errors.
6565 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6566 Check errors.
6567 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6568 Check errors.
6569 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6570 Check errors.
6571 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6572 Check errors.
6573 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6574 Check errors.
6575 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6576 Check errors.
6577 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6578 Check errors.
6579 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6580 Check errors.
6581 * python/python-internal.h (gdbpy_initialize_auto_load,
6582 gdbpy_initialize_values, gdbpy_initialize_frames,
6583 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6584 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6585 gdbpy_initialize_blocks, gdbpy_initialize_types,
6586 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6587 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6588 gdbpy_initialize_finishbreakpoints,
6589 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6590 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6591 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6592 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6593 gdbpy_initialize_signal_event,
6594 gdbpy_initialize_breakpoint_event,
6595 gdbpy_initialize_continue_event,
6596 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6597 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6598 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6599 * python/python.c (gdb_python_initialized): New global.
6600 (gdbpy_initialize_events): Return 'int'. Check errors.
6601 (_initialize_python): Check errors. Set
6602 gdb_python_initialized.
6603
18868860
TT
66042013-05-20 Tom Tromey <tromey@redhat.com>
6605
6606 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6607 Decref the reslut of PyObject_CallMethod.
6608
9f4ff0c2
TT
66092013-05-20 Tom Tromey <tromey@redhat.com>
6610
6611 * python/py-event.c (gdbpy_initialize_event_generic): Return
6612 early if PyType_Ready fails.
6613
0d3a2e8a
TT
66142013-05-20 Tom Tromey <tromey@redhat.com>
6615
6616 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6617 as 'default' in the switch.
6618
b86af38a
TT
66192013-05-20 Tom Tromey <tromey@redhat.com>
6620
6621 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6622 get_addr_from_python calls out of TRY_CATCH.
6623 (infpy_write_memory, infpy_search_memory): Likewise.
6624 * python/py-utils.c (get_addr_from_python): Return negative
6625 value on error. Use TRY_CATCH.
6626 * python/python-internal.h (get_addr_from_python): Use
6627 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6628
c127ec58
TT
66292013-05-20 Tom Tromey <tromey@redhat.com>
6630
6631 * python/py-event.c (evpy_emit_event): Decref the
6632 result of PyObject_CallFunctionObjArgs.
6633
ba327838
TT
66342013-05-20 Tom Tromey <tromey@redhat.com>
6635
6636 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6637 Correctly decref.
6638
d8191432
TT
66392013-05-20 Tom Tromey <tromey@redhat.com>
6640
6641 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6642
5d153bd1
TT
66432013-05-20 Tom Tromey <tromey@redhat.com>
6644
6645 * python/py-event.h (gdbpy_initialize_event_generic): Use
6646 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6647 * python/py-evts.c (add_new_registry): Use
6648 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6649 * python/python-internal.h
6650 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6651
56cc411c
TT
66522013-05-20 Tom Tromey <tromey@redhat.com>
6653
6654 * python/py-arch.c (archpy_disassemble): Update.
6655 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6656 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6657 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6658 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6659 macro.
6660 (GDB_PY_HANDLE_EXCEPTION): Update.
6661 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6662
8919e174
TT
66632013-05-20 Tom Tromey <tromey@redhat.com>
6664
6665 * python/python-internal.h (events_object_type): Remove.
6666
9b08f225
TT
66672013-05-20 Tom Tromey <tromey@redhat.com>
6668
f5aee5ee
AM
6669 * python/py-event.h (evpy_emit_event): Use
6670 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6671 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6672 New macro.
9b08f225 6673
f04010ff
TT
66742013-05-20 Tom Tromey <tromey@redhat.com>
6675
6676 * py-evtregistry.c (create_event_object): Decref
6677 eventregistry_object if PyList_New fails.
6678
3919fd96
TT
66792013-05-20 Tom Tromey <tromey@redhat.com>
6680
6681 * py-cmd.c (gdbpy_string_to_argv): Check result of
6682 PyList_New.
6683
0430e8cb
TT
66842013-05-20 Tom Tromey <tromey@redhat.com>
6685
6686 * python/python.c (before_prompt_hook): Add cleanup to
6687 decref 'hook'.
6688
764123e4
TT
66892013-05-20 Tom Tromey <tromey@redhat.com>
6690
6691 * python/py-function.c (fnpy_init): Decref result of
6692 PyObject_GetAttrString.
6693
634c58be
TT
66942013-05-20 Tom Tromey <tromey@redhat.com>
6695
6696 * python/py-threadevent.c (get_event_thread): Use
6697 CPYCHECKER_RETURNS_BORROWED_REF.
6698 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6699 New define.
6700 (pspace_to_pspace_object, objfile_to_objfile_object)
6701 (find_thread_object): Use it.
6702
62eec1a5
TT
67032013-05-20 Tom Tromey <tromey@redhat.com>
6704
6705 * python/py-arch.c (arch_object_type): Use
6706 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6707 * python/py-block.c (block_syms_iterator_object_type):
6708 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6709 * python/py-bpevent.c (breakpoint_event_object_type):
6710 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6711 * python/py-cmd.c (cmdpy_object_type): Use
6712 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6713 * python/py-continueevent.c (continue_event_object_type):
6714 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6715 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6716 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6717 * python/py-events.h (thread_event_object_type):
6718 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6719 * python/py-evtregistry.c (eventregistry_object_type): Use
6720 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6721 * python/py-exitedevent.c (exited_event_object_type):
6722 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6723 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6724 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6725 * python/py-function.c (fnpy_object_type): Use
6726 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6727 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6728 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6729 * python/py-infthread.c (thread_object_type): Use
6730 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6731 * python/py-lazy-string.c (lazy_string_object_type):
6732 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6733 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6734 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6735 * python/py-objfile.c (objfile_object_type): Use
6736 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6737 * python/py-param.c (parmpy_object_type):
6738 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6739 * python/py-progspace.c (pspace_object_type):
6740 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6741 * python/py-signalevent.c (signal_event_object_type):
6742 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6743 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6744 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6745 * python/py-type.c (type_object_type, field_object_type)
6746 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6747 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6748 define.
6749 (value_object_type, block_object_type, symbol_object_type)
6750 (event_object_type, stop_event_object_type, breakpoint_object_type)
6751 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6752
81ea8796
AT
67532013-05-20 Andreas Tobler <andreas@fgznet.ch>
6754
6755 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6756 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6757
a2ce51a0
DE
67582013-05-20 Doug Evans <dje@google.com>
6759
6760 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6761 For Fission.
6762 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6763 reading_dwo_directly.
6764 (struct signatured_type): New member dwo_unit.
6765 (struct die_reader_specs): New member comp_dir.
6766 (create_signatured_type_table_from_index): Use malloc for
6767 all_type_units instead of objfile's obstack.
6768 (create_all_type_units): Ditto.
6769 (fill_in_sig_entry_from_dwo_entry): New function.
6770 (add_type_unit): New function.
6771 (lookup_dwo_signatured_type): New function.
6772 (lookup_dwp_signatured_type): New function.
6773 (lookup_signatured_type): New arg cu. All callers updated.
6774 (init_cu_die_reader): Initialize comp_dir.
6775 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6776 Change assert of matching type signatures to call error on mismatch.
6777 (lookup_dwo_unit): Add assert.
6778 (init_tu_and_read_dwo_dies): New function.
6779 (init_cutu_and_read_dies): Call it.
6780 (build_type_unit_groups): Handle case of no type unit groups created.
6781 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6782 (lookup_dwo_cutu): Tweak complaint.
6783 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6784 (dwarf2_per_objfile_free): Free all_type_units.
6785
a25cd31f
JB
67862013-05-20 Joel Brobecker <brobecker@adacore.com>
6787
6788 * windows-nat.c (handle_unload_dll): Add missing empty line.
6789
4d804846
JB
67902013-05-20 Joel Brobecker <brobecker@adacore.com>
6791
6792 * dwarf2read.c (prototyped_function_p): New function.
6793 (read_subroutine_type): Use it.
6794
1c432e72
JB
67952013-05-20 Joel Brobecker <brobecker@adacore.com>
6796
6797 * rs6000-aix-tdep.c: De-indent some example code provided
6798 as a comment.
6799
4feebbdd
EBM
68002013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6801
6802 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6803 region is ok for a hardware watchpoint using the new ptrace interface
6804 on Power servers.
6805
7d0c9981
DE
68062013-05-17 Doug Evans <dje@google.com>
6807
6808 * NEWS: Mention new maintenance commands check-symtabs, and
6809 expand-symtabs, and renamed check-psymtabs.
6810 * psymtab.c (maintenance_check_psymtabs): Renamed from
6811 maintenance_check_symtabs. Only process already-expanded symbol
6812 tables.
6813 (_initialize_psymtab): Update.
6814 * symmisc.c (maintenance_check_symtabs): New function.
6815 (maintenance_expand_name_matcher): New function
6816 (maintenance_expand_file_matcher): New function
6817 (maintenance_expand_symtabs): New function.
6818 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6819 commands.
6820
6cbc7c3d
TT
68212013-05-17 Tom Tromey <tromey@redhat.com>
6822
6823 * python/py-inferior.c (infpy_read_memory): Don't call
6824 PyErr_SetString if PyObject_New fails.
6825 * python/py-frame.c (frame_info_to_frame_object): Don't call
6826 PyErr_SetString if PyObject_New fails.
6827
a48b32c0
L
68282013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6829
6830 * acinclude.m4: Add check for dlopen in libdl.
6831 * configure.ac: Ditto.
6832 * configure: Regenerate.
6833
3de661e6
PM
68342013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6835
6836 * frame.c (frame_stash): Convert to htab.
6837 (frame_addr_hash): New function.
6838 (frame_addr_hash_eq): New function.
6839 (frame_stash_create): Convert function to create
6840 a hash table.
6841 (frame_stash_add): Convert function to add an entry to a hash
6842 table.
6843 (frame_stash_find): Convert function to search the hash table.
6844 (frame_stash_invalidate): Convert function to empty the hash
6845 table.
6846 (get_frame_id): Only add to stash if a frame_id is created.
6847 (_initialize_frame): Call frame_stash_create.
6848
bb4168a9 68492013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6850
6851 * configure.ac: Ensure MIG is available when building for GNU Hurd
6852 hosts.
6853 * configure: Regenerate.
6854
d1be3247
JB
68552013-05-16 Joel Brobecker <brobecker@adacore.com>
6856
6857 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6858
b8fea896
JB
68592013-05-16 Joel Brobecker <brobecker@adacore.com>
6860
6861 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6862 all cleanups are done before returning from this function.
6863
af880d85
JB
68642013-05-15 Joel Brobecker <brobecker@adacore.com>
6865
6866 * utils.h: #include "exceptions.h".
6867 (enum errors): Remove partial declaration.
6868
356a5233
JB
68692013-05-15 Joel Brobecker <brobecker@adacore.com>
6870
6871 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6872 * gdbarch.h, gdbarch.c: Regenerate.
6873 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6874 handling.
6875
6876 * rs6000-aix-tdep.h: New file.
6877 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6878 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6879 "xml-utils.h".
6880 (struct field_info, struct ld_info_desc): New types.
6881 (ld_info32_desc, ld_info64_desc): New static constants.
6882 (struct ld_info): New type.
6883 (rs6000_aix_extract_ld_info): New function.
6884 (rs6000_aix_shared_library_to_xml): Likewise.
6885 (rs6000_aix_ld_info_to_xml): Likewise.
6886 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6887 (rs6000_aix_init_osabi): Add call to
6888 set_gdbarch_core_xfer_shared_libraries_aix.
6889 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6890 Remove "xml-utils.h" include.
6891 (LdInfo): Delete typedef.
6892 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6893 Delete macros.
6894 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6895 Adjust code accordingly.
6896 (rs6000_core_ldinfo): Delete, folded into
6897 rs6000_aix_core_xfer_shared_libraries_aix.
6898 (rs6000_xfer_shared_library): Delete.
6899 (rs6000_xfer_shared_libraries): Reimplement.
6900
742ce053
MM
69012013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6902
6903 * record.c (record_goto_cmdlist): New.
6904 (cmd_record_goto): Split into this ...
6905 (cmd_record_goto_begin): ... this
6906 (cmd_record_goto_end): ... and this.
6907 (_initialize_record): Change "record goto" to prefix command.
6908 Add commands for "record goto begin" and "record goto end".
6909 Add an alias for "record goto start" to "record goto begin".
6910
e93ba630
JK
69112013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6912
6913 * linespec.c (convert_linespec_to_sals): New comment for
6914 SOURCE_FILENAME assignment.
6915
5821aace
JK
69162013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6917
6918 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6919 internal_warning.
6920
a1b8c4cc
TT
69212013-05-14 Tom Tromey <tromey@redhat.com>
6922
6923 * eval.c (parse_and_eval_long): Make 'exp' const.
6924 * value.h (parse_and_eval_long): Update.
6925
23b3a2c3
TT
69262013-05-14 Tom Tromey <tromey@redhat.com>
6927
6928 * ui-file.c (gdb_fopen): Make arguments const.
6929 * ui-file.h (gdb_fopen): Make arguments const.
6930
ca623f82
TT
69312013-05-14 Tom Tromey <tromey@redhat.com>
6932
6933 * remote.c (remote_set_trace_notes): Make arguments const.
6934 * target.c (update_current_target): Update cast.
6935 * target.h (to_set_trace_notes): Make arguments const.
6936
503ebb2c
TT
69372013-05-14 Tom Tromey <tromey@redhat.com>
6938
6939 * go32-nat.c (go32_terminal_info): Make 'args' const.
6940 * inferior.h (child_terminal_info): Update.
6941 * inflow.c (child_terminal_info): Make 'args' const.
6942 * target.c (default_terminal_info): Make 'args' const.
6943 (debug_to_terminal_save_ours): Likewise.
6944 * target.h (struct target_ops) <to_terminal_info>: Make argument
6945 const.
6946
85e1311a
TT
69472013-05-13 Tom Tromey <tromey@redhat.com>
6948
6949 * gcore.c (create_gcore_bfd): Make 'filename' const.
6950 * gcore.h (create_gcore_bfd): Make 'filename' const.
6951 * record-full.c (record_full_save): Make 'recfilename' const.
6952 * target.c (target_save_record): Make 'filename' const.
6953 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6954 const.
6955 (target_save_record): Likewise.
6956
d62bfeaf
TT
69572013-05-13 Tom Tromey <tromey@redhat.com>
6958
f5aee5ee 6959 PR gdb/15338:
d62bfeaf
TT
6960 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6961 ranges section has been read.
6962
ac1ca910
TT
69632013-05-13 Tom Tromey <tromey@redhat.com>
6964
6965 PR exp/15364:
6966 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6967 STRUCTOP_PTR>: Return a not_lval value for
6968 EVAL_AVOID_SIDE_EFFECTS.
6969 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6970 for EVAL_AVOID_SIDE_EFFECTS.
6971
36d1c68c
JB
69722013-05-13 Joel Brobecker <brobecker@adacore.com>
6973
6974 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6975 floating point registers to register type before storing
6976 value.
6977 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6978 Likewise.
6979
21ff4686
TT
69802013-05-10 Joel Brobecker <brobecker@adacore.com>
6981 Tom Tromey <tromey@redhat.com>
6982
6983 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6984 New functions.
6985 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6986 Declare.
6987 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6988 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6989 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6990 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6991
d3685d60
TT
69922013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6993 Tom Tromey <tromey@redhat.com>
6994
6995 PR build/15414:
6996 * configure: Rebuild.
6997 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6998 with -Wno-format.
6999
eb9fe518
PA
70002013-05-10 Pedro Alves <palves@redhat.com>
7001
7002 * remote.c (_initialize_remote): Fix spelling of
7003 qXfer:traceframe-info:read packet in packet config command.
7004
9779ab84
PA
70052013-05-10 David Taylor <dtaylor@emc.com>
7006
7007 PR remote/15455
7008
7009 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7010 "QTro" at start of packet.
7011
060cfbef
JB
70122013-05-10 Joel Brobecker <brobecker@adacore.com>
7013
7014 * solib-aix.c (solib_aix_relocate_section_addresses):
7015 For the .bss section action, apply the same offset as
7016 the .data section.
7017
ab1c4e88
JB
70182013-05-10 Joel Brobecker <brobecker@adacore.com>
7019
7020 * solib-aix.c (solib_aix_relocate_section_addresses):
7021 Remove FIXME comment.
7022
c1357578
JB
70232013-05-10 Joel Brobecker <brobecker@adacore.com>
7024
7025 PR tdep/15420:
7026 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7027 New functions, directly copied from sparc-sol-thread.c.
7028 * sparc-sol-thread.c: Delete.
7029 * configure.ac: Remove code handling sparc-solaris-thread.c.
7030 * configure: Regenerate.
7031
1e611234
PM
70322013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7033
7034 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7035 filter logic.
7036 (backtrace_command): Add "no-filters" option parsing.
7037 (_initialize_stack): Alter help to reflect "no-filters" option.
7038 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7039 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7040 (py-frame.o): Add target
7041 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7042 filter files.
7043 * python/python.h: Add new frame filter constants, and flag enum.
7044 (apply_frame_filter): Add definition.
7045 * python/python.c (apply_frame_filter): New non-Python
7046 enabled function.
7047 * python/py-utils.c (py_xdecref): New function.
7048 (make_cleanup_py_xdecref): Ditto.
7049 * python/py-objfile.c: Declare frame_filters dictionary.
7050 (objfpy_dealloc): Add frame_filters dealloc.
7051 (objfpy_new): Initialize frame_filters attribute.
7052 (objfile_to_objfile_object): Ditto.
7053 (objfpy_get_frame_filters): New function.
7054 (objfpy_set_frame_filters): New function.
7055 * python/py-progspace.c: Declare frame_filters dictionary.
7056 (pspy_dealloc): Add frame_filters dealloc.
7057 (pspy_new): Initialize frame_filters attribute.
7058 (pspacee_to_pspace_object): Ditto.
7059 (pspy_get_frame_filters): New function.
7060 (pspy_set_frame_filters): New function.
7061 * python/py-framefilter.c: New file.
7062 * python/lib/gdb/command/frame_filters.py: New file.
7063 * python/lib/gdb/frames.py: New file.
7064 * python/lib/gdb/__init__.py: Initialize global frame_filters
7065 dictionary
7066 * python/lib/gdb/FrameDecorator.py: New file.
7067 * python/lib/gdb/FrameIterator.py: New file.
7068 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7069 * mi/mi-cmds.h: Declare.
7070 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7071 --no-frame-filter logic, and Python frame filter logic.
7072 (stack_enable_frame_filters): New function.
7073 (parse_no_frame_option): Ditto.
7074 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7075 filter logic.
7076 (mi_cmd_stack_list_locals): Ditto.
7077 (mi_cmd_stack_list_args): Ditto.
7078 (mi_cmd_stack_list_variables): Ditto.
7079 * NEWS: Add frame filter note.
7080
2cb9c859
DE
70812013-05-09 Doug Evans <dje@google.com>
7082
6bf667bb
DE
7083 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7084 All callers updated.
7085 (syms_from_objfile): Ditto. Make static.
7086 (symbol_file_add_with_addrs): Renamed from
7087 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7088 num_offsets. All callers updated.
7089 * symfile.h (syms_from_objfile): Delete.
7090
2cb9c859
DE
7091 * symfile.c (decrement_reading_symtab): Add assert.
7092 (increment_reading_symtab): Ditto.
7093
40aea477
JB
70942013-05-09 Joel Brobecker <brobecker@adacore.com>
7095
7096 * source.c (forward_search_command): Replace call to getc
7097 by call to fgetc.
7098 (reverse_search_command): Likewise.
7099
680d1742
DE
71002013-05-08 Doug Evans <dje@google.com>
7101
7102 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7103 matching test.
7104
17e760ae
JB
71052013-05-08 Joel Brobecker <brobecker@adacore.com>
7106
7107 * sol-thread.c (info_cb): Factorize the code a little.
7108
c0f5f490
JB
71092013-05-08 Joel Brobecker <brobecker@adacore.com>
7110
7111 * sol-thread.c (info_cb): Rework the output of the "maintenance
7112 info sol-threads" command a bit.
7113
5d74e061
JB
71142013-05-08 Joel Brobecker <brobecker@adacore.com>
7115
7116 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7117 Replace ti.ti_startfunc by ti.ti_pc.
7118
814a3ff7
JB
71192013-05-08 Joel Brobecker <brobecker@adacore.com>
7120
7121 * solib-aix.c (solib_aix_free_library_list): New function
7122 for the case where HAVE_LIBEXPAT is not defined.
7123
58ce7251
SDJ
71242013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7125
7126 PR breakpoints/15413:
7127 * breakpoint.c (condition_completer): Simplify the code to
7128 disconsider multiple locations of breakpoints when completing the
7129 "condition" command.
7130
be8b1ea6
PM
71312013-05-07 Pierre Muller <muller@sourceware.org>
7132
7133 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7134 instead of <sys/wait.h>.
7135
1e52bda6
PM
71362013-05-07 Pierre Muller <muller@sourceware.org>
7137
7138 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7139 trailing new line from warning message.
7140
27fd0c6b
PM
71412013-05-07 Pierre Muller <muller@sourceware.org>
7142
7143 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7144 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7145
e228ac87
JB
71462013-05-07 Joel Brobecker <brobecker@adacore.com>
7147
7148 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7149 error message (ARI fix).
7150
71512013-05-07 Joel Brobecker <brobecker@adacore.com>
7152
7153 * features/library-list-aix.dtd: Replace library-list by
7154 library-list-aix.
7155 * rs6000-nat.c: Replace library-list by library-list-aix
7156 throughout.
7157 * solib-aix.c: Likewise.
7158
71592013-05-07 Joel Brobecker <brobecker@adacore.com>
7160
7161 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7162 Renames TARGET_OBJECT_AIX_LIBRARIES.
7163 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7164 TARGET_OBJECT_LIBRARIES_AIX throughout.
7165 * solib-aix.c: Likwise.
7166
26a4dda9
YQ
71672013-05-07 Yao Qi <yao@codesourcery.com>
7168
7169 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7170 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7171
3582629f
YQ
71722013-05-07 Yao Qi <yao@codesourcery.com>
7173
7174 * solib-dsbt.c (enable_break): Declare.
7175 (dsbt_current_sos): Remove call to enable_break2.
7176 (enable_break2): Rename to enable_break. Set solib breakpoint
7177 on '_dl_debug_state'.
7178 (enable_break): Remove.
7179
aacbb8a5
LM
71802013-05-07 Luis Machado <lgustavo@codesourcery.com>
7181
7182 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7183 debug state prior to replicating existing hardware watchpoints or
7184 breakpoints.
7185
0c013353
JK
71862013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7187
7188 * gcore.c (gcore_create_callback): Ignore sections with
7189 separate_debug_objfile_backlink != NULL.
7190
a1217d97
SL
71912013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7192 Andrew Jenner <andrew@codesourcery.com>
7193 Chung-Lin Tang <cltang@codesourcery.com>
7194 Julian Brown <julian@codesourcery.com>
7195
7196 Based on the nios2-elf port from Altera Corporation.
7197
7198 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7199 nios2-linux-tdep.o.
7200 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7201 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7202 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7203 * nios2-tdep.h: New.
7204 * nios2-tdep.c: New.
7205 * nios2-linux-tdep.c: New.
7206 * features/Makefile (WHICH): Add nios2-linux.
7207 (nios2-linux-expedite): Set.
7208 * features/nios2-cpu.xml: New.
7209 * features/nios2.xml: New.
7210 * features/nios2-linux.xml: New.
7211 * features/nios2.c: New (autogenerated).
7212 * features/nios2-linux.c: New (autogenerated).
7213 * regformats/nios2-linux.dat: New (autogenerated).
7214 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7215 and commands.
7216
0892cb63
DE
72172013-05-06 Doug Evans <dje@google.com>
7218
3b7bacac
DE
7219 * symfile.c: Whitespace cleanup.
7220
0892cb63
DE
7221 * solist.h (struct target_so_ops): New member clear_so.
7222 * solib-svr4.c (svr4_clear_so): New function.
7223 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7224 * solib.c (clear_so): Renamed from free_so_symbols.
7225 All callers updated. Call target clear_so if it exists.
7226
40501e00
TT
72272013-05-06 Tom Tromey <tromey@redhat.com>
7228
7229 * ada-lang.c (ada_value_primitive_packed_val): Don't
7230 call value_incref.
7231 * value.c (set_value_parent): Incref the new parent and decref
7232 the old parent.
7233 (value_copy, value_primitive_field): Use set_value_parent.
7234
b6807d98
TT
72352013-05-06 Tom Tromey <tromey@redhat.com>
7236
7237 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7238 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7239 if needed.
7240 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7241 * dwarf2read.c (write_constant_as_bytes)
7242 (dwarf2_fetch_constant_bytes): New functions.
7243
3aef2284
TT
72442013-05-06 Tom Tromey <tromey@redhat.com>
7245
7246 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7247 parameters.
7248 (dwarf2_const_value_attr): Update.
7249
66f65e2b
TT
72502013-05-06 Tom Tromey <tromey@redhat.com>
7251
7252 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7253 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7254 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7255 Remove declaration.
7256
7919a973
TT
72572013-05-06 Tom Tromey <tromey@redhat.com>
7258
7259 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7260 objfile's obstack.
7261
a7bfba49
DE
72622013-05-06 Doug Evans <dje@google.com>
7263
3189cb12
DE
7264 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7265 * stabsread.h (process_one_symbol): Update declaration.
7266 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7267 * elfread.c (elf_symfile_relocate_probe): Ditto.
7268 * psymtab.c (relocate_psymtabs): Ditto.
7269 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7270 (objfile_relocate): Ditto.
7271 * objfiles.h (objfile_relocate): Update declaration.
7272 * symfile.c (relative_addr_info_to_section_offsets): Constify
7273 addrs parameter.
7274 (default_symfile_offsets): Ditto.
7275 (syms_from_objfile_1): Constify offsets parameter.
7276 (syms_from_objfile): Ditto.
7277 (symbol_file_add_with_addrs_or_offsets): Ditto.
7278 (symfile_map_offsets_to_segments): Constify data parameter.
7279 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7280 delta parameters of member relocate.
7281 (struct sym_probe_fns): Constify new_offsets,
7282 delta parameters of member sym_relocate_probe.
7283 (struct sym_fns): Constify section_addr_info parameter of member
7284 sym_offsets.
7285 (relative_addr_info_to_section_offsets): Update declaration.
7286 (default_symfile_offsets): Ditto.
7287 (syms_from_objfile): Ditto.
7288 (symfile_map_offsets_to_segments): Ditto.
7289
a7bfba49
DE
7290 * symfile.c (syms_from_objfile_1): Use correct section count when
7291 objfile->sf == NULL.
7292
5f8e0b8f
MF
72932013-05-06 Mike Frysinger <vapier@gentoo.org>
7294
7295 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7296
ea52d893
DE
72972013-05-06 Doug Evans <dje@google.com>
7298
7299 * psympriv.h (struct partial_symtab): Augment comment for member
7300 section_offsets.
7301
4d1eb6b4
JB
73022013-05-06 Joel Brobecker <brobecker@adacore.com>
7303
7304 Reimplement shared library support on ppc-aix...
7305 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7306 * features/library-list-aix.dtd: New file.
7307 * solib-aix.h, solib-aix.c: New file.
7308 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7309 (rs6000_find_toc_address_hook): Delete.
7310 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7311 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7312 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7313 "xml-utils.h".
7314 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7315 (vmap_symtab, fixup_breakpoints): Delete.
7316 (rs6000_xfer_shared_libraries): New function.
7317 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7318 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7319 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7320 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7321 (rs6000_xfer_shared_library): New function.
7322 (find_toc_address): Delete.
7323 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7324 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7325 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7326 before creating minimal symbol. Adjust function description
7327 accordingly.
7328 (scan_xcoff_symtab): Replace call to
7329 prim_record_minimal_symbol_and_info by call to
7330 record_minimal_symbol.
7331 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7332 around default_symfile_offsets.
7333 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7334 powerpc-aix targets.
7335 * config/rs6000/nm-rs6000.h: Delete.
7336 * config/powerpc/aix.mh (NAT_FILE): Delete.
7337 (NATDEPFILES): Remove xcoffsolib.o.
7338 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7339 (ALL_TARGET_OBS): Add solib-aix.o.
7340 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7341 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7342 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7343 * xcoffsolib.h, xcoffsolib.c: Delete.
7344
7345 * solib.c (reload_shared_libraries): Remove reference to
7346 SOLIB_CREATE_INFERIOR_HOOK.
7347 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7348 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7349 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7350 comment.
7351 * corelow.c (deprecated_core_resize_section_table): Delete.
7352 * exec.c: Remove include of xcoffsolib.h".
7353 (map_vmap, vmap): Delete.
7354 (exec_close_1): Remove references to vmap.
7355 (exec_file_attach): Remove vmap handling code, and reference
7356 to DEPRECATED_IBM6000_TARGET.
7357 (bfdsec_to_vmap): Delete.
7358 (exec_files_info): Remove block of code handling VMAP.
7359 * infcmd.c (post_create_inferior): Remove reference to
7360 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7361 * infrun.c (follow_exec): Remove reference to
7362 SOLIB_CREATE_INFERIOR_HOOK.
7363 * stack.c (print_frame): Remove reference to PC_SOLIB.
7364 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7365 (dsbt_relocate_main_executable): Likewise.
7366 * solib-frv.c (frv_current_sos): Likewise.
7367
0c4f667c
JB
73682013-05-06 Joel Brobecker <brobecker@adacore.com>
7369
7370 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7371 to target_write_memory and target_read_memory.
7372
726ce67c
JB
73732013-05-06 Joel Brobecker <brobecker@adacore.com>
7374
7375 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7376 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7377
c8c9911f
JB
73782013-05-06 Joel Brobecker <brobecker@adacore.com>
7379
7380 * darwin-nat.c: Replace all "%x" instances in format strings
7381 into "0x%x" throughout.
7382
fda184b6
JB
73832013-05-06 Joel Brobecker <brobecker@adacore.com>
7384
7385 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7386 gdb_assert by call to MACH_CHECK_ERROR.
7387 (darwin_attach_pid): Raise an error rather than a failed
7388 assertion when various system calls failed. Report a warning
7389 instead of raising a failed assertion when PREV_NOT is not NULL
7390 after call to mach_port_request_notification.
7391 (darwin_ptrace_me): Raise an error rather than a failed
7392 assertion when read returns nonzero.
7393
d1d69afb
JB
73942013-05-06 Joel Brobecker <brobecker@adacore.com>
7395
7396 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7397
dc90b24d
JK
73982013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7399
7400 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7401
faab9922
JK
74022013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7403
7404 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7405 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7406 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7407 a stale cleanup. Fix double free of NAME.
7408
e0ea48a0
EZ
74092013-05-04 Eli Zaretskii <eliz@gnu.org>
7410
7411 * windows-nat.c (windows_delete_thread): Accept an additional
7412 argument, the thread's exit code, and announce thread death when
7413 print_thread_events is non-zero and we are deleting a thread that
7414 is not the main thread.
7415 (get_windows_debug_event): Pass thread exit code to
7416 windows_delete_thread.
7417
83b2706a
KB
74182013-05-03 Kevin Buettner <kevinb@redhat.com>
7419
7420 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7421 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7422 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7423 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7424 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7425 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7426 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7427 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7428 (gdbarch_tdep): New struct.
7429 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7430 E_NUM_REGS.
7431 (v850e3v5_register_name): New function.
7432 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7433 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7434 code handling the struct return conventions for the RH850 ABI.
7435 Update all callers.
7436 (v850_eight_byte_align_p): New function.
7437 (v850_push_call_dummy): Push structs by value, not by reference
7438 for the RH850 ABI. Add support for eight byte alignment.
7439 (v850_dbtrap_breakpoint_from_pc): New function.
7440 (v850_gdbarch_init): Add ABI detection code. Register
7441 v850e3v5_register_name for the v850e3v5 architecture. Set the
7442 number of registers for v850e3v5. Register
7443 v850_dbtrap_breakpoint_from_pc as appropriate.
7444 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7445
d445b2f6
DE
74462013-05-03 Doug Evans <dje@google.com>
7447
7448 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7449 of bfd_count_sections.
7450 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7451 * symfile.c (default_symfile_offsets): Ditto.
7452 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7453 one entry, not bfd_count_sections entries.
7454
b3ce41ea
KB
74552013-05-03 Kevin Buettner <kevinb@redhat.com>
7456
7457 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7458 `save' and `restore' register groups. Don't include SPL
7459 or SPH in these groups.
7460 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7461 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7462 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7463 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7464 dwarf2_append_unwinders().
7465
96f7d3f1
PW
74662013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7467
7468 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7469 ignore SIGINT and SIGTRAP in case these internal signals are
7470 caught explicitely.
7471
b9dd1947
JB
74722013-05-01 Joel Brobecker <brobecker@adacore.com>
7473
7474 * darwin-nat.c (darwin_read_write_inferior): Change types
7475 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7476 of copy_count to "mach_msg_type_number_t".
7477 (darwin_read_dyld_info): Change type of parameter
7478 rdaddr to "gdb_byte *".
7479
4ca18a63
JB
74802013-05-01 Joel Brobecker <brobecker@adacore.com>
7481
7482 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7483 of &info->load_map from "char *" to "gdb_byte *".
7484
2b692d32
JB
74852013-05-01 Joel Brobecker <brobecker@adacore.com>
7486
7487 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7488 from "char *" to "gdb_byte *".
7489 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7490
a98c29a0
DE
74912013-04-30 Doug Evans <dje@google.com>
7492
6a506a2d
DE
7493 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7494 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7495 DWO stub. If DWO isn't found, just use stub.
7496 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7497
a98c29a0
DE
7498 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7499 calling init_cutu_and_read_dies.
7500
f92b06da
WT
75012013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7502
7503 * target-descriptions.c (maint_print_c_tdesc_cmd):
7504 Add case to parse structures as register types and
7505 bitfields.
7506
95eebdcc
WT
75072013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7508
7509 * MAINTAINERS (Write After Approval): Add myself to the list.
7510
019c1128
JB
75112013-04-30 Joel Brobecker <brobecker@adacore.com>
7512
7513 * sol-thread.c (rw_common): Change type of parameter "buf"
7514 to "gdb_byte *".
7515 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7516 rw_common to "gdb_byte *" instead of "char *".
7517
5812197c
JB
75182013-04-30 Joel Brobecker <brobecker@adacore.com>
7519
7520 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7521 of local variable msym to const struct bound_minimal_symbol.
7522 Adjust use accordingly.
7523 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7524
ecccb813
TS
75252013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7526
7527 * i386gnu-nat.c (CREG_OFFSET): New macro.
7528 (creg_offset): New array.
7529 (CREG_ADDR): Use creg_offset instead of reg_offset.
7530
f1d02dd4 75312013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7532
7533 * mep-tdep.c (mep_write_pc): Delete.
7534 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7535 Add call to set_gdbarch_pc_regnum.
7536
f1d02dd4 75372013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7538
7539 * common/filestuff.c: Replace #include <dirent.h> by
7540 #include "gdb_dirent.h".
7541
f1d02dd4 75422013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7543
7544 * common/filestuff.c: Replace #include <sys/stat.h> by
7545 #include "gdb_stat.h".
7546
b385a60d
PM
75472013-04-29 Pierre Muller <muller@sourceware.org>
7548
7549 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7550 editCase function rule.
7551 (get_DW_AT_signature_type): Likewise.
7552
d27b54ad
JB
75532013-04-29 Joel Brobecker <brobecker@adacore.com>
7554
7555 * m32r-tdep.c (m32r_write_pc): Delete.
7556 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7557 Add call to set_gdbarch_pc_regnum.
7558
47d21dc5
PM
75592013-04-29 Pierre Muller <muller@sourceware.org>
7560
7561 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7562
9056882e
JB
75632013-04-29 Joel Brobecker <brobecker@adacore.com>
7564
7565 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7566
7ee4732a
YQ
75672013-04-28 Yao Qi <yao@codesourcery.com>
7568
7569 * solib-dsbt.c (fetch_loadmap): Re-indent.
7570 (displacement_from_map, enable_break2): Likewise.
7571 (dsbt_relocate_section_addresses): Likewise.
7572
2260af53 75732013-04-26 Joel Brobecker <brobecker@adacore.com>
7574
7575 GDB 7.6 released.
7576
ff546935
TT
75772013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7578
7579 PR corefiles/14983:
7580 * dwarf2read.c (process_full_comp_unit): Always create a static
7581 block.
7582
40fb6c5e
HZ
75832013-04-25 Hui Zhu <hui@codesourcery.com>
7584
7585 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7586 to loc->cmd_bytecode.
7587
74e04d1c
DE
75882013-04-24 Doug Evans <dje@google.com>
7589
7590 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7591
3cf62c1d
KS
75922013-04-22 Keith Seitz <keiths@redhat.com>
7593
7594 * tracepoint.c (trace_save): Call the writer's start method.
7595
bf9e4d0c
MB
75962013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7597
7598 PR gdb/10462
7599 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7600 before argument.
7601
5d71132c
TT
76022013-04-23 Tom Tromey <tromey@redhat.com>
7603
7604 * common/filestuff.c: Check USE_WIN32API before including
7605 sys/socket.h.
7606 (HAVE_F_GETFD): New define.
7607 (mark_cloexec): Check HAVE_F_GETFD.
7608 (gdb_open_cloexec): Change 'mode' to unsigned long.
7609 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7610 (gdb_pipe_cloexec): Check HAVE_PIPE.
7611 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7612 long.
7613
a11cfd87
HZ
76142013-04-23 Hui Zhu <hui@codesourcery.com>
7615
7616 PR gdb/15293
a11cfd87
HZ
7617 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7618
2d9442cc
HZ
76192013-04-23 Hui Zhu <hui@codesourcery.com>
7620
7621 PR gdb/15165
2d9442cc
HZ
7622 * breakpoint.c (dprintf_print_recreate): New.
7623 (save_breakpoints): Let it not save dprintf commands.
7624 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7625
614c279d
TT
76262013-04-22 Tom Tromey <tromey@redhat.com>
7627
7628 PR gdb/7912:
7629 * Makefile.in (SFILES): Add filestuff.c
7630 (COMMON_OBS): Add filestuff.o.
7631 (filestuff.o): New target.
7632 * auto-load.c (auto_load_objfile_script_1): Use
7633 gdb_fopen_cloexec.
7634 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7635 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7636 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7637 * common/agent.c (gdb_connect_sync_socket): Use
7638 gdb_socket_cloexec.
7639 * common/filestuff.c: New file.
7640 * common/filestuff.h: New file.
7641 * common/linux-osdata.c (linux_common_core_of_thread)
7642 (command_from_pid, commandline_from_pid, print_source_lines)
7643 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7644 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7645 gdb_fopen_cloexec.
7646 * common/linux-procfs.c (linux_proc_get_int)
7647 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7648 * config.in, configure: Rebuild.
7649 * configure.ac: Don't check for sys/socket.h. Check for
7650 fdwalk, pipe2.
7651 * corelow.c (core_open): Use gdb_open_cloexec.
7652 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7653 * fork-child.c (fork_inferior): Call close_most_fds.
7654 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7655 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7656 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7657 Use gdb_fopen_cloexec.
7658 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7659 gdb_open_cloexec.
7660 (linux_async_pipe): Use gdb_pipe_cloexec.
7661 * remote-fileio.c (remote_fileio_func_open): Use
7662 gdb_open_cloexec.
7663 * remote.c (remote_file_put, remote_file_get): Use
7664 gdb_fopen_cloexec.
7665 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7666 close_most_fds.
7667 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7668 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7669 * solib.c (solib_find): Use gdb_open_cloexec.
7670 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7671 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7672 (tfile_open): Use gdb_open_cloexec.
7673 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7674 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7675 * xml-support.c (xml_fetch_content_from_file): Use
7676 gdb_fopen_cloexec.
7677 * main.c (captured_main): Call notice_open_fds.
7678
5fda2332
EBM
76792013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7680
7681 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7682 'char *' to 'gdb_byte *'.
7683 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7684 'gdb_byte'.
7685
eb6c553b
YQ
76862013-04-22 Yao Qi <yao@codesourcery.com>
7687
7688 * infrun.c: Fix typo in comment.
7689
9991b207
SDJ
76902013-04-22 Andrew Haley <aph@redhat.com>
7691
7692 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7693 instead of "long".
7694
8b4833e3
YQ
76952013-04-20 Yao Qi <yao@codesourcery.com>
7696
7697 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7698 'char *' to 'gdb_byte *'. Cast the return value of
7699 'bt_ctf_get_char_array' to 'gdb_byte *'.
7700
bd3f3b55
PA
77012013-04-19 Pedro Alves <palves@redhat.com>
7702
7703 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7704 -Wpointer-sign.
7705 * configure: Regenerate.
7706
c49e7f76
PA
77072013-04-19 Pedro Alves <palves@redhat.com>
7708
7709 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7710 'void *'.
7711
12ff8552
PA
77122013-04-19 Pedro Alves <palves@redhat.com>
7713
7714 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7715 Change type of 'myaddr' parameter to gdb_byte pointer.
7716 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7717 to 'long long' pointer instead of to 'unsigned long long'.
7718 (monitor_write_memory_block, monitor_read_memory_single)
7719 (monitor_read_memory): Change type of 'myaddr' parameter to
7720 gdb_byte pointer.
7721
9c37696b
PA
77222013-04-19 Pedro Alves <palves@redhat.com>
7723
7724 * record.c (validate_history_size): Make parameter 'setting'
7725 unsigned.
7726
a398505b
PA
77272013-04-19 Pedro Alves <palves@redhat.com>
7728
7729 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7730 to 'gdb_byte *'.
7731
9f8afa72
PA
77322013-04-19 Pedro Alves <palves@redhat.com>
7733
7734 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7735 local to int.
7736
c714b426
PA
77372013-04-19 Pedro Alves <palves@redhat.com>
7738
7739 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7740 * ada-tasks.c (read_fat_string_value): Likewise.
7741
507a579c
PA
77422013-04-19 Pedro Alves <palves@redhat.com>
7743
7744 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7745 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7746 'offset', and adjust.
7747
f9d83a0b
PA
77482013-04-19 Pedro Alves <palves@redhat.com>
7749
7750 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7751 (read_index_from_section): Add cast to 'char *'.
7752
745eb4fd
PA
77532013-04-19 Pedro Alves <palves@redhat.com>
7754
7755 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7756
db5be46f
PA
77572013-04-19 Pedro Alves <palves@redhat.com>
7758
7759 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7760
0f928d68
PA
77612013-04-19 Pedro Alves <palves@redhat.com>
7762
7763 * record-full.c (record_full_get_bookmark): Change local 'ret'
7764 type to char * and add cast to gdb_byte *.
7765 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7766 string.
7767 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7768
89f6d837
PA
77692013-04-19 Pedro Alves <palves@redhat.com>
7770
7771 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7772 * python/py-prettyprint.c (print_string_repr): Change type of
7773 'output' local to char *. Add cast to gdb_byte * in
7774 LA_PRINT_STRING call.
7775 (print_children): Change type of 'output' local to char *.
7776 * python/py-value.c (valpy_string): Add cast to const char * in
7777 PyUnicode_Decode call.
7778
ce6ec7d8
PA
77792013-04-19 Pedro Alves <palves@redhat.com>
7780
7781 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7782 and change its type to 'const char *'. Adjust.
7783 (mips_send_packet): Add cast to 'char *', and remove cast to
7784 'unsigned char *'.
7785 (mips_receive_packet): Remove cast to 'unsigned char *'.
7786 (mips_load_srec): Use bfd_byte.
7787 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7788 (pmon_checkset): Make 'value' parameter unsigned.
7789
fda0389f
PA
77902013-04-19 Pedro Alves <palves@redhat.com>
7791
7792 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7793
bc20a4af
PA
77942013-04-19 Pedro Alves <palves@redhat.com>
7795
7796 * remote.c (remote_write_bytes_aux, compare_sections_command)
7797 (remote_read_qxfer)
7798 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7799 (remote_hostio_readlink, remote_bfd_iovec_pread)
7800 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7801 binary buffer, and char when buffer is used as string.
7802 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7803 (trace_save, tfile_open, traceframe_walk_blocks)
7804 (tfile_fetch_registers): Likewise.
7805
c628b528
PA
78062013-04-19 Pedro Alves <palves@redhat.com>
7807
7808 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7809 buffer and size_t size. Adjust.
7810 * ser-base.h (ser_base_write): Adjust.
7811 * ser-go32.c (cnts): Change type to size_t.
7812 (dos_write): Change prototype -- take 'void *'
7813 buffer and size_t size. Adjust.
7814 (dos_info): Print elements of 'cnts' as unsigned long.
7815 * serial.c (serial_write): Likewise.
7816 * serial.h (serial_write): Adjust.
7817 (struct serial_ops) <write>: Change prototype -- take 'void *'
7818 buffer and size_t size. Adjust.
7819
51a5cd90
PA
78202013-04-19 Pedro Alves <palves@redhat.com>
7821
7822 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7823 gdb_byte *.
7824 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7825
a9933661
PA
78262013-04-19 Pedro Alves <palves@redhat.com>
7827
7828 * alpha-tdep.c (alpha_extract_return_value): Use
7829 regcache_cooked_read_unsigned to read 'v0'.
7830
19afdd07
PA
78312013-04-19 Pedro Alves <palves@redhat.com>
7832
7833 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7834 parameters 'at', 'as' and 'offset' to uint32_t.
7835
96b32e50
PA
78362013-04-19 Pedro Alves <palves@redhat.com>
7837
7838 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7839 'is64' to signed 'int'.
7840
eb1bd1fb
PA
78412013-04-19 Pedro Alves <palves@redhat.com>
7842
7843 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7844 parameter to int *.
7845
463920bf
PA
78462013-04-19 Pedro Alves <palves@redhat.com>
7847
7848 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7849 'insnbuf' buffer type to unsigned int[].
7850
70242eb1
PA
78512013-04-19 Pedro Alves <palves@redhat.com>
7852
7853 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7854
9d1dd0e2
PA
78552013-04-19 Pedro Alves <palves@redhat.com>
7856
7857 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7858 unsigned long *.
7859
44096aee
PA
78602013-04-19 Pedro Alves <palves@redhat.com>
7861
7862 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7863 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7864 UINT_MAX.
7865 * mips-tdep.c (heuristic_fence_post): Change type to int.
7866 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7867
e4286e57
PA
78682013-04-19 Pedro Alves <palves@redhat.com>
7869
7870 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7871 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7872 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7873
001f13d8
PA
78742013-04-19 Pedro Alves <palves@redhat.com>
7875
7876 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7877 it to get a string view of the byte buffer.
7878 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7879 type to gdb_byte *. Adjust.
7880 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7881 Change local to char *.
7882 * solib-darwin.c (find_program_interpreter): Change return type to
7883 char *. Adjust.
7884 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7885 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7886 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7887 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7888 * solib-svr4.c (find_program_interpreter): Change return type to
7889 char *. Adjust.
7890 (enable_break): Change local 'interp_name' to char *.
7891 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7892 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7893 (spu_pseudo_register_write_spu): Use char for string buffer.
7894 Adjust.
7895 (info_spu_event_command, info_spu_signal_command): Add casts to
7896 'char *'.
7897
948f8e3d
PA
78982013-04-19 Pedro Alves <palves@redhat.com>
7899
7900 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7901 gdb_byte[].
7902 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7903 * ada-lang.c (ada_value_assign): Use gdb_byte.
7904 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7905 (alphanbsd_sigtramp_offset): Use gdb_byte.
7906 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7907 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7908 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7909 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7910 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7911 * arm-tdep.c (arm_stub_unwind_sniffer)
7912 (arm_displaced_init_closure): Use gdb_byte.
7913 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7914 (arm_default_thumb_le_breakpoint)
7915 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7916 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7917 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7918 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7919 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7920 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7921 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7922 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7923 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7924 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7925 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7926 (cris_store_return_value, cris_extract_return_value): Use
7927 gdb_byte.
7928 (constraint): Change type of parameter to char * from signed
7929 char*. Use gdb_byte.
7930 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7931 of local buffer to gdb_byte *.
7932 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7933 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7934 (add_address_entry): Change type of local buffer to gdb_byte[].
7935 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7936 (frv_push_dummy_call): Use gdb_byte.
7937 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7938 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7939 (hppa_hpux_supply_save_state): Use gdb_byte.
7940 * hppa-tdep.c (hppa32_push_dummy_call)
7941 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7942 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7943 (slotN_contents, replace_slotN_contents): Change type of parameter
7944 to gdb_byte *.
7945 (fetch_instruction, ia64_pseudo_register_write)
7946 (ia64_register_to_value, ia64_value_to_register)
7947 (ia64_extract_return_value, ia64_store_return_value)
7948 (ia64_push_dummy_call): Use gdb_byte.
7949 * m32c-tdep.c (m32c_return_value): Remove cast.
7950 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7951 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7952 gdb_byte.
7953 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7954 * mn10300-tdep.c (mn10300_store_return_value)
7955 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7956 gdb_byte.
7957 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7958 (moxie_process_record): Remove casts.
7959 * ppc-ravenscar-thread.c (supply_register_at_address)
7960 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7961 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7962 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7963 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7964 * remote.c (compare_sections_command): Use gdb_byte.
7965 * score-tdep.c (score7_free_memblock): Change type of parameter to
7966 gdb_byte *.
7967 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7968 gdb_byte *. Use gdb_byte.
7969 (sh_push_dummy_call_fpu): Use gdb_byte.
7970 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7971 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7972 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7973 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7974 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7975 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7976 (sh64_store_return_value, sh64_register_convert_to_virtual):
7977 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7978 (sh64_pseudo_register_write): Use gdb_byte.
7979 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7980 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7981 buffer.
7982 (irix_current_sos): Use gdb_byte.
7983 * solib-som.c (som_current_sos): Use gdb_byte.
7984 * sparc-ravenscar-thread.c (supply_register_at_address)
7985 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7986 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7987 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7988 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7989 'gdb_byte *'.
7990 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7991 'gdb_byte *'.
7992 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7993 * xstormy16-tdep.c (xstormy16_extract_return_value)
7994 (xstormy16_store_return_value): Change parameter type to
7995 'gdb_byte *'. Adjust.
7996 (xstormy16_push_dummy_call): Use gdb_byte.
7997 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7998 (call0_analyze_prologue, execute_code): Use gdb_byte.
7999
433730c9
PA
80002013-04-19 Vladimir Kargov <kargov@gmail.com>
8001 Pedro Alves <palves@redhat.com>
8002
8003 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8004 value contents.
8005
ac9ec31b
DE
80062013-04-17 Doug Evans <dje@google.com>
8007
8008 * dwarf2read.c (struct signatured_type): New member type.
8009 (struct attribute): Replace member signatured_type with signature.
8010 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8011 (read_call_site_scope): Call follow_die_ref instead of
8012 follow_die_ref_or_sig.
8013 (read_structure_type): Rewrite handling of signatured types.
8014 (read_enumeration_type): Ditto.
8015 (read_attribute_value): Update.
8016 (build_error_marker_type): New function.
8017 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8018 Don't call error for bad types, just build an error marker type.
8019 (dump_die_shallow): Update.
8020 (follow_die_sig_1): Renamed from follow_die_sig.
8021 Don't call error for bad types, instead return NULL.
8022 (follow_die_sig): New function.
8023 (get_signatured_type, get_DW_AT_signature_type): New functions.
8024
e546e8bb
YZ
80252013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8026
8027 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8028 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8029 function.
e546e8bb 8030
ab116149
YQ
80312013-04-17 Yao Qi <yao@codesourcery.com>
8032
8033 * top.c (print_gdb_configuration): Print configure-time
8034 parameter on using libbabeltrace or not.
8035
488a42b8
PA
80362013-04-16 Pedro Alves <palves@redhat.com>
8037
8038 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8039
f5fb825b
PA
80402013-04-16 Pedro Alves <palves@redhat.com>
8041
85d494ea 8042 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8043 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8044
e1154999
PA
80452013-04-16 Pedro Alves <palves@redhat.com>
8046
8047 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8048 * common/glibc_thread_db.h: ... this new file ...
8049 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8050
e3b50a7f
PA
80512013-04-16 Will Newton <will.newton@gmail.com>
8052 Pedro Alves <palves@redhat.com>
8053
8054 PR build/11881
8055
8056 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8057 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8058 HAVE_THREAD_DB_H.
8059
1c2e4450
PA
80602013-04-16 Pedro Alves <palves@redhat.com>
8061 Eli Zaretskii <eliz@gnu.org>
8062
8063 * NEWS: Mention "set foo unlimited".
8064
4031ecc5
DE
80652013-04-15 Doug Evans <dje@google.com>
8066
19c3d4c9
DE
8067 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8068 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8069 (create_dwo_cu_reader): Renamed from
8070 create_dwo_debug_info_hash_table_reader.
8071 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8072 Remove support for multiple CUs in a DWO file.
8073 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8074
4031ecc5
DE
8075 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8076 instead of phex.
8077 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8078 (create_dwo_in_dwp): Ditto.
8079
b340913d
TT
80802013-04-15 Tom Tromey <tromey@redhat.com>
8081
8082 * NEWS: Move recent entries into "since 7.6" section.
8083
cc16e6c9
TT
80842013-04-15 Tom Tromey <tromey@redhat.com>
8085
8086 PR c++/13588:
8087 * NEWS: Update.
8088 * break-catch-throw.c (struct exception_catchpoint)
8089 <exception_rx, pattern>: New fields.
8090 (fetch_probe_arguments, dtor_exception_catchpoint)
8091 (check_status_exception_catchpoint)
8092 (print_one_detail_exception_catchpoint): New functions.
8093 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8094 Compile regular expression if needed.
8095 (extract_exception_regexp): New function.
8096 (catch_exception_command_1): Use extract_exception_regexp.
8097 (compute_exception): Use fetch_probe_arguments.
8098 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8099 and check_status fields.
8100 * cp-abi.c (cplus_typename_from_type_info): New function.
8101 * cp-abi.h (cplus_typename_from_type_info): Declare.
8102 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8103 * gdb_regex.h (compile_rx_or_error): Declare.
8104 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8105 comment.
8106 (init_gnuv3_ops): Set get_type_from_type_info field.
8107 * probe.c (compile_rx_or_error): Move...
8108 * utils.c (compile_rx_or_error): ... here.
8109
72f1fe8a
TT
81102013-04-15 Tom Tromey <tromey@redhat.com>
8111
8112 PR c++/15176:
8113 * NEWS: Update.
8114 * break-catch-throw.c (compute_exception): New function.
8115 (exception_funcs): New global.
8116 (_initialize_break_catch_throw): Create $_exception.
8117 * cp-abi.c (cplus_type_from_type_info): New function.
8118 * cp-abi.h (cplus_type_from_type_info): Declare.
8119 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8120 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8121 (gnuv3_get_type_from_type_info): New functions.
8122 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8123
fc4746a2
TT
81242013-04-15 Tom Tromey <tromey@redhat.com>
8125
8126 * break-catch-throw.c (struct exception_names): New.
8127 (exception_functions): Change type.
8128 (re_set_exception_catchpoint): Look for SDT probes.
8129
15a73f56
TT
81302013-04-15 Tom Tromey <tromey@redhat.com>
8131
8132 PR c++/10119:
8133 * break-catch-throw.c (exception_functions): New global.
8134 (gnu_v3_exception_catchpoint_ops): Move earlier.
8135 (struct exception_catchpoint): New.
8136 (classify_exception_breakpoint): Rewrite.
8137 (re_set_exception_catchpoint): New function.
8138 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8139 Allocate a struct exception_catchpoint.
8140 (catch_exception_command_1): Update.
8141 (initialize_throw_catchpoint_ops): Set 're_set' method.
8142
916703c0
TT
81432013-04-15 Tom Tromey <tromey@redhat.com>
8144
8145 * Makefile.in (SFILES): Add break-catch-throw.c
8146 (COMMON_OBS): Add break-catch-throw.o.
8147 * break-catch-throw.c: New file.
8148 * breakpoint.c: Move exception-catching code to new file.
8149 (ep_parse_optional_if_clause): No longer static.
8150 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8151
6e72ca20
TT
81522013-04-15 Tom Tromey <tromey@redhat.com>
8153
8154 PR c++/9065:
8155 * NEWS: Update.
8156 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8157 * c-exp.y (TYPEID): New token.
8158 (exp): Add new TYPEID productions.
8159 (ident_tokens): Add "typeid".
8160 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8161 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8162 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8163 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8164 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8165 case.
8166 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8167 (build_std_type_info_type, gnuv3_get_typeid_type)
8168 (gnuv3_get_typeid): New functions.
8169 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8170 new fields on ABI object.
8171 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8172 * std-operator.def (OP_TYPEID): New.
8173
715c6909
TT
81742013-04-15 Tom Tromey <tromey@redhat.com>
8175
8176 * elfread.c (elf_symtab_read): Install versioned symbol under
8177 unversioned name as well.
8178
8de20a37
TT
81792013-04-15 Tom Tromey <tromey@redhat.com>
8180
8181 PR c++/11990:
8182 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8183 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8184 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8185 (gdb_demangle): New function.
8186 * cp-support.h (gdb_demangle): Declare.
8187 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8188 (dwarf2_name): Use gdb_demangle.
8189 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8190 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8191 suffixes from name.
8192 (gnuv3_print_method_ptr): Use gdb_demangle.
8193 * jv-lang.c (java_demangle): Use gdb_demangle.
8194 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8195 * language.c (unk_lang_demangle): Use gdb_demangle.
8196 * symtab.c (symbol_find_demangled_name)
8197 (demangle_for_lookup): Use gdb_demangle.
8198
591f19e8
TT
81992013-04-15 Tom Tromey <tromey@redhat.com>
8200
8201 PR c++/12824:
8202 * NEWS: Update.
8203 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8204 New constant.
8205 (classify_exception_breakpoint): New function.
8206 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8207 (print_mention_exception_catchpoint)
8208 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8209 (catch_exception_command_1): Handle "rethrow" catchpoint.
8210 (catch_rethrow_command): New function.
8211 (_initialize_breakpoint): Add "catch rethrow" command.
8212
4d40cad2
PM
82132013-04-15 Pierre Muller <muller@sourceware.org>
8214
8215 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8216 set_gdbarch_write_pc as deprecated anymore.
8217
30bcb456
JB
82182013-04-15 Joel Brobecker <brobecker@adacore.com>
8219
8220 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8221 declarations.
8222
da9160e4
YQ
82232013-04-13 Yao Qi <yao@codesourcery.com>
8224
8225 * ctf.c (_initialize_ctf): Include "completer.h".
8226 Call add_target_with_completer instead of add_target.
8227
39ed5604
JK
82282013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8229
8230 Fix GDB regression related to PR binutils/14813.
8231 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8232 * minidebug.c (lzma_close): Add return value comment.
8233 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8234 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8235 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8236
82372013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8238
8239 * config.in: Regenerate.
8240
d521ce57
TT
82412013-04-12 Tom Tromey <tromey@redhat.com>
8242
8243 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8244 const.
8245 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8246 (struct die_reader_specs) <buffer>: Likewise.
8247 (die_reader_func_ftype): Make 'info_ptr' const.
8248 (struct line_header) <include_dirs, statement_program_start,
8249 statement_program_end>: Now const.
8250 (struct file_entry) <name>: Likewise.
8251 (struct partial_die_info) <sibling>: Likewise.
8252 (struct dwarf_block) <data>: Likewise.
8253 (dwarf2_read_section): Remove cast.
8254 (dwarf2_get_section_info): Make 'bufp' const.
8255 (read_index_from_section): Constify.
8256 (dw2_get_file_names_reader): Make 'info_ptr' const.
8257 (dw2_get_primary_filename_reader): Likewise.
8258 (read_comp_unit_head): Make 'info_ptr' and return type const.
8259 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8260 Likewise.
8261 (read_abbrev_offset): Constify.
8262 (dwarf2_create_include_psymtab): Make 'name' const.
8263 (create_debug_types_hash_table): Update.
8264 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8265 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8266 Constify.
8267 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8268 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8269 (read_comp_units_from_section): Constify.
8270 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8271 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8272 const.
8273 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8274 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8275 (create_dwp_hash_table, dwarf2_ranges_read)
8276 (dwarf2_record_block_ranges): Constify.
8277 (read_die_and_children, read_die_and_siblings_1)
8278 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8279 const.
8280 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8281 (abbrev_table_read_table): Constify.
8282 (load_partial_dies): Make 'info_ptr' const.
8283 (read_partial_die, read_attribute_value, read_attribute): Make
8284 'info_ptr' and return type const.
8285 (read_address, read_initial_length)
8286 (read_checked_initial_length_and_offset, read_offset)
8287 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8288 const.
8289 (read_direct_string): Make 'buf' and return type const.
8290 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8291 (read_indirect_string): Make return type const.
8292 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8293 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8294 'info_ptr' const.
8295 (read_str_index): Make return type const.
8296 (add_include_dir): Make 'include_dir' const.
8297 (add_file_name): Make 'name' const.
8298 (dwarf_decode_line_header): Constify.
8299 (psymtab_include_file_name): Make return type const.
8300 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8301 (dwarf2_start_subfile): Make 'filename' const.
8302 (dwarf2_const_value_attr): Make 'bytes' const.
8303 (read_signatured_type_reader): Make 'info_ptr' const.
8304 (decode_locdesc): Constify.
8305 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8306 const.
8307 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8308 'mac_end', and return type const.
8309 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8310 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8311 type const.
8312 (per_cu_header_read_in): Constify.
8313 * symfile.h (dwarf2_get_section_info): Update.
8314
d47a1bc1
TT
83152013-04-12 Tom Tromey <tromey@redhat.com>
8316
8317 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8318
6eaaf48b
EZ
83192013-04-12 Eli Zaretskii <eliz@gnu.org>
8320
fc4c25bf 8321 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8322 * top.c (print_gdb_configuration): New function, displays the
8323 details about GDB configure-time parameters.
8324 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8325 * cli/cli-cmds.c (show_configuration): New function.
8326 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8327 * main.c (captured_main) <print_configuration>: New static var.
8328 <long_options>: Use it.
8329 If --configuration was given, call print_gdb_configuration.
8330
b292c783
JK
83312013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8332 Pedro Alves <palves@redhat.com>
8333
8334 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8335 (generated_files): Add gcore.
8336 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8337 HAVE_NATIVE_GCORE_HOST.
8338 (gcore): New.
8339 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8340 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8341 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8342 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8343 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8344 Add HAVE_NATIVE_GCORE_HOST.
8345 * configure: Regenerate.
8346 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8347 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8348 AC_CONFIG_FILES for gcore.
8349 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8350 gdb_have_gcore.
8351 * gdb_gcore.sh: Rename to ...
8352 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8353 and GCORE_TRANSFORM_NAME substitutions.
8354
c96b3c4f
JK
8355 Fix parsing tabs in ${gdb_target_obs}.
8356 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8357
d6cb50a2
JK
83582013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8359
8360 * remote.c (unpush_and_perror): Add output message final dot.
8361
cf2cb5ec
YQ
83622013-04-11 Yao Qi <yao@codesourcery.com>
8363
8364 * tracepoint.c (tfile_interp_line): Fit parameters line and
8365 utpp in one line.
8366
07293be4
JB
83672013-04-10 Joel Brobecker <brobecker@adacore.com>
8368
8369 * solib.c (solib_map_sections): Remove code overwriting
8370 SO->SO_NAME with the bfd's filename.
8371
f81d1120
PA
83722013-04-10 Pedro Alves <palves@redhat.com>
8373
8374 * cli/cli-decode.c (integer_unlimited_completer): New function.
8375 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8376 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8377 completer.
8378 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8379 (is_unlimited_literal): New function.
8380 (do_set_command): Handle literal "unlimited" arguments.
8381 * frame.c (_initialize_frame) <set backtrace limit>: Document
8382 "unlimited".
8383 * printcmd.c (_initialize_printcmd) <set print
8384 max-symbolic-offset>: Add help text.
8385 * record-full.c (_initialize_record_full) <set record full
8386 insn-number-max>: Likewise.
8387 * record.c (_initialize_record) <set record
8388 instruction-history-size, set record function-call-history-size>:
8389 Add help text.
8390 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8391 help text.
8392 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8393 Likewise.
8394 * source.c (_initialize_source) <set listsize>: Add help text.
8395 * utils.c (initialize_utils) <set height, set width>: Likewise.
8396 <set pagination>: Mention "set height unlimited".
8397 * valprint.c (_initialize_valprint) <set print elements, set print
8398 repeats>: Document "unlimited".
8399
2f9d54cf
PA
84002013-04-10 Pedro Alves <palves@redhat.com>
8401
8402 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8403 instead of disconnect_tracing.
8404 * infcmd.c (detach_command, disconnect_command): Call
8405 query_if_trace_running. Adjust.
8406 * top.c: Include "tracepoint.h".
8407 (quit_target): Delete. Contents moved ...
8408 (quit_force): ... here. Wrap each stage of teardown in
8409 TRY_CATCH. Call disconnect_tracing before detaching.
8410
393fd4c3
YQ
84112013-04-10 Hui Zhu <hui@codesourcery.com>
8412 Yao Qi <yao@codesourcery.com>
8413
8414 * configure.ac: Check libbabeltrace is installed.
8415 * config.in: Regenerate.
8416 * configure: Regenerate.
8417 * Makefile.in (LIBBABELTRACE): New.
8418 (CLIBS): Add LIBBABELTRACE.
8419 * ctf.c: Include "exec.h".
8420 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8421 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8422 (ctf_save_metadata_header): Define new type aliases in
8423 metadata.
8424 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8425 in metadata. Start a new faked packet for trace status.
8426 (ctf_write_status): Write trace status to CTF.
8427 (ctf_write_uploaded_tsv): Write TSV to CTF.
8428 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8429 (ctf_write_definition_end): End the faked packet.
8430
8431 (ctx, ctf_iter, trace_dirname): New.
8432 (start_pos): New variable.
8433 (ctf_destroy, ctf_open_dir, ctf_open): New.
8434 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8435 macros.
8436 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8437 (ctf_fetch_registers, ctf_xfer_partial): New.
8438 (ctf_get_trace_state_variable_value): New.
8439 (ctf_get_tpnum_from_frame_event): New.
8440 (ctf_get_traceframe_address): New.
8441 (ctf_trace_find, ctf_has_stack): New.
8442 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8443 (ctf_get_trace_status, ctf_read_status): New.
8444 (_initialize_ctf): New.
8445 * tracepoint.c (get_tracepoint_number): New
8446 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8447 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8448 * tracepoint.h: ... here.
8449 (get_tracepoint_number): Declare it.
8450 (get_uploaded_tsv): Declare it.
8451
8452 * NEWS: Mention new configure option.
8453
5c2b4418
HZ
84542013-04-10 Pedro Alves <palves@redhat.com>
8455 Hui Zhu <hui@codesourcery.com>
8456
8457 * breakpoint.c (dprintf_re_set): New.
8458 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8459 to dprintf_re_set.
8460
a5c66735
JB
84612013-04-09 Joel Brobecker <brobecker@adacore.com>
8462
8463 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8464 Remove solib-svr4.o from the list.
8465
9e77999c
JB
84662013-04-09 Joel Brobecker <brobecker@adacore.com>
8467
8468 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8469 Use gdb_assert_not_reached instead of invalid boolean expression.
8470
1927e618
PA
84712013-04-09 Pedro Alves <palves@redhat.com>
8472
8473 * remote.c (unpush_and_perror): New function.
8474 (readchar, remote_serial_write): Use it.
8475
10782d74
MM
84762013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8477
8478 * NEWS: Mention new btrace RSP packets.
8479
4c8429ef
TT
84802013-04-08 Tom Tromey <tromey@redhat.com>
8481
8482 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8483 long.
8484
8625fc1b
TT
84852013-04-08 Tom Tromey <tromey@redhat.com>
8486
8487 * maint.c (print_bfd_section_info): Print the section index.
8488 * symmisc.c (dump_msymbols): Print the section index.
8489
e27d198c
TT
84902013-04-08 Tom Tromey <tromey@redhat.com>
8491
8492 PR symtab/8424:
8493 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8494 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8495 * breakpoint.c (resolve_sal_pc): Update.
8496 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8497 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8498 (minsym_lookup_iterator_cb): Use it.
8499 (default_read_var_value): Update.
8500 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8501 Update.
8502 * infcmd.c (jump_command): Update.
8503 * linespec.c (minsym_found): Update.
8504 * maint.c (maintenance_translate_address): Update.
8505 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8506 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8507 * parse.c (write_exp_msymbol): Update.
8508 * printcmd.c (address_info): Update.
8509 * psymtab.c (find_pc_sect_psymbol): Update.
8510 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8511 SYMBOL_OBJ_SECTION.
8512 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8513 Don't initialize SYMBOL_OBJ_SECTION.
8514 * spu-tdep.c (spu_catch_start): Update.
8515 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8516 * symmisc.c (dump_msymbols, print_symbol): Update.
8517 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8518 how fallback section is computed.
8519 (fixup_symbol_section): Update.
8520 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8521 Update.
8522 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8523 Initialize SYMBOL_SECTION.
8524 * symtab.h (struct general_symbol_info) <section>: Update comment.
8525 <obj_section>: Remove.
8526 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8527 (SYMBOL_OBJFILE): New macro.
8528
e6dc44a8
TT
85292013-04-08 Tom Tromey <tromey@redhat.com>
8530
8531 * coffread.c (record_minimal_symbol): Update.
8532 * dbxread.c (record_minimal_symbol): Update.
8533 * elfread.c (record_minimal_symbol): Update.
8534 * machoread.c (macho_symtab_add_minsym): Update.
8535 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8536 Update.
8537 * minsyms.c (prim_record_minimal_symbol): Update.
8538 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8539 argument.
8540 (prim_record_minimal_symbol_and_info): Likewise.
8541 * minsyms.h (prim_record_minimal_symbol_full)
8542 (prim_record_minimal_symbol_and_info): Update.
8543 * symtab.c (allocate_symbol, initialize_symbol)
8544 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8545 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8546 Update.
8547
36192a8d
TT
85482013-04-08 Tom Tromey <tromey@redhat.com>
8549
8550 PR symtab/8423:
8551 * solib-som.c (som_solib_section_offsets): Use BFD section
8552 indices. Set offsets for all sections.
8553 * somread.c (som_symtab_read): Compute BFD section for
8554 symbol. Use prim_record_minimal_symbol_and_info.
8555 (som_symfile_read): Fix comment.
8556 (struct find_section_offset_arg): New.
8557 (find_section_offset, set_section_index): New functions.
8558 (som_symfile_offsets): Use set_section_index to compute
8559 section indices.
8560
65cf3563
TT
85612013-04-08 Tom Tromey <tromey@redhat.com>
8562
8563 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8564 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8565 gdb_bfd_section_index.
8566 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8567 New functions.
8568 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8569 Declare.
8570 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8571 Update.
8572 * objfiles.c (add_to_objfile_sections_full): New function.
8573 (add_to_objfile_sections): Use it.
8574 (build_section_table): Rewrite.
8575 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8576 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8577 (struct objfile) <sections>: Update comment.
8578 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8579 is NULL.
8580 (ALL_OBJSECTIONS): Use it.
8581 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8582 * solib-frv.c (frv_relocate_main_executable): Update.
8583 * solib-target.c (solib_target_relocate_section_addresses):
8584 Use gdb_bfd_section_index.
8585 * symfile.c (build_section_addr_info_from_section_table):
8586 Use gdb_bfd_section_index.
8587 (build_section_addr_info_from_bfd, place_section): Likewise.
8588 * symtab.c (fixup_section): Update.
8589 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8590
7cbd4a93
TT
85912013-04-08 Tom Tromey <tromey@redhat.com>
8592
8593 * minsyms.h (struct bound_minimal_symbol): New.
8594 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8595 Remove objfile argument.
8596 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8597 Return bound_minimal_symbol.
8598 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8599 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8600 Return bound_minimal_symbol.
8601 (in_gnu_ifunc_stub): Update.
8602 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8603 Remove 'objfile_p' argument.
8604 (lookup_solib_trampoline_symbol_by_pc): Update.
8605 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8606 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8607 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8608 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8609 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8610 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8611 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8612 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8613 stack.c, symtab.c, tui/tui-disasm.c: Update.
8614
f85f34ed
TT
86152013-04-08 Tom Tromey <tromey@redhat.com>
8616
8617 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8618 Use symbol's obstack, not an objfile.
8619 * coffread.c (process_coff_symbol): Update.
8620 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8621 * jv-lang.c (add_class_symbol): Update.
8622 * mdebugread.c (new_symbol): Update.
8623 * minsyms.c (prim_record_minimal_symbol_full)
8624 (terminate_minimal_symbol_table): Update.
8625 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8626 * stabsread.c (define_symbol, read_enum_type): Update.
8627 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8628 Handle Ada specially.
8629 (symbol_set_language): Add 'obstack' argument.
8630 (symbol_set_names): Update.
8631 (symbol_natural_name, symbol_demangled_name): Always use
8632 ada_decode_symbol.
8633 * symtab.h (struct general_symbol_info)
8634 <language_specific::obstack>: New field.
8635 <ada_mangled>: New field.
8636 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8637 (symbol_set_language): Update.
8638
ccde22c0
TT
86392013-04-08 Tom Tromey <tromey@redhat.com>
8640
8641 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8642 Take an obstack, not an objfile.
8643 (symbol_set_names): Update.
8644 * symtab.h (symbol_set_demangled_name): Update.
8645
e623cf5d
TT
86462013-04-08 Tom Tromey <tromey@redhat.com>
8647
8648 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8649 allocate_symbol.
8650 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8651 (read_func_scope): Call allocate_template_symbol.
8652 (new_symbol_full): Call allocate_symbol.
8653 * jit.c (finalize_symtab): Call allocate_symbol.
8654 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8655 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8656 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8657 (common_block_end): Call allocate_symbol.
8658 * symtab.c (allocate_symbol, initialize_symbol)
8659 (allocate_template_symbol): New functions.
8660 * symtab.c (allocate_symbol, initialize_symbol)
8661 (allocate_template_symbol): Declare.
8662 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8663
f6de8ec2
PA
86642013-04-08 Pedro Alves <palves@redhat.com>
8665 Keith Seitz <keiths@redhat.com>
8666
8667 * breakpoint.c (create_breakpoint): Rename
8668 "parse_condition_and_thread" parameter to "parse_arg". Update
8669 describing comment. If !PARSE_ARG, then error out if ARG is not
8670 the empty string after extracting the location.
8671 * breakpoint.h (create_breakpoint): Rename
8672 "parse_condition_and_thread" parameter to "parse_arg".
8673
f65ce5fb
AR
86742013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8675
8676 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8677
cc5925ad
YQ
86782013-04-07 Yao Qi <yao@codesourcery.com>
8679
8680 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8681 and 'addr2' to CORE_ADDR.
8682 * target.c (update_current_target): Update.
8683 * target.h (struct target_ops) <to_trace_find>: Change parameter
8684 type to CORE_ADDR.
8685 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8686 'addr2' to CORE_ADDR.
8687 (tfile_trace_find): Likewise.
8688 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8689 Change local variable 'addr' to type CORE_ADDR.
8690 * tracepoint.h (tfind_1): Update declaration.
8691
d9ac0664
EZ
86922013-04-06 Eli Zaretskii <eliz@gnu.org>
8693
8694 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8695 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8696 Include main.h.
8697
8698 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8699 here...
8700 * main.h (windows_get_absolute_argv0): ...to here.
8701
02142a6c
DE
87022013-04-05 Doug Evans <dje@google.com>
8703
8704 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8705 (read_cutu_die_from_dwo): Add comments.
8706 (read_structure_type): Update comment.
8707 (read_enumeration_type, read_namespace_type): Update comment.
8708 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8709
43662968
JK
87102013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8711
8712 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8713 * Makefile.in (gdb.z): Remove.
8714 (install-only): Remove $(man1dir) and gdb.1 installation.
8715 * gdb.1: Remove.
8716
9ead1b84
JK
87172013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8718
8719 Fix compatibility with Linux kernel 3.8.3.
8720 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8721 to more inner block. Remove parsing of NUMBER from outer block.
8722 Parse NUMBER only if KEYWORD has been identified.
8723
d1794952
JK
87242013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8725
8726 Fix variable name shadowing.
8727 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8728 filename to mapsfilename and update its uses.
8729
9025569e
EZ
87302013-04-05 Eli Zaretskii <eliz@gnu.org>
8731
8732 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8733 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8734 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8735 details of the problem.
8736
c9a6ce02
PA
87372013-04-04 Pedro Alves <palves@redhat.com>
8738 Hui Zhu <hui@codesourcery.com>
8739
8740 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8741 tracepoint, reset its STEP_COUNT and call validate_actionline.
8742
5ff888ce
DE
87432013-04-03 Doug Evans <dje@google.com>
8744
bf6af496
DE
8745 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8746 read_die_and_siblings.
8747 (read_die_and_siblings): New function.
8748 (read_cutu_die_from_dwo): Dump die if requested.
8749 (read_die_and_children): Call read_full_die_1 and
8750 read_die_and_siblings_1.
8751 (read_full_die): Dump die if requested.
8752
8753 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8754
0ac5b59e
DE
8755 * dwarf2read.c (struct dwo_file): New member comp_dir.
8756 Rename member name to dwo_name. All uses updated.
8757 (hash_dwo_file): Include comp_dir in computation.
8758 (eq_dwo_file): Ditto.
8759 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8760 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8761
5ff888ce
DE
8762 * psymtab.c (read_psymtabs_with_fullname): Don't call
8763 psymtab_to_fullname if the basenames are different.
8764
ec83d211
JK
87652013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8766
8767 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8768 New entry about "fullname" presence.
8769
4f4352f7
PA
87702013-04-03 Pedro Alves <palves@redhat.com>
8771
8772 * NEWS: Mention x86_64/Cygwin as new native configuration.
8773
3d1d5ea3
DE
87742013-04-02 Doug Evans <dje@google.com>
8775
8776 * dwarf2read.c (read_structure_type): Fix typo in comment.
8777
be9a8770
PA
87782013-04-02 Pedro Alves <palves@redhat.com>
8779
8780 * NEWS: Mention "set/show debug aarch64", "set/show debug
8781 coff-pe-read" and "set/show debug mach-o".
8782
a46c1e42
PA
87832013-04-02 Pedro Alves <palves@redhat.com>
8784
8785 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8786
3ad18b19
EZ
87872013-04-02 Eli Zaretskii <eliz@gnu.org>
8788
8789 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8790 gdb_string.h is now in common/.
8791
e9f1758d
PA
87922013-04-02 Pedro Alves <palves@redhat.com>
8793
8794 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8795 under "New options".
8796
049dc89b
JK
87972013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8798
8799 Revert this patch:
8800 PR gdb/15275
8801 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8802
c33e31fd
PA
88032013-04-02 Pedro Alves <palves@redhat.com>
8804
8805 PR gdb/15275
8806
8807 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8808 (remote_serial_write): New function.
8809 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8810
ea5f3910
JW
88112013-04-01 Jiong Wang <jiwang@tilera.com>
8812
8813 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8814 "New targets" sections.
ea5f3910 8815
5c6fa7ab
DE
88162013-04-01 Doug Evans <dje@google.com>
8817
c0f78cd4
DE
8818 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8819 (process_enumeration_scope): Simplify.
8820
0186c6a7
DE
8821 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8822 type_unit_group ...
8823 (struct signatured_type): ... to here.
8824 (sig_type_ptr): New typedef.
8825 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8826 out of union 't'. All uses updated.
8827 (dw2_get_file_names_reader): Assert not called for a type unit.
8828 (dw2_get_file_names): Assert not called for a type unit or type
8829 unit group.
8830 (build_type_psymtabs_reader): Assert called for a type unit.
8831 (build_type_psymtab_dependencies): Assert called for a type unit group.
8832
5c6fa7ab
DE
8833 * dwarf2read.c (free_dwo_file): Add comment.
8834 (dwarf2_per_objfile_free): Unref dwp bfd.
8835
b3c0ad67 88362013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8837
8838 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8839 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8840 (read_pe_exported_syms): Remove unused 'exportix'.
8841 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8842 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8843 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8844
e2df1547
AR
88452013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8846
8847 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8848 (print_it_watchpoint): Remove unused 'bl'.
8849 (say_where): Remove unused 'uiout'.
8850 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8851 (bkpt_breakpoint_hit): Remove unused 'b'.
8852 (internal_bkpt_print_it): Remove unused 'uiout'.
8853 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8854
d81e75c0
TD
88552013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8856
8857 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8858 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8859
5a8b3f62
DE
88602013-03-29 Doug Evans <dje@google.com>
8861
ab5088bf
DE
8862 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8863 Delete arg is_dwp. All callers updated.
8864 (open_dwp_file): New function.
8865 (open_and_init_dwp_file): Call it.
8866 (get_dwp_file): New function.
8867 (lookup_dwo_cutu): Call it.
8868
a8ad1e57
DE
8869 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8870 unnecessary, cleanup.
8871
6296d8c1
DE
8872 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8873
b0c7bfa9
DE
8874 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8875 (lookup_dwo_unit): New function.
8876 (init_cutu_and_read_dies): Move DWO handling to new functions.
8877
c88ee1f0
DE
8878 * dwarf2read.c (struct signatured_type): Tweak comment.
8879 (struct dwo_unit): Tweak comment.
8880 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8881 (create_dwo_debug_info_hash_table): Tweak comment.
8882 (dwarf2_per_cu_offset_and_type): Tweak comment.
8883
5a8b3f62
DE
8884 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8885 missing .debug_types section.
8886
9852c492
YQ
88872013-03-29 Yao Qi <yao@codesourcery.com>
8888
8889 * corelow.c: Include "completer.h".
8890 (_initialize_corelow): Call add_target_with_completer with
8891 argument 'filename_completer'.
8892 * tracepoint.c: Likewise.
8893 * exec.c (_initialize_exec): Likewise.
8894 * target.c (add_target): Rename to ...
8895 (add_target_with_completer): ... this. Call set_cmd_completer
8896 if parameter completer is not NULL.
8897 (add_target): New.
8898 * target.h: Include "command.h".
8899 (add_target_with_completer): Declare it.
8900
af312be7
JB
89012013-03-28 Joel Brobecker <brobecker@adacore.com>
8902
8903 * coffread.c (is_import_fixup_symbol): New function.
8904 (record_minimal_symbol): Use is_import_fixup_symbol to
8905 detect import fixup symbols, and discard them.
8906
8a0459fd
DE
89072013-03-28 Doug Evans <dje@google.com>
8908
0349ea22
DE
8909 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8910 types hash table until we know we need it.
8911
f652bce2
DE
8912 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8913 index numbers.
8914
e4a48d9d
DE
8915 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8916 All callers updated.
8917 (dw2_print_stats): Print #read CUs too.
8918 (dump_die_shallow): Print signatured types better.
8919
8a0459fd
DE
8920 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8921 info_or_types_section to section. All uses updated.
8922 (struct dwo_unit): Ditto.
8923
bd3eecc3
PA
89242013-03-28 Pedro Alves <palves@redhat.com>
8925
8926 * NEWS (New options): New section.
8927 (New options): Mention set/show remote trace-status-packet.
8928 * remote.c (PACKET_qTStatus): New enumeration value.
8929 (remote_get_trace_status): Skip sending qTStatus if the packet is
8930 disabled. Use packet_ok.
8931 (_initialize_remote): Register a configuration command for
8932 qTStatus packet.
8933
41245087
DE
89342013-03-28 Doug Evans <dje@google.com>
8935
7edbb660
DE
8936 * symfile.c (find_separate_debug_file): Add comment.
8937 (terminate_after_last_dir_separator): Tweak comment.
8938
0018ea6f
DE
8939 * dwarf2read.c (create_partial_symtab): Add forward decl.
8940 (create_partial_symtab): Move to be closer to other psymtab functions.
8941 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8942
ca69b9e6
DE
8943 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8944 (compute_symtab_includes): Remove unnecessary forward declaration.
8945 (die_needs_namespace): Add comment marking group of functions for
8946 dwarf2 name computation.
8947
a9375afe
DE
8948 * typeprint.c (_initialize_typeprint): Improve type help text.
8949
41245087
DE
8950 * python/python.c (finish_python_initialization): Provide suggestion
8951 for how to tell gdb to find its python files.
8952
7f7cc265
PA
89532013-03-28 Pedro Alves <palves@redhat.com>
8954
8955 PR gdb/15294
8956
8957 * source.c (_initialize_source): Change back "set listsize" to an
8958 integer command.
8959
ec21308c
JK
89602013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8961
8962 PR gdb/15275
8963 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8964
840a9a1f
PA
89652013-03-27 Pedro Alves <palves@redhat.com>
8966
8967 * top.c (history_size): Rename to ...
8968 (history_size_setshow_var): ... this. Add comment.
8969 (show_commands): Use readline's 'history_length' instead of
8970 computing the history length by calling history_get in a loop.
8971 (set_history_size_command): Error out for sizes over INT_MAX.
8972 Restore previous history size on invalid size.
8973 (init_history): If HISTSIZE is negative, leave the history size as
8974 zero. Add comments.
8975 (init_main): Adjust.
8976
826ecc4d
PA
89772013-03-27 Pedro Alves <palves@redhat.com>
8978
8979 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8980 coff_pe_read" command to "set debug coff-pe-read".
8981
0ccfeeae
MM
89822013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8983
8984 * record.c (command_size_to_target_size): Fix size comparison.
8985 Change parameter type from pointer to integer to integer.
8986 Update all users.
8987
40653b35
PM
89882013-03-27 Pierre Muller <muller@sourceware.org>
8989
8990 * windows-nat.c (handle_output_debug_string): Avoid typecast
8991 from integer of different size warning.
8992
c62fa0e2
JB
89932013-03-26 Joel Brobecker <brobecker@adacore.com>
8994
8995 * windows-nat.c (handle_output_debug_string): Add empty line
8996 after local block variable definition.
8997
2c619be2
PA
89982013-03-26 Pedro Alves <palves@redhat.com>
8999
9000 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9001 (net_open): Make 'polls' local unsigned.
9002
1b493192
PA
90032013-03-26 Pedro Alves <palves@redhat.com>
9004
9005 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9006 a zuinteger command instead of uinteger.
9007
7ee70bf5
PA
90082013-03-26 Pedro Alves <palves@redhat.com>
9009
9010 * record-full.c (record_full_insn_num): Make it unsigned.
9011 (record_full_check_insn_num, record_full_message)
9012 (record_full_registers_change, record_full_xfer_partial): Remove
9013 record_full_insn_max_num check (it's always != 0).
9014 (record_full_info, record_full_restore): Use %u as format string.
9015 (): Use %u as format string.
9016 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9017 check (it's always != 0).
9018
dfd1f9bb
PA
90192013-03-26 Pedro Alves <palves@redhat.com>
9020
9021 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9022 and "set dcache size" commands zuinteger instead of uinteger.
9023
addb4faf
PA
90242013-03-26 Pedro Alves <palves@redhat.com>
9025
9026 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9027 command zuinteger instead of uinteger.
9028
b75bf488
PA
90292013-03-26 Pedro Alves <palves@redhat.com>
9030
9031 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9032 zuinteger instead of uinteger.
9033
42c634cb
PA
90342013-03-26 Pedro Alves <palves@redhat.com>
9035
9036 * record.c (record_insn_history_size_setshow_var)
9037 (record_call_history_size_setshow_var): New globals.
9038 (command_size_to_target_size): New function.
9039 (cmd_record_insn_history, cmd_record_call_history): Use
9040 command_size_to_target_size instead of cast.
9041 (validate_history_size, set_record_insn_history_size)
9042 (set_record_call_history_size): New functions.
9043 (_initialize_record): Install set_record_insn_history_size and
9044 set_record_call_history_size as "set" hooks of "set record
9045 instruction-history-size" and "set record
9046 function-call-history-size".
9047
1fb2e2b5
PA
90482013-03-26 Pedro Alves <palves@redhat.com>
9049
9050 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9051 use with history_max_entries use. Remove FIXME note.
9052
99c819ee
MM
90532013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9054
9055 * record-btrace.c (record_btrace_close): Call
9056 record_btrace_auto_disable.
9057
9f9e404c
JB
90582013-03-25 Joel Brobecker <brobecker@adacore.com>
9059
9060 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9061
ebcdfe33
DE
90622013-03-25 Doug Evans <dje@google.com>
9063
9064 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9065
24955f63
TT
90662013-03-25 Tom Tromey <tromey@redhat.com>
9067
9068 PR symtab/11462:
9069 * c-exp.y (exp): Add new productions for destructors after '.' and
9070 '->'.
9071 (write_destructor_name): New function.
9072
fce632b6
TT
90732013-03-25 Tom Tromey <tromey@redhat.com>
9074
9075 PR c++/9197:
9076 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9077 value_struct_elt, not lookup_struct_elt_type.
9078 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9079 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9080 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9081
a4341769
YQ
90822013-03-25 Yao Qi <yao@codesourcery.com>
9083
9084 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9085 instead of '_mkdir'.
9086
b5981e5a
EZ
90872013-03-23 Eli Zaretskii <eliz@gnu.org>
9088
9089 * windows-nat.c (windows_get_absolute_argv0): New function.
9090 * windows-nat.h: Add its prototype.
9091
9092 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9093 Use IS_DIR_SEPARATOR instead of looking for a character inside
9094 SLASH_STRING. Include filenames.h.
9095 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9096 relocate_gdb_directory works when passed gdb_program_name.
9097 Include windows-nat.h.
9098
598d3636
JK
90992013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9100
9101 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9102 * remote.c (trace_error): Remove the special handling of '2'.
9103 (readchar) <SERIAL_EOF>
9104 (readchar) <SERIAL_ERROR>
9105 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9106 (remote_get_trace_status): Call throw_exception if EX is
9107 TARGET_CLOSE_ERROR.
9108 * utils.c (perror_with_name): Rename to ...
9109 (throw_perror_with_name): ... here. New parameter errcode, describe it
9110 in the function comment.
9111 (perror_with_name): New function wrapper.
9112 * utils.h (enum errors): New stub declaration.
9113 (throw_perror_with_name): New declaration.
9114
82b821e9
PA
91152013-03-22 Pedro Alves <palves@redhat.com>
9116 Yao Qi <yao@codesourcery.com>
9117 Mark Kettenis <kettenis@gnu.org>
9118
9119 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9120 Don't let the user set the value to UINT_MAX directly.
9121 <var_integer>: Don't let the user set the value to INT_MAX
9122 directly.
9123
78a095c3
JK
91242013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9125
9126 * remote.c (remote_unpush_target): New function.
9127 (remote_open_1): Remove two pop_target calls, update one comment, add
9128 comment to target_preopen call. Replace pop_target call by
9129 remote_unpush_target call.
9130 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9131 pop_target calls by remote_unpush_target calls.
9132
3e74e146
PA
91332013-03-22 Pedro Alves <palves@redhat.com>
9134
9135 * linux-nat.c (linux_child_follow_fork): Don't call
9136 linux_enable_event_reporting.
9137 (linux_handle_extended_wait): Don't call
9138 linux_enable_event_reporting.
9139
a2213dca
PA
91402013-03-22 Pedro Alves <palves@redhat.com>
9141
9142 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9143 use it to rewrite the trampoline buffers with type gdb_byte[], and
9144 undefine the macro. Remove char* cast.
9145
bd712aed
DE
91462013-03-21 Doug Evans <dje@google.com>
9147
9148 New commands "mt set per-command {space,time,symtab} {on,off}".
9149 * NEWS: Add entry.
9150 * event-top.c: #include "maint.h".
9151 * main.c: #include "maint.h".
9152 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9153 timeval-utils.h, maint.h, cli/cli-setshow.h.
9154 (per_command_time, per_command_space): New static globals.
9155 (per_command_symtab): New static global.
9156 (per_command_setlist, per_command_showlist): New static globals.
9157 (struct cmd_stats): Move here from utils.c.
9158 (set_per_command_time): Renamed from set_display_time in utils.c
9159 and moved here. All callers updated.
9160 (set_per_command_space): Renamed from set_display_space in utils.c
9161 and moved here. All callers updated.
9162 (count_symtabs_and_blocks): New function.
9163 (report_command_stats): Moved here from utils.c. Add support for
9164 printing symtab stats. Only print data if enabled before command
9165 executed.
9166 (make_command_stats_cleanup): Ditto.
9167 (sert_per_command_cmd, show_per_command_cmd): New functions.
9168 (_initialize_maint_cmds): Add new commands
9169 mt set per-command {space,time,symtab} {on,off}.
9170 * maint.h: New file.
9171 * top.c: #include "maint.h".
9172 * utils.c (reset_prompt_for_continue_wait_time): New function.
9173 (get_prompt_for_continue_wait_time): New function.
9174 * utils.h (reset_prompt_for_continue_wait_time): Declare
9175 (get_prompt_for_continue_wait_time): Declare.
9176 (make_command_stats_cleanup): Moved to maint.h.
9177 (set_display_time, set_display_space): Moved to maint.h and renamed
9178 to set_per_command_time, set_per_command_space.
9179 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9180 parse_binary_operation and made non-static. Don't call error,
9181 just return an error marker. All callers updated.
9182 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9183
d76488d8
TT
91842013-03-21 Tom Tromey <tromey@redhat.com>
9185
9186 * symfile.c (alloc_section_addr_info): Update header. Don't set
9187 'num_sections' field.
9188 (build_section_addr_info_from_section_table): Set 'num_sections'.
9189 (build_section_addr_info_from_bfd): Likewise.
9190 (build_section_addr_info_from_objfile): Remove dead loop
9191 condition.
9192 (free_section_addr_info): Unconditionally call xfree.
9193 (relative_addr_info_to_section_offsets, addrs_section_sort)
9194 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9195 condition.
9196 (syms_from_objfile_1): Remove dead 'if' condition. Check
9197 'num_sections'.
9198 (add_symbol_file_command): Set 'num_sections'.
9199 * symfile-mem.c (symbol_file_add_from_memory): Set
9200 'num_sections'.
9201 * somread.c (som_symfile_offsets): Remove dead loop condition.
9202 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9203 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9204
a72e5169 92052013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9206
9207 * tracepoint.h (decode_agent_options): Add 'trace_string'
9208 argument.
9209 * tracepoint.c (decode_agent_options): Add 'trace_string'
9210 argument.
9211 (validate_actionline): Update.
9212 (collect_symbol): Add 'trace_string' argument.
9213 (struct add_local_symbols_data) <trace_string>: New field.
9214 (do_collect_symbol): Update.
9215 (add_local_symbols): Add 'trace_string' argument.
9216 (encode_actions_1): Update.
9217 (trace_dump_actions): Update.
9218 * dwarf2loc.c (access_memory): Update.
9219 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9220 * ax-general.c (new_agent_expr): Update.
9221 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9222 (gen_trace_for_return_address): Add argument.
9223 (trace_kludge, trace_string_kludge): Remove.
9224 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9225 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9226 (gen_trace_for_var): Add 'trace_string' argument.
9227 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9228 (gen_printf, agent_eval_command_one): Update.
9229
b2f83c08
TT
92302013-03-21 Tom Tromey <tromey@redhat.com>
9231
9232 PR exp/15109:
9233 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9234 Handle FILENAME token.
9235
9507860e
TT
92362013-03-21 Tom Tromey <tromey@redhat.com>
9237
9238 * c-exp.y (YYPRINT): Define.
9239 (c_print_token): New function.
9240
e403aa4b
TT
92412013-03-21 Tom Tromey <tromey@redhat.com>
9242
9243 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9244
af307d6a
YQ
92452013-03-21 Yao Qi <yao@codesourcery.com>
9246
9247 * ctf.c: Include "gdb_stat.h".
9248 [USE_WIN32API]: New macro 'mkdir'.
9249 (ctf_start): Use permission bits macros if they are defined.
9250
fb81d016
KS
92512013-03-20 Keith Seitz <keiths@redhat.com>
9252
9253 * breakpoint.h (struct breakpoint): Add comment to
9254 extra_string indicating that this member is mallod'd.
9255 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9256
ef0026f0
PA
92572013-03-20 Pedro Alves <palves@redhat.com>
9258
9259 PR gdb/15289
9260
9261 * cli/cli-setshow.c (do_set_command)
9262 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9263 the result of parsing the command argument. Throw error if the
9264 value is greater than UINT_MAX. Print the invalid value with
9265 plongest.
9266 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9267 result of parsing the command argument. Throw error if the value
9268 is greater than INT_MAX, not greater or equal. Also throw error
9269 if the value is less than INT_MIN. Print the invalid value with
9270 plongest.
9271 <var_zuinteger_unlimited>: Throw error if the value is greater
9272 than INT_MAX, not greater or equal.
9273 (do_show_command) <var_integer, var_zinteger,
9274 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9275
24d6c2a0
TT
92762013-03-20 Tom Tromey <tromey@redhat.com>
9277
9278 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9279 if possible.
9280 * dwarf2read.c (read_func_scope): Remove old FIXME.
9281 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9282 not LOC_COMPUTED.
9283 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9284 Unconditionally call via computed ops, if possible.
9285 * printcmd.c (address_info): Unconditionally call via computed ops,
9286 if possible.
9287 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9288 if possible.
9289 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9290 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9291 if possible.
9292
f1e6e072
TT
92932013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9294 Tom Tromey <tromey@redhat.com>
9295
9296 PR symtab/8421:
9297 * coffread.c (coff_register_index): New global.
9298 (process_coff_symbol, coff_read_enum_type): Set
9299 SYMBOL_ACLASS_INDEX.
9300 (_initialize_coffread): Initialize new global.
9301 * dwarf2loc.c (locexpr_find_frame_base_location)
9302 (dwarf2_block_frame_base_locexpr_funcs)
9303 (loclist_find_frame_base_location)
9304 (dwarf2_block_frame_base_loclist_funcs): New.
9305 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9306 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9307 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9308 (dwarf2_block_frame_base_loclist_funcs): New.
9309 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9310 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9311 globals.
9312 (read_func_scope): Update.
9313 (fixup_go_packaging, mark_common_block_symbol_computed)
9314 (var_decode_location, new_symbol_full, dwarf2_const_value):
9315 Set SYMBOL_ACLASS_INDEX.
9316 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9317 (_initialize_dwarf2_read): Initialize new globals.
9318 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9319 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9320 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9321 globals.
9322 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9323 (_initialize_mdebugread): Initialize new globals.
9324 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9325 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9326 (stab_register_index, stab_regparm_index): New globals.
9327 (define_symbol, read_enum_type, common_block_end): Set
9328 SYMBOL_ACLASS_INDEX.
9329 (_initialize_stabsread): Initialize new globals.
9330 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9331 globals.
9332 (MAX_SYMBOL_IMPLS): New define.
9333 (register_symbol_computed_impl, register_symbol_block_impl)
9334 (register_symbol_register_impl)
9335 (initialize_ordinary_address_classes): New functions.
9336 (_initialize_symtab): Call initialize_ordinary_address_classes.
9337 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9338 (struct symbol_impl): New.
9339 (SYMBOL_ACLASS_BITS): New define.
9340 (struct symbol) <aclass, ops>: Remove fields.
9341 <aclass_index>: New field.
9342 (symbol_impls): Declare.
9343 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9344 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9345 (register_symbol_computed_impl, register_symbol_block_impl)
9346 (register_symbol_register_impl): Declare.
9347 (struct symbol_computed_ops): Add location_has_loclist.
9348 (struct symbol_block_ops): New.
9349 (SYMBOL_BLOCK_OPS): New.
9350 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9351
dbccfd4c
TT
93522013-03-20 Tom Tromey <tromey@redhat.com>
9353
9354 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9355 (print_partial_symbols, recursively_search_psymtabs): Use
9356 PSYMBOL_CLASS.
9357
e3f1ad4f
PM
93582013-03-20 Pierre Muller <muller@sourceware.org>
9359
9360 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9361 addtion, subtraction, multiplication and division binary operator.
9362
460014f5
JK
93632013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9364
9365 Code cleanup.
9366 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9367 * bsd-kvm.c (bsd_kvm_close): Likewise.
9368 * bsd-uthread.c (bsd_uthread_close): Likewise.
9369 * corelow.c (core_close): Likewise.
9370 (core_close_cleanup): Remove parameter quitting from a caller.
9371 * event-top.c (async_disconnect): Likewise.
9372 * exec.c (exec_close_1): Remove parameter quitting.
9373 * go32-nat.c (go32_close): Likewise.
9374 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9375 parameter quitting from a caller.
9376 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9377 variable.
9378 (mips_linux_close): Remove parameter quitting. Remove parameter
9379 quitting from a caller.
9380 * monitor.c (monitor_close): Remove parameter quitting.
9381 * monitor.h (monitor_close): Likewise.
9382 * record-btrace.c (record_btrace_close): Likewise.
9383 * record-full.c (record_full_close): Likewise.
9384 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9385 it also from fprintf_unfiltered.
9386 * remote-mips.c (mips_close): Remove parameter quitting.
9387 (mips_detach): Remove parameter quitting from a caller.
9388 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9389 (gdbsim_close): Remove duplicate function comment. Remove parameter
9390 quitting and remove it also from printf_filtered.
9391 * remote.c (remote_close): Remove parameter quitting.
9392 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9393 * target.c (update_current_target): Remove parameter int from to_close
9394 de_fault.
9395 (push_target, unpush_target, pop_target): Remove parameter quitting from
9396 a caller.
9397 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9398 Remove parameter quitting from a caller.
9399 (target_preopen): Remove parameter quitting from a caller.
9400 (target_close): Remove parameter quitting. Remove parameter quitting
9401 from a caller two times. Remove parameter quitting also from
9402 fprintf_unfiltered.
9403 * target.h (struct target_ops): Remove parameter quitting and as int
9404 from fields to_xclose and to_close.
9405 (extern struct target_ops current_target):
9406 (target_close, pop_all_targets): Remove parameter quitting. Update the
9407 comment.
9408 (pop_all_targets_above): Remove parameter quitting.
9409 * top.c (quit_target): Remove parameter quitting from a caller.
9410 * tracepoint.c (tfile_close): Remove parameter quitting.
9411 * windows-nat.c (windows_close): Remove parameter quitting.
9412
35a7120b
CV
94132013-03-20 Corinna Vinschen <vinschen@redhat.com>
9414
9415 * windows-nat.c (handle_output_debug_string): Replace call
9416 to string_to_core_addr with call to strtoull.
9417
8249a5a9
YQ
94182013-03-20 Yao Qi <yao@codesourcery.com>
9419
9420 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9421 and write it to CTF metadata.
9422
2c15ef43
CV
94232013-03-19 Corinna Vinschen <vinschen@redhat.com>
9424
9425 * windows-nat.c (handle_output_debug_string): Change type of n to
9426 SIZE_T to avoid crash on 64 bit systems.
9427
1cdd3232
EZ
94282013-03-17 Eli Zaretskii <eliz@gnu.org>
9429
9430 * python/python-internal.h (HAVE_SNPRINTF)
9431 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9432 about redefinition of snprintf by pyerrors.h.
9433
3cb2ab1a
SE
94342013-03-15 Steve Ellcey <sellcey@mips.com>
9435
9436 * remote-sim.c (sim_command_completer): Make char arguments const.
9437
9ce98649
TT
94382013-03-15 Tom Tromey <tromey@redhat.com>
9439
9440 PR c++/15116:
9441 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9442
dccee2de
TT
94432013-03-14 Tom Tromey <tromey@redhat.com>
9444
9445 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9446 New fields.
9447 (get_file_crc): Move from symfile.c.
9448 (gdb_bfd_crc): New function.
9449 * gdb_bfd.h (gdb_bfd_crc): Declare.
9450 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9451 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9452 (separate_debug_file_exists): Use gdb_bfd_crc.
9453
cc0ea93c
TT
94542013-03-14 Tom Tromey <tromey@redhat.com>
9455
9456 * symfile.c (get_debug_link_info): Remove.
9457 (find_separate_debug_file_by_debuglink): Use
9458 bfd_get_debug_link_info.
9459
08c23b0d
TT
94602013-03-14 Tom Tromey <tromey@redhat.com>
9461
9462 * symtab.c (error_in_psymtab_expansion): New function.
9463 (lookup_symbol_aux_quick)
9464 (basic_lookup_transparent_type_quick): Remove "last resort"
9465 code. Use error_in_psymtab_expansion.
9466
288e77a7
JK
94672013-03-14 Doug Evans <dje@google.com>
9468 Jan Kratochvil <jan.kratochvil@redhat.com>
9469
9470 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9471 any successful compare_filenames_for_search or FILENAME_CMP.
9472 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9473 * symtab.c (iterate_over_some_symtabs): Likewise.
9474
8f1b8b82
JK
94752013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9476
9477 * source.c (print_source_lines_base): Make a local copy of
9478 symtab_to_fullname.
9479
23eb71e4
JK
94802013-03-14 Hui Zhu <hui_zhu@mentor.com>
9481 Jan Kratochvil <jan.kratochvil@redhat.com>
9482
9483 * source.c (print_source_lines_base): Suppress "file" for TUI.
9484
bb869963
SDJ
94852013-03-14 Keith Seitz <keiths@redhat.com>
9486 Alan Matsuoka <alanm@redhat.com>
9487
9488 PR c++/15203
9489 PR c++/15210
9490 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9491 TYPE_CODE_METHOD.
9492 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9493 symbols.
9494
d6682f9e
YQ
94952013-03-14 Yao Qi <yao@codesourcery.com>
9496
9497 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9498 status to tfile if trace is stopped by command 'tstop'.
9499
a22fa6e4
YQ
95002013-03-14 Yao Qi <yao@codesourcery.com>
9501
9502 * tracepoint.c (tfile_write_status): Write trace notes and user
9503 name into tfile if they are not NULL.
9504
d0353e76
YQ
95052013-03-14 Hui Zhu <hui@codesourcery.com>
9506 Yao Qi <yao@codesourcery.com>
9507
9508 * Makefile.in (REMOTE_OBS): Add ctf.o.
9509 (SFILES): Add ctf.c.
9510 (HFILES_NO_SRCDIR): Add ctf.h.
9511 * ctf.c, ctf.h: New files.
9512 * tracepoint.c: Include 'ctf.h'.
9513 (collect_pseudocommand): Remove static.
9514 (trace_save_command): Parse option "-ctf".
9515 Produce different trace file writers per option.
9516 Adjust output message.
9517 (trace_save_tfile, trace_save_ctf): New.
9518 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9519 * mi/mi-main.c: Include 'ctf.h'.
9520 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9521 trace_save_tfile or trace_save_ctf.
9522 * NEWS: Mention these changes.
9523
3f43bc09
YQ
95242013-03-14 Yao Qi <yao@codesourcery.com>
9525
9526 * tracepoint.c (trace_file_writer_xfree): New.
9527 (struct tfile_writer_data): New.
9528 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9529 (tfile_write_header, tfile_write_regblock_type): New.
9530 (tfile_write_status, tfile_write_uploaded_tsv): New.
9531 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9532 (tfile_write_raw_data, (tfile_end): New.
9533 (tfile_write_ops): New global variable.
9534 (TRACE_WRITE_R_BLOCK): New macro.
9535 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9536 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9537 (TRACE_WRITE_V_BLOCK): New macro.
9538 (trace_save): Add extra one parameter WRITER. Make it static.
9539 Use WRITER to writer trace.
9540 (tfile_trace_file_writer_new): New.
9541 (trace_save_command): Caller update.
9542 (trace_save_tfile): Write trace data in TFILE format.
9543 * tracepoint.h (struct trace_frame_write_ops): New.
9544 (struct trace_file_write_ops): New.
9545 (struct trace_file_writer): New.
9546 (trace_save): Remove its declaration.
9547 (trace_save_tfile): Declare it.
9548 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9549 instead of trace_save.
9550
58665b40
PA
95512013-03-13 Pedro Alves <palves@redhat.com>
9552
9553 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9554
10217050
PA
95552013-03-13 Pedro Alves <palves@redhat.com>
9556
9557 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9558 commented out code.
9559 * demangle.c (current_demangling_style_string): Make it const.
9560 (set_demangling_command): Assert the demangling style is known.
9561 Remove all handling of unknown styles. Set
9562 'current_demangling_style_string' to an element of the
9563 demangling_style_names array.
9564 (set_demangling_style): Delete.
9565 (_initialize_demangler): Set current_demangling_style_string to the
9566 element of the demangling_style_names array that corresponds to
9567 the default demangling style. Remove FIXME note. Don't call
9568 set_demangling_style.
9569 * gdb-demangle.h (set_demangling_style): Remove declaration.
9570
6f937416
PA
95712013-03-13 Pedro Alves <palves@redhat.com>
9572
9573 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9574 fields const.
9575 (ada_make_symbol_completion_list): Make "text0" parameter const.
9576 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9577 * breakpoint.c (condition_completer): Make "text" and "word"
9578 parameters const. Adjust.
9579 (check_tracepoint_command): Adjust to validate_actionline
9580 prototype change.
9581 (catch_syscall_completer): Make "text" and "word" parameters
9582 const.
9583 * cli/cli-cmds.c (show_user): Make "comname" local const.
9584 (valid_command_p): Make "command" parameter const.
9585 (alias_command): Make "alias_prefix" and "command_prefix" locals
9586 const.
9587 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9588 (add_alias_cmd): Make "name" and "oldname" parameters const.
9589 Adjust. No longer make copy of OLDNAME.
9590 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9591 (add_setshow_cmd_full, add_setshow_enum_cmd)
9592 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9593 (add_setshow_filename_cmd, add_setshow_string_cmd)
9594 (add_setshow_string_noescape_cmd)
9595 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9596 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9597 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9598 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9599 Make "name" parameter const.
9600 (help_cmd): Rename "command" parameter to "arg". New const local
9601 "command".
9602 (find_cmd): Make "command" parameter const.
9603 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9604 deprecated_cmd_warning prototype change.
9605 (undef_cmd_error): Make "cmdtype" parameter const.
9606 (lookup_cmd): Make "line" parameter const.
9607 (deprecated_cmd_warning): Change type of "text" parameter to
9608 pointer to const char, from pointer to pointer to char. Adjust.
9609 (lookup_cmd_composition): Make "text" parameter const.
9610 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9611 parameters const.
9612 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9613 const.
9614 * cli/cli-script.c (validate_comname): Make "tem" local const.
9615 (define_command): New const local "tem_c". Use it in calls to
9616 lookup_cmd.
9617 (document_command): Make "tem" and "comfull" locals const.
9618 (show_user_1): Make "prefix" and "name" parameters const.
9619 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9620 const.
9621 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9622 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9623 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9624 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9625 (complete_on_enum, add_setshow_enum_cmd)
9626 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9627 (add_setshow_filename_cmd, add_setshow_string_cmd)
9628 (add_setshow_string_noescape_cmd)
9629 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9630 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9631 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9632 Change prototypes, constifying strings.
9633 * completer.c (noop_completer, filename_completer): Make "text"
9634 and "prefix" parameters const.
9635 (location_completer, expression_completer)
9636 (complete_line_internal): Make "text" and "prefix" parameters
9637 const and adjust.
9638 (command_completer, signal_completer): Make "text" and "prefix"
9639 parameters const.
9640 * completer.h (noop_completer, filename_completer)
9641 (expression_completer, location_completer, command_completer)
9642 (signal_completer): Change prototypes.
9643 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9644 parameters const.
9645 * cp-abi.c (cp_abi_completer): Likewise.
9646 * expression.h (parse_expression_for_completion): Change
9647 prototype.
9648 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9649 parameters const.
9650 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9651 * infrun.c (handle_completer): Make "text" and "word" parameters
9652 const.
9653 * interps.c (interpreter_completer): Make "text" and "word"
9654 parameters const.
9655 * language.h (struct language_defn)
9656 <la_make_symbol_completion_list>: Make "text" and "word"
9657 parameters const.
9658 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9659 (parse_exp_in_context): Rename to ...
9660 (parse_exp_in_context_1): ... this.
9661 (parse_exp_in_context): Reimplement, with const hack from
9662 parse_exp_1.
9663 (parse_expression_for_completion): Make "string" parameter const.
9664 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9665 to pointer to const char. Adjust.
9666 (print_command_1): Make "exp" parameter const.
9667 (output_command): Rename to ...
9668 (output_command_const): ... this. Make "exp" parameter const.
9669 (output_command): Reimplement.
9670 (x_command): Adjust.
9671 (display_command): Rename "exp" parameter to "arg". New "exp"
9672 local, const version of "arg".
9673 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9674 "cmd_name" local const.
9675 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9676 call.
9677 (cmdpy_completer): Make "text" and "word" parameters const.
9678 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9679 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9680 const.
9681 * remote.c (_initialize_remote): Make "cmd_name" local const.
9682 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9683 parameters const. Adjust.
9684 (completion_list_add_fields): Make "sym_text", "text" and "word"
9685 parameters const.
9686 (struct add_name_data) <sym_text, text, word>: Make fields const.
9687 (default_make_symbol_completion_list_break_on): Make "text" and
9688 "word" parameters const. Adjust locals.
9689 (default_make_symbol_completion_list)
9690 (make_symbol_completion_list, make_symbol_completion_type)
9691 (make_symbol_completion_list_fn): Make "text" and "word"
9692 parameters const.
9693 (make_file_symbol_completion_list): Make "text", "word" and
9694 "srcfile" parameters const. Adjust locals.
9695 (add_filename_to_list): Make "text" and "word" parameters const.
9696 (struct add_partial_filename_data) <text, word>: Make fields
9697 const.
9698 (make_source_files_completion_list): Make "text" and "word"
9699 parameters const.
9700 * symtab.h (default_make_symbol_completion_list_break_on)
9701 (default_make_symbol_completion_list, make_symbol_completion_list)
9702 (make_symbol_completion_type enum type_code)
9703 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9704 (make_source_files_completion_list): Change prototype.
9705 * top.c (execute_command): Adjust to pass pointer to pointer to
9706 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9707 change.
9708 (set_verbose): Make "cmdname" local const.
9709 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9710 and adjust.
9711 (validate_actionline): Make "line" parameter a pointer to const
9712 char, and adjust.
9713 (encode_actions_1): Make "action_exp" local const, and adjust.
9714 (encode_actions): Adjust.
9715 (replace_comma): Delete.
9716 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9717 const, and adjust. Don't frob the action string while splitting
9718 it at commas. Instead, make a copy of each split substring in
9719 turn.
9720 (trace_dump_command): Adjust to validate_actionline prototype
9721 change.
9722 * tracepoint.h (decode_agent_options, decode_agent_options)
9723 (encode_actions, validate_actionline): Change prototypes.
9724 * valprint.h (output_command): Delete declaration.
9725 (output_command_const): Declare.
9726 * value.c (function_destroyer): Cast const away in xfree call.
9727
a0bcdaa7
PA
97282013-03-13 Pedro Alves <palves@redhat.com>
9729
9730 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9731 rather than casting 'const char * const *' to 'const char **'.
9732 * ada-lex.l (processInt): Make "trailer" local const. Remove
9733 'const char **' cast.
9734 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9735 locals, and use those as strtol output pointer, instead than doing
9736 invalid casts to from 'const char **' to 'char **'.
9737 (_initialize_demangle): Remove cast.
9738 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9739 locals, and use those as strtol output pointer, instead than doing
9740 invalid casts to from 'const char **' to 'char **'.
9741 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9742 casts.
9743 * stap-probe.c (stap_parse_register_operand)
9744 (stap_parse_single_operand): Likewise.
9745
8ddb1965
YQ
97462013-03-13 Yao Qi <yao@codesourcery.com>
9747
9748 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9749 the last matched 'V' blcok in trace frame.
9750
2d450646
JB
97512013-03-12 Joel Brobecker <brobecker@adacore.com>
9752
9753 * NEWS: Create a new section for the next release branch.
9754 Rename the section of the current branch, now that it has
9755 been cut.
9756
b4b79973 97572013-03-12 Joel Brobecker <brobecker@adacore.com>
9758
9759 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9760 * version.in: Bump version to 7.6.50.20130312-cvs.
9761
ee047554
KS
97622013-03-12 Keith Seitz <keiths@redhat.com>
9763
9764 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9765 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9766 Remove temporary copy of input string.
9767 (mi_execute_command_wrapper): Make "cmd" const.
9768 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9769 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9770 Use const strings.
9771 (mi_parse): Make "cmd" const.
9772 Use const strings.
9773 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9774
bbc13ae3
KS
97752013-03-12 Keith Seitz <keiths@redhat.com>
9776
9777 * ada-lang.c (ada_read_renaming_var_value): Pass const
9778 pointer to expression string to parse_exp_1.
9779 (create_excep_cond_exprs): Likewise.
9780 * ax-gdb.c (agent_eval_command_one): Likewise.
9781 (maint_agent_printf_command): Likewise.
9782 Constify much of the string handling/parsing.
9783 * breakpoint.c (set_breakpoint_condition): Pass const
9784 pointer to expression string to parse_exp_1.
9785 (update_watchpoint): Likewise.
9786 (parse_cmd_to_aexpr): Constify string handling.
9787 Pass const pointer to parse_exp_1.
9788 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9789 (find_condition_and_thread): Likewise.
9790 Make TOK const.
9791 (watch_command_1): Make "arg" const.
9792 Constify string handling.
9793 Copy the expression string instead of changing the input
9794 string.
9795 (update_breakpoint_location): Pass const pointer to
9796 parse_exp_1.
9797 * eval.c (parse_and_eval_address): Make "exp" const.
9798 (parse_to_comma_and_eval): Make "expp" const.
9799 (parse_and_eval): Make "exp" const.
9800 * expression.h (parse_expression): Make argument const.
9801 (parse_exp_1): Make first argument const.
9802 * findcmd.c (parse_find_args): Treat "args" as const.
9803 * linespec.c (parse_linespec): Pass const pointer to
9804 linespec_expression_to_pc.
9805 (linespec_expression_to_pc): Make "exp_ptr" const.
9806 * parse.c (parse_exp_1): Make "stringptr" const.
9807 Make a copy of the expression to pass to parse_exp_in_context until
9808 this whole interface can be constified.
9809 (parse_expression): Make "string" const.
9810 * printcmd.c (ui_printf): Treat "arg" as const.
9811 Handle const strings.
9812 * tracepoint.c (validate_actionline): Pass const pointer to
9813 all calls to parse_exp_1.
9814 (encode_actions_1): Likewise.
9815 * value.h (parse_to_comma_and_eval): Make argument const.
9816 (parse_and_eval_address): Likewise.
9817 (parse_and_eval): Likewise.
9818 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9819 (varobj_set_value): Likewise.
9820 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9821 constify string handling.
9822 Pass const pointers to parse_and_eval_address and
9823 parse_to_comman_and_eval.
9824 * cli/cli-utils.c (skip_to_space): Rename to ...
9825 (skip_to_space_const): ... this. Handle const strings.
9826 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9827 skip_to_space_const.
9828 (skip_to_space_const): Declare.
9829 * common/format.c (parse_format_string): Make "arg" const.
9830 Handle const strings.
9831 * common/format.h (parse_format_string): Make "arg" const.
9832 * gdbserver/ax.c (ax_printf): Make "format" const.
9833 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9834 of the expression string.
9835
f3cec7e6
HZ
98362013-03-12 Hui Zhu <hui@codesourcery.com>
9837
9838 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9839
9df7235c
HZ
98402013-03-12 Yao Qi <yao@codesourcery.com>
9841 Hui Zhu <hui@codesourcery.com>
9842
9843 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9844 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9845 DW_OP_deref_size.
9846
82d049ab
PH
98472013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9848
5f8e0b8f
MF
9849 * ada-lex.l (rules): Only recognize 'thread' as a
9850 delimiter when followed by numerals, as for c-exp.y.
9851 Use new rewind_to_char function to rewind the input for
9852 expression-delimiting tokens.
9853 (rewind_to_char): New function.
82d049ab 9854
8c1fb155
JK
98552013-03-11 Pedro Alves <palves@redhat.com>
9856 Jan Kratochvil <jan.kratochvil@redhat.com>
9857
9858 * configure: Regenerate.
9859 * configure.ac (check dynamic export flag): Link python test with
9860 $PYTHON_LIBS.
9861
cc81e1c6
DE
98622013-03-11 Doug Evans <dje@google.com>
9863 Keith Seitz <keiths@redhat.com>
9864
9865 * linespec.c (find_linespec_symbols): Call find_function_symbols
9866 first, and then call lookup_prefix_sym/find_method.
9867
39086a0e
PA
98682013-03-11 Pedro Alves <palves@redhat.com>
9869
9870 * charset.c (convert_between_encodings): Don't cast between
9871 different pointer to pointer types. Instead, make the 'inp' local
9872 be of the type iconv expects.
9873 (wchar_iterate): Don't cast between different pointer to pointer
9874 types. Instead, use new pointer local of the type iconv expects.
9875 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9876 Add new local of type char pointer, and use it to get a
9877 char/string view of the byte buffer, instead of casting between
9878 pointer to pointer types.
9879
90585175
HAQ
98802013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9881
9882 * remote.c (remote_set_trace_buffer_size): Move != operator
9883 to the start of next line to fix an ARI warning.
9884
59ea5688
MM
98852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9886
9887 * NEWS: Add record changes.
9888
946287b7
MM
98892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9890
9891 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9892 the instruction history disassembly.
9893 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9894 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9895
afedecd3
MM
98962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9897
9898 * Makefile.in (SFILES): Add record-btrace.c
9899 (COMMON_OBS): Add record-btrace.o
9900 * record-btrace.c: New.
9901 * objfiles.c: Include btrace.h.
9902 (free_objfile): call btrace_free_objfile.
9903
15984c13
MM
99042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9905
9906 * target.c (target_call_history, target_call_history_from,
9907 target_call_history_range): New.
9908 * target.h (target_ops) <to_call_history, to_call_history_from,
9909 to_call_history_range>: New fields.
9910 (target_call_history, target_call_history_from,
9911 target_call_history_range): New declaration.
9912 * record.c (get_call_history_modifiers, cmd_record_call_history,
9913 record_call_history_size): New.
9914 (_initialize_record): Add the "record function-call-history" command.
9915 Add "set/show record function-call-history-size" commands.
9916 * record.h (record_print_flag): New.
9917
67c86d06
MM
99182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9919
9920 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9921 to_insn_history_range>: New fields.
9922 (target_insn_history): New.
9923 (target_insn_history_from): New.
9924 (target_insn_history_range): New.
9925 * target.c (target_insn_history): New.
9926 (target_insn_history_from): New.
9927 (target_insn_history_range): New.
9928 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9929 (record_insn_history_size): New.
9930 (get_insn_number): New.
9931 (get_context_size): New.
9932 (no_chunk): New.
9933 (get_insn_history_modifiers): New.
9934 (cmd_record_insn_history): New.
9935 (_initialize_record): Add "set/show record instruction-history-size"
9936 command. Add "record instruction-history" command.
9937
7c1687a9
MM
99382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9939
9940 * record.h (record_disconnect): New.
9941 (record_detach): New.
9942 (record_mourn_inferior): New.
9943 (record_kill): New.
9944 * record-full.c (record_disconnect, record_detach,
9945 record_mourn_inferior, record_kill): Move to...
9946 * record.c: ...here.
9947 (DEBUG): New.
9948 (record_stop): New.
9949 (record_unpush): New.
9950 (cmd_record_stop): Call record_stop. Replace unpush_target
9951 call with record_unpush call.
9952 (record_disconnect, record_detach): Assert that the target
9953 is of record stratum. Call record_unpush, record_stop, and
9954 DEBUG.
9955 (record_mourn_inferior, record_kill): Assert that the target
9956 is of record stratum. Call record_unpush and DEBUG.
9957
25ea693b
MM
99582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9959
9960 * record-full.h, record-full.c (record_memory_query): Rename
9961 to ...
9962 (record_full_memory_query): ...this. Update all users.
9963 (record_arch_list_add_reg): Rename to ...
9964 (record_full_arch_list_add_reg): ...this. Update all users.
9965 (record_arch_list_add_mem): Rename to ...
9966 (record_full_arch_list_add_mem): ...this. Update all users.
9967 (record_arch_list_add_end): Rename to ...
9968 (record_full_arch_list_add_end): ...this. Update all users.
9969 (record_gdb_operation_disable_set): Rename to ...
9970 (record_full_gdb_operation_disable_set): ...this.
9971 Update all users.
9972
88d1aa9d
MM
99732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9974
9975 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9976 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9977 (RECORD_IS_REPLAY): Renamed to ...
9978 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9979 (RECORD_FILE_MAGIC): Renamed to ...
9980 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9981 (record_mem_entry): Renamed to ...
9982 (record_full_mem_entry): ... this. Updated all users.
9983 (record_reg_entry): Renamed to ...
9984 (record_full_reg_entry): ... this. Updated all users.
9985 (record_end_entry): Renamed to ...
9986 (record_full_end_entry): ... this. Updated all users.
9987 (record_type) <record_end, record_reg, record_mem>: Renamed
9988 to ...
9989 (record_full_type) <record_full_end, record_full_reg,
9990 record_full_mem>: ... this. Updated all users.
9991 (record_entry): Renamed to ...
9992 (record_full_entry): ... this. Updated all users.
9993 (record_core_buf_entry): Renamed to ...
9994 (record_full_core_buf_entry): ... this. Updated all users.
9995 (record_core_regbuf): Renamed to ...
9996 (record_full_core_regbuf): ... this. Updated all users.
9997 (record_core_start): Renamed to ...
9998 (record_full_core_start): ... this. Updated all users.
9999 (record_core_end): Renamed to ...
10000 (record_full_core_end): ... this. Updated all users.
10001 (record_core_buf_list): Renamed to ...
10002 (record_full_core_buf_list): ... this. Updated all users.
10003 (record_first): Renamed to ...
10004 (record_full_first): ... this. Updated all users.
10005 (record_list): Renamed to ...
10006 (record_full_list): ... this. Updated all users.
10007 (record_arch_list_head): Renamed to ...
10008 (record_full_arch_list_head): ... this. Updated all users.
10009 (record_arch_list_tail): Renamed to ...
10010 (record_full_arch_list_tail): ... this. Updated all users.
10011 (record_stop_at_limit): Renamed to ...
10012 (record_full_stop_at_limit): ... this. Updated all users.
10013 (record_insn_max_num): Renamed to ...
10014 (record_full_insn_max_num): ... this. Updated all users.
10015 (record_insn_num): Renamed to ...
10016 (record_full_insn_num): ... this. Updated all users.
10017 (record_insn_count): Renamed to ...
10018 (record_full_insn_count): ... this. Updated all users.
10019 (record_ops): Renamed to ...
10020 (record_full_ops): ... this. Updated all users.
10021 (record_core_ops): Renamed to ...
10022 (record_full_core_ops): ... this. Updated all users.
10023 (set_record_cmdlist): Renamed to ...
10024 (set_record_full_cmdlist): ... this. Updated all users.
10025 (show_record_cmdlist): Renamed to ...
10026 (show_record_full_cmdlist): ... this. Updated all users.
10027 (record_cmdlist): Renamed to ...
10028 (record_full_cmdlist): ... this. Updated all users.
10029 (record_beneath_to_resume_ops): Renamed to ...
10030 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10031 (record_beneath_to_resume): Renamed to ...
10032 (record_full_beneath_to_resume): ... this. Updated all users.
10033 (record_beneath_to_wait_ops): Renamed to ...
10034 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10035 (record_beneath_to_wait): Renamed to ...
10036 (record_full_beneath_to_wait): ... this. Updated all users.
10037 (record_beneath_to_store_registers_ops): Renamed to ...
10038 (record_full_beneath_to_store_registers_ops): ... this.
10039 Updated all users.
10040 (record_beneath_to_store_registers): Renamed to ...
10041 (record_full_beneath_to_store_registers): ... this.
10042 Updated all users.
10043 (record_beneath_to_xfer_partial_ops): Renamed to ...
10044 (record_full_beneath_to_xfer_partial_ops): ... this.
10045 Updated all users.
10046 (record_beneath_to_xfer_partial): Renamed to ...
10047 (record_full_beneath_to_xfer_partial): ... this.
10048 Updated all users.
10049 (record_beneath_to_insert_breakpoint): Renamed to ...
10050 (record_full_beneath_to_insert_breakpoint): ... this.
10051 Updated all users.
10052 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10053 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10054 Updated all users.
10055 (record_beneath_to_stopped_data_address): Renamed to ...
10056 (record_full_beneath_to_stopped_data_address): ... this.
10057 Updated all users.
10058 (record_beneath_to_async): Renamed to ...
10059 (record_full_beneath_to_async): ... this. Updated all users.
10060 (record_goto_insn): Renamed to ...
10061 (record_full_goto_insn): ... this. Updated all users.
10062 (record_save): Renamed to ...
10063 (record_full_save): ... this. Updated all users.
10064 (record_reg_alloc): Renamed to ...
10065 (record_full_reg_alloc): ... this. Updated all users.
10066 (record_reg_release): Renamed to ...
10067 (record_full_reg_release): ... this. Updated all users.
10068 (record_mem_alloc): Renamed to ...
10069 (record_full_mem_alloc): ... this. Updated all users.
10070 (record_mem_release): Renamed to ...
10071 (record_full_mem_release): ... this. Updated all users.
10072 (record_end_alloc): Renamed to ...
10073 (record_full_end_alloc): ... this. Updated all users.
10074 (record_end_release): Renamed to ...
10075 (record_full_end_release): ... this. Updated all users.
10076 (record_entry_release): Renamed to ...
10077 (record_full_entry_release): ... this. Updated all users.
10078 (record_list_release): Renamed to ...
10079 (record_full_list_release): ... this. Updated all users.
10080 (record_list_release_following): Renamed to ...
10081 (record_full_list_release_following): ... this.
10082 Updated all users.
10083 (record_list_release_first): Renamed to ...
10084 (record_full_list_release_first): ... this. Updated all users.
10085 (record_arch_list_add): Renamed to ...
10086 (record_full_arch_list_add): ... this. Updated all users.
10087 (record_get_loc): Renamed to ...
10088 (record_full_get_loc): ... this. Updated all users.
10089 (record_check_insn_num): Renamed to ...
10090 (record_full_check_insn_num): ... this. Updated all users.
10091 (record_arch_list_cleanups): Renamed to ...
10092 (record_full_arch_list_cleanups): ... this. Updated all users.
10093 (record_message): Renamed to ...
10094 (record_full_message): ... this. Updated all users.
10095 (record_message_wrapper): Renamed to ...
10096 (record_full_message_wrapper): ... this. Updated all users.
10097 (record_message_wrapper_safe): Renamed to ...
10098 (record_full_message_wrapper_safe): ... this. Updated all users.
10099 (record_gdb_operation_disable): Renamed to ...
10100 (record_full_gdb_operation_disable): ... this. Updated all users.
10101 (record_hw_watchpoint): Renamed to ...
10102 (record_full_hw_watchpoint): ... this. Updated all users.
10103 (record_exec_insn): Renamed to ...
10104 (record_full_exec_insn): ... this. Updated all users.
10105 (record_restore): Renamed to ...
10106 (record_full_restore): ... this. Updated all users.
10107 (record_async_inferior_event_token): Renamed to ...
10108 (record_full_async_inferior_event_token): ... this.
10109 Updated all users.
10110 (record_async_inferior_event_handler): Renamed to ...
10111 (record_full_async_inferior_event_handler): ... this.
10112 Updated all users.
10113 (record_core_open_1): Renamed to ...
10114 (record_full_core_open_1): ... this. Updated all users.
10115 (record_open_1): Renamed to ...
10116 (record_full_open_1): ... this. Updated all users.
10117 (record_open): Renamed to ...
10118 (record_full_open): ... this. Updated all users.
10119 (record_close): Renamed to ...
10120 (record_full_close): ... this. Updated all users.
10121 (record_resume_step): Renamed to ...
10122 (record_full_resume_step): ... this. Updated all users.
10123 (record_resumed): Renamed to ...
10124 (record_full_resumed): ... this. Updated all users.
10125 (record_execution_dir): Renamed to ...
10126 (record_full_execution_dir): ... this. Updated all users.
10127 (record_resume): Renamed to ...
10128 (record_full_resume): ... this. Updated all users.
10129 (record_get_sig): Renamed to ...
10130 (record_full_get_sig): ... this. Updated all users.
10131 (record_sig_handler): Renamed to ...
10132 (record_full_sig_handler): ... this. Updated all users.
10133 (record_wait_cleanups): Renamed to ...
10134 (record_full_wait_cleanups): ... this. Updated all users.
10135 (record_wait_1): Renamed to ...
10136 (record_full_wait_1): ... this. Updated all users.
10137 (record_wait): Renamed to ...
10138 (record_full_wait): ... this. Updated all users.
10139 (record_stopped_by_watchpoint): Renamed to ...
10140 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10141 (record_disconnect): Renamed to ...
10142 (record_full_disconnect): ... this. Updated all users.
10143 (record_detach): Renamed to ...
10144 (record_full_detach): ... this. Updated all users.
10145 (record_mourn_inferior): Renamed to ...
10146 (record_full_mourn_inferior): ... this. Updated all users.
10147 (record_kill): Renamed to ...
10148 (record_full_kill): ... this. Updated all users.
10149 (record_stopped_data_address): Renamed to ...
10150 (record_full_stopped_data_address): ... this. Updated all users.
10151 (record_registers_change): Renamed to ...
10152 (record_full_registers_change): ... this. Updated all users.
10153 (record_store_registers): Renamed to ...
10154 (record_full_store_registers): ... this. Updated all users.
10155 (record_xfer_partial): Renamed to ...
10156 (record_full_xfer_partial): ... this. Updated all users.
10157 (record_breakpoint): Renamed to ...
10158 (record_full_breakpoint): ... this. Updated all users.
10159 (record_breakpoint_p): Renamed to ...
10160 (record_full_breakpoint_p): ... this. Updated all users.
10161 (record_breakpoints): Renamed to ...
10162 (record_full_breakpoints): ... this. Updated all users.
10163 (record_sync_record_breakpoints): Renamed to ...
10164 (record_full_sync_record_breakpoints): ... this.
10165 Updated all users.
10166 (record_init_record_breakpoints): Renamed to ...
10167 (record_full_init_record_breakpoints): ... this.
10168 Updated all users.
10169 (record_insert_breakpoint): Renamed to ...
10170 (record_full_insert_breakpoint): ... this. Updated all users.
10171 (record_remove_breakpoint): Renamed to ...
10172 (record_full_remove_breakpoint): ... this. Updated all users.
10173 (record_can_execute_reverse): Renamed to ...
10174 (record_full_can_execute_reverse): ... this. Updated all users.
10175 (record_get_bookmark): Renamed to ...
10176 (record_full_get_bookmark): ... this. Updated all users.
10177 (record_goto_bookmark): Renamed to ...
10178 (record_full_goto_bookmark): ... this. Updated all users.
10179 (record_async): Renamed to ...
10180 (record_full_async): ... this. Updated all users.
10181 (record_can_async_p): Renamed to ...
10182 (record_full_can_async_p): ... this. Updated all users.
10183 (record_is_async_p): Renamed to ...
10184 (record_full_is_async_p): ... this. Updated all users.
10185 (record_execution_direction): Renamed to ...
10186 (record_full_execution_direction): ... this. Updated all users.
10187 (record_info): Renamed to ...
10188 (record_full_info): ... this. Updated all users.
10189 (record_delete): Renamed to ...
10190 (record_full_delete): ... this. Updated all users.
10191 (record_is_replaying): Renamed to ...
10192 (record_full_is_replaying): ... this. Updated all users.
10193 (record_goto_entry): Renamed to ...
10194 (record_full_goto_entry): ... this. Updated all users.
10195 (record_goto_begin): Renamed to ...
10196 (record_full_goto_begin): ... this. Updated all users.
10197 (record_goto_end): Renamed to ...
10198 (record_full_goto_end): ... this. Updated all users.
10199 (record_goto): Renamed to ...
10200 (record_full_goto): ... this. Updated all users.
10201 (init_record_ops): Renamed to ...
10202 (init_record_full_ops): ... this. Updated all users.
10203 (record_core_resume): Renamed to ...
10204 (record_full_core_resume): ... this. Updated all users.
10205 (record_core_kill): Renamed to ...
10206 (record_full_core_kill): ... this. Updated all users.
10207 (record_core_fetch_registers): Renamed to ...
10208 (record_full_core_fetch_registers): ... this. Updated all users.
10209 (record_core_prepare_to_store): Renamed to ...
10210 (record_full_core_prepare_to_store): ... this. Updated all users.
10211 (record_core_store_registers): Renamed to ...
10212 (record_full_core_store_registers): ... this. Updated all users.
10213 (record_core_xfer_partial): Renamed to ...
10214 (record_full_core_xfer_partial): ... this. Updated all users.
10215 (record_core_insert_breakpoint): Renamed to ...
10216 (record_full_core_insert_breakpoint): ... this. Updated all users.
10217 (record_core_remove_breakpoint): Renamed to ...
10218 (record_full_core_remove_breakpoint): ... this. Updated all users.
10219 (record_core_has_execution): Renamed to ...
10220 (record_full_core_has_execution): ... this. Updated all users.
10221 (init_record_core_ops): Renamed to ...
10222 (init_record_full_core_ops): ... this. Updated all users.
10223 (cmd_record_restore): Renamed to ...
10224 (cmd_record_full_restore): ... this. Updated all users.
10225 (record_save_cleanups): Renamed to ...
10226 (record_full_save_cleanups): ... this. Updated all users.
10227 (cmd_record_start): Renamed to ...
10228 (cmd_record_full_start): ... this. Updated all users.
10229 (set_record_insn_max_num): Renamed to ...
10230 (set_record_full_insn_max_num): ... this. Updated all users.
10231 (set_record_command): Renamed to ...
10232 (set_record_full_command): ... this. Updated all users.
10233 (show_record_command): Renamed to ...
10234 (show_record_full_command): ... this. Updated all users.
10235 (_initialize_record): Renamed to ...
10236 (_initialize_record_full): ... this. Updated all users.
10237
d02ed0bb
MM
102382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10239
10240 * record.h: Split into this and ...
10241 * record-full.h: ... this.
10242 * record.c: Split into this and ...
10243 * record-full.c: ... this.
10244 * target.h (target_ops): Add new fields to_info_record,
10245 to_save_record, to_delete_record, to_record_is_replaying,
10246 to_goto_record_begin, to_goto_record_end, to_goto_record.
10247 (target_info_record): New.
10248 (target_save_record): New.
10249 (target_supports_delete_record): New.
10250 (target_delete_record): New.
10251 (target_record_is_replaying): New.
10252 (target_goto_record_begin): New.
10253 (target_goto_record_end): New.
10254 (target_goto_record): New.
10255 * target.c (target_info_record): New.
10256 (target_save_record): New.
10257 (target_supports_delete_record): New.
10258 (target_delete_record): New.
10259 (target_record_is_replaying): New.
10260 (target_goto_record_begin): New.
10261 (target_goto_record_end): New.
10262 (target_goto_record): New.
10263 * record.h: Declare struct cmd_list_element.
10264 (record_cmdlist): New declaration.
10265 (set_record_cmdlist): New declaration.
10266 (show_record_cmdlist): New declaration.
10267 (info_record_cmdlist): New declaration.
10268 (cmd_record_goto): New declaration.
10269 * record.c: Remove unnecessary includes.
10270 Include inferior.h.
10271 (cmd_record_goto): Remove declaration.
10272 (record_cmdlist): Now extern. Initialize.
10273 (set_record_cmdlist): Now extern. Initialize.
10274 (show_record_cmdlist): Now extern. Initialize.
10275 (info_record_cmdlist): Now extern. Initialize.
10276 (find_record_target): New.
10277 (require_record_target): New.
10278 (cmd_record_start): Update.
10279 (cmd_record_delete): Remove target-specific code.
10280 Call target_delete_record.
10281 (cmd_record_stop): Unpush any record target.
10282 (set_record_insn_max_num): Move to record-full.c
10283 (set_record_command): Add comment.
10284 (show_record_command): Add comment.
10285 (info_record_command): Update comment.
10286 Remove target-specific code.
10287 Call the record target's to_info_record.
10288 (cmd_record_start): New.
10289 (cmd_record_goto): Now extern.
10290 Remove target-specific code.
10291 Call target_goto_begin, target_goto_end, or target_goto.
10292 (_initialize_record): Move record target ops initialization to
10293 record-full.c.
10294 Change "record" command help text.
10295 Move "record restore", "record set", and "record show" commands to
10296 record-full.c.
10297 * Makefile.in (SFILES): Add record-full.c.
10298 (HFILES_NO_SRCDIR): Add record-full.h.
10299 (COMMON_OBS): Add record-full.o.
10300 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10301 * arm-tdep.c: Include record-full.h.
10302 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10303 * i386-tdep.c: Include record-full.h.
10304 * infrun.c: Include record-full.h.
10305 * linux-record.c: Include record-full.h.
10306 * moxie-tdep.c: Include record-full.h.
10307 * record-full.c: Include record-full.h.
10308 Change module comment.
10309 (set_record_full_cmdlist): New.
10310 (show_record_full_cmdlist): New.
10311 (record_full_cmdlist): New.
10312 (record_goto_insn): New declaration.
10313 (record_save): New declaration.
10314 (record_check_insn_num): Change query string.
10315 (record_info): New.
10316 (record_delete): New.
10317 (record_is_replaying): New.
10318 (record_goto_entry): New.
10319 (record_goto_begin): New.
10320 (record_goto_end): New.
10321 (record_goto): New.
10322 (init_record_ops): Update.
10323 (init_record_core_ops): Update.
10324 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10325 (cmd_record_start): New.
10326 (set_record_insn_max_num): Moved from record.c
10327 (set_record_full_command): New.
10328 (show_record_full_command): New.
10329 (_initialize_record_full): New.
10330
b48d48eb
MM
103312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10332
10333 * target.h (add_deprecated_target_alias): New.
10334 * target.c (add_deprecated_target_alias): New.
10335
a950d57c
MM
103362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10337
10338 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10339 and signal.h.
10340 (linux_supports_btrace): Add kernel and
10341 cpuid check.
10342 (kernel_supports_btrace): New function.
10343 (cpu_supports_btrace): New function.
10344 (intel_supports_btrace): New function.
10345
9accd112
MM
103462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10347
10348 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10349 * remote.c: Include btrace.h.
10350 (struct btrace_target_info): New struct.
10351 (remote_supports_btrace): New function.
10352 (send_Qbtrace): New function.
10353 (remote_enable_btrace): New function.
10354 (remote_disable_btrace): New function.
10355 (remote_teardown_btrace): New function.
10356 (remote_read_btrace): New function.
10357 (init_remote_ops): Add btrace ops.
10358 (enum <unnamed>): Add btrace packets.
10359 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10360 (_initialize_remote): Add packet configuration for branch tracing.
10361
c12a2917
MM
103622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10363
10364 * features/btrace.dtd: New file.
10365 * Makefile.in (XMLFILES): Add btrace.dtd.
10366 * btrace.h (parse_xml_btrace): New declaration.
10367 * btrace.c: Include xml-support.h.
10368 (parse_xml_btrace): New function.
10369 (parse_xml_btrace_block): New function.
10370 (block_attributes): New struct.
10371 (btrace_attributes): New struct.
10372 (btrace_children): New struct.
10373 (btrace_elements): New struct.
10374
3e3aea48
MM
103752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10376
10377 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10378 (amd64_linux_enable_btrace): New.
10379 (amd64_linux_disable_btrace): New.
10380 (amd64_linux_teardown_btrace): New.
10381 (_initialize_amd64_linux_nat): Initialize btrace ops.
10382 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10383 (i386_linux_enable_btrace): New.
10384 (i386_linux_disable_btrace): New.
10385 (i386_linux_teardown_btrace): New.
10386 (_initialize_i386_linux_nat): Initialize btrace ops.
10387 * config/i386/linux.mh: Add linux-btrace.o.
10388 * config/i386/linux64.mh: Add linux-btrace.o.
10389
7c97f91e
MM
103902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10391
10392 * common/linux_btrace.h: New file.
10393 * common/linux_btrace.c: New file.
10394 * Makefile.in (SFILES): Add btrace.c.
10395 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10396 (COMMON_OBS): Add btrace.o.
10397 (linux-btrace.o): New rule.
10398
1999790b 103992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10400
10401 * target.h: Include btrace.h.
10402 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10403 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10404 * target.c (target_supports_btrace): New function.
10405 (target_enable_btrace): New function.
10406 (target_disable_btrace): New function.
10407 (target_teardown_btrace): New function.
10408 (target_read_btrace): New function.
10409 * btrace.h: New file.
10410 * btrace.c: New file.
10411 * Makefile.in: Add btrace.c.
10412 * gdbthread.h: Include btrace.h.
10413 (struct thread_info): Add btrace field.
10414 * thread.c: Include btrace.h.
10415 (clear_thread_inferior_resources): Call target_teardown_btrace.
10416 * common/btrace-common.h: New file.
10417
61a31a67
JK
104182013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10419
10420 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10421 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10422 kill_status to outer block.
10423
05c56a9d
JK
104242013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10425
10426 Fix entry-values if the callee called a noreturn function.
10427 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10428 get_frame_address_in_block. Add new comment.
10429
9112db09
JK
104302013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10431
10432 Fix entry-values in C++ across CUs.
10433 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10434 lookup_minimal_symbol. Add a comment.
10435 * dwarf2read.c
10436 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10437 DW_AT_linkage_name.
10438
9b67fcec
YQ
104392013-03-08 Yao Qi <yao@codesourcery.com>
10440
10441 * tracepoint.c (_initialize_tracepoint): Indent the code.
10442
6221be90
PA
104432013-03-08 Pedro Alves <palves@redhat.com>
10444
10445 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10446 (parse_find_args, find_command): Change type of pattern buffer
10447 locals to 'gdb_byte *'.
10448
be9a119c 104492013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10450 Hafiz Abid Qadeer <abidh@codesourcery.com>
10451
10452 * NEWS: Mention set and show trace-buffer-size commands.
10453 Mention new packet.
10454 * target.h (struct target_ops): New method
10455 to_set_trace_buffer_size.
10456 (target_set_trace_buffer_size): New macro.
10457 * target.c (update_current_target): Set up new method.
10458 * tracepoint.c (trace_buffer_size): New global.
10459 (start_tracing): Send it to the target.
10460 (set_trace_buffer_size): New function.
10461 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10462 * remote.c (remote_set_trace_buffer_size): New function.
10463 (_initialize_remote): Use it.
10464 (QTBuffer:size) New remote command.
10465 (PACKET_QTBuffer_size): New enum.
10466 (remote_protocol_features): Add an entry for
10467 PACKET_QTBuffer_size.
10468
7da3ab79
TT
104692013-03-08 Tom Tromey <tromey@redhat.com>
10470
10471 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10472 variable.
10473
0c1f71e7
PA
104742013-03-07 Pedro Alves <palves@redhat.com>
10475
10476 * target.c (target_read_stralloc, target_fileio_read_alloc):
10477 *Cast pointer to 'gdb_byte *' in target call.
10478
c8af03a2
PA
104792013-03-07 Pedro Alves <palves@redhat.com>
10480
10481 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10482 call.
10483
529480d0
KS
104842013-03-07 Keith Seitz <keiths@redhat.com>
10485
10486 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10487 (trace_pass_command): Likewise.
10488 * cli/cli-cmds.c: Include cli/cli-utils.h.
10489 (source_command): Use skip-spaces.
10490 (disassemble_command): Likewise.
10491 * findcmd.c: Include cli/cli-utils.h.
10492 (parse_find_args): Use skip_spaces.
10493 * go32-nat.c: Include cli/cli-utils.h.
10494 (go32_sldt): Use skip_spaces.
10495 (go32_sgdt): Likewise.
10496 (go32_sidt): Likewise.
10497 (go32_pde): Likewise.
10498 (go32_pte): Likewise.
10499 (go32_pte_for_address): Likewise.
10500 * infcmd.c: Include cli/cli-utils.h.
10501 (registers_info): Use skip_spaces.
10502 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10503 (linux_info_proc): Likewise.
10504 * linux-thread-db.c: Include cli/cli-utils.h.
10505 (info_auto_load_libthread_db): Use skip_spaces_const.
10506 * m32r-rom.c: Include cli/cli-utils.h.
10507 (m32r_upload_command): Use skip_spaces.
10508 * maint.c: Include cli/cli-utils.h.
10509 (maintenance_translate_address): Use skip_spaces.
10510 * mi/mi-parse.c: Include cli/cli-utils.h.
10511 (mi_parse_argv): Use skip_spaces.
10512 (mi_parse): Likewise.
10513 * minsyms.c: Include cli/cli-utils.h.
10514 (msymbol_hash_iw): Use skip_spaces_const.
10515 * objc-lang.c: Include cli/cli-utils.h.
10516 (parse_selector): Use skip_spaces.
10517 (parse_method): Likewise.
10518 * python/python.c: Include cli/cli-utils.h.
10519 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10520 (python_command)[HAVE_PYTHON]: Likewise.
10521 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10522 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10523 (m32r_load): Use skip_spaces.
10524 * serial.c: Include cli/cli-utils.h.
10525 (serial_open): Use skip_spaces_const.
10526 * stack.c: Include cli/cli-utils.h.
10527 (parse_frame_specification_1): Use skip_spaces_const.
10528 * symfile.c: Include cli/cli-utils.h.
10529 (set_ext_lang_command): Use skip_spaces.
10530 * symtab.c: Include cli/cli-utils.h.
10531 (rbreak_command): Use skip_spaces.
10532 * thread.c (thread_name_command): Use skip_spaces.
10533 * tracepoint.c (validate_actionline): Use skip_spaces.
10534 (encode_actions_1): Likewise.
10535 (trace_find_range_command): Likewise.
10536 (trace_find_outside_command): Likewise.
10537 (trace_dump_actions): Likewise.
10538
ac91cd70
PA
105392013-03-07 Pedro Alves <palves@redhat.com>
10540
10541 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10542 * expprint.c (print_subexp_standard): Likewise.
10543 * utils.c (host_char_to_target): Likewise.
10544 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10545 * varobj.c (value_get_print_value): Change type of local to char*.
10546 Cast it gdb_byte * in call to language printer.
10547
2898e560
PA
105482013-03-07 Pedro Alves <palves@redhat.com>
10549
10550 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10551 gdb_byte *'.
10552 (make_wchar_iterator): Remove cast to char*.
10553 (wchar_iterate): Change type of local.
10554
a09b4448
PA
105552013-03-07 Pedro Alves <palves@redhat.com>
10556
10557 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10558 for 'regcache->register_status'.
10559
20ced3e4
PA
105602013-03-07 Pedro Alves <palves@redhat.com>
10561
c2d6a675 10562 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10563 int.
10564
fe106009
PA
105652013-03-07 Pedro Alves <palves@redhat.com>
10566
10567 * stap-probe.c (handle_stap_probe): Add cast to char*.
10568
8ac2c12b
PA
105692013-03-07 Pedro Alves <palves@redhat.com>
10570
10571 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10572 RECORD_MSGRCV>: Pass a signed variable to
10573 regcache_raw_read_signed, instead of an unsigned one.
10574
99f0a309
PA
105752013-03-07 Pedro Alves <palves@redhat.com>
10576
10577 * remote-notif.c (notif_debug): Change type to int.
10578 * remote-notif.h (notif_debug): Likewise.
10579
964b8317
PA
105802013-03-07 Pedro Alves <palves@redhat.com>
10581
10582 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10583
f0cc8ad4
PA
105842013-03-07 Pedro Alves <palves@redhat.com>
10585
10586 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10587 * remote.h (hex2bin, bin2hex): ... here.
10588 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10589
77dec115
EZ
105902013-03-07 Eli Zaretskii <eliz@gnu.org>
10591
10592 * utils.c (initialize_utils): Improve doc strings of "set/show
10593 width", "set/show height", and "set/show pagination".
10594
741d92cf
KS
105952013-03-06 Keith Seitz <keiths@redhat.com>
10596
10597 * ax-gdb.c (gen_printf): Make FORMAT const.
10598 * ax-gdb.h (gen_printf): Likewise.
10599 * ax-general.c (ax_string): Make STR const.
10600 * ax.h (ax_string): Likewise.
10601
7b6c814e
DE
106022013-03-06 Doug Evans <dje@google.com>
10603
10604 * elfread.c (elf_symfile_read): Move debugging printf to more
10605 logical location.
10606
634334ab
PA
106072013-03-06 Pedro Alves <palves@redhat.com>
10608
10609 * python/py-utils.c (target_string_to_unicode): Delete function.
10610 * python/python-internal.h (target_string_to_unicode): Delete
10611 declaration.
10612
e482a1a7
PM
106132013-03-06 Pierre Muller <muller@sourceware.org>
10614
10615 * linespec.c (get_current_search_block): ARI fix, use (void)
10616 for empty parameter list.
10617
4eeaa230
DE
106182013-03-05 Doug Evans <dje@google.com>
10619
10620 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10621 of old ada_lookup_symbol_list. In !full_search case, don't
10622 search superblocks.
10623 (ada_lookup_symbol_list): Delete arg full_search, all callers
10624 updated. Call ada_lookup_symbol_list_worker.
10625 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10626 * ada-lang.h (ada_lookup_symbol_list): Update.
10627 * language.h (language_defn): Update comment for
10628 la_iterate_over_symbols.
10629 * linespec.c (iterate_over_file_blocks): New function.
10630 (iterate_over_all_matching_symtabs): Call it.
10631 (lookup_prefix_sym): Ditto.
10632 (get_current_search_block): New function.
10633 (get_search_block): Delete.
10634 (find_label_symbols): Call get_current_search_block.
10635 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10636 * symtab.c (iterate_over_symbols): Don't search superblocks.
10637
b69b1fb1
YQ
106382013-03-05 Yao Qi <yao@codesourcery.com>
10639
10640 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10641 parameter VAR's type from "unsigned int" to "int".
10642 * command.h (var_zuinteger_unlimited): Update its comments.
10643 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10644
3c095f49
CV
106452013-03-05 Corinna Vinschen <vinschen@redhat.de>
10646
10647 * NEWS: Mention new target x86_64-*-cygwin*.
10648
b5b0b0af
CV
106492013-03-05 Corinna Vinschen <vinschen@redhat.de>
10650
10651 * configure.host: Add x86_64-*-cygwin* as host.
10652 * configure.tgt: Add x86_64-*-cygwin* as target.
10653 * config/i386/cygwin64.mh: New file.
10654
f6f99966
JK
106552013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10656
10657 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10658
33f448b1
JK
106592013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10660
10661 * linespec.c (struct linespec_canonical_name): New.
10662 (struct linespec_state): Change canonical_names type to it.
10663 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10664 xrealloc element size. Initialize the different CANONICAL fields.
10665 (canonical_to_fullform): New.
10666 (filter_results): Use it. Add variables canonical, fullform and
10667 cleanup.
10668 (struct decode_line_2_item, decode_line_2_compare_items): New.
10669 (decode_line_2): Remove variables iter and item_names, add variables
10670 items and items_count. Modify the code for these new variables.
10671
feb14725
CV
106722013-03-04 Corinna Vinschen <vinschen@redhat.com>
10673
10674 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10675 calling do_cleanup.
10676
e83b17ba
HZ
106772013-03-04 Luis Machado <lgustavo@codesourcery.com>
10678
10679 * tracepoint.c (build_traceframe_info): Add code for byte order.
10680
a2d13a0d
KB
106812013-03-02 Kevin Buettner <kevinb@redhat.com>
10682
8dddcae8
KB
10683 * v850-tdep.c: (v850e2_register_name): Revise system register
10684 names to match current V850E2M architecture specifications.
10685 Update register number enum comments too.
f5aee5ee 10686
d79e58d8
JW
106872013-03-01 Jiong Wang <jiwang@tilera.com>
10688 Pedro Alves <palves@redhat.com>
10689
10690 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10691 to END_ADDR.
10692 (tilegx_skip_prologue): Limit prologue analysis to section end.
10693
c4be5165
JK
106942013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10695
10696 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10697 use it.
10698
e362b510
PA
106992013-03-01 Pedro Alves <palves@redhat.com>
10700
10701 Use gdb_byte for bytes from the program being debugged.
10702
10703 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10704 Change type of local 'buf' to gdb_byte.
10705 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10706 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10707 * cris-tdep.c (cris_sigcontext_addr)
10708 (cris_sigtramp_frame_unwind_cache): Likewise.
10709 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10710 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10711 Likewise.
10712 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10713 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10714 (hppa32_hpux_search_dummy_call_sequence)
10715 (hppa_hpux_supply_save_state): Likewise.
10716 * hppa-linux-tdep.c (insns_match_pattern)
10717 (hppa_linux_find_global_pointer): Likewise.
10718 * hppa-tdep.c (hppa_in_function_epilogue_p)
10719 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10720 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10721 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10722 (i386fbsd_collect_uthread): Likewise.
10723 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10724 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10725 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10726 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10727 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10728 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10729 (ia64_libunwind_frame_prev_register)
10730 (ia64_libunwind_sigtramp_frame_this_id)
10731 (ia64_find_global_pointer_from_dynamic_section)
10732 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10733 (ia64_unwind_pc): Likewise.
10734 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10735 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10736 (m68hc11_extract_return_value): Likewise.
10737 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10738 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10739 (mep_get_insn, mep_push_dummy_call): Likewise.
10740 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10741 (mips_linux_in_dynsym_stub): Likewise.
10742 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10743 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10744 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10745 to gdb_byte.
10746 * remote-mips.c (mips_set_register): Likewise.
10747 * remote-sim.c (gdbsim_fetch_register): Likewise.
10748 * score-tdep.c (score7_fetch_inst): Change type of parameter
10749 'memblock' and local 'buf' to gdb_byte.
10750 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10751 Change type of local 'buf' to gdb_byte. Adjust.
10752 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10753 to gdb_byte**.
10754 (score7_analyze_prologue): Change type of 'memblock' and
10755 'memblock_ptr' locals to gdb_byte*.
10756 * sh64-tdep.c (sh64_extract_return_value)
10757 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10758 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10759 * solib-pa64.c (pa64_solib_create_inferior_hook)
10760 (pa64_open_symbol_file_object): Remove local 'buf'.
10761 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10762 (som_open_symbol_file_object): Likewise.
10763 * solib-spu.c (spu_current_sos): Likewise.
10764 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10765 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10766 (spu_store_registers): Likewise.
10767 * target.c (debug_print_register): Likewise.
10768 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10769 * xstormy16-tdep.c (xstormy16_store_return_value)
10770 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10771 (xstormy16_find_jmp_table_entry): Likewise.
10772
75cc61ca 107732013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10774
10775 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10776 (tilegx_gdbarch_init): Install it.
10777
ddb08e9c
TT
107782013-02-28 Tom Tromey <tromey@redhat.com>
10779
10780 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10781 PyLong_Check.
10782
62d7fb51
DE
107832013-02-28 Doug Evans <dje@google.com>
10784
10785 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10786 * python/python.c (gdbpy_find_pc_line): Ditto.
10787
c4a9e8b4
TT
107882013-02-28 Tom Tromey <tromey@redhat.com>
10789
10790 * contrib/excheck.py: New file.
10791 * contrib/exsummary.py: New file.
10792 * contrib/gcc-with-excheck: New file.
10793
7f6a5dde
TT
107942013-02-28 Tom Tromey <tromey@redhat.com>
10795
10796 * python/python.c (gdbpy_print_stack): Call begin_line and
10797 fprintf_filtered inside TRY_CATCH.
10798
9e974e55
TT
107992013-02-28 Tom Tromey <tromey@redhat.com>
10800
10801 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10802 inside TRY_CATCH.
10803
dd5fa3e7
TT
108042013-02-28 Tom Tromey <tromey@redhat.com>
10805
10806 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10807 frame_object_to_frame_info inside TRY_CATCH.
10808
86a3263f
TT
108092013-02-28 Tom Tromey <tromey@redhat.com>
10810
10811 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10812 TRY_CATCH.
10813
81b52a3a
TT
108142013-02-28 Tom Tromey <tromey@redhat.com>
10815
10816 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10817
d50a0ce2
CV
108182013-02-27 Corinna Vinschen <vinschen@redhat.com>
10819
10820 * windows-nat.c: Throughout, fix format strings and casts of
10821 printf-like functions to avoid type related warnings on all
10822 platforms.
10823 (handle_output_debug_string): Fetch context information address
10824 from debug string using string_to_core_addr.
10825
e1f58301
JW
108262013-02-27 Jiong Wang <jiwang@tilera.com>
10827
10828 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10829 * regformats/reg-tilegx32.dat: New.
10830
4fcd89fc
JW
108312013-02-27 Jiong Wang <jiwang@tilera.com>
10832
10833 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10834
748d24e6
JW
108352013-02-27 Jiong Wang <jiwang@tilera.com>
10836
10837 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10838
6c8e944d
YQ
108392013-02-27 Yao Qi <yao@codesourcery.com>
10840 Pedro Alves <palves@redhat.com>
10841
10842 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10843 pc/tp/range/outside, look for the next trace frame instead of
10844 always starting from frame 0.
6c8e944d 10845
acd7db30
AG
108462013-02-26 Anthony Green <green@moxielogic.com>
10847
10848 * configure.tgt: Add support for moxie-*-rtems* target.
10849
025e6dce
PA
108502013-02-25 Pedro Alves <palves@redhat.com>
10851
10852 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10853 warning text.
10854
ca9c94ef
MR
108552013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10856
10857 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10858 if $fp is used as the virtual frame pointer.
10859
24c274a1
AM
108602013-02-23 Alan Modra <amodra@gmail.com>
10861
10862 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10863 symbol size.
10864 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10865 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10866 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10867 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10868
bfada189
JK
108692013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10870
10871 Code cleanup.
10872 * elfread.c (build_id_bfd_get): Make the return type const.
10873 (build_id_verify): Make the check parameter const.
10874 (build_id_to_debug_filename): Make the build_id parameter and variable
10875 data const.
10876 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10877
c0355132
AM
108782013-02-21 Alan Modra <amodra@gmail.com>
10879
10880 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10881
9f44fbc0
SCR
108822013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10883
10884 Add a new method 'disassemble' to gdb.Architecture class.
10885 * python/py-arch.c (archpy_disassmble): Implementation of the
10886 new method gdb.Architecture.disassemble.
10887 (arch_object_methods): Add entry for the new method.
10888
b74ea3eb
JW
108892013-02-20 Jiong Wang <jiwang@tilera.com>
10890
10891 * MAINTAINERS (Write After Approval): Add myself to the list.
10892
61a672f1
PA
108932013-02-19 Pedro Alves <palves@redhat.com>
10894
10895 Garbage collect 'struct monitor_ops'::load_routine.
10896
10897 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10898 * monitor.c (monitor_load): No longer call
10899 current_monitor->load_routine.
10900 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10901 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10902 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10903
40e397df
PA
109042013-02-19 Pedro Alves <palves@redhat.com>
10905
10906 PR gdb/15161
10907
10908 Harmonize with generic_load.
10909
10910 * monitor.c: Include "readline/readline.h".
10911 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10912 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10913 long/strtol for the 'load_offset' local. Error out if no argument
10914 is given or if too many arguments are given. Tilde expand the
10915 passed in file name.
10916
f698ca8e
KT
109172013-02-19 Kai Tietz <ktietz@redhat.com>
10918
10919 PR gdb/15161
10920 * symfile.c (load_section_data): Change type of load_offset
10921 to CORE_ADDR.
10922 (generic_load): User strtoulst instead of strtoul for conversion
10923 of load_offset.
10924
3361b059
WL
109252013-02-19 Jiong Wang <jiwang@tilera.com>
10926
10927 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10928 for return address, "lr" register, saved on stack.
10929 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10930 after we invoke tilegx_analyze_prologue.
10931
3e9d5130
WL
109322013-02-19 Jiong Wang <jiwang@tilera.com>
10933
bb1bcd86
WL
10934 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10935
3361b059 109362013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10937
b74ea3eb 10938 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10939
4aaf2503
WL
109402013-02-19 Jiong Wang <jiwang@tilera.com>
10941
b74ea3eb 10942 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10943 (tilegx_write_pc): New function.
10944 (tilegx_cannot_reference_register): Return zero if REGNO
10945 is TILEGX_FAULTNUM_REGNUM.
10946 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10947 (tilegx_register_name): Add handling of "faultnum" register.
10948 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10949 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10950 handling of TILEGX_FAULTNUM_REGNUM.
10951 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10952
bc23a956
WL
109532013-02-19 Jiong Wang <jiwang@tilera.com>
10954
10955 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10956 should be aligned to 64bit.
bc23a956 10957
42f45f1a
KT
109582013-02-19 Kai Tietz <ktietz@redhat.com>
10959
10960 * windows-nat.c (windows_xfer_memory): Fix debug-output
10961 for LLP64.
10962
6ce4c112
LL
109632013-02-19 Lei Liu <lei.liu2@windriver.com>
10964
10965 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10966 Don't check DSP register number if HAVE_DSP is not set.
10967
30e8ee25
AM
109682013-02-19 Alan Modra <amodra@gmail.com>
10969
10970 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10971 throughout file instead.
10972 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10973 Don't xmalloc return value.
10974 (build_id_verify): Similarly. Don't xfree.
10975 (build_id_to_debug_filename): Update.
10976 (find_separate_debug_file_by_buildid): Update, don't xfree.
10977
4c9ad8c2
TT
109782013-02-18 Tom Tromey <tromey@redhat.com>
10979
10980 PR gdb/15102:
10981 * dwarf2read.c (read_subrange_type): Use result of
10982 'check_typedef'.
10983
983dc440
YQ
109842013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10985
10986 * frame.c: Remove one extra white space after #include
10987 directive.
10988
7fb2b84a
JK
109892013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10990
10991 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10992
edceb2a9
JK
109932013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10994
10995 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10996 and dir commands into an if block.
10997
e81b7af8
TT
109982013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10999
11000 * python/py-breakpoint (struct pybp_code): Use int instead of
11001 enum type_code.
11002
f5911ea1
HAQ
110032013-02-15 Pedro Alves <pedro@codesourcery.com>
11004 Hafiz Abid Qadeer <abidh@codesourcery.com>
11005
11006 * NEWS: Mention new field "trace-file".
11007 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11008 (tfile_open): Record the trace file's filename in the trace
11009 status.
11010 (tfile_files_info): Mention the name of the trace file.
11011 Check the "filename" field explicitely.
11012 (trace_status_command): Explicitely check "filename" field.
11013 (trace_find_command): Ditto.
11014 (trace_find_pc_command): Ditto.
11015 (trace_find_tracepoint_command): Ditto.
11016 (trace_find_line_command): Ditto.
11017 (trace_find_range_command): Ditto.
11018 (trace_find_outside_command): Ditto.
11019 * tracepoint.h (struct trace_status) <from_file>: Rename it
11020 to "filename" and make it hold the trace file's filename
11021 instead of a boolean.
11022 * remote.c (remote_get_trace_status): Initialize "filename"
11023 field with NULL instead of 0.
11024
796cb314
YQ
110252013-02-15 Yao Qi <yao@codesourcery.com>
11026
11027 * remote.c: Fix a typo.
11028
42e79b1d
PM
110292013-02-14 Pierre Muller <muller@sourceware.org>
11030
11031 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11032
baea0dae
PA
110332013-02-14 Pedro Alves <palves@redhat.com>
11034
11035 * utils.c (savestring): Don't #undef it. Move function to
11036 common/common-utils.c.
11037 * common/common-utils.c: Include gdb_string.h.
11038 (savestring): Move here from utils.c.
11039 * common/common-utils.h (savestring): Declare.
11040
57c3b6ed
PA
110412013-02-14 Pedro Alves <palves@redhat.com>
11042
11043 * utils.c (savestring): Rename parameter 'size' to 'len'.
11044
d6c44983
YZ
110452013-02-14 Pedro Alves <palves@redhat.com>
11046 Yufeng Zhang <yufeng.zhang@arm.com>
11047
11048 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11049 (aarch64_inferior_data, struct aarch64_inferior_data):
11050 Delete.
11051 (struct aarch64_process_info): New.
11052 (aarch64_process_list): New global.
11053 (aarch64_find_process_pid, aarch64_add_process)
11054 (aarch64_process_info_get): New functions.
11055 (aarch64_inferior_data_get): Delete.
11056 (aarch64_process_info_get): New function.
11057 (aarch64_forget_process): New function.
11058 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11059 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11060 aarch64_get_debug_reg_state.
11061 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11062 instead of linux_nat_iterate_watchpoint_lwps.
11063 (aarch64_linux_new_fork): New function.
11064 (aarch64_linux_child_post_startup_inferior): Use
11065 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11066 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11067 (aarch64_linux_remove_hw_breakpoint)
11068 (aarch64_handle_aligned_watchpoint)
11069 (aarch64_handle_unaligned_watchpoint)
11070 (aarch64_linux_insert_watchpoint)
11071 (aarch64_linux_remove_watchpoint)
11072 (aarch64_linux_stopped_data_address): Adjust to pass the current
11073 process id to aarch64_debug_reg_state.
11074 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11075 linux_nat_new_fork hook, and aarch64_forget_process as
11076 linux_nat_forget_process hook; remove the call to
11077 register_inferior_data_with_cleanup.
11078
4819b3f8
PA
110792013-02-14 Pedro Alves <palves@redhat.com>
11080
11081 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11082 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11083 lval_memory.
11084
1773c82c
HAQ
110852013-02-14 Pedro Alves <pedro@codesourcery.com>
11086 Hafiz Abid Qadeer <abidh@codesourcery.com>
11087
11088 * tracepoint.h (validate_trace_state_variable_name): Declare.
11089 * tracepoint.c (validate_trace_state_variable_name): New.
11090 (trace_variable_command): Parse the trace state variable's name
11091 without using parse_expression. Do several validations.
11092 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11093 trace state variable's name with parse_expression. Validate it.
11094
53778a97
YQ
110952013-02-14 Yao Qi <yao@codesourcery.com>
11096
11097 * infcmd.c (breakpoint_proceeded): Remove it.
11098
7b3ae3a6
YQ
110992013-02-14 Yao Qi <yao@codesourcery.com>
11100
11101 * tracepoint.c (end_actions_pseudocommand): Make it static.
11102 (while_stepping_pseudocommand): Likewise.
11103 * tracepoint.h (end_actions_pseudocommand): Remove the
11104 declaration.
11105 (while_stepping_pseudocommand): Likewise.
11106
64580925
YQ
111072013-02-14 Yao Qi <yao@codesourcery.com>
11108
11109 * cli/cli-decode.c (help_cmd): Remove the declaration of
11110 "cmdlist".
11111 (help_all): Likewise.
11112
26cb8b7c
PA
111132013-02-13 Pedro Alves <palves@redhat.com>
11114
11115 * amd64-linux-nat.c (update_debug_registers_callback):
11116 Update comment.
11117 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11118 iterate_over_lwps.
11119 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11120 i386_debug_reg_state.
11121 (amd64_linux_new_fork): New function.
11122 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11123 linux_nat_new_fork hook, and i386_forget_process as
11124 linux_nat_forget_process hook.
11125 * i386-linux-nat.c (update_debug_registers_callback):
11126 Update comment.
a8256ea1 11127 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11128 iterate_over_lwps.
11129 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11130 i386_debug_reg_state.
11131 (i386_linux_new_fork): New function.
11132 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11133 linux_nat_new_fork hook, and i386_forget_process as
11134 linux_nat_forget_process hook.
11135 * i386-nat.c (i386_init_dregs): Delete.
11136 (i386_inferior_data, struct i386_inferior_data):
11137 Delete.
11138 (struct i386_process_info): New.
11139 (i386_process_list): New global.
11140 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11141 New functions.
11142 (i386_inferior_data_get): Delete.
11143 (i386_process_info_get): New function.
11144 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11145 (i386_forget_process): New function.
11146 (i386_cleanup_dregs): Rewrite.
11147 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11148 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11149 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11150 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11151 to i386_debug_reg_state.
11152 (i386_use_watchpoints): Don't register inferior data.
11153 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11154 adjust comment.
11155 (i386_forget_process): Declare.
11156 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11157 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11158 New static globals.
11159 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11160 (add_initial_lwp): New, factored out from ...
11161 (add_lwp): ... this. Don't check the number of lwps before
11162 calling linux_nat_new_thread.
11163 (linux_nat_iterate_watchpoint_lwps): Delete.
11164 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11165 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11166 forks and vforks.
11167 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11168 initial lwp.
11169 (linux_nat_kill, linux_nat_mourn_inferior): Call
11170 linux_nat_forget_process.
11171 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11172 (linux_nat_forget_process): New functions.
11173 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11174 type.
11175 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11176 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11177 types.
11178 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11179 (linux_nat_forget_process): New declarations.
11180
11181 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11182 (amd64fbsd_mourn_inferior): New function.
11183 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11184 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11185
5befea72
MS
111862013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11187
55015247
YQ
11188 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11189 Adding _().
5befea72 11190
1d3ffd6b
MS
111912013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11192
11193 * aarch64-linux-nat.c (debug_reg_change_callback)
11194 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11195 %s and phex().
11196
6eb04473
MS
111972013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11198
11199 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11200 with LONGEST.
11201
a016fc87
HAQ
112022013-02-13 Pedro Alves <palves@redhat.com>
11203 Hafiz Abid Qadeer <abidh@codesourcery.com>
11204
11205 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11206
e234dfaf
TT
112072013-02-12 Tom Tromey <tromey@redhat.com>
11208
11209 PR symtab/11464:
11210 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11211 NAME return.
11212 (classify_inner_name): Remove 'first_name' argument, add
11213 'context'. Remove unused variable.
11214 (yylex): Explicitly maintain the context type. Exit loop earlier
11215 if NAME result is seen.
11216
0b1afbb3
PA
112172013-02-12 Pedro Alves <palves@redhat.com>
11218
11219 * amd64-darwin-tdep.c: Add (C) after Copyright.
11220 * cli/cli-cmds.h: Ditto.
11221 * cli/cli-decode.c: Ditto.
11222 * cli/cli-decode.h: Ditto.
11223 * cli/cli-dump.c: Ditto.
11224 * cli/cli-dump.h: Ditto.
11225 * cli/cli-interp.c: Ditto.
11226 * cli/cli-logging.c: Ditto.
11227 * cli/cli-script.c: Ditto.
11228 * cli/cli-script.h: Ditto.
11229 * cli/cli-setshow.c: Ditto.
11230 * cli/cli-setshow.h: Ditto.
11231 * cli/cli-utils.c: Ditto.
11232 * cli/cli-utils.h: Ditto.
11233 * config/alpha/nm-osf3.h: Ditto.
11234 * config/djgpp/djconfig.sh: Ditto.
11235 * config/i386/nm-fbsd.h: Ditto.
11236 * config/i386/nm-i386gnu.h: Ditto.
11237 * config/nm-linux.h: Ditto.
11238 * config/nm-nto.h: Ditto.
11239 * config/rs6000/nm-rs6000.h: Ditto.
11240 * config/sparc/nm-sol2.h: Ditto.
11241 * darwin-nat-info.c: Ditto.
11242 * dfp.c: Ditto.
11243 * dfp.h: Ditto.
11244 * gdb-demangle.h: Ditto.
11245 * i386-darwin-nat.c: Ditto.
11246 * i386-darwin-tdep.c: Ditto.
11247 * linux-fork.h: Ditto.
11248 * m32c-tdep.c: Ditto.
11249 * microblaze-linux-tdep.c: Ditto.
11250 * microblaze-rom.c: Ditto.
11251 * microblaze-tdep.c: Ditto.
11252 * microblaze-tdep.h: Ditto.
11253 * mips-linux-tdep.h: Ditto.
11254 * ppc-ravenscar-thread.c: Ditto.
11255 * ppc-ravenscar-thread.h: Ditto.
11256 * prologue-value.c: Ditto.
11257 * prologue-value.h: Ditto.
11258 * ravenscar-thread.c: Ditto.
11259 * ravenscar-thread.h: Ditto.
11260 * sparc-ravenscar-thread.c: Ditto.
11261 * sparc-ravenscar-thread.h: Ditto.
11262 * tilegx-linux-tdep.c: Ditto.
11263 * unwind_stop_reasons.def: Ditto.
11264 * windows-nat.h: Ditto.
11265 * xtensa-linux-tdep.c: Ditto.
11266 * xtensa-xtregs.c: Ditto.
11267 * regformats/regdat.sh: Ditto.
11268 * regformats/regdef.h: Ditto.
11269
6c01dd94
PA
112702013-02-12 Pedro Alves <palves@redhat.com>
11271
11272 * break-catch-sig.c: Update copyright years.
11273
b65a2bd9
SCR
112742013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11275
11276 Add support for a destructor for ui_out data and use it to
11277 provide a ui_out destructor.
11278 * ui-out.h: Declare the new ui_out destructor.
11279 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11280 * ui-out.c (default_data_destroy): Add a default data destructor
11281 which does nothing.
11282 (default_ui_out_impl): Set the new data_destroy field to
11283 default_data_destroy
11284 (uo_data_destroy): Local function which invokes the data
11285 destructor if present.
11286 (clear_table): Local function which clears the table data of a
11287 ui_out object.
11288 (ui_out_destroy): Public function which frees a ui_out object.
11289 (ui_out_table_end): Use the new clear_table function.
11290 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11291 NULL.
11292 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11293 to NULL.
11294
c2792f5a
DE
112952013-02-11 Doug Evans <dje@google.com>
11296
11297 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11298 (printf_decfloat): New function. Broken out from ui_printf.
11299 Remove unnecessary code to shift the entire format string down.
11300 (printf_pointer): New function.
11301 (ui_printf): Code to print C strings, wide C strings, decfloats,
11302 and pointers moved to separate functions.
11303
d9e98382
SDJ
113042013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11305
11306 * valops.c (value_assign): Handling bitfield offset in
11307 `lval_internalvar_component' case.
11308
4ff3ce77
DE
113092013-02-08 Doug Evans <dje@google.com>
11310
11311 * common/format.c (parse_format_string): Fix whitespace.
11312
901900c4
MGD
113132013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11314
11315 * stack.c (return_command): Work around uninitialized variable
11316 warning.
11317
b5dbc8d4
YZ
113182013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11319
11320 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11321 number of the registers from 36 to 34.
11322
51d66578
MS
113232013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11324
11325 * NEWS: Mention new AArch64 native and target support.
11326
176b1c95
MS
113272013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11328
11329 * MAINTAINERS (Write After Approval): Add myself.
11330
9d19df75
MS
113312013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11332 Marcus Shawcroft <marcus.shawcroft@arm.com>
11333 Nigel Stephens <nigel.stephens@arm.com>
11334 Yufeng Zhang <yufeng.zhang@arm.com>
11335
11336 * aarch64-linux-nat.c: New file.
11337 * config/aarch64/linux.mh: New file.
11338 * configure.host: Add AArch64.
11339 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11340
7e1e0340
DE
113412013-02-07 Doug Evans <dje@google.com>
11342
11343 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11344 disassemble command.
11345
45e25a36
MS
113462013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11347
11348 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11349 set_gdbarch_fetch_tls_load_module_address.
11350
bbfdfe1c
DM
113512013-02-06 David S. Miller <davem@davemloft.net>
11352
11353 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11354 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11355 * value.c (struct_return_convention): New function.
11356 (using_struct_return): Implement in terms of struct_return_convention.
11357 * value.h (struct_return_convention): Declare.
11358 * stack.c (return_command): Allow successful overriding of the return
11359 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11360
bc9abe4a
TT
113612013-02-06 Tom Tromey <tromey@redhat.com>
11362
11363 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11364 outside of TRY_CATCH.
11365
134a2066
YQ
113662013-02-06 Yao Qi <yao@codesourcery.com>
11367
11368 * mi/mi-interp.c: Include "tracepoint.h".
11369 (mi_tsv_modified): Declare.
11370 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11371 (mi_interpreter_init): Call observer_attach_tsv_modified.
11372 (mi_tsv_modified): New.
11373 (mi_tsv_created, mi_tsv_deleted): Update.
11374 * tracepoint.c (trace_variable_command): Call
11375 observer_notify_tsv_modified if the initial value of tsv is
11376 changed.
11377 (delete_trace_state_variable): Call
11378 observer_notify_tsv_deleted earlier.
11379 (trace_variable_command): Caller update.
11380 (create_tsv_from_upload): Likewise.
11381 * observer.sh: Declare "struct trace_state_variable".
11382
11383 * NEWS: Mention the new MI notification "=tsv-modified".
11384
59be2b6a
DE
113852013-02-05 Doug Evans <dje@google.com>
11386
11387 * completer.c (location_completer): Fix typo in comment.
11388
d30113d4
JK
113892013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11390
11391 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11392 ADDRESS sorted.
11393
14ac654f
MS
113942013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11395
11396 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11397 Refactor if statement to avoid trailing || operator.
11398
543bf33d
AT
113992013-02-05 Andreas Tobler <andreast@fgznet.ch>
11400
11401 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11402
dc18f110
AT
114032013-02-04 Andreas Tobler <andreast@fgznet.ch>
11404
11405 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11406 * configure.host: Add powerpc*-*-freebsd* target.
11407 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11408 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11409 * config/powerpc/fbsd.mh: New file.
11410
b3ac9c77
SDJ
114112013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11412 Denys Vlasenko <dvlasenk@redhat.com>
11413 Pedro Alves <palves@redhat.com>
11414
11415 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11416 (struct elf_internal_linux_prpsinfo): Forward declare.
11417 * gdbarch.h, gdbarch.c: Regenerate.
11418 * linux-tdep.c: Include `cli/cli-utils.h'.
11419 (linux_fill_prpsinfo): New function.
11420 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11421 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11422 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11423 depending on gdbarch pointer bitness.
11424 * ppc-linux-tdep.c: Include elf-bfd.h.
11425 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11426 on 32-bit.
11427
176eb98c
MS
114282013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11429 Marcus Shawcroft <marcus.shawcroft@arm.com>
11430 Nigel Stephens <nigel.stephens@arm.com>
11431 Yufeng Zhang <yufeng.zhang@arm.com>
11432
11433 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11434
cf0dbd6f
MS
114352013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11436 Marcus Shawcroft <marcus.shawcroft@arm.com>
11437 Nigel Stephens <nigel.stephens@arm.com>
11438 Yufeng Zhang <yufeng.zhang@arm.com>
11439
11440 * aarch64-newlib-tdep.c: New file.
11441 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11442 aarch64*-*-elf.
11443 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11444 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11445 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11446 * osabi.c (gdb_osabi_names): Add "Newlib".
11447
1ae3db19
MS
114482013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11449 Marcus Shawcroft <marcus.shawcroft@arm.com>
11450 Nigel Stephens <nigel.stephens@arm.com>
11451 Yufeng Zhang <yufeng.zhang@arm.com>
11452
11453 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11454 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11455 * aarch64-linux-tdep.c: New file.
11456 * aarch64-linux-tdep.h: New file.
11457 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11458 * configure.tgt: Add aarch64-none-linux-gnu.
11459
07b287a0
MS
114602013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11461 Marcus Shawcroft <marcus.shawcroft@arm.com>
11462 Nigel Stephens <nigel.stephens@arm.com>
11463 Yufeng Zhang <yufeng.zhang@arm.com>
11464
11465 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11466 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11467 (ALLDEPFILES): Add aarch64-tdep.c.
11468 * aarch64-tdep.c: New file.
11469 * aarch64-tdep.h: New file.
11470 * configure.tgt: Add AArch64.
11471 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11472 (aarch64-expedite): New definition.
11473 * features/aarch64-core.xml: New file.
11474 * features/aarch64-fpu.xml: New file.
11475 * features/aarch64-without-fpu.c: New file (generated).
11476 * features/aarch64-without-fpu.xml: New file.
11477 * features/aarch64.c: New file (generated).
11478 * features/aarch64.xml: New file.
11479 * regformats/aarch64-without-fpu.dat: New file (generated).
11480 * regformats/aarch64.dat: New file (generated).
11481
0f1b18ab
JK
114822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11483
11484 * contrib/expect-read1.c: New file.
11485 * contrib/expect-read1.sh: New file.
11486
233d95b5
JK
114872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11488
11489 * dwarf2read.c (file_file_name): New function with code from
11490 file_full_name.
11491 (file_full_name): Move most of the code to file_file_name.
11492 (macro_start_file): Rename variable full_name to file_name and use
11493 file_file_name for it. Add comp_dir parameter to new_macro_table.
11494 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11495 macro_source_file->filename access by macro_source_fullname call.
11496 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11497 caller.
11498 * macrotab.c (struct macro_table): New field comp_dir.
11499 (macro_include): New variables link_fullname and source_fullname.
11500 Replace any macro_source_file->filename access by macro_source_fullname
11501 call.
11502 (macro_lookup_inclusion): Remove the partial filenames checking code.
11503 (check_for_redefinition): New variables source_fullname and
11504 found_key_fullname. Replace any macro_source_file->filename access by
11505 macro_source_fullname call.
11506 (macro_undef): New variables source_fullname and key_fullname. Replace
11507 any macro_source_file->filename access by macro_source_fullname call.
11508 (macro_lookup_definition): New variables retval and source_fullname.
11509 Replace any macro_source_file->filename access by macro_source_fullname
11510 call.
11511 (foreach_macro): New variable key_fullname. Replace any
11512 macro_source_file->filename access by macro_source_fullname call.
11513 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11514 macro_source_file->filename access by macro_source_fullname call.
11515 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11516 (macro_source_fullname): New function.
11517 * macrotab.h (struct macro_source_file): Extent the filename field
11518 comment.
11519 (new_macro_table): New parameter comp_dir, add a comment for it.
11520 (macro_source_fullname): new declaration.
11521
da235a7c
JK
115222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11523
11524 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11525 this_real_name to outer block. Use it also for
11526 compare_filenames_for_search.
11527 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11528 with dw2_get_real_path for file_matcher, considering also
11529 BASENAMES_MAY_DIFFER.
11530 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11531
fbd9ab74
JK
115322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11533
11534 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11535 to the file_matcher parameter. Pass 0 to it.
11536 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11537 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11538 NULL psymtab_to_fullname result.
11539 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11540 an expected filename instead.
11541 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11542 file_matcher parameter. Call also psymtab_to_fullname, after newly
11543 considering BASENAMES_MAY_DIFFER.
11544 * source.c (rewrite_source_path): Remove static.
11545 * source.h (rewrite_source_path): New declaration.
11546 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11547 the expand_symtabs_matching field. Comment it.
11548 * symtab.c (file_matches): New function comment. Add parameter
11549 basenames, implement it.
11550 (search_symbols_file_matches): Add basenames parameter. Update the
11551 file_matches caller.
11552 (search_symbols): Match FILES also against symtab_to_fullname.
11553 Optimize it for BASENAMES_MAY_DIFFER.
11554
56d397a3
JK
115552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11556
11557 * source.c (print_source_lines_base): Print for TUI also "fullname".
11558 * tui/tui-data.c (init_content_element): Change tui_locator_element
11559 field to full_name.
11560 * tui/tui-data.h (struct tui_locator_element): Likewise.
11561 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11562 tui_update_locator_filename calls to tui_update_locator_fullname.
11563 Replace symtab->filename refererence by symtab_to_fullname call.
11564 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11565 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11566 field to full_name. Replace symtab->filename refererence by
11567 symtab_to_fullname call.
11568 (tui_show_symtab_source): Rename parameter to fullname. Change
11569 tui_locator_element field to full_name.
11570 * tui/tui-stack.c: Include source.h.
11571 (tui_set_locator_filename): Rename the declaration to ...
11572 (tui_set_locator_fullname): ... here. Rename its parameter to
11573 fullname, updates its comment.
11574 (tui_set_locator_info): Rename its parameter to fullname.
11575 (tui_set_locator_filename): Rename the definition to ...
11576 (tui_set_locator_fullname): ... here. Rename its parameter to
11577 fullname, updates its comment. Change tui_locator_element field to
11578 full_name.
11579 (tui_set_locator_info): Rename its parameter to fullname.
11580 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11581 (tui_update_locator_filename): Rename to ...
11582 (tui_update_locator_fullname): ... here. Rename callee to
11583 tui_set_locator_fullname.
11584 (tui_show_frame_info): Replace symtab->filename refererence by
11585 symtab_to_fullname call.
11586 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11587 (tui_update_locator_fullname): ... here.
11588 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11589 tui_update_locator_fullname. Replace symtab->filename refererence by
11590 symtab_to_fullname call.
11591 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11592 Rename the callee to tui_update_locator_fullname.
11593 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11594
05cba821
JK
115952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11596
11597 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11598 by symtab_to_filename_for_display calls.
11599 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11600 (clear_command): New variable sal_fullname, initialize it. Replace
11601 compare_filenames_for_search by filename_cmp with sal_fullname.
11602 (say_where, update_static_tracepoint): Replace symtab->filename
11603 refererences by symtab_to_filename_for_display calls.
11604 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11605 Likewise.
11606 * dwarf2read.c: Include source.h.
11607 (fixup_go_packaging): Replace symtab->filename refererences by
11608 symtab_to_filename_for_display calls.
11609 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11610 Replace symtab->filename refererences by symtab_to_filename_for_display
11611 calls.
11612 (create_sals_line_offset, convert_linespec_to_sals): New variable
11613 fullname, initialize it, replace symtab->filename reference by the
11614 variable.
11615 * linux-fork.c: Include source.h.
11616 (info_checkpoints_command): Replace symtab->filename refererences by
11617 symtab_to_filename_for_display calls.
11618 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11619 by symtab_to_filename_for_display calls.
11620 * mdebugread.c: Include source.h.
11621 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11622 symtab_to_filename_for_display calls.
11623 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11624 (mi_cmd_file_list_exec_source_files): Likewise.
11625 * printcmd.c: Include source.h.
11626 (build_address_symbolic): Replace symtab->filename refererences by
11627 symtab_to_filename_for_display calls.
11628 * psymtab.c (partial_map_symtabs_matching_filename)
11629 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11630 with psymtab_to_fullname.
11631 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11632 by symtab_to_filename_for_display calls.
11633 (stpy_get_filename): New variable filename, initialize it, use instead
11634 of symtab->filename refererences.
11635 (salpy_str): Make variable filename const char *. Replace
11636 symtab->filename refererences by symtab_to_filename_for_display calls.
11637 * skip.c: Include source.h and filenames.h.
11638 (skip_file_command): Remove const from the symtab variable. Replace
11639 symtab->filename refererences by symtab_to_fullname call.
11640 (function_name_is_marked_for_skip): New variables searched_for_fullname
11641 and fullname. Use them to search also with symtab's fullname.
11642 * source.c (find_source_lines): Replace symtab->filename refererences
11643 by symtab_to_filename_for_display calls.
11644 (print_source_lines_base): New variable filename, use it instead of
11645 symtab->filename. Replace symtab->filename refererences by
11646 symtab_to_filename_for_display calls.
11647 (line_info, forward_search_command): Replace symtab->filename
11648 refererences by symtab_to_filename_for_display calls.
11649 (reverse_search_command): Replace symtab->filename refererences by
11650 symtab_to_filename_for_display calls. New variable filename for it.
11651 * stack.c (frame_info): Likewise.
11652 * symmisc.c: Include source.h.
11653 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11654 (maintenance_info_symtabs): Replace symtab->filename refererences by
11655 symtab_to_filename_for_display calls.
11656 * symtab.c (iterate_over_some_symtabs): Call
11657 compare_filenames_for_search also with symtab_to_fullname.
11658 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11659 symtab->filename refererences by symtab_to_filename_for_display calls.
11660 (find_line_symtab): Replace symtab->filename refererences by
11661 symtab_to_filename_for_display calls.
11662 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11663 (print_symbol_info): Make the last parameter const char *. New
11664 variable s_filename. Use it in the function.
11665 (symtab_symbol_info): Make the last_filename variable const char *.
11666 Replace symtab->filename refererences by symtab_to_filename_for_display
11667 calls.
11668 (rbreak_command): New variable fullname. Use it. Replace
11669 symtab->filename refererence by symtab_to_filename_for_display call.
11670 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11671 (print_one_static_tracepoint_marker): Replace symtab->filename
11672 refererences by symtab_to_filename_for_display calls.
11673 * tui/tui-source.c (tui_set_source_content): New variables filename and
11674 s_filename. Replace symtab->filename refererences by this variable.
11675 Replace other symtab->filename refererences by
11676 symtab_to_filename_for_display calls.
11677
1b56eb55
JK
116782013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11679 Jan Kratochvil <jan.kratochvil@redhat.com>
11680
11681 Add a new variable that controls a way in which filenames are
11682 displayed.
11683 * NEWS (set filename-display): New entry.
11684 * source.c (filename_display_basename, filename_display_relative)
11685 (filename_display_absolute, filename_display_kind_names)
11686 (filename_display_string, show_filename_display_string)
11687 (symtab_to_filename_for_display): New.
11688 (_initialize_source): Added initialization of 'filename-display'
11689 variable.
11690 * source.h (symtab_to_filename_for_display): Added declaration.
11691 * stack.c (print_frame): Added new variable and calling of a new
11692 function and condition with this variable. Changed third argument of
11693 calling of a function.
11694
aa079c93
JK
116952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11698 Rename field reference filename to fullname.
11699 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11700 fullname. New comment for it.
11701 * tui/tui-source.c (tui_set_source_content): Rename field reference
11702 filename to fullname. Initialize field by symtab_to_fullname now.
11703 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11704 reference filename to fullname. Use symtab_to_fullname during
11705 comparison.
11706
652a8996
JK
117072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11708
11709 Code cleanup.
11710 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11711 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11712 filename to fullname. Rename variable this_name to this_fullname.
11713 Lowercase FILENAME_CMP call.
11714 (dw2_find_symbol_file): New comment for the returned string.
11715 (dwarf2_gdb_index_functions): Rename the function to
11716 dw2_expand_symtabs_with_fullname.
11717 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11718 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11719 fullname.
11720 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11721 * symfile.h (struct quick_symbol_functions): Rename field
11722 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11723 parameter filename to fullname. Document returned string meaning for
11724 find_symbol_file.
11725 * symtab.c (find_line_symtab): Rename the called function to
11726 expand_symtabs_with_fullname.
11727
af529f8f
JK
117282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11729
11730 Code cleanup.
11731 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11732 call of filename_cmp with compare_filenames_for_search.
11733 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11734 is_abs, unify the call of FILENAME_CMP with
11735 compare_filenames_for_search. New gdb_asserts for real_path and name.
11736 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11737 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11738 * symfile.h (struct quick_symbol_functions): Extend the comment for
11739 map_symtabs_matching_filename.
11740 * symtab.c (compare_filenames_for_search): Remove the function comment
11741 relative path requirement. Handle absolute filenames, with a comment.
11742 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11743 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11744 real_path and name. Unify the call of compare_filenames_for_search
11745 with FILENAME_CMP.
11746 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11747
2f202fde
JK
117482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11749
11750 Code cleanup.
11751 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11752 source_file references by symtab field references. Remove variables
11753 sal and fullname.
11754 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11755 (clear_command, say_where): Replace bp_location field source_file
11756 references by symtab field references.
11757 (bp_location_dtor): Remove the source_file reference.
11758 (update_static_tracepoint): Replace bp_location field source_file
11759 references by symtab field references.
11760 (breakpoint_free_objfile): New function.
11761 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11762 Replace the field source_file by field symtab, extend its comment.
11763 (breakpoint_free_objfile): New declaration.
11764 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11765 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11766 field source_file references by symtab field references.
11767
f5b95b50
JK
117682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11769
11770 Replace xfullpath calls by gdb_realpath calls.
11771 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11772 function comment.
11773 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11774 Remove it from the iterate_over_some_symtabs call.
11775 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11776 Remove it from the dw2_map_expand_apply calls, remove a block handling
11777 it.
11778 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11779 Remove it from the iterate_over_some_symtabs call.
11780 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11781 Remove it from the partial_map_expand_apply calls, remove a block
11782 handling it. Drop gdb_realpath call and cleanups from the real_path
11783 handling.
11784 * source.c (openp): Drop the comment part about xfullpath. Replace
11785 xfullpath calls by gdb_realpath calls.
11786 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11787 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11788 from method map_symtabs_matching_filename and its comment.
11789 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11790 gdb_realpath call.
11791 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11792 remove it also from the function comment, remove a block handling it.
11793 Drop gdb_realpath call and cleanups from the real_path handling.
11794 (iterate_over_symtabs): Drop variable full_path and its use.
11795 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11796 * utils.c (xfullpath): Remove.
11797 * utils.h (xfullpath): Remove.
11798
d78489bf
AT
117992013-02-01 Andreas Tobler <andreast@fgznet.ch>
11800
11801 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11802 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11803 (ALLDEPFILES): Add ppc64-tdep.c.
11804 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11805 ppc64-tdep.o to gdb_target_obs.
11806 * ppc64-tdep.h: New file.
11807 * ppc64-tdep.c: New file.
11808 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11809 ppc-linux-tdep.c to here.
11810 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11811 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11812 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11813 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11814 from ppc-linux-tdep.c to here.
11815 (ppc64_convert_from_func_ptr_addr): Rename from
11816 ppc64_linux_convert_from_func_ptr_addr to
11817 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11818 here.
11819 * rs6000-tdep.c:
11820 (read_insn): Move from ppc-linux-tdep.c to here.
11821 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11822 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11823 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11824 Removed above functions.
11825 (ppc_linux_init_abi): Adjust.
11826
8db60374
AR
118272013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11828
11829 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11830
f2e5f4ce
AR
118312013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11832
11833 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11834
c1f7d745
PA
118352013-02-01 Pedro Alves <palves@redhat.com>
11836
11837 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11838 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11839
8a92335b
JK
118402013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11841
11842 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11843 files with no separate debug info.
11844 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11845 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11846 only for files with no separate debug info.
11847
8eacb197
TT
118482013-01-31 Tom Tromey <tromey@redhat.com>
11849
11850 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11851 change type.
11852 (struct jit_program_space_data): Rename from jit_inferior_data.
11853 Update comments.
11854 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11855 Change return type. Attach data to program space.
11856 (jit_program_space_data_cleanup): Rename from
11857 jit_inferior_data_cleanup; change argument type.
11858 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11859 change type.
11860 (jit_register_code): Update.
11861 (jit_update_inferior_cache): Remove.
11862 (jit_breakpoint_deleted): Get jit data from the location's program
11863 space.
11864 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11865 'ps_data', change type.
11866 (jit_inferior_init, jit_breakpoint_re_set_internal)
11867 (jit_event_handler): Update.
11868 (free_objfile_data): Get data from objfile's program space.
11869 (_initialize_jit): Update.
11870
f25c0135
TT
118712013-01-31 Tom Tromey <tromey@redhat.com>
11872
11873 PR gdb/13987:
11874 * jit.c (struct jit_inferior_data) <cached_code_address,
11875 jit_breakpoint>: New fields.
11876 (jit_breakpoint_re_set_internal): Fix logging. Only create
11877 breakpoint if cached address has changed.
11878 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11879 functions.
11880 (_initialize_jit): Register breakpoint deleted observer.
11881
974a734b
AR
118822013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11883
11884 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11885 (save_infcall_suspend_state): Ifdef out unused inf.
11886 (restore_infcall_suspend_state): Ifdef out unused inf.
11887 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11888 (jit_frame_sniffer): Remove unused inf_data.
11889
df54f8eb
AR
118902013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11891
11892 * c-exp.y (classify_inner_name): Remove unused type.
11893 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11894 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11895 need_escape.
11896 (c_get_string): Remove unused kind.
11897 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11898
5799c0b9
AR
118992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11900
11901 * charset.c (intermediate_encoding): Remove unused i.
11902 * completer.c (signal_completer): Remove unused i.
11903 * continuations.c (discard_my_continuations_1): Remove unused
11904 continuation_ptr.
11905 * corelow.c (core_close): Remove unuseD name.
11906 (get_core_siginfo): Remove unused pid.
11907 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11908 i, cps.
11909 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11910 (loclist_describe_location): Remove unused first.
11911 * event-top.c (command_line_handler): Remove unused got_eof.
11912 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11913 (resize_section_table): Remove unused old_value.
11914 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11915 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11916 * i386-tdep.c (i386_process_record): Remove unused rex.
11917 * infcmd.c (get_return_value): Remove unused uiout.
11918 * jv-lang.c (type_from_class): Remove unused is_array.
11919 * jv-valprint.c (java_val_print): Remove unused i.
11920 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11921 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11922 * m2-typeprint.c (m2_print_type): Remove unused code.
11923 * macroexp.c (get_character_constant): Remove unused body_start.
11924 (macro_stringify): Remove unused result.
11925 * objc-lang.c (find_methods): Remove unused gdbarch.
11926 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11927 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11928 * stack.c (print_frame_args): Remove unused summary.
11929 * thread.c (thread_apply_command): Remove unused p.
11930 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11931 * valops.c (search_struct_method): Remove unused skip.
11932 * valprint.c (generic_val_print): Remove unused byte_order.
11933 * varobj.c (varobj_update): Remove unused changed.
11934 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11935 (alias_command): Remove unused c.
11936 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11937 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11938 format.
11939 (mi_cmd_data_write_memory): Remove unused word_format.
11940 (mi_cmd_data_write_memory_bytes): Remove unused r.
11941 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11942 p_start, p_end.
11943 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11944 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11945 line_width.
11946
c656bca5
AR
119472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11948
11949 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11950 * symtab.c (iterate_over_symtabs): Remove unused s.
11951 (find_pc_sect_symtab): Remove unused pspAce.
11952 (find_pc_sect_line): Remove unused alt_symtab.
11953 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11954 (completion_list_add_name): Remove unused newsize.
11955
7078baeb
TT
119562013-01-31 Tom Tromey <tromey@redhat.com>
11957
11958 PR c++/14998:
11959 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11960 TYPE_CODE_FUNC.
11961
c2e8b827
AR
119622013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11963
11964 * target.c (target_read_string): Remove unused origlen.
11965
0e43993a
AR
119662013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11967
11968 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11969 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11970 * ax-general.c (ax_print): Remove unused is_float.
11971 * blockframe.c (block_innermost_frame): Remove unused start, end.
11972 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11973
765a97ab
AR
119742013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11975
11976 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11977 (svr4_read_so_list): Remove unused lmo.
11978 * solib-target.c (solib_target_relocate_section_addresses): Remove
11979 unused flags.
11980
a99dad3d
TT
119812013-01-30 Tom Tromey <tromey@redhat.com>
11982
11983 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11984
3bff1ecd
TT
119852013-01-30 Tom Tromey <tromey@redhat.com>
11986
11987 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11988 * utils.c (gnu_debuglink_crc32): Remove.
11989 * utils.h (gnu_debuglink_crc32): Don't declare.
11990
7d455152
TT
119912013-01-30 Tom Tromey <tromey@redhat.com>
11992
11993 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11994 (read_structure_type, read_enumeration_type): Remove cast.
11995
abee88f2
TT
119962013-01-30 Tom Tromey <tromey@redhat.com>
11997
11998 * dwarf2read.c (read_namespace_type): Remove cast.
11999 (read_typedef): Likewise.
12000
8d9878a4
TT
120012013-01-29 Tom Tromey <tromey@redhat.com>
12002
12003 * dwarf2read.c (free_dwo_file): Remove assert.
12004
a543d2a9
TT
120052013-01-29 Tom Tromey <tromey@redhat.com>
12006
12007 * value.c (deprecated_set_value_modifiable): Remove.
12008 * value.h (deprecated_set_value_modifiable): Remove.
12009
bed911e5
DE
120102013-01-28 Doug Evans <dje@google.com>
12011
12012 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12013 to addresses from dwo files.
12014
28c64fc2
SCR
120152013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12016
12017 * valops.c (find_overload_match): Remove unused argument 'lax'.
12018 * value.h: Remove unused argument 'lax' from the declaration of
12019 find_overload_match.
12020 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12021 to find_overload_match.
12022 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12023 argument to find_overload_match.
12024
4d4ec4e5
TT
120252013-01-25 Tom Tromey <tromey@redhat.com>
12026
12027 * dwarf2read.c (processing_has_namespace_info): Remove.
12028 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12029 (process_die, read_func_scope, dwarf2_start_symtab)
12030 (new_symbol_full): Update.
12031
195a3f6c
TT
120322013-01-25 Tom Tromey <tromey@redhat.com>
12033
12034 * cp-namespace.c (cp_set_block_scope): Remove.
12035 * cp-support.h (cp_set_block_scope): Remove.
12036 * dbxread.c: Include block.h.
12037 (cp_set_block_scope): New function.
12038 (process_one_symbol): Update.
12039 * dwarf2read.c (read_func_scope): Use block_set_scope.
12040
8ba0730a
PA
120412013-01-25 Pedro Alves <palves@redhat.com>
12042
12043 * remote.c (add_current_inferior_and_thread): Tweak comment.
12044
12aaed36
TT
120452013-01-25 Tom Tromey <tromey@redhat.com>
12046
12047 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12048 (cp_add_using_directive): Add 'copy_names' argument.
12049 * cp-support.h (cp_add_using_directive): Update.
12050 (struct using_direct) <import_src, import_dest, alias,
12051 declaration>: Now const.
12052 * dwarf2read.c (read_import_statement): Use obconcat.
12053 Don't copy names passed to cp_add_using_directive.
12054
7fc75ca7
TT
120552013-01-25 Tom Tromey <tromey@redhat.com>
12056
12057 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12058
3405876a
PA
120592013-01-25 Pedro Alves <palves@redhat.com>
12060
12061 * remote.c (stop_reply_extract_thread): New.
12062 (add_current_inferior_and_thread): New parameter 'wait_status'.
12063 Handle it.
12064 (remote_start_remote): Pass wait status to
12065 add_current_inferior_and_thread.
12066 (extended_remote_run): Update comment.
12067 (extended_remote_create_inferior_1): Pass wait status to
12068 add_current_inferior_and_thread.
12069
8954db33
AB
120702013-01-25 Andrew Burgess <aburgess@broadcom.com>
12071 Ulrich Weigand <uweigand@de.ibm.com>
12072
12073 * valarith.c (value_vector_widen): New function for replicating a
12074 scalar into a vector.
12075 (value_binop): Use value_vector_widen to widen scalar to vector
12076 rather than casting, this better matches gcc C behaviour.
12077 * valops.c (value_casst): Update logic for casting between vector
12078 types, and for casting from scalar to vector, try to match gcc C
12079 behaviour.
12080 * value.h (value_vector_widen): Declare.
12081 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12082 function, handle special case for casting scalar to vector.
12083 (opencl_relop): Use opencl_value_cast.
12084 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12085 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12086 in order to use opencl_value_cast.
12087
843b20dc
YQ
120882013-01-25 Yao Qi <yao@codesourcery.com>
12089
12090 * event-loop.c: Include "queue.h".
12091 (gdb_event_p): New typedef.
12092 (DECLARE_QUEUE_P): Use.
12093 (DEFINE_QUEUE_P): Use.
12094 (async_queue_event): Remove.
12095 (gdb_event_xfree): New.
12096 (initialize_event_loop): New.
12097 (process_event): Use QUEUE macros.
12098 (event_queue): Remove.
12099 (gdb_wait_for_event): Caller update.
12100 (check_async_event_handlers): Likewise.
12101 (poll_timers): Likewise.
12102 * event-loop.h (initialize_event_loop): Declare.
12103 * event-loop.c (gdb_event_xfree): New.
12104 * top.c (gdb_init): Call initialize_event_loop.
12105
20ad8856
YQ
121062013-01-25 Yao Qi <yao@codesourcery.com>
12107
12108 * event-loop.c (async_queue_event): Remove one parameter
12109 'position'. Remove code handling 'position' == TAIL.
12110 (gdb_wait_for_event): Caller update.
12111 (check_async_event_handlers): Caller update.
12112 (poll_timers): Caller update.
12113 * event-loop.h (enum queue_position): Remove.
12114
3bbbe775
MK
121152013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12116
12117 * MAINTAINERS: Update my email.
12118
a87d9ac4
YQ
121192013-01-25 Yao Qi <yao@codesourcery.com>
12120
12121 * main.c (print_gdb_help): Remove "--epoch" from the help
12122 message.
12123
2077afdd
TD
121242013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12125
12126 * symtab.c (skip_prologue_using_sal): Consider a file
12127 change the same as an increased line number
12128
63da4037
TD
121292013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12130
30e8ee25 12131 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12132
45e6c716
TT
121332013-01-24 Tom Tromey <tromey@redhat.com>
12134
12135 * ada-lang.h (ada_decode_symbol): Make return type const.
12136 * ada-lang.c (ada_decode_symbol): Likewise.
12137
b1ae631a
DE
121382013-01-23 Doug Evans <dje@google.com>
12139
12140 * linespec.c (find_linespec_symbols): Make static.
12141
55a78401
SDJ
121422013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12143
12144 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12145 type on float conversion for complex type.
12146
bea883fd
SCR
121472013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12148
12149 Add a new class gdb.Architecture which exposes GDB's
12150 internal representation of architecture via GDB Python API.
12151 * Makefile.in: Add entries corresponding to the new file
12152 python/py-arch.c.
12153 * NEWS (Python Scripting): Add entries for the new class
12154 gdb.Architecture and the new method gdb.Frame.architecture.
12155 * python/py-arch.c: Implement gdb.Architecture class.
12156 * python/py-frame.c (frapy_arch): Implement the method
12157 gdb.Frame.architecture().
12158 (frame_object_methods): Add 'architecture' to the method table.
12159 * python/python-internal.h: Add declarations of new utility
12160 functions.
12161 * python/python.c (_initialize_python): Initialize
12162 gdb.Architecture class.
12163
796a7ff8
DE
121642013-01-23 Doug Evans <dje@google.com>
12165
12166 Work around binutils/15021.
12167 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12168 type_unit_group out of union s. All uses updated.
12169 (read_index_from_section): Watch for index version 8.
12170 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12171 an imported symtab.
12172 (write_psymtabs_to_index): Increment version number to 8.
12173
0928e93d
PA
121742013-01-22 Pedro Alves <palves@redhat.com>
12175
12176 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12177 user-visible.
12178
9c97429f
PA
121792013-01-22 Pedro Alves <palves@redhat.com>
12180
12181 * annotate.c (annotate_breakpoints_changed): Rename to ...
12182 (annotate_breakpoints_invalid): ... this. Make static.
12183 (breakpoint_changed): Adjust.
12184 (_initialize_annotate): Always install the observers. Install a
12185 "breakpoint_created" observer.
12186 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12187 * breakpoint.c (set_breakpoint_condition)
12188 (breakpoint_set_commands, do_map_commands_command)
12189 (init_raw_breakpoint, clear_command, set_ignore_count)
12190 (enable_breakpoint_disp): No longer call
12191 annotate_breakpoints_changed.
12192
bd00c694
PA
121932013-01-22 Pedro Alves <palves@redhat.com>
12194
12195 * annotate.c: Include "inferior.h".
12196 (frames_invalid_emitted)
12197 (breakpoints_invalid_emitted): New globals.
12198 (async_background_execution_p): New function.
12199 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12200 emitting the annotation if it has already been emitted.
12201 (annotate_display_prompt): New function.
12202 * annotate.h (annotate_display_prompt): New declaration.
12203 * event-top.c: Include annotate.h.
12204 (display_gdb_prompt): Call annotate_display_prompt.
12205
187d10dd
PA
122062013-01-22 Pedro Alves <palves@redhat.com>
12207
12208 * annotate.c (ignore_count_changed): Delete.
12209 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12210 (annotate_ignore_count_change): Delete.
12211 (annotate_stopped): Don't emit a delayed breakpoints-changed
12212 annotation.
12213 * annotate.h (annotate_ignore_count_change): Delete.
12214 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12215 annotate_ignore_count_change.
12216
d84cf7eb
TT
122172013-01-22 Tom Tromey <tromey@redhat.com>
12218
12219 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12220 require_rvalue for a register location.
12221
8f1d5693
MK
122222013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12223
12224 * breakpoint.c (print_one_breakpoint_location): Add MI
12225 field 'thread-groups' when printing a breakpoint.
12226 (output_thread_groups): New function.
12227
aa6199c6
SCR
122282013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12229
12230 * python/lib/gdb/commands/explore.py
12231 (CompoundExplorer.explore_expr): Correct the name of a method
12232 being invoked.
12233 (ExploreTypeCommand.invoke): Add a missing 'return'.
12234
d2afef13
TT
122352013-01-21 Tom Tromey <tromey@redhat.com>
12236
12237 * gdb_obstack.h (obconcat): Move declaration here, from...
12238 * symfile.h (obconcat): ... here.
12239 * gdb_obstack.c: New file.
12240 (obconcat): Move from...
12241 * symfile.c (obconcat): ... here.
12242 * Makefile.in (SFILES): Add gdb_obstack.c.
12243 (COMMON_OBS): Add gdb_obstack.o.
12244
10f0c4bb
TT
122452013-01-21 Tom Tromey <tromey@redhat.com>
12246
12247 * symfile.h (obsavestring): Don't declare.
12248 * symfile.c (obsavestring): Remove.
12249 * ada-exp.y: Use obstack_copy0, not obsavestring.
12250 * ada-lang.c: Use obstack_copy0, not obsavestring.
12251 * coffread.c: Use obstack_copy0, not obsavestring.
12252 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12253 * dbxread.c: Use obstack_copy0, not obsavestring.
12254 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12255 * jit.c: Use obstack_copy0, not obsavestring.
12256 * mdebugread.c: Use obstack_copy0, not obsavestring.
12257 * psymtab.c: Use obstack_copy0, not obsavestring.
12258 * stabsread.c: Use obstack_copy0, not obsavestring.
12259 * xcoffread.c: Use obstack_copy0, not obsavestring.
12260
86f62fd7
TT
122612013-01-21 Tom Tromey <tromey@redhat.com>
12262
12263 * dwarf2read.c (fixup_go_packaging): Save package name
12264 on objfile obstack.
12265 * gdbtypes.c (init_type): Don't copy name.
12266
15d034d0
TT
122672013-01-21 Tom Tromey <tromey@redhat.com>
12268
12269 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12270 const.
12271 (struct attribute) <u.str>: Now const.
12272 (struct fnfieldlist) <name>: Now const.
12273 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12274 (partial_die_parent_scope): Make return type const.
12275 (partial_die_full_name, add_partial_symbol): Update.
12276 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12277 'name' const.
12278 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12279 (read_file_scope, read_func_scope, dwarf2_add_field)
12280 (dwarf2_add_member_fn, read_structure_type)
12281 (process_enumeration_scope, read_array_type, read_module_type)
12282 (read_base_type, read_subrange_type): Update.
12283 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12284 (new_symbol_full, guess_full_die_structure_name): Update.
12285 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12286 (dwarf2_name): Return const type.
12287 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12288 const.
12289
748e18ae
TT
122902013-01-21 Tom Tromey <tromey@redhat.com>
12291
12292 * gdbtypes.c (init_type): Make 'name' const.
12293 * gdbtypes.h (init_type): Update.
12294
46212e0b
TT
122952013-01-21 Tom Tromey <tromey@redhat.com>
12296
12297 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12298 (start_symtab): Make 'name' and 'dirname' const. Use
12299 set_last_source_file.
12300 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12301 (last_source_file): Define. Now static.
12302 (set_last_source_file, get_last_source_file): New functions.
12303 * buildsym.h (last_source_file): Don't declare.
12304 (start_symtab): Update.
12305 (set_last_source_file, get_last_source_file): Declare.
12306 * coffread.c (complete_symtab): Use set_last_source_file.
12307 (coff_end_symtab): Likewise.
12308 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12309 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12310 set_last_source_file.
12311 (process_one_symbol): Use get_last_source_file.
12312 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12313 (psymtab_to_symtab_1): Use get_last_source_file.
12314 * xcoffread.c (process_linenos): Use get_last_source_file.
12315 (complete_symtab): Use set_last_source_file.
12316 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12317 (scan_xcoff_symtab): Use set_last_source_file.
12318
9d2ceabe
TT
123192013-01-21 Tom Tromey <tromey@redhat.com>
12320
12321 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12322 (symbol_set_names): Remove casts. Handle field const-ness.
12323
cfc594ee
TT
123242013-01-21 Tom Tromey <tromey@redhat.com>
12325
12326 * dwarf2read.c (new_symbol_full): Remove cast.
12327 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12328 * symtab.h (symbol_set_demangled_name): Update.
12329
5484b13a
TT
123302013-01-21 Tom Tromey <tromey@redhat.com>
12331
12332 * main.c (captured_main): Call bfd_init.
12333
1605ef26
TT
123342013-01-21 Tom Tromey <tromey@redhat.com>
12335
12336 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12337 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12338 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12339 * NEWS: Update.
12340
3b74cdc3
JK
123412013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12342
12343 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12344
5a352474
JK
123452013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12346
12347 Fix gdb.fortran/common-block.exp crash in PIE mode.
12348 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12349 LOC_COMMON_BLOCK.
12350 * f-valprint.c (info_common_command_for_block): Expect
12351 LOC_COMMON_BLOCK in gdb_assert.
12352 * symtab.h (struct general_symbol_info): Update comment for the
12353 common_block member.
12354 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12355 (enum address_class): New member LOC_COMMON_BLOCK.
12356
c60797fd
DB
123572013-01-18 David Blaikie <dblaikie@gmail.com>
12358
12359 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12360
46f35228
TT
123612013-01-18 Tom Tromey <tromey@redhat.com>
12362
12363 PR c++/14999:
12364 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12365 Call require_rvalue.
12366
257e7a09
YQ
123672013-01-18 Yao Qi <yao@codesourcery.com>
12368
12369 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12370 (dbx_read_symtab): New declaration.
12371 (dbx_psymtab_to_symtab): Delete.
12372 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12373 Rename parameter PST to SELF. Exchanged two parameters.
12374 (start_psymtab): Caller update.
12375 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12376 (dwarf2_read_symtab): New declaration.
12377 (dwarf2_psymtab_to_symtab): Delete.
12378 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12379 Rename parameter PST to SELF. Exchanged two parameters.
12380 (create_partial_symtab): Caller update.
12381 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12382 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12383 Rename parameter PST to SELF. Exchanged two parameters.
12384 (parse_partial_symbols, new_psymtab): Caller update.
12385 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12386 two parameters.
12387 * psymtab.c (psymtab_to_symtab): Caller update.
12388 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12389 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12390 Rename parameter PST to SELF. Exchanged two parameters.
12391 (xcoff_start_psymtab): Caller update.
12392
0de5618e
YQ
123932013-01-18 Yao Qi <yao@codesourcery.com>
12394
12395 * infrun.c (proceed): Rename local variable 'oneproc' to
12396 'force_step'.
12397
5c04624b
DE
123982013-01-17 Doug Evans <dje@google.com>
12399
848e3e78
DE
12400 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12401 (dw2_build_type_unit_groups): Delete. All uses updated.
12402
5c04624b
DE
12403 * symtab.h (struct symbol_search): Add comment.
12404
d84fca2c
JK
124052013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12406
12407 * symtab.c (compare_filenames_for_search): New comment for
12408 HAS_DRIVE_SPEC.
12409
6108433d
TT
124102013-01-17 Tom Tromey <tromey@redhat.com>
12411
12412 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12413
c89ffd86
JK
124142013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12415
12416 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12417 initialize it by existing make_cleanup. Call new do_cleanups.
12418
db2b2972
TT
124192013-01-17 Tom Tromey <tromey@redhat.com>
12420
12421 * cp-abi.c (cp_abi_completer): New function.
12422 (_initialize_cp_abi): Set completer for "set cp-abi".
12423
be7d37a2
TT
124242013-01-17 Tom Tromey <tromey@redhat.com>
12425
12426 * mem-break.c: Remove obsolete comment.
12427 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12428
c9fb1240
SD
124292012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12430
12431 * jit.c (jit_reader_load_command): Interpret the jit reader name
12432 as an absolute path if it begins with a forward slash.
12433
db334a01
SD
124342012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12435
12436 PR gdb/14550
12437
12438 * jit.c (finalize_symtab): Ensure that only the global block has a
12439 NULL superblock.
12440
7d928dac
PA
124412013-01-17 Pedro Alves <palves@redhat.com>
12442
12443 * acinclude.m4: Include ../config/plugins.m4,
12444 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12445 * Makefile.in (aclocal_m4_deps): Update.
12446 * aclocal.m4: Renegerate.
12447
fb8cf7c5
DE
124482013-01-16 Doug Evans <dje@google.com>
12449
12450 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12451
ab04a2af
TT
124522013-01-16 Pedro Alves <palves@redhat.com>
12453 Tom Tromey <tromey@redhat.com>
12454
12455 PR cli/7221:
12456 * NEWS: Add "catch signal".
12457 * breakpoint.c (base_breakpoint_ops): No longer static.
12458 (bpstat_explains_signal): New function.
12459 (init_catchpoint): No longer static.
12460 (base_breakpoint_explains_signal): New function.
12461 (base_breakpoint_ops): Initialize new field.
12462 * breakpoint.h (enum bpstat_signal_value): New.
12463 (struct breakpoint_ops) <explains_signal>: New field.
12464 (bpstat_explains_signal): Remove macro, declare as function.
12465 (base_breakpoint_ops, init_catchpoint): Declare.
12466 * break-catch-sig.c: New file.
12467 * inferior.h (signal_catch_update): Declare.
12468 * infrun.c (signal_catch): New global.
12469 (handle_syscall_event): Update for change to
12470 bpstat_explains_signal.
12471 (handle_inferior_event): Likewise. Always handle random signals
12472 via bpstats.
12473 (signal_cache_update): Check signal_catch.
12474 (signal_catch_update): New function.
12475 (_initialize_infrun): Initialize signal_catch.
12476 * Makefile.in (SFILES): Add break-catch-sig.c.
12477 (COMMON_OBS): Add break-catch-sig.o.
12478
8ac3646f
TT
124792013-01-16 Tom Tromey <tromey@redhat.com>
12480
12481 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12482 (print_one_catch_solib, print_one_catch_syscall)
12483 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12484 "catch-type".
12485
5a18e302
YQ
124862013-01-16 Yao Qi <yao@codesourcery.com>
12487
12488 * printcmd.c (current_display_number): Make it static.
12489
3f01d0d0
YQ
124902013-01-16 Yao Qi <yao@codesourcery.com>
12491
12492 * infcmd.c (step_once): Don't check '!single_inst' as it was
12493 checked before.
12494
1ed59174
JK
124952013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12496
12497 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12498
44478ab3
TT
124992013-01-14 Tom Tromey <tromey@redhat.com>
12500
12501 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12502 set command.
12503 * command.h (add_setshow_string_noescape_cmd): Update.
12504 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12505 (complete_set_gnutarget): New function.
12506 (_initialize_core): Set the "set gnutarget" completer.
12507
06d66ee9
TT
125082013-01-14 Tom Tromey <tromey@redhat.com>
12509
12510 PR symtab/14442:
12511 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12512 (c_type_print_modifier): Likewise.
12513 * dwarf2read.c (read_tag_restrict_type): New function.
12514 (read_type_die_1): Handle DW_TAG_restrict_type.
12515 * gdbtypes.c (make_restrict_type): New function.
12516 (recursive_dump_type): Handle TYPE_RESTRICT.
12517 * gdbtypes.h (enum type_flag_values): Renumber.
12518 (enum type_instance_flag_value): Add
12519 TYPE_INSTANCE_FLAG_RESTRICT.
12520 (TYPE_RESTRICT): New macro.
12521 (make_restrict_type): Declare.
12522
c9bf0622
TT
125232013-01-14 Tom Tromey <tromey@redhat.com>
12524
12525 PR symtab/14931:
12526 * psymtab.c (struct psymtab_state): New.
12527 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12528 functions.
12529 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12530 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12531
44d594fd
PA
125322013-01-14 Richard Sharman <richard_sharman@mitel.com>
12533 Pedro Alves <palves@redhat.com>
12534
12535 PR remote/14786
12536
12537 * remote.c (remote_threads_info): Make a copy of the reply from
12538 qfThreadInfo and use that instead of rs->buf.
12539
442e4d9c
YQ
125402013-01-14 Yao Qi <yao@codesourcery.com>
12541
12542 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12543 (dbx_psymtab_to_symtab): Likewise.
12544 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12545 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12546 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12547
5b12a61c
JK
125482013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12549
12550 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12551 make_cleanup_restore_current_language. Call set_language. Move
12552 OLD_CHAIN and INNER_CHAIN cleanups.
12553 * utils.c (do_restore_current_language)
12554 (make_cleanup_restore_current_language): New functions.
12555 * utils.h (make_cleanup_restore_current_language): New declaration.
12556
f0a4b570
JK
125572013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12558
12559 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12560 non-existing files.
12561
57b3c00c
JK
12562 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12563 non-existing files if FILENAME is already absolute.
12564
daefa854
JK
125652013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12566
12567 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12568 fputs_filtered. Append trailing newline.
12569
ca9c6ee2
YQ
125702013-01-11 Yao Qi <yao@codesourcery.com>
12571 Stan Shebs <stan@codesourcery.com>
12572
12573 * psymtab.c (init_psymbol_list): Clarify the comment.
12574
f28045c2
YQ
125752013-01-11 Yao Qi <yao@codesourcery.com>
12576
12577 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12578 (update_dprintf_command_list): Assert that 'printf_line' is
12579 non-null. Remove condition check.
12580
da5132d3
JK
125812013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12582
12583 Code cleanup.
12584 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12585 type const char *.
12586 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12587 const char *.
12588 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12589
843e694d
AG
125902013-01-09 Anthony Green <green@moxielogic.com>
12591
12592 * cp-abi.c (cplus_print_vtable): Don't return value from void
12593 function.
12594 * ada-lang.c (re_set_catch_assert): Ditto.
12595
da51c347
DE
125962013-01-09 Doug Evans <dje@google.com>
12597
12598 * symfile.h (quick_symbol_functions): Delete member
12599 pre_expand_symtabs_matching. All uses removed.
12600 * dwarf2read.c (dw2_lookup_symbol): Implement.
12601 (dw2_do_expand_symtabs_matching): Delete.
12602 (dw2_pre_expand_symtabs_matching): Delete.
12603 (struct dw2_symtab_iterator): New type.
12604 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12605 (dw2_expand_symtabs_for_function): Rewrite.
12606 (dwarf2_gdb_index_functions): Update.
12607 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12608 (psym_functions): Update.
12609
b2259038
TT
126102013-01-09 Tom Tromey <tromey@redhat.com>
12611
12612 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12613 * configure: Rebuild.
12614 * configure.ac: Add somread.o to the build if BFD has SOM
12615 support.
12616 * somread.c: Include som/aout.h, not syms.h.
12617 (som_symtab_read): Use som_external_symbol_dictionary_record.
12618 Unpack records manually.
12619 (_initialize_somread): Declare.
12620
bdad4180
MF
126212012-01-08 Mike Frysinger <vapier@gentoo.org>
12622
12623 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12624 Cast return_address to 64bits.
12625
03cdf680
HZ
126262013-01-08 Hui Zhu <hui_zhu@mentor.com>
12627
12628 * printcmd.c: Remove define of function output_command.
12629 * tracepoint.c: Remove extern of function output_command.
12630 * valprint.h: (output_command): New extern.
12631
8a808554
TT
126322013-01-07 Tom Tromey <tromey@redhat.com>
12633
12634 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12635 Remove.
12636 (objc_language_defn): Use c_printchar, c_printstr,
12637 c_emit_char.
12638
e93a8774
TT
126392013-01-07 Tom Tromey <tromey@redhat.com>
12640
12641 PR cli/7719:
12642 * NEWS: Update.
12643 * ada-valprint.c (printstr, print_field_values): Remove
12644 "inspect_it" code.
12645 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12646 code.
12647 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12648 code.
12649 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12650 * main.c (captured_main): Remove "epoch" argument.
12651 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12652 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12653 * p-valprint.c (pascal_object_print_value_fields): Remove
12654 "inspect_it" code.
12655 * printcmd.c (print_command_1): Remove 'inspect' argument.
12656 (print_command, call_command): Update.
12657 (inspect_command): Remove.
12658 (_initialize_printcmd): Make "inspect" an alias for "print".
12659 * top.c (epoch_interface): Remove.
12660 * top.h (epoch_interface): Remove.
12661 * valprint.c (user_print_options): Update.
12662 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12663 * valprint.h (struct value_print_options) <inspect_it>: Remove
12664 field.
12665
126662013-01-04 Tom Tromey <tromey@redhat.com>
12667
12668 * valprint.h (read_string): Add 'extern'.
12669
b967eb24
JB
126702013-01-07 Joel Brobecker <brobecker@adacore.com>
12671
12672 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12673 used to decide whether to define darwin_read_dyld_info or not.
12674
78a8b30e
PM
126752013-01-03 Pierre Muller <muller@sourceware.org>
12676
12677 * main.c (relocate_gdb_directory): Avoid calling stat function
12678 if DIR is empty.
12679
50da2f25
YQ
126802013-01-03 Yao Qi <yao@codesourcery.com>
12681
12682 * psymtab.c (fixup_psymbol_section): Update declaration.
12683 (fixup_psymbol_section): Remove code returning value.
12684
e7e8980f
YQ
126852013-01-03 Yao Qi <yao@codesourcery.com>
12686
12687 * symtab.h: Remove some out of date comments.
12688 (enum exception_event_kind): Move it ...
12689 * breakpoint.c: ... here.
12690
569283d4
MF
126912013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12692
9f9d9a96 12693 PR gdb/14405
569283d4
MF
12694 * darwin-nat.c (darwin_read_dyld_info): Only build if
12695 TASK_DYLD_INFO_COUNT is defined.
12696 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12697 TASK_DYLD_INFO_COUNT is defined.
12698
2e36fbea
TT
126992013-01-02 Tom Tromey <tromey@redhat.com>
12700
12701 * symfile.h (struct ecoff_debug_hack): Remove.
12702 * objfiles.c: Don't include mdebugread.h.
12703
4f05add4
TT
127042013-01-02 Tom Tromey <tromey@redhat.com>
12705
12706 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12707 * configure.ac: Check for Mach-O support in BFD. Update
12708 CONFIG_OBS.
12709 * configure: Rebuild.
12710
def63ff0
TT
127112013-01-02 Tom Tromey <tromey@redhat.com>
12712
12713 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12714 * configure.ac: Use GDB_AC_CHECK_BFD.
12715 * configure: Rebuild.
12716
60c5dd93
MK
127172013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12718
12719 * MAINTAINERS: Update my email.
12720
6e58437e
JB
127212013-01-01 Joel Brobecker <brobecker@adacore.com>
12722
12723 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12724
627fe805
JB
127252013-01-01 Joel Brobecker <brobecker@adacore.com>
12726
12727 * rs6000-nat.c (bss_data_overlap): New function.
12728 (vmap_symtab): Use it to adjust the .bss section's offset.
12729
28e7fd62
JB
127302013-01-01 Joel Brobecker <brobecker@adacore.com>
12731
12732 Update year range in copyright notice of all files.
12733
e93a8774 127342013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12735
12736 * top.c (print_gdb_version): Update copyright year.
12737
72b20e9c 12738For older changes see ChangeLog-2012.
c906108c
SS
12739\f
12740Local Variables:
12741mode: change-log
12742left-margin: 8
12743fill-column: 74
12744version-control: never
57da7796 12745coding: utf-8
c906108c 12746End:
This page took 2.293114 seconds and 4 git commands to generate.