Fix PR remote/15974
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
62972e0b
YQ
12013-12-02 Pedro Alves <palves@redhat.com>
2
3 PR remote/15974
4 * remote-notif.c (handle_notification): Return early if no
5 notification is found.
6
f9b0da3d
JB
72013-12-02 Joel Brobecker <brobecker@adacore.com>
8
9 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
10 preprocessor check.
11
2dd4d422
JB
122013-12-02 Joel Brobecker <brobecker@adacore.com>
13
14 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
15
e72eff80
JB
162013-12-02 Joel Brobecker <brobecker@adacore.com>
17
18 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
19 * ctf.c (ctf_start): Remove obsolete comment.
20
844ad005
JB
212013-12-02 Joel Brobecker <brobecker@adacore.com>
22
23 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
24
5b2bf947
DE
252013-11-30 Doug Evans <xdje42@gmail.com>
26
27 * auto-load.h (script_language): New members name, auto_load_enabled.
28 Add missing comments on struct members.
29 (auto_load_objfile_script): Delete.
30 * auto-load.c: #include "cli/cli-cmds.h".
31 (auto_load_gdb_scripts_enabled): New function.
32 (script_language_gdb): Update, add new members.
33 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
34 and call to maybe_add_script moved to caller.
35 (auto_load_objfile_script_1): Auto-load safe-checking and
36 call to maybe_add_script moved here.
37 (auto_load_objfile_script): Make static. Early exit if support for
38 scripting language hasn't been compiled in, or auto-loading has been
39 disabled.
40 (source_section_scripts): Argument "source_name" renamed to
41 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
42 with section_name. Skip loading script if support for scripting
43 language hasn't been compiled in, or auto-loading has been disabled.
44 Call language->source_script_for_objfile instead of calling
45 source_python_script_for_objfile directly.
46 (load_auto_scripts_for_objfile): Update.
47 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
48 (gdbpy_load_auto_script_for_objfile): Delete.
49 (auto_load_python_scripts_enabled): New function.
50 (script_language_python): Update, add new members.
51 (gdbpy_script_language_defn): New function.
52 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
53 (gdbpy_script_language_defn): Declare.
54
55 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
56 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
57 (source_section_scripts): Moved here from py-auto-load.c.
58 (auto_load_section_scripts): Ditto.
59 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
60 auto-load.c, renamed AUTO_SECTION_NAME.
61 (source_section_scripts, auto_load_section_scripts): Moved to
62 auto-load.c.
63
d9c43928
YQ
642013-11-30 Yao Qi <yao@codesourcery.com>
65
66 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
67
e7b12392
SDJ
682013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
69
70 * gdbarch.sh: Remove include of "gdb_string.h", replace by
71 <string.h>.
72
256458bc
DE
732013-11-29 Doug Evans <xdje42@gmail.com>
74
7b2d3abf
DE
75 * python/py-auto-load.c (source_section_scripts): Move comment to
76 more relevant location.
77
256458bc
DE
78 Whitespace cleanup.
79 * python/py-breakpoint.c: Remove trailing whitespace.
80 * python/py-cmd.c: Ditto.
81 * python/py-evts.c: Ditto.
82 * python/py-finishbreakpoint.c: Ditto.
83 * python/py-frame.c: Ditto.
84 * python/py-function.c: Ditto.
85 * python/py-inferior.c: Ditto.
86 * python/py-infthread.c: Ditto.
87 * python/py-param.c: Ditto.
88 * python/py-prettyprint.c: Ditto.
89 * python/py-symbol.c: Ditto.
90 * python/py-type.c: Ditto.
91 * python/py-utils.c: Ditto.
92 * python/py-value.c: Ditto.
93 * python/python-internal.h: Ditto.
94 * python/python.c: Ditto.
95
20e1ca3b
PA
962013-11-29 Pedro Alves <palves@redhat.com>
97
98 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
99
8b4f3082
PA
1002013-11-29 Pedro Alves <palves@redhat.com>
101
102 * breakpoint.c (build_target_condition_list): Release previous
103 conditions.
104 (build_target_command_list): Release previous commands.
105 (bp_location_dtor): Release target conditions and commands.
106 * remote.c (remote_add_target_side_condition): Don't release
107 conditions.
108 (remote_add_target_side_commands): Don't release commands.
109
9f713294
YQ
1102013-11-29 Yao Qi <yao@codesourcery.com>
111 Pedro Alves <palves@redhat.com>
112
113 * dcache.c (dcache_read_line): Use current_target.beneath
114 instead of &current_target.
115 * target.c (memory_xfer_partial_1): Factor code out to ...
116 (raw_memory_xfer_partial): ... it. New function.
117 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
118 is TARGET_OBJECT_RAW_MEMORY.
119
4cb0213d
DE
1202013-11-28 Doug Evans <xdje42@gmail.com>
121
122 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
123 breakpoint_object. All uses updated.
124 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
125 breakpoint_object. All uses updated.
126 * python.c (*): All uses of breakpoint_object updated.
127 * python.h (*): All uses of breakpoint_object updated.
128 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
129 * python/py-finishbreakpoint.c (*): Ditto.
130
d344e670
DE
1312013-11-28 Doug Evans <xdje42@gmail.com>
132
d729aae0 133 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
134 * configure: Regenerate.
135
eebc056c
AB
1362013-11-28 Andrew Burgess <aburgess@broadcom.com>
137 Pedro Alves <palves@redhat.com>
138
139 * valprint.c (value_check_printable): If the value is entirely
140 unavailable, print a single "<unavailable>" instead of printing
141 all subfields.
142
a7300869
PA
1432013-11-28 Pedro Alves <palves@redhat.com>
144
145 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
146 Add "set debug frame" output.
147 (frame_stop_reason_symbol_string): New function.
148
50fd528a
PA
1492013-11-28 Pedro Alves <palves@redhat.com>
150
151 * frame-unwind.c (default_frame_unwind_stop_reason): Return
152 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
153 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
154
5de51581
PA
1552013-11-28 Pedro Alves <palves@redhat.com>
156
157 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
158 set the unwind stop reason to UNWIND_OUTERMOST, not
159 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
160
739cb10c
PA
1612013-11-28 Pedro Alves <palves@redhat.com>
162
163 * frame.c (frame_unwind_register): Say the register was "not
164 saved" instead of "optimized out".
165
514c0aa6 1662013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 167
514c0aa6 168 PR 16152
92a021de 169 * configure: Rebuild.
514c0aa6 170 * configure.ac: Tighten cygwin detection check.
92a021de 171
908fa2aa
PA
1722013-11-27 Pedro Alves <palves@redhat.com>
173
174 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
175 register in the previous frame's arch.
176
6bd273ae
PA
1772013-11-27 Pedro Alves <palves@redhat.com>
178
179 * frame-unwind.c (frame_unwind_got_optimized): Return
180 an lval_register value instead of a not_lval value.
181
f6c01fc5
AB
1822013-11-27 Andrew Burgess <aburgess@broadcom.com>
183
184 * frame.c: Include "valprint.h".
185 (frame_unwind_register_value): Use value_optimized_out.
186 * value.c (value_fetch_lazy): Likewise.
187
4f14910f
AB
1882013-11-26 Andrew Burgess <aburgess@broadcom.com>
189
190 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
191
15859968
TT
1922013-11-26 Tom Tromey <tromey@redhat.com>
193
194 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
195 2013-11-22.
196
244ec0da
WT
1972013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
198
199 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
200 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
201 (HAS_MPX): New macro.
202 (HAS_AVX): New macro.
203 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
204
f7e3ecae
KS
2052013-11-25 Keith Seitz <keiths@redhat.com>
206
207 PR c++/14819
208 * c-exp.y (classify_inner_name): If no matching symbol was
209 found, try looking up the token as a base class.
210 Likewise if a constructor was found.
211 * cp-namespace.c (find_type_baseclass_by_name): New function.
212 * cp-support.h (find_type_baseclass_by_name): Declare.
213 * valops.c (value_struct_elt_for_reference): If we get
214 a non-static field, try to get a value based on the
215 current instance, if any.
216
283f7163
YQ
2172013-11-24 Yao Qi <yao@codesourcery.com>
218
219 * disasm.c (dis_asm_read_memory): Call target_read_code
220 instead of target_read_memory.
221
29453a14
YQ
2222013-11-24 Yao Qi <yao@codesourcery.com>
223
224 * NEWS: Add note on new "set code-cache" option.
225 * target-dcache.c (code_cache_enabled_1): New variable.
226 (code_cache_enabled): New variable.
227 (show_code_cache, set_code_cache): New function.
228 (code_cache_enabled_p): New function.
229 (_initialize_target_dcache): Register command.
230 * target-dcache.h (code_cache_enabled_p): Declare.
231 * target.c (memory_xfer_partial_1):Handle
232 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
233 (target_read_code): New function.
234 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
235 New.
236 (target_read_code): Declare.
237
0fb14d8f
YQ
2382013-11-24 Yao Qi <yao@codesourcery.com>
239
240 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
241 (stack_cache_enabled_1): ... this. New variable.
242 (stack_cache_enabled_p): Rename to ...
243 (stack_cache_enabled): ... this. New variable.
244 (set_stack_cache_enabled_p): Rename to ...
245 (set_stack_cache): ... this. Update caller.
246 (show_stack_cache_enabled_p): Rename to ...
247 (show_stack_cache): ... this. Update caller.
248 (stack_cache_enabled): Rename to ...
249 (stack_cache_enabled_p): ... this. Update caller.
250 (_initialize_target_dcache): Replace "data cache" with
251 "target memory cache".
252 * target-dcache.h (stack_cache_enabled): Remove declaration.
253 (stack_cache_enabled_p): Add declaration.
254
a12361b9
DE
2552013-11-23 Doug Evans <xdje42@gmail.com>
256
257 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
258 superfluous.
259
1e1d6920
DE
2602013-11-23 Doug Evans <xdje42@gmail.com>
261
262 * python/py-frame.c (frapy_block): Fix error message text.
263
1e9c71b8
DE
2642013-11-23 Doug Evans <xdje42@gmail.com>
265
266 * cli/cli-script.c (multi_line_command_p): New function.
267 (recurse_read_control_structure, read_command_lines_1): Call it.
268 (execute_control_command): Consistently have a blank line between
269 each case.
270
f380848e
SA
2712013-11-22 Sterling Augustine <saugustine@google.com>
272
38e1f2a7 273 PR gdb/16196:
f380848e
SA
274 * valprint.c (read_string): Set new variable fetchlen based on
275 fetchlimit and size. Use it in call to partial_memory_read.
276 Update comment.
277
da2b2fdf
TT
2782013-11-22 Tom Tromey <tromey@redhat.com>
279
280 PR backtrace/16155:
281 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
282 the return address column is unspecified.
283
6eeee81c
TT
2842013-11-22 Tom Tromey <tromey@redhat.com>
285 Pedro Alves <palves@redhat.com>
286
287 PR backtrace/16155
288 * value.c (value_fetch_lazy): Internal error if
289 get_frame_register_value returns the same register.
290
194cca41
PA
2912013-11-22 Pedro Alves <palves@redhat.com>
292 Tom Tromey <tromey@redhat.com>
293
294 * frame.c (frame_stash_add): Now returns whether a frame with the
295 same ID was already known.
296 (compute_frame_id): New function, factored out from get_frame_id.
297 (get_frame_id): No longer lazilly compute the frame id here.
298 (get_prev_frame_if_no_cycle): New function. Detects wider stack
299 cycles.
300 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
301 and checking for stack cycles here.
302
33f8fe58
PA
3032013-11-22 Pedro Alves <palves@redhat.com>
304
305 PR 16155
306 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
307 this frame and the new previous frame, not between this frame and
308 the next frame.
309
1ec56e88
PA
3102013-11-22 Pedro Alves <palves@redhat.com>
311
312 PR 16155
313 * dwarf2-frame.c (struct dwarf2_frame_cache)
314 <checked_tailcall_bottom, entry_cfa_sp_offset,
315 entry_cfa_sp_offset_p>: New fields.
316 (dwarf2_frame_cache): Adjust to use the new cache fields instead
317 of locals. Don't call dwarf2_tailcall_sniffer_first here.
318 (dwarf2_frame_prev_register): Call it here, but only once.
319
ca092b61
DE
3202013-11-21 Doug Evans <xdje42@gmail.com>
321
322 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
323 (type_equality_entry): Move here from python/py-type.c.
324 (type_equality_entry_d): Ditto.
325 (compare_maybe_null_strings, check_types_equal): Ditto.
326 (check_types_worklist, types_deeply_equal): Ditto.
327 * gdbtypes.h (types_deeply_equal): Declare.
328 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
329 (typy_richcompare): Update.
330
7c245c24
JB
3312013-11-20 Joel Brobecker <brobecker@adacore.com>
332
333 * python/py-value.c (is_intlike): Delete.
334 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
335 by use of is_integral_type.
336 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
337 by use of is_integral_type and check for TYPE_CODE_PTR.
338
8986e351
TT
3392013-11-20 Tom Tromey <tromey@redhat.com>
340
341 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
342 strerror module.
343 * gnulib/aclocal.m4: Update.
344 * gnulib/config.in: Update.
345 * gnulib/configure: Update.
346 * gnulib/import/Makefile.am: Update.
347 * gnulib/import/Makefile.in: Update.
348 * gnulib/import/errno.in.h: Remove.
349 * gnulib/import/intprops.h: Remove.
350 * gnulib/import/m4/errno_h.m4: Remove.
351 * gnulib/import/m4/gnulib-cache.m4: Update.
352 * gnulib/import/m4/gnulib-comp.m4: Update.
353 * gnulib/import/m4/strerror.m4: Remove.
354 * gnulib/import/m4/sys_socket_h.m4: Remove.
355 * gnulib/import/strerror-override.c: Remove.
356 * gnulib/import/strerror-override.h: Remove.
357 * gnulib/import/strerror.c: Remove.
358 * gnulib/update-gnulib.sh: Update.
359
6b1141e3
YQ
3602013-11-20 Yao Qi <yao@codesourcery.com>
361
362 * target-dcache.c (target_dcache_get_or_init): Call
363 set_address_space_data if 'dcache' is NULL.
364
60650f2e
WT
3652013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
366
367 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
368
09748966
WT
3692013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
370
371 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
372 * data-directory/Makefile.in: Copy bond_register.py to the right path
373 to be initialized at gdb startup.
09748966 374
e43e105e
WT
3752013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
376
377 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
378 Add MPX registers.
379 (amd64_linux_read_description): Add initialization for MPX and
380 AVX independently.
381 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
382 (amd64_linux_gregset_reg_offset): Add MPX registers.
383 (amd64_linux_core_read_description): Add initialization for MPX
384 registers.
385 (_initialize_amd64_linux_tdep): Initialize MPX targets.
386 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
387 register on the list.
388 (tdesc_amd64_mpx_linux) Add new target for MPX.
389 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
390 (amd64_mpx_names): MPX register names.
391 (amd64_init_abi): Add MPX register while initializing the ABI.
392 (_initialize_amd64_tdep): Initialize MPX targets.
393 * amd64-tdep.h (amd64_regnum): Add MPX registers.
394 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
395
1dbcd68c
WT
3962013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
397
398 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
399 registers on the range of registers to be read from
400 xsave buffer.
401 (i386_linux_read_description): Add case for MPX.
402 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
403 (i386_linux_gregset_reg_offset): Add MPX registers.
404 (i386_linux_core_read_description): Initialize also MPX.
405 (_initialize_i386_linux_tdep): Add mpx initialization.
406 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
407 mpx_register_names.
408 (i386_regnum): Add MPX registers.
409 (I386_MPX_NUM_REGS): New macro.
410 (i386_bnd_regnum_p): New function.
411 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
412 number of registers to be the number of BNDSTATUS.
413 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
414 * i386-tdep.c: Include features/i386/i386-mpx.c.
415 (i386_mpx_names): Add MPX register names array.
416 (i386_bnd_names): Add bnd pseudo register names array.
417 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
418 registers.
419 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
420 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
421 registers.
422 (i386_bnd_type): New function.
423 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
424 register types.
425 (i386_pseudo_register_read_into_value): Add bnd case.
426 (i386_pseudo_register_write): Add bnd pseudo registers.
427 (i386_register_reggroup_p): Add MPX register to the group all.
428 (i386_validate_tdesc_p): Add MPX to the target description
429 validation.
430 (i386_pseudo_register_name): Add bnd pseudo registers.
431 (i386_gdbarch_init): Add MPX for architecture initialization.
432 (_initia_initialize_i386_tdep): Add mpx initialization.
433 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
434 XSAVE buffer.
435 (XSAVE_MPX_ADDR): New macro.
436 (i387_supply_xsave): Add MPX case.
437 (i387_collect_xsave): Add MPX case.
438 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
439 (I387_BNDCFGU_REGNUM): New macro.
440 (I387_NUM_MPX_REGS): New macro.
441 (I387_NUM_BND_REGS): New macro.
442 (I387_NUM_MPX_CTRL_REGS): New macro.
443 (I387_MPXEND_REGNUM): New macro.
444 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
445 (I386_XSTATE_BNDCFG): Likewise.
446 (I386_XSTATE_MPX_MASK): Likewise.
447 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
448 (I386_XSTATE_BNDREGS_SIZE): New macro.
449 (I386_XSTATE_BNDCFG_SIZE): Likewise.
450 (I386_XSTATE_SIZE): Adapt for MPX.
451 (I386_XSTATE_MAX_SIZE): Likewise.
452
ccc42043
WT
4532013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
454
455 * features/i386/Makefile: Adapts for using MPX registers.
456 * features/i386/32bit-mpx.xml: New file.
457 * features/i386/64bit-mpx.xml: Likewise.
458 * features/i386/amd64-mpx-linux.c: Likewise.
459 * features/i386/amd64-mpx-linux.xml: Likewise.
460 * features/i386/amd64-mpx.c: Likewise.
461 * features/i386/amd64-mpx.xml: Likewise.
462 * features/i386/i386-mpx-linux.c: Likewise.
463 * features/i386/i386-mpx-linux.xml: Likewise.
464 * features/i386/i386-mpx.c: Likewise.
465 * features/i386/i386-mpx.xml: Likewise.
466 * regformats/i386/amd64-mpx-linux.dat: New file.
467 * regformats/i386/amd64-mpx.dat: Likewise.
468 * regformats/i386/i386-mpx-linux.dat: Likewise.
469 * regformats/i386/i386-mpx.dat: Likewise.
470
57803a3c
WT
4712013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
472
473 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
474 Modified logic of creating a bitfield to be in sync with
475 tdesc_gdb_type.
476
2b59118e
WN
4772013-11-20 Will Newton <will.newton@linaro.org>
478
479 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
480 error message.
481
b26dfc9a
YQ
4822013-11-20 Yao Qi <yao@codesourcery.com>
483
484 * progspace.h (struct address_space_data): Declare.
485 * target-dcache.c: Include "progspace.h".
486 (target_dache): Remove.
487 (target_dcache_aspace_key): New.
488 (target_dcache_cleanup): New function.
489 (target_dcache_init_p): Get data through
490 target_dcache_aspace_key.
491 (target_dcache_invalidate): Likewise.
492 (target_dcache_get): Likewise.
493 (target_dcache_get_or_init): Likewise.
494 (_initialize_target_dcache): Initialize
495 target_dcache_aspace_key.
496
3a8356ff
YQ
4972013-11-20 Yao Qi <yao@codesourcery.com>
498
499 * progspace.c (struct address_space): Update comments.
500 <REGISTRY_FIELDS>: New fields.
501 DEFINE_REGISTRY for address_space.
502 (new_address_space): Call address_space_alloc_data.
503 (free_address_space): Call address_space_free_data.
504 * progspace.h: Use DECLARE_REGISTRY.
505
68c765e2
YQ
5062013-11-20 Yao Qi <yao@codesourcery.com>
507
508 * Makefile.in (SFILES):Add target-dcache.c.
509 (HFILES_NO_SRCDIR): Add target-dcache.h.
510 (COMMON_OBS): Add target-dcache.o.
511 * dcache.c: Remove inclusion to "target.h". Include
512 "target-dcache.h".
513 * memattr.c: Include "target-dcache.h".
514 * top.c: Likewise.
515 * tracepoint.c: Likewise.
516 * target.c: (stack_cache_enabled_p_1): Move to
517 target-dcache.c.
518 (stack_cache_enabled_p): Likewise.
519 (set_stack_cache_enabled_p): Likewise.
520 (show_stack_cache_enabled_p): Likewise.
521 (target_dcache, target_dcache_init_p): Likewise.
522 (target_dcache_invalidate): Likewise.
523 (target_dcache_get, target_dcache_get_or_init): Likewise.
524 (memory_xfer_partial_1): Call function stack_cache_enabled.
525 (initialize_target): Move code to target-dcache.c.
526 * target.h (target_dcache_invalidate): Move to
527 target-dcache.h.
528 (target_dcache_get): Likewise.
529 * target-dcache.c: New.
530 * target-dcache.h: New.
531
f2de9785
YQ
5322013-11-20 Yao Qi <yao@codesourcery.com>
533
534 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
535 it is initialized.
536
2a2f9fe4
YQ
5372013-11-20 Yao Qi <yao@codesourcery.com>
538
539 * dcache.c (last_cache): Remove.
540 (dcache_free, dcache_init): Update.
541 (dcache_update):
542 (dcache_print_line): Add parameter 'dcache'. Replace
543 'target_dcache' with 'dcache'.
544 (dcache_info): Move code to dcache_info_1. Call
545 'dcache_info_1'.
546 (dcache_info_1): New function.
547 (set_dcache_size): Call target_dcache_invalidate.
548 (set_dcache_line_size): Call target_dcache_invalidate.
549 * target.c (target_dcache_init_p): New function.
550 (target_dcache_invalidate): Check target_dcache_init_p first.
551 (target_dcache_get, target_dcache_get_or_init): New function.
552 (memory_xfer_partial_1): Adjust.
553 (initialize_target): Don't initialize 'target_dcache'.
554 * target.h (struct dcache_struct): Declare.
555 (target_dcache_get): Declare.
556
8ab91b96
YQ
5572013-11-19 Yao Qi <yao@codesourcery.com>
558
559 * varobj.c (varobj_get_type): Fix typo.
560
df7752b0
JB
5612013-11-19 Joel Brobecker <brobecker@adacore.com>
562
563 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
564
4a0a886a
JB
5652013-11-19 Joel Brobecker <brobecker@adacore.com>
566
567 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
568 "stat.h".
569
53ce3c39
TT
5702013-11-18 Tom Tromey <tromey@redhat.com>
571
572 * common/gdb_stat.h: Remove.
573 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
574 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
575 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
576 * corefile.c: Use sys/stat.h, not gdb_stat.h.
577 * ctf.c: Use sys/stat.h, not gdb_stat.h.
578 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
579 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
580 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
581 * exec.c: Use sys/stat.h, not gdb_stat.h.
582 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
583 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
584 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
585 * jit.c: Use sys/stat.h, not gdb_stat.h.
586 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
587 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
588 * main.c: Use sys/stat.h, not gdb_stat.h.
589 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
590 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
591 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
592 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
593 * procfs.c: Use sys/stat.h, not gdb_stat.h.
594 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
595 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
596 * remote.c: Use sys/stat.h, not gdb_stat.h.
597 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
598 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
599 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
600 * source.c: Use sys/stat.h, not gdb_stat.h.
601 * symfile.c: Use sys/stat.h, not gdb_stat.h.
602 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
603 * symtab.c: Use sys/stat.h, not gdb_stat.h.
604 * top.c: Use sys/stat.h, not gdb_stat.h.
605 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
606
09607c9e
TT
6072013-11-18 Tom Tromey <tromey@redhat.com>
608
609 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
610 sys_stat.
611 * gnulib/aclocal.m4: Update.
612 * gnulib/config.in: Update.
613 * gnulib/configure: Update.
614 * gnulib/import/Makefile.am: Update.
615 * gnulib/import/Makefile.in: Update.
616 * gnulib/import/m4/gnulib-cache.m4: Update.
617 * gnulib/import/m4/gnulib-comp.m4: Update.
618 * gnulib/import/m4/sys_stat_h.m4: New.
619 * gnulib/import/m4/time_h.m4: New.
620 * gnulib/import/sys_stat.in.h: New.
621 * gnulib/import/time.in.h: New.
622
4ff70b84
TT
6232013-11-18 Tom Tromey <tromey@redhat.com>
624
625 * configure: Rebuild.
626 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
627
3447c057
TT
6282013-11-18 Tom Tromey <tromey@redhat.com>
629
630 * configure: Rebuild.
631 * configure.ac: Don't check for unistd.h.
632
0080a2f6
TT
6332013-11-18 Tom Tromey <tromey@redhat.com>
634
635 * configure: Rebuild.
636 * configure.ac: Don't check for stdlib.h
637 * defs.h: Include stdlib.h unconditionally.
638
161d1bec
TT
6392013-11-18 Tom Tromey <tromey@redhat.com>
640
641 * config.in: Rebuild.
642 * configure: Rebuild.
643 * configure.ac: Don't check for stddef.h.
644 * defs.h: Unconditionally include stddef.h. Remove duplicate
645 inclusion.
646
2978b111
TT
6472013-11-18 Tom Tromey <tromey@redhat.com>
648
649 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
650 * common/gdb_dirent.h: Remove.
651 * common/filestuff.c: Use dirent.h.
652 * common/linux-osdata.c: Use dirent.h.
653 (NAMELEN): Define.
654 * config.in: Rebuild.
655 * configure: Rebuild.
656 * configure.ac: Don't use AC_HEADER_DIRENT.
657 * linux-fork.c: Use dirent.h
658 * linux-nat.c: Use dirent.h.
659 * nto-procfs.c: Use dirent.h.
660 * procfs.c: Use dirent.h.
661
e26b6bb0
TT
6622013-11-18 Tom Tromey <tromey@redhat.com>
663
664 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
665 * gnulib/aclocal.m4: Update.
666 * gnulib/config.in: Update.
667 * gnulib/configure: Update.
668 * gnulib/import/Makefile.am: Update.
669 * gnulib/import/Makefile.in: Update.
670 * gnulib/import/dirent.in.h: New.
671 * gnulib/import/m4/dirent_h.m4: New.
672 * gnulib/import/m4/gnulib-cache.m4: Update.
673 * gnulib/import/m4/gnulib-comp.m4: Update.
674
a3d08894
TT
6752013-11-18 Tom Tromey <tromey@redhat.com>
676
677 * configure: Rebuild.
678 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
679 strings.h.
680
0e9f083f
TT
6812013-11-18 Tom Tromey <tromey@redhat.com>
682
683 * common/gdb_string.h: Remove.
684 * aarch64-tdep.c: Use string.h, not gdb_string.h.
685 * ada-exp.y: Use string.h, not gdb_string.h.
686 * ada-lang.c: Use string.h, not gdb_string.h.
687 * ada-lex.l: Use string.h, not gdb_string.h.
688 * ada-typeprint.c: Use string.h, not gdb_string.h.
689 * ada-valprint.c: Use string.h, not gdb_string.h.
690 * aix-thread.c: Use string.h, not gdb_string.h.
691 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
692 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
693 * alpha-nat.c: Use string.h, not gdb_string.h.
694 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
695 * alpha-tdep.c: Use string.h, not gdb_string.h.
696 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
697 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
698 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
699 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
700 * amd64-nat.c: Use string.h, not gdb_string.h.
701 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
702 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
703 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
704 * arch-utils.c: Use string.h, not gdb_string.h.
705 * arm-linux-nat.c: Use string.h, not gdb_string.h.
706 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
707 * arm-tdep.c: Use string.h, not gdb_string.h.
708 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
709 * armbsd-tdep.c: Use string.h, not gdb_string.h.
710 * armnbsd-nat.c: Use string.h, not gdb_string.h.
711 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
712 * armobsd-tdep.c: Use string.h, not gdb_string.h.
713 * avr-tdep.c: Use string.h, not gdb_string.h.
714 * ax-gdb.c: Use string.h, not gdb_string.h.
715 * ax-general.c: Use string.h, not gdb_string.h.
716 * bcache.c: Use string.h, not gdb_string.h.
717 * bfin-tdep.c: Use string.h, not gdb_string.h.
718 * breakpoint.c: Use string.h, not gdb_string.h.
719 * build-id.c: Use string.h, not gdb_string.h.
720 * buildsym.c: Use string.h, not gdb_string.h.
721 * c-exp.y: Use string.h, not gdb_string.h.
722 * c-lang.c: Use string.h, not gdb_string.h.
723 * c-typeprint.c: Use string.h, not gdb_string.h.
724 * c-valprint.c: Use string.h, not gdb_string.h.
725 * charset.c: Use string.h, not gdb_string.h.
726 * cli-out.c: Use string.h, not gdb_string.h.
727 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
728 * cli/cli-decode.c: Use string.h, not gdb_string.h.
729 * cli/cli-dump.c: Use string.h, not gdb_string.h.
730 * cli/cli-interp.c: Use string.h, not gdb_string.h.
731 * cli/cli-logging.c: Use string.h, not gdb_string.h.
732 * cli/cli-script.c: Use string.h, not gdb_string.h.
733 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
734 * cli/cli-utils.c: Use string.h, not gdb_string.h.
735 * coffread.c: Use string.h, not gdb_string.h.
736 * common/common-utils.c: Use string.h, not gdb_string.h.
737 * common/filestuff.c: Use string.h, not gdb_string.h.
738 * common/linux-procfs.c: Use string.h, not gdb_string.h.
739 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
740 * common/signals.c: Use string.h, not gdb_string.h.
741 * common/vec.h: Use string.h, not gdb_string.h.
742 * core-regset.c: Use string.h, not gdb_string.h.
743 * corefile.c: Use string.h, not gdb_string.h.
744 * corelow.c: Use string.h, not gdb_string.h.
745 * cp-abi.c: Use string.h, not gdb_string.h.
746 * cp-support.c: Use string.h, not gdb_string.h.
747 * cp-valprint.c: Use string.h, not gdb_string.h.
748 * cris-tdep.c: Use string.h, not gdb_string.h.
749 * d-lang.c: Use string.h, not gdb_string.h.
750 * dbxread.c: Use string.h, not gdb_string.h.
751 * dcache.c: Use string.h, not gdb_string.h.
752 * demangle.c: Use string.h, not gdb_string.h.
753 * dicos-tdep.c: Use string.h, not gdb_string.h.
754 * disasm.c: Use string.h, not gdb_string.h.
755 * doublest.c: Use string.h, not gdb_string.h.
756 * dsrec.c: Use string.h, not gdb_string.h.
757 * dummy-frame.c: Use string.h, not gdb_string.h.
758 * dwarf2-frame.c: Use string.h, not gdb_string.h.
759 * dwarf2loc.c: Use string.h, not gdb_string.h.
760 * dwarf2read.c: Use string.h, not gdb_string.h.
761 * elfread.c: Use string.h, not gdb_string.h.
762 * environ.c: Use string.h, not gdb_string.h.
763 * eval.c: Use string.h, not gdb_string.h.
764 * event-loop.c: Use string.h, not gdb_string.h.
765 * exceptions.c: Use string.h, not gdb_string.h.
766 * exec.c: Use string.h, not gdb_string.h.
767 * expprint.c: Use string.h, not gdb_string.h.
768 * f-exp.y: Use string.h, not gdb_string.h.
769 * f-lang.c: Use string.h, not gdb_string.h.
770 * f-typeprint.c: Use string.h, not gdb_string.h.
771 * f-valprint.c: Use string.h, not gdb_string.h.
772 * fbsd-nat.c: Use string.h, not gdb_string.h.
773 * findcmd.c: Use string.h, not gdb_string.h.
774 * findvar.c: Use string.h, not gdb_string.h.
775 * fork-child.c: Use string.h, not gdb_string.h.
776 * frame.c: Use string.h, not gdb_string.h.
777 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
778 * frv-tdep.c: Use string.h, not gdb_string.h.
779 * gdb.c: Use string.h, not gdb_string.h.
780 * gdb_bfd.c: Use string.h, not gdb_string.h.
781 * gdbarch.c: Use string.h, not gdb_string.h.
782 * gdbtypes.c: Use string.h, not gdb_string.h.
783 * gnu-nat.c: Use string.h, not gdb_string.h.
784 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
785 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
786 * go-exp.y: Use string.h, not gdb_string.h.
787 * go-lang.c: Use string.h, not gdb_string.h.
788 * go32-nat.c: Use string.h, not gdb_string.h.
789 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
790 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
791 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
792 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
793 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
794 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
795 * i386-linux-nat.c: Use string.h, not gdb_string.h.
796 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
797 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
798 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
799 * i386-tdep.c: Use string.h, not gdb_string.h.
800 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
801 * i386gnu-nat.c: Use string.h, not gdb_string.h.
802 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
803 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
804 * i387-tdep.c: Use string.h, not gdb_string.h.
805 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
806 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
807 * inf-child.c: Use string.h, not gdb_string.h.
808 * inf-ptrace.c: Use string.h, not gdb_string.h.
809 * inf-ttrace.c: Use string.h, not gdb_string.h.
810 * infcall.c: Use string.h, not gdb_string.h.
811 * infcmd.c: Use string.h, not gdb_string.h.
812 * inflow.c: Use string.h, not gdb_string.h.
813 * infrun.c: Use string.h, not gdb_string.h.
814 * interps.c: Use string.h, not gdb_string.h.
815 * iq2000-tdep.c: Use string.h, not gdb_string.h.
816 * irix5-nat.c: Use string.h, not gdb_string.h.
817 * jv-exp.y: Use string.h, not gdb_string.h.
818 * jv-lang.c: Use string.h, not gdb_string.h.
819 * jv-typeprint.c: Use string.h, not gdb_string.h.
820 * jv-valprint.c: Use string.h, not gdb_string.h.
821 * language.c: Use string.h, not gdb_string.h.
822 * linux-fork.c: Use string.h, not gdb_string.h.
823 * linux-nat.c: Use string.h, not gdb_string.h.
824 * lm32-tdep.c: Use string.h, not gdb_string.h.
825 * m2-exp.y: Use string.h, not gdb_string.h.
826 * m2-typeprint.c: Use string.h, not gdb_string.h.
827 * m32c-tdep.c: Use string.h, not gdb_string.h.
828 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
829 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
830 * m32r-rom.c: Use string.h, not gdb_string.h.
831 * m32r-tdep.c: Use string.h, not gdb_string.h.
832 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
833 * m68k-tdep.c: Use string.h, not gdb_string.h.
834 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
835 * m68klinux-nat.c: Use string.h, not gdb_string.h.
836 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
837 * m88k-tdep.c: Use string.h, not gdb_string.h.
838 * macrocmd.c: Use string.h, not gdb_string.h.
839 * main.c: Use string.h, not gdb_string.h.
840 * mdebugread.c: Use string.h, not gdb_string.h.
841 * mem-break.c: Use string.h, not gdb_string.h.
842 * memattr.c: Use string.h, not gdb_string.h.
843 * memory-map.c: Use string.h, not gdb_string.h.
844 * mep-tdep.c: Use string.h, not gdb_string.h.
845 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
846 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
847 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
848 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
849 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
850 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
851 * mi/mi-console.c: Use string.h, not gdb_string.h.
852 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
853 * mi/mi-interp.c: Use string.h, not gdb_string.h.
854 * mi/mi-main.c: Use string.h, not gdb_string.h.
855 * mi/mi-parse.c: Use string.h, not gdb_string.h.
856 * microblaze-rom.c: Use string.h, not gdb_string.h.
857 * microblaze-tdep.c: Use string.h, not gdb_string.h.
858 * mingw-hdep.c: Use string.h, not gdb_string.h.
859 * minidebug.c: Use string.h, not gdb_string.h.
860 * minsyms.c: Use string.h, not gdb_string.h.
861 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
862 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
863 * mips-tdep.c: Use string.h, not gdb_string.h.
864 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
865 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
866 * mipsread.c: Use string.h, not gdb_string.h.
867 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
868 * mn10300-tdep.c: Use string.h, not gdb_string.h.
869 * monitor.c: Use string.h, not gdb_string.h.
870 * moxie-tdep.c: Use string.h, not gdb_string.h.
871 * mt-tdep.c: Use string.h, not gdb_string.h.
872 * nbsd-tdep.c: Use string.h, not gdb_string.h.
873 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
874 * nto-procfs.c: Use string.h, not gdb_string.h.
875 * nto-tdep.c: Use string.h, not gdb_string.h.
876 * objc-lang.c: Use string.h, not gdb_string.h.
877 * objfiles.c: Use string.h, not gdb_string.h.
878 * opencl-lang.c: Use string.h, not gdb_string.h.
879 * osabi.c: Use string.h, not gdb_string.h.
880 * osdata.c: Use string.h, not gdb_string.h.
881 * p-exp.y: Use string.h, not gdb_string.h.
882 * p-lang.c: Use string.h, not gdb_string.h.
883 * p-typeprint.c: Use string.h, not gdb_string.h.
884 * parse.c: Use string.h, not gdb_string.h.
885 * posix-hdep.c: Use string.h, not gdb_string.h.
886 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
887 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
888 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
889 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
890 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
891 * printcmd.c: Use string.h, not gdb_string.h.
892 * procfs.c: Use string.h, not gdb_string.h.
893 * prologue-value.c: Use string.h, not gdb_string.h.
894 * python/py-auto-load.c: Use string.h, not gdb_string.h.
895 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
896 * ravenscar-thread.c: Use string.h, not gdb_string.h.
897 * regcache.c: Use string.h, not gdb_string.h.
898 * registry.c: Use string.h, not gdb_string.h.
899 * remote-fileio.c: Use string.h, not gdb_string.h.
900 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
901 * remote-mips.c: Use string.h, not gdb_string.h.
902 * remote-sim.c: Use string.h, not gdb_string.h.
903 * remote.c: Use string.h, not gdb_string.h.
904 * reverse.c: Use string.h, not gdb_string.h.
905 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
906 * ser-base.c: Use string.h, not gdb_string.h.
907 * ser-go32.c: Use string.h, not gdb_string.h.
908 * ser-mingw.c: Use string.h, not gdb_string.h.
909 * ser-pipe.c: Use string.h, not gdb_string.h.
910 * ser-tcp.c: Use string.h, not gdb_string.h.
911 * ser-unix.c: Use string.h, not gdb_string.h.
912 * serial.c: Use string.h, not gdb_string.h.
913 * sh-tdep.c: Use string.h, not gdb_string.h.
914 * sh64-tdep.c: Use string.h, not gdb_string.h.
915 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
916 * skip.c: Use string.h, not gdb_string.h.
917 * sol-thread.c: Use string.h, not gdb_string.h.
918 * solib-dsbt.c: Use string.h, not gdb_string.h.
919 * solib-frv.c: Use string.h, not gdb_string.h.
920 * solib-osf.c: Use string.h, not gdb_string.h.
921 * solib-spu.c: Use string.h, not gdb_string.h.
922 * solib-target.c: Use string.h, not gdb_string.h.
923 * solib.c: Use string.h, not gdb_string.h.
924 * somread.c: Use string.h, not gdb_string.h.
925 * source.c: Use string.h, not gdb_string.h.
926 * sparc-nat.c: Use string.h, not gdb_string.h.
927 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
928 * sparc-tdep.c: Use string.h, not gdb_string.h.
929 * sparc64-tdep.c: Use string.h, not gdb_string.h.
930 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
931 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
932 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
933 * spu-linux-nat.c: Use string.h, not gdb_string.h.
934 * spu-multiarch.c: Use string.h, not gdb_string.h.
935 * spu-tdep.c: Use string.h, not gdb_string.h.
936 * stabsread.c: Use string.h, not gdb_string.h.
937 * stack.c: Use string.h, not gdb_string.h.
938 * std-regs.c: Use string.h, not gdb_string.h.
939 * symfile.c: Use string.h, not gdb_string.h.
940 * symmisc.c: Use string.h, not gdb_string.h.
941 * symtab.c: Use string.h, not gdb_string.h.
942 * target.c: Use string.h, not gdb_string.h.
943 * thread.c: Use string.h, not gdb_string.h.
944 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
945 * tilegx-tdep.c: Use string.h, not gdb_string.h.
946 * top.c: Use string.h, not gdb_string.h.
947 * tracepoint.c: Use string.h, not gdb_string.h.
948 * tui/tui-command.c: Use string.h, not gdb_string.h.
949 * tui/tui-data.c: Use string.h, not gdb_string.h.
950 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
951 * tui/tui-file.c: Use string.h, not gdb_string.h.
952 * tui/tui-layout.c: Use string.h, not gdb_string.h.
953 * tui/tui-out.c: Use string.h, not gdb_string.h.
954 * tui/tui-regs.c: Use string.h, not gdb_string.h.
955 * tui/tui-source.c: Use string.h, not gdb_string.h.
956 * tui/tui-stack.c: Use string.h, not gdb_string.h.
957 * tui/tui-win.c: Use string.h, not gdb_string.h.
958 * tui/tui-windata.c: Use string.h, not gdb_string.h.
959 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
960 * typeprint.c: Use string.h, not gdb_string.h.
961 * ui-file.c: Use string.h, not gdb_string.h.
962 * ui-out.c: Use string.h, not gdb_string.h.
963 * user-regs.c: Use string.h, not gdb_string.h.
964 * utils.c: Use string.h, not gdb_string.h.
965 * v850-tdep.c: Use string.h, not gdb_string.h.
966 * valarith.c: Use string.h, not gdb_string.h.
967 * valops.c: Use string.h, not gdb_string.h.
968 * valprint.c: Use string.h, not gdb_string.h.
969 * value.c: Use string.h, not gdb_string.h.
970 * varobj.c: Use string.h, not gdb_string.h.
971 * vax-tdep.c: Use string.h, not gdb_string.h.
972 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
973 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
974 * windows-nat.c: Use string.h, not gdb_string.h.
975 * xcoffread.c: Use string.h, not gdb_string.h.
976 * xml-support.c: Use string.h, not gdb_string.h.
977 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
978 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
979
63ce7108
TT
9802013-11-18 Tom Tromey <tromey@redhat.com>
981
982 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
983 and strstr.
984 * gnulib/aclocal.m4: Update.
985 * gnulib/config.in: Update.
986 * gnulib/configure: Update.
987 * gnulib/import/Makefile.am: Update.
988 * gnulib/import/Makefile.in: Update.
989 * gnulib/import/errno.in.h: New.
990 * gnulib/import/intprops.h: New.
991 * gnulib/import/m4/errno_h.m4: New.
992 * gnulib/import/m4/gnulib-cache.m4: Update.
993 * gnulib/import/m4/gnulib-comp.m4: Update.
994 * gnulib/import/m4/strerror.m4: New.
995 * gnulib/import/m4/strstr.m4: New.
996 * gnulib/import/m4/sys_socket_h.m4: New.
997 * gnulib/import/strerror-override.c: New.
998 * gnulib/import/strerror-override.h: New.
999 * gnulib/import/strerror.c: New.
1000 * gnulib/import/strstr.c: New.
1001
a7c11ee1
TT
10022013-11-18 Tom Tromey <tromey@redhat.com>
1003
1004 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1005 multiple lines.
1006
d0b5971a
JM
10072013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1008
1009 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1010 * sparc-tdep.h: And its prototype.
1011
1012 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1013 function.
1014 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1015
4b4589ad
PA
10162013-11-18 Pedro Alves <palves@redhat.com>
1017
1018 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1019 use unpack_pointer.
1020
422ad5c2
JB
10212013-11-18 Joel Brobecker <brobecker@adacore.com>
1022
1023 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1024 to -list-features output.
1025
b1370418
JB
10262013-11-17 Joel Brobecker <brobecker@adacore.com>
1027
1028 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1029 <read_addr_from_reg>: Renames "read_reg".
1030 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1031 Adjust comment.
1032 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1033 Use read_addr_from_reg in place of read_reg.
1034 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1035 in place of read_reg.
1036 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1037 dwarf_expr_read_reg.
1038 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1039 with dwarf_expr_read_addr_from_reg.
1040 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1041 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1042 needs_frame_read_addr_from_reg.
1043
6ea71545
JK
10442013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1045
1046 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1047
19a1b230
AA
10482013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1049
1050 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1051 NULL.
1052
805e1f19
TT
10532013-11-15 Tom Tromey <tromey@redhat.com>
1054
1055 PR c++/16117:
1056 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1057 (classify_name): Likewise. Prefer a field of "this" over a
1058 filename.
1059 (classify_inner_name, yylex): Update.
1060
0acf8b65
JB
10612013-11-15 Joel Brobecker <brobecker@adacore.com>
1062
1063 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1064 Extend the documentation a bit.
1065 <get_reg_value>: New field.
1066 * dwarf2loc.c (dwarf_expr_get_reg_value)
1067 (needs_frame_get_reg_value): New functions.
1068 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1069 callback.
1070 * dwarf2-frame.c (get_reg_value): New function.
1071 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1072 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1073 Use new callback to compute result_val.
1074
ef1bc9e7
AM
10752013-11-15 Alan Modra <amodra@gmail.com>
1076
1077 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1078 (ppc64_desc_entry_point): ..this. Update comments here and at
1079 call points.
1080 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1081 ppc64_standard_linkage3): Update comments.
1082 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1083 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1084 patterns.
1085 (ppc64_standard_linkage4_target): New function.
1086 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1087 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1088 nop match. Fix comment wrap.
1089
36fa8042
PA
10902013-11-14 Pedro Alves <palves@redhat.com>
1091
1092 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1093 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1094
4f5d7f63
PA
10952013-11-14 Pedro Alves <palves@redhat.com>
1096
1097 * infrun.c (struct execution_control_state)
1098 <stepped_after_stopped_by_watchpoint>: New field.
1099 (get_inferior_stop_soon): New function.
1100 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1101 moved to struct execution_control_state -- adjust. Use
1102 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1103 new function.
1104 (handle_signal_stop): New function, factored out from
1105 handle_inferior_event.
1106
47591c29
PA
11072013-11-14 Pedro Alves <palves@redhat.com>
1108
1109 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1110 return a boolean.
1111 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1112 boolean.
1113 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1114 Adjust to return a boolean.
1115 * breakpoint.h (enum bpstat_signal_value): Delete.
1116 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1117 (bpstat_explains_signal): Likewise.
1118 * infrun.c (handle_inferior_event) <random signal checks>:
1119 bpstat_explains_signal now returns a boolean - adjust. No longer
1120 consider hiding signals.
1121
bac7d97b
PA
11222013-11-14 Pedro Alves <palves@redhat.com>
1123
1124 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1125 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1126 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1127 BPSTAT_SIGNAL_HIDE.
1128 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1129 instead of BPSTAT_SIGNAL_HIDE.
1130 * infrun.c (handle_inferior_event): Rework random signal checks.
1131
ce12b012
PA
11322013-11-14 Pedro Alves <palves@redhat.com>
1133
1134 * infrun.c (struct execution_control_state): Remove
1135 'random_signal' field.
1136 (handle_syscall_event): Use bpstat_causes_stop instead of
1137 bpstat_explains_signal. Don't set ecs->random_signal.
1138 (handle_inferior_event): New 'random_signal' local.
1139 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1140 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1141 bpstat_explains_signal. Don't set ecs->random_signal.
1142 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1143 ecs->random_signal.
1144
05ba8510
PA
11452013-11-14 Pedro Alves <palves@redhat.com>
1146
1147 * infrun.c (handle_inferior_event): Move comment from the
1148 function's body to the function's description, adjusted.
1149
5c09a2c5
PA
11502013-11-14 Pedro Alves <palves@redhat.com>
1151
1152 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1153 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1154 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1155 case.
1156
91822956
TT
11572013-11-14 Tom Tromey <tromey@redhat.com>
1158
1159 * python/py-linetable.c (ltpy_has_line)
1160 (ltpy_get_all_source_lines): Fix loop termination condition.
1161
403cb6b1
JB
11622013-11-14 Joel Brobecker <brobecker@adacore.com>
1163
1164 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1165 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1166 PARSE->LANGUAGE during command execution, if set.
1167 * mi/mi-parse.c: Add "language.h" #include.
1168 (mi_parse): Add parsing of "--language" command option.
1169
1170 * NEWS: Add entry mentioning the new "--language" command option.
1171
b5be8ce0
JB
11722013-11-14 Pedro Alves <palves@redhat.com>
1173 Joel Brobecker <brobecker@adacore.com>
1174
1175 * cli/cli-utils.h (extract_arg_const): Add declaration.
1176 * cli/cli-utils.c (extract_arg_const): New function.
1177 (extract_arg): Reimplement using extract_arg_const.
1178
671afef6
JB
11792013-11-14 Joel Brobecker <brobecker@adacore.com>
1180
1181 * language.h: Add "symtab.h" #include.
1182
6c1b0f7b
DE
11832013-11-13 Doug Evans <xdje42@gmail.com>
1184
1185 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1186 specific breakpoints, don't evaluate breakpoint condition if
1187 different thread.
1188
74921315
KS
11892013-11-13 Keith Seitz <keiths@redhat.com>
1190
248ace2e 1191 PR c++/7935
74921315
KS
1192 PR c++/10541
1193 * cp-support.c (insepct_type): Add support for substituting
1194 namespace aliases, too.
1195 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1196 for DW_TAG_imported_declaration.
1197 (add_partial_symbol): Likewise.
1198 (process_die): Handle namespace aliases with
1199 read_namespace_alias.
1200 (die_needs_namespace): Add DW_TAG_imported_declaration.
1201 (read_namespace_alias): New function.
1202 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1203 (new_symbol_full): Handle DW_TAG_imported_declaration.
1204
793156e6
KS
12052013-11-13 Keith Seitz <keiths@redhat.com>
1206
1207 * p-exp.y (uptok): Make first parameter const.
1208 (yylex): Make `tokstart' and `tokptr' const.
1209 Don't copy the lexer input to a temporary buffer.
1210 Make `p' const.
1211 Remove const workaround for parse_escape.
1212 Create a temporary buffer for a convenience variable instead
1213 of doing in-place modification of the input.
1214 If a match is found with a different case from the input,
1215 do not change the input at all.
1216 Use `tmp' to construct the resultant stoken instead of
1217 `tokstart'.
1218
c42bd95a
DE
12192013-11-13 Doug Evans <xdje42@gmail.com>
1220
1221 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1222
93973826
JB
12232013-11-13 Joel Brobecker <brobecker@adacore.com>
1224
1225 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1226 entry with "ada-exceptions".
1227
846060df
JB
12282013-11-13 Joel Brobecker <brobecker@adacore.com>
1229
1230 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1231 after re-initialization of OBJFILE's obstack.
1232
5efd1b2b 12332013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1234
1235 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1236 bs->stop != 0 on entry. Update function comment. Simplify early
1237 exit for frame mismatch. Reindent rest of function.
1238
ee7615e1
AA
12392013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1240
1241 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1242 NULL.
1243
8943b874
DE
12442013-11-12 Doug Evans <dje@google.com>
1245
1246 Work around gold/15646.
1247 * dwarf2read.c (read_index_from_section): Update comment.
1248 (struct dw2_symtab_iterator): New member global_seen.
1249 (dw2_symtab_iter_init): Initialize it.
1250 (dw2_symtab_iter_next): Skip duplicate global symbols.
1251 (dw2_expand_symtabs_matching): Ditto.
1252
a8a9844d
JB
12532013-11-12 Joel Brobecker <brobecker@adacore.com>
1254
1255 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1256 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1257 command.
1258 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1259 (mi_cmd_info_ada_exceptions): New function.
1260 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1261
778865d3
JB
12622013-11-12 Joel Brobecker <brobecker@adacore.com>
1263
1264 * ada-lang.h: #include "vec.h".
1265 (struct ada_exc_info): New.
1266 (ada_exc_info): New typedef.
1267 (DEF_VEC_O(ada_exc_info)): New vector.
1268 (ada_exceptions_list): Add declaration.
1269 * ada-lang.c (ada_is_exception_sym)
1270 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1271 (sort_remove_dups_ada_exceptions_list)
1272 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1273 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1274 (ada_exceptions_list_1, ada_exceptions_list)
1275 (info_exceptions_command): New function.
1276 (_initialize_ada_language): Add "info exception" command.
1277
bc79de95
PM
12782013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1279
1280 PR python/15629
1281 * NEWS: Add linetable feature.
1282 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1283 * python/py-linetable.c: New file.
1284 * python/py-symtab.c (stpy_get_linetable): New function.
1285 * python/python-internal.h (symtab_to_linetable_object): Declare.
1286 (gdbpy_initialize_linetable): Ditto.
1287 * python/python.c (_initialize_python): Call
1288 gdbpy_initialize_linetable.
1289
2df4d1d5
JB
12902013-11-11 Joel Brobecker <brobecker@adacore.com>
1291
1292 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1293 the documentation of fields "except_string" and "condition".
1294 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1295 CONDITION on the heap before passing it to
1296 create_ada_exception_catchpoint.
1297 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1298 CONDITION.
1299
99c1d451
TT
13002013-11-11 Tom Tromey <tromey@redhat.com>
1301
1302 * config.in, configure: Rebuild.
1303 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1304
8ca5801b
JB
13052013-11-11 Joel Brobecker <brobecker@adacore.com>
1306
1307 * remote-sim.c (gdbsim_detach): Break declaration into
1308 shorter lines. No code change.
1309
7a06d430
EBM
13102013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1311
1312 * remote-sim.c (gdbsim_detach): Fix prototype.
1313
73be47f5
DE
13142013-11-08 Doug Evans <dje@google.com>
1315
1316 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1317 (create_debug_types_hash_table): Only print debugging messages for
1318 each TU if dwarf2-read >= 2.
1319 (process_queue): Ditto.
1320 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1321 Update doc string.
1322
a18d8f10
TT
13232013-11-08 Tom Tromey <tromey@redhat.com>
1324
1325 * configure: Rebuild.
1326 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1327
9467110b
TT
13282013-11-08 Tom Tromey <tromey@redhat.com>
1329
1330 * configure, config.in: Rebuild.
1331 * configure.ac: Remove unused configury.
1332
69706679
TT
13332013-11-08 Tom Tromey <tromey@redhat.com>
1334
1335 * m32c-tdep.c: Use gdb_string.h.
1336
9b4bea72
TT
13372013-11-08 Tom Tromey <tromey@redhat.com>
1338
1339 * configure, config.in: Rebuild.
1340 * configure.ac: Remove all link.h-related checks.
1341
3266f10b
TT
13422013-11-08 Tom Tromey <tromey@redhat.com>
1343
1344 * acinclude.m4: Include common.m4.
1345 * common/common.m4: New file.
1346 * configure, config.in: Rebuild.
1347 * configure.ac: Use GDB_AC_COMMON.
1348
db0fec5c
DE
13492013-11-08 Doug Evans <dje@google.com>
1350
1351 * NEWS: Mention that "set debug symtab-create" now accepts a
1352 verbosity level.
1353 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1354 to set the symtab's primary flag.
1355 * jit.c (finalize_symtab): Ditto.
1356 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1357 * symfile.c (allocate_symtab): Only print debugging messages for
1358 symtab_create_debug levels 2 and higher.
1359 * symtab.c (symtab_create_debug): Change type to unsigned int.
1360 (set_symtab_primary): New function.
1361 (_initialize_symtab): Change "set debug symtab-create" to a
1362 zuinteger option.
1363 * symtab.h (set_symtab_primary): Declare.
1364 (symtab_create_debug): Update decl.
1365
52554a0e
TT
13662013-11-08 Tom Tromey <tromey@redhat.com>
1367
1368 * aix-thread.c (aix_thread_detach): Update.
1369 * corelow.c (core_detach): Update.
1370 * darwin-nat.c (darwin_detach): Update.
1371 * dec-thread.c (dec_thread_detach): Update.
1372 * gnu-nat.c (gnu_detach): Update.
1373 * go32-nat.c (go32_detach): Update.
1374 * inf-ptrace.c (inf_ptrace_detach): Update.
1375 * inf-ttrace.c (inf_ttrace_detach): Update.
1376 * linux-fork.c (linux_fork_detach): Update.
1377 * linux-fork.h (linux_fork_detach): Update.
1378 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1379 local for const-correctness.
1380 * linux-thread-db.c (thread_db_detach): Update.
1381 * monitor.c (monitor_detach): Update.
1382 * nto-procfs.c (procfs_detach): Update.
1383 * procfs.c (procfs_detach): Update.
1384 * record.c (record_detach): Update.
1385 * record.h (record_detach): Update.
1386 * remote-m32r-sdi.c (m32r_detach): Update.
1387 * remote-mips.c (mips_detach): Update.
1388 * remote-sim.c (gdbsim_detach): Update.
1389 * remote.c (remote_detach_1, remote_detach)
1390 (extended_remote_detach): Update.
1391 * sol-thread.c (sol_thread_detach): Update.
1392 * target.c (target_detach): Make "args" const.
1393 (init_dummy_target): Update.
1394 * target.h (struct target_ops) <to_detach>: Make argument const.
1395 (target_detach): Likewise.
1396 * windows-nat.c (windows_detach): Update.
1397
204b5331
DE
13982013-11-07 Doug Evans <dje@google.com>
1399
1400 PR 11786
1401 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1402 and align fields for PT_GNU_RELRO segments.
1403
92e32e33
PM
14042013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1405
ef1bc9e7
AM
1406 PR python/15747
1407 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1408
f76c27b5
PM
14092013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1410
1411 * NEWS: Document Python temporary breakpoint support.
1412 * python/py-breakpoint.c (bppy_get_temporary): New function.
1413 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1414 to temporary if True.
1415
d52cd232
JM
14162013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1417
1418 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1419 removed to allow analyzing unconditional branch instructions
1420 with PC-relative offsets of zero.
1421
fa4d0c40
YQ
14222013-11-07 Yao Qi <yao@codesourcery.com>
1423
1424 * mi/mi-cmd-var.c: Include "language.h".
1425 (mi_cmd_var_info_expression): Get language name from
1426 language_defn.
1427 * varobj.c (varobj_language_string): Remove.
1428 (variable_language): Remove declaration.
1429 (languages): Remove.
1430 (varobj_get_language): Change the type of return value.
1431 (variable_language): Remove.
1432 * varobj.h (enum varobj_languages): Remove.
1433 (varobj_language_string): Remove declaration.
1434 (varobj_get_language): Update declaration.
1435
6abde28f
YQ
14362013-11-07 Yao Qi <yao@codesourcery.com>
1437
1438 * language.h (struct language_defn) <la_natural_name>: New
1439 field.
1440 * ada-lang.c (ada_language_defn): Initialize field
1441 'la_natural_name'.
1442 * c-lang.c (c_language_defn): Likewise.
1443 (cplus_language_defn, asm_language_defn): Likewise.
1444 * d-lang.c (d_language_defn): Likewise.
1445 * f-lang.c (f_language_defn): Likewise.
1446 * go-lang.c (go_language_defn): Likewise.
1447 * jv-lang.c (java_language_defn): Likewise.
1448 * language.c (unknown_language_defn ): Likewise.
1449 (auto_language_defn): Likewise.
1450 * m2-lang.c (m2_language_defn): Likewise.
1451 * objc-lang.c (objc_language_defn): Likewise.
1452 * opencl-lang.c (opencl_language_defn): Likewise.
1453 * p-lang.c (pascal_language_defn): Likewise.
1454
27cd387b
YQ
14552013-11-07 Yao Qi <yao@codesourcery.com>
1456
1457 * language.c (language_str): Return const char *.
1458 (add_language): Add const to 'language_names'
1459 * language.h (struct language_defn) <la_name>: Add const.
1460 (language_str: Update declaration.
1461
6682d959
AA
14622013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1463
1464 * s390-linux-nat.c (s390_read_description): Consider the TE field
1465 in the HWCAP for determining 'have_regset_tdb'.
1466
b9502d3f
WN
14672013-11-06 Will Newton <will.newton@linaro.org>
1468
1469 PR gdb/12866
1470 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1471 values. (read_partial_die): Likewise.
1472
840da61a
MB
14732013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1474
1475 PR cli/16122
1476 * top.c (command_line_input): Unify interactivity tests to use
1477 input_from_terminal_p.
1478 * event-top.c (command_line_handler): Likewise.
1479
7636ccf9
YQ
14802013-11-06 Yao Qi <yao@codesourcery.com>
1481
1482 * Makefile.in (check-perf): New target.
1483
12b27276
WN
14842013-11-05 Will Newton <will.newton@linaro.org>
1485
1486 PR gdb/7670
1487 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1488 (arm_print_float_info): Likewise.
1489
67c059c2
AB
14902013-11-04 Anton Blanchard <anton@samba.org>
1491
1492 * target.c (memory_xfer_partial): Cap write to 4KB.
1493
0569175e
TSD
14942013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1495
1496 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1497 probe scan even when the arch provides no get_longjmp_target.
1498
b18e90f5
PA
14992013-10-31 Pedro Alves <palves@redhat.com>
1500
1501 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1502 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1503 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1504 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1505 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1506 <bpstat handling>: If the bpstat chain wants the signal to be
1507 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1508 GDB_SIGNAL_TRAP.
1509
638aa5a1
AB
15102013-10-31 Andrew Burgess <aburgess@broadcom.com>
1511
1512 * breakpoint.c (update_watchpoint): Update error message and add
1513 an additional error message.
1514
0e5fae36
UW
15152013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1516
1517 * s390-tdep.h: Rename to...
1518 * s390-linux-tdep.h: ...here.
1519 * s390-tdep.c: Rename to...
1520 * s390-linux-tdep.c: ...here. Adjust #include.
1521 * s390-nat.c: Rename to...
1522 * s390-linux-nat.c: ...here. Adjust #include.
1523 * config/s390/s390.mh: Rename to...
1524 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1525 s390-linux-nat.o.
1526 * configure.host: Reflect host rename "s390" -> "linux".
1527 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1528 * Makefile.in (ALL_TARGET_OBS): Likewise.
1529 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1530 s390-linux-tdep.h.
1531 (ALLDEPFILES): Reflect rename of .c files.
1532
34201ae3
UW
15332013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1534
1535 * s390-nat.c: Whitespace cleanup.
1536 * s390-tdep.c: Likewise.
1537 * s390-tdep.h: Remove empty line at end of file.
1538
e17aaa33
MR
15392013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1540
1541 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1542 siginfo_size.
1543
aee17e42
TT
15442013-10-29 Tom Tromey <tromey@redhat.com>
1545
1546 * utils.c (reg): Move undefinition...
1547 * gdb_curses.h: ... here. Update comment to mention AIX.
1548
9ac69859
NB
15492013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1550
1551 * exec.h (add_target_sections_of_objfile): New declaration.
1552 * exec.c (add_target_sections_of_objfile): New function.
1553 * symfile.c (add_symbol_file_command): Update current target sections.
1554 (remove_symbol_file_command): New command.
1555 (symfile_free_objfile): New function.
1556 (_initialize_symfile): Register observer for free_objfile events.
1557 * NEWS: Add description of the remove-symbol-file command.
1558 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1559 * objfiles.c (free_objfile): Notify free_objfile.
1560 (is_addr_in_objfile): New function.
1561 * objfiles.h (is_addr_in_objfile): New declaration.
1562 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1563 events instead of solib_unloaded events.
1564 (_initialize_printcmd): Register observer for free_objfile instead
1565 of solib_unloaded notifications.
1566 * solib.c (remove_user_added_objfile): New function.
1567 (_initialize_symfile): Add remove-symbol-file.
1568
f69d9aef
AB
15692013-10-29 Andrew Burgess <aburgess@broadcom.com>
1570
1571 * infcmd.c (default_print_one_register_info): Use val_print to
1572 print all values even optimized out or unavailable ones. Don't
1573 try to print a raw form of optimized out or unavailable values.
1574
487ad57c
YQ
15752013-10-29 Yao Qi <yao@codesourcery.com>
1576
1577 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1578 parameter 'arg' instead of from program_space_data.
1579 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1580 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1581 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1582 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1583 * inflow.c (inflow_inferior_data_cleanup): Get data from
1584 parameter 'arg' instead of inferior_data.
1585 * registry.h: Add comments.
1586
3c4797ba
PA
15872013-10-28 Pedro Alves <palves@redhat.com>
1588
1589 * breakpoint.c (watchpoints_triggered)
1590 <!target_stopped_data_address>: Hardcode return 1.
1591
cdaa5b73
PA
15922013-10-28 Pedro Alves <palves@redhat.com>
1593
1594 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1595 level and reindent.
1596
94c57d6a
PA
15972013-10-28 Pedro Alves <palves@redhat.com>
1598
1599 * infrun.c (process_event_stop_test): New function, factored out
1600 from handle_inferior_event.
1601 (handle_inferior_event): 'process_event_stop_test' is now a
1602 function instead of a goto label -- adjust.
1603
fcf3daef
PA
16042013-10-28 Pedro Alves <palves@redhat.com>
1605
1606 * infrun.c (handle_inferior_event): Move process_event_stop_test
1607 goto label to the else branch of the ecs->random_signal check,
1608 along with FRAME and GDBARCH re-fetching.
1609
c447ac0b
PA
16102013-10-28 Pedro Alves <palves@redhat.com>
1611
1612 * infrun.c (switch_back_to_stepped_thread): New function, factored
1613 out from handle_inferior_event.
1614 (handle_inferior_event): Adjust to call
1615 switch_back_to_stepped_thread. Call it also at the tail of the
1616 random signal handling, and return, instead of also handling
1617 random signals just before the stepping tests.
1618
f05e4c11
PA
16192013-10-28 Pedro Alves <palves@redhat.com>
1620
1621 * infrun.c (clear_stop_func): Delete.
1622 (handle_inferior_event): Don't call clear_stop_func and don't
1623 clear 'ecs->random_signal'.
1624
ca20d462
YQ
16252013-10-27 Yao Qi <yao@codesourcery.com>
1626
1627 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1628 (varobj_create, varobj_get_path_expr): Update.
1629 (varobj_value_has_mutated, varobj_update): Likewise.
1630 (create_child_with_value, new_root_variable): Likewise.
1631 (number_of_children, name_of_variable): Likewise.
1632 (value_of_child, my_value_of_variable): Likewise.
1633 (varobj_value_is_changeable_p): Likewise.
1634
a53b64ea
YQ
16352013-10-25 Yao Qi <yao@codesourcery.com>
1636
1637 * language.h (struct lang_varobj_ops): Declare.
1638 (struct language_defn) <la_varobj_ops>: New field.
1639 * ada-lang.c: Include "varobj.h"
1640 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1641 ada_varobj_ops.
1642 * c-lang.c: Include "varobj.h"
1643 (c_language_defn): Initialize field 'la_varobj_ops' with
1644 c_varobj_ops.
1645 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1646 cplus_varobj_ops.
1647 (asm_language_defn): Initialize field 'la_varobj_ops' with
1648 default_varobj_ops.
1649 (minimal_language_defn): Likewise.
1650 * d-lang.c (d_language_defn): Likewise.
1651 * f-lang.c (f_language_defn): Likewise.
1652 * go-lang.c (go_language_defn): Likewise.
1653 * m2-lang.c (m2_language_defn): Likewise.
1654 * objc-lang.c (objc_language_defn): Likewise.
1655 * opencl-lang.c (opencl_language_defn): Likewise.
1656 * p-lang.c (pascal_language_defn): Likewise.
1657 * language.c (unknown_language_defn): Likewise.
1658 (auto_language_defn): Likewise.
1659 (local_language_defn): Likewise.
1660 * jv-lang.c (java_language_defn): Initialize field
1661 'la_varobj_ops' with java_varobj_ops.
1662 * varobj.c (varobj_create): Update.
1663 * varobj.h (default_varobj_ops): Define macro.
1664
686d4def
PA
16652013-10-25 Pedro Alves <palves@redhat.com>
1666
1667 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1668 static field value.
1669 (cp_print_static_field): If the value is entirely optimized out,
1670 print <optimized out> here.
1671 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1672 static field value.
1673 * p-valprint.c (pascal_object_print_static_field): If the value is
1674 entirely optimized out, print <optimized out> here.
1675 * valops.c (do_search_struct_field)
1676 (value_struct_elt_for_reference): No longer handle a NULL static
1677 field value.
1678 * value.c (value_static_field): Return an optimized out value
1679 instead of NULL.
1680
6c177e28
YQ
16812013-10-25 Yao Qi <yao@codesourcery.com>
1682
1683 * remote.c (remote_traceframe_info): Return early if
1684 traceframe is not selected.
1685
98322bfa
YQ
16862013-10-25 Yao Qi <yao@codesourcery.com>
1687
1688 * tracepoint.c (traceframe_fun): Remove.
1689 (traceframe_sal): Remove.
1690 (set_traceframe_context): Add local variables.
1691
6ba1f115
JB
16922013-10-25 Joel Brobecker <brobecker@adacore.com>
1693
1694 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1695 and parameter name.
1696
bbe769cc
MR
16972013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1698
1699 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1700 failure from register information collection.
1701
72ee4495 17022013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1703
1704 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1705 member.
1706 (linux_corefile_thread_callback): Update accordingly.
1707 (linux_make_corefile_notes): Likewise.
1708
98882a26
PA
17092013-10-24 Pedro Alves <palves@redhat.com>
1710
1711 * NEWS (New options): Mention set/show startup-with-shell.
1712 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1713 instead of 3.
1714 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1715 startup-with-shell'.
1716 (show_startup_with_shell): New function.
1717 (_initialize_fork_child): Register the set/show startup-with-shell
1718 commands.
1719 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1720 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1721 * procfs.c (procfs_init_inferior): Remove comment.
1722 * infcmd.c (startup_with_shell): New global.
1723 * inferior.h (startup_with_shell): Declare global.
1724 (STARTUP_WITH_SHELL): Delete.
1725 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1726
c9737c08
PA
17272013-10-23 Pedro Alves <palves@redhat.com>
1728
1729 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1730 * common/signals.c: Include "gdb_assert.h".
1731 (signals): New field 'symbol'.
1732 (SET): Use the 'symbol' parameter.
1733 (gdb_signal_to_symbol_string): New function.
1734 * infrun.c (handle_inferior_event) <random signal>: In debug
1735 output, print the random signal enum as string in addition to its
1736 number.
1737 * target/waitstatus.c (target_waitstatus_to_string): Print the
1738 signal's enum value as string instead of the (POSIX) signal name.
1739
f60db4f0
GB
17402013-10-23 Gary Benson <gbenson@redhat.com>
1741
1742 PR 16013
1743 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1744 from 32 to 18. Adjusted fscanf format string accordingly.
1745 (Avoids leaving cmd unterminated.)
1746 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1747 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1748 that local_address and remote_address will not overflow.
1749 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1750 leaving dependencies unterminated. Parse size as "%u" to match
1751 definition.
1752
6d3e7a94
PA
17532013-10-22 Pedro Alves <palves@redhat.com>
1754
1755 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1756 set ecs->random signal.
1757
42ec045f
PA
17582013-10-22 Pedro Alves <palves@redhat.com>
1759
1760 * infrun.c (keep_going): Update comments.
1761
17622013-10-22 Pedro Alves <palves@redhat.com>
1763
1764 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1765 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1766
17672013-10-22 Pedro Alves <palves@redhat.com>
1768
1769 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1770 GDB_EXC_BAD_ACCESS.
1771 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1772 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1773 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1774 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1775 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1776 (GDB_SIGNAL_LAST): Change description string.
1777 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1778 Adjust to signal renaming.
1779 * darwin-nat.c (darwin_decode_message): Likewise.
1780
c8fde1b1
JM
17812013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1782
1783 * MAINTAINERS (Write After Approval): Add myself to the list.
1784
e8369a73
AB
17852013-10-18 Andrew Burgess <aburgess@broadcom.com>
1786
1787 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1788 forced off, downgrade them to software watchpoints if possible,
1789 and error out if not possible.
1790 (watch_command_1): Move watchpoint type selection closer to
1791 watchpoint creation, and extend the comments.
1792
776f04fa
PA
17932013-10-18 Pedro Alves <palves@redhat.com>
1794
1795 PR gdb/16062
1796 * infrun.c (handle_inferior_event): Keep going if we got a random
1797 signal we should not stop for, instead of falling through to the
1798 step tests.
1799
0c6faab5
YQ
18002013-10-18 Yao Qi <yao@codesourcery.com>
1801
1802 * c-varobj.c (cplus_number_of_children): Fix indentation.
1803
50b34a18
TT
18042013-10-17 Tom Tromey <tromey@redhat.com>
1805
1806 PR gdb/15995:
1807 * printcmd.c (printcmd): Call gdb_flush.
1808
5c4c8a59
TT
18092013-10-17 Tom Tromey <tromey@redhat.com>
1810
1811 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1812 (elf_locate_sections): Update.
1813
c4124bf1
YQ
18142013-10-17 Yao Qi <yao@codesourcery.com>
1815
1816 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1817 * ada-varobj.c: Remove the include of ada-varobj.h.
1818 (ada_varobj_get_number_of_children): Declare.
1819 (ada_varobj_get_name_of_child): Make it static.
1820 (ada_varobj_get_path_expr_of_child): Likewise.
1821 (ada_varobj_get_value_of_child): Likewise.
1822 (ada_varobj_get_type_of_child): Likewise.
1823 (ada_varobj_get_value_of_array_variable): Likewise.
1824 * ada-varobj.h: Remove.
1825
99ad9427
YQ
18262013-10-17 Yao Qi <yao@codesourcery.com>
1827
1828 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1829 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1830 * ada-varobj.c: Include "varobj.h".
1831 (ada_number_of_children): New. Moved from varobj.c.
1832 (ada_name_of_variable, ada_name_of_child): Likewise.
1833 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1834 (ada_type_of_child, ada_value_of_variable): Likewise.
1835 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1836 (ada_varobj_ops): New.
1837 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1838 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1839 * gdbtypes.h (get_target_type): Declare.
1840 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1841 "ada-lang.h".
1842 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1843 (ANONYMOUS_UNION_NAME): Likewise.
1844 (get_type, get_value_type, get_target_type): Remove declarations.
1845 (value_get_print_value, varobj_value_get_print_value): Likewise.
1846 (c_number_of_children, c_name_of_variable): Likewise.
1847 (c_name_of_child, c_path_expr_of_child): Likewise.
1848 (c_value_of_child, c_type_of_child): Likewise.
1849 (c_value_of_variable, cplus_number_of_children): Likewise.
1850 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1851 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1852 (cplus_value_of_child, cplus_type_of_child): Likewise.
1853 (cplus_value_of_variable, java_number_of_children): Likewise.
1854 (java_name_of_variable, java_name_of_child): Likewise.
1855 (java_path_expr_of_child, java_value_of_child): Likewise.
1856 (java_type_of_child, java_value_of_variable): Likewise.
1857 (ada_number_of_children, ada_name_of_variable): Likewise.
1858 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1859 (ada_value_of_child, ada_type_of_child): Likewise.
1860 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1861 (ada_value_has_mutated): Likewise.
1862 (struct language_specific): Move it to varobj.h.
1863 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1864 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1865 Callers update.
1866 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1867 Make it extern.
1868 (is_anonymous_child): Move it to c-varobj.c and rename to
1869 varobj_is_anonymous_child. Caller update.
1870 (get_type): Move it to c-varobj.c.
1871 (get_value_type): Rename it varobj_get_value_type. Make it
1872 extern.
1873 (get_target_type): Move it gdbtypes.c.
1874 (varobj_formatted_print_options): New function.
1875 (value_get_print_value): Rename it to
1876 varobj_value_get_print_value and make it extern.
1877 (varobj_value_is_changeable_p): Make it extern.
1878 (adjust_value_for_child_access): Move it to c-varobj.c.
1879 (default_value_is_changeable_p): Rename it to
1880 varobj_default_value_is_changeable_p. Make it extern.
1881 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1882 (c_name_of_child, c_path_expr_of_child): Likewise.
1883 (c_value_of_child, c_type_of_child): Likewise.
1884 (c_value_of_variable, cplus_number_of_children): Likewise.
1885 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1886 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1887 (cplus_value_of_child, cplus_type_of_child): Likewise.
1888 (cplus_value_of_variable): Likewise.
1889 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1890 (java_name_of_child, java_path_expr_of_child): Likewise.
1891 (java_value_of_child, java_type_of_child): Likewise.
1892 (java_value_of_variable): Likewise.
1893 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1894 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1895 (ada_value_of_child, ada_type_of_child): Likewise.
1896 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1897 (ada_value_has_mutated): Likewise.
1898 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1899 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1900 (c_varobj_ops, cplus_varobj_ops): Declare.
1901 (java_varobj_ops, ada_varobj_ops): Declare.
1902 (varobj_default_value_is_changeable_p): Declare.
1903 (varobj_value_is_changeable_p): Declare.
1904 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1905 (varobj_get_path_expr_parent): Declare.
1906 (varobj_value_get_print_value): Declare.
1907 (varobj_formatted_print_options): Declare.
1908 (varobj_restrict_range): Declare.
1909
c8a62302
LM
19102013-10-17 Luis Machado <lgustavo@codesourcery.com>
1911
1912 * target/waitstatus.h (target_waitkind): Remove spurious
1913 character from the comments.
1914
eade6471
JB
19152013-10-17 Joel Brobecker <brobecker@adacore.com>
1916
1917 * gdbarch.sh (get_longjmp_target): Add method documentation.
1918 * gdbarch.h: Regenerate.
1919
5411b26c
TT
19202013-10-16 Tom Tromey <tromey@redhat.com>
1921
1922 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1923 label.
1924
87326c87
LM
19252013-10-16 Luis Machado <lgustavo@codesourcery.com>
1926
1927 * gcore.in: Call GDB using the full path to the gcore script.
1928 Error out if the GDB binary is not found.
1929
fd0a4d76
SDJ
19302013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1931
1932 PR gdb/16014
1933 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1934 sizeof.
1935
d92f7ee3
SDJ
19362013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1937
1938 PR gdb/16042
1939 * target.c (target_disable_btrace): Fix invalid return value for
1940 void function.
1941 (target_teardown_btrace): Likewise.
1942
bb5ce47a
YQ
19432013-10-14 Yao Qi <yao@codesourcery.com>
1944
1945 * varobj.c (struct varobj): Move most of the fields to
1946 varobj.h.
1947 (struct varobj_dynamic): New struct.
1948 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1949 (varobj_has_more): Likewise.
1950 (dynamic_varobj_has_child_method): Likewise.
1951 (update_dynamic_varobj_children): Likewise.
1952 (varobj_get_num_children): Likewise.
1953 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1954 (install_new_value_visualizer): Likewise.
1955 (install_new_value_visualizer, install_new_value): Likewise.
1956 (varobj_update, new_variable, free_variable): Likewise.
1957 (my_value_of_variable, value_get_print_value): Likewise.
1958 (install_visualizer): Change the type of parameter 'var' to
1959 'struct varobjd_dynamic *'. Callers update.
1960 * varobj.h (struct varobj): Moved from varobj.c.
1961 (struct varobj) <dynamic>: New field.
1962
0b76b0ce
SL
19632013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1964
1965 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1966 as the preferred name of r30.
1967 * nios2-linux-tdep.c (reg_offsets): Likewise.
1968 * features/nios2-cpu.xml: Likewise.
1969 * features/nios2-linux.c: Regenerated.
1970 * features/nios2.c: Regenerated.
1971 * regformats/nios2-linux.dat: Regenerated.
1972
4856b6bc
JK
19732013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1974
1975 Canonicalize directories for EXEC_FILENAME.
1976 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1977 exec_filename.
1978 * utils.c (gdb_realpath_keepfile): New function.
1979 * utils.h (gdb_realpath_keepfile): New declaration.
1980
9b557b58
DE
19812013-10-11 Doug Evans <dje@google.com>
1982
1983 * Makefile.in (GDBFLAGS): New variable.
1984 (run): New rule.
1985
ce13fade
JB
19862013-10-11 Joel Brobecker <brobecker@adacore.com>
1987
1988 * NEWS: Add entry documenting the new "-catch-assert" and
1989 "-catch-exception" GDB/MI commands.
1990
349774ef
JB
19912013-10-11 Joel Brobecker <brobecker@adacore.com>
1992
1993 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1994 "enabled".
1995 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1996 "enabled". Set B->ENABLE_STATE accordingly.
1997 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1998 ada-lang.c.
1999 (create_ada_exception_catchpoint): Add declaration.
2000 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2001 (create_ada_exception_catchpoint): Make non-static. Add new
2002 parameter "disabled". Use it in call to
2003 init_ada_exception_breakpoint.
2004 (catch_ada_exception_command): Add parameter "enabled" in call
2005 to create_ada_exception_catchpoint.
2006 (catch_assert_command): Likewise.
2007
2008 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2009 Add declarations.
2010 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2011 "catch-exception" commands.
2012 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2013 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2014
761269c8
JB
20152013-10-11 Joel Brobecker <brobecker@adacore.com>
2016
2017 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2018 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2019 of all its enumerates with "ada_". Update the rest of this
2020 file throughout.
2021
b4a5b78b
JB
20222013-10-11 Joel Brobecker <brobecker@adacore.com>
2023
2024 * ada-lang.c (ada_decode_exception_location): Delete.
2025 (create_ada_exception_catchpoint): Remove arguments "sal",
2026 "addr_string" and "ops". Add argument "ex_kind" instead.
2027 Adjust implementation accordingly, calling ada_exception_sal
2028 to get the entities it no longer gets passed as arguments.
2029 Document the function's arguments.
2030 (catch_ada_exception_command): Use catch_ada_exception_command_split
2031 instead of ada_decode_exception_location, and update call to
2032 create_ada_exception_catchpoint.
2033 (catch_ada_assert_command_split): Renames
2034 ada_decode_assert_location. Remove parameters "addr_string" and
2035 "ops", and now returns void. Adjust implementation accordingly.
2036 Update the function documentation.
2037 (catch_assert_command): Use catch_ada_assert_command_split
2038 instead of ada_decode_assert_location. Update call to
2039 create_ada_exception_catchpoint.
2040
7ad1d32c 20412013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2042
2043 * utils.h (perror_warning_with_name): Add declaration.
2044 * utils.c (perror_warning_with_name): New function.
2045 * cli/cli-cmds.c (source_script_with_search): Add call to
2046 perror_warning_with_name if from_tty is nul.
2047
7ad1d32c 20482013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2049
2050 * utils.c (perror_string): New function, extracted out of
2051 throw_perror_with_name.
2052 (throw_perror_with_name): Rework to use perror_string.
2053
bcc75809
YQ
20542013-10-11 Yao Qi <yao@codesourcery.com>
2055
2056 * remote.c (discard_pending_stop_replies_in_queue): Update
2057 declaration.
2058 (struct stop_reply) <rs>: New field.
2059 (remove_stop_reply_of_remote_state): New function.
2060 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2061 Callers update. Pass remove_stop_reply_of_remote_state to
2062 QUEUE_iterate.
2063 (remote_parse_stop_reply): Initialize field 'rs'.
2064
05feb193
WN
20652013-10-10 Will Newton <will.newton@linaro.org>
2066
2067 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2068 linux_init_abi.
2069
0d12017b
JB
20702013-10-10 Joel Brobecker <brobecker@adacore.com>
2071
2072 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2073 serial_baud_show_cmd.
2074 (_initialize_cli_cmds): Delete the code creating the
2075 "set/show remotebaud" commands.
2076 * serial.c (baud_rate): Move here from top.c.
2077 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2078 (_initialize_serial): Create "set/show serial baud" commands.
2079 Add "set/show remotebaud" command aliases.
2080 * top.c (baud_rate): Moved to serial.c.
2081 * NEWS: Document the new "set/show serial baud" commands,
2082 replacing "set/show remotebaud".
2083
578d3588
PA
20842013-10-09 Pedro Alves <palves@redhat.com>
2085
2086 * breakpoint.c (insert_bp_location): Use memory_error_message to
2087 build the memory error string.
2088 * c-lang.c: Include "gdbcore.h".
2089 (c_get_string): Use memory_error to throw error.
2090 (target_xfer_memory_error): Delete.
2091 (memory_error_message): New, factored out from
2092 target_xfer_memory_error.
2093 (memory_error): Change parameter type to target_xfer_error.
2094 Rewrite.
2095 (read_memory): Use memory_error instead of
2096 target_xfer_memory_error.
2097 * gdbcore.h: Include "target.h".
2098 (memory_error): Change parameter type to target_xfer_error.
2099 (memory_error_message): Declare function.
2100 * target.c (target_read_memory, target_read_stack)
2101 (target_write_memory, target_write_raw_memory): Return
2102 TARGET_XFER_E_IO on error. Adjust comments.
2103 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2104 instead of EIO.
2105 * target.h (target_read, target_insert_breakpoint)
2106 (target_remove_breakpoint): Adjust comments.
2107 * valprint.c (partial_memory_read): Rename parameter, and adjust
2108 comment.
2109 (val_print_string): Use memory_error_message to build the memory
2110 error string.
2111
c74e1ccf
JK
21122013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2113
2114 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2115 result variable. Rename variable fopen_e_ever_failed to
2116 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2117
915215be
PA
21182013-10-09 Pedro Alves <palves@redhat.com>
2119
2120 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2121 (monitor_write_memory_longlongs, monitor_write_memory_block):
2122 Constify 'myaddr' parameter.
2123 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2124 helper.
2125 (monitor_xfer_partial): New function.
2126 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2127 hook. Install a to_xfer_partial hook.
2128
acd13123
TT
21292013-10-09 Tom Tromey <tromey@redhat.com>
2130
2131 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2132 bfd_get_alt_debug_link_info.
2133
40135bb1
JK
21342013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2135
2136 New flag OBJF_NOT_FILENAME.
2137 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2138 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2139 allocate_objfile.
2140 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2141 symbol_file_add_from_bfd.
2142 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2143 allocate_objfile.
2144 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2145 NULL.
2146 * objfiles.h (OBJF_NOT_FILENAME): New.
2147
dc294be5
TT
21482013-10-08 Tom Tromey <tromey@redhat.com>
2149
2150 * Makefile.in (SFILES): Add build-id.c.
2151 (HFILES_NO_SRCDIR): Add build-id.h.
2152 * build-id.c: New file, largely from elfread.c. Modified
2153 most functions.
2154 * build-id.h: New file.
2155 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2156 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2157 Search for dwz file using build-id.
2158 * elfread.c (build_id_bfd_get, build_id_verify)
2159 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2160
db230ce3
JB
21612013-10-08 Joel Brobecker <brobecker@adacore.com>
2162
2163 * ada-lang.c (compare_names_with_case): Renamed from
2164 compare_names, adding a new parameter "casing" and its handling.
2165 New function documentation.
2166 (compare_names): New function, implemented using
2167 compare_names_with_case.
2168
6501c98a
JB
21692013-10-08 Joel Brobecker <brobecker@adacore.com>
2170
2171 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2172
84a1243b
TT
21732013-10-07 Tom Tromey <tromey@redhat.com>
2174
2175 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2176 demangled_names_hash.
2177 (free_objfile): Don't delete the demangled_names_hash.
2178 * objfiles.h (struct objfile_per_bfd_storage)
2179 <demangled_names_hash>: New field.
2180 (struct objfile) <demangled_names_hash>: Move to
2181 objfile_per_bfd_storage.
2182 * symfile.c (reread_symbols): Don't delete the
2183 demangled_names_hash.
2184 * symtab.c (create_demangled_names_hash): Update.
2185 (symbol_set_names): Update.
2186
1da77581
TT
21872013-10-07 Tom Tromey <tromey@redhat.com>
2188
2189 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2190 needs_relocations>: New fields.
2191 (gdb_bfd_requires_relocations): New function.
2192 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2193 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2194 the BFD needs relocations applied.
2195
46ecd527
PA
21962013-10-07 Pedro Alves <palves@redhat.com>
2197
2198 PR breakpoints/11568
2199 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2200 the thread list" instead of "gone".
2201
0c557179
SDJ
22022013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2203
2204 * NEWS: Mention new convenience variable $_exitsignal.
2205 * corelow.c (core_open): Reset exit convenience variables. Set
2206 $_exitsignal to the uncaught signal which generated the corefile.
2207 * infrun.c (handle_inferior_event): Reset exit convenience
2208 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2209 (clear_exit_convenience_vars): New function.
2210 * inferior.h (clear_exit_convenience_vars): New prototype.
2211
1cc47d81
YQ
22122013-10-06 Yao Qi <yao@codesourcery.com>
2213
2214 * varobj.h: Add comments to enum varobj_languages.
2215
73869dc2
DE
22162013-10-04 Doug Evans <dje@google.com>
2217
2218 Add support for DWP file format version 2.
2219 * NEWS: Mention support for DWP file format version 2.
2220 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2221 union of asection, containing_section. New fields virtual_offset
2222 and is_virtual. Change type of readin filed from int to char.
2223 (dwo_sections, dwo_file): Tweak comments.
2224 (dwp_v2_section_ids): New enum.
2225 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2226 str_offsets, types.
2227 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2228 All uses updated.
2229 (virtual_v2_dwo_sections): New struct.
2230 (dwp_hash_table): New fields version, nr_columns. Change type of
2231 section_pool field to a union.
2232 (dwp_file): New field version.
2233 (dwarf2_has_info): Check for virtual sections.
2234 (get_containing_section): New function.
2235 (get_section_bfd_owner, get_section_bfd_section): Call it.
2236 (dwarf2_locate_sections): Update.
2237 (dwarf2_section_empty_p): Update.
2238 (dwarf2_read_section): Handle virtual sections.
2239 (locate_dwz_sections): Update.
2240 (create_dwp_hash_table): Document and handle V2 format.
2241 (locate_v1_virtual_dwo_sections): Renamed from
2242 locate_virtual_dwo_sections and update. All callers updated.
2243 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2244 Delete arg htab. Rename arg section_index to unit_index.
2245 All callers updated.
2246 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2247 All uses updated.
2248 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2249 (lookup_dwo_unit_in_dwp): Add V2 support.
2250 (dwarf2_locate_dwo_sections): Update.
2251 (dwarf2_locate_common_dwp_sections): Renamed from
2252 dwarf2_locate_dwp_sections and update. All callers updated.
2253 (dwarf2_locate_v2_dwp_sections): New function.
2254 (open_and_init_dwp_file): Add V2 support.
2255 (read_str_index): New locals str_section, str_offsets_section.
2256
9a2c3737
PA
22572013-10-04 Pedro Alves <palves@redhat.com>
2258
2259 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2260 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2261 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2262 describing comments with references to ptid.h.
2263 * common/ptid.h: Remove intro description of constructors,
2264 accessors and predicates.
2265 (struct ptid): Reformat.
2266 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2267 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2268 describing comments.
2269
f5371440
JB
22702013-10-04 Joel Brobecker <brobecker@adacore.com>
2271
2272 * aix-thread.c (sync_threadlists): Add missing ')' in call
2273 to ptid_build.
2274
793e1c06
JB
22752013-10-04 Joel Brobecker <brobecker@adacore.com>
2276
2277 * procfs.c (procfs_init_inferior): Fix typo causing the build
2278 to fail.
2279
26f0edc1
JB
22802013-10-04 Joel Brobecker <brobecker@adacore.com>
2281
2282 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2283
5713b9b5
JB
22842013-10-04 Joel Brobecker <brobecker@adacore.com>
2285
2286 * mi/mi-main.c (run_one_inferior): Add function description.
2287 Make ARG a pointer to an integer whose value determines whether
2288 we should "run" or "start" the program.
2289 (mi_cmd_exec_run): Add handling of the "--start" option.
2290 Reject all other command-line options.
2291 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2292
f48ff2a7
YQ
22932013-10-04 Yao Qi <yao@codesourcery.com>
2294
2295 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2296 (struct notif_client) <pending_event>: Moved
2297 to struct remote_notif_state.
2298 <id>: New field.
2299 (struct remote_notif_state) <pending_event>: New field.
2300 (notif_event_xfree): Declare.
2301 * remote-notif.c (handle_notification): Adjust.
2302 (notif_event_xfree): New function.
2303 (do_notif_event_xfree): Call notif_event_xfree.
2304 (remote_notif_state_xfree): Call notif_event_xfree to free
2305 each element in field pending_event.
2306 * remote.c (discard_pending_stop_replies): Remove declaration.
2307 (discard_pending_stop_replies_in_queue): Declare.
2308 (remote_close): Call discard_pending_stop_replies_in_queue
2309 instead of discard_pending_stop_replies.
2310 (remote_start_remote): Adjust.
2311 (stop_reply_xfree): Call notif_event_xfree.
2312 (notif_client_stop): Adjust initialization.
2313 (remote_notif_remove_all): Rename it to ...
2314 (remove_stop_reply_for_inferior): ... this. Update comments.
2315 Don't check INF is NULL.
2316 (discard_pending_stop_replies): Return early if notif_state is
2317 NULL. Adjust. Don't check INF is NULL.
2318 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2319 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2320 (remote_wait_ns): Likewise.
2321
5965e028
YQ
23222013-10-04 Yao Qi <yao@codesourcery.com>
2323
2324 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2325 (notif_queue): Remove.
2326 (remote_notif_process): Add one parameter 'notif_queue'.
2327 Update comments. Callers update.
2328 (remote_async_get_pending_events_token): Remove.
2329 (remote_notif_register_async_event_handler): Remove.
2330 (remote_notif_unregister_async_event_handler): Remove.
2331 (handle_notification): Add parameter 'notif_queue'. Update
2332 comments. Callers update.
2333 (notif_xfree): Remove.
2334 (remote_notif_state_allocate): New function.
2335 (remote_notif_state_xfree): New function.
2336 (_initialize_notif): Remove code to allocate queue.
2337 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2338 (struct remote_notif_state): New.
2339 (handle_notification): Update declaration.
2340 (remote_notif_process): Likewise.
2341 (remote_notif_register_async_event_handler): Remove.
2342 (remote_notif_unregister_async_event_handler): Remove.
2343 (remote_notif_state_allocate): Declare.
2344 (remote_notif_state_xfree): Declare.
2345 * remote.c (struct remote_state) <notif_state>: New field.
2346 (remote_close): Don't call
2347 remote_notif_unregister_async_event_handler. Call
2348 remote_notif_state_xfree.
2349 (remote_open_1): Don't call
2350 remote_notif_register_async_event_handler. Call
2351 remote_notif_state_allocate.
2352
5e5ac9a5
YQ
23532013-10-04 Yao Qi <yao@codesourcery.com>
2354
2355 * varobj.c (create_child_with_value): Remove 'const' from the
2356 type of parameter 'name'.
2357 (varobj_add_child): Likewise.
2358 (install_dynamic_child): Remove 'const' from the type of
2359 parameter 'name'.
2360 (varobj_add_child): Likewise.
2361 (create_child_with_value): Likewise. Update comments. Don't
2362 duplicate 'name'.
2363 (update_dynamic_varobj_children): Duplicate 'name'
2364 and pass it to install_dynamic_child.
2365
06ab7b19
PM
23662013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2367
2368 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2369 conversion logic to occur after PyLong_Check. Comment on order
2370 change significance.
2371 * python/py-arch.c (archpy_disassemble): Comment on order of
2372 conversion for integers and longs.
2373
8ae377e8
PA
23742013-10-03 Pedro Alves <palves@redhat.com>
2375
2376 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2377 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2378 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2379 PTRACE_O_TRACEFORK is not supported.
2380 (linux_test_for_tracesysgood): New function.
2381 (linux_test_for_tracefork): New function, factored out from
2382 linux_check_ptrace_features, and also don't kill child_pid here.
2383
b1328b1b
TG
23842013-10-03 Tristan Gingold <gingold@adacore.com>
2385
2386 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2387 Remove verbose error reporting. Use detected state to
2388 thread_set_state call.
2389 (i386_darwin_dr_get): Fix return type. Remove verbose error
2390 report.
2391 Remove trailing spaces.
2392
901461f8
PA
23932013-10-02 Pedro Alves <palves@redhat.com>
2394
2395 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2396 val_print_optimized_out.
2397 * jv-valprint.c (java_print_value_fields): Likewise.
2398 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2399 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2400 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2401 new optimized out value.
2402 * findvar.c (address_from_register): Likewise.
2403 * frame.c (put_frame_register): Tweak error string to say the
2404 register was not saved, rather than optimized out.
2405 * infcmd.c (default_print_one_register_info): Adjust call to
2406 val_print_optimized_out. Use value_of_register instead of
2407 get_frame_register_value.
2408 * mi/mi-main.c (output_register): Use value_of_register instead of
2409 get_frame_register_value.
2410 * valprint.c (valprint_check_validity): Likewise.
2411 (val_print_optimized_out): New value parameter. If the value is
2412 lval_register, print <not saved> instead.
2413 (value_check_printable, val_print_scalar_formatted): Adjust calls
2414 to val_print_optimized_out.
2415 * valprint.h (val_print_optimized_out): New value parameter.
2416 * value.c (struct value) <optimized_out>: Extend comment.
2417 (error_value_optimized_out): New function.
2418 (require_not_optimized_out): Use it. Use a different string for
2419 lval_register values.
2420 * value.h (error_value_optimized_out): New declaration.
2421 * NEWS: Mention <not saved>.
2422
042a84d9
JB
24232013-10-02 Joel Brobecker <brobecker@adacore.com>
2424
2425 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2426 strcmp to compare two symtab filenames.
2427
6b9780fb
JB
24282013-10-02 Joel Brobecker <brobecker@adacore.com>
2429
2430 * symtab.c (search_symbols_equal): Delete.
2431 (sort_search_symbols_remove_dups): Replace call to
2432 search_symbols_equal by call to compare_search_syms,
2433 adjusting as necessary.
2434
751e7549
PM
24352013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2436
2437 PR python/15579
751e7549
PM
2438 * python/python.c: Document gdb.execute command in Python help.
2439
1efd7661
PM
24402013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2441
2442 * python/py-frame.c (frame_info_to_frame_object): Use
2443 gdbpy_convert_exception. Clean up Python object on failure.
2444
562fc849
PM
24452013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2446
2447 * python/lib/gdb/command/frame_filters.py
2448 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2449 (ShowFrameFilterPriority.invoke): Ditto.
2450
d7561cbb
KS
24512013-10-01 Keith Seitz <keiths@redhat.com>
2452
2453 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2454 (parse_linespec): Make 'argptr' const.
2455 Remove temporary cast of 'argptr' to const char **.
2456 (decode_line_full): Pass const pointer to parse_linespec.
2457 (decode_line_1): Likewise.
2458 (decode_objc): Make local variable 'new_argptr' const.
2459 (find_function_symbols): Remove temporary cast to char *
2460 to find_imps.
2461 * objc-lang.c (find_imps): Make argument 'method' const.
2462 Return const.
2463 * objc-lang.h (find_imps): Likewise.
2464
24652013-10-01 Keith Seitz <keiths@redhat.com>
2466
2467 * completer.c (skip_quoted_chars): Make all arguments const.
2468 Return const.
2469 (skip_quoted): Likewise.
2470 * completer.h (skip_quoted_chars): Likewise.
2471 (skip_quoted): Likewise.
2472 * defs.h (skip_quoted): Remove duplicate declaration.
2473 * jv-exp.y: Include completer.h.
2474 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2475 * p-exp.y: Include completer.h.
2476
24772013-10-01 Keith Seitz <keiths@redhat.com>
2478
2479 * c-exp.y (parse_number): Make first argument const.
2480 Make a copy of the input to manipulate.
2481 (c_parse_escape): Make first argument const.
2482 Make local variable 'tokptr' const.
2483 (parse_string_or_char): Make first two arguments const.
2484 (macro_original_text): Make const.
2485 (lex_one_token): Make local variable 'tokstart' const.
2486 Likewise for local variables named 'p'.
2487 Cast away const for struct stoken (temporary).
2488 * c-lang.h (c_parse_escpae): Make first argument const.
2489 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2490 const.
2491 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2492 var_string case.
2493 * f-exp.y (parse_number): Make first argument const.
2494 (match_string_literal): Make local variable 'tokstart'
2495 const.
2496 (yylex): Make local variable 'p' const.
2497 Cast away const for struct stoken (temporary).
2498 * go-exp.y (parse_number): Make first argument const.
2499 (parse_string_or_char): Likewise.
2500 Make local variable 'tokstart' const.
2501 (lex_one_token): Likewise for numerous locals called 'p'.
2502 Cast away const for struct stoken (temporary).
2503 * jv-exp.y (parse_number): Make first argument const.
2504 Make local variables 'tokstart' and 'tokptr' const.
2505 Cast away const for call to skip_quoted (temporary).
2506 (yylex): Make local variable 'p' const.
2507 Cast away const for struct stoken (temporary).
2508 * m2-exp.y (parse_number): Make local variable 'p' const.
2509 (yylex): Likewise for 'tokstart'.
2510 Cast away const for struct stoken (temporary).
2511 Make local variable 'p' const.
2512 * macroexp.c (get_character_constant): Pass a const string
2513 to c_parse_escape.
2514 (get_string_literal): Likewise.
2515 (macro_expand_next): Make first argument const.
2516 Cast away const for init_shared_buffer.
2517 * macroexp.h (macro_expand_next): Make first argument const.
2518 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2519 Pass a const string to c_parse_escape.
2520 Make local variables 'p' and 'namestart' const.
2521 * parse.c (lexptr): Make const.
2522 (prev_lexptr): Likewise.
2523 (find_template_name_end): Return const.
2524 Make argument const, too.
2525 (parse_exp_in_context): Make first argument const.
2526 Remove the entire const_hack.
2527 (parse_exp_in_context_1): Make first argument const.
2528 * parser-defs.h (find_template_name_end): Return const.
2529 Make argument const, too.
2530 (lexptr): Make const.
2531 (prev_lexptr): Likewise.
2532 * utils.c (parse_escape): Make second argument const.
2533 * utils.h (parse_escape): Likewise.
2534
25352013-10-01 Keith Seitz <keiths@redhat.com>
2536
2537 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2538 is now const.
2539 (block_lookup): Make 'raw_name' and 'name' const.
2540 * ada-lex.l (processString): Update for struct stoken.ptr.
2541 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2542 (operator_stoken): Likewise.
2543 (lex_one_token): Remove temporary cast to char * for
2544 'yylval.sval.ptr'.
2545 * f-exp.y (yylex): Likewise.
2546 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2547 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2548 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2549 'yylval.sval.ptr'.
2550 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2551 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2552 * linespec.c (struct ls_parser): Make 'stream' const.
2553 (find_parameter_list_end): Make argument 'input' and local
2554 variable 'p' const.
2555 (linespec_lexer_lex_string): Make local variables 'start' and
2556 'p' const.
2557 Use skip_spaces_const instead of skip_spaces.
2558 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2559 const.
2560 (parse_linespec): Temporarily cast 'argptr' to const for
2561 'parser->lexer.stream'.
2562 * m2-exp.y (yylex): Remove temporary cast to char * for
2563 'yylval.sval.ptr'.
2564 * objc-lang.c (add_msglist): Make local variable 'p' const.
2565 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2566 (exp : STRING): Make 'sp' const.
2567 (parse_number): Make argument 'p' const.
2568 * parser-defs.h (struct stoken): Make 'ptr' const.
2569
193a8eac
DE
25702013-10-01 Doug Evans <dje@google.com>
2571
2572 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2573
2213e2be
YQ
25742013-10-01 Yao Qi <yao@codesourcery.com>
2575
2576 * varobj.c (c_value_of_root): Remove declaration.
2577 (cplus_value_of_root, java_value_of_root): Likewise.
2578 (ada_value_of_root): Likewise.
2579 (struct language_specific) <value_of_root>: Remove.
2580 (languages): Update initialization.
2581 (check_scope): Move earlier.
2582 (c_value_of_root): Move earlier and rename to ...
2583 (value_of_root_1): ... this.
2584 (value_of_root): Caller update.
2585 (cplus_value_of_root, java_value_of_root): Remove.
2586 (ada_value_of_root): Remove.
2587
c573f273
YQ
25882013-10-01 Yao Qi <yao@codesourcery.com>
2589
2590 * varobj.c (varobj_format_string): Remove "unknown".
2591 (languages): Remove the first element.
2592 * varobj.h (enum varobj_languages): Remove vlang_c.
2593
56250258
YQ
25942013-10-01 Yao Qi <yao@codesourcery.com>
2595
2596 * varobj.c (struct language_specific) <language>: Remove.
2597 (languages): Update the initialization.
2598
29f9ebfa
YQ
25992013-10-01 Yao Qi <yao@codesourcery.com>
2600
2601 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2602 "solib-target.h". Include "windows-tdep.h".
2603 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2604 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2605 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2606 windows-tdep.o to gdb_target_obs.
2607
64870a42
YQ
26082013-10-01 Yao Qi <yao@codesourcery.com>
2609
2610 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2611 "solib-target.h".
2612 (amd64_windows_init_abi): Don't call set_solib_ops and
2613 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2614 windows_init_abi instead.
2615 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2616 "solib-target.h".
2617 (i386_cygwin_init_abi): Don't call set_solib_ops,
2618 set_gdbarch_has_dos_based_file_system and
2619 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2620 windows_init_abi instead.
2621 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2622 (windows_init_abi): New function.
2623 (windows_iterate_over_objfiles_in_search_order): Make it
2624 static.
2625 * windows-tdep.h (windows_init_abi): Declare.
2626 (windows_iterate_over_objfiles_in_search_order): Remove
2627 declaration.
2628
0aebdefa
JB
26292013-10-01 Jerome Guitton <guitton@adacore.com>
2630
2631 Checked in by Joel Brobecker <brobecker@adacore.com>
2632 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2633 incomplete dictionnary instead of None in case of missing
2634 environment variables.
2635 (elinos_init): in case of an incomplete environment, best
2636 effort to load system libraries instead of abort.
2637
1c8e84b0
JB
26382013-10-01 Joel Brobecker <brobecker@adacore.com>
2639
2640 * ada-lang.c (ada_has_this_exception_support): Ignore
2641 mst_solib_trampoline minimal symbols.
2642
61d82a0d
TG
26432013-09-30 Tristan Gingold <gingold@adacore.com>
2644
2645 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2646 hardware watchpoint.
2647 (i386_darwin_dr_set): Support 32 and 64 bit states.
2648 (i386_darwin_dr_get): Likewise.
2649 (i386_darwin_dr_set_control): Make static.
2650 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2651 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2652
dfd4cc63
LM
26532013-09-30 Luis Machado <lgustavo@codesourcery.com>
2654
2655 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2656 Replace TIDGET with ptid_get_lwp.
2657 Replace GET_LWP with ptid_get_lwp.
2658 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2659 Replace BUILD_THREAD with ptid_build.
2660 Replace BUILD_LWP with ptid_build.
2661 Replace PIDGET with ptid_get_pid.
2662 Replace TIDGET with ptid_get_lwp.
2663 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2664 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2665 Replace TIDGET with ptid_get_lwp.
2666 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2667 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2668 Replace TIDGET with ptid_get_lwp.
2669 Replace GET_LWP with ptid_get_lwp.
2670 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2671 * auxv.c: Likewise.
2672 * breakpoint.c: Likewise.
2673 * common/ptid.c (ptid_is_pid): Condense check for
2674 null_ptid and minus_one_ptid.
2675 (ptid_lwp_p): New function.
2676 (ptid_tid_p): New function.
2677 * common/ptid.h: Update comments for accessors.
2678 (ptid_lwp_p): New prototype.
2679 (ptid_tid_p): New prototype.
2680 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2681 * gcore.c: Replace PIDGET with ptid_get_pid.
2682 * gdbthread.h: Likewise.
2683 * gnu-nat.c: Likewise.
2684 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2685 Replace TIDGET with ptid_get_lwp.
2686 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2687 * hppanbsd-nat.c: Likewise.
2688 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2689 Replace TIDGET with ptid_get_lwp.
2690 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2691 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2692 * infcmd.c: Likewise.
2693 * inferior.h: Likewise.
2694 * inflow.c: Likewise.
2695 * infrun.c: Likewise.
2696 * linux-fork.c: Likewise.
2697 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2698 Replace GET_PID with ptid_get_pid.
2699 Replace is_lwp with ptid_lwp_p.
2700 Replace GET_LWP with ptid_get_lwp.
2701 Replace BUILD_LWP with ptid_build.
2702
5b4e221c
MF
27032013-09-28 Mike Frysinger <vapier@gentoo.org>
2704
2705 * common/linux-btrace.c: Move sys/syscall.h out of the
2706 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2707 Also check for SYS_perf_event_open before attempting to buid.
2708
57d63ce2
DE
27092013-09-27 Doug Evans <dje@google.com>
2710
19ac8c2e
DE
2711 * dwarf2read.c (dwarf2_section_info): Add comment.
2712 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2713 All uses updated.
2714 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2715 (dwarf2_read_section): Delete unused local "header". Add section
2716 name to error message.
2717 (create_dwo_in_dwp): Tweak comment.
2718 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2719
a32a8923
DE
2720 * dwarf2read.c (die_reader_specs): Tweak comment.
2721 (get_section_bfd_owner, get_section_bfd_section): New functions.
2722 (get_section_name, get_section_file_name): New functions.
2723 (get_section_id, get_section_flags): New functions.
2724 (*): Use new functions to access section fields.
2725
57d63ce2
DE
2726 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2727 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2728 arg "htab". All callers updated.
2729 (create_debug_types_hash_table): Remove redundant copy of
2730 abbrev_section.
2731 (create_dwo_in_dwp): Tweak comments.
2732 (read_str_index): Tweak comment. Record dwarf form name in static
2733 local.
2734
3736004f
PA
27352013-09-27 Pedro Alves <palves@redhat.com>
2736
2737 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2738 (remote_filename_p): Add comment.
2739 * remote.c (remote_filename_p): Adjust to use
2740 REMOTE_SYSROOT_PREFIX.
2741 * solib.c (solib_find): When deciding whether we need to add a
2742 directory separator, check whether the sysroot is "remote:"
2743 instead of checking whether the patch has a drive spec. Add
2744 comments.
2745
5b5596ff
PA
27462013-09-27 Pedro Alves <palves@redhat.com>
2747
2748 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2749 Delete fields.
2750 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2751 directly.
2752
b5eef7aa
JK
27532013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2754
2755 Fix set debug frame output.
2756 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2757 SENTINEL_FRAME entry lower to match enum frame_type order.
2758
5b856f36
PM
27592013-09-26 Pierre Muller <muller@sourceware.org>
2760
2761 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2762 AMD64_R15_REGNUM when a register index is expected.
2763 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2764 Substitute in array.
2765 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2766 (amd64_push_arguments): Substitute in integer_regnum array.
2767
ade7ed9e
DE
27682013-09-25 Doug Evans <dje@google.com>
2769
d3e81981
DE
2770 * objfiles.c (allocate_objfile): Move comment to better place.
2771
8fb8eb5c
DE
2772 New option "set debug symfile on".
2773 * NEWS: Mention "set debug symfile".
2774 * Makefile.in (SFILES): Add symfile-debug.c.
2775 (COMMON_OBS): Add symfile-debug.o.
2776 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2777 objfile's symbol functions.
2778 * objfiles.h (objfile_set_sym_fns): Declare.
2779 * symfile-debug.c: New file.
2780 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2781 objfile's symbol functions.
2782 (reread_symbols): Ditto.
2783
c256e171
DE
2784 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2785 All uses updated.
2786 (add_symtab_fns): Update prototype.
2787 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2788 (registered_sym_fns): ... this.
2789 (symtab_fns): Update.
2790 (add_symtab_fns): New arg "flavour". All callers updated.
2791 (find_sym_fns): Rewrite to use new sym_fns registry.
2792
f56ce883
DE
2793 * symfile.h (struct sym_fns): Add "objfile" argument to
2794 sym_read_linetable. All uses updated.
2795
20c681d1
DE
2796 * symtab.c (domain_name, search_domain_name): New functions.
2797 * symtab.h (domain_name, search_domain_name): Declare.
2798
ade7ed9e
DE
2799 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2800 map_matching_symbols so objfile is first. All uses updated.
2801 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2802 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2803
7d760051
UW
28042013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2805
2806 PR shlibs/8882
2807 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2808 link map entries.
2809
020f7036
DE
28102013-09-24 Doug Evans <dje@google.com>
2811
2812 * objfiles.c (free_objfile): Move comment.
2813
598402f0
JB
28142013-09-24 Joel Brobecker <brobecker@adacore.com>
2815
2816 * ada-exp.y (string_to_operator): Delete.
2817 (dummy_string_to_ada_operator): Delete.
2818
bf4d6c1c
JB
28192013-09-24 Joel Brobecker <brobecker@adacore.com>
2820
2821 Revert:
2822 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2823 amd64-tdep.c.
2824 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2825 call_dummy_integer_regs, and classify.
2826 * amd64-tdep.h (amd64_classify): Add declaration.
2827 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2828 (amd64_reg_class): Delete, moved to i386-tdep.h.
2829 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2830 Replace call to amd64_classify by call to tdep->classify.
2831 (amd64_push_arguments): Get the list of registers to use for
2832 passing integer parameters from the gdbarch tdep structure,
2833 rather than using a hardcoded one. Replace calls to amd64_classify
2834 by calls to tdep->classify.
2835 (amd64_push_dummy_call): Get the register number used for
2836 the "hidden" argument from tdep->call_dummy_integer_regs.
2837 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2838 and tdep->call_dummy_integer_regs. Set tdep->classify.
2839
849e9755
JB
28402013-09-24 Joel Brobecker <brobecker@adacore.com>
2841
2842 Revert:
2843 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2844 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2845 where tdep->memory_args_by_pointer is non-zero.
2846
c1459fd6
JB
28472013-09-24 Joel Brobecker <brobecker@adacore.com>
2848
2849 Revert:
2850 * i386-tdep.h (struct gdbarch_tdep): Add new field
2851 integer_param_regs_saved_in_caller_frame.
2852 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2853 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2854
20c2e3e0
JB
28552013-09-24 Joel Brobecker <brobecker@adacore.com>
2856
874440b8 2857 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2858 (amd64_windows_classify): Delete.
2859 (amd64_windows_passed_by_integer_register)
2860 (amd64_windows_passed_by_xmm_register)
2861 (amd64_windows_passed_by_pointer)
2862 (amd64_windows_adjust_args_passed_by_pointer)
2863 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2864 (amd64_windows_push_dummy_call): New functions.
2865 (amd64_windows_init_abi): Remove setting of
2866 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2867 tdep->classify, tdep->memory_args_by_pointer and
2868 tdep->integer_param_regs_saved_in_caller_frame.
2869 Add call to set_gdbarch_push_dummy_call.
2870
82bf32bc
JK
28712013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2872
2873 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2874 objfile->original_name.
2875
24ba069a
JK
28762013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2877
2878 Pass down original filename for objfile.
2879 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2880 * elfread.c (elf_symfile_read): Likewise.
2881 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2882 longer set ORIGINAL_NAME.
2883 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2884 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2885 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2886 symbol_file_add_from_bfd call.
2887 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2888 (macho_check_dsym): Add parameter filenamep. Change function comment.
2889 Set *filenamep.
2890 (macho_symfile_read): New variable dsym_filename. Update
2891 macho_check_dsym call. Use it for symbol_file_add_separate.
2892 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2893 it. Use it for objfile->original_name.
2894 (objfile_name): Return OBFD's filename, if available.
2895 * objfiles.h (allocate_objfile): Add new parameter name.
2896 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2897 * symfile-mem.c (symbol_file_add_from_memory): Update
2898 symbol_file_add_from_bfd call.
2899 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2900 comment for it.
2901 (symbol_file_add_with_addrs): New parameter name, add function comment
2902 for it. Remove variable name. Update allocate_objfile call.
2903 (symbol_file_add_separate): New parameter name, add function comment
2904 for it. Update symbol_file_add_with_addrs call.
2905 (symbol_file_add_from_bfd): New parameter name. Update
2906 symbol_file_add_with_addrs call.
2907 (symbol_file_add): Update symbol_file_add_from_bfd call.
2908 (reread_symbols): New variable original_name. Save
2909 objfile->original_name by it.
2910 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2911 second parameter.
2912
4262abfb
JK
29132013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2914
2915 Code cleanup: Add objfile_name accessor function.
2916 * ada-lang.c (is_known_support_routine): Use objfile_name.
2917 * auto-load.c (source_gdb_script_for_objfile)
2918 (auto_load_objfile_script): Likewise.
2919 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2920 * dbxread.c (dbx_symfile_read): Likewise.
2921 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2922 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2923 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2924 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2925 (lookup_dwp_signatured_type, lookup_dwo_unit)
2926 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2927 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2928 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2929 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2930 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2931 (read_subrange_type, load_partial_dies, read_partial_die)
2932 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2933 (die_containing_type, build_error_marker_type, lookup_die_type)
2934 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2935 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2936 (get_DW_AT_signature_type, write_psymtabs_to_index)
2937 (save_gdb_index_command): Likewise.
2938 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2939 Likewise.
2940 * expprint.c (dump_subexp_body_standard): Likewise.
2941 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2942 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2943 original_name.
2944 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2945 obj_name, use objfile_name for it, use the variable.
2946 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2947 Use objfile_name.
2948 * machoread.c (macho_symtab_read, macho_check_dsym)
2949 (macho_symfile_relocate): Likewise.
2950 * maint.c (maintenance_translate_address): Likewise.
2951 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2952 * minsyms.c (install_minimal_symbols): Likewise.
2953 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2954 original_name.
2955 (filter_overlapping_sections): Use objfile_name.
2956 (objfile_name): New function.
2957 * objfiles.h (struct objfile): Rename field name to original_name.
2958 (objfile_name): New prototype.
2959 * printcmd.c (sym_info, address_info): Use objfile_name.
2960 * probe.c (parse_probes, collect_probes, compare_probes)
2961 (info_probes_for_ops): Likewise.
2962 * progspace.c (clone_program_space): Likewise.
2963 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2964 (maintenance_info_psymtabs): Likewise.
2965 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2966 (source_section_scripts): Likewise.
2967 * python/py-objfile.c (objfpy_get_filename): Likewise.
2968 * python/py-progspace.c (pspy_get_filename): Likewise.
2969 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2970 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2971 * solib.c (solib_read_symbols): Likewise.
2972 * stabsread.c (scan_file_globals): Likewise.
2973 * stap-probe.c (handle_stap_probe): Likewise.
2974 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2975 (find_separate_debug_file_by_debuglink): Likewise.
2976 (reread_symbols): Likewise. Use the objfile field name renamed to
2977 original_name.
2978 (allocate_symtab): Use objfile_name.
2979 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2980 (dump_objfile, dump_msymbols, dump_symtab_1)
2981 (maintenance_print_msymbols, maintenance_print_objfiles)
2982 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2983 * target.c (target_translate_tls_address, target_info): Likewise.
2984 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2985 objfile_name.
2986
4721dc18
JK
29872013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2988
2989 Code cleanup.
2990 * probe.c (parse_probes): Rename variable objfile_name to
2991 objfile_namestr.
2992
a61d6db8
JK
29932013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2994
2995 Remove solib-sunos.c.
2996 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2997 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2998 * objfiles.c (rt_common_objfile): Remove.
2999 (free_objfile): Remove rt_common_objfile comparison.
3000 * objfiles.h (rt_common_objfile): Remove.
3001 * solib-sunos.c: Remove.
3002 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3003
2659903b
JK
30042013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 Remove a.out NetBSD and OpenBSD hosts.
3007 * NEWS (Removed native configurations): New.
3008 * config/arm/nbsdaout.mh: Remove.
3009 * config/i386/nbsdaout.mh: Remove.
3010 * config/i386/obsdaout.mh: Remove.
3011 * config/m68k/nbsdaout.mh: Remove.
3012 * config/sparc/nbsdaout.mh: Remove.
3013 * config/vax/nbsdaout.mh: Remove.
3014 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3015 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3016 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3017 error.
3018 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3019 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3020 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3021
f60e2d5c
TT
30222013-09-23 Tom Tromey <tromey@redhat.com>
3023
3024 * linespec.c (struct minsym_and_objfile): Remove.
3025 (minsym_and_objfile_d): Remove.
3026 (struct linespec, struct collect_info, linespec_parse_basic)
3027 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3028 (compare_msymbols, find_method, find_function_symbols)
3029 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3030 (add_minsym, search_minsyms_for_name): Update.
3031
d3eaaf66
AB
30322013-09-23 Andrew Burgess <aburgess@broadcom.com>
3033
3034 * regcache.c: Add include of valprint.h.
3035 (dump_endian_bytes): Delete.
3036 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3037
2cc762b5
AB
30382013-09-23 Andrew Burgess <aburgess@broadcom.com>
3039
3040 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3041
96181529
PA
30422013-09-19 Pedro Alves <palves@redhat.com>
3043
3044 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3045 breakpoints.
3046
9b3f3ee6
TS
30472013-09-19 Pedro Alves <palves@redhat.com>
3048 Thomas Schwinge <thomas@codesourcery.com>
3049 Yue Lu <hacklu.newborn@gmail.com>
3050
3051 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3052 Take a gdb_byte pointer instead of a char pointer.
3053
3054 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3055 gnu_xfer_partial helper.
3056 (gnu_xfer_partial): New function.
3057 (gnu_target): Don't install a deprecated_xfer_memory hook.
3058 Install a to_xfer_partial hook.
3059
69150c3d
JK
30602013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3061
3062 Constification.
3063 * main.c (captured_main): Replace catch_command_errors by
3064 catch_command_errors_const. Twice.
3065 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3066 (symbol_file_add): Make name parameter const.
3067 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3068 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3069 variable name. Change their usage accordingly.
3070 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3071 const.
3072 (symbol_file_add_main): Make args parameter const.
3073
086850b2
UW
30742013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3075 Ulrich Weigand <uweigand@de.ibm.com>
3076
3077 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3078 of c_value member.
3079 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3080
ca08a94c 30812013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3082 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3083
3084 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3085 (gnu_create_inferior)
3086 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3087 (set_sig_thread_cmd): Use the lwpid field of ptids to
3088 store/extract thread ids instead of the tid field.
3089 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3090
e4c6a2c4
AB
30912013-09-18 Andrew Burgess <aburgess@broadcom.com>
3092
3093 * infcmd.c (default_print_one_register_info): Add detection of
3094 optimized out values.
3095 (default_print_registers_info): Switch to using
3096 get_frame_register_value.
3097
58c48e72
MM
30982013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3099
3100 * infrun.c (handle_inferior_event): Check if we know the
3101 function start address before setting a resume breakpoint.
3102
c8d37639
PA
31032013-09-18 Pedro Alves <palves@redhat.com>
3104
3105 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3106 minus_one_ptid instead of looking at the ptid's tid field and
3107 comparing that to -1.
3108
71926e28
AB
31092013-09-18 Andrew Burgess <aburgess@broadcom.com>
3110
3111 * main.h (get_gdb_program_name): Remove extra whitespace.
3112
c88a1531
AB
31132013-09-18 Andrew Burgess <aburgess@broadcom.com>
3114
3115 * main.h (get_gdb_program_name): Add declaration.
3116 * main.c (get_gdb_program_name): Add definition.
3117
4390d890
DE
31182013-09-17 Doug Evans <dje@google.com>
3119
3120 * dwarf2read.c: Move definitions of complaint functions to after
3121 forward declarations of local functions.
3122
49fa26b0
PA
31232013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3124 Pedro Alves <palves@redhat.com>
3125
3126 PR gdb/11568
3127 * breakpoint.c (remove_threaded_breakpoints): New function.
3128 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3129 as thread_exit observer.
3130
08d72866
PA
31312013-09-17 Pedro Alves <palves@redhat.com>
3132
3133 PR gdb/15911
3134 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3135 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3136 * corelow.c (core_open):
3137 * frame.h (print_stack_frame, print_frame_info): New
3138 'set_current_sal' parameter.
3139 * infcmd.c (finish_command, kill_command): Adjust call to
3140 print_stack_frame.
3141 * inferior.c (inferior_command): Likewise.
3142 * infrun.c (normal_stop): Likewise.
3143 * linux-fork.c (linux_fork_context): Likewise.
3144 * record-full.c (record_full_goto_entry, record_full_restore):
3145 Likewise.
3146 * remote-mips.c (common_open): Likewise.
3147 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3148 Use it.
3149 (print_frame_info): New 'set_current_sal' parameter. Set the last
3150 displayed sal depending on the new paremeter instead of looking at
3151 print_what.
3152 (backtrace_command_1, select_and_print_frame, frame_command)
3153 (current_frame_command, up_command, down_command): Adjust call to
3154 print_stack_frame.
3155 * thread.c (print_thread_info, restore_selected_frame)
3156 (do_captured_thread_select): Adjust call to print_stack_frame.
3157 * tracepoint.c (tfind_1): Likewise.
3158 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3159 (mi_cmd_stack_info_frame): Likewise.
3160 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3161 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3162
6bc305f5
SDJ
31632013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3164
3165 * value.c (isvoid_internal_fn): Replace "parameter" with
3166 "argument".
3167
0a7cfe2c
SS
31682013-09-16 Stan Shebs <stan@codesourcery.com>
3169
3170 * README: Update references to writing code for GDB.
3171 * configure.ac (build_warnings): Remove obsolete comment.
3172 * configure: Regenerate.
3173 * gdbarch.sh: Remove references to gdbint.texinfo.
3174 * gdbarch.h: Regenerate.
3175 * gdbtypes.c (objfile_type): Remove comments referencing internals
3176 manual and D10V.
3177
a280dbd1
SDJ
31782013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3179
3180 * NEWS: Mention new convenience function $_isvoid.
3181 * value.c (isvoid_internal_fn): New function.
3182 (_initialize_values): Add new convenience function $_isvoid.
3183
04a83fee
PM
31842013-09-16 Pierre Muller <muller@sourceware.org>
3185
3186 * arm-linux-tdep.c: Add "elf/common.h" header.
3187 Remove AT_HWCAP macro definintion as it is provided in
3188 added include file.
3189 * s390-tdep.c: Remove system header <elf.h>
3190 Add "elf/common.h" header for AT_HWCAP definition.
3191 (s390_core_read_description): Use correct CORE_ADDR
3192 for hwcap local variable used as third parameter
3193 of function target_auxv_search.
3194
88505fac
PM
31952013-09-14 Pierre Muller <muller@sourceware.org>
3196 Tom Tromey <tromey@redhat.com>
3197 Pedro Alves <palves@redhat.com>
3198
3199 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3200 mode if operating system doesn't know O_CLOEXEC.
3201
d3846e71
JK
32022013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3203
3204 Code cleanup.
3205 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3206 inner block.
3207
4ac33720
UW
32082013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3209
3210 * NEWS: Mention TDB support.
3211 * features/s390-tdb.xml: New file.
3212 * features/s390-te-linux64.xml: New file.
3213 * features/s390x-te-linux64.xml: New file.
3214 * features/Makefile (WHICH): Add new tdescs above.
3215 (s390-te-linux64-expedite): Set.
3216 (s390x-te-linux64-expedite): Set.
3217 * features/s390-te-linux64.c: New file (generated).
3218 * features/s390x-te-linux64.c: New file (generated).
3219 * regformats/s390-te-linux64.dat: New file (generated).
3220 * regformats/s390x-te-linux64.dat: New file (generated).
3221 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3222 (HWCAP_S390_TE): Likewise.
3223 (S390_TDB_DWORD0_REGNUM): Likewise.
3224 (S390_TDB_DWORD0_REGNUM): Likewise.
3225 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3226 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3227 (S390_TDB_ATIA_REGNUM): Likewise.
3228 (S390_TDB_R0_REGNUM): Likewise.
3229 (S390_TDB_R1_REGNUM): Likewise.
3230 (S390_TDB_R2_REGNUM): Likewise.
3231 (S390_TDB_R3_REGNUM): Likewise.
3232 (S390_TDB_R4_REGNUM): Likewise.
3233 (S390_TDB_R5_REGNUM): Likewise.
3234 (S390_TDB_R6_REGNUM): Likewise.
3235 (S390_TDB_R7_REGNUM): Likewise.
3236 (S390_TDB_R8_REGNUM): Likewise.
3237 (S390_TDB_R9_REGNUM): Likewise.
3238 (S390_TDB_R10_REGNUM): Likewise.
3239 (S390_TDB_R11_REGNUM): Likewise.
3240 (S390_TDB_R12_REGNUM): Likewise.
3241 (S390_TDB_R13_REGNUM): Likewise.
3242 (S390_TDB_R14_REGNUM): Likewise.
3243 (S390_TDB_R15_REGNUM): Likewise.
3244 (S390_NUM_REGS): Increase.
3245 (S390_IS_TDBREGSET_REGNUM): New macro.
3246 (s390_regmap_tdb): Declare.
3247 (s390_sizeof_tdbregset): Define.
3248 (tdesc_s390_te_linux64): Declare.
3249 (tdesc_s390x_te_linux64): Likewise.
3250 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3251 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3252 (s390_regmap_tdb): New regmap.
3253 (s390_supply_tdb_regset): New function.
3254 (s390_tdb_regset): New regset.
3255 (s390_linux64v2_regset_sections): Add TDB regset to list.
3256 (s390x_linux64v2_regset_sections): Likewise.
3257 (s390_regset_from_core_section): Recognize TDB core note section.
3258 (s390_core_read_description): If HWCAP indicates TE support,
3259 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3260 (s390_gdbarch_init): Handle TDB regset.
3261 (_initialize_s390_tdep): Initialize new tdescs.
3262 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3263 (have_regset_tdb): New variable.
3264 (s390_native_supply): Support register invalidation.
3265 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3266 (check_regset): Treat ENODATA as "regset exists".
3267 (s390_linux_fetch_inferior_registers): Add TDB.
3268 (s390_read_description): Check for TDB existence and select
3269 appropriate tdesc.
3270 * gdbserver/Makefile.in (clean): Add removal of new makefile
3271 targets.
3272 (s390-te-linux64.c): New makefile target.
3273 (s390x-te-linux64.c): Likewise.
3274 * gdbserver/configure.srv (srv_regobj): Append new objects
3275 s390-te-linux64.o and s390x-te-linux64.o.
3276 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3277 s390x-te-linux64.xml, and s390-tdb.xml.
3278 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3279 declaration.
3280 (tdesc_s390_te_linux64): Likewise.
3281 (init_registers_s390x_te_linux64): Likewise.
3282 (tdesc_s390x_te_linux64): Likewise.
3283 (s390_check_regset): Treat ENODATA as "regset exists".
3284 (s390_arch_setup): Add TDB regset support.
3285 (initialize_low_arch): Initialize registers for new tdescs.
3286
2ccd1468
UW
32872013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3288
3289 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3290 (S390_IS_FPREGSET_REGNUM): New macro.
3291 * s390-tdep.c (s390_dwarf_regmap): Make const.
3292 (regnum_is_gpr_full): New function for replacing repeated code.
3293 (s390_pseudo_register_name): Use it.
3294 (s390_pseudo_register_type): Likewise.
3295 (s390_pseudo_register_read): Likewise.
3296 (s390_pseudo_register_write): Likewise.
3297 (s390_unwind_pseudo_register): Likewise.
3298 (s390_regmap_gregset): New format for regmap.
3299 (s390x_regmap_gregset): Likewise.
3300 (s390_regmap_fpregset): Likewise.
3301 (s390_regmap_upper): Likewise.
3302 (s390_regmap_last_break): Likewise.
3303 (s390_regmap_system_call): Likewise.
3304 (s390_supply_regset): Adjust to new regmap format.
3305 (s390_collect_regset): Likewise.
3306 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3307 (s390_native_collect): Likewise.
3308 (supply_gregset): Likewise.
3309 (fill_gregset): Likewise.
3310 (supply_fpregset): Likewise.
3311 (fill_fpregset): Likewise.
3312 (fetch_regset): Likewise.
3313 (store_regset): Likewise.
3314 (s390_linux_fetch_inferior_registers): Likewise.
3315 (s390_linux_fetch_inferior_registers): Likewise.
3316
1aa4cd77
AP
33172013-09-12 Andrew Pinski <apinski@cavium.com>
3318
3319 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3320
d91fab15
UW
33212013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3322
3323 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3324
5a5d8ead
AB
33252013-09-09 Andrew Burgess <aburgess@broadcom.com>
3326
3327 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3328
1385f66c
PA
33292013-09-06 Pedro Alves <palves@redhat.com>
3330
3331 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3332 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3333 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3334 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3335 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3336 gdb_stdlog.
3337
146ec4db
PA
33382013-09-06 Pedro Alves <palves@redhat.com>
3339
3340 * remote-sim.c (dump_mem): Constify buf parameter.
3341 gdbsim_xfer_inferior_memory): Rename to ...
3342 (gdbsim_xfer_memory): ... this. Adjust interface as
3343 target_xfer_partial helper.
3344 (gdbsim_xfer_partial): New function.
3345 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3346 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3347
fcde0081
PA
33482013-09-06 Pedro Alves <palves@redhat.com>
3349
3350 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3351 host_address_to_string, and send debug output to gdb_stdlog.
3352
749c8b38
RW
33532013-09-06 Ricard Wanderlof <ricardw@axis.com>
3354
3355 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3356 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3357 gdb_target_obs for cris target.
3358 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3359 (cris_gdbarch_init): Move calls to
3360 set_gdbarch_fetch_tls_load_module_address and
3361 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3362 Add call to gdbarch_init_osabi.
3363 * cris-linux-tdep.c: New file.
3364 * cris-tdep.h: New file.
3365
43df09d9
AB
33662013-09-06 Andrew Burgess <aburgess@broadcom.com>
3367
3368 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3369 to deprecated_init_ui_hook.
3370
4d09c5b4
AB
33712013-09-06 Andrew Burgess <aburgess@broadcom.com>
3372
3373 * cli/cli-interp.c (_initialize_cli_interp): Add a
3374 command_loop_proc to interp_procs.
3375 * event-top.c (cli_command_loop): Change signature to match
3376 interp_command_loop_ftype.
3377 * event-top.h (cli_command_loop): Same.
3378 * interps.c (interp_new): Require every interpreter to have a
3379 command_loop_proc.
3380 (current_interp_command_loop): Just call the command_loop_proc on
3381 the current interpreter.
3382 * tui/tui-interp.c (_initialize_tui_interp): Add a
3383 command_loop_proc to interp_procs.
3384
8eb3d7b6
RW
33852013-09-06 Ricard Wanderlof <ricardw@axis.com>
3386
3387 * cris-tdep.c (cris_gdbarch_init): Add call to
3388 get_gdbarch_fetch_tls_load_module_address.
3389
18b3c2f5
RW
33902013-09-06 Ricard Wanderlof <ricardw@axis.com>
3391
3392 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3393 (cris_elf_gregset_t): Rename from elf_gregset_t.
3394 (crisv32_elf_gregset_t): Adjust.
3395 (cris_supply_gregset, fetch_core_registers): Adjust.
3396
dc8636ef
RW
33972013-09-06 Ricard Wanderlof <ricardw@axis.com>
3398
3399 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3400
257e6d53
AB
34012013-09-05 Andrew Burgess <aburgess@broadcom.com>
3402
1581d8a7 3403 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3404 references in comments.
1581d8a7 3405 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3406 deprecated_command_loop_hook.
3407 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3408 setup.
1581d8a7 3409 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3410
7c33b57c
PA
34112013-09-05 Pedro Alves <palves@redhat.com>
3412
3413 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3414 local is now int instead of ULONGEST. Print it with %d
3415 instead of paddress.
3416
9f8edbd5
TG
34172013-09-05 Tristan Gingold <gingold@adacore.com>
3418
3419 * MAINTAINERS: Remove avr maintainership.
3420
d5b495b4
PA
34212013-09-05 Pedro Alves <palves@redhat.com>
3422
3423 * findvar.c (value_of_register): Rework in terms of
3424 value_of_register_lazy.
3425
40b91786
MB
34262013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3427
3428 * symfile.c (add_symbol_file_command): Remove trailing
3429 whitespaces and blank line after comment.
3430
6eed1678
PA
34312013-09-05 Pedro Alves <palves@redhat.com>
3432
3433 * tui/tui-regs.c (tui_register_format): Don't look at the
3434 register's name here. Return string representing register
3435 value instead of storing it in the data element.
3436 (tui_get_register): Compare register string representations
3437 instead of register value states and contents.
3438
8eb6bda2
PA
34392013-09-05 Pedro Alves <palves@redhat.com>
3440
3441 PR tui/15933
3442 * tui/tui-regs.c (tui_show_registers): Show registers of the
3443 selected frame, not the current frame.
3444
48b1f08c
RW
34452013-09-05 Ricard Wanderlof <ricardw@axis.com>
3446
3447 * MAINTAINERS (Write After Approval): Add myself to the list.
3448
89e63ee4
DE
34492013-09-04 Doug Evans <dje@google.com>
3450
3451 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3452 (queue_and_load_dwo_tu): New function.
3453 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3454 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3455 Make dependent_cu optional.
3456 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3457 and an older .gdb_index is in use, queue and load all its TUs too.
3458
492c0ab7
JK
34592013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3460
3461 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3462 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3463 variable search_flags.
3464 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3465 (OPF_RETURN_REALPATH): ... here.
3466 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3467 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3468 call. Twice.
3469 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3470 openp call.
3471 * solib.c (solib_find): Likewise. Four times.
3472 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3473 in the function comment and for the realpath_fptr variable.
3474 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3475 (find_and_open_source): Likewise. Twice.
3476 * symfile.c (symfile_bfd_open): Likewise, also twice.
3477
23a44de8
DE
34782013-09-04 Doug Evans <dje@google.com>
3479
3480 * progspace.c (save_current_space_and_thread): Remove unnecessary
3481 call to save_current_inferior.
3482
47061676
AB
34832013-09-04 Andrew Burgess <aburgess@broadcom.com>
3484
3485 * sh64-tdep.c (sh64_do_register): Return after printing message
3486 about unavailable register contents.
3487
41dc8db8
MB
34882013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3489 Pedro Alves <palves@redhat.com>
3490
3491 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3492 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3493 options and collapse into single conditional branch.
41dc8db8 3494
07107ca6
LM
34952013-09-03 Luis Machado <lgustavo@codesourcery.com>
3496
a7ea61cf 3497 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3498 detach_fork.
3499 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3500 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3501 * inferior.h (detach_fork): Remove.
3502 * infrun.c (detach_fork): Adjust comment and make it
3503 static.
3504 (follow_fork): Pass detach_fork parameter to
3505 target_follow_fork.
3506 * linux-nat.c (linux_child_follow_fork): New parameter
3507 detach_fork.
3508 * target.c (target_follow_fork): New parameter detach_fork.
3509 Pass detach_fork as parameter and print its value.
3510 * target.h (struct target_ops) <to_follow_fork>: New int
3511 parameter.
3512 (target_follow_fork): New parameter detach_fork.
3513
3bec2768
JB
35142013-09-03 Joel Brobecker <brobecker@adacore.com>
3515
3516 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3517 Replace sec->bfd by sec->the_bfd_section->owner.
3518
c01cbb3d
YQ
35192013-09-03 Yao Qi <yao@codesourcery.com>
3520
3521 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3522 from linux_has_shared_address_space.
3523 (linux_has_shared_address_space): Call linux_is_uclinux.
3524 * linux-tdep.h (linux_is_uclinux): Declare.
3525 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3526 linux_is_uclinux.
3527
7b00db47
YQ
35282013-09-03 Yao Qi <yao@codesourcery.com>
3529
3530 * config/djgpp/fnchange.lst: Remove entry of
3531 i386-interix-nat.c and i386-interix-tdep.c.
3532 * configure.ac: Remove '*-*-interix*'.
3533 * configure: Re-generated.
3534 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3535 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3536 obsolete comments.
3537 * osabi.c (gdb_osabi_names): Remove "Interix".
3538
0f9741f2
YQ
35392013-09-03 Yao Qi <yao@codesourcery.com>
3540
3541 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3542
1e038f67
MM
35432013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3544
3545 * record.h (record_print_flag) <record_print_src_line,
3546 record_print_insn_range>: Rename into ...
3547 (record_print_flag) <record_print_src_line,
3548 record_print_insn_range>: ... this. Update all users.
3549
9e52adf9
PM
35502013-09-02 Pierre Muller <muller@sourceware.org>
3551
3552 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3553 error code.
3554
a2388568
PM
35552013-09-02 Pierre Muller <muller@sourceware.org>
3556
3557 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3558 by use of plongest function.
3559
9058cc3a
TG
35602013-09-02 Tristan Gingold <gingold@adacore.com>
3561
3562 * NEWS: Add entry mentioning support for native Windows x64
3563 SEH data.
3564
3565 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3566 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3567 (struct amd64_windows_frame_cache): New struct.
3568 (amd64_windows_w2gdb_regnum): New global.
3569 (pc_in_range, amd64_windows_frame_decode_epilogue)
3570 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3571 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3572 (amd64_windows_frame_this_id): New functions.
3573 (amd64_windows_frame_unwind): New static global.
3574 (amd64_windows_skip_prologue): New function.
3575 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3576 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3577 with amd64_windows_skip_prologue.
3578
3161820b 35792013-08-30 Joel Brobecker <brobecker@adacore.com>
3580
3581 GDB 7.6.1 released.
3582
02457c76
PA
35832013-08-30 Pedro Alves <palves@redhat.com>
3584
3585 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3586 SRC_AND_LOC.
3587
e0162910
PA
35882013-08-30 Pedro Alves <palves@redhat.com>
3589
3590 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3591 warning text.
3592
6391ce51
PA
35932013-08-30 Pedro Alves <palves@redhat.com>
3594
3595 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3596 Adjust arguments to print_stack_frame.
3597
d1da0587
PA
35982013-08-30 Pedro Alves <palves@redhat.com>
3599
3600 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3601
adfd8245
PA
36022013-08-30 Pedro Alves <palves@redhat.com>
3603
3604 * frame.h (show_and_print_stack_frame): Delete declaration.
3605
96d9056e
PM
36062013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3607
3608 PR python/15461
96d9056e
PM
3609 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3610 (archpy_name): Check for valid architecture.
3611 (archpy_disassemble): Ditto.
3612
11cb8762
JB
36132013-08-29 Joel Brobecker <brobecker@adacore.com>
3614
3615 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3616 instead of "long long" in call to ptrace64.
3617
1af12a7d
AB
36182013-08-29 Andrew Burgess <aburgess@broadcom.com>
3619
3620 * mi/mi-interp.c (mi_command_loop): Change signature to match
3621 interp_command_loop_ftype.
3622 (mi1_command_loop): Remove.
3623 (mi2_command_loop): Remove.
3624 (mi3_command_loop): Remove.
3625 (mi_interpreter_resume): Remove setting of
3626 deprecated_command_loop_hook.
3627 (_initialize_mi_interp): Set mi_command_loop as the command loop
3628 callback.
3629
acc900c2
SA
36302013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3631
3632 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3633 value_type.
3634
548b762d
SA
36352013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3636
3637 * value.c (allocate_value_contents): Make static.
3638 * value.h (allocate_value_contents): Remove prototype.
3639
08039c9e
SA
36402013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3641
3642 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3643 of assembling value via allocate_value_lazy and attribute setter.
3644 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3645 assembling value via allocate_value_lazy and attribute setter.
3646 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3647 assembling value via allocate_value_lazy and attribute setter.
3648
314c7de9
SA
36492013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3650
3651 * value.c (value_from_contents_and_address): Replace allocate_value and
3652 memcpy with value_from_contents.
3653
8f28f522
PM
36542013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3655
3656 * python/py-framefilter.c (py_print_frame): Remove usage of
3657 PyString_AsString. Use python_string_to_host_string instead.
3658 Refactor function to work with a string as a new allocation
3659 instead of a pointer.
3660 (py_print_frame): Ditto.
3661 * python/lib/gdb/frames.py (return_list): Cain iterators together
3662 instead of adding them as a list.
3663 (_sort_list): Call return_list, and remove duplicate code.
3664 (execute_frame_filters): Convert iterator to a list with list().
3665 * python/lib/gdb/command/frame_filters.py
3666 (SetFrameFilterPriority._set_filter_priority): Convert priority
3667 attribute to an integer.
3668 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3669 wrapper function __next__.
3670 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3671 define as "str".
3672
8ee002df
PM
36732013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3674
3675 PR python/15752
8ee002df
PM
3676 * python/py-framefilter.c (apply_frame_filter): Check
3677 gdb_python_initialized. Exit if the Python frame-filter code
3678 cannot be initialized.
3679
af4c453a
PM
36802013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3681
3682 PR cli/15842
af4c453a
PM
3683 * top.c (print_gdb_version): Remove erroneous newline after help
3684 text.
3685
bf8793bb
YQ
36862013-08-29 Yao Qi <yao@codesourcery.com>
3687
3688 * varobj.c (install_dynamic_child): Remove trailing space.
3689 Add one blank line after variable declaration.
3690
1f0c4988
JK
36912013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3692
3693 PR gdb/15415
3694 * corefile.c (get_exec_file): Use exec_filename.
3695 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3696 * exec.c (exec_close): Free EXEC_FILENAME.
3697 (exec_file_attach): New variable canonical_pathname. Use
3698 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3699 EXEC_FILENAME.
3700 * exec.h (exec_filename): New.
3701 * inferior.c (print_inferior, inferior_command): Use
3702 PSPACE_EXEC_FILENAME.
3703 * mi/mi-main.c (print_one_inferior): Likewise.
3704 * progspace.c (clone_program_space, print_program_space): Likewise.
3705 * progspace.h (struct program_space): New field pspace_exec_filename.
3706 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3707 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3708
59ee9f94
WN
37092013-08-28 Will Newton <will.newton@linaro.org>
3710
3711 * common/linux-ptrace.c: Include stdint.h unconditionally.
3712
c8a2a419
JK
37132013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3714
3715 Code cleanup.
3716 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3717
ffa4ac95
YQ
37182013-08-28 Yao Qi <yao@codesourcery.com>
3719 Pedro Alves <palves@redhat.com>
3720
3721 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3722 instead of stdio_fileopen.
3723 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3724 .Call stderr_fileopen instead of stdio_fileopen.
3725 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3726 [__MINGW32__] (stderr_file_fputs): New function.
3727 (stderr_fileopen): New function.
3728 * ui-file.h (stderr_fileopen): Declare.
3729
69d751e3
DE
37302013-08-27 Doug Evans <dje@google.com>
3731
3732 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3733 (struct dwarf2_per_cu_data): Ditto.
3734 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3735 (process_imported_unit_die): Ditto.
3736 (follow_die_sig_1): Simplify assert.
3737
44f38867
PA
37382013-08-27 Pedro Alves <palves@redhat.com>
3739
3740 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3741 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3742 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3743 windows_xfer_memory directly.
3744 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3745
d28d46b5
PA
37462013-08-27 Pedro Alves <palves@redhat.com>
3747
3748 * darwin-nat.c (darwin_xfer_memory): Delete.
3749 (_initialize_darwin_inferior): Don't install a
3750 deprecated_xfer_memory method.
3751
6211c335
YQ
37522013-08-27 Pedro Alves <pedro@codesourcery.com>
3753 Yao Qi <yao@codesourcery.com>
3754
3755 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3756 (parse_no_frames_option): Remove.
3757 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3758 (mi_cmd_stack_list_args): Adjust.
3759 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3760 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3761 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3762 Caller update.
3763 (list_args_or_locals): New parameter 'skip_unavailable'.
3764 Handle it.
3765 * valprint.c (scalar_type_p): Rename to ...
3766 (val_print_scalar_type_p): ... this. Make extern.
3767 (val_print, value_check_printable): Adjust.
3768 * valprint.h (val_print_scalar_type_p): Declare.
3769 * value.c (value_entirely_unavailable): New function.
3770 * value.h (value_entirely_unavailable): Declare.
3771
3772 * NEWS: Mention the new option "--skip-unavailable" to MI
3773 commands '-stack-list-locals', '-stack-list-arguments' and
3774 '-stack-list-variables'.
3775
242f1fd7
YQ
37762013-08-27 Yao Qi <yao@codesourcery.com>
3777
3778 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3779 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3780 options.
3781 * mi/mi-getopt.c (mi_getopt): Remove.
3782 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3783 'error_on_unknown'.
3784 (mi_getopt): Call mi_getopt_1.
3785 (mi_getopt_silent): New.
3786 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3787
260b681b
DE
37882013-08-26 Doug Evans <dje@google.com>
3789
779bd270
DE
3790 PR symtab/15885
3791 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3792 .gdb_index is in use.
3793 * symfile.c (reread_symbols): Reset objfile->sf.
3794
52e260a3
DE
3795 * NEWS: Document "mt print objfiles" now takes optional regexp.
3796 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3797 regexp of objfiles to print.
3798 (_initialize_symmisc): Update doc string for "mt print objfiles".
3799
260b681b
DE
3800 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3801 missing debug info checks.
3802
a85c52f2
UW
38032013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3804 Ulrich Weigand <uweigand@de.ibm.com>
3805
3806 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3807 line tables generated by XLC compiled binaries.
3808
4f00dda3
DE
38092013-08-23 Doug Evans <dje@google.com>
3810
db68bbae
DE
3811 * symmisc.c (dump_symtab): Delete prototype.
3812 (dump_msymbols, dump_objfile): Ditto.
3813 (maintenance_info_symtabs): Mark as dont_repeat.
3814 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3815
4f00dda3
DE
3816 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3817 debugging printf to better location.
3818
23d577b0
PA
38192013-08-23 Pedro Alves <palves@redhat.com>
3820
3821 * target.c (target_read_live_memory): Change type of 'ret' local
3822 to LONGEST.
3823
00d84524
PA
38242013-08-23 Pedro Alves <palves@redhat.com>
3825
3826 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3827 (remote_read_bytes): Change return type to LONGEST, and adjust to
3828 return a target_xfer_error on error.
3829 (remote_xfer_memory): Delete.
3830 (remote_flash_write): Change type of 'ret' local to LONGEST.
3831 (remote_xfer_partial, remote_xfer_partial): Adjust.
3832 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3833
1ed3ee94
PM
38342013-08-23 Pierre Muller <muller@sourceware.org>
3835
3836 ARI fix: Push # directives to start of line.
3837 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3838
9eaabc75
MW
38392013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3840
3841 PR gdb/15501
3842 * breakpoint.c (enable_command, disable_command): Iterate over
3843 all specified breakpoint locations.
3844
101158d9
LM
38452013-08-22 Luis Machado <lgustavo@codesourcery.com>
3846
3847 * common/linux-ptrace.c (linux_fork_to_function): Push #
3848 directives to the start of the line.
3849 (linux_check_ptrace_features): Fix warning message to use
3850 the "_" markup.
3851
96d7229d
LM
38522013-08-22 Luis Machado <lgustavo@codesourcery.com>
3853
3854 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3855 nat/linux-waitpid.h.
3856 (linux-waitpid.o): New object file rule.
3857 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3858 (current_ptrace_options): Moved from linux-nat.c.
3859 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3860 parameters.
3861 (linux_fork_to_function): New function.
3862 (linux_grandchild_function): Likewise.
3863 (linux_child_function): Likewise.
3864 (linux_check_ptrace_features): New function, heavily
3865 based on linux-nat.c:linux_test_for_tracefork.
3866 (linux_enable_event_reporting): New function.
3867 (ptrace_supports_feature): Likewise.
3868 (linux_supports_tracefork): Likewise.
3869 (linux_supports_traceclone): Likewise.
3870 (linux_supports_tracevforkdone): Likewise.
3871 (linux_supports_tracesysgood): Likewise.
3872 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3873 gdbserver/linux-low.c.
3874 (linux_enable_event_reporting): New declaration.
3875 (linux_supports_tracefork): Likewise.
3876 (linux_supports_traceclone): Likewise.
3877 (linux_supports_tracevforkdone): Likewise.
3878 (linux_supports_tracesysgood): Likewise.
3879 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3880 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3881 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3882 * config/arm/linux.mh (NATDEPFILES): Likewise.
3883 * config/i386/linux.mh (NATDEPFILES): Likewise.
3884 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3885 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3886 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3887 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3888 * config/mips/linux.mh (NATDEPFILES): Likewise.
3889 * config/pa/linux.mh (NATDEPFILES): Likewise..
3890 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3891 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3892 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3893 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3894 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3895 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3896 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3897 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3898 ptrace's 4th argument's types.
3899 Check the type of PTRACE_TYPE_ARG4.
3900 * configure: Regenerate.
3901 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3902 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3903 (linux_supports_tracefork_flag): Remove.
3904 (linux_supports_tracesysgood_flag): Likewise.
3905 (linux_supports_tracevforkdone_flag): Likewise.
3906 (current_ptrace_options): Moved to
3907 common/linux-ptrace.c.
3908 (linux_tracefork_child): Remove.
3909 (my_waitpid): Remove.
3910 (linux_test_for_tracefork): Renamed to
3911 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3912 (linux_test_for_tracesysgood): Remove.
3913 (linux_supports_tracesysgood): Remove.
3914 (linux_supports_tracefork): Remove.
3915 (linux_supports_tracevforkdone): Remove.
3916 (linux_enable_tracesysgood): Remove.
3917 (linux_enable_event_reporting): Remove.
3918 (linux_init_ptrace): New function.
3919 (linux_child_post_attach): Call linux_init_ptrace.
3920 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3921 (linux_child_follow_fork): Call linux_supports_tracefork
3922 and linux_supports_tracevforkdone.
3923 (linux_child_insert_fork_catchpoint): Call
3924 linux_supports_tracefork.
3925 (linux_child_insert_vfork_catchpoint): Likewise.
3926 (linux_child_set_syscall_catchpoint): Call
3927 linux_supports_tracesysgood.
3928 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3929 * nat/linux-nat.h: New file.
3930 * nat/linux-waitpid.c: New file.
3931 * nat/linux-waitpid.h: New file.
3932
9f948660
SDJ
39332013-08-22 Samuel Bronson <naesten@gmail.com>
3934
3935 ARM Linux support for `catch syscall'.
3936 * syscalls/arm-linux.py: New file.
3937 * syscalls/arm-linux.xml: Likewise.
3938 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3939 (arm_linux_init_abi): Register the new function and syscall xml file.
3940 * data-directory/Makefile.in: Install the new syscall xml file.
3941 * NEWS: Brag about this.
3942
6be7b56e
PA
39432013-08-22 Pedro Alves <palves@redhat.com>
3944
3945 PR gdb/15871
3946 * corefile.c (target_xfer_memory_error): New function.
3947 (memory_error): Defer EIO to target_memory_error.
3948 (read_memory): Use target_xfer_partial, and handle finer-grained
3949 target xfer errors.
3950 * target.c (target_xfer_error_to_string): New function.
3951 (memory_xfer_partial_1): If memory is known to be
3952 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3953 (target_xfer_partial): Make extern.
3954 * target.h (enum target_xfer_error): New enum.
3955 (target_xfer_error_to_string): Declare function.
3956 (target_xfer_partial): Declare function.
3957 (struct target_ops) <xfer_partial>: Adjust describing comment.
3958
bcbec14e
AM
39592013-08-22 Alan Modra <amodra@gmail.com>
3960
3961 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3962 * configure.tgt: Likewise as targets.
3963
fc474241
DE
39642013-08-20 Doug Evans <dje@google.com>
3965
3966 * buildsym.c (subfile_stack): Move here from buildsym.h.
3967 (pending_macros): Ditto.
3968 (get_macro_table): New function.
3969 (buildsym_init): Initialize subfile_stack.
3970 * coffread.c (type_vector,type_vector_length): Moved here from
3971 buildsym.h.
3972 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3973 (coff_symtab_read): Use it.
3974 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3975 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3976 with call to get_macro_table.
3977 * stabsread.c (type_vector,type_vector_length): Moved here from
3978 buildsym.h.
3979 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3980 * buildsym.h (get_macro_table): Declare.
3981
bec71544
TT
39822013-08-20 Tom Tromey <tromey@redhat.com>
3983
3984 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3985 Update.
3986 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3987
0002ad5f
DE
39882013-08-20 Doug Evans <dje@google.com>
3989
3990 * blockframe.c: Remove #include "psymtab.h".
3991 * cp-support.c: Ditto.
3992 * source.c: Ditto.
3993 * stack.c: Ditto.
3994
df302446
TT
39952013-08-20 Tom Tromey <tromey@redhat.com>
3996
3997 PR python/15816:
3998 * exceptions.h (return_mask): Now an enum.
3999 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4000 enum constants.
4001
df6d5441
TT
40022013-08-20 Tom Tromey <tromey@redhat.com>
4003
4004 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4005 get_objfile_arch.
4006 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4007 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4008 * jit.c (jit_object_close_impl): Update.
4009 * jv-lang.c (get_dynamics_objfile): Update.
4010 * linespec.c (add_minsym): Use get_dynamics_objfile.
4011 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4012 (allocate_objfile): Don't initialize 'gdbarch' field.
4013 (get_objfile_arch): Update.
4014 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4015 moved from...
4016 (struct objfile) <gdbarch>: ... here. Remove.
4017 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4018 get_objfile_arch.
4019 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4020
f5aee5ee
AM
40212013-08-20 Alan Modra <amodra@gmail.com>
4022
4023 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4024 for IBM long double nan and inf.
4025 (floatformat_is_negative, floatformat_classify,
4026 floatformat_mantissa): Similarly.
4027 (floatformat_ieee_single, floatformat_ieee_double,
4028 floatformat_ieee_quad, floatformat_arm_ext,
4029 floatformat_ia64_spill): Delete unused vars.
4030 (_initialize_doublest): Delete unused function.
4031 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4032 little-endian variants of floatformat_ibm_long_double.
4033
33b60d58 40342013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4035
33b60d58
LM
4036 * Makefile.in (SFILES): Remove common/target-common.c and
4037 add target/waitstatus.c.
4038 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4039 target/resume.h, target/wait.h and target/waitstatus.h.
4040 (COMMON_OBS): Remove target-common.o and add
4041 waitstatus.o.
4042 (target-common.o): Remove.
4043 (waitstatus.o): New target object file.
4044 * common/target-common.c: Move contents to
4045 target/waitstatus.c and remove.
4046 * common/target-common.h: Move contents to other files and
4047 remove.
4048 (enum resume_kind: Move to target/resume.h.
4049 (TARGET_WNOHANG): Move to target/wait.h.
4050 (enum target_waitkind): Move to target/waitstatus.h.
4051 (struct target_waitstatus): Likewise.
4052 * target.h: Do not include target-common.h and
4053 include target/resume.h, target/wait.h and
4054 target/waitstatus.h.
4055 * target/resume.h: New file.
4056 * target/wait.h: New file.
4057 * target/waitstatus.h: New file.
4058 * target/waitstatus.c: New file.
4059
12696c10
PA
40602013-08-19 Pedro Alves <palves@redhat.com>
4061
4062 * linux-nat.c (linux_test_for_tracefork)
4063 (linux_test_for_tracesysgood, linux_child_follow_fork)
4064 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4065 (linux_nat_wait_1): Extend comment.
4066 (linux_async_pipe): Add comment.
4067
ba89f962
KB
40682013-08-15 Kevin Buettner <kevinb@redhat.com>
4069
4070 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4071 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4072 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4073 Update to account for fact that PC is now a pseudo-register.
4074 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4075 cases for RL78_PC_REGNUM.
4076
35ab155d
MB
40772013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4078
4079 PR cli/15841
4080 * top.c (quit_force): Skip writing history file
4081 if input is not from terminal.
4082
0d031856
TT
40832013-08-14 Tom Tromey <tromey@redhat.com>
4084
4085 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4086 resultthreadlist>: New fields.
4087 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4088 (remote_get_threadlist, remote_threadlist_iterator): Use
4089 new fields. Remove static variables.
4090
ee154bee
TT
40912013-08-14 Tom Tromey <tromey@redhat.com>
4092
4093 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4094 remote_watch_data_address>: New fields.
4095 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4096 (process_stop_reply, remote_wait_as)
4097 (remote_check_watch_resources, remote_stopped_data_address): Update.
4098
88b496c3
TT
40992013-08-14 Tom Tromey <tromey@redhat.com>
4100
4101 * remote.c (struct remote_state) <async_client_callback,
4102 async_client_context>: New fields.
4103 (async_client_callback, async_client_context): Remove.
4104 (remote_async_serial_handler, remote_async): Update.
4105
2f65bcb7
TT
41062013-08-14 Tom Tromey <tromey@redhat.com>
4107
4108 * remote.c (sizeof_pkt): Remove.
4109 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4110
b80fafe3
TT
41112013-08-14 Tom Tromey <tromey@redhat.com>
4112
4113 * remote.c (struct remote_state) <use_threadinfo_query,
4114 use_threadextra_query>: New fields.
4115 (remote_threads_info, remote_threads_extra_info)
4116 (remote_open_1): Update.
4117
8e88304f
TT
41182013-08-14 Tom Tromey <tromey@redhat.com>
4119
4120 * remote.c (struct remote_state) <finished_object,
4121 finished_annex, finished_offset>: New fields.
4122 (remote_read_qxfer): Use remote_state fields; remove static
4123 variables.
4124
280ceea3
TT
41252013-08-14 Tom Tromey <tromey@redhat.com>
4126
4127 * remote.c (struct remote_state) <last_sent_step>:
4128 New field.
4129 (last_sent_step): Remove.
4130 (remote_resume, remote_wait_as): Update.
4131
b73be471
TT
41322013-08-14 Tom Tromey <tromey@redhat.com>
4133
4134 * remote.c (struct remote_state) <last_sent_signal>:
4135 New field.
4136 (last_sent_signal): Remove.
4137 (new_remote_state, remote_resume, remote_wait_as): Update.
4138
5e4a05c4
TT
41392013-08-14 Tom Tromey <tromey@redhat.com>
4140
4141 * remote.c (struct remote_state) <last_program_signals_packet>:
4142 New field.
4143 (last_program_signals_packet): Remove.
4144 (remote_program_signals, remote_open_1): Update.
4145
747dc59d
TT
41462013-08-14 Tom Tromey <tromey@redhat.com>
4147
4148 * remote.c (struct remote_state) <last_pass_packet>:
4149 New field.
4150 (last_pass_packet): Remove.
4151 (remote_pass_signals, remote_open_1): Update.
4152
262e1174
TT
41532013-08-14 Tom Tromey <tromey@redhat.com>
4154
4155 * remote.c (struct remote_state) <remote_traceframe_number>:
4156 New field.
4157 (remote_traceframe_number): Remove.
4158 (new_remote_state, remote_open_1, set_remote_traceframe)
4159 (remote_trace_find): Update.
4160
47f8a51d
TT
41612013-08-14 Tom Tromey <tromey@redhat.com>
4162
4163 * remote.c (struct remote_state) <general_thread, continue_thread>:
4164 New fields.
4165 (general_thread, continue_thread): Remove.
4166 (record_currthread, set_thread, set_general_process)
4167 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4168 (extended_remote_mourn_1): Update.
4169
5d93a237
TT
41702013-08-14 Tom Tromey <tromey@redhat.com>
4171
4172 * remote.c (struct remote_state) <remote_desc>: New field.
4173 (remote_desc): Remove.
4174 (remote_threads_info, remote_threads_extra_info, remote_close)
4175 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4176 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4177 (remote_hostio_send_command, remote_file_put, remote_file_get)
4178 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4179 (remote_async, remote_new_objfile, set_range_stepping): Update.
4180
cf792862
TT
41812013-08-14 Tom Tromey <tromey@redhat.com>
4182
4183 * remote.c (remote_state): Now a pointer.
4184 (get_remote_state_raw): Update.
4185 (new_remote_state): New function.
4186 (_initialize_remote): Use new_remote_state.
4187
dc473cfb
TT
41882013-08-14 Tom Tromey <tromey@redhat.com>
4189
4190 * remote.c (remote_protocol_features): Now const.
4191
85ec6ce7
TT
41922013-08-14 Tom Tromey <tromey@redhat.com>
4193
4194 * remote.c (crc32_table, crc32): Remove.
4195 (remote_verify_memory): Use xcrc32.
4196
73033f12
SDJ
41972013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4198
4199 * value.h (create_internalvar_type_lazy): Adjust prototype
4200 declaration.
4201
5c30d39a
AB
42022013-08-13 Andrew Burgess <aburgess@broadcom.com>
4203
4204 * common/format.c (parse_format_string): Don't allow '#' flag for
4205 pointer arguments in format string.
4206
1a66331e
PM
42072013-08-13 Pierre Muller <muller@sourceware.org>
4208
fde605f3 4209 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4210 if rl_get_screen_size did not return useful values.
4211
b4013987
AA
42122013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4213
4214 PR breakpoints/15117
4215 * linespec.c (linespec_parse_basic): Check for convenience
4216 variable or history value while parsing.
4217
959b6a66
SDJ
42182013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4219
4220 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4221 AVR.
4222 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4223 different signals between the generic Linux kernel implementation
4224 and AVR's.
4225 (avr_linux_gdb_signal_from_target): Delete.
4226 (avr_linux_gdb_signal_to_target): Delete.
4227 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4228
24a55014
DE
42292013-08-09 Doug Evans <dje@google.com>
4230
4231 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4232 entries.
4233
eb14d406
SDJ
42342013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4235
4236 * linux-tdep.c: Define enum with generic signal numbers.
4237 (linux_gdb_signal_from_target): New function.
4238 (linux_gdb_signal_to_target): Likewise.
4239 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4240 methods to the functions above.
4241 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4242 (linux_gdb_signal_to_target): Likewise.
4243 * alpha-linux-tdep.c: Define new enum with signals different
4244 from generic Linux kernel.
4245 (alpha_linux_gdb_signal_from_target): New function.
4246 (alpha_linux_gdb_signal_to_target): Likewise.
4247 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4248 with the functions mentioned above.
4249 * avr-tdep.c: Define enum with differences between Linux kernel
4250 and AVR signals.
4251 (avr_linux_gdb_signal_from_target): New function.
4252 (avr_linux_gdb_signal_to_target): Likewise.
4253 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4254 the functions mentioned above.
4255 * sparc-linux-tdep.c: Define enum with differences between SPARC
4256 and generic Linux kernel signal numbers.
4257 (sparc32_linux_gdb_signal_from_target): New function.
4258 (sparc32_linux_gdb_signal_to_target): Likewise.
4259 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4260 to the functions defined above.
4261 * xtensa-linux-tdep.c: Define enum with differences between
4262 Xtensa and Linux kernel generic signals.
4263 (xtensa_linux_gdb_signal_from_target): New function.
4264 (xtensa_linux_gdb_signal_to_target): Likewise.
4265 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4266 to the functions defined above.
4267 * mips-linux-tdep.c: Define enum with differences between
4268 signals in MIPS and Linux kernel generic ones.
4269 (mips_gdb_signal_to_target): New function.
4270 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4271 only different signals from the Linux kernel generic.
4272 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4273 the functions defined above.
4274 * mips-linux-tdep.h (enum mips_signals): Remove.
4275
156d08c8
PA
42762013-08-09 Pedro Alves <palves@redhat.com>
4277
4278 * avr-tdep.c (XMALLOC): Delete macro.
4279 * cli/cli-dump.c (XMALLOC): Delete macro.
4280
db229724
PA
42812013-08-09 Pedro Alves <palves@redhat.com>
4282
4283 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4284 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4285 (fopen_with_cleanup, add_dump_command): Make static.
4286 * cli/cli-dump.h: Delete file.
4287 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4288 cli/cli-dump.h.
4289
3f12a589
PA
42902013-08-09 Pedro Alves <palves@redhat.com>
4291
4292 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4293 error message.
4294
c718be47
PA
42952013-08-09 Pedro Alves <palves@redhat.com>
4296
156d08c8 4297 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4298 error message.
4299
1e351ed1
PA
43002013-08-09 Pedro Alves <palves@redhat.com>
4301
4302 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4303 (gcore_command): Use tilde_expand here, and when showing the
4304 filename to the user, show the expanded version.
4305
1ed8d800
YQ
43062013-08-09 Yao Qi <yao@codesourcery.com>
4307
4308 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4309 'entryval' is set.
4310
47ecca85
PA
43112013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4312
4313 * gcore.c (create_gcore_bfd): Use tilde_expand.
4314
82a0a75f
YQ
43152013-08-08 Yao Qi <yao@codesourcery.com>
4316
4317 * frame.h (read_frame_local): Declare.
4318 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4319 read_frame_local.
4320 * stack.c (read_frame_local): New.
4321
5c4aa40b
YQ
43222013-08-08 Yao Qi <yao@codesourcery.com>
4323
4324 * mi/mi-cmd-stack.c: Update comments to function
4325 list_args_or_locals.
4326
b93601f3
TT
43272013-08-07 Tom Tromey <tromey@redhat.com>
4328
4329 PR symtab/15028:
4330 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4331 (process_psymtab_comp_unit_reader): Use it.
4332 (process_psymtab_comp_unit): Update. Add "pretend_language"
4333 argument.
4334 (dwarf2_build_psymtabs_hard): Update.
4335 (scan_partial_symbols): Pass CU's language to
4336 process_psymtab_comp_unit.
4337
fa760f46
TT
43382013-08-07 Tom Tromey <tromey@redhat.com>
4339
4340 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4341 (dwarf2_gdb_index_functions): Update.
4342 * psymtab.c (find_symbol_file_from_partial): Remove.
4343 (psym_functions): Update.
4344 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4345 Remove.
4346
bf6d8a91
TT
43472013-08-07 Tom Tromey <tromey@redhat.com>
4348
4349 * symfile.c (set_initial_language): Look up "main" symbol
4350 and use its language.
4351 * symtab.c (find_main_filename): Remove.
4352 * symtab.h (find_main_filename): Remove.
4353
f9125b6c
TT
43542013-08-07 Tom Tromey <tromey@redhat.com>
4355
4356 * dwarf2read.c (recursively_compute_inclusions): Add
4357 "immediate_parent" argument. Set symtab's "user" field
4358 if not set.
4359 (compute_symtab_includes): Update.
4360
fdbb204b
TT
43612013-08-07 Tom Tromey <tromey@redhat.com>
4362
4363 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4364 when adding label symbols.
4365
49de1690
UW
43662013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4367 Ulrich Weigand <uweigand@de.ibm.com>
4368
4369 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4370 * configure.host (powerpc64-*-aix*): Likewise.
4371
b08ee99f
UW
43722013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4373 Ulrich Weigand <uweigand@de.ibm.com>
4374
4375 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4376 is defined.
4377 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4378 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4379 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4380 * configure.ac: Check for ptrace64.
4381 * configure, config.in: Regenerate.
4382
fecf803e
UW
43832013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4384 Ulrich Weigand <uweigand@de.ibm.com>
4385
4386 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4387 Call ptrace64 instead of ptrace if defined.
4388 Add macro addr_ptr to take care of ptrace address argument.
4389 (pdc_read_regs): Likewise.
4390 (pdc_write_regs): Likewise.
4391 (aix_thread_resume): Likewise.
4392 (fetch_regs_kernel_thread): Likewise.
4393 (store_regs_kernel_thread): Likewise.
4394
3bb5e4a8
AB
43952013-08-07 Anton Blanchard <anton@samba.org>
4396
4397 * MAINTAINERS: Add myself to Write After Approval.
4398
12070676
TT
43992013-08-05 Tom Tromey <tromey@redhat.com>
4400
4401 * aix-thread.c (_initialize_aix_thread): Use
4402 complete_target_initialization.
4403 * bsd-uthread.c (_initialize_bsd_uthread): Use
4404 complete_target_initialization.
4405 * dec-thread.c (_initialize_dec_thread): Use
4406 complete_target_initialization.
4407 * ravenscar-thread.c (_initialize_ravenscar): Use
4408 complete_target_initialization.
4409 * sol-thread.c (_initialize_sol_thread): Use
4410 complete_target_initialization.
4411 * spu-multiarch.c (_initialize_spu_multiarch): Use
4412 complete_target_initialization.
4413
7c7b6655
TT
44142013-08-05 Tom Tromey <tromey@redhat.com>
4415
4416 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4417 * ada-lang.c (ada_lookup_simple_minsym): Return
4418 bound_minimal_symbol.
4419 * ada-lang.h (ada_lookup_simple_minsym): Update.
4420 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4421 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4422 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4423 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4424 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4425 * minsyms.c (msymbol_objfile): Remove.
4426 (lookup_minimal_symbol_internal): New function, from
4427 lookup_minimal_symbol.
4428 (lookup_minimal_symbol): Rewrite using
4429 lookup_minimal_symbol_internal.
4430 (lookup_bound_minimal_symbol): New function.
4431 * minsyms.h (msymbol_objfile): Remove.
4432 (lookup_bound_minimal_symbol): Declare.
4433 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4434 * parse.c (write_exp_msymbol): Change parameter to a
4435 bound_minimal_symbol.
4436 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4437 * parser-defs.h (write_exp_msymbol): Update.
4438 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4439 * symfile.c (simple_read_overlay_table): Use
4440 lookup_bound_minimal_symbol.
4441 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4442 (search_symbols): Likewise.
4443 (print_msymbol_info): Take a bound_minimal_symbol argument.
4444 (symtab_symbol_info, rbreak_command): Update.
4445 * symtab.h (struct symbol_search) <msymbol>: Change type
4446 to bound_minimal_symbol.
4447 * valops.c (find_function_in_inferior): Use
4448 lookup_bound_minimal_symbol.
4449 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4450
934b9bac
JK
44512013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4452
4453 Code cleanup.
4454 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4455 to ...
4456 (async_cleanup_sigint_signal_handler): ... this.
4457 (initialize_sigint_signal_handler): Remove declaration.
4458 (handle_remote_sigint): Rename the declaration to ...
4459 (async_handle_remote_sigint): ... this.
4460 (handle_remote_sigint_twice): Rename the declaration to ...
4461 (async_handle_remote_sigint_twice): ... this.
4462 (async_remote_interrupt, async_remote_interrupt_twice)
4463 (remote_interrupt): Remove the declarations.
4464 (remote_interrupt_twice): Rename the declaration ...
4465 (sync_remote_interrupt_twice): ... this.
4466 (sigint_remote_twice_token): Rename the variable to ...
4467 (async_sigint_remote_twice_token): ... this.
4468 (sigint_remote_token): Rename the variable to ...
4469 (async_sigint_remote_token): ... this.
4470 (initialize_sigint_signal_handler): Rename the function to ...
4471 (async_initialize_sigint_signal_handler): ... this. Update the name
4472 inside.
4473 (handle_remote_sigint): Rename the function to ...
4474 (async_handle_remote_sigint): ... this. Update the names inside.
4475 (handle_remote_sigint_twice): Rename the function to ...
4476 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4477 (cleanup_sigint_signal_handler): Rename the function to ...
4478 (async_cleanup_sigint_signal_handler): ... this.
4479 (remote_interrupt): Rename the function to ...
4480 (sync_remote_interrupt): this. Update the names inside.
4481 (remote_interrupt_twice): Rename the function to ...
4482 (sync_remote_interrupt_twice): this. Update the names inside.
4483 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4484 (_initialize_remote): Update the names inside.
4485
3a1115a0
TT
44862013-08-02 Tom Tromey <tromey@redhat.com>
4487
4488 PR symtab/15719:
4489 * breakpoint.c (update_watchpoint, watchpoint_check)
4490 (watch_command_1): Update.
4491 * eval.c (fetch_subexp_value): Add "preserve_errors"
4492 parameter.
4493 * ppc-linux-nat.c (check_condition): Update.
4494 * value.h (fetch_subexp_value): Update.
4495
58b19776
AB
44962013-08-02 Andrew Burgess <aburgess@broadcom.com>
4497
4498 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4499 add_file_handler.
4500
ec94af83
DE
45012013-08-01 Doug Evans <dje@google.com>
4502
7ee85ab1
DE
4503 PR symtab/15691
4504 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4505 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4506 Add assert of sig_entry->dwo_unit == NULL.
4507 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4508 had already been read.
4509 (read_signatured_type): Set per_cu.tu_read.
4510
b846d303
DE
4511 PR symtab/15695
4512 * valops.c (value_struct_elt): Add missing call to check_typedef.
4513 (value_find_oload_method_list): Ditto.
4514
b52109bc
DE
4515 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4516 effectively, struct symbol_search **.
4517 (make_cleanup_free_search_symbols): Change arg to struct
4518 symbol_search **. All callers updated.
4519 (compare_search_syms): Compare symtab file name and block as well.
4520 (search_symbols_equal): New function.
4521 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4522 New args new_head, new_tail. Result is now void. Remove dups after
4523 sorting the symbols.
4524 (search_symbols): Sort all found symbols once, after all have been
4525 found, and remove duplicates. Simplify cleanup tracking of result.
4526 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4527
ec94af83
DE
4528 Further workarounds for binutils/15021.
4529 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4530 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4531 Watch for duplicate symtabs coming from type units.
4532 (compute_symtab_includes): Update call to
4533 recursively_compute_inclusions. Build vector of included symtabs
4534 instead of per_cus.
4535 * symtab.h (symtab_ptr): New typedef.
4536 (DEF_VEC_P (symtab_ptr)): New VEC type.
4537 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4538 instead.
4539
b2ae85cf
AB
45402013-08-01 Andrew Burgess <aburgess@broadcom.com>
4541
4542 * cli/cli-script.c (script_from_file): Remove use of
4543 error_pre_print.
4544 * main.c (captured_main): Remove use of error_pre_print and
4545 quit_pre_print.
4546 * utils.c (error_pre_print, quit_pre_print): Remove.
4547 * utils.h (error_pre_print, quit_pre_print): Likewise.
4548
645eab03
YQ
45492013-08-01 Yao Qi <yao@codesourcery.com>
4550
4551 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4552 with mi_getopt.
4553 (mi_cmd_stack_list_variables): Likewise.
4554
16f92dd4
AB
45552013-07-31 Andrew Burgess <aburgess@broadcom.com>
4556
4557 * exceptions.c (deprecated_throw_reason): Remove.
4558 * exceptions.h (deprecated_throw_reason): Remove.
4559
13f78033
AB
45602013-07-31 Andrew Burgess <aburgess@broadcom.com>
4561
4562 * remote-mips.c (mips_error): Replace use of
4563 deprecated_throw_reason with throw_verror. Use the error message
4564 passed to mips_error as the error message for throw_verror.
4565
039e3c22
AB
45662013-07-31 Andrew Burgess <aburgess@broadcom.com>
4567
4568 * monitor.c (monitor_interrupt_query): Replace use of
4569 deprecated_throw_reason with quit.
4570 * nto-procfs.c (interrupt_query): Likewise.
4571 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4572 * remote-mips.c (mips_kill): Likewise.
4573 * remote.c (interrupt_query): Likewise.
4574
8150913b
AB
45752013-07-31 Andrew Burgess <aburgess@broadcom.com>
4576
4577 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4578 with call to fatal.
4579
de74e63a
YQ
45802013-07-31 Pedro Alves <pedro@codesourcery.com>
4581 Yao Qi <yao@codesourcery.com>
4582
4583 * tracepoint.c (trace_dump_command): Select the current frame.
4584
247f5c4f
DE
45852013-07-30 Doug Evans <dje@google.com>
4586
4587 * dwarf2read.c (process_queue): Add type signature to debug output.
4588
11b4b7cc
AB
45892013-07-30 Andrew Burgess <aburgess@broadcom.com>
4590
4591 * value.c (value_fetch_lazy): Mark optimized out values as such
4592 rather than raising an error.
4593
b0c54aa5
AB
45942013-07-30 Andrew Burgess <aburgess@broadcom.com>
4595
4596 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4597 before checking which bits of the parent, not the child, value are
4598 valid.
4599
97c85fc6
MB
46002013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4601
4602 PR gdb/15715
4603 * top.c: Include "filenames.h".
4604 (set_history_filename): New function.
4605 (init_main): Install it as set hook of the "set history filename"
4606 command.
4607
ff39bb5e
SA
46082013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4609
4610 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4611 attribute parameter.
4612 (dwarf2_const_value_data): Constify struct attribute parameter.
4613 (dwarf2_const_value): Constify struct attribute parameter.
4614 (dwarf2_const_value_attr): Constify struct attribute parameter.
4615 (lookup_die_type): Constify struct attribute parameter.
4616 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4617 (follow_die_ref_or_sig): Constify struct attribute parameter.
4618 (follow_die_ref): Constify struct attribute parameter.
4619 (follow_die_sig): Constify struct attribute parameter.
4620 (get_DW_AT_signature_type): Constify struct attribute parameter.
4621 (get_type_unit_group): Constify struct attribute parameter.
4622 (fill_in_loclist_baton): Constify struct attribute parameter.
4623 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4624 (type_unit_group): Constify struct attribute parameter.
4625
6e5a29e1
SA
46262013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4627
4628 * dwarf2read.c (attr_form_is_block): Make argument const.
4629 (attr_form_is_section_offset): Make argument const.
4630 (attr_form_is_constant): Make argument const.
4631 (attr_form_is_ref): Make argument const.
4632
7771576e
SA
46332013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4634
4635 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4636 All uses updated.
4637 (attr_form_is_ref): Moved below attr_form_is_constant.
4638
a94e8645
DE
46392013-07-29 Doug Evans <dje@google.com>
4640
bb5291d0
DE
4641 * main.c (captured_command_loop): Tweak comment.
4642
b5419e49
DE
4643 * target.c (target_async_permitted_1): Fix comment.
4644
b2d23133
DE
4645 * symtab.c (iterate_over_some_symtabs): Add comment.
4646
a94e8645
DE
4647 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4648
7a60ad40
YQ
46492013-07-27 Yao Qi <yao@codesourcery.com>
4650
4651 * NEWS: Mention that GDBserver now supports hardware
4652 watchpoints on the MIPS GNU/Linux target.
4653
aaee2056
YQ
46542013-07-27 Yao Qi <yao@codesourcery.com>
4655
4656 * Makefile.in (HFILES_NO_SRCDIR): Add
4657 common/mips-linux-watch.h.
4658 (mips-linux-watch.o): New rule.
4659 * common/mips-linux-watch.c: New.
4660 * common/mips-linux-watch.h: New.
4661 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4662 * mips-linux-nat.c: Include mips-linux-watch.h.
4663 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4664 to common/mips-linux-watch.h.
4665 (MAX_DEBUG_REGISTER): Likewise.
4666 (enum pt_watch_style): Likewise.
4667 (struct mips32_watch_regs): Likewise.
4668 (struct mips64_watch_regs): Likewise.
4669 (struct pt_watch_regs): Likewise.
4670 (struct mips_watchpoint): Likewise.
4671 (mips_linux_watch_get_irw_mask): Move to
4672 common/mips-linux-watch.c.
4673 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4674 (mips_linux_watch_get_watchlo): Likewise.
4675 (mips_linux_watch_set_watchlo): Likewise.
4676 (mips_linux_watch_get_watchhi): Likewise.
4677 (mips_linux_watch_set_watchhi): Likewise.
4678 (mips_linux_read_watch_registers): Likewise.
4679 (mips_linux_watch_type_to_irw): Likewise.
4680 (mips_linux_stopped_data_address, fill_mask): Likewise.
4681 (mips_linux_watch_try_one_watch): Likewise.
4682 (mips_linux_watch_populate_regs): Likewise.
4683
b3436450
YQ
46842013-07-27 Yao Qi <yao@codesourcery.com>
4685
4686 * mips-linux-nat.c (get_irw_mask): Rename to ...
4687 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4688 'set' to 'n'. Update function comment. All callers changed.
4689 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4690 function comment. All callers changed.
4691 (get_num_valid): Rename to ...
4692 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4693 'set' to 'n'. Update function comment. All callers changed.
4694 (get_watchlo): Rename to ...
4695 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4696 'set' to 'n'. Update function comment. All callers changed.
4697 (set_watchlo): Rename to ...
4698 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4699 'set' to 'n'. Update function comment. All callers changed.
4700 (get_watchhi): Rename to ...
4701 (mips_linux_watch_get_watchhi): ... this. Update function
4702 comment. All callers changed.
4703 (set_watchhi): Rename to ...
4704 (mips_linux_watch_set_watchhi): ... this. Update function
4705 comment. All callers changed.
4706 (mips_linux_read_watch_registers): Update function comment.
4707 Add new parameters 'lwpid', 'watch_readback', and
4708 'watch_readback_valid'. Update.
4709 (type_to_irw): Rename to ...
4710 (mips_linux_watch_type_to_irw): ... this. Update function
4711 comment. All callers changed.
4712 (fill_mask): Update function comment.
4713 (try_one_watch): Rename to ...
4714 (mips_linux_watch_try_one_watch): ... this. Change the type
4715 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4716 (populate_regs_from_watches): Rename to ...
4717 (mips_linux_watch_populate_regs): ... this. Add parameter
4718 'current_watches'. All callers changed.
4719
9be14b81
YQ
47202013-07-27 Yao Qi <yao@codesourcery.com>
4721
4722 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4723 the code.
4724 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4725 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4726 (struct pt_watch_regs): Likewise.
4727 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4728 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4729 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4730 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4731 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4732
de6f69ad
YQ
47332013-07-27 Yao Qi <yao@codesourcery.com>
4734
4735 * breakpoint.h: Include break-common.h.
4736 (enum target_hw_bp_type): Move to ...
4737 * common/break-common.h: ... here. New.
4738
6f64ef53
PA
47392013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4740
4741 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4742 process group regardless of having tty on stdin.
4743
6107e809
DE
47442013-07-25 Doug Evans <dje@google.com>
4745
4746 * linux-fork.h (detach_fork): Delete.
4747
7fdc1521
TT
47482013-07-25 Tom Tromey <tromey@redhat.com>
4749
4750 PR remote/15256, PR remote/15266:
4751 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4752 * monitor.c (monitor_detach): Use unpush_target.
4753 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4754 * remote-mips.c (mips_detach): Use unpush_target. Don't
4755 call mips_close.
4756 * remote-sim.c (gdbsim_detach): Use unpush_target.
4757 * target.c (pop_target): Remove.
4758 (pop_all_targets_above): Don't call target_close.
4759 (target_close): Assert that the target is unpushed.
4760 * target.h (pop_target): Don't declare.
4761 * tracepoint.c (tfile_open): Use unpush_target.
4762
c22a2b88
TT
47632013-07-25 Tom Tromey <tromey@redhat.com>
4764
4765 * linux-thread-db.c (init_thread_db_ops): Call
4766 complete_target_initialization.
4767 (_initialize_thread_db): Don't call add_target.
4768 * target.c (complete_target_initialization): New function.
4769 (add_target_with_completer): Call it.
4770 * target.h (complete_target_initialization): Declare.
4771
cbb6aada
MK
47722013-07-25 Mark Kettenis <kettenis@gnu.org>
4773
4774 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4775 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4776 (HPPANBSD_SIZEOF_GREGS): New define.
4777 (hppaobsd_supply_gregset): Handle additional registers.
4778 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4779 we provide more registers now.
4780 (hppabsd_supply_gregset): Supply additional registers.
4781 (hppabsd_collect_gregset): Collect additional registers.
4782
17767988
MK
47832013-07-25 Mark Kettenis <kettenis@gnu.org>
4784
4785 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4786 (hppabsd_dwarf2_frame_init_reg): New function.
4787 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4788
fdc8aae8
AB
47892013-07-25 Andrew Burgess <aburgess@broadcom.com>
4790
4791 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4792 'z' format code. Remove error for optimized out values, standard
4793 code will handle these fine.
4794
6fbe845e
AB
47952013-07-25 Andrew Burgess <aburgess@broadcom.com>
4796
4797 * NEWS: Mention new 'z' formatter.
4798 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4799 (_initialize_printcmd): Mention 'z' formatter in help text of the
4800 'x' command.
4801
3373342d
MR
48022013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4803
4804 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4805 formatting.
4806
25f9533e
SDJ
48072013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4808
4809 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4810 interface can evaluate arguments. Fallback to the old mode if it
4811 cannot.
4812 (create_exception_master_breakpoint): Likewise.
4813 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4814 (struct sym_probe_fns elf_probe_fns): Export function above to the
4815 probe interface.
4816 * probe.c (can_evaluate_probe_arguments): New function.
4817 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4818 function pointer.
4819 (can_evaluate_probe_arguments): New function prototype.
4820 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4821 probe interface can evaluate arguments. Fallback to the old mode
4822 if it cannot.
4823 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4824 interface can evaluate arguments. Warning the user if it cannot.
4825 (stap_can_evaluate_probe_arguments): New function.
4826 (struct probe_ops stap_probe_ops): Export function above to the
4827 probe interface.
4828 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4829 New function pointer.
4830
3360c0bf
LM
48312013-07-24 Luis Machado <lgustavo@codesourcery.com>
4832
4833 * Makefile.in (SFILES): Add common/target-common.c.
4834 Add common/target-common.h to headers.
4835 (COMMON_OBS): Add target-common.o.
4836 (target-common.o): New target.
4837 * linux-nat.h (resume_kind): Move to common/target-common.h.
4838 * target.c (target_waitstatus_to_string): Move to
4839 common/target-common.c.
4840 * target.h: Include target-common.h.
4841 (target_waitkind): Move to common/target-common.h.
4842 (target_waitstatus): Likewise.
4843 (TARGET_WNOHANG): Likewise.
4844 * common/target-common.c: New file.
4845 * common/target-common.h: New file.
4846
6656a72d
DE
48472013-07-24 Doug Evans <dje@google.com>
4848
4849 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4850 a warning.
4851
6df81a63
YQ
48522013-07-23 Yao Qi <yao@codesourcery.com>
4853
4854 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4855 parameter 'gdbarch'.
4856 (i386_stack_tramp_frame_sniffer): Caller update.
4857 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4858 parameter 'gdbarch' and 'target'.
4859 (i386_linux_core_read_description): Caller update.
4860 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4861 Likewise.
4862 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4863 declaration.
4864
365156ad
TT
48652013-07-23 Tom Tromey <tromey@redhat.com>
4866
4867 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4868 2013-07-22.
4869
046ac79f
JK
48702013-07-22 Doug Evans <dje@google.com>
4871
4872 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4873 * exec.c (exec_close): Update call to remove_target_sections.
4874 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4875 * solib.c (update_solib_list): Ditto.
4876 (reload_shared_libraries_1): Ditto.
4877 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4878 * target.h (struct target_section): Rename key to owner.
4879 All uses updated.
046ac79f 4880
29b2cc46
TT
48812013-07-22 Tom Tromey <tromey@redhat.com>
4882
4883 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4884
d1160018
TT
48852013-07-22 Tom Tromey <tromey@redhat.com>
4886
4887 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4888 Simplify cleanup handling.
4889
2f324bf6
TT
48902013-07-22 Tom Tromey <tromey@redhat.com>
4891
4892 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4893 on all return paths.
4894
e23b9d6e
UW
48952013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4896
4897 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4898 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4899 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4900
1cf55f60
PM
49012013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4902
4903 * top.c (print_gdb_version): Add help, apropos description and
4904 url to online documentation.
4905
fa876972
HZ
49062013-07-19 Hui Zhu <hui@codesourcery.com>
4907
4908 PR gdb/15692
4909 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4910
1527aea8
YQ
49112013-07-19 Yao Qi <yao@codesourcery.com>
4912
4913 * target.c (update_current_target): Change the default action
4914 of 'to_traceframe_info' from tcomplain to return_zero.
4915 * target.h (struct target_ops) <to_traceframe_info>: Add more
4916 comments.
4917 * valops.c (read_value_memory): Call
4918 traceframe_available_memory unconditionally.
4919
886f230e
YQ
49202013-07-18 Yao Qi <yao@codesourcery.com>
4921
4922 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4923 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4924 symbol without prefix. If found, set its type to
4925 'mst_solib_trampoline'.
4926
16419bae
DE
49272013-07-17 Doug Evans <dje@google.com>
4928
e7045703
DE
4929 * NEWS: Mention "set print raw frame-arguments".
4930 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4931 * stack.c (print_raw_frame_arguments): New static global.
4932 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4933 (_initialize_stack): New command "set/show print raw frame-arguments".
4934 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4935 (set_print_raw, show_print_raw): New functions.
4936 (_initialize_valprint): New prefix command "set/show print raw".
4937 * valprint.h (value_print_options): Improve comments.
4938
453e48a5
DE
4939 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4940 of all *list variables.
4941
16419bae
DE
4942 * gdbcmd.h (togglelist): Delete.
4943 * cli/cli-cmds.c (togglelist): Delete.
4944 (init_cmd_lists): Update.
4945 * cli/cli-cmds.h (togglelist): Delete.
4946
626f2d1c
TT
49472013-07-17 Tom Tromey <tromey@redhat.com>
4948
4949 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4950 dwarf2_per_objfile.
4951
57e6060e
DE
49522013-07-16 Doug Evans <dje@google.com>
4953
4954 * nto-tdep.c (nto_relocate_section_addresses): Update,
4955 target_section.bfd deleted.
4956 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4957 * s390-tdep.c (s390_load): Ditto.
4958 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4959
5ea5559b
AB
49602013-07-16 Andrew Burgess <aburgess@broadcom.com>
4961
4962 * common/format.c (parse_format_string): Add checks for NULL
4963 character before calling strchr.
4964
2b2848e2
DE
49652013-07-16 Doug Evans <dje@google.com>
4966
2c571006
DE
4967 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4968 temp_pathname argument.
4969 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4970 when opening the file fails.
4971
2b2848e2
DE
4972 * target.h (struct target_section): Delete member bfd.
4973 All users updated to use the_bfd_section->owner instead.
4974 * exec.c (add_to_section_table): Assert bfd is expected value.
4975 Remove initialization of target_section.bfd.
4976 (remove_target_sections): Update.
4977 (section_table_available_memory): Update.
4978 (section_table_xfer_memory_partial): Update.
4979 (print_section_info): Update.
4980 (exec_set_section_address): Update.
4981 * record-full.c (record_full_core_xfer_partial): Update.
4982 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4983 * solib-target.c (solib_target_relocate_section_addresses): Update.
4984 * symfile.c (build_section_addr_info_from_section_table): Update.
4985 * target.c (memory_xfer_live_readonly_partial): Update.
4986 (memory_xfer_partial_1): Update.
4987
926bf92d
UW
49882013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4989
4990 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4991 now available for embedded (BookE) and server (BookS) processors,
4992 correct mentions of 'booke' and adjust comments accordingly in order to
4993 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4994 (have_ptrace_booke_interface): Rename function and variable
4995 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4996 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4997 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4998 'hwdebug_point_cmp'. Update all uses.
4999 (booke_find_thread_points_by_tid): Rename function
5000 'booke_find_thread_points_by_tid' to
5001 'hwdebug_find_thread_points_by_tid'. Update all uses.
5002 (booke_insert_point): Rename function 'booke_insert_point' to
5003 'hwdebug_insert_point'. Update all uses.
5004 (booke_remove_point): Rename function 'booke_remove_point' to
5005 'hwdebug_remove_point'. Update all uses.
5006
d929bc19
MR
50072013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5008
5009 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5010 numbers with enum values.
5011
054e8d9e
AA
50122013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5013
5014 PR threads/13217
5015 * thread.c (thread_apply_all_command): Check for valid threads
5016 and thread count.
5017 (thread_array_cleanup): New struct.
5018 (set_thread_refcount): New function.
5019
cf006359
AB
50202013-07-11 Andrew Burgess <aburgess@broadcom.com>
5021
5022 * infcmd.c (default_print_one_register_info): Reuse function
5023 print_hex_chars.
5024
94e36acc
TT
50252013-07-10 Tom Tromey <tromey@redhat.com>
5026
5027 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5028 (ada-exp.o): New target.
5029
915dd369
SDJ
50302013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5031
5032 * mt-tdep.c (mt_registers_info): Call
5033 get_no_prettyformat_print_options instead of
5034 get_raw_print_options (regression by last patch from Doug
5035 Evans).
5036
eca07816
JB
50372013-07-09 Pedro Alves <palves@redhat.com>
5038
5039 Checked in by Joel Brobecker <brobecker@adacore.com>.
5040 * ada-lang.c (coerce_unspec_val_to_type): Use
5041 value_optimized_out_const.
5042 * value.c (value_optimized_out_const): New function.
5043 * value.h (value_optimized_out_const): New declaration.
5044
2a998fc0
DE
50452013-07-09 Doug Evans <dje@google.com>
5046
5047 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5048 Enum values rename as well. All uses updated.
5049 * valprint.h (value_print_options): Rename member pretty to
5050 pretty format. Rename member prettyprint_arrays to
5051 prettyformat_arrays. Rename member prettyprint_structs to
5052 prettyformat_structs. All uses updated.
5053 (get_no_prettyformat_print_options): Renamed from
5054 get_raw_print_options.
5055 * valprint.c (get_no_prettyformat_print_options): Renamed from
5056 get_raw_print_options. All callers updated.
5057 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5058 All callers updated.
5059 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5060 All callers updated.
5061 (_initialize_valprint): Improve help text for "set print pretty" and
5062 "set print arrays".
5063
466c1fca
AB
50642013-07-09 Andrew Burgess <aburgess@broadcom.com>
5065
5066 * value.c (value_bits_valid): Revert previous change, and change
5067 by Pedro on 2013-07-04, due to regressions in
5068 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5069
ad0f0303
AB
50702013-07-08 Andrew Burgess <aburgess@broadcom.com>
5071 Pedro Alves <palves@redhat.com>
5072
5073 * value.c (value_bits_valid): If the value is not lval_computed
5074 or has no check validity handler then the answer is the
5075 optimized_out flag, otherwise defer to the handler.
5076
b187bec1
EZ
50772013-07-06 Eli Zaretskii <eliz@gnu.org>
5078
48d1d6f5
EZ
5079 * top.c (print_gdb_configuration): Explain in output of
5080 --configuration what does "relocatable" mean.
5081
b187bec1
EZ
5082 * main.c (print_gdb_help): Regroup options in the --help text.
5083 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5084 the relevant discussions.
5085
52d361e1
YQ
50862013-07-06 Yao Qi <yao@codesourcery.com>
5087
5088 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5089 Remove parameter 'lsal'.
5090 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5091 to inner block. Caller update.
5092 (base_breakpoint_create_breakpoints_sal): Update.
5093 (bkpt_create_breakpoints_sal): Likewise.
5094 (tracepoint_create_breakpoints_sal): Likewise.
5095 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5096 element 0 of vector 'canonical->sals'.
5097
e1ec1b42
LM
50982013-07-05 Luis Machado <lgustavo@codesourcery.com>
5099
5100 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5101 register number instead of the pseudo register one.
5102 (rs6000_dwarf2_reg_to_regnum): Likewise.
5103
7195e6f0
PA
51042013-07-04 Pedro Alves <palves@redhat.com>
5105
5106 * findvar.c (value_of_register): Use allocate_optimized_out_value
5107 if the register has been optimized out, instead of
5108 set_value_optimized_out.
5109 * frame-unwind.c (frame_unwind_got_optimized): Use
5110 allocate_optimized_out_value.
5111
58722cac
PA
51122013-07-04 Pedro Alves <palves@redhat.com>
5113
5114 * value.c (value_bits_valid): If the value is not lval_computed,
5115 or doesn't have a check_validity hook, assume the value is entirely
5116 valid.
5117
691a26f5
AB
51182013-07-04 Andrew Burgess <aburgess@broadcom.com>
5119
5120 * stack.c (read_frame_arg): No longer fetch lazy values.
5121 * value.c (value_optimized_out): If the value is not already
5122 marked optimized out, and is lazy then fetch it.
5123 (value_primitive_field): Move optimized out check to later in the
5124 function, after we have loaded any lazy values.
5125 (value_fetch_lazy): Use optimized out flag directly rather than
5126 calling optimized_out method.
5127
a58e2656
AB
51282013-07-04 Andrew Burgess <aburgess@broadcom.com>
5129
5130 * valops.c: Don't include "user-regs.h".
5131 (value_fetch_lazy): Moved to value.c.
5132 * value.c: Include "user-regs.h".
5133 (value_fetch_lazy): Moved from valops.c.
5134
bd885420
YQ
51352013-07-04 Yao Qi <yao@codesourcery.com>
5136
5137 Revert:
5138 2013-06-27 Yao Qi <yao@codesourcery.com>
5139
5140 * common/create-version.sh: Update comments. Handle the case
5141 that TARGET_ALIAS is empty.
5142
17ef446e
PA
51432013-07-03 Pedro Alves <palves@redhat.com>
5144
5145 * Makefile.in (config.status): Depend on development.sh.
5146 (aclocal_m4_deps): Add libmcheck.m4.
5147 * acinclude.m4: Include libmcheck.m4.
5148 * configure.ac: Source development.sh instead of setting
5149 'development' here. --enable-libmcheck/--disable-libmcheck code
5150 factored out to GDB_AC_LIBMCHECK. Run it.
5151 * development.sh: New file.
5152 * libmcheck.m4: New file.
5153 * configure: Regenerate.
5154
ac6dd50f
TT
51552013-07-02 Tom Tromey <tromey@redhat.com>
5156
5157 * contrib/ari/update-web-ari.sh: Update for version.in change.
5158
bd1df410
TT
51592013-07-02 Tom Tromey <tromey@redhat.com>
5160
5161 * common/ptid.h: Comment fixes.
5162
4db1a1dc
TT
51632013-07-01 Tom Tromey <tromey@redhat.com>
5164
5165 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5166 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5167 (dwarf2_read_index, create_all_comp_units): Update.
5168
dd9aa048
TT
51692013-07-01 Tom Tromey <tromey@redhat.com>
5170
5171 * configure.ac (build_warnings): Add -Wold-style-definition.
5172 * configure: Rebuild.
5173 * machoread.c (_initialize_machoread): Use "(void)".
5174 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5175 use "(void)".
5176
44d100c3
TT
51772013-07-01 Tom Tromey <tromey@redhat.com>
5178
5179 * configure.ac (build_warnings): Add -Wold-style-declaration.
5180 * configure: Rebuild.
5181 * dsrec.c (make_srec): Use "static const", not "const static".
5182 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5183 not "const static".
5184 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5185 Use "static const", not "const static".
5186 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5187 not "const static".
5188 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5189 not "const static".
5190 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5191 not "const static".
5192 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5193 not "const static".
5194 (v850_dbtrap_breakpoint_from_pc): Likewise.
5195 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5196 not "const static".
5197
2945b807
TT
51982013-07-01 Tom Tromey <tromey@redhat.com>
5199
5200 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5201 * configure: Rebuild.
5202
d8d2a3ee
PA
52032013-07-01 Pedro Alves <palves@redhat.com>
5204
5205 * defs.h: Include "pathmax.h".
5206 * utils.c: Don't include sys/param.h.
5207 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5208 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5209 instead of MAXPATHLEN.
5210 * solib-sunos.c: Don't include sys/param.h.
5211 * xcoffread.c: Don't include sys/param.h.
5212 * bsd-kvm.c: Don't include sys/param.h.
5213 * darwin-nat.c: Don't include sys/param.h.
5214 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5215 * darwin-nat-info.c: Don't include sys/param.h.
5216 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5217 MAXPATHLEN.
5218 * i386obsd-nat.c: Don't include sys/param.h.
5219 * inf-child.c: Don't include sys/param.h.
5220 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5221 * linux-fork.c: Don't include sys/param.h.
5222 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5223 * linux-nat.c: Don't include sys/param.h.
5224 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5225 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5226 * m68klinux-nat.c: Don't include sys/param.h.
5227 * nbsd-nat.c: Don't include sys/param.h.
5228 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5229 * ppc-linux-nat.c: Don't include sys/param.h.
5230 * rs6000-nat.c: Don't include sys/param.h.
5231 * spu-linux-nat.c. Don't include sys/param.h.
5232 * windows-nat.c: Don't include sys/param.h.
5233 * xtensa-linux-nat.c: Don't include sys/param.h.
5234 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5235
38ec2207
PA
52362013-07-01 Pedro Alves <palves@redhat.com>
5237
5238 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5239 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5240 * gnulib/aclocal.m4: Regenerate.
5241 * gnulib/config.in: Regenerate.
5242 * gnulib/configure: Regenerate.
5243 * gnulib/import/pathmax.h: New file.
5244 * gnulib/import/Makefile.am: Regenerate.
5245 * gnulib/import/Makefile.in: Regenerate.
5246 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5247 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5248 * gnulib/import/m4/pathmax.m4: New file.
5249
e655c1a2
PA
52502013-07-01 Pedro Alves <palves@redhat.com>
5251
5252 * configure.ac (GDBINIT): Define, depending on host.
5253 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5254 * top.c (PATH_MAX): Delete fallback definition.
5255 (GDBINIT_FILENAME): Delete.
5256 (gdbinit): Reimplement as const char array set to the GDBINIT
5257 string constant.
5258 * top.h (gdbinit): Make const.
5259 * configure, config.in: Regenerate.
5260
50dd9793
PA
52612013-07-01 Pedro Alves <palves@redhat.com>
5262
5263 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5264 * cli/cli-cmds.h (source_script): Likewise.
5265 * exceptions.c (catch_command_errors_const): New function.
5266 * exceptions.h (catch_command_errors_const): Declare.
5267 * main.c (get_init_files): Make parameters const, and adjust.
5268 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5269 'local_gdbinit' locals const. Adjust to use
5270 catch_command_errors_const.
5271 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5272 'local_gdbinit' locals const.
5273
bc7dea8d
PA
52742013-07-01 Pedro Alves <palves@redhat.com>
5275
5276 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5277 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5278 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5279 <unistd.h>.
5280
8839a007
PA
52812013-07-01 Pedro Alves <palves@redhat.com>
5282
5283 Import the "unistd" gnulib module.
5284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5285 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5286 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5287 import/m4/unistd_h.m4.
5288 * gnulib/aclocal.m4: Renenerate.
5289 * gnulib/config.in: Renenerate.
5290 * gnulib/configure: Renenerate.
5291 * gnulib/import/Makefile.am: Renenerate.
5292 * gnulib/import/Makefile.in: Renenerate.
5293 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5294 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5295 * gnulib/import/m4/off_t.m4: New file.
5296 * gnulib/import/m4/ssize_t.m4: New file.
5297 * gnulib/import/m4/sys_types_h.m4: New file.
5298 * gnulib/import/m4/unistd_h.m4: New file.
5299 * gnulib/import/sys_types.in.h: New file.
5300 * gnulib/import/unistd.c: New file.
5301 * gnulib/import/unistd.in.h: New file.
5302
8c0da261
PA
53032013-07-01 Pedro Alves <palves@redhat.com>
5304
5305 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5306 defined instead of checking HAVE_UNISTD_H.
5307
3574124b
PA
53082013-07-01 Pedro Alves <palves@redhat.com>
5309
5310 Reimport gnulib from scratch.
5311 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5312 import/m4/onceonly.m4.
5313 * gnulib/aclocal.m4: Renegerate.
5314 * gnulib/config.in: Renegerate.
5315 * gnulib/configure: Renegerate.
5316 * gnulib/import/Makefile.in: Renegerate.
5317 * gnulib/import/extra/update-copyright: Renegerate.
5318 * gnulib/import/m4/onceonly.m4: Delete.
5319
702dc4fd
PA
53202013-07-01 Pedro Alves <palves@redhat.com>
5321
5322 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5323
47e1ce27
JK
53242013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5325
5326 Code cleanup.
5327 * remote.c (async_remote_interrupt_twice): Make it static.
5328 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5329
e82839d4
SDJ
53302013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5331
5332 * ia64-linux-tdep.c: Include <ctype.h>.
5333 (ia64_linux_stap_is_single_operand): New function.
5334 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5335
d6c2da54
TT
53362013-06-28 Tom Tromey <tromey@redhat.com>
5337
5338 * Makefile.in (version.c): Use version.in, not
5339 common/version.in.
5340 * common/create-version.sh: Likewise.
5341 * common/version.in: Move...
5342 * version.in: ...here.
5343
74da6f00
PA
53442013-06-28 Pedro Alves <palves@redhat.com>
5345
5346 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5347 here.
5348 * utils.h (pagination_enabled): Declare.
5349
d32dc48e
PA
53502013-06-28 Pedro Alves <palves@redhat.com>
5351
5352 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5353 Move higher up in file.
5354
0edd9e3b
TT
53552013-06-28 Tom Tromey <tromey@redhat.com>
5356
5357 * tracepoint.c (deprecated_readline_begin_hook)
5358 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5359 declare.
5360
4eb59108
PA
53612013-06-28 Pedro Alves <palves@redhat.com>
5362
5363 PR tui/14880
5364 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5365 checking if they're available.
5366 * value.c (value_available_contents_eq): Change comment.
5367 * value.h (value_available_contents_eq): Expand comment.
5368
97b17156
TT
53692013-06-27 Tom Tromey <tromey@redhat.com>
5370
5371 * target.c (find_run_target): Remove.
5372 * target.h (find_run_target): Remove.
5373
6a3bfc5c
TT
53742013-06-27 Tom Tromey <tromey@redhat.com>
5375
5376 * corelow.c (core_gdbarch): Now static.
5377
c9ef825d
TT
53782013-06-27 Tom Tromey <tromey@redhat.com>
5379
5380 * target.c (target_struct_index): Remove.
5381
e5823f1c
PA
53822013-06-27 Pedro Alves <palves@redhat.com>
5383
5384 * infrun.c: Remove comment describing the 'stepping over runtime
5385 loader dynamic symbol resolution code' mechanism; moved to
5386 gdbint.texinfo.
5387
97f8dd09
PA
53882013-06-27 Pedro Alves <palves@redhat.com>
5389
5390 * exceptions.c (catch_command_errors): Remove spurious space.
5391 * exceptions.h (catch_command_errors): Second parameter is "arg",
5392 not "command".
5393
02b1871e
YQ
53942013-06-27 Yao Qi <yao@codesourcery.com>
5395
5396 * common/create-version.sh: Update comments. Handle the case
5397 that TARGET_ALIAS is empty.
5398
bb1b1cf1
PA
53992013-06-26 Pedro Alves <palves@redhat.com>
5400
5401 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5402 comment.
5403
7b624e71
PA
54042013-06-26 Pedro Alves <palves@redhat.com>
5405
5406 * infrun.c: Update comments on stepping over runtime loader
5407 dynamic symbol resolution code.
5408
74e5a346
SDJ
54092013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5410
5411 * ax-gdb.h (union exp_element): Forward declare.
5412 * parser-defs.h: Include expression.h.
5413
a2fb2cee
MR
54142013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5415
5416 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5417
cdba14e0
DK
54182013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5419
5420 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5421
f30aa5af
DK
54222013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5423
5424 Fix trace-status to output proper start-time and stop-time.
5425 * tracepoint.c (trace_status_command): Fix type of printf arg to
5426 prevent improper type conversion.
5427 (trace_status_mi): Likewise.
5428
1aee363c
MR
54292013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5430
5431 * mips-tdep.c (mips_next_pc): Fix a typo.
5432
3356937a
MR
54332013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5434
5435 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5436
dc673c81
YQ
54372013-06-26 Pedro Alves <pedro@codesourcery.com>
5438 Yao Qi <yao@codesourcery.com>
5439
5440 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5441 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5442 * mi/mi-main.c (print_variable_or_computed): New function.
5443 (mi_cmd_trace_frame_collected): New function.
5444 * tracepoint.c (find_trace_state_variable_by_number): New.
5445 (struct traceframe_info): Move to tracepoint.h
5446 (struct collection_list): Likewise.
5447 (do_collect_symbol): Include locals and arguments in the
5448 collected variables list.
5449 (clear_collection_list): Clear wholly collected variables list
5450 and computed variables list.
5451 (append_exp): New function.
5452 (encode_actions_1): Include variables in the wholly
5453 collected variables list. Include memory ranges and
5454 full-fledged expressions in the computed expressions list.
5455 (encode_actions): Move some code to ...
5456 Return the cleanup chain.
5457 (encode_actions_rsp): ... here. New function.
5458 (get_traceframe_location, get_traceframe_info): Remove static.
5459 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5460 (struct collection_list): Moved from tracepoint.c. Add two
5461 new fields 'wholly_collected' and 'computed'.
5462 (find_trace_state_variable_by_number): Declare.
5463 (encode_actions): Adjust declaration.
5464 (encode_actions_rsp): Declare.
5465 (get_traceframe_info, get_traceframe_location): Declare.
5466
5467 * NEWS: Mention new MI command -trace-frame-collected.
5468
28a93511
YQ
54692013-06-26 Pedro Alves <pedro@codesourcery.com>
5470 Yao Qi <yao@codesourcery.com>
5471
5472 * ctf.c (ctf_traceframe_info): Push trace state variables
5473 present in the trace data into the traceframe info object.
5474 * breakpoint.c (DEF_VEC_I): Remove.
5475 * common/filestuff.c (DEF_VEC_I): Likewise.
5476 * dwarf2loc.c (DEF_VEC_I): Likewise.
5477 * mi/mi-main.c (DEF_VEC_I): Likewise.
5478 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5479 * features/traceframe-info.dtd: Add tvar element and its
5480 attributes.
5481 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5482 (build_traceframe_info): Push trace state variables present in
5483 the trace data into the traceframe info object.
5484 (traceframe_info_start_tvar): New function.
5485 (tvar_attributes): New.
5486 (traceframe_info_children): Add "tvar" element.
5487 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5488
5489 * NEWS: Mention the change in GDB and GDBserver.
5490
ddacd3c8
YQ
54912013-06-26 Pedro Alves <pedro@codesourcery.com>
5492 Yao Qi <yao@codesourcery.com>
5493
5494 * tracepoint.c (trace_dump_command): Move code to ...
5495 (get_traceframe_location): ... here. New.
5496
05796b35
YQ
54972013-06-26 Pedro Alves <pedro@codesourcery.com>
5498 Yao Qi <yao@codesourcery.com>
5499
5500 * tracepoint.c (trace_dump_command): GDB emits an error
5501 instead of a warning when a traceframe is not selected.
5502
cbfa3b61
YQ
55032013-06-26 Pedro Alves <pedro@codesourcery.com>
5504 Yao Qi <yao@codesourcery.com>
5505
5506 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5507 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5508 in collection_list.
5509 (do_clear_collection_list, init_collection_list): New.
5510 (encode_actions): Add local variables 'tracepoint_list' and
5511 'stepping_list'. Call init_collection_list and make cleanup
5512 which calls do_clear_collection_list. Don't call
5513 clear_collection_list.
5514 (_initialize_tracepoint): Delete references to
5515 'tracepoint_list' and 'stepping_list'.
5516
6e2048d3
TT
55172013-06-25 Tom Tromey <tromey@redhat.com>
5518
5519 * common/create-version.sh (date): Use "$", not "$$" in sed
5520 expression.
5521
42059f0e
KB
55222013-06-25 Kevin Buettner <kevinb@redhat.com>
5523
5524 * NEWS (New targets): Add entry for TI MSP430.
5525
a0743c90
YQ
55262013-06-25 Yao Qi <yao@codesourcery.com>
5527
5528 * remote.c (remote_start_remote): Move code to upload tsv
5529 earlier.
5530
9d6e6e84
HZ
55312013-06-25 Yao Qi <yao@codesourcery.com>
5532 Hui Zhu <hui@codesourcery.com>
5533 Pedro Alves <palves@redhat.com>
5534
5535 PR breakpoints/15075
5536 PR breakpoints/15434
5537 * breakpoint.c (bpstat_stop_status): Call
5538 b->ops->after_condition_true.
5539 (update_dprintf_command_list): Don't append "continue" command
5540 to the command list of dprintf breakpoint.
5541 (base_breakpoint_after_condition_true): New function.
5542 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5543 (dprintf_after_condition_true): New function.
5544 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5545 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5546
586cf749
KB
55472013-06-24 Kevin Buettner <kevinb@redhat.com>
5548
5549 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5550 (ALLDEPFILES): Add msp430-tdep.c.
5551 * configure.tgt (msp430*-*-elf): New target.
5552 * msp430-tdep.c: New file.
5553
1bbce132
MR
55542013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5555
5556 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5557 microMIPS synthetic symbols.
5558
3e5d3a5a
MR
55592013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5560
5561 * objfiles.h (pc_in_section): New prototype.
5562 (in_plt_section): Remove name argument, replace prototype with
5563 static inline function.
5564 * mips-tdep.h: Include "objfiles.h".
5565 (in_mips_stubs_section): New function.
5566 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5567 in_solib_call_trampoline member.
5568 (hppa_in_solib_call_trampoline): Remove name argument.
5569 * objfiles.c (pc_in_section): New function.
5570 (in_plt_section): Remove function.
5571 * mips-linux-tdep.c: Include "objfiles.h".
5572 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5573 name argument. Return 1 rather than the low 16-bit halfword of
5574 any instruction examined.
5575 (mips_linux_in_dynsym_resolve_code): Update
5576 mips_linux_in_dynsym_stub call accordingly.
5577 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5578 rather than an equivalent hand-coded sequence.
5579 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5580 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5581 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5582 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5583 in_opd_section.
5584 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5585 on call to tdep->in_solib_call_trampoline.
5586 (hppa_in_solib_call_trampoline): Remove name argument, update
5587 according to in_plt_section change.
5588 (hppa_skip_trampoline_code): Update according to in_plt_section
5589 change.
5590 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5591 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5592 Likewise.
5593 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5594 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5595 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5596 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5597 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5598 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5599 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5600 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5601 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5602 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5603 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5604 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5605 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5606
b9b26a16
JB
56072013-06-24 Joel Brobecker <brobecker@adacore.com>
5608
5609 * common/create-version.sh: Fix expansion of $host_alias
5610 and $target_alias in generation of HOST_NAME and TARGET_NAME
5611 (resp.).
5612
01208463
TT
56132013-06-24 Tom Tromey <tromey@redhat.com>
5614
5615 * common/create-version.sh: New file.
5616 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5617 create-version.sh.
5618 (HFILES_NO_SRCDIR): Use common/version.h.
5619 * version.in: Move to ...
5620 * common/version.in: ... here. Replace date with "DATE".
5621 * version.h: Move to ...
5622 * common/version.h: ... here.
5623
bb6b9a5e
JB
56242013-06-21 Joel Brobecker <brobecker@adacore.com>
5625
5626 * gdb/gnulib/Makefile.in: Update date in copyright header.
5627 * gdb/gnulib/configure.ac: Ditto.
5628 * gdb/gnulib/update-gnulib.sh: Ditto.
5629
c3b18ee7
JB
56302013-06-21 Joel Brobecker <brobecker@adacore.com>
5631
5632 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5633 "gdb/gnulib/import".
5634
85d3b769
WN
56352013-06-21 Will Newton <will.newton@linaro.org>
5636
5637 * doublest.c (ldfrexp): Remove function.
5638 (convert_doublest_to_floatformat): Call frexpl instead of
5639 ldfrexp.
5640
88b48903
WN
56412013-06-21 Will Newton <will.newton@linaro.org>
5642
5643 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5644 * gnulib/aclocal.m4: Regenerate.
5645 * gnulib/config.in: Regenerate.
5646 * gnulib/configure: Regenerate.
5647 * gnulib/import/Makefile.am: Update.
5648 * gnulib/import/Makefile.in: Update.
5649 * gnulib/import/m4/gnulib-cache.m4: Update.
5650 * gnulib/import/m4/gnulib-comp.m4: Update.
5651 * gnulib/import/float+.h: Import.
5652 * gnulib/import/float.c: Import.
5653 * gnulib/import/float.in.h: Import.
5654 * gnulib/import/fpucw.h: Import.
5655 * gnulib/import/frexp.c: Import.
5656 * gnulib/import/frexpl.c: Import.
5657 * gnulib/import/isnan.c: Import.
5658 * gnulib/import/isnand-nolibm.h: Import.
5659 * gnulib/import/isnand.c: Import.
5660 * gnulib/import/isnanl-nolibm.h: Import.
5661 * gnulib/import/isnanl.c: Import.
5662 * gnulib/import/itold.c: Import.
5663 * gnulib/import/m4/exponentd.m4: Import.
5664 * gnulib/import/m4/exponentl.m4: Import.
5665 * gnulib/import/m4/float_h.m4: Import.
5666 * gnulib/import/m4/fpieee.m4: Import.
5667 * gnulib/import/m4/frexp.m4: Import.
5668 * gnulib/import/m4/frexpl.m4: Import.
5669 * gnulib/import/m4/isnand.m4: Import.
5670 * gnulib/import/m4/isnanl.m4: Import.
5671 * gnulib/import/m4/math_h.m4: Import.
5672 * gnulib/import/math.c: Import.
5673 * gnulib/import/math.in.h: Import.
5674
4353c9e6
JK
56752013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5676
5677 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5678 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5679 signature_INTEL_edx comparisons.
5680
e3e06db3
DE
56812013-06-20 Doug Evans <dje@google.com>
5682
6ac97d4c
DE
5683 symtab/15652
5684 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5685 All callers updated.
5686 (open_dwp_file): If we can't find the dwp file, search the basename
5687 in debug-file-directory.
5688
93417882
DE
5689 * dwarf2read.c (struct dwp_file): Fix comment.
5690 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5691
e3e06db3
DE
5692 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5693 better.
5694
0878d0fa
YQ
56952013-06-20 Yao Qi <yao@codesourcery.com>
5696
5697 * breakpoint.c (create_breakpoint): Fix code indentation.
5698
023fa29b
YQ
56992013-06-20 Yao Qi <yao@codesourcery.com>
5700
5701 * breakpoint.c (create_breakpoints_sal_default): Remove
5702 parameter 'lsal'. Update declaration.
5703 (bkpt_create_breakpoints_sal): Caller update.
5704 (tracepoint_create_breakpoints_sal): Likewise.
5705
c898adb7
YQ
57062013-06-20 Pedro Alves <pedro@codesourcery.com>
5707 Yao Qi <yao@codesourcery.com>
5708
5709 * NEWS: Mention the new option '--skip-unavailable' of command
5710 -data-list-register-values.
5711 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5712 --skip-unavailable option. Adjust to use output_register.
5713 (output_register): Add new 'skip_unavailable' parameter.
5714 Handle it.
5715
4d157a3d
MF
57162013-06-19 Mike Frysinger <vapier@gentoo.org>
5717
5718 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5719 common/i386-gcc-cpuid.h.
5720 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5721 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5722 Copy the latest version from upstream gcc.
5723 * common/linux-btrace.c: Include i386-cpuid.h.
5724 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5725 call to i386_cpuid.
5726 (cpu_supports_btrace): Likewise.
5727 * go32-nat.c: Include i386-cpuid.h.
5728 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5729
1ce4db08
DE
57302013-06-19 Doug Evans <dje@google.com>
5731
5732 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5733 (get_section_index): Ditto.
5734
0e4777df
TT
57352013-06-19 Tom Tromey <tromey@redhat.com>
5736
5737 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5738 "dprintf" help.
5739
3190f0c6
DE
57402013-06-18 Doug Evans <dje@google.com>
5741
5742 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5743 before using it.
5744 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5745 Move test of cu_index closer to use. Print complaint if cu_index
5746 is bad.
5747
8b89a20a
JB
57482013-06-18 Joel Brobecker <brobecker@adacore.com>
5749
5750 * machoread.c (oso_vector): Delete this global.
5751 (macho_register_oso): Add new parameter "oso_vector_ptr".
5752 Use it instead of the "oso_vector" global.
5753 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5754 (macho_symfile_read): Use a local oso_vector, to be free'ed
5755 at the end of this function, in place of the old "oso_vector"
5756 global. Update various function calls accordingly. Use one
5757 single cleanup chain for the entire function.
5758
59b0c7c1
JB
57592013-06-18 Joel Brobecker <brobecker@adacore.com>
5760
937c708c 5761 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5762 DWARF2_PER_OBJFILE by uses of DATA instead.
5763
427cd150
TT
57642013-06-18 Tom Tromey <tromey@redhat.com>
5765
5766 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5767 argument.
5768 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5769 Special case signals other than GDB_SIGNAL_TRAP.
5770 (explains_signal_watchpoint): New function.
5771 (base_breakpoint_explains_signal): Add 'sig' argument.
5772 (initialize_breakpoint_ops): Set 'explains_signal' method for
5773 watchpoints.
5774 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5775 signal argument.
5776 (bpstat_explains_signal): Likewise.
5777 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5778
2d57700b
TT
57792013-06-18 Tom Tromey <tromey@redhat.com>
5780
5781 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5782
ac475191
TT
57832013-06-18 Tom Tromey <tromey@redhat.com>
5784
5785 * python/python.c (finish_python_initialization): Decref
5786 'pythondir' on failure path as well.
5787
5bd1ef56
TT
57882013-06-18 Tom Tromey <tromey@redhat.com>
5789
5790 PR symtab/15391:
5791 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5792 after taking bits_to_skip into account. Sign extend byte_offset.
5793 * utils.h (gdb_sign_extend): Declare.
5794 * utils.c (gdb_sign_extend): New function.
5795
92fac807
JK
57962013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5797
5798 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5799
2d503272
PM
58002013-06-17 Pierre Muller <muller@sourceware.org>
5801
5802 * corelow.c (core_open): Print GDB signal name instead of target
5803 signal number.
5804
6916fd98
MF
58052013-06-17 Mike Frysinger <vapier@gentoo.org>
5806
5807 * .gitignore: Add /gcore.
5808
9c02c129
DE
58092013-06-13 Doug Evans <dje@google.com>
5810
5811 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5812 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5813
d0548fa2
PM
58142013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5815
5816 * stack.c (backtrace_command_1): Fix indentation.
5817
22128028
JB
58182013-06-11 Joel Brobecker <brobecker@adacore.com>
5819
5820 * window-nat.c (thread_rec): Add missing empty line after
5821 local variable declaration.
5822
2ed3e009
JB
58232013-06-11 Joel Brobecker <brobecker@adacore.com>
5824
5825 * windows-nat.c (thread_rec): Revert format used to print
5826 error code returned by SuspendThread from %d back to %u.
5827
0c3d84be
JB
58282013-06-11 Joel Brobecker <brobecker@adacore.com>
5829
5830 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5831 ID in debug trace.
5832 (get_windows_debug_event): Likewise, for all debug traces.
5833
80e88e1a
JB
58342013-06-11 Joel Brobecker <brobecker@adacore.com>
5835
5836 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5837 warning message.
5838
1edebdbf
YQ
58392013-06-08 Pedro Alves <pedro@codesourcery.com>
5840 Yao Qi <yao@codesourcery.com>
5841
5842 * mi/mi-main.c (get_register): Remove declaration.
5843 (output_register): Declare.
5844 (mi_cmd_data_list_register_values): Remove local variable
5845 'tuple_cleanup'. Move some code into output_register.
5846 (get_register): Renamed to ...
5847 (output_register): ... this. Output the register's
5848 "number" ui_out tuple here.
5849
47d48711
PA
58502013-06-07 Pedro Alves <palves@redhat.com>
5851
5852 * darwin-nat.c: Fix formating in copyright header.
5853 * darwin-nat.h: Likewise.
5854 * gnu-nat.c: Likewise.
5855 * machoread.c: Likewise.
5856
3aee8918
PA
58572013-06-07 Pedro Alves <palves@redhat.com>
5858
5f2b57b5 5859 PR server/14823
3aee8918
PA
5860 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5861 static. Output a global target description pointer.
5862 (init_registers_${name}): Adjust to initialize a
5863 target description structure.
5864
fe8400b4
WN
58652013-06-07 Will Newton <will.newton@linaro.org>
5866
5867 * printcmd.c (build_address_symbolic): Call
5868 gdbarch_addr_bits_remove for text minimal symbols.
5869
20df6206
WN
58702013-06-07 Will Newton <will.newton@linaro.org>
5871
5872 * MAINTAINERS: Add myself to Write After Approval.
5873
aef525cb
YQ
58742013-06-07 Yao Qi <yao@codesourcery.com>
5875
5876 * tracepoint.c (start_tracing): Move code to ...
5877 (trace_reset_local_state): ... here. New.
5878 (disconnect_tracing): Don't call set_current_traceframe,
5879 set_tracepoint_num, and set_traceframe_context. Call
5880 trace_reset_local_state instead.
5881 (tfile_close): Call trace_reset_local_state.
5882 * ctf.c (ctf_close): Likewise.
5883 * remote.c (remote_close): Likewise.
5884 * tracepoint.h (trace_reset_local_state): Declare.
5885
d2415c6c
DE
58862013-06-06 Doug Evans <dje@google.com>
5887
5888 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5889 and fix header docs.
5890
69fc87c2
DE
58912013-06-05 Doug Evans <dje@google.com>
5892 Keith Seitz <keiths@redhat.com>
5893
5894 PR 15519
5895 * cp-namespace.c (find_symbol_in_baseclass): Call
5896 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5897 Check result of call to lookup_symbol_static.
5898 Call lookup_static_symbol_aux unconditionally.
5899 Call check_typedef on base types before accessing them.
5900 (cp_lookup_nested_symbol): Fix comment.
5901
a513d1e8
LM
59022013-06-05 Luis Machado <lgustavo@codesourcery.com>
5903
5904 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5905 minimal symbols pointing to function descriptors.
5906
351a6f02
TT
59072013-06-05 Tom Tromey <tromey@redhat.com>
5908
5909 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5910
5e1b953b 59112013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5912 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5913
5914 * remote.c (remote_wait_as): Restore signal handler before returning
5915 when GDB gets a notification.
5916
f9e14852
GB
59172013-06-04 Gary Benson <gbenson@redhat.com>
5918
8445cbf1 5919 PR 2328
f9e14852
GB
5920 * breakpoint.h (handle_solib_event): Moved function declaration
5921 to solib.h.
5922 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5923 (bpstat_stop_status): Pass new argument to handle_solib_event.
5924 * solib.h (update_solib_breakpoints): New function declaration.
5925 (handle_solib_event): Moved function declaration from
5926 breakpoint.h.
5927 * solib.c (update_solib_breakpoints): New function.
5928 (handle_solib_event): Moved function from breakpoint.c.
5929 Updated to call solib_ops->handle_event if not NULL.
5930 * solist.h (target_so_ops): New fields "update_breakpoints" and
5931 "handle_event".
5932 * infrun.c (set_stop_on_solib_events): New function.
5933 (_initialize_infrun): Use the above for "set
5934 stop-on-solib-events".
5935 (handle_inferior_event): Pass new argument to handle_solib_event.
5936 * solib-svr4.c (probe.h): New include.
5937 (svr4_free_library_list): New forward declaration.
5938 (probe_action): New enum.
5939 (probe_info): New struct.
5940 (probe_info): New static variable.
5941 (NUM_PROBES): New definition.
5942 (svr4_info): New fields "using_xfer", "probes_table" and
5943 "solib_list".
5944 (free_probes_table): New function.
5945 (free_solib_list): New function.
5946 (svr4_pspace_data_cleanup): Free probes table and solib list.
5947 (svr4_copy_library_list): New function.
5948 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5949 (svr4_read_so_list): New parameter "prev_lm".
5950 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5951 (svr4_current_sos): New function.
5952 (probe_and_action): New struct.
5953 (hash_probe_and_action): New function.
5954 (equal_probe_and_action): Likewise.
5955 (register_solib_event_probe): Likewise.
5956 (solib_event_probe_at): Likewise.
5957 (solib_event_probe_action): Likewise.
5958 (solist_update_full): Likewise.
5959 (solist_update_incremental): Likewise.
5960 (disable_probes_interface_cleanup): Likewise.
5961 (svr4_handle_solib_event): Likewise.
5962 (svr4_update_solib_event_breakpoint): Likewise.
5963 (svr4_update_solib_event_breakpoints): Likewise.
5964 (svr4_create_solib_event_breakpoints): Likewise.
5965 (enable_break): Free probes table before creating breakpoints.
5966 Use svr4_create_solib_event_breakpoints to create breakpoints.
5967 (svr4_solib_create_inferior_hook): Free the solib list.
5968 (_initialize_svr4_solib): Initialise
5969 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5970
ced63ec0
GB
59712013-06-04 Gary Benson <gbenson@redhat.com>
5972
5973 * target.h (target_ops): New field
5974 "to_augmented_libraries_svr4_read".
5975 (target_augmented_libraries_svr4_read): New macro.
5976 * target.c (update_current_target): Handle
5977 to_augmented_libraries_svr4_read.
5978 * remote.c (remote_state): New field
5979 "augmented_libraries_svr4_read".
5980 (remote_augmented_libraries_svr4_read_feature): New function.
5981 (remote_protocol_features): Add entry for
5982 "augmented-libraries-svr4-read".
5983 (remote_augmented_libraries_svr4_read): New function.
5984 (init_remote_ops): Initialize
5985 remote_ops.to_augmented_libraries_svr4_read.
5986
7f91dbec
GB
59872013-06-04 Gary Benson <gbenson@redhat.com>
5988
5989 * NEWS: Update.
5990
607ece04
GB
59912013-06-04 Gary Benson <gbenson@redhat.com>
5992
5993 * objfiles.h (inhibit_section_map_updates): New function
5994 declaration.
5995 (resume_section_map_updates): Likewise.
5996 (resume_section_map_updates_cleanup): Likewise.
5997 * objfiles.c (objfile_pspace_info): Removed field
5998 "objfiles_changed_p". New fields "new_objfiles_available",
5999 "section_map_dirty" and "inhibit_updates".
6000 (allocate_objfile): Set new_objfiles_available.
6001 (free_objfile): Set section_map_dirty.
6002 (objfile_relocate1): Likewise.
6003 (in_plt_section): Likewise.
6004 (find_pc_section): Update the conditions under which the
6005 section map will be updated.
6006 (inhibit_section_map_updates): New function.
6007 (resume_section_map_updates): Likewise.
6008 (resume_section_map_updates_cleanup): Likewise.
6009
9ee6a5ac
GB
60102013-06-04 Gary Benson <gbenson@redhat.com>
6011
6012 * probe.h (get_probe_argument_count): New declaration.
6013 (evaluate_probe_argument): Likewise.
6014 * probe.c (get_probe_argument_count): New function.
6015 (evaluate_probe_argument): Likewise.
6016 (probe_safe_evaluate_at_pc): Use the above new functions.
6017
845d4708
AM
60182013-06-04 Alan Modra <amodra@gmail.com>
6019
6020 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6021 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6022 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6023 target mem reads on optional insns.
6024 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6025 ppc_insns_match_pattern calls.
6026 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6027 Add match for power7 thread safety insns, and new order of
6028 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6029 invocation in comment, and update rest of comment.
6030 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6031 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6032 (ppc64_standard_linkage2_target): Update insn offsets.
6033 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6034 stubs first. Update calls.
6035
404e278f
YQ
60362013-06-04 Yao Qi <yao@codesourcery.com>
6037
6038 * solib.c (solib_find): Don't need dir separator if path has
6039 drive spec.
6040
f6aea118
JB
60412013-06-03 Joel Brobecker <brobecker@adacore.com>
6042
6043 Revert (indirectly causes a SIGSEGV):
6044 * machoread.c (macho_symfile_read): Assign first cleanup to
6045 'back_to'.
6046
87967e27
YQ
60472013-06-03 Yao Qi <yao@codesourcery.com>
6048
6049 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6050 mi-parse.c. Make them static.
6051 (mi_all_values): Likewise.
6052 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6053 mi_parse_print_values. Make it external.
6054 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6055 Remove the declarations.
6056 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6057 * mi/mi-parse.h (mi_parse_print_values): Declare.
6058 * mi/mi-cmd-stack.c: Include mi-parse.h.
6059 (parse_print_values): Remove
6060 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6061 of parse_print_values.
6062 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6063
3ca73e0c
YQ
60642013-05-31 Pedro Alves <pedro@codesourcery.com>
6065 Yao Qi <yao@codesourcery.com>
6066
6067 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6068 (encode_actions): Move code to ...
6069 (all_tracepoint_actions_and_cleanup): ... here. New.
6070 (trace_dump_command): Likewise.
6071
4e993a19
TT
60722013-05-30 Tom Tromey <tromey@redhat.com>
6073
6074 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6075
e3b76b4f
TT
60762013-05-30 Tom Tromey <tromey@redhat.com>
6077
6078 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6079 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6080 'old_chain' argument. Add 'parser_result' argument.
6081 (gdb_xml_create_parser_and_cleanup): Remove old version.
6082 (gdb_xml_parse_quick): Update.
6083 (xml_process_xincludes): Update.
6084 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6085 declare.
6086
db26349c
TT
60872013-05-30 Tom Tromey <tromey@redhat.com>
6088
6089 * probe.c (collect_probes): Check arguments for NULL before
6090 calling compile_rx_or_error.
6091 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6092 Remove NULL return.
6093
77f9e713
TT
60942013-05-30 Tom Tromey <tromey@redhat.com>
6095
6096 * infrun.c (adjust_pc_after_break): Introduce an outer null
6097 cleanup.
6098
45475de7
TT
60992013-05-30 Tom Tromey <tromey@redhat.com>
6100
6101 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6102
ac5007fd
TT
61032013-05-30 Tom Tromey <tromey@redhat.com>
6104
6105 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6106 for 'old_chain'. Do not check 'head' before processing
6107 cleanups.
6108
cd82eddc
TT
61092013-05-30 Tom Tromey <tromey@redhat.com>
6110
6111 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6112 "cleanup_tuple".
6113
57cee33a
TT
61142013-05-30 Tom Tromey <tromey@redhat.com>
6115
6116 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6117 inner scope. Unconditionally call do_cleanups.
6118
795d915c
TT
61192013-05-30 Tom Tromey <tromey@redhat.com>
6120
6121 * source.c (find_and_open_source): Call do_cleanups.
6122
1fc3cf4a
TT
61232013-05-30 Tom Tromey <tromey@redhat.com>
6124
6125 * linux-thread-db.c (thread_db_load_search): Unconditionally
6126 call do_cleanups.
6127
e35ac9bf
TT
61282013-05-30 Tom Tromey <tromey@redhat.com>
6129
6130 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6131 for 'cleanup'; instead use a later one.
6132
f3300387
TT
61332013-05-30 Tom Tromey <tromey@redhat.com>
6134
6135 * python/py-breakpoint.c (bppy_get_commands): Use
6136 explicit, unconditional return.
6137 * python/py-frame.c (frapy_read_var): Likewise.
6138 * python/python.c (gdbpy_decode_line): Likewise.
6139
c27e16e3
TT
61402013-05-30 Tom Tromey <tromey@redhat.com>
6141
6142 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6143 do_cleanups on all return paths.
6144
5ae85e44
TT
61452013-05-30 Tom Tromey <tromey@redhat.com>
6146
6147 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6148
73b8d9da
TT
61492013-05-30 Tom Tromey <tromey@redhat.com>
6150
6151 * stabsread.c (read_struct_type): Call do_cleanups along
6152 all return paths.
6153
7d266584
MR
61542013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6155
6156 * mips-linux-tdep.c: Adjust formatting throughout.
6157
0f900f54
TT
61582013-05-30 Tom Tromey <tromey@redhat.com>
6159
6160 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6161 along all return paths.
6162
a991ac28
TT
61632013-05-30 Tom Tromey <tromey@redhat.com>
6164
6165 * symfile.c (find_separate_debug_file): Call do_cleanups
6166 along all return paths.
6167
1abaf042
TT
61682013-05-30 Tom Tromey <tromey@redhat.com>
6169
6170 * symtab.c (search_symbols): Introduce a null cleanup for
6171 'retval_chain'.
6172
edefe1da
TT
61732013-05-30 Tom Tromey <tromey@redhat.com>
6174
6175 * python/py-value.c (valpy_binop): Call do_cleanups before
6176 exiting loop.
6177
54f72dcc
TT
61782013-05-30 Tom Tromey <tromey@redhat.com>
6179
6180 * python/py-prettyprint.c (print_children): Remove extra
6181 do_cleanups call.
6182
af1c6971
TT
61832013-05-30 Tom Tromey <tromey@redhat.com>
6184
6185 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6186 all return paths.
6187
b862ce75
TT
61882013-05-30 Tom Tromey <tromey@redhat.com>
6189
6190 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6191 along all return paths.
6192
e12fefc8
TT
61932013-05-30 Tom Tromey <tromey@redhat.com>
6194
6195 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6196 call do_cleanups.
6197
4867f990
TT
61982013-05-30 Tom Tromey <tromey@redhat.com>
6199
6200 * varobj.c (c_value_of_root): Call do_cleanups along all
6201 return paths.
6202
4fd2d6af
TT
62032013-05-30 Tom Tromey <tromey@redhat.com>
6204
6205 * tracepoint.c (trace_dump_command): Unconditionally call
6206 do_cleanups.
6207
752eb8b4
TT
62082013-05-30 Tom Tromey <tromey@redhat.com>
6209
6210 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6211 do_cleanups earlier.
6212
e42d0aa5
TT
62132013-05-30 Tom Tromey <tromey@redhat.com>
6214
6215 * machoread.c (macho_symfile_read): Assign first cleanup to
6216 'back_to'.
6217
4bbc010a
TT
62182013-05-30 Tom Tromey <tromey@redhat.com>
6219
6220 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6221
b9635925
TT
62222013-05-30 Tom Tromey <tromey@redhat.com>
6223
6224 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6225
25f43500
TT
62262013-05-30 Tom Tromey <tromey@redhat.com>
6227
6228 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6229 call discard_cleanups.
6230 (inf_ptrace_attach): Likewise.
6231
d6a2e54a
TT
62322013-05-30 Tom Tromey <tromey@redhat.com>
6233
6234 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6235 return paths.
6236 (mips_initialize): Likewise.
6237 (common_open): Call do_cleanups.
6238
48be7c1b
TT
62392013-05-30 Tom Tromey <tromey@redhat.com>
6240
6241 * utils.c (internal_vproblem): Call do_cleanups.
6242
e61727ab
TT
62432013-05-30 Tom Tromey <tromey@redhat.com>
6244
6245 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6246
b81b921f
TT
62472013-05-30 Tom Tromey <tromey@redhat.com>
6248
6249 * cli/cli-script.c (setup_user_args): Don't return after error.
6250
fe48dfb1
TT
62512013-05-30 Tom Tromey <tromey@redhat.com>
6252
6253 * somread.c (som_symtab_read): Call do_cleanups.
6254
27833de7
TT
62552013-05-30 Tom Tromey <tromey@redhat.com>
6256
6257 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6258
5b3fca71
TT
62592013-05-30 Tom Tromey <tromey@redhat.com>
6260
6261 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6262 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6263 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6264 * source.c (show_substitute_path_command): Call do_cleanups.
6265 (unset_substitute_path_command, set_substitute_path_command):
6266 Likewise.
6267 * symfile.c (load_command): Call do_cleanups.
6268
af83e3f8
TT
62692013-05-30 Tom Tromey <tromey@redhat.com>
6270
6271 * contrib/cleanup_check.py: New file.
6272 * contrib/gcc-with-excheck: Add option parsing.
6273
564eac42
JB
62742013-05-30 Joel Brobecker <brobecker@adacore.com>
6275
6276 * windows-nat.c (windows_delete_thread): Add missing space
6277 in cast expression.
6278
47902076
HAQ
62792013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6280
6281 * inferior.c (top level): Include tilde.h.
6282 (add_inferior_command): Call tilde_expand on the value of 'exec'
6283 argument.
6284
23da373a
YQ
62852013-05-30 Pedro Alves <pedro@codesourcery.com>
6286 Yao Qi <yao@codesourcery.com>
6287
6288 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6289 Caller update.
6290 (encode_actions): Likewise.
6291 * remote.c (remote_download_tracepoint): Caller update.
6292 * tracepoint.h (encode_actions): Update declaration.
6293
a6e6f791
PA
62942013-05-30 Pedro Alves <palves@redhat.com>
6295
6296 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6297 pointer.
6298
36d25514
YQ
62992013-05-30 Yao Qi <yao@codesourcery.com>
6300
6301 * remote.c (remote_check_symbols): Remove unused parameter
6302 'objfile'.
6303 Declaration update.
6304 (remote_start_remote, remote_new_objfile): Caller update.
6305
62a813cc
YQ
63062013-05-30 Yao Qi <yao@codesourcery.com>
6307
6308 * mi/mi-cmds.c (mi_cmds): Define MI command
6309 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6310 DEF_MI_CMD_CLI.
6311
28439a30
PA
63122013-05-29 Pedro Alves <palves@redhat.com>
6313
6314 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6315 (remote_insert_watchpoint, remote_remove_watchpoint)
6316 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6317 (remote_verify_memory, compare_sections_command)
6318 (remote_search_memory): Set the general process/thread on the
6319 remote side.
6320
6ac1c082
PA
63212013-05-29 Pedro Alves <palves@redhat.com>
6322
6323 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6324 (_initialize_aarch64_tdep): Don't call
6325 initialize_tdesc_aarch64_without_fpu.
6326 * features/Makefile (WHICH): Remove reference to
6327 aarch64-without-fpu.
6328 * features/aarch64-without-fpu.c: Delete file.
6329 * regformats/aarch64-without-fpu.dat: Delete file.
6330
a73e3634
YQ
63312013-05-28 Yao Qi <yao@codesourcery.com>
6332
6333 * tracepoint.c (stringify_collection_list): Remove parameter
6334 'string'.
6335 (encode_actions): Caller update. Remove local variables.
6336
c0ea94eb
YQ
63372013-05-24 Yao Qi <yao@codesourcery.com>
6338
6339 * tracepoint.c (TFILE_PID): Remove.
6340 (tfile_open): Don't add thread and inferior.
6341 (tfile_close): Don't set 'inferior_ptid'. Don't call
6342 exit_inferior_silent.
6343 (tfile_thread_alive): Remove.
6344 (init_tfile_ops): Don't set field 'to_thread_alive' of
6345 tfile_ops.
6346
20d7f211
DE
63472013-05-23 Doug Evans <dje@google.com>
6348
6349 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6350
8658d16d
PA
63512013-05-23 Pedro Alves <palves@redhat.com>
6352
6353 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6354 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6355 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6356 Only define if HAVE_SOCKETS is defined.
6357 * configure.ac: Check for sys/socket.h.
6358 * config.in, configure: Regenerate.
6359
21aa081e
PA
63602013-05-23 Pedro Alves <palves@redhat.com>
6361
6362 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6363 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6364 printing uint32_t variables.
6365
c2d6af84
PA
63662013-05-23 Pedro Alves <palves@redhat.com>
6367
6368 * NEWS: Mention GDBserver range stepping support.
6369
c1e36e3e
PA
63702013-05-23 Yao Qi <yao@codesourcery.com>
6371 Pedro Alves <palves@redhat.com>
6372
6373 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6374 field.
6375 * infcmd.c (step_once, until_next_command): Enable range stepping.
6376 * infrun.c (displaced_step_prepare): Disable range stepping.
6377 (resume): Disable range stepping if stepping over a breakpoint or
6378 we have software watchpoints. If range stepping is enabled,
6379 assert the thread is in the stepping range.
6380 (clear_proceed_status_thread): Clear may_range_step.
6381 (handle_inferior_event): Disable range stepping as soon as we know
6382 the thread that hit the event. Re-enable it whenever we're going
6383 to step with a step range.
6384 * remote.c (struct vCont_action_support) <r>: New field.
6385 (use_range_stepping): New global.
6386 (remote_vcont_probe): Handle 'r' action.
6387 (append_resumption): Append an 'r' action if the thread may range
6388 step.
6389 (show_range_stepping): New function.
6390 (set_range_stepping): New function.
6391 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6392 'set range-stepping' and 'show range-stepping' commands.
6393 * NEWS: Mention range stepping, the new vCont;r action, and the
6394 new "set/show range-stepping" commands.
6395
d458bd84
PA
63962013-05-23 Yao Qi <yao@codesourcery.com>
6397 Pedro Alves <palves@redhat.com>
6398
6399 * remote.c (struct vCont_action_support): New struct.
6400 (struct remote_state) <support_vCont_t>: Remove field.
6401 <vCont_actions_support>: New field.
6402 (remote_vcont_probe, remote_stop_ns): Update.
6403
ce4c476a
PA
64042013-05-23 Yao Qi <yao@codesourcery.com>
6405 Pedro Alves <palves@redhat.com>
6406
6407 * gdbthread.h (pc_in_thread_step_range): New declaration.
6408 * thread.c (pc_in_thread_step_range): New function.
6409 * infrun.c (handle_inferior_event): Use it.
6410
ce70887a
JB
64112013-05-23 Joel Brobecker <brobecker@adacore.com>
6412
6413 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6414 of sprintf.
6415
55b87a52
KS
64162013-05-22 Keith Seitz <keiths@redhat.com>
6417
6418 * ada-lang.c (is_known_support_routine): Add explicit free of
6419 'func_name' from find_frame_funname.
6420 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6421 for func_name from find_frame_funname.
6422 * python/py-frame.c (frapy_name): Add explicit free of
6423 'name' from find_frame_funname.
6424 * stack.c (find_frame_funname): Add comment explaining that
6425 funcp must be freed by the caller.
6426 Return copy of symbol names instead of pointers.
6427 (print_frame): Add a cleanup for 'funname' from
6428 find_frame_funname.
6429 * stack.h (find_frame_funname): Remove "const" from
6430 'funname' parameter.
6431
5f2e6b00
TT
64322013-05-22 Tom Tromey <tromey@redhat.com>
6433
6434 PR c++/15401:
6435 * c-valprint.c (c_value_print): Use value_addr for
6436 references. Convert back to reference type with value_ref.
6437
d85c4847
EZ
64382013-05-22 Eli Zaretskii <eliz@gnu.org>
6439
6440 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6441 unloaded DLL, it will be done by handle_solib_event. See
6442 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6443 details.
6444
54eb231c
PM
64452013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6446
6447 * ui-out.c: Create typedef ui_out_level_p and define vector
6448 operations for that type.
6449 (struct ui_out): Use a vector instead of an array.
6450 (current_level): Return level from a vector.
6451 (push_level): Create a level in a vector.
6452 (pop_level): Delete a level in a vector.
6453 (ui_out_new): Create initial level zero level, and store in a
6454 vector.
6455 (ui_out_destroy): Add vector cleanup.
6456
ac90359c
PA
64572013-05-22 Pedro Alves <palves@redhat.com>
6458
6459 * python/python-internal.h (gdb_Py_DECREF): Tag with
6460 "ARI: editCase function".
6461
6dcc1893
PP
64622013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6463
6464 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6465
c8c735b9
PA
64662013-05-21 Pedro Alves <palves@redhat.com>
6467
6468 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6469 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6470 * python/py-utils.c (py_decref): Don't check for NULL before
6471 calling Py_DECREF.
6472
1915daeb
PA
64732013-05-21 Pedro Alves <palves@redhat.com>
6474
6475 * python/py-utils.c (py_decref): Remove extra braces.
6476 (gdb_pymodule_addobject): Remove extra braces.
6477 * python-internal.h (gdb_Py_DECREF): New static inline function.
6478 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6479
bd9673a4
PW
64802013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6481
6482 * breakpoints.c (detach_breakpoints): Do not
6483 detach breakpoints locations with loc_type bp_loc_other.
6484
ff6009d0
JK
64852013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6486
6487 Workaround Python 2.6.
6488 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6489 a block.
6490
3641da11
JK
64912013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6492
6493 Code cleanup: constification.
6494 * solib.c (solib_ops): Make return type and ops variable type const.
6495 (set_solib_ops): Make the new_ops parameter and ops variable const.
6496 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6497 (solib_add, solib_keep_data_in_core, clear_solib)
6498 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6499 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6500 const.
6501 * solib.h (set_solib_ops): Make the new_ops parameter const.
6502
776af39e
JB
65032013-05-21 Joel Brobecker <brobecker@adacore.com>
6504
6505 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6506 variable.
6507 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6508 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6509 (SYSTEM_GDBINIT_FILES): New variables.
6510 (all): Add stamp-system-gdbinit.
6511 (stamp-system-gdbinit): New rule.
6512 (clean-system-gdbinit, install-system-gdbinit)
6513 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6514 (install-only): Add dependency on install-system-gdbinit.
6515 (uninstall): Add dependency on uninstall-system-gdbinit.
6516 (clean): Add dependency on clean-system-gdbinit.
6517 * system-gdbinit/elinos.py: New file.
6518 * system-gdbinit/wrs-linux.py: New file.
6519
1509e573
JB
65202013-05-21 Joel Brobecker <brobecker@adacore.com>
6521
6522 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6523
c5867ab6
HZ
65242013-05-21 Hui Zhu <hui@codesourcery.com>
6525
6526 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6527 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6528 * mi/mi-cmd-break.c (ctype.h): New include.
6529 (gdb_obstack.h): New include.
6530 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6531 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6532 (mi_cmd_dprintf_insert): New.
6533 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6534 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6535
7d38e38f
TT
65362013-05-20 Tom Tromey <tromey@redhat.com>
6537
6538 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6539
97b77b39
TT
65402013-05-20 Tom Tromey <tromey@redhat.com>
6541
6542 * python/py-value.c (valpy_get_dynamic_type): Simplify
6543 dynamic_type assignment. Use Py_XINCREF.
6544
53e66479
TT
65452013-05-20 Tom Tromey <tromey@redhat.com>
6546
6547 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6548
dcf87832
TT
65492013-05-20 Tom Tromey <tromey@redhat.com>
6550
6551 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6552 (gdbpy_selected_frame): Move object-construction code
6553 out of TRY_CATCH.
6554
aa36459a
TT
65552013-05-20 Tom Tromey <tromey@redhat.com>
6556
6557 * python/py-arch.c (gdbpy_initialize_arch): Use
6558 gdb_pymodule_addobject.
6559 * python/py-block.c (gdbpy_initialize_blocks): Use
6560 gdb_pymodule_addobject.
6561 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6562 gdb_pymodule_addobject.
6563 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6564 gdb_pymodule_addobject.
6565 * python/py-event.c (gdbpy_initialize_event_generic): Use
6566 gdb_pymodule_addobject.
6567 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6568 gdb_pymodule_addobject.
6569 * python/py-evts.c (add_new_registry): Use
6570 gdb_pymodule_addobject.
6571 (gdbpy_initialize_py_events): Likewise.
6572 * python/py-finishbreakpoint.c
6573 (gdbpy_initialize_finishbreakpoints): Use
6574 gdb_pymodule_addobject.
6575 * python/py-frame.c (gdbpy_initialize_frames): Use
6576 gdb_pymodule_addobject.
6577 * python/py-function.c (gdbpy_initialize_functions): Use
6578 gdb_pymodule_addobject.
6579 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6580 gdb_pymodule_addobject.
6581 * python/py-infthread.c (gdbpy_initialize_thread): Use
6582 gdb_pymodule_addobject.
6583 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6584 gdb_pymodule_addobject.
6585 * python/py-param.c (gdbpy_initialize_parameters): Use
6586 gdb_pymodule_addobject.
6587 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6588 gdb_pymodule_addobject.
6589 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6590 gdb_pymodule_addobject.
6591 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6592 gdb_pymodule_addobject.
6593 * python/py-type.c (gdbpy_initialize_types): Use
6594 gdb_pymodule_addobject.
6595 * python/py-utils.c (gdb_pymodule_addobject): New function.
6596 * python/py-value.c (gdbpy_initialize_values): Use
6597 gdb_pymodule_addobject.
6598 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6599 * python/python.c (_initialize_python): Use
6600 gdb_pymodule_addobject.
6601
3d4a3c3e
TT
66022013-05-20 Tom Tromey <tromey@redhat.com>
6603
6604 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6605 * python/py-param.c (get_set_value, get_show_value): Use
6606 explicit decrefs.
6607 * python/python.c (start_type_printers, apply_type_printers):
6608 Use explicit decrefs.
6609
72ff8829
TT
66102013-05-20 Tom Tromey <tromey@redhat.com>
6611
6612 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6613 incref the module.
6614
02146ba5
TT
66152013-05-20 Tom Tromey <tromey@redhat.com>
6616
6617 * python/python.c (gdbpy_run_events): Decref the result
6618 of PyObject_CallObject.
6619
33ee792f
TT
66202013-05-20 Tom Tromey <tromey@redhat.com>
6621
6622 * python/py-symtab.c (set_sal): Use
6623 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6624 (symtab_and_line_to_sal_object): Update.
6625
fcb49fc8
TT
66262013-05-20 Tom Tromey <tromey@redhat.com>
6627
6628 * python/py-param.c (compute_enum_values): Decref 'item'.
6629
0646da15
TT
66302013-05-20 Tom Tromey <tromey@redhat.com>
6631
6632 * mi/mi-main.c: Include python-internal.h.
6633 (mi_cmd_list_features): Check gdb_python_initialized.
6634 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6635 (python_inferior_exit, python_new_objfile, add_thread_object)
6636 (delete_thread_object, py_free_inferior): Check
6637 gdb_python_initialized.
6638 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6639 gdb_python_initialized.
6640 * python/py-type.c (save_objfile_types): Check
6641 gdb_python_initialized.
6642 * python/python-internal.h (gdb_python_initialized): Declare.
6643 * python/python.c (ensure_python_env): Throw exception if
6644 Python not initialized.
6645 (before_prompt_hook, source_python_script_for_objfile)
6646 (start_type_printers, apply_type_printers,
6647 free_type_printers): Check gdb_python_initialized.
6648 * varobj.c (varobj_get_display_hint)
6649 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6650 (install_new_value_visualizer, varobj_set_visualizer)
6651 (value_get_print_value): Check gdb_python_initialized.
6652
999633ed
TT
66532013-05-20 Tom Tromey <tromey@redhat.com>
6654
6655 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6656 Check errors.
6657 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6658 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6659 Check errors.
6660 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6661 Check errors.
6662 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6663 Check errors.
6664 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6665 Check errors.
6666 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6667 init function to return 'int'.
6668 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6669 Return 'int'. Check errors.
6670 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6671 Check errors.
6672 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6673 Return 'int'. Check errors.
6674 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6675 Check errors.
6676 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6677 Check errors.
6678 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6679 Check errors.
6680 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6681 Check errors.
6682 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6683 Check errors.
6684 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6685 Check errors.
6686 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6687 Check errors.
6688 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6689 Check errors.
6690 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6691 Check errors.
6692 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6693 Check errors.
6694 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6695 Check errors.
6696 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6697 Check errors.
6698 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6699 Check errors.
6700 * python/python-internal.h (gdbpy_initialize_auto_load,
6701 gdbpy_initialize_values, gdbpy_initialize_frames,
6702 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6703 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6704 gdbpy_initialize_blocks, gdbpy_initialize_types,
6705 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6706 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6707 gdbpy_initialize_finishbreakpoints,
6708 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6709 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6710 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6711 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6712 gdbpy_initialize_signal_event,
6713 gdbpy_initialize_breakpoint_event,
6714 gdbpy_initialize_continue_event,
6715 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6716 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6717 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6718 * python/python.c (gdb_python_initialized): New global.
6719 (gdbpy_initialize_events): Return 'int'. Check errors.
6720 (_initialize_python): Check errors. Set
6721 gdb_python_initialized.
6722
18868860
TT
67232013-05-20 Tom Tromey <tromey@redhat.com>
6724
6725 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6726 Decref the reslut of PyObject_CallMethod.
6727
9f4ff0c2
TT
67282013-05-20 Tom Tromey <tromey@redhat.com>
6729
6730 * python/py-event.c (gdbpy_initialize_event_generic): Return
6731 early if PyType_Ready fails.
6732
0d3a2e8a
TT
67332013-05-20 Tom Tromey <tromey@redhat.com>
6734
6735 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6736 as 'default' in the switch.
6737
b86af38a
TT
67382013-05-20 Tom Tromey <tromey@redhat.com>
6739
6740 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6741 get_addr_from_python calls out of TRY_CATCH.
6742 (infpy_write_memory, infpy_search_memory): Likewise.
6743 * python/py-utils.c (get_addr_from_python): Return negative
6744 value on error. Use TRY_CATCH.
6745 * python/python-internal.h (get_addr_from_python): Use
6746 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6747
c127ec58
TT
67482013-05-20 Tom Tromey <tromey@redhat.com>
6749
6750 * python/py-event.c (evpy_emit_event): Decref the
6751 result of PyObject_CallFunctionObjArgs.
6752
ba327838
TT
67532013-05-20 Tom Tromey <tromey@redhat.com>
6754
6755 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6756 Correctly decref.
6757
d8191432
TT
67582013-05-20 Tom Tromey <tromey@redhat.com>
6759
6760 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6761
5d153bd1
TT
67622013-05-20 Tom Tromey <tromey@redhat.com>
6763
6764 * python/py-event.h (gdbpy_initialize_event_generic): Use
6765 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6766 * python/py-evts.c (add_new_registry): Use
6767 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6768 * python/python-internal.h
6769 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6770
56cc411c
TT
67712013-05-20 Tom Tromey <tromey@redhat.com>
6772
6773 * python/py-arch.c (archpy_disassemble): Update.
6774 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6775 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6776 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6777 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6778 macro.
6779 (GDB_PY_HANDLE_EXCEPTION): Update.
6780 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6781
8919e174
TT
67822013-05-20 Tom Tromey <tromey@redhat.com>
6783
6784 * python/python-internal.h (events_object_type): Remove.
6785
9b08f225
TT
67862013-05-20 Tom Tromey <tromey@redhat.com>
6787
f5aee5ee
AM
6788 * python/py-event.h (evpy_emit_event): Use
6789 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6790 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6791 New macro.
9b08f225 6792
f04010ff
TT
67932013-05-20 Tom Tromey <tromey@redhat.com>
6794
6795 * py-evtregistry.c (create_event_object): Decref
6796 eventregistry_object if PyList_New fails.
6797
3919fd96
TT
67982013-05-20 Tom Tromey <tromey@redhat.com>
6799
6800 * py-cmd.c (gdbpy_string_to_argv): Check result of
6801 PyList_New.
6802
0430e8cb
TT
68032013-05-20 Tom Tromey <tromey@redhat.com>
6804
6805 * python/python.c (before_prompt_hook): Add cleanup to
6806 decref 'hook'.
6807
764123e4
TT
68082013-05-20 Tom Tromey <tromey@redhat.com>
6809
6810 * python/py-function.c (fnpy_init): Decref result of
6811 PyObject_GetAttrString.
6812
634c58be
TT
68132013-05-20 Tom Tromey <tromey@redhat.com>
6814
6815 * python/py-threadevent.c (get_event_thread): Use
6816 CPYCHECKER_RETURNS_BORROWED_REF.
6817 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6818 New define.
6819 (pspace_to_pspace_object, objfile_to_objfile_object)
6820 (find_thread_object): Use it.
6821
62eec1a5
TT
68222013-05-20 Tom Tromey <tromey@redhat.com>
6823
6824 * python/py-arch.c (arch_object_type): Use
6825 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6826 * python/py-block.c (block_syms_iterator_object_type):
6827 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6828 * python/py-bpevent.c (breakpoint_event_object_type):
6829 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6830 * python/py-cmd.c (cmdpy_object_type): Use
6831 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6832 * python/py-continueevent.c (continue_event_object_type):
6833 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6834 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6835 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6836 * python/py-events.h (thread_event_object_type):
6837 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6838 * python/py-evtregistry.c (eventregistry_object_type): Use
6839 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6840 * python/py-exitedevent.c (exited_event_object_type):
6841 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6842 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6843 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6844 * python/py-function.c (fnpy_object_type): Use
6845 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6846 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6847 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6848 * python/py-infthread.c (thread_object_type): Use
6849 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6850 * python/py-lazy-string.c (lazy_string_object_type):
6851 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6852 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6853 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6854 * python/py-objfile.c (objfile_object_type): Use
6855 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6856 * python/py-param.c (parmpy_object_type):
6857 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6858 * python/py-progspace.c (pspace_object_type):
6859 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6860 * python/py-signalevent.c (signal_event_object_type):
6861 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6862 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6863 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6864 * python/py-type.c (type_object_type, field_object_type)
6865 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6866 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6867 define.
6868 (value_object_type, block_object_type, symbol_object_type)
6869 (event_object_type, stop_event_object_type, breakpoint_object_type)
6870 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6871
81ea8796
AT
68722013-05-20 Andreas Tobler <andreas@fgznet.ch>
6873
6874 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6875 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6876
a2ce51a0
DE
68772013-05-20 Doug Evans <dje@google.com>
6878
6879 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6880 For Fission.
6881 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6882 reading_dwo_directly.
6883 (struct signatured_type): New member dwo_unit.
6884 (struct die_reader_specs): New member comp_dir.
6885 (create_signatured_type_table_from_index): Use malloc for
6886 all_type_units instead of objfile's obstack.
6887 (create_all_type_units): Ditto.
6888 (fill_in_sig_entry_from_dwo_entry): New function.
6889 (add_type_unit): New function.
6890 (lookup_dwo_signatured_type): New function.
6891 (lookup_dwp_signatured_type): New function.
6892 (lookup_signatured_type): New arg cu. All callers updated.
6893 (init_cu_die_reader): Initialize comp_dir.
6894 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6895 Change assert of matching type signatures to call error on mismatch.
6896 (lookup_dwo_unit): Add assert.
6897 (init_tu_and_read_dwo_dies): New function.
6898 (init_cutu_and_read_dies): Call it.
6899 (build_type_unit_groups): Handle case of no type unit groups created.
6900 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6901 (lookup_dwo_cutu): Tweak complaint.
6902 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6903 (dwarf2_per_objfile_free): Free all_type_units.
6904
a25cd31f
JB
69052013-05-20 Joel Brobecker <brobecker@adacore.com>
6906
6907 * windows-nat.c (handle_unload_dll): Add missing empty line.
6908
4d804846
JB
69092013-05-20 Joel Brobecker <brobecker@adacore.com>
6910
6911 * dwarf2read.c (prototyped_function_p): New function.
6912 (read_subroutine_type): Use it.
6913
1c432e72
JB
69142013-05-20 Joel Brobecker <brobecker@adacore.com>
6915
6916 * rs6000-aix-tdep.c: De-indent some example code provided
6917 as a comment.
6918
4feebbdd
EBM
69192013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6920
6921 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6922 region is ok for a hardware watchpoint using the new ptrace interface
6923 on Power servers.
6924
7d0c9981
DE
69252013-05-17 Doug Evans <dje@google.com>
6926
6927 * NEWS: Mention new maintenance commands check-symtabs, and
6928 expand-symtabs, and renamed check-psymtabs.
6929 * psymtab.c (maintenance_check_psymtabs): Renamed from
6930 maintenance_check_symtabs. Only process already-expanded symbol
6931 tables.
6932 (_initialize_psymtab): Update.
6933 * symmisc.c (maintenance_check_symtabs): New function.
6934 (maintenance_expand_name_matcher): New function
6935 (maintenance_expand_file_matcher): New function
6936 (maintenance_expand_symtabs): New function.
6937 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6938 commands.
6939
6cbc7c3d
TT
69402013-05-17 Tom Tromey <tromey@redhat.com>
6941
6942 * python/py-inferior.c (infpy_read_memory): Don't call
6943 PyErr_SetString if PyObject_New fails.
6944 * python/py-frame.c (frame_info_to_frame_object): Don't call
6945 PyErr_SetString if PyObject_New fails.
6946
a48b32c0
L
69472013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6948
6949 * acinclude.m4: Add check for dlopen in libdl.
6950 * configure.ac: Ditto.
6951 * configure: Regenerate.
6952
3de661e6
PM
69532013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6954
6955 * frame.c (frame_stash): Convert to htab.
6956 (frame_addr_hash): New function.
6957 (frame_addr_hash_eq): New function.
6958 (frame_stash_create): Convert function to create
6959 a hash table.
6960 (frame_stash_add): Convert function to add an entry to a hash
6961 table.
6962 (frame_stash_find): Convert function to search the hash table.
6963 (frame_stash_invalidate): Convert function to empty the hash
6964 table.
6965 (get_frame_id): Only add to stash if a frame_id is created.
6966 (_initialize_frame): Call frame_stash_create.
6967
bb4168a9 69682013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6969
6970 * configure.ac: Ensure MIG is available when building for GNU Hurd
6971 hosts.
6972 * configure: Regenerate.
6973
d1be3247
JB
69742013-05-16 Joel Brobecker <brobecker@adacore.com>
6975
6976 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6977
b8fea896
JB
69782013-05-16 Joel Brobecker <brobecker@adacore.com>
6979
6980 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6981 all cleanups are done before returning from this function.
6982
af880d85
JB
69832013-05-15 Joel Brobecker <brobecker@adacore.com>
6984
6985 * utils.h: #include "exceptions.h".
6986 (enum errors): Remove partial declaration.
6987
356a5233
JB
69882013-05-15 Joel Brobecker <brobecker@adacore.com>
6989
6990 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6991 * gdbarch.h, gdbarch.c: Regenerate.
6992 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6993 handling.
6994
6995 * rs6000-aix-tdep.h: New file.
6996 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6997 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6998 "xml-utils.h".
6999 (struct field_info, struct ld_info_desc): New types.
7000 (ld_info32_desc, ld_info64_desc): New static constants.
7001 (struct ld_info): New type.
7002 (rs6000_aix_extract_ld_info): New function.
7003 (rs6000_aix_shared_library_to_xml): Likewise.
7004 (rs6000_aix_ld_info_to_xml): Likewise.
7005 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7006 (rs6000_aix_init_osabi): Add call to
7007 set_gdbarch_core_xfer_shared_libraries_aix.
7008 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7009 Remove "xml-utils.h" include.
7010 (LdInfo): Delete typedef.
7011 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7012 Delete macros.
7013 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7014 Adjust code accordingly.
7015 (rs6000_core_ldinfo): Delete, folded into
7016 rs6000_aix_core_xfer_shared_libraries_aix.
7017 (rs6000_xfer_shared_library): Delete.
7018 (rs6000_xfer_shared_libraries): Reimplement.
7019
742ce053
MM
70202013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7021
7022 * record.c (record_goto_cmdlist): New.
7023 (cmd_record_goto): Split into this ...
7024 (cmd_record_goto_begin): ... this
7025 (cmd_record_goto_end): ... and this.
7026 (_initialize_record): Change "record goto" to prefix command.
7027 Add commands for "record goto begin" and "record goto end".
7028 Add an alias for "record goto start" to "record goto begin".
7029
e93ba630
JK
70302013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7031
7032 * linespec.c (convert_linespec_to_sals): New comment for
7033 SOURCE_FILENAME assignment.
7034
5821aace
JK
70352013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7036
7037 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7038 internal_warning.
7039
a1b8c4cc
TT
70402013-05-14 Tom Tromey <tromey@redhat.com>
7041
7042 * eval.c (parse_and_eval_long): Make 'exp' const.
7043 * value.h (parse_and_eval_long): Update.
7044
23b3a2c3
TT
70452013-05-14 Tom Tromey <tromey@redhat.com>
7046
7047 * ui-file.c (gdb_fopen): Make arguments const.
7048 * ui-file.h (gdb_fopen): Make arguments const.
7049
ca623f82
TT
70502013-05-14 Tom Tromey <tromey@redhat.com>
7051
7052 * remote.c (remote_set_trace_notes): Make arguments const.
7053 * target.c (update_current_target): Update cast.
7054 * target.h (to_set_trace_notes): Make arguments const.
7055
503ebb2c
TT
70562013-05-14 Tom Tromey <tromey@redhat.com>
7057
7058 * go32-nat.c (go32_terminal_info): Make 'args' const.
7059 * inferior.h (child_terminal_info): Update.
7060 * inflow.c (child_terminal_info): Make 'args' const.
7061 * target.c (default_terminal_info): Make 'args' const.
7062 (debug_to_terminal_save_ours): Likewise.
7063 * target.h (struct target_ops) <to_terminal_info>: Make argument
7064 const.
7065
85e1311a
TT
70662013-05-13 Tom Tromey <tromey@redhat.com>
7067
7068 * gcore.c (create_gcore_bfd): Make 'filename' const.
7069 * gcore.h (create_gcore_bfd): Make 'filename' const.
7070 * record-full.c (record_full_save): Make 'recfilename' const.
7071 * target.c (target_save_record): Make 'filename' const.
7072 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7073 const.
7074 (target_save_record): Likewise.
7075
d62bfeaf
TT
70762013-05-13 Tom Tromey <tromey@redhat.com>
7077
f5aee5ee 7078 PR gdb/15338:
d62bfeaf
TT
7079 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7080 ranges section has been read.
7081
ac1ca910
TT
70822013-05-13 Tom Tromey <tromey@redhat.com>
7083
7084 PR exp/15364:
7085 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7086 STRUCTOP_PTR>: Return a not_lval value for
7087 EVAL_AVOID_SIDE_EFFECTS.
7088 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7089 for EVAL_AVOID_SIDE_EFFECTS.
7090
36d1c68c
JB
70912013-05-13 Joel Brobecker <brobecker@adacore.com>
7092
7093 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7094 floating point registers to register type before storing
7095 value.
7096 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7097 Likewise.
7098
21ff4686
TT
70992013-05-10 Joel Brobecker <brobecker@adacore.com>
7100 Tom Tromey <tromey@redhat.com>
7101
7102 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7103 New functions.
7104 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7105 Declare.
7106 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7107 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7108 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7109 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7110
d3685d60
TT
71112013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7112 Tom Tromey <tromey@redhat.com>
7113
7114 PR build/15414:
7115 * configure: Rebuild.
7116 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7117 with -Wno-format.
7118
eb9fe518
PA
71192013-05-10 Pedro Alves <palves@redhat.com>
7120
7121 * remote.c (_initialize_remote): Fix spelling of
7122 qXfer:traceframe-info:read packet in packet config command.
7123
9779ab84
PA
71242013-05-10 David Taylor <dtaylor@emc.com>
7125
7126 PR remote/15455
7127
7128 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7129 "QTro" at start of packet.
7130
060cfbef
JB
71312013-05-10 Joel Brobecker <brobecker@adacore.com>
7132
7133 * solib-aix.c (solib_aix_relocate_section_addresses):
7134 For the .bss section action, apply the same offset as
7135 the .data section.
7136
ab1c4e88
JB
71372013-05-10 Joel Brobecker <brobecker@adacore.com>
7138
7139 * solib-aix.c (solib_aix_relocate_section_addresses):
7140 Remove FIXME comment.
7141
c1357578
JB
71422013-05-10 Joel Brobecker <brobecker@adacore.com>
7143
7144 PR tdep/15420:
7145 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7146 New functions, directly copied from sparc-sol-thread.c.
7147 * sparc-sol-thread.c: Delete.
7148 * configure.ac: Remove code handling sparc-solaris-thread.c.
7149 * configure: Regenerate.
7150
1e611234
PM
71512013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7152
7153 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7154 filter logic.
7155 (backtrace_command): Add "no-filters" option parsing.
7156 (_initialize_stack): Alter help to reflect "no-filters" option.
7157 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7158 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7159 (py-frame.o): Add target
7160 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7161 filter files.
7162 * python/python.h: Add new frame filter constants, and flag enum.
7163 (apply_frame_filter): Add definition.
7164 * python/python.c (apply_frame_filter): New non-Python
7165 enabled function.
7166 * python/py-utils.c (py_xdecref): New function.
7167 (make_cleanup_py_xdecref): Ditto.
7168 * python/py-objfile.c: Declare frame_filters dictionary.
7169 (objfpy_dealloc): Add frame_filters dealloc.
7170 (objfpy_new): Initialize frame_filters attribute.
7171 (objfile_to_objfile_object): Ditto.
7172 (objfpy_get_frame_filters): New function.
7173 (objfpy_set_frame_filters): New function.
7174 * python/py-progspace.c: Declare frame_filters dictionary.
7175 (pspy_dealloc): Add frame_filters dealloc.
7176 (pspy_new): Initialize frame_filters attribute.
7177 (pspacee_to_pspace_object): Ditto.
7178 (pspy_get_frame_filters): New function.
7179 (pspy_set_frame_filters): New function.
7180 * python/py-framefilter.c: New file.
7181 * python/lib/gdb/command/frame_filters.py: New file.
7182 * python/lib/gdb/frames.py: New file.
7183 * python/lib/gdb/__init__.py: Initialize global frame_filters
7184 dictionary
7185 * python/lib/gdb/FrameDecorator.py: New file.
7186 * python/lib/gdb/FrameIterator.py: New file.
7187 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7188 * mi/mi-cmds.h: Declare.
7189 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7190 --no-frame-filter logic, and Python frame filter logic.
7191 (stack_enable_frame_filters): New function.
7192 (parse_no_frame_option): Ditto.
7193 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7194 filter logic.
7195 (mi_cmd_stack_list_locals): Ditto.
7196 (mi_cmd_stack_list_args): Ditto.
7197 (mi_cmd_stack_list_variables): Ditto.
7198 * NEWS: Add frame filter note.
7199
2cb9c859
DE
72002013-05-09 Doug Evans <dje@google.com>
7201
6bf667bb
DE
7202 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7203 All callers updated.
7204 (syms_from_objfile): Ditto. Make static.
7205 (symbol_file_add_with_addrs): Renamed from
7206 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7207 num_offsets. All callers updated.
7208 * symfile.h (syms_from_objfile): Delete.
7209
2cb9c859
DE
7210 * symfile.c (decrement_reading_symtab): Add assert.
7211 (increment_reading_symtab): Ditto.
7212
40aea477
JB
72132013-05-09 Joel Brobecker <brobecker@adacore.com>
7214
7215 * source.c (forward_search_command): Replace call to getc
7216 by call to fgetc.
7217 (reverse_search_command): Likewise.
7218
680d1742
DE
72192013-05-08 Doug Evans <dje@google.com>
7220
7221 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7222 matching test.
7223
17e760ae
JB
72242013-05-08 Joel Brobecker <brobecker@adacore.com>
7225
7226 * sol-thread.c (info_cb): Factorize the code a little.
7227
c0f5f490
JB
72282013-05-08 Joel Brobecker <brobecker@adacore.com>
7229
7230 * sol-thread.c (info_cb): Rework the output of the "maintenance
7231 info sol-threads" command a bit.
7232
5d74e061
JB
72332013-05-08 Joel Brobecker <brobecker@adacore.com>
7234
7235 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7236 Replace ti.ti_startfunc by ti.ti_pc.
7237
814a3ff7
JB
72382013-05-08 Joel Brobecker <brobecker@adacore.com>
7239
7240 * solib-aix.c (solib_aix_free_library_list): New function
7241 for the case where HAVE_LIBEXPAT is not defined.
7242
58ce7251
SDJ
72432013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7244
7245 PR breakpoints/15413:
7246 * breakpoint.c (condition_completer): Simplify the code to
7247 disconsider multiple locations of breakpoints when completing the
7248 "condition" command.
7249
be8b1ea6
PM
72502013-05-07 Pierre Muller <muller@sourceware.org>
7251
7252 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7253 instead of <sys/wait.h>.
7254
1e52bda6
PM
72552013-05-07 Pierre Muller <muller@sourceware.org>
7256
7257 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7258 trailing new line from warning message.
7259
27fd0c6b
PM
72602013-05-07 Pierre Muller <muller@sourceware.org>
7261
7262 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7263 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7264
e228ac87
JB
72652013-05-07 Joel Brobecker <brobecker@adacore.com>
7266
7267 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7268 error message (ARI fix).
7269
72702013-05-07 Joel Brobecker <brobecker@adacore.com>
7271
7272 * features/library-list-aix.dtd: Replace library-list by
7273 library-list-aix.
7274 * rs6000-nat.c: Replace library-list by library-list-aix
7275 throughout.
7276 * solib-aix.c: Likewise.
7277
72782013-05-07 Joel Brobecker <brobecker@adacore.com>
7279
7280 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7281 Renames TARGET_OBJECT_AIX_LIBRARIES.
7282 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7283 TARGET_OBJECT_LIBRARIES_AIX throughout.
7284 * solib-aix.c: Likwise.
7285
26a4dda9
YQ
72862013-05-07 Yao Qi <yao@codesourcery.com>
7287
7288 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7289 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7290
3582629f
YQ
72912013-05-07 Yao Qi <yao@codesourcery.com>
7292
7293 * solib-dsbt.c (enable_break): Declare.
7294 (dsbt_current_sos): Remove call to enable_break2.
7295 (enable_break2): Rename to enable_break. Set solib breakpoint
7296 on '_dl_debug_state'.
7297 (enable_break): Remove.
7298
aacbb8a5
LM
72992013-05-07 Luis Machado <lgustavo@codesourcery.com>
7300
7301 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7302 debug state prior to replicating existing hardware watchpoints or
7303 breakpoints.
7304
0c013353
JK
73052013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 * gcore.c (gcore_create_callback): Ignore sections with
7308 separate_debug_objfile_backlink != NULL.
7309
a1217d97
SL
73102013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7311 Andrew Jenner <andrew@codesourcery.com>
7312 Chung-Lin Tang <cltang@codesourcery.com>
7313 Julian Brown <julian@codesourcery.com>
7314
7315 Based on the nios2-elf port from Altera Corporation.
7316
7317 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7318 nios2-linux-tdep.o.
7319 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7320 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7321 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7322 * nios2-tdep.h: New.
7323 * nios2-tdep.c: New.
7324 * nios2-linux-tdep.c: New.
7325 * features/Makefile (WHICH): Add nios2-linux.
7326 (nios2-linux-expedite): Set.
7327 * features/nios2-cpu.xml: New.
7328 * features/nios2.xml: New.
7329 * features/nios2-linux.xml: New.
7330 * features/nios2.c: New (autogenerated).
7331 * features/nios2-linux.c: New (autogenerated).
7332 * regformats/nios2-linux.dat: New (autogenerated).
7333 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7334 and commands.
7335
0892cb63
DE
73362013-05-06 Doug Evans <dje@google.com>
7337
3b7bacac
DE
7338 * symfile.c: Whitespace cleanup.
7339
0892cb63
DE
7340 * solist.h (struct target_so_ops): New member clear_so.
7341 * solib-svr4.c (svr4_clear_so): New function.
7342 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7343 * solib.c (clear_so): Renamed from free_so_symbols.
7344 All callers updated. Call target clear_so if it exists.
7345
40501e00
TT
73462013-05-06 Tom Tromey <tromey@redhat.com>
7347
7348 * ada-lang.c (ada_value_primitive_packed_val): Don't
7349 call value_incref.
7350 * value.c (set_value_parent): Incref the new parent and decref
7351 the old parent.
7352 (value_copy, value_primitive_field): Use set_value_parent.
7353
b6807d98
TT
73542013-05-06 Tom Tromey <tromey@redhat.com>
7355
7356 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7357 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7358 if needed.
7359 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7360 * dwarf2read.c (write_constant_as_bytes)
7361 (dwarf2_fetch_constant_bytes): New functions.
7362
3aef2284
TT
73632013-05-06 Tom Tromey <tromey@redhat.com>
7364
7365 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7366 parameters.
7367 (dwarf2_const_value_attr): Update.
7368
66f65e2b
TT
73692013-05-06 Tom Tromey <tromey@redhat.com>
7370
7371 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7372 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7373 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7374 Remove declaration.
7375
7919a973
TT
73762013-05-06 Tom Tromey <tromey@redhat.com>
7377
7378 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7379 objfile's obstack.
7380
a7bfba49
DE
73812013-05-06 Doug Evans <dje@google.com>
7382
3189cb12
DE
7383 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7384 * stabsread.h (process_one_symbol): Update declaration.
7385 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7386 * elfread.c (elf_symfile_relocate_probe): Ditto.
7387 * psymtab.c (relocate_psymtabs): Ditto.
7388 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7389 (objfile_relocate): Ditto.
7390 * objfiles.h (objfile_relocate): Update declaration.
7391 * symfile.c (relative_addr_info_to_section_offsets): Constify
7392 addrs parameter.
7393 (default_symfile_offsets): Ditto.
7394 (syms_from_objfile_1): Constify offsets parameter.
7395 (syms_from_objfile): Ditto.
7396 (symbol_file_add_with_addrs_or_offsets): Ditto.
7397 (symfile_map_offsets_to_segments): Constify data parameter.
7398 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7399 delta parameters of member relocate.
7400 (struct sym_probe_fns): Constify new_offsets,
7401 delta parameters of member sym_relocate_probe.
7402 (struct sym_fns): Constify section_addr_info parameter of member
7403 sym_offsets.
7404 (relative_addr_info_to_section_offsets): Update declaration.
7405 (default_symfile_offsets): Ditto.
7406 (syms_from_objfile): Ditto.
7407 (symfile_map_offsets_to_segments): Ditto.
7408
a7bfba49
DE
7409 * symfile.c (syms_from_objfile_1): Use correct section count when
7410 objfile->sf == NULL.
7411
5f8e0b8f
MF
74122013-05-06 Mike Frysinger <vapier@gentoo.org>
7413
7414 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7415
ea52d893
DE
74162013-05-06 Doug Evans <dje@google.com>
7417
7418 * psympriv.h (struct partial_symtab): Augment comment for member
7419 section_offsets.
7420
4d1eb6b4
JB
74212013-05-06 Joel Brobecker <brobecker@adacore.com>
7422
7423 Reimplement shared library support on ppc-aix...
7424 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7425 * features/library-list-aix.dtd: New file.
7426 * solib-aix.h, solib-aix.c: New file.
7427 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7428 (rs6000_find_toc_address_hook): Delete.
7429 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7430 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7431 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7432 "xml-utils.h".
7433 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7434 (vmap_symtab, fixup_breakpoints): Delete.
7435 (rs6000_xfer_shared_libraries): New function.
7436 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7437 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7438 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7439 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7440 (rs6000_xfer_shared_library): New function.
7441 (find_toc_address): Delete.
7442 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7443 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7444 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7445 before creating minimal symbol. Adjust function description
7446 accordingly.
7447 (scan_xcoff_symtab): Replace call to
7448 prim_record_minimal_symbol_and_info by call to
7449 record_minimal_symbol.
7450 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7451 around default_symfile_offsets.
7452 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7453 powerpc-aix targets.
7454 * config/rs6000/nm-rs6000.h: Delete.
7455 * config/powerpc/aix.mh (NAT_FILE): Delete.
7456 (NATDEPFILES): Remove xcoffsolib.o.
7457 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7458 (ALL_TARGET_OBS): Add solib-aix.o.
7459 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7460 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7461 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7462 * xcoffsolib.h, xcoffsolib.c: Delete.
7463
7464 * solib.c (reload_shared_libraries): Remove reference to
7465 SOLIB_CREATE_INFERIOR_HOOK.
7466 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7467 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7468 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7469 comment.
7470 * corelow.c (deprecated_core_resize_section_table): Delete.
7471 * exec.c: Remove include of xcoffsolib.h".
7472 (map_vmap, vmap): Delete.
7473 (exec_close_1): Remove references to vmap.
7474 (exec_file_attach): Remove vmap handling code, and reference
7475 to DEPRECATED_IBM6000_TARGET.
7476 (bfdsec_to_vmap): Delete.
7477 (exec_files_info): Remove block of code handling VMAP.
7478 * infcmd.c (post_create_inferior): Remove reference to
7479 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7480 * infrun.c (follow_exec): Remove reference to
7481 SOLIB_CREATE_INFERIOR_HOOK.
7482 * stack.c (print_frame): Remove reference to PC_SOLIB.
7483 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7484 (dsbt_relocate_main_executable): Likewise.
7485 * solib-frv.c (frv_current_sos): Likewise.
7486
0c4f667c
JB
74872013-05-06 Joel Brobecker <brobecker@adacore.com>
7488
7489 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7490 to target_write_memory and target_read_memory.
7491
726ce67c
JB
74922013-05-06 Joel Brobecker <brobecker@adacore.com>
7493
7494 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7495 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7496
c8c9911f
JB
74972013-05-06 Joel Brobecker <brobecker@adacore.com>
7498
7499 * darwin-nat.c: Replace all "%x" instances in format strings
7500 into "0x%x" throughout.
7501
fda184b6
JB
75022013-05-06 Joel Brobecker <brobecker@adacore.com>
7503
7504 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7505 gdb_assert by call to MACH_CHECK_ERROR.
7506 (darwin_attach_pid): Raise an error rather than a failed
7507 assertion when various system calls failed. Report a warning
7508 instead of raising a failed assertion when PREV_NOT is not NULL
7509 after call to mach_port_request_notification.
7510 (darwin_ptrace_me): Raise an error rather than a failed
7511 assertion when read returns nonzero.
7512
d1d69afb
JB
75132013-05-06 Joel Brobecker <brobecker@adacore.com>
7514
7515 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7516
dc90b24d
JK
75172013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7520
faab9922
JK
75212013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7522
7523 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7524 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7525 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7526 a stale cleanup. Fix double free of NAME.
7527
e0ea48a0
EZ
75282013-05-04 Eli Zaretskii <eliz@gnu.org>
7529
7530 * windows-nat.c (windows_delete_thread): Accept an additional
7531 argument, the thread's exit code, and announce thread death when
7532 print_thread_events is non-zero and we are deleting a thread that
7533 is not the main thread.
7534 (get_windows_debug_event): Pass thread exit code to
7535 windows_delete_thread.
7536
83b2706a
KB
75372013-05-03 Kevin Buettner <kevinb@redhat.com>
7538
7539 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7540 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7541 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7542 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7543 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7544 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7545 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7546 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7547 (gdbarch_tdep): New struct.
7548 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7549 E_NUM_REGS.
7550 (v850e3v5_register_name): New function.
7551 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7552 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7553 code handling the struct return conventions for the RH850 ABI.
7554 Update all callers.
7555 (v850_eight_byte_align_p): New function.
7556 (v850_push_call_dummy): Push structs by value, not by reference
7557 for the RH850 ABI. Add support for eight byte alignment.
7558 (v850_dbtrap_breakpoint_from_pc): New function.
7559 (v850_gdbarch_init): Add ABI detection code. Register
7560 v850e3v5_register_name for the v850e3v5 architecture. Set the
7561 number of registers for v850e3v5. Register
7562 v850_dbtrap_breakpoint_from_pc as appropriate.
7563 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7564
d445b2f6
DE
75652013-05-03 Doug Evans <dje@google.com>
7566
7567 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7568 of bfd_count_sections.
7569 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7570 * symfile.c (default_symfile_offsets): Ditto.
7571 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7572 one entry, not bfd_count_sections entries.
7573
b3ce41ea
KB
75742013-05-03 Kevin Buettner <kevinb@redhat.com>
7575
7576 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7577 `save' and `restore' register groups. Don't include SPL
7578 or SPH in these groups.
7579 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7580 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7581 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7582 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7583 dwarf2_append_unwinders().
7584
96f7d3f1
PW
75852013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7586
7587 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7588 ignore SIGINT and SIGTRAP in case these internal signals are
7589 caught explicitely.
7590
b9dd1947
JB
75912013-05-01 Joel Brobecker <brobecker@adacore.com>
7592
7593 * darwin-nat.c (darwin_read_write_inferior): Change types
7594 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7595 of copy_count to "mach_msg_type_number_t".
7596 (darwin_read_dyld_info): Change type of parameter
7597 rdaddr to "gdb_byte *".
7598
4ca18a63
JB
75992013-05-01 Joel Brobecker <brobecker@adacore.com>
7600
7601 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7602 of &info->load_map from "char *" to "gdb_byte *".
7603
2b692d32
JB
76042013-05-01 Joel Brobecker <brobecker@adacore.com>
7605
7606 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7607 from "char *" to "gdb_byte *".
7608 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7609
a98c29a0
DE
76102013-04-30 Doug Evans <dje@google.com>
7611
6a506a2d
DE
7612 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7613 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7614 DWO stub. If DWO isn't found, just use stub.
7615 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7616
a98c29a0
DE
7617 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7618 calling init_cutu_and_read_dies.
7619
f92b06da
WT
76202013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7621
7622 * target-descriptions.c (maint_print_c_tdesc_cmd):
7623 Add case to parse structures as register types and
7624 bitfields.
7625
95eebdcc
WT
76262013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7627
7628 * MAINTAINERS (Write After Approval): Add myself to the list.
7629
019c1128
JB
76302013-04-30 Joel Brobecker <brobecker@adacore.com>
7631
7632 * sol-thread.c (rw_common): Change type of parameter "buf"
7633 to "gdb_byte *".
7634 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7635 rw_common to "gdb_byte *" instead of "char *".
7636
5812197c
JB
76372013-04-30 Joel Brobecker <brobecker@adacore.com>
7638
7639 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7640 of local variable msym to const struct bound_minimal_symbol.
7641 Adjust use accordingly.
7642 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7643
ecccb813
TS
76442013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7645
7646 * i386gnu-nat.c (CREG_OFFSET): New macro.
7647 (creg_offset): New array.
7648 (CREG_ADDR): Use creg_offset instead of reg_offset.
7649
f1d02dd4 76502013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7651
7652 * mep-tdep.c (mep_write_pc): Delete.
7653 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7654 Add call to set_gdbarch_pc_regnum.
7655
f1d02dd4 76562013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7657
7658 * common/filestuff.c: Replace #include <dirent.h> by
7659 #include "gdb_dirent.h".
7660
f1d02dd4 76612013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7662
7663 * common/filestuff.c: Replace #include <sys/stat.h> by
7664 #include "gdb_stat.h".
7665
b385a60d
PM
76662013-04-29 Pierre Muller <muller@sourceware.org>
7667
7668 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7669 editCase function rule.
7670 (get_DW_AT_signature_type): Likewise.
7671
d27b54ad
JB
76722013-04-29 Joel Brobecker <brobecker@adacore.com>
7673
7674 * m32r-tdep.c (m32r_write_pc): Delete.
7675 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7676 Add call to set_gdbarch_pc_regnum.
7677
47d21dc5
PM
76782013-04-29 Pierre Muller <muller@sourceware.org>
7679
7680 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7681
9056882e
JB
76822013-04-29 Joel Brobecker <brobecker@adacore.com>
7683
7684 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7685
7ee4732a
YQ
76862013-04-28 Yao Qi <yao@codesourcery.com>
7687
7688 * solib-dsbt.c (fetch_loadmap): Re-indent.
7689 (displacement_from_map, enable_break2): Likewise.
7690 (dsbt_relocate_section_addresses): Likewise.
7691
2260af53 76922013-04-26 Joel Brobecker <brobecker@adacore.com>
7693
7694 GDB 7.6 released.
7695
ff546935
TT
76962013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7697
7698 PR corefiles/14983:
7699 * dwarf2read.c (process_full_comp_unit): Always create a static
7700 block.
7701
40fb6c5e
HZ
77022013-04-25 Hui Zhu <hui@codesourcery.com>
7703
7704 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7705 to loc->cmd_bytecode.
7706
74e04d1c
DE
77072013-04-24 Doug Evans <dje@google.com>
7708
7709 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7710
3cf62c1d
KS
77112013-04-22 Keith Seitz <keiths@redhat.com>
7712
7713 * tracepoint.c (trace_save): Call the writer's start method.
7714
bf9e4d0c
MB
77152013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7716
7717 PR gdb/10462
7718 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7719 before argument.
7720
5d71132c
TT
77212013-04-23 Tom Tromey <tromey@redhat.com>
7722
7723 * common/filestuff.c: Check USE_WIN32API before including
7724 sys/socket.h.
7725 (HAVE_F_GETFD): New define.
7726 (mark_cloexec): Check HAVE_F_GETFD.
7727 (gdb_open_cloexec): Change 'mode' to unsigned long.
7728 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7729 (gdb_pipe_cloexec): Check HAVE_PIPE.
7730 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7731 long.
7732
a11cfd87
HZ
77332013-04-23 Hui Zhu <hui@codesourcery.com>
7734
7735 PR gdb/15293
a11cfd87
HZ
7736 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7737
2d9442cc
HZ
77382013-04-23 Hui Zhu <hui@codesourcery.com>
7739
7740 PR gdb/15165
2d9442cc
HZ
7741 * breakpoint.c (dprintf_print_recreate): New.
7742 (save_breakpoints): Let it not save dprintf commands.
7743 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7744
614c279d
TT
77452013-04-22 Tom Tromey <tromey@redhat.com>
7746
7747 PR gdb/7912:
7748 * Makefile.in (SFILES): Add filestuff.c
7749 (COMMON_OBS): Add filestuff.o.
7750 (filestuff.o): New target.
7751 * auto-load.c (auto_load_objfile_script_1): Use
7752 gdb_fopen_cloexec.
7753 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7754 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7755 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7756 * common/agent.c (gdb_connect_sync_socket): Use
7757 gdb_socket_cloexec.
7758 * common/filestuff.c: New file.
7759 * common/filestuff.h: New file.
7760 * common/linux-osdata.c (linux_common_core_of_thread)
7761 (command_from_pid, commandline_from_pid, print_source_lines)
7762 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7763 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7764 gdb_fopen_cloexec.
7765 * common/linux-procfs.c (linux_proc_get_int)
7766 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7767 * config.in, configure: Rebuild.
7768 * configure.ac: Don't check for sys/socket.h. Check for
7769 fdwalk, pipe2.
7770 * corelow.c (core_open): Use gdb_open_cloexec.
7771 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7772 * fork-child.c (fork_inferior): Call close_most_fds.
7773 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7774 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7775 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7776 Use gdb_fopen_cloexec.
7777 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7778 gdb_open_cloexec.
7779 (linux_async_pipe): Use gdb_pipe_cloexec.
7780 * remote-fileio.c (remote_fileio_func_open): Use
7781 gdb_open_cloexec.
7782 * remote.c (remote_file_put, remote_file_get): Use
7783 gdb_fopen_cloexec.
7784 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7785 close_most_fds.
7786 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7787 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7788 * solib.c (solib_find): Use gdb_open_cloexec.
7789 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7790 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7791 (tfile_open): Use gdb_open_cloexec.
7792 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7793 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7794 * xml-support.c (xml_fetch_content_from_file): Use
7795 gdb_fopen_cloexec.
7796 * main.c (captured_main): Call notice_open_fds.
7797
5fda2332
EBM
77982013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7799
7800 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7801 'char *' to 'gdb_byte *'.
7802 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7803 'gdb_byte'.
7804
eb6c553b
YQ
78052013-04-22 Yao Qi <yao@codesourcery.com>
7806
7807 * infrun.c: Fix typo in comment.
7808
9991b207
SDJ
78092013-04-22 Andrew Haley <aph@redhat.com>
7810
7811 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7812 instead of "long".
7813
8b4833e3
YQ
78142013-04-20 Yao Qi <yao@codesourcery.com>
7815
7816 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7817 'char *' to 'gdb_byte *'. Cast the return value of
7818 'bt_ctf_get_char_array' to 'gdb_byte *'.
7819
bd3f3b55
PA
78202013-04-19 Pedro Alves <palves@redhat.com>
7821
7822 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7823 -Wpointer-sign.
7824 * configure: Regenerate.
7825
c49e7f76
PA
78262013-04-19 Pedro Alves <palves@redhat.com>
7827
7828 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7829 'void *'.
7830
12ff8552
PA
78312013-04-19 Pedro Alves <palves@redhat.com>
7832
7833 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7834 Change type of 'myaddr' parameter to gdb_byte pointer.
7835 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7836 to 'long long' pointer instead of to 'unsigned long long'.
7837 (monitor_write_memory_block, monitor_read_memory_single)
7838 (monitor_read_memory): Change type of 'myaddr' parameter to
7839 gdb_byte pointer.
7840
9c37696b
PA
78412013-04-19 Pedro Alves <palves@redhat.com>
7842
7843 * record.c (validate_history_size): Make parameter 'setting'
7844 unsigned.
7845
a398505b
PA
78462013-04-19 Pedro Alves <palves@redhat.com>
7847
7848 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7849 to 'gdb_byte *'.
7850
9f8afa72
PA
78512013-04-19 Pedro Alves <palves@redhat.com>
7852
7853 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7854 local to int.
7855
c714b426
PA
78562013-04-19 Pedro Alves <palves@redhat.com>
7857
7858 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7859 * ada-tasks.c (read_fat_string_value): Likewise.
7860
507a579c
PA
78612013-04-19 Pedro Alves <palves@redhat.com>
7862
7863 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7864 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7865 'offset', and adjust.
7866
f9d83a0b
PA
78672013-04-19 Pedro Alves <palves@redhat.com>
7868
7869 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7870 (read_index_from_section): Add cast to 'char *'.
7871
745eb4fd
PA
78722013-04-19 Pedro Alves <palves@redhat.com>
7873
7874 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7875
db5be46f
PA
78762013-04-19 Pedro Alves <palves@redhat.com>
7877
7878 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7879
0f928d68
PA
78802013-04-19 Pedro Alves <palves@redhat.com>
7881
7882 * record-full.c (record_full_get_bookmark): Change local 'ret'
7883 type to char * and add cast to gdb_byte *.
7884 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7885 string.
7886 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7887
89f6d837
PA
78882013-04-19 Pedro Alves <palves@redhat.com>
7889
7890 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7891 * python/py-prettyprint.c (print_string_repr): Change type of
7892 'output' local to char *. Add cast to gdb_byte * in
7893 LA_PRINT_STRING call.
7894 (print_children): Change type of 'output' local to char *.
7895 * python/py-value.c (valpy_string): Add cast to const char * in
7896 PyUnicode_Decode call.
7897
ce6ec7d8
PA
78982013-04-19 Pedro Alves <palves@redhat.com>
7899
7900 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7901 and change its type to 'const char *'. Adjust.
7902 (mips_send_packet): Add cast to 'char *', and remove cast to
7903 'unsigned char *'.
7904 (mips_receive_packet): Remove cast to 'unsigned char *'.
7905 (mips_load_srec): Use bfd_byte.
7906 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7907 (pmon_checkset): Make 'value' parameter unsigned.
7908
fda0389f
PA
79092013-04-19 Pedro Alves <palves@redhat.com>
7910
7911 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7912
bc20a4af
PA
79132013-04-19 Pedro Alves <palves@redhat.com>
7914
7915 * remote.c (remote_write_bytes_aux, compare_sections_command)
7916 (remote_read_qxfer)
7917 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7918 (remote_hostio_readlink, remote_bfd_iovec_pread)
7919 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7920 binary buffer, and char when buffer is used as string.
7921 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7922 (trace_save, tfile_open, traceframe_walk_blocks)
7923 (tfile_fetch_registers): Likewise.
7924
c628b528
PA
79252013-04-19 Pedro Alves <palves@redhat.com>
7926
7927 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7928 buffer and size_t size. Adjust.
7929 * ser-base.h (ser_base_write): Adjust.
7930 * ser-go32.c (cnts): Change type to size_t.
7931 (dos_write): Change prototype -- take 'void *'
7932 buffer and size_t size. Adjust.
7933 (dos_info): Print elements of 'cnts' as unsigned long.
7934 * serial.c (serial_write): Likewise.
7935 * serial.h (serial_write): Adjust.
7936 (struct serial_ops) <write>: Change prototype -- take 'void *'
7937 buffer and size_t size. Adjust.
7938
51a5cd90
PA
79392013-04-19 Pedro Alves <palves@redhat.com>
7940
7941 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7942 gdb_byte *.
7943 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7944
a9933661
PA
79452013-04-19 Pedro Alves <palves@redhat.com>
7946
7947 * alpha-tdep.c (alpha_extract_return_value): Use
7948 regcache_cooked_read_unsigned to read 'v0'.
7949
19afdd07
PA
79502013-04-19 Pedro Alves <palves@redhat.com>
7951
7952 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7953 parameters 'at', 'as' and 'offset' to uint32_t.
7954
96b32e50
PA
79552013-04-19 Pedro Alves <palves@redhat.com>
7956
7957 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7958 'is64' to signed 'int'.
7959
eb1bd1fb
PA
79602013-04-19 Pedro Alves <palves@redhat.com>
7961
7962 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7963 parameter to int *.
7964
463920bf
PA
79652013-04-19 Pedro Alves <palves@redhat.com>
7966
7967 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7968 'insnbuf' buffer type to unsigned int[].
7969
70242eb1
PA
79702013-04-19 Pedro Alves <palves@redhat.com>
7971
7972 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7973
9d1dd0e2
PA
79742013-04-19 Pedro Alves <palves@redhat.com>
7975
7976 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7977 unsigned long *.
7978
44096aee
PA
79792013-04-19 Pedro Alves <palves@redhat.com>
7980
7981 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7982 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7983 UINT_MAX.
7984 * mips-tdep.c (heuristic_fence_post): Change type to int.
7985 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7986
e4286e57
PA
79872013-04-19 Pedro Alves <palves@redhat.com>
7988
7989 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7990 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7991 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7992
001f13d8
PA
79932013-04-19 Pedro Alves <palves@redhat.com>
7994
7995 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7996 it to get a string view of the byte buffer.
7997 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7998 type to gdb_byte *. Adjust.
7999 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8000 Change local to char *.
8001 * solib-darwin.c (find_program_interpreter): Change return type to
8002 char *. Adjust.
8003 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8004 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8005 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8006 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8007 * solib-svr4.c (find_program_interpreter): Change return type to
8008 char *. Adjust.
8009 (enable_break): Change local 'interp_name' to char *.
8010 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8011 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8012 (spu_pseudo_register_write_spu): Use char for string buffer.
8013 Adjust.
8014 (info_spu_event_command, info_spu_signal_command): Add casts to
8015 'char *'.
8016
948f8e3d
PA
80172013-04-19 Pedro Alves <palves@redhat.com>
8018
8019 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8020 gdb_byte[].
8021 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8022 * ada-lang.c (ada_value_assign): Use gdb_byte.
8023 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8024 (alphanbsd_sigtramp_offset): Use gdb_byte.
8025 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8026 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8027 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8028 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8029 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8030 * arm-tdep.c (arm_stub_unwind_sniffer)
8031 (arm_displaced_init_closure): Use gdb_byte.
8032 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8033 (arm_default_thumb_le_breakpoint)
8034 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8035 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8036 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8037 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8038 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8039 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8040 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8041 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8042 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8043 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8044 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8045 (cris_store_return_value, cris_extract_return_value): Use
8046 gdb_byte.
8047 (constraint): Change type of parameter to char * from signed
8048 char*. Use gdb_byte.
8049 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8050 of local buffer to gdb_byte *.
8051 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8052 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8053 (add_address_entry): Change type of local buffer to gdb_byte[].
8054 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8055 (frv_push_dummy_call): Use gdb_byte.
8056 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8057 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8058 (hppa_hpux_supply_save_state): Use gdb_byte.
8059 * hppa-tdep.c (hppa32_push_dummy_call)
8060 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8061 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8062 (slotN_contents, replace_slotN_contents): Change type of parameter
8063 to gdb_byte *.
8064 (fetch_instruction, ia64_pseudo_register_write)
8065 (ia64_register_to_value, ia64_value_to_register)
8066 (ia64_extract_return_value, ia64_store_return_value)
8067 (ia64_push_dummy_call): Use gdb_byte.
8068 * m32c-tdep.c (m32c_return_value): Remove cast.
8069 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8070 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8071 gdb_byte.
8072 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8073 * mn10300-tdep.c (mn10300_store_return_value)
8074 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8075 gdb_byte.
8076 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8077 (moxie_process_record): Remove casts.
8078 * ppc-ravenscar-thread.c (supply_register_at_address)
8079 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8080 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8081 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8082 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8083 * remote.c (compare_sections_command): Use gdb_byte.
8084 * score-tdep.c (score7_free_memblock): Change type of parameter to
8085 gdb_byte *.
8086 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8087 gdb_byte *. Use gdb_byte.
8088 (sh_push_dummy_call_fpu): Use gdb_byte.
8089 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8090 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8091 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8092 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8093 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8094 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8095 (sh64_store_return_value, sh64_register_convert_to_virtual):
8096 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8097 (sh64_pseudo_register_write): Use gdb_byte.
8098 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8099 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8100 buffer.
8101 (irix_current_sos): Use gdb_byte.
8102 * solib-som.c (som_current_sos): Use gdb_byte.
8103 * sparc-ravenscar-thread.c (supply_register_at_address)
8104 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8105 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8106 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8107 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8108 'gdb_byte *'.
8109 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8110 'gdb_byte *'.
8111 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8112 * xstormy16-tdep.c (xstormy16_extract_return_value)
8113 (xstormy16_store_return_value): Change parameter type to
8114 'gdb_byte *'. Adjust.
8115 (xstormy16_push_dummy_call): Use gdb_byte.
8116 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8117 (call0_analyze_prologue, execute_code): Use gdb_byte.
8118
433730c9
PA
81192013-04-19 Vladimir Kargov <kargov@gmail.com>
8120 Pedro Alves <palves@redhat.com>
8121
8122 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8123 value contents.
8124
ac9ec31b
DE
81252013-04-17 Doug Evans <dje@google.com>
8126
8127 * dwarf2read.c (struct signatured_type): New member type.
8128 (struct attribute): Replace member signatured_type with signature.
8129 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8130 (read_call_site_scope): Call follow_die_ref instead of
8131 follow_die_ref_or_sig.
8132 (read_structure_type): Rewrite handling of signatured types.
8133 (read_enumeration_type): Ditto.
8134 (read_attribute_value): Update.
8135 (build_error_marker_type): New function.
8136 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8137 Don't call error for bad types, just build an error marker type.
8138 (dump_die_shallow): Update.
8139 (follow_die_sig_1): Renamed from follow_die_sig.
8140 Don't call error for bad types, instead return NULL.
8141 (follow_die_sig): New function.
8142 (get_signatured_type, get_DW_AT_signature_type): New functions.
8143
e546e8bb
YZ
81442013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8145
8146 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8147 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8148 function.
e546e8bb 8149
ab116149
YQ
81502013-04-17 Yao Qi <yao@codesourcery.com>
8151
8152 * top.c (print_gdb_configuration): Print configure-time
8153 parameter on using libbabeltrace or not.
8154
488a42b8
PA
81552013-04-16 Pedro Alves <palves@redhat.com>
8156
8157 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8158
f5fb825b
PA
81592013-04-16 Pedro Alves <palves@redhat.com>
8160
85d494ea 8161 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8162 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8163
e1154999
PA
81642013-04-16 Pedro Alves <palves@redhat.com>
8165
8166 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8167 * common/glibc_thread_db.h: ... this new file ...
8168 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8169
e3b50a7f
PA
81702013-04-16 Will Newton <will.newton@gmail.com>
8171 Pedro Alves <palves@redhat.com>
8172
8173 PR build/11881
8174
8175 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8176 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8177 HAVE_THREAD_DB_H.
8178
1c2e4450
PA
81792013-04-16 Pedro Alves <palves@redhat.com>
8180 Eli Zaretskii <eliz@gnu.org>
8181
8182 * NEWS: Mention "set foo unlimited".
8183
4031ecc5
DE
81842013-04-15 Doug Evans <dje@google.com>
8185
19c3d4c9
DE
8186 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8187 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8188 (create_dwo_cu_reader): Renamed from
8189 create_dwo_debug_info_hash_table_reader.
8190 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8191 Remove support for multiple CUs in a DWO file.
8192 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8193
4031ecc5
DE
8194 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8195 instead of phex.
8196 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8197 (create_dwo_in_dwp): Ditto.
8198
b340913d
TT
81992013-04-15 Tom Tromey <tromey@redhat.com>
8200
8201 * NEWS: Move recent entries into "since 7.6" section.
8202
cc16e6c9
TT
82032013-04-15 Tom Tromey <tromey@redhat.com>
8204
8205 PR c++/13588:
8206 * NEWS: Update.
8207 * break-catch-throw.c (struct exception_catchpoint)
8208 <exception_rx, pattern>: New fields.
8209 (fetch_probe_arguments, dtor_exception_catchpoint)
8210 (check_status_exception_catchpoint)
8211 (print_one_detail_exception_catchpoint): New functions.
8212 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8213 Compile regular expression if needed.
8214 (extract_exception_regexp): New function.
8215 (catch_exception_command_1): Use extract_exception_regexp.
8216 (compute_exception): Use fetch_probe_arguments.
8217 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8218 and check_status fields.
8219 * cp-abi.c (cplus_typename_from_type_info): New function.
8220 * cp-abi.h (cplus_typename_from_type_info): Declare.
8221 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8222 * gdb_regex.h (compile_rx_or_error): Declare.
8223 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8224 comment.
8225 (init_gnuv3_ops): Set get_type_from_type_info field.
8226 * probe.c (compile_rx_or_error): Move...
8227 * utils.c (compile_rx_or_error): ... here.
8228
72f1fe8a
TT
82292013-04-15 Tom Tromey <tromey@redhat.com>
8230
8231 PR c++/15176:
8232 * NEWS: Update.
8233 * break-catch-throw.c (compute_exception): New function.
8234 (exception_funcs): New global.
8235 (_initialize_break_catch_throw): Create $_exception.
8236 * cp-abi.c (cplus_type_from_type_info): New function.
8237 * cp-abi.h (cplus_type_from_type_info): Declare.
8238 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8239 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8240 (gnuv3_get_type_from_type_info): New functions.
8241 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8242
fc4746a2
TT
82432013-04-15 Tom Tromey <tromey@redhat.com>
8244
8245 * break-catch-throw.c (struct exception_names): New.
8246 (exception_functions): Change type.
8247 (re_set_exception_catchpoint): Look for SDT probes.
8248
15a73f56
TT
82492013-04-15 Tom Tromey <tromey@redhat.com>
8250
8251 PR c++/10119:
8252 * break-catch-throw.c (exception_functions): New global.
8253 (gnu_v3_exception_catchpoint_ops): Move earlier.
8254 (struct exception_catchpoint): New.
8255 (classify_exception_breakpoint): Rewrite.
8256 (re_set_exception_catchpoint): New function.
8257 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8258 Allocate a struct exception_catchpoint.
8259 (catch_exception_command_1): Update.
8260 (initialize_throw_catchpoint_ops): Set 're_set' method.
8261
916703c0
TT
82622013-04-15 Tom Tromey <tromey@redhat.com>
8263
8264 * Makefile.in (SFILES): Add break-catch-throw.c
8265 (COMMON_OBS): Add break-catch-throw.o.
8266 * break-catch-throw.c: New file.
8267 * breakpoint.c: Move exception-catching code to new file.
8268 (ep_parse_optional_if_clause): No longer static.
8269 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8270
6e72ca20
TT
82712013-04-15 Tom Tromey <tromey@redhat.com>
8272
8273 PR c++/9065:
8274 * NEWS: Update.
8275 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8276 * c-exp.y (TYPEID): New token.
8277 (exp): Add new TYPEID productions.
8278 (ident_tokens): Add "typeid".
8279 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8280 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8281 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8282 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8283 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8284 case.
8285 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8286 (build_std_type_info_type, gnuv3_get_typeid_type)
8287 (gnuv3_get_typeid): New functions.
8288 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8289 new fields on ABI object.
8290 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8291 * std-operator.def (OP_TYPEID): New.
8292
715c6909
TT
82932013-04-15 Tom Tromey <tromey@redhat.com>
8294
8295 * elfread.c (elf_symtab_read): Install versioned symbol under
8296 unversioned name as well.
8297
8de20a37
TT
82982013-04-15 Tom Tromey <tromey@redhat.com>
8299
8300 PR c++/11990:
8301 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8302 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8303 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8304 (gdb_demangle): New function.
8305 * cp-support.h (gdb_demangle): Declare.
8306 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8307 (dwarf2_name): Use gdb_demangle.
8308 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8309 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8310 suffixes from name.
8311 (gnuv3_print_method_ptr): Use gdb_demangle.
8312 * jv-lang.c (java_demangle): Use gdb_demangle.
8313 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8314 * language.c (unk_lang_demangle): Use gdb_demangle.
8315 * symtab.c (symbol_find_demangled_name)
8316 (demangle_for_lookup): Use gdb_demangle.
8317
591f19e8
TT
83182013-04-15 Tom Tromey <tromey@redhat.com>
8319
8320 PR c++/12824:
8321 * NEWS: Update.
8322 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8323 New constant.
8324 (classify_exception_breakpoint): New function.
8325 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8326 (print_mention_exception_catchpoint)
8327 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8328 (catch_exception_command_1): Handle "rethrow" catchpoint.
8329 (catch_rethrow_command): New function.
8330 (_initialize_breakpoint): Add "catch rethrow" command.
8331
4d40cad2
PM
83322013-04-15 Pierre Muller <muller@sourceware.org>
8333
8334 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8335 set_gdbarch_write_pc as deprecated anymore.
8336
30bcb456
JB
83372013-04-15 Joel Brobecker <brobecker@adacore.com>
8338
8339 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8340 declarations.
8341
da9160e4
YQ
83422013-04-13 Yao Qi <yao@codesourcery.com>
8343
8344 * ctf.c (_initialize_ctf): Include "completer.h".
8345 Call add_target_with_completer instead of add_target.
8346
39ed5604
JK
83472013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 Fix GDB regression related to PR binutils/14813.
8350 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8351 * minidebug.c (lzma_close): Add return value comment.
8352 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8353 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8354 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8355
83562013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8357
8358 * config.in: Regenerate.
8359
d521ce57
TT
83602013-04-12 Tom Tromey <tromey@redhat.com>
8361
8362 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8363 const.
8364 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8365 (struct die_reader_specs) <buffer>: Likewise.
8366 (die_reader_func_ftype): Make 'info_ptr' const.
8367 (struct line_header) <include_dirs, statement_program_start,
8368 statement_program_end>: Now const.
8369 (struct file_entry) <name>: Likewise.
8370 (struct partial_die_info) <sibling>: Likewise.
8371 (struct dwarf_block) <data>: Likewise.
8372 (dwarf2_read_section): Remove cast.
8373 (dwarf2_get_section_info): Make 'bufp' const.
8374 (read_index_from_section): Constify.
8375 (dw2_get_file_names_reader): Make 'info_ptr' const.
8376 (dw2_get_primary_filename_reader): Likewise.
8377 (read_comp_unit_head): Make 'info_ptr' and return type const.
8378 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8379 Likewise.
8380 (read_abbrev_offset): Constify.
8381 (dwarf2_create_include_psymtab): Make 'name' const.
8382 (create_debug_types_hash_table): Update.
8383 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8384 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8385 Constify.
8386 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8387 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8388 (read_comp_units_from_section): Constify.
8389 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8390 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8391 const.
8392 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8393 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8394 (create_dwp_hash_table, dwarf2_ranges_read)
8395 (dwarf2_record_block_ranges): Constify.
8396 (read_die_and_children, read_die_and_siblings_1)
8397 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8398 const.
8399 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8400 (abbrev_table_read_table): Constify.
8401 (load_partial_dies): Make 'info_ptr' const.
8402 (read_partial_die, read_attribute_value, read_attribute): Make
8403 'info_ptr' and return type const.
8404 (read_address, read_initial_length)
8405 (read_checked_initial_length_and_offset, read_offset)
8406 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8407 const.
8408 (read_direct_string): Make 'buf' and return type const.
8409 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8410 (read_indirect_string): Make return type const.
8411 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8412 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8413 'info_ptr' const.
8414 (read_str_index): Make return type const.
8415 (add_include_dir): Make 'include_dir' const.
8416 (add_file_name): Make 'name' const.
8417 (dwarf_decode_line_header): Constify.
8418 (psymtab_include_file_name): Make return type const.
8419 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8420 (dwarf2_start_subfile): Make 'filename' const.
8421 (dwarf2_const_value_attr): Make 'bytes' const.
8422 (read_signatured_type_reader): Make 'info_ptr' const.
8423 (decode_locdesc): Constify.
8424 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8425 const.
8426 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8427 'mac_end', and return type const.
8428 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8429 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8430 type const.
8431 (per_cu_header_read_in): Constify.
8432 * symfile.h (dwarf2_get_section_info): Update.
8433
d47a1bc1
TT
84342013-04-12 Tom Tromey <tromey@redhat.com>
8435
8436 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8437
6eaaf48b
EZ
84382013-04-12 Eli Zaretskii <eliz@gnu.org>
8439
fc4c25bf 8440 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8441 * top.c (print_gdb_configuration): New function, displays the
8442 details about GDB configure-time parameters.
8443 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8444 * cli/cli-cmds.c (show_configuration): New function.
8445 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8446 * main.c (captured_main) <print_configuration>: New static var.
8447 <long_options>: Use it.
8448 If --configuration was given, call print_gdb_configuration.
8449
b292c783
JK
84502013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8451 Pedro Alves <palves@redhat.com>
8452
8453 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8454 (generated_files): Add gcore.
8455 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8456 HAVE_NATIVE_GCORE_HOST.
8457 (gcore): New.
8458 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8459 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8460 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8461 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8462 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8463 Add HAVE_NATIVE_GCORE_HOST.
8464 * configure: Regenerate.
8465 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8466 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8467 AC_CONFIG_FILES for gcore.
8468 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8469 gdb_have_gcore.
8470 * gdb_gcore.sh: Rename to ...
8471 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8472 and GCORE_TRANSFORM_NAME substitutions.
8473
c96b3c4f
JK
8474 Fix parsing tabs in ${gdb_target_obs}.
8475 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8476
d6cb50a2
JK
84772013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8478
8479 * remote.c (unpush_and_perror): Add output message final dot.
8480
cf2cb5ec
YQ
84812013-04-11 Yao Qi <yao@codesourcery.com>
8482
8483 * tracepoint.c (tfile_interp_line): Fit parameters line and
8484 utpp in one line.
8485
07293be4
JB
84862013-04-10 Joel Brobecker <brobecker@adacore.com>
8487
8488 * solib.c (solib_map_sections): Remove code overwriting
8489 SO->SO_NAME with the bfd's filename.
8490
f81d1120
PA
84912013-04-10 Pedro Alves <palves@redhat.com>
8492
8493 * cli/cli-decode.c (integer_unlimited_completer): New function.
8494 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8495 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8496 completer.
8497 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8498 (is_unlimited_literal): New function.
8499 (do_set_command): Handle literal "unlimited" arguments.
8500 * frame.c (_initialize_frame) <set backtrace limit>: Document
8501 "unlimited".
8502 * printcmd.c (_initialize_printcmd) <set print
8503 max-symbolic-offset>: Add help text.
8504 * record-full.c (_initialize_record_full) <set record full
8505 insn-number-max>: Likewise.
8506 * record.c (_initialize_record) <set record
8507 instruction-history-size, set record function-call-history-size>:
8508 Add help text.
8509 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8510 help text.
8511 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8512 Likewise.
8513 * source.c (_initialize_source) <set listsize>: Add help text.
8514 * utils.c (initialize_utils) <set height, set width>: Likewise.
8515 <set pagination>: Mention "set height unlimited".
8516 * valprint.c (_initialize_valprint) <set print elements, set print
8517 repeats>: Document "unlimited".
8518
2f9d54cf
PA
85192013-04-10 Pedro Alves <palves@redhat.com>
8520
8521 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8522 instead of disconnect_tracing.
8523 * infcmd.c (detach_command, disconnect_command): Call
8524 query_if_trace_running. Adjust.
8525 * top.c: Include "tracepoint.h".
8526 (quit_target): Delete. Contents moved ...
8527 (quit_force): ... here. Wrap each stage of teardown in
8528 TRY_CATCH. Call disconnect_tracing before detaching.
8529
393fd4c3
YQ
85302013-04-10 Hui Zhu <hui@codesourcery.com>
8531 Yao Qi <yao@codesourcery.com>
8532
8533 * configure.ac: Check libbabeltrace is installed.
8534 * config.in: Regenerate.
8535 * configure: Regenerate.
8536 * Makefile.in (LIBBABELTRACE): New.
8537 (CLIBS): Add LIBBABELTRACE.
8538 * ctf.c: Include "exec.h".
8539 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8540 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8541 (ctf_save_metadata_header): Define new type aliases in
8542 metadata.
8543 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8544 in metadata. Start a new faked packet for trace status.
8545 (ctf_write_status): Write trace status to CTF.
8546 (ctf_write_uploaded_tsv): Write TSV to CTF.
8547 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8548 (ctf_write_definition_end): End the faked packet.
8549
8550 (ctx, ctf_iter, trace_dirname): New.
8551 (start_pos): New variable.
8552 (ctf_destroy, ctf_open_dir, ctf_open): New.
8553 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8554 macros.
8555 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8556 (ctf_fetch_registers, ctf_xfer_partial): New.
8557 (ctf_get_trace_state_variable_value): New.
8558 (ctf_get_tpnum_from_frame_event): New.
8559 (ctf_get_traceframe_address): New.
8560 (ctf_trace_find, ctf_has_stack): New.
8561 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8562 (ctf_get_trace_status, ctf_read_status): New.
8563 (_initialize_ctf): New.
8564 * tracepoint.c (get_tracepoint_number): New
8565 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8566 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8567 * tracepoint.h: ... here.
8568 (get_tracepoint_number): Declare it.
8569 (get_uploaded_tsv): Declare it.
8570
8571 * NEWS: Mention new configure option.
8572
5c2b4418
HZ
85732013-04-10 Pedro Alves <palves@redhat.com>
8574 Hui Zhu <hui@codesourcery.com>
8575
8576 * breakpoint.c (dprintf_re_set): New.
8577 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8578 to dprintf_re_set.
8579
a5c66735
JB
85802013-04-09 Joel Brobecker <brobecker@adacore.com>
8581
8582 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8583 Remove solib-svr4.o from the list.
8584
9e77999c
JB
85852013-04-09 Joel Brobecker <brobecker@adacore.com>
8586
8587 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8588 Use gdb_assert_not_reached instead of invalid boolean expression.
8589
1927e618
PA
85902013-04-09 Pedro Alves <palves@redhat.com>
8591
8592 * remote.c (unpush_and_perror): New function.
8593 (readchar, remote_serial_write): Use it.
8594
10782d74
MM
85952013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8596
8597 * NEWS: Mention new btrace RSP packets.
8598
4c8429ef
TT
85992013-04-08 Tom Tromey <tromey@redhat.com>
8600
8601 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8602 long.
8603
8625fc1b
TT
86042013-04-08 Tom Tromey <tromey@redhat.com>
8605
8606 * maint.c (print_bfd_section_info): Print the section index.
8607 * symmisc.c (dump_msymbols): Print the section index.
8608
e27d198c
TT
86092013-04-08 Tom Tromey <tromey@redhat.com>
8610
8611 PR symtab/8424:
8612 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8613 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8614 * breakpoint.c (resolve_sal_pc): Update.
8615 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8616 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8617 (minsym_lookup_iterator_cb): Use it.
8618 (default_read_var_value): Update.
8619 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8620 Update.
8621 * infcmd.c (jump_command): Update.
8622 * linespec.c (minsym_found): Update.
8623 * maint.c (maintenance_translate_address): Update.
8624 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8625 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8626 * parse.c (write_exp_msymbol): Update.
8627 * printcmd.c (address_info): Update.
8628 * psymtab.c (find_pc_sect_psymbol): Update.
8629 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8630 SYMBOL_OBJ_SECTION.
8631 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8632 Don't initialize SYMBOL_OBJ_SECTION.
8633 * spu-tdep.c (spu_catch_start): Update.
8634 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8635 * symmisc.c (dump_msymbols, print_symbol): Update.
8636 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8637 how fallback section is computed.
8638 (fixup_symbol_section): Update.
8639 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8640 Update.
8641 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8642 Initialize SYMBOL_SECTION.
8643 * symtab.h (struct general_symbol_info) <section>: Update comment.
8644 <obj_section>: Remove.
8645 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8646 (SYMBOL_OBJFILE): New macro.
8647
e6dc44a8
TT
86482013-04-08 Tom Tromey <tromey@redhat.com>
8649
8650 * coffread.c (record_minimal_symbol): Update.
8651 * dbxread.c (record_minimal_symbol): Update.
8652 * elfread.c (record_minimal_symbol): Update.
8653 * machoread.c (macho_symtab_add_minsym): Update.
8654 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8655 Update.
8656 * minsyms.c (prim_record_minimal_symbol): Update.
8657 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8658 argument.
8659 (prim_record_minimal_symbol_and_info): Likewise.
8660 * minsyms.h (prim_record_minimal_symbol_full)
8661 (prim_record_minimal_symbol_and_info): Update.
8662 * symtab.c (allocate_symbol, initialize_symbol)
8663 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8664 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8665 Update.
8666
36192a8d
TT
86672013-04-08 Tom Tromey <tromey@redhat.com>
8668
8669 PR symtab/8423:
8670 * solib-som.c (som_solib_section_offsets): Use BFD section
8671 indices. Set offsets for all sections.
8672 * somread.c (som_symtab_read): Compute BFD section for
8673 symbol. Use prim_record_minimal_symbol_and_info.
8674 (som_symfile_read): Fix comment.
8675 (struct find_section_offset_arg): New.
8676 (find_section_offset, set_section_index): New functions.
8677 (som_symfile_offsets): Use set_section_index to compute
8678 section indices.
8679
65cf3563
TT
86802013-04-08 Tom Tromey <tromey@redhat.com>
8681
8682 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8683 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8684 gdb_bfd_section_index.
8685 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8686 New functions.
8687 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8688 Declare.
8689 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8690 Update.
8691 * objfiles.c (add_to_objfile_sections_full): New function.
8692 (add_to_objfile_sections): Use it.
8693 (build_section_table): Rewrite.
8694 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8695 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8696 (struct objfile) <sections>: Update comment.
8697 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8698 is NULL.
8699 (ALL_OBJSECTIONS): Use it.
8700 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8701 * solib-frv.c (frv_relocate_main_executable): Update.
8702 * solib-target.c (solib_target_relocate_section_addresses):
8703 Use gdb_bfd_section_index.
8704 * symfile.c (build_section_addr_info_from_section_table):
8705 Use gdb_bfd_section_index.
8706 (build_section_addr_info_from_bfd, place_section): Likewise.
8707 * symtab.c (fixup_section): Update.
8708 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8709
7cbd4a93
TT
87102013-04-08 Tom Tromey <tromey@redhat.com>
8711
8712 * minsyms.h (struct bound_minimal_symbol): New.
8713 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8714 Remove objfile argument.
8715 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8716 Return bound_minimal_symbol.
8717 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8718 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8719 Return bound_minimal_symbol.
8720 (in_gnu_ifunc_stub): Update.
8721 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8722 Remove 'objfile_p' argument.
8723 (lookup_solib_trampoline_symbol_by_pc): Update.
8724 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8725 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8726 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8727 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8728 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8729 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8730 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8731 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8732 stack.c, symtab.c, tui/tui-disasm.c: Update.
8733
f85f34ed
TT
87342013-04-08 Tom Tromey <tromey@redhat.com>
8735
8736 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8737 Use symbol's obstack, not an objfile.
8738 * coffread.c (process_coff_symbol): Update.
8739 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8740 * jv-lang.c (add_class_symbol): Update.
8741 * mdebugread.c (new_symbol): Update.
8742 * minsyms.c (prim_record_minimal_symbol_full)
8743 (terminate_minimal_symbol_table): Update.
8744 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8745 * stabsread.c (define_symbol, read_enum_type): Update.
8746 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8747 Handle Ada specially.
8748 (symbol_set_language): Add 'obstack' argument.
8749 (symbol_set_names): Update.
8750 (symbol_natural_name, symbol_demangled_name): Always use
8751 ada_decode_symbol.
8752 * symtab.h (struct general_symbol_info)
8753 <language_specific::obstack>: New field.
8754 <ada_mangled>: New field.
8755 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8756 (symbol_set_language): Update.
8757
ccde22c0
TT
87582013-04-08 Tom Tromey <tromey@redhat.com>
8759
8760 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8761 Take an obstack, not an objfile.
8762 (symbol_set_names): Update.
8763 * symtab.h (symbol_set_demangled_name): Update.
8764
e623cf5d
TT
87652013-04-08 Tom Tromey <tromey@redhat.com>
8766
8767 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8768 allocate_symbol.
8769 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8770 (read_func_scope): Call allocate_template_symbol.
8771 (new_symbol_full): Call allocate_symbol.
8772 * jit.c (finalize_symtab): Call allocate_symbol.
8773 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8774 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8775 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8776 (common_block_end): Call allocate_symbol.
8777 * symtab.c (allocate_symbol, initialize_symbol)
8778 (allocate_template_symbol): New functions.
8779 * symtab.c (allocate_symbol, initialize_symbol)
8780 (allocate_template_symbol): Declare.
8781 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8782
f6de8ec2
PA
87832013-04-08 Pedro Alves <palves@redhat.com>
8784 Keith Seitz <keiths@redhat.com>
8785
8786 * breakpoint.c (create_breakpoint): Rename
8787 "parse_condition_and_thread" parameter to "parse_arg". Update
8788 describing comment. If !PARSE_ARG, then error out if ARG is not
8789 the empty string after extracting the location.
8790 * breakpoint.h (create_breakpoint): Rename
8791 "parse_condition_and_thread" parameter to "parse_arg".
8792
f65ce5fb
AR
87932013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8794
8795 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8796
cc5925ad
YQ
87972013-04-07 Yao Qi <yao@codesourcery.com>
8798
8799 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8800 and 'addr2' to CORE_ADDR.
8801 * target.c (update_current_target): Update.
8802 * target.h (struct target_ops) <to_trace_find>: Change parameter
8803 type to CORE_ADDR.
8804 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8805 'addr2' to CORE_ADDR.
8806 (tfile_trace_find): Likewise.
8807 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8808 Change local variable 'addr' to type CORE_ADDR.
8809 * tracepoint.h (tfind_1): Update declaration.
8810
d9ac0664
EZ
88112013-04-06 Eli Zaretskii <eliz@gnu.org>
8812
8813 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8814 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8815 Include main.h.
8816
8817 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8818 here...
8819 * main.h (windows_get_absolute_argv0): ...to here.
8820
02142a6c
DE
88212013-04-05 Doug Evans <dje@google.com>
8822
8823 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8824 (read_cutu_die_from_dwo): Add comments.
8825 (read_structure_type): Update comment.
8826 (read_enumeration_type, read_namespace_type): Update comment.
8827 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8828
43662968
JK
88292013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8830
8831 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8832 * Makefile.in (gdb.z): Remove.
8833 (install-only): Remove $(man1dir) and gdb.1 installation.
8834 * gdb.1: Remove.
8835
9ead1b84
JK
88362013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8837
8838 Fix compatibility with Linux kernel 3.8.3.
8839 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8840 to more inner block. Remove parsing of NUMBER from outer block.
8841 Parse NUMBER only if KEYWORD has been identified.
8842
d1794952
JK
88432013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8844
8845 Fix variable name shadowing.
8846 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8847 filename to mapsfilename and update its uses.
8848
9025569e
EZ
88492013-04-05 Eli Zaretskii <eliz@gnu.org>
8850
8851 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8852 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8853 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8854 details of the problem.
8855
c9a6ce02
PA
88562013-04-04 Pedro Alves <palves@redhat.com>
8857 Hui Zhu <hui@codesourcery.com>
8858
8859 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8860 tracepoint, reset its STEP_COUNT and call validate_actionline.
8861
5ff888ce
DE
88622013-04-03 Doug Evans <dje@google.com>
8863
bf6af496
DE
8864 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8865 read_die_and_siblings.
8866 (read_die_and_siblings): New function.
8867 (read_cutu_die_from_dwo): Dump die if requested.
8868 (read_die_and_children): Call read_full_die_1 and
8869 read_die_and_siblings_1.
8870 (read_full_die): Dump die if requested.
8871
8872 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8873
0ac5b59e
DE
8874 * dwarf2read.c (struct dwo_file): New member comp_dir.
8875 Rename member name to dwo_name. All uses updated.
8876 (hash_dwo_file): Include comp_dir in computation.
8877 (eq_dwo_file): Ditto.
8878 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8879 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8880
5ff888ce
DE
8881 * psymtab.c (read_psymtabs_with_fullname): Don't call
8882 psymtab_to_fullname if the basenames are different.
8883
ec83d211
JK
88842013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8885
8886 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8887 New entry about "fullname" presence.
8888
4f4352f7
PA
88892013-04-03 Pedro Alves <palves@redhat.com>
8890
8891 * NEWS: Mention x86_64/Cygwin as new native configuration.
8892
3d1d5ea3
DE
88932013-04-02 Doug Evans <dje@google.com>
8894
8895 * dwarf2read.c (read_structure_type): Fix typo in comment.
8896
be9a8770
PA
88972013-04-02 Pedro Alves <palves@redhat.com>
8898
8899 * NEWS: Mention "set/show debug aarch64", "set/show debug
8900 coff-pe-read" and "set/show debug mach-o".
8901
a46c1e42
PA
89022013-04-02 Pedro Alves <palves@redhat.com>
8903
8904 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8905
3ad18b19
EZ
89062013-04-02 Eli Zaretskii <eliz@gnu.org>
8907
8908 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8909 gdb_string.h is now in common/.
8910
e9f1758d
PA
89112013-04-02 Pedro Alves <palves@redhat.com>
8912
8913 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8914 under "New options".
8915
049dc89b
JK
89162013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8917
8918 Revert this patch:
8919 PR gdb/15275
8920 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8921
c33e31fd
PA
89222013-04-02 Pedro Alves <palves@redhat.com>
8923
8924 PR gdb/15275
8925
8926 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8927 (remote_serial_write): New function.
8928 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8929
ea5f3910
JW
89302013-04-01 Jiong Wang <jiwang@tilera.com>
8931
8932 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8933 "New targets" sections.
ea5f3910 8934
5c6fa7ab
DE
89352013-04-01 Doug Evans <dje@google.com>
8936
c0f78cd4
DE
8937 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8938 (process_enumeration_scope): Simplify.
8939
0186c6a7
DE
8940 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8941 type_unit_group ...
8942 (struct signatured_type): ... to here.
8943 (sig_type_ptr): New typedef.
8944 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8945 out of union 't'. All uses updated.
8946 (dw2_get_file_names_reader): Assert not called for a type unit.
8947 (dw2_get_file_names): Assert not called for a type unit or type
8948 unit group.
8949 (build_type_psymtabs_reader): Assert called for a type unit.
8950 (build_type_psymtab_dependencies): Assert called for a type unit group.
8951
5c6fa7ab
DE
8952 * dwarf2read.c (free_dwo_file): Add comment.
8953 (dwarf2_per_objfile_free): Unref dwp bfd.
8954
b3c0ad67 89552013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8956
8957 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8958 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8959 (read_pe_exported_syms): Remove unused 'exportix'.
8960 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8961 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8962 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8963
e2df1547
AR
89642013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8965
8966 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8967 (print_it_watchpoint): Remove unused 'bl'.
8968 (say_where): Remove unused 'uiout'.
8969 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8970 (bkpt_breakpoint_hit): Remove unused 'b'.
8971 (internal_bkpt_print_it): Remove unused 'uiout'.
8972 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8973
d81e75c0
TD
89742013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8975
8976 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8977 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8978
5a8b3f62
DE
89792013-03-29 Doug Evans <dje@google.com>
8980
ab5088bf
DE
8981 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8982 Delete arg is_dwp. All callers updated.
8983 (open_dwp_file): New function.
8984 (open_and_init_dwp_file): Call it.
8985 (get_dwp_file): New function.
8986 (lookup_dwo_cutu): Call it.
8987
a8ad1e57
DE
8988 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8989 unnecessary, cleanup.
8990
6296d8c1
DE
8991 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8992
b0c7bfa9
DE
8993 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8994 (lookup_dwo_unit): New function.
8995 (init_cutu_and_read_dies): Move DWO handling to new functions.
8996
c88ee1f0
DE
8997 * dwarf2read.c (struct signatured_type): Tweak comment.
8998 (struct dwo_unit): Tweak comment.
8999 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9000 (create_dwo_debug_info_hash_table): Tweak comment.
9001 (dwarf2_per_cu_offset_and_type): Tweak comment.
9002
5a8b3f62
DE
9003 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9004 missing .debug_types section.
9005
9852c492
YQ
90062013-03-29 Yao Qi <yao@codesourcery.com>
9007
9008 * corelow.c: Include "completer.h".
9009 (_initialize_corelow): Call add_target_with_completer with
9010 argument 'filename_completer'.
9011 * tracepoint.c: Likewise.
9012 * exec.c (_initialize_exec): Likewise.
9013 * target.c (add_target): Rename to ...
9014 (add_target_with_completer): ... this. Call set_cmd_completer
9015 if parameter completer is not NULL.
9016 (add_target): New.
9017 * target.h: Include "command.h".
9018 (add_target_with_completer): Declare it.
9019
af312be7
JB
90202013-03-28 Joel Brobecker <brobecker@adacore.com>
9021
9022 * coffread.c (is_import_fixup_symbol): New function.
9023 (record_minimal_symbol): Use is_import_fixup_symbol to
9024 detect import fixup symbols, and discard them.
9025
8a0459fd
DE
90262013-03-28 Doug Evans <dje@google.com>
9027
0349ea22
DE
9028 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9029 types hash table until we know we need it.
9030
f652bce2
DE
9031 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9032 index numbers.
9033
e4a48d9d
DE
9034 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9035 All callers updated.
9036 (dw2_print_stats): Print #read CUs too.
9037 (dump_die_shallow): Print signatured types better.
9038
8a0459fd
DE
9039 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9040 info_or_types_section to section. All uses updated.
9041 (struct dwo_unit): Ditto.
9042
bd3eecc3
PA
90432013-03-28 Pedro Alves <palves@redhat.com>
9044
9045 * NEWS (New options): New section.
9046 (New options): Mention set/show remote trace-status-packet.
9047 * remote.c (PACKET_qTStatus): New enumeration value.
9048 (remote_get_trace_status): Skip sending qTStatus if the packet is
9049 disabled. Use packet_ok.
9050 (_initialize_remote): Register a configuration command for
9051 qTStatus packet.
9052
41245087
DE
90532013-03-28 Doug Evans <dje@google.com>
9054
7edbb660
DE
9055 * symfile.c (find_separate_debug_file): Add comment.
9056 (terminate_after_last_dir_separator): Tweak comment.
9057
0018ea6f
DE
9058 * dwarf2read.c (create_partial_symtab): Add forward decl.
9059 (create_partial_symtab): Move to be closer to other psymtab functions.
9060 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9061
ca69b9e6
DE
9062 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9063 (compute_symtab_includes): Remove unnecessary forward declaration.
9064 (die_needs_namespace): Add comment marking group of functions for
9065 dwarf2 name computation.
9066
a9375afe
DE
9067 * typeprint.c (_initialize_typeprint): Improve type help text.
9068
41245087
DE
9069 * python/python.c (finish_python_initialization): Provide suggestion
9070 for how to tell gdb to find its python files.
9071
7f7cc265
PA
90722013-03-28 Pedro Alves <palves@redhat.com>
9073
9074 PR gdb/15294
9075
9076 * source.c (_initialize_source): Change back "set listsize" to an
9077 integer command.
9078
ec21308c
JK
90792013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9080
9081 PR gdb/15275
9082 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9083
840a9a1f
PA
90842013-03-27 Pedro Alves <palves@redhat.com>
9085
9086 * top.c (history_size): Rename to ...
9087 (history_size_setshow_var): ... this. Add comment.
9088 (show_commands): Use readline's 'history_length' instead of
9089 computing the history length by calling history_get in a loop.
9090 (set_history_size_command): Error out for sizes over INT_MAX.
9091 Restore previous history size on invalid size.
9092 (init_history): If HISTSIZE is negative, leave the history size as
9093 zero. Add comments.
9094 (init_main): Adjust.
9095
826ecc4d
PA
90962013-03-27 Pedro Alves <palves@redhat.com>
9097
9098 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9099 coff_pe_read" command to "set debug coff-pe-read".
9100
0ccfeeae
MM
91012013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9102
9103 * record.c (command_size_to_target_size): Fix size comparison.
9104 Change parameter type from pointer to integer to integer.
9105 Update all users.
9106
40653b35
PM
91072013-03-27 Pierre Muller <muller@sourceware.org>
9108
9109 * windows-nat.c (handle_output_debug_string): Avoid typecast
9110 from integer of different size warning.
9111
c62fa0e2
JB
91122013-03-26 Joel Brobecker <brobecker@adacore.com>
9113
9114 * windows-nat.c (handle_output_debug_string): Add empty line
9115 after local block variable definition.
9116
2c619be2
PA
91172013-03-26 Pedro Alves <palves@redhat.com>
9118
9119 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9120 (net_open): Make 'polls' local unsigned.
9121
1b493192
PA
91222013-03-26 Pedro Alves <palves@redhat.com>
9123
9124 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9125 a zuinteger command instead of uinteger.
9126
7ee70bf5
PA
91272013-03-26 Pedro Alves <palves@redhat.com>
9128
9129 * record-full.c (record_full_insn_num): Make it unsigned.
9130 (record_full_check_insn_num, record_full_message)
9131 (record_full_registers_change, record_full_xfer_partial): Remove
9132 record_full_insn_max_num check (it's always != 0).
9133 (record_full_info, record_full_restore): Use %u as format string.
9134 (): Use %u as format string.
9135 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9136 check (it's always != 0).
9137
dfd1f9bb
PA
91382013-03-26 Pedro Alves <palves@redhat.com>
9139
9140 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9141 and "set dcache size" commands zuinteger instead of uinteger.
9142
addb4faf
PA
91432013-03-26 Pedro Alves <palves@redhat.com>
9144
9145 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9146 command zuinteger instead of uinteger.
9147
b75bf488
PA
91482013-03-26 Pedro Alves <palves@redhat.com>
9149
9150 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9151 zuinteger instead of uinteger.
9152
42c634cb
PA
91532013-03-26 Pedro Alves <palves@redhat.com>
9154
9155 * record.c (record_insn_history_size_setshow_var)
9156 (record_call_history_size_setshow_var): New globals.
9157 (command_size_to_target_size): New function.
9158 (cmd_record_insn_history, cmd_record_call_history): Use
9159 command_size_to_target_size instead of cast.
9160 (validate_history_size, set_record_insn_history_size)
9161 (set_record_call_history_size): New functions.
9162 (_initialize_record): Install set_record_insn_history_size and
9163 set_record_call_history_size as "set" hooks of "set record
9164 instruction-history-size" and "set record
9165 function-call-history-size".
9166
1fb2e2b5
PA
91672013-03-26 Pedro Alves <palves@redhat.com>
9168
9169 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9170 use with history_max_entries use. Remove FIXME note.
9171
99c819ee
MM
91722013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9173
9174 * record-btrace.c (record_btrace_close): Call
9175 record_btrace_auto_disable.
9176
9f9e404c
JB
91772013-03-25 Joel Brobecker <brobecker@adacore.com>
9178
9179 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9180
ebcdfe33
DE
91812013-03-25 Doug Evans <dje@google.com>
9182
9183 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9184
24955f63
TT
91852013-03-25 Tom Tromey <tromey@redhat.com>
9186
9187 PR symtab/11462:
9188 * c-exp.y (exp): Add new productions for destructors after '.' and
9189 '->'.
9190 (write_destructor_name): New function.
9191
fce632b6
TT
91922013-03-25 Tom Tromey <tromey@redhat.com>
9193
9194 PR c++/9197:
9195 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9196 value_struct_elt, not lookup_struct_elt_type.
9197 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9198 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9199 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9200
a4341769
YQ
92012013-03-25 Yao Qi <yao@codesourcery.com>
9202
9203 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9204 instead of '_mkdir'.
9205
b5981e5a
EZ
92062013-03-23 Eli Zaretskii <eliz@gnu.org>
9207
9208 * windows-nat.c (windows_get_absolute_argv0): New function.
9209 * windows-nat.h: Add its prototype.
9210
9211 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9212 Use IS_DIR_SEPARATOR instead of looking for a character inside
9213 SLASH_STRING. Include filenames.h.
9214 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9215 relocate_gdb_directory works when passed gdb_program_name.
9216 Include windows-nat.h.
9217
598d3636
JK
92182013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9219
9220 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9221 * remote.c (trace_error): Remove the special handling of '2'.
9222 (readchar) <SERIAL_EOF>
9223 (readchar) <SERIAL_ERROR>
9224 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9225 (remote_get_trace_status): Call throw_exception if EX is
9226 TARGET_CLOSE_ERROR.
9227 * utils.c (perror_with_name): Rename to ...
9228 (throw_perror_with_name): ... here. New parameter errcode, describe it
9229 in the function comment.
9230 (perror_with_name): New function wrapper.
9231 * utils.h (enum errors): New stub declaration.
9232 (throw_perror_with_name): New declaration.
9233
82b821e9
PA
92342013-03-22 Pedro Alves <palves@redhat.com>
9235 Yao Qi <yao@codesourcery.com>
9236 Mark Kettenis <kettenis@gnu.org>
9237
9238 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9239 Don't let the user set the value to UINT_MAX directly.
9240 <var_integer>: Don't let the user set the value to INT_MAX
9241 directly.
9242
78a095c3
JK
92432013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9244
9245 * remote.c (remote_unpush_target): New function.
9246 (remote_open_1): Remove two pop_target calls, update one comment, add
9247 comment to target_preopen call. Replace pop_target call by
9248 remote_unpush_target call.
9249 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9250 pop_target calls by remote_unpush_target calls.
9251
3e74e146
PA
92522013-03-22 Pedro Alves <palves@redhat.com>
9253
9254 * linux-nat.c (linux_child_follow_fork): Don't call
9255 linux_enable_event_reporting.
9256 (linux_handle_extended_wait): Don't call
9257 linux_enable_event_reporting.
9258
a2213dca
PA
92592013-03-22 Pedro Alves <palves@redhat.com>
9260
9261 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9262 use it to rewrite the trampoline buffers with type gdb_byte[], and
9263 undefine the macro. Remove char* cast.
9264
bd712aed
DE
92652013-03-21 Doug Evans <dje@google.com>
9266
9267 New commands "mt set per-command {space,time,symtab} {on,off}".
9268 * NEWS: Add entry.
9269 * event-top.c: #include "maint.h".
9270 * main.c: #include "maint.h".
9271 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9272 timeval-utils.h, maint.h, cli/cli-setshow.h.
9273 (per_command_time, per_command_space): New static globals.
9274 (per_command_symtab): New static global.
9275 (per_command_setlist, per_command_showlist): New static globals.
9276 (struct cmd_stats): Move here from utils.c.
9277 (set_per_command_time): Renamed from set_display_time in utils.c
9278 and moved here. All callers updated.
9279 (set_per_command_space): Renamed from set_display_space in utils.c
9280 and moved here. All callers updated.
9281 (count_symtabs_and_blocks): New function.
9282 (report_command_stats): Moved here from utils.c. Add support for
9283 printing symtab stats. Only print data if enabled before command
9284 executed.
9285 (make_command_stats_cleanup): Ditto.
9286 (sert_per_command_cmd, show_per_command_cmd): New functions.
9287 (_initialize_maint_cmds): Add new commands
9288 mt set per-command {space,time,symtab} {on,off}.
9289 * maint.h: New file.
9290 * top.c: #include "maint.h".
9291 * utils.c (reset_prompt_for_continue_wait_time): New function.
9292 (get_prompt_for_continue_wait_time): New function.
9293 * utils.h (reset_prompt_for_continue_wait_time): Declare
9294 (get_prompt_for_continue_wait_time): Declare.
9295 (make_command_stats_cleanup): Moved to maint.h.
9296 (set_display_time, set_display_space): Moved to maint.h and renamed
9297 to set_per_command_time, set_per_command_space.
9298 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9299 parse_binary_operation and made non-static. Don't call error,
9300 just return an error marker. All callers updated.
9301 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9302
d76488d8
TT
93032013-03-21 Tom Tromey <tromey@redhat.com>
9304
9305 * symfile.c (alloc_section_addr_info): Update header. Don't set
9306 'num_sections' field.
9307 (build_section_addr_info_from_section_table): Set 'num_sections'.
9308 (build_section_addr_info_from_bfd): Likewise.
9309 (build_section_addr_info_from_objfile): Remove dead loop
9310 condition.
9311 (free_section_addr_info): Unconditionally call xfree.
9312 (relative_addr_info_to_section_offsets, addrs_section_sort)
9313 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9314 condition.
9315 (syms_from_objfile_1): Remove dead 'if' condition. Check
9316 'num_sections'.
9317 (add_symbol_file_command): Set 'num_sections'.
9318 * symfile-mem.c (symbol_file_add_from_memory): Set
9319 'num_sections'.
9320 * somread.c (som_symfile_offsets): Remove dead loop condition.
9321 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9322 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9323
a72e5169 93242013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9325
9326 * tracepoint.h (decode_agent_options): Add 'trace_string'
9327 argument.
9328 * tracepoint.c (decode_agent_options): Add 'trace_string'
9329 argument.
9330 (validate_actionline): Update.
9331 (collect_symbol): Add 'trace_string' argument.
9332 (struct add_local_symbols_data) <trace_string>: New field.
9333 (do_collect_symbol): Update.
9334 (add_local_symbols): Add 'trace_string' argument.
9335 (encode_actions_1): Update.
9336 (trace_dump_actions): Update.
9337 * dwarf2loc.c (access_memory): Update.
9338 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9339 * ax-general.c (new_agent_expr): Update.
9340 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9341 (gen_trace_for_return_address): Add argument.
9342 (trace_kludge, trace_string_kludge): Remove.
9343 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9344 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9345 (gen_trace_for_var): Add 'trace_string' argument.
9346 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9347 (gen_printf, agent_eval_command_one): Update.
9348
b2f83c08
TT
93492013-03-21 Tom Tromey <tromey@redhat.com>
9350
9351 PR exp/15109:
9352 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9353 Handle FILENAME token.
9354
9507860e
TT
93552013-03-21 Tom Tromey <tromey@redhat.com>
9356
9357 * c-exp.y (YYPRINT): Define.
9358 (c_print_token): New function.
9359
e403aa4b
TT
93602013-03-21 Tom Tromey <tromey@redhat.com>
9361
9362 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9363
af307d6a
YQ
93642013-03-21 Yao Qi <yao@codesourcery.com>
9365
9366 * ctf.c: Include "gdb_stat.h".
9367 [USE_WIN32API]: New macro 'mkdir'.
9368 (ctf_start): Use permission bits macros if they are defined.
9369
fb81d016
KS
93702013-03-20 Keith Seitz <keiths@redhat.com>
9371
9372 * breakpoint.h (struct breakpoint): Add comment to
9373 extra_string indicating that this member is mallod'd.
9374 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9375
ef0026f0
PA
93762013-03-20 Pedro Alves <palves@redhat.com>
9377
9378 PR gdb/15289
9379
9380 * cli/cli-setshow.c (do_set_command)
9381 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9382 the result of parsing the command argument. Throw error if the
9383 value is greater than UINT_MAX. Print the invalid value with
9384 plongest.
9385 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9386 result of parsing the command argument. Throw error if the value
9387 is greater than INT_MAX, not greater or equal. Also throw error
9388 if the value is less than INT_MIN. Print the invalid value with
9389 plongest.
9390 <var_zuinteger_unlimited>: Throw error if the value is greater
9391 than INT_MAX, not greater or equal.
9392 (do_show_command) <var_integer, var_zinteger,
9393 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9394
24d6c2a0
TT
93952013-03-20 Tom Tromey <tromey@redhat.com>
9396
9397 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9398 if possible.
9399 * dwarf2read.c (read_func_scope): Remove old FIXME.
9400 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9401 not LOC_COMPUTED.
9402 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9403 Unconditionally call via computed ops, if possible.
9404 * printcmd.c (address_info): Unconditionally call via computed ops,
9405 if possible.
9406 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9407 if possible.
9408 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9409 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9410 if possible.
9411
f1e6e072
TT
94122013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9413 Tom Tromey <tromey@redhat.com>
9414
9415 PR symtab/8421:
9416 * coffread.c (coff_register_index): New global.
9417 (process_coff_symbol, coff_read_enum_type): Set
9418 SYMBOL_ACLASS_INDEX.
9419 (_initialize_coffread): Initialize new global.
9420 * dwarf2loc.c (locexpr_find_frame_base_location)
9421 (dwarf2_block_frame_base_locexpr_funcs)
9422 (loclist_find_frame_base_location)
9423 (dwarf2_block_frame_base_loclist_funcs): New.
9424 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9425 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9426 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9427 (dwarf2_block_frame_base_loclist_funcs): New.
9428 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9429 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9430 globals.
9431 (read_func_scope): Update.
9432 (fixup_go_packaging, mark_common_block_symbol_computed)
9433 (var_decode_location, new_symbol_full, dwarf2_const_value):
9434 Set SYMBOL_ACLASS_INDEX.
9435 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9436 (_initialize_dwarf2_read): Initialize new globals.
9437 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9438 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9439 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9440 globals.
9441 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9442 (_initialize_mdebugread): Initialize new globals.
9443 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9444 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9445 (stab_register_index, stab_regparm_index): New globals.
9446 (define_symbol, read_enum_type, common_block_end): Set
9447 SYMBOL_ACLASS_INDEX.
9448 (_initialize_stabsread): Initialize new globals.
9449 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9450 globals.
9451 (MAX_SYMBOL_IMPLS): New define.
9452 (register_symbol_computed_impl, register_symbol_block_impl)
9453 (register_symbol_register_impl)
9454 (initialize_ordinary_address_classes): New functions.
9455 (_initialize_symtab): Call initialize_ordinary_address_classes.
9456 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9457 (struct symbol_impl): New.
9458 (SYMBOL_ACLASS_BITS): New define.
9459 (struct symbol) <aclass, ops>: Remove fields.
9460 <aclass_index>: New field.
9461 (symbol_impls): Declare.
9462 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9463 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9464 (register_symbol_computed_impl, register_symbol_block_impl)
9465 (register_symbol_register_impl): Declare.
9466 (struct symbol_computed_ops): Add location_has_loclist.
9467 (struct symbol_block_ops): New.
9468 (SYMBOL_BLOCK_OPS): New.
9469 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9470
dbccfd4c
TT
94712013-03-20 Tom Tromey <tromey@redhat.com>
9472
9473 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9474 (print_partial_symbols, recursively_search_psymtabs): Use
9475 PSYMBOL_CLASS.
9476
e3f1ad4f
PM
94772013-03-20 Pierre Muller <muller@sourceware.org>
9478
9479 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9480 addtion, subtraction, multiplication and division binary operator.
9481
460014f5
JK
94822013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9483
9484 Code cleanup.
9485 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9486 * bsd-kvm.c (bsd_kvm_close): Likewise.
9487 * bsd-uthread.c (bsd_uthread_close): Likewise.
9488 * corelow.c (core_close): Likewise.
9489 (core_close_cleanup): Remove parameter quitting from a caller.
9490 * event-top.c (async_disconnect): Likewise.
9491 * exec.c (exec_close_1): Remove parameter quitting.
9492 * go32-nat.c (go32_close): Likewise.
9493 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9494 parameter quitting from a caller.
9495 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9496 variable.
9497 (mips_linux_close): Remove parameter quitting. Remove parameter
9498 quitting from a caller.
9499 * monitor.c (monitor_close): Remove parameter quitting.
9500 * monitor.h (monitor_close): Likewise.
9501 * record-btrace.c (record_btrace_close): Likewise.
9502 * record-full.c (record_full_close): Likewise.
9503 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9504 it also from fprintf_unfiltered.
9505 * remote-mips.c (mips_close): Remove parameter quitting.
9506 (mips_detach): Remove parameter quitting from a caller.
9507 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9508 (gdbsim_close): Remove duplicate function comment. Remove parameter
9509 quitting and remove it also from printf_filtered.
9510 * remote.c (remote_close): Remove parameter quitting.
9511 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9512 * target.c (update_current_target): Remove parameter int from to_close
9513 de_fault.
9514 (push_target, unpush_target, pop_target): Remove parameter quitting from
9515 a caller.
9516 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9517 Remove parameter quitting from a caller.
9518 (target_preopen): Remove parameter quitting from a caller.
9519 (target_close): Remove parameter quitting. Remove parameter quitting
9520 from a caller two times. Remove parameter quitting also from
9521 fprintf_unfiltered.
9522 * target.h (struct target_ops): Remove parameter quitting and as int
9523 from fields to_xclose and to_close.
9524 (extern struct target_ops current_target):
9525 (target_close, pop_all_targets): Remove parameter quitting. Update the
9526 comment.
9527 (pop_all_targets_above): Remove parameter quitting.
9528 * top.c (quit_target): Remove parameter quitting from a caller.
9529 * tracepoint.c (tfile_close): Remove parameter quitting.
9530 * windows-nat.c (windows_close): Remove parameter quitting.
9531
35a7120b
CV
95322013-03-20 Corinna Vinschen <vinschen@redhat.com>
9533
9534 * windows-nat.c (handle_output_debug_string): Replace call
9535 to string_to_core_addr with call to strtoull.
9536
8249a5a9
YQ
95372013-03-20 Yao Qi <yao@codesourcery.com>
9538
9539 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9540 and write it to CTF metadata.
9541
2c15ef43
CV
95422013-03-19 Corinna Vinschen <vinschen@redhat.com>
9543
9544 * windows-nat.c (handle_output_debug_string): Change type of n to
9545 SIZE_T to avoid crash on 64 bit systems.
9546
1cdd3232
EZ
95472013-03-17 Eli Zaretskii <eliz@gnu.org>
9548
9549 * python/python-internal.h (HAVE_SNPRINTF)
9550 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9551 about redefinition of snprintf by pyerrors.h.
9552
3cb2ab1a
SE
95532013-03-15 Steve Ellcey <sellcey@mips.com>
9554
9555 * remote-sim.c (sim_command_completer): Make char arguments const.
9556
9ce98649
TT
95572013-03-15 Tom Tromey <tromey@redhat.com>
9558
9559 PR c++/15116:
9560 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9561
dccee2de
TT
95622013-03-14 Tom Tromey <tromey@redhat.com>
9563
9564 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9565 New fields.
9566 (get_file_crc): Move from symfile.c.
9567 (gdb_bfd_crc): New function.
9568 * gdb_bfd.h (gdb_bfd_crc): Declare.
9569 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9570 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9571 (separate_debug_file_exists): Use gdb_bfd_crc.
9572
cc0ea93c
TT
95732013-03-14 Tom Tromey <tromey@redhat.com>
9574
9575 * symfile.c (get_debug_link_info): Remove.
9576 (find_separate_debug_file_by_debuglink): Use
9577 bfd_get_debug_link_info.
9578
08c23b0d
TT
95792013-03-14 Tom Tromey <tromey@redhat.com>
9580
9581 * symtab.c (error_in_psymtab_expansion): New function.
9582 (lookup_symbol_aux_quick)
9583 (basic_lookup_transparent_type_quick): Remove "last resort"
9584 code. Use error_in_psymtab_expansion.
9585
288e77a7
JK
95862013-03-14 Doug Evans <dje@google.com>
9587 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9590 any successful compare_filenames_for_search or FILENAME_CMP.
9591 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9592 * symtab.c (iterate_over_some_symtabs): Likewise.
9593
8f1b8b82
JK
95942013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9595
9596 * source.c (print_source_lines_base): Make a local copy of
9597 symtab_to_fullname.
9598
23eb71e4
JK
95992013-03-14 Hui Zhu <hui_zhu@mentor.com>
9600 Jan Kratochvil <jan.kratochvil@redhat.com>
9601
9602 * source.c (print_source_lines_base): Suppress "file" for TUI.
9603
bb869963
SDJ
96042013-03-14 Keith Seitz <keiths@redhat.com>
9605 Alan Matsuoka <alanm@redhat.com>
9606
9607 PR c++/15203
9608 PR c++/15210
9609 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9610 TYPE_CODE_METHOD.
9611 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9612 symbols.
9613
d6682f9e
YQ
96142013-03-14 Yao Qi <yao@codesourcery.com>
9615
9616 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9617 status to tfile if trace is stopped by command 'tstop'.
9618
a22fa6e4
YQ
96192013-03-14 Yao Qi <yao@codesourcery.com>
9620
9621 * tracepoint.c (tfile_write_status): Write trace notes and user
9622 name into tfile if they are not NULL.
9623
d0353e76
YQ
96242013-03-14 Hui Zhu <hui@codesourcery.com>
9625 Yao Qi <yao@codesourcery.com>
9626
9627 * Makefile.in (REMOTE_OBS): Add ctf.o.
9628 (SFILES): Add ctf.c.
9629 (HFILES_NO_SRCDIR): Add ctf.h.
9630 * ctf.c, ctf.h: New files.
9631 * tracepoint.c: Include 'ctf.h'.
9632 (collect_pseudocommand): Remove static.
9633 (trace_save_command): Parse option "-ctf".
9634 Produce different trace file writers per option.
9635 Adjust output message.
9636 (trace_save_tfile, trace_save_ctf): New.
9637 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9638 * mi/mi-main.c: Include 'ctf.h'.
9639 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9640 trace_save_tfile or trace_save_ctf.
9641 * NEWS: Mention these changes.
9642
3f43bc09
YQ
96432013-03-14 Yao Qi <yao@codesourcery.com>
9644
9645 * tracepoint.c (trace_file_writer_xfree): New.
9646 (struct tfile_writer_data): New.
9647 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9648 (tfile_write_header, tfile_write_regblock_type): New.
9649 (tfile_write_status, tfile_write_uploaded_tsv): New.
9650 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9651 (tfile_write_raw_data, (tfile_end): New.
9652 (tfile_write_ops): New global variable.
9653 (TRACE_WRITE_R_BLOCK): New macro.
9654 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9655 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9656 (TRACE_WRITE_V_BLOCK): New macro.
9657 (trace_save): Add extra one parameter WRITER. Make it static.
9658 Use WRITER to writer trace.
9659 (tfile_trace_file_writer_new): New.
9660 (trace_save_command): Caller update.
9661 (trace_save_tfile): Write trace data in TFILE format.
9662 * tracepoint.h (struct trace_frame_write_ops): New.
9663 (struct trace_file_write_ops): New.
9664 (struct trace_file_writer): New.
9665 (trace_save): Remove its declaration.
9666 (trace_save_tfile): Declare it.
9667 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9668 instead of trace_save.
9669
58665b40
PA
96702013-03-13 Pedro Alves <palves@redhat.com>
9671
9672 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9673
10217050
PA
96742013-03-13 Pedro Alves <palves@redhat.com>
9675
9676 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9677 commented out code.
9678 * demangle.c (current_demangling_style_string): Make it const.
9679 (set_demangling_command): Assert the demangling style is known.
9680 Remove all handling of unknown styles. Set
9681 'current_demangling_style_string' to an element of the
9682 demangling_style_names array.
9683 (set_demangling_style): Delete.
9684 (_initialize_demangler): Set current_demangling_style_string to the
9685 element of the demangling_style_names array that corresponds to
9686 the default demangling style. Remove FIXME note. Don't call
9687 set_demangling_style.
9688 * gdb-demangle.h (set_demangling_style): Remove declaration.
9689
6f937416
PA
96902013-03-13 Pedro Alves <palves@redhat.com>
9691
9692 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9693 fields const.
9694 (ada_make_symbol_completion_list): Make "text0" parameter const.
9695 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9696 * breakpoint.c (condition_completer): Make "text" and "word"
9697 parameters const. Adjust.
9698 (check_tracepoint_command): Adjust to validate_actionline
9699 prototype change.
9700 (catch_syscall_completer): Make "text" and "word" parameters
9701 const.
9702 * cli/cli-cmds.c (show_user): Make "comname" local const.
9703 (valid_command_p): Make "command" parameter const.
9704 (alias_command): Make "alias_prefix" and "command_prefix" locals
9705 const.
9706 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9707 (add_alias_cmd): Make "name" and "oldname" parameters const.
9708 Adjust. No longer make copy of OLDNAME.
9709 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9710 (add_setshow_cmd_full, add_setshow_enum_cmd)
9711 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9712 (add_setshow_filename_cmd, add_setshow_string_cmd)
9713 (add_setshow_string_noescape_cmd)
9714 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9715 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9716 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9717 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9718 Make "name" parameter const.
9719 (help_cmd): Rename "command" parameter to "arg". New const local
9720 "command".
9721 (find_cmd): Make "command" parameter const.
9722 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9723 deprecated_cmd_warning prototype change.
9724 (undef_cmd_error): Make "cmdtype" parameter const.
9725 (lookup_cmd): Make "line" parameter const.
9726 (deprecated_cmd_warning): Change type of "text" parameter to
9727 pointer to const char, from pointer to pointer to char. Adjust.
9728 (lookup_cmd_composition): Make "text" parameter const.
9729 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9730 parameters const.
9731 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9732 const.
9733 * cli/cli-script.c (validate_comname): Make "tem" local const.
9734 (define_command): New const local "tem_c". Use it in calls to
9735 lookup_cmd.
9736 (document_command): Make "tem" and "comfull" locals const.
9737 (show_user_1): Make "prefix" and "name" parameters const.
9738 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9739 const.
9740 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9741 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9742 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9743 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9744 (complete_on_enum, add_setshow_enum_cmd)
9745 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9746 (add_setshow_filename_cmd, add_setshow_string_cmd)
9747 (add_setshow_string_noescape_cmd)
9748 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9749 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9750 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9751 Change prototypes, constifying strings.
9752 * completer.c (noop_completer, filename_completer): Make "text"
9753 and "prefix" parameters const.
9754 (location_completer, expression_completer)
9755 (complete_line_internal): Make "text" and "prefix" parameters
9756 const and adjust.
9757 (command_completer, signal_completer): Make "text" and "prefix"
9758 parameters const.
9759 * completer.h (noop_completer, filename_completer)
9760 (expression_completer, location_completer, command_completer)
9761 (signal_completer): Change prototypes.
9762 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9763 parameters const.
9764 * cp-abi.c (cp_abi_completer): Likewise.
9765 * expression.h (parse_expression_for_completion): Change
9766 prototype.
9767 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9768 parameters const.
9769 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9770 * infrun.c (handle_completer): Make "text" and "word" parameters
9771 const.
9772 * interps.c (interpreter_completer): Make "text" and "word"
9773 parameters const.
9774 * language.h (struct language_defn)
9775 <la_make_symbol_completion_list>: Make "text" and "word"
9776 parameters const.
9777 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9778 (parse_exp_in_context): Rename to ...
9779 (parse_exp_in_context_1): ... this.
9780 (parse_exp_in_context): Reimplement, with const hack from
9781 parse_exp_1.
9782 (parse_expression_for_completion): Make "string" parameter const.
9783 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9784 to pointer to const char. Adjust.
9785 (print_command_1): Make "exp" parameter const.
9786 (output_command): Rename to ...
9787 (output_command_const): ... this. Make "exp" parameter const.
9788 (output_command): Reimplement.
9789 (x_command): Adjust.
9790 (display_command): Rename "exp" parameter to "arg". New "exp"
9791 local, const version of "arg".
9792 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9793 "cmd_name" local const.
9794 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9795 call.
9796 (cmdpy_completer): Make "text" and "word" parameters const.
9797 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9798 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9799 const.
9800 * remote.c (_initialize_remote): Make "cmd_name" local const.
9801 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9802 parameters const. Adjust.
9803 (completion_list_add_fields): Make "sym_text", "text" and "word"
9804 parameters const.
9805 (struct add_name_data) <sym_text, text, word>: Make fields const.
9806 (default_make_symbol_completion_list_break_on): Make "text" and
9807 "word" parameters const. Adjust locals.
9808 (default_make_symbol_completion_list)
9809 (make_symbol_completion_list, make_symbol_completion_type)
9810 (make_symbol_completion_list_fn): Make "text" and "word"
9811 parameters const.
9812 (make_file_symbol_completion_list): Make "text", "word" and
9813 "srcfile" parameters const. Adjust locals.
9814 (add_filename_to_list): Make "text" and "word" parameters const.
9815 (struct add_partial_filename_data) <text, word>: Make fields
9816 const.
9817 (make_source_files_completion_list): Make "text" and "word"
9818 parameters const.
9819 * symtab.h (default_make_symbol_completion_list_break_on)
9820 (default_make_symbol_completion_list, make_symbol_completion_list)
9821 (make_symbol_completion_type enum type_code)
9822 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9823 (make_source_files_completion_list): Change prototype.
9824 * top.c (execute_command): Adjust to pass pointer to pointer to
9825 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9826 change.
9827 (set_verbose): Make "cmdname" local const.
9828 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9829 and adjust.
9830 (validate_actionline): Make "line" parameter a pointer to const
9831 char, and adjust.
9832 (encode_actions_1): Make "action_exp" local const, and adjust.
9833 (encode_actions): Adjust.
9834 (replace_comma): Delete.
9835 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9836 const, and adjust. Don't frob the action string while splitting
9837 it at commas. Instead, make a copy of each split substring in
9838 turn.
9839 (trace_dump_command): Adjust to validate_actionline prototype
9840 change.
9841 * tracepoint.h (decode_agent_options, decode_agent_options)
9842 (encode_actions, validate_actionline): Change prototypes.
9843 * valprint.h (output_command): Delete declaration.
9844 (output_command_const): Declare.
9845 * value.c (function_destroyer): Cast const away in xfree call.
9846
a0bcdaa7
PA
98472013-03-13 Pedro Alves <palves@redhat.com>
9848
9849 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9850 rather than casting 'const char * const *' to 'const char **'.
9851 * ada-lex.l (processInt): Make "trailer" local const. Remove
9852 'const char **' cast.
9853 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9854 locals, and use those as strtol output pointer, instead than doing
9855 invalid casts to from 'const char **' to 'char **'.
9856 (_initialize_demangle): Remove cast.
9857 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9858 locals, and use those as strtol output pointer, instead than doing
9859 invalid casts to from 'const char **' to 'char **'.
9860 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9861 casts.
9862 * stap-probe.c (stap_parse_register_operand)
9863 (stap_parse_single_operand): Likewise.
9864
8ddb1965
YQ
98652013-03-13 Yao Qi <yao@codesourcery.com>
9866
9867 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9868 the last matched 'V' blcok in trace frame.
9869
2d450646
JB
98702013-03-12 Joel Brobecker <brobecker@adacore.com>
9871
9872 * NEWS: Create a new section for the next release branch.
9873 Rename the section of the current branch, now that it has
9874 been cut.
9875
b4b79973 98762013-03-12 Joel Brobecker <brobecker@adacore.com>
9877
9878 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9879 * version.in: Bump version to 7.6.50.20130312-cvs.
9880
ee047554
KS
98812013-03-12 Keith Seitz <keiths@redhat.com>
9882
9883 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9884 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9885 Remove temporary copy of input string.
9886 (mi_execute_command_wrapper): Make "cmd" const.
9887 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9888 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9889 Use const strings.
9890 (mi_parse): Make "cmd" const.
9891 Use const strings.
9892 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9893
bbc13ae3
KS
98942013-03-12 Keith Seitz <keiths@redhat.com>
9895
9896 * ada-lang.c (ada_read_renaming_var_value): Pass const
9897 pointer to expression string to parse_exp_1.
9898 (create_excep_cond_exprs): Likewise.
9899 * ax-gdb.c (agent_eval_command_one): Likewise.
9900 (maint_agent_printf_command): Likewise.
9901 Constify much of the string handling/parsing.
9902 * breakpoint.c (set_breakpoint_condition): Pass const
9903 pointer to expression string to parse_exp_1.
9904 (update_watchpoint): Likewise.
9905 (parse_cmd_to_aexpr): Constify string handling.
9906 Pass const pointer to parse_exp_1.
9907 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9908 (find_condition_and_thread): Likewise.
9909 Make TOK const.
9910 (watch_command_1): Make "arg" const.
9911 Constify string handling.
9912 Copy the expression string instead of changing the input
9913 string.
9914 (update_breakpoint_location): Pass const pointer to
9915 parse_exp_1.
9916 * eval.c (parse_and_eval_address): Make "exp" const.
9917 (parse_to_comma_and_eval): Make "expp" const.
9918 (parse_and_eval): Make "exp" const.
9919 * expression.h (parse_expression): Make argument const.
9920 (parse_exp_1): Make first argument const.
9921 * findcmd.c (parse_find_args): Treat "args" as const.
9922 * linespec.c (parse_linespec): Pass const pointer to
9923 linespec_expression_to_pc.
9924 (linespec_expression_to_pc): Make "exp_ptr" const.
9925 * parse.c (parse_exp_1): Make "stringptr" const.
9926 Make a copy of the expression to pass to parse_exp_in_context until
9927 this whole interface can be constified.
9928 (parse_expression): Make "string" const.
9929 * printcmd.c (ui_printf): Treat "arg" as const.
9930 Handle const strings.
9931 * tracepoint.c (validate_actionline): Pass const pointer to
9932 all calls to parse_exp_1.
9933 (encode_actions_1): Likewise.
9934 * value.h (parse_to_comma_and_eval): Make argument const.
9935 (parse_and_eval_address): Likewise.
9936 (parse_and_eval): Likewise.
9937 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9938 (varobj_set_value): Likewise.
9939 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9940 constify string handling.
9941 Pass const pointers to parse_and_eval_address and
9942 parse_to_comman_and_eval.
9943 * cli/cli-utils.c (skip_to_space): Rename to ...
9944 (skip_to_space_const): ... this. Handle const strings.
9945 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9946 skip_to_space_const.
9947 (skip_to_space_const): Declare.
9948 * common/format.c (parse_format_string): Make "arg" const.
9949 Handle const strings.
9950 * common/format.h (parse_format_string): Make "arg" const.
9951 * gdbserver/ax.c (ax_printf): Make "format" const.
9952 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9953 of the expression string.
9954
f3cec7e6
HZ
99552013-03-12 Hui Zhu <hui@codesourcery.com>
9956
9957 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9958
9df7235c
HZ
99592013-03-12 Yao Qi <yao@codesourcery.com>
9960 Hui Zhu <hui@codesourcery.com>
9961
9962 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9963 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9964 DW_OP_deref_size.
9965
82d049ab
PH
99662013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9967
5f8e0b8f
MF
9968 * ada-lex.l (rules): Only recognize 'thread' as a
9969 delimiter when followed by numerals, as for c-exp.y.
9970 Use new rewind_to_char function to rewind the input for
9971 expression-delimiting tokens.
9972 (rewind_to_char): New function.
82d049ab 9973
8c1fb155
JK
99742013-03-11 Pedro Alves <palves@redhat.com>
9975 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * configure: Regenerate.
9978 * configure.ac (check dynamic export flag): Link python test with
9979 $PYTHON_LIBS.
9980
cc81e1c6
DE
99812013-03-11 Doug Evans <dje@google.com>
9982 Keith Seitz <keiths@redhat.com>
9983
9984 * linespec.c (find_linespec_symbols): Call find_function_symbols
9985 first, and then call lookup_prefix_sym/find_method.
9986
39086a0e
PA
99872013-03-11 Pedro Alves <palves@redhat.com>
9988
9989 * charset.c (convert_between_encodings): Don't cast between
9990 different pointer to pointer types. Instead, make the 'inp' local
9991 be of the type iconv expects.
9992 (wchar_iterate): Don't cast between different pointer to pointer
9993 types. Instead, use new pointer local of the type iconv expects.
9994 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9995 Add new local of type char pointer, and use it to get a
9996 char/string view of the byte buffer, instead of casting between
9997 pointer to pointer types.
9998
90585175
HAQ
99992013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10000
10001 * remote.c (remote_set_trace_buffer_size): Move != operator
10002 to the start of next line to fix an ARI warning.
10003
59ea5688
MM
100042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10005
10006 * NEWS: Add record changes.
10007
946287b7
MM
100082013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10009
10010 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10011 the instruction history disassembly.
10012 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10013 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10014
afedecd3
MM
100152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10016
10017 * Makefile.in (SFILES): Add record-btrace.c
10018 (COMMON_OBS): Add record-btrace.o
10019 * record-btrace.c: New.
10020 * objfiles.c: Include btrace.h.
10021 (free_objfile): call btrace_free_objfile.
10022
15984c13
MM
100232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10024
10025 * target.c (target_call_history, target_call_history_from,
10026 target_call_history_range): New.
10027 * target.h (target_ops) <to_call_history, to_call_history_from,
10028 to_call_history_range>: New fields.
10029 (target_call_history, target_call_history_from,
10030 target_call_history_range): New declaration.
10031 * record.c (get_call_history_modifiers, cmd_record_call_history,
10032 record_call_history_size): New.
10033 (_initialize_record): Add the "record function-call-history" command.
10034 Add "set/show record function-call-history-size" commands.
10035 * record.h (record_print_flag): New.
10036
67c86d06
MM
100372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10038
10039 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10040 to_insn_history_range>: New fields.
10041 (target_insn_history): New.
10042 (target_insn_history_from): New.
10043 (target_insn_history_range): New.
10044 * target.c (target_insn_history): New.
10045 (target_insn_history_from): New.
10046 (target_insn_history_range): New.
10047 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10048 (record_insn_history_size): New.
10049 (get_insn_number): New.
10050 (get_context_size): New.
10051 (no_chunk): New.
10052 (get_insn_history_modifiers): New.
10053 (cmd_record_insn_history): New.
10054 (_initialize_record): Add "set/show record instruction-history-size"
10055 command. Add "record instruction-history" command.
10056
7c1687a9
MM
100572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10058
10059 * record.h (record_disconnect): New.
10060 (record_detach): New.
10061 (record_mourn_inferior): New.
10062 (record_kill): New.
10063 * record-full.c (record_disconnect, record_detach,
10064 record_mourn_inferior, record_kill): Move to...
10065 * record.c: ...here.
10066 (DEBUG): New.
10067 (record_stop): New.
10068 (record_unpush): New.
10069 (cmd_record_stop): Call record_stop. Replace unpush_target
10070 call with record_unpush call.
10071 (record_disconnect, record_detach): Assert that the target
10072 is of record stratum. Call record_unpush, record_stop, and
10073 DEBUG.
10074 (record_mourn_inferior, record_kill): Assert that the target
10075 is of record stratum. Call record_unpush and DEBUG.
10076
25ea693b
MM
100772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10078
10079 * record-full.h, record-full.c (record_memory_query): Rename
10080 to ...
10081 (record_full_memory_query): ...this. Update all users.
10082 (record_arch_list_add_reg): Rename to ...
10083 (record_full_arch_list_add_reg): ...this. Update all users.
10084 (record_arch_list_add_mem): Rename to ...
10085 (record_full_arch_list_add_mem): ...this. Update all users.
10086 (record_arch_list_add_end): Rename to ...
10087 (record_full_arch_list_add_end): ...this. Update all users.
10088 (record_gdb_operation_disable_set): Rename to ...
10089 (record_full_gdb_operation_disable_set): ...this.
10090 Update all users.
10091
88d1aa9d
MM
100922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10093
10094 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10095 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10096 (RECORD_IS_REPLAY): Renamed to ...
10097 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10098 (RECORD_FILE_MAGIC): Renamed to ...
10099 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10100 (record_mem_entry): Renamed to ...
10101 (record_full_mem_entry): ... this. Updated all users.
10102 (record_reg_entry): Renamed to ...
10103 (record_full_reg_entry): ... this. Updated all users.
10104 (record_end_entry): Renamed to ...
10105 (record_full_end_entry): ... this. Updated all users.
10106 (record_type) <record_end, record_reg, record_mem>: Renamed
10107 to ...
10108 (record_full_type) <record_full_end, record_full_reg,
10109 record_full_mem>: ... this. Updated all users.
10110 (record_entry): Renamed to ...
10111 (record_full_entry): ... this. Updated all users.
10112 (record_core_buf_entry): Renamed to ...
10113 (record_full_core_buf_entry): ... this. Updated all users.
10114 (record_core_regbuf): Renamed to ...
10115 (record_full_core_regbuf): ... this. Updated all users.
10116 (record_core_start): Renamed to ...
10117 (record_full_core_start): ... this. Updated all users.
10118 (record_core_end): Renamed to ...
10119 (record_full_core_end): ... this. Updated all users.
10120 (record_core_buf_list): Renamed to ...
10121 (record_full_core_buf_list): ... this. Updated all users.
10122 (record_first): Renamed to ...
10123 (record_full_first): ... this. Updated all users.
10124 (record_list): Renamed to ...
10125 (record_full_list): ... this. Updated all users.
10126 (record_arch_list_head): Renamed to ...
10127 (record_full_arch_list_head): ... this. Updated all users.
10128 (record_arch_list_tail): Renamed to ...
10129 (record_full_arch_list_tail): ... this. Updated all users.
10130 (record_stop_at_limit): Renamed to ...
10131 (record_full_stop_at_limit): ... this. Updated all users.
10132 (record_insn_max_num): Renamed to ...
10133 (record_full_insn_max_num): ... this. Updated all users.
10134 (record_insn_num): Renamed to ...
10135 (record_full_insn_num): ... this. Updated all users.
10136 (record_insn_count): Renamed to ...
10137 (record_full_insn_count): ... this. Updated all users.
10138 (record_ops): Renamed to ...
10139 (record_full_ops): ... this. Updated all users.
10140 (record_core_ops): Renamed to ...
10141 (record_full_core_ops): ... this. Updated all users.
10142 (set_record_cmdlist): Renamed to ...
10143 (set_record_full_cmdlist): ... this. Updated all users.
10144 (show_record_cmdlist): Renamed to ...
10145 (show_record_full_cmdlist): ... this. Updated all users.
10146 (record_cmdlist): Renamed to ...
10147 (record_full_cmdlist): ... this. Updated all users.
10148 (record_beneath_to_resume_ops): Renamed to ...
10149 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10150 (record_beneath_to_resume): Renamed to ...
10151 (record_full_beneath_to_resume): ... this. Updated all users.
10152 (record_beneath_to_wait_ops): Renamed to ...
10153 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10154 (record_beneath_to_wait): Renamed to ...
10155 (record_full_beneath_to_wait): ... this. Updated all users.
10156 (record_beneath_to_store_registers_ops): Renamed to ...
10157 (record_full_beneath_to_store_registers_ops): ... this.
10158 Updated all users.
10159 (record_beneath_to_store_registers): Renamed to ...
10160 (record_full_beneath_to_store_registers): ... this.
10161 Updated all users.
10162 (record_beneath_to_xfer_partial_ops): Renamed to ...
10163 (record_full_beneath_to_xfer_partial_ops): ... this.
10164 Updated all users.
10165 (record_beneath_to_xfer_partial): Renamed to ...
10166 (record_full_beneath_to_xfer_partial): ... this.
10167 Updated all users.
10168 (record_beneath_to_insert_breakpoint): Renamed to ...
10169 (record_full_beneath_to_insert_breakpoint): ... this.
10170 Updated all users.
10171 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10172 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10173 Updated all users.
10174 (record_beneath_to_stopped_data_address): Renamed to ...
10175 (record_full_beneath_to_stopped_data_address): ... this.
10176 Updated all users.
10177 (record_beneath_to_async): Renamed to ...
10178 (record_full_beneath_to_async): ... this. Updated all users.
10179 (record_goto_insn): Renamed to ...
10180 (record_full_goto_insn): ... this. Updated all users.
10181 (record_save): Renamed to ...
10182 (record_full_save): ... this. Updated all users.
10183 (record_reg_alloc): Renamed to ...
10184 (record_full_reg_alloc): ... this. Updated all users.
10185 (record_reg_release): Renamed to ...
10186 (record_full_reg_release): ... this. Updated all users.
10187 (record_mem_alloc): Renamed to ...
10188 (record_full_mem_alloc): ... this. Updated all users.
10189 (record_mem_release): Renamed to ...
10190 (record_full_mem_release): ... this. Updated all users.
10191 (record_end_alloc): Renamed to ...
10192 (record_full_end_alloc): ... this. Updated all users.
10193 (record_end_release): Renamed to ...
10194 (record_full_end_release): ... this. Updated all users.
10195 (record_entry_release): Renamed to ...
10196 (record_full_entry_release): ... this. Updated all users.
10197 (record_list_release): Renamed to ...
10198 (record_full_list_release): ... this. Updated all users.
10199 (record_list_release_following): Renamed to ...
10200 (record_full_list_release_following): ... this.
10201 Updated all users.
10202 (record_list_release_first): Renamed to ...
10203 (record_full_list_release_first): ... this. Updated all users.
10204 (record_arch_list_add): Renamed to ...
10205 (record_full_arch_list_add): ... this. Updated all users.
10206 (record_get_loc): Renamed to ...
10207 (record_full_get_loc): ... this. Updated all users.
10208 (record_check_insn_num): Renamed to ...
10209 (record_full_check_insn_num): ... this. Updated all users.
10210 (record_arch_list_cleanups): Renamed to ...
10211 (record_full_arch_list_cleanups): ... this. Updated all users.
10212 (record_message): Renamed to ...
10213 (record_full_message): ... this. Updated all users.
10214 (record_message_wrapper): Renamed to ...
10215 (record_full_message_wrapper): ... this. Updated all users.
10216 (record_message_wrapper_safe): Renamed to ...
10217 (record_full_message_wrapper_safe): ... this. Updated all users.
10218 (record_gdb_operation_disable): Renamed to ...
10219 (record_full_gdb_operation_disable): ... this. Updated all users.
10220 (record_hw_watchpoint): Renamed to ...
10221 (record_full_hw_watchpoint): ... this. Updated all users.
10222 (record_exec_insn): Renamed to ...
10223 (record_full_exec_insn): ... this. Updated all users.
10224 (record_restore): Renamed to ...
10225 (record_full_restore): ... this. Updated all users.
10226 (record_async_inferior_event_token): Renamed to ...
10227 (record_full_async_inferior_event_token): ... this.
10228 Updated all users.
10229 (record_async_inferior_event_handler): Renamed to ...
10230 (record_full_async_inferior_event_handler): ... this.
10231 Updated all users.
10232 (record_core_open_1): Renamed to ...
10233 (record_full_core_open_1): ... this. Updated all users.
10234 (record_open_1): Renamed to ...
10235 (record_full_open_1): ... this. Updated all users.
10236 (record_open): Renamed to ...
10237 (record_full_open): ... this. Updated all users.
10238 (record_close): Renamed to ...
10239 (record_full_close): ... this. Updated all users.
10240 (record_resume_step): Renamed to ...
10241 (record_full_resume_step): ... this. Updated all users.
10242 (record_resumed): Renamed to ...
10243 (record_full_resumed): ... this. Updated all users.
10244 (record_execution_dir): Renamed to ...
10245 (record_full_execution_dir): ... this. Updated all users.
10246 (record_resume): Renamed to ...
10247 (record_full_resume): ... this. Updated all users.
10248 (record_get_sig): Renamed to ...
10249 (record_full_get_sig): ... this. Updated all users.
10250 (record_sig_handler): Renamed to ...
10251 (record_full_sig_handler): ... this. Updated all users.
10252 (record_wait_cleanups): Renamed to ...
10253 (record_full_wait_cleanups): ... this. Updated all users.
10254 (record_wait_1): Renamed to ...
10255 (record_full_wait_1): ... this. Updated all users.
10256 (record_wait): Renamed to ...
10257 (record_full_wait): ... this. Updated all users.
10258 (record_stopped_by_watchpoint): Renamed to ...
10259 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10260 (record_disconnect): Renamed to ...
10261 (record_full_disconnect): ... this. Updated all users.
10262 (record_detach): Renamed to ...
10263 (record_full_detach): ... this. Updated all users.
10264 (record_mourn_inferior): Renamed to ...
10265 (record_full_mourn_inferior): ... this. Updated all users.
10266 (record_kill): Renamed to ...
10267 (record_full_kill): ... this. Updated all users.
10268 (record_stopped_data_address): Renamed to ...
10269 (record_full_stopped_data_address): ... this. Updated all users.
10270 (record_registers_change): Renamed to ...
10271 (record_full_registers_change): ... this. Updated all users.
10272 (record_store_registers): Renamed to ...
10273 (record_full_store_registers): ... this. Updated all users.
10274 (record_xfer_partial): Renamed to ...
10275 (record_full_xfer_partial): ... this. Updated all users.
10276 (record_breakpoint): Renamed to ...
10277 (record_full_breakpoint): ... this. Updated all users.
10278 (record_breakpoint_p): Renamed to ...
10279 (record_full_breakpoint_p): ... this. Updated all users.
10280 (record_breakpoints): Renamed to ...
10281 (record_full_breakpoints): ... this. Updated all users.
10282 (record_sync_record_breakpoints): Renamed to ...
10283 (record_full_sync_record_breakpoints): ... this.
10284 Updated all users.
10285 (record_init_record_breakpoints): Renamed to ...
10286 (record_full_init_record_breakpoints): ... this.
10287 Updated all users.
10288 (record_insert_breakpoint): Renamed to ...
10289 (record_full_insert_breakpoint): ... this. Updated all users.
10290 (record_remove_breakpoint): Renamed to ...
10291 (record_full_remove_breakpoint): ... this. Updated all users.
10292 (record_can_execute_reverse): Renamed to ...
10293 (record_full_can_execute_reverse): ... this. Updated all users.
10294 (record_get_bookmark): Renamed to ...
10295 (record_full_get_bookmark): ... this. Updated all users.
10296 (record_goto_bookmark): Renamed to ...
10297 (record_full_goto_bookmark): ... this. Updated all users.
10298 (record_async): Renamed to ...
10299 (record_full_async): ... this. Updated all users.
10300 (record_can_async_p): Renamed to ...
10301 (record_full_can_async_p): ... this. Updated all users.
10302 (record_is_async_p): Renamed to ...
10303 (record_full_is_async_p): ... this. Updated all users.
10304 (record_execution_direction): Renamed to ...
10305 (record_full_execution_direction): ... this. Updated all users.
10306 (record_info): Renamed to ...
10307 (record_full_info): ... this. Updated all users.
10308 (record_delete): Renamed to ...
10309 (record_full_delete): ... this. Updated all users.
10310 (record_is_replaying): Renamed to ...
10311 (record_full_is_replaying): ... this. Updated all users.
10312 (record_goto_entry): Renamed to ...
10313 (record_full_goto_entry): ... this. Updated all users.
10314 (record_goto_begin): Renamed to ...
10315 (record_full_goto_begin): ... this. Updated all users.
10316 (record_goto_end): Renamed to ...
10317 (record_full_goto_end): ... this. Updated all users.
10318 (record_goto): Renamed to ...
10319 (record_full_goto): ... this. Updated all users.
10320 (init_record_ops): Renamed to ...
10321 (init_record_full_ops): ... this. Updated all users.
10322 (record_core_resume): Renamed to ...
10323 (record_full_core_resume): ... this. Updated all users.
10324 (record_core_kill): Renamed to ...
10325 (record_full_core_kill): ... this. Updated all users.
10326 (record_core_fetch_registers): Renamed to ...
10327 (record_full_core_fetch_registers): ... this. Updated all users.
10328 (record_core_prepare_to_store): Renamed to ...
10329 (record_full_core_prepare_to_store): ... this. Updated all users.
10330 (record_core_store_registers): Renamed to ...
10331 (record_full_core_store_registers): ... this. Updated all users.
10332 (record_core_xfer_partial): Renamed to ...
10333 (record_full_core_xfer_partial): ... this. Updated all users.
10334 (record_core_insert_breakpoint): Renamed to ...
10335 (record_full_core_insert_breakpoint): ... this. Updated all users.
10336 (record_core_remove_breakpoint): Renamed to ...
10337 (record_full_core_remove_breakpoint): ... this. Updated all users.
10338 (record_core_has_execution): Renamed to ...
10339 (record_full_core_has_execution): ... this. Updated all users.
10340 (init_record_core_ops): Renamed to ...
10341 (init_record_full_core_ops): ... this. Updated all users.
10342 (cmd_record_restore): Renamed to ...
10343 (cmd_record_full_restore): ... this. Updated all users.
10344 (record_save_cleanups): Renamed to ...
10345 (record_full_save_cleanups): ... this. Updated all users.
10346 (cmd_record_start): Renamed to ...
10347 (cmd_record_full_start): ... this. Updated all users.
10348 (set_record_insn_max_num): Renamed to ...
10349 (set_record_full_insn_max_num): ... this. Updated all users.
10350 (set_record_command): Renamed to ...
10351 (set_record_full_command): ... this. Updated all users.
10352 (show_record_command): Renamed to ...
10353 (show_record_full_command): ... this. Updated all users.
10354 (_initialize_record): Renamed to ...
10355 (_initialize_record_full): ... this. Updated all users.
10356
d02ed0bb
MM
103572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10358
10359 * record.h: Split into this and ...
10360 * record-full.h: ... this.
10361 * record.c: Split into this and ...
10362 * record-full.c: ... this.
10363 * target.h (target_ops): Add new fields to_info_record,
10364 to_save_record, to_delete_record, to_record_is_replaying,
10365 to_goto_record_begin, to_goto_record_end, to_goto_record.
10366 (target_info_record): New.
10367 (target_save_record): New.
10368 (target_supports_delete_record): New.
10369 (target_delete_record): New.
10370 (target_record_is_replaying): New.
10371 (target_goto_record_begin): New.
10372 (target_goto_record_end): New.
10373 (target_goto_record): New.
10374 * target.c (target_info_record): New.
10375 (target_save_record): New.
10376 (target_supports_delete_record): New.
10377 (target_delete_record): New.
10378 (target_record_is_replaying): New.
10379 (target_goto_record_begin): New.
10380 (target_goto_record_end): New.
10381 (target_goto_record): New.
10382 * record.h: Declare struct cmd_list_element.
10383 (record_cmdlist): New declaration.
10384 (set_record_cmdlist): New declaration.
10385 (show_record_cmdlist): New declaration.
10386 (info_record_cmdlist): New declaration.
10387 (cmd_record_goto): New declaration.
10388 * record.c: Remove unnecessary includes.
10389 Include inferior.h.
10390 (cmd_record_goto): Remove declaration.
10391 (record_cmdlist): Now extern. Initialize.
10392 (set_record_cmdlist): Now extern. Initialize.
10393 (show_record_cmdlist): Now extern. Initialize.
10394 (info_record_cmdlist): Now extern. Initialize.
10395 (find_record_target): New.
10396 (require_record_target): New.
10397 (cmd_record_start): Update.
10398 (cmd_record_delete): Remove target-specific code.
10399 Call target_delete_record.
10400 (cmd_record_stop): Unpush any record target.
10401 (set_record_insn_max_num): Move to record-full.c
10402 (set_record_command): Add comment.
10403 (show_record_command): Add comment.
10404 (info_record_command): Update comment.
10405 Remove target-specific code.
10406 Call the record target's to_info_record.
10407 (cmd_record_start): New.
10408 (cmd_record_goto): Now extern.
10409 Remove target-specific code.
10410 Call target_goto_begin, target_goto_end, or target_goto.
10411 (_initialize_record): Move record target ops initialization to
10412 record-full.c.
10413 Change "record" command help text.
10414 Move "record restore", "record set", and "record show" commands to
10415 record-full.c.
10416 * Makefile.in (SFILES): Add record-full.c.
10417 (HFILES_NO_SRCDIR): Add record-full.h.
10418 (COMMON_OBS): Add record-full.o.
10419 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10420 * arm-tdep.c: Include record-full.h.
10421 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10422 * i386-tdep.c: Include record-full.h.
10423 * infrun.c: Include record-full.h.
10424 * linux-record.c: Include record-full.h.
10425 * moxie-tdep.c: Include record-full.h.
10426 * record-full.c: Include record-full.h.
10427 Change module comment.
10428 (set_record_full_cmdlist): New.
10429 (show_record_full_cmdlist): New.
10430 (record_full_cmdlist): New.
10431 (record_goto_insn): New declaration.
10432 (record_save): New declaration.
10433 (record_check_insn_num): Change query string.
10434 (record_info): New.
10435 (record_delete): New.
10436 (record_is_replaying): New.
10437 (record_goto_entry): New.
10438 (record_goto_begin): New.
10439 (record_goto_end): New.
10440 (record_goto): New.
10441 (init_record_ops): Update.
10442 (init_record_core_ops): Update.
10443 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10444 (cmd_record_start): New.
10445 (set_record_insn_max_num): Moved from record.c
10446 (set_record_full_command): New.
10447 (show_record_full_command): New.
10448 (_initialize_record_full): New.
10449
b48d48eb
MM
104502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10451
10452 * target.h (add_deprecated_target_alias): New.
10453 * target.c (add_deprecated_target_alias): New.
10454
a950d57c
MM
104552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10456
10457 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10458 and signal.h.
10459 (linux_supports_btrace): Add kernel and
10460 cpuid check.
10461 (kernel_supports_btrace): New function.
10462 (cpu_supports_btrace): New function.
10463 (intel_supports_btrace): New function.
10464
9accd112
MM
104652013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10466
10467 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10468 * remote.c: Include btrace.h.
10469 (struct btrace_target_info): New struct.
10470 (remote_supports_btrace): New function.
10471 (send_Qbtrace): New function.
10472 (remote_enable_btrace): New function.
10473 (remote_disable_btrace): New function.
10474 (remote_teardown_btrace): New function.
10475 (remote_read_btrace): New function.
10476 (init_remote_ops): Add btrace ops.
10477 (enum <unnamed>): Add btrace packets.
10478 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10479 (_initialize_remote): Add packet configuration for branch tracing.
10480
c12a2917
MM
104812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10482
10483 * features/btrace.dtd: New file.
10484 * Makefile.in (XMLFILES): Add btrace.dtd.
10485 * btrace.h (parse_xml_btrace): New declaration.
10486 * btrace.c: Include xml-support.h.
10487 (parse_xml_btrace): New function.
10488 (parse_xml_btrace_block): New function.
10489 (block_attributes): New struct.
10490 (btrace_attributes): New struct.
10491 (btrace_children): New struct.
10492 (btrace_elements): New struct.
10493
3e3aea48
MM
104942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10495
10496 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10497 (amd64_linux_enable_btrace): New.
10498 (amd64_linux_disable_btrace): New.
10499 (amd64_linux_teardown_btrace): New.
10500 (_initialize_amd64_linux_nat): Initialize btrace ops.
10501 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10502 (i386_linux_enable_btrace): New.
10503 (i386_linux_disable_btrace): New.
10504 (i386_linux_teardown_btrace): New.
10505 (_initialize_i386_linux_nat): Initialize btrace ops.
10506 * config/i386/linux.mh: Add linux-btrace.o.
10507 * config/i386/linux64.mh: Add linux-btrace.o.
10508
7c97f91e
MM
105092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10510
10511 * common/linux_btrace.h: New file.
10512 * common/linux_btrace.c: New file.
10513 * Makefile.in (SFILES): Add btrace.c.
10514 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10515 (COMMON_OBS): Add btrace.o.
10516 (linux-btrace.o): New rule.
10517
1999790b 105182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10519
10520 * target.h: Include btrace.h.
10521 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10522 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10523 * target.c (target_supports_btrace): New function.
10524 (target_enable_btrace): New function.
10525 (target_disable_btrace): New function.
10526 (target_teardown_btrace): New function.
10527 (target_read_btrace): New function.
10528 * btrace.h: New file.
10529 * btrace.c: New file.
10530 * Makefile.in: Add btrace.c.
10531 * gdbthread.h: Include btrace.h.
10532 (struct thread_info): Add btrace field.
10533 * thread.c: Include btrace.h.
10534 (clear_thread_inferior_resources): Call target_teardown_btrace.
10535 * common/btrace-common.h: New file.
10536
61a31a67
JK
105372013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10538
10539 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10540 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10541 kill_status to outer block.
10542
05c56a9d
JK
105432013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 Fix entry-values if the callee called a noreturn function.
10546 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10547 get_frame_address_in_block. Add new comment.
10548
9112db09
JK
105492013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10550
10551 Fix entry-values in C++ across CUs.
10552 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10553 lookup_minimal_symbol. Add a comment.
10554 * dwarf2read.c
10555 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10556 DW_AT_linkage_name.
10557
9b67fcec
YQ
105582013-03-08 Yao Qi <yao@codesourcery.com>
10559
10560 * tracepoint.c (_initialize_tracepoint): Indent the code.
10561
6221be90
PA
105622013-03-08 Pedro Alves <palves@redhat.com>
10563
10564 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10565 (parse_find_args, find_command): Change type of pattern buffer
10566 locals to 'gdb_byte *'.
10567
be9a119c 105682013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10569 Hafiz Abid Qadeer <abidh@codesourcery.com>
10570
10571 * NEWS: Mention set and show trace-buffer-size commands.
10572 Mention new packet.
10573 * target.h (struct target_ops): New method
10574 to_set_trace_buffer_size.
10575 (target_set_trace_buffer_size): New macro.
10576 * target.c (update_current_target): Set up new method.
10577 * tracepoint.c (trace_buffer_size): New global.
10578 (start_tracing): Send it to the target.
10579 (set_trace_buffer_size): New function.
10580 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10581 * remote.c (remote_set_trace_buffer_size): New function.
10582 (_initialize_remote): Use it.
10583 (QTBuffer:size) New remote command.
10584 (PACKET_QTBuffer_size): New enum.
10585 (remote_protocol_features): Add an entry for
10586 PACKET_QTBuffer_size.
10587
7da3ab79
TT
105882013-03-08 Tom Tromey <tromey@redhat.com>
10589
10590 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10591 variable.
10592
0c1f71e7
PA
105932013-03-07 Pedro Alves <palves@redhat.com>
10594
10595 * target.c (target_read_stralloc, target_fileio_read_alloc):
10596 *Cast pointer to 'gdb_byte *' in target call.
10597
c8af03a2
PA
105982013-03-07 Pedro Alves <palves@redhat.com>
10599
10600 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10601 call.
10602
529480d0
KS
106032013-03-07 Keith Seitz <keiths@redhat.com>
10604
10605 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10606 (trace_pass_command): Likewise.
10607 * cli/cli-cmds.c: Include cli/cli-utils.h.
10608 (source_command): Use skip-spaces.
10609 (disassemble_command): Likewise.
10610 * findcmd.c: Include cli/cli-utils.h.
10611 (parse_find_args): Use skip_spaces.
10612 * go32-nat.c: Include cli/cli-utils.h.
10613 (go32_sldt): Use skip_spaces.
10614 (go32_sgdt): Likewise.
10615 (go32_sidt): Likewise.
10616 (go32_pde): Likewise.
10617 (go32_pte): Likewise.
10618 (go32_pte_for_address): Likewise.
10619 * infcmd.c: Include cli/cli-utils.h.
10620 (registers_info): Use skip_spaces.
10621 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10622 (linux_info_proc): Likewise.
10623 * linux-thread-db.c: Include cli/cli-utils.h.
10624 (info_auto_load_libthread_db): Use skip_spaces_const.
10625 * m32r-rom.c: Include cli/cli-utils.h.
10626 (m32r_upload_command): Use skip_spaces.
10627 * maint.c: Include cli/cli-utils.h.
10628 (maintenance_translate_address): Use skip_spaces.
10629 * mi/mi-parse.c: Include cli/cli-utils.h.
10630 (mi_parse_argv): Use skip_spaces.
10631 (mi_parse): Likewise.
10632 * minsyms.c: Include cli/cli-utils.h.
10633 (msymbol_hash_iw): Use skip_spaces_const.
10634 * objc-lang.c: Include cli/cli-utils.h.
10635 (parse_selector): Use skip_spaces.
10636 (parse_method): Likewise.
10637 * python/python.c: Include cli/cli-utils.h.
10638 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10639 (python_command)[HAVE_PYTHON]: Likewise.
10640 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10641 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10642 (m32r_load): Use skip_spaces.
10643 * serial.c: Include cli/cli-utils.h.
10644 (serial_open): Use skip_spaces_const.
10645 * stack.c: Include cli/cli-utils.h.
10646 (parse_frame_specification_1): Use skip_spaces_const.
10647 * symfile.c: Include cli/cli-utils.h.
10648 (set_ext_lang_command): Use skip_spaces.
10649 * symtab.c: Include cli/cli-utils.h.
10650 (rbreak_command): Use skip_spaces.
10651 * thread.c (thread_name_command): Use skip_spaces.
10652 * tracepoint.c (validate_actionline): Use skip_spaces.
10653 (encode_actions_1): Likewise.
10654 (trace_find_range_command): Likewise.
10655 (trace_find_outside_command): Likewise.
10656 (trace_dump_actions): Likewise.
10657
ac91cd70
PA
106582013-03-07 Pedro Alves <palves@redhat.com>
10659
10660 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10661 * expprint.c (print_subexp_standard): Likewise.
10662 * utils.c (host_char_to_target): Likewise.
10663 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10664 * varobj.c (value_get_print_value): Change type of local to char*.
10665 Cast it gdb_byte * in call to language printer.
10666
2898e560
PA
106672013-03-07 Pedro Alves <palves@redhat.com>
10668
10669 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10670 gdb_byte *'.
10671 (make_wchar_iterator): Remove cast to char*.
10672 (wchar_iterate): Change type of local.
10673
a09b4448
PA
106742013-03-07 Pedro Alves <palves@redhat.com>
10675
10676 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10677 for 'regcache->register_status'.
10678
20ced3e4
PA
106792013-03-07 Pedro Alves <palves@redhat.com>
10680
c2d6a675 10681 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10682 int.
10683
fe106009
PA
106842013-03-07 Pedro Alves <palves@redhat.com>
10685
10686 * stap-probe.c (handle_stap_probe): Add cast to char*.
10687
8ac2c12b
PA
106882013-03-07 Pedro Alves <palves@redhat.com>
10689
10690 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10691 RECORD_MSGRCV>: Pass a signed variable to
10692 regcache_raw_read_signed, instead of an unsigned one.
10693
99f0a309
PA
106942013-03-07 Pedro Alves <palves@redhat.com>
10695
10696 * remote-notif.c (notif_debug): Change type to int.
10697 * remote-notif.h (notif_debug): Likewise.
10698
964b8317
PA
106992013-03-07 Pedro Alves <palves@redhat.com>
10700
10701 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10702
f0cc8ad4
PA
107032013-03-07 Pedro Alves <palves@redhat.com>
10704
10705 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10706 * remote.h (hex2bin, bin2hex): ... here.
10707 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10708
77dec115
EZ
107092013-03-07 Eli Zaretskii <eliz@gnu.org>
10710
10711 * utils.c (initialize_utils): Improve doc strings of "set/show
10712 width", "set/show height", and "set/show pagination".
10713
741d92cf
KS
107142013-03-06 Keith Seitz <keiths@redhat.com>
10715
10716 * ax-gdb.c (gen_printf): Make FORMAT const.
10717 * ax-gdb.h (gen_printf): Likewise.
10718 * ax-general.c (ax_string): Make STR const.
10719 * ax.h (ax_string): Likewise.
10720
7b6c814e
DE
107212013-03-06 Doug Evans <dje@google.com>
10722
10723 * elfread.c (elf_symfile_read): Move debugging printf to more
10724 logical location.
10725
634334ab
PA
107262013-03-06 Pedro Alves <palves@redhat.com>
10727
10728 * python/py-utils.c (target_string_to_unicode): Delete function.
10729 * python/python-internal.h (target_string_to_unicode): Delete
10730 declaration.
10731
e482a1a7
PM
107322013-03-06 Pierre Muller <muller@sourceware.org>
10733
10734 * linespec.c (get_current_search_block): ARI fix, use (void)
10735 for empty parameter list.
10736
4eeaa230
DE
107372013-03-05 Doug Evans <dje@google.com>
10738
10739 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10740 of old ada_lookup_symbol_list. In !full_search case, don't
10741 search superblocks.
10742 (ada_lookup_symbol_list): Delete arg full_search, all callers
10743 updated. Call ada_lookup_symbol_list_worker.
10744 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10745 * ada-lang.h (ada_lookup_symbol_list): Update.
10746 * language.h (language_defn): Update comment for
10747 la_iterate_over_symbols.
10748 * linespec.c (iterate_over_file_blocks): New function.
10749 (iterate_over_all_matching_symtabs): Call it.
10750 (lookup_prefix_sym): Ditto.
10751 (get_current_search_block): New function.
10752 (get_search_block): Delete.
10753 (find_label_symbols): Call get_current_search_block.
10754 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10755 * symtab.c (iterate_over_symbols): Don't search superblocks.
10756
b69b1fb1
YQ
107572013-03-05 Yao Qi <yao@codesourcery.com>
10758
10759 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10760 parameter VAR's type from "unsigned int" to "int".
10761 * command.h (var_zuinteger_unlimited): Update its comments.
10762 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10763
3c095f49
CV
107642013-03-05 Corinna Vinschen <vinschen@redhat.de>
10765
10766 * NEWS: Mention new target x86_64-*-cygwin*.
10767
b5b0b0af
CV
107682013-03-05 Corinna Vinschen <vinschen@redhat.de>
10769
10770 * configure.host: Add x86_64-*-cygwin* as host.
10771 * configure.tgt: Add x86_64-*-cygwin* as target.
10772 * config/i386/cygwin64.mh: New file.
10773
f6f99966
JK
107742013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10775
10776 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10777
33f448b1
JK
107782013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10779
10780 * linespec.c (struct linespec_canonical_name): New.
10781 (struct linespec_state): Change canonical_names type to it.
10782 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10783 xrealloc element size. Initialize the different CANONICAL fields.
10784 (canonical_to_fullform): New.
10785 (filter_results): Use it. Add variables canonical, fullform and
10786 cleanup.
10787 (struct decode_line_2_item, decode_line_2_compare_items): New.
10788 (decode_line_2): Remove variables iter and item_names, add variables
10789 items and items_count. Modify the code for these new variables.
10790
feb14725
CV
107912013-03-04 Corinna Vinschen <vinschen@redhat.com>
10792
10793 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10794 calling do_cleanup.
10795
e83b17ba
HZ
107962013-03-04 Luis Machado <lgustavo@codesourcery.com>
10797
10798 * tracepoint.c (build_traceframe_info): Add code for byte order.
10799
a2d13a0d
KB
108002013-03-02 Kevin Buettner <kevinb@redhat.com>
10801
8dddcae8
KB
10802 * v850-tdep.c: (v850e2_register_name): Revise system register
10803 names to match current V850E2M architecture specifications.
10804 Update register number enum comments too.
f5aee5ee 10805
d79e58d8
JW
108062013-03-01 Jiong Wang <jiwang@tilera.com>
10807 Pedro Alves <palves@redhat.com>
10808
10809 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10810 to END_ADDR.
10811 (tilegx_skip_prologue): Limit prologue analysis to section end.
10812
c4be5165
JK
108132013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10814
10815 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10816 use it.
10817
e362b510
PA
108182013-03-01 Pedro Alves <palves@redhat.com>
10819
10820 Use gdb_byte for bytes from the program being debugged.
10821
10822 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10823 Change type of local 'buf' to gdb_byte.
10824 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10825 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10826 * cris-tdep.c (cris_sigcontext_addr)
10827 (cris_sigtramp_frame_unwind_cache): Likewise.
10828 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10829 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10830 Likewise.
10831 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10832 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10833 (hppa32_hpux_search_dummy_call_sequence)
10834 (hppa_hpux_supply_save_state): Likewise.
10835 * hppa-linux-tdep.c (insns_match_pattern)
10836 (hppa_linux_find_global_pointer): Likewise.
10837 * hppa-tdep.c (hppa_in_function_epilogue_p)
10838 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10839 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10840 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10841 (i386fbsd_collect_uthread): Likewise.
10842 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10843 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10844 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10845 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10846 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10847 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10848 (ia64_libunwind_frame_prev_register)
10849 (ia64_libunwind_sigtramp_frame_this_id)
10850 (ia64_find_global_pointer_from_dynamic_section)
10851 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10852 (ia64_unwind_pc): Likewise.
10853 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10854 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10855 (m68hc11_extract_return_value): Likewise.
10856 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10857 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10858 (mep_get_insn, mep_push_dummy_call): Likewise.
10859 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10860 (mips_linux_in_dynsym_stub): Likewise.
10861 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10862 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10863 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10864 to gdb_byte.
10865 * remote-mips.c (mips_set_register): Likewise.
10866 * remote-sim.c (gdbsim_fetch_register): Likewise.
10867 * score-tdep.c (score7_fetch_inst): Change type of parameter
10868 'memblock' and local 'buf' to gdb_byte.
10869 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10870 Change type of local 'buf' to gdb_byte. Adjust.
10871 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10872 to gdb_byte**.
10873 (score7_analyze_prologue): Change type of 'memblock' and
10874 'memblock_ptr' locals to gdb_byte*.
10875 * sh64-tdep.c (sh64_extract_return_value)
10876 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10877 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10878 * solib-pa64.c (pa64_solib_create_inferior_hook)
10879 (pa64_open_symbol_file_object): Remove local 'buf'.
10880 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10881 (som_open_symbol_file_object): Likewise.
10882 * solib-spu.c (spu_current_sos): Likewise.
10883 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10884 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10885 (spu_store_registers): Likewise.
10886 * target.c (debug_print_register): Likewise.
10887 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10888 * xstormy16-tdep.c (xstormy16_store_return_value)
10889 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10890 (xstormy16_find_jmp_table_entry): Likewise.
10891
75cc61ca 108922013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10893
10894 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10895 (tilegx_gdbarch_init): Install it.
10896
ddb08e9c
TT
108972013-02-28 Tom Tromey <tromey@redhat.com>
10898
10899 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10900 PyLong_Check.
10901
62d7fb51
DE
109022013-02-28 Doug Evans <dje@google.com>
10903
10904 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10905 * python/python.c (gdbpy_find_pc_line): Ditto.
10906
c4a9e8b4
TT
109072013-02-28 Tom Tromey <tromey@redhat.com>
10908
10909 * contrib/excheck.py: New file.
10910 * contrib/exsummary.py: New file.
10911 * contrib/gcc-with-excheck: New file.
10912
7f6a5dde
TT
109132013-02-28 Tom Tromey <tromey@redhat.com>
10914
10915 * python/python.c (gdbpy_print_stack): Call begin_line and
10916 fprintf_filtered inside TRY_CATCH.
10917
9e974e55
TT
109182013-02-28 Tom Tromey <tromey@redhat.com>
10919
10920 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10921 inside TRY_CATCH.
10922
dd5fa3e7
TT
109232013-02-28 Tom Tromey <tromey@redhat.com>
10924
10925 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10926 frame_object_to_frame_info inside TRY_CATCH.
10927
86a3263f
TT
109282013-02-28 Tom Tromey <tromey@redhat.com>
10929
10930 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10931 TRY_CATCH.
10932
81b52a3a
TT
109332013-02-28 Tom Tromey <tromey@redhat.com>
10934
10935 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10936
d50a0ce2
CV
109372013-02-27 Corinna Vinschen <vinschen@redhat.com>
10938
10939 * windows-nat.c: Throughout, fix format strings and casts of
10940 printf-like functions to avoid type related warnings on all
10941 platforms.
10942 (handle_output_debug_string): Fetch context information address
10943 from debug string using string_to_core_addr.
10944
e1f58301
JW
109452013-02-27 Jiong Wang <jiwang@tilera.com>
10946
10947 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10948 * regformats/reg-tilegx32.dat: New.
10949
4fcd89fc
JW
109502013-02-27 Jiong Wang <jiwang@tilera.com>
10951
10952 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10953
748d24e6
JW
109542013-02-27 Jiong Wang <jiwang@tilera.com>
10955
10956 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10957
6c8e944d
YQ
109582013-02-27 Yao Qi <yao@codesourcery.com>
10959 Pedro Alves <palves@redhat.com>
10960
10961 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10962 pc/tp/range/outside, look for the next trace frame instead of
10963 always starting from frame 0.
6c8e944d 10964
acd7db30
AG
109652013-02-26 Anthony Green <green@moxielogic.com>
10966
10967 * configure.tgt: Add support for moxie-*-rtems* target.
10968
025e6dce
PA
109692013-02-25 Pedro Alves <palves@redhat.com>
10970
10971 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10972 warning text.
10973
ca9c94ef
MR
109742013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10975
10976 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10977 if $fp is used as the virtual frame pointer.
10978
24c274a1
AM
109792013-02-23 Alan Modra <amodra@gmail.com>
10980
10981 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10982 symbol size.
10983 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10984 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10985 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10986 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10987
bfada189
JK
109882013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10989
10990 Code cleanup.
10991 * elfread.c (build_id_bfd_get): Make the return type const.
10992 (build_id_verify): Make the check parameter const.
10993 (build_id_to_debug_filename): Make the build_id parameter and variable
10994 data const.
10995 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10996
c0355132
AM
109972013-02-21 Alan Modra <amodra@gmail.com>
10998
10999 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11000
9f44fbc0
SCR
110012013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11002
11003 Add a new method 'disassemble' to gdb.Architecture class.
11004 * python/py-arch.c (archpy_disassmble): Implementation of the
11005 new method gdb.Architecture.disassemble.
11006 (arch_object_methods): Add entry for the new method.
11007
b74ea3eb
JW
110082013-02-20 Jiong Wang <jiwang@tilera.com>
11009
11010 * MAINTAINERS (Write After Approval): Add myself to the list.
11011
61a672f1
PA
110122013-02-19 Pedro Alves <palves@redhat.com>
11013
11014 Garbage collect 'struct monitor_ops'::load_routine.
11015
11016 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11017 * monitor.c (monitor_load): No longer call
11018 current_monitor->load_routine.
11019 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11020 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11021 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11022
40e397df
PA
110232013-02-19 Pedro Alves <palves@redhat.com>
11024
11025 PR gdb/15161
11026
11027 Harmonize with generic_load.
11028
11029 * monitor.c: Include "readline/readline.h".
11030 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11031 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11032 long/strtol for the 'load_offset' local. Error out if no argument
11033 is given or if too many arguments are given. Tilde expand the
11034 passed in file name.
11035
f698ca8e
KT
110362013-02-19 Kai Tietz <ktietz@redhat.com>
11037
11038 PR gdb/15161
11039 * symfile.c (load_section_data): Change type of load_offset
11040 to CORE_ADDR.
11041 (generic_load): User strtoulst instead of strtoul for conversion
11042 of load_offset.
11043
3361b059
WL
110442013-02-19 Jiong Wang <jiwang@tilera.com>
11045
11046 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11047 for return address, "lr" register, saved on stack.
11048 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11049 after we invoke tilegx_analyze_prologue.
11050
3e9d5130
WL
110512013-02-19 Jiong Wang <jiwang@tilera.com>
11052
bb1bcd86
WL
11053 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11054
3361b059 110552013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11056
b74ea3eb 11057 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11058
4aaf2503
WL
110592013-02-19 Jiong Wang <jiwang@tilera.com>
11060
b74ea3eb 11061 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11062 (tilegx_write_pc): New function.
11063 (tilegx_cannot_reference_register): Return zero if REGNO
11064 is TILEGX_FAULTNUM_REGNUM.
11065 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11066 (tilegx_register_name): Add handling of "faultnum" register.
11067 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11068 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11069 handling of TILEGX_FAULTNUM_REGNUM.
11070 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11071
bc23a956
WL
110722013-02-19 Jiong Wang <jiwang@tilera.com>
11073
11074 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11075 should be aligned to 64bit.
bc23a956 11076
42f45f1a
KT
110772013-02-19 Kai Tietz <ktietz@redhat.com>
11078
11079 * windows-nat.c (windows_xfer_memory): Fix debug-output
11080 for LLP64.
11081
6ce4c112
LL
110822013-02-19 Lei Liu <lei.liu2@windriver.com>
11083
11084 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11085 Don't check DSP register number if HAVE_DSP is not set.
11086
30e8ee25
AM
110872013-02-19 Alan Modra <amodra@gmail.com>
11088
11089 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11090 throughout file instead.
11091 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11092 Don't xmalloc return value.
11093 (build_id_verify): Similarly. Don't xfree.
11094 (build_id_to_debug_filename): Update.
11095 (find_separate_debug_file_by_buildid): Update, don't xfree.
11096
4c9ad8c2
TT
110972013-02-18 Tom Tromey <tromey@redhat.com>
11098
11099 PR gdb/15102:
11100 * dwarf2read.c (read_subrange_type): Use result of
11101 'check_typedef'.
11102
983dc440
YQ
111032013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11104
11105 * frame.c: Remove one extra white space after #include
11106 directive.
11107
7fb2b84a
JK
111082013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11109
11110 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11111
edceb2a9
JK
111122013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11113
11114 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11115 and dir commands into an if block.
11116
e81b7af8
TT
111172013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11118
11119 * python/py-breakpoint (struct pybp_code): Use int instead of
11120 enum type_code.
11121
f5911ea1
HAQ
111222013-02-15 Pedro Alves <pedro@codesourcery.com>
11123 Hafiz Abid Qadeer <abidh@codesourcery.com>
11124
11125 * NEWS: Mention new field "trace-file".
11126 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11127 (tfile_open): Record the trace file's filename in the trace
11128 status.
11129 (tfile_files_info): Mention the name of the trace file.
11130 Check the "filename" field explicitely.
11131 (trace_status_command): Explicitely check "filename" field.
11132 (trace_find_command): Ditto.
11133 (trace_find_pc_command): Ditto.
11134 (trace_find_tracepoint_command): Ditto.
11135 (trace_find_line_command): Ditto.
11136 (trace_find_range_command): Ditto.
11137 (trace_find_outside_command): Ditto.
11138 * tracepoint.h (struct trace_status) <from_file>: Rename it
11139 to "filename" and make it hold the trace file's filename
11140 instead of a boolean.
11141 * remote.c (remote_get_trace_status): Initialize "filename"
11142 field with NULL instead of 0.
11143
796cb314
YQ
111442013-02-15 Yao Qi <yao@codesourcery.com>
11145
11146 * remote.c: Fix a typo.
11147
42e79b1d
PM
111482013-02-14 Pierre Muller <muller@sourceware.org>
11149
11150 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11151
baea0dae
PA
111522013-02-14 Pedro Alves <palves@redhat.com>
11153
11154 * utils.c (savestring): Don't #undef it. Move function to
11155 common/common-utils.c.
11156 * common/common-utils.c: Include gdb_string.h.
11157 (savestring): Move here from utils.c.
11158 * common/common-utils.h (savestring): Declare.
11159
57c3b6ed
PA
111602013-02-14 Pedro Alves <palves@redhat.com>
11161
11162 * utils.c (savestring): Rename parameter 'size' to 'len'.
11163
d6c44983
YZ
111642013-02-14 Pedro Alves <palves@redhat.com>
11165 Yufeng Zhang <yufeng.zhang@arm.com>
11166
11167 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11168 (aarch64_inferior_data, struct aarch64_inferior_data):
11169 Delete.
11170 (struct aarch64_process_info): New.
11171 (aarch64_process_list): New global.
11172 (aarch64_find_process_pid, aarch64_add_process)
11173 (aarch64_process_info_get): New functions.
11174 (aarch64_inferior_data_get): Delete.
11175 (aarch64_process_info_get): New function.
11176 (aarch64_forget_process): New function.
11177 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11178 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11179 aarch64_get_debug_reg_state.
11180 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11181 instead of linux_nat_iterate_watchpoint_lwps.
11182 (aarch64_linux_new_fork): New function.
11183 (aarch64_linux_child_post_startup_inferior): Use
11184 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11185 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11186 (aarch64_linux_remove_hw_breakpoint)
11187 (aarch64_handle_aligned_watchpoint)
11188 (aarch64_handle_unaligned_watchpoint)
11189 (aarch64_linux_insert_watchpoint)
11190 (aarch64_linux_remove_watchpoint)
11191 (aarch64_linux_stopped_data_address): Adjust to pass the current
11192 process id to aarch64_debug_reg_state.
11193 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11194 linux_nat_new_fork hook, and aarch64_forget_process as
11195 linux_nat_forget_process hook; remove the call to
11196 register_inferior_data_with_cleanup.
11197
4819b3f8
PA
111982013-02-14 Pedro Alves <palves@redhat.com>
11199
11200 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11201 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11202 lval_memory.
11203
1773c82c
HAQ
112042013-02-14 Pedro Alves <pedro@codesourcery.com>
11205 Hafiz Abid Qadeer <abidh@codesourcery.com>
11206
11207 * tracepoint.h (validate_trace_state_variable_name): Declare.
11208 * tracepoint.c (validate_trace_state_variable_name): New.
11209 (trace_variable_command): Parse the trace state variable's name
11210 without using parse_expression. Do several validations.
11211 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11212 trace state variable's name with parse_expression. Validate it.
11213
53778a97
YQ
112142013-02-14 Yao Qi <yao@codesourcery.com>
11215
11216 * infcmd.c (breakpoint_proceeded): Remove it.
11217
7b3ae3a6
YQ
112182013-02-14 Yao Qi <yao@codesourcery.com>
11219
11220 * tracepoint.c (end_actions_pseudocommand): Make it static.
11221 (while_stepping_pseudocommand): Likewise.
11222 * tracepoint.h (end_actions_pseudocommand): Remove the
11223 declaration.
11224 (while_stepping_pseudocommand): Likewise.
11225
64580925
YQ
112262013-02-14 Yao Qi <yao@codesourcery.com>
11227
11228 * cli/cli-decode.c (help_cmd): Remove the declaration of
11229 "cmdlist".
11230 (help_all): Likewise.
11231
26cb8b7c
PA
112322013-02-13 Pedro Alves <palves@redhat.com>
11233
11234 * amd64-linux-nat.c (update_debug_registers_callback):
11235 Update comment.
11236 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11237 iterate_over_lwps.
11238 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11239 i386_debug_reg_state.
11240 (amd64_linux_new_fork): New function.
11241 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11242 linux_nat_new_fork hook, and i386_forget_process as
11243 linux_nat_forget_process hook.
11244 * i386-linux-nat.c (update_debug_registers_callback):
11245 Update comment.
a8256ea1 11246 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11247 iterate_over_lwps.
11248 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11249 i386_debug_reg_state.
11250 (i386_linux_new_fork): New function.
11251 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11252 linux_nat_new_fork hook, and i386_forget_process as
11253 linux_nat_forget_process hook.
11254 * i386-nat.c (i386_init_dregs): Delete.
11255 (i386_inferior_data, struct i386_inferior_data):
11256 Delete.
11257 (struct i386_process_info): New.
11258 (i386_process_list): New global.
11259 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11260 New functions.
11261 (i386_inferior_data_get): Delete.
11262 (i386_process_info_get): New function.
11263 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11264 (i386_forget_process): New function.
11265 (i386_cleanup_dregs): Rewrite.
11266 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11267 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11268 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11269 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11270 to i386_debug_reg_state.
11271 (i386_use_watchpoints): Don't register inferior data.
11272 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11273 adjust comment.
11274 (i386_forget_process): Declare.
11275 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11276 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11277 New static globals.
11278 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11279 (add_initial_lwp): New, factored out from ...
11280 (add_lwp): ... this. Don't check the number of lwps before
11281 calling linux_nat_new_thread.
11282 (linux_nat_iterate_watchpoint_lwps): Delete.
11283 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11284 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11285 forks and vforks.
11286 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11287 initial lwp.
11288 (linux_nat_kill, linux_nat_mourn_inferior): Call
11289 linux_nat_forget_process.
11290 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11291 (linux_nat_forget_process): New functions.
11292 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11293 type.
11294 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11295 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11296 types.
11297 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11298 (linux_nat_forget_process): New declarations.
11299
11300 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11301 (amd64fbsd_mourn_inferior): New function.
11302 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11303 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11304
5befea72
MS
113052013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11306
55015247
YQ
11307 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11308 Adding _().
5befea72 11309
1d3ffd6b
MS
113102013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11311
11312 * aarch64-linux-nat.c (debug_reg_change_callback)
11313 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11314 %s and phex().
11315
6eb04473
MS
113162013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11317
11318 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11319 with LONGEST.
11320
a016fc87
HAQ
113212013-02-13 Pedro Alves <palves@redhat.com>
11322 Hafiz Abid Qadeer <abidh@codesourcery.com>
11323
11324 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11325
e234dfaf
TT
113262013-02-12 Tom Tromey <tromey@redhat.com>
11327
11328 PR symtab/11464:
11329 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11330 NAME return.
11331 (classify_inner_name): Remove 'first_name' argument, add
11332 'context'. Remove unused variable.
11333 (yylex): Explicitly maintain the context type. Exit loop earlier
11334 if NAME result is seen.
11335
0b1afbb3
PA
113362013-02-12 Pedro Alves <palves@redhat.com>
11337
11338 * amd64-darwin-tdep.c: Add (C) after Copyright.
11339 * cli/cli-cmds.h: Ditto.
11340 * cli/cli-decode.c: Ditto.
11341 * cli/cli-decode.h: Ditto.
11342 * cli/cli-dump.c: Ditto.
11343 * cli/cli-dump.h: Ditto.
11344 * cli/cli-interp.c: Ditto.
11345 * cli/cli-logging.c: Ditto.
11346 * cli/cli-script.c: Ditto.
11347 * cli/cli-script.h: Ditto.
11348 * cli/cli-setshow.c: Ditto.
11349 * cli/cli-setshow.h: Ditto.
11350 * cli/cli-utils.c: Ditto.
11351 * cli/cli-utils.h: Ditto.
11352 * config/alpha/nm-osf3.h: Ditto.
11353 * config/djgpp/djconfig.sh: Ditto.
11354 * config/i386/nm-fbsd.h: Ditto.
11355 * config/i386/nm-i386gnu.h: Ditto.
11356 * config/nm-linux.h: Ditto.
11357 * config/nm-nto.h: Ditto.
11358 * config/rs6000/nm-rs6000.h: Ditto.
11359 * config/sparc/nm-sol2.h: Ditto.
11360 * darwin-nat-info.c: Ditto.
11361 * dfp.c: Ditto.
11362 * dfp.h: Ditto.
11363 * gdb-demangle.h: Ditto.
11364 * i386-darwin-nat.c: Ditto.
11365 * i386-darwin-tdep.c: Ditto.
11366 * linux-fork.h: Ditto.
11367 * m32c-tdep.c: Ditto.
11368 * microblaze-linux-tdep.c: Ditto.
11369 * microblaze-rom.c: Ditto.
11370 * microblaze-tdep.c: Ditto.
11371 * microblaze-tdep.h: Ditto.
11372 * mips-linux-tdep.h: Ditto.
11373 * ppc-ravenscar-thread.c: Ditto.
11374 * ppc-ravenscar-thread.h: Ditto.
11375 * prologue-value.c: Ditto.
11376 * prologue-value.h: Ditto.
11377 * ravenscar-thread.c: Ditto.
11378 * ravenscar-thread.h: Ditto.
11379 * sparc-ravenscar-thread.c: Ditto.
11380 * sparc-ravenscar-thread.h: Ditto.
11381 * tilegx-linux-tdep.c: Ditto.
11382 * unwind_stop_reasons.def: Ditto.
11383 * windows-nat.h: Ditto.
11384 * xtensa-linux-tdep.c: Ditto.
11385 * xtensa-xtregs.c: Ditto.
11386 * regformats/regdat.sh: Ditto.
11387 * regformats/regdef.h: Ditto.
11388
6c01dd94
PA
113892013-02-12 Pedro Alves <palves@redhat.com>
11390
11391 * break-catch-sig.c: Update copyright years.
11392
b65a2bd9
SCR
113932013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11394
11395 Add support for a destructor for ui_out data and use it to
11396 provide a ui_out destructor.
11397 * ui-out.h: Declare the new ui_out destructor.
11398 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11399 * ui-out.c (default_data_destroy): Add a default data destructor
11400 which does nothing.
11401 (default_ui_out_impl): Set the new data_destroy field to
11402 default_data_destroy
11403 (uo_data_destroy): Local function which invokes the data
11404 destructor if present.
11405 (clear_table): Local function which clears the table data of a
11406 ui_out object.
11407 (ui_out_destroy): Public function which frees a ui_out object.
11408 (ui_out_table_end): Use the new clear_table function.
11409 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11410 NULL.
11411 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11412 to NULL.
11413
c2792f5a
DE
114142013-02-11 Doug Evans <dje@google.com>
11415
11416 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11417 (printf_decfloat): New function. Broken out from ui_printf.
11418 Remove unnecessary code to shift the entire format string down.
11419 (printf_pointer): New function.
11420 (ui_printf): Code to print C strings, wide C strings, decfloats,
11421 and pointers moved to separate functions.
11422
d9e98382
SDJ
114232013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11424
11425 * valops.c (value_assign): Handling bitfield offset in
11426 `lval_internalvar_component' case.
11427
4ff3ce77
DE
114282013-02-08 Doug Evans <dje@google.com>
11429
11430 * common/format.c (parse_format_string): Fix whitespace.
11431
901900c4
MGD
114322013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11433
11434 * stack.c (return_command): Work around uninitialized variable
11435 warning.
11436
b5dbc8d4
YZ
114372013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11438
11439 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11440 number of the registers from 36 to 34.
11441
51d66578
MS
114422013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11443
11444 * NEWS: Mention new AArch64 native and target support.
11445
176b1c95
MS
114462013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11447
11448 * MAINTAINERS (Write After Approval): Add myself.
11449
9d19df75
MS
114502013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11451 Marcus Shawcroft <marcus.shawcroft@arm.com>
11452 Nigel Stephens <nigel.stephens@arm.com>
11453 Yufeng Zhang <yufeng.zhang@arm.com>
11454
11455 * aarch64-linux-nat.c: New file.
11456 * config/aarch64/linux.mh: New file.
11457 * configure.host: Add AArch64.
11458 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11459
7e1e0340
DE
114602013-02-07 Doug Evans <dje@google.com>
11461
11462 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11463 disassemble command.
11464
45e25a36
MS
114652013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11466
11467 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11468 set_gdbarch_fetch_tls_load_module_address.
11469
bbfdfe1c
DM
114702013-02-06 David S. Miller <davem@davemloft.net>
11471
11472 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11473 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11474 * value.c (struct_return_convention): New function.
11475 (using_struct_return): Implement in terms of struct_return_convention.
11476 * value.h (struct_return_convention): Declare.
11477 * stack.c (return_command): Allow successful overriding of the return
11478 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11479
bc9abe4a
TT
114802013-02-06 Tom Tromey <tromey@redhat.com>
11481
11482 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11483 outside of TRY_CATCH.
11484
134a2066
YQ
114852013-02-06 Yao Qi <yao@codesourcery.com>
11486
11487 * mi/mi-interp.c: Include "tracepoint.h".
11488 (mi_tsv_modified): Declare.
11489 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11490 (mi_interpreter_init): Call observer_attach_tsv_modified.
11491 (mi_tsv_modified): New.
11492 (mi_tsv_created, mi_tsv_deleted): Update.
11493 * tracepoint.c (trace_variable_command): Call
11494 observer_notify_tsv_modified if the initial value of tsv is
11495 changed.
11496 (delete_trace_state_variable): Call
11497 observer_notify_tsv_deleted earlier.
11498 (trace_variable_command): Caller update.
11499 (create_tsv_from_upload): Likewise.
11500 * observer.sh: Declare "struct trace_state_variable".
11501
11502 * NEWS: Mention the new MI notification "=tsv-modified".
11503
59be2b6a
DE
115042013-02-05 Doug Evans <dje@google.com>
11505
11506 * completer.c (location_completer): Fix typo in comment.
11507
d30113d4
JK
115082013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11509
11510 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11511 ADDRESS sorted.
11512
14ac654f
MS
115132013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11514
11515 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11516 Refactor if statement to avoid trailing || operator.
11517
543bf33d
AT
115182013-02-05 Andreas Tobler <andreast@fgznet.ch>
11519
11520 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11521
dc18f110
AT
115222013-02-04 Andreas Tobler <andreast@fgznet.ch>
11523
11524 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11525 * configure.host: Add powerpc*-*-freebsd* target.
11526 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11527 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11528 * config/powerpc/fbsd.mh: New file.
11529
b3ac9c77
SDJ
115302013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11531 Denys Vlasenko <dvlasenk@redhat.com>
11532 Pedro Alves <palves@redhat.com>
11533
11534 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11535 (struct elf_internal_linux_prpsinfo): Forward declare.
11536 * gdbarch.h, gdbarch.c: Regenerate.
11537 * linux-tdep.c: Include `cli/cli-utils.h'.
11538 (linux_fill_prpsinfo): New function.
11539 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11540 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11541 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11542 depending on gdbarch pointer bitness.
11543 * ppc-linux-tdep.c: Include elf-bfd.h.
11544 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11545 on 32-bit.
11546
176eb98c
MS
115472013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11548 Marcus Shawcroft <marcus.shawcroft@arm.com>
11549 Nigel Stephens <nigel.stephens@arm.com>
11550 Yufeng Zhang <yufeng.zhang@arm.com>
11551
11552 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11553
cf0dbd6f
MS
115542013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11555 Marcus Shawcroft <marcus.shawcroft@arm.com>
11556 Nigel Stephens <nigel.stephens@arm.com>
11557 Yufeng Zhang <yufeng.zhang@arm.com>
11558
11559 * aarch64-newlib-tdep.c: New file.
11560 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11561 aarch64*-*-elf.
11562 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11563 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11564 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11565 * osabi.c (gdb_osabi_names): Add "Newlib".
11566
1ae3db19
MS
115672013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11568 Marcus Shawcroft <marcus.shawcroft@arm.com>
11569 Nigel Stephens <nigel.stephens@arm.com>
11570 Yufeng Zhang <yufeng.zhang@arm.com>
11571
11572 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11573 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11574 * aarch64-linux-tdep.c: New file.
11575 * aarch64-linux-tdep.h: New file.
11576 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11577 * configure.tgt: Add aarch64-none-linux-gnu.
11578
07b287a0
MS
115792013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11580 Marcus Shawcroft <marcus.shawcroft@arm.com>
11581 Nigel Stephens <nigel.stephens@arm.com>
11582 Yufeng Zhang <yufeng.zhang@arm.com>
11583
11584 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11585 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11586 (ALLDEPFILES): Add aarch64-tdep.c.
11587 * aarch64-tdep.c: New file.
11588 * aarch64-tdep.h: New file.
11589 * configure.tgt: Add AArch64.
11590 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11591 (aarch64-expedite): New definition.
11592 * features/aarch64-core.xml: New file.
11593 * features/aarch64-fpu.xml: New file.
11594 * features/aarch64-without-fpu.c: New file (generated).
11595 * features/aarch64-without-fpu.xml: New file.
11596 * features/aarch64.c: New file (generated).
11597 * features/aarch64.xml: New file.
11598 * regformats/aarch64-without-fpu.dat: New file (generated).
11599 * regformats/aarch64.dat: New file (generated).
11600
0f1b18ab
JK
116012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11602
11603 * contrib/expect-read1.c: New file.
11604 * contrib/expect-read1.sh: New file.
11605
233d95b5
JK
116062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11607
11608 * dwarf2read.c (file_file_name): New function with code from
11609 file_full_name.
11610 (file_full_name): Move most of the code to file_file_name.
11611 (macro_start_file): Rename variable full_name to file_name and use
11612 file_file_name for it. Add comp_dir parameter to new_macro_table.
11613 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11614 macro_source_file->filename access by macro_source_fullname call.
11615 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11616 caller.
11617 * macrotab.c (struct macro_table): New field comp_dir.
11618 (macro_include): New variables link_fullname and source_fullname.
11619 Replace any macro_source_file->filename access by macro_source_fullname
11620 call.
11621 (macro_lookup_inclusion): Remove the partial filenames checking code.
11622 (check_for_redefinition): New variables source_fullname and
11623 found_key_fullname. Replace any macro_source_file->filename access by
11624 macro_source_fullname call.
11625 (macro_undef): New variables source_fullname and key_fullname. Replace
11626 any macro_source_file->filename access by macro_source_fullname call.
11627 (macro_lookup_definition): New variables retval and source_fullname.
11628 Replace any macro_source_file->filename access by macro_source_fullname
11629 call.
11630 (foreach_macro): New variable key_fullname. Replace any
11631 macro_source_file->filename access by macro_source_fullname call.
11632 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11633 macro_source_file->filename access by macro_source_fullname call.
11634 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11635 (macro_source_fullname): New function.
11636 * macrotab.h (struct macro_source_file): Extent the filename field
11637 comment.
11638 (new_macro_table): New parameter comp_dir, add a comment for it.
11639 (macro_source_fullname): new declaration.
11640
da235a7c
JK
116412013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11642
11643 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11644 this_real_name to outer block. Use it also for
11645 compare_filenames_for_search.
11646 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11647 with dw2_get_real_path for file_matcher, considering also
11648 BASENAMES_MAY_DIFFER.
11649 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11650
fbd9ab74
JK
116512013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11652
11653 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11654 to the file_matcher parameter. Pass 0 to it.
11655 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11656 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11657 NULL psymtab_to_fullname result.
11658 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11659 an expected filename instead.
11660 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11661 file_matcher parameter. Call also psymtab_to_fullname, after newly
11662 considering BASENAMES_MAY_DIFFER.
11663 * source.c (rewrite_source_path): Remove static.
11664 * source.h (rewrite_source_path): New declaration.
11665 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11666 the expand_symtabs_matching field. Comment it.
11667 * symtab.c (file_matches): New function comment. Add parameter
11668 basenames, implement it.
11669 (search_symbols_file_matches): Add basenames parameter. Update the
11670 file_matches caller.
11671 (search_symbols): Match FILES also against symtab_to_fullname.
11672 Optimize it for BASENAMES_MAY_DIFFER.
11673
56d397a3
JK
116742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11675
11676 * source.c (print_source_lines_base): Print for TUI also "fullname".
11677 * tui/tui-data.c (init_content_element): Change tui_locator_element
11678 field to full_name.
11679 * tui/tui-data.h (struct tui_locator_element): Likewise.
11680 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11681 tui_update_locator_filename calls to tui_update_locator_fullname.
11682 Replace symtab->filename refererence by symtab_to_fullname call.
11683 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11684 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11685 field to full_name. Replace symtab->filename refererence by
11686 symtab_to_fullname call.
11687 (tui_show_symtab_source): Rename parameter to fullname. Change
11688 tui_locator_element field to full_name.
11689 * tui/tui-stack.c: Include source.h.
11690 (tui_set_locator_filename): Rename the declaration to ...
11691 (tui_set_locator_fullname): ... here. Rename its parameter to
11692 fullname, updates its comment.
11693 (tui_set_locator_info): Rename its parameter to fullname.
11694 (tui_set_locator_filename): Rename the definition to ...
11695 (tui_set_locator_fullname): ... here. Rename its parameter to
11696 fullname, updates its comment. Change tui_locator_element field to
11697 full_name.
11698 (tui_set_locator_info): Rename its parameter to fullname.
11699 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11700 (tui_update_locator_filename): Rename to ...
11701 (tui_update_locator_fullname): ... here. Rename callee to
11702 tui_set_locator_fullname.
11703 (tui_show_frame_info): Replace symtab->filename refererence by
11704 symtab_to_fullname call.
11705 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11706 (tui_update_locator_fullname): ... here.
11707 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11708 tui_update_locator_fullname. Replace symtab->filename refererence by
11709 symtab_to_fullname call.
11710 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11711 Rename the callee to tui_update_locator_fullname.
11712 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11713
05cba821
JK
117142013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11715
11716 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11717 by symtab_to_filename_for_display calls.
11718 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11719 (clear_command): New variable sal_fullname, initialize it. Replace
11720 compare_filenames_for_search by filename_cmp with sal_fullname.
11721 (say_where, update_static_tracepoint): Replace symtab->filename
11722 refererences by symtab_to_filename_for_display calls.
11723 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11724 Likewise.
11725 * dwarf2read.c: Include source.h.
11726 (fixup_go_packaging): Replace symtab->filename refererences by
11727 symtab_to_filename_for_display calls.
11728 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11729 Replace symtab->filename refererences by symtab_to_filename_for_display
11730 calls.
11731 (create_sals_line_offset, convert_linespec_to_sals): New variable
11732 fullname, initialize it, replace symtab->filename reference by the
11733 variable.
11734 * linux-fork.c: Include source.h.
11735 (info_checkpoints_command): Replace symtab->filename refererences by
11736 symtab_to_filename_for_display calls.
11737 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11738 by symtab_to_filename_for_display calls.
11739 * mdebugread.c: Include source.h.
11740 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11741 symtab_to_filename_for_display calls.
11742 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11743 (mi_cmd_file_list_exec_source_files): Likewise.
11744 * printcmd.c: Include source.h.
11745 (build_address_symbolic): Replace symtab->filename refererences by
11746 symtab_to_filename_for_display calls.
11747 * psymtab.c (partial_map_symtabs_matching_filename)
11748 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11749 with psymtab_to_fullname.
11750 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11751 by symtab_to_filename_for_display calls.
11752 (stpy_get_filename): New variable filename, initialize it, use instead
11753 of symtab->filename refererences.
11754 (salpy_str): Make variable filename const char *. Replace
11755 symtab->filename refererences by symtab_to_filename_for_display calls.
11756 * skip.c: Include source.h and filenames.h.
11757 (skip_file_command): Remove const from the symtab variable. Replace
11758 symtab->filename refererences by symtab_to_fullname call.
11759 (function_name_is_marked_for_skip): New variables searched_for_fullname
11760 and fullname. Use them to search also with symtab's fullname.
11761 * source.c (find_source_lines): Replace symtab->filename refererences
11762 by symtab_to_filename_for_display calls.
11763 (print_source_lines_base): New variable filename, use it instead of
11764 symtab->filename. Replace symtab->filename refererences by
11765 symtab_to_filename_for_display calls.
11766 (line_info, forward_search_command): Replace symtab->filename
11767 refererences by symtab_to_filename_for_display calls.
11768 (reverse_search_command): Replace symtab->filename refererences by
11769 symtab_to_filename_for_display calls. New variable filename for it.
11770 * stack.c (frame_info): Likewise.
11771 * symmisc.c: Include source.h.
11772 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11773 (maintenance_info_symtabs): Replace symtab->filename refererences by
11774 symtab_to_filename_for_display calls.
11775 * symtab.c (iterate_over_some_symtabs): Call
11776 compare_filenames_for_search also with symtab_to_fullname.
11777 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11778 symtab->filename refererences by symtab_to_filename_for_display calls.
11779 (find_line_symtab): Replace symtab->filename refererences by
11780 symtab_to_filename_for_display calls.
11781 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11782 (print_symbol_info): Make the last parameter const char *. New
11783 variable s_filename. Use it in the function.
11784 (symtab_symbol_info): Make the last_filename variable const char *.
11785 Replace symtab->filename refererences by symtab_to_filename_for_display
11786 calls.
11787 (rbreak_command): New variable fullname. Use it. Replace
11788 symtab->filename refererence by symtab_to_filename_for_display call.
11789 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11790 (print_one_static_tracepoint_marker): Replace symtab->filename
11791 refererences by symtab_to_filename_for_display calls.
11792 * tui/tui-source.c (tui_set_source_content): New variables filename and
11793 s_filename. Replace symtab->filename refererences by this variable.
11794 Replace other symtab->filename refererences by
11795 symtab_to_filename_for_display calls.
11796
1b56eb55
JK
117972013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11798 Jan Kratochvil <jan.kratochvil@redhat.com>
11799
11800 Add a new variable that controls a way in which filenames are
11801 displayed.
11802 * NEWS (set filename-display): New entry.
11803 * source.c (filename_display_basename, filename_display_relative)
11804 (filename_display_absolute, filename_display_kind_names)
11805 (filename_display_string, show_filename_display_string)
11806 (symtab_to_filename_for_display): New.
11807 (_initialize_source): Added initialization of 'filename-display'
11808 variable.
11809 * source.h (symtab_to_filename_for_display): Added declaration.
11810 * stack.c (print_frame): Added new variable and calling of a new
11811 function and condition with this variable. Changed third argument of
11812 calling of a function.
11813
aa079c93
JK
118142013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11815
11816 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11817 Rename field reference filename to fullname.
11818 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11819 fullname. New comment for it.
11820 * tui/tui-source.c (tui_set_source_content): Rename field reference
11821 filename to fullname. Initialize field by symtab_to_fullname now.
11822 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11823 reference filename to fullname. Use symtab_to_fullname during
11824 comparison.
11825
652a8996
JK
118262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11827
11828 Code cleanup.
11829 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11830 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11831 filename to fullname. Rename variable this_name to this_fullname.
11832 Lowercase FILENAME_CMP call.
11833 (dw2_find_symbol_file): New comment for the returned string.
11834 (dwarf2_gdb_index_functions): Rename the function to
11835 dw2_expand_symtabs_with_fullname.
11836 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11837 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11838 fullname.
11839 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11840 * symfile.h (struct quick_symbol_functions): Rename field
11841 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11842 parameter filename to fullname. Document returned string meaning for
11843 find_symbol_file.
11844 * symtab.c (find_line_symtab): Rename the called function to
11845 expand_symtabs_with_fullname.
11846
af529f8f
JK
118472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11848
11849 Code cleanup.
11850 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11851 call of filename_cmp with compare_filenames_for_search.
11852 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11853 is_abs, unify the call of FILENAME_CMP with
11854 compare_filenames_for_search. New gdb_asserts for real_path and name.
11855 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11856 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11857 * symfile.h (struct quick_symbol_functions): Extend the comment for
11858 map_symtabs_matching_filename.
11859 * symtab.c (compare_filenames_for_search): Remove the function comment
11860 relative path requirement. Handle absolute filenames, with a comment.
11861 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11862 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11863 real_path and name. Unify the call of compare_filenames_for_search
11864 with FILENAME_CMP.
11865 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11866
2f202fde
JK
118672013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11868
11869 Code cleanup.
11870 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11871 source_file references by symtab field references. Remove variables
11872 sal and fullname.
11873 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11874 (clear_command, say_where): Replace bp_location field source_file
11875 references by symtab field references.
11876 (bp_location_dtor): Remove the source_file reference.
11877 (update_static_tracepoint): Replace bp_location field source_file
11878 references by symtab field references.
11879 (breakpoint_free_objfile): New function.
11880 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11881 Replace the field source_file by field symtab, extend its comment.
11882 (breakpoint_free_objfile): New declaration.
11883 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11884 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11885 field source_file references by symtab field references.
11886
f5b95b50
JK
118872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11888
11889 Replace xfullpath calls by gdb_realpath calls.
11890 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11891 function comment.
11892 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11893 Remove it from the iterate_over_some_symtabs call.
11894 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11895 Remove it from the dw2_map_expand_apply calls, remove a block handling
11896 it.
11897 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11898 Remove it from the iterate_over_some_symtabs call.
11899 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11900 Remove it from the partial_map_expand_apply calls, remove a block
11901 handling it. Drop gdb_realpath call and cleanups from the real_path
11902 handling.
11903 * source.c (openp): Drop the comment part about xfullpath. Replace
11904 xfullpath calls by gdb_realpath calls.
11905 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11906 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11907 from method map_symtabs_matching_filename and its comment.
11908 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11909 gdb_realpath call.
11910 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11911 remove it also from the function comment, remove a block handling it.
11912 Drop gdb_realpath call and cleanups from the real_path handling.
11913 (iterate_over_symtabs): Drop variable full_path and its use.
11914 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11915 * utils.c (xfullpath): Remove.
11916 * utils.h (xfullpath): Remove.
11917
d78489bf
AT
119182013-02-01 Andreas Tobler <andreast@fgznet.ch>
11919
11920 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11921 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11922 (ALLDEPFILES): Add ppc64-tdep.c.
11923 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11924 ppc64-tdep.o to gdb_target_obs.
11925 * ppc64-tdep.h: New file.
11926 * ppc64-tdep.c: New file.
11927 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11928 ppc-linux-tdep.c to here.
11929 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11930 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11931 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11932 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11933 from ppc-linux-tdep.c to here.
11934 (ppc64_convert_from_func_ptr_addr): Rename from
11935 ppc64_linux_convert_from_func_ptr_addr to
11936 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11937 here.
11938 * rs6000-tdep.c:
11939 (read_insn): Move from ppc-linux-tdep.c to here.
11940 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11941 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11942 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11943 Removed above functions.
11944 (ppc_linux_init_abi): Adjust.
11945
8db60374
AR
119462013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11947
11948 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11949
f2e5f4ce
AR
119502013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11951
11952 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11953
c1f7d745
PA
119542013-02-01 Pedro Alves <palves@redhat.com>
11955
11956 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11957 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11958
8a92335b
JK
119592013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11960
11961 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11962 files with no separate debug info.
11963 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11964 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11965 only for files with no separate debug info.
11966
8eacb197
TT
119672013-01-31 Tom Tromey <tromey@redhat.com>
11968
11969 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11970 change type.
11971 (struct jit_program_space_data): Rename from jit_inferior_data.
11972 Update comments.
11973 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11974 Change return type. Attach data to program space.
11975 (jit_program_space_data_cleanup): Rename from
11976 jit_inferior_data_cleanup; change argument type.
11977 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11978 change type.
11979 (jit_register_code): Update.
11980 (jit_update_inferior_cache): Remove.
11981 (jit_breakpoint_deleted): Get jit data from the location's program
11982 space.
11983 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11984 'ps_data', change type.
11985 (jit_inferior_init, jit_breakpoint_re_set_internal)
11986 (jit_event_handler): Update.
11987 (free_objfile_data): Get data from objfile's program space.
11988 (_initialize_jit): Update.
11989
f25c0135
TT
119902013-01-31 Tom Tromey <tromey@redhat.com>
11991
11992 PR gdb/13987:
11993 * jit.c (struct jit_inferior_data) <cached_code_address,
11994 jit_breakpoint>: New fields.
11995 (jit_breakpoint_re_set_internal): Fix logging. Only create
11996 breakpoint if cached address has changed.
11997 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11998 functions.
11999 (_initialize_jit): Register breakpoint deleted observer.
12000
974a734b
AR
120012013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12002
12003 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12004 (save_infcall_suspend_state): Ifdef out unused inf.
12005 (restore_infcall_suspend_state): Ifdef out unused inf.
12006 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12007 (jit_frame_sniffer): Remove unused inf_data.
12008
df54f8eb
AR
120092013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12010
12011 * c-exp.y (classify_inner_name): Remove unused type.
12012 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12013 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12014 need_escape.
12015 (c_get_string): Remove unused kind.
12016 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12017
5799c0b9
AR
120182013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12019
12020 * charset.c (intermediate_encoding): Remove unused i.
12021 * completer.c (signal_completer): Remove unused i.
12022 * continuations.c (discard_my_continuations_1): Remove unused
12023 continuation_ptr.
12024 * corelow.c (core_close): Remove unuseD name.
12025 (get_core_siginfo): Remove unused pid.
12026 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12027 i, cps.
12028 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12029 (loclist_describe_location): Remove unused first.
12030 * event-top.c (command_line_handler): Remove unused got_eof.
12031 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12032 (resize_section_table): Remove unused old_value.
12033 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12034 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12035 * i386-tdep.c (i386_process_record): Remove unused rex.
12036 * infcmd.c (get_return_value): Remove unused uiout.
12037 * jv-lang.c (type_from_class): Remove unused is_array.
12038 * jv-valprint.c (java_val_print): Remove unused i.
12039 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12040 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12041 * m2-typeprint.c (m2_print_type): Remove unused code.
12042 * macroexp.c (get_character_constant): Remove unused body_start.
12043 (macro_stringify): Remove unused result.
12044 * objc-lang.c (find_methods): Remove unused gdbarch.
12045 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12046 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12047 * stack.c (print_frame_args): Remove unused summary.
12048 * thread.c (thread_apply_command): Remove unused p.
12049 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12050 * valops.c (search_struct_method): Remove unused skip.
12051 * valprint.c (generic_val_print): Remove unused byte_order.
12052 * varobj.c (varobj_update): Remove unused changed.
12053 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12054 (alias_command): Remove unused c.
12055 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12056 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12057 format.
12058 (mi_cmd_data_write_memory): Remove unused word_format.
12059 (mi_cmd_data_write_memory_bytes): Remove unused r.
12060 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12061 p_start, p_end.
12062 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12063 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12064 line_width.
12065
c656bca5
AR
120662013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12067
12068 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12069 * symtab.c (iterate_over_symtabs): Remove unused s.
12070 (find_pc_sect_symtab): Remove unused pspAce.
12071 (find_pc_sect_line): Remove unused alt_symtab.
12072 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12073 (completion_list_add_name): Remove unused newsize.
12074
7078baeb
TT
120752013-01-31 Tom Tromey <tromey@redhat.com>
12076
12077 PR c++/14998:
12078 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12079 TYPE_CODE_FUNC.
12080
c2e8b827
AR
120812013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12082
12083 * target.c (target_read_string): Remove unused origlen.
12084
0e43993a
AR
120852013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12086
12087 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12088 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12089 * ax-general.c (ax_print): Remove unused is_float.
12090 * blockframe.c (block_innermost_frame): Remove unused start, end.
12091 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12092
765a97ab
AR
120932013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12094
12095 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12096 (svr4_read_so_list): Remove unused lmo.
12097 * solib-target.c (solib_target_relocate_section_addresses): Remove
12098 unused flags.
12099
a99dad3d
TT
121002013-01-30 Tom Tromey <tromey@redhat.com>
12101
12102 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12103
3bff1ecd
TT
121042013-01-30 Tom Tromey <tromey@redhat.com>
12105
12106 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12107 * utils.c (gnu_debuglink_crc32): Remove.
12108 * utils.h (gnu_debuglink_crc32): Don't declare.
12109
7d455152
TT
121102013-01-30 Tom Tromey <tromey@redhat.com>
12111
12112 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12113 (read_structure_type, read_enumeration_type): Remove cast.
12114
abee88f2
TT
121152013-01-30 Tom Tromey <tromey@redhat.com>
12116
12117 * dwarf2read.c (read_namespace_type): Remove cast.
12118 (read_typedef): Likewise.
12119
8d9878a4
TT
121202013-01-29 Tom Tromey <tromey@redhat.com>
12121
12122 * dwarf2read.c (free_dwo_file): Remove assert.
12123
a543d2a9
TT
121242013-01-29 Tom Tromey <tromey@redhat.com>
12125
12126 * value.c (deprecated_set_value_modifiable): Remove.
12127 * value.h (deprecated_set_value_modifiable): Remove.
12128
bed911e5
DE
121292013-01-28 Doug Evans <dje@google.com>
12130
12131 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12132 to addresses from dwo files.
12133
28c64fc2
SCR
121342013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12135
12136 * valops.c (find_overload_match): Remove unused argument 'lax'.
12137 * value.h: Remove unused argument 'lax' from the declaration of
12138 find_overload_match.
12139 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12140 to find_overload_match.
12141 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12142 argument to find_overload_match.
12143
4d4ec4e5
TT
121442013-01-25 Tom Tromey <tromey@redhat.com>
12145
12146 * dwarf2read.c (processing_has_namespace_info): Remove.
12147 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12148 (process_die, read_func_scope, dwarf2_start_symtab)
12149 (new_symbol_full): Update.
12150
195a3f6c
TT
121512013-01-25 Tom Tromey <tromey@redhat.com>
12152
12153 * cp-namespace.c (cp_set_block_scope): Remove.
12154 * cp-support.h (cp_set_block_scope): Remove.
12155 * dbxread.c: Include block.h.
12156 (cp_set_block_scope): New function.
12157 (process_one_symbol): Update.
12158 * dwarf2read.c (read_func_scope): Use block_set_scope.
12159
8ba0730a
PA
121602013-01-25 Pedro Alves <palves@redhat.com>
12161
12162 * remote.c (add_current_inferior_and_thread): Tweak comment.
12163
12aaed36
TT
121642013-01-25 Tom Tromey <tromey@redhat.com>
12165
12166 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12167 (cp_add_using_directive): Add 'copy_names' argument.
12168 * cp-support.h (cp_add_using_directive): Update.
12169 (struct using_direct) <import_src, import_dest, alias,
12170 declaration>: Now const.
12171 * dwarf2read.c (read_import_statement): Use obconcat.
12172 Don't copy names passed to cp_add_using_directive.
12173
7fc75ca7
TT
121742013-01-25 Tom Tromey <tromey@redhat.com>
12175
12176 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12177
3405876a
PA
121782013-01-25 Pedro Alves <palves@redhat.com>
12179
12180 * remote.c (stop_reply_extract_thread): New.
12181 (add_current_inferior_and_thread): New parameter 'wait_status'.
12182 Handle it.
12183 (remote_start_remote): Pass wait status to
12184 add_current_inferior_and_thread.
12185 (extended_remote_run): Update comment.
12186 (extended_remote_create_inferior_1): Pass wait status to
12187 add_current_inferior_and_thread.
12188
8954db33
AB
121892013-01-25 Andrew Burgess <aburgess@broadcom.com>
12190 Ulrich Weigand <uweigand@de.ibm.com>
12191
12192 * valarith.c (value_vector_widen): New function for replicating a
12193 scalar into a vector.
12194 (value_binop): Use value_vector_widen to widen scalar to vector
12195 rather than casting, this better matches gcc C behaviour.
12196 * valops.c (value_casst): Update logic for casting between vector
12197 types, and for casting from scalar to vector, try to match gcc C
12198 behaviour.
12199 * value.h (value_vector_widen): Declare.
12200 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12201 function, handle special case for casting scalar to vector.
12202 (opencl_relop): Use opencl_value_cast.
12203 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12204 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12205 in order to use opencl_value_cast.
12206
843b20dc
YQ
122072013-01-25 Yao Qi <yao@codesourcery.com>
12208
12209 * event-loop.c: Include "queue.h".
12210 (gdb_event_p): New typedef.
12211 (DECLARE_QUEUE_P): Use.
12212 (DEFINE_QUEUE_P): Use.
12213 (async_queue_event): Remove.
12214 (gdb_event_xfree): New.
12215 (initialize_event_loop): New.
12216 (process_event): Use QUEUE macros.
12217 (event_queue): Remove.
12218 (gdb_wait_for_event): Caller update.
12219 (check_async_event_handlers): Likewise.
12220 (poll_timers): Likewise.
12221 * event-loop.h (initialize_event_loop): Declare.
12222 * event-loop.c (gdb_event_xfree): New.
12223 * top.c (gdb_init): Call initialize_event_loop.
12224
20ad8856
YQ
122252013-01-25 Yao Qi <yao@codesourcery.com>
12226
12227 * event-loop.c (async_queue_event): Remove one parameter
12228 'position'. Remove code handling 'position' == TAIL.
12229 (gdb_wait_for_event): Caller update.
12230 (check_async_event_handlers): Caller update.
12231 (poll_timers): Caller update.
12232 * event-loop.h (enum queue_position): Remove.
12233
3bbbe775
MK
122342013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12235
12236 * MAINTAINERS: Update my email.
12237
a87d9ac4
YQ
122382013-01-25 Yao Qi <yao@codesourcery.com>
12239
12240 * main.c (print_gdb_help): Remove "--epoch" from the help
12241 message.
12242
2077afdd
TD
122432013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12244
12245 * symtab.c (skip_prologue_using_sal): Consider a file
12246 change the same as an increased line number
12247
63da4037
TD
122482013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12249
30e8ee25 12250 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12251
45e6c716
TT
122522013-01-24 Tom Tromey <tromey@redhat.com>
12253
12254 * ada-lang.h (ada_decode_symbol): Make return type const.
12255 * ada-lang.c (ada_decode_symbol): Likewise.
12256
b1ae631a
DE
122572013-01-23 Doug Evans <dje@google.com>
12258
12259 * linespec.c (find_linespec_symbols): Make static.
12260
55a78401
SDJ
122612013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12262
12263 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12264 type on float conversion for complex type.
12265
bea883fd
SCR
122662013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12267
12268 Add a new class gdb.Architecture which exposes GDB's
12269 internal representation of architecture via GDB Python API.
12270 * Makefile.in: Add entries corresponding to the new file
12271 python/py-arch.c.
12272 * NEWS (Python Scripting): Add entries for the new class
12273 gdb.Architecture and the new method gdb.Frame.architecture.
12274 * python/py-arch.c: Implement gdb.Architecture class.
12275 * python/py-frame.c (frapy_arch): Implement the method
12276 gdb.Frame.architecture().
12277 (frame_object_methods): Add 'architecture' to the method table.
12278 * python/python-internal.h: Add declarations of new utility
12279 functions.
12280 * python/python.c (_initialize_python): Initialize
12281 gdb.Architecture class.
12282
796a7ff8
DE
122832013-01-23 Doug Evans <dje@google.com>
12284
12285 Work around binutils/15021.
12286 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12287 type_unit_group out of union s. All uses updated.
12288 (read_index_from_section): Watch for index version 8.
12289 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12290 an imported symtab.
12291 (write_psymtabs_to_index): Increment version number to 8.
12292
0928e93d
PA
122932013-01-22 Pedro Alves <palves@redhat.com>
12294
12295 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12296 user-visible.
12297
9c97429f
PA
122982013-01-22 Pedro Alves <palves@redhat.com>
12299
12300 * annotate.c (annotate_breakpoints_changed): Rename to ...
12301 (annotate_breakpoints_invalid): ... this. Make static.
12302 (breakpoint_changed): Adjust.
12303 (_initialize_annotate): Always install the observers. Install a
12304 "breakpoint_created" observer.
12305 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12306 * breakpoint.c (set_breakpoint_condition)
12307 (breakpoint_set_commands, do_map_commands_command)
12308 (init_raw_breakpoint, clear_command, set_ignore_count)
12309 (enable_breakpoint_disp): No longer call
12310 annotate_breakpoints_changed.
12311
bd00c694
PA
123122013-01-22 Pedro Alves <palves@redhat.com>
12313
12314 * annotate.c: Include "inferior.h".
12315 (frames_invalid_emitted)
12316 (breakpoints_invalid_emitted): New globals.
12317 (async_background_execution_p): New function.
12318 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12319 emitting the annotation if it has already been emitted.
12320 (annotate_display_prompt): New function.
12321 * annotate.h (annotate_display_prompt): New declaration.
12322 * event-top.c: Include annotate.h.
12323 (display_gdb_prompt): Call annotate_display_prompt.
12324
187d10dd
PA
123252013-01-22 Pedro Alves <palves@redhat.com>
12326
12327 * annotate.c (ignore_count_changed): Delete.
12328 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12329 (annotate_ignore_count_change): Delete.
12330 (annotate_stopped): Don't emit a delayed breakpoints-changed
12331 annotation.
12332 * annotate.h (annotate_ignore_count_change): Delete.
12333 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12334 annotate_ignore_count_change.
12335
d84cf7eb
TT
123362013-01-22 Tom Tromey <tromey@redhat.com>
12337
12338 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12339 require_rvalue for a register location.
12340
8f1d5693
MK
123412013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12342
12343 * breakpoint.c (print_one_breakpoint_location): Add MI
12344 field 'thread-groups' when printing a breakpoint.
12345 (output_thread_groups): New function.
12346
aa6199c6
SCR
123472013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12348
12349 * python/lib/gdb/commands/explore.py
12350 (CompoundExplorer.explore_expr): Correct the name of a method
12351 being invoked.
12352 (ExploreTypeCommand.invoke): Add a missing 'return'.
12353
d2afef13
TT
123542013-01-21 Tom Tromey <tromey@redhat.com>
12355
12356 * gdb_obstack.h (obconcat): Move declaration here, from...
12357 * symfile.h (obconcat): ... here.
12358 * gdb_obstack.c: New file.
12359 (obconcat): Move from...
12360 * symfile.c (obconcat): ... here.
12361 * Makefile.in (SFILES): Add gdb_obstack.c.
12362 (COMMON_OBS): Add gdb_obstack.o.
12363
10f0c4bb
TT
123642013-01-21 Tom Tromey <tromey@redhat.com>
12365
12366 * symfile.h (obsavestring): Don't declare.
12367 * symfile.c (obsavestring): Remove.
12368 * ada-exp.y: Use obstack_copy0, not obsavestring.
12369 * ada-lang.c: Use obstack_copy0, not obsavestring.
12370 * coffread.c: Use obstack_copy0, not obsavestring.
12371 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12372 * dbxread.c: Use obstack_copy0, not obsavestring.
12373 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12374 * jit.c: Use obstack_copy0, not obsavestring.
12375 * mdebugread.c: Use obstack_copy0, not obsavestring.
12376 * psymtab.c: Use obstack_copy0, not obsavestring.
12377 * stabsread.c: Use obstack_copy0, not obsavestring.
12378 * xcoffread.c: Use obstack_copy0, not obsavestring.
12379
86f62fd7
TT
123802013-01-21 Tom Tromey <tromey@redhat.com>
12381
12382 * dwarf2read.c (fixup_go_packaging): Save package name
12383 on objfile obstack.
12384 * gdbtypes.c (init_type): Don't copy name.
12385
15d034d0
TT
123862013-01-21 Tom Tromey <tromey@redhat.com>
12387
12388 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12389 const.
12390 (struct attribute) <u.str>: Now const.
12391 (struct fnfieldlist) <name>: Now const.
12392 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12393 (partial_die_parent_scope): Make return type const.
12394 (partial_die_full_name, add_partial_symbol): Update.
12395 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12396 'name' const.
12397 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12398 (read_file_scope, read_func_scope, dwarf2_add_field)
12399 (dwarf2_add_member_fn, read_structure_type)
12400 (process_enumeration_scope, read_array_type, read_module_type)
12401 (read_base_type, read_subrange_type): Update.
12402 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12403 (new_symbol_full, guess_full_die_structure_name): Update.
12404 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12405 (dwarf2_name): Return const type.
12406 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12407 const.
12408
748e18ae
TT
124092013-01-21 Tom Tromey <tromey@redhat.com>
12410
12411 * gdbtypes.c (init_type): Make 'name' const.
12412 * gdbtypes.h (init_type): Update.
12413
46212e0b
TT
124142013-01-21 Tom Tromey <tromey@redhat.com>
12415
12416 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12417 (start_symtab): Make 'name' and 'dirname' const. Use
12418 set_last_source_file.
12419 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12420 (last_source_file): Define. Now static.
12421 (set_last_source_file, get_last_source_file): New functions.
12422 * buildsym.h (last_source_file): Don't declare.
12423 (start_symtab): Update.
12424 (set_last_source_file, get_last_source_file): Declare.
12425 * coffread.c (complete_symtab): Use set_last_source_file.
12426 (coff_end_symtab): Likewise.
12427 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12428 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12429 set_last_source_file.
12430 (process_one_symbol): Use get_last_source_file.
12431 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12432 (psymtab_to_symtab_1): Use get_last_source_file.
12433 * xcoffread.c (process_linenos): Use get_last_source_file.
12434 (complete_symtab): Use set_last_source_file.
12435 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12436 (scan_xcoff_symtab): Use set_last_source_file.
12437
9d2ceabe
TT
124382013-01-21 Tom Tromey <tromey@redhat.com>
12439
12440 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12441 (symbol_set_names): Remove casts. Handle field const-ness.
12442
cfc594ee
TT
124432013-01-21 Tom Tromey <tromey@redhat.com>
12444
12445 * dwarf2read.c (new_symbol_full): Remove cast.
12446 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12447 * symtab.h (symbol_set_demangled_name): Update.
12448
5484b13a
TT
124492013-01-21 Tom Tromey <tromey@redhat.com>
12450
12451 * main.c (captured_main): Call bfd_init.
12452
1605ef26
TT
124532013-01-21 Tom Tromey <tromey@redhat.com>
12454
12455 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12456 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12457 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12458 * NEWS: Update.
12459
3b74cdc3
JK
124602013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12461
12462 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12463
5a352474
JK
124642013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12465
12466 Fix gdb.fortran/common-block.exp crash in PIE mode.
12467 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12468 LOC_COMMON_BLOCK.
12469 * f-valprint.c (info_common_command_for_block): Expect
12470 LOC_COMMON_BLOCK in gdb_assert.
12471 * symtab.h (struct general_symbol_info): Update comment for the
12472 common_block member.
12473 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12474 (enum address_class): New member LOC_COMMON_BLOCK.
12475
c60797fd
DB
124762013-01-18 David Blaikie <dblaikie@gmail.com>
12477
12478 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12479
46f35228
TT
124802013-01-18 Tom Tromey <tromey@redhat.com>
12481
12482 PR c++/14999:
12483 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12484 Call require_rvalue.
12485
257e7a09
YQ
124862013-01-18 Yao Qi <yao@codesourcery.com>
12487
12488 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12489 (dbx_read_symtab): New declaration.
12490 (dbx_psymtab_to_symtab): Delete.
12491 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12492 Rename parameter PST to SELF. Exchanged two parameters.
12493 (start_psymtab): Caller update.
12494 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12495 (dwarf2_read_symtab): New declaration.
12496 (dwarf2_psymtab_to_symtab): Delete.
12497 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12498 Rename parameter PST to SELF. Exchanged two parameters.
12499 (create_partial_symtab): Caller update.
12500 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12501 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12502 Rename parameter PST to SELF. Exchanged two parameters.
12503 (parse_partial_symbols, new_psymtab): Caller update.
12504 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12505 two parameters.
12506 * psymtab.c (psymtab_to_symtab): Caller update.
12507 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12508 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12509 Rename parameter PST to SELF. Exchanged two parameters.
12510 (xcoff_start_psymtab): Caller update.
12511
0de5618e
YQ
125122013-01-18 Yao Qi <yao@codesourcery.com>
12513
12514 * infrun.c (proceed): Rename local variable 'oneproc' to
12515 'force_step'.
12516
5c04624b
DE
125172013-01-17 Doug Evans <dje@google.com>
12518
848e3e78
DE
12519 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12520 (dw2_build_type_unit_groups): Delete. All uses updated.
12521
5c04624b
DE
12522 * symtab.h (struct symbol_search): Add comment.
12523
d84fca2c
JK
125242013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12525
12526 * symtab.c (compare_filenames_for_search): New comment for
12527 HAS_DRIVE_SPEC.
12528
6108433d
TT
125292013-01-17 Tom Tromey <tromey@redhat.com>
12530
12531 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12532
c89ffd86
JK
125332013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12534
12535 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12536 initialize it by existing make_cleanup. Call new do_cleanups.
12537
db2b2972
TT
125382013-01-17 Tom Tromey <tromey@redhat.com>
12539
12540 * cp-abi.c (cp_abi_completer): New function.
12541 (_initialize_cp_abi): Set completer for "set cp-abi".
12542
be7d37a2
TT
125432013-01-17 Tom Tromey <tromey@redhat.com>
12544
12545 * mem-break.c: Remove obsolete comment.
12546 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12547
c9fb1240
SD
125482012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12549
12550 * jit.c (jit_reader_load_command): Interpret the jit reader name
12551 as an absolute path if it begins with a forward slash.
12552
db334a01
SD
125532012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12554
12555 PR gdb/14550
12556
12557 * jit.c (finalize_symtab): Ensure that only the global block has a
12558 NULL superblock.
12559
7d928dac
PA
125602013-01-17 Pedro Alves <palves@redhat.com>
12561
12562 * acinclude.m4: Include ../config/plugins.m4,
12563 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12564 * Makefile.in (aclocal_m4_deps): Update.
12565 * aclocal.m4: Renegerate.
12566
fb8cf7c5
DE
125672013-01-16 Doug Evans <dje@google.com>
12568
12569 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12570
ab04a2af
TT
125712013-01-16 Pedro Alves <palves@redhat.com>
12572 Tom Tromey <tromey@redhat.com>
12573
12574 PR cli/7221:
12575 * NEWS: Add "catch signal".
12576 * breakpoint.c (base_breakpoint_ops): No longer static.
12577 (bpstat_explains_signal): New function.
12578 (init_catchpoint): No longer static.
12579 (base_breakpoint_explains_signal): New function.
12580 (base_breakpoint_ops): Initialize new field.
12581 * breakpoint.h (enum bpstat_signal_value): New.
12582 (struct breakpoint_ops) <explains_signal>: New field.
12583 (bpstat_explains_signal): Remove macro, declare as function.
12584 (base_breakpoint_ops, init_catchpoint): Declare.
12585 * break-catch-sig.c: New file.
12586 * inferior.h (signal_catch_update): Declare.
12587 * infrun.c (signal_catch): New global.
12588 (handle_syscall_event): Update for change to
12589 bpstat_explains_signal.
12590 (handle_inferior_event): Likewise. Always handle random signals
12591 via bpstats.
12592 (signal_cache_update): Check signal_catch.
12593 (signal_catch_update): New function.
12594 (_initialize_infrun): Initialize signal_catch.
12595 * Makefile.in (SFILES): Add break-catch-sig.c.
12596 (COMMON_OBS): Add break-catch-sig.o.
12597
8ac3646f
TT
125982013-01-16 Tom Tromey <tromey@redhat.com>
12599
12600 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12601 (print_one_catch_solib, print_one_catch_syscall)
12602 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12603 "catch-type".
12604
5a18e302
YQ
126052013-01-16 Yao Qi <yao@codesourcery.com>
12606
12607 * printcmd.c (current_display_number): Make it static.
12608
3f01d0d0
YQ
126092013-01-16 Yao Qi <yao@codesourcery.com>
12610
12611 * infcmd.c (step_once): Don't check '!single_inst' as it was
12612 checked before.
12613
1ed59174
JK
126142013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12615
12616 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12617
44478ab3
TT
126182013-01-14 Tom Tromey <tromey@redhat.com>
12619
12620 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12621 set command.
12622 * command.h (add_setshow_string_noescape_cmd): Update.
12623 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12624 (complete_set_gnutarget): New function.
12625 (_initialize_core): Set the "set gnutarget" completer.
12626
06d66ee9
TT
126272013-01-14 Tom Tromey <tromey@redhat.com>
12628
12629 PR symtab/14442:
12630 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12631 (c_type_print_modifier): Likewise.
12632 * dwarf2read.c (read_tag_restrict_type): New function.
12633 (read_type_die_1): Handle DW_TAG_restrict_type.
12634 * gdbtypes.c (make_restrict_type): New function.
12635 (recursive_dump_type): Handle TYPE_RESTRICT.
12636 * gdbtypes.h (enum type_flag_values): Renumber.
12637 (enum type_instance_flag_value): Add
12638 TYPE_INSTANCE_FLAG_RESTRICT.
12639 (TYPE_RESTRICT): New macro.
12640 (make_restrict_type): Declare.
12641
c9bf0622
TT
126422013-01-14 Tom Tromey <tromey@redhat.com>
12643
12644 PR symtab/14931:
12645 * psymtab.c (struct psymtab_state): New.
12646 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12647 functions.
12648 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12649 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12650
44d594fd
PA
126512013-01-14 Richard Sharman <richard_sharman@mitel.com>
12652 Pedro Alves <palves@redhat.com>
12653
12654 PR remote/14786
12655
12656 * remote.c (remote_threads_info): Make a copy of the reply from
12657 qfThreadInfo and use that instead of rs->buf.
12658
442e4d9c
YQ
126592013-01-14 Yao Qi <yao@codesourcery.com>
12660
12661 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12662 (dbx_psymtab_to_symtab): Likewise.
12663 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12664 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12665 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12666
5b12a61c
JK
126672013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12668
12669 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12670 make_cleanup_restore_current_language. Call set_language. Move
12671 OLD_CHAIN and INNER_CHAIN cleanups.
12672 * utils.c (do_restore_current_language)
12673 (make_cleanup_restore_current_language): New functions.
12674 * utils.h (make_cleanup_restore_current_language): New declaration.
12675
f0a4b570
JK
126762013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12677
12678 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12679 non-existing files.
12680
57b3c00c
JK
12681 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12682 non-existing files if FILENAME is already absolute.
12683
daefa854
JK
126842013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12685
12686 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12687 fputs_filtered. Append trailing newline.
12688
ca9c6ee2
YQ
126892013-01-11 Yao Qi <yao@codesourcery.com>
12690 Stan Shebs <stan@codesourcery.com>
12691
12692 * psymtab.c (init_psymbol_list): Clarify the comment.
12693
f28045c2
YQ
126942013-01-11 Yao Qi <yao@codesourcery.com>
12695
12696 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12697 (update_dprintf_command_list): Assert that 'printf_line' is
12698 non-null. Remove condition check.
12699
da5132d3
JK
127002013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12701
12702 Code cleanup.
12703 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12704 type const char *.
12705 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12706 const char *.
12707 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12708
843e694d
AG
127092013-01-09 Anthony Green <green@moxielogic.com>
12710
12711 * cp-abi.c (cplus_print_vtable): Don't return value from void
12712 function.
12713 * ada-lang.c (re_set_catch_assert): Ditto.
12714
da51c347
DE
127152013-01-09 Doug Evans <dje@google.com>
12716
12717 * symfile.h (quick_symbol_functions): Delete member
12718 pre_expand_symtabs_matching. All uses removed.
12719 * dwarf2read.c (dw2_lookup_symbol): Implement.
12720 (dw2_do_expand_symtabs_matching): Delete.
12721 (dw2_pre_expand_symtabs_matching): Delete.
12722 (struct dw2_symtab_iterator): New type.
12723 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12724 (dw2_expand_symtabs_for_function): Rewrite.
12725 (dwarf2_gdb_index_functions): Update.
12726 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12727 (psym_functions): Update.
12728
b2259038
TT
127292013-01-09 Tom Tromey <tromey@redhat.com>
12730
12731 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12732 * configure: Rebuild.
12733 * configure.ac: Add somread.o to the build if BFD has SOM
12734 support.
12735 * somread.c: Include som/aout.h, not syms.h.
12736 (som_symtab_read): Use som_external_symbol_dictionary_record.
12737 Unpack records manually.
12738 (_initialize_somread): Declare.
12739
bdad4180
MF
127402012-01-08 Mike Frysinger <vapier@gentoo.org>
12741
12742 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12743 Cast return_address to 64bits.
12744
03cdf680
HZ
127452013-01-08 Hui Zhu <hui_zhu@mentor.com>
12746
12747 * printcmd.c: Remove define of function output_command.
12748 * tracepoint.c: Remove extern of function output_command.
12749 * valprint.h: (output_command): New extern.
12750
8a808554
TT
127512013-01-07 Tom Tromey <tromey@redhat.com>
12752
12753 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12754 Remove.
12755 (objc_language_defn): Use c_printchar, c_printstr,
12756 c_emit_char.
12757
e93a8774
TT
127582013-01-07 Tom Tromey <tromey@redhat.com>
12759
12760 PR cli/7719:
12761 * NEWS: Update.
12762 * ada-valprint.c (printstr, print_field_values): Remove
12763 "inspect_it" code.
12764 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12765 code.
12766 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12767 code.
12768 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12769 * main.c (captured_main): Remove "epoch" argument.
12770 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12771 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12772 * p-valprint.c (pascal_object_print_value_fields): Remove
12773 "inspect_it" code.
12774 * printcmd.c (print_command_1): Remove 'inspect' argument.
12775 (print_command, call_command): Update.
12776 (inspect_command): Remove.
12777 (_initialize_printcmd): Make "inspect" an alias for "print".
12778 * top.c (epoch_interface): Remove.
12779 * top.h (epoch_interface): Remove.
12780 * valprint.c (user_print_options): Update.
12781 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12782 * valprint.h (struct value_print_options) <inspect_it>: Remove
12783 field.
12784
127852013-01-04 Tom Tromey <tromey@redhat.com>
12786
12787 * valprint.h (read_string): Add 'extern'.
12788
b967eb24
JB
127892013-01-07 Joel Brobecker <brobecker@adacore.com>
12790
12791 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12792 used to decide whether to define darwin_read_dyld_info or not.
12793
78a8b30e
PM
127942013-01-03 Pierre Muller <muller@sourceware.org>
12795
12796 * main.c (relocate_gdb_directory): Avoid calling stat function
12797 if DIR is empty.
12798
50da2f25
YQ
127992013-01-03 Yao Qi <yao@codesourcery.com>
12800
12801 * psymtab.c (fixup_psymbol_section): Update declaration.
12802 (fixup_psymbol_section): Remove code returning value.
12803
e7e8980f
YQ
128042013-01-03 Yao Qi <yao@codesourcery.com>
12805
12806 * symtab.h: Remove some out of date comments.
12807 (enum exception_event_kind): Move it ...
12808 * breakpoint.c: ... here.
12809
569283d4
MF
128102013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12811
9f9d9a96 12812 PR gdb/14405
569283d4
MF
12813 * darwin-nat.c (darwin_read_dyld_info): Only build if
12814 TASK_DYLD_INFO_COUNT is defined.
12815 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12816 TASK_DYLD_INFO_COUNT is defined.
12817
2e36fbea
TT
128182013-01-02 Tom Tromey <tromey@redhat.com>
12819
12820 * symfile.h (struct ecoff_debug_hack): Remove.
12821 * objfiles.c: Don't include mdebugread.h.
12822
4f05add4
TT
128232013-01-02 Tom Tromey <tromey@redhat.com>
12824
12825 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12826 * configure.ac: Check for Mach-O support in BFD. Update
12827 CONFIG_OBS.
12828 * configure: Rebuild.
12829
def63ff0
TT
128302013-01-02 Tom Tromey <tromey@redhat.com>
12831
12832 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12833 * configure.ac: Use GDB_AC_CHECK_BFD.
12834 * configure: Rebuild.
12835
60c5dd93
MK
128362013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12837
12838 * MAINTAINERS: Update my email.
12839
6e58437e
JB
128402013-01-01 Joel Brobecker <brobecker@adacore.com>
12841
12842 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12843
627fe805
JB
128442013-01-01 Joel Brobecker <brobecker@adacore.com>
12845
12846 * rs6000-nat.c (bss_data_overlap): New function.
12847 (vmap_symtab): Use it to adjust the .bss section's offset.
12848
28e7fd62
JB
128492013-01-01 Joel Brobecker <brobecker@adacore.com>
12850
12851 Update year range in copyright notice of all files.
12852
e93a8774 128532013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12854
12855 * top.c (print_gdb_version): Update copyright year.
12856
72b20e9c 12857For older changes see ChangeLog-2012.
c906108c
SS
12858\f
12859Local Variables:
12860mode: change-log
12861left-margin: 8
12862fill-column: 74
12863version-control: never
57da7796 12864coding: utf-8
c906108c 12865End:
This page took 2.078265 seconds and 4 git commands to generate.