PR 16329: remote debugging broken on Solaris.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9a362b9a
PA
12013-12-16 Pedro Alves <palves@redhat.com>
2
3 PR 16329
4 * sol-thread.c (check_for_thread_db): If the target can't run or
5 isn't a core, return without pushing.
6
b030cf11
JB
72013-12-15 Joel Brobecker <brobecker@adacore.com>
8
9 Revert the following commit:
10 * solib.c (solib_map_sections): Remove code overwriting
11 SO->SO_NAME with the bfd's filename.
12
13 Make the following changes required after the revert above:
14 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
15 returned bfd to a copy of the synthetic pathname.
16 * solib-darwin.c (darwin_bfd_open): Set the filename of the
17 returned bfd to a copy of PATHNAME.
18
8a48ac95
JB
192013-12-13 Joel Brobecker <brobecker@adacore.com>
20
21 * ada-lang.c (ada_array_bound_from_type): Move the declaration
22 and assignment of variable "elt_type" inside the else block
23 where it is used. Add two missing check_typedef calls.
24 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
25 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
26
fb5e3d5c
JB
272013-12-13 Joel Brobecker <brobecker@adacore.com>
28
29 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
30 between 'struct type *' and 'arr_type'.
31
a16b0e22
SC
322013-12-12 Siva Chandra Reddy <sivachandra@google.com>
33
34 PR python/16113
35 * NEWS (Python Scripting): Add entry for the new feature and the
36 new attribute of gdb.Field objects.
37 * python/py-type.c (gdbpy_is_field): New function
38 (convert_field): Add 'parent_type' attribute to gdb.Field
39 objects.
40 * python/py-value.c (valpy_getitem): Allow subscript value to be
41 a gdb.Field object.
42 (value_has_field): New function
43 (get_field_flag): New function
44 * python/python-internal.h (gdbpy_is_field): Add declaration.
45
b15e5c54
PA
462013-12-12 Pedro Alves <palves@redhat.com>
47
48 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
49 const, and remove casts.
50
f23981e9
PA
512013-12-12 Pedro Alves <palves@redhat.com>
52
53 * cli/cli-cmds.c (source_script_from_stream) Use have_python
54 instead of catching UNSUPPORTED_ERROR.
55 * exceptions.h (UNSUPPORTED_ERROR): Delete.
56 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
57 error if called.
58 * python/python.h (have_python): New static inline function.
59
43942612
DE
602013-12-11 Doug Evans <dje@google.com>
61
62 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
63 "can't find DWO" warning.
64
08a6411c
SDJ
652013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
66
67 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
68 to get_probe_argument_count and evaluate_probe_argument.
69 * probe.c (get_probe_argument_count): Adjust declaration to accept
70 frame. Pass frame to probe_ops's get_probe_argument_count.
71 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
72 (probe_safe_evaluate_at_pc): Pass frame to
73 get_probe_argument_count and evaluate_probe_argument.
74 * probe.h (struct probe_ops) <get_probe_argument_count,
75 evaluate_probe_argument>: Adjust declarations to accept frame.
76 (get_probe_argument_count, evaluate_probe_argument): Likewise.
77 * solib-svr4.c (solib_event_probe_action): Get current frame.
78 Pass it to get_probe_argument_count.
79 (svr4_handle_solib_event): Get current frame. Pass it to
80 get_probe_argument_count and evaluate_probe_argument.
81 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
82 accept gdbarch. Do not obtain it from the probe's objfile.
83 (stap_get_probe_argument_count): Adjust declaration to accept
84 frame. Obtain gdbarch from the frame. Call generic
85 can_evaluate_probe_arguments. Pass gdbarch to
86 stap_parse_probe_arguments.
87 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
88 stap_parse_probe_arguments.
89 (stap_evaluate_probe_argument): Adjust declaration to accept
90 frame. Obtain gdbarch from the frame. Pass gdbarch to
91 stap_get_arg.
92 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
93 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
94 get_probe_argument_count and evaluate_probe_argument.
95
0987cf35
DE
962013-12-10 Doug Evans <dje@google.com>
97
98 PR 16286
99 * c-lang.c (c_get_string): Ignore the declared size of the object
100 if a specific length is requested.
101
34dc884e
DE
1022013-12-10 Doug Evans <dje@google.com>
103
104 * interps.h (interp_exec_p): Delete.
105 * interps.c (interp_exec_p): Delete.
106 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
107 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
108
bae8a07a
YQ
1092013-12-10 Yao Qi <yao@codesourcery.com>
110
111 * amd64-tdep.c (amd64_analyze_stack_align): Call
112 target_read_code instead of target_read_memory.
113 (amd64_analyze_prologue): Call read_code_unsigned_integer
114 instead of read_memory_unsigned_integer. Call read_code
115 instead of read_memory.
116 (amd64_skip_xmm_prologue): Likewise.
117
0865b04a
YQ
1182013-12-10 Yao Qi <yao@codesourcery.com>
119
120 * corefile.c (read_code): New function.
121 (read_code_integer): New function.
122 (read_code_unsigned_integer): New function.
123 * gdbcore.h (read_code): Declare.
124 (read_code_integer): Declare.
125 (read_code_unsigned_integer): Declare.
126 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
127 of target_read_memory. Call read_code_unsigned_integer instead
128 of read_memory_unsigned_integer.
129 (i386_analyze_struct_return): Likewise.
130 (i386_skip_probe): Likewise.
131 (i386_analyze_stack_align): Likewise.
132 (i386_match_pattern): Likewise.
133 (i386_skip_noop): Likewise.
134 (i386_analyze_frame_setup): Likewise.
135 (i386_analyze_register_saves): Likewise.
136 (i386_skip_prologue): Likewise.
137 (i386_skip_main_prologue): Likewise.
138 (i386_frame_cache_1): Likewise.
139
f15cb84a
YQ
1402013-12-10 Yao Qi <yao@codesourcery.com>
141
142 * infrun.c: Include "target-dcache.h".
143 (prepare_for_detach): Call target_dcache_invalidate.
144 (wait_for_inferior): Likewise.
145 (fetch_inferior_event): Likewise.
146 (infrun_thread_stop_requested_callback): Likewise. Set
147 overlay_cache_invalid to 1.
148
036e93df
JB
1492013-12-10 Joel Brobecker <brobecker@adacore.com>
150
151 * symtab.c (symbol_find_demangled_name): Add handling of
152 Ada symbols.
153
72bfa06c
JB
1542013-12-10 Joel Brobecker <brobecker@adacore.com>
155
156 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
157 * NEWS: Expand the entry documenting the new -exec-run --start
158 option to mention the corresponding new entry in the output of
159 "-list-features".
160
94481b8c
JB
1612013-12-10 Joel Brobecker <brobecker@adacore.com>
162
163 * windows-nat.c (handle_load_dll): Add comments.
164 (windows_ensure_ntdll_loaded): New function.
165 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
166 Add FIXME comment.
167
ebeec1e9 1682013-12-08 Joel Brobecker <brobecker@adacore.com>
0c2242c1
JB
169
170 GDB 7.6.2 released.
171
e5e6f788
YQ
1722013-12-08 Yao Qi <yao@codesourcery.com>
173
174 * stack.c (frame_info): Initialize variable caller_pc.
175
782d47df
PA
1762013-12-06 Pedro Alves <palves@redhat.com>
177
178 * frame.c (enum cached_copy_status): New enum.
179 (struct frame_info) <prev_pc.p>: Change type to enum
180 cached_copy_status.
181 (fprint_frame): Handle not saved and unavailable prev_pc values.
182 (frame_unwind_pc_if_available): Delete and merge contents into ...
183 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
184 to use enum cached_copy_status.
185 (frame_unwind_caller_pc_if_available): Delete.
186 (create_new_frame): Adjust.
187 * frame.h (frame_unwind_caller_pc_if_available): Delete
188 declaration.
189 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
190 frame_unwind_caller_pc_if_available, and handle
191 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
192 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
193 (val_print_not_saved): New function.
194 * valprint.h (val_print_not_saved): Declare.
195
710409a2
PA
1962013-12-06 Andrew Burgess <aburgess@broadcom.com>
197 Pedro Alves <palves@redhat.com>
198
199 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
200 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
201 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
202 * spu-tdep.c (spu_software_single_step): Throw
203 OPTIMIZED_OUT_ERROR.
204 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
205
7580e917
TT
2062013-12-06 Tom Tromey <tromey@redhat.com>
207
208 * objfiles.c (free_objfile): Update comment.
209
53e0e56d
TT
2102013-12-06 Tom Tromey <tromey@redhat.com>
211
212 * objfiles.h (objfile_to_front): Remove.
213 * objfiles.c (objfile_to_front): Remove.
214
830f7a41
TT
2152013-12-06 Tom Tromey <tromey@redhat.com>
216
217 * minsyms.c (get_symbol_leading_char): Remove unnecessary
218 declaration.
219
e1b06ae2
TT
2202013-12-06 Tom Tromey <tromey@redhat.com>
221
222 * psympriv.h (struct partial_symtab) <user>: Move earlier.
223
2b69941d
TT
2242013-12-06 Tom Tromey <tromey@redhat.com>
225
226 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
227 (list_command): Likewise.
228
bf121224
TT
2292013-12-06 Tom Tromey <tromey@redhat.com>
230
231 * psymtab.c (allocate_psymtab): Put the filename in the filename
232 bcache.
233
8e96694e
TT
2342013-12-06 Tom Tromey <tromey@redhat.com>
235
236 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
237 * symtab.h (struct symtab) <dirname>: Now const.
238
21ea9eec
TT
2392013-12-06 Tom Tromey <tromey@redhat.com>
240
241 * symfile.c (allocate_symtab): Remove cast.
242 * symtab.h (struct symtab) <filename>: Now const.
243
37fbcad0
TT
2442013-12-06 Tom Tromey <tromey@redhat.com>
245
246 * break-catch-throw.c (fetch_probe_arguments): Use
247 get_probe_argument_count and evaluate_probe_argument.
248 * elfread.c (elf_get_probe_argument_count)
249 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
250 (elf_compile_to_ax): Remove.
251 (elf_probe_fns): Update.
252 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
253 (evaluate_probe_argument): Call method on probe, not via sym
254 functions.
255 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
256 evaluate_probe_argument.
257 (compile_probe_arg): Use get_probe_argument_count. Call method on
258 probe, not via sym functions.
259 * symfile-debug.c (debug_sym_get_probe_argument_count)
260 (debug_can_evaluate_probe_arguments)
261 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
262 Remove.
263 (debug_sym_probe_fns): Remove.
264 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
265 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
266 sym_compile_to_ax>: Remove fields.
267
8662d513
PM
2682013-12-06 Pierre Muller <muller@sourceware.org>
269
270 Fix completion for pascal language.
271 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
272 (exp : field_exp name COMPLETE): New rule.
273 (exp : SIZEOF): Set correct current_type.
274 (last_was_structop): Remove static variable.
275 (yylex): Remove saw_structop local variable.
276 Adapt code to removal of variables above.
277
da361ebd
JB
2782013-12-06 Joel Brobecker <brobecker@adacore.com>
279
280 * frame.c (get_prev_frame_1): Delete variable "this_id".
281 Replace its use by a call to get_frame_id.
282
6ed1ff02
AG
2832013-12-05 Anthony Green <green@moxielogic.com>
284
285 * moxie-tdep.c (moxie_software_single_step): New function.
286 (INST2OFFSET): New helper macro.
287 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
288 (moxie_process_readu): Move this up in the file.
289
39d7494a 2902013-12-05 Doug Evans <xdje42@gmail.com>
c47cf547
DE
291
292 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
293
170d82c9
JB
2942013-12-05 Joel Brobecker <brobecker@adacore.com>
295 Tristan Gingold <gingold@adacore.com>
296
297 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
298 Accept version 2. Ignore operations using opcode 6.
299
a5e619ec
JB
3002013-12-05 Joel Brobecker <brobecker@adacore.com>
301
302 * ada-lex.l (find_dot_all): Fix coding style violations.
303
ca8941bb
WT
3042013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
305
306 * NEWS: Add section for Intel(R) Architecture Instructions
307 Extesions mentioning MPX.
308
7fb1b8b1
JB
3092013-12-03 Joel Brobecker <brobecker@adacore.com>
310
311 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
312
849f2b52
JB
3132013-12-03 Joel Brobecker <brobecker@adacore.com>
314
315 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
316 when parse_exp_1 threw an error. Add comment.
317
4e35e808
JB
3182013-12-03 Joel Brobecker <brobecker@adacore.com>
319
320 * NEWS: Mention "-list-features" in the entry documenting
321 the support for the "--language" option.
322
caf26be9
SB
3232013-12-03 Tom Tromey <tromey@redhat.com>
324 Jan Kratochvil <jan.kratochvil@redhat.com>
325 Doug Evans <dje@google.com>
326 Samuel Bronson <naesten@gmail.com>
327
328 Bring back gdb-add-index as a contrib script.
329 * contrib/gdb-add-index.sh: New file.
330 * NEWS: Note the addition.
331
34a4fb3a
SB
3322013-12-03 Samuel Bronson <naesten@gmail.com>
333
334 * MAINTAINERS (Write After Approval): Add myself to the list.
335
688981c9
JB
3362013-12-03 Joel Brobecker <brobecker@adacore.com>
337
338 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
339
c1244769
JB
3402013-12-03 Joel Brobecker <brobecker@adacore.com>
341
342 * mi/mi-main.c: Remove trailing spaces throughout.
343
2ea126fa
JB
3442013-12-03 Pedro Alves <palves@redhat.com>
345 Joel Brobecker <brobecker@adacore.com>
346
347 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
348 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
349 of a regular error when the GDB/MI command does not exist.
350 * mi/mi-main.c (mi_cmd_list_features): Add
351 "undefined-command-error-code".
352 (mi_print_exception): Print an "undefined-command"
353 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
354 * NEWS: Add entry documenting the new "code" variable in
355 "^error" result records.
356
6b7cbff1
JB
3572013-12-03 Joel Brobecker <brobecker@adacore.com>
358
359 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
360 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
361 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
362 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
363 field to output of "-list-features".
364
365 * NEWS: Add entry for new -info-gdb-mi-command.
366
04affae3
JK
3672013-12-02 Doug Evans <dje@google.com>
368 Jan Kratochvil <jan.kratochvil@redhat.com>
369
370 * objfiles.c (allocate_objfile): Save original_name as an absolute
371 path.
372 * objfiles.h (struct objfile): Expand comment on original_name.
373 * source.c (openp): Call gdb_abspath.
374 * utils.c (gdb_abspath): New function.
375 * utils.h (gdb_abspath): Declare.
376
aee4bf85
PA
3772013-12-02 Pedro Alves <palves@redhat.com>
378
379 * dcache.c (dcache_read_line): Use target_read_raw_memory.
380 * target.c (target_read_raw_memory): New function.
381 (target_read_stack, target_write_memory, target_write_raw_memory):
382 Update comment.
383 (target_read_code): Add comment.
384 * target.h (target_read_raw_memory): Declare.
385
840207d8
PA
3862013-12-02 Pedro Alves <palves@redhat.com>
387
388 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
389 unconditionally.
390
0fdf84ca
PA
3912013-12-02 Pedro Alves <pedro@codesourcery.com>
392 Maciej W. Rozycki <macro@codesourcery.com>
393
394 * remote.c (putpkt_for_catch_errors): Remove function.
395 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
396 gracefully.
397
62972e0b
YQ
3982013-12-02 Pedro Alves <palves@redhat.com>
399
400 PR remote/15974
401 * remote-notif.c (handle_notification): Return early if no
402 notification is found.
403
f9b0da3d
JB
4042013-12-02 Joel Brobecker <brobecker@adacore.com>
405
406 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
407 preprocessor check.
408
2dd4d422
JB
4092013-12-02 Joel Brobecker <brobecker@adacore.com>
410
411 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
412
e72eff80
JB
4132013-12-02 Joel Brobecker <brobecker@adacore.com>
414
415 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
416 * ctf.c (ctf_start): Remove obsolete comment.
417
844ad005
JB
4182013-12-02 Joel Brobecker <brobecker@adacore.com>
419
420 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
421
5b2bf947
DE
4222013-11-30 Doug Evans <xdje42@gmail.com>
423
424 * auto-load.h (script_language): New members name, auto_load_enabled.
425 Add missing comments on struct members.
426 (auto_load_objfile_script): Delete.
427 * auto-load.c: #include "cli/cli-cmds.h".
428 (auto_load_gdb_scripts_enabled): New function.
429 (script_language_gdb): Update, add new members.
430 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
431 and call to maybe_add_script moved to caller.
432 (auto_load_objfile_script_1): Auto-load safe-checking and
433 call to maybe_add_script moved here.
434 (auto_load_objfile_script): Make static. Early exit if support for
435 scripting language hasn't been compiled in, or auto-loading has been
436 disabled.
437 (source_section_scripts): Argument "source_name" renamed to
438 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
439 with section_name. Skip loading script if support for scripting
440 language hasn't been compiled in, or auto-loading has been disabled.
441 Call language->source_script_for_objfile instead of calling
442 source_python_script_for_objfile directly.
443 (load_auto_scripts_for_objfile): Update.
444 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
445 (gdbpy_load_auto_script_for_objfile): Delete.
446 (auto_load_python_scripts_enabled): New function.
447 (script_language_python): Update, add new members.
448 (gdbpy_script_language_defn): New function.
449 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
450 (gdbpy_script_language_defn): Declare.
451
452 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
453 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
454 (source_section_scripts): Moved here from py-auto-load.c.
455 (auto_load_section_scripts): Ditto.
456 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
457 auto-load.c, renamed AUTO_SECTION_NAME.
458 (source_section_scripts, auto_load_section_scripts): Moved to
459 auto-load.c.
460
d9c43928
YQ
4612013-11-30 Yao Qi <yao@codesourcery.com>
462
463 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
464
e7b12392
SDJ
4652013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
466
467 * gdbarch.sh: Remove include of "gdb_string.h", replace by
468 <string.h>.
469
256458bc
DE
4702013-11-29 Doug Evans <xdje42@gmail.com>
471
7b2d3abf
DE
472 * python/py-auto-load.c (source_section_scripts): Move comment to
473 more relevant location.
474
256458bc
DE
475 Whitespace cleanup.
476 * python/py-breakpoint.c: Remove trailing whitespace.
477 * python/py-cmd.c: Ditto.
478 * python/py-evts.c: Ditto.
479 * python/py-finishbreakpoint.c: Ditto.
480 * python/py-frame.c: Ditto.
481 * python/py-function.c: Ditto.
482 * python/py-inferior.c: Ditto.
483 * python/py-infthread.c: Ditto.
484 * python/py-param.c: Ditto.
485 * python/py-prettyprint.c: Ditto.
486 * python/py-symbol.c: Ditto.
487 * python/py-type.c: Ditto.
488 * python/py-utils.c: Ditto.
489 * python/py-value.c: Ditto.
490 * python/python-internal.h: Ditto.
491 * python/python.c: Ditto.
492
20e1ca3b
PA
4932013-11-29 Pedro Alves <palves@redhat.com>
494
495 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
496
8b4f3082
PA
4972013-11-29 Pedro Alves <palves@redhat.com>
498
499 * breakpoint.c (build_target_condition_list): Release previous
500 conditions.
501 (build_target_command_list): Release previous commands.
502 (bp_location_dtor): Release target conditions and commands.
503 * remote.c (remote_add_target_side_condition): Don't release
504 conditions.
505 (remote_add_target_side_commands): Don't release commands.
506
9f713294
YQ
5072013-11-29 Yao Qi <yao@codesourcery.com>
508 Pedro Alves <palves@redhat.com>
509
510 * dcache.c (dcache_read_line): Use current_target.beneath
511 instead of &current_target.
512 * target.c (memory_xfer_partial_1): Factor code out to ...
513 (raw_memory_xfer_partial): ... it. New function.
514 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
515 is TARGET_OBJECT_RAW_MEMORY.
516
4cb0213d
DE
5172013-11-28 Doug Evans <xdje42@gmail.com>
518
519 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
520 breakpoint_object. All uses updated.
521 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
522 breakpoint_object. All uses updated.
523 * python.c (*): All uses of breakpoint_object updated.
524 * python.h (*): All uses of breakpoint_object updated.
525 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
526 * python/py-finishbreakpoint.c (*): Ditto.
527
d344e670
DE
5282013-11-28 Doug Evans <xdje42@gmail.com>
529
d729aae0 530 * configure.ac: Add comments delineating libpython and libmcheck.
d344e670
DE
531 * configure: Regenerate.
532
eebc056c
AB
5332013-11-28 Andrew Burgess <aburgess@broadcom.com>
534 Pedro Alves <palves@redhat.com>
535
536 * valprint.c (value_check_printable): If the value is entirely
537 unavailable, print a single "<unavailable>" instead of printing
538 all subfields.
539
a7300869
PA
5402013-11-28 Pedro Alves <palves@redhat.com>
541
542 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
543 Add "set debug frame" output.
544 (frame_stop_reason_symbol_string): New function.
545
50fd528a
PA
5462013-11-28 Pedro Alves <palves@redhat.com>
547
548 * frame-unwind.c (default_frame_unwind_stop_reason): Return
549 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
550 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
551
5de51581
PA
5522013-11-28 Pedro Alves <palves@redhat.com>
553
554 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
555 set the unwind stop reason to UNWIND_OUTERMOST, not
556 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
557
739cb10c
PA
5582013-11-28 Pedro Alves <palves@redhat.com>
559
560 * frame.c (frame_unwind_register): Say the register was "not
561 saved" instead of "optimized out".
562
514c0aa6 5632013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92a021de 564
514c0aa6 565 PR 16152
92a021de 566 * configure: Rebuild.
514c0aa6 567 * configure.ac: Tighten cygwin detection check.
92a021de 568
908fa2aa
PA
5692013-11-27 Pedro Alves <palves@redhat.com>
570
571 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
572 register in the previous frame's arch.
573
6bd273ae
PA
5742013-11-27 Pedro Alves <palves@redhat.com>
575
576 * frame-unwind.c (frame_unwind_got_optimized): Return
577 an lval_register value instead of a not_lval value.
578
f6c01fc5
AB
5792013-11-27 Andrew Burgess <aburgess@broadcom.com>
580
581 * frame.c: Include "valprint.h".
582 (frame_unwind_register_value): Use value_optimized_out.
583 * value.c (value_fetch_lazy): Likewise.
584
4f14910f
AB
5852013-11-26 Andrew Burgess <aburgess@broadcom.com>
586
587 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
588
15859968
TT
5892013-11-26 Tom Tromey <tromey@redhat.com>
590
591 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
592 2013-11-22.
593
244ec0da
WT
5942013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
595
596 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
597 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
598 (HAS_MPX): New macro.
599 (HAS_AVX): New macro.
600 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
601
f7e3ecae
KS
6022013-11-25 Keith Seitz <keiths@redhat.com>
603
604 PR c++/14819
605 * c-exp.y (classify_inner_name): If no matching symbol was
606 found, try looking up the token as a base class.
607 Likewise if a constructor was found.
608 * cp-namespace.c (find_type_baseclass_by_name): New function.
609 * cp-support.h (find_type_baseclass_by_name): Declare.
610 * valops.c (value_struct_elt_for_reference): If we get
611 a non-static field, try to get a value based on the
612 current instance, if any.
613
283f7163
YQ
6142013-11-24 Yao Qi <yao@codesourcery.com>
615
616 * disasm.c (dis_asm_read_memory): Call target_read_code
617 instead of target_read_memory.
618
29453a14
YQ
6192013-11-24 Yao Qi <yao@codesourcery.com>
620
621 * NEWS: Add note on new "set code-cache" option.
622 * target-dcache.c (code_cache_enabled_1): New variable.
623 (code_cache_enabled): New variable.
624 (show_code_cache, set_code_cache): New function.
625 (code_cache_enabled_p): New function.
626 (_initialize_target_dcache): Register command.
627 * target-dcache.h (code_cache_enabled_p): Declare.
628 * target.c (memory_xfer_partial_1):Handle
629 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
630 (target_read_code): New function.
631 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
632 New.
633 (target_read_code): Declare.
634
0fb14d8f
YQ
6352013-11-24 Yao Qi <yao@codesourcery.com>
636
637 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
638 (stack_cache_enabled_1): ... this. New variable.
639 (stack_cache_enabled_p): Rename to ...
640 (stack_cache_enabled): ... this. New variable.
641 (set_stack_cache_enabled_p): Rename to ...
642 (set_stack_cache): ... this. Update caller.
643 (show_stack_cache_enabled_p): Rename to ...
644 (show_stack_cache): ... this. Update caller.
645 (stack_cache_enabled): Rename to ...
646 (stack_cache_enabled_p): ... this. Update caller.
647 (_initialize_target_dcache): Replace "data cache" with
648 "target memory cache".
649 * target-dcache.h (stack_cache_enabled): Remove declaration.
650 (stack_cache_enabled_p): Add declaration.
651
a12361b9
DE
6522013-11-23 Doug Evans <xdje42@gmail.com>
653
654 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
655 superfluous.
656
1e1d6920
DE
6572013-11-23 Doug Evans <xdje42@gmail.com>
658
659 * python/py-frame.c (frapy_block): Fix error message text.
660
1e9c71b8
DE
6612013-11-23 Doug Evans <xdje42@gmail.com>
662
663 * cli/cli-script.c (multi_line_command_p): New function.
664 (recurse_read_control_structure, read_command_lines_1): Call it.
665 (execute_control_command): Consistently have a blank line between
666 each case.
667
f380848e
SA
6682013-11-22 Sterling Augustine <saugustine@google.com>
669
38e1f2a7 670 PR gdb/16196:
f380848e
SA
671 * valprint.c (read_string): Set new variable fetchlen based on
672 fetchlimit and size. Use it in call to partial_memory_read.
673 Update comment.
674
da2b2fdf
TT
6752013-11-22 Tom Tromey <tromey@redhat.com>
676
677 PR backtrace/16155:
678 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
679 the return address column is unspecified.
680
6eeee81c
TT
6812013-11-22 Tom Tromey <tromey@redhat.com>
682 Pedro Alves <palves@redhat.com>
683
684 PR backtrace/16155
685 * value.c (value_fetch_lazy): Internal error if
686 get_frame_register_value returns the same register.
687
194cca41
PA
6882013-11-22 Pedro Alves <palves@redhat.com>
689 Tom Tromey <tromey@redhat.com>
690
691 * frame.c (frame_stash_add): Now returns whether a frame with the
692 same ID was already known.
693 (compute_frame_id): New function, factored out from get_frame_id.
694 (get_frame_id): No longer lazilly compute the frame id here.
695 (get_prev_frame_if_no_cycle): New function. Detects wider stack
696 cycles.
697 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
698 and checking for stack cycles here.
699
33f8fe58
PA
7002013-11-22 Pedro Alves <palves@redhat.com>
701
702 PR 16155
703 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
704 this frame and the new previous frame, not between this frame and
705 the next frame.
706
1ec56e88
PA
7072013-11-22 Pedro Alves <palves@redhat.com>
708
709 PR 16155
710 * dwarf2-frame.c (struct dwarf2_frame_cache)
711 <checked_tailcall_bottom, entry_cfa_sp_offset,
712 entry_cfa_sp_offset_p>: New fields.
713 (dwarf2_frame_cache): Adjust to use the new cache fields instead
714 of locals. Don't call dwarf2_tailcall_sniffer_first here.
715 (dwarf2_frame_prev_register): Call it here, but only once.
716
ca092b61
DE
7172013-11-21 Doug Evans <xdje42@gmail.com>
718
719 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
720 (type_equality_entry): Move here from python/py-type.c.
721 (type_equality_entry_d): Ditto.
722 (compare_maybe_null_strings, check_types_equal): Ditto.
723 (check_types_worklist, types_deeply_equal): Ditto.
724 * gdbtypes.h (types_deeply_equal): Declare.
725 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
726 (typy_richcompare): Update.
727
7c245c24
JB
7282013-11-20 Joel Brobecker <brobecker@adacore.com>
729
730 * python/py-value.c (is_intlike): Delete.
731 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
732 by use of is_integral_type.
733 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
734 by use of is_integral_type and check for TYPE_CODE_PTR.
735
8986e351
TT
7362013-11-20 Tom Tromey <tromey@redhat.com>
737
738 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
739 strerror module.
740 * gnulib/aclocal.m4: Update.
741 * gnulib/config.in: Update.
742 * gnulib/configure: Update.
743 * gnulib/import/Makefile.am: Update.
744 * gnulib/import/Makefile.in: Update.
745 * gnulib/import/errno.in.h: Remove.
746 * gnulib/import/intprops.h: Remove.
747 * gnulib/import/m4/errno_h.m4: Remove.
748 * gnulib/import/m4/gnulib-cache.m4: Update.
749 * gnulib/import/m4/gnulib-comp.m4: Update.
750 * gnulib/import/m4/strerror.m4: Remove.
751 * gnulib/import/m4/sys_socket_h.m4: Remove.
752 * gnulib/import/strerror-override.c: Remove.
753 * gnulib/import/strerror-override.h: Remove.
754 * gnulib/import/strerror.c: Remove.
755 * gnulib/update-gnulib.sh: Update.
756
6b1141e3
YQ
7572013-11-20 Yao Qi <yao@codesourcery.com>
758
759 * target-dcache.c (target_dcache_get_or_init): Call
760 set_address_space_data if 'dcache' is NULL.
761
60650f2e
WT
7622013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
763
764 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
765
09748966
WT
7662013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
767
768 * python/lib/gdb/command/bound_register.py: New file.
995c1ad9
DE
769 * data-directory/Makefile.in: Copy bond_register.py to the right path
770 to be initialized at gdb startup.
09748966 771
e43e105e
WT
7722013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
773
774 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
775 Add MPX registers.
776 (amd64_linux_read_description): Add initialization for MPX and
777 AVX independently.
778 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
779 (amd64_linux_gregset_reg_offset): Add MPX registers.
780 (amd64_linux_core_read_description): Add initialization for MPX
781 registers.
782 (_initialize_amd64_linux_tdep): Initialize MPX targets.
783 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
784 register on the list.
785 (tdesc_amd64_mpx_linux) Add new target for MPX.
786 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
787 (amd64_mpx_names): MPX register names.
788 (amd64_init_abi): Add MPX register while initializing the ABI.
789 (_initialize_amd64_tdep): Initialize MPX targets.
790 * amd64-tdep.h (amd64_regnum): Add MPX registers.
791 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
792
1dbcd68c
WT
7932013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
794
795 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
796 registers on the range of registers to be read from
797 xsave buffer.
798 (i386_linux_read_description): Add case for MPX.
799 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
800 (i386_linux_gregset_reg_offset): Add MPX registers.
801 (i386_linux_core_read_description): Initialize also MPX.
802 (_initialize_i386_linux_tdep): Add mpx initialization.
803 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
804 mpx_register_names.
805 (i386_regnum): Add MPX registers.
806 (I386_MPX_NUM_REGS): New macro.
807 (i386_bnd_regnum_p): New function.
808 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
809 number of registers to be the number of BNDSTATUS.
810 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
811 * i386-tdep.c: Include features/i386/i386-mpx.c.
812 (i386_mpx_names): Add MPX register names array.
813 (i386_bnd_names): Add bnd pseudo register names array.
814 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
815 registers.
816 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
817 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
818 registers.
819 (i386_bnd_type): New function.
820 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
821 register types.
822 (i386_pseudo_register_read_into_value): Add bnd case.
823 (i386_pseudo_register_write): Add bnd pseudo registers.
824 (i386_register_reggroup_p): Add MPX register to the group all.
825 (i386_validate_tdesc_p): Add MPX to the target description
826 validation.
827 (i386_pseudo_register_name): Add bnd pseudo registers.
828 (i386_gdbarch_init): Add MPX for architecture initialization.
829 (_initia_initialize_i386_tdep): Add mpx initialization.
830 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
831 XSAVE buffer.
832 (XSAVE_MPX_ADDR): New macro.
833 (i387_supply_xsave): Add MPX case.
834 (i387_collect_xsave): Add MPX case.
835 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
836 (I387_BNDCFGU_REGNUM): New macro.
837 (I387_NUM_MPX_REGS): New macro.
838 (I387_NUM_BND_REGS): New macro.
839 (I387_NUM_MPX_CTRL_REGS): New macro.
840 (I387_MPXEND_REGNUM): New macro.
841 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
842 (I386_XSTATE_BNDCFG): Likewise.
843 (I386_XSTATE_MPX_MASK): Likewise.
844 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
845 (I386_XSTATE_BNDREGS_SIZE): New macro.
846 (I386_XSTATE_BNDCFG_SIZE): Likewise.
847 (I386_XSTATE_SIZE): Adapt for MPX.
848 (I386_XSTATE_MAX_SIZE): Likewise.
849
ccc42043
WT
8502013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
851
852 * features/i386/Makefile: Adapts for using MPX registers.
853 * features/i386/32bit-mpx.xml: New file.
854 * features/i386/64bit-mpx.xml: Likewise.
855 * features/i386/amd64-mpx-linux.c: Likewise.
856 * features/i386/amd64-mpx-linux.xml: Likewise.
857 * features/i386/amd64-mpx.c: Likewise.
858 * features/i386/amd64-mpx.xml: Likewise.
859 * features/i386/i386-mpx-linux.c: Likewise.
860 * features/i386/i386-mpx-linux.xml: Likewise.
861 * features/i386/i386-mpx.c: Likewise.
862 * features/i386/i386-mpx.xml: Likewise.
863 * regformats/i386/amd64-mpx-linux.dat: New file.
864 * regformats/i386/amd64-mpx.dat: Likewise.
865 * regformats/i386/i386-mpx-linux.dat: Likewise.
866 * regformats/i386/i386-mpx.dat: Likewise.
867
57803a3c
WT
8682013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
869
870 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
871 Modified logic of creating a bitfield to be in sync with
872 tdesc_gdb_type.
873
2b59118e
WN
8742013-11-20 Will Newton <will.newton@linaro.org>
875
876 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
877 error message.
878
b26dfc9a
YQ
8792013-11-20 Yao Qi <yao@codesourcery.com>
880
881 * progspace.h (struct address_space_data): Declare.
882 * target-dcache.c: Include "progspace.h".
883 (target_dache): Remove.
884 (target_dcache_aspace_key): New.
885 (target_dcache_cleanup): New function.
886 (target_dcache_init_p): Get data through
887 target_dcache_aspace_key.
888 (target_dcache_invalidate): Likewise.
889 (target_dcache_get): Likewise.
890 (target_dcache_get_or_init): Likewise.
891 (_initialize_target_dcache): Initialize
892 target_dcache_aspace_key.
893
3a8356ff
YQ
8942013-11-20 Yao Qi <yao@codesourcery.com>
895
896 * progspace.c (struct address_space): Update comments.
897 <REGISTRY_FIELDS>: New fields.
898 DEFINE_REGISTRY for address_space.
899 (new_address_space): Call address_space_alloc_data.
900 (free_address_space): Call address_space_free_data.
901 * progspace.h: Use DECLARE_REGISTRY.
902
68c765e2
YQ
9032013-11-20 Yao Qi <yao@codesourcery.com>
904
905 * Makefile.in (SFILES):Add target-dcache.c.
906 (HFILES_NO_SRCDIR): Add target-dcache.h.
907 (COMMON_OBS): Add target-dcache.o.
908 * dcache.c: Remove inclusion to "target.h". Include
909 "target-dcache.h".
910 * memattr.c: Include "target-dcache.h".
911 * top.c: Likewise.
912 * tracepoint.c: Likewise.
913 * target.c: (stack_cache_enabled_p_1): Move to
914 target-dcache.c.
915 (stack_cache_enabled_p): Likewise.
916 (set_stack_cache_enabled_p): Likewise.
917 (show_stack_cache_enabled_p): Likewise.
918 (target_dcache, target_dcache_init_p): Likewise.
919 (target_dcache_invalidate): Likewise.
920 (target_dcache_get, target_dcache_get_or_init): Likewise.
921 (memory_xfer_partial_1): Call function stack_cache_enabled.
922 (initialize_target): Move code to target-dcache.c.
923 * target.h (target_dcache_invalidate): Move to
924 target-dcache.h.
925 (target_dcache_get): Likewise.
926 * target-dcache.c: New.
927 * target-dcache.h: New.
928
f2de9785
YQ
9292013-11-20 Yao Qi <yao@codesourcery.com>
930
931 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
932 it is initialized.
933
2a2f9fe4
YQ
9342013-11-20 Yao Qi <yao@codesourcery.com>
935
936 * dcache.c (last_cache): Remove.
937 (dcache_free, dcache_init): Update.
938 (dcache_update):
939 (dcache_print_line): Add parameter 'dcache'. Replace
940 'target_dcache' with 'dcache'.
941 (dcache_info): Move code to dcache_info_1. Call
942 'dcache_info_1'.
943 (dcache_info_1): New function.
944 (set_dcache_size): Call target_dcache_invalidate.
945 (set_dcache_line_size): Call target_dcache_invalidate.
946 * target.c (target_dcache_init_p): New function.
947 (target_dcache_invalidate): Check target_dcache_init_p first.
948 (target_dcache_get, target_dcache_get_or_init): New function.
949 (memory_xfer_partial_1): Adjust.
950 (initialize_target): Don't initialize 'target_dcache'.
951 * target.h (struct dcache_struct): Declare.
952 (target_dcache_get): Declare.
953
8ab91b96
YQ
9542013-11-19 Yao Qi <yao@codesourcery.com>
955
956 * varobj.c (varobj_get_type): Fix typo.
957
df7752b0
JB
9582013-11-19 Joel Brobecker <brobecker@adacore.com>
959
960 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
961
4a0a886a
JB
9622013-11-19 Joel Brobecker <brobecker@adacore.com>
963
964 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
965 "stat.h".
966
53ce3c39
TT
9672013-11-18 Tom Tromey <tromey@redhat.com>
968
969 * common/gdb_stat.h: Remove.
970 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
971 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
972 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
973 * corefile.c: Use sys/stat.h, not gdb_stat.h.
974 * ctf.c: Use sys/stat.h, not gdb_stat.h.
975 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
976 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
977 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
978 * exec.c: Use sys/stat.h, not gdb_stat.h.
979 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
980 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
981 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
982 * jit.c: Use sys/stat.h, not gdb_stat.h.
983 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
984 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
985 * main.c: Use sys/stat.h, not gdb_stat.h.
986 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
987 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
988 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
989 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
990 * procfs.c: Use sys/stat.h, not gdb_stat.h.
991 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
992 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
993 * remote.c: Use sys/stat.h, not gdb_stat.h.
994 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
995 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
996 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
997 * source.c: Use sys/stat.h, not gdb_stat.h.
998 * symfile.c: Use sys/stat.h, not gdb_stat.h.
999 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1000 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1001 * top.c: Use sys/stat.h, not gdb_stat.h.
1002 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1003
09607c9e
TT
10042013-11-18 Tom Tromey <tromey@redhat.com>
1005
1006 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1007 sys_stat.
1008 * gnulib/aclocal.m4: Update.
1009 * gnulib/config.in: Update.
1010 * gnulib/configure: Update.
1011 * gnulib/import/Makefile.am: Update.
1012 * gnulib/import/Makefile.in: Update.
1013 * gnulib/import/m4/gnulib-cache.m4: Update.
1014 * gnulib/import/m4/gnulib-comp.m4: Update.
1015 * gnulib/import/m4/sys_stat_h.m4: New.
1016 * gnulib/import/m4/time_h.m4: New.
1017 * gnulib/import/sys_stat.in.h: New.
1018 * gnulib/import/time.in.h: New.
1019
4ff70b84
TT
10202013-11-18 Tom Tromey <tromey@redhat.com>
1021
1022 * configure: Rebuild.
1023 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1024
3447c057
TT
10252013-11-18 Tom Tromey <tromey@redhat.com>
1026
1027 * configure: Rebuild.
1028 * configure.ac: Don't check for unistd.h.
1029
0080a2f6
TT
10302013-11-18 Tom Tromey <tromey@redhat.com>
1031
1032 * configure: Rebuild.
1033 * configure.ac: Don't check for stdlib.h
1034 * defs.h: Include stdlib.h unconditionally.
1035
161d1bec
TT
10362013-11-18 Tom Tromey <tromey@redhat.com>
1037
1038 * config.in: Rebuild.
1039 * configure: Rebuild.
1040 * configure.ac: Don't check for stddef.h.
1041 * defs.h: Unconditionally include stddef.h. Remove duplicate
1042 inclusion.
1043
2978b111
TT
10442013-11-18 Tom Tromey <tromey@redhat.com>
1045
1046 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1047 * common/gdb_dirent.h: Remove.
1048 * common/filestuff.c: Use dirent.h.
1049 * common/linux-osdata.c: Use dirent.h.
1050 (NAMELEN): Define.
1051 * config.in: Rebuild.
1052 * configure: Rebuild.
1053 * configure.ac: Don't use AC_HEADER_DIRENT.
1054 * linux-fork.c: Use dirent.h
1055 * linux-nat.c: Use dirent.h.
1056 * nto-procfs.c: Use dirent.h.
1057 * procfs.c: Use dirent.h.
1058
e26b6bb0
TT
10592013-11-18 Tom Tromey <tromey@redhat.com>
1060
1061 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1062 * gnulib/aclocal.m4: Update.
1063 * gnulib/config.in: Update.
1064 * gnulib/configure: Update.
1065 * gnulib/import/Makefile.am: Update.
1066 * gnulib/import/Makefile.in: Update.
1067 * gnulib/import/dirent.in.h: New.
1068 * gnulib/import/m4/dirent_h.m4: New.
1069 * gnulib/import/m4/gnulib-cache.m4: Update.
1070 * gnulib/import/m4/gnulib-comp.m4: Update.
1071
a3d08894
TT
10722013-11-18 Tom Tromey <tromey@redhat.com>
1073
1074 * configure: Rebuild.
1075 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1076 strings.h.
1077
0e9f083f
TT
10782013-11-18 Tom Tromey <tromey@redhat.com>
1079
1080 * common/gdb_string.h: Remove.
1081 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1082 * ada-exp.y: Use string.h, not gdb_string.h.
1083 * ada-lang.c: Use string.h, not gdb_string.h.
1084 * ada-lex.l: Use string.h, not gdb_string.h.
1085 * ada-typeprint.c: Use string.h, not gdb_string.h.
1086 * ada-valprint.c: Use string.h, not gdb_string.h.
1087 * aix-thread.c: Use string.h, not gdb_string.h.
1088 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1089 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1090 * alpha-nat.c: Use string.h, not gdb_string.h.
1091 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1092 * alpha-tdep.c: Use string.h, not gdb_string.h.
1093 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1094 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1095 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1096 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1097 * amd64-nat.c: Use string.h, not gdb_string.h.
1098 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1099 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1100 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1101 * arch-utils.c: Use string.h, not gdb_string.h.
1102 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1103 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1104 * arm-tdep.c: Use string.h, not gdb_string.h.
1105 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1106 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1107 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1108 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1109 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1110 * avr-tdep.c: Use string.h, not gdb_string.h.
1111 * ax-gdb.c: Use string.h, not gdb_string.h.
1112 * ax-general.c: Use string.h, not gdb_string.h.
1113 * bcache.c: Use string.h, not gdb_string.h.
1114 * bfin-tdep.c: Use string.h, not gdb_string.h.
1115 * breakpoint.c: Use string.h, not gdb_string.h.
1116 * build-id.c: Use string.h, not gdb_string.h.
1117 * buildsym.c: Use string.h, not gdb_string.h.
1118 * c-exp.y: Use string.h, not gdb_string.h.
1119 * c-lang.c: Use string.h, not gdb_string.h.
1120 * c-typeprint.c: Use string.h, not gdb_string.h.
1121 * c-valprint.c: Use string.h, not gdb_string.h.
1122 * charset.c: Use string.h, not gdb_string.h.
1123 * cli-out.c: Use string.h, not gdb_string.h.
1124 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1125 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1126 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1127 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1128 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1129 * cli/cli-script.c: Use string.h, not gdb_string.h.
1130 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1131 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1132 * coffread.c: Use string.h, not gdb_string.h.
1133 * common/common-utils.c: Use string.h, not gdb_string.h.
1134 * common/filestuff.c: Use string.h, not gdb_string.h.
1135 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1136 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1137 * common/signals.c: Use string.h, not gdb_string.h.
1138 * common/vec.h: Use string.h, not gdb_string.h.
1139 * core-regset.c: Use string.h, not gdb_string.h.
1140 * corefile.c: Use string.h, not gdb_string.h.
1141 * corelow.c: Use string.h, not gdb_string.h.
1142 * cp-abi.c: Use string.h, not gdb_string.h.
1143 * cp-support.c: Use string.h, not gdb_string.h.
1144 * cp-valprint.c: Use string.h, not gdb_string.h.
1145 * cris-tdep.c: Use string.h, not gdb_string.h.
1146 * d-lang.c: Use string.h, not gdb_string.h.
1147 * dbxread.c: Use string.h, not gdb_string.h.
1148 * dcache.c: Use string.h, not gdb_string.h.
1149 * demangle.c: Use string.h, not gdb_string.h.
1150 * dicos-tdep.c: Use string.h, not gdb_string.h.
1151 * disasm.c: Use string.h, not gdb_string.h.
1152 * doublest.c: Use string.h, not gdb_string.h.
1153 * dsrec.c: Use string.h, not gdb_string.h.
1154 * dummy-frame.c: Use string.h, not gdb_string.h.
1155 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1156 * dwarf2loc.c: Use string.h, not gdb_string.h.
1157 * dwarf2read.c: Use string.h, not gdb_string.h.
1158 * elfread.c: Use string.h, not gdb_string.h.
1159 * environ.c: Use string.h, not gdb_string.h.
1160 * eval.c: Use string.h, not gdb_string.h.
1161 * event-loop.c: Use string.h, not gdb_string.h.
1162 * exceptions.c: Use string.h, not gdb_string.h.
1163 * exec.c: Use string.h, not gdb_string.h.
1164 * expprint.c: Use string.h, not gdb_string.h.
1165 * f-exp.y: Use string.h, not gdb_string.h.
1166 * f-lang.c: Use string.h, not gdb_string.h.
1167 * f-typeprint.c: Use string.h, not gdb_string.h.
1168 * f-valprint.c: Use string.h, not gdb_string.h.
1169 * fbsd-nat.c: Use string.h, not gdb_string.h.
1170 * findcmd.c: Use string.h, not gdb_string.h.
1171 * findvar.c: Use string.h, not gdb_string.h.
1172 * fork-child.c: Use string.h, not gdb_string.h.
1173 * frame.c: Use string.h, not gdb_string.h.
1174 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1175 * frv-tdep.c: Use string.h, not gdb_string.h.
1176 * gdb.c: Use string.h, not gdb_string.h.
1177 * gdb_bfd.c: Use string.h, not gdb_string.h.
1178 * gdbarch.c: Use string.h, not gdb_string.h.
1179 * gdbtypes.c: Use string.h, not gdb_string.h.
1180 * gnu-nat.c: Use string.h, not gdb_string.h.
1181 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1182 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1183 * go-exp.y: Use string.h, not gdb_string.h.
1184 * go-lang.c: Use string.h, not gdb_string.h.
1185 * go32-nat.c: Use string.h, not gdb_string.h.
1186 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1187 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1188 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1189 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1190 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1191 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1192 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1193 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1194 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1195 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1196 * i386-tdep.c: Use string.h, not gdb_string.h.
1197 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1198 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1199 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1200 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1201 * i387-tdep.c: Use string.h, not gdb_string.h.
1202 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1203 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1204 * inf-child.c: Use string.h, not gdb_string.h.
1205 * inf-ptrace.c: Use string.h, not gdb_string.h.
1206 * inf-ttrace.c: Use string.h, not gdb_string.h.
1207 * infcall.c: Use string.h, not gdb_string.h.
1208 * infcmd.c: Use string.h, not gdb_string.h.
1209 * inflow.c: Use string.h, not gdb_string.h.
1210 * infrun.c: Use string.h, not gdb_string.h.
1211 * interps.c: Use string.h, not gdb_string.h.
1212 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1213 * irix5-nat.c: Use string.h, not gdb_string.h.
1214 * jv-exp.y: Use string.h, not gdb_string.h.
1215 * jv-lang.c: Use string.h, not gdb_string.h.
1216 * jv-typeprint.c: Use string.h, not gdb_string.h.
1217 * jv-valprint.c: Use string.h, not gdb_string.h.
1218 * language.c: Use string.h, not gdb_string.h.
1219 * linux-fork.c: Use string.h, not gdb_string.h.
1220 * linux-nat.c: Use string.h, not gdb_string.h.
1221 * lm32-tdep.c: Use string.h, not gdb_string.h.
1222 * m2-exp.y: Use string.h, not gdb_string.h.
1223 * m2-typeprint.c: Use string.h, not gdb_string.h.
1224 * m32c-tdep.c: Use string.h, not gdb_string.h.
1225 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1226 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1227 * m32r-rom.c: Use string.h, not gdb_string.h.
1228 * m32r-tdep.c: Use string.h, not gdb_string.h.
1229 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1230 * m68k-tdep.c: Use string.h, not gdb_string.h.
1231 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1232 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1233 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1234 * m88k-tdep.c: Use string.h, not gdb_string.h.
1235 * macrocmd.c: Use string.h, not gdb_string.h.
1236 * main.c: Use string.h, not gdb_string.h.
1237 * mdebugread.c: Use string.h, not gdb_string.h.
1238 * mem-break.c: Use string.h, not gdb_string.h.
1239 * memattr.c: Use string.h, not gdb_string.h.
1240 * memory-map.c: Use string.h, not gdb_string.h.
1241 * mep-tdep.c: Use string.h, not gdb_string.h.
1242 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1243 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1244 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1245 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1246 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1247 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1248 * mi/mi-console.c: Use string.h, not gdb_string.h.
1249 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1250 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1251 * mi/mi-main.c: Use string.h, not gdb_string.h.
1252 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1253 * microblaze-rom.c: Use string.h, not gdb_string.h.
1254 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1255 * mingw-hdep.c: Use string.h, not gdb_string.h.
1256 * minidebug.c: Use string.h, not gdb_string.h.
1257 * minsyms.c: Use string.h, not gdb_string.h.
1258 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1259 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1260 * mips-tdep.c: Use string.h, not gdb_string.h.
1261 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1262 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1263 * mipsread.c: Use string.h, not gdb_string.h.
1264 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1265 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1266 * monitor.c: Use string.h, not gdb_string.h.
1267 * moxie-tdep.c: Use string.h, not gdb_string.h.
1268 * mt-tdep.c: Use string.h, not gdb_string.h.
1269 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1270 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1271 * nto-procfs.c: Use string.h, not gdb_string.h.
1272 * nto-tdep.c: Use string.h, not gdb_string.h.
1273 * objc-lang.c: Use string.h, not gdb_string.h.
1274 * objfiles.c: Use string.h, not gdb_string.h.
1275 * opencl-lang.c: Use string.h, not gdb_string.h.
1276 * osabi.c: Use string.h, not gdb_string.h.
1277 * osdata.c: Use string.h, not gdb_string.h.
1278 * p-exp.y: Use string.h, not gdb_string.h.
1279 * p-lang.c: Use string.h, not gdb_string.h.
1280 * p-typeprint.c: Use string.h, not gdb_string.h.
1281 * parse.c: Use string.h, not gdb_string.h.
1282 * posix-hdep.c: Use string.h, not gdb_string.h.
1283 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1284 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1285 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1286 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1287 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1288 * printcmd.c: Use string.h, not gdb_string.h.
1289 * procfs.c: Use string.h, not gdb_string.h.
1290 * prologue-value.c: Use string.h, not gdb_string.h.
1291 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1292 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1293 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1294 * regcache.c: Use string.h, not gdb_string.h.
1295 * registry.c: Use string.h, not gdb_string.h.
1296 * remote-fileio.c: Use string.h, not gdb_string.h.
1297 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1298 * remote-mips.c: Use string.h, not gdb_string.h.
1299 * remote-sim.c: Use string.h, not gdb_string.h.
1300 * remote.c: Use string.h, not gdb_string.h.
1301 * reverse.c: Use string.h, not gdb_string.h.
1302 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1303 * ser-base.c: Use string.h, not gdb_string.h.
1304 * ser-go32.c: Use string.h, not gdb_string.h.
1305 * ser-mingw.c: Use string.h, not gdb_string.h.
1306 * ser-pipe.c: Use string.h, not gdb_string.h.
1307 * ser-tcp.c: Use string.h, not gdb_string.h.
1308 * ser-unix.c: Use string.h, not gdb_string.h.
1309 * serial.c: Use string.h, not gdb_string.h.
1310 * sh-tdep.c: Use string.h, not gdb_string.h.
1311 * sh64-tdep.c: Use string.h, not gdb_string.h.
1312 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1313 * skip.c: Use string.h, not gdb_string.h.
1314 * sol-thread.c: Use string.h, not gdb_string.h.
1315 * solib-dsbt.c: Use string.h, not gdb_string.h.
1316 * solib-frv.c: Use string.h, not gdb_string.h.
1317 * solib-osf.c: Use string.h, not gdb_string.h.
1318 * solib-spu.c: Use string.h, not gdb_string.h.
1319 * solib-target.c: Use string.h, not gdb_string.h.
1320 * solib.c: Use string.h, not gdb_string.h.
1321 * somread.c: Use string.h, not gdb_string.h.
1322 * source.c: Use string.h, not gdb_string.h.
1323 * sparc-nat.c: Use string.h, not gdb_string.h.
1324 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1325 * sparc-tdep.c: Use string.h, not gdb_string.h.
1326 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1327 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1328 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1329 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1330 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1331 * spu-multiarch.c: Use string.h, not gdb_string.h.
1332 * spu-tdep.c: Use string.h, not gdb_string.h.
1333 * stabsread.c: Use string.h, not gdb_string.h.
1334 * stack.c: Use string.h, not gdb_string.h.
1335 * std-regs.c: Use string.h, not gdb_string.h.
1336 * symfile.c: Use string.h, not gdb_string.h.
1337 * symmisc.c: Use string.h, not gdb_string.h.
1338 * symtab.c: Use string.h, not gdb_string.h.
1339 * target.c: Use string.h, not gdb_string.h.
1340 * thread.c: Use string.h, not gdb_string.h.
1341 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1342 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1343 * top.c: Use string.h, not gdb_string.h.
1344 * tracepoint.c: Use string.h, not gdb_string.h.
1345 * tui/tui-command.c: Use string.h, not gdb_string.h.
1346 * tui/tui-data.c: Use string.h, not gdb_string.h.
1347 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1348 * tui/tui-file.c: Use string.h, not gdb_string.h.
1349 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1350 * tui/tui-out.c: Use string.h, not gdb_string.h.
1351 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1352 * tui/tui-source.c: Use string.h, not gdb_string.h.
1353 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1354 * tui/tui-win.c: Use string.h, not gdb_string.h.
1355 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1356 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1357 * typeprint.c: Use string.h, not gdb_string.h.
1358 * ui-file.c: Use string.h, not gdb_string.h.
1359 * ui-out.c: Use string.h, not gdb_string.h.
1360 * user-regs.c: Use string.h, not gdb_string.h.
1361 * utils.c: Use string.h, not gdb_string.h.
1362 * v850-tdep.c: Use string.h, not gdb_string.h.
1363 * valarith.c: Use string.h, not gdb_string.h.
1364 * valops.c: Use string.h, not gdb_string.h.
1365 * valprint.c: Use string.h, not gdb_string.h.
1366 * value.c: Use string.h, not gdb_string.h.
1367 * varobj.c: Use string.h, not gdb_string.h.
1368 * vax-tdep.c: Use string.h, not gdb_string.h.
1369 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1370 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1371 * windows-nat.c: Use string.h, not gdb_string.h.
1372 * xcoffread.c: Use string.h, not gdb_string.h.
1373 * xml-support.c: Use string.h, not gdb_string.h.
1374 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1375 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1376
63ce7108
TT
13772013-11-18 Tom Tromey <tromey@redhat.com>
1378
1379 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1380 and strstr.
1381 * gnulib/aclocal.m4: Update.
1382 * gnulib/config.in: Update.
1383 * gnulib/configure: Update.
1384 * gnulib/import/Makefile.am: Update.
1385 * gnulib/import/Makefile.in: Update.
1386 * gnulib/import/errno.in.h: New.
1387 * gnulib/import/intprops.h: New.
1388 * gnulib/import/m4/errno_h.m4: New.
1389 * gnulib/import/m4/gnulib-cache.m4: Update.
1390 * gnulib/import/m4/gnulib-comp.m4: Update.
1391 * gnulib/import/m4/strerror.m4: New.
1392 * gnulib/import/m4/strstr.m4: New.
1393 * gnulib/import/m4/sys_socket_h.m4: New.
1394 * gnulib/import/strerror-override.c: New.
1395 * gnulib/import/strerror-override.h: New.
1396 * gnulib/import/strerror.c: New.
1397 * gnulib/import/strstr.c: New.
1398
a7c11ee1
TT
13992013-11-18 Tom Tromey <tromey@redhat.com>
1400
1401 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1402 multiple lines.
1403
d0b5971a
JM
14042013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1405
1406 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1407 * sparc-tdep.h: And its prototype.
1408
1409 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1410 function.
1411 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1412
4b4589ad
PA
14132013-11-18 Pedro Alves <palves@redhat.com>
1414
1415 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1416 use unpack_pointer.
1417
422ad5c2
JB
14182013-11-18 Joel Brobecker <brobecker@adacore.com>
1419
1420 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1421 to -list-features output.
1422
b1370418
JB
14232013-11-17 Joel Brobecker <brobecker@adacore.com>
1424
1425 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1426 <read_addr_from_reg>: Renames "read_reg".
1427 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1428 Adjust comment.
1429 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1430 Use read_addr_from_reg in place of read_reg.
1431 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1432 in place of read_reg.
1433 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1434 dwarf_expr_read_reg.
1435 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1436 with dwarf_expr_read_addr_from_reg.
1437 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1438 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1439 needs_frame_read_addr_from_reg.
1440
6ea71545
JK
14412013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1442
1443 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1444
19a1b230
AA
14452013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1446
1447 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1448 NULL.
1449
805e1f19
TT
14502013-11-15 Tom Tromey <tromey@redhat.com>
1451
1452 PR c++/16117:
1453 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1454 (classify_name): Likewise. Prefer a field of "this" over a
1455 filename.
1456 (classify_inner_name, yylex): Update.
1457
0acf8b65
JB
14582013-11-15 Joel Brobecker <brobecker@adacore.com>
1459
1460 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1461 Extend the documentation a bit.
1462 <get_reg_value>: New field.
1463 * dwarf2loc.c (dwarf_expr_get_reg_value)
1464 (needs_frame_get_reg_value): New functions.
1465 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1466 callback.
1467 * dwarf2-frame.c (get_reg_value): New function.
1468 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1469 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1470 Use new callback to compute result_val.
1471
ef1bc9e7
AM
14722013-11-15 Alan Modra <amodra@gmail.com>
1473
1474 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1475 (ppc64_desc_entry_point): ..this. Update comments here and at
1476 call points.
1477 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1478 ppc64_standard_linkage3): Update comments.
1479 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1480 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1481 patterns.
1482 (ppc64_standard_linkage4_target): New function.
1483 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1484 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1485 nop match. Fix comment wrap.
1486
36fa8042
PA
14872013-11-14 Pedro Alves <palves@redhat.com>
1488
1489 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1490 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1491
4f5d7f63
PA
14922013-11-14 Pedro Alves <palves@redhat.com>
1493
1494 * infrun.c (struct execution_control_state)
1495 <stepped_after_stopped_by_watchpoint>: New field.
1496 (get_inferior_stop_soon): New function.
1497 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1498 moved to struct execution_control_state -- adjust. Use
1499 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1500 new function.
1501 (handle_signal_stop): New function, factored out from
1502 handle_inferior_event.
1503
47591c29
PA
15042013-11-14 Pedro Alves <palves@redhat.com>
1505
1506 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1507 return a boolean.
1508 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1509 boolean.
1510 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1511 Adjust to return a boolean.
1512 * breakpoint.h (enum bpstat_signal_value): Delete.
1513 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1514 (bpstat_explains_signal): Likewise.
1515 * infrun.c (handle_inferior_event) <random signal checks>:
1516 bpstat_explains_signal now returns a boolean - adjust. No longer
1517 consider hiding signals.
1518
bac7d97b
PA
15192013-11-14 Pedro Alves <palves@redhat.com>
1520
1521 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1522 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1523 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1524 BPSTAT_SIGNAL_HIDE.
1525 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1526 instead of BPSTAT_SIGNAL_HIDE.
1527 * infrun.c (handle_inferior_event): Rework random signal checks.
1528
ce12b012
PA
15292013-11-14 Pedro Alves <palves@redhat.com>
1530
1531 * infrun.c (struct execution_control_state): Remove
1532 'random_signal' field.
1533 (handle_syscall_event): Use bpstat_causes_stop instead of
1534 bpstat_explains_signal. Don't set ecs->random_signal.
1535 (handle_inferior_event): New 'random_signal' local.
1536 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1537 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1538 bpstat_explains_signal. Don't set ecs->random_signal.
1539 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1540 ecs->random_signal.
1541
05ba8510
PA
15422013-11-14 Pedro Alves <palves@redhat.com>
1543
1544 * infrun.c (handle_inferior_event): Move comment from the
1545 function's body to the function's description, adjusted.
1546
5c09a2c5
PA
15472013-11-14 Pedro Alves <palves@redhat.com>
1548
1549 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1550 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1551 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1552 case.
1553
91822956
TT
15542013-11-14 Tom Tromey <tromey@redhat.com>
1555
1556 * python/py-linetable.c (ltpy_has_line)
1557 (ltpy_get_all_source_lines): Fix loop termination condition.
1558
403cb6b1
JB
15592013-11-14 Joel Brobecker <brobecker@adacore.com>
1560
1561 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1562 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1563 PARSE->LANGUAGE during command execution, if set.
1564 * mi/mi-parse.c: Add "language.h" #include.
1565 (mi_parse): Add parsing of "--language" command option.
1566
1567 * NEWS: Add entry mentioning the new "--language" command option.
1568
b5be8ce0
JB
15692013-11-14 Pedro Alves <palves@redhat.com>
1570 Joel Brobecker <brobecker@adacore.com>
1571
1572 * cli/cli-utils.h (extract_arg_const): Add declaration.
1573 * cli/cli-utils.c (extract_arg_const): New function.
1574 (extract_arg): Reimplement using extract_arg_const.
1575
671afef6
JB
15762013-11-14 Joel Brobecker <brobecker@adacore.com>
1577
1578 * language.h: Add "symtab.h" #include.
1579
6c1b0f7b
DE
15802013-11-13 Doug Evans <xdje42@gmail.com>
1581
1582 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1583 specific breakpoints, don't evaluate breakpoint condition if
1584 different thread.
1585
74921315
KS
15862013-11-13 Keith Seitz <keiths@redhat.com>
1587
248ace2e 1588 PR c++/7935
74921315
KS
1589 PR c++/10541
1590 * cp-support.c (insepct_type): Add support for substituting
1591 namespace aliases, too.
1592 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1593 for DW_TAG_imported_declaration.
1594 (add_partial_symbol): Likewise.
1595 (process_die): Handle namespace aliases with
1596 read_namespace_alias.
1597 (die_needs_namespace): Add DW_TAG_imported_declaration.
1598 (read_namespace_alias): New function.
1599 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1600 (new_symbol_full): Handle DW_TAG_imported_declaration.
1601
793156e6
KS
16022013-11-13 Keith Seitz <keiths@redhat.com>
1603
1604 * p-exp.y (uptok): Make first parameter const.
1605 (yylex): Make `tokstart' and `tokptr' const.
1606 Don't copy the lexer input to a temporary buffer.
1607 Make `p' const.
1608 Remove const workaround for parse_escape.
1609 Create a temporary buffer for a convenience variable instead
1610 of doing in-place modification of the input.
1611 If a match is found with a different case from the input,
1612 do not change the input at all.
1613 Use `tmp' to construct the resultant stoken instead of
1614 `tokstart'.
1615
c42bd95a
DE
16162013-11-13 Doug Evans <xdje42@gmail.com>
1617
1618 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1619
93973826
JB
16202013-11-13 Joel Brobecker <brobecker@adacore.com>
1621
1622 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1623 entry with "ada-exceptions".
1624
846060df
JB
16252013-11-13 Joel Brobecker <brobecker@adacore.com>
1626
1627 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1628 after re-initialization of OBJFILE's obstack.
1629
5efd1b2b 16302013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
1631
1632 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1633 bs->stop != 0 on entry. Update function comment. Simplify early
1634 exit for frame mismatch. Reindent rest of function.
1635
ee7615e1
AA
16362013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1637
1638 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1639 NULL.
1640
8943b874
DE
16412013-11-12 Doug Evans <dje@google.com>
1642
1643 Work around gold/15646.
1644 * dwarf2read.c (read_index_from_section): Update comment.
1645 (struct dw2_symtab_iterator): New member global_seen.
1646 (dw2_symtab_iter_init): Initialize it.
1647 (dw2_symtab_iter_next): Skip duplicate global symbols.
1648 (dw2_expand_symtabs_matching): Ditto.
1649
a8a9844d
JB
16502013-11-12 Joel Brobecker <brobecker@adacore.com>
1651
1652 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1653 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1654 command.
1655 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1656 (mi_cmd_info_ada_exceptions): New function.
1657 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1658
778865d3
JB
16592013-11-12 Joel Brobecker <brobecker@adacore.com>
1660
1661 * ada-lang.h: #include "vec.h".
1662 (struct ada_exc_info): New.
1663 (ada_exc_info): New typedef.
1664 (DEF_VEC_O(ada_exc_info)): New vector.
1665 (ada_exceptions_list): Add declaration.
1666 * ada-lang.c (ada_is_exception_sym)
1667 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1668 (sort_remove_dups_ada_exceptions_list)
1669 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1670 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1671 (ada_exceptions_list_1, ada_exceptions_list)
1672 (info_exceptions_command): New function.
1673 (_initialize_ada_language): Add "info exception" command.
1674
bc79de95
PM
16752013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1676
1677 PR python/15629
1678 * NEWS: Add linetable feature.
1679 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1680 * python/py-linetable.c: New file.
1681 * python/py-symtab.c (stpy_get_linetable): New function.
1682 * python/python-internal.h (symtab_to_linetable_object): Declare.
1683 (gdbpy_initialize_linetable): Ditto.
1684 * python/python.c (_initialize_python): Call
1685 gdbpy_initialize_linetable.
1686
2df4d1d5
JB
16872013-11-11 Joel Brobecker <brobecker@adacore.com>
1688
1689 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1690 the documentation of fields "except_string" and "condition".
1691 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1692 CONDITION on the heap before passing it to
1693 create_ada_exception_catchpoint.
1694 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1695 CONDITION.
1696
99c1d451
TT
16972013-11-11 Tom Tromey <tromey@redhat.com>
1698
1699 * config.in, configure: Rebuild.
1700 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1701
8ca5801b
JB
17022013-11-11 Joel Brobecker <brobecker@adacore.com>
1703
1704 * remote-sim.c (gdbsim_detach): Break declaration into
1705 shorter lines. No code change.
1706
7a06d430
EBM
17072013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1708
1709 * remote-sim.c (gdbsim_detach): Fix prototype.
1710
73be47f5
DE
17112013-11-08 Doug Evans <dje@google.com>
1712
1713 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1714 (create_debug_types_hash_table): Only print debugging messages for
1715 each TU if dwarf2-read >= 2.
1716 (process_queue): Ditto.
1717 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1718 Update doc string.
1719
a18d8f10
TT
17202013-11-08 Tom Tromey <tromey@redhat.com>
1721
1722 * configure: Rebuild.
1723 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1724
9467110b
TT
17252013-11-08 Tom Tromey <tromey@redhat.com>
1726
1727 * configure, config.in: Rebuild.
1728 * configure.ac: Remove unused configury.
1729
69706679
TT
17302013-11-08 Tom Tromey <tromey@redhat.com>
1731
1732 * m32c-tdep.c: Use gdb_string.h.
1733
9b4bea72
TT
17342013-11-08 Tom Tromey <tromey@redhat.com>
1735
1736 * configure, config.in: Rebuild.
1737 * configure.ac: Remove all link.h-related checks.
1738
3266f10b
TT
17392013-11-08 Tom Tromey <tromey@redhat.com>
1740
1741 * acinclude.m4: Include common.m4.
1742 * common/common.m4: New file.
1743 * configure, config.in: Rebuild.
1744 * configure.ac: Use GDB_AC_COMMON.
1745
db0fec5c
DE
17462013-11-08 Doug Evans <dje@google.com>
1747
1748 * NEWS: Mention that "set debug symtab-create" now accepts a
1749 verbosity level.
1750 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1751 to set the symtab's primary flag.
1752 * jit.c (finalize_symtab): Ditto.
1753 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1754 * symfile.c (allocate_symtab): Only print debugging messages for
1755 symtab_create_debug levels 2 and higher.
1756 * symtab.c (symtab_create_debug): Change type to unsigned int.
1757 (set_symtab_primary): New function.
1758 (_initialize_symtab): Change "set debug symtab-create" to a
1759 zuinteger option.
1760 * symtab.h (set_symtab_primary): Declare.
1761 (symtab_create_debug): Update decl.
1762
52554a0e
TT
17632013-11-08 Tom Tromey <tromey@redhat.com>
1764
1765 * aix-thread.c (aix_thread_detach): Update.
1766 * corelow.c (core_detach): Update.
1767 * darwin-nat.c (darwin_detach): Update.
1768 * dec-thread.c (dec_thread_detach): Update.
1769 * gnu-nat.c (gnu_detach): Update.
1770 * go32-nat.c (go32_detach): Update.
1771 * inf-ptrace.c (inf_ptrace_detach): Update.
1772 * inf-ttrace.c (inf_ttrace_detach): Update.
1773 * linux-fork.c (linux_fork_detach): Update.
1774 * linux-fork.h (linux_fork_detach): Update.
1775 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1776 local for const-correctness.
1777 * linux-thread-db.c (thread_db_detach): Update.
1778 * monitor.c (monitor_detach): Update.
1779 * nto-procfs.c (procfs_detach): Update.
1780 * procfs.c (procfs_detach): Update.
1781 * record.c (record_detach): Update.
1782 * record.h (record_detach): Update.
1783 * remote-m32r-sdi.c (m32r_detach): Update.
1784 * remote-mips.c (mips_detach): Update.
1785 * remote-sim.c (gdbsim_detach): Update.
1786 * remote.c (remote_detach_1, remote_detach)
1787 (extended_remote_detach): Update.
1788 * sol-thread.c (sol_thread_detach): Update.
1789 * target.c (target_detach): Make "args" const.
1790 (init_dummy_target): Update.
1791 * target.h (struct target_ops) <to_detach>: Make argument const.
1792 (target_detach): Likewise.
1793 * windows-nat.c (windows_detach): Update.
1794
204b5331
DE
17952013-11-07 Doug Evans <dje@google.com>
1796
1797 PR 11786
1798 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1799 and align fields for PT_GNU_RELRO segments.
1800
92e32e33
PM
18012013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1802
ef1bc9e7
AM
1803 PR python/15747
1804 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 1805
f76c27b5
PM
18062013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1807
1808 * NEWS: Document Python temporary breakpoint support.
1809 * python/py-breakpoint.c (bppy_get_temporary): New function.
1810 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1811 to temporary if True.
1812
d52cd232
JM
18132013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1814
1815 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1816 removed to allow analyzing unconditional branch instructions
1817 with PC-relative offsets of zero.
1818
fa4d0c40
YQ
18192013-11-07 Yao Qi <yao@codesourcery.com>
1820
1821 * mi/mi-cmd-var.c: Include "language.h".
1822 (mi_cmd_var_info_expression): Get language name from
1823 language_defn.
1824 * varobj.c (varobj_language_string): Remove.
1825 (variable_language): Remove declaration.
1826 (languages): Remove.
1827 (varobj_get_language): Change the type of return value.
1828 (variable_language): Remove.
1829 * varobj.h (enum varobj_languages): Remove.
1830 (varobj_language_string): Remove declaration.
1831 (varobj_get_language): Update declaration.
1832
6abde28f
YQ
18332013-11-07 Yao Qi <yao@codesourcery.com>
1834
1835 * language.h (struct language_defn) <la_natural_name>: New
1836 field.
1837 * ada-lang.c (ada_language_defn): Initialize field
1838 'la_natural_name'.
1839 * c-lang.c (c_language_defn): Likewise.
1840 (cplus_language_defn, asm_language_defn): Likewise.
1841 * d-lang.c (d_language_defn): Likewise.
1842 * f-lang.c (f_language_defn): Likewise.
1843 * go-lang.c (go_language_defn): Likewise.
1844 * jv-lang.c (java_language_defn): Likewise.
1845 * language.c (unknown_language_defn ): Likewise.
1846 (auto_language_defn): Likewise.
1847 * m2-lang.c (m2_language_defn): Likewise.
1848 * objc-lang.c (objc_language_defn): Likewise.
1849 * opencl-lang.c (opencl_language_defn): Likewise.
1850 * p-lang.c (pascal_language_defn): Likewise.
1851
27cd387b
YQ
18522013-11-07 Yao Qi <yao@codesourcery.com>
1853
1854 * language.c (language_str): Return const char *.
1855 (add_language): Add const to 'language_names'
1856 * language.h (struct language_defn) <la_name>: Add const.
1857 (language_str: Update declaration.
1858
6682d959
AA
18592013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1860
1861 * s390-linux-nat.c (s390_read_description): Consider the TE field
1862 in the HWCAP for determining 'have_regset_tdb'.
1863
b9502d3f
WN
18642013-11-06 Will Newton <will.newton@linaro.org>
1865
1866 PR gdb/12866
1867 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1868 values. (read_partial_die): Likewise.
1869
840da61a
MB
18702013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1871
1872 PR cli/16122
1873 * top.c (command_line_input): Unify interactivity tests to use
1874 input_from_terminal_p.
1875 * event-top.c (command_line_handler): Likewise.
1876
7636ccf9
YQ
18772013-11-06 Yao Qi <yao@codesourcery.com>
1878
1879 * Makefile.in (check-perf): New target.
1880
12b27276
WN
18812013-11-05 Will Newton <will.newton@linaro.org>
1882
1883 PR gdb/7670
1884 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1885 (arm_print_float_info): Likewise.
1886
67c059c2
AB
18872013-11-04 Anton Blanchard <anton@samba.org>
1888
1889 * target.c (memory_xfer_partial): Cap write to 4KB.
1890
0569175e
TSD
18912013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1892
1893 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1894 probe scan even when the arch provides no get_longjmp_target.
1895
b18e90f5
PA
18962013-10-31 Pedro Alves <palves@redhat.com>
1897
1898 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1899 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1900 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1901 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1902 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1903 <bpstat handling>: If the bpstat chain wants the signal to be
1904 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1905 GDB_SIGNAL_TRAP.
1906
638aa5a1
AB
19072013-10-31 Andrew Burgess <aburgess@broadcom.com>
1908
1909 * breakpoint.c (update_watchpoint): Update error message and add
1910 an additional error message.
1911
0e5fae36
UW
19122013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1913
1914 * s390-tdep.h: Rename to...
1915 * s390-linux-tdep.h: ...here.
1916 * s390-tdep.c: Rename to...
1917 * s390-linux-tdep.c: ...here. Adjust #include.
1918 * s390-nat.c: Rename to...
1919 * s390-linux-nat.c: ...here. Adjust #include.
1920 * config/s390/s390.mh: Rename to...
1921 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1922 s390-linux-nat.o.
1923 * configure.host: Reflect host rename "s390" -> "linux".
1924 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1925 * Makefile.in (ALL_TARGET_OBS): Likewise.
1926 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1927 s390-linux-tdep.h.
1928 (ALLDEPFILES): Reflect rename of .c files.
1929
34201ae3
UW
19302013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1931
1932 * s390-nat.c: Whitespace cleanup.
1933 * s390-tdep.c: Likewise.
1934 * s390-tdep.h: Remove empty line at end of file.
1935
e17aaa33
MR
19362013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1937
1938 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1939 siginfo_size.
1940
aee17e42
TT
19412013-10-29 Tom Tromey <tromey@redhat.com>
1942
1943 * utils.c (reg): Move undefinition...
1944 * gdb_curses.h: ... here. Update comment to mention AIX.
1945
9ac69859
NB
19462013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1947
1948 * exec.h (add_target_sections_of_objfile): New declaration.
1949 * exec.c (add_target_sections_of_objfile): New function.
1950 * symfile.c (add_symbol_file_command): Update current target sections.
1951 (remove_symbol_file_command): New command.
1952 (symfile_free_objfile): New function.
1953 (_initialize_symfile): Register observer for free_objfile events.
1954 * NEWS: Add description of the remove-symbol-file command.
1955 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1956 * objfiles.c (free_objfile): Notify free_objfile.
1957 (is_addr_in_objfile): New function.
1958 * objfiles.h (is_addr_in_objfile): New declaration.
1959 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1960 events instead of solib_unloaded events.
1961 (_initialize_printcmd): Register observer for free_objfile instead
1962 of solib_unloaded notifications.
1963 * solib.c (remove_user_added_objfile): New function.
1964 (_initialize_symfile): Add remove-symbol-file.
1965
f69d9aef
AB
19662013-10-29 Andrew Burgess <aburgess@broadcom.com>
1967
1968 * infcmd.c (default_print_one_register_info): Use val_print to
1969 print all values even optimized out or unavailable ones. Don't
1970 try to print a raw form of optimized out or unavailable values.
1971
487ad57c
YQ
19722013-10-29 Yao Qi <yao@codesourcery.com>
1973
1974 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1975 parameter 'arg' instead of from program_space_data.
1976 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1977 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1978 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1979 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1980 * inflow.c (inflow_inferior_data_cleanup): Get data from
1981 parameter 'arg' instead of inferior_data.
1982 * registry.h: Add comments.
1983
3c4797ba
PA
19842013-10-28 Pedro Alves <palves@redhat.com>
1985
1986 * breakpoint.c (watchpoints_triggered)
1987 <!target_stopped_data_address>: Hardcode return 1.
1988
cdaa5b73
PA
19892013-10-28 Pedro Alves <palves@redhat.com>
1990
1991 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1992 level and reindent.
1993
94c57d6a
PA
19942013-10-28 Pedro Alves <palves@redhat.com>
1995
1996 * infrun.c (process_event_stop_test): New function, factored out
1997 from handle_inferior_event.
1998 (handle_inferior_event): 'process_event_stop_test' is now a
1999 function instead of a goto label -- adjust.
2000
fcf3daef
PA
20012013-10-28 Pedro Alves <palves@redhat.com>
2002
2003 * infrun.c (handle_inferior_event): Move process_event_stop_test
2004 goto label to the else branch of the ecs->random_signal check,
2005 along with FRAME and GDBARCH re-fetching.
2006
c447ac0b
PA
20072013-10-28 Pedro Alves <palves@redhat.com>
2008
2009 * infrun.c (switch_back_to_stepped_thread): New function, factored
2010 out from handle_inferior_event.
2011 (handle_inferior_event): Adjust to call
2012 switch_back_to_stepped_thread. Call it also at the tail of the
2013 random signal handling, and return, instead of also handling
2014 random signals just before the stepping tests.
2015
f05e4c11
PA
20162013-10-28 Pedro Alves <palves@redhat.com>
2017
2018 * infrun.c (clear_stop_func): Delete.
2019 (handle_inferior_event): Don't call clear_stop_func and don't
2020 clear 'ecs->random_signal'.
2021
ca20d462
YQ
20222013-10-27 Yao Qi <yao@codesourcery.com>
2023
2024 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2025 (varobj_create, varobj_get_path_expr): Update.
2026 (varobj_value_has_mutated, varobj_update): Likewise.
2027 (create_child_with_value, new_root_variable): Likewise.
2028 (number_of_children, name_of_variable): Likewise.
2029 (value_of_child, my_value_of_variable): Likewise.
2030 (varobj_value_is_changeable_p): Likewise.
2031
a53b64ea
YQ
20322013-10-25 Yao Qi <yao@codesourcery.com>
2033
2034 * language.h (struct lang_varobj_ops): Declare.
2035 (struct language_defn) <la_varobj_ops>: New field.
2036 * ada-lang.c: Include "varobj.h"
2037 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2038 ada_varobj_ops.
2039 * c-lang.c: Include "varobj.h"
2040 (c_language_defn): Initialize field 'la_varobj_ops' with
2041 c_varobj_ops.
2042 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2043 cplus_varobj_ops.
2044 (asm_language_defn): Initialize field 'la_varobj_ops' with
2045 default_varobj_ops.
2046 (minimal_language_defn): Likewise.
2047 * d-lang.c (d_language_defn): Likewise.
2048 * f-lang.c (f_language_defn): Likewise.
2049 * go-lang.c (go_language_defn): Likewise.
2050 * m2-lang.c (m2_language_defn): Likewise.
2051 * objc-lang.c (objc_language_defn): Likewise.
2052 * opencl-lang.c (opencl_language_defn): Likewise.
2053 * p-lang.c (pascal_language_defn): Likewise.
2054 * language.c (unknown_language_defn): Likewise.
2055 (auto_language_defn): Likewise.
2056 (local_language_defn): Likewise.
2057 * jv-lang.c (java_language_defn): Initialize field
2058 'la_varobj_ops' with java_varobj_ops.
2059 * varobj.c (varobj_create): Update.
2060 * varobj.h (default_varobj_ops): Define macro.
2061
686d4def
PA
20622013-10-25 Pedro Alves <palves@redhat.com>
2063
2064 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2065 static field value.
2066 (cp_print_static_field): If the value is entirely optimized out,
2067 print <optimized out> here.
2068 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2069 static field value.
2070 * p-valprint.c (pascal_object_print_static_field): If the value is
2071 entirely optimized out, print <optimized out> here.
2072 * valops.c (do_search_struct_field)
2073 (value_struct_elt_for_reference): No longer handle a NULL static
2074 field value.
2075 * value.c (value_static_field): Return an optimized out value
2076 instead of NULL.
2077
6c177e28
YQ
20782013-10-25 Yao Qi <yao@codesourcery.com>
2079
2080 * remote.c (remote_traceframe_info): Return early if
2081 traceframe is not selected.
2082
98322bfa
YQ
20832013-10-25 Yao Qi <yao@codesourcery.com>
2084
2085 * tracepoint.c (traceframe_fun): Remove.
2086 (traceframe_sal): Remove.
2087 (set_traceframe_context): Add local variables.
2088
6ba1f115
JB
20892013-10-25 Joel Brobecker <brobecker@adacore.com>
2090
2091 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2092 and parameter name.
2093
bbe769cc
MR
20942013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2095
2096 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2097 failure from register information collection.
2098
72ee4495 20992013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
2100
2101 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2102 member.
2103 (linux_corefile_thread_callback): Update accordingly.
2104 (linux_make_corefile_notes): Likewise.
2105
98882a26
PA
21062013-10-24 Pedro Alves <palves@redhat.com>
2107
2108 * NEWS (New options): Mention set/show startup-with-shell.
2109 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2110 instead of 3.
2111 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2112 startup-with-shell'.
2113 (show_startup_with_shell): New function.
2114 (_initialize_fork_child): Register the set/show startup-with-shell
2115 commands.
2116 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2117 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2118 * procfs.c (procfs_init_inferior): Remove comment.
2119 * infcmd.c (startup_with_shell): New global.
2120 * inferior.h (startup_with_shell): Declare global.
2121 (STARTUP_WITH_SHELL): Delete.
2122 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2123
c9737c08
PA
21242013-10-23 Pedro Alves <palves@redhat.com>
2125
2126 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2127 * common/signals.c: Include "gdb_assert.h".
2128 (signals): New field 'symbol'.
2129 (SET): Use the 'symbol' parameter.
2130 (gdb_signal_to_symbol_string): New function.
2131 * infrun.c (handle_inferior_event) <random signal>: In debug
2132 output, print the random signal enum as string in addition to its
2133 number.
2134 * target/waitstatus.c (target_waitstatus_to_string): Print the
2135 signal's enum value as string instead of the (POSIX) signal name.
2136
f60db4f0
GB
21372013-10-23 Gary Benson <gbenson@redhat.com>
2138
2139 PR 16013
2140 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2141 from 32 to 18. Adjusted fscanf format string accordingly.
2142 (Avoids leaving cmd unterminated.)
2143 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2144 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2145 that local_address and remote_address will not overflow.
2146 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2147 leaving dependencies unterminated. Parse size as "%u" to match
2148 definition.
2149
6d3e7a94
PA
21502013-10-22 Pedro Alves <palves@redhat.com>
2151
2152 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2153 set ecs->random signal.
2154
42ec045f
PA
21552013-10-22 Pedro Alves <palves@redhat.com>
2156
2157 * infrun.c (keep_going): Update comments.
2158
21592013-10-22 Pedro Alves <palves@redhat.com>
2160
2161 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2162 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2163
21642013-10-22 Pedro Alves <palves@redhat.com>
2165
2166 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2167 GDB_EXC_BAD_ACCESS.
2168 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2169 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2170 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2171 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2172 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2173 (GDB_SIGNAL_LAST): Change description string.
2174 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2175 Adjust to signal renaming.
2176 * darwin-nat.c (darwin_decode_message): Likewise.
2177
c8fde1b1
JM
21782013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2179
2180 * MAINTAINERS (Write After Approval): Add myself to the list.
2181
e8369a73
AB
21822013-10-18 Andrew Burgess <aburgess@broadcom.com>
2183
2184 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2185 forced off, downgrade them to software watchpoints if possible,
2186 and error out if not possible.
2187 (watch_command_1): Move watchpoint type selection closer to
2188 watchpoint creation, and extend the comments.
2189
776f04fa
PA
21902013-10-18 Pedro Alves <palves@redhat.com>
2191
2192 PR gdb/16062
2193 * infrun.c (handle_inferior_event): Keep going if we got a random
2194 signal we should not stop for, instead of falling through to the
2195 step tests.
2196
0c6faab5
YQ
21972013-10-18 Yao Qi <yao@codesourcery.com>
2198
2199 * c-varobj.c (cplus_number_of_children): Fix indentation.
2200
50b34a18
TT
22012013-10-17 Tom Tromey <tromey@redhat.com>
2202
2203 PR gdb/15995:
2204 * printcmd.c (printcmd): Call gdb_flush.
2205
5c4c8a59
TT
22062013-10-17 Tom Tromey <tromey@redhat.com>
2207
2208 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2209 (elf_locate_sections): Update.
2210
c4124bf1
YQ
22112013-10-17 Yao Qi <yao@codesourcery.com>
2212
2213 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2214 * ada-varobj.c: Remove the include of ada-varobj.h.
2215 (ada_varobj_get_number_of_children): Declare.
2216 (ada_varobj_get_name_of_child): Make it static.
2217 (ada_varobj_get_path_expr_of_child): Likewise.
2218 (ada_varobj_get_value_of_child): Likewise.
2219 (ada_varobj_get_type_of_child): Likewise.
2220 (ada_varobj_get_value_of_array_variable): Likewise.
2221 * ada-varobj.h: Remove.
2222
99ad9427
YQ
22232013-10-17 Yao Qi <yao@codesourcery.com>
2224
2225 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2226 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2227 * ada-varobj.c: Include "varobj.h".
2228 (ada_number_of_children): New. Moved from varobj.c.
2229 (ada_name_of_variable, ada_name_of_child): Likewise.
2230 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2231 (ada_type_of_child, ada_value_of_variable): Likewise.
2232 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2233 (ada_varobj_ops): New.
2234 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2235 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2236 * gdbtypes.h (get_target_type): Declare.
2237 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2238 "ada-lang.h".
2239 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2240 (ANONYMOUS_UNION_NAME): Likewise.
2241 (get_type, get_value_type, get_target_type): Remove declarations.
2242 (value_get_print_value, varobj_value_get_print_value): Likewise.
2243 (c_number_of_children, c_name_of_variable): Likewise.
2244 (c_name_of_child, c_path_expr_of_child): Likewise.
2245 (c_value_of_child, c_type_of_child): Likewise.
2246 (c_value_of_variable, cplus_number_of_children): Likewise.
2247 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2248 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2249 (cplus_value_of_child, cplus_type_of_child): Likewise.
2250 (cplus_value_of_variable, java_number_of_children): Likewise.
2251 (java_name_of_variable, java_name_of_child): Likewise.
2252 (java_path_expr_of_child, java_value_of_child): Likewise.
2253 (java_type_of_child, java_value_of_variable): Likewise.
2254 (ada_number_of_children, ada_name_of_variable): Likewise.
2255 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2256 (ada_value_of_child, ada_type_of_child): Likewise.
2257 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2258 (ada_value_has_mutated): Likewise.
2259 (struct language_specific): Move it to varobj.h.
2260 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2261 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2262 Callers update.
2263 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2264 Make it extern.
2265 (is_anonymous_child): Move it to c-varobj.c and rename to
2266 varobj_is_anonymous_child. Caller update.
2267 (get_type): Move it to c-varobj.c.
2268 (get_value_type): Rename it varobj_get_value_type. Make it
2269 extern.
2270 (get_target_type): Move it gdbtypes.c.
2271 (varobj_formatted_print_options): New function.
2272 (value_get_print_value): Rename it to
2273 varobj_value_get_print_value and make it extern.
2274 (varobj_value_is_changeable_p): Make it extern.
2275 (adjust_value_for_child_access): Move it to c-varobj.c.
2276 (default_value_is_changeable_p): Rename it to
2277 varobj_default_value_is_changeable_p. Make it extern.
2278 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2279 (c_name_of_child, c_path_expr_of_child): Likewise.
2280 (c_value_of_child, c_type_of_child): Likewise.
2281 (c_value_of_variable, cplus_number_of_children): Likewise.
2282 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2283 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2284 (cplus_value_of_child, cplus_type_of_child): Likewise.
2285 (cplus_value_of_variable): Likewise.
2286 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2287 (java_name_of_child, java_path_expr_of_child): Likewise.
2288 (java_value_of_child, java_type_of_child): Likewise.
2289 (java_value_of_variable): Likewise.
2290 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2291 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2292 (ada_value_of_child, ada_type_of_child): Likewise.
2293 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2294 (ada_value_has_mutated): Likewise.
2295 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2296 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2297 (c_varobj_ops, cplus_varobj_ops): Declare.
2298 (java_varobj_ops, ada_varobj_ops): Declare.
2299 (varobj_default_value_is_changeable_p): Declare.
2300 (varobj_value_is_changeable_p): Declare.
2301 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2302 (varobj_get_path_expr_parent): Declare.
2303 (varobj_value_get_print_value): Declare.
2304 (varobj_formatted_print_options): Declare.
2305 (varobj_restrict_range): Declare.
2306
c8a62302
LM
23072013-10-17 Luis Machado <lgustavo@codesourcery.com>
2308
2309 * target/waitstatus.h (target_waitkind): Remove spurious
2310 character from the comments.
2311
eade6471
JB
23122013-10-17 Joel Brobecker <brobecker@adacore.com>
2313
2314 * gdbarch.sh (get_longjmp_target): Add method documentation.
2315 * gdbarch.h: Regenerate.
2316
5411b26c
TT
23172013-10-16 Tom Tromey <tromey@redhat.com>
2318
2319 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2320 label.
2321
87326c87
LM
23222013-10-16 Luis Machado <lgustavo@codesourcery.com>
2323
2324 * gcore.in: Call GDB using the full path to the gcore script.
2325 Error out if the GDB binary is not found.
2326
fd0a4d76
SDJ
23272013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2328
2329 PR gdb/16014
2330 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2331 sizeof.
2332
d92f7ee3
SDJ
23332013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2334
2335 PR gdb/16042
2336 * target.c (target_disable_btrace): Fix invalid return value for
2337 void function.
2338 (target_teardown_btrace): Likewise.
2339
bb5ce47a
YQ
23402013-10-14 Yao Qi <yao@codesourcery.com>
2341
2342 * varobj.c (struct varobj): Move most of the fields to
2343 varobj.h.
2344 (struct varobj_dynamic): New struct.
2345 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2346 (varobj_has_more): Likewise.
2347 (dynamic_varobj_has_child_method): Likewise.
2348 (update_dynamic_varobj_children): Likewise.
2349 (varobj_get_num_children): Likewise.
2350 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2351 (install_new_value_visualizer): Likewise.
2352 (install_new_value_visualizer, install_new_value): Likewise.
2353 (varobj_update, new_variable, free_variable): Likewise.
2354 (my_value_of_variable, value_get_print_value): Likewise.
2355 (install_visualizer): Change the type of parameter 'var' to
2356 'struct varobjd_dynamic *'. Callers update.
2357 * varobj.h (struct varobj): Moved from varobj.c.
2358 (struct varobj) <dynamic>: New field.
2359
0b76b0ce
SL
23602013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2361
2362 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2363 as the preferred name of r30.
2364 * nios2-linux-tdep.c (reg_offsets): Likewise.
2365 * features/nios2-cpu.xml: Likewise.
2366 * features/nios2-linux.c: Regenerated.
2367 * features/nios2.c: Regenerated.
2368 * regformats/nios2-linux.dat: Regenerated.
2369
4856b6bc
JK
23702013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2371
2372 Canonicalize directories for EXEC_FILENAME.
2373 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2374 exec_filename.
2375 * utils.c (gdb_realpath_keepfile): New function.
2376 * utils.h (gdb_realpath_keepfile): New declaration.
2377
9b557b58
DE
23782013-10-11 Doug Evans <dje@google.com>
2379
2380 * Makefile.in (GDBFLAGS): New variable.
2381 (run): New rule.
2382
ce13fade
JB
23832013-10-11 Joel Brobecker <brobecker@adacore.com>
2384
2385 * NEWS: Add entry documenting the new "-catch-assert" and
2386 "-catch-exception" GDB/MI commands.
2387
349774ef
JB
23882013-10-11 Joel Brobecker <brobecker@adacore.com>
2389
2390 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2391 "enabled".
2392 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2393 "enabled". Set B->ENABLE_STATE accordingly.
2394 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2395 ada-lang.c.
2396 (create_ada_exception_catchpoint): Add declaration.
2397 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2398 (create_ada_exception_catchpoint): Make non-static. Add new
2399 parameter "disabled". Use it in call to
2400 init_ada_exception_breakpoint.
2401 (catch_ada_exception_command): Add parameter "enabled" in call
2402 to create_ada_exception_catchpoint.
2403 (catch_assert_command): Likewise.
2404
2405 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2406 Add declarations.
2407 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2408 "catch-exception" commands.
2409 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2410 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2411
761269c8
JB
24122013-10-11 Joel Brobecker <brobecker@adacore.com>
2413
2414 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2415 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2416 of all its enumerates with "ada_". Update the rest of this
2417 file throughout.
2418
b4a5b78b
JB
24192013-10-11 Joel Brobecker <brobecker@adacore.com>
2420
2421 * ada-lang.c (ada_decode_exception_location): Delete.
2422 (create_ada_exception_catchpoint): Remove arguments "sal",
2423 "addr_string" and "ops". Add argument "ex_kind" instead.
2424 Adjust implementation accordingly, calling ada_exception_sal
2425 to get the entities it no longer gets passed as arguments.
2426 Document the function's arguments.
2427 (catch_ada_exception_command): Use catch_ada_exception_command_split
2428 instead of ada_decode_exception_location, and update call to
2429 create_ada_exception_catchpoint.
2430 (catch_ada_assert_command_split): Renames
2431 ada_decode_assert_location. Remove parameters "addr_string" and
2432 "ops", and now returns void. Adjust implementation accordingly.
2433 Update the function documentation.
2434 (catch_assert_command): Use catch_ada_assert_command_split
2435 instead of ada_decode_assert_location. Update call to
2436 create_ada_exception_catchpoint.
2437
7ad1d32c 24382013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
2439
2440 * utils.h (perror_warning_with_name): Add declaration.
2441 * utils.c (perror_warning_with_name): New function.
2442 * cli/cli-cmds.c (source_script_with_search): Add call to
2443 perror_warning_with_name if from_tty is nul.
2444
7ad1d32c 24452013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
2446
2447 * utils.c (perror_string): New function, extracted out of
2448 throw_perror_with_name.
2449 (throw_perror_with_name): Rework to use perror_string.
2450
bcc75809
YQ
24512013-10-11 Yao Qi <yao@codesourcery.com>
2452
2453 * remote.c (discard_pending_stop_replies_in_queue): Update
2454 declaration.
2455 (struct stop_reply) <rs>: New field.
2456 (remove_stop_reply_of_remote_state): New function.
2457 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2458 Callers update. Pass remove_stop_reply_of_remote_state to
2459 QUEUE_iterate.
2460 (remote_parse_stop_reply): Initialize field 'rs'.
2461
05feb193
WN
24622013-10-10 Will Newton <will.newton@linaro.org>
2463
2464 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2465 linux_init_abi.
2466
0d12017b
JB
24672013-10-10 Joel Brobecker <brobecker@adacore.com>
2468
2469 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2470 serial_baud_show_cmd.
2471 (_initialize_cli_cmds): Delete the code creating the
2472 "set/show remotebaud" commands.
2473 * serial.c (baud_rate): Move here from top.c.
2474 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2475 (_initialize_serial): Create "set/show serial baud" commands.
2476 Add "set/show remotebaud" command aliases.
2477 * top.c (baud_rate): Moved to serial.c.
2478 * NEWS: Document the new "set/show serial baud" commands,
2479 replacing "set/show remotebaud".
2480
578d3588
PA
24812013-10-09 Pedro Alves <palves@redhat.com>
2482
2483 * breakpoint.c (insert_bp_location): Use memory_error_message to
2484 build the memory error string.
2485 * c-lang.c: Include "gdbcore.h".
2486 (c_get_string): Use memory_error to throw error.
2487 (target_xfer_memory_error): Delete.
2488 (memory_error_message): New, factored out from
2489 target_xfer_memory_error.
2490 (memory_error): Change parameter type to target_xfer_error.
2491 Rewrite.
2492 (read_memory): Use memory_error instead of
2493 target_xfer_memory_error.
2494 * gdbcore.h: Include "target.h".
2495 (memory_error): Change parameter type to target_xfer_error.
2496 (memory_error_message): Declare function.
2497 * target.c (target_read_memory, target_read_stack)
2498 (target_write_memory, target_write_raw_memory): Return
2499 TARGET_XFER_E_IO on error. Adjust comments.
2500 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2501 instead of EIO.
2502 * target.h (target_read, target_insert_breakpoint)
2503 (target_remove_breakpoint): Adjust comments.
2504 * valprint.c (partial_memory_read): Rename parameter, and adjust
2505 comment.
2506 (val_print_string): Use memory_error_message to build the memory
2507 error string.
2508
c74e1ccf
JK
25092013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2510
2511 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2512 result variable. Rename variable fopen_e_ever_failed to
2513 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2514
915215be
PA
25152013-10-09 Pedro Alves <palves@redhat.com>
2516
2517 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2518 (monitor_write_memory_longlongs, monitor_write_memory_block):
2519 Constify 'myaddr' parameter.
2520 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2521 helper.
2522 (monitor_xfer_partial): New function.
2523 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2524 hook. Install a to_xfer_partial hook.
2525
acd13123
TT
25262013-10-09 Tom Tromey <tromey@redhat.com>
2527
2528 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2529 bfd_get_alt_debug_link_info.
2530
40135bb1
JK
25312013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2532
2533 New flag OBJF_NOT_FILENAME.
2534 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2535 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2536 allocate_objfile.
2537 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2538 symbol_file_add_from_bfd.
2539 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2540 allocate_objfile.
2541 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2542 NULL.
2543 * objfiles.h (OBJF_NOT_FILENAME): New.
2544
dc294be5
TT
25452013-10-08 Tom Tromey <tromey@redhat.com>
2546
2547 * Makefile.in (SFILES): Add build-id.c.
2548 (HFILES_NO_SRCDIR): Add build-id.h.
2549 * build-id.c: New file, largely from elfread.c. Modified
2550 most functions.
2551 * build-id.h: New file.
2552 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2553 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2554 Search for dwz file using build-id.
2555 * elfread.c (build_id_bfd_get, build_id_verify)
2556 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2557
db230ce3
JB
25582013-10-08 Joel Brobecker <brobecker@adacore.com>
2559
2560 * ada-lang.c (compare_names_with_case): Renamed from
2561 compare_names, adding a new parameter "casing" and its handling.
2562 New function documentation.
2563 (compare_names): New function, implemented using
2564 compare_names_with_case.
2565
6501c98a
JB
25662013-10-08 Joel Brobecker <brobecker@adacore.com>
2567
2568 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2569
84a1243b
TT
25702013-10-07 Tom Tromey <tromey@redhat.com>
2571
2572 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2573 demangled_names_hash.
2574 (free_objfile): Don't delete the demangled_names_hash.
2575 * objfiles.h (struct objfile_per_bfd_storage)
2576 <demangled_names_hash>: New field.
2577 (struct objfile) <demangled_names_hash>: Move to
2578 objfile_per_bfd_storage.
2579 * symfile.c (reread_symbols): Don't delete the
2580 demangled_names_hash.
2581 * symtab.c (create_demangled_names_hash): Update.
2582 (symbol_set_names): Update.
2583
1da77581
TT
25842013-10-07 Tom Tromey <tromey@redhat.com>
2585
2586 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2587 needs_relocations>: New fields.
2588 (gdb_bfd_requires_relocations): New function.
2589 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2590 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2591 the BFD needs relocations applied.
2592
46ecd527
PA
25932013-10-07 Pedro Alves <palves@redhat.com>
2594
2595 PR breakpoints/11568
2596 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2597 the thread list" instead of "gone".
2598
0c557179
SDJ
25992013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2600
2601 * NEWS: Mention new convenience variable $_exitsignal.
2602 * corelow.c (core_open): Reset exit convenience variables. Set
2603 $_exitsignal to the uncaught signal which generated the corefile.
2604 * infrun.c (handle_inferior_event): Reset exit convenience
2605 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2606 (clear_exit_convenience_vars): New function.
2607 * inferior.h (clear_exit_convenience_vars): New prototype.
2608
1cc47d81
YQ
26092013-10-06 Yao Qi <yao@codesourcery.com>
2610
2611 * varobj.h: Add comments to enum varobj_languages.
2612
73869dc2
DE
26132013-10-04 Doug Evans <dje@google.com>
2614
2615 Add support for DWP file format version 2.
2616 * NEWS: Mention support for DWP file format version 2.
2617 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2618 union of asection, containing_section. New fields virtual_offset
2619 and is_virtual. Change type of readin filed from int to char.
2620 (dwo_sections, dwo_file): Tweak comments.
2621 (dwp_v2_section_ids): New enum.
2622 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2623 str_offsets, types.
2624 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2625 All uses updated.
2626 (virtual_v2_dwo_sections): New struct.
2627 (dwp_hash_table): New fields version, nr_columns. Change type of
2628 section_pool field to a union.
2629 (dwp_file): New field version.
2630 (dwarf2_has_info): Check for virtual sections.
2631 (get_containing_section): New function.
2632 (get_section_bfd_owner, get_section_bfd_section): Call it.
2633 (dwarf2_locate_sections): Update.
2634 (dwarf2_section_empty_p): Update.
2635 (dwarf2_read_section): Handle virtual sections.
2636 (locate_dwz_sections): Update.
2637 (create_dwp_hash_table): Document and handle V2 format.
2638 (locate_v1_virtual_dwo_sections): Renamed from
2639 locate_virtual_dwo_sections and update. All callers updated.
2640 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2641 Delete arg htab. Rename arg section_index to unit_index.
2642 All callers updated.
2643 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2644 All uses updated.
2645 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2646 (lookup_dwo_unit_in_dwp): Add V2 support.
2647 (dwarf2_locate_dwo_sections): Update.
2648 (dwarf2_locate_common_dwp_sections): Renamed from
2649 dwarf2_locate_dwp_sections and update. All callers updated.
2650 (dwarf2_locate_v2_dwp_sections): New function.
2651 (open_and_init_dwp_file): Add V2 support.
2652 (read_str_index): New locals str_section, str_offsets_section.
2653
9a2c3737
PA
26542013-10-04 Pedro Alves <palves@redhat.com>
2655
2656 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2657 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2658 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2659 describing comments with references to ptid.h.
2660 * common/ptid.h: Remove intro description of constructors,
2661 accessors and predicates.
2662 (struct ptid): Reformat.
2663 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2664 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2665 describing comments.
2666
f5371440
JB
26672013-10-04 Joel Brobecker <brobecker@adacore.com>
2668
2669 * aix-thread.c (sync_threadlists): Add missing ')' in call
2670 to ptid_build.
2671
793e1c06
JB
26722013-10-04 Joel Brobecker <brobecker@adacore.com>
2673
2674 * procfs.c (procfs_init_inferior): Fix typo causing the build
2675 to fail.
2676
26f0edc1
JB
26772013-10-04 Joel Brobecker <brobecker@adacore.com>
2678
2679 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2680
5713b9b5
JB
26812013-10-04 Joel Brobecker <brobecker@adacore.com>
2682
2683 * mi/mi-main.c (run_one_inferior): Add function description.
2684 Make ARG a pointer to an integer whose value determines whether
2685 we should "run" or "start" the program.
2686 (mi_cmd_exec_run): Add handling of the "--start" option.
2687 Reject all other command-line options.
2688 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2689
f48ff2a7
YQ
26902013-10-04 Yao Qi <yao@codesourcery.com>
2691
2692 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2693 (struct notif_client) <pending_event>: Moved
2694 to struct remote_notif_state.
2695 <id>: New field.
2696 (struct remote_notif_state) <pending_event>: New field.
2697 (notif_event_xfree): Declare.
2698 * remote-notif.c (handle_notification): Adjust.
2699 (notif_event_xfree): New function.
2700 (do_notif_event_xfree): Call notif_event_xfree.
2701 (remote_notif_state_xfree): Call notif_event_xfree to free
2702 each element in field pending_event.
2703 * remote.c (discard_pending_stop_replies): Remove declaration.
2704 (discard_pending_stop_replies_in_queue): Declare.
2705 (remote_close): Call discard_pending_stop_replies_in_queue
2706 instead of discard_pending_stop_replies.
2707 (remote_start_remote): Adjust.
2708 (stop_reply_xfree): Call notif_event_xfree.
2709 (notif_client_stop): Adjust initialization.
2710 (remote_notif_remove_all): Rename it to ...
2711 (remove_stop_reply_for_inferior): ... this. Update comments.
2712 Don't check INF is NULL.
2713 (discard_pending_stop_replies): Return early if notif_state is
2714 NULL. Adjust. Don't check INF is NULL.
2715 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 2716 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
2717 (remote_wait_ns): Likewise.
2718
5965e028
YQ
27192013-10-04 Yao Qi <yao@codesourcery.com>
2720
2721 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2722 (notif_queue): Remove.
2723 (remote_notif_process): Add one parameter 'notif_queue'.
2724 Update comments. Callers update.
2725 (remote_async_get_pending_events_token): Remove.
2726 (remote_notif_register_async_event_handler): Remove.
2727 (remote_notif_unregister_async_event_handler): Remove.
2728 (handle_notification): Add parameter 'notif_queue'. Update
2729 comments. Callers update.
2730 (notif_xfree): Remove.
2731 (remote_notif_state_allocate): New function.
2732 (remote_notif_state_xfree): New function.
2733 (_initialize_notif): Remove code to allocate queue.
2734 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2735 (struct remote_notif_state): New.
2736 (handle_notification): Update declaration.
2737 (remote_notif_process): Likewise.
2738 (remote_notif_register_async_event_handler): Remove.
2739 (remote_notif_unregister_async_event_handler): Remove.
2740 (remote_notif_state_allocate): Declare.
2741 (remote_notif_state_xfree): Declare.
2742 * remote.c (struct remote_state) <notif_state>: New field.
2743 (remote_close): Don't call
2744 remote_notif_unregister_async_event_handler. Call
2745 remote_notif_state_xfree.
2746 (remote_open_1): Don't call
2747 remote_notif_register_async_event_handler. Call
2748 remote_notif_state_allocate.
2749
5e5ac9a5
YQ
27502013-10-04 Yao Qi <yao@codesourcery.com>
2751
2752 * varobj.c (create_child_with_value): Remove 'const' from the
2753 type of parameter 'name'.
2754 (varobj_add_child): Likewise.
2755 (install_dynamic_child): Remove 'const' from the type of
2756 parameter 'name'.
2757 (varobj_add_child): Likewise.
2758 (create_child_with_value): Likewise. Update comments. Don't
2759 duplicate 'name'.
2760 (update_dynamic_varobj_children): Duplicate 'name'
2761 and pass it to install_dynamic_child.
2762
06ab7b19
PM
27632013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2764
2765 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2766 conversion logic to occur after PyLong_Check. Comment on order
2767 change significance.
2768 * python/py-arch.c (archpy_disassemble): Comment on order of
2769 conversion for integers and longs.
2770
8ae377e8
PA
27712013-10-03 Pedro Alves <palves@redhat.com>
2772
2773 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2774 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2775 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2776 PTRACE_O_TRACEFORK is not supported.
2777 (linux_test_for_tracesysgood): New function.
2778 (linux_test_for_tracefork): New function, factored out from
2779 linux_check_ptrace_features, and also don't kill child_pid here.
2780
b1328b1b
TG
27812013-10-03 Tristan Gingold <gingold@adacore.com>
2782
2783 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2784 Remove verbose error reporting. Use detected state to
2785 thread_set_state call.
2786 (i386_darwin_dr_get): Fix return type. Remove verbose error
2787 report.
2788 Remove trailing spaces.
2789
901461f8
PA
27902013-10-02 Pedro Alves <palves@redhat.com>
2791
2792 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2793 val_print_optimized_out.
2794 * jv-valprint.c (java_print_value_fields): Likewise.
2795 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2796 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2797 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2798 new optimized out value.
2799 * findvar.c (address_from_register): Likewise.
2800 * frame.c (put_frame_register): Tweak error string to say the
2801 register was not saved, rather than optimized out.
2802 * infcmd.c (default_print_one_register_info): Adjust call to
2803 val_print_optimized_out. Use value_of_register instead of
2804 get_frame_register_value.
2805 * mi/mi-main.c (output_register): Use value_of_register instead of
2806 get_frame_register_value.
2807 * valprint.c (valprint_check_validity): Likewise.
2808 (val_print_optimized_out): New value parameter. If the value is
2809 lval_register, print <not saved> instead.
2810 (value_check_printable, val_print_scalar_formatted): Adjust calls
2811 to val_print_optimized_out.
2812 * valprint.h (val_print_optimized_out): New value parameter.
2813 * value.c (struct value) <optimized_out>: Extend comment.
2814 (error_value_optimized_out): New function.
2815 (require_not_optimized_out): Use it. Use a different string for
2816 lval_register values.
2817 * value.h (error_value_optimized_out): New declaration.
2818 * NEWS: Mention <not saved>.
2819
042a84d9
JB
28202013-10-02 Joel Brobecker <brobecker@adacore.com>
2821
2822 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2823 strcmp to compare two symtab filenames.
2824
6b9780fb
JB
28252013-10-02 Joel Brobecker <brobecker@adacore.com>
2826
2827 * symtab.c (search_symbols_equal): Delete.
2828 (sort_search_symbols_remove_dups): Replace call to
2829 search_symbols_equal by call to compare_search_syms,
2830 adjusting as necessary.
2831
751e7549
PM
28322013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2833
2834 PR python/15579
751e7549
PM
2835 * python/python.c: Document gdb.execute command in Python help.
2836
1efd7661
PM
28372013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2838
2839 * python/py-frame.c (frame_info_to_frame_object): Use
2840 gdbpy_convert_exception. Clean up Python object on failure.
2841
562fc849
PM
28422013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2843
2844 * python/lib/gdb/command/frame_filters.py
2845 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2846 (ShowFrameFilterPriority.invoke): Ditto.
2847
d7561cbb
KS
28482013-10-01 Keith Seitz <keiths@redhat.com>
2849
2850 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2851 (parse_linespec): Make 'argptr' const.
2852 Remove temporary cast of 'argptr' to const char **.
2853 (decode_line_full): Pass const pointer to parse_linespec.
2854 (decode_line_1): Likewise.
2855 (decode_objc): Make local variable 'new_argptr' const.
2856 (find_function_symbols): Remove temporary cast to char *
2857 to find_imps.
2858 * objc-lang.c (find_imps): Make argument 'method' const.
2859 Return const.
2860 * objc-lang.h (find_imps): Likewise.
2861
28622013-10-01 Keith Seitz <keiths@redhat.com>
2863
2864 * completer.c (skip_quoted_chars): Make all arguments const.
2865 Return const.
2866 (skip_quoted): Likewise.
2867 * completer.h (skip_quoted_chars): Likewise.
2868 (skip_quoted): Likewise.
2869 * defs.h (skip_quoted): Remove duplicate declaration.
2870 * jv-exp.y: Include completer.h.
2871 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2872 * p-exp.y: Include completer.h.
2873
28742013-10-01 Keith Seitz <keiths@redhat.com>
2875
2876 * c-exp.y (parse_number): Make first argument const.
2877 Make a copy of the input to manipulate.
2878 (c_parse_escape): Make first argument const.
2879 Make local variable 'tokptr' const.
2880 (parse_string_or_char): Make first two arguments const.
2881 (macro_original_text): Make const.
2882 (lex_one_token): Make local variable 'tokstart' const.
2883 Likewise for local variables named 'p'.
2884 Cast away const for struct stoken (temporary).
2885 * c-lang.h (c_parse_escpae): Make first argument const.
2886 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2887 const.
2888 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2889 var_string case.
2890 * f-exp.y (parse_number): Make first argument const.
2891 (match_string_literal): Make local variable 'tokstart'
2892 const.
2893 (yylex): Make local variable 'p' const.
2894 Cast away const for struct stoken (temporary).
2895 * go-exp.y (parse_number): Make first argument const.
2896 (parse_string_or_char): Likewise.
2897 Make local variable 'tokstart' const.
2898 (lex_one_token): Likewise for numerous locals called 'p'.
2899 Cast away const for struct stoken (temporary).
2900 * jv-exp.y (parse_number): Make first argument const.
2901 Make local variables 'tokstart' and 'tokptr' const.
2902 Cast away const for call to skip_quoted (temporary).
2903 (yylex): Make local variable 'p' const.
2904 Cast away const for struct stoken (temporary).
2905 * m2-exp.y (parse_number): Make local variable 'p' const.
2906 (yylex): Likewise for 'tokstart'.
2907 Cast away const for struct stoken (temporary).
2908 Make local variable 'p' const.
2909 * macroexp.c (get_character_constant): Pass a const string
2910 to c_parse_escape.
2911 (get_string_literal): Likewise.
2912 (macro_expand_next): Make first argument const.
2913 Cast away const for init_shared_buffer.
2914 * macroexp.h (macro_expand_next): Make first argument const.
2915 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2916 Pass a const string to c_parse_escape.
2917 Make local variables 'p' and 'namestart' const.
2918 * parse.c (lexptr): Make const.
2919 (prev_lexptr): Likewise.
2920 (find_template_name_end): Return const.
2921 Make argument const, too.
2922 (parse_exp_in_context): Make first argument const.
2923 Remove the entire const_hack.
2924 (parse_exp_in_context_1): Make first argument const.
2925 * parser-defs.h (find_template_name_end): Return const.
2926 Make argument const, too.
2927 (lexptr): Make const.
2928 (prev_lexptr): Likewise.
2929 * utils.c (parse_escape): Make second argument const.
2930 * utils.h (parse_escape): Likewise.
2931
29322013-10-01 Keith Seitz <keiths@redhat.com>
2933
2934 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2935 is now const.
2936 (block_lookup): Make 'raw_name' and 'name' const.
2937 * ada-lex.l (processString): Update for struct stoken.ptr.
2938 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2939 (operator_stoken): Likewise.
2940 (lex_one_token): Remove temporary cast to char * for
2941 'yylval.sval.ptr'.
2942 * f-exp.y (yylex): Likewise.
2943 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2944 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2945 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2946 'yylval.sval.ptr'.
2947 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2948 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2949 * linespec.c (struct ls_parser): Make 'stream' const.
2950 (find_parameter_list_end): Make argument 'input' and local
2951 variable 'p' const.
2952 (linespec_lexer_lex_string): Make local variables 'start' and
2953 'p' const.
2954 Use skip_spaces_const instead of skip_spaces.
2955 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2956 const.
2957 (parse_linespec): Temporarily cast 'argptr' to const for
2958 'parser->lexer.stream'.
2959 * m2-exp.y (yylex): Remove temporary cast to char * for
2960 'yylval.sval.ptr'.
2961 * objc-lang.c (add_msglist): Make local variable 'p' const.
2962 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2963 (exp : STRING): Make 'sp' const.
2964 (parse_number): Make argument 'p' const.
2965 * parser-defs.h (struct stoken): Make 'ptr' const.
2966
193a8eac
DE
29672013-10-01 Doug Evans <dje@google.com>
2968
2969 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2970
2213e2be
YQ
29712013-10-01 Yao Qi <yao@codesourcery.com>
2972
2973 * varobj.c (c_value_of_root): Remove declaration.
2974 (cplus_value_of_root, java_value_of_root): Likewise.
2975 (ada_value_of_root): Likewise.
2976 (struct language_specific) <value_of_root>: Remove.
2977 (languages): Update initialization.
2978 (check_scope): Move earlier.
2979 (c_value_of_root): Move earlier and rename to ...
2980 (value_of_root_1): ... this.
2981 (value_of_root): Caller update.
2982 (cplus_value_of_root, java_value_of_root): Remove.
2983 (ada_value_of_root): Remove.
2984
c573f273
YQ
29852013-10-01 Yao Qi <yao@codesourcery.com>
2986
2987 * varobj.c (varobj_format_string): Remove "unknown".
2988 (languages): Remove the first element.
2989 * varobj.h (enum varobj_languages): Remove vlang_c.
2990
56250258
YQ
29912013-10-01 Yao Qi <yao@codesourcery.com>
2992
2993 * varobj.c (struct language_specific) <language>: Remove.
2994 (languages): Update the initialization.
2995
29f9ebfa
YQ
29962013-10-01 Yao Qi <yao@codesourcery.com>
2997
2998 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2999 "solib-target.h". Include "windows-tdep.h".
3000 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3001 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3002 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3003 windows-tdep.o to gdb_target_obs.
3004
64870a42
YQ
30052013-10-01 Yao Qi <yao@codesourcery.com>
3006
3007 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3008 "solib-target.h".
3009 (amd64_windows_init_abi): Don't call set_solib_ops and
3010 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3011 windows_init_abi instead.
3012 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3013 "solib-target.h".
3014 (i386_cygwin_init_abi): Don't call set_solib_ops,
3015 set_gdbarch_has_dos_based_file_system and
3016 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3017 windows_init_abi instead.
3018 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3019 (windows_init_abi): New function.
3020 (windows_iterate_over_objfiles_in_search_order): Make it
3021 static.
3022 * windows-tdep.h (windows_init_abi): Declare.
3023 (windows_iterate_over_objfiles_in_search_order): Remove
3024 declaration.
3025
0aebdefa
JB
30262013-10-01 Jerome Guitton <guitton@adacore.com>
3027
3028 Checked in by Joel Brobecker <brobecker@adacore.com>
3029 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3030 incomplete dictionnary instead of None in case of missing
3031 environment variables.
3032 (elinos_init): in case of an incomplete environment, best
3033 effort to load system libraries instead of abort.
3034
1c8e84b0
JB
30352013-10-01 Joel Brobecker <brobecker@adacore.com>
3036
3037 * ada-lang.c (ada_has_this_exception_support): Ignore
3038 mst_solib_trampoline minimal symbols.
3039
61d82a0d
TG
30402013-09-30 Tristan Gingold <gingold@adacore.com>
3041
3042 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3043 hardware watchpoint.
3044 (i386_darwin_dr_set): Support 32 and 64 bit states.
3045 (i386_darwin_dr_get): Likewise.
3046 (i386_darwin_dr_set_control): Make static.
3047 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3048 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3049
dfd4cc63
LM
30502013-09-30 Luis Machado <lgustavo@codesourcery.com>
3051
3052 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3053 Replace TIDGET with ptid_get_lwp.
3054 Replace GET_LWP with ptid_get_lwp.
3055 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3056 Replace BUILD_THREAD with ptid_build.
3057 Replace BUILD_LWP with ptid_build.
3058 Replace PIDGET with ptid_get_pid.
3059 Replace TIDGET with ptid_get_lwp.
3060 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3061 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3062 Replace TIDGET with ptid_get_lwp.
3063 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3064 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3065 Replace TIDGET with ptid_get_lwp.
3066 Replace GET_LWP with ptid_get_lwp.
3067 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3068 * auxv.c: Likewise.
3069 * breakpoint.c: Likewise.
3070 * common/ptid.c (ptid_is_pid): Condense check for
3071 null_ptid and minus_one_ptid.
3072 (ptid_lwp_p): New function.
3073 (ptid_tid_p): New function.
3074 * common/ptid.h: Update comments for accessors.
3075 (ptid_lwp_p): New prototype.
3076 (ptid_tid_p): New prototype.
3077 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3078 * gcore.c: Replace PIDGET with ptid_get_pid.
3079 * gdbthread.h: Likewise.
3080 * gnu-nat.c: Likewise.
3081 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3082 Replace TIDGET with ptid_get_lwp.
3083 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3084 * hppanbsd-nat.c: Likewise.
3085 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3086 Replace TIDGET with ptid_get_lwp.
3087 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3088 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3089 * infcmd.c: Likewise.
3090 * inferior.h: Likewise.
3091 * inflow.c: Likewise.
3092 * infrun.c: Likewise.
3093 * linux-fork.c: Likewise.
3094 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3095 Replace GET_PID with ptid_get_pid.
3096 Replace is_lwp with ptid_lwp_p.
3097 Replace GET_LWP with ptid_get_lwp.
3098 Replace BUILD_LWP with ptid_build.
3099
5b4e221c
MF
31002013-09-28 Mike Frysinger <vapier@gentoo.org>
3101
3102 * common/linux-btrace.c: Move sys/syscall.h out of the
3103 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3104 Also check for SYS_perf_event_open before attempting to buid.
3105
57d63ce2
DE
31062013-09-27 Doug Evans <dje@google.com>
3107
19ac8c2e
DE
3108 * dwarf2read.c (dwarf2_section_info): Add comment.
3109 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3110 All uses updated.
3111 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3112 (dwarf2_read_section): Delete unused local "header". Add section
3113 name to error message.
3114 (create_dwo_in_dwp): Tweak comment.
3115 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3116
a32a8923
DE
3117 * dwarf2read.c (die_reader_specs): Tweak comment.
3118 (get_section_bfd_owner, get_section_bfd_section): New functions.
3119 (get_section_name, get_section_file_name): New functions.
3120 (get_section_id, get_section_flags): New functions.
3121 (*): Use new functions to access section fields.
3122
57d63ce2
DE
3123 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3124 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3125 arg "htab". All callers updated.
3126 (create_debug_types_hash_table): Remove redundant copy of
3127 abbrev_section.
3128 (create_dwo_in_dwp): Tweak comments.
3129 (read_str_index): Tweak comment. Record dwarf form name in static
3130 local.
3131
3736004f
PA
31322013-09-27 Pedro Alves <palves@redhat.com>
3133
3134 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3135 (remote_filename_p): Add comment.
3136 * remote.c (remote_filename_p): Adjust to use
3137 REMOTE_SYSROOT_PREFIX.
3138 * solib.c (solib_find): When deciding whether we need to add a
3139 directory separator, check whether the sysroot is "remote:"
3140 instead of checking whether the patch has a drive spec. Add
3141 comments.
3142
5b5596ff
PA
31432013-09-27 Pedro Alves <palves@redhat.com>
3144
3145 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3146 Delete fields.
3147 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3148 directly.
3149
b5eef7aa
JK
31502013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3151
3152 Fix set debug frame output.
3153 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3154 SENTINEL_FRAME entry lower to match enum frame_type order.
3155
5b856f36
PM
31562013-09-26 Pierre Muller <muller@sourceware.org>
3157
3158 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3159 AMD64_R15_REGNUM when a register index is expected.
3160 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3161 Substitute in array.
3162 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3163 (amd64_push_arguments): Substitute in integer_regnum array.
3164
ade7ed9e
DE
31652013-09-25 Doug Evans <dje@google.com>
3166
d3e81981
DE
3167 * objfiles.c (allocate_objfile): Move comment to better place.
3168
8fb8eb5c
DE
3169 New option "set debug symfile on".
3170 * NEWS: Mention "set debug symfile".
3171 * Makefile.in (SFILES): Add symfile-debug.c.
3172 (COMMON_OBS): Add symfile-debug.o.
3173 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3174 objfile's symbol functions.
3175 * objfiles.h (objfile_set_sym_fns): Declare.
3176 * symfile-debug.c: New file.
3177 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3178 objfile's symbol functions.
3179 (reread_symbols): Ditto.
3180
c256e171
DE
3181 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3182 All uses updated.
3183 (add_symtab_fns): Update prototype.
3184 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3185 (registered_sym_fns): ... this.
3186 (symtab_fns): Update.
3187 (add_symtab_fns): New arg "flavour". All callers updated.
3188 (find_sym_fns): Rewrite to use new sym_fns registry.
3189
f56ce883
DE
3190 * symfile.h (struct sym_fns): Add "objfile" argument to
3191 sym_read_linetable. All uses updated.
3192
20c681d1
DE
3193 * symtab.c (domain_name, search_domain_name): New functions.
3194 * symtab.h (domain_name, search_domain_name): Declare.
3195
ade7ed9e
DE
3196 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3197 map_matching_symbols so objfile is first. All uses updated.
3198 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3199 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3200
7d760051
UW
32012013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3202
3203 PR shlibs/8882
3204 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3205 link map entries.
3206
020f7036
DE
32072013-09-24 Doug Evans <dje@google.com>
3208
3209 * objfiles.c (free_objfile): Move comment.
3210
598402f0
JB
32112013-09-24 Joel Brobecker <brobecker@adacore.com>
3212
3213 * ada-exp.y (string_to_operator): Delete.
3214 (dummy_string_to_ada_operator): Delete.
3215
bf4d6c1c
JB
32162013-09-24 Joel Brobecker <brobecker@adacore.com>
3217
3218 Revert:
3219 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3220 amd64-tdep.c.
3221 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3222 call_dummy_integer_regs, and classify.
3223 * amd64-tdep.h (amd64_classify): Add declaration.
3224 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3225 (amd64_reg_class): Delete, moved to i386-tdep.h.
3226 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3227 Replace call to amd64_classify by call to tdep->classify.
3228 (amd64_push_arguments): Get the list of registers to use for
3229 passing integer parameters from the gdbarch tdep structure,
3230 rather than using a hardcoded one. Replace calls to amd64_classify
3231 by calls to tdep->classify.
3232 (amd64_push_dummy_call): Get the register number used for
3233 the "hidden" argument from tdep->call_dummy_integer_regs.
3234 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3235 and tdep->call_dummy_integer_regs. Set tdep->classify.
3236
849e9755
JB
32372013-09-24 Joel Brobecker <brobecker@adacore.com>
3238
3239 Revert:
3240 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3241 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3242 where tdep->memory_args_by_pointer is non-zero.
3243
c1459fd6
JB
32442013-09-24 Joel Brobecker <brobecker@adacore.com>
3245
3246 Revert:
3247 * i386-tdep.h (struct gdbarch_tdep): Add new field
3248 integer_param_regs_saved_in_caller_frame.
3249 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3250 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3251
20c2e3e0
JB
32522013-09-24 Joel Brobecker <brobecker@adacore.com>
3253
874440b8 3254 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
3255 (amd64_windows_classify): Delete.
3256 (amd64_windows_passed_by_integer_register)
3257 (amd64_windows_passed_by_xmm_register)
3258 (amd64_windows_passed_by_pointer)
3259 (amd64_windows_adjust_args_passed_by_pointer)
3260 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3261 (amd64_windows_push_dummy_call): New functions.
3262 (amd64_windows_init_abi): Remove setting of
3263 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3264 tdep->classify, tdep->memory_args_by_pointer and
3265 tdep->integer_param_regs_saved_in_caller_frame.
3266 Add call to set_gdbarch_push_dummy_call.
3267
82bf32bc
JK
32682013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3269
3270 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3271 objfile->original_name.
3272
24ba069a
JK
32732013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3274
3275 Pass down original filename for objfile.
3276 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3277 * elfread.c (elf_symfile_read): Likewise.
3278 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3279 longer set ORIGINAL_NAME.
3280 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3281 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3282 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3283 symbol_file_add_from_bfd call.
3284 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3285 (macho_check_dsym): Add parameter filenamep. Change function comment.
3286 Set *filenamep.
3287 (macho_symfile_read): New variable dsym_filename. Update
3288 macho_check_dsym call. Use it for symbol_file_add_separate.
3289 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3290 it. Use it for objfile->original_name.
3291 (objfile_name): Return OBFD's filename, if available.
3292 * objfiles.h (allocate_objfile): Add new parameter name.
3293 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3294 * symfile-mem.c (symbol_file_add_from_memory): Update
3295 symbol_file_add_from_bfd call.
3296 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3297 comment for it.
3298 (symbol_file_add_with_addrs): New parameter name, add function comment
3299 for it. Remove variable name. Update allocate_objfile call.
3300 (symbol_file_add_separate): New parameter name, add function comment
3301 for it. Update symbol_file_add_with_addrs call.
3302 (symbol_file_add_from_bfd): New parameter name. Update
3303 symbol_file_add_with_addrs call.
3304 (symbol_file_add): Update symbol_file_add_from_bfd call.
3305 (reread_symbols): New variable original_name. Save
3306 objfile->original_name by it.
3307 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3308 second parameter.
3309
4262abfb
JK
33102013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312 Code cleanup: Add objfile_name accessor function.
3313 * ada-lang.c (is_known_support_routine): Use objfile_name.
3314 * auto-load.c (source_gdb_script_for_objfile)
3315 (auto_load_objfile_script): Likewise.
3316 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3317 * dbxread.c (dbx_symfile_read): Likewise.
3318 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3319 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3320 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3321 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3322 (lookup_dwp_signatured_type, lookup_dwo_unit)
3323 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3324 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3325 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3326 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3327 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3328 (read_subrange_type, load_partial_dies, read_partial_die)
3329 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3330 (die_containing_type, build_error_marker_type, lookup_die_type)
3331 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3332 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3333 (get_DW_AT_signature_type, write_psymtabs_to_index)
3334 (save_gdb_index_command): Likewise.
3335 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3336 Likewise.
3337 * expprint.c (dump_subexp_body_standard): Likewise.
3338 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3339 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3340 original_name.
3341 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3342 obj_name, use objfile_name for it, use the variable.
3343 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3344 Use objfile_name.
3345 * machoread.c (macho_symtab_read, macho_check_dsym)
3346 (macho_symfile_relocate): Likewise.
3347 * maint.c (maintenance_translate_address): Likewise.
3348 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3349 * minsyms.c (install_minimal_symbols): Likewise.
3350 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3351 original_name.
3352 (filter_overlapping_sections): Use objfile_name.
3353 (objfile_name): New function.
3354 * objfiles.h (struct objfile): Rename field name to original_name.
3355 (objfile_name): New prototype.
3356 * printcmd.c (sym_info, address_info): Use objfile_name.
3357 * probe.c (parse_probes, collect_probes, compare_probes)
3358 (info_probes_for_ops): Likewise.
3359 * progspace.c (clone_program_space): Likewise.
3360 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3361 (maintenance_info_psymtabs): Likewise.
3362 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3363 (source_section_scripts): Likewise.
3364 * python/py-objfile.c (objfpy_get_filename): Likewise.
3365 * python/py-progspace.c (pspy_get_filename): Likewise.
3366 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3367 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3368 * solib.c (solib_read_symbols): Likewise.
3369 * stabsread.c (scan_file_globals): Likewise.
3370 * stap-probe.c (handle_stap_probe): Likewise.
3371 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3372 (find_separate_debug_file_by_debuglink): Likewise.
3373 (reread_symbols): Likewise. Use the objfile field name renamed to
3374 original_name.
3375 (allocate_symtab): Use objfile_name.
3376 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3377 (dump_objfile, dump_msymbols, dump_symtab_1)
3378 (maintenance_print_msymbols, maintenance_print_objfiles)
3379 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3380 * target.c (target_translate_tls_address, target_info): Likewise.
3381 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3382 objfile_name.
3383
4721dc18
JK
33842013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 Code cleanup.
3387 * probe.c (parse_probes): Rename variable objfile_name to
3388 objfile_namestr.
3389
a61d6db8
JK
33902013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3391
3392 Remove solib-sunos.c.
3393 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3394 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3395 * objfiles.c (rt_common_objfile): Remove.
3396 (free_objfile): Remove rt_common_objfile comparison.
3397 * objfiles.h (rt_common_objfile): Remove.
3398 * solib-sunos.c: Remove.
3399 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3400
2659903b
JK
34012013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3402
3403 Remove a.out NetBSD and OpenBSD hosts.
3404 * NEWS (Removed native configurations): New.
3405 * config/arm/nbsdaout.mh: Remove.
3406 * config/i386/nbsdaout.mh: Remove.
3407 * config/i386/obsdaout.mh: Remove.
3408 * config/m68k/nbsdaout.mh: Remove.
3409 * config/sparc/nbsdaout.mh: Remove.
3410 * config/vax/nbsdaout.mh: Remove.
3411 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3412 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3413 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3414 error.
3415 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3416 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3417 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3418
f60e2d5c
TT
34192013-09-23 Tom Tromey <tromey@redhat.com>
3420
3421 * linespec.c (struct minsym_and_objfile): Remove.
3422 (minsym_and_objfile_d): Remove.
3423 (struct linespec, struct collect_info, linespec_parse_basic)
3424 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3425 (compare_msymbols, find_method, find_function_symbols)
3426 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3427 (add_minsym, search_minsyms_for_name): Update.
3428
d3eaaf66
AB
34292013-09-23 Andrew Burgess <aburgess@broadcom.com>
3430
3431 * regcache.c: Add include of valprint.h.
3432 (dump_endian_bytes): Delete.
3433 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3434
2cc762b5
AB
34352013-09-23 Andrew Burgess <aburgess@broadcom.com>
3436
3437 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3438
96181529
PA
34392013-09-19 Pedro Alves <palves@redhat.com>
3440
3441 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3442 breakpoints.
3443
9b3f3ee6
TS
34442013-09-19 Pedro Alves <palves@redhat.com>
3445 Thomas Schwinge <thomas@codesourcery.com>
3446 Yue Lu <hacklu.newborn@gmail.com>
3447
3448 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3449 Take a gdb_byte pointer instead of a char pointer.
3450
3451 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3452 gnu_xfer_partial helper.
3453 (gnu_xfer_partial): New function.
3454 (gnu_target): Don't install a deprecated_xfer_memory hook.
3455 Install a to_xfer_partial hook.
3456
69150c3d
JK
34572013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3458
3459 Constification.
3460 * main.c (captured_main): Replace catch_command_errors by
3461 catch_command_errors_const. Twice.
3462 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3463 (symbol_file_add): Make name parameter const.
3464 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3465 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3466 variable name. Change their usage accordingly.
3467 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3468 const.
3469 (symbol_file_add_main): Make args parameter const.
3470
086850b2
UW
34712013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3472 Ulrich Weigand <uweigand@de.ibm.com>
3473
3474 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3475 of c_value member.
3476 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3477
ca08a94c 34782013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 3479 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
3480
3481 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3482 (gnu_create_inferior)
3483 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3484 (set_sig_thread_cmd): Use the lwpid field of ptids to
3485 store/extract thread ids instead of the tid field.
3486 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3487
e4c6a2c4
AB
34882013-09-18 Andrew Burgess <aburgess@broadcom.com>
3489
3490 * infcmd.c (default_print_one_register_info): Add detection of
3491 optimized out values.
3492 (default_print_registers_info): Switch to using
3493 get_frame_register_value.
3494
58c48e72
MM
34952013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3496
3497 * infrun.c (handle_inferior_event): Check if we know the
3498 function start address before setting a resume breakpoint.
3499
c8d37639
PA
35002013-09-18 Pedro Alves <palves@redhat.com>
3501
3502 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3503 minus_one_ptid instead of looking at the ptid's tid field and
3504 comparing that to -1.
3505
71926e28
AB
35062013-09-18 Andrew Burgess <aburgess@broadcom.com>
3507
3508 * main.h (get_gdb_program_name): Remove extra whitespace.
3509
c88a1531
AB
35102013-09-18 Andrew Burgess <aburgess@broadcom.com>
3511
3512 * main.h (get_gdb_program_name): Add declaration.
3513 * main.c (get_gdb_program_name): Add definition.
3514
4390d890
DE
35152013-09-17 Doug Evans <dje@google.com>
3516
3517 * dwarf2read.c: Move definitions of complaint functions to after
3518 forward declarations of local functions.
3519
49fa26b0
PA
35202013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3521 Pedro Alves <palves@redhat.com>
3522
3523 PR gdb/11568
3524 * breakpoint.c (remove_threaded_breakpoints): New function.
3525 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3526 as thread_exit observer.
3527
08d72866
PA
35282013-09-17 Pedro Alves <palves@redhat.com>
3529
3530 PR gdb/15911
3531 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3532 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3533 * corelow.c (core_open):
3534 * frame.h (print_stack_frame, print_frame_info): New
3535 'set_current_sal' parameter.
3536 * infcmd.c (finish_command, kill_command): Adjust call to
3537 print_stack_frame.
3538 * inferior.c (inferior_command): Likewise.
3539 * infrun.c (normal_stop): Likewise.
3540 * linux-fork.c (linux_fork_context): Likewise.
3541 * record-full.c (record_full_goto_entry, record_full_restore):
3542 Likewise.
3543 * remote-mips.c (common_open): Likewise.
3544 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3545 Use it.
3546 (print_frame_info): New 'set_current_sal' parameter. Set the last
3547 displayed sal depending on the new paremeter instead of looking at
3548 print_what.
3549 (backtrace_command_1, select_and_print_frame, frame_command)
3550 (current_frame_command, up_command, down_command): Adjust call to
3551 print_stack_frame.
3552 * thread.c (print_thread_info, restore_selected_frame)
3553 (do_captured_thread_select): Adjust call to print_stack_frame.
3554 * tracepoint.c (tfind_1): Likewise.
3555 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3556 (mi_cmd_stack_info_frame): Likewise.
3557 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3558 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3559
6bc305f5
SDJ
35602013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3561
3562 * value.c (isvoid_internal_fn): Replace "parameter" with
3563 "argument".
3564
0a7cfe2c
SS
35652013-09-16 Stan Shebs <stan@codesourcery.com>
3566
3567 * README: Update references to writing code for GDB.
3568 * configure.ac (build_warnings): Remove obsolete comment.
3569 * configure: Regenerate.
3570 * gdbarch.sh: Remove references to gdbint.texinfo.
3571 * gdbarch.h: Regenerate.
3572 * gdbtypes.c (objfile_type): Remove comments referencing internals
3573 manual and D10V.
3574
a280dbd1
SDJ
35752013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3576
3577 * NEWS: Mention new convenience function $_isvoid.
3578 * value.c (isvoid_internal_fn): New function.
3579 (_initialize_values): Add new convenience function $_isvoid.
3580
04a83fee
PM
35812013-09-16 Pierre Muller <muller@sourceware.org>
3582
3583 * arm-linux-tdep.c: Add "elf/common.h" header.
3584 Remove AT_HWCAP macro definintion as it is provided in
3585 added include file.
3586 * s390-tdep.c: Remove system header <elf.h>
3587 Add "elf/common.h" header for AT_HWCAP definition.
3588 (s390_core_read_description): Use correct CORE_ADDR
3589 for hwcap local variable used as third parameter
3590 of function target_auxv_search.
3591
88505fac
PM
35922013-09-14 Pierre Muller <muller@sourceware.org>
3593 Tom Tromey <tromey@redhat.com>
3594 Pedro Alves <palves@redhat.com>
3595
3596 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3597 mode if operating system doesn't know O_CLOEXEC.
3598
d3846e71
JK
35992013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3600
3601 Code cleanup.
3602 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3603 inner block.
3604
4ac33720
UW
36052013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3606
3607 * NEWS: Mention TDB support.
3608 * features/s390-tdb.xml: New file.
3609 * features/s390-te-linux64.xml: New file.
3610 * features/s390x-te-linux64.xml: New file.
3611 * features/Makefile (WHICH): Add new tdescs above.
3612 (s390-te-linux64-expedite): Set.
3613 (s390x-te-linux64-expedite): Set.
3614 * features/s390-te-linux64.c: New file (generated).
3615 * features/s390x-te-linux64.c: New file (generated).
3616 * regformats/s390-te-linux64.dat: New file (generated).
3617 * regformats/s390x-te-linux64.dat: New file (generated).
3618 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3619 (HWCAP_S390_TE): Likewise.
3620 (S390_TDB_DWORD0_REGNUM): Likewise.
3621 (S390_TDB_DWORD0_REGNUM): Likewise.
3622 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3623 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3624 (S390_TDB_ATIA_REGNUM): Likewise.
3625 (S390_TDB_R0_REGNUM): Likewise.
3626 (S390_TDB_R1_REGNUM): Likewise.
3627 (S390_TDB_R2_REGNUM): Likewise.
3628 (S390_TDB_R3_REGNUM): Likewise.
3629 (S390_TDB_R4_REGNUM): Likewise.
3630 (S390_TDB_R5_REGNUM): Likewise.
3631 (S390_TDB_R6_REGNUM): Likewise.
3632 (S390_TDB_R7_REGNUM): Likewise.
3633 (S390_TDB_R8_REGNUM): Likewise.
3634 (S390_TDB_R9_REGNUM): Likewise.
3635 (S390_TDB_R10_REGNUM): Likewise.
3636 (S390_TDB_R11_REGNUM): Likewise.
3637 (S390_TDB_R12_REGNUM): Likewise.
3638 (S390_TDB_R13_REGNUM): Likewise.
3639 (S390_TDB_R14_REGNUM): Likewise.
3640 (S390_TDB_R15_REGNUM): Likewise.
3641 (S390_NUM_REGS): Increase.
3642 (S390_IS_TDBREGSET_REGNUM): New macro.
3643 (s390_regmap_tdb): Declare.
3644 (s390_sizeof_tdbregset): Define.
3645 (tdesc_s390_te_linux64): Declare.
3646 (tdesc_s390x_te_linux64): Likewise.
3647 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3648 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3649 (s390_regmap_tdb): New regmap.
3650 (s390_supply_tdb_regset): New function.
3651 (s390_tdb_regset): New regset.
3652 (s390_linux64v2_regset_sections): Add TDB regset to list.
3653 (s390x_linux64v2_regset_sections): Likewise.
3654 (s390_regset_from_core_section): Recognize TDB core note section.
3655 (s390_core_read_description): If HWCAP indicates TE support,
3656 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3657 (s390_gdbarch_init): Handle TDB regset.
3658 (_initialize_s390_tdep): Initialize new tdescs.
3659 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3660 (have_regset_tdb): New variable.
3661 (s390_native_supply): Support register invalidation.
3662 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3663 (check_regset): Treat ENODATA as "regset exists".
3664 (s390_linux_fetch_inferior_registers): Add TDB.
3665 (s390_read_description): Check for TDB existence and select
3666 appropriate tdesc.
3667 * gdbserver/Makefile.in (clean): Add removal of new makefile
3668 targets.
3669 (s390-te-linux64.c): New makefile target.
3670 (s390x-te-linux64.c): Likewise.
3671 * gdbserver/configure.srv (srv_regobj): Append new objects
3672 s390-te-linux64.o and s390x-te-linux64.o.
3673 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3674 s390x-te-linux64.xml, and s390-tdb.xml.
3675 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3676 declaration.
3677 (tdesc_s390_te_linux64): Likewise.
3678 (init_registers_s390x_te_linux64): Likewise.
3679 (tdesc_s390x_te_linux64): Likewise.
3680 (s390_check_regset): Treat ENODATA as "regset exists".
3681 (s390_arch_setup): Add TDB regset support.
3682 (initialize_low_arch): Initialize registers for new tdescs.
3683
2ccd1468
UW
36842013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3685
3686 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3687 (S390_IS_FPREGSET_REGNUM): New macro.
3688 * s390-tdep.c (s390_dwarf_regmap): Make const.
3689 (regnum_is_gpr_full): New function for replacing repeated code.
3690 (s390_pseudo_register_name): Use it.
3691 (s390_pseudo_register_type): Likewise.
3692 (s390_pseudo_register_read): Likewise.
3693 (s390_pseudo_register_write): Likewise.
3694 (s390_unwind_pseudo_register): Likewise.
3695 (s390_regmap_gregset): New format for regmap.
3696 (s390x_regmap_gregset): Likewise.
3697 (s390_regmap_fpregset): Likewise.
3698 (s390_regmap_upper): Likewise.
3699 (s390_regmap_last_break): Likewise.
3700 (s390_regmap_system_call): Likewise.
3701 (s390_supply_regset): Adjust to new regmap format.
3702 (s390_collect_regset): Likewise.
3703 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3704 (s390_native_collect): Likewise.
3705 (supply_gregset): Likewise.
3706 (fill_gregset): Likewise.
3707 (supply_fpregset): Likewise.
3708 (fill_fpregset): Likewise.
3709 (fetch_regset): Likewise.
3710 (store_regset): Likewise.
3711 (s390_linux_fetch_inferior_registers): Likewise.
3712 (s390_linux_fetch_inferior_registers): Likewise.
3713
1aa4cd77
AP
37142013-09-12 Andrew Pinski <apinski@cavium.com>
3715
3716 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3717
d91fab15
UW
37182013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3719
3720 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3721
5a5d8ead
AB
37222013-09-09 Andrew Burgess <aburgess@broadcom.com>
3723
3724 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3725
1385f66c
PA
37262013-09-06 Pedro Alves <palves@redhat.com>
3727
3728 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3729 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3730 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3731 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3732 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3733 gdb_stdlog.
3734
146ec4db
PA
37352013-09-06 Pedro Alves <palves@redhat.com>
3736
3737 * remote-sim.c (dump_mem): Constify buf parameter.
3738 gdbsim_xfer_inferior_memory): Rename to ...
3739 (gdbsim_xfer_memory): ... this. Adjust interface as
3740 target_xfer_partial helper.
3741 (gdbsim_xfer_partial): New function.
3742 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3743 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3744
fcde0081
PA
37452013-09-06 Pedro Alves <palves@redhat.com>
3746
3747 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3748 host_address_to_string, and send debug output to gdb_stdlog.
3749
749c8b38
RW
37502013-09-06 Ricard Wanderlof <ricardw@axis.com>
3751
3752 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3753 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3754 gdb_target_obs for cris target.
3755 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3756 (cris_gdbarch_init): Move calls to
3757 set_gdbarch_fetch_tls_load_module_address and
3758 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3759 Add call to gdbarch_init_osabi.
3760 * cris-linux-tdep.c: New file.
3761 * cris-tdep.h: New file.
3762
43df09d9
AB
37632013-09-06 Andrew Burgess <aburgess@broadcom.com>
3764
3765 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3766 to deprecated_init_ui_hook.
3767
4d09c5b4
AB
37682013-09-06 Andrew Burgess <aburgess@broadcom.com>
3769
3770 * cli/cli-interp.c (_initialize_cli_interp): Add a
3771 command_loop_proc to interp_procs.
3772 * event-top.c (cli_command_loop): Change signature to match
3773 interp_command_loop_ftype.
3774 * event-top.h (cli_command_loop): Same.
3775 * interps.c (interp_new): Require every interpreter to have a
3776 command_loop_proc.
3777 (current_interp_command_loop): Just call the command_loop_proc on
3778 the current interpreter.
3779 * tui/tui-interp.c (_initialize_tui_interp): Add a
3780 command_loop_proc to interp_procs.
3781
8eb3d7b6
RW
37822013-09-06 Ricard Wanderlof <ricardw@axis.com>
3783
3784 * cris-tdep.c (cris_gdbarch_init): Add call to
3785 get_gdbarch_fetch_tls_load_module_address.
3786
18b3c2f5
RW
37872013-09-06 Ricard Wanderlof <ricardw@axis.com>
3788
3789 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3790 (cris_elf_gregset_t): Rename from elf_gregset_t.
3791 (crisv32_elf_gregset_t): Adjust.
3792 (cris_supply_gregset, fetch_core_registers): Adjust.
3793
dc8636ef
RW
37942013-09-06 Ricard Wanderlof <ricardw@axis.com>
3795
3796 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3797
257e6d53
AB
37982013-09-05 Andrew Burgess <aburgess@broadcom.com>
3799
1581d8a7 3800 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 3801 references in comments.
1581d8a7 3802 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
3803 deprecated_command_loop_hook.
3804 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3805 setup.
1581d8a7 3806 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 3807
7c33b57c
PA
38082013-09-05 Pedro Alves <palves@redhat.com>
3809
3810 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3811 local is now int instead of ULONGEST. Print it with %d
3812 instead of paddress.
3813
9f8edbd5
TG
38142013-09-05 Tristan Gingold <gingold@adacore.com>
3815
3816 * MAINTAINERS: Remove avr maintainership.
3817
d5b495b4
PA
38182013-09-05 Pedro Alves <palves@redhat.com>
3819
3820 * findvar.c (value_of_register): Rework in terms of
3821 value_of_register_lazy.
3822
40b91786
MB
38232013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3824
3825 * symfile.c (add_symbol_file_command): Remove trailing
3826 whitespaces and blank line after comment.
3827
6eed1678
PA
38282013-09-05 Pedro Alves <palves@redhat.com>
3829
3830 * tui/tui-regs.c (tui_register_format): Don't look at the
3831 register's name here. Return string representing register
3832 value instead of storing it in the data element.
3833 (tui_get_register): Compare register string representations
3834 instead of register value states and contents.
3835
8eb6bda2
PA
38362013-09-05 Pedro Alves <palves@redhat.com>
3837
3838 PR tui/15933
3839 * tui/tui-regs.c (tui_show_registers): Show registers of the
3840 selected frame, not the current frame.
3841
48b1f08c
RW
38422013-09-05 Ricard Wanderlof <ricardw@axis.com>
3843
3844 * MAINTAINERS (Write After Approval): Add myself to the list.
3845
89e63ee4
DE
38462013-09-04 Doug Evans <dje@google.com>
3847
3848 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3849 (queue_and_load_dwo_tu): New function.
3850 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3851 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3852 Make dependent_cu optional.
3853 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3854 and an older .gdb_index is in use, queue and load all its TUs too.
3855
492c0ab7
JK
38562013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3857
3858 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3859 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3860 variable search_flags.
3861 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3862 (OPF_RETURN_REALPATH): ... here.
3863 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3864 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3865 call. Twice.
3866 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3867 openp call.
3868 * solib.c (solib_find): Likewise. Four times.
3869 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3870 in the function comment and for the realpath_fptr variable.
3871 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3872 (find_and_open_source): Likewise. Twice.
3873 * symfile.c (symfile_bfd_open): Likewise, also twice.
3874
23a44de8
DE
38752013-09-04 Doug Evans <dje@google.com>
3876
3877 * progspace.c (save_current_space_and_thread): Remove unnecessary
3878 call to save_current_inferior.
3879
47061676
AB
38802013-09-04 Andrew Burgess <aburgess@broadcom.com>
3881
3882 * sh64-tdep.c (sh64_do_register): Return after printing message
3883 about unavailable register contents.
3884
41dc8db8
MB
38852013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3886 Pedro Alves <palves@redhat.com>
3887
3888 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
3889 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3890 options and collapse into single conditional branch.
41dc8db8 3891
07107ca6
LM
38922013-09-03 Luis Machado <lgustavo@codesourcery.com>
3893
a7ea61cf 3894 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3895 detach_fork.
3896 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3897 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3898 * inferior.h (detach_fork): Remove.
3899 * infrun.c (detach_fork): Adjust comment and make it
3900 static.
3901 (follow_fork): Pass detach_fork parameter to
3902 target_follow_fork.
3903 * linux-nat.c (linux_child_follow_fork): New parameter
3904 detach_fork.
3905 * target.c (target_follow_fork): New parameter detach_fork.
3906 Pass detach_fork as parameter and print its value.
3907 * target.h (struct target_ops) <to_follow_fork>: New int
3908 parameter.
3909 (target_follow_fork): New parameter detach_fork.
3910
3bec2768
JB
39112013-09-03 Joel Brobecker <brobecker@adacore.com>
3912
3913 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3914 Replace sec->bfd by sec->the_bfd_section->owner.
3915
c01cbb3d
YQ
39162013-09-03 Yao Qi <yao@codesourcery.com>
3917
3918 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3919 from linux_has_shared_address_space.
3920 (linux_has_shared_address_space): Call linux_is_uclinux.
3921 * linux-tdep.h (linux_is_uclinux): Declare.
3922 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3923 linux_is_uclinux.
3924
7b00db47
YQ
39252013-09-03 Yao Qi <yao@codesourcery.com>
3926
3927 * config/djgpp/fnchange.lst: Remove entry of
3928 i386-interix-nat.c and i386-interix-tdep.c.
3929 * configure.ac: Remove '*-*-interix*'.
3930 * configure: Re-generated.
3931 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3932 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3933 obsolete comments.
3934 * osabi.c (gdb_osabi_names): Remove "Interix".
3935
0f9741f2
YQ
39362013-09-03 Yao Qi <yao@codesourcery.com>
3937
3938 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3939
1e038f67
MM
39402013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3941
3942 * record.h (record_print_flag) <record_print_src_line,
3943 record_print_insn_range>: Rename into ...
3944 (record_print_flag) <record_print_src_line,
3945 record_print_insn_range>: ... this. Update all users.
3946
9e52adf9
PM
39472013-09-02 Pierre Muller <muller@sourceware.org>
3948
3949 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3950 error code.
3951
a2388568
PM
39522013-09-02 Pierre Muller <muller@sourceware.org>
3953
3954 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3955 by use of plongest function.
3956
9058cc3a
TG
39572013-09-02 Tristan Gingold <gingold@adacore.com>
3958
3959 * NEWS: Add entry mentioning support for native Windows x64
3960 SEH data.
3961
3962 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3963 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3964 (struct amd64_windows_frame_cache): New struct.
3965 (amd64_windows_w2gdb_regnum): New global.
3966 (pc_in_range, amd64_windows_frame_decode_epilogue)
3967 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3968 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3969 (amd64_windows_frame_this_id): New functions.
3970 (amd64_windows_frame_unwind): New static global.
3971 (amd64_windows_skip_prologue): New function.
3972 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3973 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3974 with amd64_windows_skip_prologue.
3975
3161820b 39762013-08-30 Joel Brobecker <brobecker@adacore.com>
3977
3978 GDB 7.6.1 released.
3979
02457c76
PA
39802013-08-30 Pedro Alves <palves@redhat.com>
3981
3982 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3983 SRC_AND_LOC.
3984
e0162910
PA
39852013-08-30 Pedro Alves <palves@redhat.com>
3986
3987 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3988 warning text.
3989
6391ce51
PA
39902013-08-30 Pedro Alves <palves@redhat.com>
3991
3992 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3993 Adjust arguments to print_stack_frame.
3994
d1da0587
PA
39952013-08-30 Pedro Alves <palves@redhat.com>
3996
3997 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3998
adfd8245
PA
39992013-08-30 Pedro Alves <palves@redhat.com>
4000
4001 * frame.h (show_and_print_stack_frame): Delete declaration.
4002
96d9056e
PM
40032013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4004
4005 PR python/15461
96d9056e
PM
4006 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4007 (archpy_name): Check for valid architecture.
4008 (archpy_disassemble): Ditto.
4009
11cb8762
JB
40102013-08-29 Joel Brobecker <brobecker@adacore.com>
4011
4012 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4013 instead of "long long" in call to ptrace64.
4014
1af12a7d
AB
40152013-08-29 Andrew Burgess <aburgess@broadcom.com>
4016
4017 * mi/mi-interp.c (mi_command_loop): Change signature to match
4018 interp_command_loop_ftype.
4019 (mi1_command_loop): Remove.
4020 (mi2_command_loop): Remove.
4021 (mi3_command_loop): Remove.
4022 (mi_interpreter_resume): Remove setting of
4023 deprecated_command_loop_hook.
4024 (_initialize_mi_interp): Set mi_command_loop as the command loop
4025 callback.
4026
acc900c2
SA
40272013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4028
4029 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4030 value_type.
4031
548b762d
SA
40322013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4033
4034 * value.c (allocate_value_contents): Make static.
4035 * value.h (allocate_value_contents): Remove prototype.
4036
08039c9e
SA
40372013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4038
4039 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4040 of assembling value via allocate_value_lazy and attribute setter.
4041 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4042 assembling value via allocate_value_lazy and attribute setter.
4043 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4044 assembling value via allocate_value_lazy and attribute setter.
4045
314c7de9
SA
40462013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4047
4048 * value.c (value_from_contents_and_address): Replace allocate_value and
4049 memcpy with value_from_contents.
4050
8f28f522
PM
40512013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4052
4053 * python/py-framefilter.c (py_print_frame): Remove usage of
4054 PyString_AsString. Use python_string_to_host_string instead.
4055 Refactor function to work with a string as a new allocation
4056 instead of a pointer.
4057 (py_print_frame): Ditto.
4058 * python/lib/gdb/frames.py (return_list): Cain iterators together
4059 instead of adding them as a list.
4060 (_sort_list): Call return_list, and remove duplicate code.
4061 (execute_frame_filters): Convert iterator to a list with list().
4062 * python/lib/gdb/command/frame_filters.py
4063 (SetFrameFilterPriority._set_filter_priority): Convert priority
4064 attribute to an integer.
4065 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4066 wrapper function __next__.
4067 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4068 define as "str".
4069
8ee002df
PM
40702013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4071
4072 PR python/15752
8ee002df
PM
4073 * python/py-framefilter.c (apply_frame_filter): Check
4074 gdb_python_initialized. Exit if the Python frame-filter code
4075 cannot be initialized.
4076
af4c453a
PM
40772013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4078
4079 PR cli/15842
af4c453a
PM
4080 * top.c (print_gdb_version): Remove erroneous newline after help
4081 text.
4082
bf8793bb
YQ
40832013-08-29 Yao Qi <yao@codesourcery.com>
4084
4085 * varobj.c (install_dynamic_child): Remove trailing space.
4086 Add one blank line after variable declaration.
4087
1f0c4988
JK
40882013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4089
4090 PR gdb/15415
4091 * corefile.c (get_exec_file): Use exec_filename.
4092 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4093 * exec.c (exec_close): Free EXEC_FILENAME.
4094 (exec_file_attach): New variable canonical_pathname. Use
4095 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4096 EXEC_FILENAME.
4097 * exec.h (exec_filename): New.
4098 * inferior.c (print_inferior, inferior_command): Use
4099 PSPACE_EXEC_FILENAME.
4100 * mi/mi-main.c (print_one_inferior): Likewise.
4101 * progspace.c (clone_program_space, print_program_space): Likewise.
4102 * progspace.h (struct program_space): New field pspace_exec_filename.
4103 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4104 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4105
59ee9f94
WN
41062013-08-28 Will Newton <will.newton@linaro.org>
4107
4108 * common/linux-ptrace.c: Include stdint.h unconditionally.
4109
c8a2a419
JK
41102013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4111
4112 Code cleanup.
4113 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4114
ffa4ac95
YQ
41152013-08-28 Yao Qi <yao@codesourcery.com>
4116 Pedro Alves <palves@redhat.com>
4117
4118 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4119 instead of stdio_fileopen.
4120 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4121 .Call stderr_fileopen instead of stdio_fileopen.
4122 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4123 [__MINGW32__] (stderr_file_fputs): New function.
4124 (stderr_fileopen): New function.
4125 * ui-file.h (stderr_fileopen): Declare.
4126
69d751e3
DE
41272013-08-27 Doug Evans <dje@google.com>
4128
4129 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4130 (struct dwarf2_per_cu_data): Ditto.
4131 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4132 (process_imported_unit_die): Ditto.
4133 (follow_die_sig_1): Simplify assert.
4134
44f38867
PA
41352013-08-27 Pedro Alves <palves@redhat.com>
4136
4137 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4138 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4139 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4140 windows_xfer_memory directly.
4141 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4142
d28d46b5
PA
41432013-08-27 Pedro Alves <palves@redhat.com>
4144
4145 * darwin-nat.c (darwin_xfer_memory): Delete.
4146 (_initialize_darwin_inferior): Don't install a
4147 deprecated_xfer_memory method.
4148
6211c335
YQ
41492013-08-27 Pedro Alves <pedro@codesourcery.com>
4150 Yao Qi <yao@codesourcery.com>
4151
4152 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4153 (parse_no_frames_option): Remove.
4154 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4155 (mi_cmd_stack_list_args): Adjust.
4156 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4157 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4158 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4159 Caller update.
4160 (list_args_or_locals): New parameter 'skip_unavailable'.
4161 Handle it.
4162 * valprint.c (scalar_type_p): Rename to ...
4163 (val_print_scalar_type_p): ... this. Make extern.
4164 (val_print, value_check_printable): Adjust.
4165 * valprint.h (val_print_scalar_type_p): Declare.
4166 * value.c (value_entirely_unavailable): New function.
4167 * value.h (value_entirely_unavailable): Declare.
4168
4169 * NEWS: Mention the new option "--skip-unavailable" to MI
4170 commands '-stack-list-locals', '-stack-list-arguments' and
4171 '-stack-list-variables'.
4172
242f1fd7
YQ
41732013-08-27 Yao Qi <yao@codesourcery.com>
4174
4175 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4176 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4177 options.
4178 * mi/mi-getopt.c (mi_getopt): Remove.
4179 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4180 'error_on_unknown'.
4181 (mi_getopt): Call mi_getopt_1.
4182 (mi_getopt_silent): New.
4183 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4184
260b681b
DE
41852013-08-26 Doug Evans <dje@google.com>
4186
779bd270
DE
4187 PR symtab/15885
4188 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4189 .gdb_index is in use.
4190 * symfile.c (reread_symbols): Reset objfile->sf.
4191
52e260a3
DE
4192 * NEWS: Document "mt print objfiles" now takes optional regexp.
4193 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4194 regexp of objfiles to print.
4195 (_initialize_symmisc): Update doc string for "mt print objfiles".
4196
260b681b
DE
4197 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4198 missing debug info checks.
4199
a85c52f2
UW
42002013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4201 Ulrich Weigand <uweigand@de.ibm.com>
4202
4203 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4204 line tables generated by XLC compiled binaries.
4205
4f00dda3
DE
42062013-08-23 Doug Evans <dje@google.com>
4207
db68bbae
DE
4208 * symmisc.c (dump_symtab): Delete prototype.
4209 (dump_msymbols, dump_objfile): Ditto.
4210 (maintenance_info_symtabs): Mark as dont_repeat.
4211 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4212
4f00dda3
DE
4213 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4214 debugging printf to better location.
4215
23d577b0
PA
42162013-08-23 Pedro Alves <palves@redhat.com>
4217
4218 * target.c (target_read_live_memory): Change type of 'ret' local
4219 to LONGEST.
4220
00d84524
PA
42212013-08-23 Pedro Alves <palves@redhat.com>
4222
4223 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4224 (remote_read_bytes): Change return type to LONGEST, and adjust to
4225 return a target_xfer_error on error.
4226 (remote_xfer_memory): Delete.
4227 (remote_flash_write): Change type of 'ret' local to LONGEST.
4228 (remote_xfer_partial, remote_xfer_partial): Adjust.
4229 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4230
1ed3ee94
PM
42312013-08-23 Pierre Muller <muller@sourceware.org>
4232
4233 ARI fix: Push # directives to start of line.
4234 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4235
9eaabc75
MW
42362013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4237
4238 PR gdb/15501
4239 * breakpoint.c (enable_command, disable_command): Iterate over
4240 all specified breakpoint locations.
4241
101158d9
LM
42422013-08-22 Luis Machado <lgustavo@codesourcery.com>
4243
4244 * common/linux-ptrace.c (linux_fork_to_function): Push #
4245 directives to the start of the line.
4246 (linux_check_ptrace_features): Fix warning message to use
4247 the "_" markup.
4248
96d7229d
LM
42492013-08-22 Luis Machado <lgustavo@codesourcery.com>
4250
4251 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4252 nat/linux-waitpid.h.
4253 (linux-waitpid.o): New object file rule.
4254 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4255 (current_ptrace_options): Moved from linux-nat.c.
4256 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4257 parameters.
4258 (linux_fork_to_function): New function.
4259 (linux_grandchild_function): Likewise.
4260 (linux_child_function): Likewise.
4261 (linux_check_ptrace_features): New function, heavily
4262 based on linux-nat.c:linux_test_for_tracefork.
4263 (linux_enable_event_reporting): New function.
4264 (ptrace_supports_feature): Likewise.
4265 (linux_supports_tracefork): Likewise.
4266 (linux_supports_traceclone): Likewise.
4267 (linux_supports_tracevforkdone): Likewise.
4268 (linux_supports_tracesysgood): Likewise.
4269 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4270 gdbserver/linux-low.c.
4271 (linux_enable_event_reporting): New declaration.
4272 (linux_supports_tracefork): Likewise.
4273 (linux_supports_traceclone): Likewise.
4274 (linux_supports_tracevforkdone): Likewise.
4275 (linux_supports_tracesysgood): Likewise.
4276 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4277 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4278 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4279 * config/arm/linux.mh (NATDEPFILES): Likewise.
4280 * config/i386/linux.mh (NATDEPFILES): Likewise.
4281 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4282 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4283 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4284 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4285 * config/mips/linux.mh (NATDEPFILES): Likewise.
4286 * config/pa/linux.mh (NATDEPFILES): Likewise..
4287 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4288 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4289 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4290 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4291 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4292 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4293 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4294 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4295 ptrace's 4th argument's types.
4296 Check the type of PTRACE_TYPE_ARG4.
4297 * configure: Regenerate.
4298 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4299 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4300 (linux_supports_tracefork_flag): Remove.
4301 (linux_supports_tracesysgood_flag): Likewise.
4302 (linux_supports_tracevforkdone_flag): Likewise.
4303 (current_ptrace_options): Moved to
4304 common/linux-ptrace.c.
4305 (linux_tracefork_child): Remove.
4306 (my_waitpid): Remove.
4307 (linux_test_for_tracefork): Renamed to
4308 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4309 (linux_test_for_tracesysgood): Remove.
4310 (linux_supports_tracesysgood): Remove.
4311 (linux_supports_tracefork): Remove.
4312 (linux_supports_tracevforkdone): Remove.
4313 (linux_enable_tracesysgood): Remove.
4314 (linux_enable_event_reporting): Remove.
4315 (linux_init_ptrace): New function.
4316 (linux_child_post_attach): Call linux_init_ptrace.
4317 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4318 (linux_child_follow_fork): Call linux_supports_tracefork
4319 and linux_supports_tracevforkdone.
4320 (linux_child_insert_fork_catchpoint): Call
4321 linux_supports_tracefork.
4322 (linux_child_insert_vfork_catchpoint): Likewise.
4323 (linux_child_set_syscall_catchpoint): Call
4324 linux_supports_tracesysgood.
4325 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4326 * nat/linux-nat.h: New file.
4327 * nat/linux-waitpid.c: New file.
4328 * nat/linux-waitpid.h: New file.
4329
9f948660
SDJ
43302013-08-22 Samuel Bronson <naesten@gmail.com>
4331
4332 ARM Linux support for `catch syscall'.
4333 * syscalls/arm-linux.py: New file.
4334 * syscalls/arm-linux.xml: Likewise.
4335 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4336 (arm_linux_init_abi): Register the new function and syscall xml file.
4337 * data-directory/Makefile.in: Install the new syscall xml file.
4338 * NEWS: Brag about this.
4339
6be7b56e
PA
43402013-08-22 Pedro Alves <palves@redhat.com>
4341
4342 PR gdb/15871
4343 * corefile.c (target_xfer_memory_error): New function.
4344 (memory_error): Defer EIO to target_memory_error.
4345 (read_memory): Use target_xfer_partial, and handle finer-grained
4346 target xfer errors.
4347 * target.c (target_xfer_error_to_string): New function.
4348 (memory_xfer_partial_1): If memory is known to be
4349 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4350 (target_xfer_partial): Make extern.
4351 * target.h (enum target_xfer_error): New enum.
4352 (target_xfer_error_to_string): Declare function.
4353 (target_xfer_partial): Declare function.
4354 (struct target_ops) <xfer_partial>: Adjust describing comment.
4355
bcbec14e
AM
43562013-08-22 Alan Modra <amodra@gmail.com>
4357
4358 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4359 * configure.tgt: Likewise as targets.
4360
fc474241
DE
43612013-08-20 Doug Evans <dje@google.com>
4362
4363 * buildsym.c (subfile_stack): Move here from buildsym.h.
4364 (pending_macros): Ditto.
4365 (get_macro_table): New function.
4366 (buildsym_init): Initialize subfile_stack.
4367 * coffread.c (type_vector,type_vector_length): Moved here from
4368 buildsym.h.
4369 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4370 (coff_symtab_read): Use it.
4371 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4372 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4373 with call to get_macro_table.
4374 * stabsread.c (type_vector,type_vector_length): Moved here from
4375 buildsym.h.
4376 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4377 * buildsym.h (get_macro_table): Declare.
4378
bec71544
TT
43792013-08-20 Tom Tromey <tromey@redhat.com>
4380
4381 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4382 Update.
4383 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4384
0002ad5f
DE
43852013-08-20 Doug Evans <dje@google.com>
4386
4387 * blockframe.c: Remove #include "psymtab.h".
4388 * cp-support.c: Ditto.
4389 * source.c: Ditto.
4390 * stack.c: Ditto.
4391
df302446
TT
43922013-08-20 Tom Tromey <tromey@redhat.com>
4393
4394 PR python/15816:
4395 * exceptions.h (return_mask): Now an enum.
4396 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4397 enum constants.
4398
df6d5441
TT
43992013-08-20 Tom Tromey <tromey@redhat.com>
4400
4401 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4402 get_objfile_arch.
4403 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4404 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4405 * jit.c (jit_object_close_impl): Update.
4406 * jv-lang.c (get_dynamics_objfile): Update.
4407 * linespec.c (add_minsym): Use get_dynamics_objfile.
4408 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4409 (allocate_objfile): Don't initialize 'gdbarch' field.
4410 (get_objfile_arch): Update.
4411 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4412 moved from...
4413 (struct objfile) <gdbarch>: ... here. Remove.
4414 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4415 get_objfile_arch.
4416 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4417
f5aee5ee
AM
44182013-08-20 Alan Modra <amodra@gmail.com>
4419
4420 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4421 for IBM long double nan and inf.
4422 (floatformat_is_negative, floatformat_classify,
4423 floatformat_mantissa): Similarly.
4424 (floatformat_ieee_single, floatformat_ieee_double,
4425 floatformat_ieee_quad, floatformat_arm_ext,
4426 floatformat_ia64_spill): Delete unused vars.
4427 (_initialize_doublest): Delete unused function.
4428 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4429 little-endian variants of floatformat_ibm_long_double.
4430
33b60d58 44312013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 4432
33b60d58
LM
4433 * Makefile.in (SFILES): Remove common/target-common.c and
4434 add target/waitstatus.c.
4435 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4436 target/resume.h, target/wait.h and target/waitstatus.h.
4437 (COMMON_OBS): Remove target-common.o and add
4438 waitstatus.o.
4439 (target-common.o): Remove.
4440 (waitstatus.o): New target object file.
4441 * common/target-common.c: Move contents to
4442 target/waitstatus.c and remove.
4443 * common/target-common.h: Move contents to other files and
4444 remove.
4445 (enum resume_kind: Move to target/resume.h.
4446 (TARGET_WNOHANG): Move to target/wait.h.
4447 (enum target_waitkind): Move to target/waitstatus.h.
4448 (struct target_waitstatus): Likewise.
4449 * target.h: Do not include target-common.h and
4450 include target/resume.h, target/wait.h and
4451 target/waitstatus.h.
4452 * target/resume.h: New file.
4453 * target/wait.h: New file.
4454 * target/waitstatus.h: New file.
4455 * target/waitstatus.c: New file.
4456
12696c10
PA
44572013-08-19 Pedro Alves <palves@redhat.com>
4458
4459 * linux-nat.c (linux_test_for_tracefork)
4460 (linux_test_for_tracesysgood, linux_child_follow_fork)
4461 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4462 (linux_nat_wait_1): Extend comment.
4463 (linux_async_pipe): Add comment.
4464
ba89f962
KB
44652013-08-15 Kevin Buettner <kevinb@redhat.com>
4466
4467 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4468 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4469 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4470 Update to account for fact that PC is now a pseudo-register.
4471 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4472 cases for RL78_PC_REGNUM.
4473
35ab155d
MB
44742013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4475
4476 PR cli/15841
4477 * top.c (quit_force): Skip writing history file
4478 if input is not from terminal.
4479
0d031856
TT
44802013-08-14 Tom Tromey <tromey@redhat.com>
4481
4482 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4483 resultthreadlist>: New fields.
4484 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4485 (remote_get_threadlist, remote_threadlist_iterator): Use
4486 new fields. Remove static variables.
4487
ee154bee
TT
44882013-08-14 Tom Tromey <tromey@redhat.com>
4489
4490 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4491 remote_watch_data_address>: New fields.
4492 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4493 (process_stop_reply, remote_wait_as)
4494 (remote_check_watch_resources, remote_stopped_data_address): Update.
4495
88b496c3
TT
44962013-08-14 Tom Tromey <tromey@redhat.com>
4497
4498 * remote.c (struct remote_state) <async_client_callback,
4499 async_client_context>: New fields.
4500 (async_client_callback, async_client_context): Remove.
4501 (remote_async_serial_handler, remote_async): Update.
4502
2f65bcb7
TT
45032013-08-14 Tom Tromey <tromey@redhat.com>
4504
4505 * remote.c (sizeof_pkt): Remove.
4506 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4507
b80fafe3
TT
45082013-08-14 Tom Tromey <tromey@redhat.com>
4509
4510 * remote.c (struct remote_state) <use_threadinfo_query,
4511 use_threadextra_query>: New fields.
4512 (remote_threads_info, remote_threads_extra_info)
4513 (remote_open_1): Update.
4514
8e88304f
TT
45152013-08-14 Tom Tromey <tromey@redhat.com>
4516
4517 * remote.c (struct remote_state) <finished_object,
4518 finished_annex, finished_offset>: New fields.
4519 (remote_read_qxfer): Use remote_state fields; remove static
4520 variables.
4521
280ceea3
TT
45222013-08-14 Tom Tromey <tromey@redhat.com>
4523
4524 * remote.c (struct remote_state) <last_sent_step>:
4525 New field.
4526 (last_sent_step): Remove.
4527 (remote_resume, remote_wait_as): Update.
4528
b73be471
TT
45292013-08-14 Tom Tromey <tromey@redhat.com>
4530
4531 * remote.c (struct remote_state) <last_sent_signal>:
4532 New field.
4533 (last_sent_signal): Remove.
4534 (new_remote_state, remote_resume, remote_wait_as): Update.
4535
5e4a05c4
TT
45362013-08-14 Tom Tromey <tromey@redhat.com>
4537
4538 * remote.c (struct remote_state) <last_program_signals_packet>:
4539 New field.
4540 (last_program_signals_packet): Remove.
4541 (remote_program_signals, remote_open_1): Update.
4542
747dc59d
TT
45432013-08-14 Tom Tromey <tromey@redhat.com>
4544
4545 * remote.c (struct remote_state) <last_pass_packet>:
4546 New field.
4547 (last_pass_packet): Remove.
4548 (remote_pass_signals, remote_open_1): Update.
4549
262e1174
TT
45502013-08-14 Tom Tromey <tromey@redhat.com>
4551
4552 * remote.c (struct remote_state) <remote_traceframe_number>:
4553 New field.
4554 (remote_traceframe_number): Remove.
4555 (new_remote_state, remote_open_1, set_remote_traceframe)
4556 (remote_trace_find): Update.
4557
47f8a51d
TT
45582013-08-14 Tom Tromey <tromey@redhat.com>
4559
4560 * remote.c (struct remote_state) <general_thread, continue_thread>:
4561 New fields.
4562 (general_thread, continue_thread): Remove.
4563 (record_currthread, set_thread, set_general_process)
4564 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4565 (extended_remote_mourn_1): Update.
4566
5d93a237
TT
45672013-08-14 Tom Tromey <tromey@redhat.com>
4568
4569 * remote.c (struct remote_state) <remote_desc>: New field.
4570 (remote_desc): Remove.
4571 (remote_threads_info, remote_threads_extra_info, remote_close)
4572 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4573 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4574 (remote_hostio_send_command, remote_file_put, remote_file_get)
4575 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4576 (remote_async, remote_new_objfile, set_range_stepping): Update.
4577
cf792862
TT
45782013-08-14 Tom Tromey <tromey@redhat.com>
4579
4580 * remote.c (remote_state): Now a pointer.
4581 (get_remote_state_raw): Update.
4582 (new_remote_state): New function.
4583 (_initialize_remote): Use new_remote_state.
4584
dc473cfb
TT
45852013-08-14 Tom Tromey <tromey@redhat.com>
4586
4587 * remote.c (remote_protocol_features): Now const.
4588
85ec6ce7
TT
45892013-08-14 Tom Tromey <tromey@redhat.com>
4590
4591 * remote.c (crc32_table, crc32): Remove.
4592 (remote_verify_memory): Use xcrc32.
4593
73033f12
SDJ
45942013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4595
4596 * value.h (create_internalvar_type_lazy): Adjust prototype
4597 declaration.
4598
5c30d39a
AB
45992013-08-13 Andrew Burgess <aburgess@broadcom.com>
4600
4601 * common/format.c (parse_format_string): Don't allow '#' flag for
4602 pointer arguments in format string.
4603
1a66331e
PM
46042013-08-13 Pierre Muller <muller@sourceware.org>
4605
fde605f3 4606 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
4607 if rl_get_screen_size did not return useful values.
4608
b4013987
AA
46092013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4610
4611 PR breakpoints/15117
4612 * linespec.c (linespec_parse_basic): Check for convenience
4613 variable or history value while parsing.
4614
959b6a66
SDJ
46152013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4616
4617 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4618 AVR.
4619 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4620 different signals between the generic Linux kernel implementation
4621 and AVR's.
4622 (avr_linux_gdb_signal_from_target): Delete.
4623 (avr_linux_gdb_signal_to_target): Delete.
4624 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4625
24a55014
DE
46262013-08-09 Doug Evans <dje@google.com>
4627
4628 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4629 entries.
4630
eb14d406
SDJ
46312013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4632
4633 * linux-tdep.c: Define enum with generic signal numbers.
4634 (linux_gdb_signal_from_target): New function.
4635 (linux_gdb_signal_to_target): Likewise.
4636 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4637 methods to the functions above.
4638 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4639 (linux_gdb_signal_to_target): Likewise.
4640 * alpha-linux-tdep.c: Define new enum with signals different
4641 from generic Linux kernel.
4642 (alpha_linux_gdb_signal_from_target): New function.
4643 (alpha_linux_gdb_signal_to_target): Likewise.
4644 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4645 with the functions mentioned above.
4646 * avr-tdep.c: Define enum with differences between Linux kernel
4647 and AVR signals.
4648 (avr_linux_gdb_signal_from_target): New function.
4649 (avr_linux_gdb_signal_to_target): Likewise.
4650 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4651 the functions mentioned above.
4652 * sparc-linux-tdep.c: Define enum with differences between SPARC
4653 and generic Linux kernel signal numbers.
4654 (sparc32_linux_gdb_signal_from_target): New function.
4655 (sparc32_linux_gdb_signal_to_target): Likewise.
4656 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4657 to the functions defined above.
4658 * xtensa-linux-tdep.c: Define enum with differences between
4659 Xtensa and Linux kernel generic signals.
4660 (xtensa_linux_gdb_signal_from_target): New function.
4661 (xtensa_linux_gdb_signal_to_target): Likewise.
4662 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4663 to the functions defined above.
4664 * mips-linux-tdep.c: Define enum with differences between
4665 signals in MIPS and Linux kernel generic ones.
4666 (mips_gdb_signal_to_target): New function.
4667 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4668 only different signals from the Linux kernel generic.
4669 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4670 the functions defined above.
4671 * mips-linux-tdep.h (enum mips_signals): Remove.
4672
156d08c8
PA
46732013-08-09 Pedro Alves <palves@redhat.com>
4674
4675 * avr-tdep.c (XMALLOC): Delete macro.
4676 * cli/cli-dump.c (XMALLOC): Delete macro.
4677
db229724
PA
46782013-08-09 Pedro Alves <palves@redhat.com>
4679
4680 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4681 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4682 (fopen_with_cleanup, add_dump_command): Make static.
4683 * cli/cli-dump.h: Delete file.
4684 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4685 cli/cli-dump.h.
4686
3f12a589
PA
46872013-08-09 Pedro Alves <palves@redhat.com>
4688
4689 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4690 error message.
4691
c718be47
PA
46922013-08-09 Pedro Alves <palves@redhat.com>
4693
156d08c8 4694 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
4695 error message.
4696
1e351ed1
PA
46972013-08-09 Pedro Alves <palves@redhat.com>
4698
4699 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4700 (gcore_command): Use tilde_expand here, and when showing the
4701 filename to the user, show the expanded version.
4702
1ed8d800
YQ
47032013-08-09 Yao Qi <yao@codesourcery.com>
4704
4705 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4706 'entryval' is set.
4707
47ecca85
PA
47082013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4709
4710 * gcore.c (create_gcore_bfd): Use tilde_expand.
4711
82a0a75f
YQ
47122013-08-08 Yao Qi <yao@codesourcery.com>
4713
4714 * frame.h (read_frame_local): Declare.
4715 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4716 read_frame_local.
4717 * stack.c (read_frame_local): New.
4718
5c4aa40b
YQ
47192013-08-08 Yao Qi <yao@codesourcery.com>
4720
4721 * mi/mi-cmd-stack.c: Update comments to function
4722 list_args_or_locals.
4723
b93601f3
TT
47242013-08-07 Tom Tromey <tromey@redhat.com>
4725
4726 PR symtab/15028:
4727 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4728 (process_psymtab_comp_unit_reader): Use it.
4729 (process_psymtab_comp_unit): Update. Add "pretend_language"
4730 argument.
4731 (dwarf2_build_psymtabs_hard): Update.
4732 (scan_partial_symbols): Pass CU's language to
4733 process_psymtab_comp_unit.
4734
fa760f46
TT
47352013-08-07 Tom Tromey <tromey@redhat.com>
4736
4737 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4738 (dwarf2_gdb_index_functions): Update.
4739 * psymtab.c (find_symbol_file_from_partial): Remove.
4740 (psym_functions): Update.
4741 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4742 Remove.
4743
bf6d8a91
TT
47442013-08-07 Tom Tromey <tromey@redhat.com>
4745
4746 * symfile.c (set_initial_language): Look up "main" symbol
4747 and use its language.
4748 * symtab.c (find_main_filename): Remove.
4749 * symtab.h (find_main_filename): Remove.
4750
f9125b6c
TT
47512013-08-07 Tom Tromey <tromey@redhat.com>
4752
4753 * dwarf2read.c (recursively_compute_inclusions): Add
4754 "immediate_parent" argument. Set symtab's "user" field
4755 if not set.
4756 (compute_symtab_includes): Update.
4757
fdbb204b
TT
47582013-08-07 Tom Tromey <tromey@redhat.com>
4759
4760 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4761 when adding label symbols.
4762
49de1690
UW
47632013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4764 Ulrich Weigand <uweigand@de.ibm.com>
4765
4766 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4767 * configure.host (powerpc64-*-aix*): Likewise.
4768
b08ee99f
UW
47692013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4770 Ulrich Weigand <uweigand@de.ibm.com>
4771
4772 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4773 is defined.
4774 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4775 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4776 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4777 * configure.ac: Check for ptrace64.
4778 * configure, config.in: Regenerate.
4779
fecf803e
UW
47802013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4781 Ulrich Weigand <uweigand@de.ibm.com>
4782
4783 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4784 Call ptrace64 instead of ptrace if defined.
4785 Add macro addr_ptr to take care of ptrace address argument.
4786 (pdc_read_regs): Likewise.
4787 (pdc_write_regs): Likewise.
4788 (aix_thread_resume): Likewise.
4789 (fetch_regs_kernel_thread): Likewise.
4790 (store_regs_kernel_thread): Likewise.
4791
3bb5e4a8
AB
47922013-08-07 Anton Blanchard <anton@samba.org>
4793
4794 * MAINTAINERS: Add myself to Write After Approval.
4795
12070676
TT
47962013-08-05 Tom Tromey <tromey@redhat.com>
4797
4798 * aix-thread.c (_initialize_aix_thread): Use
4799 complete_target_initialization.
4800 * bsd-uthread.c (_initialize_bsd_uthread): Use
4801 complete_target_initialization.
4802 * dec-thread.c (_initialize_dec_thread): Use
4803 complete_target_initialization.
4804 * ravenscar-thread.c (_initialize_ravenscar): Use
4805 complete_target_initialization.
4806 * sol-thread.c (_initialize_sol_thread): Use
4807 complete_target_initialization.
4808 * spu-multiarch.c (_initialize_spu_multiarch): Use
4809 complete_target_initialization.
4810
7c7b6655
TT
48112013-08-05 Tom Tromey <tromey@redhat.com>
4812
4813 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4814 * ada-lang.c (ada_lookup_simple_minsym): Return
4815 bound_minimal_symbol.
4816 * ada-lang.h (ada_lookup_simple_minsym): Update.
4817 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4818 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4819 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4820 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4821 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4822 * minsyms.c (msymbol_objfile): Remove.
4823 (lookup_minimal_symbol_internal): New function, from
4824 lookup_minimal_symbol.
4825 (lookup_minimal_symbol): Rewrite using
4826 lookup_minimal_symbol_internal.
4827 (lookup_bound_minimal_symbol): New function.
4828 * minsyms.h (msymbol_objfile): Remove.
4829 (lookup_bound_minimal_symbol): Declare.
4830 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4831 * parse.c (write_exp_msymbol): Change parameter to a
4832 bound_minimal_symbol.
4833 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4834 * parser-defs.h (write_exp_msymbol): Update.
4835 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4836 * symfile.c (simple_read_overlay_table): Use
4837 lookup_bound_minimal_symbol.
4838 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4839 (search_symbols): Likewise.
4840 (print_msymbol_info): Take a bound_minimal_symbol argument.
4841 (symtab_symbol_info, rbreak_command): Update.
4842 * symtab.h (struct symbol_search) <msymbol>: Change type
4843 to bound_minimal_symbol.
4844 * valops.c (find_function_in_inferior): Use
4845 lookup_bound_minimal_symbol.
4846 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4847
934b9bac
JK
48482013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4849
4850 Code cleanup.
4851 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4852 to ...
4853 (async_cleanup_sigint_signal_handler): ... this.
4854 (initialize_sigint_signal_handler): Remove declaration.
4855 (handle_remote_sigint): Rename the declaration to ...
4856 (async_handle_remote_sigint): ... this.
4857 (handle_remote_sigint_twice): Rename the declaration to ...
4858 (async_handle_remote_sigint_twice): ... this.
4859 (async_remote_interrupt, async_remote_interrupt_twice)
4860 (remote_interrupt): Remove the declarations.
4861 (remote_interrupt_twice): Rename the declaration ...
4862 (sync_remote_interrupt_twice): ... this.
4863 (sigint_remote_twice_token): Rename the variable to ...
4864 (async_sigint_remote_twice_token): ... this.
4865 (sigint_remote_token): Rename the variable to ...
4866 (async_sigint_remote_token): ... this.
4867 (initialize_sigint_signal_handler): Rename the function to ...
4868 (async_initialize_sigint_signal_handler): ... this. Update the name
4869 inside.
4870 (handle_remote_sigint): Rename the function to ...
4871 (async_handle_remote_sigint): ... this. Update the names inside.
4872 (handle_remote_sigint_twice): Rename the function to ...
4873 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4874 (cleanup_sigint_signal_handler): Rename the function to ...
4875 (async_cleanup_sigint_signal_handler): ... this.
4876 (remote_interrupt): Rename the function to ...
4877 (sync_remote_interrupt): this. Update the names inside.
4878 (remote_interrupt_twice): Rename the function to ...
4879 (sync_remote_interrupt_twice): this. Update the names inside.
4880 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4881 (_initialize_remote): Update the names inside.
4882
3a1115a0
TT
48832013-08-02 Tom Tromey <tromey@redhat.com>
4884
4885 PR symtab/15719:
4886 * breakpoint.c (update_watchpoint, watchpoint_check)
4887 (watch_command_1): Update.
4888 * eval.c (fetch_subexp_value): Add "preserve_errors"
4889 parameter.
4890 * ppc-linux-nat.c (check_condition): Update.
4891 * value.h (fetch_subexp_value): Update.
4892
58b19776
AB
48932013-08-02 Andrew Burgess <aburgess@broadcom.com>
4894
4895 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4896 add_file_handler.
4897
ec94af83
DE
48982013-08-01 Doug Evans <dje@google.com>
4899
7ee85ab1
DE
4900 PR symtab/15691
4901 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4902 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4903 Add assert of sig_entry->dwo_unit == NULL.
4904 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4905 had already been read.
4906 (read_signatured_type): Set per_cu.tu_read.
4907
b846d303
DE
4908 PR symtab/15695
4909 * valops.c (value_struct_elt): Add missing call to check_typedef.
4910 (value_find_oload_method_list): Ditto.
4911
b52109bc
DE
4912 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4913 effectively, struct symbol_search **.
4914 (make_cleanup_free_search_symbols): Change arg to struct
4915 symbol_search **. All callers updated.
4916 (compare_search_syms): Compare symtab file name and block as well.
4917 (search_symbols_equal): New function.
4918 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4919 New args new_head, new_tail. Result is now void. Remove dups after
4920 sorting the symbols.
4921 (search_symbols): Sort all found symbols once, after all have been
4922 found, and remove duplicates. Simplify cleanup tracking of result.
4923 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4924
ec94af83
DE
4925 Further workarounds for binutils/15021.
4926 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4927 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4928 Watch for duplicate symtabs coming from type units.
4929 (compute_symtab_includes): Update call to
4930 recursively_compute_inclusions. Build vector of included symtabs
4931 instead of per_cus.
4932 * symtab.h (symtab_ptr): New typedef.
4933 (DEF_VEC_P (symtab_ptr)): New VEC type.
4934 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4935 instead.
4936
b2ae85cf
AB
49372013-08-01 Andrew Burgess <aburgess@broadcom.com>
4938
4939 * cli/cli-script.c (script_from_file): Remove use of
4940 error_pre_print.
4941 * main.c (captured_main): Remove use of error_pre_print and
4942 quit_pre_print.
4943 * utils.c (error_pre_print, quit_pre_print): Remove.
4944 * utils.h (error_pre_print, quit_pre_print): Likewise.
4945
645eab03
YQ
49462013-08-01 Yao Qi <yao@codesourcery.com>
4947
4948 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4949 with mi_getopt.
4950 (mi_cmd_stack_list_variables): Likewise.
4951
16f92dd4
AB
49522013-07-31 Andrew Burgess <aburgess@broadcom.com>
4953
4954 * exceptions.c (deprecated_throw_reason): Remove.
4955 * exceptions.h (deprecated_throw_reason): Remove.
4956
13f78033
AB
49572013-07-31 Andrew Burgess <aburgess@broadcom.com>
4958
4959 * remote-mips.c (mips_error): Replace use of
4960 deprecated_throw_reason with throw_verror. Use the error message
4961 passed to mips_error as the error message for throw_verror.
4962
039e3c22
AB
49632013-07-31 Andrew Burgess <aburgess@broadcom.com>
4964
4965 * monitor.c (monitor_interrupt_query): Replace use of
4966 deprecated_throw_reason with quit.
4967 * nto-procfs.c (interrupt_query): Likewise.
4968 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4969 * remote-mips.c (mips_kill): Likewise.
4970 * remote.c (interrupt_query): Likewise.
4971
8150913b
AB
49722013-07-31 Andrew Burgess <aburgess@broadcom.com>
4973
4974 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4975 with call to fatal.
4976
de74e63a
YQ
49772013-07-31 Pedro Alves <pedro@codesourcery.com>
4978 Yao Qi <yao@codesourcery.com>
4979
4980 * tracepoint.c (trace_dump_command): Select the current frame.
4981
247f5c4f
DE
49822013-07-30 Doug Evans <dje@google.com>
4983
4984 * dwarf2read.c (process_queue): Add type signature to debug output.
4985
11b4b7cc
AB
49862013-07-30 Andrew Burgess <aburgess@broadcom.com>
4987
4988 * value.c (value_fetch_lazy): Mark optimized out values as such
4989 rather than raising an error.
4990
b0c54aa5
AB
49912013-07-30 Andrew Burgess <aburgess@broadcom.com>
4992
4993 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4994 before checking which bits of the parent, not the child, value are
4995 valid.
4996
97c85fc6
MB
49972013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4998
4999 PR gdb/15715
5000 * top.c: Include "filenames.h".
5001 (set_history_filename): New function.
5002 (init_main): Install it as set hook of the "set history filename"
5003 command.
5004
ff39bb5e
SA
50052013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5006
5007 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5008 attribute parameter.
5009 (dwarf2_const_value_data): Constify struct attribute parameter.
5010 (dwarf2_const_value): Constify struct attribute parameter.
5011 (dwarf2_const_value_attr): Constify struct attribute parameter.
5012 (lookup_die_type): Constify struct attribute parameter.
5013 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5014 (follow_die_ref_or_sig): Constify struct attribute parameter.
5015 (follow_die_ref): Constify struct attribute parameter.
5016 (follow_die_sig): Constify struct attribute parameter.
5017 (get_DW_AT_signature_type): Constify struct attribute parameter.
5018 (get_type_unit_group): Constify struct attribute parameter.
5019 (fill_in_loclist_baton): Constify struct attribute parameter.
5020 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5021 (type_unit_group): Constify struct attribute parameter.
5022
6e5a29e1
SA
50232013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5024
5025 * dwarf2read.c (attr_form_is_block): Make argument const.
5026 (attr_form_is_section_offset): Make argument const.
5027 (attr_form_is_constant): Make argument const.
5028 (attr_form_is_ref): Make argument const.
5029
7771576e
SA
50302013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5031
5032 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5033 All uses updated.
5034 (attr_form_is_ref): Moved below attr_form_is_constant.
5035
a94e8645
DE
50362013-07-29 Doug Evans <dje@google.com>
5037
bb5291d0
DE
5038 * main.c (captured_command_loop): Tweak comment.
5039
b5419e49
DE
5040 * target.c (target_async_permitted_1): Fix comment.
5041
b2d23133
DE
5042 * symtab.c (iterate_over_some_symtabs): Add comment.
5043
a94e8645
DE
5044 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5045
7a60ad40
YQ
50462013-07-27 Yao Qi <yao@codesourcery.com>
5047
5048 * NEWS: Mention that GDBserver now supports hardware
5049 watchpoints on the MIPS GNU/Linux target.
5050
aaee2056
YQ
50512013-07-27 Yao Qi <yao@codesourcery.com>
5052
5053 * Makefile.in (HFILES_NO_SRCDIR): Add
5054 common/mips-linux-watch.h.
5055 (mips-linux-watch.o): New rule.
5056 * common/mips-linux-watch.c: New.
5057 * common/mips-linux-watch.h: New.
5058 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5059 * mips-linux-nat.c: Include mips-linux-watch.h.
5060 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5061 to common/mips-linux-watch.h.
5062 (MAX_DEBUG_REGISTER): Likewise.
5063 (enum pt_watch_style): Likewise.
5064 (struct mips32_watch_regs): Likewise.
5065 (struct mips64_watch_regs): Likewise.
5066 (struct pt_watch_regs): Likewise.
5067 (struct mips_watchpoint): Likewise.
5068 (mips_linux_watch_get_irw_mask): Move to
5069 common/mips-linux-watch.c.
5070 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5071 (mips_linux_watch_get_watchlo): Likewise.
5072 (mips_linux_watch_set_watchlo): Likewise.
5073 (mips_linux_watch_get_watchhi): Likewise.
5074 (mips_linux_watch_set_watchhi): Likewise.
5075 (mips_linux_read_watch_registers): Likewise.
5076 (mips_linux_watch_type_to_irw): Likewise.
5077 (mips_linux_stopped_data_address, fill_mask): Likewise.
5078 (mips_linux_watch_try_one_watch): Likewise.
5079 (mips_linux_watch_populate_regs): Likewise.
5080
b3436450
YQ
50812013-07-27 Yao Qi <yao@codesourcery.com>
5082
5083 * mips-linux-nat.c (get_irw_mask): Rename to ...
5084 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5085 'set' to 'n'. Update function comment. All callers changed.
5086 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5087 function comment. All callers changed.
5088 (get_num_valid): Rename to ...
5089 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5090 'set' to 'n'. Update function comment. All callers changed.
5091 (get_watchlo): Rename to ...
5092 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5093 'set' to 'n'. Update function comment. All callers changed.
5094 (set_watchlo): Rename to ...
5095 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5096 'set' to 'n'. Update function comment. All callers changed.
5097 (get_watchhi): Rename to ...
5098 (mips_linux_watch_get_watchhi): ... this. Update function
5099 comment. All callers changed.
5100 (set_watchhi): Rename to ...
5101 (mips_linux_watch_set_watchhi): ... this. Update function
5102 comment. All callers changed.
5103 (mips_linux_read_watch_registers): Update function comment.
5104 Add new parameters 'lwpid', 'watch_readback', and
5105 'watch_readback_valid'. Update.
5106 (type_to_irw): Rename to ...
5107 (mips_linux_watch_type_to_irw): ... this. Update function
5108 comment. All callers changed.
5109 (fill_mask): Update function comment.
5110 (try_one_watch): Rename to ...
5111 (mips_linux_watch_try_one_watch): ... this. Change the type
5112 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5113 (populate_regs_from_watches): Rename to ...
5114 (mips_linux_watch_populate_regs): ... this. Add parameter
5115 'current_watches'. All callers changed.
5116
9be14b81
YQ
51172013-07-27 Yao Qi <yao@codesourcery.com>
5118
5119 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5120 the code.
5121 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5122 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5123 (struct pt_watch_regs): Likewise.
5124 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5125 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5126 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5127 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5128 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5129
de6f69ad
YQ
51302013-07-27 Yao Qi <yao@codesourcery.com>
5131
5132 * breakpoint.h: Include break-common.h.
5133 (enum target_hw_bp_type): Move to ...
5134 * common/break-common.h: ... here. New.
5135
6f64ef53
PA
51362013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5137
5138 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5139 process group regardless of having tty on stdin.
5140
6107e809
DE
51412013-07-25 Doug Evans <dje@google.com>
5142
5143 * linux-fork.h (detach_fork): Delete.
5144
7fdc1521
TT
51452013-07-25 Tom Tromey <tromey@redhat.com>
5146
5147 PR remote/15256, PR remote/15266:
5148 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5149 * monitor.c (monitor_detach): Use unpush_target.
5150 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5151 * remote-mips.c (mips_detach): Use unpush_target. Don't
5152 call mips_close.
5153 * remote-sim.c (gdbsim_detach): Use unpush_target.
5154 * target.c (pop_target): Remove.
5155 (pop_all_targets_above): Don't call target_close.
5156 (target_close): Assert that the target is unpushed.
5157 * target.h (pop_target): Don't declare.
5158 * tracepoint.c (tfile_open): Use unpush_target.
5159
c22a2b88
TT
51602013-07-25 Tom Tromey <tromey@redhat.com>
5161
5162 * linux-thread-db.c (init_thread_db_ops): Call
5163 complete_target_initialization.
5164 (_initialize_thread_db): Don't call add_target.
5165 * target.c (complete_target_initialization): New function.
5166 (add_target_with_completer): Call it.
5167 * target.h (complete_target_initialization): Declare.
5168
cbb6aada
MK
51692013-07-25 Mark Kettenis <kettenis@gnu.org>
5170
5171 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5172 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5173 (HPPANBSD_SIZEOF_GREGS): New define.
5174 (hppaobsd_supply_gregset): Handle additional registers.
5175 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5176 we provide more registers now.
5177 (hppabsd_supply_gregset): Supply additional registers.
5178 (hppabsd_collect_gregset): Collect additional registers.
5179
17767988
MK
51802013-07-25 Mark Kettenis <kettenis@gnu.org>
5181
5182 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5183 (hppabsd_dwarf2_frame_init_reg): New function.
5184 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5185
fdc8aae8
AB
51862013-07-25 Andrew Burgess <aburgess@broadcom.com>
5187
5188 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5189 'z' format code. Remove error for optimized out values, standard
5190 code will handle these fine.
5191
6fbe845e
AB
51922013-07-25 Andrew Burgess <aburgess@broadcom.com>
5193
5194 * NEWS: Mention new 'z' formatter.
5195 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5196 (_initialize_printcmd): Mention 'z' formatter in help text of the
5197 'x' command.
5198
3373342d
MR
51992013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5200
5201 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5202 formatting.
5203
25f9533e
SDJ
52042013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5205
5206 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5207 interface can evaluate arguments. Fallback to the old mode if it
5208 cannot.
5209 (create_exception_master_breakpoint): Likewise.
5210 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5211 (struct sym_probe_fns elf_probe_fns): Export function above to the
5212 probe interface.
5213 * probe.c (can_evaluate_probe_arguments): New function.
5214 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5215 function pointer.
5216 (can_evaluate_probe_arguments): New function prototype.
5217 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5218 probe interface can evaluate arguments. Fallback to the old mode
5219 if it cannot.
5220 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5221 interface can evaluate arguments. Warning the user if it cannot.
5222 (stap_can_evaluate_probe_arguments): New function.
5223 (struct probe_ops stap_probe_ops): Export function above to the
5224 probe interface.
5225 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5226 New function pointer.
5227
3360c0bf
LM
52282013-07-24 Luis Machado <lgustavo@codesourcery.com>
5229
5230 * Makefile.in (SFILES): Add common/target-common.c.
5231 Add common/target-common.h to headers.
5232 (COMMON_OBS): Add target-common.o.
5233 (target-common.o): New target.
5234 * linux-nat.h (resume_kind): Move to common/target-common.h.
5235 * target.c (target_waitstatus_to_string): Move to
5236 common/target-common.c.
5237 * target.h: Include target-common.h.
5238 (target_waitkind): Move to common/target-common.h.
5239 (target_waitstatus): Likewise.
5240 (TARGET_WNOHANG): Likewise.
5241 * common/target-common.c: New file.
5242 * common/target-common.h: New file.
5243
6656a72d
DE
52442013-07-24 Doug Evans <dje@google.com>
5245
5246 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5247 a warning.
5248
6df81a63
YQ
52492013-07-23 Yao Qi <yao@codesourcery.com>
5250
5251 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5252 parameter 'gdbarch'.
5253 (i386_stack_tramp_frame_sniffer): Caller update.
5254 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5255 parameter 'gdbarch' and 'target'.
5256 (i386_linux_core_read_description): Caller update.
5257 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5258 Likewise.
5259 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5260 declaration.
5261
365156ad
TT
52622013-07-23 Tom Tromey <tromey@redhat.com>
5263
5264 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5265 2013-07-22.
5266
046ac79f
JK
52672013-07-22 Doug Evans <dje@google.com>
5268
5269 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
5270 * exec.c (exec_close): Update call to remove_target_sections.
5271 (remove_target_sections): Delete arg abfd.
046ac79f
JK
5272 * solib.c (update_solib_list): Ditto.
5273 (reload_shared_libraries_1): Ditto.
5274 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
5275 * target.h (struct target_section): Rename key to owner.
5276 All uses updated.
046ac79f 5277
29b2cc46
TT
52782013-07-22 Tom Tromey <tromey@redhat.com>
5279
5280 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5281
d1160018
TT
52822013-07-22 Tom Tromey <tromey@redhat.com>
5283
5284 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5285 Simplify cleanup handling.
5286
2f324bf6
TT
52872013-07-22 Tom Tromey <tromey@redhat.com>
5288
5289 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5290 on all return paths.
5291
e23b9d6e
UW
52922013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5293
5294 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5295 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5296 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5297
1cf55f60
PM
52982013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5299
5300 * top.c (print_gdb_version): Add help, apropos description and
5301 url to online documentation.
5302
fa876972
HZ
53032013-07-19 Hui Zhu <hui@codesourcery.com>
5304
5305 PR gdb/15692
5306 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5307
1527aea8
YQ
53082013-07-19 Yao Qi <yao@codesourcery.com>
5309
5310 * target.c (update_current_target): Change the default action
5311 of 'to_traceframe_info' from tcomplain to return_zero.
5312 * target.h (struct target_ops) <to_traceframe_info>: Add more
5313 comments.
5314 * valops.c (read_value_memory): Call
5315 traceframe_available_memory unconditionally.
5316
886f230e
YQ
53172013-07-18 Yao Qi <yao@codesourcery.com>
5318
5319 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5320 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5321 symbol without prefix. If found, set its type to
5322 'mst_solib_trampoline'.
5323
16419bae
DE
53242013-07-17 Doug Evans <dje@google.com>
5325
e7045703
DE
5326 * NEWS: Mention "set print raw frame-arguments".
5327 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5328 * stack.c (print_raw_frame_arguments): New static global.
5329 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5330 (_initialize_stack): New command "set/show print raw frame-arguments".
5331 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5332 (set_print_raw, show_print_raw): New functions.
5333 (_initialize_valprint): New prefix command "set/show print raw".
5334 * valprint.h (value_print_options): Improve comments.
5335
453e48a5
DE
5336 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5337 of all *list variables.
5338
16419bae
DE
5339 * gdbcmd.h (togglelist): Delete.
5340 * cli/cli-cmds.c (togglelist): Delete.
5341 (init_cmd_lists): Update.
5342 * cli/cli-cmds.h (togglelist): Delete.
5343
626f2d1c
TT
53442013-07-17 Tom Tromey <tromey@redhat.com>
5345
5346 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5347 dwarf2_per_objfile.
5348
57e6060e
DE
53492013-07-16 Doug Evans <dje@google.com>
5350
5351 * nto-tdep.c (nto_relocate_section_addresses): Update,
5352 target_section.bfd deleted.
5353 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5354 * s390-tdep.c (s390_load): Ditto.
5355 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5356
5ea5559b
AB
53572013-07-16 Andrew Burgess <aburgess@broadcom.com>
5358
5359 * common/format.c (parse_format_string): Add checks for NULL
5360 character before calling strchr.
5361
2b2848e2
DE
53622013-07-16 Doug Evans <dje@google.com>
5363
2c571006
DE
5364 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5365 temp_pathname argument.
5366 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5367 when opening the file fails.
5368
2b2848e2
DE
5369 * target.h (struct target_section): Delete member bfd.
5370 All users updated to use the_bfd_section->owner instead.
5371 * exec.c (add_to_section_table): Assert bfd is expected value.
5372 Remove initialization of target_section.bfd.
5373 (remove_target_sections): Update.
5374 (section_table_available_memory): Update.
5375 (section_table_xfer_memory_partial): Update.
5376 (print_section_info): Update.
5377 (exec_set_section_address): Update.
5378 * record-full.c (record_full_core_xfer_partial): Update.
5379 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5380 * solib-target.c (solib_target_relocate_section_addresses): Update.
5381 * symfile.c (build_section_addr_info_from_section_table): Update.
5382 * target.c (memory_xfer_live_readonly_partial): Update.
5383 (memory_xfer_partial_1): Update.
5384
926bf92d
UW
53852013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5386
5387 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5388 now available for embedded (BookE) and server (BookS) processors,
5389 correct mentions of 'booke' and adjust comments accordingly in order to
5390 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5391 (have_ptrace_booke_interface): Rename function and variable
5392 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5393 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5394 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5395 'hwdebug_point_cmp'. Update all uses.
5396 (booke_find_thread_points_by_tid): Rename function
5397 'booke_find_thread_points_by_tid' to
5398 'hwdebug_find_thread_points_by_tid'. Update all uses.
5399 (booke_insert_point): Rename function 'booke_insert_point' to
5400 'hwdebug_insert_point'. Update all uses.
5401 (booke_remove_point): Rename function 'booke_remove_point' to
5402 'hwdebug_remove_point'. Update all uses.
5403
d929bc19
MR
54042013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5405
5406 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5407 numbers with enum values.
5408
054e8d9e
AA
54092013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5410
5411 PR threads/13217
5412 * thread.c (thread_apply_all_command): Check for valid threads
5413 and thread count.
5414 (thread_array_cleanup): New struct.
5415 (set_thread_refcount): New function.
5416
cf006359
AB
54172013-07-11 Andrew Burgess <aburgess@broadcom.com>
5418
5419 * infcmd.c (default_print_one_register_info): Reuse function
5420 print_hex_chars.
5421
94e36acc
TT
54222013-07-10 Tom Tromey <tromey@redhat.com>
5423
5424 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5425 (ada-exp.o): New target.
5426
915dd369
SDJ
54272013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5428
5429 * mt-tdep.c (mt_registers_info): Call
5430 get_no_prettyformat_print_options instead of
5431 get_raw_print_options (regression by last patch from Doug
5432 Evans).
5433
eca07816
JB
54342013-07-09 Pedro Alves <palves@redhat.com>
5435
5436 Checked in by Joel Brobecker <brobecker@adacore.com>.
5437 * ada-lang.c (coerce_unspec_val_to_type): Use
5438 value_optimized_out_const.
5439 * value.c (value_optimized_out_const): New function.
5440 * value.h (value_optimized_out_const): New declaration.
5441
2a998fc0
DE
54422013-07-09 Doug Evans <dje@google.com>
5443
5444 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5445 Enum values rename as well. All uses updated.
5446 * valprint.h (value_print_options): Rename member pretty to
5447 pretty format. Rename member prettyprint_arrays to
5448 prettyformat_arrays. Rename member prettyprint_structs to
5449 prettyformat_structs. All uses updated.
5450 (get_no_prettyformat_print_options): Renamed from
5451 get_raw_print_options.
5452 * valprint.c (get_no_prettyformat_print_options): Renamed from
5453 get_raw_print_options. All callers updated.
5454 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5455 All callers updated.
5456 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5457 All callers updated.
5458 (_initialize_valprint): Improve help text for "set print pretty" and
5459 "set print arrays".
5460
466c1fca
AB
54612013-07-09 Andrew Burgess <aburgess@broadcom.com>
5462
5463 * value.c (value_bits_valid): Revert previous change, and change
5464 by Pedro on 2013-07-04, due to regressions in
5465 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5466
ad0f0303
AB
54672013-07-08 Andrew Burgess <aburgess@broadcom.com>
5468 Pedro Alves <palves@redhat.com>
5469
5470 * value.c (value_bits_valid): If the value is not lval_computed
5471 or has no check validity handler then the answer is the
5472 optimized_out flag, otherwise defer to the handler.
5473
b187bec1
EZ
54742013-07-06 Eli Zaretskii <eliz@gnu.org>
5475
48d1d6f5
EZ
5476 * top.c (print_gdb_configuration): Explain in output of
5477 --configuration what does "relocatable" mean.
5478
b187bec1
EZ
5479 * main.c (print_gdb_help): Regroup options in the --help text.
5480 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5481 the relevant discussions.
5482
52d361e1
YQ
54832013-07-06 Yao Qi <yao@codesourcery.com>
5484
5485 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5486 Remove parameter 'lsal'.
5487 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5488 to inner block. Caller update.
5489 (base_breakpoint_create_breakpoints_sal): Update.
5490 (bkpt_create_breakpoints_sal): Likewise.
5491 (tracepoint_create_breakpoints_sal): Likewise.
5492 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5493 element 0 of vector 'canonical->sals'.
5494
e1ec1b42
LM
54952013-07-05 Luis Machado <lgustavo@codesourcery.com>
5496
5497 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5498 register number instead of the pseudo register one.
5499 (rs6000_dwarf2_reg_to_regnum): Likewise.
5500
7195e6f0
PA
55012013-07-04 Pedro Alves <palves@redhat.com>
5502
5503 * findvar.c (value_of_register): Use allocate_optimized_out_value
5504 if the register has been optimized out, instead of
5505 set_value_optimized_out.
5506 * frame-unwind.c (frame_unwind_got_optimized): Use
5507 allocate_optimized_out_value.
5508
58722cac
PA
55092013-07-04 Pedro Alves <palves@redhat.com>
5510
5511 * value.c (value_bits_valid): If the value is not lval_computed,
5512 or doesn't have a check_validity hook, assume the value is entirely
5513 valid.
5514
691a26f5
AB
55152013-07-04 Andrew Burgess <aburgess@broadcom.com>
5516
5517 * stack.c (read_frame_arg): No longer fetch lazy values.
5518 * value.c (value_optimized_out): If the value is not already
5519 marked optimized out, and is lazy then fetch it.
5520 (value_primitive_field): Move optimized out check to later in the
5521 function, after we have loaded any lazy values.
5522 (value_fetch_lazy): Use optimized out flag directly rather than
5523 calling optimized_out method.
5524
a58e2656
AB
55252013-07-04 Andrew Burgess <aburgess@broadcom.com>
5526
5527 * valops.c: Don't include "user-regs.h".
5528 (value_fetch_lazy): Moved to value.c.
5529 * value.c: Include "user-regs.h".
5530 (value_fetch_lazy): Moved from valops.c.
5531
bd885420
YQ
55322013-07-04 Yao Qi <yao@codesourcery.com>
5533
5534 Revert:
5535 2013-06-27 Yao Qi <yao@codesourcery.com>
5536
5537 * common/create-version.sh: Update comments. Handle the case
5538 that TARGET_ALIAS is empty.
5539
17ef446e
PA
55402013-07-03 Pedro Alves <palves@redhat.com>
5541
5542 * Makefile.in (config.status): Depend on development.sh.
5543 (aclocal_m4_deps): Add libmcheck.m4.
5544 * acinclude.m4: Include libmcheck.m4.
5545 * configure.ac: Source development.sh instead of setting
5546 'development' here. --enable-libmcheck/--disable-libmcheck code
5547 factored out to GDB_AC_LIBMCHECK. Run it.
5548 * development.sh: New file.
5549 * libmcheck.m4: New file.
5550 * configure: Regenerate.
5551
ac6dd50f
TT
55522013-07-02 Tom Tromey <tromey@redhat.com>
5553
5554 * contrib/ari/update-web-ari.sh: Update for version.in change.
5555
bd1df410
TT
55562013-07-02 Tom Tromey <tromey@redhat.com>
5557
5558 * common/ptid.h: Comment fixes.
5559
4db1a1dc
TT
55602013-07-01 Tom Tromey <tromey@redhat.com>
5561
5562 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5563 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5564 (dwarf2_read_index, create_all_comp_units): Update.
5565
dd9aa048
TT
55662013-07-01 Tom Tromey <tromey@redhat.com>
5567
5568 * configure.ac (build_warnings): Add -Wold-style-definition.
5569 * configure: Rebuild.
5570 * machoread.c (_initialize_machoread): Use "(void)".
5571 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5572 use "(void)".
5573
44d100c3
TT
55742013-07-01 Tom Tromey <tromey@redhat.com>
5575
5576 * configure.ac (build_warnings): Add -Wold-style-declaration.
5577 * configure: Rebuild.
5578 * dsrec.c (make_srec): Use "static const", not "const static".
5579 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5580 not "const static".
5581 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5582 Use "static const", not "const static".
5583 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5584 not "const static".
5585 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5586 not "const static".
5587 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5588 not "const static".
5589 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5590 not "const static".
5591 (v850_dbtrap_breakpoint_from_pc): Likewise.
5592 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5593 not "const static".
5594
2945b807
TT
55952013-07-01 Tom Tromey <tromey@redhat.com>
5596
5597 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5598 * configure: Rebuild.
5599
d8d2a3ee
PA
56002013-07-01 Pedro Alves <palves@redhat.com>
5601
5602 * defs.h: Include "pathmax.h".
5603 * utils.c: Don't include sys/param.h.
5604 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5605 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5606 instead of MAXPATHLEN.
5607 * solib-sunos.c: Don't include sys/param.h.
5608 * xcoffread.c: Don't include sys/param.h.
5609 * bsd-kvm.c: Don't include sys/param.h.
5610 * darwin-nat.c: Don't include sys/param.h.
5611 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5612 * darwin-nat-info.c: Don't include sys/param.h.
5613 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5614 MAXPATHLEN.
5615 * i386obsd-nat.c: Don't include sys/param.h.
5616 * inf-child.c: Don't include sys/param.h.
5617 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5618 * linux-fork.c: Don't include sys/param.h.
5619 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5620 * linux-nat.c: Don't include sys/param.h.
5621 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5622 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5623 * m68klinux-nat.c: Don't include sys/param.h.
5624 * nbsd-nat.c: Don't include sys/param.h.
5625 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5626 * ppc-linux-nat.c: Don't include sys/param.h.
5627 * rs6000-nat.c: Don't include sys/param.h.
5628 * spu-linux-nat.c. Don't include sys/param.h.
5629 * windows-nat.c: Don't include sys/param.h.
5630 * xtensa-linux-nat.c: Don't include sys/param.h.
5631 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5632
38ec2207
PA
56332013-07-01 Pedro Alves <palves@redhat.com>
5634
5635 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5636 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5637 * gnulib/aclocal.m4: Regenerate.
5638 * gnulib/config.in: Regenerate.
5639 * gnulib/configure: Regenerate.
5640 * gnulib/import/pathmax.h: New file.
5641 * gnulib/import/Makefile.am: Regenerate.
5642 * gnulib/import/Makefile.in: Regenerate.
5643 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5644 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5645 * gnulib/import/m4/pathmax.m4: New file.
5646
e655c1a2
PA
56472013-07-01 Pedro Alves <palves@redhat.com>
5648
5649 * configure.ac (GDBINIT): Define, depending on host.
5650 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5651 * top.c (PATH_MAX): Delete fallback definition.
5652 (GDBINIT_FILENAME): Delete.
5653 (gdbinit): Reimplement as const char array set to the GDBINIT
5654 string constant.
5655 * top.h (gdbinit): Make const.
5656 * configure, config.in: Regenerate.
5657
50dd9793
PA
56582013-07-01 Pedro Alves <palves@redhat.com>
5659
5660 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5661 * cli/cli-cmds.h (source_script): Likewise.
5662 * exceptions.c (catch_command_errors_const): New function.
5663 * exceptions.h (catch_command_errors_const): Declare.
5664 * main.c (get_init_files): Make parameters const, and adjust.
5665 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5666 'local_gdbinit' locals const. Adjust to use
5667 catch_command_errors_const.
5668 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5669 'local_gdbinit' locals const.
5670
bc7dea8d
PA
56712013-07-01 Pedro Alves <palves@redhat.com>
5672
5673 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5674 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5675 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5676 <unistd.h>.
5677
8839a007
PA
56782013-07-01 Pedro Alves <palves@redhat.com>
5679
5680 Import the "unistd" gnulib module.
5681 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5682 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5683 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5684 import/m4/unistd_h.m4.
5685 * gnulib/aclocal.m4: Renenerate.
5686 * gnulib/config.in: Renenerate.
5687 * gnulib/configure: Renenerate.
5688 * gnulib/import/Makefile.am: Renenerate.
5689 * gnulib/import/Makefile.in: Renenerate.
5690 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5691 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5692 * gnulib/import/m4/off_t.m4: New file.
5693 * gnulib/import/m4/ssize_t.m4: New file.
5694 * gnulib/import/m4/sys_types_h.m4: New file.
5695 * gnulib/import/m4/unistd_h.m4: New file.
5696 * gnulib/import/sys_types.in.h: New file.
5697 * gnulib/import/unistd.c: New file.
5698 * gnulib/import/unistd.in.h: New file.
5699
8c0da261
PA
57002013-07-01 Pedro Alves <palves@redhat.com>
5701
5702 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5703 defined instead of checking HAVE_UNISTD_H.
5704
3574124b
PA
57052013-07-01 Pedro Alves <palves@redhat.com>
5706
5707 Reimport gnulib from scratch.
5708 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5709 import/m4/onceonly.m4.
5710 * gnulib/aclocal.m4: Renegerate.
5711 * gnulib/config.in: Renegerate.
5712 * gnulib/configure: Renegerate.
5713 * gnulib/import/Makefile.in: Renegerate.
5714 * gnulib/import/extra/update-copyright: Renegerate.
5715 * gnulib/import/m4/onceonly.m4: Delete.
5716
702dc4fd
PA
57172013-07-01 Pedro Alves <palves@redhat.com>
5718
5719 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5720
47e1ce27
JK
57212013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5722
5723 Code cleanup.
5724 * remote.c (async_remote_interrupt_twice): Make it static.
5725 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5726
e82839d4
SDJ
57272013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5728
5729 * ia64-linux-tdep.c: Include <ctype.h>.
5730 (ia64_linux_stap_is_single_operand): New function.
5731 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5732
d6c2da54
TT
57332013-06-28 Tom Tromey <tromey@redhat.com>
5734
5735 * Makefile.in (version.c): Use version.in, not
5736 common/version.in.
5737 * common/create-version.sh: Likewise.
5738 * common/version.in: Move...
5739 * version.in: ...here.
5740
74da6f00
PA
57412013-06-28 Pedro Alves <palves@redhat.com>
5742
5743 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5744 here.
5745 * utils.h (pagination_enabled): Declare.
5746
d32dc48e
PA
57472013-06-28 Pedro Alves <palves@redhat.com>
5748
5749 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5750 Move higher up in file.
5751
0edd9e3b
TT
57522013-06-28 Tom Tromey <tromey@redhat.com>
5753
5754 * tracepoint.c (deprecated_readline_begin_hook)
5755 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5756 declare.
5757
4eb59108
PA
57582013-06-28 Pedro Alves <palves@redhat.com>
5759
5760 PR tui/14880
5761 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5762 checking if they're available.
5763 * value.c (value_available_contents_eq): Change comment.
5764 * value.h (value_available_contents_eq): Expand comment.
5765
97b17156
TT
57662013-06-27 Tom Tromey <tromey@redhat.com>
5767
5768 * target.c (find_run_target): Remove.
5769 * target.h (find_run_target): Remove.
5770
6a3bfc5c
TT
57712013-06-27 Tom Tromey <tromey@redhat.com>
5772
5773 * corelow.c (core_gdbarch): Now static.
5774
c9ef825d
TT
57752013-06-27 Tom Tromey <tromey@redhat.com>
5776
5777 * target.c (target_struct_index): Remove.
5778
e5823f1c
PA
57792013-06-27 Pedro Alves <palves@redhat.com>
5780
5781 * infrun.c: Remove comment describing the 'stepping over runtime
5782 loader dynamic symbol resolution code' mechanism; moved to
5783 gdbint.texinfo.
5784
97f8dd09
PA
57852013-06-27 Pedro Alves <palves@redhat.com>
5786
5787 * exceptions.c (catch_command_errors): Remove spurious space.
5788 * exceptions.h (catch_command_errors): Second parameter is "arg",
5789 not "command".
5790
02b1871e
YQ
57912013-06-27 Yao Qi <yao@codesourcery.com>
5792
5793 * common/create-version.sh: Update comments. Handle the case
5794 that TARGET_ALIAS is empty.
5795
bb1b1cf1
PA
57962013-06-26 Pedro Alves <palves@redhat.com>
5797
5798 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5799 comment.
5800
7b624e71
PA
58012013-06-26 Pedro Alves <palves@redhat.com>
5802
5803 * infrun.c: Update comments on stepping over runtime loader
5804 dynamic symbol resolution code.
5805
74e5a346
SDJ
58062013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5807
5808 * ax-gdb.h (union exp_element): Forward declare.
5809 * parser-defs.h: Include expression.h.
5810
a2fb2cee
MR
58112013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5812
5813 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5814
cdba14e0
DK
58152013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5816
5817 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5818
f30aa5af
DK
58192013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5820
5821 Fix trace-status to output proper start-time and stop-time.
5822 * tracepoint.c (trace_status_command): Fix type of printf arg to
5823 prevent improper type conversion.
5824 (trace_status_mi): Likewise.
5825
1aee363c
MR
58262013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5827
5828 * mips-tdep.c (mips_next_pc): Fix a typo.
5829
3356937a
MR
58302013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5831
5832 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5833
dc673c81
YQ
58342013-06-26 Pedro Alves <pedro@codesourcery.com>
5835 Yao Qi <yao@codesourcery.com>
5836
5837 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5838 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5839 * mi/mi-main.c (print_variable_or_computed): New function.
5840 (mi_cmd_trace_frame_collected): New function.
5841 * tracepoint.c (find_trace_state_variable_by_number): New.
5842 (struct traceframe_info): Move to tracepoint.h
5843 (struct collection_list): Likewise.
5844 (do_collect_symbol): Include locals and arguments in the
5845 collected variables list.
5846 (clear_collection_list): Clear wholly collected variables list
5847 and computed variables list.
5848 (append_exp): New function.
5849 (encode_actions_1): Include variables in the wholly
5850 collected variables list. Include memory ranges and
5851 full-fledged expressions in the computed expressions list.
5852 (encode_actions): Move some code to ...
5853 Return the cleanup chain.
5854 (encode_actions_rsp): ... here. New function.
5855 (get_traceframe_location, get_traceframe_info): Remove static.
5856 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5857 (struct collection_list): Moved from tracepoint.c. Add two
5858 new fields 'wholly_collected' and 'computed'.
5859 (find_trace_state_variable_by_number): Declare.
5860 (encode_actions): Adjust declaration.
5861 (encode_actions_rsp): Declare.
5862 (get_traceframe_info, get_traceframe_location): Declare.
5863
5864 * NEWS: Mention new MI command -trace-frame-collected.
5865
28a93511
YQ
58662013-06-26 Pedro Alves <pedro@codesourcery.com>
5867 Yao Qi <yao@codesourcery.com>
5868
5869 * ctf.c (ctf_traceframe_info): Push trace state variables
5870 present in the trace data into the traceframe info object.
5871 * breakpoint.c (DEF_VEC_I): Remove.
5872 * common/filestuff.c (DEF_VEC_I): Likewise.
5873 * dwarf2loc.c (DEF_VEC_I): Likewise.
5874 * mi/mi-main.c (DEF_VEC_I): Likewise.
5875 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5876 * features/traceframe-info.dtd: Add tvar element and its
5877 attributes.
5878 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5879 (build_traceframe_info): Push trace state variables present in
5880 the trace data into the traceframe info object.
5881 (traceframe_info_start_tvar): New function.
5882 (tvar_attributes): New.
5883 (traceframe_info_children): Add "tvar" element.
5884 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5885
5886 * NEWS: Mention the change in GDB and GDBserver.
5887
ddacd3c8
YQ
58882013-06-26 Pedro Alves <pedro@codesourcery.com>
5889 Yao Qi <yao@codesourcery.com>
5890
5891 * tracepoint.c (trace_dump_command): Move code to ...
5892 (get_traceframe_location): ... here. New.
5893
05796b35
YQ
58942013-06-26 Pedro Alves <pedro@codesourcery.com>
5895 Yao Qi <yao@codesourcery.com>
5896
5897 * tracepoint.c (trace_dump_command): GDB emits an error
5898 instead of a warning when a traceframe is not selected.
5899
cbfa3b61
YQ
59002013-06-26 Pedro Alves <pedro@codesourcery.com>
5901 Yao Qi <yao@codesourcery.com>
5902
5903 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5904 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5905 in collection_list.
5906 (do_clear_collection_list, init_collection_list): New.
5907 (encode_actions): Add local variables 'tracepoint_list' and
5908 'stepping_list'. Call init_collection_list and make cleanup
5909 which calls do_clear_collection_list. Don't call
5910 clear_collection_list.
5911 (_initialize_tracepoint): Delete references to
5912 'tracepoint_list' and 'stepping_list'.
5913
6e2048d3
TT
59142013-06-25 Tom Tromey <tromey@redhat.com>
5915
5916 * common/create-version.sh (date): Use "$", not "$$" in sed
5917 expression.
5918
42059f0e
KB
59192013-06-25 Kevin Buettner <kevinb@redhat.com>
5920
5921 * NEWS (New targets): Add entry for TI MSP430.
5922
a0743c90
YQ
59232013-06-25 Yao Qi <yao@codesourcery.com>
5924
5925 * remote.c (remote_start_remote): Move code to upload tsv
5926 earlier.
5927
9d6e6e84
HZ
59282013-06-25 Yao Qi <yao@codesourcery.com>
5929 Hui Zhu <hui@codesourcery.com>
5930 Pedro Alves <palves@redhat.com>
5931
5932 PR breakpoints/15075
5933 PR breakpoints/15434
5934 * breakpoint.c (bpstat_stop_status): Call
5935 b->ops->after_condition_true.
5936 (update_dprintf_command_list): Don't append "continue" command
5937 to the command list of dprintf breakpoint.
5938 (base_breakpoint_after_condition_true): New function.
5939 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5940 (dprintf_after_condition_true): New function.
5941 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5942 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5943
586cf749
KB
59442013-06-24 Kevin Buettner <kevinb@redhat.com>
5945
5946 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5947 (ALLDEPFILES): Add msp430-tdep.c.
5948 * configure.tgt (msp430*-*-elf): New target.
5949 * msp430-tdep.c: New file.
5950
1bbce132
MR
59512013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5952
5953 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5954 microMIPS synthetic symbols.
5955
3e5d3a5a
MR
59562013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5957
5958 * objfiles.h (pc_in_section): New prototype.
5959 (in_plt_section): Remove name argument, replace prototype with
5960 static inline function.
5961 * mips-tdep.h: Include "objfiles.h".
5962 (in_mips_stubs_section): New function.
5963 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5964 in_solib_call_trampoline member.
5965 (hppa_in_solib_call_trampoline): Remove name argument.
5966 * objfiles.c (pc_in_section): New function.
5967 (in_plt_section): Remove function.
5968 * mips-linux-tdep.c: Include "objfiles.h".
5969 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5970 name argument. Return 1 rather than the low 16-bit halfword of
5971 any instruction examined.
5972 (mips_linux_in_dynsym_resolve_code): Update
5973 mips_linux_in_dynsym_stub call accordingly.
5974 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5975 rather than an equivalent hand-coded sequence.
5976 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5977 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5978 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5979 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5980 in_opd_section.
5981 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5982 on call to tdep->in_solib_call_trampoline.
5983 (hppa_in_solib_call_trampoline): Remove name argument, update
5984 according to in_plt_section change.
5985 (hppa_skip_trampoline_code): Update according to in_plt_section
5986 change.
5987 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5988 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5989 Likewise.
5990 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5991 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5992 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5993 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5994 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5995 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5996 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5997 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5998 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5999 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6000 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6001 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6002 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6003
b9b26a16
JB
60042013-06-24 Joel Brobecker <brobecker@adacore.com>
6005
6006 * common/create-version.sh: Fix expansion of $host_alias
6007 and $target_alias in generation of HOST_NAME and TARGET_NAME
6008 (resp.).
6009
01208463
TT
60102013-06-24 Tom Tromey <tromey@redhat.com>
6011
6012 * common/create-version.sh: New file.
6013 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6014 create-version.sh.
6015 (HFILES_NO_SRCDIR): Use common/version.h.
6016 * version.in: Move to ...
6017 * common/version.in: ... here. Replace date with "DATE".
6018 * version.h: Move to ...
6019 * common/version.h: ... here.
6020
bb6b9a5e
JB
60212013-06-21 Joel Brobecker <brobecker@adacore.com>
6022
6023 * gdb/gnulib/Makefile.in: Update date in copyright header.
6024 * gdb/gnulib/configure.ac: Ditto.
6025 * gdb/gnulib/update-gnulib.sh: Ditto.
6026
c3b18ee7
JB
60272013-06-21 Joel Brobecker <brobecker@adacore.com>
6028
6029 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6030 "gdb/gnulib/import".
6031
85d3b769
WN
60322013-06-21 Will Newton <will.newton@linaro.org>
6033
6034 * doublest.c (ldfrexp): Remove function.
6035 (convert_doublest_to_floatformat): Call frexpl instead of
6036 ldfrexp.
6037
88b48903
WN
60382013-06-21 Will Newton <will.newton@linaro.org>
6039
6040 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6041 * gnulib/aclocal.m4: Regenerate.
6042 * gnulib/config.in: Regenerate.
6043 * gnulib/configure: Regenerate.
6044 * gnulib/import/Makefile.am: Update.
6045 * gnulib/import/Makefile.in: Update.
6046 * gnulib/import/m4/gnulib-cache.m4: Update.
6047 * gnulib/import/m4/gnulib-comp.m4: Update.
6048 * gnulib/import/float+.h: Import.
6049 * gnulib/import/float.c: Import.
6050 * gnulib/import/float.in.h: Import.
6051 * gnulib/import/fpucw.h: Import.
6052 * gnulib/import/frexp.c: Import.
6053 * gnulib/import/frexpl.c: Import.
6054 * gnulib/import/isnan.c: Import.
6055 * gnulib/import/isnand-nolibm.h: Import.
6056 * gnulib/import/isnand.c: Import.
6057 * gnulib/import/isnanl-nolibm.h: Import.
6058 * gnulib/import/isnanl.c: Import.
6059 * gnulib/import/itold.c: Import.
6060 * gnulib/import/m4/exponentd.m4: Import.
6061 * gnulib/import/m4/exponentl.m4: Import.
6062 * gnulib/import/m4/float_h.m4: Import.
6063 * gnulib/import/m4/fpieee.m4: Import.
6064 * gnulib/import/m4/frexp.m4: Import.
6065 * gnulib/import/m4/frexpl.m4: Import.
6066 * gnulib/import/m4/isnand.m4: Import.
6067 * gnulib/import/m4/isnanl.m4: Import.
6068 * gnulib/import/m4/math_h.m4: Import.
6069 * gnulib/import/math.c: Import.
6070 * gnulib/import/math.in.h: Import.
6071
4353c9e6
JK
60722013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6073
6074 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6075 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6076 signature_INTEL_edx comparisons.
6077
e3e06db3
DE
60782013-06-20 Doug Evans <dje@google.com>
6079
6ac97d4c
DE
6080 symtab/15652
6081 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6082 All callers updated.
6083 (open_dwp_file): If we can't find the dwp file, search the basename
6084 in debug-file-directory.
6085
93417882
DE
6086 * dwarf2read.c (struct dwp_file): Fix comment.
6087 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6088
e3e06db3
DE
6089 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6090 better.
6091
0878d0fa
YQ
60922013-06-20 Yao Qi <yao@codesourcery.com>
6093
6094 * breakpoint.c (create_breakpoint): Fix code indentation.
6095
023fa29b
YQ
60962013-06-20 Yao Qi <yao@codesourcery.com>
6097
6098 * breakpoint.c (create_breakpoints_sal_default): Remove
6099 parameter 'lsal'. Update declaration.
6100 (bkpt_create_breakpoints_sal): Caller update.
6101 (tracepoint_create_breakpoints_sal): Likewise.
6102
c898adb7
YQ
61032013-06-20 Pedro Alves <pedro@codesourcery.com>
6104 Yao Qi <yao@codesourcery.com>
6105
6106 * NEWS: Mention the new option '--skip-unavailable' of command
6107 -data-list-register-values.
6108 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6109 --skip-unavailable option. Adjust to use output_register.
6110 (output_register): Add new 'skip_unavailable' parameter.
6111 Handle it.
6112
4d157a3d
MF
61132013-06-19 Mike Frysinger <vapier@gentoo.org>
6114
6115 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6116 common/i386-gcc-cpuid.h.
6117 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6118 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6119 Copy the latest version from upstream gcc.
6120 * common/linux-btrace.c: Include i386-cpuid.h.
6121 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6122 call to i386_cpuid.
6123 (cpu_supports_btrace): Likewise.
6124 * go32-nat.c: Include i386-cpuid.h.
6125 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6126
1ce4db08
DE
61272013-06-19 Doug Evans <dje@google.com>
6128
6129 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6130 (get_section_index): Ditto.
6131
0e4777df
TT
61322013-06-19 Tom Tromey <tromey@redhat.com>
6133
6134 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6135 "dprintf" help.
6136
3190f0c6
DE
61372013-06-18 Doug Evans <dje@google.com>
6138
6139 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6140 before using it.
6141 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6142 Move test of cu_index closer to use. Print complaint if cu_index
6143 is bad.
6144
8b89a20a
JB
61452013-06-18 Joel Brobecker <brobecker@adacore.com>
6146
6147 * machoread.c (oso_vector): Delete this global.
6148 (macho_register_oso): Add new parameter "oso_vector_ptr".
6149 Use it instead of the "oso_vector" global.
6150 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6151 (macho_symfile_read): Use a local oso_vector, to be free'ed
6152 at the end of this function, in place of the old "oso_vector"
6153 global. Update various function calls accordingly. Use one
6154 single cleanup chain for the entire function.
6155
59b0c7c1
JB
61562013-06-18 Joel Brobecker <brobecker@adacore.com>
6157
937c708c 6158 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
6159 DWARF2_PER_OBJFILE by uses of DATA instead.
6160
427cd150
TT
61612013-06-18 Tom Tromey <tromey@redhat.com>
6162
6163 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6164 argument.
6165 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6166 Special case signals other than GDB_SIGNAL_TRAP.
6167 (explains_signal_watchpoint): New function.
6168 (base_breakpoint_explains_signal): Add 'sig' argument.
6169 (initialize_breakpoint_ops): Set 'explains_signal' method for
6170 watchpoints.
6171 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6172 signal argument.
6173 (bpstat_explains_signal): Likewise.
6174 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6175
2d57700b
TT
61762013-06-18 Tom Tromey <tromey@redhat.com>
6177
6178 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6179
ac475191
TT
61802013-06-18 Tom Tromey <tromey@redhat.com>
6181
6182 * python/python.c (finish_python_initialization): Decref
6183 'pythondir' on failure path as well.
6184
5bd1ef56
TT
61852013-06-18 Tom Tromey <tromey@redhat.com>
6186
6187 PR symtab/15391:
6188 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6189 after taking bits_to_skip into account. Sign extend byte_offset.
6190 * utils.h (gdb_sign_extend): Declare.
6191 * utils.c (gdb_sign_extend): New function.
6192
92fac807
JK
61932013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6196
2d503272
PM
61972013-06-17 Pierre Muller <muller@sourceware.org>
6198
6199 * corelow.c (core_open): Print GDB signal name instead of target
6200 signal number.
6201
6916fd98
MF
62022013-06-17 Mike Frysinger <vapier@gentoo.org>
6203
6204 * .gitignore: Add /gcore.
6205
9c02c129
DE
62062013-06-13 Doug Evans <dje@google.com>
6207
6208 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6209 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6210
d0548fa2
PM
62112013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6212
6213 * stack.c (backtrace_command_1): Fix indentation.
6214
22128028
JB
62152013-06-11 Joel Brobecker <brobecker@adacore.com>
6216
6217 * window-nat.c (thread_rec): Add missing empty line after
6218 local variable declaration.
6219
2ed3e009
JB
62202013-06-11 Joel Brobecker <brobecker@adacore.com>
6221
6222 * windows-nat.c (thread_rec): Revert format used to print
6223 error code returned by SuspendThread from %d back to %u.
6224
0c3d84be
JB
62252013-06-11 Joel Brobecker <brobecker@adacore.com>
6226
6227 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6228 ID in debug trace.
6229 (get_windows_debug_event): Likewise, for all debug traces.
6230
80e88e1a
JB
62312013-06-11 Joel Brobecker <brobecker@adacore.com>
6232
6233 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6234 warning message.
6235
1edebdbf
YQ
62362013-06-08 Pedro Alves <pedro@codesourcery.com>
6237 Yao Qi <yao@codesourcery.com>
6238
6239 * mi/mi-main.c (get_register): Remove declaration.
6240 (output_register): Declare.
6241 (mi_cmd_data_list_register_values): Remove local variable
6242 'tuple_cleanup'. Move some code into output_register.
6243 (get_register): Renamed to ...
6244 (output_register): ... this. Output the register's
6245 "number" ui_out tuple here.
6246
47d48711
PA
62472013-06-07 Pedro Alves <palves@redhat.com>
6248
6249 * darwin-nat.c: Fix formating in copyright header.
6250 * darwin-nat.h: Likewise.
6251 * gnu-nat.c: Likewise.
6252 * machoread.c: Likewise.
6253
3aee8918
PA
62542013-06-07 Pedro Alves <palves@redhat.com>
6255
5f2b57b5 6256 PR server/14823
3aee8918
PA
6257 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6258 static. Output a global target description pointer.
6259 (init_registers_${name}): Adjust to initialize a
6260 target description structure.
6261
fe8400b4
WN
62622013-06-07 Will Newton <will.newton@linaro.org>
6263
6264 * printcmd.c (build_address_symbolic): Call
6265 gdbarch_addr_bits_remove for text minimal symbols.
6266
20df6206
WN
62672013-06-07 Will Newton <will.newton@linaro.org>
6268
6269 * MAINTAINERS: Add myself to Write After Approval.
6270
aef525cb
YQ
62712013-06-07 Yao Qi <yao@codesourcery.com>
6272
6273 * tracepoint.c (start_tracing): Move code to ...
6274 (trace_reset_local_state): ... here. New.
6275 (disconnect_tracing): Don't call set_current_traceframe,
6276 set_tracepoint_num, and set_traceframe_context. Call
6277 trace_reset_local_state instead.
6278 (tfile_close): Call trace_reset_local_state.
6279 * ctf.c (ctf_close): Likewise.
6280 * remote.c (remote_close): Likewise.
6281 * tracepoint.h (trace_reset_local_state): Declare.
6282
d2415c6c
DE
62832013-06-06 Doug Evans <dje@google.com>
6284
6285 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6286 and fix header docs.
6287
69fc87c2
DE
62882013-06-05 Doug Evans <dje@google.com>
6289 Keith Seitz <keiths@redhat.com>
6290
6291 PR 15519
6292 * cp-namespace.c (find_symbol_in_baseclass): Call
6293 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6294 Check result of call to lookup_symbol_static.
6295 Call lookup_static_symbol_aux unconditionally.
6296 Call check_typedef on base types before accessing them.
6297 (cp_lookup_nested_symbol): Fix comment.
6298
a513d1e8
LM
62992013-06-05 Luis Machado <lgustavo@codesourcery.com>
6300
6301 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6302 minimal symbols pointing to function descriptors.
6303
351a6f02
TT
63042013-06-05 Tom Tromey <tromey@redhat.com>
6305
6306 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6307
5e1b953b 63082013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 6309 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
6310
6311 * remote.c (remote_wait_as): Restore signal handler before returning
6312 when GDB gets a notification.
6313
f9e14852
GB
63142013-06-04 Gary Benson <gbenson@redhat.com>
6315
8445cbf1 6316 PR 2328
f9e14852
GB
6317 * breakpoint.h (handle_solib_event): Moved function declaration
6318 to solib.h.
6319 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6320 (bpstat_stop_status): Pass new argument to handle_solib_event.
6321 * solib.h (update_solib_breakpoints): New function declaration.
6322 (handle_solib_event): Moved function declaration from
6323 breakpoint.h.
6324 * solib.c (update_solib_breakpoints): New function.
6325 (handle_solib_event): Moved function from breakpoint.c.
6326 Updated to call solib_ops->handle_event if not NULL.
6327 * solist.h (target_so_ops): New fields "update_breakpoints" and
6328 "handle_event".
6329 * infrun.c (set_stop_on_solib_events): New function.
6330 (_initialize_infrun): Use the above for "set
6331 stop-on-solib-events".
6332 (handle_inferior_event): Pass new argument to handle_solib_event.
6333 * solib-svr4.c (probe.h): New include.
6334 (svr4_free_library_list): New forward declaration.
6335 (probe_action): New enum.
6336 (probe_info): New struct.
6337 (probe_info): New static variable.
6338 (NUM_PROBES): New definition.
6339 (svr4_info): New fields "using_xfer", "probes_table" and
6340 "solib_list".
6341 (free_probes_table): New function.
6342 (free_solib_list): New function.
6343 (svr4_pspace_data_cleanup): Free probes table and solib list.
6344 (svr4_copy_library_list): New function.
6345 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6346 (svr4_read_so_list): New parameter "prev_lm".
6347 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6348 (svr4_current_sos): New function.
6349 (probe_and_action): New struct.
6350 (hash_probe_and_action): New function.
6351 (equal_probe_and_action): Likewise.
6352 (register_solib_event_probe): Likewise.
6353 (solib_event_probe_at): Likewise.
6354 (solib_event_probe_action): Likewise.
6355 (solist_update_full): Likewise.
6356 (solist_update_incremental): Likewise.
6357 (disable_probes_interface_cleanup): Likewise.
6358 (svr4_handle_solib_event): Likewise.
6359 (svr4_update_solib_event_breakpoint): Likewise.
6360 (svr4_update_solib_event_breakpoints): Likewise.
6361 (svr4_create_solib_event_breakpoints): Likewise.
6362 (enable_break): Free probes table before creating breakpoints.
6363 Use svr4_create_solib_event_breakpoints to create breakpoints.
6364 (svr4_solib_create_inferior_hook): Free the solib list.
6365 (_initialize_svr4_solib): Initialise
6366 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6367
ced63ec0
GB
63682013-06-04 Gary Benson <gbenson@redhat.com>
6369
6370 * target.h (target_ops): New field
6371 "to_augmented_libraries_svr4_read".
6372 (target_augmented_libraries_svr4_read): New macro.
6373 * target.c (update_current_target): Handle
6374 to_augmented_libraries_svr4_read.
6375 * remote.c (remote_state): New field
6376 "augmented_libraries_svr4_read".
6377 (remote_augmented_libraries_svr4_read_feature): New function.
6378 (remote_protocol_features): Add entry for
6379 "augmented-libraries-svr4-read".
6380 (remote_augmented_libraries_svr4_read): New function.
6381 (init_remote_ops): Initialize
6382 remote_ops.to_augmented_libraries_svr4_read.
6383
7f91dbec
GB
63842013-06-04 Gary Benson <gbenson@redhat.com>
6385
6386 * NEWS: Update.
6387
607ece04
GB
63882013-06-04 Gary Benson <gbenson@redhat.com>
6389
6390 * objfiles.h (inhibit_section_map_updates): New function
6391 declaration.
6392 (resume_section_map_updates): Likewise.
6393 (resume_section_map_updates_cleanup): Likewise.
6394 * objfiles.c (objfile_pspace_info): Removed field
6395 "objfiles_changed_p". New fields "new_objfiles_available",
6396 "section_map_dirty" and "inhibit_updates".
6397 (allocate_objfile): Set new_objfiles_available.
6398 (free_objfile): Set section_map_dirty.
6399 (objfile_relocate1): Likewise.
6400 (in_plt_section): Likewise.
6401 (find_pc_section): Update the conditions under which the
6402 section map will be updated.
6403 (inhibit_section_map_updates): New function.
6404 (resume_section_map_updates): Likewise.
6405 (resume_section_map_updates_cleanup): Likewise.
6406
9ee6a5ac
GB
64072013-06-04 Gary Benson <gbenson@redhat.com>
6408
6409 * probe.h (get_probe_argument_count): New declaration.
6410 (evaluate_probe_argument): Likewise.
6411 * probe.c (get_probe_argument_count): New function.
6412 (evaluate_probe_argument): Likewise.
6413 (probe_safe_evaluate_at_pc): Use the above new functions.
6414
845d4708
AM
64152013-06-04 Alan Modra <amodra@gmail.com>
6416
6417 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6418 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6419 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6420 target mem reads on optional insns.
6421 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6422 ppc_insns_match_pattern calls.
6423 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6424 Add match for power7 thread safety insns, and new order of
6425 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6426 invocation in comment, and update rest of comment.
6427 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6428 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6429 (ppc64_standard_linkage2_target): Update insn offsets.
6430 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6431 stubs first. Update calls.
6432
404e278f
YQ
64332013-06-04 Yao Qi <yao@codesourcery.com>
6434
6435 * solib.c (solib_find): Don't need dir separator if path has
6436 drive spec.
6437
f6aea118
JB
64382013-06-03 Joel Brobecker <brobecker@adacore.com>
6439
6440 Revert (indirectly causes a SIGSEGV):
6441 * machoread.c (macho_symfile_read): Assign first cleanup to
6442 'back_to'.
6443
87967e27
YQ
64442013-06-03 Yao Qi <yao@codesourcery.com>
6445
6446 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6447 mi-parse.c. Make them static.
6448 (mi_all_values): Likewise.
6449 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6450 mi_parse_print_values. Make it external.
6451 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6452 Remove the declarations.
6453 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6454 * mi/mi-parse.h (mi_parse_print_values): Declare.
6455 * mi/mi-cmd-stack.c: Include mi-parse.h.
6456 (parse_print_values): Remove
6457 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6458 of parse_print_values.
6459 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6460
3ca73e0c
YQ
64612013-05-31 Pedro Alves <pedro@codesourcery.com>
6462 Yao Qi <yao@codesourcery.com>
6463
6464 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6465 (encode_actions): Move code to ...
6466 (all_tracepoint_actions_and_cleanup): ... here. New.
6467 (trace_dump_command): Likewise.
6468
4e993a19
TT
64692013-05-30 Tom Tromey <tromey@redhat.com>
6470
6471 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6472
e3b76b4f
TT
64732013-05-30 Tom Tromey <tromey@redhat.com>
6474
6475 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6476 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6477 'old_chain' argument. Add 'parser_result' argument.
6478 (gdb_xml_create_parser_and_cleanup): Remove old version.
6479 (gdb_xml_parse_quick): Update.
6480 (xml_process_xincludes): Update.
6481 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6482 declare.
6483
db26349c
TT
64842013-05-30 Tom Tromey <tromey@redhat.com>
6485
6486 * probe.c (collect_probes): Check arguments for NULL before
6487 calling compile_rx_or_error.
6488 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6489 Remove NULL return.
6490
77f9e713
TT
64912013-05-30 Tom Tromey <tromey@redhat.com>
6492
6493 * infrun.c (adjust_pc_after_break): Introduce an outer null
6494 cleanup.
6495
45475de7
TT
64962013-05-30 Tom Tromey <tromey@redhat.com>
6497
6498 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6499
ac5007fd
TT
65002013-05-30 Tom Tromey <tromey@redhat.com>
6501
6502 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6503 for 'old_chain'. Do not check 'head' before processing
6504 cleanups.
6505
cd82eddc
TT
65062013-05-30 Tom Tromey <tromey@redhat.com>
6507
6508 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6509 "cleanup_tuple".
6510
57cee33a
TT
65112013-05-30 Tom Tromey <tromey@redhat.com>
6512
6513 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6514 inner scope. Unconditionally call do_cleanups.
6515
795d915c
TT
65162013-05-30 Tom Tromey <tromey@redhat.com>
6517
6518 * source.c (find_and_open_source): Call do_cleanups.
6519
1fc3cf4a
TT
65202013-05-30 Tom Tromey <tromey@redhat.com>
6521
6522 * linux-thread-db.c (thread_db_load_search): Unconditionally
6523 call do_cleanups.
6524
e35ac9bf
TT
65252013-05-30 Tom Tromey <tromey@redhat.com>
6526
6527 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6528 for 'cleanup'; instead use a later one.
6529
f3300387
TT
65302013-05-30 Tom Tromey <tromey@redhat.com>
6531
6532 * python/py-breakpoint.c (bppy_get_commands): Use
6533 explicit, unconditional return.
6534 * python/py-frame.c (frapy_read_var): Likewise.
6535 * python/python.c (gdbpy_decode_line): Likewise.
6536
c27e16e3
TT
65372013-05-30 Tom Tromey <tromey@redhat.com>
6538
6539 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6540 do_cleanups on all return paths.
6541
5ae85e44
TT
65422013-05-30 Tom Tromey <tromey@redhat.com>
6543
6544 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6545
73b8d9da
TT
65462013-05-30 Tom Tromey <tromey@redhat.com>
6547
6548 * stabsread.c (read_struct_type): Call do_cleanups along
6549 all return paths.
6550
7d266584
MR
65512013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6552
6553 * mips-linux-tdep.c: Adjust formatting throughout.
6554
0f900f54
TT
65552013-05-30 Tom Tromey <tromey@redhat.com>
6556
6557 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6558 along all return paths.
6559
a991ac28
TT
65602013-05-30 Tom Tromey <tromey@redhat.com>
6561
6562 * symfile.c (find_separate_debug_file): Call do_cleanups
6563 along all return paths.
6564
1abaf042
TT
65652013-05-30 Tom Tromey <tromey@redhat.com>
6566
6567 * symtab.c (search_symbols): Introduce a null cleanup for
6568 'retval_chain'.
6569
edefe1da
TT
65702013-05-30 Tom Tromey <tromey@redhat.com>
6571
6572 * python/py-value.c (valpy_binop): Call do_cleanups before
6573 exiting loop.
6574
54f72dcc
TT
65752013-05-30 Tom Tromey <tromey@redhat.com>
6576
6577 * python/py-prettyprint.c (print_children): Remove extra
6578 do_cleanups call.
6579
af1c6971
TT
65802013-05-30 Tom Tromey <tromey@redhat.com>
6581
6582 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6583 all return paths.
6584
b862ce75
TT
65852013-05-30 Tom Tromey <tromey@redhat.com>
6586
6587 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6588 along all return paths.
6589
e12fefc8
TT
65902013-05-30 Tom Tromey <tromey@redhat.com>
6591
6592 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6593 call do_cleanups.
6594
4867f990
TT
65952013-05-30 Tom Tromey <tromey@redhat.com>
6596
6597 * varobj.c (c_value_of_root): Call do_cleanups along all
6598 return paths.
6599
4fd2d6af
TT
66002013-05-30 Tom Tromey <tromey@redhat.com>
6601
6602 * tracepoint.c (trace_dump_command): Unconditionally call
6603 do_cleanups.
6604
752eb8b4
TT
66052013-05-30 Tom Tromey <tromey@redhat.com>
6606
6607 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6608 do_cleanups earlier.
6609
e42d0aa5
TT
66102013-05-30 Tom Tromey <tromey@redhat.com>
6611
6612 * machoread.c (macho_symfile_read): Assign first cleanup to
6613 'back_to'.
6614
4bbc010a
TT
66152013-05-30 Tom Tromey <tromey@redhat.com>
6616
6617 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6618
b9635925
TT
66192013-05-30 Tom Tromey <tromey@redhat.com>
6620
6621 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6622
25f43500
TT
66232013-05-30 Tom Tromey <tromey@redhat.com>
6624
6625 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6626 call discard_cleanups.
6627 (inf_ptrace_attach): Likewise.
6628
d6a2e54a
TT
66292013-05-30 Tom Tromey <tromey@redhat.com>
6630
6631 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6632 return paths.
6633 (mips_initialize): Likewise.
6634 (common_open): Call do_cleanups.
6635
48be7c1b
TT
66362013-05-30 Tom Tromey <tromey@redhat.com>
6637
6638 * utils.c (internal_vproblem): Call do_cleanups.
6639
e61727ab
TT
66402013-05-30 Tom Tromey <tromey@redhat.com>
6641
6642 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6643
b81b921f
TT
66442013-05-30 Tom Tromey <tromey@redhat.com>
6645
6646 * cli/cli-script.c (setup_user_args): Don't return after error.
6647
fe48dfb1
TT
66482013-05-30 Tom Tromey <tromey@redhat.com>
6649
6650 * somread.c (som_symtab_read): Call do_cleanups.
6651
27833de7
TT
66522013-05-30 Tom Tromey <tromey@redhat.com>
6653
6654 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6655
5b3fca71
TT
66562013-05-30 Tom Tromey <tromey@redhat.com>
6657
6658 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6659 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6660 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6661 * source.c (show_substitute_path_command): Call do_cleanups.
6662 (unset_substitute_path_command, set_substitute_path_command):
6663 Likewise.
6664 * symfile.c (load_command): Call do_cleanups.
6665
af83e3f8
TT
66662013-05-30 Tom Tromey <tromey@redhat.com>
6667
6668 * contrib/cleanup_check.py: New file.
6669 * contrib/gcc-with-excheck: Add option parsing.
6670
564eac42
JB
66712013-05-30 Joel Brobecker <brobecker@adacore.com>
6672
6673 * windows-nat.c (windows_delete_thread): Add missing space
6674 in cast expression.
6675
47902076
HAQ
66762013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6677
6678 * inferior.c (top level): Include tilde.h.
6679 (add_inferior_command): Call tilde_expand on the value of 'exec'
6680 argument.
6681
23da373a
YQ
66822013-05-30 Pedro Alves <pedro@codesourcery.com>
6683 Yao Qi <yao@codesourcery.com>
6684
6685 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6686 Caller update.
6687 (encode_actions): Likewise.
6688 * remote.c (remote_download_tracepoint): Caller update.
6689 * tracepoint.h (encode_actions): Update declaration.
6690
a6e6f791
PA
66912013-05-30 Pedro Alves <palves@redhat.com>
6692
6693 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6694 pointer.
6695
36d25514
YQ
66962013-05-30 Yao Qi <yao@codesourcery.com>
6697
6698 * remote.c (remote_check_symbols): Remove unused parameter
6699 'objfile'.
6700 Declaration update.
6701 (remote_start_remote, remote_new_objfile): Caller update.
6702
62a813cc
YQ
67032013-05-30 Yao Qi <yao@codesourcery.com>
6704
6705 * mi/mi-cmds.c (mi_cmds): Define MI command
6706 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6707 DEF_MI_CMD_CLI.
6708
28439a30
PA
67092013-05-29 Pedro Alves <palves@redhat.com>
6710
6711 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6712 (remote_insert_watchpoint, remote_remove_watchpoint)
6713 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6714 (remote_verify_memory, compare_sections_command)
6715 (remote_search_memory): Set the general process/thread on the
6716 remote side.
6717
6ac1c082
PA
67182013-05-29 Pedro Alves <palves@redhat.com>
6719
6720 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6721 (_initialize_aarch64_tdep): Don't call
6722 initialize_tdesc_aarch64_without_fpu.
6723 * features/Makefile (WHICH): Remove reference to
6724 aarch64-without-fpu.
6725 * features/aarch64-without-fpu.c: Delete file.
6726 * regformats/aarch64-without-fpu.dat: Delete file.
6727
a73e3634
YQ
67282013-05-28 Yao Qi <yao@codesourcery.com>
6729
6730 * tracepoint.c (stringify_collection_list): Remove parameter
6731 'string'.
6732 (encode_actions): Caller update. Remove local variables.
6733
c0ea94eb
YQ
67342013-05-24 Yao Qi <yao@codesourcery.com>
6735
6736 * tracepoint.c (TFILE_PID): Remove.
6737 (tfile_open): Don't add thread and inferior.
6738 (tfile_close): Don't set 'inferior_ptid'. Don't call
6739 exit_inferior_silent.
6740 (tfile_thread_alive): Remove.
6741 (init_tfile_ops): Don't set field 'to_thread_alive' of
6742 tfile_ops.
6743
20d7f211
DE
67442013-05-23 Doug Evans <dje@google.com>
6745
6746 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6747
8658d16d
PA
67482013-05-23 Pedro Alves <palves@redhat.com>
6749
6750 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6751 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6752 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6753 Only define if HAVE_SOCKETS is defined.
6754 * configure.ac: Check for sys/socket.h.
6755 * config.in, configure: Regenerate.
6756
21aa081e
PA
67572013-05-23 Pedro Alves <palves@redhat.com>
6758
6759 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6760 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6761 printing uint32_t variables.
6762
c2d6af84
PA
67632013-05-23 Pedro Alves <palves@redhat.com>
6764
6765 * NEWS: Mention GDBserver range stepping support.
6766
c1e36e3e
PA
67672013-05-23 Yao Qi <yao@codesourcery.com>
6768 Pedro Alves <palves@redhat.com>
6769
6770 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6771 field.
6772 * infcmd.c (step_once, until_next_command): Enable range stepping.
6773 * infrun.c (displaced_step_prepare): Disable range stepping.
6774 (resume): Disable range stepping if stepping over a breakpoint or
6775 we have software watchpoints. If range stepping is enabled,
6776 assert the thread is in the stepping range.
6777 (clear_proceed_status_thread): Clear may_range_step.
6778 (handle_inferior_event): Disable range stepping as soon as we know
6779 the thread that hit the event. Re-enable it whenever we're going
6780 to step with a step range.
6781 * remote.c (struct vCont_action_support) <r>: New field.
6782 (use_range_stepping): New global.
6783 (remote_vcont_probe): Handle 'r' action.
6784 (append_resumption): Append an 'r' action if the thread may range
6785 step.
6786 (show_range_stepping): New function.
6787 (set_range_stepping): New function.
6788 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6789 'set range-stepping' and 'show range-stepping' commands.
6790 * NEWS: Mention range stepping, the new vCont;r action, and the
6791 new "set/show range-stepping" commands.
6792
d458bd84
PA
67932013-05-23 Yao Qi <yao@codesourcery.com>
6794 Pedro Alves <palves@redhat.com>
6795
6796 * remote.c (struct vCont_action_support): New struct.
6797 (struct remote_state) <support_vCont_t>: Remove field.
6798 <vCont_actions_support>: New field.
6799 (remote_vcont_probe, remote_stop_ns): Update.
6800
ce4c476a
PA
68012013-05-23 Yao Qi <yao@codesourcery.com>
6802 Pedro Alves <palves@redhat.com>
6803
6804 * gdbthread.h (pc_in_thread_step_range): New declaration.
6805 * thread.c (pc_in_thread_step_range): New function.
6806 * infrun.c (handle_inferior_event): Use it.
6807
ce70887a
JB
68082013-05-23 Joel Brobecker <brobecker@adacore.com>
6809
6810 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6811 of sprintf.
6812
55b87a52
KS
68132013-05-22 Keith Seitz <keiths@redhat.com>
6814
6815 * ada-lang.c (is_known_support_routine): Add explicit free of
6816 'func_name' from find_frame_funname.
6817 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6818 for func_name from find_frame_funname.
6819 * python/py-frame.c (frapy_name): Add explicit free of
6820 'name' from find_frame_funname.
6821 * stack.c (find_frame_funname): Add comment explaining that
6822 funcp must be freed by the caller.
6823 Return copy of symbol names instead of pointers.
6824 (print_frame): Add a cleanup for 'funname' from
6825 find_frame_funname.
6826 * stack.h (find_frame_funname): Remove "const" from
6827 'funname' parameter.
6828
5f2e6b00
TT
68292013-05-22 Tom Tromey <tromey@redhat.com>
6830
6831 PR c++/15401:
6832 * c-valprint.c (c_value_print): Use value_addr for
6833 references. Convert back to reference type with value_ref.
6834
d85c4847
EZ
68352013-05-22 Eli Zaretskii <eliz@gnu.org>
6836
6837 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6838 unloaded DLL, it will be done by handle_solib_event. See
6839 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6840 details.
6841
54eb231c
PM
68422013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6843
6844 * ui-out.c: Create typedef ui_out_level_p and define vector
6845 operations for that type.
6846 (struct ui_out): Use a vector instead of an array.
6847 (current_level): Return level from a vector.
6848 (push_level): Create a level in a vector.
6849 (pop_level): Delete a level in a vector.
6850 (ui_out_new): Create initial level zero level, and store in a
6851 vector.
6852 (ui_out_destroy): Add vector cleanup.
6853
ac90359c
PA
68542013-05-22 Pedro Alves <palves@redhat.com>
6855
6856 * python/python-internal.h (gdb_Py_DECREF): Tag with
6857 "ARI: editCase function".
6858
6dcc1893
PP
68592013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6860
6861 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6862
c8c735b9
PA
68632013-05-21 Pedro Alves <palves@redhat.com>
6864
6865 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6866 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6867 * python/py-utils.c (py_decref): Don't check for NULL before
6868 calling Py_DECREF.
6869
1915daeb
PA
68702013-05-21 Pedro Alves <palves@redhat.com>
6871
6872 * python/py-utils.c (py_decref): Remove extra braces.
6873 (gdb_pymodule_addobject): Remove extra braces.
6874 * python-internal.h (gdb_Py_DECREF): New static inline function.
6875 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6876
bd9673a4
PW
68772013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6878
6879 * breakpoints.c (detach_breakpoints): Do not
6880 detach breakpoints locations with loc_type bp_loc_other.
6881
ff6009d0
JK
68822013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 Workaround Python 2.6.
6885 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6886 a block.
6887
3641da11
JK
68882013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6889
6890 Code cleanup: constification.
6891 * solib.c (solib_ops): Make return type and ops variable type const.
6892 (set_solib_ops): Make the new_ops parameter and ops variable const.
6893 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6894 (solib_add, solib_keep_data_in_core, clear_solib)
6895 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6896 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6897 const.
6898 * solib.h (set_solib_ops): Make the new_ops parameter const.
6899
776af39e
JB
69002013-05-21 Joel Brobecker <brobecker@adacore.com>
6901
6902 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6903 variable.
6904 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6905 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6906 (SYSTEM_GDBINIT_FILES): New variables.
6907 (all): Add stamp-system-gdbinit.
6908 (stamp-system-gdbinit): New rule.
6909 (clean-system-gdbinit, install-system-gdbinit)
6910 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6911 (install-only): Add dependency on install-system-gdbinit.
6912 (uninstall): Add dependency on uninstall-system-gdbinit.
6913 (clean): Add dependency on clean-system-gdbinit.
6914 * system-gdbinit/elinos.py: New file.
6915 * system-gdbinit/wrs-linux.py: New file.
6916
1509e573
JB
69172013-05-21 Joel Brobecker <brobecker@adacore.com>
6918
6919 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6920
c5867ab6
HZ
69212013-05-21 Hui Zhu <hui@codesourcery.com>
6922
6923 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6924 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6925 * mi/mi-cmd-break.c (ctype.h): New include.
6926 (gdb_obstack.h): New include.
6927 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6928 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6929 (mi_cmd_dprintf_insert): New.
6930 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6931 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6932
7d38e38f
TT
69332013-05-20 Tom Tromey <tromey@redhat.com>
6934
6935 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6936
97b77b39
TT
69372013-05-20 Tom Tromey <tromey@redhat.com>
6938
6939 * python/py-value.c (valpy_get_dynamic_type): Simplify
6940 dynamic_type assignment. Use Py_XINCREF.
6941
53e66479
TT
69422013-05-20 Tom Tromey <tromey@redhat.com>
6943
6944 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6945
dcf87832
TT
69462013-05-20 Tom Tromey <tromey@redhat.com>
6947
6948 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6949 (gdbpy_selected_frame): Move object-construction code
6950 out of TRY_CATCH.
6951
aa36459a
TT
69522013-05-20 Tom Tromey <tromey@redhat.com>
6953
6954 * python/py-arch.c (gdbpy_initialize_arch): Use
6955 gdb_pymodule_addobject.
6956 * python/py-block.c (gdbpy_initialize_blocks): Use
6957 gdb_pymodule_addobject.
6958 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6959 gdb_pymodule_addobject.
6960 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6961 gdb_pymodule_addobject.
6962 * python/py-event.c (gdbpy_initialize_event_generic): Use
6963 gdb_pymodule_addobject.
6964 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6965 gdb_pymodule_addobject.
6966 * python/py-evts.c (add_new_registry): Use
6967 gdb_pymodule_addobject.
6968 (gdbpy_initialize_py_events): Likewise.
6969 * python/py-finishbreakpoint.c
6970 (gdbpy_initialize_finishbreakpoints): Use
6971 gdb_pymodule_addobject.
6972 * python/py-frame.c (gdbpy_initialize_frames): Use
6973 gdb_pymodule_addobject.
6974 * python/py-function.c (gdbpy_initialize_functions): Use
6975 gdb_pymodule_addobject.
6976 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6977 gdb_pymodule_addobject.
6978 * python/py-infthread.c (gdbpy_initialize_thread): Use
6979 gdb_pymodule_addobject.
6980 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6981 gdb_pymodule_addobject.
6982 * python/py-param.c (gdbpy_initialize_parameters): Use
6983 gdb_pymodule_addobject.
6984 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6985 gdb_pymodule_addobject.
6986 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6987 gdb_pymodule_addobject.
6988 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6989 gdb_pymodule_addobject.
6990 * python/py-type.c (gdbpy_initialize_types): Use
6991 gdb_pymodule_addobject.
6992 * python/py-utils.c (gdb_pymodule_addobject): New function.
6993 * python/py-value.c (gdbpy_initialize_values): Use
6994 gdb_pymodule_addobject.
6995 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6996 * python/python.c (_initialize_python): Use
6997 gdb_pymodule_addobject.
6998
3d4a3c3e
TT
69992013-05-20 Tom Tromey <tromey@redhat.com>
7000
7001 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7002 * python/py-param.c (get_set_value, get_show_value): Use
7003 explicit decrefs.
7004 * python/python.c (start_type_printers, apply_type_printers):
7005 Use explicit decrefs.
7006
72ff8829
TT
70072013-05-20 Tom Tromey <tromey@redhat.com>
7008
7009 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7010 incref the module.
7011
02146ba5
TT
70122013-05-20 Tom Tromey <tromey@redhat.com>
7013
7014 * python/python.c (gdbpy_run_events): Decref the result
7015 of PyObject_CallObject.
7016
33ee792f
TT
70172013-05-20 Tom Tromey <tromey@redhat.com>
7018
7019 * python/py-symtab.c (set_sal): Use
7020 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7021 (symtab_and_line_to_sal_object): Update.
7022
fcb49fc8
TT
70232013-05-20 Tom Tromey <tromey@redhat.com>
7024
7025 * python/py-param.c (compute_enum_values): Decref 'item'.
7026
0646da15
TT
70272013-05-20 Tom Tromey <tromey@redhat.com>
7028
7029 * mi/mi-main.c: Include python-internal.h.
7030 (mi_cmd_list_features): Check gdb_python_initialized.
7031 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7032 (python_inferior_exit, python_new_objfile, add_thread_object)
7033 (delete_thread_object, py_free_inferior): Check
7034 gdb_python_initialized.
7035 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7036 gdb_python_initialized.
7037 * python/py-type.c (save_objfile_types): Check
7038 gdb_python_initialized.
7039 * python/python-internal.h (gdb_python_initialized): Declare.
7040 * python/python.c (ensure_python_env): Throw exception if
7041 Python not initialized.
7042 (before_prompt_hook, source_python_script_for_objfile)
7043 (start_type_printers, apply_type_printers,
7044 free_type_printers): Check gdb_python_initialized.
7045 * varobj.c (varobj_get_display_hint)
7046 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7047 (install_new_value_visualizer, varobj_set_visualizer)
7048 (value_get_print_value): Check gdb_python_initialized.
7049
999633ed
TT
70502013-05-20 Tom Tromey <tromey@redhat.com>
7051
7052 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7053 Check errors.
7054 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7055 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7056 Check errors.
7057 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7058 Check errors.
7059 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7060 Check errors.
7061 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7062 Check errors.
7063 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7064 init function to return 'int'.
7065 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7066 Return 'int'. Check errors.
7067 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7068 Check errors.
7069 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7070 Return 'int'. Check errors.
7071 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7072 Check errors.
7073 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7074 Check errors.
7075 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7076 Check errors.
7077 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7078 Check errors.
7079 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7080 Check errors.
7081 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7082 Check errors.
7083 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7084 Check errors.
7085 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7086 Check errors.
7087 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7088 Check errors.
7089 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7090 Check errors.
7091 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7092 Check errors.
7093 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7094 Check errors.
7095 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7096 Check errors.
7097 * python/python-internal.h (gdbpy_initialize_auto_load,
7098 gdbpy_initialize_values, gdbpy_initialize_frames,
7099 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7100 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7101 gdbpy_initialize_blocks, gdbpy_initialize_types,
7102 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7103 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7104 gdbpy_initialize_finishbreakpoints,
7105 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7106 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7107 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7108 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7109 gdbpy_initialize_signal_event,
7110 gdbpy_initialize_breakpoint_event,
7111 gdbpy_initialize_continue_event,
7112 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7113 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7114 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7115 * python/python.c (gdb_python_initialized): New global.
7116 (gdbpy_initialize_events): Return 'int'. Check errors.
7117 (_initialize_python): Check errors. Set
7118 gdb_python_initialized.
7119
18868860
TT
71202013-05-20 Tom Tromey <tromey@redhat.com>
7121
7122 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7123 Decref the reslut of PyObject_CallMethod.
7124
9f4ff0c2
TT
71252013-05-20 Tom Tromey <tromey@redhat.com>
7126
7127 * python/py-event.c (gdbpy_initialize_event_generic): Return
7128 early if PyType_Ready fails.
7129
0d3a2e8a
TT
71302013-05-20 Tom Tromey <tromey@redhat.com>
7131
7132 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7133 as 'default' in the switch.
7134
b86af38a
TT
71352013-05-20 Tom Tromey <tromey@redhat.com>
7136
7137 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7138 get_addr_from_python calls out of TRY_CATCH.
7139 (infpy_write_memory, infpy_search_memory): Likewise.
7140 * python/py-utils.c (get_addr_from_python): Return negative
7141 value on error. Use TRY_CATCH.
7142 * python/python-internal.h (get_addr_from_python): Use
7143 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7144
c127ec58
TT
71452013-05-20 Tom Tromey <tromey@redhat.com>
7146
7147 * python/py-event.c (evpy_emit_event): Decref the
7148 result of PyObject_CallFunctionObjArgs.
7149
ba327838
TT
71502013-05-20 Tom Tromey <tromey@redhat.com>
7151
7152 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7153 Correctly decref.
7154
d8191432
TT
71552013-05-20 Tom Tromey <tromey@redhat.com>
7156
7157 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7158
5d153bd1
TT
71592013-05-20 Tom Tromey <tromey@redhat.com>
7160
7161 * python/py-event.h (gdbpy_initialize_event_generic): Use
7162 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7163 * python/py-evts.c (add_new_registry): Use
7164 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7165 * python/python-internal.h
7166 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7167
56cc411c
TT
71682013-05-20 Tom Tromey <tromey@redhat.com>
7169
7170 * python/py-arch.c (archpy_disassemble): Update.
7171 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7172 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7173 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7174 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7175 macro.
7176 (GDB_PY_HANDLE_EXCEPTION): Update.
7177 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7178
8919e174
TT
71792013-05-20 Tom Tromey <tromey@redhat.com>
7180
7181 * python/python-internal.h (events_object_type): Remove.
7182
9b08f225
TT
71832013-05-20 Tom Tromey <tromey@redhat.com>
7184
f5aee5ee
AM
7185 * python/py-event.h (evpy_emit_event): Use
7186 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7187 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7188 New macro.
9b08f225 7189
f04010ff
TT
71902013-05-20 Tom Tromey <tromey@redhat.com>
7191
7192 * py-evtregistry.c (create_event_object): Decref
7193 eventregistry_object if PyList_New fails.
7194
3919fd96
TT
71952013-05-20 Tom Tromey <tromey@redhat.com>
7196
7197 * py-cmd.c (gdbpy_string_to_argv): Check result of
7198 PyList_New.
7199
0430e8cb
TT
72002013-05-20 Tom Tromey <tromey@redhat.com>
7201
7202 * python/python.c (before_prompt_hook): Add cleanup to
7203 decref 'hook'.
7204
764123e4
TT
72052013-05-20 Tom Tromey <tromey@redhat.com>
7206
7207 * python/py-function.c (fnpy_init): Decref result of
7208 PyObject_GetAttrString.
7209
634c58be
TT
72102013-05-20 Tom Tromey <tromey@redhat.com>
7211
7212 * python/py-threadevent.c (get_event_thread): Use
7213 CPYCHECKER_RETURNS_BORROWED_REF.
7214 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7215 New define.
7216 (pspace_to_pspace_object, objfile_to_objfile_object)
7217 (find_thread_object): Use it.
7218
62eec1a5
TT
72192013-05-20 Tom Tromey <tromey@redhat.com>
7220
7221 * python/py-arch.c (arch_object_type): Use
7222 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7223 * python/py-block.c (block_syms_iterator_object_type):
7224 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7225 * python/py-bpevent.c (breakpoint_event_object_type):
7226 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7227 * python/py-cmd.c (cmdpy_object_type): Use
7228 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7229 * python/py-continueevent.c (continue_event_object_type):
7230 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7231 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7232 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7233 * python/py-events.h (thread_event_object_type):
7234 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7235 * python/py-evtregistry.c (eventregistry_object_type): Use
7236 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7237 * python/py-exitedevent.c (exited_event_object_type):
7238 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7239 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7240 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7241 * python/py-function.c (fnpy_object_type): Use
7242 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7243 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7244 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7245 * python/py-infthread.c (thread_object_type): Use
7246 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7247 * python/py-lazy-string.c (lazy_string_object_type):
7248 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7249 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7250 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7251 * python/py-objfile.c (objfile_object_type): Use
7252 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7253 * python/py-param.c (parmpy_object_type):
7254 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7255 * python/py-progspace.c (pspace_object_type):
7256 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7257 * python/py-signalevent.c (signal_event_object_type):
7258 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7259 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7260 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7261 * python/py-type.c (type_object_type, field_object_type)
7262 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7263 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7264 define.
7265 (value_object_type, block_object_type, symbol_object_type)
7266 (event_object_type, stop_event_object_type, breakpoint_object_type)
7267 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7268
81ea8796
AT
72692013-05-20 Andreas Tobler <andreas@fgznet.ch>
7270
7271 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7272 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7273
a2ce51a0
DE
72742013-05-20 Doug Evans <dje@google.com>
7275
7276 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7277 For Fission.
7278 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7279 reading_dwo_directly.
7280 (struct signatured_type): New member dwo_unit.
7281 (struct die_reader_specs): New member comp_dir.
7282 (create_signatured_type_table_from_index): Use malloc for
7283 all_type_units instead of objfile's obstack.
7284 (create_all_type_units): Ditto.
7285 (fill_in_sig_entry_from_dwo_entry): New function.
7286 (add_type_unit): New function.
7287 (lookup_dwo_signatured_type): New function.
7288 (lookup_dwp_signatured_type): New function.
7289 (lookup_signatured_type): New arg cu. All callers updated.
7290 (init_cu_die_reader): Initialize comp_dir.
7291 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7292 Change assert of matching type signatures to call error on mismatch.
7293 (lookup_dwo_unit): Add assert.
7294 (init_tu_and_read_dwo_dies): New function.
7295 (init_cutu_and_read_dies): Call it.
7296 (build_type_unit_groups): Handle case of no type unit groups created.
7297 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7298 (lookup_dwo_cutu): Tweak complaint.
7299 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7300 (dwarf2_per_objfile_free): Free all_type_units.
7301
a25cd31f
JB
73022013-05-20 Joel Brobecker <brobecker@adacore.com>
7303
7304 * windows-nat.c (handle_unload_dll): Add missing empty line.
7305
4d804846
JB
73062013-05-20 Joel Brobecker <brobecker@adacore.com>
7307
7308 * dwarf2read.c (prototyped_function_p): New function.
7309 (read_subroutine_type): Use it.
7310
1c432e72
JB
73112013-05-20 Joel Brobecker <brobecker@adacore.com>
7312
7313 * rs6000-aix-tdep.c: De-indent some example code provided
7314 as a comment.
7315
4feebbdd
EBM
73162013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7317
7318 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7319 region is ok for a hardware watchpoint using the new ptrace interface
7320 on Power servers.
7321
7d0c9981
DE
73222013-05-17 Doug Evans <dje@google.com>
7323
7324 * NEWS: Mention new maintenance commands check-symtabs, and
7325 expand-symtabs, and renamed check-psymtabs.
7326 * psymtab.c (maintenance_check_psymtabs): Renamed from
7327 maintenance_check_symtabs. Only process already-expanded symbol
7328 tables.
7329 (_initialize_psymtab): Update.
7330 * symmisc.c (maintenance_check_symtabs): New function.
7331 (maintenance_expand_name_matcher): New function
7332 (maintenance_expand_file_matcher): New function
7333 (maintenance_expand_symtabs): New function.
7334 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7335 commands.
7336
6cbc7c3d
TT
73372013-05-17 Tom Tromey <tromey@redhat.com>
7338
7339 * python/py-inferior.c (infpy_read_memory): Don't call
7340 PyErr_SetString if PyObject_New fails.
7341 * python/py-frame.c (frame_info_to_frame_object): Don't call
7342 PyErr_SetString if PyObject_New fails.
7343
a48b32c0
L
73442013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7345
7346 * acinclude.m4: Add check for dlopen in libdl.
7347 * configure.ac: Ditto.
7348 * configure: Regenerate.
7349
3de661e6
PM
73502013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7351
7352 * frame.c (frame_stash): Convert to htab.
7353 (frame_addr_hash): New function.
7354 (frame_addr_hash_eq): New function.
7355 (frame_stash_create): Convert function to create
7356 a hash table.
7357 (frame_stash_add): Convert function to add an entry to a hash
7358 table.
7359 (frame_stash_find): Convert function to search the hash table.
7360 (frame_stash_invalidate): Convert function to empty the hash
7361 table.
7362 (get_frame_id): Only add to stash if a frame_id is created.
7363 (_initialize_frame): Call frame_stash_create.
7364
bb4168a9 73652013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
7366
7367 * configure.ac: Ensure MIG is available when building for GNU Hurd
7368 hosts.
7369 * configure: Regenerate.
7370
d1be3247
JB
73712013-05-16 Joel Brobecker <brobecker@adacore.com>
7372
7373 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7374
b8fea896
JB
73752013-05-16 Joel Brobecker <brobecker@adacore.com>
7376
7377 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7378 all cleanups are done before returning from this function.
7379
af880d85
JB
73802013-05-15 Joel Brobecker <brobecker@adacore.com>
7381
7382 * utils.h: #include "exceptions.h".
7383 (enum errors): Remove partial declaration.
7384
356a5233
JB
73852013-05-15 Joel Brobecker <brobecker@adacore.com>
7386
7387 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7388 * gdbarch.h, gdbarch.c: Regenerate.
7389 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7390 handling.
7391
7392 * rs6000-aix-tdep.h: New file.
7393 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7394 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7395 "xml-utils.h".
7396 (struct field_info, struct ld_info_desc): New types.
7397 (ld_info32_desc, ld_info64_desc): New static constants.
7398 (struct ld_info): New type.
7399 (rs6000_aix_extract_ld_info): New function.
7400 (rs6000_aix_shared_library_to_xml): Likewise.
7401 (rs6000_aix_ld_info_to_xml): Likewise.
7402 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7403 (rs6000_aix_init_osabi): Add call to
7404 set_gdbarch_core_xfer_shared_libraries_aix.
7405 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7406 Remove "xml-utils.h" include.
7407 (LdInfo): Delete typedef.
7408 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7409 Delete macros.
7410 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7411 Adjust code accordingly.
7412 (rs6000_core_ldinfo): Delete, folded into
7413 rs6000_aix_core_xfer_shared_libraries_aix.
7414 (rs6000_xfer_shared_library): Delete.
7415 (rs6000_xfer_shared_libraries): Reimplement.
7416
742ce053
MM
74172013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7418
7419 * record.c (record_goto_cmdlist): New.
7420 (cmd_record_goto): Split into this ...
7421 (cmd_record_goto_begin): ... this
7422 (cmd_record_goto_end): ... and this.
7423 (_initialize_record): Change "record goto" to prefix command.
7424 Add commands for "record goto begin" and "record goto end".
7425 Add an alias for "record goto start" to "record goto begin".
7426
e93ba630
JK
74272013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7428
7429 * linespec.c (convert_linespec_to_sals): New comment for
7430 SOURCE_FILENAME assignment.
7431
5821aace
JK
74322013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7433
7434 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7435 internal_warning.
7436
a1b8c4cc
TT
74372013-05-14 Tom Tromey <tromey@redhat.com>
7438
7439 * eval.c (parse_and_eval_long): Make 'exp' const.
7440 * value.h (parse_and_eval_long): Update.
7441
23b3a2c3
TT
74422013-05-14 Tom Tromey <tromey@redhat.com>
7443
7444 * ui-file.c (gdb_fopen): Make arguments const.
7445 * ui-file.h (gdb_fopen): Make arguments const.
7446
ca623f82
TT
74472013-05-14 Tom Tromey <tromey@redhat.com>
7448
7449 * remote.c (remote_set_trace_notes): Make arguments const.
7450 * target.c (update_current_target): Update cast.
7451 * target.h (to_set_trace_notes): Make arguments const.
7452
503ebb2c
TT
74532013-05-14 Tom Tromey <tromey@redhat.com>
7454
7455 * go32-nat.c (go32_terminal_info): Make 'args' const.
7456 * inferior.h (child_terminal_info): Update.
7457 * inflow.c (child_terminal_info): Make 'args' const.
7458 * target.c (default_terminal_info): Make 'args' const.
7459 (debug_to_terminal_save_ours): Likewise.
7460 * target.h (struct target_ops) <to_terminal_info>: Make argument
7461 const.
7462
85e1311a
TT
74632013-05-13 Tom Tromey <tromey@redhat.com>
7464
7465 * gcore.c (create_gcore_bfd): Make 'filename' const.
7466 * gcore.h (create_gcore_bfd): Make 'filename' const.
7467 * record-full.c (record_full_save): Make 'recfilename' const.
7468 * target.c (target_save_record): Make 'filename' const.
7469 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7470 const.
7471 (target_save_record): Likewise.
7472
d62bfeaf
TT
74732013-05-13 Tom Tromey <tromey@redhat.com>
7474
f5aee5ee 7475 PR gdb/15338:
d62bfeaf
TT
7476 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7477 ranges section has been read.
7478
ac1ca910
TT
74792013-05-13 Tom Tromey <tromey@redhat.com>
7480
7481 PR exp/15364:
7482 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7483 STRUCTOP_PTR>: Return a not_lval value for
7484 EVAL_AVOID_SIDE_EFFECTS.
7485 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7486 for EVAL_AVOID_SIDE_EFFECTS.
7487
36d1c68c
JB
74882013-05-13 Joel Brobecker <brobecker@adacore.com>
7489
7490 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7491 floating point registers to register type before storing
7492 value.
7493 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7494 Likewise.
7495
21ff4686
TT
74962013-05-10 Joel Brobecker <brobecker@adacore.com>
7497 Tom Tromey <tromey@redhat.com>
7498
7499 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7500 New functions.
7501 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7502 Declare.
7503 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7504 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7505 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7506 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7507
d3685d60
TT
75082013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7509 Tom Tromey <tromey@redhat.com>
7510
7511 PR build/15414:
7512 * configure: Rebuild.
7513 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7514 with -Wno-format.
7515
eb9fe518
PA
75162013-05-10 Pedro Alves <palves@redhat.com>
7517
7518 * remote.c (_initialize_remote): Fix spelling of
7519 qXfer:traceframe-info:read packet in packet config command.
7520
9779ab84
PA
75212013-05-10 David Taylor <dtaylor@emc.com>
7522
7523 PR remote/15455
7524
7525 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7526 "QTro" at start of packet.
7527
060cfbef
JB
75282013-05-10 Joel Brobecker <brobecker@adacore.com>
7529
7530 * solib-aix.c (solib_aix_relocate_section_addresses):
7531 For the .bss section action, apply the same offset as
7532 the .data section.
7533
ab1c4e88
JB
75342013-05-10 Joel Brobecker <brobecker@adacore.com>
7535
7536 * solib-aix.c (solib_aix_relocate_section_addresses):
7537 Remove FIXME comment.
7538
c1357578
JB
75392013-05-10 Joel Brobecker <brobecker@adacore.com>
7540
7541 PR tdep/15420:
7542 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7543 New functions, directly copied from sparc-sol-thread.c.
7544 * sparc-sol-thread.c: Delete.
7545 * configure.ac: Remove code handling sparc-solaris-thread.c.
7546 * configure: Regenerate.
7547
1e611234
PM
75482013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7549
7550 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7551 filter logic.
7552 (backtrace_command): Add "no-filters" option parsing.
7553 (_initialize_stack): Alter help to reflect "no-filters" option.
7554 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7555 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7556 (py-frame.o): Add target
7557 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7558 filter files.
7559 * python/python.h: Add new frame filter constants, and flag enum.
7560 (apply_frame_filter): Add definition.
7561 * python/python.c (apply_frame_filter): New non-Python
7562 enabled function.
7563 * python/py-utils.c (py_xdecref): New function.
7564 (make_cleanup_py_xdecref): Ditto.
7565 * python/py-objfile.c: Declare frame_filters dictionary.
7566 (objfpy_dealloc): Add frame_filters dealloc.
7567 (objfpy_new): Initialize frame_filters attribute.
7568 (objfile_to_objfile_object): Ditto.
7569 (objfpy_get_frame_filters): New function.
7570 (objfpy_set_frame_filters): New function.
7571 * python/py-progspace.c: Declare frame_filters dictionary.
7572 (pspy_dealloc): Add frame_filters dealloc.
7573 (pspy_new): Initialize frame_filters attribute.
7574 (pspacee_to_pspace_object): Ditto.
7575 (pspy_get_frame_filters): New function.
7576 (pspy_set_frame_filters): New function.
7577 * python/py-framefilter.c: New file.
7578 * python/lib/gdb/command/frame_filters.py: New file.
7579 * python/lib/gdb/frames.py: New file.
7580 * python/lib/gdb/__init__.py: Initialize global frame_filters
7581 dictionary
7582 * python/lib/gdb/FrameDecorator.py: New file.
7583 * python/lib/gdb/FrameIterator.py: New file.
7584 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7585 * mi/mi-cmds.h: Declare.
7586 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7587 --no-frame-filter logic, and Python frame filter logic.
7588 (stack_enable_frame_filters): New function.
7589 (parse_no_frame_option): Ditto.
7590 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7591 filter logic.
7592 (mi_cmd_stack_list_locals): Ditto.
7593 (mi_cmd_stack_list_args): Ditto.
7594 (mi_cmd_stack_list_variables): Ditto.
7595 * NEWS: Add frame filter note.
7596
2cb9c859
DE
75972013-05-09 Doug Evans <dje@google.com>
7598
6bf667bb
DE
7599 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7600 All callers updated.
7601 (syms_from_objfile): Ditto. Make static.
7602 (symbol_file_add_with_addrs): Renamed from
7603 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7604 num_offsets. All callers updated.
7605 * symfile.h (syms_from_objfile): Delete.
7606
2cb9c859
DE
7607 * symfile.c (decrement_reading_symtab): Add assert.
7608 (increment_reading_symtab): Ditto.
7609
40aea477
JB
76102013-05-09 Joel Brobecker <brobecker@adacore.com>
7611
7612 * source.c (forward_search_command): Replace call to getc
7613 by call to fgetc.
7614 (reverse_search_command): Likewise.
7615
680d1742
DE
76162013-05-08 Doug Evans <dje@google.com>
7617
7618 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7619 matching test.
7620
17e760ae
JB
76212013-05-08 Joel Brobecker <brobecker@adacore.com>
7622
7623 * sol-thread.c (info_cb): Factorize the code a little.
7624
c0f5f490
JB
76252013-05-08 Joel Brobecker <brobecker@adacore.com>
7626
7627 * sol-thread.c (info_cb): Rework the output of the "maintenance
7628 info sol-threads" command a bit.
7629
5d74e061
JB
76302013-05-08 Joel Brobecker <brobecker@adacore.com>
7631
7632 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7633 Replace ti.ti_startfunc by ti.ti_pc.
7634
814a3ff7
JB
76352013-05-08 Joel Brobecker <brobecker@adacore.com>
7636
7637 * solib-aix.c (solib_aix_free_library_list): New function
7638 for the case where HAVE_LIBEXPAT is not defined.
7639
58ce7251
SDJ
76402013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7641
7642 PR breakpoints/15413:
7643 * breakpoint.c (condition_completer): Simplify the code to
7644 disconsider multiple locations of breakpoints when completing the
7645 "condition" command.
7646
be8b1ea6
PM
76472013-05-07 Pierre Muller <muller@sourceware.org>
7648
7649 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7650 instead of <sys/wait.h>.
7651
1e52bda6
PM
76522013-05-07 Pierre Muller <muller@sourceware.org>
7653
7654 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7655 trailing new line from warning message.
7656
27fd0c6b
PM
76572013-05-07 Pierre Muller <muller@sourceware.org>
7658
7659 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7660 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7661
e228ac87
JB
76622013-05-07 Joel Brobecker <brobecker@adacore.com>
7663
7664 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7665 error message (ARI fix).
7666
76672013-05-07 Joel Brobecker <brobecker@adacore.com>
7668
7669 * features/library-list-aix.dtd: Replace library-list by
7670 library-list-aix.
7671 * rs6000-nat.c: Replace library-list by library-list-aix
7672 throughout.
7673 * solib-aix.c: Likewise.
7674
76752013-05-07 Joel Brobecker <brobecker@adacore.com>
7676
7677 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7678 Renames TARGET_OBJECT_AIX_LIBRARIES.
7679 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7680 TARGET_OBJECT_LIBRARIES_AIX throughout.
7681 * solib-aix.c: Likwise.
7682
26a4dda9
YQ
76832013-05-07 Yao Qi <yao@codesourcery.com>
7684
7685 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7686 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7687
3582629f
YQ
76882013-05-07 Yao Qi <yao@codesourcery.com>
7689
7690 * solib-dsbt.c (enable_break): Declare.
7691 (dsbt_current_sos): Remove call to enable_break2.
7692 (enable_break2): Rename to enable_break. Set solib breakpoint
7693 on '_dl_debug_state'.
7694 (enable_break): Remove.
7695
aacbb8a5
LM
76962013-05-07 Luis Machado <lgustavo@codesourcery.com>
7697
7698 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7699 debug state prior to replicating existing hardware watchpoints or
7700 breakpoints.
7701
0c013353
JK
77022013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 * gcore.c (gcore_create_callback): Ignore sections with
7705 separate_debug_objfile_backlink != NULL.
7706
a1217d97
SL
77072013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7708 Andrew Jenner <andrew@codesourcery.com>
7709 Chung-Lin Tang <cltang@codesourcery.com>
7710 Julian Brown <julian@codesourcery.com>
7711
7712 Based on the nios2-elf port from Altera Corporation.
7713
7714 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7715 nios2-linux-tdep.o.
7716 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7717 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7718 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7719 * nios2-tdep.h: New.
7720 * nios2-tdep.c: New.
7721 * nios2-linux-tdep.c: New.
7722 * features/Makefile (WHICH): Add nios2-linux.
7723 (nios2-linux-expedite): Set.
7724 * features/nios2-cpu.xml: New.
7725 * features/nios2.xml: New.
7726 * features/nios2-linux.xml: New.
7727 * features/nios2.c: New (autogenerated).
7728 * features/nios2-linux.c: New (autogenerated).
7729 * regformats/nios2-linux.dat: New (autogenerated).
7730 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7731 and commands.
7732
0892cb63
DE
77332013-05-06 Doug Evans <dje@google.com>
7734
3b7bacac
DE
7735 * symfile.c: Whitespace cleanup.
7736
0892cb63
DE
7737 * solist.h (struct target_so_ops): New member clear_so.
7738 * solib-svr4.c (svr4_clear_so): New function.
7739 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7740 * solib.c (clear_so): Renamed from free_so_symbols.
7741 All callers updated. Call target clear_so if it exists.
7742
40501e00
TT
77432013-05-06 Tom Tromey <tromey@redhat.com>
7744
7745 * ada-lang.c (ada_value_primitive_packed_val): Don't
7746 call value_incref.
7747 * value.c (set_value_parent): Incref the new parent and decref
7748 the old parent.
7749 (value_copy, value_primitive_field): Use set_value_parent.
7750
b6807d98
TT
77512013-05-06 Tom Tromey <tromey@redhat.com>
7752
7753 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7754 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7755 if needed.
7756 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7757 * dwarf2read.c (write_constant_as_bytes)
7758 (dwarf2_fetch_constant_bytes): New functions.
7759
3aef2284
TT
77602013-05-06 Tom Tromey <tromey@redhat.com>
7761
7762 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7763 parameters.
7764 (dwarf2_const_value_attr): Update.
7765
66f65e2b
TT
77662013-05-06 Tom Tromey <tromey@redhat.com>
7767
7768 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7769 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7770 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7771 Remove declaration.
7772
7919a973
TT
77732013-05-06 Tom Tromey <tromey@redhat.com>
7774
7775 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7776 objfile's obstack.
7777
a7bfba49
DE
77782013-05-06 Doug Evans <dje@google.com>
7779
3189cb12
DE
7780 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7781 * stabsread.h (process_one_symbol): Update declaration.
7782 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7783 * elfread.c (elf_symfile_relocate_probe): Ditto.
7784 * psymtab.c (relocate_psymtabs): Ditto.
7785 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7786 (objfile_relocate): Ditto.
7787 * objfiles.h (objfile_relocate): Update declaration.
7788 * symfile.c (relative_addr_info_to_section_offsets): Constify
7789 addrs parameter.
7790 (default_symfile_offsets): Ditto.
7791 (syms_from_objfile_1): Constify offsets parameter.
7792 (syms_from_objfile): Ditto.
7793 (symbol_file_add_with_addrs_or_offsets): Ditto.
7794 (symfile_map_offsets_to_segments): Constify data parameter.
7795 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7796 delta parameters of member relocate.
7797 (struct sym_probe_fns): Constify new_offsets,
7798 delta parameters of member sym_relocate_probe.
7799 (struct sym_fns): Constify section_addr_info parameter of member
7800 sym_offsets.
7801 (relative_addr_info_to_section_offsets): Update declaration.
7802 (default_symfile_offsets): Ditto.
7803 (syms_from_objfile): Ditto.
7804 (symfile_map_offsets_to_segments): Ditto.
7805
a7bfba49
DE
7806 * symfile.c (syms_from_objfile_1): Use correct section count when
7807 objfile->sf == NULL.
7808
5f8e0b8f
MF
78092013-05-06 Mike Frysinger <vapier@gentoo.org>
7810
7811 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7812
ea52d893
DE
78132013-05-06 Doug Evans <dje@google.com>
7814
7815 * psympriv.h (struct partial_symtab): Augment comment for member
7816 section_offsets.
7817
4d1eb6b4
JB
78182013-05-06 Joel Brobecker <brobecker@adacore.com>
7819
7820 Reimplement shared library support on ppc-aix...
7821 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7822 * features/library-list-aix.dtd: New file.
7823 * solib-aix.h, solib-aix.c: New file.
7824 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7825 (rs6000_find_toc_address_hook): Delete.
7826 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7827 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7828 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7829 "xml-utils.h".
7830 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7831 (vmap_symtab, fixup_breakpoints): Delete.
7832 (rs6000_xfer_shared_libraries): New function.
7833 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7834 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7835 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7836 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7837 (rs6000_xfer_shared_library): New function.
7838 (find_toc_address): Delete.
7839 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7840 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7841 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7842 before creating minimal symbol. Adjust function description
7843 accordingly.
7844 (scan_xcoff_symtab): Replace call to
7845 prim_record_minimal_symbol_and_info by call to
7846 record_minimal_symbol.
7847 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7848 around default_symfile_offsets.
7849 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7850 powerpc-aix targets.
7851 * config/rs6000/nm-rs6000.h: Delete.
7852 * config/powerpc/aix.mh (NAT_FILE): Delete.
7853 (NATDEPFILES): Remove xcoffsolib.o.
7854 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7855 (ALL_TARGET_OBS): Add solib-aix.o.
7856 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7857 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7858 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7859 * xcoffsolib.h, xcoffsolib.c: Delete.
7860
7861 * solib.c (reload_shared_libraries): Remove reference to
7862 SOLIB_CREATE_INFERIOR_HOOK.
7863 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7864 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7865 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7866 comment.
7867 * corelow.c (deprecated_core_resize_section_table): Delete.
7868 * exec.c: Remove include of xcoffsolib.h".
7869 (map_vmap, vmap): Delete.
7870 (exec_close_1): Remove references to vmap.
7871 (exec_file_attach): Remove vmap handling code, and reference
7872 to DEPRECATED_IBM6000_TARGET.
7873 (bfdsec_to_vmap): Delete.
7874 (exec_files_info): Remove block of code handling VMAP.
7875 * infcmd.c (post_create_inferior): Remove reference to
7876 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7877 * infrun.c (follow_exec): Remove reference to
7878 SOLIB_CREATE_INFERIOR_HOOK.
7879 * stack.c (print_frame): Remove reference to PC_SOLIB.
7880 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7881 (dsbt_relocate_main_executable): Likewise.
7882 * solib-frv.c (frv_current_sos): Likewise.
7883
0c4f667c
JB
78842013-05-06 Joel Brobecker <brobecker@adacore.com>
7885
7886 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7887 to target_write_memory and target_read_memory.
7888
726ce67c
JB
78892013-05-06 Joel Brobecker <brobecker@adacore.com>
7890
7891 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7892 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7893
c8c9911f
JB
78942013-05-06 Joel Brobecker <brobecker@adacore.com>
7895
7896 * darwin-nat.c: Replace all "%x" instances in format strings
7897 into "0x%x" throughout.
7898
fda184b6
JB
78992013-05-06 Joel Brobecker <brobecker@adacore.com>
7900
7901 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7902 gdb_assert by call to MACH_CHECK_ERROR.
7903 (darwin_attach_pid): Raise an error rather than a failed
7904 assertion when various system calls failed. Report a warning
7905 instead of raising a failed assertion when PREV_NOT is not NULL
7906 after call to mach_port_request_notification.
7907 (darwin_ptrace_me): Raise an error rather than a failed
7908 assertion when read returns nonzero.
7909
d1d69afb
JB
79102013-05-06 Joel Brobecker <brobecker@adacore.com>
7911
7912 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7913
dc90b24d
JK
79142013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7915
7916 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7917
faab9922
JK
79182013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7919
7920 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7921 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7922 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7923 a stale cleanup. Fix double free of NAME.
7924
e0ea48a0
EZ
79252013-05-04 Eli Zaretskii <eliz@gnu.org>
7926
7927 * windows-nat.c (windows_delete_thread): Accept an additional
7928 argument, the thread's exit code, and announce thread death when
7929 print_thread_events is non-zero and we are deleting a thread that
7930 is not the main thread.
7931 (get_windows_debug_event): Pass thread exit code to
7932 windows_delete_thread.
7933
83b2706a
KB
79342013-05-03 Kevin Buettner <kevinb@redhat.com>
7935
7936 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7937 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7938 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7939 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7940 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7941 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7942 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7943 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7944 (gdbarch_tdep): New struct.
7945 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7946 E_NUM_REGS.
7947 (v850e3v5_register_name): New function.
7948 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7949 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7950 code handling the struct return conventions for the RH850 ABI.
7951 Update all callers.
7952 (v850_eight_byte_align_p): New function.
7953 (v850_push_call_dummy): Push structs by value, not by reference
7954 for the RH850 ABI. Add support for eight byte alignment.
7955 (v850_dbtrap_breakpoint_from_pc): New function.
7956 (v850_gdbarch_init): Add ABI detection code. Register
7957 v850e3v5_register_name for the v850e3v5 architecture. Set the
7958 number of registers for v850e3v5. Register
7959 v850_dbtrap_breakpoint_from_pc as appropriate.
7960 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7961
d445b2f6
DE
79622013-05-03 Doug Evans <dje@google.com>
7963
7964 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7965 of bfd_count_sections.
7966 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7967 * symfile.c (default_symfile_offsets): Ditto.
7968 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7969 one entry, not bfd_count_sections entries.
7970
b3ce41ea
KB
79712013-05-03 Kevin Buettner <kevinb@redhat.com>
7972
7973 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7974 `save' and `restore' register groups. Don't include SPL
7975 or SPH in these groups.
7976 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7977 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7978 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7979 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7980 dwarf2_append_unwinders().
7981
96f7d3f1
PW
79822013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7983
7984 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7985 ignore SIGINT and SIGTRAP in case these internal signals are
7986 caught explicitely.
7987
b9dd1947
JB
79882013-05-01 Joel Brobecker <brobecker@adacore.com>
7989
7990 * darwin-nat.c (darwin_read_write_inferior): Change types
7991 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7992 of copy_count to "mach_msg_type_number_t".
7993 (darwin_read_dyld_info): Change type of parameter
7994 rdaddr to "gdb_byte *".
7995
4ca18a63
JB
79962013-05-01 Joel Brobecker <brobecker@adacore.com>
7997
7998 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7999 of &info->load_map from "char *" to "gdb_byte *".
8000
2b692d32
JB
80012013-05-01 Joel Brobecker <brobecker@adacore.com>
8002
8003 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8004 from "char *" to "gdb_byte *".
8005 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8006
a98c29a0
DE
80072013-04-30 Doug Evans <dje@google.com>
8008
6a506a2d
DE
8009 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8010 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8011 DWO stub. If DWO isn't found, just use stub.
8012 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8013
a98c29a0
DE
8014 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8015 calling init_cutu_and_read_dies.
8016
f92b06da
WT
80172013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8018
8019 * target-descriptions.c (maint_print_c_tdesc_cmd):
8020 Add case to parse structures as register types and
8021 bitfields.
8022
95eebdcc
WT
80232013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8024
8025 * MAINTAINERS (Write After Approval): Add myself to the list.
8026
019c1128
JB
80272013-04-30 Joel Brobecker <brobecker@adacore.com>
8028
8029 * sol-thread.c (rw_common): Change type of parameter "buf"
8030 to "gdb_byte *".
8031 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8032 rw_common to "gdb_byte *" instead of "char *".
8033
5812197c
JB
80342013-04-30 Joel Brobecker <brobecker@adacore.com>
8035
8036 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8037 of local variable msym to const struct bound_minimal_symbol.
8038 Adjust use accordingly.
8039 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8040
ecccb813
TS
80412013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8042
8043 * i386gnu-nat.c (CREG_OFFSET): New macro.
8044 (creg_offset): New array.
8045 (CREG_ADDR): Use creg_offset instead of reg_offset.
8046
f1d02dd4 80472013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
8048
8049 * mep-tdep.c (mep_write_pc): Delete.
8050 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8051 Add call to set_gdbarch_pc_regnum.
8052
f1d02dd4 80532013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
8054
8055 * common/filestuff.c: Replace #include <dirent.h> by
8056 #include "gdb_dirent.h".
8057
f1d02dd4 80582013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
8059
8060 * common/filestuff.c: Replace #include <sys/stat.h> by
8061 #include "gdb_stat.h".
8062
b385a60d
PM
80632013-04-29 Pierre Muller <muller@sourceware.org>
8064
8065 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8066 editCase function rule.
8067 (get_DW_AT_signature_type): Likewise.
8068
d27b54ad
JB
80692013-04-29 Joel Brobecker <brobecker@adacore.com>
8070
8071 * m32r-tdep.c (m32r_write_pc): Delete.
8072 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8073 Add call to set_gdbarch_pc_regnum.
8074
47d21dc5
PM
80752013-04-29 Pierre Muller <muller@sourceware.org>
8076
8077 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8078
9056882e
JB
80792013-04-29 Joel Brobecker <brobecker@adacore.com>
8080
8081 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8082
7ee4732a
YQ
80832013-04-28 Yao Qi <yao@codesourcery.com>
8084
8085 * solib-dsbt.c (fetch_loadmap): Re-indent.
8086 (displacement_from_map, enable_break2): Likewise.
8087 (dsbt_relocate_section_addresses): Likewise.
8088
2260af53 80892013-04-26 Joel Brobecker <brobecker@adacore.com>
8090
8091 GDB 7.6 released.
8092
ff546935
TT
80932013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8094
8095 PR corefiles/14983:
8096 * dwarf2read.c (process_full_comp_unit): Always create a static
8097 block.
8098
40fb6c5e
HZ
80992013-04-25 Hui Zhu <hui@codesourcery.com>
8100
8101 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8102 to loc->cmd_bytecode.
8103
74e04d1c
DE
81042013-04-24 Doug Evans <dje@google.com>
8105
8106 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8107
3cf62c1d
KS
81082013-04-22 Keith Seitz <keiths@redhat.com>
8109
8110 * tracepoint.c (trace_save): Call the writer's start method.
8111
bf9e4d0c
MB
81122013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8113
8114 PR gdb/10462
8115 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8116 before argument.
8117
5d71132c
TT
81182013-04-23 Tom Tromey <tromey@redhat.com>
8119
8120 * common/filestuff.c: Check USE_WIN32API before including
8121 sys/socket.h.
8122 (HAVE_F_GETFD): New define.
8123 (mark_cloexec): Check HAVE_F_GETFD.
8124 (gdb_open_cloexec): Change 'mode' to unsigned long.
8125 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8126 (gdb_pipe_cloexec): Check HAVE_PIPE.
8127 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8128 long.
8129
a11cfd87
HZ
81302013-04-23 Hui Zhu <hui@codesourcery.com>
8131
8132 PR gdb/15293
a11cfd87
HZ
8133 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8134
2d9442cc
HZ
81352013-04-23 Hui Zhu <hui@codesourcery.com>
8136
8137 PR gdb/15165
2d9442cc
HZ
8138 * breakpoint.c (dprintf_print_recreate): New.
8139 (save_breakpoints): Let it not save dprintf commands.
8140 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8141
614c279d
TT
81422013-04-22 Tom Tromey <tromey@redhat.com>
8143
8144 PR gdb/7912:
8145 * Makefile.in (SFILES): Add filestuff.c
8146 (COMMON_OBS): Add filestuff.o.
8147 (filestuff.o): New target.
8148 * auto-load.c (auto_load_objfile_script_1): Use
8149 gdb_fopen_cloexec.
8150 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8151 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8152 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8153 * common/agent.c (gdb_connect_sync_socket): Use
8154 gdb_socket_cloexec.
8155 * common/filestuff.c: New file.
8156 * common/filestuff.h: New file.
8157 * common/linux-osdata.c (linux_common_core_of_thread)
8158 (command_from_pid, commandline_from_pid, print_source_lines)
8159 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8160 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8161 gdb_fopen_cloexec.
8162 * common/linux-procfs.c (linux_proc_get_int)
8163 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8164 * config.in, configure: Rebuild.
8165 * configure.ac: Don't check for sys/socket.h. Check for
8166 fdwalk, pipe2.
8167 * corelow.c (core_open): Use gdb_open_cloexec.
8168 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8169 * fork-child.c (fork_inferior): Call close_most_fds.
8170 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8171 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8172 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8173 Use gdb_fopen_cloexec.
8174 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8175 gdb_open_cloexec.
8176 (linux_async_pipe): Use gdb_pipe_cloexec.
8177 * remote-fileio.c (remote_fileio_func_open): Use
8178 gdb_open_cloexec.
8179 * remote.c (remote_file_put, remote_file_get): Use
8180 gdb_fopen_cloexec.
8181 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8182 close_most_fds.
8183 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8184 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8185 * solib.c (solib_find): Use gdb_open_cloexec.
8186 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8187 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8188 (tfile_open): Use gdb_open_cloexec.
8189 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8190 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8191 * xml-support.c (xml_fetch_content_from_file): Use
8192 gdb_fopen_cloexec.
8193 * main.c (captured_main): Call notice_open_fds.
8194
5fda2332
EBM
81952013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8196
8197 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8198 'char *' to 'gdb_byte *'.
8199 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8200 'gdb_byte'.
8201
eb6c553b
YQ
82022013-04-22 Yao Qi <yao@codesourcery.com>
8203
8204 * infrun.c: Fix typo in comment.
8205
9991b207
SDJ
82062013-04-22 Andrew Haley <aph@redhat.com>
8207
8208 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8209 instead of "long".
8210
8b4833e3
YQ
82112013-04-20 Yao Qi <yao@codesourcery.com>
8212
8213 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8214 'char *' to 'gdb_byte *'. Cast the return value of
8215 'bt_ctf_get_char_array' to 'gdb_byte *'.
8216
bd3f3b55
PA
82172013-04-19 Pedro Alves <palves@redhat.com>
8218
8219 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8220 -Wpointer-sign.
8221 * configure: Regenerate.
8222
c49e7f76
PA
82232013-04-19 Pedro Alves <palves@redhat.com>
8224
8225 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8226 'void *'.
8227
12ff8552
PA
82282013-04-19 Pedro Alves <palves@redhat.com>
8229
8230 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8231 Change type of 'myaddr' parameter to gdb_byte pointer.
8232 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8233 to 'long long' pointer instead of to 'unsigned long long'.
8234 (monitor_write_memory_block, monitor_read_memory_single)
8235 (monitor_read_memory): Change type of 'myaddr' parameter to
8236 gdb_byte pointer.
8237
9c37696b
PA
82382013-04-19 Pedro Alves <palves@redhat.com>
8239
8240 * record.c (validate_history_size): Make parameter 'setting'
8241 unsigned.
8242
a398505b
PA
82432013-04-19 Pedro Alves <palves@redhat.com>
8244
8245 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8246 to 'gdb_byte *'.
8247
9f8afa72
PA
82482013-04-19 Pedro Alves <palves@redhat.com>
8249
8250 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8251 local to int.
8252
c714b426
PA
82532013-04-19 Pedro Alves <palves@redhat.com>
8254
8255 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8256 * ada-tasks.c (read_fat_string_value): Likewise.
8257
507a579c
PA
82582013-04-19 Pedro Alves <palves@redhat.com>
8259
8260 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8261 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8262 'offset', and adjust.
8263
f9d83a0b
PA
82642013-04-19 Pedro Alves <palves@redhat.com>
8265
8266 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8267 (read_index_from_section): Add cast to 'char *'.
8268
745eb4fd
PA
82692013-04-19 Pedro Alves <palves@redhat.com>
8270
8271 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8272
db5be46f
PA
82732013-04-19 Pedro Alves <palves@redhat.com>
8274
8275 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8276
0f928d68
PA
82772013-04-19 Pedro Alves <palves@redhat.com>
8278
8279 * record-full.c (record_full_get_bookmark): Change local 'ret'
8280 type to char * and add cast to gdb_byte *.
8281 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8282 string.
8283 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8284
89f6d837
PA
82852013-04-19 Pedro Alves <palves@redhat.com>
8286
8287 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8288 * python/py-prettyprint.c (print_string_repr): Change type of
8289 'output' local to char *. Add cast to gdb_byte * in
8290 LA_PRINT_STRING call.
8291 (print_children): Change type of 'output' local to char *.
8292 * python/py-value.c (valpy_string): Add cast to const char * in
8293 PyUnicode_Decode call.
8294
ce6ec7d8
PA
82952013-04-19 Pedro Alves <palves@redhat.com>
8296
8297 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8298 and change its type to 'const char *'. Adjust.
8299 (mips_send_packet): Add cast to 'char *', and remove cast to
8300 'unsigned char *'.
8301 (mips_receive_packet): Remove cast to 'unsigned char *'.
8302 (mips_load_srec): Use bfd_byte.
8303 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8304 (pmon_checkset): Make 'value' parameter unsigned.
8305
fda0389f
PA
83062013-04-19 Pedro Alves <palves@redhat.com>
8307
8308 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8309
bc20a4af
PA
83102013-04-19 Pedro Alves <palves@redhat.com>
8311
8312 * remote.c (remote_write_bytes_aux, compare_sections_command)
8313 (remote_read_qxfer)
8314 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8315 (remote_hostio_readlink, remote_bfd_iovec_pread)
8316 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8317 binary buffer, and char when buffer is used as string.
8318 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8319 (trace_save, tfile_open, traceframe_walk_blocks)
8320 (tfile_fetch_registers): Likewise.
8321
c628b528
PA
83222013-04-19 Pedro Alves <palves@redhat.com>
8323
8324 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8325 buffer and size_t size. Adjust.
8326 * ser-base.h (ser_base_write): Adjust.
8327 * ser-go32.c (cnts): Change type to size_t.
8328 (dos_write): Change prototype -- take 'void *'
8329 buffer and size_t size. Adjust.
8330 (dos_info): Print elements of 'cnts' as unsigned long.
8331 * serial.c (serial_write): Likewise.
8332 * serial.h (serial_write): Adjust.
8333 (struct serial_ops) <write>: Change prototype -- take 'void *'
8334 buffer and size_t size. Adjust.
8335
51a5cd90
PA
83362013-04-19 Pedro Alves <palves@redhat.com>
8337
8338 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8339 gdb_byte *.
8340 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8341
a9933661
PA
83422013-04-19 Pedro Alves <palves@redhat.com>
8343
8344 * alpha-tdep.c (alpha_extract_return_value): Use
8345 regcache_cooked_read_unsigned to read 'v0'.
8346
19afdd07
PA
83472013-04-19 Pedro Alves <palves@redhat.com>
8348
8349 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8350 parameters 'at', 'as' and 'offset' to uint32_t.
8351
96b32e50
PA
83522013-04-19 Pedro Alves <palves@redhat.com>
8353
8354 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8355 'is64' to signed 'int'.
8356
eb1bd1fb
PA
83572013-04-19 Pedro Alves <palves@redhat.com>
8358
8359 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8360 parameter to int *.
8361
463920bf
PA
83622013-04-19 Pedro Alves <palves@redhat.com>
8363
8364 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8365 'insnbuf' buffer type to unsigned int[].
8366
70242eb1
PA
83672013-04-19 Pedro Alves <palves@redhat.com>
8368
8369 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8370
9d1dd0e2
PA
83712013-04-19 Pedro Alves <palves@redhat.com>
8372
8373 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8374 unsigned long *.
8375
44096aee
PA
83762013-04-19 Pedro Alves <palves@redhat.com>
8377
8378 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8379 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8380 UINT_MAX.
8381 * mips-tdep.c (heuristic_fence_post): Change type to int.
8382 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8383
e4286e57
PA
83842013-04-19 Pedro Alves <palves@redhat.com>
8385
8386 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8387 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8388 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8389
001f13d8
PA
83902013-04-19 Pedro Alves <palves@redhat.com>
8391
8392 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8393 it to get a string view of the byte buffer.
8394 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8395 type to gdb_byte *. Adjust.
8396 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8397 Change local to char *.
8398 * solib-darwin.c (find_program_interpreter): Change return type to
8399 char *. Adjust.
8400 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8401 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8402 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8403 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8404 * solib-svr4.c (find_program_interpreter): Change return type to
8405 char *. Adjust.
8406 (enable_break): Change local 'interp_name' to char *.
8407 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8408 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8409 (spu_pseudo_register_write_spu): Use char for string buffer.
8410 Adjust.
8411 (info_spu_event_command, info_spu_signal_command): Add casts to
8412 'char *'.
8413
948f8e3d
PA
84142013-04-19 Pedro Alves <palves@redhat.com>
8415
8416 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8417 gdb_byte[].
8418 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8419 * ada-lang.c (ada_value_assign): Use gdb_byte.
8420 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8421 (alphanbsd_sigtramp_offset): Use gdb_byte.
8422 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8423 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8424 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8425 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8426 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8427 * arm-tdep.c (arm_stub_unwind_sniffer)
8428 (arm_displaced_init_closure): Use gdb_byte.
8429 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8430 (arm_default_thumb_le_breakpoint)
8431 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8432 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8433 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8434 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8435 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8436 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8437 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8438 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8439 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8440 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8441 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8442 (cris_store_return_value, cris_extract_return_value): Use
8443 gdb_byte.
8444 (constraint): Change type of parameter to char * from signed
8445 char*. Use gdb_byte.
8446 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8447 of local buffer to gdb_byte *.
8448 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8449 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8450 (add_address_entry): Change type of local buffer to gdb_byte[].
8451 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8452 (frv_push_dummy_call): Use gdb_byte.
8453 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8454 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8455 (hppa_hpux_supply_save_state): Use gdb_byte.
8456 * hppa-tdep.c (hppa32_push_dummy_call)
8457 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8458 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8459 (slotN_contents, replace_slotN_contents): Change type of parameter
8460 to gdb_byte *.
8461 (fetch_instruction, ia64_pseudo_register_write)
8462 (ia64_register_to_value, ia64_value_to_register)
8463 (ia64_extract_return_value, ia64_store_return_value)
8464 (ia64_push_dummy_call): Use gdb_byte.
8465 * m32c-tdep.c (m32c_return_value): Remove cast.
8466 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8467 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8468 gdb_byte.
8469 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8470 * mn10300-tdep.c (mn10300_store_return_value)
8471 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8472 gdb_byte.
8473 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8474 (moxie_process_record): Remove casts.
8475 * ppc-ravenscar-thread.c (supply_register_at_address)
8476 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8477 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8478 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8479 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8480 * remote.c (compare_sections_command): Use gdb_byte.
8481 * score-tdep.c (score7_free_memblock): Change type of parameter to
8482 gdb_byte *.
8483 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8484 gdb_byte *. Use gdb_byte.
8485 (sh_push_dummy_call_fpu): Use gdb_byte.
8486 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8487 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8488 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8489 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8490 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8491 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8492 (sh64_store_return_value, sh64_register_convert_to_virtual):
8493 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8494 (sh64_pseudo_register_write): Use gdb_byte.
8495 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8496 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8497 buffer.
8498 (irix_current_sos): Use gdb_byte.
8499 * solib-som.c (som_current_sos): Use gdb_byte.
8500 * sparc-ravenscar-thread.c (supply_register_at_address)
8501 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8502 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8503 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8504 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8505 'gdb_byte *'.
8506 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8507 'gdb_byte *'.
8508 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8509 * xstormy16-tdep.c (xstormy16_extract_return_value)
8510 (xstormy16_store_return_value): Change parameter type to
8511 'gdb_byte *'. Adjust.
8512 (xstormy16_push_dummy_call): Use gdb_byte.
8513 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8514 (call0_analyze_prologue, execute_code): Use gdb_byte.
8515
433730c9
PA
85162013-04-19 Vladimir Kargov <kargov@gmail.com>
8517 Pedro Alves <palves@redhat.com>
8518
8519 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8520 value contents.
8521
ac9ec31b
DE
85222013-04-17 Doug Evans <dje@google.com>
8523
8524 * dwarf2read.c (struct signatured_type): New member type.
8525 (struct attribute): Replace member signatured_type with signature.
8526 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8527 (read_call_site_scope): Call follow_die_ref instead of
8528 follow_die_ref_or_sig.
8529 (read_structure_type): Rewrite handling of signatured types.
8530 (read_enumeration_type): Ditto.
8531 (read_attribute_value): Update.
8532 (build_error_marker_type): New function.
8533 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8534 Don't call error for bad types, just build an error marker type.
8535 (dump_die_shallow): Update.
8536 (follow_die_sig_1): Renamed from follow_die_sig.
8537 Don't call error for bad types, instead return NULL.
8538 (follow_die_sig): New function.
8539 (get_signatured_type, get_DW_AT_signature_type): New functions.
8540
e546e8bb
YZ
85412013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8542
8543 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
8544 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8545 function.
e546e8bb 8546
ab116149
YQ
85472013-04-17 Yao Qi <yao@codesourcery.com>
8548
8549 * top.c (print_gdb_configuration): Print configure-time
8550 parameter on using libbabeltrace or not.
8551
488a42b8
PA
85522013-04-16 Pedro Alves <palves@redhat.com>
8553
8554 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8555
f5fb825b
PA
85562013-04-16 Pedro Alves <palves@redhat.com>
8557
85d494ea 8558 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
8559 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8560
e1154999
PA
85612013-04-16 Pedro Alves <palves@redhat.com>
8562
8563 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8564 * common/glibc_thread_db.h: ... this new file ...
8565 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8566
e3b50a7f
PA
85672013-04-16 Will Newton <will.newton@gmail.com>
8568 Pedro Alves <palves@redhat.com>
8569
8570 PR build/11881
8571
8572 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8573 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8574 HAVE_THREAD_DB_H.
8575
1c2e4450
PA
85762013-04-16 Pedro Alves <palves@redhat.com>
8577 Eli Zaretskii <eliz@gnu.org>
8578
8579 * NEWS: Mention "set foo unlimited".
8580
4031ecc5
DE
85812013-04-15 Doug Evans <dje@google.com>
8582
19c3d4c9
DE
8583 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8584 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8585 (create_dwo_cu_reader): Renamed from
8586 create_dwo_debug_info_hash_table_reader.
8587 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8588 Remove support for multiple CUs in a DWO file.
8589 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8590
4031ecc5
DE
8591 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8592 instead of phex.
8593 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8594 (create_dwo_in_dwp): Ditto.
8595
b340913d
TT
85962013-04-15 Tom Tromey <tromey@redhat.com>
8597
8598 * NEWS: Move recent entries into "since 7.6" section.
8599
cc16e6c9
TT
86002013-04-15 Tom Tromey <tromey@redhat.com>
8601
8602 PR c++/13588:
8603 * NEWS: Update.
8604 * break-catch-throw.c (struct exception_catchpoint)
8605 <exception_rx, pattern>: New fields.
8606 (fetch_probe_arguments, dtor_exception_catchpoint)
8607 (check_status_exception_catchpoint)
8608 (print_one_detail_exception_catchpoint): New functions.
8609 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8610 Compile regular expression if needed.
8611 (extract_exception_regexp): New function.
8612 (catch_exception_command_1): Use extract_exception_regexp.
8613 (compute_exception): Use fetch_probe_arguments.
8614 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8615 and check_status fields.
8616 * cp-abi.c (cplus_typename_from_type_info): New function.
8617 * cp-abi.h (cplus_typename_from_type_info): Declare.
8618 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8619 * gdb_regex.h (compile_rx_or_error): Declare.
8620 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8621 comment.
8622 (init_gnuv3_ops): Set get_type_from_type_info field.
8623 * probe.c (compile_rx_or_error): Move...
8624 * utils.c (compile_rx_or_error): ... here.
8625
72f1fe8a
TT
86262013-04-15 Tom Tromey <tromey@redhat.com>
8627
8628 PR c++/15176:
8629 * NEWS: Update.
8630 * break-catch-throw.c (compute_exception): New function.
8631 (exception_funcs): New global.
8632 (_initialize_break_catch_throw): Create $_exception.
8633 * cp-abi.c (cplus_type_from_type_info): New function.
8634 * cp-abi.h (cplus_type_from_type_info): Declare.
8635 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8636 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8637 (gnuv3_get_type_from_type_info): New functions.
8638 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8639
fc4746a2
TT
86402013-04-15 Tom Tromey <tromey@redhat.com>
8641
8642 * break-catch-throw.c (struct exception_names): New.
8643 (exception_functions): Change type.
8644 (re_set_exception_catchpoint): Look for SDT probes.
8645
15a73f56
TT
86462013-04-15 Tom Tromey <tromey@redhat.com>
8647
8648 PR c++/10119:
8649 * break-catch-throw.c (exception_functions): New global.
8650 (gnu_v3_exception_catchpoint_ops): Move earlier.
8651 (struct exception_catchpoint): New.
8652 (classify_exception_breakpoint): Rewrite.
8653 (re_set_exception_catchpoint): New function.
8654 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8655 Allocate a struct exception_catchpoint.
8656 (catch_exception_command_1): Update.
8657 (initialize_throw_catchpoint_ops): Set 're_set' method.
8658
916703c0
TT
86592013-04-15 Tom Tromey <tromey@redhat.com>
8660
8661 * Makefile.in (SFILES): Add break-catch-throw.c
8662 (COMMON_OBS): Add break-catch-throw.o.
8663 * break-catch-throw.c: New file.
8664 * breakpoint.c: Move exception-catching code to new file.
8665 (ep_parse_optional_if_clause): No longer static.
8666 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8667
6e72ca20
TT
86682013-04-15 Tom Tromey <tromey@redhat.com>
8669
8670 PR c++/9065:
8671 * NEWS: Update.
8672 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8673 * c-exp.y (TYPEID): New token.
8674 (exp): Add new TYPEID productions.
8675 (ident_tokens): Add "typeid".
8676 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8677 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8678 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8679 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8680 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8681 case.
8682 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8683 (build_std_type_info_type, gnuv3_get_typeid_type)
8684 (gnuv3_get_typeid): New functions.
8685 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8686 new fields on ABI object.
8687 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8688 * std-operator.def (OP_TYPEID): New.
8689
715c6909
TT
86902013-04-15 Tom Tromey <tromey@redhat.com>
8691
8692 * elfread.c (elf_symtab_read): Install versioned symbol under
8693 unversioned name as well.
8694
8de20a37
TT
86952013-04-15 Tom Tromey <tromey@redhat.com>
8696
8697 PR c++/11990:
8698 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8699 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8700 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8701 (gdb_demangle): New function.
8702 * cp-support.h (gdb_demangle): Declare.
8703 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8704 (dwarf2_name): Use gdb_demangle.
8705 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8706 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8707 suffixes from name.
8708 (gnuv3_print_method_ptr): Use gdb_demangle.
8709 * jv-lang.c (java_demangle): Use gdb_demangle.
8710 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8711 * language.c (unk_lang_demangle): Use gdb_demangle.
8712 * symtab.c (symbol_find_demangled_name)
8713 (demangle_for_lookup): Use gdb_demangle.
8714
591f19e8
TT
87152013-04-15 Tom Tromey <tromey@redhat.com>
8716
8717 PR c++/12824:
8718 * NEWS: Update.
8719 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8720 New constant.
8721 (classify_exception_breakpoint): New function.
8722 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8723 (print_mention_exception_catchpoint)
8724 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8725 (catch_exception_command_1): Handle "rethrow" catchpoint.
8726 (catch_rethrow_command): New function.
8727 (_initialize_breakpoint): Add "catch rethrow" command.
8728
4d40cad2
PM
87292013-04-15 Pierre Muller <muller@sourceware.org>
8730
8731 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8732 set_gdbarch_write_pc as deprecated anymore.
8733
30bcb456
JB
87342013-04-15 Joel Brobecker <brobecker@adacore.com>
8735
8736 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8737 declarations.
8738
da9160e4
YQ
87392013-04-13 Yao Qi <yao@codesourcery.com>
8740
8741 * ctf.c (_initialize_ctf): Include "completer.h".
8742 Call add_target_with_completer instead of add_target.
8743
39ed5604
JK
87442013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8745
8746 Fix GDB regression related to PR binutils/14813.
8747 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8748 * minidebug.c (lzma_close): Add return value comment.
8749 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8750 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8751 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8752
87532013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
8754
8755 * config.in: Regenerate.
8756
d521ce57
TT
87572013-04-12 Tom Tromey <tromey@redhat.com>
8758
8759 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8760 const.
8761 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8762 (struct die_reader_specs) <buffer>: Likewise.
8763 (die_reader_func_ftype): Make 'info_ptr' const.
8764 (struct line_header) <include_dirs, statement_program_start,
8765 statement_program_end>: Now const.
8766 (struct file_entry) <name>: Likewise.
8767 (struct partial_die_info) <sibling>: Likewise.
8768 (struct dwarf_block) <data>: Likewise.
8769 (dwarf2_read_section): Remove cast.
8770 (dwarf2_get_section_info): Make 'bufp' const.
8771 (read_index_from_section): Constify.
8772 (dw2_get_file_names_reader): Make 'info_ptr' const.
8773 (dw2_get_primary_filename_reader): Likewise.
8774 (read_comp_unit_head): Make 'info_ptr' and return type const.
8775 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8776 Likewise.
8777 (read_abbrev_offset): Constify.
8778 (dwarf2_create_include_psymtab): Make 'name' const.
8779 (create_debug_types_hash_table): Update.
8780 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8781 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8782 Constify.
8783 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8784 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8785 (read_comp_units_from_section): Constify.
8786 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8787 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8788 const.
8789 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8790 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8791 (create_dwp_hash_table, dwarf2_ranges_read)
8792 (dwarf2_record_block_ranges): Constify.
8793 (read_die_and_children, read_die_and_siblings_1)
8794 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8795 const.
8796 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8797 (abbrev_table_read_table): Constify.
8798 (load_partial_dies): Make 'info_ptr' const.
8799 (read_partial_die, read_attribute_value, read_attribute): Make
8800 'info_ptr' and return type const.
8801 (read_address, read_initial_length)
8802 (read_checked_initial_length_and_offset, read_offset)
8803 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8804 const.
8805 (read_direct_string): Make 'buf' and return type const.
8806 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8807 (read_indirect_string): Make return type const.
8808 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8809 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8810 'info_ptr' const.
8811 (read_str_index): Make return type const.
8812 (add_include_dir): Make 'include_dir' const.
8813 (add_file_name): Make 'name' const.
8814 (dwarf_decode_line_header): Constify.
8815 (psymtab_include_file_name): Make return type const.
8816 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8817 (dwarf2_start_subfile): Make 'filename' const.
8818 (dwarf2_const_value_attr): Make 'bytes' const.
8819 (read_signatured_type_reader): Make 'info_ptr' const.
8820 (decode_locdesc): Constify.
8821 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8822 const.
8823 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8824 'mac_end', and return type const.
8825 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8826 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8827 type const.
8828 (per_cu_header_read_in): Constify.
8829 * symfile.h (dwarf2_get_section_info): Update.
8830
d47a1bc1
TT
88312013-04-12 Tom Tromey <tromey@redhat.com>
8832
8833 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8834
6eaaf48b
EZ
88352013-04-12 Eli Zaretskii <eliz@gnu.org>
8836
fc4c25bf 8837 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
8838 * top.c (print_gdb_configuration): New function, displays the
8839 details about GDB configure-time parameters.
8840 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
8841 * cli/cli-cmds.c (show_configuration): New function.
8842 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
8843 * main.c (captured_main) <print_configuration>: New static var.
8844 <long_options>: Use it.
8845 If --configuration was given, call print_gdb_configuration.
8846
b292c783
JK
88472013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8848 Pedro Alves <palves@redhat.com>
8849
8850 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8851 (generated_files): Add gcore.
8852 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8853 HAVE_NATIVE_GCORE_HOST.
8854 (gcore): New.
8855 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8856 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8857 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8858 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8859 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8860 Add HAVE_NATIVE_GCORE_HOST.
8861 * configure: Regenerate.
8862 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8863 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8864 AC_CONFIG_FILES for gcore.
8865 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8866 gdb_have_gcore.
8867 * gdb_gcore.sh: Rename to ...
8868 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8869 and GCORE_TRANSFORM_NAME substitutions.
8870
c96b3c4f
JK
8871 Fix parsing tabs in ${gdb_target_obs}.
8872 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8873
d6cb50a2
JK
88742013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8875
8876 * remote.c (unpush_and_perror): Add output message final dot.
8877
cf2cb5ec
YQ
88782013-04-11 Yao Qi <yao@codesourcery.com>
8879
8880 * tracepoint.c (tfile_interp_line): Fit parameters line and
8881 utpp in one line.
8882
07293be4
JB
88832013-04-10 Joel Brobecker <brobecker@adacore.com>
8884
8885 * solib.c (solib_map_sections): Remove code overwriting
8886 SO->SO_NAME with the bfd's filename.
8887
f81d1120
PA
88882013-04-10 Pedro Alves <palves@redhat.com>
8889
8890 * cli/cli-decode.c (integer_unlimited_completer): New function.
8891 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8892 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8893 completer.
8894 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8895 (is_unlimited_literal): New function.
8896 (do_set_command): Handle literal "unlimited" arguments.
8897 * frame.c (_initialize_frame) <set backtrace limit>: Document
8898 "unlimited".
8899 * printcmd.c (_initialize_printcmd) <set print
8900 max-symbolic-offset>: Add help text.
8901 * record-full.c (_initialize_record_full) <set record full
8902 insn-number-max>: Likewise.
8903 * record.c (_initialize_record) <set record
8904 instruction-history-size, set record function-call-history-size>:
8905 Add help text.
8906 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8907 help text.
8908 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8909 Likewise.
8910 * source.c (_initialize_source) <set listsize>: Add help text.
8911 * utils.c (initialize_utils) <set height, set width>: Likewise.
8912 <set pagination>: Mention "set height unlimited".
8913 * valprint.c (_initialize_valprint) <set print elements, set print
8914 repeats>: Document "unlimited".
8915
2f9d54cf
PA
89162013-04-10 Pedro Alves <palves@redhat.com>
8917
8918 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8919 instead of disconnect_tracing.
8920 * infcmd.c (detach_command, disconnect_command): Call
8921 query_if_trace_running. Adjust.
8922 * top.c: Include "tracepoint.h".
8923 (quit_target): Delete. Contents moved ...
8924 (quit_force): ... here. Wrap each stage of teardown in
8925 TRY_CATCH. Call disconnect_tracing before detaching.
8926
393fd4c3
YQ
89272013-04-10 Hui Zhu <hui@codesourcery.com>
8928 Yao Qi <yao@codesourcery.com>
8929
8930 * configure.ac: Check libbabeltrace is installed.
8931 * config.in: Regenerate.
8932 * configure: Regenerate.
8933 * Makefile.in (LIBBABELTRACE): New.
8934 (CLIBS): Add LIBBABELTRACE.
8935 * ctf.c: Include "exec.h".
8936 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8937 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8938 (ctf_save_metadata_header): Define new type aliases in
8939 metadata.
8940 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8941 in metadata. Start a new faked packet for trace status.
8942 (ctf_write_status): Write trace status to CTF.
8943 (ctf_write_uploaded_tsv): Write TSV to CTF.
8944 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8945 (ctf_write_definition_end): End the faked packet.
8946
8947 (ctx, ctf_iter, trace_dirname): New.
8948 (start_pos): New variable.
8949 (ctf_destroy, ctf_open_dir, ctf_open): New.
8950 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8951 macros.
8952 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8953 (ctf_fetch_registers, ctf_xfer_partial): New.
8954 (ctf_get_trace_state_variable_value): New.
8955 (ctf_get_tpnum_from_frame_event): New.
8956 (ctf_get_traceframe_address): New.
8957 (ctf_trace_find, ctf_has_stack): New.
8958 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8959 (ctf_get_trace_status, ctf_read_status): New.
8960 (_initialize_ctf): New.
8961 * tracepoint.c (get_tracepoint_number): New
8962 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8963 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8964 * tracepoint.h: ... here.
8965 (get_tracepoint_number): Declare it.
8966 (get_uploaded_tsv): Declare it.
8967
8968 * NEWS: Mention new configure option.
8969
5c2b4418
HZ
89702013-04-10 Pedro Alves <palves@redhat.com>
8971 Hui Zhu <hui@codesourcery.com>
8972
8973 * breakpoint.c (dprintf_re_set): New.
8974 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8975 to dprintf_re_set.
8976
a5c66735
JB
89772013-04-09 Joel Brobecker <brobecker@adacore.com>
8978
8979 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8980 Remove solib-svr4.o from the list.
8981
9e77999c
JB
89822013-04-09 Joel Brobecker <brobecker@adacore.com>
8983
8984 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8985 Use gdb_assert_not_reached instead of invalid boolean expression.
8986
1927e618
PA
89872013-04-09 Pedro Alves <palves@redhat.com>
8988
8989 * remote.c (unpush_and_perror): New function.
8990 (readchar, remote_serial_write): Use it.
8991
10782d74
MM
89922013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8993
8994 * NEWS: Mention new btrace RSP packets.
8995
4c8429ef
TT
89962013-04-08 Tom Tromey <tromey@redhat.com>
8997
8998 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8999 long.
9000
8625fc1b
TT
90012013-04-08 Tom Tromey <tromey@redhat.com>
9002
9003 * maint.c (print_bfd_section_info): Print the section index.
9004 * symmisc.c (dump_msymbols): Print the section index.
9005
e27d198c
TT
90062013-04-08 Tom Tromey <tromey@redhat.com>
9007
9008 PR symtab/8424:
9009 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9010 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9011 * breakpoint.c (resolve_sal_pc): Update.
9012 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9013 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9014 (minsym_lookup_iterator_cb): Use it.
9015 (default_read_var_value): Update.
9016 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9017 Update.
9018 * infcmd.c (jump_command): Update.
9019 * linespec.c (minsym_found): Update.
9020 * maint.c (maintenance_translate_address): Update.
9021 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9022 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9023 * parse.c (write_exp_msymbol): Update.
9024 * printcmd.c (address_info): Update.
9025 * psymtab.c (find_pc_sect_psymbol): Update.
9026 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9027 SYMBOL_OBJ_SECTION.
9028 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9029 Don't initialize SYMBOL_OBJ_SECTION.
9030 * spu-tdep.c (spu_catch_start): Update.
9031 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9032 * symmisc.c (dump_msymbols, print_symbol): Update.
9033 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9034 how fallback section is computed.
9035 (fixup_symbol_section): Update.
9036 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9037 Update.
9038 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9039 Initialize SYMBOL_SECTION.
9040 * symtab.h (struct general_symbol_info) <section>: Update comment.
9041 <obj_section>: Remove.
9042 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9043 (SYMBOL_OBJFILE): New macro.
9044
e6dc44a8
TT
90452013-04-08 Tom Tromey <tromey@redhat.com>
9046
9047 * coffread.c (record_minimal_symbol): Update.
9048 * dbxread.c (record_minimal_symbol): Update.
9049 * elfread.c (record_minimal_symbol): Update.
9050 * machoread.c (macho_symtab_add_minsym): Update.
9051 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9052 Update.
9053 * minsyms.c (prim_record_minimal_symbol): Update.
9054 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9055 argument.
9056 (prim_record_minimal_symbol_and_info): Likewise.
9057 * minsyms.h (prim_record_minimal_symbol_full)
9058 (prim_record_minimal_symbol_and_info): Update.
9059 * symtab.c (allocate_symbol, initialize_symbol)
9060 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9061 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9062 Update.
9063
36192a8d
TT
90642013-04-08 Tom Tromey <tromey@redhat.com>
9065
9066 PR symtab/8423:
9067 * solib-som.c (som_solib_section_offsets): Use BFD section
9068 indices. Set offsets for all sections.
9069 * somread.c (som_symtab_read): Compute BFD section for
9070 symbol. Use prim_record_minimal_symbol_and_info.
9071 (som_symfile_read): Fix comment.
9072 (struct find_section_offset_arg): New.
9073 (find_section_offset, set_section_index): New functions.
9074 (som_symfile_offsets): Use set_section_index to compute
9075 section indices.
9076
65cf3563
TT
90772013-04-08 Tom Tromey <tromey@redhat.com>
9078
9079 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9080 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9081 gdb_bfd_section_index.
9082 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9083 New functions.
9084 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9085 Declare.
9086 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9087 Update.
9088 * objfiles.c (add_to_objfile_sections_full): New function.
9089 (add_to_objfile_sections): Use it.
9090 (build_section_table): Rewrite.
9091 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9092 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9093 (struct objfile) <sections>: Update comment.
9094 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9095 is NULL.
9096 (ALL_OBJSECTIONS): Use it.
9097 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9098 * solib-frv.c (frv_relocate_main_executable): Update.
9099 * solib-target.c (solib_target_relocate_section_addresses):
9100 Use gdb_bfd_section_index.
9101 * symfile.c (build_section_addr_info_from_section_table):
9102 Use gdb_bfd_section_index.
9103 (build_section_addr_info_from_bfd, place_section): Likewise.
9104 * symtab.c (fixup_section): Update.
9105 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9106
7cbd4a93
TT
91072013-04-08 Tom Tromey <tromey@redhat.com>
9108
9109 * minsyms.h (struct bound_minimal_symbol): New.
9110 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9111 Remove objfile argument.
9112 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9113 Return bound_minimal_symbol.
9114 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9115 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9116 Return bound_minimal_symbol.
9117 (in_gnu_ifunc_stub): Update.
9118 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9119 Remove 'objfile_p' argument.
9120 (lookup_solib_trampoline_symbol_by_pc): Update.
9121 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9122 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9123 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9124 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9125 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9126 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9127 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9128 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9129 stack.c, symtab.c, tui/tui-disasm.c: Update.
9130
f85f34ed
TT
91312013-04-08 Tom Tromey <tromey@redhat.com>
9132
9133 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9134 Use symbol's obstack, not an objfile.
9135 * coffread.c (process_coff_symbol): Update.
9136 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9137 * jv-lang.c (add_class_symbol): Update.
9138 * mdebugread.c (new_symbol): Update.
9139 * minsyms.c (prim_record_minimal_symbol_full)
9140 (terminate_minimal_symbol_table): Update.
9141 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9142 * stabsread.c (define_symbol, read_enum_type): Update.
9143 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9144 Handle Ada specially.
9145 (symbol_set_language): Add 'obstack' argument.
9146 (symbol_set_names): Update.
9147 (symbol_natural_name, symbol_demangled_name): Always use
9148 ada_decode_symbol.
9149 * symtab.h (struct general_symbol_info)
9150 <language_specific::obstack>: New field.
9151 <ada_mangled>: New field.
9152 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9153 (symbol_set_language): Update.
9154
ccde22c0
TT
91552013-04-08 Tom Tromey <tromey@redhat.com>
9156
9157 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9158 Take an obstack, not an objfile.
9159 (symbol_set_names): Update.
9160 * symtab.h (symbol_set_demangled_name): Update.
9161
e623cf5d
TT
91622013-04-08 Tom Tromey <tromey@redhat.com>
9163
9164 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9165 allocate_symbol.
9166 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9167 (read_func_scope): Call allocate_template_symbol.
9168 (new_symbol_full): Call allocate_symbol.
9169 * jit.c (finalize_symtab): Call allocate_symbol.
9170 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9171 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9172 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9173 (common_block_end): Call allocate_symbol.
9174 * symtab.c (allocate_symbol, initialize_symbol)
9175 (allocate_template_symbol): New functions.
9176 * symtab.c (allocate_symbol, initialize_symbol)
9177 (allocate_template_symbol): Declare.
9178 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9179
f6de8ec2
PA
91802013-04-08 Pedro Alves <palves@redhat.com>
9181 Keith Seitz <keiths@redhat.com>
9182
9183 * breakpoint.c (create_breakpoint): Rename
9184 "parse_condition_and_thread" parameter to "parse_arg". Update
9185 describing comment. If !PARSE_ARG, then error out if ARG is not
9186 the empty string after extracting the location.
9187 * breakpoint.h (create_breakpoint): Rename
9188 "parse_condition_and_thread" parameter to "parse_arg".
9189
f65ce5fb
AR
91902013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9191
9192 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9193
cc5925ad
YQ
91942013-04-07 Yao Qi <yao@codesourcery.com>
9195
9196 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9197 and 'addr2' to CORE_ADDR.
9198 * target.c (update_current_target): Update.
9199 * target.h (struct target_ops) <to_trace_find>: Change parameter
9200 type to CORE_ADDR.
9201 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9202 'addr2' to CORE_ADDR.
9203 (tfile_trace_find): Likewise.
9204 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9205 Change local variable 'addr' to type CORE_ADDR.
9206 * tracepoint.h (tfind_1): Update declaration.
9207
d9ac0664
EZ
92082013-04-06 Eli Zaretskii <eliz@gnu.org>
9209
9210 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9211 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9212 Include main.h.
9213
9214 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9215 here...
9216 * main.h (windows_get_absolute_argv0): ...to here.
9217
02142a6c
DE
92182013-04-05 Doug Evans <dje@google.com>
9219
9220 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9221 (read_cutu_die_from_dwo): Add comments.
9222 (read_structure_type): Update comment.
9223 (read_enumeration_type, read_namespace_type): Update comment.
9224 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9225
43662968
JK
92262013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9227
9228 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9229 * Makefile.in (gdb.z): Remove.
9230 (install-only): Remove $(man1dir) and gdb.1 installation.
9231 * gdb.1: Remove.
9232
9ead1b84
JK
92332013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9234
9235 Fix compatibility with Linux kernel 3.8.3.
9236 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9237 to more inner block. Remove parsing of NUMBER from outer block.
9238 Parse NUMBER only if KEYWORD has been identified.
9239
d1794952
JK
92402013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9241
9242 Fix variable name shadowing.
9243 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9244 filename to mapsfilename and update its uses.
9245
9025569e
EZ
92462013-04-05 Eli Zaretskii <eliz@gnu.org>
9247
9248 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9249 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9250 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9251 details of the problem.
9252
c9a6ce02
PA
92532013-04-04 Pedro Alves <palves@redhat.com>
9254 Hui Zhu <hui@codesourcery.com>
9255
9256 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9257 tracepoint, reset its STEP_COUNT and call validate_actionline.
9258
5ff888ce
DE
92592013-04-03 Doug Evans <dje@google.com>
9260
bf6af496
DE
9261 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9262 read_die_and_siblings.
9263 (read_die_and_siblings): New function.
9264 (read_cutu_die_from_dwo): Dump die if requested.
9265 (read_die_and_children): Call read_full_die_1 and
9266 read_die_and_siblings_1.
9267 (read_full_die): Dump die if requested.
9268
9269 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9270
0ac5b59e
DE
9271 * dwarf2read.c (struct dwo_file): New member comp_dir.
9272 Rename member name to dwo_name. All uses updated.
9273 (hash_dwo_file): Include comp_dir in computation.
9274 (eq_dwo_file): Ditto.
9275 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9276 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9277
5ff888ce
DE
9278 * psymtab.c (read_psymtabs_with_fullname): Don't call
9279 psymtab_to_fullname if the basenames are different.
9280
ec83d211
JK
92812013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9282
9283 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9284 New entry about "fullname" presence.
9285
4f4352f7
PA
92862013-04-03 Pedro Alves <palves@redhat.com>
9287
9288 * NEWS: Mention x86_64/Cygwin as new native configuration.
9289
3d1d5ea3
DE
92902013-04-02 Doug Evans <dje@google.com>
9291
9292 * dwarf2read.c (read_structure_type): Fix typo in comment.
9293
be9a8770
PA
92942013-04-02 Pedro Alves <palves@redhat.com>
9295
9296 * NEWS: Mention "set/show debug aarch64", "set/show debug
9297 coff-pe-read" and "set/show debug mach-o".
9298
a46c1e42
PA
92992013-04-02 Pedro Alves <palves@redhat.com>
9300
9301 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9302
3ad18b19
EZ
93032013-04-02 Eli Zaretskii <eliz@gnu.org>
9304
9305 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9306 gdb_string.h is now in common/.
9307
e9f1758d
PA
93082013-04-02 Pedro Alves <palves@redhat.com>
9309
9310 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9311 under "New options".
9312
049dc89b
JK
93132013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9314
9315 Revert this patch:
9316 PR gdb/15275
9317 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9318
c33e31fd
PA
93192013-04-02 Pedro Alves <palves@redhat.com>
9320
9321 PR gdb/15275
9322
9323 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9324 (remote_serial_write): New function.
9325 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9326
ea5f3910
JW
93272013-04-01 Jiong Wang <jiwang@tilera.com>
9328
9329 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 9330 "New targets" sections.
ea5f3910 9331
5c6fa7ab
DE
93322013-04-01 Doug Evans <dje@google.com>
9333
c0f78cd4
DE
9334 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9335 (process_enumeration_scope): Simplify.
9336
0186c6a7
DE
9337 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9338 type_unit_group ...
9339 (struct signatured_type): ... to here.
9340 (sig_type_ptr): New typedef.
9341 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9342 out of union 't'. All uses updated.
9343 (dw2_get_file_names_reader): Assert not called for a type unit.
9344 (dw2_get_file_names): Assert not called for a type unit or type
9345 unit group.
9346 (build_type_psymtabs_reader): Assert called for a type unit.
9347 (build_type_psymtab_dependencies): Assert called for a type unit group.
9348
5c6fa7ab
DE
9349 * dwarf2read.c (free_dwo_file): Add comment.
9350 (dwarf2_per_objfile_free): Unref dwp bfd.
9351
b3c0ad67 93522013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
9353
9354 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9355 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9356 (read_pe_exported_syms): Remove unused 'exportix'.
9357 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9358 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9359 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9360
e2df1547
AR
93612013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9362
9363 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9364 (print_it_watchpoint): Remove unused 'bl'.
9365 (say_where): Remove unused 'uiout'.
9366 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9367 (bkpt_breakpoint_hit): Remove unused 'b'.
9368 (internal_bkpt_print_it): Remove unused 'uiout'.
9369 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9370
d81e75c0
TD
93712013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9372
9373 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9374 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9375
5a8b3f62
DE
93762013-03-29 Doug Evans <dje@google.com>
9377
ab5088bf
DE
9378 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9379 Delete arg is_dwp. All callers updated.
9380 (open_dwp_file): New function.
9381 (open_and_init_dwp_file): Call it.
9382 (get_dwp_file): New function.
9383 (lookup_dwo_cutu): Call it.
9384
a8ad1e57
DE
9385 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9386 unnecessary, cleanup.
9387
6296d8c1
DE
9388 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9389
b0c7bfa9
DE
9390 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9391 (lookup_dwo_unit): New function.
9392 (init_cutu_and_read_dies): Move DWO handling to new functions.
9393
c88ee1f0
DE
9394 * dwarf2read.c (struct signatured_type): Tweak comment.
9395 (struct dwo_unit): Tweak comment.
9396 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9397 (create_dwo_debug_info_hash_table): Tweak comment.
9398 (dwarf2_per_cu_offset_and_type): Tweak comment.
9399
5a8b3f62
DE
9400 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9401 missing .debug_types section.
9402
9852c492
YQ
94032013-03-29 Yao Qi <yao@codesourcery.com>
9404
9405 * corelow.c: Include "completer.h".
9406 (_initialize_corelow): Call add_target_with_completer with
9407 argument 'filename_completer'.
9408 * tracepoint.c: Likewise.
9409 * exec.c (_initialize_exec): Likewise.
9410 * target.c (add_target): Rename to ...
9411 (add_target_with_completer): ... this. Call set_cmd_completer
9412 if parameter completer is not NULL.
9413 (add_target): New.
9414 * target.h: Include "command.h".
9415 (add_target_with_completer): Declare it.
9416
af312be7
JB
94172013-03-28 Joel Brobecker <brobecker@adacore.com>
9418
9419 * coffread.c (is_import_fixup_symbol): New function.
9420 (record_minimal_symbol): Use is_import_fixup_symbol to
9421 detect import fixup symbols, and discard them.
9422
8a0459fd
DE
94232013-03-28 Doug Evans <dje@google.com>
9424
0349ea22
DE
9425 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9426 types hash table until we know we need it.
9427
f652bce2
DE
9428 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9429 index numbers.
9430
e4a48d9d
DE
9431 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9432 All callers updated.
9433 (dw2_print_stats): Print #read CUs too.
9434 (dump_die_shallow): Print signatured types better.
9435
8a0459fd
DE
9436 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9437 info_or_types_section to section. All uses updated.
9438 (struct dwo_unit): Ditto.
9439
bd3eecc3
PA
94402013-03-28 Pedro Alves <palves@redhat.com>
9441
9442 * NEWS (New options): New section.
9443 (New options): Mention set/show remote trace-status-packet.
9444 * remote.c (PACKET_qTStatus): New enumeration value.
9445 (remote_get_trace_status): Skip sending qTStatus if the packet is
9446 disabled. Use packet_ok.
9447 (_initialize_remote): Register a configuration command for
9448 qTStatus packet.
9449
41245087
DE
94502013-03-28 Doug Evans <dje@google.com>
9451
7edbb660
DE
9452 * symfile.c (find_separate_debug_file): Add comment.
9453 (terminate_after_last_dir_separator): Tweak comment.
9454
0018ea6f
DE
9455 * dwarf2read.c (create_partial_symtab): Add forward decl.
9456 (create_partial_symtab): Move to be closer to other psymtab functions.
9457 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9458
ca69b9e6
DE
9459 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9460 (compute_symtab_includes): Remove unnecessary forward declaration.
9461 (die_needs_namespace): Add comment marking group of functions for
9462 dwarf2 name computation.
9463
a9375afe
DE
9464 * typeprint.c (_initialize_typeprint): Improve type help text.
9465
41245087
DE
9466 * python/python.c (finish_python_initialization): Provide suggestion
9467 for how to tell gdb to find its python files.
9468
7f7cc265
PA
94692013-03-28 Pedro Alves <palves@redhat.com>
9470
9471 PR gdb/15294
9472
9473 * source.c (_initialize_source): Change back "set listsize" to an
9474 integer command.
9475
ec21308c
JK
94762013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9477
9478 PR gdb/15275
9479 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9480
840a9a1f
PA
94812013-03-27 Pedro Alves <palves@redhat.com>
9482
9483 * top.c (history_size): Rename to ...
9484 (history_size_setshow_var): ... this. Add comment.
9485 (show_commands): Use readline's 'history_length' instead of
9486 computing the history length by calling history_get in a loop.
9487 (set_history_size_command): Error out for sizes over INT_MAX.
9488 Restore previous history size on invalid size.
9489 (init_history): If HISTSIZE is negative, leave the history size as
9490 zero. Add comments.
9491 (init_main): Adjust.
9492
826ecc4d
PA
94932013-03-27 Pedro Alves <palves@redhat.com>
9494
9495 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9496 coff_pe_read" command to "set debug coff-pe-read".
9497
0ccfeeae
MM
94982013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9499
9500 * record.c (command_size_to_target_size): Fix size comparison.
9501 Change parameter type from pointer to integer to integer.
9502 Update all users.
9503
40653b35
PM
95042013-03-27 Pierre Muller <muller@sourceware.org>
9505
9506 * windows-nat.c (handle_output_debug_string): Avoid typecast
9507 from integer of different size warning.
9508
c62fa0e2
JB
95092013-03-26 Joel Brobecker <brobecker@adacore.com>
9510
9511 * windows-nat.c (handle_output_debug_string): Add empty line
9512 after local block variable definition.
9513
2c619be2
PA
95142013-03-26 Pedro Alves <palves@redhat.com>
9515
9516 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9517 (net_open): Make 'polls' local unsigned.
9518
1b493192
PA
95192013-03-26 Pedro Alves <palves@redhat.com>
9520
9521 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9522 a zuinteger command instead of uinteger.
9523
7ee70bf5
PA
95242013-03-26 Pedro Alves <palves@redhat.com>
9525
9526 * record-full.c (record_full_insn_num): Make it unsigned.
9527 (record_full_check_insn_num, record_full_message)
9528 (record_full_registers_change, record_full_xfer_partial): Remove
9529 record_full_insn_max_num check (it's always != 0).
9530 (record_full_info, record_full_restore): Use %u as format string.
9531 (): Use %u as format string.
9532 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9533 check (it's always != 0).
9534
dfd1f9bb
PA
95352013-03-26 Pedro Alves <palves@redhat.com>
9536
9537 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9538 and "set dcache size" commands zuinteger instead of uinteger.
9539
addb4faf
PA
95402013-03-26 Pedro Alves <palves@redhat.com>
9541
9542 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9543 command zuinteger instead of uinteger.
9544
b75bf488
PA
95452013-03-26 Pedro Alves <palves@redhat.com>
9546
9547 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9548 zuinteger instead of uinteger.
9549
42c634cb
PA
95502013-03-26 Pedro Alves <palves@redhat.com>
9551
9552 * record.c (record_insn_history_size_setshow_var)
9553 (record_call_history_size_setshow_var): New globals.
9554 (command_size_to_target_size): New function.
9555 (cmd_record_insn_history, cmd_record_call_history): Use
9556 command_size_to_target_size instead of cast.
9557 (validate_history_size, set_record_insn_history_size)
9558 (set_record_call_history_size): New functions.
9559 (_initialize_record): Install set_record_insn_history_size and
9560 set_record_call_history_size as "set" hooks of "set record
9561 instruction-history-size" and "set record
9562 function-call-history-size".
9563
1fb2e2b5
PA
95642013-03-26 Pedro Alves <palves@redhat.com>
9565
9566 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9567 use with history_max_entries use. Remove FIXME note.
9568
99c819ee
MM
95692013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9570
9571 * record-btrace.c (record_btrace_close): Call
9572 record_btrace_auto_disable.
9573
9f9e404c
JB
95742013-03-25 Joel Brobecker <brobecker@adacore.com>
9575
9576 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9577
ebcdfe33
DE
95782013-03-25 Doug Evans <dje@google.com>
9579
9580 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9581
24955f63
TT
95822013-03-25 Tom Tromey <tromey@redhat.com>
9583
9584 PR symtab/11462:
9585 * c-exp.y (exp): Add new productions for destructors after '.' and
9586 '->'.
9587 (write_destructor_name): New function.
9588
fce632b6
TT
95892013-03-25 Tom Tromey <tromey@redhat.com>
9590
9591 PR c++/9197:
9592 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9593 value_struct_elt, not lookup_struct_elt_type.
9594 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9595 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9596 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9597
a4341769
YQ
95982013-03-25 Yao Qi <yao@codesourcery.com>
9599
9600 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9601 instead of '_mkdir'.
9602
b5981e5a
EZ
96032013-03-23 Eli Zaretskii <eliz@gnu.org>
9604
9605 * windows-nat.c (windows_get_absolute_argv0): New function.
9606 * windows-nat.h: Add its prototype.
9607
9608 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9609 Use IS_DIR_SEPARATOR instead of looking for a character inside
9610 SLASH_STRING. Include filenames.h.
9611 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9612 relocate_gdb_directory works when passed gdb_program_name.
9613 Include windows-nat.h.
9614
598d3636
JK
96152013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9616
9617 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9618 * remote.c (trace_error): Remove the special handling of '2'.
9619 (readchar) <SERIAL_EOF>
9620 (readchar) <SERIAL_ERROR>
9621 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9622 (remote_get_trace_status): Call throw_exception if EX is
9623 TARGET_CLOSE_ERROR.
9624 * utils.c (perror_with_name): Rename to ...
9625 (throw_perror_with_name): ... here. New parameter errcode, describe it
9626 in the function comment.
9627 (perror_with_name): New function wrapper.
9628 * utils.h (enum errors): New stub declaration.
9629 (throw_perror_with_name): New declaration.
9630
82b821e9
PA
96312013-03-22 Pedro Alves <palves@redhat.com>
9632 Yao Qi <yao@codesourcery.com>
9633 Mark Kettenis <kettenis@gnu.org>
9634
9635 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9636 Don't let the user set the value to UINT_MAX directly.
9637 <var_integer>: Don't let the user set the value to INT_MAX
9638 directly.
9639
78a095c3
JK
96402013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9641
9642 * remote.c (remote_unpush_target): New function.
9643 (remote_open_1): Remove two pop_target calls, update one comment, add
9644 comment to target_preopen call. Replace pop_target call by
9645 remote_unpush_target call.
9646 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9647 pop_target calls by remote_unpush_target calls.
9648
3e74e146
PA
96492013-03-22 Pedro Alves <palves@redhat.com>
9650
9651 * linux-nat.c (linux_child_follow_fork): Don't call
9652 linux_enable_event_reporting.
9653 (linux_handle_extended_wait): Don't call
9654 linux_enable_event_reporting.
9655
a2213dca
PA
96562013-03-22 Pedro Alves <palves@redhat.com>
9657
9658 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9659 use it to rewrite the trampoline buffers with type gdb_byte[], and
9660 undefine the macro. Remove char* cast.
9661
bd712aed
DE
96622013-03-21 Doug Evans <dje@google.com>
9663
9664 New commands "mt set per-command {space,time,symtab} {on,off}".
9665 * NEWS: Add entry.
9666 * event-top.c: #include "maint.h".
9667 * main.c: #include "maint.h".
9668 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9669 timeval-utils.h, maint.h, cli/cli-setshow.h.
9670 (per_command_time, per_command_space): New static globals.
9671 (per_command_symtab): New static global.
9672 (per_command_setlist, per_command_showlist): New static globals.
9673 (struct cmd_stats): Move here from utils.c.
9674 (set_per_command_time): Renamed from set_display_time in utils.c
9675 and moved here. All callers updated.
9676 (set_per_command_space): Renamed from set_display_space in utils.c
9677 and moved here. All callers updated.
9678 (count_symtabs_and_blocks): New function.
9679 (report_command_stats): Moved here from utils.c. Add support for
9680 printing symtab stats. Only print data if enabled before command
9681 executed.
9682 (make_command_stats_cleanup): Ditto.
9683 (sert_per_command_cmd, show_per_command_cmd): New functions.
9684 (_initialize_maint_cmds): Add new commands
9685 mt set per-command {space,time,symtab} {on,off}.
9686 * maint.h: New file.
9687 * top.c: #include "maint.h".
9688 * utils.c (reset_prompt_for_continue_wait_time): New function.
9689 (get_prompt_for_continue_wait_time): New function.
9690 * utils.h (reset_prompt_for_continue_wait_time): Declare
9691 (get_prompt_for_continue_wait_time): Declare.
9692 (make_command_stats_cleanup): Moved to maint.h.
9693 (set_display_time, set_display_space): Moved to maint.h and renamed
9694 to set_per_command_time, set_per_command_space.
9695 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9696 parse_binary_operation and made non-static. Don't call error,
9697 just return an error marker. All callers updated.
9698 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9699
d76488d8
TT
97002013-03-21 Tom Tromey <tromey@redhat.com>
9701
9702 * symfile.c (alloc_section_addr_info): Update header. Don't set
9703 'num_sections' field.
9704 (build_section_addr_info_from_section_table): Set 'num_sections'.
9705 (build_section_addr_info_from_bfd): Likewise.
9706 (build_section_addr_info_from_objfile): Remove dead loop
9707 condition.
9708 (free_section_addr_info): Unconditionally call xfree.
9709 (relative_addr_info_to_section_offsets, addrs_section_sort)
9710 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9711 condition.
9712 (syms_from_objfile_1): Remove dead 'if' condition. Check
9713 'num_sections'.
9714 (add_symbol_file_command): Set 'num_sections'.
9715 * symfile-mem.c (symbol_file_add_from_memory): Set
9716 'num_sections'.
9717 * somread.c (som_symfile_offsets): Remove dead loop condition.
9718 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9719 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9720
a72e5169 97212013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
9722
9723 * tracepoint.h (decode_agent_options): Add 'trace_string'
9724 argument.
9725 * tracepoint.c (decode_agent_options): Add 'trace_string'
9726 argument.
9727 (validate_actionline): Update.
9728 (collect_symbol): Add 'trace_string' argument.
9729 (struct add_local_symbols_data) <trace_string>: New field.
9730 (do_collect_symbol): Update.
9731 (add_local_symbols): Add 'trace_string' argument.
9732 (encode_actions_1): Update.
9733 (trace_dump_actions): Update.
9734 * dwarf2loc.c (access_memory): Update.
9735 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9736 * ax-general.c (new_agent_expr): Update.
9737 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9738 (gen_trace_for_return_address): Add argument.
9739 (trace_kludge, trace_string_kludge): Remove.
9740 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9741 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9742 (gen_trace_for_var): Add 'trace_string' argument.
9743 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9744 (gen_printf, agent_eval_command_one): Update.
9745
b2f83c08
TT
97462013-03-21 Tom Tromey <tromey@redhat.com>
9747
9748 PR exp/15109:
9749 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9750 Handle FILENAME token.
9751
9507860e
TT
97522013-03-21 Tom Tromey <tromey@redhat.com>
9753
9754 * c-exp.y (YYPRINT): Define.
9755 (c_print_token): New function.
9756
e403aa4b
TT
97572013-03-21 Tom Tromey <tromey@redhat.com>
9758
9759 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9760
af307d6a
YQ
97612013-03-21 Yao Qi <yao@codesourcery.com>
9762
9763 * ctf.c: Include "gdb_stat.h".
9764 [USE_WIN32API]: New macro 'mkdir'.
9765 (ctf_start): Use permission bits macros if they are defined.
9766
fb81d016
KS
97672013-03-20 Keith Seitz <keiths@redhat.com>
9768
9769 * breakpoint.h (struct breakpoint): Add comment to
9770 extra_string indicating that this member is mallod'd.
9771 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9772
ef0026f0
PA
97732013-03-20 Pedro Alves <palves@redhat.com>
9774
9775 PR gdb/15289
9776
9777 * cli/cli-setshow.c (do_set_command)
9778 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9779 the result of parsing the command argument. Throw error if the
9780 value is greater than UINT_MAX. Print the invalid value with
9781 plongest.
9782 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9783 result of parsing the command argument. Throw error if the value
9784 is greater than INT_MAX, not greater or equal. Also throw error
9785 if the value is less than INT_MIN. Print the invalid value with
9786 plongest.
9787 <var_zuinteger_unlimited>: Throw error if the value is greater
9788 than INT_MAX, not greater or equal.
9789 (do_show_command) <var_integer, var_zinteger,
9790 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9791
24d6c2a0
TT
97922013-03-20 Tom Tromey <tromey@redhat.com>
9793
9794 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9795 if possible.
9796 * dwarf2read.c (read_func_scope): Remove old FIXME.
9797 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9798 not LOC_COMPUTED.
9799 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9800 Unconditionally call via computed ops, if possible.
9801 * printcmd.c (address_info): Unconditionally call via computed ops,
9802 if possible.
9803 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9804 if possible.
9805 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9806 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9807 if possible.
9808
f1e6e072
TT
98092013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9810 Tom Tromey <tromey@redhat.com>
9811
9812 PR symtab/8421:
9813 * coffread.c (coff_register_index): New global.
9814 (process_coff_symbol, coff_read_enum_type): Set
9815 SYMBOL_ACLASS_INDEX.
9816 (_initialize_coffread): Initialize new global.
9817 * dwarf2loc.c (locexpr_find_frame_base_location)
9818 (dwarf2_block_frame_base_locexpr_funcs)
9819 (loclist_find_frame_base_location)
9820 (dwarf2_block_frame_base_loclist_funcs): New.
9821 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9822 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9823 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9824 (dwarf2_block_frame_base_loclist_funcs): New.
9825 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9826 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9827 globals.
9828 (read_func_scope): Update.
9829 (fixup_go_packaging, mark_common_block_symbol_computed)
9830 (var_decode_location, new_symbol_full, dwarf2_const_value):
9831 Set SYMBOL_ACLASS_INDEX.
9832 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9833 (_initialize_dwarf2_read): Initialize new globals.
9834 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9835 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9836 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9837 globals.
9838 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9839 (_initialize_mdebugread): Initialize new globals.
9840 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9841 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9842 (stab_register_index, stab_regparm_index): New globals.
9843 (define_symbol, read_enum_type, common_block_end): Set
9844 SYMBOL_ACLASS_INDEX.
9845 (_initialize_stabsread): Initialize new globals.
9846 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9847 globals.
9848 (MAX_SYMBOL_IMPLS): New define.
9849 (register_symbol_computed_impl, register_symbol_block_impl)
9850 (register_symbol_register_impl)
9851 (initialize_ordinary_address_classes): New functions.
9852 (_initialize_symtab): Call initialize_ordinary_address_classes.
9853 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9854 (struct symbol_impl): New.
9855 (SYMBOL_ACLASS_BITS): New define.
9856 (struct symbol) <aclass, ops>: Remove fields.
9857 <aclass_index>: New field.
9858 (symbol_impls): Declare.
9859 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9860 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9861 (register_symbol_computed_impl, register_symbol_block_impl)
9862 (register_symbol_register_impl): Declare.
9863 (struct symbol_computed_ops): Add location_has_loclist.
9864 (struct symbol_block_ops): New.
9865 (SYMBOL_BLOCK_OPS): New.
9866 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9867
dbccfd4c
TT
98682013-03-20 Tom Tromey <tromey@redhat.com>
9869
9870 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9871 (print_partial_symbols, recursively_search_psymtabs): Use
9872 PSYMBOL_CLASS.
9873
e3f1ad4f
PM
98742013-03-20 Pierre Muller <muller@sourceware.org>
9875
9876 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9877 addtion, subtraction, multiplication and division binary operator.
9878
460014f5
JK
98792013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9880
9881 Code cleanup.
9882 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9883 * bsd-kvm.c (bsd_kvm_close): Likewise.
9884 * bsd-uthread.c (bsd_uthread_close): Likewise.
9885 * corelow.c (core_close): Likewise.
9886 (core_close_cleanup): Remove parameter quitting from a caller.
9887 * event-top.c (async_disconnect): Likewise.
9888 * exec.c (exec_close_1): Remove parameter quitting.
9889 * go32-nat.c (go32_close): Likewise.
9890 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9891 parameter quitting from a caller.
9892 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9893 variable.
9894 (mips_linux_close): Remove parameter quitting. Remove parameter
9895 quitting from a caller.
9896 * monitor.c (monitor_close): Remove parameter quitting.
9897 * monitor.h (monitor_close): Likewise.
9898 * record-btrace.c (record_btrace_close): Likewise.
9899 * record-full.c (record_full_close): Likewise.
9900 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9901 it also from fprintf_unfiltered.
9902 * remote-mips.c (mips_close): Remove parameter quitting.
9903 (mips_detach): Remove parameter quitting from a caller.
9904 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9905 (gdbsim_close): Remove duplicate function comment. Remove parameter
9906 quitting and remove it also from printf_filtered.
9907 * remote.c (remote_close): Remove parameter quitting.
9908 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9909 * target.c (update_current_target): Remove parameter int from to_close
9910 de_fault.
9911 (push_target, unpush_target, pop_target): Remove parameter quitting from
9912 a caller.
9913 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9914 Remove parameter quitting from a caller.
9915 (target_preopen): Remove parameter quitting from a caller.
9916 (target_close): Remove parameter quitting. Remove parameter quitting
9917 from a caller two times. Remove parameter quitting also from
9918 fprintf_unfiltered.
9919 * target.h (struct target_ops): Remove parameter quitting and as int
9920 from fields to_xclose and to_close.
9921 (extern struct target_ops current_target):
9922 (target_close, pop_all_targets): Remove parameter quitting. Update the
9923 comment.
9924 (pop_all_targets_above): Remove parameter quitting.
9925 * top.c (quit_target): Remove parameter quitting from a caller.
9926 * tracepoint.c (tfile_close): Remove parameter quitting.
9927 * windows-nat.c (windows_close): Remove parameter quitting.
9928
35a7120b
CV
99292013-03-20 Corinna Vinschen <vinschen@redhat.com>
9930
9931 * windows-nat.c (handle_output_debug_string): Replace call
9932 to string_to_core_addr with call to strtoull.
9933
8249a5a9
YQ
99342013-03-20 Yao Qi <yao@codesourcery.com>
9935
9936 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9937 and write it to CTF metadata.
9938
2c15ef43
CV
99392013-03-19 Corinna Vinschen <vinschen@redhat.com>
9940
9941 * windows-nat.c (handle_output_debug_string): Change type of n to
9942 SIZE_T to avoid crash on 64 bit systems.
9943
1cdd3232
EZ
99442013-03-17 Eli Zaretskii <eliz@gnu.org>
9945
9946 * python/python-internal.h (HAVE_SNPRINTF)
9947 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9948 about redefinition of snprintf by pyerrors.h.
9949
3cb2ab1a
SE
99502013-03-15 Steve Ellcey <sellcey@mips.com>
9951
9952 * remote-sim.c (sim_command_completer): Make char arguments const.
9953
9ce98649
TT
99542013-03-15 Tom Tromey <tromey@redhat.com>
9955
9956 PR c++/15116:
9957 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9958
dccee2de
TT
99592013-03-14 Tom Tromey <tromey@redhat.com>
9960
9961 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9962 New fields.
9963 (get_file_crc): Move from symfile.c.
9964 (gdb_bfd_crc): New function.
9965 * gdb_bfd.h (gdb_bfd_crc): Declare.
9966 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9967 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9968 (separate_debug_file_exists): Use gdb_bfd_crc.
9969
cc0ea93c
TT
99702013-03-14 Tom Tromey <tromey@redhat.com>
9971
9972 * symfile.c (get_debug_link_info): Remove.
9973 (find_separate_debug_file_by_debuglink): Use
9974 bfd_get_debug_link_info.
9975
08c23b0d
TT
99762013-03-14 Tom Tromey <tromey@redhat.com>
9977
9978 * symtab.c (error_in_psymtab_expansion): New function.
9979 (lookup_symbol_aux_quick)
9980 (basic_lookup_transparent_type_quick): Remove "last resort"
9981 code. Use error_in_psymtab_expansion.
9982
288e77a7
JK
99832013-03-14 Doug Evans <dje@google.com>
9984 Jan Kratochvil <jan.kratochvil@redhat.com>
9985
9986 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9987 any successful compare_filenames_for_search or FILENAME_CMP.
9988 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9989 * symtab.c (iterate_over_some_symtabs): Likewise.
9990
8f1b8b82
JK
99912013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9992
9993 * source.c (print_source_lines_base): Make a local copy of
9994 symtab_to_fullname.
9995
23eb71e4
JK
99962013-03-14 Hui Zhu <hui_zhu@mentor.com>
9997 Jan Kratochvil <jan.kratochvil@redhat.com>
9998
9999 * source.c (print_source_lines_base): Suppress "file" for TUI.
10000
bb869963
SDJ
100012013-03-14 Keith Seitz <keiths@redhat.com>
10002 Alan Matsuoka <alanm@redhat.com>
10003
10004 PR c++/15203
10005 PR c++/15210
10006 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10007 TYPE_CODE_METHOD.
10008 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10009 symbols.
10010
d6682f9e
YQ
100112013-03-14 Yao Qi <yao@codesourcery.com>
10012
10013 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10014 status to tfile if trace is stopped by command 'tstop'.
10015
a22fa6e4
YQ
100162013-03-14 Yao Qi <yao@codesourcery.com>
10017
10018 * tracepoint.c (tfile_write_status): Write trace notes and user
10019 name into tfile if they are not NULL.
10020
d0353e76
YQ
100212013-03-14 Hui Zhu <hui@codesourcery.com>
10022 Yao Qi <yao@codesourcery.com>
10023
10024 * Makefile.in (REMOTE_OBS): Add ctf.o.
10025 (SFILES): Add ctf.c.
10026 (HFILES_NO_SRCDIR): Add ctf.h.
10027 * ctf.c, ctf.h: New files.
10028 * tracepoint.c: Include 'ctf.h'.
10029 (collect_pseudocommand): Remove static.
10030 (trace_save_command): Parse option "-ctf".
10031 Produce different trace file writers per option.
10032 Adjust output message.
10033 (trace_save_tfile, trace_save_ctf): New.
10034 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10035 * mi/mi-main.c: Include 'ctf.h'.
10036 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10037 trace_save_tfile or trace_save_ctf.
10038 * NEWS: Mention these changes.
10039
3f43bc09
YQ
100402013-03-14 Yao Qi <yao@codesourcery.com>
10041
10042 * tracepoint.c (trace_file_writer_xfree): New.
10043 (struct tfile_writer_data): New.
10044 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10045 (tfile_write_header, tfile_write_regblock_type): New.
10046 (tfile_write_status, tfile_write_uploaded_tsv): New.
10047 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10048 (tfile_write_raw_data, (tfile_end): New.
10049 (tfile_write_ops): New global variable.
10050 (TRACE_WRITE_R_BLOCK): New macro.
10051 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10052 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10053 (TRACE_WRITE_V_BLOCK): New macro.
10054 (trace_save): Add extra one parameter WRITER. Make it static.
10055 Use WRITER to writer trace.
10056 (tfile_trace_file_writer_new): New.
10057 (trace_save_command): Caller update.
10058 (trace_save_tfile): Write trace data in TFILE format.
10059 * tracepoint.h (struct trace_frame_write_ops): New.
10060 (struct trace_file_write_ops): New.
10061 (struct trace_file_writer): New.
10062 (trace_save): Remove its declaration.
10063 (trace_save_tfile): Declare it.
10064 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10065 instead of trace_save.
10066
58665b40
PA
100672013-03-13 Pedro Alves <palves@redhat.com>
10068
10069 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10070
10217050
PA
100712013-03-13 Pedro Alves <palves@redhat.com>
10072
10073 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10074 commented out code.
10075 * demangle.c (current_demangling_style_string): Make it const.
10076 (set_demangling_command): Assert the demangling style is known.
10077 Remove all handling of unknown styles. Set
10078 'current_demangling_style_string' to an element of the
10079 demangling_style_names array.
10080 (set_demangling_style): Delete.
10081 (_initialize_demangler): Set current_demangling_style_string to the
10082 element of the demangling_style_names array that corresponds to
10083 the default demangling style. Remove FIXME note. Don't call
10084 set_demangling_style.
10085 * gdb-demangle.h (set_demangling_style): Remove declaration.
10086
6f937416
PA
100872013-03-13 Pedro Alves <palves@redhat.com>
10088
10089 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10090 fields const.
10091 (ada_make_symbol_completion_list): Make "text0" parameter const.
10092 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10093 * breakpoint.c (condition_completer): Make "text" and "word"
10094 parameters const. Adjust.
10095 (check_tracepoint_command): Adjust to validate_actionline
10096 prototype change.
10097 (catch_syscall_completer): Make "text" and "word" parameters
10098 const.
10099 * cli/cli-cmds.c (show_user): Make "comname" local const.
10100 (valid_command_p): Make "command" parameter const.
10101 (alias_command): Make "alias_prefix" and "command_prefix" locals
10102 const.
10103 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10104 (add_alias_cmd): Make "name" and "oldname" parameters const.
10105 Adjust. No longer make copy of OLDNAME.
10106 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10107 (add_setshow_cmd_full, add_setshow_enum_cmd)
10108 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10109 (add_setshow_filename_cmd, add_setshow_string_cmd)
10110 (add_setshow_string_noescape_cmd)
10111 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10112 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10113 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10114 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10115 Make "name" parameter const.
10116 (help_cmd): Rename "command" parameter to "arg". New const local
10117 "command".
10118 (find_cmd): Make "command" parameter const.
10119 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10120 deprecated_cmd_warning prototype change.
10121 (undef_cmd_error): Make "cmdtype" parameter const.
10122 (lookup_cmd): Make "line" parameter const.
10123 (deprecated_cmd_warning): Change type of "text" parameter to
10124 pointer to const char, from pointer to pointer to char. Adjust.
10125 (lookup_cmd_composition): Make "text" parameter const.
10126 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10127 parameters const.
10128 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10129 const.
10130 * cli/cli-script.c (validate_comname): Make "tem" local const.
10131 (define_command): New const local "tem_c". Use it in calls to
10132 lookup_cmd.
10133 (document_command): Make "tem" and "comfull" locals const.
10134 (show_user_1): Make "prefix" and "name" parameters const.
10135 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10136 const.
10137 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10138 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10139 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10140 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10141 (complete_on_enum, add_setshow_enum_cmd)
10142 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10143 (add_setshow_filename_cmd, add_setshow_string_cmd)
10144 (add_setshow_string_noescape_cmd)
10145 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10146 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10147 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10148 Change prototypes, constifying strings.
10149 * completer.c (noop_completer, filename_completer): Make "text"
10150 and "prefix" parameters const.
10151 (location_completer, expression_completer)
10152 (complete_line_internal): Make "text" and "prefix" parameters
10153 const and adjust.
10154 (command_completer, signal_completer): Make "text" and "prefix"
10155 parameters const.
10156 * completer.h (noop_completer, filename_completer)
10157 (expression_completer, location_completer, command_completer)
10158 (signal_completer): Change prototypes.
10159 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10160 parameters const.
10161 * cp-abi.c (cp_abi_completer): Likewise.
10162 * expression.h (parse_expression_for_completion): Change
10163 prototype.
10164 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10165 parameters const.
10166 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10167 * infrun.c (handle_completer): Make "text" and "word" parameters
10168 const.
10169 * interps.c (interpreter_completer): Make "text" and "word"
10170 parameters const.
10171 * language.h (struct language_defn)
10172 <la_make_symbol_completion_list>: Make "text" and "word"
10173 parameters const.
10174 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10175 (parse_exp_in_context): Rename to ...
10176 (parse_exp_in_context_1): ... this.
10177 (parse_exp_in_context): Reimplement, with const hack from
10178 parse_exp_1.
10179 (parse_expression_for_completion): Make "string" parameter const.
10180 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10181 to pointer to const char. Adjust.
10182 (print_command_1): Make "exp" parameter const.
10183 (output_command): Rename to ...
10184 (output_command_const): ... this. Make "exp" parameter const.
10185 (output_command): Reimplement.
10186 (x_command): Adjust.
10187 (display_command): Rename "exp" parameter to "arg". New "exp"
10188 local, const version of "arg".
10189 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10190 "cmd_name" local const.
10191 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10192 call.
10193 (cmdpy_completer): Make "text" and "word" parameters const.
10194 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10195 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10196 const.
10197 * remote.c (_initialize_remote): Make "cmd_name" local const.
10198 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10199 parameters const. Adjust.
10200 (completion_list_add_fields): Make "sym_text", "text" and "word"
10201 parameters const.
10202 (struct add_name_data) <sym_text, text, word>: Make fields const.
10203 (default_make_symbol_completion_list_break_on): Make "text" and
10204 "word" parameters const. Adjust locals.
10205 (default_make_symbol_completion_list)
10206 (make_symbol_completion_list, make_symbol_completion_type)
10207 (make_symbol_completion_list_fn): Make "text" and "word"
10208 parameters const.
10209 (make_file_symbol_completion_list): Make "text", "word" and
10210 "srcfile" parameters const. Adjust locals.
10211 (add_filename_to_list): Make "text" and "word" parameters const.
10212 (struct add_partial_filename_data) <text, word>: Make fields
10213 const.
10214 (make_source_files_completion_list): Make "text" and "word"
10215 parameters const.
10216 * symtab.h (default_make_symbol_completion_list_break_on)
10217 (default_make_symbol_completion_list, make_symbol_completion_list)
10218 (make_symbol_completion_type enum type_code)
10219 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10220 (make_source_files_completion_list): Change prototype.
10221 * top.c (execute_command): Adjust to pass pointer to pointer to
10222 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10223 change.
10224 (set_verbose): Make "cmdname" local const.
10225 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10226 and adjust.
10227 (validate_actionline): Make "line" parameter a pointer to const
10228 char, and adjust.
10229 (encode_actions_1): Make "action_exp" local const, and adjust.
10230 (encode_actions): Adjust.
10231 (replace_comma): Delete.
10232 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10233 const, and adjust. Don't frob the action string while splitting
10234 it at commas. Instead, make a copy of each split substring in
10235 turn.
10236 (trace_dump_command): Adjust to validate_actionline prototype
10237 change.
10238 * tracepoint.h (decode_agent_options, decode_agent_options)
10239 (encode_actions, validate_actionline): Change prototypes.
10240 * valprint.h (output_command): Delete declaration.
10241 (output_command_const): Declare.
10242 * value.c (function_destroyer): Cast const away in xfree call.
10243
a0bcdaa7
PA
102442013-03-13 Pedro Alves <palves@redhat.com>
10245
10246 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10247 rather than casting 'const char * const *' to 'const char **'.
10248 * ada-lex.l (processInt): Make "trailer" local const. Remove
10249 'const char **' cast.
10250 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10251 locals, and use those as strtol output pointer, instead than doing
10252 invalid casts to from 'const char **' to 'char **'.
10253 (_initialize_demangle): Remove cast.
10254 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10255 locals, and use those as strtol output pointer, instead than doing
10256 invalid casts to from 'const char **' to 'char **'.
10257 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10258 casts.
10259 * stap-probe.c (stap_parse_register_operand)
10260 (stap_parse_single_operand): Likewise.
10261
8ddb1965
YQ
102622013-03-13 Yao Qi <yao@codesourcery.com>
10263
10264 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10265 the last matched 'V' blcok in trace frame.
10266
2d450646
JB
102672013-03-12 Joel Brobecker <brobecker@adacore.com>
10268
10269 * NEWS: Create a new section for the next release branch.
10270 Rename the section of the current branch, now that it has
10271 been cut.
10272
b4b79973 102732013-03-12 Joel Brobecker <brobecker@adacore.com>
10274
10275 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10276 * version.in: Bump version to 7.6.50.20130312-cvs.
10277
ee047554
KS
102782013-03-12 Keith Seitz <keiths@redhat.com>
10279
10280 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10281 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10282 Remove temporary copy of input string.
10283 (mi_execute_command_wrapper): Make "cmd" const.
10284 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10285 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10286 Use const strings.
10287 (mi_parse): Make "cmd" const.
10288 Use const strings.
10289 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10290
bbc13ae3
KS
102912013-03-12 Keith Seitz <keiths@redhat.com>
10292
10293 * ada-lang.c (ada_read_renaming_var_value): Pass const
10294 pointer to expression string to parse_exp_1.
10295 (create_excep_cond_exprs): Likewise.
10296 * ax-gdb.c (agent_eval_command_one): Likewise.
10297 (maint_agent_printf_command): Likewise.
10298 Constify much of the string handling/parsing.
10299 * breakpoint.c (set_breakpoint_condition): Pass const
10300 pointer to expression string to parse_exp_1.
10301 (update_watchpoint): Likewise.
10302 (parse_cmd_to_aexpr): Constify string handling.
10303 Pass const pointer to parse_exp_1.
10304 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10305 (find_condition_and_thread): Likewise.
10306 Make TOK const.
10307 (watch_command_1): Make "arg" const.
10308 Constify string handling.
10309 Copy the expression string instead of changing the input
10310 string.
10311 (update_breakpoint_location): Pass const pointer to
10312 parse_exp_1.
10313 * eval.c (parse_and_eval_address): Make "exp" const.
10314 (parse_to_comma_and_eval): Make "expp" const.
10315 (parse_and_eval): Make "exp" const.
10316 * expression.h (parse_expression): Make argument const.
10317 (parse_exp_1): Make first argument const.
10318 * findcmd.c (parse_find_args): Treat "args" as const.
10319 * linespec.c (parse_linespec): Pass const pointer to
10320 linespec_expression_to_pc.
10321 (linespec_expression_to_pc): Make "exp_ptr" const.
10322 * parse.c (parse_exp_1): Make "stringptr" const.
10323 Make a copy of the expression to pass to parse_exp_in_context until
10324 this whole interface can be constified.
10325 (parse_expression): Make "string" const.
10326 * printcmd.c (ui_printf): Treat "arg" as const.
10327 Handle const strings.
10328 * tracepoint.c (validate_actionline): Pass const pointer to
10329 all calls to parse_exp_1.
10330 (encode_actions_1): Likewise.
10331 * value.h (parse_to_comma_and_eval): Make argument const.
10332 (parse_and_eval_address): Likewise.
10333 (parse_and_eval): Likewise.
10334 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10335 (varobj_set_value): Likewise.
10336 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10337 constify string handling.
10338 Pass const pointers to parse_and_eval_address and
10339 parse_to_comman_and_eval.
10340 * cli/cli-utils.c (skip_to_space): Rename to ...
10341 (skip_to_space_const): ... this. Handle const strings.
10342 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10343 skip_to_space_const.
10344 (skip_to_space_const): Declare.
10345 * common/format.c (parse_format_string): Make "arg" const.
10346 Handle const strings.
10347 * common/format.h (parse_format_string): Make "arg" const.
10348 * gdbserver/ax.c (ax_printf): Make "format" const.
10349 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10350 of the expression string.
10351
f3cec7e6
HZ
103522013-03-12 Hui Zhu <hui@codesourcery.com>
10353
10354 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10355
9df7235c
HZ
103562013-03-12 Yao Qi <yao@codesourcery.com>
10357 Hui Zhu <hui@codesourcery.com>
10358
10359 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10360 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10361 DW_OP_deref_size.
10362
82d049ab
PH
103632013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10364
5f8e0b8f
MF
10365 * ada-lex.l (rules): Only recognize 'thread' as a
10366 delimiter when followed by numerals, as for c-exp.y.
10367 Use new rewind_to_char function to rewind the input for
10368 expression-delimiting tokens.
10369 (rewind_to_char): New function.
82d049ab 10370
8c1fb155
JK
103712013-03-11 Pedro Alves <palves@redhat.com>
10372 Jan Kratochvil <jan.kratochvil@redhat.com>
10373
10374 * configure: Regenerate.
10375 * configure.ac (check dynamic export flag): Link python test with
10376 $PYTHON_LIBS.
10377
cc81e1c6
DE
103782013-03-11 Doug Evans <dje@google.com>
10379 Keith Seitz <keiths@redhat.com>
10380
10381 * linespec.c (find_linespec_symbols): Call find_function_symbols
10382 first, and then call lookup_prefix_sym/find_method.
10383
39086a0e
PA
103842013-03-11 Pedro Alves <palves@redhat.com>
10385
10386 * charset.c (convert_between_encodings): Don't cast between
10387 different pointer to pointer types. Instead, make the 'inp' local
10388 be of the type iconv expects.
10389 (wchar_iterate): Don't cast between different pointer to pointer
10390 types. Instead, use new pointer local of the type iconv expects.
10391 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10392 Add new local of type char pointer, and use it to get a
10393 char/string view of the byte buffer, instead of casting between
10394 pointer to pointer types.
10395
90585175
HAQ
103962013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10397
10398 * remote.c (remote_set_trace_buffer_size): Move != operator
10399 to the start of next line to fix an ARI warning.
10400
59ea5688
MM
104012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10402
10403 * NEWS: Add record changes.
10404
946287b7
MM
104052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10406
10407 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10408 the instruction history disassembly.
10409 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10410 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10411
afedecd3
MM
104122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10413
10414 * Makefile.in (SFILES): Add record-btrace.c
10415 (COMMON_OBS): Add record-btrace.o
10416 * record-btrace.c: New.
10417 * objfiles.c: Include btrace.h.
10418 (free_objfile): call btrace_free_objfile.
10419
15984c13
MM
104202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10421
10422 * target.c (target_call_history, target_call_history_from,
10423 target_call_history_range): New.
10424 * target.h (target_ops) <to_call_history, to_call_history_from,
10425 to_call_history_range>: New fields.
10426 (target_call_history, target_call_history_from,
10427 target_call_history_range): New declaration.
10428 * record.c (get_call_history_modifiers, cmd_record_call_history,
10429 record_call_history_size): New.
10430 (_initialize_record): Add the "record function-call-history" command.
10431 Add "set/show record function-call-history-size" commands.
10432 * record.h (record_print_flag): New.
10433
67c86d06
MM
104342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10435
10436 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10437 to_insn_history_range>: New fields.
10438 (target_insn_history): New.
10439 (target_insn_history_from): New.
10440 (target_insn_history_range): New.
10441 * target.c (target_insn_history): New.
10442 (target_insn_history_from): New.
10443 (target_insn_history_range): New.
10444 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10445 (record_insn_history_size): New.
10446 (get_insn_number): New.
10447 (get_context_size): New.
10448 (no_chunk): New.
10449 (get_insn_history_modifiers): New.
10450 (cmd_record_insn_history): New.
10451 (_initialize_record): Add "set/show record instruction-history-size"
10452 command. Add "record instruction-history" command.
10453
7c1687a9
MM
104542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10455
10456 * record.h (record_disconnect): New.
10457 (record_detach): New.
10458 (record_mourn_inferior): New.
10459 (record_kill): New.
10460 * record-full.c (record_disconnect, record_detach,
10461 record_mourn_inferior, record_kill): Move to...
10462 * record.c: ...here.
10463 (DEBUG): New.
10464 (record_stop): New.
10465 (record_unpush): New.
10466 (cmd_record_stop): Call record_stop. Replace unpush_target
10467 call with record_unpush call.
10468 (record_disconnect, record_detach): Assert that the target
10469 is of record stratum. Call record_unpush, record_stop, and
10470 DEBUG.
10471 (record_mourn_inferior, record_kill): Assert that the target
10472 is of record stratum. Call record_unpush and DEBUG.
10473
25ea693b
MM
104742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10475
10476 * record-full.h, record-full.c (record_memory_query): Rename
10477 to ...
10478 (record_full_memory_query): ...this. Update all users.
10479 (record_arch_list_add_reg): Rename to ...
10480 (record_full_arch_list_add_reg): ...this. Update all users.
10481 (record_arch_list_add_mem): Rename to ...
10482 (record_full_arch_list_add_mem): ...this. Update all users.
10483 (record_arch_list_add_end): Rename to ...
10484 (record_full_arch_list_add_end): ...this. Update all users.
10485 (record_gdb_operation_disable_set): Rename to ...
10486 (record_full_gdb_operation_disable_set): ...this.
10487 Update all users.
10488
88d1aa9d
MM
104892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10490
10491 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10492 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10493 (RECORD_IS_REPLAY): Renamed to ...
10494 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10495 (RECORD_FILE_MAGIC): Renamed to ...
10496 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10497 (record_mem_entry): Renamed to ...
10498 (record_full_mem_entry): ... this. Updated all users.
10499 (record_reg_entry): Renamed to ...
10500 (record_full_reg_entry): ... this. Updated all users.
10501 (record_end_entry): Renamed to ...
10502 (record_full_end_entry): ... this. Updated all users.
10503 (record_type) <record_end, record_reg, record_mem>: Renamed
10504 to ...
10505 (record_full_type) <record_full_end, record_full_reg,
10506 record_full_mem>: ... this. Updated all users.
10507 (record_entry): Renamed to ...
10508 (record_full_entry): ... this. Updated all users.
10509 (record_core_buf_entry): Renamed to ...
10510 (record_full_core_buf_entry): ... this. Updated all users.
10511 (record_core_regbuf): Renamed to ...
10512 (record_full_core_regbuf): ... this. Updated all users.
10513 (record_core_start): Renamed to ...
10514 (record_full_core_start): ... this. Updated all users.
10515 (record_core_end): Renamed to ...
10516 (record_full_core_end): ... this. Updated all users.
10517 (record_core_buf_list): Renamed to ...
10518 (record_full_core_buf_list): ... this. Updated all users.
10519 (record_first): Renamed to ...
10520 (record_full_first): ... this. Updated all users.
10521 (record_list): Renamed to ...
10522 (record_full_list): ... this. Updated all users.
10523 (record_arch_list_head): Renamed to ...
10524 (record_full_arch_list_head): ... this. Updated all users.
10525 (record_arch_list_tail): Renamed to ...
10526 (record_full_arch_list_tail): ... this. Updated all users.
10527 (record_stop_at_limit): Renamed to ...
10528 (record_full_stop_at_limit): ... this. Updated all users.
10529 (record_insn_max_num): Renamed to ...
10530 (record_full_insn_max_num): ... this. Updated all users.
10531 (record_insn_num): Renamed to ...
10532 (record_full_insn_num): ... this. Updated all users.
10533 (record_insn_count): Renamed to ...
10534 (record_full_insn_count): ... this. Updated all users.
10535 (record_ops): Renamed to ...
10536 (record_full_ops): ... this. Updated all users.
10537 (record_core_ops): Renamed to ...
10538 (record_full_core_ops): ... this. Updated all users.
10539 (set_record_cmdlist): Renamed to ...
10540 (set_record_full_cmdlist): ... this. Updated all users.
10541 (show_record_cmdlist): Renamed to ...
10542 (show_record_full_cmdlist): ... this. Updated all users.
10543 (record_cmdlist): Renamed to ...
10544 (record_full_cmdlist): ... this. Updated all users.
10545 (record_beneath_to_resume_ops): Renamed to ...
10546 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10547 (record_beneath_to_resume): Renamed to ...
10548 (record_full_beneath_to_resume): ... this. Updated all users.
10549 (record_beneath_to_wait_ops): Renamed to ...
10550 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10551 (record_beneath_to_wait): Renamed to ...
10552 (record_full_beneath_to_wait): ... this. Updated all users.
10553 (record_beneath_to_store_registers_ops): Renamed to ...
10554 (record_full_beneath_to_store_registers_ops): ... this.
10555 Updated all users.
10556 (record_beneath_to_store_registers): Renamed to ...
10557 (record_full_beneath_to_store_registers): ... this.
10558 Updated all users.
10559 (record_beneath_to_xfer_partial_ops): Renamed to ...
10560 (record_full_beneath_to_xfer_partial_ops): ... this.
10561 Updated all users.
10562 (record_beneath_to_xfer_partial): Renamed to ...
10563 (record_full_beneath_to_xfer_partial): ... this.
10564 Updated all users.
10565 (record_beneath_to_insert_breakpoint): Renamed to ...
10566 (record_full_beneath_to_insert_breakpoint): ... this.
10567 Updated all users.
10568 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10569 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10570 Updated all users.
10571 (record_beneath_to_stopped_data_address): Renamed to ...
10572 (record_full_beneath_to_stopped_data_address): ... this.
10573 Updated all users.
10574 (record_beneath_to_async): Renamed to ...
10575 (record_full_beneath_to_async): ... this. Updated all users.
10576 (record_goto_insn): Renamed to ...
10577 (record_full_goto_insn): ... this. Updated all users.
10578 (record_save): Renamed to ...
10579 (record_full_save): ... this. Updated all users.
10580 (record_reg_alloc): Renamed to ...
10581 (record_full_reg_alloc): ... this. Updated all users.
10582 (record_reg_release): Renamed to ...
10583 (record_full_reg_release): ... this. Updated all users.
10584 (record_mem_alloc): Renamed to ...
10585 (record_full_mem_alloc): ... this. Updated all users.
10586 (record_mem_release): Renamed to ...
10587 (record_full_mem_release): ... this. Updated all users.
10588 (record_end_alloc): Renamed to ...
10589 (record_full_end_alloc): ... this. Updated all users.
10590 (record_end_release): Renamed to ...
10591 (record_full_end_release): ... this. Updated all users.
10592 (record_entry_release): Renamed to ...
10593 (record_full_entry_release): ... this. Updated all users.
10594 (record_list_release): Renamed to ...
10595 (record_full_list_release): ... this. Updated all users.
10596 (record_list_release_following): Renamed to ...
10597 (record_full_list_release_following): ... this.
10598 Updated all users.
10599 (record_list_release_first): Renamed to ...
10600 (record_full_list_release_first): ... this. Updated all users.
10601 (record_arch_list_add): Renamed to ...
10602 (record_full_arch_list_add): ... this. Updated all users.
10603 (record_get_loc): Renamed to ...
10604 (record_full_get_loc): ... this. Updated all users.
10605 (record_check_insn_num): Renamed to ...
10606 (record_full_check_insn_num): ... this. Updated all users.
10607 (record_arch_list_cleanups): Renamed to ...
10608 (record_full_arch_list_cleanups): ... this. Updated all users.
10609 (record_message): Renamed to ...
10610 (record_full_message): ... this. Updated all users.
10611 (record_message_wrapper): Renamed to ...
10612 (record_full_message_wrapper): ... this. Updated all users.
10613 (record_message_wrapper_safe): Renamed to ...
10614 (record_full_message_wrapper_safe): ... this. Updated all users.
10615 (record_gdb_operation_disable): Renamed to ...
10616 (record_full_gdb_operation_disable): ... this. Updated all users.
10617 (record_hw_watchpoint): Renamed to ...
10618 (record_full_hw_watchpoint): ... this. Updated all users.
10619 (record_exec_insn): Renamed to ...
10620 (record_full_exec_insn): ... this. Updated all users.
10621 (record_restore): Renamed to ...
10622 (record_full_restore): ... this. Updated all users.
10623 (record_async_inferior_event_token): Renamed to ...
10624 (record_full_async_inferior_event_token): ... this.
10625 Updated all users.
10626 (record_async_inferior_event_handler): Renamed to ...
10627 (record_full_async_inferior_event_handler): ... this.
10628 Updated all users.
10629 (record_core_open_1): Renamed to ...
10630 (record_full_core_open_1): ... this. Updated all users.
10631 (record_open_1): Renamed to ...
10632 (record_full_open_1): ... this. Updated all users.
10633 (record_open): Renamed to ...
10634 (record_full_open): ... this. Updated all users.
10635 (record_close): Renamed to ...
10636 (record_full_close): ... this. Updated all users.
10637 (record_resume_step): Renamed to ...
10638 (record_full_resume_step): ... this. Updated all users.
10639 (record_resumed): Renamed to ...
10640 (record_full_resumed): ... this. Updated all users.
10641 (record_execution_dir): Renamed to ...
10642 (record_full_execution_dir): ... this. Updated all users.
10643 (record_resume): Renamed to ...
10644 (record_full_resume): ... this. Updated all users.
10645 (record_get_sig): Renamed to ...
10646 (record_full_get_sig): ... this. Updated all users.
10647 (record_sig_handler): Renamed to ...
10648 (record_full_sig_handler): ... this. Updated all users.
10649 (record_wait_cleanups): Renamed to ...
10650 (record_full_wait_cleanups): ... this. Updated all users.
10651 (record_wait_1): Renamed to ...
10652 (record_full_wait_1): ... this. Updated all users.
10653 (record_wait): Renamed to ...
10654 (record_full_wait): ... this. Updated all users.
10655 (record_stopped_by_watchpoint): Renamed to ...
10656 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10657 (record_disconnect): Renamed to ...
10658 (record_full_disconnect): ... this. Updated all users.
10659 (record_detach): Renamed to ...
10660 (record_full_detach): ... this. Updated all users.
10661 (record_mourn_inferior): Renamed to ...
10662 (record_full_mourn_inferior): ... this. Updated all users.
10663 (record_kill): Renamed to ...
10664 (record_full_kill): ... this. Updated all users.
10665 (record_stopped_data_address): Renamed to ...
10666 (record_full_stopped_data_address): ... this. Updated all users.
10667 (record_registers_change): Renamed to ...
10668 (record_full_registers_change): ... this. Updated all users.
10669 (record_store_registers): Renamed to ...
10670 (record_full_store_registers): ... this. Updated all users.
10671 (record_xfer_partial): Renamed to ...
10672 (record_full_xfer_partial): ... this. Updated all users.
10673 (record_breakpoint): Renamed to ...
10674 (record_full_breakpoint): ... this. Updated all users.
10675 (record_breakpoint_p): Renamed to ...
10676 (record_full_breakpoint_p): ... this. Updated all users.
10677 (record_breakpoints): Renamed to ...
10678 (record_full_breakpoints): ... this. Updated all users.
10679 (record_sync_record_breakpoints): Renamed to ...
10680 (record_full_sync_record_breakpoints): ... this.
10681 Updated all users.
10682 (record_init_record_breakpoints): Renamed to ...
10683 (record_full_init_record_breakpoints): ... this.
10684 Updated all users.
10685 (record_insert_breakpoint): Renamed to ...
10686 (record_full_insert_breakpoint): ... this. Updated all users.
10687 (record_remove_breakpoint): Renamed to ...
10688 (record_full_remove_breakpoint): ... this. Updated all users.
10689 (record_can_execute_reverse): Renamed to ...
10690 (record_full_can_execute_reverse): ... this. Updated all users.
10691 (record_get_bookmark): Renamed to ...
10692 (record_full_get_bookmark): ... this. Updated all users.
10693 (record_goto_bookmark): Renamed to ...
10694 (record_full_goto_bookmark): ... this. Updated all users.
10695 (record_async): Renamed to ...
10696 (record_full_async): ... this. Updated all users.
10697 (record_can_async_p): Renamed to ...
10698 (record_full_can_async_p): ... this. Updated all users.
10699 (record_is_async_p): Renamed to ...
10700 (record_full_is_async_p): ... this. Updated all users.
10701 (record_execution_direction): Renamed to ...
10702 (record_full_execution_direction): ... this. Updated all users.
10703 (record_info): Renamed to ...
10704 (record_full_info): ... this. Updated all users.
10705 (record_delete): Renamed to ...
10706 (record_full_delete): ... this. Updated all users.
10707 (record_is_replaying): Renamed to ...
10708 (record_full_is_replaying): ... this. Updated all users.
10709 (record_goto_entry): Renamed to ...
10710 (record_full_goto_entry): ... this. Updated all users.
10711 (record_goto_begin): Renamed to ...
10712 (record_full_goto_begin): ... this. Updated all users.
10713 (record_goto_end): Renamed to ...
10714 (record_full_goto_end): ... this. Updated all users.
10715 (record_goto): Renamed to ...
10716 (record_full_goto): ... this. Updated all users.
10717 (init_record_ops): Renamed to ...
10718 (init_record_full_ops): ... this. Updated all users.
10719 (record_core_resume): Renamed to ...
10720 (record_full_core_resume): ... this. Updated all users.
10721 (record_core_kill): Renamed to ...
10722 (record_full_core_kill): ... this. Updated all users.
10723 (record_core_fetch_registers): Renamed to ...
10724 (record_full_core_fetch_registers): ... this. Updated all users.
10725 (record_core_prepare_to_store): Renamed to ...
10726 (record_full_core_prepare_to_store): ... this. Updated all users.
10727 (record_core_store_registers): Renamed to ...
10728 (record_full_core_store_registers): ... this. Updated all users.
10729 (record_core_xfer_partial): Renamed to ...
10730 (record_full_core_xfer_partial): ... this. Updated all users.
10731 (record_core_insert_breakpoint): Renamed to ...
10732 (record_full_core_insert_breakpoint): ... this. Updated all users.
10733 (record_core_remove_breakpoint): Renamed to ...
10734 (record_full_core_remove_breakpoint): ... this. Updated all users.
10735 (record_core_has_execution): Renamed to ...
10736 (record_full_core_has_execution): ... this. Updated all users.
10737 (init_record_core_ops): Renamed to ...
10738 (init_record_full_core_ops): ... this. Updated all users.
10739 (cmd_record_restore): Renamed to ...
10740 (cmd_record_full_restore): ... this. Updated all users.
10741 (record_save_cleanups): Renamed to ...
10742 (record_full_save_cleanups): ... this. Updated all users.
10743 (cmd_record_start): Renamed to ...
10744 (cmd_record_full_start): ... this. Updated all users.
10745 (set_record_insn_max_num): Renamed to ...
10746 (set_record_full_insn_max_num): ... this. Updated all users.
10747 (set_record_command): Renamed to ...
10748 (set_record_full_command): ... this. Updated all users.
10749 (show_record_command): Renamed to ...
10750 (show_record_full_command): ... this. Updated all users.
10751 (_initialize_record): Renamed to ...
10752 (_initialize_record_full): ... this. Updated all users.
10753
d02ed0bb
MM
107542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10755
10756 * record.h: Split into this and ...
10757 * record-full.h: ... this.
10758 * record.c: Split into this and ...
10759 * record-full.c: ... this.
10760 * target.h (target_ops): Add new fields to_info_record,
10761 to_save_record, to_delete_record, to_record_is_replaying,
10762 to_goto_record_begin, to_goto_record_end, to_goto_record.
10763 (target_info_record): New.
10764 (target_save_record): New.
10765 (target_supports_delete_record): New.
10766 (target_delete_record): New.
10767 (target_record_is_replaying): New.
10768 (target_goto_record_begin): New.
10769 (target_goto_record_end): New.
10770 (target_goto_record): New.
10771 * target.c (target_info_record): New.
10772 (target_save_record): New.
10773 (target_supports_delete_record): New.
10774 (target_delete_record): New.
10775 (target_record_is_replaying): New.
10776 (target_goto_record_begin): New.
10777 (target_goto_record_end): New.
10778 (target_goto_record): New.
10779 * record.h: Declare struct cmd_list_element.
10780 (record_cmdlist): New declaration.
10781 (set_record_cmdlist): New declaration.
10782 (show_record_cmdlist): New declaration.
10783 (info_record_cmdlist): New declaration.
10784 (cmd_record_goto): New declaration.
10785 * record.c: Remove unnecessary includes.
10786 Include inferior.h.
10787 (cmd_record_goto): Remove declaration.
10788 (record_cmdlist): Now extern. Initialize.
10789 (set_record_cmdlist): Now extern. Initialize.
10790 (show_record_cmdlist): Now extern. Initialize.
10791 (info_record_cmdlist): Now extern. Initialize.
10792 (find_record_target): New.
10793 (require_record_target): New.
10794 (cmd_record_start): Update.
10795 (cmd_record_delete): Remove target-specific code.
10796 Call target_delete_record.
10797 (cmd_record_stop): Unpush any record target.
10798 (set_record_insn_max_num): Move to record-full.c
10799 (set_record_command): Add comment.
10800 (show_record_command): Add comment.
10801 (info_record_command): Update comment.
10802 Remove target-specific code.
10803 Call the record target's to_info_record.
10804 (cmd_record_start): New.
10805 (cmd_record_goto): Now extern.
10806 Remove target-specific code.
10807 Call target_goto_begin, target_goto_end, or target_goto.
10808 (_initialize_record): Move record target ops initialization to
10809 record-full.c.
10810 Change "record" command help text.
10811 Move "record restore", "record set", and "record show" commands to
10812 record-full.c.
10813 * Makefile.in (SFILES): Add record-full.c.
10814 (HFILES_NO_SRCDIR): Add record-full.h.
10815 (COMMON_OBS): Add record-full.o.
10816 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10817 * arm-tdep.c: Include record-full.h.
10818 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10819 * i386-tdep.c: Include record-full.h.
10820 * infrun.c: Include record-full.h.
10821 * linux-record.c: Include record-full.h.
10822 * moxie-tdep.c: Include record-full.h.
10823 * record-full.c: Include record-full.h.
10824 Change module comment.
10825 (set_record_full_cmdlist): New.
10826 (show_record_full_cmdlist): New.
10827 (record_full_cmdlist): New.
10828 (record_goto_insn): New declaration.
10829 (record_save): New declaration.
10830 (record_check_insn_num): Change query string.
10831 (record_info): New.
10832 (record_delete): New.
10833 (record_is_replaying): New.
10834 (record_goto_entry): New.
10835 (record_goto_begin): New.
10836 (record_goto_end): New.
10837 (record_goto): New.
10838 (init_record_ops): Update.
10839 (init_record_core_ops): Update.
10840 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10841 (cmd_record_start): New.
10842 (set_record_insn_max_num): Moved from record.c
10843 (set_record_full_command): New.
10844 (show_record_full_command): New.
10845 (_initialize_record_full): New.
10846
b48d48eb
MM
108472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10848
10849 * target.h (add_deprecated_target_alias): New.
10850 * target.c (add_deprecated_target_alias): New.
10851
a950d57c
MM
108522013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10853
10854 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10855 and signal.h.
10856 (linux_supports_btrace): Add kernel and
10857 cpuid check.
10858 (kernel_supports_btrace): New function.
10859 (cpu_supports_btrace): New function.
10860 (intel_supports_btrace): New function.
10861
9accd112
MM
108622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10863
10864 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10865 * remote.c: Include btrace.h.
10866 (struct btrace_target_info): New struct.
10867 (remote_supports_btrace): New function.
10868 (send_Qbtrace): New function.
10869 (remote_enable_btrace): New function.
10870 (remote_disable_btrace): New function.
10871 (remote_teardown_btrace): New function.
10872 (remote_read_btrace): New function.
10873 (init_remote_ops): Add btrace ops.
10874 (enum <unnamed>): Add btrace packets.
10875 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10876 (_initialize_remote): Add packet configuration for branch tracing.
10877
c12a2917
MM
108782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10879
10880 * features/btrace.dtd: New file.
10881 * Makefile.in (XMLFILES): Add btrace.dtd.
10882 * btrace.h (parse_xml_btrace): New declaration.
10883 * btrace.c: Include xml-support.h.
10884 (parse_xml_btrace): New function.
10885 (parse_xml_btrace_block): New function.
10886 (block_attributes): New struct.
10887 (btrace_attributes): New struct.
10888 (btrace_children): New struct.
10889 (btrace_elements): New struct.
10890
3e3aea48
MM
108912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10892
10893 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10894 (amd64_linux_enable_btrace): New.
10895 (amd64_linux_disable_btrace): New.
10896 (amd64_linux_teardown_btrace): New.
10897 (_initialize_amd64_linux_nat): Initialize btrace ops.
10898 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10899 (i386_linux_enable_btrace): New.
10900 (i386_linux_disable_btrace): New.
10901 (i386_linux_teardown_btrace): New.
10902 (_initialize_i386_linux_nat): Initialize btrace ops.
10903 * config/i386/linux.mh: Add linux-btrace.o.
10904 * config/i386/linux64.mh: Add linux-btrace.o.
10905
7c97f91e
MM
109062013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10907
10908 * common/linux_btrace.h: New file.
10909 * common/linux_btrace.c: New file.
10910 * Makefile.in (SFILES): Add btrace.c.
10911 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10912 (COMMON_OBS): Add btrace.o.
10913 (linux-btrace.o): New rule.
10914
1999790b 109152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10916
10917 * target.h: Include btrace.h.
10918 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10919 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10920 * target.c (target_supports_btrace): New function.
10921 (target_enable_btrace): New function.
10922 (target_disable_btrace): New function.
10923 (target_teardown_btrace): New function.
10924 (target_read_btrace): New function.
10925 * btrace.h: New file.
10926 * btrace.c: New file.
10927 * Makefile.in: Add btrace.c.
10928 * gdbthread.h: Include btrace.h.
10929 (struct thread_info): Add btrace field.
10930 * thread.c: Include btrace.h.
10931 (clear_thread_inferior_resources): Call target_teardown_btrace.
10932 * common/btrace-common.h: New file.
10933
61a31a67
JK
109342013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10935
10936 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10937 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10938 kill_status to outer block.
10939
05c56a9d
JK
109402013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 Fix entry-values if the callee called a noreturn function.
10943 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10944 get_frame_address_in_block. Add new comment.
10945
9112db09
JK
109462013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10947
10948 Fix entry-values in C++ across CUs.
10949 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10950 lookup_minimal_symbol. Add a comment.
10951 * dwarf2read.c
10952 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10953 DW_AT_linkage_name.
10954
9b67fcec
YQ
109552013-03-08 Yao Qi <yao@codesourcery.com>
10956
10957 * tracepoint.c (_initialize_tracepoint): Indent the code.
10958
6221be90
PA
109592013-03-08 Pedro Alves <palves@redhat.com>
10960
10961 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10962 (parse_find_args, find_command): Change type of pattern buffer
10963 locals to 'gdb_byte *'.
10964
be9a119c 109652013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10966 Hafiz Abid Qadeer <abidh@codesourcery.com>
10967
10968 * NEWS: Mention set and show trace-buffer-size commands.
10969 Mention new packet.
10970 * target.h (struct target_ops): New method
10971 to_set_trace_buffer_size.
10972 (target_set_trace_buffer_size): New macro.
10973 * target.c (update_current_target): Set up new method.
10974 * tracepoint.c (trace_buffer_size): New global.
10975 (start_tracing): Send it to the target.
10976 (set_trace_buffer_size): New function.
10977 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10978 * remote.c (remote_set_trace_buffer_size): New function.
10979 (_initialize_remote): Use it.
10980 (QTBuffer:size) New remote command.
10981 (PACKET_QTBuffer_size): New enum.
10982 (remote_protocol_features): Add an entry for
10983 PACKET_QTBuffer_size.
10984
7da3ab79
TT
109852013-03-08 Tom Tromey <tromey@redhat.com>
10986
10987 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10988 variable.
10989
0c1f71e7
PA
109902013-03-07 Pedro Alves <palves@redhat.com>
10991
10992 * target.c (target_read_stralloc, target_fileio_read_alloc):
10993 *Cast pointer to 'gdb_byte *' in target call.
10994
c8af03a2
PA
109952013-03-07 Pedro Alves <palves@redhat.com>
10996
10997 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10998 call.
10999
529480d0
KS
110002013-03-07 Keith Seitz <keiths@redhat.com>
11001
11002 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11003 (trace_pass_command): Likewise.
11004 * cli/cli-cmds.c: Include cli/cli-utils.h.
11005 (source_command): Use skip-spaces.
11006 (disassemble_command): Likewise.
11007 * findcmd.c: Include cli/cli-utils.h.
11008 (parse_find_args): Use skip_spaces.
11009 * go32-nat.c: Include cli/cli-utils.h.
11010 (go32_sldt): Use skip_spaces.
11011 (go32_sgdt): Likewise.
11012 (go32_sidt): Likewise.
11013 (go32_pde): Likewise.
11014 (go32_pte): Likewise.
11015 (go32_pte_for_address): Likewise.
11016 * infcmd.c: Include cli/cli-utils.h.
11017 (registers_info): Use skip_spaces.
11018 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11019 (linux_info_proc): Likewise.
11020 * linux-thread-db.c: Include cli/cli-utils.h.
11021 (info_auto_load_libthread_db): Use skip_spaces_const.
11022 * m32r-rom.c: Include cli/cli-utils.h.
11023 (m32r_upload_command): Use skip_spaces.
11024 * maint.c: Include cli/cli-utils.h.
11025 (maintenance_translate_address): Use skip_spaces.
11026 * mi/mi-parse.c: Include cli/cli-utils.h.
11027 (mi_parse_argv): Use skip_spaces.
11028 (mi_parse): Likewise.
11029 * minsyms.c: Include cli/cli-utils.h.
11030 (msymbol_hash_iw): Use skip_spaces_const.
11031 * objc-lang.c: Include cli/cli-utils.h.
11032 (parse_selector): Use skip_spaces.
11033 (parse_method): Likewise.
11034 * python/python.c: Include cli/cli-utils.h.
11035 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11036 (python_command)[HAVE_PYTHON]: Likewise.
11037 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11038 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11039 (m32r_load): Use skip_spaces.
11040 * serial.c: Include cli/cli-utils.h.
11041 (serial_open): Use skip_spaces_const.
11042 * stack.c: Include cli/cli-utils.h.
11043 (parse_frame_specification_1): Use skip_spaces_const.
11044 * symfile.c: Include cli/cli-utils.h.
11045 (set_ext_lang_command): Use skip_spaces.
11046 * symtab.c: Include cli/cli-utils.h.
11047 (rbreak_command): Use skip_spaces.
11048 * thread.c (thread_name_command): Use skip_spaces.
11049 * tracepoint.c (validate_actionline): Use skip_spaces.
11050 (encode_actions_1): Likewise.
11051 (trace_find_range_command): Likewise.
11052 (trace_find_outside_command): Likewise.
11053 (trace_dump_actions): Likewise.
11054
ac91cd70
PA
110552013-03-07 Pedro Alves <palves@redhat.com>
11056
11057 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11058 * expprint.c (print_subexp_standard): Likewise.
11059 * utils.c (host_char_to_target): Likewise.
11060 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11061 * varobj.c (value_get_print_value): Change type of local to char*.
11062 Cast it gdb_byte * in call to language printer.
11063
2898e560
PA
110642013-03-07 Pedro Alves <palves@redhat.com>
11065
11066 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11067 gdb_byte *'.
11068 (make_wchar_iterator): Remove cast to char*.
11069 (wchar_iterate): Change type of local.
11070
a09b4448
PA
110712013-03-07 Pedro Alves <palves@redhat.com>
11072
11073 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11074 for 'regcache->register_status'.
11075
20ced3e4
PA
110762013-03-07 Pedro Alves <palves@redhat.com>
11077
c2d6a675 11078 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
11079 int.
11080
fe106009
PA
110812013-03-07 Pedro Alves <palves@redhat.com>
11082
11083 * stap-probe.c (handle_stap_probe): Add cast to char*.
11084
8ac2c12b
PA
110852013-03-07 Pedro Alves <palves@redhat.com>
11086
11087 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11088 RECORD_MSGRCV>: Pass a signed variable to
11089 regcache_raw_read_signed, instead of an unsigned one.
11090
99f0a309
PA
110912013-03-07 Pedro Alves <palves@redhat.com>
11092
11093 * remote-notif.c (notif_debug): Change type to int.
11094 * remote-notif.h (notif_debug): Likewise.
11095
964b8317
PA
110962013-03-07 Pedro Alves <palves@redhat.com>
11097
11098 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11099
f0cc8ad4
PA
111002013-03-07 Pedro Alves <palves@redhat.com>
11101
11102 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11103 * remote.h (hex2bin, bin2hex): ... here.
11104 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11105
77dec115
EZ
111062013-03-07 Eli Zaretskii <eliz@gnu.org>
11107
11108 * utils.c (initialize_utils): Improve doc strings of "set/show
11109 width", "set/show height", and "set/show pagination".
11110
741d92cf
KS
111112013-03-06 Keith Seitz <keiths@redhat.com>
11112
11113 * ax-gdb.c (gen_printf): Make FORMAT const.
11114 * ax-gdb.h (gen_printf): Likewise.
11115 * ax-general.c (ax_string): Make STR const.
11116 * ax.h (ax_string): Likewise.
11117
7b6c814e
DE
111182013-03-06 Doug Evans <dje@google.com>
11119
11120 * elfread.c (elf_symfile_read): Move debugging printf to more
11121 logical location.
11122
634334ab
PA
111232013-03-06 Pedro Alves <palves@redhat.com>
11124
11125 * python/py-utils.c (target_string_to_unicode): Delete function.
11126 * python/python-internal.h (target_string_to_unicode): Delete
11127 declaration.
11128
e482a1a7
PM
111292013-03-06 Pierre Muller <muller@sourceware.org>
11130
11131 * linespec.c (get_current_search_block): ARI fix, use (void)
11132 for empty parameter list.
11133
4eeaa230
DE
111342013-03-05 Doug Evans <dje@google.com>
11135
11136 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11137 of old ada_lookup_symbol_list. In !full_search case, don't
11138 search superblocks.
11139 (ada_lookup_symbol_list): Delete arg full_search, all callers
11140 updated. Call ada_lookup_symbol_list_worker.
11141 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11142 * ada-lang.h (ada_lookup_symbol_list): Update.
11143 * language.h (language_defn): Update comment for
11144 la_iterate_over_symbols.
11145 * linespec.c (iterate_over_file_blocks): New function.
11146 (iterate_over_all_matching_symtabs): Call it.
11147 (lookup_prefix_sym): Ditto.
11148 (get_current_search_block): New function.
11149 (get_search_block): Delete.
11150 (find_label_symbols): Call get_current_search_block.
11151 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11152 * symtab.c (iterate_over_symbols): Don't search superblocks.
11153
b69b1fb1
YQ
111542013-03-05 Yao Qi <yao@codesourcery.com>
11155
11156 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11157 parameter VAR's type from "unsigned int" to "int".
11158 * command.h (var_zuinteger_unlimited): Update its comments.
11159 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11160
3c095f49
CV
111612013-03-05 Corinna Vinschen <vinschen@redhat.de>
11162
11163 * NEWS: Mention new target x86_64-*-cygwin*.
11164
b5b0b0af
CV
111652013-03-05 Corinna Vinschen <vinschen@redhat.de>
11166
11167 * configure.host: Add x86_64-*-cygwin* as host.
11168 * configure.tgt: Add x86_64-*-cygwin* as target.
11169 * config/i386/cygwin64.mh: New file.
11170
f6f99966
JK
111712013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11172
11173 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11174
33f448b1
JK
111752013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11176
11177 * linespec.c (struct linespec_canonical_name): New.
11178 (struct linespec_state): Change canonical_names type to it.
11179 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11180 xrealloc element size. Initialize the different CANONICAL fields.
11181 (canonical_to_fullform): New.
11182 (filter_results): Use it. Add variables canonical, fullform and
11183 cleanup.
11184 (struct decode_line_2_item, decode_line_2_compare_items): New.
11185 (decode_line_2): Remove variables iter and item_names, add variables
11186 items and items_count. Modify the code for these new variables.
11187
feb14725
CV
111882013-03-04 Corinna Vinschen <vinschen@redhat.com>
11189
11190 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11191 calling do_cleanup.
11192
e83b17ba
HZ
111932013-03-04 Luis Machado <lgustavo@codesourcery.com>
11194
11195 * tracepoint.c (build_traceframe_info): Add code for byte order.
11196
a2d13a0d
KB
111972013-03-02 Kevin Buettner <kevinb@redhat.com>
11198
8dddcae8
KB
11199 * v850-tdep.c: (v850e2_register_name): Revise system register
11200 names to match current V850E2M architecture specifications.
11201 Update register number enum comments too.
f5aee5ee 11202
d79e58d8
JW
112032013-03-01 Jiong Wang <jiwang@tilera.com>
11204 Pedro Alves <palves@redhat.com>
11205
11206 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11207 to END_ADDR.
11208 (tilegx_skip_prologue): Limit prologue analysis to section end.
11209
c4be5165
JK
112102013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11211
11212 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11213 use it.
11214
e362b510
PA
112152013-03-01 Pedro Alves <palves@redhat.com>
11216
11217 Use gdb_byte for bytes from the program being debugged.
11218
11219 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11220 Change type of local 'buf' to gdb_byte.
11221 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11222 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11223 * cris-tdep.c (cris_sigcontext_addr)
11224 (cris_sigtramp_frame_unwind_cache): Likewise.
11225 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11226 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11227 Likewise.
11228 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11229 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11230 (hppa32_hpux_search_dummy_call_sequence)
11231 (hppa_hpux_supply_save_state): Likewise.
11232 * hppa-linux-tdep.c (insns_match_pattern)
11233 (hppa_linux_find_global_pointer): Likewise.
11234 * hppa-tdep.c (hppa_in_function_epilogue_p)
11235 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11236 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11237 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11238 (i386fbsd_collect_uthread): Likewise.
11239 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11240 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11241 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11242 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11243 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11244 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11245 (ia64_libunwind_frame_prev_register)
11246 (ia64_libunwind_sigtramp_frame_this_id)
11247 (ia64_find_global_pointer_from_dynamic_section)
11248 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11249 (ia64_unwind_pc): Likewise.
11250 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11251 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11252 (m68hc11_extract_return_value): Likewise.
11253 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11254 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11255 (mep_get_insn, mep_push_dummy_call): Likewise.
11256 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11257 (mips_linux_in_dynsym_stub): Likewise.
11258 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11259 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11260 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11261 to gdb_byte.
11262 * remote-mips.c (mips_set_register): Likewise.
11263 * remote-sim.c (gdbsim_fetch_register): Likewise.
11264 * score-tdep.c (score7_fetch_inst): Change type of parameter
11265 'memblock' and local 'buf' to gdb_byte.
11266 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11267 Change type of local 'buf' to gdb_byte. Adjust.
11268 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11269 to gdb_byte**.
11270 (score7_analyze_prologue): Change type of 'memblock' and
11271 'memblock_ptr' locals to gdb_byte*.
11272 * sh64-tdep.c (sh64_extract_return_value)
11273 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11274 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11275 * solib-pa64.c (pa64_solib_create_inferior_hook)
11276 (pa64_open_symbol_file_object): Remove local 'buf'.
11277 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11278 (som_open_symbol_file_object): Likewise.
11279 * solib-spu.c (spu_current_sos): Likewise.
11280 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11281 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11282 (spu_store_registers): Likewise.
11283 * target.c (debug_print_register): Likewise.
11284 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11285 * xstormy16-tdep.c (xstormy16_store_return_value)
11286 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11287 (xstormy16_find_jmp_table_entry): Likewise.
11288
75cc61ca 112892013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
11290
11291 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11292 (tilegx_gdbarch_init): Install it.
11293
ddb08e9c
TT
112942013-02-28 Tom Tromey <tromey@redhat.com>
11295
11296 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11297 PyLong_Check.
11298
62d7fb51
DE
112992013-02-28 Doug Evans <dje@google.com>
11300
11301 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11302 * python/python.c (gdbpy_find_pc_line): Ditto.
11303
c4a9e8b4
TT
113042013-02-28 Tom Tromey <tromey@redhat.com>
11305
11306 * contrib/excheck.py: New file.
11307 * contrib/exsummary.py: New file.
11308 * contrib/gcc-with-excheck: New file.
11309
7f6a5dde
TT
113102013-02-28 Tom Tromey <tromey@redhat.com>
11311
11312 * python/python.c (gdbpy_print_stack): Call begin_line and
11313 fprintf_filtered inside TRY_CATCH.
11314
9e974e55
TT
113152013-02-28 Tom Tromey <tromey@redhat.com>
11316
11317 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11318 inside TRY_CATCH.
11319
dd5fa3e7
TT
113202013-02-28 Tom Tromey <tromey@redhat.com>
11321
11322 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11323 frame_object_to_frame_info inside TRY_CATCH.
11324
86a3263f
TT
113252013-02-28 Tom Tromey <tromey@redhat.com>
11326
11327 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11328 TRY_CATCH.
11329
81b52a3a
TT
113302013-02-28 Tom Tromey <tromey@redhat.com>
11331
11332 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11333
d50a0ce2
CV
113342013-02-27 Corinna Vinschen <vinschen@redhat.com>
11335
11336 * windows-nat.c: Throughout, fix format strings and casts of
11337 printf-like functions to avoid type related warnings on all
11338 platforms.
11339 (handle_output_debug_string): Fetch context information address
11340 from debug string using string_to_core_addr.
11341
e1f58301
JW
113422013-02-27 Jiong Wang <jiwang@tilera.com>
11343
11344 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11345 * regformats/reg-tilegx32.dat: New.
11346
4fcd89fc
JW
113472013-02-27 Jiong Wang <jiwang@tilera.com>
11348
11349 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11350
748d24e6
JW
113512013-02-27 Jiong Wang <jiwang@tilera.com>
11352
11353 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11354
6c8e944d
YQ
113552013-02-27 Yao Qi <yao@codesourcery.com>
11356 Pedro Alves <palves@redhat.com>
11357
11358 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
11359 pc/tp/range/outside, look for the next trace frame instead of
11360 always starting from frame 0.
6c8e944d 11361
acd7db30
AG
113622013-02-26 Anthony Green <green@moxielogic.com>
11363
11364 * configure.tgt: Add support for moxie-*-rtems* target.
11365
025e6dce
PA
113662013-02-25 Pedro Alves <palves@redhat.com>
11367
11368 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11369 warning text.
11370
ca9c94ef
MR
113712013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11372
11373 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11374 if $fp is used as the virtual frame pointer.
11375
24c274a1
AM
113762013-02-23 Alan Modra <amodra@gmail.com>
11377
11378 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11379 symbol size.
11380 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11381 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11382 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11383 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11384
bfada189
JK
113852013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11386
11387 Code cleanup.
11388 * elfread.c (build_id_bfd_get): Make the return type const.
11389 (build_id_verify): Make the check parameter const.
11390 (build_id_to_debug_filename): Make the build_id parameter and variable
11391 data const.
11392 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11393
c0355132
AM
113942013-02-21 Alan Modra <amodra@gmail.com>
11395
11396 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11397
9f44fbc0
SCR
113982013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11399
11400 Add a new method 'disassemble' to gdb.Architecture class.
11401 * python/py-arch.c (archpy_disassmble): Implementation of the
11402 new method gdb.Architecture.disassemble.
11403 (arch_object_methods): Add entry for the new method.
11404
b74ea3eb
JW
114052013-02-20 Jiong Wang <jiwang@tilera.com>
11406
11407 * MAINTAINERS (Write After Approval): Add myself to the list.
11408
61a672f1
PA
114092013-02-19 Pedro Alves <palves@redhat.com>
11410
11411 Garbage collect 'struct monitor_ops'::load_routine.
11412
11413 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11414 * monitor.c (monitor_load): No longer call
11415 current_monitor->load_routine.
11416 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11417 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11418 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11419
40e397df
PA
114202013-02-19 Pedro Alves <palves@redhat.com>
11421
11422 PR gdb/15161
11423
11424 Harmonize with generic_load.
11425
11426 * monitor.c: Include "readline/readline.h".
11427 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11428 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11429 long/strtol for the 'load_offset' local. Error out if no argument
11430 is given or if too many arguments are given. Tilde expand the
11431 passed in file name.
11432
f698ca8e
KT
114332013-02-19 Kai Tietz <ktietz@redhat.com>
11434
11435 PR gdb/15161
11436 * symfile.c (load_section_data): Change type of load_offset
11437 to CORE_ADDR.
11438 (generic_load): User strtoulst instead of strtoul for conversion
11439 of load_offset.
11440
3361b059
WL
114412013-02-19 Jiong Wang <jiwang@tilera.com>
11442
11443 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11444 for return address, "lr" register, saved on stack.
11445 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11446 after we invoke tilegx_analyze_prologue.
11447
3e9d5130
WL
114482013-02-19 Jiong Wang <jiwang@tilera.com>
11449
bb1bcd86
WL
11450 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11451
3361b059 114522013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 11453
b74ea3eb 11454 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 11455
4aaf2503
WL
114562013-02-19 Jiong Wang <jiwang@tilera.com>
11457
b74ea3eb 11458 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
11459 (tilegx_write_pc): New function.
11460 (tilegx_cannot_reference_register): Return zero if REGNO
11461 is TILEGX_FAULTNUM_REGNUM.
11462 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11463 (tilegx_register_name): Add handling of "faultnum" register.
11464 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11465 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11466 handling of TILEGX_FAULTNUM_REGNUM.
11467 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11468
bc23a956
WL
114692013-02-19 Jiong Wang <jiwang@tilera.com>
11470
11471 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 11472 should be aligned to 64bit.
bc23a956 11473
42f45f1a
KT
114742013-02-19 Kai Tietz <ktietz@redhat.com>
11475
11476 * windows-nat.c (windows_xfer_memory): Fix debug-output
11477 for LLP64.
11478
6ce4c112
LL
114792013-02-19 Lei Liu <lei.liu2@windriver.com>
11480
11481 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11482 Don't check DSP register number if HAVE_DSP is not set.
11483
30e8ee25
AM
114842013-02-19 Alan Modra <amodra@gmail.com>
11485
11486 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11487 throughout file instead.
11488 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11489 Don't xmalloc return value.
11490 (build_id_verify): Similarly. Don't xfree.
11491 (build_id_to_debug_filename): Update.
11492 (find_separate_debug_file_by_buildid): Update, don't xfree.
11493
4c9ad8c2
TT
114942013-02-18 Tom Tromey <tromey@redhat.com>
11495
11496 PR gdb/15102:
11497 * dwarf2read.c (read_subrange_type): Use result of
11498 'check_typedef'.
11499
983dc440
YQ
115002013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11501
11502 * frame.c: Remove one extra white space after #include
11503 directive.
11504
7fb2b84a
JK
115052013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11506
11507 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11508
edceb2a9
JK
115092013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11510
11511 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11512 and dir commands into an if block.
11513
e81b7af8
TT
115142013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11515
11516 * python/py-breakpoint (struct pybp_code): Use int instead of
11517 enum type_code.
11518
f5911ea1
HAQ
115192013-02-15 Pedro Alves <pedro@codesourcery.com>
11520 Hafiz Abid Qadeer <abidh@codesourcery.com>
11521
11522 * NEWS: Mention new field "trace-file".
11523 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11524 (tfile_open): Record the trace file's filename in the trace
11525 status.
11526 (tfile_files_info): Mention the name of the trace file.
11527 Check the "filename" field explicitely.
11528 (trace_status_command): Explicitely check "filename" field.
11529 (trace_find_command): Ditto.
11530 (trace_find_pc_command): Ditto.
11531 (trace_find_tracepoint_command): Ditto.
11532 (trace_find_line_command): Ditto.
11533 (trace_find_range_command): Ditto.
11534 (trace_find_outside_command): Ditto.
11535 * tracepoint.h (struct trace_status) <from_file>: Rename it
11536 to "filename" and make it hold the trace file's filename
11537 instead of a boolean.
11538 * remote.c (remote_get_trace_status): Initialize "filename"
11539 field with NULL instead of 0.
11540
796cb314
YQ
115412013-02-15 Yao Qi <yao@codesourcery.com>
11542
11543 * remote.c: Fix a typo.
11544
42e79b1d
PM
115452013-02-14 Pierre Muller <muller@sourceware.org>
11546
11547 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11548
baea0dae
PA
115492013-02-14 Pedro Alves <palves@redhat.com>
11550
11551 * utils.c (savestring): Don't #undef it. Move function to
11552 common/common-utils.c.
11553 * common/common-utils.c: Include gdb_string.h.
11554 (savestring): Move here from utils.c.
11555 * common/common-utils.h (savestring): Declare.
11556
57c3b6ed
PA
115572013-02-14 Pedro Alves <palves@redhat.com>
11558
11559 * utils.c (savestring): Rename parameter 'size' to 'len'.
11560
d6c44983
YZ
115612013-02-14 Pedro Alves <palves@redhat.com>
11562 Yufeng Zhang <yufeng.zhang@arm.com>
11563
11564 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11565 (aarch64_inferior_data, struct aarch64_inferior_data):
11566 Delete.
11567 (struct aarch64_process_info): New.
11568 (aarch64_process_list): New global.
11569 (aarch64_find_process_pid, aarch64_add_process)
11570 (aarch64_process_info_get): New functions.
11571 (aarch64_inferior_data_get): Delete.
11572 (aarch64_process_info_get): New function.
11573 (aarch64_forget_process): New function.
11574 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11575 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11576 aarch64_get_debug_reg_state.
11577 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11578 instead of linux_nat_iterate_watchpoint_lwps.
11579 (aarch64_linux_new_fork): New function.
11580 (aarch64_linux_child_post_startup_inferior): Use
11581 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11582 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11583 (aarch64_linux_remove_hw_breakpoint)
11584 (aarch64_handle_aligned_watchpoint)
11585 (aarch64_handle_unaligned_watchpoint)
11586 (aarch64_linux_insert_watchpoint)
11587 (aarch64_linux_remove_watchpoint)
11588 (aarch64_linux_stopped_data_address): Adjust to pass the current
11589 process id to aarch64_debug_reg_state.
11590 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11591 linux_nat_new_fork hook, and aarch64_forget_process as
11592 linux_nat_forget_process hook; remove the call to
11593 register_inferior_data_with_cleanup.
11594
4819b3f8
PA
115952013-02-14 Pedro Alves <palves@redhat.com>
11596
11597 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11598 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11599 lval_memory.
11600
1773c82c
HAQ
116012013-02-14 Pedro Alves <pedro@codesourcery.com>
11602 Hafiz Abid Qadeer <abidh@codesourcery.com>
11603
11604 * tracepoint.h (validate_trace_state_variable_name): Declare.
11605 * tracepoint.c (validate_trace_state_variable_name): New.
11606 (trace_variable_command): Parse the trace state variable's name
11607 without using parse_expression. Do several validations.
11608 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11609 trace state variable's name with parse_expression. Validate it.
11610
53778a97
YQ
116112013-02-14 Yao Qi <yao@codesourcery.com>
11612
11613 * infcmd.c (breakpoint_proceeded): Remove it.
11614
7b3ae3a6
YQ
116152013-02-14 Yao Qi <yao@codesourcery.com>
11616
11617 * tracepoint.c (end_actions_pseudocommand): Make it static.
11618 (while_stepping_pseudocommand): Likewise.
11619 * tracepoint.h (end_actions_pseudocommand): Remove the
11620 declaration.
11621 (while_stepping_pseudocommand): Likewise.
11622
64580925
YQ
116232013-02-14 Yao Qi <yao@codesourcery.com>
11624
11625 * cli/cli-decode.c (help_cmd): Remove the declaration of
11626 "cmdlist".
11627 (help_all): Likewise.
11628
26cb8b7c
PA
116292013-02-13 Pedro Alves <palves@redhat.com>
11630
11631 * amd64-linux-nat.c (update_debug_registers_callback):
11632 Update comment.
11633 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11634 iterate_over_lwps.
11635 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11636 i386_debug_reg_state.
11637 (amd64_linux_new_fork): New function.
11638 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11639 linux_nat_new_fork hook, and i386_forget_process as
11640 linux_nat_forget_process hook.
11641 * i386-linux-nat.c (update_debug_registers_callback):
11642 Update comment.
a8256ea1 11643 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
11644 iterate_over_lwps.
11645 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11646 i386_debug_reg_state.
11647 (i386_linux_new_fork): New function.
11648 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11649 linux_nat_new_fork hook, and i386_forget_process as
11650 linux_nat_forget_process hook.
11651 * i386-nat.c (i386_init_dregs): Delete.
11652 (i386_inferior_data, struct i386_inferior_data):
11653 Delete.
11654 (struct i386_process_info): New.
11655 (i386_process_list): New global.
11656 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11657 New functions.
11658 (i386_inferior_data_get): Delete.
11659 (i386_process_info_get): New function.
11660 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11661 (i386_forget_process): New function.
11662 (i386_cleanup_dregs): Rewrite.
11663 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11664 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11665 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11666 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11667 to i386_debug_reg_state.
11668 (i386_use_watchpoints): Don't register inferior data.
11669 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11670 adjust comment.
11671 (i386_forget_process): Declare.
11672 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11673 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11674 New static globals.
11675 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11676 (add_initial_lwp): New, factored out from ...
11677 (add_lwp): ... this. Don't check the number of lwps before
11678 calling linux_nat_new_thread.
11679 (linux_nat_iterate_watchpoint_lwps): Delete.
11680 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11681 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11682 forks and vforks.
11683 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11684 initial lwp.
11685 (linux_nat_kill, linux_nat_mourn_inferior): Call
11686 linux_nat_forget_process.
11687 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11688 (linux_nat_forget_process): New functions.
11689 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11690 type.
11691 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11692 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11693 types.
11694 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11695 (linux_nat_forget_process): New declarations.
11696
11697 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11698 (amd64fbsd_mourn_inferior): New function.
11699 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11700 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11701
5befea72
MS
117022013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11703
55015247
YQ
11704 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11705 Adding _().
5befea72 11706
1d3ffd6b
MS
117072013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11708
11709 * aarch64-linux-nat.c (debug_reg_change_callback)
11710 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11711 %s and phex().
11712
6eb04473
MS
117132013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11714
11715 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11716 with LONGEST.
11717
a016fc87
HAQ
117182013-02-13 Pedro Alves <palves@redhat.com>
11719 Hafiz Abid Qadeer <abidh@codesourcery.com>
11720
11721 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11722
e234dfaf
TT
117232013-02-12 Tom Tromey <tromey@redhat.com>
11724
11725 PR symtab/11464:
11726 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11727 NAME return.
11728 (classify_inner_name): Remove 'first_name' argument, add
11729 'context'. Remove unused variable.
11730 (yylex): Explicitly maintain the context type. Exit loop earlier
11731 if NAME result is seen.
11732
0b1afbb3
PA
117332013-02-12 Pedro Alves <palves@redhat.com>
11734
11735 * amd64-darwin-tdep.c: Add (C) after Copyright.
11736 * cli/cli-cmds.h: Ditto.
11737 * cli/cli-decode.c: Ditto.
11738 * cli/cli-decode.h: Ditto.
11739 * cli/cli-dump.c: Ditto.
11740 * cli/cli-dump.h: Ditto.
11741 * cli/cli-interp.c: Ditto.
11742 * cli/cli-logging.c: Ditto.
11743 * cli/cli-script.c: Ditto.
11744 * cli/cli-script.h: Ditto.
11745 * cli/cli-setshow.c: Ditto.
11746 * cli/cli-setshow.h: Ditto.
11747 * cli/cli-utils.c: Ditto.
11748 * cli/cli-utils.h: Ditto.
11749 * config/alpha/nm-osf3.h: Ditto.
11750 * config/djgpp/djconfig.sh: Ditto.
11751 * config/i386/nm-fbsd.h: Ditto.
11752 * config/i386/nm-i386gnu.h: Ditto.
11753 * config/nm-linux.h: Ditto.
11754 * config/nm-nto.h: Ditto.
11755 * config/rs6000/nm-rs6000.h: Ditto.
11756 * config/sparc/nm-sol2.h: Ditto.
11757 * darwin-nat-info.c: Ditto.
11758 * dfp.c: Ditto.
11759 * dfp.h: Ditto.
11760 * gdb-demangle.h: Ditto.
11761 * i386-darwin-nat.c: Ditto.
11762 * i386-darwin-tdep.c: Ditto.
11763 * linux-fork.h: Ditto.
11764 * m32c-tdep.c: Ditto.
11765 * microblaze-linux-tdep.c: Ditto.
11766 * microblaze-rom.c: Ditto.
11767 * microblaze-tdep.c: Ditto.
11768 * microblaze-tdep.h: Ditto.
11769 * mips-linux-tdep.h: Ditto.
11770 * ppc-ravenscar-thread.c: Ditto.
11771 * ppc-ravenscar-thread.h: Ditto.
11772 * prologue-value.c: Ditto.
11773 * prologue-value.h: Ditto.
11774 * ravenscar-thread.c: Ditto.
11775 * ravenscar-thread.h: Ditto.
11776 * sparc-ravenscar-thread.c: Ditto.
11777 * sparc-ravenscar-thread.h: Ditto.
11778 * tilegx-linux-tdep.c: Ditto.
11779 * unwind_stop_reasons.def: Ditto.
11780 * windows-nat.h: Ditto.
11781 * xtensa-linux-tdep.c: Ditto.
11782 * xtensa-xtregs.c: Ditto.
11783 * regformats/regdat.sh: Ditto.
11784 * regformats/regdef.h: Ditto.
11785
6c01dd94
PA
117862013-02-12 Pedro Alves <palves@redhat.com>
11787
11788 * break-catch-sig.c: Update copyright years.
11789
b65a2bd9
SCR
117902013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11791
11792 Add support for a destructor for ui_out data and use it to
11793 provide a ui_out destructor.
11794 * ui-out.h: Declare the new ui_out destructor.
11795 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11796 * ui-out.c (default_data_destroy): Add a default data destructor
11797 which does nothing.
11798 (default_ui_out_impl): Set the new data_destroy field to
11799 default_data_destroy
11800 (uo_data_destroy): Local function which invokes the data
11801 destructor if present.
11802 (clear_table): Local function which clears the table data of a
11803 ui_out object.
11804 (ui_out_destroy): Public function which frees a ui_out object.
11805 (ui_out_table_end): Use the new clear_table function.
11806 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11807 NULL.
11808 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11809 to NULL.
11810
c2792f5a
DE
118112013-02-11 Doug Evans <dje@google.com>
11812
11813 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11814 (printf_decfloat): New function. Broken out from ui_printf.
11815 Remove unnecessary code to shift the entire format string down.
11816 (printf_pointer): New function.
11817 (ui_printf): Code to print C strings, wide C strings, decfloats,
11818 and pointers moved to separate functions.
11819
d9e98382
SDJ
118202013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11821
11822 * valops.c (value_assign): Handling bitfield offset in
11823 `lval_internalvar_component' case.
11824
4ff3ce77
DE
118252013-02-08 Doug Evans <dje@google.com>
11826
11827 * common/format.c (parse_format_string): Fix whitespace.
11828
901900c4
MGD
118292013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11830
11831 * stack.c (return_command): Work around uninitialized variable
11832 warning.
11833
b5dbc8d4
YZ
118342013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11835
11836 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11837 number of the registers from 36 to 34.
11838
51d66578
MS
118392013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11840
11841 * NEWS: Mention new AArch64 native and target support.
11842
176b1c95
MS
118432013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11844
11845 * MAINTAINERS (Write After Approval): Add myself.
11846
9d19df75
MS
118472013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11848 Marcus Shawcroft <marcus.shawcroft@arm.com>
11849 Nigel Stephens <nigel.stephens@arm.com>
11850 Yufeng Zhang <yufeng.zhang@arm.com>
11851
11852 * aarch64-linux-nat.c: New file.
11853 * config/aarch64/linux.mh: New file.
11854 * configure.host: Add AArch64.
11855 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11856
7e1e0340
DE
118572013-02-07 Doug Evans <dje@google.com>
11858
11859 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11860 disassemble command.
11861
45e25a36
MS
118622013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11863
11864 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11865 set_gdbarch_fetch_tls_load_module_address.
11866
bbfdfe1c
DM
118672013-02-06 David S. Miller <davem@davemloft.net>
11868
11869 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11870 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11871 * value.c (struct_return_convention): New function.
11872 (using_struct_return): Implement in terms of struct_return_convention.
11873 * value.h (struct_return_convention): Declare.
11874 * stack.c (return_command): Allow successful overriding of the return
11875 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11876
bc9abe4a
TT
118772013-02-06 Tom Tromey <tromey@redhat.com>
11878
11879 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11880 outside of TRY_CATCH.
11881
134a2066
YQ
118822013-02-06 Yao Qi <yao@codesourcery.com>
11883
11884 * mi/mi-interp.c: Include "tracepoint.h".
11885 (mi_tsv_modified): Declare.
11886 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11887 (mi_interpreter_init): Call observer_attach_tsv_modified.
11888 (mi_tsv_modified): New.
11889 (mi_tsv_created, mi_tsv_deleted): Update.
11890 * tracepoint.c (trace_variable_command): Call
11891 observer_notify_tsv_modified if the initial value of tsv is
11892 changed.
11893 (delete_trace_state_variable): Call
11894 observer_notify_tsv_deleted earlier.
11895 (trace_variable_command): Caller update.
11896 (create_tsv_from_upload): Likewise.
11897 * observer.sh: Declare "struct trace_state_variable".
11898
11899 * NEWS: Mention the new MI notification "=tsv-modified".
11900
59be2b6a
DE
119012013-02-05 Doug Evans <dje@google.com>
11902
11903 * completer.c (location_completer): Fix typo in comment.
11904
d30113d4
JK
119052013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11906
11907 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11908 ADDRESS sorted.
11909
14ac654f
MS
119102013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11911
11912 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11913 Refactor if statement to avoid trailing || operator.
11914
543bf33d
AT
119152013-02-05 Andreas Tobler <andreast@fgznet.ch>
11916
11917 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11918
dc18f110
AT
119192013-02-04 Andreas Tobler <andreast@fgznet.ch>
11920
11921 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11922 * configure.host: Add powerpc*-*-freebsd* target.
11923 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11924 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11925 * config/powerpc/fbsd.mh: New file.
11926
b3ac9c77
SDJ
119272013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11928 Denys Vlasenko <dvlasenk@redhat.com>
11929 Pedro Alves <palves@redhat.com>
11930
11931 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11932 (struct elf_internal_linux_prpsinfo): Forward declare.
11933 * gdbarch.h, gdbarch.c: Regenerate.
11934 * linux-tdep.c: Include `cli/cli-utils.h'.
11935 (linux_fill_prpsinfo): New function.
11936 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11937 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11938 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11939 depending on gdbarch pointer bitness.
11940 * ppc-linux-tdep.c: Include elf-bfd.h.
11941 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11942 on 32-bit.
11943
176eb98c
MS
119442013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11945 Marcus Shawcroft <marcus.shawcroft@arm.com>
11946 Nigel Stephens <nigel.stephens@arm.com>
11947 Yufeng Zhang <yufeng.zhang@arm.com>
11948
11949 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11950
cf0dbd6f
MS
119512013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11952 Marcus Shawcroft <marcus.shawcroft@arm.com>
11953 Nigel Stephens <nigel.stephens@arm.com>
11954 Yufeng Zhang <yufeng.zhang@arm.com>
11955
11956 * aarch64-newlib-tdep.c: New file.
11957 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11958 aarch64*-*-elf.
11959 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11960 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11961 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11962 * osabi.c (gdb_osabi_names): Add "Newlib".
11963
1ae3db19
MS
119642013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11965 Marcus Shawcroft <marcus.shawcroft@arm.com>
11966 Nigel Stephens <nigel.stephens@arm.com>
11967 Yufeng Zhang <yufeng.zhang@arm.com>
11968
11969 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11970 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11971 * aarch64-linux-tdep.c: New file.
11972 * aarch64-linux-tdep.h: New file.
11973 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11974 * configure.tgt: Add aarch64-none-linux-gnu.
11975
07b287a0
MS
119762013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11977 Marcus Shawcroft <marcus.shawcroft@arm.com>
11978 Nigel Stephens <nigel.stephens@arm.com>
11979 Yufeng Zhang <yufeng.zhang@arm.com>
11980
11981 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11982 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11983 (ALLDEPFILES): Add aarch64-tdep.c.
11984 * aarch64-tdep.c: New file.
11985 * aarch64-tdep.h: New file.
11986 * configure.tgt: Add AArch64.
11987 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11988 (aarch64-expedite): New definition.
11989 * features/aarch64-core.xml: New file.
11990 * features/aarch64-fpu.xml: New file.
11991 * features/aarch64-without-fpu.c: New file (generated).
11992 * features/aarch64-without-fpu.xml: New file.
11993 * features/aarch64.c: New file (generated).
11994 * features/aarch64.xml: New file.
11995 * regformats/aarch64-without-fpu.dat: New file (generated).
11996 * regformats/aarch64.dat: New file (generated).
11997
0f1b18ab
JK
119982013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11999
12000 * contrib/expect-read1.c: New file.
12001 * contrib/expect-read1.sh: New file.
12002
233d95b5
JK
120032013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12004
12005 * dwarf2read.c (file_file_name): New function with code from
12006 file_full_name.
12007 (file_full_name): Move most of the code to file_file_name.
12008 (macro_start_file): Rename variable full_name to file_name and use
12009 file_file_name for it. Add comp_dir parameter to new_macro_table.
12010 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12011 macro_source_file->filename access by macro_source_fullname call.
12012 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12013 caller.
12014 * macrotab.c (struct macro_table): New field comp_dir.
12015 (macro_include): New variables link_fullname and source_fullname.
12016 Replace any macro_source_file->filename access by macro_source_fullname
12017 call.
12018 (macro_lookup_inclusion): Remove the partial filenames checking code.
12019 (check_for_redefinition): New variables source_fullname and
12020 found_key_fullname. Replace any macro_source_file->filename access by
12021 macro_source_fullname call.
12022 (macro_undef): New variables source_fullname and key_fullname. Replace
12023 any macro_source_file->filename access by macro_source_fullname call.
12024 (macro_lookup_definition): New variables retval and source_fullname.
12025 Replace any macro_source_file->filename access by macro_source_fullname
12026 call.
12027 (foreach_macro): New variable key_fullname. Replace any
12028 macro_source_file->filename access by macro_source_fullname call.
12029 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12030 macro_source_file->filename access by macro_source_fullname call.
12031 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12032 (macro_source_fullname): New function.
12033 * macrotab.h (struct macro_source_file): Extent the filename field
12034 comment.
12035 (new_macro_table): New parameter comp_dir, add a comment for it.
12036 (macro_source_fullname): new declaration.
12037
da235a7c
JK
120382013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12039
12040 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12041 this_real_name to outer block. Use it also for
12042 compare_filenames_for_search.
12043 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12044 with dw2_get_real_path for file_matcher, considering also
12045 BASENAMES_MAY_DIFFER.
12046 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12047
fbd9ab74
JK
120482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12049
12050 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12051 to the file_matcher parameter. Pass 0 to it.
12052 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12053 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12054 NULL psymtab_to_fullname result.
12055 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12056 an expected filename instead.
12057 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12058 file_matcher parameter. Call also psymtab_to_fullname, after newly
12059 considering BASENAMES_MAY_DIFFER.
12060 * source.c (rewrite_source_path): Remove static.
12061 * source.h (rewrite_source_path): New declaration.
12062 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12063 the expand_symtabs_matching field. Comment it.
12064 * symtab.c (file_matches): New function comment. Add parameter
12065 basenames, implement it.
12066 (search_symbols_file_matches): Add basenames parameter. Update the
12067 file_matches caller.
12068 (search_symbols): Match FILES also against symtab_to_fullname.
12069 Optimize it for BASENAMES_MAY_DIFFER.
12070
56d397a3
JK
120712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12072
12073 * source.c (print_source_lines_base): Print for TUI also "fullname".
12074 * tui/tui-data.c (init_content_element): Change tui_locator_element
12075 field to full_name.
12076 * tui/tui-data.h (struct tui_locator_element): Likewise.
12077 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12078 tui_update_locator_filename calls to tui_update_locator_fullname.
12079 Replace symtab->filename refererence by symtab_to_fullname call.
12080 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12081 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12082 field to full_name. Replace symtab->filename refererence by
12083 symtab_to_fullname call.
12084 (tui_show_symtab_source): Rename parameter to fullname. Change
12085 tui_locator_element field to full_name.
12086 * tui/tui-stack.c: Include source.h.
12087 (tui_set_locator_filename): Rename the declaration to ...
12088 (tui_set_locator_fullname): ... here. Rename its parameter to
12089 fullname, updates its comment.
12090 (tui_set_locator_info): Rename its parameter to fullname.
12091 (tui_set_locator_filename): Rename the definition to ...
12092 (tui_set_locator_fullname): ... here. Rename its parameter to
12093 fullname, updates its comment. Change tui_locator_element field to
12094 full_name.
12095 (tui_set_locator_info): Rename its parameter to fullname.
12096 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12097 (tui_update_locator_filename): Rename to ...
12098 (tui_update_locator_fullname): ... here. Rename callee to
12099 tui_set_locator_fullname.
12100 (tui_show_frame_info): Replace symtab->filename refererence by
12101 symtab_to_fullname call.
12102 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12103 (tui_update_locator_fullname): ... here.
12104 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12105 tui_update_locator_fullname. Replace symtab->filename refererence by
12106 symtab_to_fullname call.
12107 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12108 Rename the callee to tui_update_locator_fullname.
12109 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12110
05cba821
JK
121112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12112
12113 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12114 by symtab_to_filename_for_display calls.
12115 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12116 (clear_command): New variable sal_fullname, initialize it. Replace
12117 compare_filenames_for_search by filename_cmp with sal_fullname.
12118 (say_where, update_static_tracepoint): Replace symtab->filename
12119 refererences by symtab_to_filename_for_display calls.
12120 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12121 Likewise.
12122 * dwarf2read.c: Include source.h.
12123 (fixup_go_packaging): Replace symtab->filename refererences by
12124 symtab_to_filename_for_display calls.
12125 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12126 Replace symtab->filename refererences by symtab_to_filename_for_display
12127 calls.
12128 (create_sals_line_offset, convert_linespec_to_sals): New variable
12129 fullname, initialize it, replace symtab->filename reference by the
12130 variable.
12131 * linux-fork.c: Include source.h.
12132 (info_checkpoints_command): Replace symtab->filename refererences by
12133 symtab_to_filename_for_display calls.
12134 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12135 by symtab_to_filename_for_display calls.
12136 * mdebugread.c: Include source.h.
12137 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12138 symtab_to_filename_for_display calls.
12139 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12140 (mi_cmd_file_list_exec_source_files): Likewise.
12141 * printcmd.c: Include source.h.
12142 (build_address_symbolic): Replace symtab->filename refererences by
12143 symtab_to_filename_for_display calls.
12144 * psymtab.c (partial_map_symtabs_matching_filename)
12145 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12146 with psymtab_to_fullname.
12147 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12148 by symtab_to_filename_for_display calls.
12149 (stpy_get_filename): New variable filename, initialize it, use instead
12150 of symtab->filename refererences.
12151 (salpy_str): Make variable filename const char *. Replace
12152 symtab->filename refererences by symtab_to_filename_for_display calls.
12153 * skip.c: Include source.h and filenames.h.
12154 (skip_file_command): Remove const from the symtab variable. Replace
12155 symtab->filename refererences by symtab_to_fullname call.
12156 (function_name_is_marked_for_skip): New variables searched_for_fullname
12157 and fullname. Use them to search also with symtab's fullname.
12158 * source.c (find_source_lines): Replace symtab->filename refererences
12159 by symtab_to_filename_for_display calls.
12160 (print_source_lines_base): New variable filename, use it instead of
12161 symtab->filename. Replace symtab->filename refererences by
12162 symtab_to_filename_for_display calls.
12163 (line_info, forward_search_command): Replace symtab->filename
12164 refererences by symtab_to_filename_for_display calls.
12165 (reverse_search_command): Replace symtab->filename refererences by
12166 symtab_to_filename_for_display calls. New variable filename for it.
12167 * stack.c (frame_info): Likewise.
12168 * symmisc.c: Include source.h.
12169 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12170 (maintenance_info_symtabs): Replace symtab->filename refererences by
12171 symtab_to_filename_for_display calls.
12172 * symtab.c (iterate_over_some_symtabs): Call
12173 compare_filenames_for_search also with symtab_to_fullname.
12174 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12175 symtab->filename refererences by symtab_to_filename_for_display calls.
12176 (find_line_symtab): Replace symtab->filename refererences by
12177 symtab_to_filename_for_display calls.
12178 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12179 (print_symbol_info): Make the last parameter const char *. New
12180 variable s_filename. Use it in the function.
12181 (symtab_symbol_info): Make the last_filename variable const char *.
12182 Replace symtab->filename refererences by symtab_to_filename_for_display
12183 calls.
12184 (rbreak_command): New variable fullname. Use it. Replace
12185 symtab->filename refererence by symtab_to_filename_for_display call.
12186 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12187 (print_one_static_tracepoint_marker): Replace symtab->filename
12188 refererences by symtab_to_filename_for_display calls.
12189 * tui/tui-source.c (tui_set_source_content): New variables filename and
12190 s_filename. Replace symtab->filename refererences by this variable.
12191 Replace other symtab->filename refererences by
12192 symtab_to_filename_for_display calls.
12193
1b56eb55
JK
121942013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12195 Jan Kratochvil <jan.kratochvil@redhat.com>
12196
12197 Add a new variable that controls a way in which filenames are
12198 displayed.
12199 * NEWS (set filename-display): New entry.
12200 * source.c (filename_display_basename, filename_display_relative)
12201 (filename_display_absolute, filename_display_kind_names)
12202 (filename_display_string, show_filename_display_string)
12203 (symtab_to_filename_for_display): New.
12204 (_initialize_source): Added initialization of 'filename-display'
12205 variable.
12206 * source.h (symtab_to_filename_for_display): Added declaration.
12207 * stack.c (print_frame): Added new variable and calling of a new
12208 function and condition with this variable. Changed third argument of
12209 calling of a function.
12210
aa079c93
JK
122112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12212
12213 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12214 Rename field reference filename to fullname.
12215 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12216 fullname. New comment for it.
12217 * tui/tui-source.c (tui_set_source_content): Rename field reference
12218 filename to fullname. Initialize field by symtab_to_fullname now.
12219 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12220 reference filename to fullname. Use symtab_to_fullname during
12221 comparison.
12222
652a8996
JK
122232013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12224
12225 Code cleanup.
12226 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12227 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12228 filename to fullname. Rename variable this_name to this_fullname.
12229 Lowercase FILENAME_CMP call.
12230 (dw2_find_symbol_file): New comment for the returned string.
12231 (dwarf2_gdb_index_functions): Rename the function to
12232 dw2_expand_symtabs_with_fullname.
12233 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12234 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12235 fullname.
12236 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12237 * symfile.h (struct quick_symbol_functions): Rename field
12238 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12239 parameter filename to fullname. Document returned string meaning for
12240 find_symbol_file.
12241 * symtab.c (find_line_symtab): Rename the called function to
12242 expand_symtabs_with_fullname.
12243
af529f8f
JK
122442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12245
12246 Code cleanup.
12247 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12248 call of filename_cmp with compare_filenames_for_search.
12249 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12250 is_abs, unify the call of FILENAME_CMP with
12251 compare_filenames_for_search. New gdb_asserts for real_path and name.
12252 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12253 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12254 * symfile.h (struct quick_symbol_functions): Extend the comment for
12255 map_symtabs_matching_filename.
12256 * symtab.c (compare_filenames_for_search): Remove the function comment
12257 relative path requirement. Handle absolute filenames, with a comment.
12258 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12259 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12260 real_path and name. Unify the call of compare_filenames_for_search
12261 with FILENAME_CMP.
12262 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12263
2f202fde
JK
122642013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12265
12266 Code cleanup.
12267 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12268 source_file references by symtab field references. Remove variables
12269 sal and fullname.
12270 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12271 (clear_command, say_where): Replace bp_location field source_file
12272 references by symtab field references.
12273 (bp_location_dtor): Remove the source_file reference.
12274 (update_static_tracepoint): Replace bp_location field source_file
12275 references by symtab field references.
12276 (breakpoint_free_objfile): New function.
12277 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12278 Replace the field source_file by field symtab, extend its comment.
12279 (breakpoint_free_objfile): New declaration.
12280 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12281 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12282 field source_file references by symtab field references.
12283
f5b95b50
JK
122842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12285
12286 Replace xfullpath calls by gdb_realpath calls.
12287 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12288 function comment.
12289 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12290 Remove it from the iterate_over_some_symtabs call.
12291 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12292 Remove it from the dw2_map_expand_apply calls, remove a block handling
12293 it.
12294 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12295 Remove it from the iterate_over_some_symtabs call.
12296 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12297 Remove it from the partial_map_expand_apply calls, remove a block
12298 handling it. Drop gdb_realpath call and cleanups from the real_path
12299 handling.
12300 * source.c (openp): Drop the comment part about xfullpath. Replace
12301 xfullpath calls by gdb_realpath calls.
12302 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12303 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12304 from method map_symtabs_matching_filename and its comment.
12305 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12306 gdb_realpath call.
12307 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12308 remove it also from the function comment, remove a block handling it.
12309 Drop gdb_realpath call and cleanups from the real_path handling.
12310 (iterate_over_symtabs): Drop variable full_path and its use.
12311 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12312 * utils.c (xfullpath): Remove.
12313 * utils.h (xfullpath): Remove.
12314
d78489bf
AT
123152013-02-01 Andreas Tobler <andreast@fgznet.ch>
12316
12317 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12318 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12319 (ALLDEPFILES): Add ppc64-tdep.c.
12320 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12321 ppc64-tdep.o to gdb_target_obs.
12322 * ppc64-tdep.h: New file.
12323 * ppc64-tdep.c: New file.
12324 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12325 ppc-linux-tdep.c to here.
12326 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12327 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12328 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12329 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12330 from ppc-linux-tdep.c to here.
12331 (ppc64_convert_from_func_ptr_addr): Rename from
12332 ppc64_linux_convert_from_func_ptr_addr to
12333 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12334 here.
12335 * rs6000-tdep.c:
12336 (read_insn): Move from ppc-linux-tdep.c to here.
12337 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12338 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12339 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12340 Removed above functions.
12341 (ppc_linux_init_abi): Adjust.
12342
8db60374
AR
123432013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12344
12345 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12346
f2e5f4ce
AR
123472013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12348
12349 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12350
c1f7d745
PA
123512013-02-01 Pedro Alves <palves@redhat.com>
12352
12353 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12354 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12355
8a92335b
JK
123562013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12357
12358 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12359 files with no separate debug info.
12360 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12361 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12362 only for files with no separate debug info.
12363
8eacb197
TT
123642013-01-31 Tom Tromey <tromey@redhat.com>
12365
12366 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12367 change type.
12368 (struct jit_program_space_data): Rename from jit_inferior_data.
12369 Update comments.
12370 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12371 Change return type. Attach data to program space.
12372 (jit_program_space_data_cleanup): Rename from
12373 jit_inferior_data_cleanup; change argument type.
12374 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12375 change type.
12376 (jit_register_code): Update.
12377 (jit_update_inferior_cache): Remove.
12378 (jit_breakpoint_deleted): Get jit data from the location's program
12379 space.
12380 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12381 'ps_data', change type.
12382 (jit_inferior_init, jit_breakpoint_re_set_internal)
12383 (jit_event_handler): Update.
12384 (free_objfile_data): Get data from objfile's program space.
12385 (_initialize_jit): Update.
12386
f25c0135
TT
123872013-01-31 Tom Tromey <tromey@redhat.com>
12388
12389 PR gdb/13987:
12390 * jit.c (struct jit_inferior_data) <cached_code_address,
12391 jit_breakpoint>: New fields.
12392 (jit_breakpoint_re_set_internal): Fix logging. Only create
12393 breakpoint if cached address has changed.
12394 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12395 functions.
12396 (_initialize_jit): Register breakpoint deleted observer.
12397
974a734b
AR
123982013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12399
12400 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12401 (save_infcall_suspend_state): Ifdef out unused inf.
12402 (restore_infcall_suspend_state): Ifdef out unused inf.
12403 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12404 (jit_frame_sniffer): Remove unused inf_data.
12405
df54f8eb
AR
124062013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12407
12408 * c-exp.y (classify_inner_name): Remove unused type.
12409 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12410 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12411 need_escape.
12412 (c_get_string): Remove unused kind.
12413 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12414
5799c0b9
AR
124152013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12416
12417 * charset.c (intermediate_encoding): Remove unused i.
12418 * completer.c (signal_completer): Remove unused i.
12419 * continuations.c (discard_my_continuations_1): Remove unused
12420 continuation_ptr.
12421 * corelow.c (core_close): Remove unuseD name.
12422 (get_core_siginfo): Remove unused pid.
12423 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12424 i, cps.
12425 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12426 (loclist_describe_location): Remove unused first.
12427 * event-top.c (command_line_handler): Remove unused got_eof.
12428 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12429 (resize_section_table): Remove unused old_value.
12430 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12431 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12432 * i386-tdep.c (i386_process_record): Remove unused rex.
12433 * infcmd.c (get_return_value): Remove unused uiout.
12434 * jv-lang.c (type_from_class): Remove unused is_array.
12435 * jv-valprint.c (java_val_print): Remove unused i.
12436 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12437 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12438 * m2-typeprint.c (m2_print_type): Remove unused code.
12439 * macroexp.c (get_character_constant): Remove unused body_start.
12440 (macro_stringify): Remove unused result.
12441 * objc-lang.c (find_methods): Remove unused gdbarch.
12442 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12443 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12444 * stack.c (print_frame_args): Remove unused summary.
12445 * thread.c (thread_apply_command): Remove unused p.
12446 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12447 * valops.c (search_struct_method): Remove unused skip.
12448 * valprint.c (generic_val_print): Remove unused byte_order.
12449 * varobj.c (varobj_update): Remove unused changed.
12450 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12451 (alias_command): Remove unused c.
12452 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12453 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12454 format.
12455 (mi_cmd_data_write_memory): Remove unused word_format.
12456 (mi_cmd_data_write_memory_bytes): Remove unused r.
12457 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12458 p_start, p_end.
12459 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12460 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12461 line_width.
12462
c656bca5
AR
124632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12464
12465 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12466 * symtab.c (iterate_over_symtabs): Remove unused s.
12467 (find_pc_sect_symtab): Remove unused pspAce.
12468 (find_pc_sect_line): Remove unused alt_symtab.
12469 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12470 (completion_list_add_name): Remove unused newsize.
12471
7078baeb
TT
124722013-01-31 Tom Tromey <tromey@redhat.com>
12473
12474 PR c++/14998:
12475 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12476 TYPE_CODE_FUNC.
12477
c2e8b827
AR
124782013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12479
12480 * target.c (target_read_string): Remove unused origlen.
12481
0e43993a
AR
124822013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12483
12484 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12485 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12486 * ax-general.c (ax_print): Remove unused is_float.
12487 * blockframe.c (block_innermost_frame): Remove unused start, end.
12488 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12489
765a97ab
AR
124902013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12491
12492 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12493 (svr4_read_so_list): Remove unused lmo.
12494 * solib-target.c (solib_target_relocate_section_addresses): Remove
12495 unused flags.
12496
a99dad3d
TT
124972013-01-30 Tom Tromey <tromey@redhat.com>
12498
12499 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12500
3bff1ecd
TT
125012013-01-30 Tom Tromey <tromey@redhat.com>
12502
12503 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12504 * utils.c (gnu_debuglink_crc32): Remove.
12505 * utils.h (gnu_debuglink_crc32): Don't declare.
12506
7d455152
TT
125072013-01-30 Tom Tromey <tromey@redhat.com>
12508
12509 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12510 (read_structure_type, read_enumeration_type): Remove cast.
12511
abee88f2
TT
125122013-01-30 Tom Tromey <tromey@redhat.com>
12513
12514 * dwarf2read.c (read_namespace_type): Remove cast.
12515 (read_typedef): Likewise.
12516
8d9878a4
TT
125172013-01-29 Tom Tromey <tromey@redhat.com>
12518
12519 * dwarf2read.c (free_dwo_file): Remove assert.
12520
a543d2a9
TT
125212013-01-29 Tom Tromey <tromey@redhat.com>
12522
12523 * value.c (deprecated_set_value_modifiable): Remove.
12524 * value.h (deprecated_set_value_modifiable): Remove.
12525
bed911e5
DE
125262013-01-28 Doug Evans <dje@google.com>
12527
12528 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12529 to addresses from dwo files.
12530
28c64fc2
SCR
125312013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12532
12533 * valops.c (find_overload_match): Remove unused argument 'lax'.
12534 * value.h: Remove unused argument 'lax' from the declaration of
12535 find_overload_match.
12536 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12537 to find_overload_match.
12538 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12539 argument to find_overload_match.
12540
4d4ec4e5
TT
125412013-01-25 Tom Tromey <tromey@redhat.com>
12542
12543 * dwarf2read.c (processing_has_namespace_info): Remove.
12544 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12545 (process_die, read_func_scope, dwarf2_start_symtab)
12546 (new_symbol_full): Update.
12547
195a3f6c
TT
125482013-01-25 Tom Tromey <tromey@redhat.com>
12549
12550 * cp-namespace.c (cp_set_block_scope): Remove.
12551 * cp-support.h (cp_set_block_scope): Remove.
12552 * dbxread.c: Include block.h.
12553 (cp_set_block_scope): New function.
12554 (process_one_symbol): Update.
12555 * dwarf2read.c (read_func_scope): Use block_set_scope.
12556
8ba0730a
PA
125572013-01-25 Pedro Alves <palves@redhat.com>
12558
12559 * remote.c (add_current_inferior_and_thread): Tweak comment.
12560
12aaed36
TT
125612013-01-25 Tom Tromey <tromey@redhat.com>
12562
12563 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12564 (cp_add_using_directive): Add 'copy_names' argument.
12565 * cp-support.h (cp_add_using_directive): Update.
12566 (struct using_direct) <import_src, import_dest, alias,
12567 declaration>: Now const.
12568 * dwarf2read.c (read_import_statement): Use obconcat.
12569 Don't copy names passed to cp_add_using_directive.
12570
7fc75ca7
TT
125712013-01-25 Tom Tromey <tromey@redhat.com>
12572
12573 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12574
3405876a
PA
125752013-01-25 Pedro Alves <palves@redhat.com>
12576
12577 * remote.c (stop_reply_extract_thread): New.
12578 (add_current_inferior_and_thread): New parameter 'wait_status'.
12579 Handle it.
12580 (remote_start_remote): Pass wait status to
12581 add_current_inferior_and_thread.
12582 (extended_remote_run): Update comment.
12583 (extended_remote_create_inferior_1): Pass wait status to
12584 add_current_inferior_and_thread.
12585
8954db33
AB
125862013-01-25 Andrew Burgess <aburgess@broadcom.com>
12587 Ulrich Weigand <uweigand@de.ibm.com>
12588
12589 * valarith.c (value_vector_widen): New function for replicating a
12590 scalar into a vector.
12591 (value_binop): Use value_vector_widen to widen scalar to vector
12592 rather than casting, this better matches gcc C behaviour.
12593 * valops.c (value_casst): Update logic for casting between vector
12594 types, and for casting from scalar to vector, try to match gcc C
12595 behaviour.
12596 * value.h (value_vector_widen): Declare.
12597 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12598 function, handle special case for casting scalar to vector.
12599 (opencl_relop): Use opencl_value_cast.
12600 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12601 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12602 in order to use opencl_value_cast.
12603
843b20dc
YQ
126042013-01-25 Yao Qi <yao@codesourcery.com>
12605
12606 * event-loop.c: Include "queue.h".
12607 (gdb_event_p): New typedef.
12608 (DECLARE_QUEUE_P): Use.
12609 (DEFINE_QUEUE_P): Use.
12610 (async_queue_event): Remove.
12611 (gdb_event_xfree): New.
12612 (initialize_event_loop): New.
12613 (process_event): Use QUEUE macros.
12614 (event_queue): Remove.
12615 (gdb_wait_for_event): Caller update.
12616 (check_async_event_handlers): Likewise.
12617 (poll_timers): Likewise.
12618 * event-loop.h (initialize_event_loop): Declare.
12619 * event-loop.c (gdb_event_xfree): New.
12620 * top.c (gdb_init): Call initialize_event_loop.
12621
20ad8856
YQ
126222013-01-25 Yao Qi <yao@codesourcery.com>
12623
12624 * event-loop.c (async_queue_event): Remove one parameter
12625 'position'. Remove code handling 'position' == TAIL.
12626 (gdb_wait_for_event): Caller update.
12627 (check_async_event_handlers): Caller update.
12628 (poll_timers): Caller update.
12629 * event-loop.h (enum queue_position): Remove.
12630
3bbbe775
MK
126312013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12632
12633 * MAINTAINERS: Update my email.
12634
a87d9ac4
YQ
126352013-01-25 Yao Qi <yao@codesourcery.com>
12636
12637 * main.c (print_gdb_help): Remove "--epoch" from the help
12638 message.
12639
2077afdd
TD
126402013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12641
12642 * symtab.c (skip_prologue_using_sal): Consider a file
12643 change the same as an increased line number
12644
63da4037
TD
126452013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12646
30e8ee25 12647 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 12648
45e6c716
TT
126492013-01-24 Tom Tromey <tromey@redhat.com>
12650
12651 * ada-lang.h (ada_decode_symbol): Make return type const.
12652 * ada-lang.c (ada_decode_symbol): Likewise.
12653
b1ae631a
DE
126542013-01-23 Doug Evans <dje@google.com>
12655
12656 * linespec.c (find_linespec_symbols): Make static.
12657
55a78401
SDJ
126582013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12659
12660 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12661 type on float conversion for complex type.
12662
bea883fd
SCR
126632013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12664
12665 Add a new class gdb.Architecture which exposes GDB's
12666 internal representation of architecture via GDB Python API.
12667 * Makefile.in: Add entries corresponding to the new file
12668 python/py-arch.c.
12669 * NEWS (Python Scripting): Add entries for the new class
12670 gdb.Architecture and the new method gdb.Frame.architecture.
12671 * python/py-arch.c: Implement gdb.Architecture class.
12672 * python/py-frame.c (frapy_arch): Implement the method
12673 gdb.Frame.architecture().
12674 (frame_object_methods): Add 'architecture' to the method table.
12675 * python/python-internal.h: Add declarations of new utility
12676 functions.
12677 * python/python.c (_initialize_python): Initialize
12678 gdb.Architecture class.
12679
796a7ff8
DE
126802013-01-23 Doug Evans <dje@google.com>
12681
12682 Work around binutils/15021.
12683 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12684 type_unit_group out of union s. All uses updated.
12685 (read_index_from_section): Watch for index version 8.
12686 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12687 an imported symtab.
12688 (write_psymtabs_to_index): Increment version number to 8.
12689
0928e93d
PA
126902013-01-22 Pedro Alves <palves@redhat.com>
12691
12692 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12693 user-visible.
12694
9c97429f
PA
126952013-01-22 Pedro Alves <palves@redhat.com>
12696
12697 * annotate.c (annotate_breakpoints_changed): Rename to ...
12698 (annotate_breakpoints_invalid): ... this. Make static.
12699 (breakpoint_changed): Adjust.
12700 (_initialize_annotate): Always install the observers. Install a
12701 "breakpoint_created" observer.
12702 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12703 * breakpoint.c (set_breakpoint_condition)
12704 (breakpoint_set_commands, do_map_commands_command)
12705 (init_raw_breakpoint, clear_command, set_ignore_count)
12706 (enable_breakpoint_disp): No longer call
12707 annotate_breakpoints_changed.
12708
bd00c694
PA
127092013-01-22 Pedro Alves <palves@redhat.com>
12710
12711 * annotate.c: Include "inferior.h".
12712 (frames_invalid_emitted)
12713 (breakpoints_invalid_emitted): New globals.
12714 (async_background_execution_p): New function.
12715 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12716 emitting the annotation if it has already been emitted.
12717 (annotate_display_prompt): New function.
12718 * annotate.h (annotate_display_prompt): New declaration.
12719 * event-top.c: Include annotate.h.
12720 (display_gdb_prompt): Call annotate_display_prompt.
12721
187d10dd
PA
127222013-01-22 Pedro Alves <palves@redhat.com>
12723
12724 * annotate.c (ignore_count_changed): Delete.
12725 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12726 (annotate_ignore_count_change): Delete.
12727 (annotate_stopped): Don't emit a delayed breakpoints-changed
12728 annotation.
12729 * annotate.h (annotate_ignore_count_change): Delete.
12730 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12731 annotate_ignore_count_change.
12732
d84cf7eb
TT
127332013-01-22 Tom Tromey <tromey@redhat.com>
12734
12735 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12736 require_rvalue for a register location.
12737
8f1d5693
MK
127382013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12739
12740 * breakpoint.c (print_one_breakpoint_location): Add MI
12741 field 'thread-groups' when printing a breakpoint.
12742 (output_thread_groups): New function.
12743
aa6199c6
SCR
127442013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12745
12746 * python/lib/gdb/commands/explore.py
12747 (CompoundExplorer.explore_expr): Correct the name of a method
12748 being invoked.
12749 (ExploreTypeCommand.invoke): Add a missing 'return'.
12750
d2afef13
TT
127512013-01-21 Tom Tromey <tromey@redhat.com>
12752
12753 * gdb_obstack.h (obconcat): Move declaration here, from...
12754 * symfile.h (obconcat): ... here.
12755 * gdb_obstack.c: New file.
12756 (obconcat): Move from...
12757 * symfile.c (obconcat): ... here.
12758 * Makefile.in (SFILES): Add gdb_obstack.c.
12759 (COMMON_OBS): Add gdb_obstack.o.
12760
10f0c4bb
TT
127612013-01-21 Tom Tromey <tromey@redhat.com>
12762
12763 * symfile.h (obsavestring): Don't declare.
12764 * symfile.c (obsavestring): Remove.
12765 * ada-exp.y: Use obstack_copy0, not obsavestring.
12766 * ada-lang.c: Use obstack_copy0, not obsavestring.
12767 * coffread.c: Use obstack_copy0, not obsavestring.
12768 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12769 * dbxread.c: Use obstack_copy0, not obsavestring.
12770 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12771 * jit.c: Use obstack_copy0, not obsavestring.
12772 * mdebugread.c: Use obstack_copy0, not obsavestring.
12773 * psymtab.c: Use obstack_copy0, not obsavestring.
12774 * stabsread.c: Use obstack_copy0, not obsavestring.
12775 * xcoffread.c: Use obstack_copy0, not obsavestring.
12776
86f62fd7
TT
127772013-01-21 Tom Tromey <tromey@redhat.com>
12778
12779 * dwarf2read.c (fixup_go_packaging): Save package name
12780 on objfile obstack.
12781 * gdbtypes.c (init_type): Don't copy name.
12782
15d034d0
TT
127832013-01-21 Tom Tromey <tromey@redhat.com>
12784
12785 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12786 const.
12787 (struct attribute) <u.str>: Now const.
12788 (struct fnfieldlist) <name>: Now const.
12789 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12790 (partial_die_parent_scope): Make return type const.
12791 (partial_die_full_name, add_partial_symbol): Update.
12792 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12793 'name' const.
12794 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12795 (read_file_scope, read_func_scope, dwarf2_add_field)
12796 (dwarf2_add_member_fn, read_structure_type)
12797 (process_enumeration_scope, read_array_type, read_module_type)
12798 (read_base_type, read_subrange_type): Update.
12799 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12800 (new_symbol_full, guess_full_die_structure_name): Update.
12801 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12802 (dwarf2_name): Return const type.
12803 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12804 const.
12805
748e18ae
TT
128062013-01-21 Tom Tromey <tromey@redhat.com>
12807
12808 * gdbtypes.c (init_type): Make 'name' const.
12809 * gdbtypes.h (init_type): Update.
12810
46212e0b
TT
128112013-01-21 Tom Tromey <tromey@redhat.com>
12812
12813 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12814 (start_symtab): Make 'name' and 'dirname' const. Use
12815 set_last_source_file.
12816 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12817 (last_source_file): Define. Now static.
12818 (set_last_source_file, get_last_source_file): New functions.
12819 * buildsym.h (last_source_file): Don't declare.
12820 (start_symtab): Update.
12821 (set_last_source_file, get_last_source_file): Declare.
12822 * coffread.c (complete_symtab): Use set_last_source_file.
12823 (coff_end_symtab): Likewise.
12824 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12825 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12826 set_last_source_file.
12827 (process_one_symbol): Use get_last_source_file.
12828 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12829 (psymtab_to_symtab_1): Use get_last_source_file.
12830 * xcoffread.c (process_linenos): Use get_last_source_file.
12831 (complete_symtab): Use set_last_source_file.
12832 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12833 (scan_xcoff_symtab): Use set_last_source_file.
12834
9d2ceabe
TT
128352013-01-21 Tom Tromey <tromey@redhat.com>
12836
12837 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12838 (symbol_set_names): Remove casts. Handle field const-ness.
12839
cfc594ee
TT
128402013-01-21 Tom Tromey <tromey@redhat.com>
12841
12842 * dwarf2read.c (new_symbol_full): Remove cast.
12843 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12844 * symtab.h (symbol_set_demangled_name): Update.
12845
5484b13a
TT
128462013-01-21 Tom Tromey <tromey@redhat.com>
12847
12848 * main.c (captured_main): Call bfd_init.
12849
1605ef26
TT
128502013-01-21 Tom Tromey <tromey@redhat.com>
12851
12852 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12853 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12854 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12855 * NEWS: Update.
12856
3b74cdc3
JK
128572013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12858
12859 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12860
5a352474
JK
128612013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12862
12863 Fix gdb.fortran/common-block.exp crash in PIE mode.
12864 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12865 LOC_COMMON_BLOCK.
12866 * f-valprint.c (info_common_command_for_block): Expect
12867 LOC_COMMON_BLOCK in gdb_assert.
12868 * symtab.h (struct general_symbol_info): Update comment for the
12869 common_block member.
12870 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12871 (enum address_class): New member LOC_COMMON_BLOCK.
12872
c60797fd
DB
128732013-01-18 David Blaikie <dblaikie@gmail.com>
12874
12875 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 12876
46f35228
TT
128772013-01-18 Tom Tromey <tromey@redhat.com>
12878
12879 PR c++/14999:
12880 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12881 Call require_rvalue.
12882
257e7a09
YQ
128832013-01-18 Yao Qi <yao@codesourcery.com>
12884
12885 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12886 (dbx_read_symtab): New declaration.
12887 (dbx_psymtab_to_symtab): Delete.
12888 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12889 Rename parameter PST to SELF. Exchanged two parameters.
12890 (start_psymtab): Caller update.
12891 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12892 (dwarf2_read_symtab): New declaration.
12893 (dwarf2_psymtab_to_symtab): Delete.
12894 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12895 Rename parameter PST to SELF. Exchanged two parameters.
12896 (create_partial_symtab): Caller update.
12897 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12898 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12899 Rename parameter PST to SELF. Exchanged two parameters.
12900 (parse_partial_symbols, new_psymtab): Caller update.
12901 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12902 two parameters.
12903 * psymtab.c (psymtab_to_symtab): Caller update.
12904 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12905 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12906 Rename parameter PST to SELF. Exchanged two parameters.
12907 (xcoff_start_psymtab): Caller update.
12908
0de5618e
YQ
129092013-01-18 Yao Qi <yao@codesourcery.com>
12910
12911 * infrun.c (proceed): Rename local variable 'oneproc' to
12912 'force_step'.
12913
5c04624b
DE
129142013-01-17 Doug Evans <dje@google.com>
12915
848e3e78
DE
12916 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12917 (dw2_build_type_unit_groups): Delete. All uses updated.
12918
5c04624b
DE
12919 * symtab.h (struct symbol_search): Add comment.
12920
d84fca2c
JK
129212013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12922
12923 * symtab.c (compare_filenames_for_search): New comment for
12924 HAS_DRIVE_SPEC.
12925
6108433d
TT
129262013-01-17 Tom Tromey <tromey@redhat.com>
12927
12928 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12929
c89ffd86
JK
129302013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12931
12932 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12933 initialize it by existing make_cleanup. Call new do_cleanups.
12934
db2b2972
TT
129352013-01-17 Tom Tromey <tromey@redhat.com>
12936
12937 * cp-abi.c (cp_abi_completer): New function.
12938 (_initialize_cp_abi): Set completer for "set cp-abi".
12939
be7d37a2
TT
129402013-01-17 Tom Tromey <tromey@redhat.com>
12941
12942 * mem-break.c: Remove obsolete comment.
12943 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12944
c9fb1240
SD
129452012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12946
12947 * jit.c (jit_reader_load_command): Interpret the jit reader name
12948 as an absolute path if it begins with a forward slash.
12949
db334a01
SD
129502012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12951
12952 PR gdb/14550
12953
12954 * jit.c (finalize_symtab): Ensure that only the global block has a
12955 NULL superblock.
12956
7d928dac
PA
129572013-01-17 Pedro Alves <palves@redhat.com>
12958
12959 * acinclude.m4: Include ../config/plugins.m4,
12960 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12961 * Makefile.in (aclocal_m4_deps): Update.
12962 * aclocal.m4: Renegerate.
12963
fb8cf7c5
DE
129642013-01-16 Doug Evans <dje@google.com>
12965
12966 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12967
ab04a2af
TT
129682013-01-16 Pedro Alves <palves@redhat.com>
12969 Tom Tromey <tromey@redhat.com>
12970
12971 PR cli/7221:
12972 * NEWS: Add "catch signal".
12973 * breakpoint.c (base_breakpoint_ops): No longer static.
12974 (bpstat_explains_signal): New function.
12975 (init_catchpoint): No longer static.
12976 (base_breakpoint_explains_signal): New function.
12977 (base_breakpoint_ops): Initialize new field.
12978 * breakpoint.h (enum bpstat_signal_value): New.
12979 (struct breakpoint_ops) <explains_signal>: New field.
12980 (bpstat_explains_signal): Remove macro, declare as function.
12981 (base_breakpoint_ops, init_catchpoint): Declare.
12982 * break-catch-sig.c: New file.
12983 * inferior.h (signal_catch_update): Declare.
12984 * infrun.c (signal_catch): New global.
12985 (handle_syscall_event): Update for change to
12986 bpstat_explains_signal.
12987 (handle_inferior_event): Likewise. Always handle random signals
12988 via bpstats.
12989 (signal_cache_update): Check signal_catch.
12990 (signal_catch_update): New function.
12991 (_initialize_infrun): Initialize signal_catch.
12992 * Makefile.in (SFILES): Add break-catch-sig.c.
12993 (COMMON_OBS): Add break-catch-sig.o.
12994
8ac3646f
TT
129952013-01-16 Tom Tromey <tromey@redhat.com>
12996
12997 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12998 (print_one_catch_solib, print_one_catch_syscall)
12999 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13000 "catch-type".
13001
5a18e302
YQ
130022013-01-16 Yao Qi <yao@codesourcery.com>
13003
13004 * printcmd.c (current_display_number): Make it static.
13005
3f01d0d0
YQ
130062013-01-16 Yao Qi <yao@codesourcery.com>
13007
13008 * infcmd.c (step_once): Don't check '!single_inst' as it was
13009 checked before.
13010
1ed59174
JK
130112013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13012
13013 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13014
44478ab3
TT
130152013-01-14 Tom Tromey <tromey@redhat.com>
13016
13017 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13018 set command.
13019 * command.h (add_setshow_string_noescape_cmd): Update.
13020 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13021 (complete_set_gnutarget): New function.
13022 (_initialize_core): Set the "set gnutarget" completer.
13023
06d66ee9
TT
130242013-01-14 Tom Tromey <tromey@redhat.com>
13025
13026 PR symtab/14442:
13027 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13028 (c_type_print_modifier): Likewise.
13029 * dwarf2read.c (read_tag_restrict_type): New function.
13030 (read_type_die_1): Handle DW_TAG_restrict_type.
13031 * gdbtypes.c (make_restrict_type): New function.
13032 (recursive_dump_type): Handle TYPE_RESTRICT.
13033 * gdbtypes.h (enum type_flag_values): Renumber.
13034 (enum type_instance_flag_value): Add
13035 TYPE_INSTANCE_FLAG_RESTRICT.
13036 (TYPE_RESTRICT): New macro.
13037 (make_restrict_type): Declare.
13038
c9bf0622
TT
130392013-01-14 Tom Tromey <tromey@redhat.com>
13040
13041 PR symtab/14931:
13042 * psymtab.c (struct psymtab_state): New.
13043 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13044 functions.
13045 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13046 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13047
44d594fd
PA
130482013-01-14 Richard Sharman <richard_sharman@mitel.com>
13049 Pedro Alves <palves@redhat.com>
13050
13051 PR remote/14786
13052
13053 * remote.c (remote_threads_info): Make a copy of the reply from
13054 qfThreadInfo and use that instead of rs->buf.
13055
442e4d9c
YQ
130562013-01-14 Yao Qi <yao@codesourcery.com>
13057
13058 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13059 (dbx_psymtab_to_symtab): Likewise.
13060 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13061 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13062 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13063
5b12a61c
JK
130642013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13065
13066 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13067 make_cleanup_restore_current_language. Call set_language. Move
13068 OLD_CHAIN and INNER_CHAIN cleanups.
13069 * utils.c (do_restore_current_language)
13070 (make_cleanup_restore_current_language): New functions.
13071 * utils.h (make_cleanup_restore_current_language): New declaration.
13072
f0a4b570
JK
130732013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13074
13075 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13076 non-existing files.
13077
57b3c00c
JK
13078 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13079 non-existing files if FILENAME is already absolute.
13080
daefa854
JK
130812013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13082
13083 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13084 fputs_filtered. Append trailing newline.
13085
ca9c6ee2
YQ
130862013-01-11 Yao Qi <yao@codesourcery.com>
13087 Stan Shebs <stan@codesourcery.com>
13088
13089 * psymtab.c (init_psymbol_list): Clarify the comment.
13090
f28045c2
YQ
130912013-01-11 Yao Qi <yao@codesourcery.com>
13092
13093 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13094 (update_dprintf_command_list): Assert that 'printf_line' is
13095 non-null. Remove condition check.
13096
da5132d3
JK
130972013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13098
13099 Code cleanup.
13100 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13101 type const char *.
13102 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13103 const char *.
13104 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13105
843e694d
AG
131062013-01-09 Anthony Green <green@moxielogic.com>
13107
13108 * cp-abi.c (cplus_print_vtable): Don't return value from void
13109 function.
13110 * ada-lang.c (re_set_catch_assert): Ditto.
13111
da51c347
DE
131122013-01-09 Doug Evans <dje@google.com>
13113
13114 * symfile.h (quick_symbol_functions): Delete member
13115 pre_expand_symtabs_matching. All uses removed.
13116 * dwarf2read.c (dw2_lookup_symbol): Implement.
13117 (dw2_do_expand_symtabs_matching): Delete.
13118 (dw2_pre_expand_symtabs_matching): Delete.
13119 (struct dw2_symtab_iterator): New type.
13120 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13121 (dw2_expand_symtabs_for_function): Rewrite.
13122 (dwarf2_gdb_index_functions): Update.
13123 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13124 (psym_functions): Update.
13125
b2259038
TT
131262013-01-09 Tom Tromey <tromey@redhat.com>
13127
13128 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13129 * configure: Rebuild.
13130 * configure.ac: Add somread.o to the build if BFD has SOM
13131 support.
13132 * somread.c: Include som/aout.h, not syms.h.
13133 (som_symtab_read): Use som_external_symbol_dictionary_record.
13134 Unpack records manually.
13135 (_initialize_somread): Declare.
13136
bdad4180
MF
131372012-01-08 Mike Frysinger <vapier@gentoo.org>
13138
13139 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13140 Cast return_address to 64bits.
13141
03cdf680
HZ
131422013-01-08 Hui Zhu <hui_zhu@mentor.com>
13143
13144 * printcmd.c: Remove define of function output_command.
13145 * tracepoint.c: Remove extern of function output_command.
13146 * valprint.h: (output_command): New extern.
13147
8a808554
TT
131482013-01-07 Tom Tromey <tromey@redhat.com>
13149
13150 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13151 Remove.
13152 (objc_language_defn): Use c_printchar, c_printstr,
13153 c_emit_char.
13154
e93a8774
TT
131552013-01-07 Tom Tromey <tromey@redhat.com>
13156
13157 PR cli/7719:
13158 * NEWS: Update.
13159 * ada-valprint.c (printstr, print_field_values): Remove
13160 "inspect_it" code.
13161 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13162 code.
13163 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13164 code.
13165 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13166 * main.c (captured_main): Remove "epoch" argument.
13167 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13168 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13169 * p-valprint.c (pascal_object_print_value_fields): Remove
13170 "inspect_it" code.
13171 * printcmd.c (print_command_1): Remove 'inspect' argument.
13172 (print_command, call_command): Update.
13173 (inspect_command): Remove.
13174 (_initialize_printcmd): Make "inspect" an alias for "print".
13175 * top.c (epoch_interface): Remove.
13176 * top.h (epoch_interface): Remove.
13177 * valprint.c (user_print_options): Update.
13178 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13179 * valprint.h (struct value_print_options) <inspect_it>: Remove
13180 field.
13181
131822013-01-04 Tom Tromey <tromey@redhat.com>
13183
13184 * valprint.h (read_string): Add 'extern'.
13185
b967eb24
JB
131862013-01-07 Joel Brobecker <brobecker@adacore.com>
13187
13188 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13189 used to decide whether to define darwin_read_dyld_info or not.
13190
78a8b30e
PM
131912013-01-03 Pierre Muller <muller@sourceware.org>
13192
13193 * main.c (relocate_gdb_directory): Avoid calling stat function
13194 if DIR is empty.
13195
50da2f25
YQ
131962013-01-03 Yao Qi <yao@codesourcery.com>
13197
13198 * psymtab.c (fixup_psymbol_section): Update declaration.
13199 (fixup_psymbol_section): Remove code returning value.
13200
e7e8980f
YQ
132012013-01-03 Yao Qi <yao@codesourcery.com>
13202
13203 * symtab.h: Remove some out of date comments.
13204 (enum exception_event_kind): Move it ...
13205 * breakpoint.c: ... here.
13206
569283d4
MF
132072013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13208
9f9d9a96 13209 PR gdb/14405
569283d4
MF
13210 * darwin-nat.c (darwin_read_dyld_info): Only build if
13211 TASK_DYLD_INFO_COUNT is defined.
13212 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13213 TASK_DYLD_INFO_COUNT is defined.
13214
2e36fbea
TT
132152013-01-02 Tom Tromey <tromey@redhat.com>
13216
13217 * symfile.h (struct ecoff_debug_hack): Remove.
13218 * objfiles.c: Don't include mdebugread.h.
13219
4f05add4
TT
132202013-01-02 Tom Tromey <tromey@redhat.com>
13221
13222 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13223 * configure.ac: Check for Mach-O support in BFD. Update
13224 CONFIG_OBS.
13225 * configure: Rebuild.
13226
def63ff0
TT
132272013-01-02 Tom Tromey <tromey@redhat.com>
13228
13229 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13230 * configure.ac: Use GDB_AC_CHECK_BFD.
13231 * configure: Rebuild.
13232
60c5dd93
MK
132332013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13234
13235 * MAINTAINERS: Update my email.
13236
6e58437e
JB
132372013-01-01 Joel Brobecker <brobecker@adacore.com>
13238
13239 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13240
627fe805
JB
132412013-01-01 Joel Brobecker <brobecker@adacore.com>
13242
13243 * rs6000-nat.c (bss_data_overlap): New function.
13244 (vmap_symtab): Use it to adjust the .bss section's offset.
13245
28e7fd62
JB
132462013-01-01 Joel Brobecker <brobecker@adacore.com>
13247
13248 Update year range in copyright notice of all files.
13249
e93a8774 132502013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
13251
13252 * top.c (print_gdb_version): Update copyright year.
13253
72b20e9c 13254For older changes see ChangeLog-2012.
c906108c
SS
13255\f
13256Local Variables:
13257mode: change-log
13258left-margin: 8
13259fill-column: 74
13260version-control: never
57da7796 13261coding: utf-8
c906108c 13262End:
This page took 2.642644 seconds and 4 git commands to generate.