procfs file descriptor leaks
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e28cade7
JB
12011-11-09 Tom Tromey <tromey@redhat.com>
2
3 * procfs.c (load_syscalls): Make a cleanup.
4 (open_procinfo_files): fd==0 is ok.
5
0a86f364
JB
62011-11-10 Joel Brobecker <brobecker@adacore.com>
7
8 * procfs.c (iterate_over_mappings): Call do_cleanups before
9 returning.
10
9bc118a5
DE
112011-11-09 Doug Evans <dje@google.com>
12
13 * gdbtypes.c (check_typedef): Document that this function can
14 throw an exception.
15
a7860e76
TT
162011-11-09 Tom Tromey <tromey@redhat.com>
17
18 PR c++/13342:
19 * valops.c (value_full_object): Return early if real type is
20 smaller than the enclosing type.
21
60965737
YQ
222011-11-08 Yao Qi <yao@codesourcery.com>
23
24 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
25
72a2e3dc
MI
262011-11-08 Meador Inge <meadori@codesourcery.com>
27
28 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
29 register when the frame can't be determined.
30 * arm-tdep.c (arm_analyze_prologue): Ditto.
31
ce3b0ff7
SS
322011-11-07 Stan Shebs <stan@codesourcery.com>
33
34 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
35
2b914b52
JB
362011-11-07 Joel Brobecker <brobecker@adacore.com>
37
38 * infrun.c (handle_inferior_event): Minor reformatting.
39
6f809020
DE
402011-11-05 Doug Evans <dje@google.com>
41
42 * source.c (forget_cached_source_info_for_objfile): Move call to
43 objfile->sf->qf->forget_cached_source_info outside of
44 ALL_OBJFILE_SYMTABS loop.
45 (forget_cached_source_info): Delete unused variable `s'.
46
75d12218
JK
472011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 * i386-nat.c (dr_ref_count): Remove unused variable.
50
e565b837
DE
512011-11-05 Doug Evans <dje@google.com>
52
53 * main.c (captured_main): Set lim_at_start before calling
54 make_command_stats_cleanup.
55
0a1c4d10
DE
562011-11-04 Doug Evans <dje@google.com>
57
58 * utils.c: #include "timeval-utils.h".
59 (cmd_stats): Rename start_time to start_cpu_time.
60 New member start_wall_time.
61 (report_command_stats): Report wall time.
62 (make_command_stats_cleanup): Record start wall time.
63
a1d705ee
TT
642011-11-04 Tom Tromey <tromey@redhat.com>
65
66 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
67
81de56be
RO
682011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
69
70 * coff-pe-read.c: Include defs.h before bfd.h.
71
3ab1ec27
PM
722011-11-04 Phil Muldoon <pmuldoon@redhat.com>
73
74 PR Python/13345
75
76 * python/python.c (python_run_simple_file): Expand tilde in path.
77
cd829959
PM
782011-11-04 Phil Muldoon <pmuldoon@redhat.com>
79
80 PR Python/13363
81
82 * python/py-type.c (typy_lookup_type): Do not return a type in
83 an exception handler.
84
080ad648
JK
852011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
86 Eli Zaretskii <eliz@gnu.org>
87
88 * linux-nat.c (_initialize_linux_nat): Improve help
89 for `info proc stat', `info proc status', `info proc cwd',
90 `info proc cmdline' and `info proc exe'.
91
3065dfb6
SS
922011-11-02 Stan Shebs <stan@codesourcery.com>
93
94 String collection for tracepoints.
95 * NEWS: Mention string collection.
96 * common/ax.def (tracenz): New bytecode.
97 * ax-gdb.h (trace_string_kludge): Declare.
98 * ax-gdb.c: Include valprint.h and c-lang.h.
99 (trace_string_kludge): New global.
100 (gen_traced_pop): Add string case.
101 (agent_command): Add string case.
102 * tracepoint.h (decode_agent_options): Declare.
103 * tracepoint.c: Include cli-utils.h.
104 (decode_agent_options): New function.
105 (validate_actionline): Call it.
106 (encode_actions_1): Ditto.
107 * target.h (struct target_ops): New method to_supports_string_tracing.
108 (target_supports_string_tracing): New macro.
109 * target.c (update_current_target): Add to_supports_string_tracing.
110 * remote.c (struct remote_state): New field string_tracing.
111 (remote_string_tracing_feature): New function.
112 (remote_protocol_features): New feature tracenz.
113 (remote_supports_string_tracing): New function.
114 (init_remote_ops): Set to_supports_string_tracing.
115
f179e162
JK
1162011-11-02 Pedro Alves <pedro@codesourcery.com>
117 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 * linux-nat.c: Include cli/cli-utils.h.
120 (enum info_proc_what): New.
121 (linux_nat_info_proc_cmd): Rename to ...
122 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
123 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
124 status_f and stat_f from WHAT. Throw error on extra parameters.
125 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
126 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
127 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
128 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
129 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
130 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
131 `info proc cmdline', `info proc exe' and `info proc all' as real
132 subcommands of `info proc'.
133
7b35ec7f 1342011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
135
136 * Makefile.in: (SFILES): Add skip.c.
137 (HFILES_NO_SRCDIR): Add skip.h.
138 (COMMON_OBS): Add skip.o.
139 * skip.h, skip.c: New.
140 * breakpoint.h (set_default_breakpoint): Remove.
141 (get_sal_arch): Declare.
142 * breakpoint.c: Remove default_breakpoint_valid,
143 default_breakpoint_address, default_breakpoint_symtab,
144 default_breakpoint_line, default_breakpoint_pspace variables.
145 (get_sal_arch): Make public.
146 (set_default_breakpoint): Remove.
147 (parse_breakpoint_sals, create_breakpoint, clear_command,
148 decode_line_spec_1): Remove uses of default_breakpoint variables;
149 replaced with function calls into stack.c.
150 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
151 * cli/cli-cmds.c: Add skiplist.
152 (init_cmd_lists): Initialize skiplist.
153 (init_cli_cmds): Fix comment (classes of commands appear in
154 alphabetical order).
155 * infrun.c (handle_inferior_event): Add check that we don't step into
156 a function whose pc is marked for skip.
157 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
158 last_displayed_addr, last_displayed_symtab, last_displayed_line
159 variables.
160 (set_last_displayed_sal): New static function.
161 (print_frame_info): Switch call to set_default_breakpoint to call to
162 set_last_displayed_sal.
163 (clear_last_displayed_sal, last_displayed_sal_is_valid,
164 get_last_displayed_pspace, get_last_displayed_addr,
165 get_last_displayed_symtab, get_last_displayed_line,
166 get_last_displayed_sal): New public functions.
167 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
168 get_last_displayed_pspace, get_last_displayed_addr,
169 get_last_displayed_symtab, get_last_displayed_line,
170 get_last_displayed_sal): Declare.
171
b60e1588
JL
1722011-11-01 Justin Lebar <justin.lebar@gmail.com>
173
174 * MAINTAINERS (Write After Approval): Add myself to the list.
175
d31647d2
YQ
1762011-10-29 Yao Qi <yao@codesourcery.com>
177
178 * infcmd.c (disconnect_command): Call disconnect_tracing.
179
b1d96efd
JK
1802011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
181
182 Code cleanup.
183 * symtab.c (skip_prologue_sal): Code reformatting.
184
4dfb2365
JK
1852011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
186
187 PR symtab/13208
188 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
189 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
190 SAI.
191
0e5bf2a8
PA
1922011-10-28 Pedro Alves <pedro@codesourcery.com>
193
194 * linux-nat.c (linux_nat_filter_event): Remove `options'
195 parameter, and dead code that used it. If we're handling a
196 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
197 in our lwp list, re-add it.
198 (check_zombie_leaders): New.
199 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
200 wait for children with WNOHANG, and always wait for all children.
201 Don't check for no resumed children upfront. Simplify wait loop.
202 Check for zombie thread group leaders after handling all wait
203 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
204 unwaited-for children left.
205 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
206 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
207 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
208 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
209
821296b7
SA
2102011-10-28 Sterling Augustine <saugustine@google.com>
211
212 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
213 * symtab.c (free_completion_list): New function.
214 (do_free_completion_list): Likewise.
215 (default_make_symbol_completion_list_break_on): New variable
216 back_to. Call make_cleanup and discard_cleanups.
217 (make_source_files_completion_list): Likewise.
218
03c3051a
PK
2192011-10-28 Paul Koning <paul_koning@dell.com>
220
221 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
222 * NEWS: Mention deep_items.
223
8e7ebaf5
PA
2242011-10-28 Alen Skondro <askondro@gmail.com>
225
226 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
227 defined.
228
e0c6ef61
MI
2292011-10-27 Meador Inge <meadori@codesourcery.com>
230
231 * MAINTAINERS (Write After Approval): Add myself to the list.
232
b56d6f31
JB
2332011-10-27 Joel Brobecker <brobecker@adacore.com>
234
235 * value.h (read_frame_register_value): Add declaration.
236 * findvar.c (read_frame_register_value): New function.
237 (value_from_register): Use read_frame_register_value
238 instead of get_frame_register_value + value_contents_copy
239 to get value contents.
240
d234ef5c
DE
2412011-10-27 Doug Evans <dje@google.com>
242
243 * cli/cli-cmds.c (source_script_with_search): Pass full path to
244 source_script_from_stream if it may have been found on the search path.
245 * python/py-auto-load.c (source_section_scripts): Pass full path to
246 source_python_script_for_objfile.
247 * python/python.c (source_python_script): Delete stream parameter.
248 All callers updated.
249 (source_python_script_for_objfile): Ditto.
250 * python/python-internal.h (source_python_script_for_objfile): Update.
251 * python/python.h (source_python_script): Update.
252
d849d44f
TT
2532011-10-27 Tom Tromey <tromey@redhat.com>
254
255 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
256 (ada_sals_for_line): Remove declarations.
257
2231f1fb
KP
2582011-10-27 Kevin Pouget <kevin.pouget@st.com>
259
260 Move unwind reasons to an external .def file
261 * frame.c (frame_stop_reason_string): Rewrite using
262 unwind_stop_reasons.def.
263 * frame.h (enum unwind_stop_reason): Likewise.
264 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
265 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
266 constants for bound-checking.
267 * unwind_stop_reasons.def: New file.
268 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
269 instead of a distinct value.
270
f77b9a5d
PM
2712011-10-27 Phil Muldoon <pmuldoon@redhat.com>
272
273 PR python/13331
274
275 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
276 (convert_values_to_python): Return on Python tuple allocation
277 failure. Return NULL on value conversion error.
278
76dce0be
PM
2792011-10-27 Phil Muldoon <pmuldoon@redhat.com>
280
281 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
282 (bppy_set_task): Ditto.
283 (bppy_delete_breakpoint): Ditto.
284 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
285 (gdbpy_lookup_global_symbol): Ditto.
286 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
287 * python/py-frame.c (frapy_is_valid): Ditto.
288 (frame_info_to_frame_object): Ditto.
289 * python/py-type.c (typy_lookup_type): Ditto.
290 (typy_getitem): Ditto.
291 (typy_has_key): Ditto.
292 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
293
f17b6955
JB
2942011-10-26 Joel Brobecker <brobecker@adacore.com>
295
296 * gdbarch.h: Regenerate.
297
86ba1042
JB
2982011-10-26 Meador Inge <meadori@codesourcery.com>
299
300 * gdbarch.sh (function_list): Use 'pstring' when printing
301 'gcore_bfd_target'.
302 * gdbarch.c: Regenerate.
303
c34fd852
UW
3042011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
305
306 * regcache.c (registers_changed_ptid): Invalidate thread architecture
307 and frame caches if PTID refers to all threads of a process.
308
931bb47f
UW
3092011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
310
311 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
312 to create_breakpoint.
313
88aed45e
UW
3142011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
315
316 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
317 (ppc_sysv_abi_push_dummy_call): Use it.
318 (do_ppc_sysv_return_value): Likewise.
319 (ppc64_sysv_abi_push_dummy_call): Likewise.
320 (ppc64_sysv_abi_return_value): Likewise.
321
3eaf3fa2
PK
3222011-10-26 Paul Koning <paul_koning@dell.com>
323
324 * python/lib/gdb/types.py (deepitems): New function.
325
913460fc
PK
3262011-10-25 Paul Koning <paul_koning@dell.com>
327
328 PR python/13327
329
330 * python/py-value.c (value_to_value_object): Remove fetching of
331 the value if it was lazy.
332 (valpy_get_is_lazy): New function.
333 (valpy_fetch_lazy): New function.
334
2b5b9d09
JB
3352011-10-24 Joel Brobecker <brobecker@adacore.com>
336
337 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
338 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
339
e21ffe51
PA
3402011-10-24 Pedro Alves <pedro@codesourcery.com>
341
342 * linux-nat.c (linux_handle_extended_wait): When handling a clone
343 event, in non-stop, if not stopping, make sure the new lwp has
344 last_resume_kind set to resume_continue. Assert that when we're
345 resuming the new lwp, its last_resume_kind is resume_continue.
346
7aee8dc2
PA
3472011-10-24 Pedro Alves <pedro@codesourcery.com>
348
349 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
350 already set when marking the event thread as not executing in
351 non-stop mode.
352
4b4e080e
PA
3532011-10-24 Pedro Alves <pedro@codesourcery.com>
354
355 * infrun.c (handle_inferior_event): Add debug output for
356 TARGET_WAITKIND_NO_HISTORY.
357
baacfb07
PM
3582011-10-24 Phil Muldoon <pmuldoon@redhat.com>
359
360 * NEWS: Move set/show extended-prompt to "New Options". Expand
361 description. Fix typos.
362
8432bc41
PM
3632011-10-24 Phil Muldoon <pmuldoon@redhat.com>
364
365 PR python/13310
366
367 * python/py-param.c (call_doc_function): Correctly deference on
368 function exit.
369
6cda5a20
JB
3702011-10-21 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-tasks.c (print_ada_task_info): Fix computation of
373 number of tasks displayed in command output.
374
13294f7d
JK
3752011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
376 Ulrich Weigand <uweigand@de.ibm.com>
377
378 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
379 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
380 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
381 gdbarch_pc_regnum and frame_unwind_register_unsigned by
382 gdbarch_unwind_pc.
383
460c1c54
CC
3842011-10-20 Cary Coutant <ccoutant@google.com>
385
386 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
387 section to...
388 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
389 flag. Adjust all callers.
390 (process_psymtab_comp_unit): Remove adjustment for type section.
391
a10964d1
AR
3922011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
393
394 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
395 arguments by adding OBJFILE. Instead of getting objfile from
396 symbol's symtab, use new argument OBJFILE.
397 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
398 arguments by adding OBJFILE.
399 * gdb/dwarf2read.c (new_symbol_full): Change call to
400 cp_scan_for_anonymous_namespaces to match new signature.
401 * gdb/stabsread.c (define_symbol): Change call to
402 cp_scan_for_anonymous_namespaces to match new signature.
403
27ca1a5b
PM
4042011-10-20 Phil Muldoon <pmuldoon@redhat.com>
405
406 PR python/13308
407 PR python/13309
408
409 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
410 leak.
411 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
412 leak. Delete unused variables.
413
9df2fbc4
PM
4142011-10-20 Phil Muldoon <pmuldoon@redhat.com>
415
416 PR python/12656
417
418 * python/py-frame.c (frapy_read_var): Use const struct *block.
419 * python/py-type.c (typy_lookup_typename): Likewise.
420 (typy_lookup_type): Likewise.
421 (typy_legacy_template_argument): Likewise.
422 (typy_template_argument): Likewise.
423 (gdbpy_lookup_type): Likewise.
424 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
425 * python/py-block.c (blpy_block_object): Likewise.
426 (blpy_iter): Likewise.
427 (blpy_get_start): Likewise.
428 (blpy_get_end): Likewise.
429 (blpy_get_function): Likewise.
430 (blpy_get_superblock): Likewise.
431 (set_block): Likewise.
432 (block_to_block_object): Likewise.
433 (block_object_to_block): Likewise.
434 (blpy_is_valid): Likewise.
435 (blpy_get_global_block): New function.
436 (blpy_get_static_block): New function.
437 (blpy_is_global): New function.
438 (blpy_is_static): New function.
439 * blockframe.c (block_innermost_frame): Likewise.
440 * valops.c (value_of_variable): Likewise.
441 * frame.h: Update prototypes.
442 * python/python-internal.h: Likewise.
443 * value.h: Likewise.
444
4743b735
CC
4452011-10-19 Cary Coutant <ccoutant@google.com>
446
447 * dwarf2read.c (create_debug_types_hash_table): Fix size of
448 type_offset field.
449
6caca83c
CC
4502011-10-19 Cary Coutant <ccoutant@google.com>
451
452 * dwarf2read.c (peek_abbrev_code): New function.
453 (dw2_get_file_names): Check for dummy compilation units.
454 (create_debug_types_hash_table): Likewise.
455 (process_psymtab_comp_unit): Likewise.
456 (load_partial_comp_unit): Likewise.
457 (load_full_comp_unit): Likewise.
458
43136979
AR
4592011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
460
461 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
462 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
463 pt_phdr if PT_PHDR was found.
464
0a07729b
TT
4652011-10-17 Joost van der Sluis <joost@cnoc.nl>
466
467 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
468 type or "<unnamed type"> when there is no name assigned.
469 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
470 avoid a sigint when no name is assigned.
471
21ae7a4d
JK
4722011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
473
474 Revert:
475 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
476 * dwarf2expr.c (ctx_no_read_reg): New function.
477 * dwarf2expr.h (ctx_no_read_reg): New declaration.
478 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
479 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
480 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
481
32d1c362
DE
4822011-10-16 Doug Evans <dje@google.com>
483
484 * NEWS: Document python gdb.printing.register_pretty_printer's new
485 `replace' parameter.
486
da096638
KS
4872011-10-14 Keith Seitz <keiths@redhat.com>
488
489 PR c++/13225
490 * eval.c (evaluate_subexp_standard): Do not construct
491 an array of types; pass the value array directly to
492 find_overload_match.
493 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
494 (rank_function): Take an array of values instead of types.
495 (rank_one_type): Add struct value * parameter.
496 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
497 (rank_function): For each argument, pass the argument's
498 value to rank_one_type.
499 (rank_one_type): Add VALUE parameter.
500 If the parameter type is a pointer and the argument type
501 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
502 VALUE is zero.
503 Update all calls to rank_one_type, passing NULL for new
504 VALUE parameter.
505 * valarith.c (value_user_defined_cpp_op): Do not construct
506 an array of types; pass the value array directly to
507 find_overload_match.
508 * valops.c (find_overload_method_list): Take an array of
509 values instead of types.
510 Save the type of OBJP for later use.
511 Update calls to find_oload_champ, and find_oload_champ_namespace.
512 (find_oload_champ_namespace): Take an array of values instead
513 of types.
514 (find_oload_champ_namespace_loop): Likewise.
515 (find_oload_champ): Likewise.
516 (classify_oload_match): Inspect all arguments
517 until INCOMPATIBLE is found. Return the worst badness found
518 otherwise.
519 (compare_parameters): Update call to rank_one_type.
520 * value.h (find_overload_match): Take an array of values instead
521 of types.
522
3957565a
JK
5232011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
524
525 Drop lazy lm_info reading.
526 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
527 l_addr_inferior, l_ld, l_next, l_prev and l_name.
528 (lm_info_read): New function.
529 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
530 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
531 lm_dynamic_from_link_map.
532 (lm_next, lm_prev, lm_name): Remove.
533 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
534 initialization incl. read_memory. No longer use lm_name.
535 (svr4_free_so): Drop lm_info->lm freeing.
536 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
537 explicit lm_addr and lm initialization.
538 (svr4_read_so_list): Use lm_info_read, drop the initailization of
539 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
540 lm_name.
541
cb08cc53
JK
5422011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
543 Paul Pluzhnikov <ppluzhnikov@google.com>
544
545 * defs.h (struct so_list): New forward declaration.
546 (make_cleanup_free_so): New declaration.
547 * solib-svr4.c (ignore_first_link_map_entry): Remove.
548 (svr4_free_so): Move the function here from downwards. Handle NULL
549 so->lm_info.
550 (svr4_free_library_list): New.
551 (svr4_read_so_list): New, moved here code from svr4_current_sos.
552 Use more cleanups. Use new parameter ignore_first instead of
553 ignore_first_link_map_entry.
554 (svr4_current_sos): New variable ignore_first, initialize it. New
555 variable back_to, use it for svr4_free_library_list protection.
556 (svr4_free_so): Remove - move upwards.
557 * utils.c: Include solist.h.
558 (do_free_so, make_cleanup_free_so): New functions.
559
22c05d8a
JK
5602011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 Fix internal error regression.
563 * value.c (value_primitive_field): Handle value_optimized_out. Move
564 packed bitfields comment.
565
d930d06e
TT
5662011-10-13 Tom Tromey <tromey@redhat.com>
567
568 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
569 always released.
570
2ff6b080
TT
5712011-10-13 Tom Tromey <tromey@redhat.com>
572
573 * python/py-type.c (typy_has_key): Make 'field' const.
574
d6c5869f
LM
5752011-10-13 Luis Machado <lgustavo@codesourcery.com>
576
577 * remote.c (remote_save_trace_data): Invert comparison.
578
a70633a2
LM
5792011-10-13 Luis Machado <lgustavo@codesourcery.com>
580
581 * tracepoint.c (trace_save_command): Use filename instead of
582 args when printing.
583
e103e986
JK
5842011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
585
586 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
587 if .size is 0.
588
db24da6d
YQ
5892011-10-13 Yao Qi <yao@codesourcery.com>
590
591 PR gdb/12703
592 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
593 whether insn is a 32-bit Thumb-2 instruction.
594 (thumb_in_function_epilogue_p): Likewise.
595 (thumb_get_next_pc_raw): Likewise.
596 (arm_breakpoint_from_pc): Likewise.
597
1d6edc3c
JK
5982011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
599
600 Fix empty DWARF expressions DATA vs. SIZE conditionals.
601 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
602 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
603 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
604 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
605 zero DATA.
606 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
607 validity.
608 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
609 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
610 clear DATA on zero SIZE.
611
adabb602
DE
6122011-10-12 Doug Evans <dje@google.com>
613
614 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
615 header->first_die_offset here. All callers updated.
616
5048e516
JK
6172011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
618
619 Fix compatibility with texinfo versions older than 4.12.
620 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
621 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
622 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
623 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
624 * configure: Regenerate.
625 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
626 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
627 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
628
0574c78f
GB
6292011-10-12 Gary Benson <gbenson@redhat.com>
630
631 * breakpoint.h (pc_at_non_inline_function): Declare.
632 * breakpoint.c (is_non_inline_function,
633 pc_at_non_inline_function): New functions.
634 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
635 if the stop is at a location where functions cannot be inlined.
636
12d9289a
PA
6372011-10-12 Pedro Alves <pedro@codesourcery.com>
638
639 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
640 the core wanted them stopped, or if they now have a pending event
641 to report.
ecf8e7f5
PA
642 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
643 down to stop_and_resume_callback.
644 (linux_nat_wait_1): Always clear `options' when retrying. Handle
645 having new pending events after calling linux_nat_filter_event.
12d9289a 646
96408a79
SA
6472011-10-11 Sterling Augustine <saugustine@google.com>
648
649 * dwarf2read.c: Undo inadvertent changes in previous commit.
650
9c6c53f7
SA
6512011-10-11 Sterling Augustine <saugustine@google.com>
652
653 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
654 logic.
655
0e8aefe7
UW
6562011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
657
658 * symfile.c (separate_debug_file_exists): Fix condition.
659
349d1385
DM
6602011-10-11 David S. Miller <davem@davemloft.net>
661
662 * regcache.c (regcache_restore): Do not write unavailable regs, mark
663 static.
664 * regcache.h (regcache_restore): Remove declaration.
665
205c306f
DM
666 * gdbarch.sh: New field 'long_long_align_bit'.
667 * gdbarch.c, gdbarch.h: Regenerate.
668 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
669 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
670
941b2081
JK
6712011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
672
673 Revert this part of:
674 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
675 Support @entry in input expressions.
676 * c-exp.y (ENTRY, unknown_cpp_name): New.
677 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
678 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
679 (variable: name_not_typename '@' ENTRY, name: ENTRY)
680 (name_not_typename: ENTRY): New.
681 (yylex): Recognize ENTRY.
682
683 Reimplement @entry in input expressions.
684 * c-exp.y (ENTRY): New.
685 (variable: name_not_typename ENTRY): New.
686 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
687
3c4d7e12
PA
6882011-10-11 Pedro Alves <pedro@codesourcery.com>
689
690 * linux-nat.c (linux_handle_extended_wait): Always dump both the
691 parent and child's pids as soon as we detect a clone event.
692 Adjust another debug message.
693
ea23808b
PA
6942011-10-11 Pedro Alves <pedro@codesourcery.com>
695
696 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
697 not zombie instead of reading the whole file.
698
904578ed
JK
6992011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
700
701 Fix separate debuginfo warning with "remote:" access.
702 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
703 * symfile.c (get_file_crc): New function with the code moved from ...
704 (separate_debug_file_exists): ... this function, specifically variables
705 buffer and count. New variable verified_as_different, set it. Remove
706 file_crc initialization. Verify also if both files are not the same
707 manually, if needed.
708
51370a33
YQ
7092011-10-11 Yao Qi <yao@codesourcery.com>
710
711 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
712 to get address.
713
0838fb57
DE
7142011-10-10 Doug Evans <dje@google.com>
715
716 * linux-thread-db.c (thread_db_new_objfile): Only try to load
717 libthread_db when we load libpthread or the main symbol file.
718 (thread_db_inferior_created): New function.
719 (_initialize_thread_db): Attach inferior_created observer.
720 * linux-nat.c (linux_child_post_attach): Remove call to
721 check_for_thread_db.
722 (linux_child_post_startup_inferior): Ditto.
723 * objfiles.h (OBJF_MAINLINE): Define.
724 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
725 allocate_objfile when appropriate.
726
623bd5b7
UW
7272011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
728
729 PR gdb/13218
730 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
731 Remove unused variables.
732 (get_linux_version): Remove function.
733 (_initialize_arm_linux_nat): Do not call it.
734
79395f92
PA
7352011-10-10 Pedro Alves <pedro@codesourcery.com>
736
737 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
738 new clone lwp if the core asked it to stop. Don't pass on
739 unexpected signals to the new clone; leave them pending instead.
740
eff3df78
PA
7412011-10-10 Pedro Alves <pedro@codesourcery.com>
742
743 * linux-nat.c (resume_lwp): Remove redundant debug output.
744
4b60df3d
PA
7452011-10-10 Pedro Alves <pedro@codesourcery.com>
746
747 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
748 last_resume_kind before clearing it, and use the copy instead to
749 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
750 resume_clear_callback in the non-stop path too.
751
6501578c
YQ
7522011-10-09 Yao Qi <yao@codesourcery.com>
753
754 * valprint.c (value_check_printable): Add one parameter OPTIONS.
755 Honor OPTIONS and VAL's type.
756 (common_val_print, value_print): Update to pass one more parameter.
757
5a56e9c5
DE
7582011-10-09 Doug Evans <dje@google.com>
759
760 Add new "alias" command.
761 * NEWS: Mention new command.
762 * command.h (valid_user_defined_cmd_name_p): Declare.
763 * defs.h (make_cleanup_dyn_string_delete): Declare.
764 * utils.c: #include "dyn-string.h".
765 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
766 * cli/cli-cmds.c: #include "dyn-string.h".
767 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
768 (init_cli_cmds): Add new command.
769 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
770
509f0fd9
JK
7712011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
772
773 Fix compatibility with older GCCs.
774 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
775 * stack.c (read_frame_arg): Initialize val_deref.
776
2bda9cc5
JK
7772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
778
779 Entry values NEWS entries, DWARF disassembly support.
780 * NEWS: New entry values entry.
781 (set print entry-values, show print entry-values)
782 (set debug entry-values, show debug entry-values): New entries.
783 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
784 indent. Remove variable start. Move header printing out. Respect
785 INDENT. Support DW_OP_GNU_entry_value.
786 (locexpr_describe_location_1): Move the header printing here, extend
787 the disassemble_dwarf_expression passed parameters.
788
a471c594
JK
7892011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
790
791 Display @entry parameter values even for references.
792 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
793 coerce_ref_if_computed.
794 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
795 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
796 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
797 existing push_dwarf_reg_entry_value call. Add new detection calling
798 dwarf_block_to_dwarf_reg_deref. Update the error message.
799 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
800 * dwarf2expr.h
801 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
802 parameter deref_size, describe it in the comment.
803 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
804 (dwarf_block_to_dwarf_reg_deref): New declaration.
805 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
806 deref_size, describe it in the function comment. New variables
807 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
808 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
809 describe it in the function comment. Fetch the alternative block
810 accoring to DEREF_SIZE.
811 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
812 (entry_data_value_free_closure, entry_data_value_funcs): New.
813 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
814 outer_val, target_val, val and addr. Try to fetch and create also
815 referenced value content.
816 (pieced_value_funcs): NULL value for coerce_ref.
817 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
818 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
819 coerce_ref_if_computed.
820 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
821 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
822 * stack.c (read_frame_arg): Compare also dereferenced values.
823 * value.c (value_computed_funcs): Make the parameter v const, use
824 value_lval_const for it.
825 (value_lval_const, coerce_ref_if_computed): New function.
826 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
827 * value.h (struct lval_funcs): New field coerce_ref.
828 (value_computed_funcs): Make the parameter v const.
829 (value_lval_const, coerce_ref_if_computed): New declarations.
830
36b11add
JK
8312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
832
833 Support @entry in input expressions.
834 * c-exp.y (ENTRY, unknown_cpp_name): New.
835 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
836 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
837 (variable: name_not_typename '@' ENTRY, name: ENTRY)
838 (name_not_typename: ENTRY): New.
839 (yylex): Recognize ENTRY.
840 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
841 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
842 Likewise.
843 * parse.c (operator_length_standard): Likewise.
844 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
845
3343315b
JK
8462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
847
848 Display referenced values in backtraces.
849 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
850 * stack.c (print_frame_arg): Likewise.
851
ac71a68c
JK
8522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
853
854 Make some lval_funcs methods to default on NULL.
855 * valops.c (value_fetch_lazy): Check if lval_computed read method is
856 NULL.
857 (value_assign): Check if lval_computed write method is NULL.
858 * value.h (struct lval_funcs): Comment NULL values for read and write
859 methods.
860
e18b2753
JK
8612011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
862
863 Display @entry parameter values (without references).
864 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
865 New functions.
866 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
867 New declarations.
868 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
869 entry record.
870 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
871 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
872 functions.
873 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
874 (loclist_read_variable_at_entry): New function.
875 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
876 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
877 DW_AT_location, call dwarf_block_to_sp_offset for it.
878 * frame.h (print_entry_values_no, print_entry_values_only)
879 (print_entry_values_preferred, print_entry_values_if_needed)
880 (print_entry_values_both, print_entry_values_compact)
881 (print_entry_values_default, print_entry_values): New declarations.
882 (struct frame_arg): New field entry_kind.
883 (read_frame_arg): New parameter entryargp.
884 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
885 arg->entry_kind. Optionally print the `@entry' suffix.
886 (list_args_or_locals): New variable entryarg, initialize it.
887 Initialize also entry_kind of arg and entryarg. Conditionalize
888 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
889 xfree for entryarg.error.
890 * stack.c (print_entry_values_no, print_entry_values_only)
891 (print_entry_values_preferred, print_entry_values_if_needed)
892 (print_entry_values_both, print_entry_values_compact)
893 (print_entry_values_default, print_entry_values_choices)
894 (print_entry_values): New variables.
895 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
896 print the `@entry' suffix, possibly in combination for
897 print_entry_values_compact.
898 (read_frame_arg): New parameter entryargp, new variables entryval,
899 entryval_error and val_equal. Read in also entryargp, respect
900 print_entry_values, compare the values using val_equal, fill in also
901 argp->entry_kind (together with entryargp->entry_kind).
902 (print_frame_args): New variable entryarg, initialize it.
903 Conditionalize print_frame_arg for arg, add print_frame_arg for
904 entryarg. Call xfree for entryarg.error.
905 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
906 * symtab.h (struct symbol_computed_ops): New field
907 read_variable_at_entry.
908
93d86cef
JK
9092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 Code reshuffle.
912 * frame.h (struct frame_arg): New definition.
913 (read_frame_arg): New declaration.
914 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
915 (list_args_or_locals): ... the code here. New variable arg, call
916 read_frame_arg and list_arg_or_local with it. Unify the
917 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
918 arg.error.
919 * stack.c (print_frame_arg): New functiom from the code of
920 print_frame_args.
921 (read_frame_arg): New function.
922 (print_frame_args): Remove variable val. New variable arg, call
923 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
924
2d6c5dc2
JK
9252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
926
927 Protect entry values against self tail calls.
928 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
929 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
930
111c6489
JK
9312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
932
933 Recognize virtual tail call frames.
934 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
935 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
936 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
937 * dwarf2-frame-tailcall.c: New file.
938 * dwarf2-frame-tailcall.h: New file.
939 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
940 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
941 REGS.PREV only after CIE execution.
942 (struct dwarf2_frame_cache): New field tailcall_cache.
943 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
944 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
945 parts, try to find entry_cfa_sp_offset. Call
946 dwarf2_tailcall_sniffer_first.
947 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
948 when appropriate.
949 (dwarf2_frame_dealloc_cache): New function.
950 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
951 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
952 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
953 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
954 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
955 * dwarf2loc.c (func_addr_to_tail_call_list)
956 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
957 (call_site_find_chain_1, call_site_find_chain): New.
958 * dwarf2loc.h (struct call_site_chain): New.
959 (call_site_find_chain): New declaration.
960 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
961 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
962 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
963 * stack.c (frame_info): Support also TAILCALL_FRAME.
964
bb984ff1
JK
9652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 Tail call sites reader implementation.
968 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
969 fill in TYPE_TAIL_CALL_LIST.
970 * gdbtypes.h (struct func_type): New field tail_call_list.
971 (struct call_site): New field tail_call_next.
972 (TYPE_TAIL_CALL_LIST): New definition.
973
8e3b41a9
JK
9742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
975
976 Implement basic support for DW_TAG_GNU_call_site.
977 * block.c: Include gdbtypes.h and exceptions.h.
978 (call_site_for_pc): New function.
979 * block.h (call_site_for_pc): New declaration.
980 * defs.h: Include hashtab.h.
981 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
982 declarations.
983 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
984 ctx_no_push_dwarf_reg_entry_value.
985 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
986 (dwarf_block_to_dwarf_reg): New function.
987 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
988 (ctx_no_push_dwarf_reg_entry_value): New function.
989 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
990 push_dwarf_reg_entry_value.
991 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
992 declarations.
993 * dwarf2loc.c: Include gdbcmd.h.
994 (dwarf_expr_ctx_funcs): New forward declaration.
995 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
996 (dwarf_expr_reg_to_entry_parameter)
997 (dwarf_expr_push_dwarf_reg_entry_value): New.
998 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
999 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1000 (needs_dwarf_reg_entry_value): New function.
1001 (needs_frame_ctx_funcs): Install it.
1002 (_initialize_dwarf2loc): New function.
1003 * dwarf2loc.h (entry_values_debug): New declaration.
1004 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1005 (read_call_site_scope): New forward declaration.
1006 (process_full_comp_unit): Copy call_site_htab.
1007 (process_die): Support DW_TAG_GNU_call_site.
1008 (read_call_site_scope): New function.
1009 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1010 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1011 (cleanup_htab): Delete.
1012 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1013 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1014 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1015 FIELD_LOC_KIND_DWARF_BLOCK.
1016 * gdbtypes.h (enum field_loc_kind): New entry
1017 FIELD_LOC_KIND_DWARF_BLOCK.
1018 (struct main_type): New loc entry dwarf_block.
1019 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1020 (TYPE_FIELD_DWARF_BLOCK): New.
1021 * python/py-type.c: Include dwarf2loc.h.
1022 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1023 internal_error call on unknown FIELD_LOC_KIND.
1024 * symtab.h (struct symtab): New field call_site_htab.
1025 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1026 (core_addr_hash, core_addr_eq): New functions.
1027
b6cdc2c1
JK
10282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1029
1030 Code reshuffle.
1031 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1032 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1033 calling_convention under func_stuff there.
1034 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1035 (init_type) <TYPE_CODE_FUNC>: Likewise.
1036 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1037 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1038 * gdbtypes.h (enum type_specific_kind): Change
1039 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1040 (struct main_type) <type_specific>: Change calling_convention to
1041 func_stuff. Move calling_convention to ...
1042 (struct func_type): ... this new struct.
1043 (INIT_FUNC_SPECIFIC): New #define.
1044 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1045
181cebd4
JK
10462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1047
1048 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1049 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1050 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1051 ctx->ref_addr_size. Handle its invalid value.
1052 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1053 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1054 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1055 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1056 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1057 (dwarf2_per_cu_ref_addr_size): New function.
1058
c471e790
JK
10592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1060
1061 Code cleanup.
1062 * dwarf2read.c (per_cu_header_read_in): New function.
1063 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1064 variables cu_header_local and cu_headerp.
1065
741f5e3c
JK
10662011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1067
1068 Fix initial language detection with -readnow.
1069 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1070 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1071 searches only for global symbols.
1072
a73d2258
JK
10732011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1074
1075 Fix printed anonymous struct name.
1076 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1077 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1078 (anonymous_struct_prefix): New function.
1079 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1080 (dwarf2_name): Strip for anonymous structs any prefixes.
1081
749fd4ea
DE
10822011-10-07 Doug Evans <dje@google.com>
1083
1fa57852
DE
1084 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1085 `replace'.
1086
690a4937
DE
1087 * python/lib/gdb/printing.py: Whitespace cleanup.
1088
749fd4ea
DE
1089 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1090 warning.
1091
4c38200f
PA
10922011-10-07 Pedro Alves <pedro@codesourcery.com>
1093
1094 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1095 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1096 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1097 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1098 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1099 (arm_linux_remove_watchpoint): Adjust.
1100 * i386-linux-nat.c (i386_linux_dr_set_control)
1101 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1102 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1103 (ia64_linux_remove_watchpoint): Adjust.
1104 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1105 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1106 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1107 (ppc_linux_insert_mask_watchpoint)
1108 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1109 (ppc_linux_remove_watchpoint): Adjust.
1110 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1111 Adjust.
1112
b7ff339d
CV
11132011-10-07 Corinna Vinschen <vinschen@redhat.com>
1114
1115 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1116 (clear_win32_environment): New function for Cygwin to clear out
1117 Win32 environment.
1118 (windows_create_inferior): Prepare new environment from in_env
1119 for Cygwin, too.
1120
f287c1f3
PM
11212011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1122
5631e596 1123 PR python/13264
f287c1f3
PM
1124 * python/py-value.c (valpy_call): Check that arguments are
1125 a tuple.
1126 (is_intlike): Remove call to CHECK_TYPEDEF.
1127 (valpy_nonzero): Catch GDB exceptions.
1128 (valpy_absolute): Ditto.
1129 (valpy_lazy_string): Ditto.
1130 (valpy_call): Ditto.
1131 (valpy_get_is_optimized_out): Ditto.
1132 (valpy_long): Ditto.
1133 (valpy_float): Ditto.
1134 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1135 (valpy_richcompare): Ditto.
1136
03583c20
UW
11372011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1138
1139 * inferior.h (disable_randomization): Declare.
1140 * infrun.c (disable_randomization): New global variable.
1141 (show_disable_randomization): New function.
1142 (set_disable_randomization): Likewise.
1143 (_initialize_infrun): Install set/show disable-randomization
1144 commands.
1145 * linux-nat.c (disable_randomization): Remove.
1146 (show_disable_randomization): Likewise.
1147 (set_disable_randomization): Likewise.
1148 (_initialize_linux_nat): No longer install set/show
1149 disable-randomization commands here.
1150 (linux_nat_supports_disable_randomization): New function.
1151 (linux_nat_add_target): Install it.
1152 * remote.c (PACKET_QDisableRandomization): New enum value.
1153 (remote_protocol_packets): Support QDisableRandomization.
1154 (_initialize_remote): Likewise.
1155 (remote_supports_disable_randomization): New function.
1156 (init_remote_ops): Install it.
1157 (extended_remote_supports_disable_randomization): New function.
1158 (init_extended_remote_ops): Install it.
1159 (extended_remote_disable_randomization): New function.
1160 (extended_remote_create_inferior_1): Call it.
1161 * target.h (struct target_ops): Add to_supports_disable_randomization.
1162 (target_supports_disable_randomization): Add prototype.
1163 * target.c (target_supports_disable_randomization): New function.
1164 (find_default_supports_disable_randomization): Likewise.
1165 (init_dummy_target): Install it.
1166
20c168b5
KP
11672011-10-07 Kevin Pouget <kevin.pouget@st.com>
1168
1169 Allow Python notification of new object-file loadings.
1170 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1171 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1172 Add build rule for this file.
1173 * python/py-event.h (emit_new_objfile_event): New prototype.
1174 (newobjfile): New Python event emitter.
1175 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1176 Python event registry.
1177 * python/py-inferior.c: Include objfiles.h
1178 (python_new_objfile): New function.
1179 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1180 observers.
1181 * python/py-newobjfileevent.c: New file.
1182 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1183 prototype.
1184 * python/python.c (_initialize_python): Add
1185 gdbpy_initialize_new_objfile_event call.
1186 * NEWS: Add item for new Python event "gdb.newobjfile"
1187
b1c8db38
TG
11882011-10-05 Tristan Gingold <gingold@adacore.com>
1189
1190 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1191 Extract the ravenscar task name from the symbol for the atcb.
1192
0dab82e9
PK
11932011-10-04 Paul Koning <paul_koning@dell.com>
1194
1195 * python/py-type.c (typy_make_iter): Add forward declaration.
1196 (typy_fields_items): Use the gdb.Type iterator.
1197
84ad80e6
PK
11982011-10-04 Paul Koning <paul_koning@dell.com>
1199
1200 * NEWS: Add entry for Python gdb.Type mapping methods.
1201
cb6be26b
KP
12022011-10-04 Kevin Pouget <kevin.pouget@st.com>
1203
1204 PR python/12691: Add the inferior to Python exited event
1205 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1206 to exited_event.
1207 * python/py-event.h (emit_exited_event): Likewise
1208 * python/-inferior.c (python_inferior_exit): Likewise
1209
6005b210
JB
12102011-10-03 Joel Brobecker <brobecker@adacore.com>
1211
1212 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1213 in output of -ada-task-info GDB/MI command.
1214
75082e8c
JB
12152011-10-03 Joel Brobecker <brobecker@adacore.com>
1216
1217 * ada-lang.h (struct inferior): Declare.
1218 (print_ada_task_info): Add declaration.
1219 * ada-tasks.c (print_ada_task_info): Make non-static.
1220 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1221 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1222 * mi/mi-main.c: #include "ada-lang.h".
1223 (mi_cmd_list_features): Add "ada-task-info" to the list
1224 of supported features.
1225 (mi_cmd_ada_task_info): New function.
1226
7ed7d719
JB
12272011-10-03 Joel Brobecker <brobecker@adacore.com>
1228
1229 * python/python.c (python_run_simple_file): New function.
1230 (source_python_script, source_python_script_for_objfile):
1231 Replace call to PyRun_SimpleFile by call to
1232 python_run_simple_file.
1233
3fcaed38
PK
12342011-10-03 Paul Koning <paul_koning@dell.com>
1235
1236 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1237 (value_to_value_object): Fetch value if it was lazy.
1238
8e5c319d
JK
12392011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1240
1241 Code cleanup.
1242 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1243 Rearrange the code for it.
1244
dd11a36c
JB
12452011-10-02 Joel Brobecker <brobecker@adacore.com>
1246
1247 * breakpoint.c (bkpt_print_recreate): Add call to
1248 print_recreate_thread.
1249
723b724b
MF
12502011-09-29 Mike Frysinger <vapier@gentoo.org>
1251
1252 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1253 PTRACE_GETFDPIC_INTERP): Define.
1254
412946b6
YQ
12552011-09-28 Yao Qi <yao@codesourcery.com>
1256
1257 * symfile.c (add_symbol_file_command): Update message on usage.
1258
a73bb892
PK
12592011-09-28 Paul Koning <paul_koning@dell.com>
1260
1261 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1262 (typy_length, typy_get, typy_has_key, typy_make_iter)
1263 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1264 (typy_iterator_iter, typy_iterator_iternext)
1265 (typy_iterator_dealloc): New functions to implement standard
1266 Python mapping methods on gdb.Type object.
1267 (gdb.TypeIterator): New Python type.
1268 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1269
fe10a582
DM
12702011-09-28 David S. Miller <davem@davemloft.net>
1271
1272 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1273 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1274 * sparc-tdep.c (sparc_complex_floating_p): New function.
1275 (sparc32_store_arguments): Handle complex floats.
1276 (sparc32_extract_return_value): Likewise.
1277 (sparc32_store_return_value): Likewise.
1278 (sparc32_stabs_argument_has_addr): Likewise.
1279 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1280 (sparc64_store_floating_fields): Handle complex floats.
1281 (sparc64_store_arguments): Likewise.
1282 (sparc64_store_return_value): Likewise.
1283
c93dbcba
EZ
12842011-09-28 Eli Zaretskii <eliz@gnu.org>
1285
1286 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1287 before the change on 2006-12-09.
1288 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1289 generates the environment block for CreateProcessA, modulo the
1290 Cygwin-specific parts that are not needed here.
1291
f00c55f8
TG
12922011-09-27 Tristan Gingold <gingold@adacore.com>
1293
1294 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1295 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1296 (darwin_solib_get_all_image_info_addr_at_init): New function.
1297 (darwin_solib_read_all_image_info_addr): Likewise.
1298 (darwin_solib_create_inferior_hook): Use the above two functions.
1299 * darwin-nat.c (darwin_execvp): Renames retval to res.
1300 (darwin_read_write_inferior): Update comment.
1301 (darwin_read_dyld_info): New function.
1302 (darwin_xfer_partial): Handle DYLD_INFO.
1303
6710bf39
SS
13042011-09-27 Stan Shebs <stan@codesourcery.com>
1305
1306 Add return address collection for tracepoints.
1307 * tracepoint.c (encode_actions_1): Add case for $_ret.
1308 (validate_actionline): Check for $_ret.
1309 (trace_dump_actions): Ditto.
1310 * ax-gdb.h (gen_trace_for_return_address): Declare.
1311 * ax-gdb.c: Include arch-utils.h.
1312 (gen_trace_for_return_address): New function.
1313 (agent_command): Add return address special case.
1314 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1315 (amd64_gen_return_address): New function.
1316 (amd64_init_abi): Call it.
1317 * i386-tdep.c: Include ax.h and ax-gdb.h.
1318 (i386_gen_return_address): New function.
1319 (i386_init_abi): Call it.
1320 * arch-utils.h (default_gen_return_address): Declare.
1321 * arch-utils.c (default_gen_return_address): New function.
1322 * gdbarch.sh (gen_return_address): New method.
1323 * gdbarch.h, gdbarch.c: Regenerate.
1324
e04e5beb
JM
13252011-09-23 Joseph Myers <joseph@codesourcery.com>
1326
1327 PR gdb/13079
1328 * i386-tdep.c (i386_frame_align): New.
1329 (i386_gdbarch_init): Use i386_frame_align.
1330
f3d6df6d
YQ
13312011-09-23 Yao Qi <yao@codesourcery.com>
1332
1333 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1334 to get address.
1335
e69860f1
TG
13362011-09-22 Tristan Gingold <gingold@adacore.com>
1337
1338 * fork-child.c (fork_inferior): Add exec_fun parameter.
1339 Call exec_fun or execvp.
1340 * inferior.h: Adjust prototype.
1341 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1342 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1343 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1344 * procfs.c (procfs_create_inferior): Ditto.
1345 * darwin-nat.c (darwin_execvp): New function.
1346 (darwin_create_inferior): Use it.
1347
4b51d87b
YQ
13482011-09-22 Yao Qi <yao@codesourcery.com>
1349
1350 * infrun.c (context_switch): Print debug message when switching to
1351 a different thread.
1352
56b9d9ac
UW
13532011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1354
1355 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1356 complex and vector types.
1357 (s390_return_value_convention): Likewise.
1358
1359 (s390_value_from_register): Call check_typedef.
1360 (extend_simple_arg): Likewise.
1361 (alignment_of): Likewise.
1362 (s390_push_dummy_call): Likewise.
1363 (s390_return_value): Likewise.
1364
b2cd6b29
JM
13652011-09-21 Joseph Myers <joseph@codesourcery.com>
1366
1367 * event-top.c (async_disconnect): If an exception is thrown from
1368 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1369 catch_errors.
1370 * top.c (quit_cover): Return void and take no arguments.
1371 * top.h (quit_cover): Update prototype.
1372
67ba4e42
JM
13732011-09-20 Joseph Myers <joseph@codesourcery.com>
1374
1375 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1376 current_uiout, not uiout.
1377
562f943b
DE
13782011-09-19 Doug Evans <dje@google.com>
1379
1380 * python/py-auto-load.c (source_section_scripts): Fix file
1381 descriptor leak.
1382 * python/python.c (source_python_script_for_objfile): Tweak comments.
1383
34518530
YQ
13842011-09-18 Yao Qi <yao@codesourcery.com>
1385 Ulrich Weigand <ulrich.weigand@linaro.org>
1386
1387 Support displaced stepping for Thumb 16-bit insns.
1388 * arm-tdep.c (THUMB_NOP) Define.
1389 (thumb_copy_unmodified_16bit): New.
1390 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1391 (thumb_copy_alu_reg): New.
1392 (arm_copy_svc): Move some common code to ...
1393 (install_svc): ... here. New.
1394 (thumb_copy_svc): New.
1395 (install_pc_relative): New.
1396 (thumb_copy_pc_relative_16bit): New.
1397 (thumb_decode_pc_relative_16bit): New.
1398 (thumb_copy_16bit_ldr_literal): New.
1399 (thumb_copy_cbnz_cbz): New.
1400 (cleanup_pop_pc_16bit_all): New.
1401 (thumb_copy_pop_pc_16bit): New.
1402 (thumb_process_displaced_16bit_insn): New.
1403 (thumb_process_displaced_32bit_insn): New.
1404 (thumb_process_displaced_insn): process thumb instruction.
1405
1406 Support displaced stepping for Thumb 32-bit insns.
1407 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1408 (thumb2_copy_preload): New.
1409 (thumb2_copy_copro_load_store): New.
1410 (thumb2_copy_b_bl_blx): New.
1411 (thumb2_copy_alu_imm): New.
1412 (thumb2_copy_load_reg_imm): New.
1413 (thumb2_copy_load_literal): New
1414 (thumb2_copy_block_xfer): New.
1415 (thumb_32bit_copy_undef): New.
1416 (thumb_32bit_copy_unpred): New.
1417 (thumb2_decode_ext_reg_ld_st): New.
1418 (thumb2_decode_svc_copro): New.
1419 (decode_thumb_32bit_store_single_data_item): New.
1420 (thumb_copy_pc_relative_32bit): New.
1421 (thumb_decode_pc_relative_32bit): New.
1422 (decode_thumb_32bit_ld_mem_hints): New.
1423 (thumb2_copy_table_branch): New
1424 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1425 instructions.
1426
2b16b2e3
YQ
14272011-09-18 Yao Qi <yao@codesourcery.com>
1428
1429 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1430 (install_b_bl_blx): Likewise.
1431
0f6f04ba
YQ
14322011-09-17 Yao Qi <yao@codesourcery.com>
1433
1434 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1435 (install_load_store): ... this. New.
1436 Change parameter BYTE to SIZE.
1437 (arm_copy_ldr_str_ldrb_strb): Update caller.
1438 (arm_decode_ld_st_word_ubyte): Update caller.
1439
e2d96639
YQ
14402011-09-17 Yao Qi <yao@codesourcery.com>
1441
1442 * infrun.c (displaced_step_fixup): Move some code ...
1443 (displaced_step_restore): ... here. New function.
1444 (handle_inferior_event): Cleanup displaced stepping state for both
1445 child and parent when get forked or vforked event.
1446 * regcache.c (get_thread_arch_aspace_regcache): New function.
1447 get_thread_arch_regcache (): Call it.
1448
a8123151
JB
14492011-09-16 Joel Brobecker <brobecker@adacore.com>
1450
1451 * ada-tasks.c (print_ada_task_info): New function, merging
1452 short_task_info and info_tasks together. Reimplement using
1453 ui-out instead of printing to stdout directly. Move the code
1454 building and checking the task list here, instead of leaving it
1455 in info_tasks_command.
1456 (info_task): Move the code building and checking the task
1457 list here, instead of leaving it in info_tasks_command.
1458 (info_tasks_command): Delete code building and checking
1459 the task list - moved elsewhere. Update calls to info_tasks
1460 and info_task.
1461
fbf06824
JB
14622011-09-16 Joel Brobecker <brobecker@adacore.com>
1463
1464 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1465
34a0bc90
JB
14662011-09-16 Joel Brobecker <brobecker@adacore.com>
1467
1468 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1469
79779fa9
JB
14702011-09-16 Joel Brobecker <brobecker@adacore.com>
1471
1472 * ada-lang.h (ada_build_task_list): Remove parameter
1473 `warn_if_null'.
1474 * ada-tasks.c (ada_build_task_list): Remove parameter
1475 `warn_if_null'. Adjust implementation and documentation.
1476 (valid_task_id, ada_get_environment_task)
1477 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1478 (info_tasks_command): Adjust implementation.
1479 (task_command): Likewise.
1480 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1481 to ada_build_task_list.
1482
e225eb91
JB
14832011-09-16 Joel Brobecker <brobecker@adacore.com>
1484
1485 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1486 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1487 (ada_tasks_inferior_data_handle): New static global.
1488 (get_ada_tasks_inferior_data): New function.
1489 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1490 (ada_get_environment_task, iterate_over_live_ada_tasks)
1491 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1492 Adjust.
1493 (ada_set_current_inferior_known_tasks_addr): New function.
1494 (read_known_tasks, ada_build_task_list, short_task_info)
1495 (info_tasks, info_task, info_tasks_command, task_command_1)
1496 (task_command, ada_task_list_changed): Adjust.
1497 (ada_tasks_invalidate_inferior_data): New function.
1498 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1499 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1500 * ada-lang.h (struct inferior): Add declaration.
1501 (ada_task_list_changed): Update profile.
1502 * remote-wtx-pd.c: #include "inferior.h".
1503 (switch_to_pd_internal): Update call to ada_task_list_changed.
1504
6da9ca05
JB
15052011-09-16 Joel Brobecker <brobecker@adacore.com>
1506
1507 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1508 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1509 (atcb_fieldno): Delete these static globals.
1510 (struct ada_tasks_pspace_data): New struct.
1511 (ada_tasks_pspace_data_handle): New static global.
1512 (get_ada_tasks_pspace_data): New function.
1513 (ada_tasks_invalidate_pspace_data): New function.
1514 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1515 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1516 (_initialize_tasks): Create this module's per-progspace
1517 data handle.
1518
dccd3cbd
JB
15192011-09-16 Joel Brobecker <brobecker@adacore.com>
1520
1521 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1522
f877b031
TG
15232011-09-16 Tristan Gingold <gingold@adacore.com>
1524
1525 * fork-child.c (fork_inferior): Update comment. Use alloca
1526 instead of xmalloc for argv. Move len and shell_command
1527 declarations in the block where they are used.
1528 Only call execvp. Factorize failure code.
1529
ae0c443d
JK
15302011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1531
1532 Code cleanup.
1533 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1534 `exp_element' instead of an element of the same and make the function
1535 static.
1536 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1537 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1538 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1539 Change argument of `write_exp_elt' function call.
1540 Remove extra spaces from comments.
1541 * parser-defs.h (write_exp_elt): Remove prototype.
1542
5af65ec0
PK
15432011-09-15 Paul Koning <paul_koning@dell.com>
1544
1545 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1546 count of item appended to list.
1547 * python/py-type.c (typy_fields): Likewise.
1548
72be8ccc
PK
15492011-09-15 Paul Koning <paul_koning@dell.com>
1550
883640a8 1551 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1552
92f6badc
KP
15532011-09-15 Kevin Pouget <kevin.pouget@st.com>
1554
1555 PR threads/12628
1556 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1557 processes with multiple threads.
1558 (inf_has_multiple_thread_cb): New function.
1559 (inf_has_multiple_threads): New function.
1560
0672bf41 15612011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1562
1563 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1564 * python/py-inferior.c (GdbMethods): New Python method definition.
1565
6839b47f
KP
15662011-09-15 Kevin Pouget <kevin.pouget@st.com>
1567
1568 Handle multiple breakpoint hits in Python interface:
1569 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1570 variable to breakpoints.
1571 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1572 bps instead of single breakpoint. Fix some space typos.
1573 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1574 variable to breakpoints.
1575
672f9b60
KP
15762011-09-15 Kevin Pouget <kevin.pouget@st.com>
1577
1578 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1579 note if the breakpoint is internal.
1580
43675ae4
KP
15812011-09-15 Kevin Pouget <kevin.pouget@st.com>
1582
0672bf41 1583 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1584
15148d6a
PA
15852011-09-14 Pedro Alves <pedro@codesourcery.com>
1586
1587 * infrun.c (prepare_for_detach, wait_for_inferior)
1588 (fetch_inferior_event): Don't flush the register cache.
1589 * remote.c (struct stop_reply) <regcache>: Add comment.
1590
d83e736b
JK
15912011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1592
1593 Remove excessive DWARF expressions memory duplication.
1594 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1595 for block.data.
1596 (indirect_pieced_value): Remove variable result. Remove variable
1597 back_to and its use for baton.data.
1598 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1599 block.data.
1600 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1601 Update the function comment.
1602
c65b3e0d
PA
16032011-09-13 Pedro Alves <pedro@codesourcery.com>
1604
1605 * inferior.h (ALL_INFERIORS): New.
1606 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1607 for a stopped thread.
1608 (thread_db_find_new_threads): Look for threads in all inferiors.
1609
a1398e0c
PA
16102011-09-13 Pedro Alves <pedro@codesourcery.com>
1611
1612 * breakpoint.c (update_watchpoint): Handle the case of the
1613 watchpoint to update not being in the breakpoint list yet.
1614 (hw_watchpoint_use_count): New, factored out from
1615 hw_watchpoint_used_count.
1616 (hw_watchpoint_used_count): Rename to ...
1617 (hw_watchpoint_used_count_others): ... this. Add `except'
1618 parameter. Don't count resources of `except'. Use
1619 hw_watchpoint_use_count.
1620
30596231
PA
16212011-09-13 Pedro Alves <pedro@codesourcery.com>
1622
1623 * gdbthread.h (enum thread_state): Moved here.
1624 (struct thread_info): Rename `executing_' field to `executing' and
1625 `state_' to `state'.
1626 * thread.c (enum thread_state): Moved to gdbthread.h.
1627 (new_thread, add_thread_silent, delete_thread_1)
1628 (any_live_thread_of_process, thread_alive, set_running)
1629 (set_running, is_thread_state, any_running, is_executing)
1630 (set_executing, finish_thread_state, print_thread_info)
1631 (do_captured_thread_select): Adjust.
1632
bede5f5f
JK
16332011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
1635 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1636 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1637
4801a9a3
PA
16382011-09-12 Pedro Alves <pedro@codesourcery.com>
1639 Matt Rice <ratmice@gmail.com>
1640
1641 PR gdb/13175
1642
1643 * interps.c (struct interp) <interpreter_out>: Delete field.
1644 (interp_new): Remove the data and uiout parameters and adjust.
1645 (interp_set): Only set the current_uiout from the interpreter's
1646 uiout after initializing the interpreter. Adjust call to
1647 init_proc.
1648 (interp_ui_out): Adjust to call procs->ui_out_proc.
1649 (interp_data, interp_name): New.
1650 * interps.h (interp_init_ftype): Add `self' parameter.
1651 (interp_ui_out_ftype): New typedef.
1652 (struct interp_procs) <ui_out_proc>: New method pointer.
1653 (interp_new): Remove the data and uiout parameters.
1654 (interp_data, interp_name): Declare.
1655 * tui/tui-interp.c (tui_init): Adjust prototype.
1656 (tui_ui_out): New.
1657 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1658 tui_out here. Adjust call to interp_new.
1659 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1660 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1661 (cli_ui_out): New.
1662 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1663 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1664 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1665 Initialize mi->uiout depending on the mi_version as extracted from
1666 the interpreter's name.
1667 (mi_ui_out): New.
1668 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1669 interp_new. Don't allocate the ui_out's of the interpreters here.
1670
d0afda03 16712011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 1672
d0afda03 1673 * solib.c (solib_used): New function.
59145f8c
AR
1674 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1675 by another so_list object before freeing it.
1676
bdaf8d4a
JK
16772011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1678
1679 Code cleanup.
1680 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1681 values.
1682
df15bd07
JK
16832011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1684
1685 Code cleanup.
1686 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1687 (amd64_skip_xmm_prologue): ... this new function. Describe its
1688 parameters. No longer use amd64_prologue_line_bug.
1689 * defs.h (producer_is_gcc_ge_4): New declaration.
1690 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1691 (process_full_comp_unit): Update its caller. Remove
1692 amd64_prologue_line_bug initialization.
1693 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1694 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1695
25289eb2
PA
16962011-09-09 Pedro Alves <pedro@codesourcery.com>
1697
1698 * linux-nat.h (enum resume_kind): New.
1699 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
1700 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1701 resume_stop on the new lwp.
25289eb2
PA
1702 (add_lwp): Set last_resume_kind as resume_continue by default.
1703 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1704 (resume_lwp): New, factored out from resume_callback. Also check
1705 for pending status in lp->waitstatus.
1706 (resume_callback): Reimplement.
1707 (resume_clear_callback): Set last_resume_kind as resume_stop.
1708 (resume_set_callback): Set last_resume_kind as resume_continue.
1709 (linux_nat_resume, linux_handle_extended_wait): Set
1710 last_resume_kind.
1711 (running_callback): Also check lp->waitstatus for pending events.
1712 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1713 is resume_step.
1714 (stop_and_resume_callback): Don't re-resume if the core wanted the
1715 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1716 using an invalidated pointer.
1717 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1718 SIGSTOPs if the core wanted the LWP to stop.
1719 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1720 wanted the lwp to stop. If the core wanted the lwp to stop, and
1721 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1722 of TARGET_SIGNAL_STOP.
1723 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1724 here. Instead, signal the lwp, and set the last_resume_kind to
1725 resume_stop.
1726
f687d035
PA
17272011-09-09 Pedro Alves <pedro@codesourcery.com>
1728
1729 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1730 -1 (error), if the lwp exits right after attaching.
1731
bc587a6b
DE
17322011-09-08 Doug Evans <dje@google.com>
1733
63d97a20
DE
1734 * py-cmd.c: Some minor formatting fixes.
1735 (gdbpy_parse_command_name): Rename text arg to name, make const.
1736 All callers updated.
1737 * python-internal.h (gdbpy_parse_command_name): Update.
1738
bc587a6b
DE
1739 * cli/cli-decode.c (add_cmd): Add comment.
1740
08711b9a
JK
17412011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1742
1743 PR breakpoints/12435
1744 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1745 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1746 * dwarf2read.c (process_full_comp_unit): Initialize
1747 amd64_prologue_line_bug.
1748 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1749
b2e7f004
JK
17502011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1751
1752 Fix TUI screen corruption.
1753 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1754 batch_flag.
1755
8afd712c
JK
17562011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1757
1758 * findvar.c (read_var_value): Never return NULL, throw an error
1759 instead. Update the function comment. State symbol name in the error
1760 messages.
1761 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1762 read_var_value.
1763 * stack.c (print_frame_args): Likewise.
1764 * valops.c (value_of_variable): Likewise.
1765
b99b5f66
JK
17662011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1767
1768 * stack.c (print_frame_args): New variable except. Wrap
1769 read_var_value and common_val_print into TRY_CATCH.
1770
85bc8cb7
JK
17712011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1772
1773 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1774 caller to value_of_this.
1775 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1776 Twice.
1777 * valops.c (value_of_this): Remove parameter complain and variable ret.
1778 Update function comment. Never return NULL by this code.
1779 (value_of_this_silent): New function.
1780 * value.h (value_of_this): Remove parameter complain.
1781 (value_of_this_silent): New declaration.
1782
ede1849f
YQ
17832011-09-07 Yao Qi <yao@codesourcery.com>
1784
1785 * gdbthread.h (struct thread_info): Remove fields
1786 `stepping_through_solib_after_catch' and
1787 `stepping_through_solib_catchpoints'.
1788 * infrun.c (init_thread_stepping_state): Update.
1789 (process_event_stop_test, currently_stepping): Update.
1790 (currently_stepping_or_nexting_callback): Update.
1791
6aa27652
YQ
17922011-09-07 Yao Qi <yao@codesourcery.com>
1793
1794 * gdbthread.h (struct thread_info): Comment on field
1795 `step_after_step_resume_breakpoint'.
1796
00db5b94
PA
17972011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1798
1799 * remote.c (remote_console_output): Reindent.
1800
861152be
LM
18012011-09-06 Luis Machado <lgustavo@codesourcery.com>
1802
1803 * frame.c (has_stack_frames): Check for currently selected
1804 traceframe.
1805
ab821bc6
PA
18062011-09-06 Pedro Alves <pedro@codesourcery.com>
1807
1808 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1809 (set_async_annotation_level, set_async_prompt, pop_prompt)
1810 (push_prompt, new_async_prompt): Delete declarations.
1811 * top.h (get_prompt, set_prompt): Change prototype.
1812 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1813 declarations.
1814 * top.c (command_loop):
1815 (top_prompt): New global.
1816 (get_prefix, set_prefix, get_suffix, ): Delete.
1817 (get_prompt, set_prompt): Rewrite.
1818 (show_new_async_prompt): Rename to ...
1819 (show_prompt): ... this.
1820 (init_main): Adjust. Don't handle --annotate=2 here.
1821 * event-top.c (new_async_prompt): Delete.
1822 (the_prompts): Delete.
1823 (more_to_come): Make static.
1824 (display_gdb_prompt): Use top_level_prompt() to compute the top
1825 level prompt, and don't notify the before_prompt observers
1826 directly here. Always trick readline into not trying to display
1827 the prompt if sync_execution and displaying the primary prompt.
1828 If displaying a local/secondary prompt, always show it, even if
1829 sync_execution is set.
1830 (change_annotation_level): Delete.
1831 (top_level_prompt): New, based on change_annotation_level.
1832 (push_prompt, pop_prompt): Delete.
1833 (async_disable_stdin): No longer pushes prompt.
1834 (command_line_handler): No longer pushes or pops prompt. If more
1835 input is expected, call display_gdb_prompt with an explicit empty
1836 prompt.
1837 (async_stop_sig): Adjust.
1838 (set_async_annotation_level, set_async_prompt): Delete.
1839 * python/python.c (before_prompt_hook): Adjust.
1840
f1d90504
PA
18412011-09-05 Pedro Alves <pedro@codesourcery.com>
1842
1843 PR cli/13110
1844
1845 * infrun.c (fetch_inferior_event): Check if there's a selected
1846 thread before checking if the selected thread is executing.
1847
0f641c01
PA
18482011-09-05 Pedro Alves <pedro@codesourcery.com>
1849
1850 * inf-loop.c (execute_command): Don't check if the current thread
1851 if running before synchronously waiting for command completion.
1852 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1853 here.
1854 (normal_stop): Call async_enable_stdin here.
1855 * inf-loop.c (inferior_event_handler): Don't call
1856 async_enable_stdin, nor handle "set exec-done-display" here.
1857
30368258 18582011-09-04 Joel Brobecker <brobecker@adacore.com>
1859
1860 GDB 7.3.1 released.
1861
31916278
JB
18622011-09-04 Joel Brobecker <brobecker@adacore.com>
1863
1864 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1865
e8d56f18
JB
18662011-09-04 Joel Brobecker <brobecker@adacore.com>
1867
1868 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1869
5dd05d8c
JK
18702011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1871
1872 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1873
7d8e6458 18742011-09-02 Matt Rice <ratmice@gmail.com>
1875
1876 PR gdb/10720
1877 * event-top.c (cli_command_loop): Replace readline setup with
1878 direct call to display_gdb_prompt.
1879 (display_gdb_prompt): Do not call observer mechanism during
1880 synchronous execution.
1881
84636d28
PA
18822011-09-02 Pedro Alves <pedro@codesourcery.com>
1883
1884 * linux-nat.c (in_pid_list_p): New.
1885 (linux_record_stopped_pid): Delete.
1886 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1887 already attached to the LWP. Return an indication if so.
1888 (linux_nat_filter_event): Adjust.
1889 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1890 returning an indication to ignore this thread.
1891
b4a14fd0
PA
18922011-09-02 Pedro Alves <pedro@codesourcery.com>
1893
1894 * top.c: Include interps.h.
1895 (execute_command): If the target can async, but the interpreter is
1896 in sync mode, synchronously wait for the command to finish before
1897 returning.
1898 (execute_command_to_string): Force the interpreter to sync mode.
1899 * infrun.c: Include interps.h.
1900 (fetch_inferior_event): Don't restore the prompt yet if the
1901 interpreter is in sync mode.
1902 * interps.c (interpreter_async): New global.
1903 * interps.h (interpreter_async): Declare.
1904 * inf-loop.c: Include interps.h.
1905 (inferior_event_handler): Don't print the language change or run
1906 breakpoint commands yet if the interpreter in is sync mode.
1907 * main.c (captured_command_loop): Flip the interpreter to async
1908 mode.
1909 * cli/cli-script.c: Include interps.h.
1910 (execute_user_command, while_command, if_command): Force the
1911 interpreter to sync mode.
1912 * python/python.c: Include interps.h.
1913 (python_command, execute_gdb_command): Force the interpreter to
1914 sync mode.
1915
c709acd1
PA
19162011-09-02 Pedro Alves <pedro@codesourcery.com>
1917
1918 * value.c (show_convenience): Catch errors thrown while printing
1919 each internal variable.
1920 * infrun.c (validate_siginfo_access): New function.
1921 (siginfo_value_read, siginfo_value_write): Call it.
1922
9655e943
JK
19232011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1924
1925 Revert:
1926 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1927 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1928 attribute.
1929
cb457ae2
YQ
19302011-08-29 Yao Qi <yao@codesourcery.com>
1931
1932 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1933 (cmp_name): New.
1934 (enable_break2): Update caller.
1935 * solib-frv.c (bfd_lookup_symbol): Removed.
1936 (cmp_name): New.
1937 (enable_break2): Update caller.
1938 * solib-pa64.c (bfd_lookup_symbol): Removed.
1939 (cmp_name): New.
1940 * solib-svr4.c (bfd_lookup_symbol): Removed.
1941 (cmp_name_and_sec_flags): New.
1942 (enable_break): Update caller.
1943 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1944 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1945 (gdb_bfd_lookup_symbol): New.
1946 * solib.h: Functions declarations.
1947
83d1a36a
YQ
19482011-08-29 Yao Qi <yao@codesourcery.com>
1949
1950 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1951 and solib-dsbt.o.
1952
c04b3e8f
JK
19532011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 Fix TUI stepi on code without symbols.
1956 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1957 current PC instead.
1958
cb0fd152
JK
19592011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1960
1961 Code cleanup.
1962 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1963 and the static keyword.
1964 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1965 Make prefix an array.
1966 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1967 * mi/mi-main.c (get_register): Remove stb initialization and the static
1968 keyword.
1969
91174723
JK
19702011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 Code cleanup - make mi_opt const.
1973 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1974 opts const.
1975 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1976 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1977 (mi_cmd_env_dir): Likewise.
1978 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1979 (mi_cmd_target_file_put): Likewise.
1980 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1981 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1982 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1983 (mi_valid_noargs): Make opts const.
1984 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1985 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1986 (mi_cmd_data_read_memory): Likewise.
1987 (mi_cmd_data_read_memory_bytes): Likewise.
1988 (mi_cmd_data_write_memory): Likewise.
1989
5068b8e8 19902011-08-26 Matt Rice <ratmice@gmail.com>
1991
1992 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1993 bcache_xmalloc, replace bcache_xmalloc with call to
1994 psymbol_bcache_init for psymbol_cache.
1995 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1996
a4f2ce05
JK
19972011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1998
1999 * inf-loop.c (inferior_event_handler): Add exception_print in
2000 INF_EXEC_COMPLETE.
2001
353d1d73
JK
20022011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2003
2004 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2005 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2006 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2007 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2008 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2009 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2010 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2011 * infrun.c (fetch_inferior_event): Call
2012 make_bpstat_clear_actions_cleanup.
2013 * top.c (execute_command): New variable cleanup_if_error, call
2014 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2015 * utils.c (do_bpstat_clear_actions_cleanup)
2016 (make_bpstat_clear_actions_cleanup): New functions.
2017
3ced3da4
PA
20182011-08-26 Pedro Alves <pedro@codesourcery.com>
2019
2020 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2021 either the parent or the child forks. Rename a couple locals.
2022
a9f4bb21
PA
20232011-08-26 Pedro Alves <pedro@codesourcery.com>
2024
2025 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2026 library call. Avoid reading the `status' local if all waitpid
2027 calls failed.
2028
e5798bef
PA
20292011-08-26 Pedro Alves <pedro@codesourcery.com>
2030
2031 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2032 opening /proc/PID/task always succeeds.
2033
edb2aadf
AR
20342011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2035
2036 * linespec.c (symtab_from_filename): Check for the end of string.
2037
0d932b2f
MK
20382011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2039
2040 PR mi/11912
2041 * varobj.c (cplus_describe_child): Add the keyword
2042 'class' to the output of the method when dealing
2043 with a cast to a base class.
2044
e93ca019
JK
20452011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2046
2047 No functionality change.
2048 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2049 function comment a reference, new variables tp and bs, move here code
2050 from throw_exception.
2051 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2052 describe it in the comment.
2053 * exceptions.c (throw_exception): Remove variable tp, move the code for
2054 bpstat_clear_actions to bpstat_clear_actions.
2055
13da1c97
LM
20562011-08-24 Luis Machado <lgustavo@codesourcery.com>
2057
2058 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2059 * linux-nat.c: Include linux-procfs.h.
2060 (linux_proc_get_tgid): Move to ...
2061 * common/linux-procfs.c: ... here. New file.
2062 * common/linux-procfs.h: New file.
2063 * linux-thread-db.c: Include linux-procfs.h.
2064 * Makefile.in: Update dependencies.
2065 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2066 * config/arm/linux.mh: Likewise.
2067 * config/i386/linux.mh: Likewise.
2068 * config/i386/linux64.mh: Likewise.
2069 * config/ia64/linux.mh: Likewise.
2070 * config/m32r/linux.mh: Likewise.
2071 * config/m68k/linux.mh: Likewise.
2072 * config/mips/linux.mh: Likewise.
2073 * config/pa/linux.mh: Likewise.
2074 * config/pa/linux.mh: Likewise.
2075 * config/powerpc/linux.mh: Likewise.
2076 * config/powerpc/ppc64-linux.mh: Likewise.
2077 * config/powerpc/spu-linux.mh: Likewise.
2078 * config/sparc/linux.mh: Likewise.
2079 * config/sparc/linux64.mh: Likewise.
2080 * config/xtensa/linux.mh: Likewise.
2081
4e5c165d
HZ
20822011-08-24 Hui Zhu <teawater@gmail.com>
2083
2084 * tracepoint.c (cond_string_is_same): New function.
2085 (find_matching_tracepoint): Add condition check
2086 by cond_string_is_same.
2087
6e2f5b22
JK
20882011-08-23 Josh Matthews <josh@joshmatthews.net>
2089
2090 Fix build error in Darwin port.
2091 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2092
abf85f46
JK
20932011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2094
2095 Code cleanup.
2096 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2097 (command_line_is_silent): New function.
2098 (bpstat_do_actions_1): No longer use commands_left, use
2099 command_line_is_silent for commands.
2100 (bpstat_alloc): Remove clearing of commands_left.
2101 (bpstat_stop_status): Remove initialization of commands_left, use
2102 command_line_is_silent.
2103 * breakpoint.h (struct bpstats): Remove commands_left.
2104
3a93a0c2
KS
21052011-08-18 Keith Seitz <keiths@redhat.com>
2106
2107 PR c++/12266
2108 * cp-name-parser.y (struct demangle_info): Remove unused
2109 member PREV.
2110 (d_grab): Likewise.
2111 (allocate_info): Change return type to struct demangle_info *.
2112 Always allocate a new demangle_info.
2113 Remove unused PREV pointer.
2114 (cp_new_demangle_parse_info): New function.
2115 (cp_demangled_name_parse_free): New function.
2116 (do_demangled_name_parse_free_cleanup): New function.
2117 (make_cleanup_cp_demangled_name_parse_free): New function.
2118 (cp_demangled_name_to_comp): Change return type to
2119 struct demangle_parse_info *.
2120 Allocate a new storage for each call.
2121 (main): Update usage for cp_demangled_name_to_comp
2122 API change.
2123 * cp-support.h (struct demangle_parse_info): New structure.
2124 (cp_demangled_name_to_comp): Update API change for
2125 return type.
2126 (cp_new_demangle_parse_info): Declare.
2127 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2128 (cp_demangled_name_parse_free): Declare.
2129 * cp-support.c (cp_canonicalize_string): Update API
2130 change for cp_demangled_name_to_comp.
2131 (mangled_name_to_comp): Likewise.
2132 Return struct demangle_parse_info, too.
2133 (cp_class_name_from_physname): Update mangled_name_to_comp
2134 API change.
2135 (method_name_from_physname): Likewise.
2136 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2137 (cp_remove_params): Likewise.
2138 * python/py-type.c (typy_legacy_template_argument): Likewise.
2139
2140 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2141 (cp_merge_demangle_parse_infos): Declare.
2142 * cp-support.c (ignore_typedefs): New file global.
2143 (copy_string_to_obstack): New function.
2144 (inspect_type): New function.
2145 (replace_typedefs): New function.
2146 (replace_typedefs_qualified_name): New function.
2147 (cp_canonicalize_string_no_typedefs): New function.
2148 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2149 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2150 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2151 instead of cp_canonicalize_string.
2152 (find_method): Likewise.
2153 (decode_compound): Before looking up the name, call
2154 cp_canonicalize_string_no_typedefs.
2155 (decode_variable): Likewise.
2156
fa3a4f15
PM
21572011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2158 Tom Tromey <tromey@redhat.com>
2159 Matt Rice <ratmice@gmail.com>
2160
2161 * python/lib/gdb/prompt.py: New file.
2162 * python/lib/gdb/command/prompt.py: New file.
2163 * NEWS: Document set extended-prompt and gdb.prompt library
2164
85661b1e
YQ
21652011-08-16 Yao Qi <yao@codesourcery.com>
2166
2167 * tic6x-linux-tdep.c: Move const arrays definition from here...
2168 * tic6x-tdep.c: to here ...
2169
11315641
YQ
21702011-08-14 Yao Qi <yao@codesourcery.com>
2171
2172 * NEWS: New port to Texas Instruments TMS320C6x.
2173
8cd64e00
YQ
21742011-08-14 Andrew Jenner <andrew@codesourcery.com>
2175 Bernd Schmidt <bernds@codesourcery.com>
2176 Yao Qi <yao@codesourcery.com>
2177
2178 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2179 * solib-dsbt.c: New file. Support DSBT shared object.
2180 * tic6x-linux-tdep.c: New file.
2181 * tic6x-tdep.c: New file.
2182 * tic6x-tdep.h: New file.
2183
78d85199
YQ
21842011-08-14 Andrew Stubbs <ams@codesourcery.com>
2185 Yao Qi <yao@codesourcery.com>
2186
2187 * remote.c (PACKET_qXfer_fdpic): New enum value.
2188 (remote_protocol_features): Add qXfer:fdpic:read packet.
2189 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2190 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2191 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2192
224bbe49
YQ
21932011-08-14 Yao Qi <yao@codesourcery.com>
2194
2195 Target description for tic6x.
2196 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2197 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2198 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2199 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2200 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2201 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2202 * features/tic6x-c64xp-linux.xml: New.
2203 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2204 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2205 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2206 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2207 * regformats/tic6x-c64xp.dat,
2208 regformats/tic6x-c62x-linux.dat: Generated.
2209 * regformats/tic6x-c64x-linux.dat,
2210 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2211 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2212 features/tic6x-*.c files.
2213 Add regformats/tic6x-*.dat files.
2214
457e09f0
DE
22152011-08-12 Doug Evans <dje@google.com>
2216
2217 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2218 * python/py-symbol.c (sympy_get_type): New function.
2219 (symbol_object_getset): Add "type".
2220
d20c1c3f
PA
22212011-08-12 Pedro Alves <pedro@codesourcery.com>
2222
2223 PR tui/13073
2224
2225 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2226 empty name.
2227 (tui_show_register_group): Don't store a byte buffer in the data
2228 element's value.
2229 (tui_register_format): Skip registers with an empty name.
2230 (tui_get_register): Store a struct value in the data element's
2231 value field instead of a byte buffer holding the raw register
2232 contents. Account for optimized-out and unavailable registers
2233 when comparing register contents.
2234
9d8fa392
PA
22352011-08-09 Pedro Alves <pedro@codesourcery.com>
2236
2237 * printcmd.c (current_display_number): Update comment.
2238 (disable_current_display_cleanup): Delete.
2239 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2240 catch errors thrown while evaluating and printing the display.
2241
401a70b8
TT
22422011-08-09 Tom Tromey <tromey@redhat.com>
2243
2244 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2245
7f86f058
PA
22462011-08-09 Pedro Alves <pedro@codesourcery.com>
2247
94b71cca 2248 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2249 * maint.c (maintenance_command): Ditto.
2250 * somread.c (som_symtab_read): Ditto.
2251 * solib.c (solib_find, solib_map_sections, update_solib_list)
2252 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2253 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2254 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2255 * solib-irix.c (locate_base, disable_break, enable_break)
2256 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2257 (irix_current_sos, irix_open_symbol_file_object)
2258 (irix_special_symbol_handling): Ditto.
2259 * solib-sunos.c (locate_base, first_link_map_member)
2260 (sunos_current_sos, disable_break, enable_break)
2261 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2262 Ditto.
2263 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2264 (open_symbol_file_object, svr4_current_sos, enable_break)
2265 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2266 Ditto.
2267 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2268 (frv_current_sos, enable_break, frv_special_symbol_handling)
2269 (frv_solib_create_inferior_hook): Ditto.
2270 * solist.h (struct target_so_ops): Extend the comments of the
2271 special_symbol_handling, current_sos and open_symbol_file_object
2272 methods.
2273
5e239b84
PM
22742011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2275
2276 * python/lib/gdb/__init__.py: Auto-load files in command and
2277 function directories.
2278 * python/python.c (finish_python_initialization): Use
2279 os.path.join.
2280 * python/lib/gdb/command/pretty_printers.py: Self register
2281 command.
2282 * NEWS: Document auto-loading.
2283
b6cede78
JK
22842011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2287 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2288 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2289
29d0bb3d
TT
22902011-08-08 Tom Tromey <tromey@redhat.com>
2291
2292 * breakpoint.c (clean_up_filters): Remove.
2293 (catch_syscall_split_args): Use VEC_cleanup.
2294
2f7fb8e4
JK
22952011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2296
2297 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2298 (main): Uncomment "Demangling error\n".
2299
d6c10e95
PP
23002011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2301
2302 * solib-target.c (segment_attributes): Make them static.
2303 (section_attributes, library_children, library_attributes): Likewise.
2304 (library_list_children, library_list_attributes): Likesise.
2305 (library_list_elements): Likewise.
2306
af6e93b2
PA
23072011-08-05 Pedro Alves <pedro@codesourcery.com>
2308
2309 * exceptions.c (throw_exception): Don't disable the current
2310 display.
2311 * printcmd.c (disable_current_display_cleanup): New function.
2312 (do_one_display): Install a cleanup to disable the current display
2313 if doing the display throws.
2314
6a1b1664
EZ
23152011-08-05 Eli Zaretskii <eliz@gnu.org>
2316
2317 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2318 initialization of the tp_new member to the corresponding
2319 gdbpy_initialize_* function.
2320 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2321 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2322 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2323 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2324 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2325
31a0ae49
JK
23262011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2329 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2330 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2331 references to current_uiout.
2332
e0dd0826
PA
23332011-08-04 Pedro Alves <pedro@codesourcery.com>
2334
2335 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2336 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2337 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2338 * top.c (gdb_readline_wrapper): Adjust.
2339 * tui/tui-interp.c (tui_command_loop):
2340 (_initialize_tui_interp): Don't install it.
2341
79a45e25
PA
23422011-08-04 Pedro Alves <pedro@codesourcery.com>
2343
2344 * ui-out.h (uiout): Rename to ...
2345 (current_uiout): ... this.
2346 * ui-out.c (uiout): Rename to ...
2347 (current_uiout): ... this.
2348 * ada-lang.c (print_it_exception, print_one_exception)
2349 (print_mention_exception): Adjust.
2350 * breakpoint.c (watchpoint_check): Adjust.
2351 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2352 (default_collect_info, watchpoints_info, print_one_catch_fork)
2353 (print_one_catch_vfork, print_one_catch_syscall)
2354 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2355 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2356 (print_it_watchpoint, print_mention_watchpoint)
2357 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2358 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2359 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2360 (bkpt_print_mention, momentary_bkpt_print_it)
2361 (tracepoint_print_mention, update_static_tracepoint)
2362 (tracepoints_info, save_breakpoints): Adjust.
2363 * cli-out.c (field_separator): Adjust.
2364 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2365 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2366 * frame.c (get_current_frame): Adjust.
2367 * infcmd.c (run_command_1, print_return_value): Adjust.
2368 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2369 * infrun.c (print_end_stepping_range_reason): Adjust.
2370 (print_signal_exited_reason, print_exited_reason): Adjust.
2371 (print_signal_received_reason, print_no_history_reason): Adjust.
2372 * interps.c (interp_set): Adjust.
2373 * osdata.c (info_osdata_command): Adjust.
2374 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2375 * remote-fileio.c (remote_fileio_request): Adjust.
2376 * remote.c (show_remote_cmd): Adjust.
2377 * solib.c (info_sharedlibrary_command): Adjust.
2378 * source.c (print_source_lines_base): Adjust.
2379 * stack.c (print_stack_frame): Adjust.
2380 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2381 * symfile-mem.c (add_vsyscall_page): Adjust.
2382 * symfile.c (load_progress, generic_load)
2383 (print_transfer_performance): Adjust.
2384 * thread.c (info_threads_command, restore_selected_frame)
2385 (thread_command): Adjust.
2386 * top.c (make_cleanup_restore_ui_file): Adjust.
2387 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2388 (print_one_static_tracepoint_marker): Adjust.
2389 * cli/cli-cmds.c (print_disassembly): Adjust.
2390 * cli/cli-decode.c (print_doc_line): Adjust.
2391 * cli/cli-interp.c (safe_execute_command): Adjust.
2392 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2393 (handle_redirections): Adjust.
2394 * cli/cli-script.c (show_user_1): Adjust.
2395 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2396 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2397 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2398 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2399 (mi_cmd_env_dir): Adjust.
2400 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2401 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2402 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2403 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2404 (list_args_or_locals): Adjust.
2405 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2406 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2407 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2408 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2409 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2410 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2411 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2412 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2413 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2414 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2415 (list_available_thread_groups, mi_cmd_list_thread_groups)
2416 (mi_cmd_data_list_register_names)
2417 (mi_cmd_data_list_changed_registers)
2418 (mi_cmd_data_list_register_values, get_register)
2419 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2420 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2421 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2422 (mi_execute_command, mi_load_progress): Adjust.
2423 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2424 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2425 Adjust.
2426 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2427 * tui/tui-interp.c (tui_command_loop): Adjust.
2428 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2429
f9679975
PA
24302011-08-04 Pedro Alves <pedro@codesourcery.com>
2431
2432 * exceptions.c (struct catcher): Remove saved_uiout field.
2433 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2434 no longer save/resvore the global ui_out builder.
2435 (catch_exceptions_with_msg): Save/override/restore the global
2436 ui_out builder manually instead of relying on TRY_CATCH to do it.
2437 (catch_errors): Save/restore the global ui_out builder manually
2438 instead of relying on TRY_CATCH to do it.
2439 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2440 parameter.
2441 (TRY_CATCH): Adjust.
2442 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2443 the global ui_out builder manually instead of relying on TRY_CATCH
2444 to do it.
2445
934709f0
PW
24462011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2447
2448 * breakpoint.c (update_global_location_list): Ensure
2449 invariant 'first loc marked not duplicated and inserted,
2450 following locs marked duplicated/not inserted' is respected
2451 for multiple locations at the same address.
2452 (unduplicated_should_be_inserted) New function.
2453 (swap_insertion) New function.
2454
2421fe6f
JK
24552011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2456
2457 * stack.c (print_frame_arguments_choices): Comment typo fix.
2458
3fbb6ffa
TJB
24592011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2460
2461 Revert:
2462 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2463 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2464 argument. Update callers.
2465
fbe12357
PP
24662011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2467
2468 PR gdb/13045
2469 * doublest.c (convert_doublest_to_floatformat): Pass correct
2470 mantissa length to put_field.
2471
b1d288d3
JK
24722011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2473
2474 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2475 exception_print code path.
2476 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2477 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2478 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2479
311b5970
JK
24802011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2481
2482 Code cleanup.
2483 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2484 Remove, merge them into ...
2485 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2486 variable args and its initialization.
2487 (struct print_args_args, print_args_stub): Remove, merge them into
2488 print_frame.
2489 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2490 them into ...
2491 (do_gdb_disassembly): ... here. Remove variable args and its
2492 initialization.
2493 (print_frame): Remove variable args and its initialization, new
2494 variable gdbarch and numargs (from print_args_stub), inline here
2495 print_args_stub with a TRY_CATCH.
2496 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2497 them into ...
2498 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2499 New variable e, remove variable btargs and its initialization.
311b5970 2500
484a26a8
TG
25012011-08-01 Tristan Gingold <gingold@adacore.com>
2502
2503 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2504
c30eee59
TJB
25052011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2506
2507 * breakpoint.c (insert_bp_location): Document return value.
2508 (insert_breakpoint_locations): Fix documentation.
2509 (remove_breakpoints): Add documentation.
2510
f116073b
TJB
25112011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2512
2513 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2514 argument. Update callers.
2515
65aa373f
JK
25162011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2517
2518 * stack.c (print_frame_info): Comment typo fix.
2519
a50242fb
SA
25202011-07-29 Sterling Augustine <saugustine@google.com>
2521
2522 * MAINTAINERS (Write After Approval): Add myself to the list.
2523
267f6504
TT
25242011-07-29 Tom Tromey <tromey@redhat.com>
2525
2526 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2527 (library_list_start_segment): Update.
2528 (library_list_start_section): Update.
2529
00bd41d6
PM
25302011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2531
2532 * varobj.c (value_get_print_value): Move hint check later into the
2533 function. Comment function. Free thevalue before reusing it.
2534
18a46dbe
JK
25352011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2536 Pedro Alves <pedro@codesourcery.com>
2537
2538 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2539 value_one.
2540 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2541 Assert the result kind.
2542 * value.h (value_one): Remove parameter lv.
2543
bb7da2bf
JK
25442011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 Fix crash on lval_computed values.
2547 * valops.c (value_zero): Use not_lval for lval_computed.
2548
2d5213f8
TT
25492011-07-27 Tom Tromey <tromey@redhat.com>
2550
2551 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2552 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2553
11081198
JK
25542011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2555
2556 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2557 "ptype" by their typedefs difference.
2558
3c6e0cb3
JK
25592011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2560
2561 * dwarf2expr.c (ctx_no_read_reg): New function.
2562 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2563 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2564 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2565 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2566
523f3620
JK
25672011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2568
2569 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2570 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2571 file.
2572 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2573 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2574 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2575 (ctx_no_get_base_type): Move the functions here.
2576 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2577 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2578 (ctx_no_get_base_type): New declarations.
2579
24d3216f
TT
25802011-07-27 Tom Tromey <tromey@redhat.com>
2581
2582 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2583 entries.
2584 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2585 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2586
5005c8a9
PP
25872011-07-26 Sterling Augustine <saugustine@google.com>
2588
2589 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2590 ULONGEST.
2591 (dump_bfd_file): Likewise.
2592
480a3f21
PW
25932011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2594
2595 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2596 (remote_hw_watchpoint_length_limit): New variable.
2597 (_initialize_remote) add set,show cmds for this new variable.
2598 * gdb.texinfo: document these new commands.
2599 * NEWS: Mention these new commands.
2600
efa80663
PA
26012011-07-26 Pedro Alves <pedro@codesourcery.com>
2602
2603 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2604 true for software watchpoints.
2605
dbdaa232 26062011-07-26 Joel Brobecker <brobecker@adacore.com>
2607
2608 GDB 7.3 released.
2609
cf2c3c16
TT
26102011-07-26 Tom Tromey <tromey@redhat.com>
2611
2612 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2613 * dwarf2read.c (read_indirect_string_at_offset): New function.
2614 (read_indirect_string): Use it.
2615 (dwarf_decode_macro_bytes): New function, taken from
2616 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2617 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2618 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2619 New functions.
2620 (struct dwarf2_per_objfile) <macro>: New field.
2621 (dwarf2_elf_names): Add .debug_macro.
2622 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2623 (dwarf2_locate_sections): Handle new section.
2624 (read_file_scope): Handle DW_AT_GNU_macros.
2625 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2626
1a532630
PP
26272011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2628
2629 * NEWS: Mention dcache configuration.
2630 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2631 (dcache_size, dcache_line_size): New variables.
2632 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2633 (struct dcache_block): Make it expandable.
2634 (struct dcache_struct): New field.
2635 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2636 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2637 (dcache_poke_byte, dcache_print_line): Adjust.
2638 (set_dcache_size, set_dcache_line_size): New functions.
2639 (set_dcache_command, show_dcache_command): New functions.
2640 (_initialize_dcache): Add new commands.
2641
2eff07b3
PP
26422011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2643
2644 * progspace.h (struct program_space): Add solib_add_generation.
2645 * infcmd.c (post_create_inferior): Only call solib_add if not
2646 already done.
2647 * solib.c (solib_add): Increment solib_add_generation.
2648
543305c9
JK
26492011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2650
2651 Fix implicit pointer offsets.
2652 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2653 ptr.OFFSET.
2654
c0a91b2b
TT
26552011-07-25 Tom Tromey <tromey@redhat.com>
2656
2657 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2658 const.
2659 (ada_exception_sal): Make 'ops' const.
2660 (ada_decode_exception_location): Likewise.
2661 (ada_decode_assert_location): Likewise.
2662 (catch_assert_command): Update.
2663 (catch_ada_exception_command): Update.
2664 (create_ada_exception_catchpoint): Make 'ops' const.
2665 * breakpoint.c (set_raw_breakpoint_without_location)
2666 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2667 const.
2668 (create_internal_breakpoint): Update.
2669 (init_raw_breakpoint_without_location): Make 'ops' const.
2670 (init_raw_breakpoint, init_catchpoint)
2671 (create_fork_vfork_event_catchpoint)
2672 (create_syscall_event_catchpoint, init_breakpoint_sal)
2673 (create_breakpoint_sal, create_breakpoints_sal)
2674 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2675 * breakpoint.h (struct breakpoint) <ops>: Now const.
2676 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2677 const.
2678
6cb9b55b
PP
26792011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2680
2681 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2682
d9b3f62e
PA
26832011-07-25 Pedro Alves <pedro@codesourcery.com>
2684
2685 * breakpoint.h (print_recreate_thread): Declare.
2686 (struct breakpoint): Move step_count, pass_count,
2687 number_on_target, static_trace_marker_id,
2688 static_trace_marker_id_idx ...
2689 (struct tracepoint): ... to this new struct.
2690 (get_tracepoint, get_tracepoint_by_number_on_target)
2691 (get_tracepoint_by_number): Change return type to struct
2692 tracepoint pointer.
2693 * breakpoint.c (is_tracepoint_type): New, factored out from
2694 is_tracepoint.
2695 (is_tracepoint): Adjust.
2696 (print_one_breakpoint_location): Cast to struct tracepoint as
2697 necessary, and adjust.
2698 (print_recreate_catch_fork, print_recreate_catch_vfork)
2699 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2700 print_recreate_thread.
2701 (init_breakpoint_sal): New, factored out from
2702 create_breakpoint_sal.
2703 (create_breakpoint_sal): Reimplement.
2704 (create_breakpoint): Allocate a struct tracecepoint if the caller
2705 wanted a tracepoint. Use init_breakpoint_sal and
2706 install_breakpoint.
2707 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2708 (print_recreate_masked_watchpoint)
2709 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2710 (tracepoint_print_one_detail): Adjust.
2711 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2712 Dump the pass count here.
2713 (update_static_tracepoint): Adjust.
2714 (addr_string_to_sals): Adjust.
2715 (create_tracepoint_from_upload): Adjust. Change return type to
2716 struct tracepoint pointer.
2717 (trace_pass_set_count): Change parameter type to struct tracepoint
2718 pointer, and adjust.
2719 (trace_pass_command): Adjust.
2720 (get_tracepoint, get_tracepoint_by_number_on_target)
2721 (get_tracepoint_by_number): Change return type to struct
2722 tracepoint pointer, and adjust.
2723 (print_recreate_thread): New, factored out from save_breakpoints.
2724 (save_breakpoints): Don't print thread and task and passcount
2725 recreation here.
2726 * remote.c (remote_download_tracepoint): Adjust.
2727 * tracepoint.c (trace_actions_command, validate_actionline)
2728 (start_tracing, tfind_1, trace_find_tracepoint_command)
2729 (trace_dump_command): Adjust.
2730 (find_matching_tracepoint): Change return type to struct
2731 tracepoint pointer, and adjust.
2732 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2733 (tfile_trace_find, tfile_fetch_registers): Adjust.
2734 * tracepoint.h (create_tracepoint_from_upload): Change return type
2735 to struct tracepoint pointer.
2736 * ada-lang.c (print_recreate_exception): Call
2737 print_recreate_thread.
2738 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2739
3a5c3e22
PA
27402011-07-25 Pedro Alves <pedro@codesourcery.com>
2741
2742 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2743 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2744 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2745 watchpoint_thread, watchpoint_triggered ...
2746 (struct watchpoint): ... to this new struct.
2747 (is_watchpoint): Declare.
2748 (install_breakpoint): Add new `internal' parameter.
2749 * breakpoint.c (is_watchpoint): Delete declaration.
2750 (set_breakpoint_condition): Handle watchpoints.
2751 (is_watchpoint): Make public.
2752 (watchpoint_in_thread_scope): Change parameter type to struct
2753 watchpoint.
2754 (watchpoint_del_at_next_stop): Change parameter type to struct
2755 watchpoint. Remove assertion. Adjust.
2756 (update_watchpoint): Ditto.
2757 (insert_breakpoints, breakpoint_init_inferior)
2758 (watchpoints_triggered, watchpoint_check)
2759 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2760 (bpstat_stop_status, print_one_breakpoint_location)
2761 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2762 to struct watchpoint as necessary, and adjust.
2763 (install_breakpoint): Add `internal' argument. If true, don't
2764 mention the new breakpoint. Use set_breakpoint_number.
2765 (create_fork_vfork_event_catchpoint)
2766 (create_syscall_event_catchpoint): Adjust.
2767 (dtor_watchpoint): New.
2768 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2769 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2770 (print_it_watchpoint, print_mention_watchpoint)
2771 (print_recreate_watchpoint, insert_masked_watchpoint)
2772 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2773 (print_one_detail_masked_watchpoint)
2774 (print_mention_masked_watchpoint)
2775 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2776 necessary, and adjust.
2777 (watch_command_1): Allocate and initialize a struct watchpoint
2778 instead of a struct breakpoint. Use install_breakpoint.
2779 (catch_exec_command_1): Adjust.
2780 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2781 fields.
2782 (delete_breakpoint, enable_breakpoint_disp)
2783 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2784 as necessary, and adjust.
2785 (initialize_breakpoint_ops): Install dtor_watchpoint as
2786 watchpoints' dtor method.
2787 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2788 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2789 to struct watchpoint as necessary, and adjust.
2790
2060206e
PA
27912011-07-25 Pedro Alves <pedro@codesourcery.com>
2792
2793 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2794 the the base class ops table.
2795 (catch_exception_breakpoint_ops)
2796 (catch_exception_unhandled_breakpoint_ops)
2797 (catch_assert_breakpoint_ops): Don't statically initialize.
2798 (initialize_ada_catchpoint_ops): New.
2799 (_initialize_ada_language): Call it.
2800 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2801 (bkpt_breakpoint_ops): Forward declare.
2802 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2803 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2804 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2805 (masked_watchpoint_breakpoint_ops)
2806 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2807 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2808 base class ops table.
2809 (null_re_set, null_check_status, null_works_in_software_mode)
2810 (null_resources_needed, null_print_one_detail): Delete.
2811 (bkpt_dtor): Rename to ...
2812 (base_breakpoint_dtor): ... this. Make static.
2813 (bkpt_allocate_location): Rename to ...
2814 (base_breakpoint_allocate_location): ... this. Make static.
2815 (base_breakpoint_re_set): New.
2816 (internal_error_pure_virtual_called): New.
2817 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2818 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2819 (base_breakpoint_works_in_software_mode)
2820 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2821 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2822 (base_breakpoint_print_recreate): New functions.
2823 (base_breakpoint_ops): New global.
2824 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2825 (bkpt_breakpoint_hit): Make static.
2826 (bkpt_check_status): Delete.
2827 (bkpt_resources_needed): Make static.
2828 (bkpt_works_in_software_mode): Delete.
2829 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2830 static.
2831 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2832 (momentary_breakpoint_ops): Don't statically initialize.
2833 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2834 Delete.
2835 (tracepoint_insert_location, tracepoint_remove_location)
2836 (tracepoint_check_status, tracepoint_works_in_software_mode)
2837 (tracepoint_print_it): Delete.
2838 (tracepoint_breakpoint_ops): Don't statically initialize.
2839 (initialize_breakpoint_ops): New.
2840 (_initialize_breakpoint): Call it.
2841 * breakpoint.h (null_re_set, null_works_in_software_mode)
2842 (null_resources_needed, null_check_status, null_print_one_detail):
2843 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2844 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2845 (bkpt_check_status, bkpt_resources_needed)
2846 (bkpt_works_in_software_mode, bkpt_print_it)
2847 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2848 Delete declarations.
2849 (initialize_breakpoint_ops): Declare.
2850
001c8c33
PA
28512011-07-25 Pedro Alves <pedro@codesourcery.com>
2852
2853 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2854 (momentary_bkpt_print_it): Simplify.
2855
06edf0c0
PA
28562011-07-25 Pedro Alves <pedro@codesourcery.com>
2857
2858 Split internal, momentary and user breakpoints breakpoint_ops
2859 tables.
2860
2861 * breakpoint.c (internal_breakpoint_ops)
2862 (momentary_breakpoint_ops): Forward declare.
2863 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2864 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2865 (create_overlay_event_breakpoint)
2866 (create_std_terminate_master_breakpoint)
2867 (create_exception_master_breakpoint): Create breakpoints with
2868 internal_breakpoint_ops vtable.
2869 (set_longjmp_breakpoint): Create momentary breakpoints with
2870 momentary_breakpoint_ops vtable, using
2871 momentary_breakpoint_from_master.
2872 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2873 (create_solib_event_breakpoint): Create breakpoints with
2874 internal_breakpoint_ops vtable.
2875 (set_momentary_breakpoint): Create breakpoints with
2876 momentary_breakpoint_ops vtable.
2877 (momentary_breakpoint_from_master): New, factored out from
2878 clone_momentary_breakpoint.
2879 (clone_momentary_breakpoint): Adjust.
2880 (watch_command_1): Create scope breakpoints with
2881 momentary_breakpoint_ops vtable.
2882 (bkpt_re_set): Remove handling of internal and momentary
2883 breakpoints.
2884 (bkpt_print_mention, bkpt_print_recreate): New.
2885 (bkpt_breakpoint_ops): Adjust.
2886 (internal_bkpt_re_set, internal_bkpt_check_status)
2887 (internal_bkpt_print_it, internal_bkpt_print_mention)
2888 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2889 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2890 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2891 (momentary_bkpt_print_recreate): New.
2892 (momentary_breakpoint_ops): New.
2893
348d480f
PA
28942011-07-25 Pedro Alves <pedro@codesourcery.com>
2895
2896 Implement most breakpoint_ops methods for all breakpoint types,
2897 and move the default handlings to the proper callbacks.
2898
2899 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2900 works_in_software_mode method.
2901 (insert_bp_location): Go through breakpoint_ops->insert_location
2902 for software and hardware watchpoints.
2903 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2904 breakpoint_ops.
2905 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2906 for software and hardware watchpoints.
2907 (print_it_typical): Delete.
2908 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2909 method.
2910 (watchpoint_check): Adjust comment.
2911 (bpstat_check_location): Simply always call the breakpoint's
2912 breakpoint_hit method.
2913 (bpstat_stop_status): Always call the breakpoint's check_status
2914 method. Remove special cases for watchpoints and internal event
2915 breakpoints from here (moved to the check_status implementations).
2916 (print_one_breakpoint_location): Assume b->ops is never NULL.
2917 Remove static tracepoint marker id printing from here (moved to
2918 the print_one_detail callback implementation of tracepoints).
2919 (init_bp_location): Assert OPS is never NULL.
2920 (allocate_bp_location): Always call the breakpoint's
2921 allocate_location method, and remove the default code from here.
2922 (free_bp_location): Always call the location's dtor method, and
2923 remove the default code from here.
2924 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2925 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2926 parameter. Pass it down.
2927 (set_raw_breakpoint): Ditto.
2928 (print_it_catch_fork): Adjust to take a bpstat as argument.
2929 (catch_fork_breakpoint_ops): Install methods.
2930 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2931 (catch_vfork_breakpoint_ops): Install methods.
2932 (dtor_catch_syscall): Call the base dtor.
2933 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2934 (catch_syscall_breakpoint_ops): Install methods.
2935 (dtor_catch_exec): Call the base dtor.
2936 (print_it_catch_exec): Adjust to take a bpstat as argument.
2937 (catch_exec_breakpoint_ops): Install methods.
2938 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2939 the breakpoint's resources_needed method, and remove the default
2940 code from here.
2941 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2942 breakpoint_ops.
2943 (clone_momentary_breakpoint): Clone the original's ops.
2944 (mention): Always call the breakpoint's print_mention method, and
2945 remove the default code from here.
2946 (create_breakpoint_sal): Adjust to pass the ops to
2947 set_raw_breakpoint rather than setting it manually.
2948 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2949 ops to set_raw_breakpoint_without_location rather than setting it
2950 manually.
2951 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2952 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2953 (ranged_breakpoint_ops): Install methods.
2954 (break_range_command): Adjust to pass the ops to
2955 set_raw_breakpoint rather than setting it manually.
2956 (re_set_watchpoint, breakpoint_hit_watchpoint)
2957 (check_status_watchpoint, resources_needed_watchpoint)
2958 (works_in_software_mode_watchpoint, print_it_watchpoint)
2959 (print_mention_watchpoint, print_recreate_watchpoint): New
2960 functions.
2961 (watchpoint_breakpoint_ops): Install new methods.
2962 (print_it_masked_watchpoint): New function.
2963 (masked_watchpoint_breakpoint_ops): Install new methods.
2964 (watch_command_1): Adjust to pass the right breakpoint_ops to
2965 set_raw_breakpoint_without_location rather than setting it
2966 manually later. Record the current pspace.
2967 (print_it_exception_catchpoint): Adjust to take a bpstat as
2968 argument.
2969 (gnu_v3_exception_catchpoint_ops): Install new methods.
2970 (say_where): New function.
2971 (null_re_set, null_check_status, null_works_in_software_mode)
2972 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2973 New functions.
2974 (bp_location_ops): New global.
2975 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2976 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2977 (bkpt_check_status, bkpt_resources_needed)
2978 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2979 (bkpt_print_recreate): New functions.
2980 (bkpt_breakpoint_ops): New global.
2981 (tracepoint_re_set, tracepoint_insert_location)
2982 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2983 (tracepoint_check_status, tracepoint_works_in_software_mode)
2984 (tracepoint_print_it, tracepoint_print_one_detail)
2985 (tracepoint_print_mention, tracepoint_print_recreate): New
2986 functions.
2987 (tracepoint_breakpoint_ops): New global.
2988 (delete_breakpoint): Always call the breakpoint's dtor method, and
2989 remove the default handling from here.
2990 (breakpoint_re_set_default): Make static.
2991 (breakpoint_re_set_one): Always call the breakpoints re_set
2992 method, and remove the default handling from here.
2993 (trace_command, ftrace_command, strace_command)
2994 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2995 to create_breakpoint.
2996 (save_breakpoints): Always call the breakpoint's print_recreate
2997 method, and remove the default handling from here.
2998
2999 * ada-lang.c (dtor_exception): Call the base dtor.
3000 (re_set_exception): Call the base method.
3001 (print_it_exception, print_it_catch_exception): Adjust to take a
3002 bpstat as argument.
3003 (catch_exception_breakpoint_ops): Install methods.
3004 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3005 argument.
3006 (catch_exception_unhandled_breakpoint_ops): Install methods.
3007 (print_it_catch_assert): Adjust to take a bpstat as argument.
3008 (catch_assert_breakpoint_ops): Install methods.
3009
3010 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3011 to take a bpstat as argument.
3012 (enum print_stop_action): Add describing comments to each enum
3013 value.
3014 (breakpoint_re_set_default): Delete declaration.
3015 (null_re_set, null_works_in_software_mode, null_resources_needed)
3016 (null_check_status, null_print_one_detail): Declare.
3017 (bkpt_breakpoint_ops): Declare.
3018 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3019 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3020 (bkpt_check_status, bkpt_resources_needed)
3021 (bkpt_works_in_software_mode, bkpt_print_it)
3022 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3023 Declare.
3024
3025 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3026 bkpt_breakpoint_ops.
3027 * python/py-breakpoint.c (bppy_init): Ditto.
3028
be8f8133
PW
30292011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3030
3031 * MAINTAINERS (Write After Approval): Add myself to the list.
3032
3807f613
PP
30332011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3034
3035 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3036
1ced966e
PA
30372011-07-22 Pedro Alves <pedro@codesourcery.com>
3038
3039 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3040 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3041 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3042 adjust.
3043 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3044 (struct i386_debug_reg_state): New.
3045 (i386_init_dregs): New.
3046 (dr_mirror): New.
3047 (i386_cleanup_dregs): Use i386_init_dregs.
3048 (i386_show_dr): Add state parameter and adjust.
3049 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3050 the inferior here.
3051 (i386_remove_aligned_watchpoint): Likewise.
3052 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3053 (i386_update_inferior_debug_regs): New.
3054 (i386_insert_watchpoint): Work on a local mirror of the debug
3055 registers, and only update the inferior on success.
3056 (i386_remove_watchpoint): Ditto.
3057 (i386_region_ok_for_watchpoint): Adjust.
3058 (i386_stopped_data_address): Adjust.
3059 (i386_insert_hw_breakpoint): Adjust.
3060 (i386_remove_hw_breakpoint): Adjust.
3061
3543a589
TT
30622011-07-22 Tom Tromey <tromey@redhat.com>
3063
3064 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3065 from amd64_pseudo_register_read. Change arguments. Call
3066 mark_value_bytes_unavailable when needed.
3067 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3068 set_gdbarch_pseudo_register_read.
3069 * sentinel-frame.c (sentinel_frame_prev_register): Use
3070 regcache_cooked_read_value.
3071 * regcache.h (regcache_cooked_read_value): Declare.
3072 * regcache.c (regcache_cooked_read_value): New function.
3073 (regcache_cooked_read): Call
3074 gdbarch_pseudo_register_read_value if available.
3075 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3076 (i386_pseudo_register_read): Remove.
3077 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3078 i386_pseudo_register_read. Change arguments. Call
3079 mark_value_bytes_unavailable when needed.
3080 (i386_pseudo_register_read_value): New function.
3081 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3082 not set_gdbarch_pseudo_register_read.
3083 * gdbarch.sh (pseudo_register_read_value): New method.
3084 * gdbarch.c, gdbarch.h: Rebuild.
3085 * findvar.c (value_from_register): Call get_frame_register_value.
3086
95298e72
PM
30872011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3088
3089 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3090 get_prefix.
3091 (display_gdb_prompt): Likewise.
3092 (change_annotation_level): Likewise.
3093 (push_prompt): Likewise.
3094 (pop_prompt): Likewise.
3095 (handle_stop_sig): Use get_prompt with a level.
3096 * top.c (command_loop): Use get_prompt with a level.
3097 (set_async_annotation_level): Use set_prompt with a level.
3098 (get_prefix): New function.
3099 (set_prefix): Ditto.
3100 (set_suffix): Ditto.
3101 (get_suffix): Ditto.
3102 (get_prompt): Accept a level argument.
3103 (set_prompt): Accept a level argument. Free old prompts. Set
3104 new_async_prompt if level is 0.
3105 (init_main): Use set_prompt with a level. Do not set
3106 new_async_prompt.
3107 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3108 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3109 Modify set_prompt, get_prompt to account for levels.
3110 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3111 level.
3112 * python/python.c (before_prompt_hook): Use set_prompt.
3113
d26e3629
KY
31142011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3115
3116 * defs.h: Add guard against inclusion in gdbserver.
3117 (struct ptid, ptid_t): Move to common/ptid.h.
3118 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3119 xsnprintf, internal_error): Move to common/common-utils.h.
3120 (nomem): Delete.
3121 * gdb_assert.h: Move into common/ sub-directory.
3122 * gdb_locale.h: Ditto.
3123 * gdb_dirent.h: Ditto.
3124 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3125 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3126 Move into common/ptid.h.
3127 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3128 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3129 Change nomem to malloc_failure.
3130 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3131 * utils.c (nomem): Rename to malloc_failure.
3132 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3133 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3134 (gdb_buildargv): Change nomem to malloc_failure.
3135 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3136 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3137 ptid_is_pid): Move into common/ptid.c.
3138 (initialize_infrun): Delete initialization of null_ptid and
3139 minus_one_ptid.
3140 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3141 linux_common_xfer_osdata.
3142 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3143 common/ptid.c and common/buffer.c.
3144 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3145 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3146 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3147 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3148 rules.
3149 * common/gdb_assert.h: New.
3150 * common/gdb_dirent.h: New.
3151 * common/gdb_locale.h: New.
3152 * common/buffer.c: New.
3153 * common/buffer.h: New.
3154 * common/ptid.c: New.
3155 * common/ptid.h: New.
3156 * common/xml-utils.c: New.
3157 * common/xml-utils.h: New.
3158 * common/common-utils.c: New.
3159 * common/common-utils.h: New.
3160 * common/linux-osdata.c: New.
3161 * common/linux-osdata.h: New.
3162 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3163 * config/arm/linux.mh (NATDEPFILES): Ditto.
3164 * config/i386/linux.mh (NATDEPFILES): Ditto.
3165 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3166 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3167 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3168 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3169 * config/mips/linux.mh (NATDEPFILES): Ditto.
3170 * config/pa/linux.mh (NATDEPFILES): Ditto.
3171 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3172 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3173 * config/s390/s390.mh (NATDEPFILES): Ditto.
3174 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3175 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3176 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3177
edc84990 31782011-07-21 Matt Rice <ratmice@gmail.com>
3179
3180 * NEWS: Add info macros and info definitions commands.
3181
3a7bf607
PM
31822011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3183
3184 * NEWS: Document Python prompt substitution hook.
3185
9b158ba0 31862011-07-18 Matt Rice <ratmice@gmail.com>
3187
3188 PR macros/12999
3189 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3190 * macrotab.c (foreach_macro): Ditto.
3191 (foreach_macro_in_scope): Ditto.
3192 * macrocmd.c (print_macro_callback): New function.
3193 (info_macro_command): Move some code to print_macro_definition.
3194 (print_macro_definition): New function.
3195 (print_one_macro): Add new arguments to callback.
3196 (info_definitions_command): New function.
3197 (info_macros_command): Ditto.
3198 (_initialize_macrocmd): Add info macros and info definitions commands.
3199 * symtab.c (add_macro_name): Add new arguments to callback.
3200
d17b6f81
PM
32012011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3202 Tom Tromey <tromey@redhat.com>
3203
3204 * top.c (set_prompt): Rewrite to free previous prompt, free
3205 asynch_new_prompt and set both on new prompts.
3206 * event-top.c (display_gdb_prompt): Add prompt substitution
3207 logic.
3208 * python/python.c (before_prompt_hook): New function.
3209
1364323a 32102011-07-20 Matt Rice <ratmice@gmail.com>
3211
3212 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3213 arguments to store_unsigned_integer.
3214
8b70b953
TT
32152011-07-20 Tom Tromey <tromey@redhat.com>
3216
6c83ed52
TT
3217 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3218 in some declaration-only cases.
3219
32202011-07-18 Tom Tromey <tromey@redhat.com>
3221
8b70b953
TT
3222 PR symtab/12984:
3223 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3224 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3225 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3226 <debug_type_section>: New field.
3227 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3228 (load_cu): Use appropriate section.
3229 (create_signatured_type_table_from_index): Add 'section'
3230 argument.
3231 (dwarf2_read_index): Only allow a single .debug_types section.
3232 (dw2_get_file_names): Use appropriate section.
3233 (read_type_comp_unit_head): Add 'section' argument.
3234 (create_debug_types_hash_table): Loop over all .debug_types
3235 sections.
3236 (init_cu_die_reader): Use appropriate section.
3237 (process_psymtab_comp_unit, load_partial_comp_unit)
3238 (load_full_comp_unit, read_die_and_children, find_partial_die)
3239 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3240 (lookup_signatured_type_at_offset): Add 'section' argument.
3241 (read_signatured_type_at_offset): Add 'sect' argument.
3242 (read_signatured_type): Use appropriate section.
3243 (set_die_type, get_die_type_at_offset): Update.
3244 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3245 VEC.
3246 (write_psymtabs_to_index): Don't allow index with more than one
3247 .debug_types section.
3248
918dd910
JK
32492011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3250
3251 Fix crash if referenced CU is aged out.
3252 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3253 xfree of block.data.
3254 (indirect_pieced_value): New variable back_to, use to for xfree of
3255 baton.data.
3256 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3257 block.data.
3258 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3259 (load_cu): New function from ...
3260 (dw2_do_instantiate_symtab): ... the code here ...
3261 (process_full_comp_unit): ... and here.
3262 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3263 retval.data.
3264
0e37a63c
JK
32652011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3266
3267 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3268 type.
3269
7e324e48
GB
32702011-07-19 Gary Benson <gbenson@redhat.com>
3271
3272 * infrun.c (struct execution_control_state): New member
3273 stop_func_filled_in.
3274 (clear_stop_func, fill_in_stop_func): New functions.
3275 (handle_inferior_event): Call clear_stop_func rather than
3276 manipulating the execution control state directly.
3277 Call fill_in_stop_func lazily as required rather than
3278 directly calling find_pc_partial_function in all cases.
3279
d48323d8
TT
32802011-07-18 Tom Tromey <tromey@redhat.com>
3281
3282 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3283 checking for variable-sized array.
3284
40591b7d
JCD
32852011-07-18 Jean-Charles Delay <delay@adacore.com>
3286
3287 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3288 of supported languages.
3289 * varobj.c: Add top definitions and basic implementation of the
3290 following callbacks: ada_number_of_children, ada_name_of_variable,
3291 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3292 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3293 (languages): Register Ada-specific callbacks.
3294 (variable_language): Add the Ada case in the language setter switch.
3295
2e424e08
JK
32962011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3297
3298 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3299
9e8b7a03
JK
33002011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3301
3302 Code cleanup.
3303 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3304 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3305 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3306 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3307 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3308 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3309 (struct dwarf_expr_context_funcs): New, move here methods from ...
3310 (struct dwarf_expr_context): ... here. New fields funcs.
3311 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3312 (dwarf_expr_ctx_funcs): New.
3313 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3314 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3315 (needs_frame_ctx_funcs): New.
3316 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3317
2b1260ab
FM
33182011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3319
3320 * MAINTAINERS (Write After Approval): Add myself to the list.
3321
8bd90839
FM
33222011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3323
3324 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3325 that CIE pointer of an FDE really points to a CIE .
3326
953b98d1
HZ
33272011-07-15 Hui Zhu <teawater@gmail.com>
3328
3329 * remote.c (remote_get_trace_status): Add comments.
3330
c8f2448a
JK
33312011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3332
3333 Code cleanup - constify struct lval_funcs.
3334 * dwarf2loc.c (pieced_value_funcs): Make it const.
3335 * infrun.c (siginfo_value_funcs): Likewise.
3336 * opencl-lang.c (opencl_value_funcs): Likewise.
3337 * valops.c (value_assign, value_ind): Make the funcs variable const.
3338 * value.c (struct value): Make location.computed.funcs target const.
3339 Rearrange the comments.
3340 (allocate_computed_value): Make the funcs parameter target const.
3341 (value_computed_funcs): Return the funcs target const.
3342 (value_free, value_copy, set_value_component_location): Make the funcs
3343 variable const.
3344 * value.h (allocate_computed_value): Make the funcs parameter target
3345 const.
3346 (value_computed_funcs): Return the funcs target const.
3347 * windows-tdep.c (tlb_value_funcs): Make it const.
3348
f652de6f
HZ
33492011-07-14 Hui Zhu <teawater@gmail.com>
3350
3351 * remote.c (remote_get_trace_status): Initialize p.
3352
67f41397
JK
33532011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 Work around kgdb.
3356 * remote.c (remote_get_trace_status): New variable ex. Put
3357 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3358
d1b66e6d
TT
33592011-07-13 Tom Tromey <tromey@redhat.com>
3360
3361 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3362 value_from_contents for final conversion.
3363
1632a688
JK
33642011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3365
3366 Code cleanup.
3367 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3368 Indent prototypes so they do not get into tags.
3369
a7035dbb
JK
33702011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3371
3372 Code cleanup making also optimized out values lazy.
3373 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3374 allocate_optimized_out_value. Twice.
3375 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3376 * findvar.c (read_var_value): Likewise.
3377 * value.c (allocate_optimized_out_value): New function.
3378 * value.h (allocate_optimized_out_value): New declaration.
3379
d07ed419
JK
33802011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3381
3382 Fix occasional crash of CTRL-C during DWARF read in.
3383 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3384
86d31898
TT
33852011-07-11 Tom Tromey <tromey@redhat.com>
3386
3387 * regcache.c (struct regcache_descr): Fix typo.
3388 * i387-tdep.c (i387_supply_xsave): Fix typo.
3389
2ab95328
TT
33902011-07-11 Tom Tromey <tromey@redhat.com>
3391
3392 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3393 (read_file_scope, read_type_unit_scope): Use it.
3394
04ad99e6
JK
33952011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3396
3397 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3398 `int'.
3399
713389e0
PM
34002011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3401
3402 PR python/12438
3403 * python/python.c: Set gdbpy_should_print_stack default to off.
3404 (set_python): Deprecate maint set python print-stack to
3405 class_deprecate.
3406 (_initialize_python): Deprecate maint set/show python print-stack.
3407 Add new prefix command, python. Add new setting, print-backtrace.
3408 * NEWS: Document set python print-stack. Document default change.
3409
754eadd1
PM
34102011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3411
3412 * python/py-inferior.c (infpy_dealloc): New function.
3413 (inferior_to_inferior_object): Return a new object, or a
3414 new reference to the existing object.
3415 (find_thread_object): Cleanup references to inferior.
3416 (delete_thread_object): Ditto.
3417 * python/py-infthread.c (create_thread_object): Do not increment
3418 inferior reference count.
3419
5e44ecb3
TT
34202011-07-08 Tom Tromey <tromey@redhat.com>
3421
3422 * dwarf2loc.c (locexpr_regname): New function.
3423 (locexpr_describe_location_piece): Use it.
3424 (disassemble_dwarf_expression): Add per_cu argument. Use
3425 locexpr_regname.
3426 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3427 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3428 New cases.
3429 (locexpr_describe_location_1): Add per_cu argument.
3430 (locexpr_describe_location): Update.
3431 (loclist_describe_location): Update.
3432
e0e9434c
TT
34332011-07-08 Tom Tromey <tromey@redhat.com>
3434
3435 * dwarf2expr.c (execute_stack_op): Add QUIT.
3436
26afc0d7
HZ
34372011-07-07 Hui Zhu <teawater@gmail.com>
3438
3439 Revert:
3440 2011-07-06 Hui Zhu <teawater@gmail.com>
3441 * remote.c (remote_start_remote): Add TRY_CATCH for
3442 remote_get_trace_status.
3443 * tracepoint.c (disconnect_tracing): Ditto.
3444
a40a111f
AB
34452011-07-07 Andrew Burgess <aburgess@broadcom.com>
3446
3447 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3448 variables as signed, not unsigned.
3449
e2bd3b15
JB
34502011-07-06 Joel Brobecker <brobecker@adacore.com>
3451
3452 * jit.c (jit_inferior_init): Reformat forward declaration.
3453
e3d961fe 34542011-07-06 Matt Rice <ratmice@gmail.com>
3455
3456 * MAINTAINERS (Write After Approval): Add myself to the list.
3457
0f3428f0
HZ
34582011-07-06 Hui Zhu <teawater@gmail.com>
3459
3460 * remote.c (remote_start_remote): Add TRY_CATCH for
3461 remote_get_trace_status.
3462 * tracepoint.c (disconnect_tracing): Ditto.
3463
fc9f3a69
TT
34642011-07-05 Tom Tromey <tromey@redhat.com>
3465
3466 * symtab.c (operator_chars): Now static.
3467 * linespec.c (operator_chars): Don't declare.
3468
26e519b9
TJB
34692011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3470
3471 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3472
eb2a6f42
TT
34732011-07-05 Tom Tromey <tromey@redhat.com>
3474
3475 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3476 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3477 (TYPE_CPLUS_REALLY_JAVA): New macro.
3478 * dwarf2read.c (process_structure_scope): Set
3479 TYPE_CPLUS_REALLY_JAVA.
3480
21083d0f 34812011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3482
3483 * ada-lang.c: Fix typos.
3484 * amd64-tdep.c: Likewise.
3485 * breakpoint.c: Likewise.
3486 * cli/cli-decode.c: Likewise.
3487 * findcmd.c: Likewise.
3488 * inline-frame.c: Likewise.
3489 * mi/mi-main.c: Likewise.
3490 * minsyms.c: Likewise.
3491 * monitor.c: Likewise.
3492 * monitor.h: Likewise.
3493 * prologue-value.c: Likewise.
3494 * reverse.c: Likewise.
3495 * s390-tdep.c: Likewise.
3496
3b2a0cf2
JB
34972011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3498
3499 * jit.c (jit_inferior_init): Forward declare.
3500 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3501
efae1d92
JB
35022011-07-04 Joel Brobecker <brobecker@adacore.com>
3503
3504 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3505
6040a59d
JB
35062011-07-04 Tristan Gingold <gingold@adacore.com>
3507
3508 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3509 (tcb_fieldno): Add activation_link field.
3510 (get_known_tasks_addr): Moved and rewritten.
3511 (get_tcb_types_info): Set activation_link field.
3512 (read_known_tasks_array): Add parameter. Rewritten.
3513 (read_known_tasks_list): New function.
3514 (read_known_tasks): New function.
3515 (ada_build_task_list): Call read_known_tasks instead of
3516 read_known_tasks_array.
3517 * ravenscar-thread.c: Add first_task_name constant.
3518 (has_ravenscar_runtime): Check for task list too.
3519
cb741e45
JB
35202011-07-04 Tristan Gingold <gingold@adacore.com>
3521
3522 * ada-tasks.c: Renames fieldno to actb_fieldno.
3523 (ada_get_task_number): Indentation.
3524 (get_tcb_types_info): Remove all parameters. Write directly
3525 the globals.
3526 (ptid_from_atcb_common): Adjust.
3527 (read_atcb): Adjust.
3528
7475b06c
TJB
35292011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3530
3531 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3532
15230f37
TJB
35332011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3534
3535 * ui-out.c (ui_out_field_core_addr): Mention that the function
3536 description is in the header file.
3537 * ui-out.h (ui_out_field_core_addr): Document function.
3538
65743aba
TJB
35392011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3540
3541 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3542 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3543
c37a5aab
TJB
35442011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3545
3546 * symtab.c (expand_line_sal): Remove empty line.
3547
59adf69e
TS
35482011-07-04 Thomas Schwinge <thomas@schwinge.name>
3549
3550 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3551 same way as ELFOSABI_NONE.
3552 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3553
e5dd4106
TJB
35542011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3555
3556 * breakpoint.c: Fix typos in comments.
3557 * linespec.c: Likewise.
3558 * symtab.c: Likewise.
3559
d40102a1
JB
35602011-07-04 Joel Brobecker <brobecker@adacore.com>
3561
3562 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3563 section in separate object files.
3564
2f741504
JK
35652011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3566
3567 Fix false GCC warning.
3568 * linespec.c (decode_line_1): Initialize values.
3569
418c7cf7
JK
35702011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3571
3572 * linespec.c (find_method): Accept the function type automatically only
3573 if it was specified with parameter types.
3574
3d50dd94
JK
35752011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3576
3577 Stop on first linespec terminator instead of eating what we can.
3578 * linespec.c (is_linespec_boundary): New function.
3579 (name_end): Remove function.
3580 (keep_name_info): New parameter on_boundary, replace the body.
3581 (decode_line_1): Provide the parameter to keep_name_info.
3582 (decode_compound): Likewise. Drop the trailing java return type
3583 handling. Twice.
3584
dcf9f4ab
JK
35852011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3586
3587 Fall back linespec to minimal symbols.
3588 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3589 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3590 (find_method, symbol_found): Change error to cplusplus_error.
3591
3f542ed1
JK
35922011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3593
bc68c4e5 3594 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3595
900e11f9
JK
35962011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 Tom Tromey <tromey@redhat.com>
3598
3599 * dwarf2read.c (check_physname): New variable.
3600 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3601 (show_check_physname): New function.
3602 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3603
2301925d
JB
36042011-07-01 Joel Brobecker <brobecker@adacore.com>
3605
3606 * machoread.c (macho_symfile_read): Delete OBE comment.
3607
38947cca
JB
36082011-07-01 Joel Brobecker <brobecker@adacore.com>
3609
3610 * machoread.c (struct macho_oso_data): Delete.
3611 (current_oso): Delete.
3612 (macho_relocate_common_syms): New function, mostly extracted
3613 out of
3614 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3615 Remove code that sets and unset current_oso.
3616 (macho_symfile_relocate): Delete handling of common symbols,
3617 now moved to macho_relocate_common_syms.
3618
a7aa0d73
JB
36192011-07-01 Joel Brobecker <brobecker@adacore.com>
3620
3621 * darwin-nat.c (darwin_ptrace): Add documentation.
3622 Set errno to zero before calling ptrace. If ptrace returns
3623 -1 and errno is zero, then change then return zero.
3624 (darwin_kill_inferior): Issue a warning instead of triggering
3625 a failed assertion when the PT_KILL ptrace operations returned
3626 nonzero.
3627
5e9bc145
JB
36282011-07-01 Joel Brobecker <brobecker@adacore.com>
3629
3630 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3631 only when inf->private->no_ptrace.
3632
00eb2c4a
JB
36332011-07-01 Joel Brobecker <brobecker@adacore.com>
3634
3635 * ada-lang.c (print_it_exception): Print temporary catchpoints
3636 as "Temporary catchpoint".
3637 (print_mention_exception): Likewise.
3638
127c81bc
TT
36392011-07-01 Tom Tromey <tromey@redhat.com>
3640
3641 * jv-lang.c (java_language_defn): Use java_printchar,
3642 java_printstr.
3643 (java_get_encoding): New function.
3644 (java_emit_char): Use generic_emit_char.
3645 (java_printchar): New function.
3646 (java_printstr): Likewise.
3647
25552254
JB
36482011-07-01 Joel Brobecker <brobecker@adacore.com>
3649
3650 * ada-typeprint.c (print_record_type): If unable to decode
3651 the name of the parent type, use the encoded name.
3652
d2d43431
JB
36532011-07-01 Jean-Charles Delay <delay@adacore.com>
3654
3655 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3656 pointer to constrained packed array type output.
3657 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3658 packed array output.
3659
54ae186f
JB
36602011-07-01 Jean-Charles Delay <delay@adacore.com>
3661
3662 * ada-typeprint.c (print_array_type): removed if condition on show
3663 being negative for bounds printing.
3664
8f17729f
JB
36652011-07-01 Joel Brobecker <brobecker@adacore.com>
3666
3667 * ada-lang.c (ada_identical_enum_types_p): New function.
3668 (symbols_are_identical_enums): New function.
3669 (remove_extra_symbols): Do nothing if NSYMS < 2.
3670 Use symbols_are_identical_enums.
3671
f5aa6869
JB
36722011-07-01 Joel Brobecker <brobecker@adacore.com>
3673
3674 * ada-valprint.c (ada_value_print): Handle typedefs.
3675
8f465ea7
JB
36762011-07-01 Joel Brobecker <brobecker@adacore.com>
3677
3678 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3679
828292f2
JB
36802011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3681
3682 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3683 (decode_constrained_packed_array): Likewise.
3684 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3685
18920c42
JB
36862011-07-01 Joel Brobecker <brobecker@adacore.com>
3687
3688 * ada-exp.y (convert_char_literal): Handle typedef types.
3689
c90092fe
JB
36902011-07-01 Joel Brobecker <brobecker@adacore.com>
3691
3692 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3693
f748fb40
TT
36942011-06-30 Tom Tromey <tromey@redhat.com>
3695
3696 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3697 * valops.c (find_overload_match): Call do_cleanups on early exit
3698 path.
3699 * solib.c (solib_find): Call do_cleanups on early exit path.
3700
3bb47e8b
TT
37012011-06-30 Tom Tromey <tromey@redhat.com>
3702
3703 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3704 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3705 return paths. Defer final do_cleanups until last return.
3706 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3707 early return.
3708
4727bad3
TT
37092011-06-30 Tom Tromey <tromey@redhat.com>
3710
3711 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3712
bb361dbf
AB
37132011-06-30 Andrew Burgess <aburgess@broadcom.com>
3714
3715 * MAINTAINERS (Write After Approval): Add myself to the list.
3716
e0d00bc7
JK
37172011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3718
3719 Disable epilogue unwinders on recent GCCs.
3720 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3721 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3722 * dwarf2read.c (process_full_comp_unit): Initialize
3723 EPILOGUE_UNWIND_VALID.
3724 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3725 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3726 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3727
4632c0d0
JK
37282011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 Code cleanup - reformatting.
3731 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3732 (producer_is_gcc_ge_4): ... here, change the return value.
3733 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3734 interpretation.
3735
32019081
JK
37362011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3737
3738 Fix non-only rename list for Fortran modules import.
3739 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3740 cp_add_using_directive caller.
3741 (cp_add_using_directive): New parameter excludes, describe it. New
3742 variables ix and param. Compare if also excludes match. Allocate NEW
3743 with variable size, initialize EXCLUDES there.
3744 (cp_lookup_symbol_imports): New variable excludep, test
3745 current->EXCLUDES with it.
3746 * cp-support.h: Include vec.h.
3747 (struct using_direct): New field excludes, describe it.
3748 (DEF_VEC_P (const_char_ptr)): New.
3749 (cp_add_using_directive): New parameter excludes.
3750 * defs.h (const_char_ptr): New typedef.
3751 * dwarf2read.c (read_import_statement): New variables child_die,
3752 excludes and cleanups, read in excludes.
3753 (read_namespace): Adjust the cp_add_using_directive caller.
3754
70c622a3
JK
37552011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3756
3757 Code cleanup.
3758 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3759 negative comparisons.
3760
39c4d40a
TT
37612011-06-29 André Pönitz <andre.poenitz@nokia.com>
3762
3763 * mi/mi-main.c (mi_cmd_list_features): Emit
3764 breakpoint-notifications.
3765
3b2b8fea
TT
37662011-06-29 Tom Tromey <tromey@redhat.com>
3767
3768 PR fortran/10036:
3769 * valprint.h (generic_emit_char, generic_printstr): Declare.
3770 * valprint.c (wchar_printable, append_string_as_wide)
3771 (print_wchar): Move from c-lang.c.
3772 (generic_emit_char): New function; mostly taken from c_emit_char.
3773 (generic_printstr): New function; mostly taken from c_printstr.
3774 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3775 represented as arrays.
3776 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3777 type.
3778 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3779 identically to TYPE_CODE_INT.
3780 * f-lang.c (f_get_encoding): New function.
3781 (f_emit_char): Use generic_emit_char.
3782 (f_printchar): Replace comment.
3783 (f_printstr): Use generic_printstr.
3784 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3785 "character" types specially.
3786 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3787 for Fortran.
3788 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3789 Move to valprint.c
3790 (c_emit_char): Call generic_emit_char.
3791 (c_printstr): Call generic_printstr.
3792
168e6d44
GB
37932011-06-29 Gary Benson <gbenson@redhat.com>
3794
3795 * breakpoint.c (bpstat_what): Removed duplicated case.
3796
1c033f8c
TT
37972011-06-28 Tom Tromey <tromey@redhat.com>
3798
3799 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3800
5fe41fbf
TT
38012011-06-27 Tom Tromey <tromey@redhat.com>
3802
3803 * valops.c (find_overload_match): Call do_cleanups before early
3804 return.
3805 * top.c (execute_command): Call do_cleanups before early return.
3806 (command_loop): Likewise.
3807 * stack.c (backtrace_command): Make a null cleanup early. Don't
3808 conditionally call do_cleanups.
3809 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3810 TRY_CATCH.
3811 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3812 so cleanups are always run.
3813 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3814 * findcmd.c (parse_find_args): Call do_cleanups on early return
3815 path.
3816 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3817 Don't conditionally call do_cleanups.
3818 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3819 later.
3820
e26bd57d
EB
38212011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3822
3823 * MAINTAINERS (Write After Approval): Use default email address.
3824
6c3097fc
JB
38252011-06-27 Joel Brobecker <brobecker@adacore.com>
3826
3827 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3828
369c397b
JB
38292011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3830
3831 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3832 saved_regs_mask and copied_regs_mask fields.
3833 (sparc_record_save_insn): New prototype.
3834 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3835 (sparc_record_save_insn): New function.
3836 (sparc_analyze_prologue): Add head comment. Recognize store insns
3837 of call-saved registers. Use OFFSET consistently. Recognize flat
3838 frames and cache their settings.
3839 (sparc32_skip_prologue): Handle flat frames.
3840 (sparc_frame_cache): Add frame_offset to the base address.
3841 (sparc32_frame_cache): Adjust to new frame description.
3842 (sparc32_frame_prev_register): Likewise.
3843 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3844 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3845 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3846 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3847 frame by calling sparc_record_save_insn.
3848 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3849 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3850 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3851
b315ab21
TG
38522011-06-27 Tristan Gingold <gingold@adacore.com>
3853
3854 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3855 field by map_addr and map_len.
3856 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3857 (munmap_section_buffer): Likewise.
3858
ddd49eee
TT
38592011-06-24 Tom Tromey <tromey@redhat.com>
3860
3861 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3862 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3863 * python/python.c (gdbpy_parameter): Make 'arg' const.
3864 (execute_gdb_command): Likewise.
3865 (gdbpy_decode_line): Likewise. Copy it.
3866 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3867 (gdbpy_write): Make 'arg' const.
3868 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3869 const.
3870 (gdbpy_lookup_type): Likewise.
3871 * python/py-prettyprint.c (print_children): Make 'name' const.
3872 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3873 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3874 Py_ssize_t.
3875 * python/py-function.c (fnpy_init): Make 'name' const.
3876 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3877 (gdbpy_string_to_argv): Make 'input' const.
3878 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3879 it.
3880 * gdbtypes.h (lookup_typename): Update.
3881 * gdbtypes.c (lookup_typename): Make 'name' const.
3882 (lookup_struct): Likewise.
3883 (lookup_union): Likewise.
3884 (lookup_enum): Likewise.
3885
5998129b
TT
38862011-06-24 Tom Tromey <tromey@redhat.com>
3887
3888 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3889 gdb_thread_db.h. Move all common/ entries to be together.
3890 (TAGS): Don't depend on DEPFILES.
3891
6e586cc5
YQ
38922011-06-23 Yao Qi <yao@codesourcery.com>
3893
3894 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3895 * remote.c (remote_start_remote): ... here.
3896 * monitor.c (monitor_open): ... here.
3897
86c3c1fc
AB
38982011-06-23 Andrew Burgess <aburgess@broadcom.com>
3899
3900 * gdbtypes.c (append_composite_type_field_aligned): Fix
3901 calculation of bit position based on alignment.
3902
28010a5d
PA
39032011-06-22 Pedro Alves <pedro@codesourcery.com>
3904
3905 * breakpoint.c (bpstat_stop_status): Call the check_status
3906 breakpoint_ops method.
3907 (print_one_breakpoint_location): Also print the condition for Ada
3908 exception catchpoints.
3909 (allocate_bp_location): New, factored out from
3910 allocate_bp_location.
3911 (allocate_bp_location): Adjust. Call the owner breakpoint's
3912 allocate_location method, if there is one.
3913 (free_bp_location): Call the locations's dtor method, if there is
3914 one.
3915 (init_raw_breakpoint_without_location): New breakpoint_ops
3916 parameter. Use it.
3917 (set_raw_breakpoint_without_location): Adjust.
3918 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3919 (set_raw_breakpoint): Adjust.
3920 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3921 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3922 re_set and check_status methods.
3923 (init_catchpoint): Don't memset, initialize thread, addr_string
3924 and enable_state. Pass the ops down to init_raw_breakpoint.
3925 (install_catchpoint): Rename to ...
3926 (install_breakpoint): ... this, and make extern.
3927 (create_fork_vfork_event_catchpoint): Adjust.
3928 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3929 re_set and check_status methods.
3930 (create_syscall_event_catchpoint): Adjust.
3931 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3932 (masked_watchpoint_breakpoint_ops): Install NULL
3933 allocate_location, re_set and check_status methods.
3934 (catch_exec_command_1): Adjust.
3935 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3936 re_set and check_status methods.
3937 (create_ada_exception_breakpoint): Rename to ...
3938 (init_ada_exception_breakpoint): ... this. Add a struct
3939 breakpoint parameter, and delete the exp_string, cond_string and
3940 cond parameters. Use init_raw_breakpoint, and don't install or
3941 mention the breakpoint yet. Don't clear breakpoint fields that
3942 init_raw_breakpoint already clears.
3943 (re_set_breakpoint): Delete, split into ...
3944 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3945 functions.
3946 (breakpoint_re_set_one): Call the breakpoint's
3947 breakpoint_ops->re_set implementation, if there's one. Adjust.
3948 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3949 (struct bp_location_ops): New type.
3950 (struct bp_location): New field `ops'.
3951 (struct breakpoint_ops): New `allocate_location', `re_set' and
3952 `check_status' fields. Make `breakpoint_hit''s description match
3953 reality.
3954 (init_bp_location): Declare.
3955 (breakpoint_re_set_default): Declare.
3956 (create_ada_exception_breakpoint): Rename to ...
3957 (init_ada_exception_breakpoint): ... this. Add a struct
3958 breakpoint parameter, and delete the exp_string, cond_string and
3959 cond parameters.
3960 (install_breakpoint): Declare.
3961 * ada-lang.c: Include exceptions.h.
3962 <Ada exceptions description>: Update.
3963 (struct ada_catchpoint_location): New type.
3964 (ada_catchpoint_location_dtor): New function.
3965 (ada_catchpoint_location_ops): New global.
3966 (ada_catchpoint): New type.
3967 (create_excep_cond_exprs): New function.
3968 (dtor_exception, allocate_location_exception, re_set_exception)
3969 (should_stop_exception, check_status_exception): New functions.
3970 (print_one_exception, print_mention_exception)
3971 (print_recreate_exception): Adjust.
3972 (dtor_catch_exception, allocate_location_catch_exception)
3973 (re_set_catch_exception, check_status_catch_exception): New
3974 functions.
3975 (catch_exception_breakpoint_ops): Install them.
3976 (dtor_catch_exception_unhandled)
3977 (allocate_location_catch_exception_unhandled)
3978 (re_set_catch_exception_unhandled)
3979 (check_status_catch_exception_unhandled): New functions.
3980 (catch_exception_unhandled_breakpoint_ops): Install them.
3981 (dtor_catch_assert, allocate_location_catch_assert)
3982 (re_set_catch_assert, check_status_catch_assert): New functions.
3983 (catch_assert_breakpoint_ops): Install them.
3984 (ada_exception_catchpoint_p): Delete.
3985 (catch_ada_exception_command_split)
3986 (ada_exception_catchpoint_cond_string): Rename exp_string
3987 parameter to excep_string. Adjust.
3988 (ada_parse_catchpoint_condition): Delete.
3989 (ada_exception_sal): Rename the exp_string parameter to
3990 excep_string. Delete the cond_string and cond parameters.
3991 Adjust.
3992 (ada_decode_exception_location): Rename the exp_string parameter
3993 to excep_string. Delete the cond_string and cond parameters.
3994 Adjust.
3995 (create_ada_exception_catchpoint): New function.
3996 (catch_ada_exception_command, ada_decode_assert_location)
3997 (catch_assert_command): Adjust.
3998 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3999
9ac4176b
PA
40002011-06-22 Pedro Alves <pedro@codesourcery.com>
4001
4002 * ada-lang.c: Include arch-utils.h.
4003 (ada_decode_exception_location): Make static.
4004 (catch_ada_exception_command): Moved here from breakpoint.c.
4005 (ada_decode_assert_location): Make static.
4006 (catch_assert_command): Moved here from breakpoint.c.
4007 (_initialize_ada_lang): Install the exception and assert
4008 catchpoint commands here.
4009 * ada-lang.h (ada_decode_exception_location)
4010 (ada_decode_assert_location): Delete declarations.
4011 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4012 breakpoint.h.
4013 (create_ada_exception_breakpoint): Make extern.
4014 (catch_ada_exception_command, catch_assert_command): Moved to
4015 ada-lang.c.
4016 (add_catch_command): Make extern.
4017 (_initilize_breakpoint): Don't install the exception and assert
4018 catchpoint commands here.
4019 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4020 breakpoint.c
4021 (add_catch_command, create_ada_exception_breakpoint): Declare.
4022
c56053d2
PA
40232011-06-22 Pedro Alves <pedro@codesourcery.com>
4024
4025 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4026 the breakpoint to the breakpoint chain here.
4027 (set_raw_breakpoint_without_location): Add the breakpoint to the
4028 breakpoint chain here.
4029 (init_raw_breakpoint): Adjust comments.
4030 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4031 here.
4032 (init_catchpoint): Don't set the catchpoint's breakpoint number
4033 here.
4034 (install_catchpoint): New function.
4035 (create_fork_vfork_event_catchpoint)
4036 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4037 use install_catchpoint.
4038
d2f3fc74
PA
40392011-06-22 Pedro Alves <pedro@codesourcery.com>
4040
4041 * breakpoint.c (create_catchpoint_without_mention)
4042 (create_catchpoint): Delete.
4043
b4d90040
PA
40442011-06-22 Pedro Alves <pedro@codesourcery.com>
4045
4046 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4047 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4048 reference to exec_pathname.
4049 (struct exec_catchpoint): New type.
4050 (dtor_catch_exec): New function.
4051 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4052 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4053 (catch_exec_command_1): Adjust to use init_catchpoint.
4054 (delete_breakpoint): Remove reference to exec_pathname.
4055
be5c67c1
PA
40562011-06-22 Pedro Alves <pedro@codesourcery.com>
4057
4058 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4059 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4060 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4061 reference to syscalls_to_be_caught.
4062 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4063 NULL `dtor'.
4064 (struct syscall_catchpoint): New type.
4065 (dtor_catch_syscall): New function.
4066 (insert_catch_syscall, remove_catch_syscall)
4067 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4068 (print_recreate_catch_syscall): Adjust.
4069 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4070 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4071 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4072 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4073 (masked_watchpoint_breakpoint_ops)
4074 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4075 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4076 there is one. Remove references to syscalls_to_be_caught.
4077 (catching_syscall_number): Adjust.
4078 * ada-lang.c (catch_exception_breakpoint_ops)
4079 (catch_exception_unhandled_breakpoint_ops)
4080 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4081
e29a4733
PA
40822011-06-22 Pedro Alves <pedro@codesourcery.com>
4083
4084 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4085 field.
4086 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4087 reference to forked_inferior_pid.
4088 (struct fork_catchpoint): New type.
4089 (breakpoint_hit_catch_fork, print_it_catch_fork)
4090 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4091 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4092 (create_fork_vfork_event_catchpoint): Adjust to use
4093 init_catchpoint.
4094
346774a9
PA
40952011-06-22 Pedro Alves <pedro@codesourcery.com>
4096
4097 * breakpoint.c (add_to_breakpoint_chain)
4098 (init_raw_breakpoint_without_location): New functions, factored
4099 out from ...
4100 (set_raw_breakpoint_without_location): ... this one.
4101 (init_raw_breakpoint): New function, factored out from
4102 set_raw_breakpoint and adjusted to use
4103 init_raw_breakpoint_without_location.
4104 (set_raw_breakpoint): Adjust.
4105 (init_catchpoint): New function, factored out from
4106 create_catchpoint_without_mention and adjusted to use
4107 init_raw_breakpoint.
4108 (create_catchpoint_without_mention): Adjust.
4109
c38c4bc5
TT
41102011-06-22 Tom Tromey <tromey@redhat.com>
4111
4112 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4113 argument of 0 specially.
4114
b138ce37
YQ
41152011-06-22 Yao Qi <yao@codesourcery.com>
4116
4117 * infrun.c (handle_inferior_event): Remove write-only local variable
4118 `sw_single_step_trap_p'.
4119
03de6823
TT
41202011-06-20 Tom Tromey <tromey@redhat.com>
4121
4122 * symtab.c (lookup_language_this): End loop if block is NULL.
4123
66a17cb6
TT
41242011-06-17 Tom Tromey <tromey@redhat.com>
4125
4126 * valops.c (value_of_this): Use lookup_language_this.
4127 * symtab.h (lookup_language_this): Declare.
4128 * symtab.c (lookup_language_this): New function.
4129 (lookup_symbol_aux): Use lookup_language_this.
4130 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4131
7518bff5
TT
41322011-06-17 Tom Tromey <tromey@redhat.com>
4133
4134 * value.h (value_of_this): Update.
4135 (value_of_local): Remove.
4136 * valops.c (value_of_this): Rename from value_of_local. Change
4137 parameters.
4138 * p-exp.y (exp): Update.
4139 (variable): Likewise.
4140 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4141
aee28ec6
TT
41422011-06-17 Tom Tromey <tromey@redhat.com>
4143
4144 * valops.c (value_of_local): Complain if NAME is NULL.
4145 * std-operator.def (OP_OBJC_SELF): Remove.
4146 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4147 * objc-exp.y (name_not_typename): Use OP_THIS.
4148 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4149 name for "this".
4150 <OP_OBJC_SELF>: Remove.
4151 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4152
eed8f803
TG
41532011-06-16 Tristan Gingold <gingold@adacore.com>
4154
4155 * python/py-events.h (gdb_py_events): Make it extern.
4156 * python/py-evtregistry.c (gdb_py_events): Declare.
4157
864ac8a7
HZ
41582011-06-16 Hui Zhu <teawater@gmail.com>
4159
4160 * remote.c (remote_trace_set_readonly_regions): Add check for
4161 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4162 output warning.
4163
ef7e8358
UW
41642011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4165
4166 * arm-linux-tdep.c: Include "auxv.h".
4167 (AT_HWCAP): Define.
4168 (ARM_LINUX_SIZEOF_VFP): Define.
4169 (arm_linux_supply_vfp): New function.
4170 (arm_linux_collect_vfp): Likewise.
4171 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4172 (arm_linux_fpa_regset_sections): New variable.
4173 (arm_linux_vfp_regset_sections): Likewise.
4174 (arm_linux_core_read_description): New function.
4175 (arm_linux_init_abi): Install arm_linux_core_read_description and
4176 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4177 appropriate for the architecture.
4178 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4179 (tdesc_arm_with_m): Declare.
4180 (tdesc_arm_with_iwmmxt): Likewise.
4181 (tdesc_arm_with_vfpv2): Likewise.
4182 (tdesc_arm_with_vfpv3): Likewise.
4183 (tdesc_arm_with_neon): Likewise.
4184 * arm-linux-nat.c: Move features/*.c includes ...
4185 * arm-tdep.c: ... here.
4186 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4187 target description data structures ...
4188 * arm-tdep.c (_initialize_arm_tdep): ... here.
4189 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4190 HWCAP_VFPv3D16): Move definitions ...
4191 * arm-linux-tdep.h: ... here.
4192
c2fa21f1
HZ
41932011-06-15 Hui Zhu <teawater@gmail.com>
4194
4195 * remote.c (remote_trace_set_readonly_regions): Add a check for
4196 target_buf_size.
4197
dd707e8e
TT
41982011-06-14 Tom Tromey <tromey@redhat.com>
4199
4200 * coffread.c (coffread_objfile): Rename from current_objfile.
4201 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4202 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4203
86cc0029
TT
42042011-06-14 Tom Tromey <tromey@redhat.com>
4205
4206 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4207 (class_symtab): Remove.
4208 (jv_dynamics_progspace_key): New global.
4209 (jv_per_objfile_free): Reset program space data. Update assert.
4210 Don't clear globals.
4211 (get_dynamics_objfile): Use and set program space data.
4212 (get_java_class_symtab): Use get_dynamics_objfile.
4213 (add_class_symbol): Likewise.
4214 (java_link_class_type): Likewise.
4215 (java_object_type, jv_clear_object_type, set_java_object_type):
4216 Remove.
4217 (get_java_object_type): Update. Don't cache result.
4218 (is_object_type): Don't call set_java_object_type.
4219 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4220 initialize jv_dynamics_progspace_key.
4221
91a81f69
TT
42222011-06-14 Tom Tromey <tromey@redhat.com>
4223
4224 * symtab.h (current_objfile): Don't declare.
4225 * objfiles.h (current_objfile): Don't declare.
4226 * objfiles.c (current_objfile): Remove.
4227 * mdebugread.c (current_objfile): New file-scope global.
4228 * dbxread.c (current_objfile): New file-scope global.
4229 * coffread.c (current_objfile): New file-scope global.
4230
dc7eb48e
PA
42312011-06-13 Pedro Alves <pedro@codesourcery.com>
4232
4233 * top.h (line): Rename to ...
4234 (saved_command_line): ... this.
4235 (linesize): Rename to ...
4236 (saved_command_line_size): ... this.
4237 * top.c (line): Rename to ...
4238 (saved_command_line): ... this.
4239 (linesize): Rename to ...
4240 (saved_command_line_size): ... this.
4241 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4242 * event-top.c (command_line_handler): Adjust.
4243 * main.c (captured_main): Adjust.
4244
0d6c2135
MK
42452011-06-12 Mark Kettenis <kettenis@gnu.org>
4246
4247 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4248 get_frame_func instead of get_frame_pc to determine the code
4249 address used to construct the frame ID.
4250 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4251 (i386_epilogue_frame_this_id): Likewise.
4252 (i386_epilogue_frame_prev_register): New function.
4253 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4254 (i386_stack_tramp_frame_sniffer): Fix coding style.
4255 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4256 (i386_gdbarch_init): Fix comments.
4257
8bbdd3f4
MK
42582011-06-12 Mark Kettenis <kettenis@gnu.org>
4259
4260 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4261 instruction when walking back through the instruction stream.
4262
533a737e
JK
42632011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4264
4265 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4266 fullname parameters order.
4267
44b13c5a
JK
42682011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4269
4270 Code cleanup.
4271 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4272 for fun.
4273 * psymtab.c (map_symbol_filenames_psymtab)
4274 (map_partial_symbol_filenames): Likewise.
4275 * psymtab.h: Include symfile.h.
4276 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4277 * symfile.h (symbol_filename_ftype): New.
4278 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4279 map_symbol_filenames, clarify more the naming in comment.
4280
0b5574da
DE
42812011-06-07 Doug Evans <dje@google.com>
4282
4283 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4284 Look for ../../gdb, for fullname.exp.
0b5574da 4285
5be4dfca
JK
42862011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4287 Pedro Alves <pedro@codesourcery.com>
4288
4289 * cli/cli-cmds.c (shell_escape): Use waitpid.
4290 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4291
316a8b21
TG
42922011-06-07 Tristan Gingold <gingold@adacore.com>
4293
4294 * xcoffread.c (dwarf2_xcoff_names): New variable.
4295 (aix_process_linenos): Add a guard.
4296 (xcoff_symfile_finish): Free dwarf2.
4297 (xcoff_initial_scan): Add dwarf2 support.
4298
3dd5b83d
PA
42992011-06-06 Pedro Alves <pedro@codesourcery.com>
4300
4301 * infcall.c (run_inferior_call): Don't mask async. Instead force
4302 a synchronous wait, if the target can async.
4303
4304 * target.h (struct target_ops): Delete to_async_mask.
4305 (target_async_mask): Delete.
4306 * target.c (update_current_target): Delete references to to_async_mask.
4307 * linux-nat.c (linux_nat_async_mask_value): Delete.
4308 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4309 to linux_nat_async_mask_value.
4310 (linux_nat_async_mask): Delete.
4311 (linux_nat_async, linux_nat_close): Remove references to
4312 linux_nat_async_mask_value.
4313 * record.c (record_async_mask_value): Delete.
4314 (record_async): Remove references to record_async_mask_value.
4315 (record_async_mask): Delete.
4316 (record_can_async_p, record_is_async_p): Remove references to
4317 record_async_mask_value.
4318 (init_record_ops, init_record_core_ops): Remove references to
4319 record_async_mask.
4320 * remote.c (remote_async_mask_value): Delete.
4321 (init_remote_ops): Remove reference to remote_async_mask.
4322 (remote_can_async_p, remote_is_async_p): Remove references to
4323 remote_async_mask_value.
4324 (remote_async): Remove references to remote_async_mask_value.
4325 (remote_async_mask): Delete.
4326
4327 * infrun.c (fetch_inferior_event): Don't claim registers changed
4328 if the current thread is already not executing.
4329
64b9b334
JB
43302011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4331
4332 From Stephen Kitt <steve@sk2.org>
4333 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4334 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4335
325663dc
JB
43362011-06-03 Joel Brobecker <brobecker@adacore.com>
4337
4338 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4339 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4340
8cf64490
TT
43412011-06-03 Tom Tromey <tromey@redhat.com>
4342
4343 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4344 code fields.
4345 * python/py-exitedevent.c (create_exited_event_object): Change
4346 type of 'exit_code'. Optionally add exit_code attribute.
4347 (emit_exited_event): Change type of 'exit_code'.
4348 * python/py-event.h (emit_exited_event): Update.
4349 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4350 * infrun.c (handle_inferior_event): Set exit code fields on
4351 inferior.
4352 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4353 fields.
4354 * inferior.c (exit_inferior_1): Initialize new fields.
4355
8ddd9a20
TT
43562011-06-03 Tom Tromey <tromey@redhat.com>
4357
4358 * dwarf2expr.c (get_signed_type): New function.
4359 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4360
8dfd1e6d
KS
43612011-06-02 Keith Seitz <keiths@redhat.com>
4362
4363 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4364
65fdb766
PA
43652011-06-02 Pedro Alves <pedro@codesourcery.com>
4366
4367 * top.h (simplified_command_loop): Delete declaration.
4368
f4b8c29b
MF
43692011-06-01 Mike Frysinger <vapier@gentoo.org>
4370
4371 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4372 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4373
1706c199
YQ
43742011-06-01 Yao Qi <yao@codesourcery.com>
4375
4376 * objfiles.h (obj_section_addr): Update reference to objfile from
4377 `abfd' to `obfd'.
4378 (obj_section_endaddr): Likewise.
4379
d19cd713 43802011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4381
4382 * MAINTAINERS: Update my email address and affiliation. Also
4383 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4384
e8eb7bc5
KS
43852010-05-31 Keith Seitz <keiths@redhat.com>
4386
4387 PR c++/12750
4388 * linespec.c (get_search_block): New function.
4389 (find_methods): Add FILE_SYMTATB parameter and use it and
4390 get_search_block to pass an appropriate block to
4391 lookup_symbol_in_namespace.
4392 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4393 Check if *ARGPTR starts with a filename first.
4394 If it does, call locate_first_half again to locate the next
4395 "first half" of the linespec.
4396 Pass FILE_SYMTATB to decode_objc and decode_compound.
4397 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4398 (locate_first_half): Stop on the first colon seen.
4399 (decode_compound): Add FILE_SYMTAB parameter.
4400 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4401 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4402 get_search_block with lookup_symbol.
4403 (find_method): Add FILE_SYMTAB parameter and pass it to
4404 find_methods.
4405 (decode_objc): Use get_search_block.
4406
2b1dbab0
KS
44072010-05-31 Keith Seitz <keiths@redhat.com>
4408
4409 PR symtab/12704
4410 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4411 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4412 and CP_ANONYMOUS_NAMESPACE_LEN.
4413 (cp_is_anonymous): Likewise.
4414 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4415 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4416 * dwarf2read.c (namespace_name): Likewise.
4417 (fixup_partial_die): Likewise.
4418 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4419 seen in the input, keep it.
4420
6d549500
PA
44212011-05-30 Pedro Alves <pedro@codesourcery.com>
4422
4423 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4424 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4425 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4426 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4427 * remote.c (_initialize_remote): Register
4428 async_remote_interrupt_twice directly as
4429 sigint_remote_twice_token event.
4430
395bff70
PA
44312011-05-30 Pedro Alves <pedro@codesourcery.com>
4432
4433 * target.h (enum inferior_event_type): Delete INF_ERROR.
4434 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4435
97224164
PA
44362011-05-30 Pedro Alves <pedro@codesourcery.com>
4437
4438 * interps.c (interp_set): Don't cancel continuations.
4439
07e78767
JK
44402011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4441
4442 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4443
fa4cd53f
PA
44442011-05-30 Pedro Alves <pedro@codesourcery.com>
4445
4446 * continuations.h (continuation_ftype): Add `err' parameter.
4447 Document parameters.
4448 (do_all_continuations, do_all_continuations_thread)
4449 (do_all_intermediate_continuations)
4450 (do_all_intermediate_continuations_thread)
4451 (do_all_inferior_continuations): Add `err' parameter.
4452 * continuations.c (do_my_continuations_1, do_my_continuations)
4453 (do_all_inferior_continuations, do_all_continuations_ptid)
4454 (do_all_continuations_thread_callback)
4455 (do_all_continuations_thread, do_all_continuations)
4456 (do_all_intermediate_continuations_thread_callback)
4457 (do_all_intermediate_continuations_thread)
4458 (do_all_intermediate_continuations): Add `err' parameter, and pass
4459 it down all the way to the continuations proper.
4460 * inf-loop.c (inferior_event_handler): If fetching an inferior
4461 event throws an error, don't pop the target, and still call the
4462 continuations, but with `err' set. Adjust all other continuation
4463 calls.
4464 * breakpoint.c (until_break_command_continuation): Add `err'
4465 parameter.
4466 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4467 issue another step if `err' is set.
4468 (struct until_next_continuation_args): New.
4469 (until_next_continuation): Add `err' parameter. Adjust.
4470 (until_next_command): Adjust.
4471 (struct finish_command_continuation_args): Add `thread' field.
4472 (finish_command_continuation): Add `err' parameter. Handle it.
4473 (finish_forward): Adjust.
4474 (attach_command_continuation): Add `err' parameter. Handle it.
4475 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4476 cancel the continuations.
4477 * interps.c (interp_set): Adjust to cancel the continuations.
4478 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4479 continuations rather than discarding.
4480 (free_thread): Don't clear thread inferior resources here.
4481 (delete_thread_1): Do it here instead. And do it before removing
4482 the thread from the threads list. Tag the thread as exited before
4483 clearing thread inferior resources.
4484
c2949be0
JB
44852011-05-30 Joel Brobecker <brobecker@adacore.com>
4486
4487 * infcall.c (call_function_by_hand): Rephrase error message.
4488
619cebe8
PA
44892011-05-27 Pedro Alves <pedro@codesourcery.com>
4490
4491 * defs.h (struct thread_info, struct inferior): Delete forward
4492 declarations.
4493 * breakpoint.h (struct thread_info): New forward declaration.
4494 * observer.sh (struct inferior): New forward declaration.
4495 * python/python-internal.h (struct inferior): New forward
4496 declaration.
4497
be34f849
PA
44982011-05-27 Pedro Alves <pedro@codesourcery.com>
4499
4500 * defs.h (struct continuation, continuation_ftype)
4501 (continuation_free_arg_ftype, add_continuation)
4502 (do_all_continuations, do_all_continuations_thread)
4503 (discard_all_continuations, discard_all_continuations_thread)
4504 (add_intermediate_continuation, do_all_intermediate_continuations)
4505 (do_all_intermediate_continuations_thread)
4506 (discard_all_intermediate_continuations)
4507 (discard_all_intermediate_continuations_thread)
4508 (add_inferior_continuation, do_all_inferior_continuations)
4509 (discard_all_inferior_continuations): Move to ...
4510 * continuations.h: ... this new file.
4511 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4512 infcmd.c, inferior.c, infrun.c, interps.c: Include
4513 continuations.h.
4514
432b4d03
JK
45152011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4516 Doug Evans <dje@google.com>
4517
4518 Fix PR 10970, PR 12702.
4519 * linux-nat.c (linux_lwp_is_zombie): New function.
4520 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4521 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4522
b0f260d6
PA
45232011-05-27 Pedro Alves <pedro@codesourcery.com>
4524
4525 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4526 typedefs.
4527 (add_continuation, add_intermediate_continuation)
4528 (add_inferior_continuation): Use them.
4529 * continuations.c (struct continuation): Use them.
4530 (make_continuation_ftype): Delete.
4531 (make_continuation, add_inferior_continuation, add_continuation)
4532 (add_intermediate_continuation): Use continuation_ftype and
4533 continuation_free_arg_ftype. Rename parameters to shorter names.
4534
af1e9a32
PA
45352011-05-27 Pedro Alves <pedro@codesourcery.com>
4536
4537 * continuations.c (make_continuation): Make it return void.
4538 (do_my_continuations): Rename to ...
4539 (do_my_continuations_1): ... this. Remove old_chain parameter and
4540 adjust.
4541 (do_my_continuations): New.
4542 (discard_my_continuations): Rename to ...
4543 (discard_my_continuations_1): ... this. Remove old_chain
4544 parameter and adjust.
4545 (discard_my_continuations): New.
4546 (add_inferior_continuation): Simplify.
4547 (do_all_inferior_continuations): Reimplement on top
4548 do_my_continuations.
4549 (discard_all_inferior_continuations): Simplify.
4550 (add_continuation): Simplify.
4551 (do_all_continuations_ptid): Simplify.
4552 (discard_all_continuations_thread_callback): Simplify.
4553 (add_intermediate_continuation): Simplify.
4554 (discard_all_intermediate_continuations_thread_callback):
4555 Simplify.
4556
50c0c017
PA
45572011-05-27 Pedro Alves <pedro@codesourcery.com>
4558
4559 * utils.c (struct continuation, add_continuation)
4560 (add_inferior_continuation)
4561 (do_all_inferior_continuations, discard_all_inferior_continuations)
4562 (restore_thread_cleanup, do_all_continuations_ptid)
4563 (do_all_continuations_thread_callback)
4564 (do_all_continuations_thread, do_all_continuations)
4565 (discard_all_continuations_thread_callback)
4566 (discard_all_continuations_thread, discard_all_continuations)
4567 (add_intermediate_continuation)
4568 (do_all_intermediate_continuations_thread_callback)
4569 (do_all_intermediate_continuations_thread)
4570 (do_all_intermediate_continuations)
4571 (discard_all_intermediate_continuations_thread_callback)
4572 (discard_all_intermediate_continuations_thread)
4573 (discard_all_intermediate_continuations): Move to ...
4574 * continuations.c: ... this new file, and adjust to no longer
4575 implement continuations on top of cleanups.
4576 * Makefile.in (SFILES): Add continuations.c.
4577 (COMMON_OBS): Add continuations.o.
4578
d8b34453
PA
45792011-05-26 Pedro Alves <pedro@codesourcery.com>
4580
4581 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4582 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4583 Internal error on invalid values.
4584 * reverse.c: Don't handle EXEC_ERROR.
4585 * mi/mi-main.c: Don't handle EXEC_ERROR.
4586
32231432
PA
45872011-05-26 Pedro Alves <pedro@codesourcery.com>
4588
4589 * record.c: Include event-loop.h, inf-loop.h.
4590 (record_beneath_to_async): New global.
4591 (tmp_to_async): New global.
4592 (record_async_inferior_event_token): New global.
4593 (record_open_1): Don't error out if async is enabled.
4594 (record_open): Handle to_async. Create an async event source in
4595 the event loop.
4596 (record_close): Delete the async event source.
4597 (record_resumed): New global.
4598 (record_execution_dir): New global.
4599 (record_resume, record_core_resume): Set them. Register the
4600 target on the event loop.
4601 (record_wait): Rename to ...
4602 (record_wait_1): ... this. Add more debug output. Handle
4603 TARGET_WNOHANG, and the target beneath returning
4604 TARGET_WAITKIND_IGNORE.
4605 (record_wait): Reimplement on top of record_wait_1.
4606 (record_async_mask_value): New global.
4607 (record_async, record_async_mask, record_can_async_p)
4608 (record_is_async_p, record_execution_direction): New functions.
4609 (init_record_ops, init_record_core_ops): Install new methods.
4610 * infrun.c (fetch_inferior_event): Temporarily switch the global
4611 execution direction to the direction the target was going.
4612 (execution_direction): Change type to int.
4613 * target.c (default_execution_direction): New function.
4614 (update_current_target): Inherit and de_fault
4615 to_execution_direction.
4616 * target.h (struct target_ops) <to_execution_direction>: New
4617 field.
4618 (target_execution_direction): New macro.
4619 * inferior.h (execution_direction): Change type to int.
4620
949dc678
PA
46212011-05-26 Pedro Alves <pedro@codesourcery.com>
4622
4623 * infcall.c (call_function_by_hand): Don't allow calling functions
4624 in reverse execution mode.
4625
c13bd2b5
PA
46262011-05-26 Pedro Alves <pedro@codesourcery.com>
4627
4628 * infcmd.c (finish_command): Allow async finish in reverse.
4629
6938fd34
YQ
46302011-05-26 Yao Qi <yao@codesourcery.com>
4631
4632 * gdb_thread_db.h: Delete. Move to ...
4633 * common/gdb_thread_db.h: ... here.
4634
9da8c2a0
PA
46352011-05-26 Pedro Alves <pedro@codesourcery.com>
4636
4637 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4638 function's entry point instead of a manually managed momentary
4639 breakpoint, and only ever issue one proceed call.
4640 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4641 doing a reverse-finish, switch to stepi mode, to do another step.
4642 (insert_step_resume_breakpoint_at_sal): Make public.
4643 (normal_stop): No need to save function value return registers if
4644 going reverse.
4645 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4646
2c03e5be
PA
46472011-05-26 Pedro Alves <pedro@codesourcery.com>
4648
4649 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4650 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4651 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4652 at the end.
4653 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4654 step-resume breakpoints.
4655 (print_it_typical): Handle bp_hp_step_resume.
4656 (bpstat_what): Ditto.
4657 (bptype_string): Ditto.
4658 (print_one_breakpoint_location): Ditto.
4659 (allocate_bp_location): Ditto.
4660 (mention): Ditto.
4661 (breakpoint_re_set_one): Ditto.
4662 * infrun.c (handle_inferior_event): Adjust. Split
4663 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4664 BPSTAT_WHAT_HP_STEP_RESUME.
4665 (insert_step_resume_breakpoint_at_sal): Rename to ...
4666 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4667 parameter. Handle it.
4668 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4669 insert_step_resume_breakpoint_at_sal_1.
4670 (insert_step_resume_breakpoint_at_frame): Rename to ...
4671 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4672 set a high-priority step-resume breakpoint.
4673 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4674 (insert_step_resume_breakpoint_at_caller): Ditto.
4675
51be5b68
PA
46762011-05-26 Pedro Alves <pedro@codesourcery.com>
4677
4678 * breakpoint.c (iterate_over_related_breakpoints): New.
4679 (do_map_delete_breakpoint): New.
4680 (delete_command): Pass do_map_delete_breakpoint to
4681 map_breakpoint_numbers.
4682 (do_disable_breakpoint): New.
4683 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4684 breakpoints.
4685 (do_enable_breakpoint): Rename to ...
4686 (enable_breakpoint_disp): ... this.
4687 (enable_breakpoint): Adjust.
4688 (do_enable_breakpoint): New.
4689 (enable_once_breakpoint): Delete.
4690 (do_map_enable_breakpoint): New.
4691 (do_map_enable_once_breakpoint): New.
4692 (enable_once_command, enable_delete_command)
4693 (delete_trace_command): Iterate over the breakpoint's related
4694 breakpoints.
4695
4a1be8d2
PA
46962011-05-26 Pedro Alves <pedro@codesourcery.com>
4697
4698 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4699 for ALPHA_ZERO_REGNUM.
4700 (alpha_supply_int_regs): Explicitly supply zero as the value for
4701 ALPHA_ZERO_REGNUM in the register cache.
4702 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4703
59d70315
YQ
47042011-05-26 Yao Qi <yao@codesourcery.com>
4705
4706 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4707
251d32d9
TG
47082011-05-26 Tristan Gingold <gingold@adacore.com>
4709
4710 * symfile.h (struct dwarf2_section_names): New type.
4711 (struct dwarf2_debug_sections): New type.
4712 (dwarf2_has_info): Add parameter.
4713 * dwarf2read.c (dwarf2_elf_names): New variable.
4714 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4715 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4716 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4717 (dwarf2_has_info): Add names parameter. Pass names
4718 to dwarf2_locate_sections.
4719 (section_is_p): Rewrite using the names parameter.
4720 (dwarf2_locate_sections): Use section names from the names parameter.
4721 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4722 * elfread.c (read_psyms): Ditto.
4723 * machoread.c (macho_symfile_read): Ditto.
4724
652c71b4
AS
47252011-05-25 Andreas Schwab <schwab@redhat.com>
4726
4727 PR gdb/8677
4728 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4729
f17170e5
KS
47302011-05-24 Keith Seitz <keiths@redhat.com>
4731
4732 PR breakpoint/12803
4733 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4734 (decode_compound): Unconditionally call keep_name_info.
4735
cdac0397
PA
47362011-05-24 Pedro Alves <pedro@codesourcery.com>
4737
4738 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4739 scope, clear its command list.
4740 (map_breakpoint_numbers): Don't walk the related breakpoints list
4741 of each breakpoint.
4742
91d4fe3f
TT
47432011-05-24 Tom Tromey <tromey@redhat.com>
4744
4745 * MAINTAINERS: Move Jim Blandy to past maintainers.
4746
3017a003
TG
47472011-05-24 Tristan Gingold <gingold@adacore.com>
4748
4749 * symfile.h (enum dwarf2_section_enum): New type.
4750 (dwarf2_get_section_info): New prototype.
4751 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4752 section_name by sect. Use a switch to select the info.
4753 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4754 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4755
c91c8c16
PA
47562011-05-24 Pedro Alves <pedro@codesourcery.com>
4757
4758 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4759 shared library event breakpoint if there's no execution.
4760
77bc418a
TJB
47612011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4762
4763 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4764 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4765
c50491a7
TT
47662011-05-23 Tom Tromey <tromey@redhat.com>
4767
4768 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4769 NULL.
4770
6d64e6d4
DE
47712011-05-23 Doug Evans <dje@google.com>
4772
4773 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4774 entry for RuntimeError to doc string.
4775
2067c8d4
JG
47762011-05-23 Jerome Guitton <guitton@adacore.com>
4777
4778 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4779 sequence for probing loops.
4780
b136cd05
PA
47812011-05-23 Pedro Alves <pedro@codesourcery.com>
4782
4783 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4784 comment.
4785
22e74ef9
MK
47862011-05-21 Mark Kettenis <kettenis@gnu.org>
4787
4788 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4789 zero as the value for %g0 in the register cache.
4790 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4791 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4792
842951eb
PA
47932011-05-20 Pedro Alves <pedro@codesourcery.com>
4794
4795 * infrun.c (proceed): Set previous_inferior_ptid here.
4796 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4797 inferior_ptid, not null_ptid.
4798 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4799 (fetch_inferior_event): Nor here.
4800
46cf51e6
PA
48012011-05-20 Pedro Alves <pedro@codesourcery.com>
4802
4803 * inf-loop.c (inferior_event_handler): Only output a message if
4804 verbose.
4805
29ef4c46
LM
48062011-05-20 Luis Machado <lgustavo@codesourcery.com>
4807
4808 * MAINTAINERS: Update my e-mail address.
4809
f148b27e
PA
48102011-05-20 Pedro Alves <pedro@codesourcery.com>
4811
4812 * infrun.c (proceed): Switch the inferior event loop to
4813 INF_EXEC_COMPLETE if the target refused to resume from a
4814 vfork/fork.
4815
09cee04b
PA
48162011-05-20 Pedro Alves <pedro@codesourcery.com>
4817
4818 * infcmd.c: Include "inf-loop.h".
4819 (step_once): When stepping into an inline subroutine, pretend the
4820 target has run. If the target can async, switch the inferior
4821 event loop to INF_EXEC_COMPLETE.
4822 * inferior.h (user_visible_resume_ptid): Declare.
4823 * infrun.c (user_visible_resume_ptid): New function, factored out
4824 from `resume'.
4825 (resume): Use it.
4826 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4827 that the current thread is running. Merge async and sync
4828 branches.
4829
751b8ce1
PA
48302011-05-20 Pedro Alves <pedro@codesourcery.com>
4831
4832 * infcmd.c (step_1): Simplify synchronous case.
4833
e93a69ed
PA
48342011-05-20 Pedro Alves <pedro@codesourcery.com>
4835
4836 * tracepoint.c: Include exceptions.h.
4837 (TFILE_PID): Move higher in file.
4838 (tfile_open): Delay pushing the tfile target until we're assured
4839 the tfile header is present in the file. Wrap reading the initial
4840 newline-terminated lines in TRY_CATCH. Pop the target if the
4841 initial setup failed. Add the tfile's thread immediately
4842 aftwards, before any non-essential setup. Don't skip
4843 post_create_inferior if there are no traceframes present in the
4844 file.
4845 (tfile_close): Remove redundant check for null before xfree call.
4846 (tfile_thread_alive): New function.
4847 (init_tfile_ops): Register it as to_thread_alive callback.
4848
6823e2b1
PA
48492011-05-20 Pedro Alves <pedro@codesourcery.com>
4850
4851 * tracepoint.c (tfile_open): Delete #if 0'd code.
4852
b3c8eb43
JK
48532011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4854
4855 Fix -readnow for -gdwarf-4 unused type units.
4856 * dwarf2read.c (struct signatured_type): Remove the field offset.
4857 (create_signatured_type_table_from_index): Remove its initialization.
4858 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4859 instead. Add a complaint call.
4860 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4861 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4862 (lookup_signatured_type_at_offset, read_signatured_type)
4863 (write_one_signatured_type): Update the field for per_cu.
4864
310afc76
TT
48652011-05-19 Tom Tromey <tromey@redhat.com>
4866
4867 * python/py-inferior.c (python_inferior_exit): Use
4868 target_gdbarch.
4869 (python_on_resume): Likewise.
4870
cf6c5ffb
TT
48712011-05-19 Matt Rice <ratmice@gmail.com>
4872
4873 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4874
fb80a3c5
HZ
48752011-05-19 Hui Zhu <teawater@gmail.com>
4876
4877 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4878
3672b1be
HZ
48792011-05-19 Hui Zhu <teawater@gmail.com>
4880
4881 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4882
ff355380
TT
48832011-05-18 Tom Tromey <tromey@redhat.com>
4884
4885 * dwarf2read.c (dwarf2_add_field): Constify.
4886 * value.c (value_static_field): Constify.
4887 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4888 Now const.
4889 * ax-gdb.c (gen_static_field): Constify
4890
ed731959
JK
48912011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4892
4893 * linux-nat.c (kill_callback): Use SIGKILL first.
4894
967cff16
JB
48952011-05-18 Joel Brobecker <brobecker@adacore.com>
4896
4897 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4898
1d06ead6
TT
48992011-05-18 Tom Tromey <tromey@redhat.com>
4900
4901 * value.c (value_fn_field): Constify.
4902 * symtab.c (gdb_mangle_name): Constify.
4903 * stabsread.c (update_method_name_from_physname): Make 'physname'
4904 argument const.
4905 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4906 const. Use explicit fputc_filtered loop.
4907 (pascal_type_print_base): Constify.
4908 * p-lang.h (pascal_type_print_method_args): Update.
4909 * linespec.c (add_matching_methods): Constify.
4910 (add_constructors): Likewise.
4911 * jv-typeprint.c (java_type_print_base): Constify.
4912 * gdbtypes.h (struct cplus_struct_type)
4913 <fn_fieldlist.fn_field.physname>: Now const.
4914 * dwarf2read.c (compute_delayed_physnames): Constify.
4915 (dwarf2_add_member_fn): Likewise.
4916 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4917
0d9a9a5f
PA
49182011-05-18 Pedro Alves <pedro@codesourcery.com>
4919
4920 * infrun.c (resume): Mention which is the current thread, and its
4921 current PC in debug output.
4922 (prepare_to_proceed): Mention the thread switching in debug
4923 output.
4924
05386e9e
TT
49252011-05-18 Tom Tromey <tromey@redhat.com>
4926
4927 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4928 path check. Use xmalloc and cleanups.
4929 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4930
ee86786c
TT
49312011-05-17 Tom Tromey <tromey@redhat.com>
4932
4933 * cp-valprint.c (cp_print_value_fields): Catch errors from
4934 value_static_field.
4935
9ff3b74f
TT
49362011-05-17 Tom Tromey <tromey@redhat.com>
4937
4938 * dwarf2read.c (dwarf2_get_die_type): Call
4939 get_die_type_at_offset.
4940 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4941 get_base_type function.
4942
cd3da28e
PA
49432011-05-17 Tomas Martinec <fyzmat@gmail.com>
4944
4945 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4946 trap_expected.
4947
fd20d931
DE
49482011-05-16 Doug Evans <dje@google.com>
4949
4950 * python/py-auto-load.c (source_section_scripts): Mention objfile
4951 name in warning.
4952
75fc9810
DE
49532011-05-15 Doug Evans <dje@google.com>
4954
290351b8
DE
4955 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4956 (try_thread_db_load_from_pdir): Call it. If unable to find
4957 libthread_db in directory of libpthread, see if we're looking at
4958 the separate-debug-info copy.
4959
75fc9810
DE
4960 * python/py-autoload.c (print_script): Print "Missing" instead of
4961 "No" for missing scripts.
4962 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4963
9f7bc587
DE
49642011-05-13 Doug Evans <dje@google.com>
4965
4966 * ui-file.c (stdio_file_write_async_safe): Add comment.
4967
093cee7d
HZ
49682011-05-14 Hui Zhu <teawater@gmail.com>
4969
4970 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4971
dbaefcf7
DE
49722011-05-13 Doug Evans <dje@google.com>
4973
98a5dd13
DE
4974 Support $pdir and $sdir in libthread-db-search-path.
4975 * NEWS: Mention $sdir,$pdir.
4976 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4977 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4978 (try_thread_db_load_from_sdir): New function.
4979 (try_thread_db_load_from_dir): New function.
4980 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4981 system directories if search of libthread-db-search-path fails,
4982 that is now done via $sdir.
4983 (has_libpthread): New function.
4984 (thread_db_load): Remove search for libthread_db in directory of
4985 libpthread, that is now done via $pdir.
4986
dbaefcf7
DE
4987 * NEWS: Mention "info auto-load-scripts".
4988 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4989 script_not_found_warning_printed.
4990 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4991 all callers updated. Initialize script_not_found_warning_printed.
4992 (get_auto_load_pspace_data_for_loading): New function.
4993 (maybe_add_script): New function.
4994 (source_section_scripts): Simplify. Only print one warning regardless
4995 of the number of auto-load scripts not found.
4996 (clear_section_scripts): Clear script_not_found_warning_printed.
4997 (auto_load_objfile_script): Record script in hash table.
4998 (count_matching_scripts): New function.
4999 (maybe_print_script): Renamed from maybe_print_section_script, all
5000 callers updated. Rewrite to use ui_out_*.
5001 (info_auto_load_scripts): Renamed from
5002 maintenance_print_section_scripts, all callers updated.
5003 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5004 renamed as "info auto-load-scripts".
5005
9930639c
TT
50062011-05-13 Tom Tromey <tromey@redhat.com>
5007
5008 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5009 (read_sleb128): Likewise.
5010
06826322
TT
50112011-05-13 Tom Tromey <tromey@redhat.com>
5012
5013 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5014 offset display.
5015
01124a23
DE
50162011-05-13 Doug Evans <dje@google.com>
5017
5018 * linux-nat.c (debug_linux_nat_async): Delete.
5019 Replace all references to use debug_linux_nat instead.
5020 (show_debug_linux_nat_async): Delete.
5021 (sigchld_handler): Call ui_file_write_async_safe instead of
5022 fprintf_unfiltered.
5023 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5024 * ui-file.c (struct ui_file): New member to_write_async_safe.
5025 (null_file_write_async_safe): New function.
5026 (ui_file_write_async_safe): New function.
5027 (set_ui_file_write_async_safe): New function.
5028 (ui_file_new): Initialize to_write_async_safe.
5029 (stdio_file_write_async_safe): New function.
5030 (struct stdio_file): New member fd.
5031 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5032 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5033 fileno.
01124a23
DE
5034 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5035 (set_ui_file_write_async_safe): Declare.
5036 (ui_file_write_async_safe): Declare.
5037
72fc29ff
TT
50382011-05-13 Tom Tromey <tromey@redhat.com>
5039
5040 * utils.c (do_value_free): New function.
5041 (make_cleanup_value_free): Likewise.
5042 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5043 freeing correctly.
5044 (dwarf2_loc_desc_needs_frame): Call
5045 make_cleanup_value_free_to_mark.
5046 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5047 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5048 value_free_to_mark.
5049 (new_dwarf_expr_context): Don't call value_mark.
5050 * dwarf2-frame.c (execute_stack_op): Call
5051 make_cleanup_value_free_to_mark.
5052 * defs.h (make_cleanup_value_free): Declare.
5053
028d0ed5
TJB
50542011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5055
5056 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5057 prepare_execute_command.
5058 * top.c (prepare_execute_command): Return cleanup.
5059 (execute_command): Use cleanup from prepare_execute_command.
5060 * top.h (prepare_execute_command): Change prototype to return
5061 cleanup.
5062 * defs.h (struct value): Add opaque declaration.
5063 (make_cleanup_value_free_to_mark): Add prototype.
5064 * utils.c (do_value_free_to_mark): New function.
5065 (make_cleanup_value_free_to_mark): Likewise.
5066
b087e0ed
TT
50672011-05-12 Tom Tromey <tromey@redhat.com>
5068
5069 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5070 cast left-hand-side to unsigned.
5071
8a9b8146
TT
50722011-05-12 Tom Tromey <tromey@redhat.com>
5073
5074 PR gdb/12617:
5075 * value.h (value_from_contents): Declare.
5076 * value.c (value_from_contents): New function.
5077 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5078 (dwarf2_get_die_type): New function.
5079 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5080 (allocate_piece_closure): Acquire reference to values.
5081 (read_pieced_value): Update for value-based expressions.
5082 (write_pieced_value): Likewise.
5083 (free_pieced_value_closure): Call value_free as needed.
5084 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5085 Update for value-based expressions.
5086 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5087 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5088 <get_base_type>: New field.
5089 (struct dwarf_expr_piece) <v.value>: Change type.
5090 <v.regno>: New field.
5091 (struct dwarf_expr_context) <mark>: New field.
5092 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5093 (dwarf_expr_pop, dwarf_expr_push): Remove.
5094 (dwarf_expr_push_address): Declare.
5095 * dwarf2expr.c (dwarf_arch_cookie): New global.
5096 (struct dwarf_gdbarch_types): New.
5097 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5098 functions.
5099 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5100 static.
5101 (dwarf_expr_push_address): New function.
5102 (dwarf_expr_pop): Now static.
5103 (dwarf_expr_fetch): Change return type.
5104 (dwarf_require_integral): New function.
5105 (dwarf_expr_fetch): Simplify.
5106 (add_piece): Update.
5107 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5108 functions.
5109 (execute_stack_op) <sign_ext>: Remove.
5110 Use values for DWARF stack.
5111 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5112 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5113 New cases.
5114 (_initialize_dwarf2expr): New function.
5115 (add_piece): Update.
5116 (new_dwarf_expr_context): Set new field.
5117 (free_dwarf_expr_context): Call value_free_to_mark.
5118 * dwarf2-frame.c (no_base_type): New function.
5119 (execute_stack_op): Set get_base_type field. Update.
5120
e8d28ef4
TT
51212011-05-12 Tom Tromey <tromey@redhat.com>
5122
5123 * dwarf2read.c (read_common_block): Fix formatting.
5124
d248b706
KY
51252011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5126
5127 * breakpoint.c (disable_breakpoint): Disable all locations
5128 associated with a tracepoint on target if a trace experiment is
5129 running.
5130 (disable_command): Disable a specific tracepoint location on target if
5131 a trace experiment is running.
5132 (do_enable_breakpoint): Enable all locations associated with a
5133 tracepoint on target if a trace experiment is running.
5134 (enable_command) Enable a specific tracepoint location on target if a
5135 trace experiment is running.
5136 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5137 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5138 to_disable_tracepoint.
5139 * target.h: Add declaration of struct bp_location.
5140 (struct target_ops): Add new functions
5141 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5142 to_disable_tracepoint to target operations.
5143 (target_supports_enable_disable_tracepoint): New macro.
5144 (target_enable_tracepoint): New macro.
5145 (target_disable_tracepoint): New macro.
5146 * remote.c (struct remote_state): Add new field.
5147 (remote_enable_disable_tracepoint_feature): New.
5148 (remote_protocol_features): Add new entry.
5149 (remote_supports_enable_disable_tracepoint): New.
5150 (remote_enable_tracepoint): New.
5151 (remote_disable_tracepoint): New.
5152 (init_remote_ops): Add remote_enable_tracepoint,
5153 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5154 to remote operations.
5155 * tracepoint.c (start_tracing): Allow tracing to start without any
5156 tracepoints enabled with just a warning if they can be re-enabled
5157 later.
5158 * NEWS: Add news item for the new behaviour of the enable and disable
5159 GDB commands when applied to tracepoints.
5160 Add news items for the new remote packets QTEnable and QTDisable.
5161
cc88a640
JK
51622011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5163
5164 * config.in: Regenerate.
5165 * configure: Regenerate.
5166 * configure.ac <--with-system-readline> (for readline_echoing_p):
5167 Remove the test.
5168 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5169 (tui_old_rl_echoing_p): ... here.
5170 (tui_setup_io): Rename extern declaration readline_echoing_p to
5171 _rl_echoing_p. Adjust assignments for the both renames.
5172
1f84b619
TJB
51732011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5174
5175 * symtab.c (lookup_symtab): Run cleanup before returning.
5176
74ac6d43
TT
51772011-05-11 Tom Tromey <tromey@redhat.com>
5178
5179 * dwarf2read.c (handle_data_member_location): New function.
5180 (dwarf2_add_field): Use it.
5181 (read_common_block): Likewise.
5182
5488dafb
JK
51832011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5184
5185 Make addrs->SECTINDEX always defined.
5186 * symfile.c (relative_addr_info_to_section_offsets): Check for
5187 SECTINDEX -1, not for zero ADDR.
5188 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5189 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5190 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5191 on its validity.
5192
84e578fb
DE
51932011-05-10 Doug Evans <dje@google.com>
5194
2471d008
DE
5195 * linux-thread-db.c: Whitespace cleanup.
5196 (try_thread_db_load_1): Fix comment.
5197
84e578fb
DE
5198 * linux-thread-db.c (set_libthread_db_search_path): New function.
5199 (_initialize_thread_db): Add setter for libthread-db-search-path.
5200
673c2bbe
DE
52012011-05-09 Doug Evans <dje@google.com>
5202
478aac75
DE
5203 * NEWS: Mention --with-iconv-bin.
5204 * configure.ac: New option --with-iconv-bin.
5205 * configure: Regenerate.
5206 * config.in: Regenerate.
5207 * defs.h (relocate_gdb_directory): Declare.
5208 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5209 removed progname parameter, and exported. All callers updated.
5210 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5211
673c2bbe
DE
5212 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5213 adding missing call to restore_child_signals_mask.
5214
e4c8541f
PA
52152011-05-09 Pedro Alves <pedro@codesourcery.com>
5216
5217 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5218 parameter.
5219 * infrun.c (proceed, start_remote): Adjust.
5220 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5221 and adjust to not handle it.
5222 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5223 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5224 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5225 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5226 * windows-nat.c (do_initial_windows_stuff): Adjust.
5227 * infcmd.c (attach_command): Adjust.
5228 (notice_new_inferior): Adjust.
5229
a536c6d7
UW
52302011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5231
5232 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5233 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5234 * spu-tdep.c (op_selb): Use correct value.
5235
7845b013
UW
52362011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5237
5238 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5239 "parent" parameter to symbol_file_add_from_bfd call.
5240
9c06b0b4
TJB
52412011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5242 Thiago Jung Bauermann <bauerman@br.ibm.com>
5243
5244 Implement support for PowerPC BookE masked watchpoints.
5245 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5246 section.
5247 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5248 method. Initialize to NULL in all existing breakpoint_ops instances.
5249 (struct breakpoint) <hw_wp_mask>: New field.
5250 * breakpoint.c (is_masked_watchpoint): Add prototype.
5251 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5252 breakpoint's breakpoint_ops.works_in_software_mode if available.
5253 (watchpoints_triggered): Handle the case of a hardware masked
5254 watchpoint trigger.
5255 (watchpoint_check): Likewise.
5256 (works_in_software_mode_watchpoint): New function.
5257 (insert_masked_watchpoint, remove_masked_watchpoint)
5258 (resources_needed_masked_watchpoint)
5259 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5260 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5261 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5262 functions.
5263 (masked_watchpoint_breakpoint_ops): New structure.
5264 (watch_command_1): Check for the existence of the `mask' parameter.
5265 Set b->ops according to the type of hardware watchpoint being created.
5266 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5267 (ppc_linux_remove_mask_watchpoint)
5268 (ppc_linux_masked_watch_num_registers): New functions.
5269 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5270 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5271 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5272 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5273 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5274 (target_masked_watch_num_registers): New functions.
5275 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5276 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5277 methods.
5278 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5279 (target_masked_watch_num_registers): Add prototypes.
5280
8be455d7
JK
52812011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5282
5283 PR 12573
5284 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5285 (producer_is_gcc_ge_4_0): New function.
5286 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5287 symtab->language code.
5288 (var_decode_location): Set cu->has_loclist.
5289 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5290 skip. Intialize force_skip from locations_valid. Move the prologue
5291 skipping code into two passes.
5292 * symtab.h (struct symtab): Make the primary field a bitfield. New
5293 field locations_valid.
5294
d8228535
JK
52952011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5296
5297 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5298 (classify_inner_name): Call cp_lookup_nested_type with
5299 yylval.tsym.type.
5300 * cp-namespace.c (cp_lookup_nested_type): New variable
5301 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5302 type_name_no_tag_or_error with saved_parent_type.
5303 * dwarf2read.c (load_partial_dies): Read in any children of
5304 DW_TAG_typedef with complaint in such case.
5305 * gdbtypes.c (type_name_no_tag_or_error): New function.
5306 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5307 * valops.c (destructor_name_p): New comment for parameter type. Remove
5308 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5309 * value.h (destructor_name_p): Remove type const.
5310
1976171a
JK
53112011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5312
5313 * symtab.c (compare_symbol_name): New function.
5314 (completion_list_add_name, expand_partial_symbol_name): Call it,
5315 remove the variable ncmp.
5316 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5317 gdb_assert it.
5318
a9634178
TJB
53192011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5320
5321 Demote to sw watchpoint only in update_watchpoint.
5322 * breakpoint.c (update_watchpoint): Change between software and
5323 hardware watchpoint for all kinds of watchpoints, not just
5324 read/write ones. Determine b->exact value here instead of
5325 in watch_command_1. Error out if there are not enough resources
5326 for a read or access hardware watchpoint.
5327 (watch_command_1): Remove logic of checking whether there are
5328 enough resources available, since update_watchpoint will do that
5329 work now. Don't set b->exact here. Catch exceptions thrown by
5330 update_watchpoint and delete the watchpoint.
5331 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5332 Use target_exact_watchpoints instead.
5333 (delete_breakpoint): Notify observers only if deleted watchpoint
5334 has a breakpoint number assigned to it.
5335
4c67c798
JJ
53362011-05-05 Janis Johnson <janisjo@codesourcery.com>
5337
5338 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5339
a3fcb948
JG
53402011-05-05 Jerome Guitton <guitton@adacore.com>
5341
5342 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5343 New functions.
5344 (i386_stack_tramp_frame_unwind): New static global.
5345 (i386_match_pattern): New function, extracted from i386_match_insn.
5346 (i386_match_insn): Use i386_match_pattern.
5347 (i386_match_insn_block): New function.
5348 (i386_tramp_chain_in_reg_insns)
5349 (i386_tramp_chain_on_stack_insns): New static variables.
5350 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5351 of unwinders.
5352
4d393d60
JM
53532011-05-04 Joseph Myers <joseph@codesourcery.com>
5354
5355 * configure.host (xscale*): Don't handle target.
5356 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5357 handle targets.
5358
f70bd40b
YQ
53592011-05-04 Yao Qi <yao@codesourcery.com>
5360
5361 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5362
dd3295ee
JB
53632011-05-03 Joel Brobecker <brobecker@adacore.com>
5364
5365 Revert:
5366 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5367 | * elfread.c (elf_symtab_read): Stop memory leak.
5368
90375a0e
PM
53692011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5370
5371 * nto-tdep.c (nto_target): Replace deprecated call to
5372 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5373
d07205c2
JK
53742011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5375
5376 Fix false GCC warning.
5377 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5378
1e718ff1
TJB
53792011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5380
5381 * breakpoint.c (update_watchpoint): Move code to change
5382 the enable state of breakpoint from here ...
5383 (do_enable_breakpoint): ... to here.
5384
35bef4fd
TT
53852011-04-26 Andrew Gontarek <andrewg@cray.com>
5386
78290264
PP
5387 * valprint.c (val_print_array_elements): Fixed poor performance
5388 of printing very large arrays with repeat_count_threshold set
5389 to unlimited. New comment.
35bef4fd 5390
38a714bb
TT
53912011-04-29 Tom Tromey <tromey@redhat.com>
5392
5393 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5394 (mi_parse): Likewise.
5395 * breakpoint.c (break_range_command): Use sizeof char*, not
5396 char**.
5397 (create_breakpoint): Likewise.
5398 (parse_breakpoint_sals): Likewise.
5399
eb73ad13
PA
54002011-04-29 Pedro Alves <pedro@codesourcery.com>
5401
5402 * linux-nat.c (linux_child_remove_fork_catchpoint)
5403 (linux_child_remove_vfork_catchpoint)
5404 (linux_child_remove_exec_catchpoint): New functions.
5405 (linux_target_install_ops): Install them.
5406
d65aec65
PM
54072011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5408
5409 PR mi/12531
5410
5411 * varobj.c (install_default_visualizer): Do not install a
5412 visualizer if the varobj is CPLUS_FAKE_CHILD.
5413 (construct_visualizer): Likewise.
5414
165195f4
JK
54152011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5416
5417 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5418 case insensitive comparison.
5419
30852783
UW
54202011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5421
5422 * infrun.c (proceed): Revert previous change.
5423 (resume): Instead, handle the case of signal delivery while stepping
5424 off a breakpoint location here, and only if software single-stepping
5425 is used. Handle nested signals.
5426
7ff120b4
YQ
54272011-04-28 Yao Qi <yao@codesourcery.com>
5428
5429 * arm-tdep.c (copy_unmodified): Rename to ...
5430 (arm_copy_unmodified): .. this. New.
5431 (copy_preload): Move common part to ...
5432 (install_preload): .. this. New.
5433 (arm_copy_preload): New.
5434 (copy_preload_reg): Move common part to ...
5435 (install_preload_reg): ... this. New.
5436 (arm_copy_preload_reg): New.
5437 (copy_b_bl_blx): Move common part to ...
5438 (install_b_bl_blx): .. this. New.
5439 (arm_copy_b_bl_blx): New.
5440 (copy_bx_blx_reg): Move common part to ...
5441 (install_bx_blx_reg): ... this. New.
5442 (arm_copy_bx_blx_reg): New.
5443 (copy_alu_reg): Move common part to ...
5444 (install_alu_reg): ... this. New.
5445 (arm_copy_alu_reg): New.
5446 (copy_alu_shifted_reg): Move common part to ...
5447 (install_alu_shifted_reg): ... this. New.
5448 (copy_ldr_str_ldrb_strb): Move common part to ...
5449 (install_ldr_str_ldrb_strb): ... this. New.
5450 (arm_copy_ldr_str_ldrb_strb): New.
5451 (copy_copro_load_store): Move some common part to ...
5452 (install_copy_copro_load_store): ... this. New.
5453 (arm_copy_copro_load_store): New.
5454 (copy_svc): Delete.
5455 (arm_copy_svc): Renamed from copy_svc.
5456 (copy_undef): Delete.
5457 (arm_copy_undef): Renamed from copy_undef.
5458 (decode_ext_reg_ld_st): Delete.
5459 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5460 (decode_svc_copro): Delete.
5461 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5462 (copy_copro_load_store, copy_alu_imm): update callers.
5463 (copy_extra_ld_st, copy_block_xfer): Likewise.
5464 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5465 (decode_miscellaneous, decode_dp_misc): Likewise.
5466 (decode_ld_st_word_ubyte, decode_media): Likewise.
5467 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5468 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5469 (decode_unconditional, decode_miscellaneous): Likewise.
5470 (decode_media, decode_b_bl_ldmstm): Likewise.
5471 (arm_process_displaced_insn): Likewise..
5472 (decode_misc_memhint_neon): Delete.
5473 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5474 (decode_miscellaneous): Delete.
5475 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5476 (decode_dp_misc): Delete.
5477 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5478 (decode_ld_st_word_ubyte): Delete.
5479 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5480 (decode_media): Delete.
5481 (arm_decode_media): Renamed from decode_media.
5482 (decode_b_bl_ldmstm): Delete.
5483 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5484 (decode_ext_reg_ld_st): Delete.
5485 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5486 (decode_unconditional): Delete.
5487 (arm_decode_unconditional): Renamed from decode_unconditional.
5488
559a7a62
JK
54892011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5490
5491 Case insensitive lookups implementation.
5492 * dwarf2read.c: Include ctype.h.
5493 (struct mapped_index): New field version.
5494 (mapped_index_string_hash): New parameter index_version. New comment
5495 for it. Call tolower appropriately.
5496 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5497 Choose the right index version for mapped_index_string_hash.
5498 (dwarf2_read_index): Support also the index version 5. Initialize the
5499 new struct mapped_index field version.
5500 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5501 (find_slot): Explain the version needs. Pass INT_MAX for the new
5502 parameter.
5503 (write_psymtabs_to_index): Produce version 5.
5504 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5505 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5506 * psymtab.c (lookup_partial_symbol): Find the
5507 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5508 entries.
5509 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5510 NAME lowercasing.
5511 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5512 (completion_list_add_name): New variable ncmp, initialize it, use it.
5513 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5514 * utils.c (strcmp_iw): Support case_sensitive_off.
5515 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5516 New function comment part. New variables saved_string1,
5517 saved_string2 and case_pass. Add a proper second pass.
5518
681bf369
JK
55192011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5520
5521 Replace re_comp/re_exec by regcomp/regexec.
5522 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5523 (search_symbols_name_matches): Use them, use regexec.
5524 (search_symbols): New variable retval_chain, adjust the use of
5525 old_chain against it. Replace re_comp by regcomp. Use the new struct
5526 search_symbols_data fields, use regexec instead of re_exec.
5527
b11b1f88
JK
55282011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5529
5530 Format the code for the next patch.
5531 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5532 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5533 New variables c1 and c2.
5534
2484c66b
UW
55352011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5536
5537 * infrun.c (proceed): Do not single-step into signal delivery
5538 when stepping off a breakpoint location.
5539 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5540 (insert_step_resume_breakpoint_at_caller): Likewise.
5541 (insert_step_resume_breakpoint_at_sal): Likewise.
5542 (insert_longjmp_resume_breakpoint): Likewise.
5543
47423772
YQ
55442011-04-27 Yao Qi <yao@codesourcery.com>
5545
5546 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5547
13bdd2e7
JB
55482011-04-27 Joel Brobecker <brobecker@adacore.com>
5549
5550 * procfs.c (procfs_pass_signals): Fix advance declaration.
5551
2455069d
UW
55522011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5553
5554 * target.h (struct target_ops): Remove to_notice_signals;
5555 add to_pass_signals.
5556 (target_notice_signals): Remove.
5557 (target_pass_signals): Add prototype.
5558 * target.c (update_current_target): Remove to_notice_signals;
5559 mention to_pass_signals.
5560 (target_pass_signals): New function.
5561 (debug_to_notice_signals): Remove.
5562 (setup_target_debug): Do not install debug_to_notice_signals.
5563
5564 * infrun.c (signal_pass): New global.
5565 (resume): Call target_pass_signals.
5566 (handle_inferior_event): Report all signals while stepping over
5567 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5568 are re-inserted when stepping over a signal handler.
5569 (signal_cache_update): New function.
5570 (signal_stop_update): Call it.
5571 (signal_print_update): Likewise.
5572 (signal_pass_update): Likewise.
5573 (handle_command): Call signal_cache_update and target_pass_signals
5574 instead of target_notice_signals.
5575 (_initialize_infrun): Initialize signal_pass.
5576
5577 * linux-nat.c (pass_mask): New global.
5578 (linux_nat_pass_signals): New function.
5579 (linux_nat_create_inferior): Report all signals initially.
5580 (linux_nat_attach): Likewise.
5581 (linux_nat_resume): Use pass_mask to decide whether to directly
5582 handle an inferior signal.
5583 (linux_nat_wait_1): Likewise.
5584 (linux_nat_add_target): Install to_pass_signals callback.
5585
5586 * nto-procfs.c (notice_signals): Remove.
5587 (procfs_resume): Do not call notice_signals.
5588 (procfs_notice_signals): Remove.
5589 (procfs_pass_signals): New function.
5590 (init_procfs_ops): Install to_pass_signals callback instead of
5591 to_notice_signals callback.
5592 (_initialize_procfs): Report all signals initially.
5593
5594 * procfs.c (procfs_notice_signals): Remove.
5595 (procfs_pass_signals): New function.
5596 (procfs_target): Install to_pass_signals callback instead of
5597 to_notice_signals callback.
5598 (register_gdb_signals): Remove.
5599 (procfs_debug_inferior): Report all signals initially.
5600 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5601
5602 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5603 parameters; use them instead of calling signal_..._state routines.
5604 (remote_notice_signals): Remove.
5605 (remote_start_remote): Report all signals initially.
5606 (remote_resume): Do not call remote_pass_signals.
5607 (_initialize_remote): Install to_pass_signals callback instead of
5608 to_notice_signals callback.
5609
46c6471b
PA
56102011-04-27 Pedro Alves <pedro@codesourcery.com>
5611
5612 * breakpoint.c (user_settable_breakpoint): Delete.
5613 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5614 (delete_command): Check user_breakpoint_p instead of looking at
5615 the breakpoint's type.
5616 (disable_command): Ditto.
5617 (enable_command): Ditto.
5618 (delete_trace_command): Use user_breakpoint_p instead of looking
5619 at the breakpoint number directly. When checking if there are
5620 user visible tracepoints, in order to know whether to ask the user
5621 for confirmation, check whether the breakpoint is actually a
5622 tracepoint.
5623
f6d90398
VP
56242011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5625
5626 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5627 compilation.
5628
8d3788bd
VP
56292011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5630
5631 MI breakpoint notifications.
5632
f33edef8
PP
5633 * annotate.c (breakpoint_changed): Adjust parameter type.
5634 * breakpoint.c (set_breakpoint_condition): Adjust to change
5635 in breakpoint_modified type.
5636 (breakpoint_set_commands): Likewise.
5637 (do_map_commands_command): Likewise.
5638 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5639 changed after bumping hit count.
5640 (bpstat_stop_status): Likewise.
5641 (print_one_breakpoint_location): Don't wrap in tuple here.
5642 (print_one_breakpoint): Always print individual locations.
5643 For locations, use unnamed tuple.
5644 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5645 has changed.
5646 (create_catchpoint, create_syscall_event_catchpoint): Call
5647 breakpoint_created obsever.
5648 (mention): Don't call breakpoint_created observer.
5649 (create_breakpoint_sal): Call breakpoint_created observer.
5650 (create_breakpoint, watch_command_1): Likewise.
5651 (create_ada_exception_breakpoint): Likewise.
5652 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5653 (locations_are_equal): New.
5654 (update_breakpoint_locations): If locations were changed, notify.
5655 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5656 Call breakpoint_modified observer.
5657
5658 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5659 (mi_cmd_break_insert): Don't set observers for modify and delete.
5660 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5661 (mi_breakpoint_created, mi_breakpoint_deleted)
5662 (mi_breakpoint_modified): New.
5663 (mi_interpreter_init): Hook the above.
5664 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5665 while -break-* commands are executing.
5666 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5667 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5668 (mi_redirect): New.
5669 (mi_ui_out_impl): Hook in mi_redirect.
5670 (mi_field_skip): True to the name, skip the field, don't output
5671 a field with an empty value.
5672
5673 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5674 (gdbpy_breakpoint_deleted): Adjust.
5675 * tui/tui-hooks.c (tui_event_create_breakpoint)
5676 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 5677
a8f42b45
UW
56782011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5679
5680 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5681 (procfs_remove_hw_watchpoint): Likewise.
5682
57e12211
TT
56832011-04-26 Michael Walle <michael@walle.cc>
5684
5685 * remote.c (remote_start_remote): Ack packet after sending the
5686 interrupt sequence.
5687
af96c192
YQ
56882011-04-26 Yao Qi <yao@codesourcery.com>
5689
f33edef8
PP
5690 * linux-nat.c: Move common macros to ...
5691 Include linux-ptrace.h.
5692 * common/linux-ptrace.h: ... here. New.
af96c192 5693
3e03848b
JK
56942011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5695
5696 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5697 !objfile_has_partial_symbols. New comment.
5698 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5699 SYM_READ_PSYMBOLS is not present. Extend the comment.
5700 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5701
1ae0d051
JK
57022011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5703
5704 * defs.h (ENUM_BITFIELD): Remove.
5705
03f2bd59
JK
57062011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5707 Eli Zaretskii <eliz@gnu.org>
5708
5709 * NEWS: Document the new gdbserver --once option.
5710
4161fbb0
JZ
57112011-04-21 Jie Zhang <jzhang918@gmail.com>
5712
5713 * MAINTAINERS: Update my email address.
5714
bcb28afc
PM
57152011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5716
5717 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5718 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5719 function call if __STDC_ISO_10646__ macro is defined.
5720 (intermediate_encoding): New prototype.
5721 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5722 to generate compile time error for unsupported gdb_wchar_t size.
5723 (ENDIAN_SUFFIX): New macro.
5724 (intermediate_encoding): New function.
5725
7b08b9eb
JK
57262011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5727
5728 * ada-lang.c (struct add_partial_datum): Update the comment for
5729 expand_partial_symbol_name.
5730 (ada_add_partial_symbol_completions): Rename to ...
5731 (ada_expand_partial_symbol_name): ... here, change return type, update
5732 function comment, call symbol_completion_match instead of
5733 symbol_completion_add.
5734 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5735 and ada_expand_partial_symbol_name.
5736 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5737 FILE_MATCHER.
5738 (dw2_map_symbol_names): Remove.
5739 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5740 * psymtab.c (map_symbol_names_psymtab): Remove.
5741 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5742 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5743 order.
5744 (psym_functions): Unlist map_symbol_names_psymtab.
5745 (map_partial_symbol_names): Rename to ...
5746 (expand_partial_symbol_names): ... here, change the FUN type, call
5747 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5748 * psymtab.h (map_partial_symbol_names): Rename to ...
5749 (expand_partial_symbol_names): ... here, change the FUN type.
5750 * symfile.h (struct quick_symbol_functions): Update the description of
5751 expand_symtabs_matching. Remove map_symbol_names.
5752 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5753 (struct add_name_data): Update the comment for
5754 expand_partial_symbol_name.
5755 (add_partial_symbol_name): Rename to ...
5756 (expand_partial_symbol_name): ... here. Replace
5757 completion_list_add_name call by strncmp.
5758 (default_make_symbol_completion_list_break_on): Use now
5759 expand_partial_symbol_names and expand_partial_symbol_name.
5760 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5761
90476074
TT
57622011-04-20 Tom Tromey <tromey@redhat.com>
5763
5764 * dwarf2read.c (save_gdb_index_command): Replace format
5765 documentation with a pointer to the manual.
5766
c21236dc
PA
57672011-04-20 Pedro Alves <pedro@codesourcery.com>
5768
5769 * regcache.c: Include remote.h.
5770 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5771 (regcache_dump): Handle regcache_dump_remote.
5772 (maintenance_print_remote_registers): New function.
5773 (_initialize_regcache): Install "maint print remote-registers"
5774 command.
5775 * remote.c (map_regcache_remote_table): New function, factored out
5776 from ...
5777 (init_remote_state): ... here.
5778 (remote_register_number_and_offset): New.
5779 * remote.h (remote_register_number_and_offset): Declare.
5780
b78974c3
PA
57812011-04-20 Pedro Alves <pedro@codesourcery.com>
5782
5783 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5784 null_ptid, assume and allow a NULL address space, instead of
5785 asking the target for the ptid's address space.
5786 * infrun.c (ptid_is_pid): Remove assertion.
5787
7a9dd1b2
TT
57882011-04-19 Tom Tromey <tromey@redhat.com>
5789
5790 * windows-tdep.c (windows_xfer_shared_library):
5791 * windows-nat.c (get_module_name, windows_make_so):
5792 * v850-tdep.c (v850_handle_pushm):
5793 * utils.c (null_cleanup, gdb_realpath):
5794 * ui-out.c (get_next_header):
5795 * tracepoint.c (clear_traceframe_info):
5796 * symtab.c (lookup_symtab):
5797 * serial.h (struct serial_ops):
5798 * mipsread.c (read_alphacoff_dynamic_symtab):
5799 * infcmd.c (print_return_value):
5800 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5801 * f-exp.y (parse_number):
5802 * exceptions.c (catch_exceptions):
5803 * dummy-frame.c (dummy_frame_this_id):
5804 * defs.h (struct cleanup):
5805 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5806 * arm-tdep.c (arm_push_dummy_call):
5807 * amd64-tdep.h (amd64_collect_xsave):
5808 * amd64-tdep.c (amd64_collect_xsave):
5809 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5810 * README (typing): Remove duplicate words.
5811 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5812 * infrun.c (siginfo_value_read): Fix typo.
5813 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5814 * top.c (source_line_number): Add comma.
5815
9941e0c5
MK
58162011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5817
5818 * thread.c (any_live_thread_of_process): Prioritize threads
5819 that are not executing.
5820 * gdbthread.h (any_live_thread_of_process): Update comment
5821 as per above change.
5822
ed4b0e6a
AS
58232011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5824
5825 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5826 (scan_xcoff_symtab): Likewise.
5827
9b13a2db
PM
58282011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5829
5830 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5831 inside if clause.
5832
1c6e1b0d
PM
58332011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5834 Pedro Alves <pedro@codesourcery.com>
5835
5836 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5837 variables to simplify code and avoid == operator at end of
5838 line as this is against GNU coding standards.
5839
74de0234
PM
58402011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5841
5842 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5843 lm_name to name_lm to avoid conflict with lm_name function.
5844
b23518f0
PM
58452011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5846
5847 ARI fixes: Use only lowercase function name for static functions.
5848 * nto-tdep.c (LM_ADDR): Rename to...
5849 (lm_addr): New function name.
5850 (nto_relocate_section_addresses): Adapt to change above.
5851 * solib-sunos.c (LM_ADDR): Rename to...
5852 (lm_addr): New function name.
5853 (LM_NEXT): Rename to...
5854 (lm_next): New function name.
5855 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5856 function name changes above.
5857 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5858 (lm_addr_from_link_map): New function name.
5859 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5860 (has_lm_dynamic_from_link_map): New function name.
5861 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5862 (lm_dynamic_from_link_map): New function name.
5863 (LM_ADDR_CHECK): Rename to...
5864 (lm_addr_check): New function name.
5865 (LM_NEXT): Rename to...
5866 (lm_next): New function name.
5867 (LM_PREV): Rename to...
5868 (lm_prev): New function name.
5869 (LM_NAME): Rename to...
5870 (lm_name): New function name.
5871 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5872 (ignore_first_link_map_entry): New function name.
5873 (svr4_keep_data_in_core): Adapt to function name changes above.
5874 (svr4_current_sos): Likewise.
5875 (enable_break): Likewise.
5876 (svr4_relocate_section_addresses): Likewise.
5877
1448a0a2
PM
58782011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5879
5880 ARI cleanup.
5881 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5882 sprintf. Simplify code and avoid loosing memory.
5883 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5884 (call0_frame_cache): Remove && operator from end of line.
5885
02835898
JK
58862011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5887
5888 Fix libraries displacement if they change whether they were prelinked.
5889 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5890 does not match. Comment why.
5891
9a845ea2
JK
58922011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5893
5894 * corelow.c: Include wrapper.h.
5895 (core_open): Call now gdb_target_find_new_threads.
5896 * wrapper.c: Include target.h.
5897 (gdb_target_find_new_threads): New.
5898 * wrapper.h (gdb_target_find_new_threads): New declaration.
5899
254f582e
JK
59002011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5901
5902 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5903 even if !TARGET_HAS_EXECUTION.
5904
63524580
JK
59052011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5906
5907 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5908 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5909 bfd_get_synthetic_symtab.
5910 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5911 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5912 parameter parent, remove the call to add_separate_debug_objfile.
5913 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5914 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5915 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5916 parent, new comment for it, call add_separate_debug_objfile for it.
5917 (symbol_file_add_separate): Pass objfile as the parameter parent,
5918 remove the call to add_separate_debug_objfile.
5919 (symbol_file_add_from_bfd): New parameter parent, pass it.
5920 (symbol_file_add): Pass NULL to the new parameter parent.
5921 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5922
90359a16
JK
59232011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5924
5925 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5926 BSF_SYNTHETIC.
5927
626e7282
JK
59282011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5929
5930 Fix Python access to inlined frames.
5931 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5932 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5933
cf31e6f9
TT
59342011-04-15 Tom Tromey <tromey@redhat.com>
5935
5936 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5937
c8d895f1
GB
59382011-04-15 Gary Benson <gbenson@redhat.com>
5939
5940 * MAINTAINERS: Add myself to write-after-approval section.
5941
56a9aa1d
MF
59422011-04-14 Mike Frysinger <vapier@gentoo.org>
5943
5944 * remote-sim.c (sim_command_completer): New function.
5945 (_initialize_remote_sim): Set completer to sim_command_completer.
5946
ba770c9c
TJB
59472011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5948
5949 * breakpoint.c (print_exception_catchpoint): Rename to ...
5950 (print_it_exception_catchpoint): ... this.
5951 (gnu_v3_exception_catchpoint_ops): Update with new name
5952 for print_it_exception_catchpoint.
5953
51bf2553
EBM
59542011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5955
5956 * MAINTAINERS: Add myself for write after approval privileges.
5957
d242658c
MP
59582011-04-13 Marek Polacek <mpolacek@redhat.com>
5959
5960 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5961
4a4106ca
TJB
59622011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5963
5964 * breakpoint.c (watch_command_1): Remove colon from exp_string.
5965
26063d49
TJB
59662011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5967
5968 * breakpoint.c (save_breakpoints): Verify whether
5969 breakpoint_ops.print_recreate is defined before calling it.
5970
7782b183
GB
59712011-04-11 Gary Benson <gbenson@redhat.com>
5972
5973 Fix failure with --enable-maintainer-mode.
5974 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5975
e8930875
JK
59762011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5977
5978 Code cleanup.
5979 * symtab.c (search_symbols): Reorder the KIND description in the
5980 function comment. Remove the unused 4th element of types, types2,
5981 types3 and types4. New gdb_assert on KIND.
5982 (symtab_symbol_info): Remove the unused 4th element of classnames.
5983 New gdb_assert on KIND.
5984 * symtab.h (enum search_domain): New warning in the enum comment.
5985 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5986 TYPES_DOMAIN.
5987
b4f2f049
JK
59882011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5989
5990 Fix crash of gdb save-index on a STABS file.
5991 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5992 PSYMTABS_ADDRMAP.
5993
60d5a603
JK
59942011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5995
5996 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5997 * dwarf2read.c: Include ctype.h.
5998 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5999 functions.
6000 (dwarf2_add_field): Fix new_field->accessibility by calling
6001 dwarf2_default_access_attribute. Restructure setting accessibility
6002 vs. virtuality.
6003 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6004 is_private and is_protected by calling
6005 dwarf2_default_access_attribute.
6006
e0f68161
KB
60072011-04-08 Kevin Buettner <kevinb@redhat.com>
6008
6009 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6010 to the initialization.
6011
2e1aae43
SE
60122011-04-08 Steve Ellcey <sje@cup.hp.com>
6013
6014 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6015 initalization.
6016
c6ca3dab
PM
60172011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6018
6019 Remove support for old Cygwin 1.5 versions.
6020 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6021 function on old Cygwin version.
6022 * windows-nat.c: Remove cygwin version check and always define
6023 __USEWIDE for Cygwin compilation.
6024
bd18283a
YQ
60252011-04-07 Yao Qi <yao@codesourcery.com>
6026
6027 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6028 and TO.
6029 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6030 (arm_copy_svc): Remove parameters INSN and TO.
6031 (decode_svc_copro): Update caller.
6032 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6033 from function pointer `copy_svc_os'.
6034
8c8dba6d
YQ
60352011-04-07 Yao Qi <yao@codesourcery.com>
6036
6037 * arm-tdep.c (cleanup_branch): Set a correct return address in
6038 LR for ARM and Thumb.
6039
59d7bcaf
JK
60402011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6041
6042 Code cleanup.
6043 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6044 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6045 in the function comment, a new note on values compatibility.
6046 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6047 * symtab.h (SYMBOL_HASH_NEXT): New.
6048
e7db58ea
TJB
60492011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6050
6051 * ppc-linux-nat.c (check_condition): Add len output parameter.
6052 Set it based on the memory region referenced in the condition
6053 expression. Update all callers.
6054
9f743ef6
JK
60552011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6056
6057 Fix crash regression on systems featuring .gdb_index.
6058 * objfiles.c (free_objfile): Move the
6059 forget_cached_source_info_for_objfile call earlier. Comment it.
6060 Extend the comment for objfile_free_data.
6061
9182c5bc
JK
60622011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6063
6064 Fix regression of displaying the debug format.
6065 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6066 subfile.
6067
04bd08de
TT
60682011-04-04 Tom Tromey <tromey@redhat.com>
6069
6070 * cli/cli-interp.c (struct captured_execute_command_args):
6071 Remove.
6072 (do_captured_execute_command): Remove.
6073 (safe_execute_command): Use TRY_CATCH.
6074 * cli/cli-script.c (struct wrapped_read_command_file_args):
6075 Remove.
6076 (wrapped_read_command_file): Remove.
6077 (script_from_file): Use TRY_CATCH.
6078 * exceptions.c (catch_exception): Remove.
6079 * exceptions.h (catch_exception): Remove.
6080 (deprecated_throw_reason): Update comment.
6081 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6082 argument to 'context'.
6083 (mi_execute_command): Use TRY_CATCH.
6084 * remote.c (struct start_remote_args): Remove.
6085 (remote_start_remote): Update; change arguments.
6086 (remote_open_1): Use TRY_CATCH.
6087
58438ac1
TT
60882011-04-04 Tom Tromey <tromey@redhat.com>
6089
6090 * tracepoint.c (scope_info): Update.
6091 * symtab.c (decode_line_spec): Update.
6092 * python/python.c (gdbpy_decode_line): Update.
6093 * linespec.h (decode_line_1): Update.
6094 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6095 (decode_compound, find_method, symtab_from_filename)
6096 (decode_variable): Likewise.
6097 * cli/cli-cmds.c (edit_command): Update.
6098 (list_command): Update.
6099 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6100 argument.
6101 (create_breakpoint): Update.
6102 (until_break_command): Update.
6103 (addr_string_to_sals): Update.
6104 (decode_line_spec_1): Update.
6105
b78a6381
TT
61062011-04-04 Tom Tromey <tromey@redhat.com>
6107
6108 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6109 (do_captured_parse_breakpoint): Remove.
6110 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6111 Use TRY_CATCH directly.
6112
00174a86
TT
61132011-04-04 Tom Tromey <tromey@redhat.com>
6114
6115 * symtab.h (free_symtab): Remove.
6116 (forget_cached_source_info_for_objfile): Declare.
6117 * symmisc.c (free_symtab): Remove.
6118 * source.c (forget_cached_source_info_for_objfile): New function.
6119 (forget_cached_source_info): Use it.
6120 * objfiles.c (free_objfile): Simplify check before calling
6121 clear_current_source_symtab_and_line. Call
6122 forget_cached_source_info_for_objfile.
6123
30cc903e
TT
61242011-04-04 Tom Tromey <tromey@redhat.com>
6125
6126 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6127 (new_symtab): Don't set `free_code' on symtab.
6128 (new_linetable): Properly handle size==0.
6129 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6130 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6131 free_func.
6132 * jv-lang.c (struct jv_per_objfile_data): New.
6133 (jv_per_objfile_free): Free the data.
6134 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6135 (get_java_class_symtab): Set the `dict' field on the
6136 jv_per_objfile_data.
6137 (free_class_block): Remove.
6138 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6139 the symtab.
6140
0c2e6019
TT
61412011-04-04 Tom Tromey <tromey@redhat.com>
6142
6143 * symfile.c (reread_symbols): Update.
6144 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6145 field.
6146 * objfiles.c (allocate_objfile): Update.
6147 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6148 declare.
6149 * cp-namespace.c (lookup_symbol_file): Don't call
6150 lookup_possible_namespace_symbol.
6151 (initialize_namespace_symtab, get_possible_namespace_block)
6152 (free_namespace_block, cp_check_possible_namespace_symbols)
6153 (check_possible_namespace_symbols_loop)
6154 (check_one_possible_namespace_symbol)
6155 (lookup_possible_namespace_symbol): Remove.
6156 (maintenance_cplus_namespace): Replace with notice.
6157 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6158
554d387d
TT
61592011-04-04 Tom Tromey <tromey@redhat.com>
6160
6161 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6162 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6163 * symmisc.c (free_symtab): Don't free debugformat.
6164 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6165 (record_debugformat, record_producer): Document.
6166 * buildsym.c (end_symtab): Don't save debugformat and producer
6167 names on obstack.
6168 (end_symtab): Don't free debugformat and producer fields.
6169 (record_debugformat): Don't call xstrdup.
6170 (record_producer): Likewise.
6171
d4d4db8a
TT
61722011-04-04 Tom Tromey <tromey@redhat.com>
6173
6174 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6175 (source_line_charpos, source_charpos_line): Remove.
6176
8903c50d
TT
61772011-04-04 Tom Tromey <tromey@redhat.com>
6178
6179 * symtab.h (domain_enum): Split in two...
6180 (enum search_domain): New.
6181 (search_symbols): Update.
6182 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6183 redundant declarations.
6184 (search_symbols): Change 'kind' argument to search_domain.
6185 Update.
6186 (print_symbol_info): Likewise.
6187 (symtab_symbol_info): Likewise.
6188 * symfile.h (struct quick_symbol_functions)
6189 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6190 <expand_symtabs_matching>: Likewise.
6191 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6192 (expand_symtabs_matching_via_partial): Update.
6193 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6194 (dw2_expand_symtabs_for_function): Update.
6195 * block.h: Moved anonymous enum...
6196 * defs.h (enum block_enum): ... here. Now named.
6197
d9351f5f 61982011-04-03 Joel Brobecker <brobecker@adacore.com>
6199
6200 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6201 * version.in: Bump version to 7.3.50.20110403-cvs.
6202
d6e00af6
JB
62032011-04-03 Joel Brobecker <brobecker@adacore.com>
6204
6205 * NEWS: Create a new section for the next release branch.
6206 Rename the section of the current branch, now that it has
6207 been cut.
6208
2b9e5ea6
UW
62092011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6210
6211 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6212 for "fpscr" in target description.
6213
0cf03b49
JK
62142011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6215
6216 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6217 initialize it. Delay HASH initialization. Strip the part after open
6218 parenthesis for languages with qualifiers. Call do_cleanups.
6219
5d901a73
TT
62202011-04-01 Tom Tromey <tromey@redhat.com>
6221
6222 * utils.c (report_command_stats): Don't print `-' for negative
6223 number.
6224
b0dd7688
JB
62252011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6226
6227 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6228 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6229 typedefs.
6230
956a9fb9
JB
62312011-04-01 Joel Brobecker <brobecker@adacore.com>
6232
6233 * breakpoint.h (bpdisp_text): Add declaration.
6234 * breakpoint.c (bpdisp_text): Make non-static.
6235 * ada-lang.c: #include "mi/mi-common.h".
6236 (print_it_exception): Rewrite to improve GDB/MI output.
6237
3352110b
PA
62382011-04-01 Pedro Alves <pedro@codesourcery.com>
6239
6240 * arm-tdep.h (struct address_space): Add forward declaration.
6241
18819fa6
UW
62422011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6243
6244 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6245 * arm-tdep.c (arm_override_mode): New global.
6246 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6247 execution mode heuristics.
6248 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6249 second single-step breakpoint if needed, using
6250 arm_insert_single_step_breakpoint.
6251 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6252 ARM execution mode, do not call thumb_get_next_pc_raw.
6253 (arm_get_next_pc): Encode execution mode in return value. Call
6254 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6255 (arm_insert_single_step_breakpoint): New function.
6256 (arm_software_single_step): Call it.
6257 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6258 argument to return execution mode of sigreturn target.
6259 (arm_linux_syscall_next_pc): Use it.
6260 (arm_linux_copy_svc): Update call.
6261 (arm_linux_software_single_step): Call
6262 arm_insert_single_step_breakpoint.
6263
a6e293d1
JK
62642011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6265
6266 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6267 the comment.
6268
a4c8e806
TT
62692011-03-31 Tom Tromey <tromey@redhat.com>
6270
6271 * varobj.c (update_dynamic_varobj_children): Properly handle
6272 errors from iterator.
6273
df5c6c50
JK
62742011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6275
6276 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6277 struct linkage name twice.
6278
1dae3efc
TT
62792011-03-31 Tom Tromey <tromey@redhat.com>
6280
6281 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6282 missing ">" to message.
6283
f4f7ab05
TT
62842011-03-31 Tom Tromey <tromey@redhat.com>
6285
6286 * varobj.c (instantiate_pretty_printer): Remove duplicate
6287 'return'.
6288
fcf250e2
UW
62892011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6290
6291 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6292 if neither saved value nor register available (e.g. signal frame).
6293
ee6436e3
TJB
62942011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6295
6296 * macroexp.c (expand): Avoid uninitialized variable
6297 compiler warning.
6298
423f41a5
TJB
62992011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6300
6301 * breakpoint.c (break_range_command): Fix typo in comment.
6302
f1310107
TJB
63032011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6304 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6305
6306 Implement support for PowerPC BookE ranged breakpoints.
6307 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6308 * breakpoint.h (struct bp_target_info) <length>: New member
6309 variable.
6310 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6311 instead of struct breakpoint as argument, and also add ASPACE
6312 and BP_ADDR arguments. Update all callers.
6313 (struct breakpoint_ops) <print_one_detail>: New method.
6314 (struct breakpoint) <addr_string_range_end>: New member variable.
6315 * breakpoint.c (breakpoint_location_address_match): Add function
6316 prototype.
6317 (insert_bp_location): Set bl->target_info.length.
6318 (breakpoint_here_p): Call breakpoint_location_address_match.
6319 (moribund_breakpoint_here_p): Likewise.
6320 (regular_breakpoint_inserted_here_p): Likewise.
6321 (breakpoint_thread_match): Likewise.
6322 (bpstat_stop_status): Likewise.
6323 (bpstat_check_location): Move call to
6324 breakpoint_ops.breakpoint_hit to the top.
6325 (print_one_breakpoint_location): Call
6326 breakpoint_ops.print_one_detail if available.
6327 (breakpoint_address_match_range): New function.
6328 (breakpoint_location_address_match): Likewise.
6329 (breakpoint_locations_match): Compare the length field of the
6330 locations too.
6331 (hw_breakpoint_used_count): Count resources used by all locations
6332 in a breakpoint, and use breakpoint_ops.resources_needed if
6333 available.
6334 (breakpoint_hit_ranged_breakpoint): New function.
6335 (resources_needed_ranged_breakpoint): Likewise.
6336 (print_it_ranged_breakpoint): Likewise.
6337 (print_one_ranged_breakpoint): Likewise.
6338 (print_one_detail_ranged_breakpoint): Likewise.
6339 (print_mention_ranged_breakpoint): Likewise.
6340 (print_recreate_ranged_breakpoint): Likewise.
6341 (ranged_breakpoint_ops): New structure.
6342 (find_breakpoint_range_end): New function.
6343 (break_range_command): Likewise.
6344 (delete_breakpoint): Free addr_string_range_end.
6345 (update_breakpoint_locations): Add SALS_END argument. Update
6346 all callers. Calculate breakpoint length if a non-zero SALS_END
6347 is given. Call breakpoint_locations_match instead of
6348 breakpoint_address_match.
6349 (reset_breakpoint): Find SaL of the end of the range if B is a
6350 ranged breakpoint.
6351 (_initialize_breakpoint): Register break-range command.
6352 * defs.h (print_core_address): Add function prototype.
6353 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6354 function.
6355 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6356 (ppc_linux_remove_hw_breakpoint): Likewise.
6357 (_initialize_ppc_linux_nat): Initialize
6358 to_ranged_break_num_registers.
6359 * target.c (update_current_target): Add comment about
6360 to_ranged_break_num_registers.
6361 (target_ranged_break_num_registers): New function.
6362 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6363 New method.
6364 (target_ranged_break_num_registers): Add function prototype.
6365 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6366 * utils.c (print_core_address): ... here.
6367
02d20e4a
UW
63682011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6369
6370 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6371 variable compiler warning.
6372
ef23e705
TJB
63732011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6374
6375 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6376 code from here ...
6377 (re_set_breakpoint): ... to here ...
6378 (addr_string_to_sals): ... and here.
6379
311e6ab3
PM
63802011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6381
6382 * Makefile.in (SFILES): Add missing C sources.
6383 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6384 Add missing headers.
6385
acd1d99c
MF
63862011-03-29 Mike Frysinger <vapier@gentoo.org>
6387
6388 * .gitignore: New file.
6389
66ee2731
MF
63902011-03-29 Mike Frysinger <vapier@gentoo.org>
6391
6392 * NEWS: Mention new cfi device simulation.
6393
53832f31
TT
63942011-03-29 Tom Tromey <tromey@redhat.com>
6395
6396 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6397 otherwise anonymous types.
6398 (dwarf2_name): Likewise.
6399 * valops.c (value_struct_elt_for_reference): Refine artificial
6400 type logic. Call error if j==-1.
6401
09b58708
JK
64022011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6403
6404 Fix false GCC warning.
6405 * infcall.c (find_function_addr): Initialize funaddr.
6406
6023c606
PM
64072011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6408
6409 Fix mingw compilation with --enable-targets=all.
6410 * remote-mips.c (gdb_usleep.h): Include header.
6411 (mips_enter_debug): Use gdb_usleep instead of sleep.
6412
0e30163f
JK
64132011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6414
6415 Support resolution of STT_GNU_IFUNC via breakpoints.
6416 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6417 bp_gnu_ifunc_resolver_return.
6418 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6419 the loop. Support bp_gnu_ifunc_resolver and
6420 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6421 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6422 breakpoints.
6423 (bptype_string, print_one_breakpoint_location): Support
6424 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6425 (user_settable_breakpoint): Return true also for
6426 bp_gnu_ifunc_resolver.
6427 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6428 bp_gnu_ifunc_resolver_return.
6429 (set_breakpoint_location_function): New parameter explicit_loc,
6430 describe it. Call find_pc_partial_function_gnu_ifunc with new
6431 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6432 EXPLICIT_LOC is not set.
6433 (set_raw_breakpoint): Set EXPLICIT_LOC for
6434 set_breakpoint_location_function.
6435 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6436 set_breakpoint_location_function.
6437 (mention): Support bp_gnu_ifunc_resolver and
6438 bp_gnu_ifunc_resolver_return.
6439 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6440 set_breakpoint_location_function.
6441 (update_breakpoint_locations): Remove static.
6442 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6443 bp_gnu_ifunc_resolver_return.
6444 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6445 bp_gnu_ifunc_resolver_return.
6446 (update_breakpoint_locations): New declaration.
6447 * elfread.c: Include gdbthread.h and regcache.h.
6448 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6449 functions.
6450 (elf_gnu_ifunc_fns): Install them.
6451 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6452 (stub_gnu_ifunc_resolver_return_stop): New functions.
6453 (stub_gnu_ifunc_fns): Install them.
6454 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6455 and gnu_ifunc_resolver_return_stop.
6456 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6457
07be84bf
JK
64582011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6459
6460 STT_GNU_IFUNC reader implementation.
6461 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6462 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6463 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6464 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6465 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6466 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6467 (elf_gnu_ifunc_resolve_addr): New.
6468 (elf_symfile_read): Call elf_rel_plt_read.
6469 (elf_gnu_ifunc_fns): New.
6470 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6471 Install elf_gnu_ifunc_fns.
6472 * infcall.c (find_function_return_type): New function.
6473 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6474 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6475 (stub_gnu_ifunc_resolve_name): New functions.
6476 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6477 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6478 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6479
300f8e10
JK
64802011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6481
6482 Code cleanup for later STT_GNU_IFUNC support.
6483 * infcall.c (find_function_addr): Remove variable code, use explicit
6484 dereferences for it. Move VALUE_TYPE initialization later.
6485
11c81455
JK
64862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6487
6488 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6489 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6490 (clear_pc_function_cache): Clear it.
6491 (find_pc_partial_function): Rename to ...
6492 (find_pc_partial_function_gnu_ifunc): ... this function. New
6493 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6494 (find_pc_partial_function): New wrapper for this function.
6495 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6496
0875794a
JK
64972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6498
6499 GDB internal type support for STT_GNU_IFUNC.
6500 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6501 (elf_symtab_read): Set mst_text_gnu_ifunc for
6502 BSF_GNU_INDIRECT_FUNCTION.
6503 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6504 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6505 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6506 nodebug_got_plt_symbol.
6507 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6508 (TYPE_GNU_IFUNC): New.
6509 (struct main_type): New field flag_gnu_ifunc.
6510 (struct builtin_type): New field builtin_func_func.
6511 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6512 nodebug_got_plt_symbol.
6513 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6514 (in_gnu_ifunc_stub): New.
6515 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6516 mst_text_gnu_ifunc.
6517 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6518 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6519 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6520 in_gnu_ifunc_stub.
6521 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6522 * symtab.c (search_symbols): Likewise.
6523 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6524 and mst_slot_got_plt.
6525 (in_gnu_ifunc_stub): New declaration.
6526
d0fb5eae
JK
65272011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6528
6529 Support a ring of related breakpoints.
6530 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6531 other functions, add gdb_assert.
6532 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6533 watchpoint_del_at_next_stop.
6534 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6535 (bpstat_stop_status): Handle ring in related_breakpoint.
6536 (set_raw_breakpoint_without_location): Initialize ring in
6537 related_breakpoint.
6538 (delete_breakpoint): Handle ring in related_breakpoint, use
6539 watchpoint_del_at_next_stop.
6540 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6541
9cded63f
TT
65422011-03-28 Tom Tromey <tromey@redhat.com>
6543
6544 PR symtab/12441:
6545 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6546 with `language_minimal'.
6547
467d42c4
UW
65482011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6549
6550 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6551 instead of checking for STT_ARM_TFUNC symbol type.
6552
62853458
TT
65532011-03-25 Tom Tromey <tromey@redhat.com>
6554
6555 * linespec.c (symbol_found): Restore line-based result for
6556 non-LOC_LABEL symbols.
6557
a7417d46
KT
65582011-03-25 Kai Tietz <ktietz@redhat.com>
6559
6560 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6561 instead of strcmp for comparison.
6562 (tui_source_is_displayed): Likewise.
6563 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6564
55f1336d
TT
65652011-03-24 Mark Wielaard <mjw@redhat.com>
6566
f33edef8
PP
6567 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6568 complaint.
6569 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6570 (find_partial_die_in_comp_unit): Likewise in comment.
6571 (read_attribute_value): Likewise.
6572 (lookup_die_type): Likewise.
6573 (dwarf_form_name): Likewise.
6574 (dump_die_shallow): Likewise.
6575 (follow_die_ref_or_sig): Likewise.
55f1336d 6576
9ef07c8c
TT
65772011-03-24 Tom Tromey <tromey@redhat.com>
6578
6579 PR breakpoints/11816:
6580 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6581 (decode_compound): Update.
6582 (find_function_symbol): New function.
6583 (decode_dollar): Update.
6584 (decode_label): Add 'function_symbol' parameter. Handle
6585 function-relative labels.
6586 (decode_variable): Update.
6587 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6588 not its line. Set `special_display' and canonical name for
6589 labels.
6590
56435ebe
TT
65912011-03-24 Tom Tromey <tromey@redhat.com>
6592
6593 * linespec.h (struct linespec_result) <special_display>: New
6594 field.
6595 * breakpoint.h (struct breakpoint) <display_canonical>: New
6596 field.
6597 * breakpoint.c (print_breakpoint_location): Respect
6598 display_canonical.
6599 (create_breakpoint_sal): Add 'display_canonical' parameter.
6600 (create_breakpoints_sal): Update.
6601 (create_breakpoint): Update.
6602
7efd8fc2
TT
66032011-03-24 Tom Tromey <tromey@redhat.com>
6604
6605 * symtab.c (decode_line_spec): Update.
6606 * linespec.c (build_canonical_line_spec): Change type of
6607 'canonical'.
6608 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6609 (find_method, decode_all_digits, decode_dollar, decode_label)
6610 (symbol_found): Likewise.
6611 (init_linespec_result): New function.
6612 * breakpoint.c (struct captured_parse_breakpoint_args)
6613 <canonical_p>: New field, replaces addr_string_p.
6614 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6615 'addr_string'.
6616 (parse_breakpoint_sals): Likewise.
6617 (do_captured_parse_breakpoint): Update.
6618 (create_breakpoint): Use struct linespec_result.
6619 (until_break_command): Update.
6620 (breakpoint_re_set_one): Update.
6621 (decode_line_spec_1): Update.
6622 * linespec.h (struct linespec_result): New.
6623 (init_linespec_result): Declare.
6624
788c8b10
PA
66252011-03-23 Pedro Alves <pedro@codesourcery.com>
6626
6627 * regcache.c (regcache_raw_read): If the target didn't supply a
6628 given raw register, mark it as unavailable.
6629
0ba1096a
KT
66302011-03-23 Kai Tietz <ktietz@redhat.com>
6631
6632 * breakpoint.c (clear_command): Use filename_cmp
6633 instead of strcmp for comparison.
6634 * buildsym.c (watch_main_source_file_lossage): Likewise.
6635 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6636 checking just for slash.
6637 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6638 strrchr and filename_cmp instead of strcmp for filenames.
6639 (add_old_header_file): Use filename_cmp
6640 instead of strcmp for comparison.
6641 * exec.c (exec_set_section_address): Likewise.
6642 * macrotab.c (macro_lookup_inclusion): Likewise.
6643 (macro_lookup_inclusion): Likewise.
6644 * elfread.c (_initialize_elfread): Likewise.
6645 (elfstab_offset_sections): Likewise.
6646 (elfstab_offset_sections): Use lbasename instead of
6647 strrchr.
6648 * mdebugread.c (parse_partial_symbols): Likewise.
6649 (arse_partial_symbols): Use filename_(n)cmp instead of
6650 str(n)cmp for comparison.
6651 * minsyms.c (lookup_minimal_symbol): Likewise.
6652 * psymtab.c (read_psymtabs_with_filename): Likewise.
6653 * solib.c (solib_read_symbols): Likewise.
6654 (reload_shared_libraries_1): Likewise.
6655 * symmisc.c (maintenance_print_symbols): Likewise.
6656 * symfile.c (separate_debug_file_exists): Likewise.
6657 (reread_symbols): Likewise.
6658 (find_separate_debug_file_by_debuglink): Likewise.
6659 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6660 * source.c (add_path): Likewise.
6661 * symtab.c (filename_seen): Likewise.
6662 (file_matches): Likewise.
6663 (print_symbol_info): Likewise.
6664 (maybe_add_partial_symtab_filename): Likewise.
6665 (make_source_files_completion_list): Likewise.
6666 * xml-syscall.c (init_sysinfo): Likewise.
6667 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6668 IS_DIR_SEPARATOR for checking for trailing path separator.
6669
dd90784c
JK
66702011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6671
6672 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6673 label abort_expression.
6674 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6675 DWARF_VALUE_OPTIMIZED_OUT.
6676
3167638f
JK
66772011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6678
6679 Code cleanup.
6680 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6681 to linkage_name. Invert its value. Update the function comment.
6682 (c_type_print_varspec_suffix): Invert it at the caller.
6683 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6684
ce406537
PA
66852011-03-22 Pedro Alves <pedro@codesourcery.com>
6686
6687 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6688 errors when reading the `stop_pc'.
6689 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6690 get_frame_pc.
6691
da5d4055
PM
66922011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6693
6694 * NEWS: Document gdb.Write stream keyword.
6695
29e0eb9c
JK
66962011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6697
6698 Revert:
6699 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6701 (dwarf2_add_field): Fix new_field->accessibility for
6702 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6703
05775840
PM
67042011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6705
f33edef8 6706 PR python/12183
05775840
PM
6707
6708 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6709 other error classes. Do not print stack trace.
6710
a0cb7835
JK
67112011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6712
6713 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6714 (dwarf2_add_field): Fix new_field->accessibility for
6715 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6716
d19f7eee
UW
67172011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6718
6719 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6720 encountering a load via a non-SP register.
6721
4a2fbb50
UW
67222011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6723
6724 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6725 field in returned unwinder.
6726
3489610d
JB
67272012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6728
6729 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6730
8c1a34e7
JB
67312012-03-21 Joel Brobecker <brobecker@adacore.com>
6732
6733 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6734 of xmalloc.
6735
8fbca658
PA
67362012-03-18 Pedro Alves <pedro@codesourcery.com>
6737
6738 * frame.c (frame_unwind_register): Throw an error if unwinding the
6739 register failed.
6740 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6741 an unwind stop reason.
6742 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6743 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6744 UNWIND_UNAVAILABLE>: New.
6745 * inline-frame.c (inline_frame_unwind): Install
6746 default_frame_unwind_stop_reason.
6747 * frame-unwind.c: Include "exceptions.h".
6748 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6749 (default_frame_unwind_stop_reason): New.
6750 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6751 (default_frame_unwind_stop_reason): Declare.
6752 (struct frame_unwind) <stop_reason>: New function pointer.
6753
6754 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6755 * dwarf2-frame.c: Include exceptions.h.
6756 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6757 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6758 computing the CFA. If such an error was thrown, set
6759 unavailable_retaddr.
6760 (dwarf2_frame_unwind_stop_reason): New.
6761 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6762 unavailable.
6763 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6764 (dwarf2_signal_frame_unwind): Ditto.
6765
6766 * amd64-tdep.c: Include "exceptions.h".
6767 (struct amd64_frame_cache): New field "base_p".
6768 (amd64_init_frame_cache): Clear it.
6769 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6770 Avoid reading registers with functions that throw if the register
6771 is not necessary to compute the frame base.
6772 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6773 swallowing NOT_AVAILABLE_ERROR.
6774 (amd64_frame_unwind_stop_reason): New.
6775 (amd64_frame_this_id): Don't build a frame id if the frame base
6776 was unavailable.
6777 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6778 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6779 base_p if the frame base was computable.
6780 (amd64_sigtramp_frame_unwind_stop_reason): New.
6781 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6782 frame base was unavailable.
6783 (amd64_sigtramp_frame_unwind): Install
6784 amd64_sigtramp_frame_unwind_stop_reason.
6785 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6786 base_p if the frame base was computable.
6787 (amd64_epilogue_frame_unwind_stop_reason): New.
6788 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6789 frame base was unavailable.
6790 (amd64_epilogue_frame_unwind): Install
6791 amd64_epilogue_frame_unwind_stop_reason.
6792 * i386-tdep.c: Include "exceptions.h".
6793 (struct i386_frame_cache): New field "base_p".
6794 (i386_init_frame_cache): Clear it.
6795 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6796 Avoid reading registers with functions that throw if the register
6797 is not necessary to compute the frame base.
6798 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6799 swallowing NOT_AVAILABLE_ERROR.
6800 (i386_frame_unwind_stop_reason): New.
6801 (i386_frame_this_id): Don't build a frame id if the frame base was
6802 unavailable.
6803 (i386_frame_prev_register): Handle unavailable SP.
6804 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6805 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6806 base_p if the frame base was computable.
6807 (i386_epilogue_frame_unwind_stop_reason): New.
6808 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6809 base was unavailable.
6810 (i386_epilogue_frame_unwind): Install
6811 i386_epilogue_frame_unwind_stop_reason.
6812 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6813 base_p if the frame base was computable.
6814 (i386_sigtramp_frame_unwind_stop_reason): New.
6815 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6816 base was unavailable.
6817 (i386_sigtramp_frame_unwind): Install
6818 i386_sigtramp_frame_unwind_stop_reason.
6819 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6820 type's size, not the register's.
6821 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6822
6823 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6824 default_frame_unwind_stop_reason.
6825 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6826 (alpha_heuristic_frame_unwind): Ditto.
6827 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6828 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6829 * avr-tdep.c (avr_frame_unwind): Ditto.
6830 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6831 Ditto.
6832 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6833 * frv-tdep.c (frv_frame_unwind): Ditto.
6834 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6835 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6836 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6837 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6838 (hppa_stub_frame_unwind): Ditto.
6839 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6840 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6841 (ia64_libunwind_frame_unwind)
6842 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6843 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6844 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6845 * m32c-tdep.c (m32c_unwind): Ditto.
6846 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6847 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6848 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6849 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6850 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6851 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6852 * mep-tdep.c (mep_frame_unwind): Ditto.
6853 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6854 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6855 (mips_stub_frame_unwind): Ditto.
6856 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6857 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6858 * mt-tdep.c (mt_frame_unwind): Ditto.
6859 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6860 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6861 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6862 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6863 (s390_sigtramp_frame_unwind): Ditto.
6864 * score-tdep.c (score_prologue_unwind): Ditto.
6865 * sh-tdep.c (sh_frame_unwind): Ditto.
6866 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6867 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6868 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6869 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6870 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6871 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6872 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6873 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6874 (sparc64obsd_trapframe_unwind): Ditto.
6875 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6876 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6877 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6878 * v850-tdep.c (v850_frame_unwind): Ditto.
6879 * vax-tdep.c (vax_frame_unwind): Ditto.
6880 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6881 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6882 * xtensa-tdep.c (xtensa_unwind): Ditto.
6883
f23d1b92
PA
68842011-03-18 Pedro Alves <pedro@codesourcery.com>
6885
6886 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6887 there's always a frame. Use get_frame_pc_if_available instead of
6888 get_frame_pc, and if there's no PC available, don't look up a
6889 symtab.
6890
1d4f5741
PA
68912011-03-18 Pedro Alves <pedro@codesourcery.com>
6892
6893 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6894 unavailable PC.
6895
dba09041
PA
68962011-03-18 Pedro Alves <pedro@codesourcery.com>
6897
6898 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6899 gracefully.
6900
9a26e44c
PA
69012011-03-18 Pedro Alves <pedro@codesourcery.com>
6902
6903 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6904 * frame.c (frame_unwind_caller_pc_if_available): New.
6905 * stack.c (frame_info): Handle unavailable PC.
6906
69072011-03-18 Pedro Alves <pedro@codesourcery.com>
6908
6909 * frame.c (frame_unwind_pc): Rename to ...
6910 (frame_unwind_pc_if_available): ... this. New `pc' output
6911 parameter. Change return type to int. Gracefully handle
6912 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6913 happened, or 1 otherwise.
6914 (frame_unwind_pc): Reimplement on top of
6915 frame_unwind_pc_if_available.
6916 (get_frame_func): Rename to ...
6917 (get_frame_func_if_available): New `pc' output parameter. Change
6918 return type to int. Gracefully handle the PC not being available.
6919 (get_frame_func): Reimplement on top of
6920 get_frame_func_if_available.
6921 (select_frame): Handle the PC being unavailable.
6922 (get_prev_frame): Handle the PC being unavailable.
6923 (get_frame_pc_if_available): New.
6924 (get_frame_address_in_block_if_available): New.
6925 (find_frame_sal): Handle the frame PC not being available.
6926 * frame.h (get_frame_pc_if_available): Declare.
6927 (get_frame_address_in_block_if_available): Declare.
6928 (get_frame_func_if_available): Declare.
6929 * stack.c (print_frame_info): Handle the PC being unavailable.
6930 (find_frame_funname): Ditto.
6931 (print_frame): Handle the PC being unavailable.
6932 (get_frame_language): Ditto.
6933 * blockframe.c (get_frame_block): Ditto.
6934 * macroscope.c (default_macro_scope): Ditto.
6935 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6936
69372011-03-18 Pedro Alves <pedro@codesourcery.com>
6938
6939 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6940 NOT_AVAILABLE_ERROR when evaluating the location expression.
6941
69422011-03-18 Pedro Alves <pedro@codesourcery.com>
6943
6944 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6945 returning that the register piece is unavailable/optimized out.
6946 (write_pieced_value): Handle get_frame_register_bytes returning
6947 that the register piece is unavailable/optimized out when doing a
6948 read-modify write of a bitfield.
6949 * findvar.c (value_from_register): Handle get_frame_register_bytes
6950 returning that the register piece is unavailable/optimized out.
6951 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6952 and `unavailablep'. Throw error on bad debug info. Use
6953 frame_register instead of frame_register_read, to fill in the new
6954 arguments.
6955 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6956 and `unavailablep'.
6957 * valops.c: (value_assign): Adjust, and handle
6958 get_frame_register_bytes failing.
6959 * spu-tdep.c: Include exceptions.h.
6960 (spu_software_single_step): Adjust, and handle
6961 get_frame_register_bytes failing.
6962 (spu_get_longjmp_target): Ditto.
6963 * gdbarch.sh (register_to_value): Change to return int. New
6964 parameters `optimizedp' and `unavailablep'.
6965 * gdbarch.h, gdbarch.c: Regenerate.
6966 * i386-tdep.c (i386_register_to_value): Adjust to new
6967 gdbarch_register_to_value interface.
6968 * i387-tdep.c (i387_register_to_value): Ditto.
6969 * i387-tdep.h (i387_register_to_value): Ditto.
6970 * alpha-tdep.c (alpha_register_to_value): Ditto.
6971 * ia64-tdep.c (ia64_register_to_value): Ditto.
6972 * m68k-tdep.c (m68k_register_to_value): Ditto.
6973 * mips-tdep.c (mips_register_to_value): Ditto.
6974 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6975
0fdb4f18
PA
69762011-03-18 Pedro Alves <pedro@codesourcery.com>
6977
6978 * findvar.c (value_of_register): Mark the value as unavailable, if
6979 the register is unavailable.
6980 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6981 (frame_register): New `unavailablep' parameter.
6982 (frame_register_read): Update comment.
6983 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6984 Set it if the register is unavailable. If the register is
6985 unavailable, clear the output buffer.
6986 (frame_register): New `unavailablep' parameter. Pass it down.
6987 (frame_unwind_register): Adjust.
6988 (put_frame_register): Adjust.
6989 (frame_register_read): Adjust. Also return false if the register
6990 is not available.
6991 (frame_register_unwind_location): Adjust.
6992 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6993 is unavailable, mark the value accordingly.
6994 * stack.c (frame_info): Handle unavailable registers.
6995
e69aa73e
PA
69962011-03-18 Pedro Alves <pedro@codesourcery.com>
6997
6998 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6999 simplify, using regcache_cooked_read.
7000
05d1431c
PA
70012011-03-18 Pedro Alves <pedro@codesourcery.com>
7002
7003 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7004 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7005 (regcache_raw_read_unsigned, regcache_raw_read_part)
7006 (regcache_cooked_read, regcache_cooked_read_signed)
7007 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7008 (regcache_cooked_read_ftype): Change return to enum
7009 register_status.
7010 * regcache.c: Include exceptions.h
7011 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7012 (do_cooked_read): Change return to enum register_status. Always
7013 forward to regcache_cooked_read.
7014 (regcache_raw_read): Change return to enum register_status. If
7015 the register is not REG_VALID, memset the buffer. Return the
7016 register's status.
7017 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7018 return the register's status.
7019 (regcache_raw_read_unsigned): Ditto.
7020 (regcache_cooked_read): Change return to enum register_status.
7021 Assert that with read-only regcaches, the register's status must
7022 be known. If the regcache is read-only, and the register is not
7023 REG_VALID, memset the buffer. Return the register's status.
7024 (regcache_cooked_read_signed): Change return to enum
7025 register_status. Handle non-REG_VALID registers and return the
7026 register's status.
7027 (regcache_cooked_read_unsigned): Change return to enum
7028 register_status. Handle non-REG_VALID registers and return the
7029 register's status.
7030 (regcache_xfer_part, regcache_raw_read_part)
7031 (regcache_cooked_read_part): Change return to enum
7032 register_status. Return the register's status.
7033 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7034 unavailable.
7035 (regcache_dump): Handle unavailable cooked registers.
7036 * frame.c (do_frame_register_read): Adjust interface to match
7037 regcache_cooked_read_ftype.
7038 * gdbarch.sh (pseudo_register_read): Change return to enum
7039 register_status.
7040 * gdbarch.h, gdbarch.c: Regenerate.
7041
7042 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7043 register_status.
7044 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7045 register_status. If reading a raw register indicates the raw
7046 register is not valid, return the raw register's status,
7047 otherwise, return REG_VALID.
7048 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7049 register_status. Handle non-REG_VALID raw registers and return
7050 the register's status.
7051 * arm-tdep.c (arm_neon_quad_read)
7052 (arm_pseudo_read): Change return to enum register_status. Handle
7053 non-REG_VALID raw registers and return the register's status.
7054 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7055 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7056 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7057 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7058 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7059 register_status.
7060 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7061 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7062 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7063 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7064 (m32c_pseudo_register_read): Change return to enum
7065 register_status. Adjust.
7066 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7067 enum register_status. Return the register's status.
7068 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7069 register_status. Return the register's status.
7070 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7071 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7072 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7073 * rs6000-tdep.c (move_ev_register_func): New typedef.
7074 (e500_move_ev_register): Use it. Change return to enum
7075 register_status. Return the register's status.
7076 (do_regcache_raw_read): New function.
7077 (do_regcache_raw_write): New function.
7078 (e500_pseudo_register_read): Change return to enum
7079 register_status. Return the register's status. Use
7080 do_regcache_raw_read.
7081 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7082 (dfp_pseudo_register_read): Change return to enum register_status.
7083 Return the register's status.
7084 (vsx_pseudo_register_read): Ditto.
7085 (efpr_pseudo_register_read): Ditto.
7086 (rs6000_pseudo_register_read): Ditto.
7087 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7088 register_status. Return the register's status.
7089 * sh64-tdep.c (pseudo_register_read_portions): New function.
7090 (sh64_pseudo_register_read): Change return to enum
7091 register_status. Use pseudo_register_read_portions. Return the
7092 register's status.
7093 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7094 register_status. Return the register's status.
7095 * sh-tdep.c (pseudo_register_read_portions): New function.
7096 (sh_pseudo_register_read): Change return to enum register_status.
7097 Use pseudo_register_read_portions. Return the register's status.
7098 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7099 enum register_status. Return the register's status.
7100 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7101 * spu-tdep.c (spu_pseudo_register_read_spu)
7102 (spu_pseudo_register_read): Ditto.
7103 * xtensa-tdep.c (xtensa_register_read_masked)
7104 (xtensa_pseudo_register_read): Ditto.
7105 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7106
e10abd8f
PM
71072011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7108
7109 * python/py-value.c (valpy_getitem): Fix formatting of error function
7110 call.
7111
7ea6d463
PM
71122011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7113
7114 ARI fixes: Add missing internationalization markups throughout
7115 C source files.
7116 * darwin-nat-info.c: Ditto.
7117 * record.c: Ditto.
7118 * remote.c: Ditto.
7119 * mi/mi-main.c: Ditto.
7120
001083c6
PM
71212011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7122
7123 ARI fixes: Add missing internationalization markups throughout
7124 yacc files.
7125 * c-exp.y: Ditto.
7126 * cp-name-parser.y: Ditto.
7127 * f-exp.y: Ditto.
7128 * m2-exp.y: Ditto.
7129 * objc-exp.y: Ditto.
7130 * p-exp.y: Ditto.
7131
4f1cdeec
PM
71322011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7133
7134 ARI fixes: Messages should have no trailing new lines.
7135 * darwin-nat.c (mach_check_error): Remove trailing new line from
7136 warning function call message.
7137 * record.c (bfdcore_read): Idem for error call.
7138
28e698f1
PM
71392011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7140
7141 * common/signals.c (target_signal_from_host): Add _ markup to error
7142 function call message.
7143 (target_signal_to_host): Add _ markup and remove trailing new line
7144 from warning call message.
7145 (target_signal_from_command): Add _ markup to error function call
7146 message.
7147
99c3dc11
PM
71482011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7149
f33edef8 7150 PR python/12149
99c3dc11
PM
7151
7152 * python/python.c (gdbpy_write): Accept a stream argument and
7153 operate to the appropriate stream.
7154 (gdbpy_flush): Likewise.
7155 (_initialize_python): Add stream constants.
7156 (finish_python_initialization): Add GdbOutputErrorFile class.
7157
c20800be
KY
71582011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7159
7160 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7161
f4a1794a
KY
71622011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7163
7164 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7165 to store_signed_integer. Add debug message when relocating CALL
7166 instructions. Fix formatting of debug message.
7167 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7168
d4862372
JB
71692011-03-17 Joel Brobecker <brobecker@gnat.com>
7170
7171 * target.h (struct target_ops): Remove to_lookup_symbol field.
7172 (target_lookup_symbol): Delete macro.
7173 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7174 (update_current_target, setup_target_debug): Remove handling
7175 of to_lookup_symbol target_ops field.
7176 * ada-tasks.c (get_known_tasks_addr): Remove use of
7177 target_lookup_symbol.
7178 * coffread.c (coff_symtab_read): Likewise.
7179 * dbxread.c (read_dbx_symtab): Ditto.
7180
d645e32e
JB
71812011-03-17 Joel Brobecker <brobecker@gnat.com>
7182
7183 PR gdb/12116:
7184 * configure.ac: Add getthrds declaration check.
7185 * configure, config.in: Regenerate.
7186 * aix-thread.c (getthrds): Declare only if not already declared
7187 in procinfo.h. More declaration out of get_signaled_thread to
7188 global scope.
7189
29703da4
PM
71902011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7191
7192 * python/py-symtab.c: Populate symtab_object_methods,
7193 sal_object_methods.
7194 (stpy_is_valid): New function.
7195 (salpy_is_valid): Ditto.
7196 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7197 (sympy_is_valid): New function.
7198 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7199 (objfpy_is_valid): New function.
7200 * python/py-inferior.c: Populate inferior_object_methods.
7201 (infpy_is_valid): New function.
7202 * python/py-infthread.c: Populate thread_object_methods.
7203 (thpy_is_valid): New function.
7204 * python/py-block.c: Declare block_object_methods. Populate. Declare
7205 block_iterator_object_methods. Populate.
7206 (blpy_is_valid): New function.
7207 (blpy_iter_is_valid): Ditto.
7208
c00f8484
KS
72092011-03-16 Keith Seitz <keiths@redhat.com>
7210
7211 * linespec.c (find_methods): Canonicalize NAME before looking
7212 up the symbol.
7213 (name_end): New function.
7214 (keep_name_info): New function.
7215 (decode_line_1): Use keep_name_info.
7216 (decode_compound): Likewise.
7217 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7218 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7219
7220 PR c++/12273
7221 * linespec.c (locate_first_half): Keep overload information, too.
7222 (decode_compound): Use a string to represent break characters
7223 to escape the loop.
7224 If P points to a break character, do not increment it.
7225 For C++ and Java, keep overload information and relevant keywords.
7226 If we cannot find a symbol, search the minimal symbols.
7227
7228 PR c++/11734
7229 * linespec.c (decode_compound): Rename SAVED_ARG to
7230 THE_REAL_SAVED_ARG.
7231 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7232 single-quotes.
7233 Pass a valid block to lookup_symbol.
7234 (lookup_prefix_sym): Likewise.
7235 (find_method): Construct search name based on SYM_CLASS instead
7236 of SAVED_ARG.
7237 * psymtab.c (lookup_partial_symbol): Add language parameter.
7238 (lookup_symbol_aux_psymtabs): Likewise.
7239 Don't assume that the psymtab we found was the right one. Search
7240 for the desired symbol in the symtab to be certain.
7241 (psymtab_search_name): New function.
7242 (lookup_partial_symbol): Use psymtab_search_name.
7243 Add language parameter.
7244 (read_symtabs_for_function): Add language parameter and pass to
7245 lookup_partial_symbol.
7246 (find_symbol_file_from_partial): Likewise.
7247
c91513d8
PP
72482011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7249
7250 PR gdb/12528
7251 * dwarf2read.c (noop_record_line): New function.
7252 (dwarf_decode_lines): Ignore line tables for GCd functions.
7253
b37520b6
PM
72542011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7255
7256 Fix ARI warnings about new lines at the end of messages, which
7257 are unneeded as there is a new line added at the end of the message
7258 automatically.
7259 * darwin-nat.c (darwin_stop_inferior): Ditto.
7260 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7261 * dfp.c (decimal_to_number): Ditto.
7262 * exec.c (print_section_info): Ditto.
7263 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7264 * osdata.c (get_osdata): Ditto.
7265 * record.c (bfdcore_write): Ditto.
7266 * remote-mips.c (mips_readchar): Ditto.
7267 * remote.c (read_ptid): Ditto.
7268 * ser-mingw.c (ser_windows_raw): Ditto.
7269 * tracepoint.c (add_local_symbols): Ditto.
7270 * windows-nat.c (fake_create_process): Ditto.
7271
b08ee6a2
TT
72722011-03-16 Tom Tromey <tromey@redhat.com>
7273
7274 * tracepoint.c (stop_tracing): Don't declare.
7275 * event-top.c (after_char_processing_hook): Add `(void)'.
7276
9a6f1302
PM
72772011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7278
7279 * NEWS: Add Parameter sub-classing description.
7280
7ceb86b1
KT
72812011-03-16 Kai Tietz <ktietz@redhat.com>
7282
7283 * MAINTAINERS: Update my e-mail address.
7284
efeff6cf
AT
72852011-03-15 Andreas Tobler <andreast@fgznet.ch>
7286
7287 * MAINTAINERS: Add myself for write after approval privileges.
7288
681c238c
MS
72892011-03-15 Michael Snyder <msnyder@vmware.com>
7290
f3df5b08
MS
7291 * frame.c (find_frame_sal): Assert sym is not null.
7292
13f6513c
MS
7293 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7294
50412521
MS
7295 * objc-lang.c (selectors_info): Check strchr for null result.
7296
681c238c
MS
7297 * stabsread.c (define_symbol): Guard against bad stabstring input.
7298
6ced1581
PM
72992011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7300
7301 Remove trailing spaces and tabulations from pascal language
7302 support sources.
7303 p-exp.y: Ditto.
7304 p-lang.c: Ditto.
7305 p-lang.h: Ditto.
7306 p-valprint.c: Ditto.
7307
9373cf26
JK
73082011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7309
7310 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7311 than LOW. Comment it.
7312 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7313 HIGHPC not strictly higher than LOWPC.
7314
9a1edae6
PM
73152011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7316
7317 Fix formatting of function declarations returning a pointer in
7318 previous commit.
7319 * varobj.c (varobj_add_child): Ditto.
7320 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7321 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7322
24e9cda0
UW
73232011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7324
7325 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7326 for the "generic" vector ABI used with GCC 4.3 and later.
7327 (ppc64_sysv_abi_return_value): Likewise.
7328
73292011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7330
7331 * infcall.c (call_function_by_hand): Function return value is
7332 always a non_lval, even when using struct_return.
7333
c9174737
PA
73342011-03-15 Pedro Alves <pedro@codesourcery.com>
7335
7336 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7337 (map_display_numbers): New.
7338 (do_delete_display): New.
7339 (undisplay_command): Use map_display_numbers.
7340 (do_enable_disable_display): New.
7341 (enable_disable_display_command): New function.
7342 (enable_display): Delete.
7343 (enable_display_command): New.
7344 (disable_display_command): Reimplement.
7345 (_initialize_printcmd): Adjust "enable display" command to use
7346 `enable_display_command' as callback.
7347
350c6c65
PM
73482011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7349
7350 * NEWS: Add Python breakpoint 'stop' operation.
7351
824446ad
PM
73522011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7353
7354 * NEWS: Delete duplicate entry. Fix typo.
7355
2021ad3a
PM
73562011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7357
7358 Fix ARI warning about function names in first column.
7359 Put prototype declaration on same line as return type.
7360 * objc-exp.y: Ditto.
7361 * p-exp.y: Ditto.
7362 * python/py-stopevent.h: Ditto.
7363 For long function names, split parameters to
7364 allow function name on same line as return type.
7365 * solib-pa64.c: Ditto.
7366 * varobj.c: Ditto.
7367 * varobj.h: Ditto.
7368 For long function declaration, use single line.
7369 * hppa-tdep.h: Ditto.
7370 * inferior.h: Ditto.
7371
7371cf6d
PM
73722011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7373
7374 * python/python.h: Declare gdbpy_should_stop and
7375 gdbpy_breakpoint_has_py_cond.
7376 * python/python.c: Add python.h to includes. Remove python.h from
7377 HAVE_PYTHON definition
7378 (gdbpy_should_stop): New dummy function.
7379 (gdbpy_breakpoint_has_py_cond): New dummy function.
7380 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7381 sub-classing capabilities.
7382 (gdbpy_should_stop): New function.
7383 (gdbpy_breakpoint_has_py_cond): New function.
7384 (local_setattro): New function.
7385 * breakpoint.c (condition_command): Add check for Python 'stop'
7386 operation.
7387 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7388 operation function as part of stop/continue tests.
7389
37b50a69
TT
73902011-03-14 Tom Tromey <tromey@redhat.com>
7391
7392 PR gdb/12576:
7393 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7394 (needs_frame_dwarf_call): Likewise.
7395
eeae04df
PM
73962011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7397
7398 Fix ARI warning about functions without parameters that do not
7399 use (void).
7400 * breakpoint.c (all_tracepoints): Replace () by (void).
7401 * f-exp.y (match_string_literal): Ditto.
7402 (yylex): Ditto.
7403 * m2-exp.y (yylex): Ditto.
7404 * mep-tdep.c (current_me_module): Ditto.
7405 (current_options): Ditto.
7406 (current_cop_data_bus_width): Ditto.
7407 (current_cr_names): Ditto.
7408 (current_cr_is_float): Ditto.
7409 (current_ccr_names): Ditto.
7410 * objc-exp.y (yylex): Ditto.
7411 * p-exp.y (yylex): Ditto.
7412 * remote.c (send_interrupt_sequence): Ditto.
7413 * tracepoint.c (current_trace_status): Ditto.
7414 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7415 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7416
6dc3565d
MS
74172011-03-11 Michael Snyder <msnyder@vmware.com>
7418
1427fe5e
MS
7419 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7420 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7421 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7422 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7423 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7424
60bc018f
MS
7425 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7426 (delete_async_event_handler): Ditto.
7427
f3be5b64
MS
7428 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7429
4c2d5724
MS
7430 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7431
6dc3565d
MS
7432 * top.c (set_verbose): Assert showcmd was found.
7433
4e6ca6d5
MG
74342011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7435
7436 * xtensa-tdep.c (warning_once): Correct style issues.
7437
815a83e4
YQ
74382011-03-11 Yao Qi <yao@codesourcery.com>
7439
7440 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7441
f2eb0bc8
AS
74422011-03-11 Andreas Schwab <schwab@redhat.com>
7443
7444 * common/aclocal.m4: Remove.
7445
b801de47
MG
74462011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7447
7448 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7449 (xtensa_write_register, xtensa_read_register): Likewise.
7450 (xtensa_hextochar): Removed.
7451 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7452
dbab50de
MG
74532011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7454
7455 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7456 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7457 (xtensa_alloc_frame_cache): Add initialization for new fields.
7458 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7459 (warning_once): New function.
7460 (xtensa_insn_kind): New item c0opc_and.
7461 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7462 (call0_track_op): Change arguments. New local variable litbase.
7463 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7464 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7465 in the prologue.
dbab50de 7466 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7467 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7468 Add the variety of updates to handle extended prologues, which now can
7469 conduct dynamic stack adjustments.
7470 (call0_frame_cache): Likewise.
7471 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7472 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7473
b2c04452
MS
74742011-03-10 Michael Snyder <msnyder@vmware.com>
7475
f8f67713
MS
7476 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7477 (cmd_qtframe): Ditto.
7478 (cmd_qtbuffer): Ditto.
7479 (cmd_bigqtbuffer): Ditto.
7480
197f0a60
TT
74812011-03-10 Tom Tromey <tromey@redhat.com>
7482
7483 * tracepoint.c (trace_actions_command): Update.
7484 * thread.c (thread_apply_command): Update.
7485 * reverse.c (delete_bookmark_command): Update.
7486 (bookmarks_info): Update.
7487 * printcmd.c (undisplay_command): Update.
7488 * memattr.c (mem_enable_command): Update.
7489 (mem_disable_command): Update.
7490 (mem_delete_command): Update.
7491 * inferior.c (detach_inferior_command): Update.
7492 (kill_inferior_command): Update.
7493 (remove_inferior_command): Update.
7494 * cli/cli-utils.h (struct get_number_or_range_state): New.
7495 (init_number_or_range): Declare.
7496 (get_number_or_range): Update.
7497 * cli/cli-utils.c (init_number_or_range): New function.
7498 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7499 static variables.
7500 (number_is_in_list): Update.
7501 * breakpoint.h (get_tracepoint_by_number): Update.
7502 * breakpoint.c (map_breakpoint_numbers): Update for change to
7503 get_number_or_range.
7504 (find_location_by_number): Use get_number, not
7505 get_number_or_range.
7506 (trace_pass_set_count): New function.
7507 (trace_pass_command): Update for change to get_number_or_range.
7508 Rework loop logic.
7509 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7510 'state' parameter.
7511
ecec24e6
PM
75122011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7513
7514 * python/py-param.c (add_setshow_generic): Add set/show callback
7515 parameters. Register Python object context.
7516 (get_show_value): New function.
7517 (get_set_value): New function.
7518 (call_doc_function): New function.
7519 (get_doc_string): Move behind get_show_value/get_set_value.
7520
6d6c6b1f
JK
75212011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7522
7523 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7524
68d6df83
MG
75252011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7526
dbab50de 7527 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7528 (xtensa_write_register): Likewise.
7529 (xtensa_hextochar): Add comment and update to match coding conventions.
7530 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7531 (execute_l32e, execute_s32e, execute_code): Update comments.
7532 (xtensa_exception_handler_t): Update to match coding conventions.
7533 (xtensa_insn_kind): Likewise.
7534
85c9d6a6
MS
75352011-03-09 Michael Snyder <msnyder@vmware.com>
7536
7537 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7538
91495617
PA
75392011-03-09 Pedro Alves <pedro@codesourcery.com>
7540
7541 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7542
eb8c0621
TT
75432011-03-09 Tom Tromey <tromey@redhat.com>
7544
7545 * thread.c (restore_selected_frame): Handle frame_level == -1.
7546 (make_cleanup_restore_current_thread): Use
7547 get_selected_frame_if_set.
7548 * frame.h (get_selected_frame_if_set): Declare.
7549 * frame.c (get_selected_frame_if_set): New function.
7550
9f37bbcc
PA
75512011-03-09 Pedro Alves <pedro@codesourcery.com>
7552
7553 * cli/cli-cmds.c (shell_escape): Use lbasename.
7554 * coffread.c (coff_start_symtab): Constify parameter.
7555 (complete_symtab): Constify `name' parameter.
7556 (coff_symtab_read): Constify `filestring' local.
7557 (coff_getfilename): Constify return and `result' local.
7558 Use lbasename.
7559 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7560 * linux-fork.c (info_checkpoints_command): Use lbasename.
7561 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7562 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7563 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7564 * procfs.c (procfs_make_note_section): Use lbasename.
7565 * tui/tui-io.c (printable_part): Constity return and parameter.
7566 Use lbasename.
7567 (print_filename): Constify parameters, and local `s'.
7568 (tui_rl_display_match_list): Constify local `temp'.
7569
f8de3c55
JK
75702011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7571
7572 Revert:
7573 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7574 Fix DWARF-3+ DW_AT_accessibility default assumption.
7575 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7576 cu->header.version >= 3.
7577
d9837b00
YQ
75782011-03-09 Yao Qi <yao@codesourcery.com>
7579
7580 * common/Makefile.in: Remove.
7581 * common/configure: Remove.
7582 * common/configure.ac: Remove.
7583
e637a4f5
YQ
75842011-03-09 Yao Qi <yao@codesourcery.com>
7585
7586 Revert:
7587 2011-02-11 Yao Qi <yao@codesourcery.com>
7588
7589 * common/Makefile.in: Add copyright header.
7590
7591 2011-02-11 Yao Qi <yao@codesourcery.com>
7592
7593 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7594 libcommon.a.
7595 * configure.ac: Add common to sub dir.
7596 * configure: Regenerate.
7597
f976a05d
MG
75982011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7599
7600 * xtensa-tdep.c (call0_ret): New function.
7601 (xtensa_skip_prologue): Speed up analysis.
7602
57041825
MG
76032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7604
7605 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7606 while executing MI command -data-list-changed-registers.
7607
08b9c608
MG
76082011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7609
7610 * xtensa-tdep.c (xtensa_read_register): New function.
7611 (xtensa_write_register): New function.
7612 (xtensa_find_register_by_name): New function.
7613 (xtensa_windowed_frame_cache): Update comments in type description.
7614 (xtensa_frame_cache): Likewise.
7615 (xtensa_window_interrupt_insn): New function.
7616 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7617 (xtensa_insn_kind): Add new instructions.
7618 (rwx_special_register): New function.
7619 (call0_classify_opcode): Add new instructions to the analysis.
7620 (a0_saved, a7_saved, a11_saved): New variables.
7621 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7622 (execute_l32e): New function.
7623 (execute_s32e): New function.
7624 (xtensa_exception_handler_t): New type.
7625 (execute_code): New function.
7626 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7627 analysis for Xtensa Window Exception handlers.
7628
4d1acb11
MG
76292011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7630
98689b25
MG
7631 * xtensa-tdep.c (TX_PS): New.
7632 (windowing_enabled): Update to count for Call0 ABI.
7633 (xtensa_hextochar): New.
7634 (xtensa_init_reggroups): Make algorithm generic.
7635 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7636
76372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7638
7639 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7640
d3f323f3
MS
76412011-03-08 Michael Snyder <msnyder@vmware.com>
7642
3dcabaa8
MS
7643 * i386-tdep.c (i386_follow_jump): Check return value of
7644 target_read_memory.
7645 (i386_analyze_struct_return): Ditto.
7646 (i386_skip_probe): Ditto.
7647 (i386_match_insn): Ditto.
7648 (i386_skip_noop): Ditto.
7649 (i386_analyze_frame_setup): Ditto.
7650 (i386_analyze_register_saves): Ditto.
7651 (i386_skip_prologue): Ditto.
7652 (i386_skip_main_prologue): Ditto.
7653
13b3fd9b
MS
7654 * target.c (read_whatever_is_readable): Fix memory leak.
7655
d3f323f3
MS
7656 * i386-tdep.c (i386_process_record): Document fall through.
7657
421d5c74
JK
76582011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7659
7660 Fix DWARF-3+ DW_AT_accessibility default assumption.
7661 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7662 cu->header.version >= 3.
7663
63154eca
PA
76642011-03-08 Pedro Alves <pedro@codesourcery.com>
7665
7666 * remote.c (remote_check_symbols): Skip if the target has no
7667 execution.
7668
f1a507a1
JB
76692011-03-08 Joel Brobecker <brobecker@adacore.com>
7670
7671 * target.c (read_whatever_is_readable): Reformat comment,
7672 with a minor typo fix. Minor reformatting of the code.
7673
36073a92
YQ
76742011-03-08 Yao Qi <yao@codesourcery.com>
7675
7676 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7677 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7678 Use cached result instead of calling displaced_in_arm_mode again.
7679 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7680 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7681 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7682 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7683 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7684 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7685 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7686 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7687 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7688 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7689 (arm_catch_kernel_helper_return): Likewise.
7690 * gdb/arm-tdep.h : Update function declarations.
7691
d3f323f3 76922011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 7693
e0e40094
MS
7694 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7695
0b2381f5
MS
7696 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7697
0350914a
MS
7698 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7699
69feea6f
MS
7700 * elfread.c (elf_symtab_read): Stop memory leak.
7701
e6040cbd
MS
7702 * main.c (captured_main): Fix memory leak.
7703
052874e8
AS
77042011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7705
7706 * ada-lang.c (compare_names): Call is_name_suffix with string1
7707 instead of string2.
7708
b11896a5
TT
77092011-03-07 Tom Tromey <tromey@redhat.com>
7710
7711 * xcoffread.c (xcoff_sym_fns): Update.
7712 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7713 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7714 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7715 (symbol_file_add_with_addrs_or_offsets): Likewise.
7716 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7717 * somread.c (som_sym_fns): Update.
7718 * psymtab.h (require_partial_symbols): Declare.
7719 * psymtab.c (require_partial_symbols): New function.
7720 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7721 (ALL_OBJFILE_PSYMTABS): Undef.
7722 (ALL_PSYMTABS): Move from psympriv.h.
7723 (lookup_partial_symtab, find_pc_sect_psymtab)
7724 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7725 (find_last_source_symtab_from_partial)
7726 (forget_cached_source_info_partial)
7727 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7728 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7729 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7730 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7731 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7732 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7733 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7734 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7735 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7736 psymtabs.
7737 * mipsread.c (ecoff_sym_fns): Update.
7738 * machoread.c (macho_sym_fns): Update.
7739 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7740 (read_psyms): New function.
7741 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7742 (elf_sym_fns_lazy_psyms): New global.
7743 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7744 dwarf2_build_psymtabs.
7745 * dbxread.c (aout_sym_fns): Update.
7746 * coffread.c (coff_sym_fns): Update.
7747
fda326dd
TT
77482011-03-07 Tom Tromey <tromey@redhat.com>
7749
7750 * infrun.c (print_exited_reason): Include inferior id and pid in
7751 message.
7752
aeaec162
TT
77532011-03-07 Tom Tromey <tromey@redhat.com>
7754
7755 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7756 parameter.
7757 (target_has_execution_1): Update.
7758 (target_has_execution_current): Declare.
7759 (target_has_execution): Call target_has_execution_current.
7760 (default_child_has_execution): Update.
7761 * target.c (default_child_has_execution): Add 'the_ptid'
7762 parameter.
7763 (target_has_execution_1): Likewise.
7764 (target_has_execution_current): New function.
7765 (add_target): Update.
7766 (init_dummy_target): Update.
7767 * remote-m32r-sdi.c (m32r_has_execution): New function.
7768 (init_m32r_ops): Use it.
7769 * record.c (record_core_has_execution): Now static. Add
7770 'the_ptid' parameter.
7771 * inferior.c (have_live_inferiors): Don't save current thread.
7772 Use target_has_execution_1.
7773
08e14083
YQ
77742011-03-07 Yao Qi <yao@codesourcery.com>
7775
7776 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7777
c05d19c5
JB
77782011-03-07 Joel Brobecker <brobecker@adacore.com>
7779
7780 * elfread.c (elf_symtab_read): Minor reformatting.
7781
3e6ef9e4
JB
77822011-03-07 Joel Brobecker <brobecker@adacore.com>
7783
7784 * objc-lang.c (selectors_info): Minor reformatting.
7785
dbb8534f
JB
77862011-03-07 Joel Brobecker <brobecker@adacore.com>
7787
7788 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7789
dd70cc93
JB
77902011-03-07 Joel Brobecker <brobecker@adacore.com>
7791 Michael Snyder <msnyder@vmware.com>
7792
7793 * ada-valprint.c (ada_val_print_array): Move the declaration of
7794 "byte_order" and "elttype" inside the block where these variables
7795 are actually used. Remove some special handling for the case
7796 where "elttype" and "eltlen" are null. Replace by a comment
7797 and a couple of assertion checks.
7798
b27cf2b3
MS
77992011-03-05 Michael Snyder <msnyder@vmware.com>
7800
7801 * source.c (add_path): Replace semicolon at end of block.
7802 * dwarf2expr.c (execute_stack_op): Ditto.
7803
5387a0c6
MF
78042011-03-05 Mike Frysinger <vapier@gentoo.org>
7805
7806 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7807 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7808 (bfin-*-*): Likewise.
7809
e3aa49af
MS
78102011-03-05 Michael Snyder <msnyder@vmware.com>
7811
82ae4854
MS
7812 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7813 * mdebugread.c (parse_symbol): Ditto.
7814 * parse.c (parse_exp_in_context): Ditto.
7815 * source.c (add_path): Ditto.
7816 * utils.c (gnu_debuglink_crc32): Ditto.
7817 * varobj.c (variable_language): Ditto.
7818
e3aa49af
MS
7819 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7820
154f592e
MS
78212011-03-04 Michael Snyder <msnyder@vmware.com>
7822
da3ecdc6
MS
7823 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7824
9cc89665
MS
7825 * symfile.c (simple_overlay_update): Check for null return value
7826 from lookup_minimal_symbol.
7827
154f592e
MS
7828 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7829
63ffa6ee
TJB
78302011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7831
7832 * eval.c (parse_and_eval_address_1): Remove function.
7833 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7834 instead of parse_and_eval_address_1.
7835 * value.h (parse_and_eval_address_1): Remove prototype.
7836
a17d146e
MS
78372011-03-04 Michael Snyder <msnyder@vmware.com>
7838
7839 * remote.c (putpkt_binary): Document that case stmt falls through.
7840
1a6a67de
TJB
78412011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7842
7843 * breakpointc (print_it_typical): Move NULL check from here...
7844 (print_bp_stop_message): ... to here.
7845
488919c4
MS
78462011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7847
7848 * breakpoint.c (enable_command): Use break instead of continue,
7849 and fill in a missing break.
7850 (disable_command): Ditto.
7851
1e182ce8
UW
78522011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7853
7854 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7855 (terminal_save_ours): Remove misleading comment.
7856 (inflow_inferior_data_cleanup): Free ttystate.
7857 (inflow_inferior_exit): Likewise.
7858 (copy_terminal_info): Copy ttystate.
7859
7860 * serial.c (serial_copy_tty_state): New function.
7861 * serial.h (serial_copy_tty_state): Add prototype.
7862 (struct serial_ops): Add copy_tty_state callback.
7863 * ser-base.c (ser_base_copy_tty_state): New function.
7864 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7865 * ser-go32.c (dos_copy_tty_state): New function.
7866 (dos_ops): Install copy_tty_state callback.
7867 * ser-mingw.c (_initialize_ser_windows): Likewise.
7868 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7869 * ser-unix.c (hardwire_copy_tty_state): New function.
7870 (_initialize_ser_hardwire): Install it.
7871
b2c5f112
MS
78722011-03-04 Michael Snyder <msnyder@vmware.com>
7873
2abae994
MS
7874 * breakpoint.c (create_breakpoint): Add missing break statement.
7875
7f5936f9
MS
7876 Reverting this patch:
7877 * infcall.c (call_function_by_hand): Add break statements for lint.
7878
b2c5f112
MS
7879 Reverting this patch:
7880 * cli/cli-script.c (script_from_file): Add break for lint.
7881
42b1321c
MS
78822011-03-04 Michael Snyder <msnyder@vmware.com>
7883
7884 * solib.c (reload_shared_libraries_1): Close memory leak.
7885
3e2a0cee
TT
78862011-03-03 Tom Tromey <tromey@redhat.com>
7887
7888 PR gdb/12538:
7889 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7890 DW_STRING is NULL.
7891
58397cb7
MS
78922011-03-03 Michael Snyder <msnyder@vmware.com>
7893
2e3fd767
MS
7894 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7895 fields of struct 'st' to zero.
7896
58397cb7
MS
7897 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7898 sal.pspace before calling set_current_source_symtab_and_line.
7899
ced54c8f
YQ
79002011-03-03 Yao Qi <yao@codesourcery.com>
7901
7902 * Makefile.in (configure-common): Remove. Let Makefile
7903 in dir common to rebuild itself.
7904 (common/Makefile): Likewise.
7905
3351ea09
JB
79062011-03-03 Joel Brobecker <brobecker@adacore.com>
7907
7908 * utils.c (parse_escape): Add i18n markup in error message.
7909
bf9f652a
YQ
79102011-03-03 Yao Qi <yao@codesourcery.com>
7911
7912 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7913 ARM_PC_REGNUM.
7914 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7915 (displaced_write_reg, displaced_read_reg): Likewise.
7916 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7917 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7918 (cleanup_branch): Replace magic number 14 and 15 with
7919 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7920
d42de051
MS
79212011-03-02 Michael Snyder <msnyder@vmware.com>
7922
240f9570
MS
7923 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7924
10dd8b54
MS
7925 * cli/cli-script.c (script_from_file): Add break for lint.
7926
b98bd911
MS
7927 * mdebugread.c (parse_partial_symbols): Fix indent.
7928
3494b66d
MS
7929 * target-descriptions.c (tdesc_gdb_type): No need to call
7930 xstrdup, callee saves a copy.
7931
daac021a
MS
7932 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7933
c38d16a7
MS
7934 * infcall.c (call_function_by_hand): Add break statements for lint.
7935
905b671b
MS
7936 * utils.c (parse_escape): Escape the escape char.
7937
f2eb0bc8 7938 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
7939 PyList_Append fails.
7940 (gdbpy_inferiors): Error out if build_inferior_list fails.
7941
8c6a60d1
MS
7942 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7943 a function call.
7944
d42de051
MS
7945 * record.c (record_restore): Move printf to before error return.
7946
4db71c0b
YQ
79472011-03-02 Yao Qi <yao@codesourcery.com>
7948
7949 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7950 is_thumb and insn_size.
7951 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7952 on both ARM and Thumb mode.
7953 (arm_process_displaced_insn): Set is_thumb and insn_size.
7954 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7955 (arm_displaced_step_fixup): Likewise.
7956
a9dc8dcc
MS
79572011-03-01 Michael Snyder <msnyder@vmware.com>
7958
53624a93
MS
7959 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7960
77766669
MS
7961 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7962
62d5b8da
MS
7963 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7964
5e9e105f
MS
7965 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7966
dc19db01
MS
7967 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7968 with xmalloc.
7969
5ce64950
MS
7970 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7971 which shadows function parameter.
7972
a0aa2878
MS
7973 * tracepoint.c (create_tsv_from_upload): Superfluous call
7974 to xstrdup. Callee already calls xstrdup.
7975
e325fb69
MS
7976 * linespec.c (decode_line_1): Remove unnecessary null check.
7977
21cbba77
MS
7978 * tracepoint.c (scope_info): Fix mem leak, remove underused
7979 variable.
7980
63360adc
MS
7981 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7982 superfluous null check.
7983
18ea20ac 7984 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 7985 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 7986
d014929c
MS
7987 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7988
6e9130cf
MS
7989 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7990 be null.
7991
5f01dbc0
MS
7992 * linespec.c (decode_line_1): Check for null before dereference.
7993
d684ab85
MS
7994 * reverse.c (record_restore): Move null-check to before pointer
7995 dereference.
7996
bfffb7e3
MS
7997 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7998
a9dc8dcc
MS
7999 * objc-lang.c (selectors_info): Add explanitory comment.
8000 (classes_info): Ditto.
8001
478fd957
UW
80022011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8003
8004 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8005 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8006 versions of the trampoline. Handle Thumb vs. ARM addresses.
8007 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8008 (arm_linux_init_abi): Install it.
8009 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8010 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8011
0480cefa
MS
80122011-02-28 Michael Snyder <msnyder@vmware.com>
8013
ac50ab3b
MS
8014 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8015 a little bigger, to avoid possibility of an overflow.
8016
f63fbe86
MS
8017 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8018 buffers a little bigger, to avoid possibility of an overflow.
8019
9e91a352
MS
8020 * coffread.c (coff_getfilename): Add check to avoid overflow.
8021
f2eb0bc8 8022 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8023 avoid overflow.
8024 (classes_info): Error out on too long REGEXP.
8025
098ab512
MS
8026 * infrun.c (handle_inferior_event): Remove unused function call.
8027
bcbd1de9
MS
8028 * fork-child.c (fork_inferior): Remove ifdef'd code and
8029 unused variable.
8030
2e456570
MS
8031 * linux-thread-db.c (attach_thread): Discard unused value.
8032
14571dad
MS
8033 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8034
a9cbf802
MS
8035 * remote.c (remote_get_noisy_reply): Discard unused value.
8036 (remote_vcont_resume): Ditto.
8037 (remote_stop_ns): Ditto.
8038
5715d26e
MS
8039 * linespec.c (decode_objc): Delete unused variable.
8040
4a9bca80
MS
8041 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8042
f47fb265
MS
8043 * dwarf2read.c (add_partial_symbol): Discard unused values.
8044 (read_base_type): Delete unused variable.
8045
e81cff30
MS
8046 * dbxread.c (read_dbx_symtab): Discard unused value.
8047
262acaeb
MS
8048 * eval.c (evaluate_subexp_standard): Delete unused variable,
8049 and discard unused values.
8050
df983543
MS
8051 * infcmd.c (_initialize_infcmd): Discard unused values.
8052
89acf84d
MS
8053 * stabsread.c (rs6000_builtin_type): Missing break statement.
8054
ab8b8aca
MS
8055 * dbxread.c (process_one_symbol): Discard unused value.
8056
6b4511ab
MS
8057 * coffread.c (coff_end_symtab): Delete unused variable.
8058
e8e80198
MS
8059 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8060 (dwarf2_add_typedef): Delete unused variable.
8061 (read_namespace): Ditto.
8062 (dwarf_decode_macros): Ditto.
8063
976aa66e
MS
8064 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8065
5b92b49f
MS
8066 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8067
91e8df85
MS
8068 * p-valprint.c (pascal_val_print): Discard unused value.
8069
899500d6
MS
8070 * utils.c (nquery): Call va_end before return;
8071 (yquery): Ditto.
8072 (query): Ditto.
8073
0480cefa
MS
8074 * proc-service.c (ps_plog): Call va_end before return.
8075
fb6a3ed3
TT
80762011-02-28 Tom Tromey <tromey@redhat.com>
8077
8078 * python/python.c (gdbpy_value_cst): New global.
8079 (_initialize_python): Initialize it.
8080 * python/python-internal.h (gdbpy_value_cst): Declare.
8081 * python/py-value.c (convert_value_from_python): Use
8082 gdbpy_value_cst.
8083
c05202a1
MS
80842011-02-28 Michael Snyder <msnyder@vmware.com>
8085
e463f587
MS
8086 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8087
c38eea1a
MS
8088 * breakpoint.c (catch_syscall_completer): Free malloced list.
8089
3ef09ab5
MS
8090 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8091
8f9a01ee
MS
8092 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8093 (lval_func_check_synthetic_pointer): Ditto.
8094 (lval_func_free_closure): Fix use-after-free.
c05202a1 8095
477d0d57
TT
80962011-02-28 Tom Tromey <tromey@redhat.com>
8097
8098 * psymtab.c (expand_partial_symbol_tables): Use
8099 ALL_OBJFILE_PSYMTABS.
8100
20937029
JK
81012011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8102
8103 * objc-lang.c (selectors_info): Error on too long REGEXP.
8104
907b7f4f
MS
81052011-02-28 Michael Snyder <msnyder@vmware.com>
8106
92e96192
MS
8107 * python/py-param.c (set_parameter_value): Add missing
8108 break statement.
8109
907b7f4f
MS
8110 * linux-record.c (record_linux_system_call): Add missing
8111 break statement.
8112
12c5a436
UW
81132011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8114
8115 * breakpoint.c (print_one_breakpoint_location): Remove unused
8116 argument PRINT_ADDRESS_BITS. Update callers.
8117 (print_one_breakpoint): Likewise.
8118
170b53b2
UW
81192011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8120
8121 * breakpoint.c (wrap_indent_at_field): New function.
8122 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8123 Allocate ui_stream locally instead of using STB argument.
8124 (print_one_breakpoint_location): Update call.
8125 * ui-out.c (ui_out_query_field): New function.
8126 * ui-out.h (ui_out_query_field): Add prototype.
8127
8ab1f94d
JB
81282011-02-28 Joel Brobecker <brobecker@adacore.com>
8129
8130 From Michael Snyder <msnyder@vmware.com>
8131 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8132
7d488639
MS
81332011-02-27 Michael Snyder <msnyder@vmware.com>
8134
ae179fba
MS
8135 * objc-lang.c (selectors_info): Prevent string overrun.
8136
086dbf66
MS
8137 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8138 error in strncpy.
8139
f2eb0bc8 8140 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8141 outer scope.
8142
7d488639
MS
8143 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8144 param with a local variable of the same name.
8145
3bd0f5ef
MS
81462011-02-27 Michael Snyder <msnyder@vmware.com>
8147
8148 * value.c (value_from_history_ref): New function.
8149 * value.h (value_from_history_ref): Export.
8150 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8151 to parse value history references.
8152 * cli/cli-utils.h (get_number_trailer): Update comment.
8153
81542011-02-27 Michael Snyder <msnyder@vmware.com>
8155
8156 * inferior.c (detach_inferior_command): Use get_number_or_range.
8157 (kill_inferior_command): Ditto.
8158 (remove_inferior_command): Ditto.
8159 (initialize_inferiors): Make command names plural.
8160 Update help strings.
8161
766062f6
MS
81622011-02-27 Michael Snyder <msnyder@vmware.com>
8163
8164 * darwin-nat-info.c: Fix comment typo.
8165 * dwarf2expr.h: Ditto.
8166 * fbsd-nat.c: Ditto.
8167 * fbsd-nat.h: Ditto.
8168 * frame-unwind.h: Ditto.
8169 * frame.h: Ditto.
8170 * hppa-hpux-tdep.c: Ditto.
8171 * i386-linux-nat.c: Ditto.
8172 * linux-nat.c: Ditto.
8173 * nbsd-nat.c: Ditto.
8174 * nbsd-nat.h: Ditto.
8175 * ppc-linux-tdep.c: Ditto.
8176 * serial.c: Ditto.
8177 * ui-file.h: Ditto.
8178 * tui/tui-winsource.c: Ditto.
8179
f2c4ead5
MS
81802011-02-26 Michael Snyder <msnyder@vmware.com>
8181
86b887df
MS
8182 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8183
66fd3b1e
MS
8184 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8185
8c814cdd
MS
8186 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8187 with a local variable of the same name.
8188
6d5e094a 8189 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8190 param with a local variable of the same name.
6d5e094a 8191 (i387_supply_xsave): Ditto.
e5b3d7d6 8192
5eee517d
MS
8193 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8194 that it does not shadow a function parameter.
8195
8fbf6b93
MS
8196 * i386-nat.c (i386_length_and_rw_bits): Document that case
8197 statement is meant to fall through.
8198
cb969d61
MS
8199 * expprint.c (dump_subexp_body_standard): Document that case
8200 statement is meant to fall through.
8201
f2c4ead5
MS
8202 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8203 dead if statement. Condition can't be false.
8204
b021a221
MS
82052011-02-25 Michael Snyder <msnyder@vmware.com>
8206
8207 * arm-tdep.c: Fix typos in comments.
8208 * bsd-uthread.c: Ditto.
8209 * completer.c: Ditto.
8210 * corelow.c: Ditto.
8211 * cp-namespace.c: Ditto.
8212 * cp-support.c: Ditto.
8213 * cris-tdep.c: Ditto.
8214 * dbxread.c: Ditto.
8215 * dwarf2read.c: Ditto.
8216 * frame.h: Ditto.
8217 * gdbtypes.h: Ditto.
8218 * inferior.h: Ditto.
8219 * mdebugread.c: Ditto.
8220 * mips-tdep.c: Ditto.
8221 * ppc-linux-nat.c: Ditto.
8222 * ppc-linux-tdep.c: Ditto.
8223 * printcmd.c: Ditto.
8224 * sol-thread.c: Ditto.
8225 * solib-frv.c: Ditto.
8226 * solist.h: Ditto.
8227 * sparc64-tdep.c: Ditto.
8228 * spu-tdep.c: Ditto.
8229 * stabsread.c: Ditto.
8230 * symfile.c: Ditto.
8231 * valops.c: Ditto.
8232 * varobj.c: Ditto.
8233 * vax-nat.c: Ditto.
8234 * python/py-block.c: Ditto.
8235 * python/py-symbol.c: Ditto.
8236 * python/py-symtab.c: Ditto.
8237 * python/py-value.c: Ditto.
8238 * tui/tui-win.c: Ditto.
8239
c82c0b55
MS
82402011-02-25 Michael Snyder <msnyder@vmware.com>
8241
8242 * inferior.c (print_inferior): Accept a string instead of an int
8243 for requested_inferiors, and use get_number_or_range to parse it.
8244 (info_inferiors_command): Pass args string to print_inferior.
8245 (initialize_inferiors): Change help string for info inferiors.
8246 * inferior.h (print_inferior): Export prototype change.
8247
ee00cd23
TT
82482011-02-25 Tom Tromey <tromey@redhat.com>
8249
8250 * common/ax.def (invalid2): Set to 0x31.
8251
0502ed8c
JK
82522011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8253
8254 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8255 L and plongest.
8256 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8257 use L and plongest.
8258 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8259
2c9de912
MS
82602011-02-24 Michael Snyder <msnyder@vmware.com>
8261
8262 * Makefile.in (clean): Make clean should remove generated files
8263 observer.h and observer.inc.
8264
a04b0428
JB
82652011-02-24 Joel Brobecker <brobecker@adacore.com>
8266
8267 Revert the following patch (not approved yet):
8268 2011-02-21 Hui Zhu <teawater@gmail.com>
8269 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8270 * ax-gdb.c (gen_printf_expr_callback): New function.
8271 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8272 * ax-general.c (ax_memcpy): New function.
8273 (ax_print): Handle "printf".
8274 (ax_reqs): Ditto.
8275 * ax.h (ax_memcpy): Forward declare.
8276 * common/ax.def (invalid2): Removed.
8277 (printf): New entry.
8278 * printcmd.c (printcmd.h): New include.
8279 (string_printf): New function.
8280 (ui_printf): Removed.
8281 (printf_command): Remove static. Call string_printf.
8282 (eval_command): Call string_printf.
8283 * printcmd.h: New file.
8284 * tracepoint.c (validate_actionline,
8285 encode_actions_1): handle printf_command.
8286
2b52013f
TT
82872011-02-23 Tom Tromey <tromey@redhat.com>
8288
8289 * ax-general.c (ax_pick): Add missing newline.
8290
e5a67952
MS
82912011-02-23 Michael Snyder <msnyder@vmware.com>
8292
8293 * breakpoint.c (breakpoint_1): Change first argument from an int
8294 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8295 breakpoints rather than just one. Use new function
e5a67952
MS
8296 'number_is_in_list' to implement.
8297 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8298 (watchpoints_info): Ditto.
8299 (tracepoints_info): Ditto.
8300 (maintenance_info_breakpoints): Ditto.
8301 (_initialize_breakpoint): Update help strings to reflect the fact
8302 that these functions can now take more than one argument.
8303 * cli/cli-utils.c (number_is_in_list): New function.
8304 * cli/cli-utils.h (number_is_in_list): Export.
8305
83062011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8307
8308 * memattr.c (mem_enable_command): Use get_number_or_range.
8309 (mem_disable_command): Ditto.
8310 (mem_delete_command): Ditto.
8311 (_initialize_mem): Tweak usage message to reflect multiple
8312 arguments.
8313
6e6fbe60
DE
83142011-02-22 Doug Evans <dje@google.com>
8315
8316 Add gdb.lookup_global_symbol python function.
8317 * NEWS: Add entry.
8318 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8319 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8320 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8321
79b97fa8
TT
83222011-02-22 Tom Tromey <tromey@redhat.com>
8323
8324 * language.c (language_class_name_from_physname): Rename
8325 'curr_language' argument to 'lang'; use in body.
8326
298f437a
MS
83272011-02-22 Michael Snyder <msnyder@vmware.com>
8328
8329 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8330
b7ea3126
PA
83312011-02-22 Pedro Alves <pedro@codesourcery.com>
8332
8333 * frame-unwind.h: Fix comment to mention the this frame, not the
8334 next.
8335
58ee6d60
TT
83362011-02-22 Tom Tromey <tromey@redhat.com>
8337
8338 * symfile.c (auto_solib_limit): Remove.
8339 * symfile.h (auto_solib_limit): Remove.
8340
36238dbc
JB
83412011-02-22 Joel Brobecker <brobecker@adacore.com>
8342
8343 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8344
aea5b279
MS
83452011-02-21 Michael Snyder <msnyder@vmware.com>
8346
8347 * gdbthread.h (print_thread_info): Change prototype.
8348 * thread.c (print_thread_info): Accept char* instead of int for
8349 requested_threads argument. Use new function number_is_in_list
8350 to determine which threads to list.
8351 (info_threads_command): Pass char* to print_thread_info.
8352 * cli/cli-utils.c (number_is_in_list): New function.
8353 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8354 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8355 print_thread_info.
8356 (print_one_inferior): Ditto.
8357 (mi_cmd_list_thread_groups): Ditto.
8358
8caa75ee
JK
83592011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8360
8361 * common/Makefile.in (CFLAGS): New.
8362 (COMPILE): Add $(CFLAGS).
8363
ea666128
TT
83642011-02-21 Tom Tromey <tromey@redhat.com>
8365
8366 * breakpoint.c (catch_syscall_command_1): Fix typo.
8367
e9cafbcc
TT
83682011-02-21 Tom Tromey <tromey@redhat.com>
8369
8370 * reverse.c: Include cli-utils.h.
8371 * printcmd.c: Include cli-utils.h.
8372 (string_printf): Use skip_spaces.
8373 * cli/cli-utils.h: New file.
8374 * cli/cli-utils.c: New file.
8375 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8376 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8377 * breakpoint.h (get_number, get_number_or_range): Move to
8378 cli-utils.h.
8379 * breakpoint.c: Include cli-utils.h.
8380 (get_number_trailer, get_number, get_number_or_range)
8381 (ep_skip_leading_whitespace): Move to cli-utils.c.
8382 (create_breakpoint_sal, find_condition_and_thread)
8383 (decode_static_tracepoint_spec, watch_command_1)
8384 (watch_maybe_just_location, ep_parse_optional_if_clause)
8385 (catch_fork_command_1, catch_exec_command_1)
8386 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8387 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8388 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8389 (HFILES_NO_SRCDIR): Add cli-utils.h.
8390 (cli-utils.o): New target.
8391
f67fd822
PM
83922011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8393
8394 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8395 before calling discard_all_inferiors.
8396
c9def01d
UW
83972011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8398
8399 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8400 (struct builtin_opencl_type): Remove.
8401 (builtin_opencl_type): Change return type to "struct type **".
8402 (lookup_opencl_vector_type): Update caller.
8403 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8404 (build_opencl_types): Install plain array of "struct type *"
8405 instead of "struct builtin_opencl_type".
8406
e3039479
UW
84072011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8408 Ulrich Weigand <uweigand@de.ibm.com>
8409
8410 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8411 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8412 (struct arm_linux_hwbp_cap): New type.
8413 (arm_linux_get_hwbp_cap): New function.
8414 (arm_linux_get_hw_breakpoint_count): Likewise.
8415 (arm_linux_get_hw_watchpoint_count): Likewise.
8416 (arm_linux_can_use_hw_breakpoint): Likewise.
8417 (arm_hwbp_type): New type.
8418 (arm_hwbp_control_t): Likewise.
8419 (struct arm_linux_hw_breakpoint): Likewise.
8420 (struct arm_linux_thread_points): Likewise.
8421 (arm_threads): New global variable.
8422 (arm_linux_find_breakpoints_by_tid): New function.
8423 (arm_hwbp_control_initialize): Likewise.
8424 (arm_hwbp_control_is_enabled): Likewise.
8425 (arm_hwbp_control_disable): Likewise.
8426 (arm_linux_hw_breakpoint_initialize): Likewise.
8427 (arm_linux_get_hwbp_type): Likewise.
8428 (arm_linux_hw_watchpoint_initialize): Likewise.
8429 (arm_linux_hw_breakpoint_equal): Likewise.
8430 (arm_linux_insert_hw_breakpoint1): Likewise.
8431 (arm_linux_remove_hw_breakpoint1): Likewise.
8432 (arm_linux_insert_hw_breakpoint): Likewise.
8433 (arm_linux_remove_hw_breakpoint): Likewise.
8434 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8435 (arm_linux_insert_watchpoint): Likewise.
8436 (arm_linux_remove_watchpoint): Likewise.
8437 (arm_linux_stopped_data_address): Likewise.
8438 (arm_linux_stopped_by_watchpoint): Likewise.
8439 (arm_linux_watchpoint_addr_within_range): Likewise.
8440 (arm_linux_new_thread): Likewise.
8441 (arm_linux_thread_exit): Likewise.
8442 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8443 related target callbacks. Register arm_linux_new_thread and
8444 arm_linux_thread_exit.
8445 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8446 * arm-tdep.c (arm_pc_is_thumb): Make global.
8447 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8448
b5db5dfc
UW
84492011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8450
8451 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8452 per-frame locations while within a function epilogue.
8453
e25b2cfa
PM
84542011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8455
8456 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8457 to GNU coding standards.
8458
4af53f97
PM
84592011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8460
8461 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8462 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8463 (ser_windows_close): Only call CancelIo if function exists.
8464 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8465 to check for existence of CancelIo function in kernel32 DLL.
8466
d0e92d82
HZ
84672011-02-21 Hui Zhu <teawater@gmail.com>
8468
8469 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8470 * ax-gdb.c (gen_printf_expr_callback): New function.
8471 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8472 * ax-general.c (ax_memcpy): New function.
8473 (ax_print): Handle "printf".
8474 (ax_reqs): Ditto.
8475 * ax.h (ax_memcpy): Forward declare.
8476 * common/ax.def (invalid2): Removed.
8477 (printf): New entry.
8478 * printcmd.c (printcmd.h): New include.
8479 (string_printf): New function.
8480 (ui_printf): Removed.
8481 (printf_command): Remove static. Call string_printf.
8482 (eval_command): Call string_printf.
8483 * printcmd.h: New file.
8484 * tracepoint.c (validate_actionline,
8485 encode_actions_1): handle printf_command.
8486
7d357efd
MS
84872011-02-19 Michael Snyder <msnyder@vmware.com>
8488
8489 * reverse.c (delete_one_bookmark): Argument is now bookmark
8490 id rather than pointer to bookmark struct.
8491 (delete_bookmark_command): Use get_number_or_range.
8492 (goto_bookmark_command): Parse with get_number instead of strtoul.
8493 (bookmark_1): New function. Print info for one bookmark.
8494 (bookmarks_info): Use get_number_or_range and bookmark_1.
8495
7a45ebd7
MS
84962011-02-18 Michael Snyder <msnyder@vmware.com>
8497
f2eb0bc8 8498 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8499 get_number_or_range.
65ebfb52 8500 (thread_apply_command): Ditto.
7a45ebd7 8501
94d5e490
TT
85022011-02-18 Tom Tromey <tromey@redhat.com>
8503
8504 * common/ax.def: New file.
8505 * ax.h (enum agent_op): Use ax.def.
8506 * ax-general.c (aop_map): Use ax.def.
8507
c7f96d2b
TT
85082011-02-18 Tom Tromey <tromey@redhat.com>
8509
8510 * ax-general.c (aop_map): Add pick and rot.
8511 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8512 <DW_OP_rot>: Implement.
8513 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8514 (ax_pick): Declare.
8515 * ax-general.c (ax_pick): New function.
8516
66694b75
TT
85172011-02-18 Tom Tromey <tromey@redhat.com>
8518
8519 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8520
eeaafae2
JK
85212011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8522 Tom Tromey <tromey@redhat.com>
8523
8524 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8525 make_symbol_overload_list_block with NULL BLOCK.
8526 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8527
3c3fe74c
PA
85282011-02-18 Pedro Alves <pedro@codesourcery.com>
8529
8530 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8531 * breakpoint.h (get_number_or_range): Declare.
8532 * printcmd.c (ALL_DISPLAYS): Declare.
8533 (delete_display): Reimplement taking a display pointer.
8534 (undisplay_command): Accept a range of displays to delete, using
8535 get_number_or_range.
8536
13163d80
PM
85372011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8538
8539 * c-valprint.c (c_val_print): Add embedded_offset to address
8540 for arrays of unspecified length.
8541 * p-valprint.c (pascal_val_print): Likewise.
8542
b434a28f
YQ
85432011-02-18 Yao Qi <yao@codesourcery.com>
8544
8545 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8546 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8547 (thumb_process_displaced_insn): New.
8548 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8549 call to arm_process_displaced_insn.
8550 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8551
9f6f94ff
TT
85522011-02-17 Tom Tromey <tromey@redhat.com>
8553
8554 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8555 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8556 compile_dwarf_to_ax. No longer static. Call
8557 dwarf2_compile_cfa_to_ax.
8558 (locexpr_tracepoint_var_ref): Update.
8559 (loclist_tracepoint_var_ref): Update.
8560 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8561 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8562 argument; add 'gdbarch' and 'pc'.
8563 (dwarf2_compile_cfa_to_ax): New function.
8564 (dwarf2_frame_cache): Update.
8565
e67ad678
JB
85662011-02-17 Joel Brobecker <brobecker@adacore.com>
8567
8568 * ada-lang.c (ada_type_of_array): Fix the size of the array
8569 in the case of an unconstrained packed array.
8570
946ebb0d
YQ
85712011-02-17 Yao Qi <yao@codesourcery.com>
8572
8573 * common/Makefile.in: Add more targets for make.
8574
1ba1b353
TT
85752011-02-16 Tom Tromey <tromey@redhat.com>
8576
8577 * dwarf2loc.c (unimplemented): Fix typo.
8578
b1bfef65
TT
85792011-02-16 Tom Tromey <tromey@redhat.com>
8580
8581 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8582 (compile_dwarf_to_ax) <default>: Use unimplemented.
8583 <DW_OP_deref>: Update.
8584 (disassemble_dwarf_expression): Update.
8585 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8586 (decode_locdesc): Update.
8587 * dwarf2expr.h (dwarf_stack_op_name): Update.
8588
5f1e6f19
TT
85892011-02-16 Tom Tromey <tromey@redhat.com>
8590
8591 * ax.h (struct aop_map) <name>: Now const.
8592
a0c78a73
PA
85932011-02-16 Tom Tromey <tromey@redhat.com>
8594
8595 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8596 than axs_rvalue.
8597
946ebb0d 85982011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8599
8600 * infrun.c (get_displaced_step_closure_by_addr): New.
8601 * inferior.h: Declare it.
8602 * arm-tdep.c: (arm_pc_is_thumb): Call
8603 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8604 returns non-NULL.
8605
08807d5a
PA
86062011-02-16 Pedro Alves <pedro@codesourcery.com>
8607 Jan Kratochvil <jan.kratochvil@redhat.com>
8608
8609 gdb/
8610 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8611
29976f3f
PA
86122011-02-16 Pedro Alves <pedro@codesourcery.com>
8613 Jan Kratochvil <jan.kratochvil@redhat.com>
8614
8615 * value.c (value_contents_copy_raw): Extend describing comment.
8616 Assert that the destination contents we're overwriting are wholly
8617 available.
fb68ae73 8618 (value_contents_copy): Extend describing comment.
29976f3f 8619
cd24cfaa
PA
86202011-02-16 Pedro Alves <pedro@codesourcery.com>
8621 Jan Kratochvil <jan.kratochvil@redhat.com>
8622
8623 * value.c (value_available_contents_eq): Remove redundant local
8624 variables. Fix available contents comparision.
8625 * value.h (value_available_contents_eq): Extend describing
8626 comment.
8627
60bbf338
YQ
86282011-02-16 Yao Qi <yao@codesourcery.com>
8629
8630 * thread.c (info_threads_command): Add missing i18n markup and remove
8631 trailing newline.
8632
17450429
PP
86332011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8634
8635 * breakpoint.c (longjmp_names): New variable.
8636 (struct breakpoint_objfile_data): New type.
8637 (breakpoint_objfile_key): New variable.
8638 (msym_not_found): New variable.
8639 (msym_not_found_p): New predicate.
8640 (get_breakpoint_objfile_data): New function.
8641 (create_overlay_event_breakpoint): Check per-objfile cache for
8642 symbols first.
8643 (create_longjmp_master_breakpoint): Likewise.
8644 (create_std_terminate_master_breakpoint): Likewise.
8645 (create_exception_master_breakpoint): Likewise.
8646 (_initialize_breakpoint): Register per-objfile data key.
8647
af02033e
PP
86482011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8649
8650 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8651 parameter value.
8652 (create_longjmp_master_breakpoint): Loop over longjmp names.
8653 (create_std_terminate_master_breakpoint): Const-propagate parameter
8654 value.
8655 (update_breakpoints_after_exec): Adjust.
8656 (breakpoint_re_set): Adjust.
8657
60f98dde
MS
86582011-02-15 Michael Snyder <msnyder@vmware.com>
8659
cdf99611
MS
8660 * thread.c (info_threads_command): Process arg as thread id,
8661 or list of thread ids.
8662 (thread_find_command): New command.
8663 (_initialize_thread): Document argument for info threads.
8664 Document 'thread find' command.
8665 * NEWS: Document new command "thread find".
60f98dde 8666
0feedb2c
JK
86672011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8668
8669 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8670 * aclocal.m4: Regenerated with aclocal-1.11.1.
8671 * common/configure: Regenerate with autoconf-2.64.
8672
648cd113
KW
86732011-02-15 Ken Werner <ken.werner@de.ibm.com>
8674
8675 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8676 bool data type to a size of one byte.
8677
5657161f
PA
86782011-02-15 Pedro Alves <pedro@codesourcery.com>
8679 Jan Kratochvil <jan.kratochvil@redhat.com>
8680
8681 * target.c (memory_xfer_live_readonly_partial): Document where to
8682 look for interface description.
8683
494e194e
YQ
86842011-02-15 Yao Qi <yao@codesourcery.com>
8685
8686 PR tdep/12352
8687 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8688 order to store PC value on stack instead of text section.
8689
d9492458
TJB
86902011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8691
8692 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8693 the EFP register set size.
8694 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8695 data from the VMX register.
8696 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8697 and write data from/to the VMX register.
8698
cdf99611
MS
86992011-02-14 Michael Snyder <msnyder@vmware.com>
8700
8701 * command.h (enum command_class): New class 'no_set_class', for
8702 "show" commands without a corresponding "set" command.
8703 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8704 * copying.c (_initialize_copying): Ditto for "show copying" and
8705 "show warranty".
8706 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8707 "show version".
8708 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8709 which there is no corresponding "set" command (eg. "show copying").
8710
424447ee
PA
87112011-02-14 Pedro Alves <pedro@codesourcery.com>
8712 Jan Kratochvil <jan.kratochvil@redhat.com>
8713
8714 * exec.c (section_table_available_memory): Change `len' parameter
8715 type to ULONGEST.
8716 * exec.h (section_table_available_memory): Ditto.
8717 * value.h (read_value_memory): Rename the `offset' parameter to
8718 `embedded_offset'.
8719
c0f61f9c 87202011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 8721 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
8722
8723 * memrange.c (compare_mem_ranges): Mention sort order in
8724 describing comment.
8725 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8726 * tracepoint.c (traceframe_available_memory): Extend comment to
8727 mention what happens to RESULT when the target does not support
8728 the query.
8729
6bfc80c7
PA
87302011-02-14 Pedro Alves <pedro@codesourcery.com>
8731 Jan Kratochvil <jan.kratochvil@redhat.com>
8732
8733 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8734 range.
8735
e7303042
PA
87362011-02-14 Pedro Alves <pedro@codesourcery.com>
8737
8738 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8739 No longer handle NULL values.
8740
8af8e3bc
PA
87412011-02-14 Pedro Alves <pedro@codesourcery.com>
8742
8743 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8744 * value.c: Include "exceptions.h".
8745 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8746 generic error.
8747 * cp-abi.c: Include gdb_assert.h.
8748 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8749 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8750 errors.
8751 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8752 parameters. No longer returns -1 on error.
8753 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8754 `val' parameters.
8755 * cp-valprint.c: Include exceptions.h.
8756 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8757 the baseclass_offset. Handle unavailable base classes. Use
8758 val_print_invalid_address.
8759 * p-valprint.c: Include exceptions.h.
8760 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8761 when fetching the baseclass_offset. No longer expect
8762 baseclass_offset returning -1. Handle unavailable base classes.
8763 Use val_print_invalid_address.
8764 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8765 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8766 `embedded_offset' and `val' parameters. Adjust.
8767 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8768 parameter, and change its type to gdb_byte pointer. Add
8769 `embedded_offset' and `val' parameters. Adjust. No longer expect
8770 baseclass_offset returning -1.
8771 (value_dynamic_cast): Use value_contents_for_printing rather than
8772 value_contents. Adjust.
8773 (search_struct_field): No longer expect baseclass_offset returning
8774 -1.
8775 (search_struct_method): If reading memory from the target is
8776 necessary, wrap it in a new value to pass to baseclass_offset. No
8777 longer expect baseclass_offset returning -1.
8778 (find_method_list): No longer expect baseclass_offset returning
8779 -1. Use value_contents_for_printing rather than value_contents.
8780 * valprint.c (val_print_invalid_address): New function.
8781 * valprint.h (val_print_invalid_address): Declare.
8782 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8783 and `val' parameters. No longer expect baseclass_offset returning
8784 -1. Adjust.
8785 * gnu-v2-abi.c: Include "exceptions.h".
8786 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8787 parameters. Handle unavailable memory. Recurse through
8788 gnuv2_baseclass_offset directly, rather than through
8789 baseclass_offset. No longer returns -1 on not found, instead
8790 throw an error.
8791 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8792 `val' parameters. Adjust.
8793
1b28d0b3
PA
87942011-02-14 Pedro Alves <pedro@codesourcery.com>
8795
8796 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8797 almost but not quite adjacent.
8798
ec0a52e1
PA
87992011-02-14 Pedro Alves <pedro@codesourcery.com>
8800
8801 * value.h (value_entirely_available): Declare.
8802 * value.c (value_entirely_available): New function.
8803 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8804 real type if the pointer is unavailable.
8805
24e6bcee
PA
88062011-02-14 Pedro Alves <pedro@codesourcery.com>
8807
8808 * valops.c (value_repeat): Use read_value_memory instead of
8809 read_memory.
8810
39d37385
PA
88112011-02-14 Pedro Alves <pedro@codesourcery.com>
8812
8813 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8814 * value.c (value_contents_copy_raw, value_contents_copy): New
8815 functions.
8816 (value_primitive_field): Use value_contents_copy_raw instead of
8817 memcpy.
8818 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8819 memcpy.
8820 (value_array, value_slice): Ditto.
8821 * valarith.c (value_subscripted_rvalue): Use
8822 value_contents_copy_raw instead of memcpy.
8823
a3d34bf4
PA
88242011-02-14 Pedro Alves <pedro@codesourcery.com>
8825
8826 <unavailable> references.
8827
8828 * valops.c (get_value_at): Use value_from_contents_and_address,
8829 avoiding read_memory.
8830
9fc6d940
PA
88312011-02-14 Pedro Alves <pedro@codesourcery.com>
8832
8833 * c-valprint.c (c_val_print): Print a string with unavailable
8834 contents as an array.
8835
5467c6c8
PA
88362011-02-14 Pedro Alves <pedro@codesourcery.com>
8837
8838 * value.h (unpack_bits_as_long): Delete declaration.
8839 (unpack_value_bits_as_long): Declare.
8840 (unpack_value_field_as_long): Declare.
8841 (value_field_bitfield): Declare.
8842 * value.c (unpack_bits_as_long): Rename to...
8843 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8844 value parameters. Return the extracted result in a new output
8845 parameter. If the value contents are unavailable, return false,
8846 otherwise return true.
8847 (unpack_value_bits_as_long): New.
8848 (unpack_field_as_long): Rename to...
8849 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8850 Add embedded_offset and value parameters. Return the extracted
8851 result in a new output parameter. If the value contents are
8852 unavailable, return false, otherwise return true.
8853 (unpack_value_field_as_long): New.
8854 (unpack_field_as_long_1): New.
8855 (unpack_field_as_long): Reimplement as wrapper around
8856 unpack_value_field_as_long_1.
8857 (value_field_bitfield): New function.
8858 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8859 unpack_value_bits_as_long. Mark the value as unavailable, if it
8860 is unavailable.
8861 * jv-valprint.c (java_print_value_fields): Use
8862 value_field_bitfield.
8863 * p-valprint.c (pascal_object_print_value_fields): Use
8864 value_field_bitfield.
8865 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8866
3158c6ed
PA
88672011-02-14 Pedro Alves <pedro@codesourcery.com>
8868
8869 * value.c (get_internalvar_integer): Also return the int value of
8870 TYPE_CODE_INT INTERNALVAR_VALUE values.
8871 (set_internalvar): Don't special case TYPE_CODE_INT.
8872
9fbdca0d
PA
88732011-02-14 Pedro Alves <pedro@codesourcery.com>
8874
8875 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8876 INTERNALVAR_POINTER.
8877 <pointer>: Delete.
8878 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8879 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8880 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8881
c8c1c22f
PA
88822011-02-14 Pedro Alves <pedro@codesourcery.com>
8883
8884 * value.h (value_available_contents_eq): Declare.
8885 * value.c (find_first_range_overlap): New function.
8886 (value_available_contents_eq): New function.
8887 * valprint.c (val_print_array_elements): Use
8888 value_available_contents_eq.
8889 * ada-valprint.c (val_print_packed_array_elements): Use
8890 value_available_contents_eq.
8891 * jv-valprint.c (java_value_print): Use
8892 value_available_contents_eq.
8893
e6e4e701
PA
88942011-02-14 Pedro Alves <pedro@codesourcery.com>
8895
8896 * target.c (target_read_live_memory): New function.
8897 (memory_xfer_live_readonly_partial): New.
8898 (memory_xfer_partial): If reading from a traceframe, fallback to
8899 reading unavailable read-only memory from read-only regions of
8900 live target memory.
8901 * tracepoint.c (disconnect_tracing): Adjust.
8902 (set_current_traceframe): New, factored out from
8903 set_traceframe_number.
8904 (set_traceframe_number): Reimplement to only change the traceframe
8905 number on the GDB side.
8906 (do_restore_current_traceframe_cleanup): Adjust.
8907 (make_cleanup_restore_traceframe_number): New.
8908 (cur_traceframe_number): New global.
8909 (tfile_open): Set cur_traceframe_number to no traceframe.
8910 (set_tfile_traceframe): New function.
8911 (tfile_trace_find): If looking up a traceframe using any method
8912 other than by number, make sure the current tfile traceframe
8913 matches gdb's current traceframe. Update the current tfile
8914 traceframe if the lookup succeeded.
8915 (tfile_fetch_registers, tfile_xfer_partial)
8916 (tfile_get_trace_state_variable_value): Make sure the remote
8917 traceframe matches gdb's current traceframe.
8918 * remote.c (remote_traceframe_number): New global.
8919 (remote_open_1): Set it to -1.
8920 (set_remote_traceframe): New function.
8921 (remote_fetch_registers, remote_store_registers)
8922 (remote_xfer_memory, remote_xfer_partial)
8923 (remote_get_trace_state_variable_value): Make sure the remote
8924 traceframe matches gdb's current traceframe.
8925 (remote_trace_find): If looking up a traceframe using any method
8926 other than by number, make sure the current remote traceframe
8927 matches gdb's current traceframe. Update the current remote
8928 traceframe if the lookup succeeded.
8929 * infrun.c (fetch_inferior_event): Adjust.
8930 * tracepoint.h (set_current_traceframe): Declare.
8931 (get_traceframe_number, set_traceframe_number): Add describing
8932 comments.
8933
e6ca34fc
PA
89342011-02-14 Pedro Alves <pedro@codesourcery.com>
8935
8936 Mark pieces of values as unavailable if the corresponding memory
8937 is unavailable.
8938
8939 * valops.c: Include tracepoint.h.
8940 (value_fetch_lazy): Use read_value_memory.
8941 (read_value_memory): New.
8942 * value.h (read_value_memory): Declare.
8943 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8944 * exec.c (section_table_available_memory): New function.
8945 * exec.h (section_table_available_memory): Declare.
8946
2a7498d8
PA
89472011-02-14 Pedro Alves <pedro@codesourcery.com>
8948
8949 * Makefile.in (SFILES): Add memrange.c.
8950 (HFILES_NO_SRCDIR): Add memrange.h.
8951 (COMMON_OBS): Add memrange.o.
8952 * memrange.c: New file.
8953 * memrange.h: New file.
8954 * tracepoint.c: Include memrange.h.
8955 (struct mem_range): Delete.
8956 (mem_range_s): Delete.
8957 (traceframe_available_memory): New function.
8958 * tracepoint.h (traceframe_available_memory): Declare.
8959
b3b9301e
PA
89602011-02-14 Pedro Alves <pedro@codesourcery.com>
8961
8962 * target.h (struct traceframe_info): Forward declare.
8963 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8964 (struct target_ops) <to_traceframe_info>: New field.
8965 (target_traceframe_info): New.
8966 * target.c (update_current_target): Inherit and default
8967 to_traceframe_info.
8968 * remote.c (PACKET_qXfer_traceframe_info): New.
8969 (remote_protocol_features): Register qXfer:traceframe-info:read.
8970 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8971 (remote_traceframe_info): New.
8972 (init_remote_ops): Install it.
8973 (_initialize_remote): Install "set/show remote traceframe-info"
8974 commands.
8975 * tracepoint.h (parse_traceframe_info): Declare.
8976 * tracepoint.c (struct mem_range): New.
8977 (mem_range_s): New typedef.
8978 (struct traceframe_info): New.
8979 (traceframe_info): New global.
8980 (free_traceframe_info): New function.
8981 (clear_traceframe_info): New function.
8982 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8983 info.
8984 (build_traceframe_info): New function.
8985 (tfile_traceframe_info): New function.
8986 (init_tfile_ops): Install tfile_traceframe_info.
8987 (traceframe_info_start_memory, free_result): New functions.
8988 (memory_attributes, traceframe_info_elements): New globals.
8989 (parse_traceframe_info, get_traceframe_info): New functions.
8990 * features/traceframe-info.dtd: New file.
8991 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8992
4e07d55f
PA
89932011-02-14 Pedro Alves <pedro@codesourcery.com>
8994
8995 Base support for <unavailable> value contents.
8996
4e07d55f
PA
8997 * value.h (value_bytes_available): Declare.
8998 (mark_value_bytes_unavailable): Declare.
8999 * value.c (struct range): New struct.
9000 (range_s): New typedef.
9001 (ranges_overlap): New function.
9002 (range_lessthan): New function.
9003 (ranges_contain_p): New function.
9004 (struct value) <unavailable>: New field.
9005 (value_bytes_available): New function.
9006 (mark_value_bytes_unavailable): New function.
9007 (require_not_optimized_out): Constify parameter.
9008 (require_available): New function.
9009 (value_contents_all, value_contents): Require all bytes be
9010 available.
9011 (value_free): Free `unavailable'.
9012 (value_copy): Copy `unavailable'.
9013 * valprint.h (val_print_unavailable): Declare.
9014 * valprint.c (valprint_check_validity): Rename `offset' parameter
9015 to `embedded_offset'. If printing a scalar, check whether the
9016 value chunk is available.
9017 (val_print_unavailable): New.
9018 (val_print_scalar_formatted): Check whether the value is
9019 available.
9020 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9021 pretty-printing unavailable values.
9022
bc9a5551
JK
90232011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9024
9025 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9026 * c-typeprint.c (c_type_print_args): Update the function comment. New
9027 variable param_type, initialize it. Remove const/volatile qualifiers
9028 for language_cplus and !show_artificial. Use param_type.
9029
93b55aa1
JK
90302011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9031
9032 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9033 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9034 * symtab.h (struct symtab) <next>: Comment extension.
9035
181d9476
YQ
90362011-02-12 Yao Qi <yao@codesourcery.com>
9037
9038 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9039
b708a5c7
JK
90402011-02-11 Yao Qi <yao@codesourcery.com>
9041
9042 * common/Makefile.in: Add copyright header.
9043
c5187ac6
PA
90442011-02-11 Pedro Alves <pedro@codesourcery.com>
9045
9046 * infrun.c (proceed): Move switching out and in of tfind mode from
9047 here ...
9048 (fetch_inferior_event): ... to here.
9049
4f3e6fb7
YQ
90502011-02-11 Yao Qi <yao@codesourcery.com>
9051
9052 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9053 libcommon.a.
9054 * configure.ac: Add common to sub dir.
9055 * configure: Regenerate.
9056
b708a5c7
JK
90572011-02-11 Yao Qi <yao@codesourcery.com>
9058
9059 Build libcommon.a.
9060
9061 * common/Makefile.in: New.
9062 * common/configure.ac: New.
9063 * common/aclocal.m4: New.
9064 * common/configure: Generate.
9065
2287cc7e
PA
90662011-02-10 Pedro Alves <pedro@codesourcery.com>
9067
9068 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9069 side of the parenthesis.
9070
9071 Merge from GCC:
9072 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9073 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9074
fd62cb89
MS
90752011-02-08 Michael Snyder <msnyder@vmware.com>
9076
9077 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9078
56d2815c
JK
90792011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9080
9081 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9082 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9083 psubd and paddd.
9084
4f7d61a8
JK
90852011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9086
9087 PR 12361.
9088 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9089 phsubsw.
9090 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9091 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9092
54fcddd0
UW
90932011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9094
9095 * dwarf2read.c (read_subroutine_type): Set special calling
9096 convention flag for functions compiled by IBM XL C for OpenCL.
9097 * ppc-sysv-tdep.c: Include "dwarf2.h"
9098 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9099 calling convention.
9100 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9101 IBM OpenCL vector types calling convention.
9102 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9103 (ppc_sysv_abi_broken_return_value): Likewise.
9104 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9105 types calling convention.
9106 (ppc64_sysv_abi_return_value): Likewise.
9107 * spu-tdep.c: Include "dwarf2.h"
9108 (spu_return_value): Implement IBM OpenCL vector types calling
9109 convention.
9110
d6dafb7c
UW
91112011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9112
9113 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9114 correct ABI for AltiVec vector arguments.
9115
32b72a42
PA
91162011-02-07 Pedro Alves <pedro@codesourcery.com>
9117
9118 * valprint.c (val_print): Extend comment.
9119 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9120 interface explanation to val_print.
9121 (ada_val_print_array): Adjust comment to current interface.
9122 (print_field_values): Adjust comment to current interface.
9123 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9124 explanation to val_print.
9125 * f-valprint.c (f_val_print): Ditto.
9126 * jv-valprint.c (java_val_print): Ditto.
9127 * m2-valprint.c (m2_val_print): Ditto.
9128 * p-valprint.c (pascal_val_print): Ditto.
9129
9998af43
TJB
91302011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9131
9132 * breakpoint.c (parse_breakpoint_sals): Fix description.
9133
505500db 91342011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9135 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9136
9137 * python/py-inferior.c (python_on_normal_stop): New function.
9138 (python_on_resume): New function.
9139 (python_inferior_exit): New function.
9140 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9141 inferior_exit observers.
9142 * python/py-evtregistry.c: New file.
9143 * python/py-threadevent.c : New file.
9144 * python/py-event.c: New file.
9145 * python/py-evts.c: New file.
9146 * python/py-continueevent.c: New file.
9147 * python/py-bpevent.c: New file.
9148 * python/py-signalevent.c: New file.
9149 * python/py-exetiedevent.c: New file.
9150 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9151 Move struct breakpoint_object from here...
9152 * python/python-internal.h: ... to here.
9153 * python/py-event.h: New file.
9154 * python/py-events.h: New file.
9155 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9156 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9157 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9158 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9159 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9160 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9161 Add build rules for all the above.
9162
9e0ac564
TT
91632011-02-04 Tom Tromey <tromey@redhat.com>
9164
9165 * dwarf2read.c (dwarf2_section_empty_p): New function.
9166 (dwarf2_read_section): Use dwarf2_section_empty_p.
9167 (dwarf2_section_size): New function.
9168 (dwarf2_get_section_info): Unconditionally read section.
9169 (dwarf2_read_index): Use dwarf2_section_empty_p.
9170 (partial_read_comp_unit_head): Use dwarf2_section_size.
9171 (dwarf2_symbol_mark_computed): Likewise.
9172
eee5b35e
DD
91732011-02-04 David Daney <ddaney@caviumnetworks.com>
9174
9175 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9176
385203ed
DD
91772011-02-04 David Daney <ddaney@caviumnetworks.com>
9178
9179 * mips-linux-tdep.c: Include xml-syscall.h.
9180 (mips_linux_get_syscall_number): New function.
9181 (mips_linux_init_abi): Add calls to
9182 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9183 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9184 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9185 * syscalls/mips-n32-linux.xml: New file.
9186 * syscalls/mips-n64-linux.xml: New file.
9187 * syscalls/mips-o32-linux.xml: New file.
9188
9277c30c
UW
91892011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9190
9191 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9192 Complain about inverted range entries.
9193 (dwarf2_record_block_ranges): Likewise.
9194
a3be7890
TJB
91952011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9196
9197 Fix some typos.
9198 * breakpoint.c (update_watchpoint): Fix name of the
9199 update_global_location_list function.
9200 (print_one_breakpoint): Fix typo.
9201 (_initialize_breakpoint): Remove extra space in hbreak help
9202 string.
9203 * breakpoint.h (struct bp_location) <length>: Fix field
9204 description.
9205
041274d8
PA
92062011-02-04 Pedro Alves <pedro@codesourcery.com>
9207
9208 * regcache.c (registers_changed_ptid): Don't explictly always
9209 clear `current_regcache'. Only clear current_thread_ptid and
9210 current_thread_arch when PTID matches. Only reinit the frame
9211 cache if PTID matches the current inferior_ptid. Move alloca(0)
9212 call to ...
9213 (registers_changed): ... here.
9214
c1c2ab58
UW
92152011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9216
9217 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9218 starts with __stack_chk_guard as stack guard symbol.
9219
9011945e
AB
92202011-02-03 Andrew Burgess <aburgess@broadcom.com>
9221
9222 * disasm.c (compare_lines): Handle the end of sequence markers
9223 within the line table to better support disassembling over
9224 compilation unit boundaries.
9225
e0634ccf
UW
92262011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9227
9228 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9229 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9230 implementation even if no symbols are available.
9231 (thumb_analyze_prologue): Update call to skip_prologue_function.
9232 (arm_analyze_prologue): Likewise.
9233
0e9e9abd
UW
92342011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9235
9236 * arm-tdep.c: Include "observer.h".
9237 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9238 (arm_exidx_data_key): New static variable.
9239 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9240 (struct arm_exidx_data): Likewise.
9241 (arm_exidx_data_free): New function.
9242 (arm_compare_exidx_entries): Likewise.
9243 (arm_obj_section_from_vma): Likewise.
9244 (arm_exidx_new_objfile): Likewise.
9245 (arm_find_exidx_entry): Likewise.
9246 (arm_exidx_fill_cache): Likewise.
9247 (arm_exidx_unwind_sniffer): Likewise.
9248 (arm_exidx_unwind): New global variable.
9249 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9250 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9251 observer. Register arm_exidx_data_key as objfile data.
9252
2e9e421f
UW
92532011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9254
9255 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9256 due to accessing uninitialized variable. Fix indentation.
9257
580688f3
PA
92582011-02-02 Pedro Alves <pedro@codesourcery.com>
9259
9260 * c-valprint.c (c_value_print): When doing virtual base pointer
9261 adjustment, create a new value with adjusted contents rather than
9262 changing the contents of the value being printed (and getting it
9263 wrong).
9264
3d2c1d41
PA
92652011-02-02 Pedro Alves <pedro@codesourcery.com>
9266
9267 * xml-support.c (xml_find_attribute): New.
9268 (xinclude_start_include): Use it.
9269 * xml-support.h (xml_find_attribute): Declare.
9270 * memory-map.c (memory_map_start_memory)
9271 (memory_map_start_property): Use xml_find_attribute.
9272 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9273 xml_find_attribute.
9274 * remote.c (start_thread): Use xml_find_attribute.
9275 * solib-target.c (library_list_start_segment)
9276 (library_list_start_section, library_list_start_library)
9277 (library_list_start_list): Use xml_find_attribute.
9278 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9279 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9280 (tdesc_start_field): Use xml_find_attribute.
9281
0af3e2db
UW
92822011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9283
9284 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9285 (BUILD_OCL_VTYPES): Update.
9286
c1039e3c
JB
92872011-02-02 Joel Brobecker <brobecker@adacore.com>
9288
9289 * configure.ac: Work around non-GNU sed limitation when computing
9290 python version number.
9291 * configure: Regenerate.
9292
600ea1be
JK
92932011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9294
9295 Fix debug printing of TYPE_INSTANCE.
9296 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9297 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9298
56c12414
JK
92992011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9300
9301 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9302 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9303 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9304 * ada-operator.inc: Rename the file to ...
9305 * ada-operator.def: ... here, wrap all the entries by macro OP.
9306 * expprint.c (op_name_standard): Remove all the entries. Include
9307 "std-operator.def" instead.
9308 * expression.h (enum exp_opcode): Include "std-operator.def" and
9309 "ada-operator.def". Move all the entries ...
9310 * std-operator.def: ... here, wrap all the entries by macro OP.
9311
c52b559d
PP
93122011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9313
9314 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9315 * breakpoint.c (remove_jit_event_breakpoints): New function.
9316 * jit.c (jit_descriptor_addr): Delete.
9317 (registering_code): Delete.
9318 (clear_int): Delete.
9319 (jit_inferior_data): New variable.
9320 (struct jit_inferior_data): New type.
9321 (get_jit_inferior_data): New function.
9322 (jit_inferior_data_cleanup): New function.
9323 (jit_read_descriptor): Adjust.
9324 (jit_register_code): Adjust.
9325 (jit_breakpoint_re_set_internal): New function; move code here ...
9326 (jit_inferior_init): ... from here.
9327 (jit_breakpoint_re_set): Adjust.
9328 (jit_reset_inferior_data_and_breakpoints): New function.
9329 (jit_inferior_created_observer): Adjust.
9330 (jit_inferior_exit_hook): Adjust.
9331 (jit_executable_changed_observer): New function.
9332 (jit_event_handler): Adjust.
9333 (_initialize_jit): Adjust.
9334
e839132d
MS
93352011-01-31 Michael Snyder <msnyder@vmware.com>
9336
9337 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9338 line.
9339
47a80e90
TT
93402011-01-31 Tom Tromey <tromey@redhat.com>
9341
9342 PR python/12216:
9343 * python/python.c (execute_gdb_command): Call
9344 prevent_dont_repeat.
9345 * top.c (suppress_dont_repeat): New global.
9346 (dont_repeat): Use it.
9347 (prevent_dont_repeat): New function.
9348 * command.h (prevent_dont_repeat): Declare.
9349
45a43567
TT
93502011-01-31 Tom Tromey <tromey@redhat.com>
9351
9352 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9353 * python/py-breakpoint.c (bppy_set_silent): Use
9354 breakpoint_set_silent.
9355 (bppy_set_thread): Use breakpoint_set_thread.
9356 (bppy_set_task): Use breakpoint_set_task.
9357 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9358 (breakpoint_set_task): Declare.
9359 (make_breakpoint_silent): Remove.
9360 * breakpoint.c (breakpoint_set_silent): New function.
9361 (breakpoint_set_thread): Likewise.
9362 (breakpoint_set_task): Likewise.
9363 (make_breakpoint_silent): Remove.
9364
09d682a4
TT
93652011-01-31 Tom Tromey <tromey@redhat.com>
9366
9367 * breakpoint.h (user_breakpoint_p): Declare.
9368 * breakpoint.c (user_breakpoint_p): New function.
9369 (breakpoint_1): Use it.
9370 (save_breakpoints): Likewise.
9371
9c4ea6c5
JB
93722011-01-31 Joel Brobecker <brobecker@adacore.com>
9373
9374 * configure.ac: Add handling of Python distribution on Windows.
9375 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9376 sysconfig variables are not defined, then do not use them.
9377 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9378 instead. On Windows, return all paths using forward-slashes
9379 rather than backslashes.
9380
ac534cba
JB
93812011-01-31 Joel Brobecker <brobecker@adacore.com>
9382
9383 * configure.ac: Remove fallback behavior for building
9384 against Python. Remove tweaking of Python include path.
9385 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9386 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9387 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9388 Always restore CPPFLAGS and LIBS after linking test.
9389 * configure: Regenerated.
9390 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9391 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9392 * python/python-internal.h: Adjust includes of Python .h files.
9393
c2f0d045
JB
93942011-01-31 Joel Brobecker <brobecker@adacore.com>
9395
9396 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9397 in error message.
9398
6b0c4c1f
JB
93992011-01-31 Joel Brobecker <brobecker@adacore.com>
9400
9401 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9402 value test.
9403
672c9795
YQ
94042011-01-31 Yao Qi <yao@codesourcery.com>
9405
9406 * arm-linux-nat.c: Update calls to regcache_register_status
9407 instead of regcache_valid_p.
9408 * aix-thread.c: Likewise.
9409 * i386gnu-nat.c: Likewise.
9410
80b23b6a
JK
94112011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9412
9413 Fix crash.
9414 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9415 touching TYPE_FIELD_ARTIFICIAL.
9416
4cd712bd
RE
94172011-01-28 Richard Earnshaw <rearnsha@arm.com>
9418
9419 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9420 Committers.
9421
ffd5ec24
PA
94222011-01-28 Pedro Alves <pedro@codesourcery.com>
9423
9424 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9425 selected, don't try iterating over the traceframe's blocks.
9426 (tfile_has_stack): If there's no traceframe selected, then there's
9427 no stack.
9428 (tfile_has_registers): If there's no traceframe selected, then
9429 there's no registers.
9430
e8c9e0a1
PA
94312011-01-28 Pedro Alves <pedro@codesourcery.com>
9432
9433 * target.c (memory_xfer_partial): No need to restore shadows if we
9434 haven't read anything.
9435
de15c4ab
PA
94362011-01-28 Pedro Alves <pedro@codesourcery.com>
9437
9438 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9439 and val_print_scalar_formatted.
9440
9f41c731
PA
94412011-01-27 Pedro Alves <pedro@codesourcery.com>
9442
9443 * tracepoint.c (tfile_read): New.
9444 (tfile_open): Use it.
9445 (tfile_get_traceframe_address): Use it.
9446 (tfile_trace_find): Use it.
9447 (walk_blocks_callback_func): New typedef.
9448 (match_blocktype): New function.
9449 (traceframe_walk_blocks): New function.
9450 (traceframe_find_block_type): New function.
9451 (tfile_fetch_registers, tfile_xfer_partial)
9452 (tfile_get_trace_state_variable_value): Use
9453 traceframe_find_block_type and tfile_read.
9454
cdefc55d
KB
94552011-01-26 Kevin Buettner <kevinb@redhat.com>
9456
9457 * remote-mips.c: Add internationalization mark ups. Remove
9458 trailing \n from already marked up strings.
9459
a81766d8
TT
94602011-01-26 Tom Tromey <tromey@redhat.com>
9461
9462 * python/py-prettyprint.c (print_string_repr): Clear
9463 'addressprint' option when calling val_print_string.
9464 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9465 option when calling val_print_string.
9466
74aedc46
TT
94672011-01-26 Tom Tromey <tromey@redhat.com>
9468
9469 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9470 GDB_PY_LL_ARG.
9471 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9472 macros.
9473 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9474 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9475 (gdb_py_long_as_ulongest): New defines.
9476 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9477 (gdb_py_int_as_long): Declare.
9478 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9479 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9480 (valpy_long): Add comment.
9481 * python/py-utils.c (get_addr_from_python): Use
9482 gdb_py_long_as_ulongest. Handle overflow properly.
9483 (gdb_py_object_from_longest): New function.
9484 (gdb_py_object_from_ulongest): Likewise.
9485 (gdb_py_int_as_long): Likewise.
9486 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9487 * python/py-symtab.c (salpy_get_pc): Use
9488 gdb_py_long_from_ulongest.
9489 (salpy_get_line): Use PyInt_FromLong.
9490 * python/py-param.c (set_parameter_value): Use
9491 gdb_py_int_as_long.
9492 * python/py-lazy-string.c (stpy_get_address): Use
9493 gdb_py_long_from_ulongest.
9494 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9495 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9496 * python/py-breakpoint.c (bppy_set_thread): Use
9497 gdb_py_int_as_long.
9498 (bppy_set_task): Likewise.
9499 (bppy_set_ignore_count): Likewise.
9500 (bppy_set_hit_count): Likewise.
9501 * python/py-block.c (blpy_get_start): Use
9502 gdb_py_object_from_ulongest.
9503 (blpy_get_end): Likewise.
9504 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9505
e4f6d2ec
TJB
95062011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9507
9508 PR/symtab 11766:
9509 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9510 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9511 equality test for objfile, initialize addr_low if needed.
9512
b30aa278
PA
95132011-01-25 Pedro Alves <pedro@codesourcery.com>
9514
9515 * tui/tui-regs.c (tui_register_format): Remove dead code.
9516
ab2188aa
PA
95172011-01-25 Pedro Alves <pedro@codesourcery.com>
9518
9519 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9520 instead of print_scalar_formatted.
9521 (print_scalar_formatted): Don't handle 's' format strings here,
9522 and add an assertion that we never see such format here.
9523 * valprint.h (val_print_scalar_formatted): Declare.
9524 * valprint.c (val_print_scalar_formatted): New.
9525 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9526 instead of print_scalar_formatted.
9527 * jv-valprint.c (java_val_print): Ditto.
9528 * p-valprint.c (pascal_val_print): Ditto.
9529 * ada-valprint.c (ada_val_print_1): Ditto.
9530 * f-valprint.c (f_val_print): Ditto.
9531 * infcmd.c (registers_info): Ditto.
9532 * m2-valprint.c (m2_val_print): Ditto.
9533
66d61a4c
PA
95342011-01-25 Pedro Alves <pedro@codesourcery.com>
9535
9536 * m2-valprint.c (print_unbounded_array): Pass
9537 value_contents_for_printing rather than value_contents, to
9538 m2_print_array_contents. Also pass in the value.
9539
831adc1f
JK
95402011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9541
9542 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9543 (save_gdb_index_command): Switch to .gdb_index version 4.
9544
20622269
PA
95452011-01-25 Pedro Alves <pedro@codesourcery.com>
9546
9547 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9548 than frame_register, and always pass a valid value to val_print.
9549
585fdaa1
PA
95502011-01-25 Pedro Alves <pedro@codesourcery.com>
9551
9552 Centralize printing "<optimized out>".
9553
9554 * valprint.h (val_print_optimized_out): Declare.
9555 * cp-valprint.c (cp_print_value_fields): Use
9556 val_print_optimized_out.
9557 * jv-valprint.c (java_print_value_fields): Ditto.
9558 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9559 * printcmd.c (print_formatted): Ditto.
9560 * valprint.c (valprint_check_validity): Ditto.
9561 (value_check_printable): Ditto.
9562 (val_print_optimized_out): New.
9563
29ec5263
PA
95642011-01-25 Pedro Alves <pedro@codesourcery.com>
9565
9566 * infcmd.c (default_print_registers_info): Allocate values so to
9567 never pass a NULL value to val_print.
9568
de4127a3
PA
95692011-01-25 Pedro Alves <pedro@codesourcery.com>
9570
9571 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9572 boolean. Make sure to always pass a value that matches the
9573 contents buffer to callees. Preserve `address' for following
9574 iterations.
9575 * value.c (value_contents_for_printing_const): New.
9576 (value_address): Constify value argument.
9577 * value.h (value_contents_for_printing_const): Declare.
9578 (value_address): Constify value argument.
9579
ee99023e
PA
95802011-01-25 Pedro Alves <pedro@codesourcery.com>
9581
9582 * regcache.c (struct regcache_descr): Rename
9583 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9584 and sizeof_cooked_register_valid_p to
9585 sizeof_cooked_register_status.
9586 (init_regcache_descr): Adjust.
9587 (struct regcache): Rename register_valid_p field to
9588 register_status.
9589 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9590 (do_cooked_read): Adjust.
9591 (regcache_valid_p): Rename to ...
9592 (regcache_register_status): ... this. Adjust.
9593 (regcache_invalidate): Adjust.
9594 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9595 Adjust.
9596 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9597 as unavailable, not valid.
9598 (regcache_dump): Adjust.
9599 * regcache.h (enum register_status): New.
9600 (regcache_register_status): Declare.
9601 (regcache_invalidate): Delete declaration.
9602 * corelow.c (get_core_registers): Adjust.
9603 * tracepoint.c (tfile_fetch_registers): Adjust.
9604 * trad-frame.c (REG_VALUE): Rename to ...
9605 (TF_REG_VALUE): ... this.
9606 (REG_UNKNOWN): Rename to ...
9607 (TF_REG_UNKNOWN): ... this.
9608 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9609 * mi/mi-main.c (register_changed_p): Adjust.
9610
99e42fd8
PA
96112011-01-25 Pedro Alves <pedro@codesourcery.com>
9612
9613 * regcache.c (struct regcache_descr): Remove outdated comment.
9614 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9615 overallocate hack.
9616 (regcache_xmalloc): Rename to ...
9617 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9618 Allocate the regcache type accordingly.
9619 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9620 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9621 cooked registers, not raw.
9622 (regcache_dup_no_passthrough): Delete.
9623 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9624 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9625 mention obsolete write_register_bytes.
9626 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9627
f7605bc2
PA
96282011-01-25 Pedro Alves <pedro@codesourcery.com>
9629
9630 Stop remote_read_bytes from handling partial reads itself.
9631
9632 * remote-fileio.c: Include target.h.
9633 (remote_fileio_write_bytes): Delete.
9634 (remote_fileio_func_open, remote_fileio_func_write)
9635 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9636 target_read_memory.
9637 (remote_fileio_func_stat): Use target_read_memory and
9638 target_write_memory.
9639 (remote_fileio_func_gettimeofday): Use target_write_memory.
9640 (remote_fileio_func_system): Use target_read_memory.
9641 * remote.c (remote_write_bytes): Make it static.
9642 (remote_read_bytes): Don't handle partial reads here.
9643 * remote.h (remote_read_bytes): Delete declaration.
9644
efc0eabd
PA
96452011-01-25 Pedro Alves <pedro@codesourcery.com>
9646
9647 Simplify XML parsing a bit.
9648
9649 * xml-support.h (gdb_xml_parse_quick): Declare.
9650 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9651 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9652 parameter.
9653 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9654 gdb_xml_create_parser_and_cleanup_1.
9655 (gdb_xml_parse_quick): New.
9656 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9657 * osdata.c (osdata_parse): Ditto.
9658 * remote.c (remote_threads_info): Ditto.
9659 * solib-target.c (solib_target_parse_libraries): Ditto.
9660 * xml-syscall.c (syscall_parse_xml): Ditto.
9661 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9662
314d366a
KB
96632011-01-24 Kevin Buettner <kevinb@redhat.com>
9664
9665 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9666 with remote-mips.o added to gdb_target_obs.
9667 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9668
a491d753
PA
96692011-01-24 Pedro Alves <pedro@codesourcery.com>
9670
9671 * ada-valprint.c (val_print_packed_array_elements): Pass the
9672 correct struct value to val_print.
9673 (ada_val_print_1): Ditto.
9674
490f124f
PA
96752011-01-24 Pedro Alves <pedro@codesourcery.com>
9676
9677 Don't lose embedded_offset in printing routines throughout.
9678
9679 * valprint.h (val_print_array_elements): Change prototype.
9680 * valprint.c (val_print_array_elements): Add `embedded_offset'
9681 parameter, and adjust to pass it down to val_print, while passing
9682 `valaddr' or `address' unmodified. Take embedded_offset into
9683 account when checking repetitions.
9684 * c-valprint.c (c_val_print): Pass embedded_offset to
9685 val_print_array_elements instead of adjusting `valaddr' and
9686 `address'.
9687 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9688 embedded_offset to val_print_array_elements instead of adjusting
9689 `valaddr'.
9690 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9691 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9692 val_print_array_elements and pascal_object_print_value_fields
9693 instead of adjusting `valaddr'.
9694 (pascal_object_print_value_fields): Add `offset' parameter, and
9695 adjust to use it.
9696 (pascal_object_print_value): Add `offset' parameter, and adjust to
9697 use it.
9698 (pascal_object_print_static_field): Use
9699 value_contents_for_printing/value_embedded_offset, rather than
9700 value_contents.
9701 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9702 parameter, and adjust to use it. Use
9703 value_contents_for_printing/value_embedded_offset, rather than
9704 value_contents.
9705 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9706 (ada_val_print_array): Add `offset' parameter, and adjust to use
9707 it.
9708 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9709 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9710 Instead work with offsets. Use
9711 value_contents_for_printing/value_embedded_offset, rather than
9712 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9713 and use value_from_pointer to extract a target pointer, rather
9714 than value_from_longest.
9715 (print_variant_part): Add `offset' parameter. Replace
9716 `outer_valaddr' parameter by a new `outer_offset' parameter.
9717 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9718 (ada_value_print): Use
9719 value_contents_for_printing/value_embedded_offset, rather than
9720 value_contents.
9721 (print_record): Add `offset' parameter, and adjust to pass it
9722 down.
9723 (print_field_values): Add `offset' parameter. Replace
9724 `outer_valaddr' parameter by a new `outer_offset' parameter.
9725 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9726 Use value_contents_for_printing/value_embedded_offset, rather than
9727 value_contents.
9728 * d-valprint.c (dynamic_array_type): Use
9729 value_contents_for_printing/value_embedded_offset, rather than
9730 value_contents.
9731 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9732 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9733 (java_print_value_fields): Take `offset' into account. Don't
9734 re-adjust `valaddr'. Instead pass down adjusted offsets.
9735 (java_val_print): Take `embedded_offset' into account. Pass it to
9736 java_print_value_fields.
9737 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9738 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9739 down adjusted offsets.
9740 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9741 (f_val_print): Take `embedded_offset' into account.
9742
7bfc9434
JB
97432011-01-21 Joel Brobecker <brobecker@adacore.com>
9744
9745 * inflow.c: Include "gdbcmd.h".
9746 (interactive_mode): New static global, moved here from top.c.
9747 (show_interactive_mode): New function, moved here from top.c.
9748 use gdb_has_a_terminal instead of input_from_terminal_p to
9749 determine the current mode.
9750 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9751 setting.
9752 (_initialize_inflow): Add the "set/show interactive-mode"
9753 commands. Moved here from top.c, after having adjusted slightly
9754 the help text.
9755 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9756 to inflow.c.
9757 (input_from_terminal_p): Remove handling of "interactive-mode"
9758 setting, moved to infow.c.
9759 (init_main): Remove creation of the "set/show interactive-mode"
9760 commands, moved to inflow.c.
9761
44603653
JB
97622011-01-19 Joel Brobecker <brobecker@adacore.com>
9763
9764 * NEWS: Add entry for native ia64-hpux support.
9765
4694da01
TT
97662011-01-19 Tom Tromey <tromey@redhat.com>
9767
9768 PR mi/8618:
9769 * thread.c (free_thread): Free 'name'.
9770 (print_thread_info): Emit thread name. Change CLI output.
9771 (thread_name_command): New function.
9772 (do_captured_thread_select): Emit newline.
9773 (_initialize_thread): Register 'thread name' command.
9774 * target.h (struct target_ops) <to_thread_name>: New field.
9775 (target_thread_name): New macro.
9776 * target.c (update_current_target): Handle to_thread_name.
9777 * python/py-infthread.c (thpy_get_name): New function.
9778 (thpy_set_name): Likewise.
9779 (thread_object_getset): Add "name".
9780 * linux-nat.c (linux_nat_thread_name): New function.
9781 (linux_nat_add_target): Set to_thread_name.
9782 * gdbthread.h (struct thread_info) <name>: New field.
9783
10d44370
JB
97842011-01-18 Joel Brobecker <brobecker@adacore.com>
9785
9786 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9787 (ada_val_print_1): Likewise.
9788
e3acb115
JB
97892011-01-18 Joel Brobecker <brobecker@adacore.com>
9790
9791 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9792 upper limit address is not greater than the function end address
9793 when the upper limit could not be computed using the debugging
9794 info.
9795
dc92e161
TT
97962011-01-17 Tom Tromey <tromey@redhat.com>
9797
9798 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9799 get_regcomp_error.
9800 * utils.c: Include gdb_regex.h.
9801 (do_regfree_cleanup): New function.
9802 (make_regfree_cleanup): Likewise.
9803 (get_regcomp_error): Likewise.
9804 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9805
f55af66d
TT
98062011-01-17 Tom Tromey <tromey@redhat.com>
9807
9808 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9809 re_compile_fastmap.
9810
a5a44b53
PM
98112011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9812
9813 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9814 for internal variables.
9815 (last_was_structop): New static variable.
9816 (COMPLETE): New token.
9817 (field_exp): New rule to group all '.' suffix handling.
9818 Add mark_struct_expression calls when approriate to be able
9819 to correctly find fields for completion.
9820 (yylex): Adapt to handle field completion and set INTVAR when
9821 required.
9822
2c291032
YQ
98232011-01-14 Yao Qi <yao@codesourcery.com>
9824
9825 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9826 save_reggroup, restore_reggroup and all_reggroup.
9827
447b483c
JB
98282011-01-14 Joel Brobecker <brobecker@adacore.com>
9829
9830 * ada-valprint. (ada_printchar): Use the correct type length
9831 in call to ada_emit_char.
9832 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9833
7b64a93b
PM
98342011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9835
9836 * solib-som.h (hpux_major_release): Declare variable here.
9837 * solib-som.c: Remove <sys/utsname.h> header.
9838 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9839 (hpux_major_release): Make global, change default value to
9840 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 9841 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
9842 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9843 Add "solib-som.h" header.
9844 (set_hpux_major_release): New function.
9845 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9846
4e18c053
MF
98472011-01-14 Mike Frysinger <vapier@gentoo.org>
9848
9849 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9850
a9df6b22
JB
98512011-01-14 Joel Brobecker <brobecker@adacore.com>
9852
9853 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9854 new-line at end of warning message.
9855 (ia64_hpux_store_register): Remove trailing new-line at end of
9856 error message.
9857 * ia64-hpux-tdep.c: Rephrase comment.
9858 * solib-ia64-hpux.c (struct dld_info): Change type of field
9859 dld_flags from "long long" to ULONGEST.
9860
ecb956dd
PA
98612011-01-14 Pedro Alves <pedro@codesourcery.com>
9862
9863 * target.h (deprecated_child_ops): Delete declaration.
9864 * target.c (deprecated_child_ops): Delete definition.
9865
76adfcae
PA
98662011-01-14 Pedro Alves <pedro@codesourcery.com>
9867
9868 * Makefile.in (hpux-thread.o): Delete rule.
9869 * configure.ac: Don't check for HPUX DCE threads support.
9870 * configure, config.in: Regenerate.
9871 * hppa-hpux-nat.c (child_suppress_run): Delete.
9872 (hppa_hpux_child_can_run): Delete.
9873 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9874 * hpux-thread.c: Delete.
9875
042e866e
JB
98762011-01-13 Joel Brobecker <brobecker@adacore.com>
9877
9878 * hpux-thread.c (hpux_pid_to_str): Delete.
9879
4ffa5a33
JB
98802011-01-13 Joel Brobecker <brobecker@adacore.com>
9881
9882 * ada-valprint.c (ada_emit_char): Remove strange code.
9883 Check that c is <= UCHAR_MAX before passing it to isascii.
9884 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9885
de8fa76c
JB
98862011-01-13 Joel Brobecker <brobecker@adacore.com>
9887
9888 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9889 to the case where instream is stdin.
9890
c4de7027
JB
98912011-01-13 Joel Brobecker <brobecker@adacore.com>
9892
9893 * ia64-tdep.h (struct regcache): Forward declare.
9894 (struct ia64_infcall_ops): New struct type.
9895 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9896 and "infcall_ops".
9897 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9898 Renames ia64_find_global_pointer.
9899 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9900 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9901 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9902 methods.
9903 (ia64_infcall_ops): New static global constant.
9904 (ia64_gdbarch_init): Set tdep->infcall_ops.
9905 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9906 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9907 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9908 (ia64_hpux_dummy_code): New static global constant.
9909 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9910 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9911 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9912 New function.
9913 (ia64_hpux_infcall_ops): New static global constant.
9914 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9915 for inferior function calls to work properly on ia64-hpux.
9916
77ca787b
JB
99172011-01-13 Joel Brobecker <brobecker@adacore.com>
9918
9919 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9920 * ia64-tdep.h (struct frame_info): forward declaration.
9921 (struct gdbarch_tdep): Add field size_of_register_frame.
9922 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9923 to determine the size of the register frame.
9924 (ia64_size_of_register_frame): New function.
9925 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9926 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9927 (IA64_HPUX_UREG_REASON): New macro.
9928 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9929 New functions.
9930 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9931 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9932 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9933 objects.
9934
92c9a463
JB
99352011-01-13 Joel Brobecker <brobecker@adacore.com>
9936
9937 Add support for ia64-hpux.
9938 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9939 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9940
9941 * configure.host: Add handling for ia64-hpux hosts. Add associated
9942 floatformats.
9943 * configure.tgt: Add handling for ia64-hpux targets.
9944 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9945 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9946 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9947
f688d93f
JB
99482011-01-13 Joel Brobecker <brobecker@adacore.com>
9949
9950 [ttrace] Compute thread list immediately after attach.
9951 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9952 New subprogram.
9953 (inf_ttrace_attach): Use it.
9954
1b89e62f
JB
99552011-01-13 Joel Brobecker <brobecker@adacore.com>
9956
9957 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9958 if we could not determine the frame's function address. Instead,
9959 use the frame's PC, and then continue.
9960
3e5e6e2a
JB
99612011-01-13 Joel Brobecker <brobecker@adacore.com>
9962
9963 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9964 not already defined.
9965
825d6d8a
JB
99662011-01-13 Joel Brobecker <brobecker@adacore.com>
9967
9968 * ia64-tdep.c (ia64_struct_type_p): New function.
9969 (ia64_extract_return_value): Handle integral values that are
9970 less than 8 bytes long.
9971 (ia64_push_dummy_call): Likewise.
9972
7458e667
JB
99732011-01-13 Joel Brobecker <brobecker@adacore.com>
9974
9975 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9976 floatformat_ia64_ext.
9977 (floatformat_ia64_ext_big): New static const.
9978 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9979
1b05df00
TT
99802011-01-12 Tom Tromey <tromey@redhat.com>
9981
9982 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9983 messages.
9984 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9985 (mi_cmd_thread_list_ids): Likewise.
9986 (mi_cmd_data_list_changed_registers): Likewise.
9987 (mi_cmd_data_list_register_values): Likewise.
9988 (mi_cmd_data_write_register_values): Likewise.
9989 (mi_cmd_data_evaluate_expression): Likewise.
9990 (mi_cmd_data_read_memory): Likewise.
9991 (mi_cmd_data_read_memory_bytes): Likewise.
9992 (mi_cmd_data_write_memory): Likewise.
9993 (mi_cmd_enable_timings): Likewise.
9994 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9995 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9996 (mi_cmd_var_delete): Likewise.
9997 (mi_cmd_var_set_format): Likewise.
9998 (mi_cmd_var_show_format): Likewise.
9999 (mi_cmd_var_info_num_children): Likewise.
10000 (mi_cmd_var_list_children): Likewise.
10001 (mi_cmd_var_info_type): Likewise.
10002 (mi_cmd_var_info_expression): Likewise.
10003 (mi_cmd_var_show_attributes): Likewise.
10004 (mi_cmd_var_assign): Likewise.
10005 (mi_cmd_var_update): Likewise.
10006 (mi_cmd_enable_pretty_printing): Likewise.
10007 (mi_cmd_var_set_update_range): Likewise.
10008 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10009 messages.
10010 (mi_cmd_target_file_put): Likewise.
10011 (mi_cmd_target_file_delete): Likewise.
10012 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10013 messages.
10014 (mi_cmd_stack_info_depth): Likewise.
10015 (mi_cmd_stack_list_locals): Likewise.
10016 (mi_cmd_stack_list_args): Likewise.
10017 (mi_cmd_stack_select_frame): Likewise.
10018 (mi_cmd_stack_select_frame): Likewise.
10019 (mi_cmd_stack_info_frame): Likewise.
10020 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10021 messages.
10022 (mi_cmd_file_list_exec_source_files): Likewise.
10023 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10024 (mi_cmd_env_cd): Likewise.
10025 (mi_cmd_env_path): Likewise.
10026 (mi_cmd_env_dir): Likewise.
10027 (mi_cmd_inferior_tty_show): Likewise.
10028 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10029 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10030 (mi_cmd_break_watch): Likewise.
10031
ad422571
TJB
100322011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10033
10034 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10035 (ppc_linux_insert_hw_breakpoint): Likewise.
10036 (ppc_linux_remove_hw_breakpoint): Likewise.
10037 (ppc_linux_insert_watchpoint): Likewise.
10038
c2ff108b
JK
100392011-01-12 Andrew Burgess <aburgess@broadcom.com>
10040 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 PR fortran/11104 and DWARF unbound arrays detection.
10043 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10044 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10045 unspecified upper bound.
10046 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10047 variables array_size_array, tmp_type and offset_item. New variable
10048 array. Remove call to f77_get_upperbound. New variables array_type
10049 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10050 the final call to deprecated_set_value_type.
10051
41e8491f
JK
100522011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10053
10054 Make value allocations more lazy.
10055 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10056 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10057 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10058 instead of allocate_value and set_value_lazy.
10059 * findvar.c (value_of_register_lazy): Likewise.
10060 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10061 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10062 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10063 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10064 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10065 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10066 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10067 the end, remove set_value_lazy there.
10068 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10069 instead of allocate_value and set_value_lazy when possible.
10070 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10071 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10072 of allocate_value and set_value_lazy.
10073 (value_from_contents_and_address): Use allocate_value_lazy instead of
10074 allocate_value and set_value_lazy when possible.
10075
b716877b
AB
100762011-01-12 Andrew Burgess <aburgess@broadcom.com>
10077
10078 * disasm.c (dump_insns): Support dumping opcodes for MI.
10079 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10080 dumping of instruction opcodes.
10081
d5ae309f
JB
100822011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10083
10084 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10085 appropiately.
10086
98871305
TT
100872011-01-11 Tom Tromey <tromey@redhat.com>
10088
10089 * thread.c (do_captured_thread_select): Emit newline before
10090 printing frame.
10091
c378eb4e
MS
100922011-01-11 Michael Snyder <msnyder@vmware.com>
10093
10094 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10095 * score-tdep.c: Ditto.
10096 * score-tdep.h: Ditto.
10097 * ser-base.c: Ditto.
10098 * ser-go32.c: Ditto.
10099 * serial.c: Ditto.
10100 * serial.h: Ditto.
10101 * ser-mingw.c: Ditto.
10102 * ser-pipe.c: Ditto.
10103 * ser-tcp.c: Ditto.
10104 * ser-unix.c: Ditto.
10105 * sh64-tdep.c: Ditto.
10106 * shnbsd-nat.c: Ditto.
10107 * sh-tdep.c: Ditto.
10108 * sh-tdep.h: Ditto.
10109 * solib.c: Ditto.
10110 * solib-darwin.c: Ditto.
10111 * solib-frv.c: Ditto.
10112 * solib.h: Ditto.
10113 * solib-irix.c: Ditto.
10114 * solib-osf.c: Ditto.
10115 * solib-pa64.c: Ditto.
10116 * solib-som.c: Ditto.
10117 * solib-spu.c: Ditto.
10118 * solib-sunos.c: Ditto.
10119 * solib-svr4.c: Ditto.
10120 * solist.h: Ditto.
10121 * sol-thread.c: Ditto.
10122 * somread.c: Ditto.
10123 * source.c: Ditto.
10124 * source.h: Ditto.
10125 * sparc64-linux-tdep.c: Ditto.
10126 * sparc64-tdep.c: Ditto.
10127 * sparc-linux-nat.c: Ditto.
10128 * sparc-linux-tdep.c: Ditto.
10129 * sparc-sol2-nat.c: Ditto.
10130 * sparc-sol2-tdep.c: Ditto.
10131 * sparc-tdep.c: Ditto.
10132 * sparc-tdep.h: Ditto.
10133 * spu-tdep.c: Ditto.
10134 * stabsread.c: Ditto.
10135 * stabsread.h: Ditto.
10136 * stack.c: Ditto.
10137 * symfile.c: Ditto.
10138 * symfile.h: Ditto.
10139 * symmisc.c: Ditto.
10140 * symtab.c: Ditto.
10141 * symtab.h: Ditto.
10142 * target.c: Ditto.
10143 * target-descriptions.c: Ditto.
10144 * target-descriptions.h: Ditto.
10145 * target.h: Ditto.
10146 * target-memory.c: Ditto.
10147 * terminal.h: Ditto.
10148 * thread.c: Ditto.
10149 * top.c: Ditto.
10150 * tracepoint.c: Ditto.
10151 * tracepoint.h: Ditto.
10152 * trad-frame.h: Ditto.
10153 * typeprint.c: Ditto.
10154
581e13c1
MS
101552011-01-11 Michael Snyder <msnyder@vmware.com>
10156
10157 * ui-file.c: Comment cleanup, mostly periods and spaces.
10158 * ui-file.h: Ditto.
10159 * ui-out.c: Ditto.
10160 * ui-out.h: Ditto.
10161 * utils.c: Ditto.
10162 * v850-tdep.c: Ditto.
10163 * valarith.c: Ditto.
10164 * valops.c: Ditto.
10165 * valprint.c: Ditto.
10166 * valprint.h: Ditto.
10167 * value.c: Ditto.
10168 * value.h: Ditto.
10169 * varobj.c: Ditto.
10170 * varobj.h: Ditto.
10171 * vax-tdep.c: Ditto.
10172 * vec.c: Ditto.
10173 * vec.h: Ditto.
10174 * version.h: Ditto.
10175 * windows-nat.c: Ditto.
10176 * windows-tdep.c: Ditto.
10177 * xcoffread.c: Ditto.
10178 * xcoffsolib.c: Ditto.
10179 * xml-support.c: Ditto.
10180 * xstormy16-tdep.c: Ditto.
10181 * xtensa-tdep.c: Ditto.
10182 * xtensa-tdep.h: Ditto.
10183
90e4670f
TJB
101842011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10185
10186 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10187 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10188
e09342b5
TJB
101892011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10190 Thiago Jung Bauermann <bauerman@br.ibm.com>
10191
10192 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10193 * breakpoint.h
e09342b5
TJB
10194 (struct breakpoint_ops) <resources_needed>: New method.
10195 Initialize to NULL in all existing breakpoint_ops instances.
10196 (struct breakpoint) <exact>: New field.
10197 (target_exact_watchpoints): Declare external global.
10198 * breakpoint.c (target_exact_watchpoints): New global flag.
10199 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10200 b->enable_state to bp_enabled before calling
10201 hw_watchpoint_used_count.
10202 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10203 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10204 if available.
10205 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10206 if the watchpoint is exact.
10207 (resources_needed_watchpoint): New function.
10208 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10209 (watch_command_1): Set b->exact if the user asked for an exact
10210 watchpoint and one can be set.
10211 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10212 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10213 the user asks for an exact watchpoint and one can be set. Return
10214 number of needed debug registers to watch the expression.
10215 * gdbtypes.c (is_scalar_type): New function, based on
10216 valprint.c:scalar_type_p.
10217 (is_scalar_type_recursive): New function.
10218 * gdbtypes.h (is_scalar_type_recursive): Declare.
10219 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10220 handle regions when ranged watchpoints are available.
10221 (create_watchpoint_request): New function.
10222 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10223 create_watchpoint_request.
10224 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10225 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10226 `set powerpc' and `show powerpc' commands.
10227 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10228 Mention documentation comment in the target macro.
10229 (target_region_ok_for_hw_watchpoint): Document return value.
10230
9fa40276
TJB
102312011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10232
10233 * breakpoint.c (update_watchpoint): Decide on using a software or
10234 hardware watchpoint after the bp_locations are created.
10235
77b06cd7
TJB
102362010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10237
10238 Convert hardware watchpoints to use breakpoint_ops.
10239 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10240 <insert_location>: ... this. Return int instead of void.
10241 Accept pointer to struct bp_location instead of pointer to
10242 struct breakpoint. Adapt all implementations.
f2eb0bc8 10243 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10244 <remove_location>: ... this. Accept pointer to struct bp_location
10245 instead of pointer to struct breakpoint. Adapt all implementations.
10246 * breakpoint.c (insert_catchpoint): Delete function.
10247 (insert_bp_location): Call the watchpoint or catchpoint's
10248 breakpoint_ops.insert method.
10249 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10250 breakpoint_ops.remove method.
10251 (insert_watchpoint, remove_watchpoint): New functions.
10252 (watchpoint_breakpoint_ops): New structure.
10253 (watch_command_1): Initialize the OPS field.
10254 * inf-child.c (inf_child_insert_fork_catchpoint)
10255 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10256 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10257 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10258 Delete functions.
10259 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10260 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10261 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10262 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10263 * target.c (update_current_target): Change default implementation of
10264 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10265 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10266 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10267 to_set_syscall_catchpoint to return_one.
10268 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10269 (debug_to_insert_exec_catchpoint): Report return value.
10270 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10271 (to_insert_exec_catchpoint): Change declaration to return int instead
10272 of void.
10273
9b20d036
MS
102742011-01-11 Michael Snyder <msnyder@vmware.com>
10275
10276 * arm-tdep.c: Internationalization.
10277 * c-lang.c: Ditto.
10278 * charset.c: Ditto.
10279 * fork-child.c: Ditto.
10280 * nto-procfs.c: Ditto.
10281 * ppc-sysv-tdep.c: Ditto.
10282 * procfs.c: Ditto.
10283 * remote-mips.c: Ditto.
10284 * remote.c: Ditto.
10285 * rs6000-nat.c: Ditto.
10286 * rs6000-tdep.c: Ditto.
10287 * target.c: Ditto.
10288 * valops.c: Ditto.
10289 * value.c: Ditto.
10290 * xml-support.c: Ditto.
10291 * mi/mi-cmd-break.c: Ditto.
10292 * mi/mi-cmd-var.c: Ditto.
10293 * mi/mi-interp.c: Ditto.
10294 * mi/mi-main.c: Ditto.
10295
dae477fe
AB
102962011-01-11 Andrew Burgess <aburgess@broadcom.com>
10297
10298 * remote-sim.c (gdbsim_store_register): Update API to
10299 sim_store_register to check more error conditions.
10300
0df8b418
MS
103012011-01-10 Michael Snyder <msnyder@vmware.com>
10302
10303 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10304 * nto-tdep.c: Ditto.
10305 * nto-tdep.h: Ditto.
10306 * objc-exp.y: Ditto.
10307 * objc-lang.c: Ditto.
10308 * objfiles.c: Ditto.
10309 * objfiles.h: Ditto.
10310 * observer.c: Ditto.
10311 * opencl-lang.c: Ditto.
10312 * osabi.c: Ditto.
10313 * parse.c: Ditto.
10314 * parser-defs.h: Ditto.
10315 * p-exp.y: Ditto.
10316 * p-lang.c: Ditto.
10317 * posix-hdep.c: Ditto.
10318 * ppcbug-rom.c: Ditto.
10319 * ppc-linux-nat.c: Ditto.
10320 * ppc-linux-tdep.c: Ditto.
10321 * ppc-linux-tdep.h: Ditto.
10322 * ppcnbsd-tdep.c: Ditto.
10323 * ppcobsd-tdep.c: Ditto.
10324 * ppcobsd-tdep.h: Ditto.
10325 * ppc-sysv-tdep.c: Ditto.
10326 * ppc-tdep.h: Ditto.
10327 * printcmd.c: Ditto.
10328 * proc-abi.c: Ditto.
10329 * proc-flags.c: Ditto.
10330 * procfs.c: Ditto.
10331 * proc-utils.h: Ditto.
10332 * progspace.h: Ditto.
10333 * prologue-value.c: Ditto.
10334 * prologue-value.h: Ditto.
10335 * psympriv.h: Ditto.
10336 * psymtab.c: Ditto.
10337 * p-typeprint.c: Ditto.
10338 * p-valprint.c: Ditto.
10339 * ravenscar-sparc-thread.c: Ditto.
10340 * ravenscar-thread.c: Ditto.
10341 * ravenscar-thread.h: Ditto.
10342 * record.c: Ditto.
10343 * regcache.c: Ditto.
10344 * regcache.h: Ditto.
10345 * remote.c: Ditto.
10346 * remote-fileio.c: Ditto.
10347 * remote-fileio.h: Ditto.
10348 * remote.h: Ditto.
10349 * remote-m32r-sdi.c: Ditto.
10350 * remote-mips.c: Ditto.
10351 * remote-sim.c: Ditto.
10352 * rs6000-aix-tdep.c: Ditto.
10353 * rs6000-nat.c: Ditto.
10354 * rs6000-tdep.c: Ditto.
10355
0d7a18f7
MS
103562011-01-10 Michael Snyder <msnyder@vmware.com>
10357
10358 * charset.c (validate): Internationalization.
10359 * coffread.c (read_one_sym): Ditto.
10360 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10361 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10362 * inflow.c (new_tty): Ditto.
10363 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10364 * m32c-tdep.c (m32c_return_value): Ditto.
10365 * mep-tdep.c (mep_store_return_value): Ditto.
10366 * score-tdep.c (score7_fetch_insn): Ditto.
10367 * ser-mingw.c (pipe_windows_open): Ditto.
10368 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10369 * spu-tdep.c (spu_register_type): Ditto.
10370 * tracepoint.c (trace_find_command): Ditto.
10371 * valarith.c (value_pos): Ditto.
10372
9a153e0b
JB
103732011-01-10 Joel Brobecker <brobecker@adacore.com>
10374
10375 * ada-valprint.c (printstr): Minor comment reformatting.
10376
35ecd2d6
MS
103772011-01-08 Michael Snyder <msnyder@vmware.com>
10378
10379 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10380 markup.
10381
1777feb0
MS
103822011-01-08 Michael Snyder <msnyder@vmware.com>
10383
10384 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10385 * hppa-hpux-tdep.c: Ditto.
10386 * hppa-linux-nat.c: Ditto.
10387 * hppa-linux-tdep.c: Ditto.
10388 * hppanbsd-tdep.c: Ditto.
10389 * hppa-tdep.c: Ditto.
10390 * hppa-tdep.h: Ditto.
10391 * hpux-thread.c: Ditto.
10392 * i386-cygwin-tdep.c: Ditto.
10393 * i386-darwin-nat.c: Ditto.
10394 * i386gnu-nat.c: Ditto.
10395 * i386-linux-nat.c: Ditto.
10396 * i386-linux-tdep.c: Ditto.
10397 * i386-nat.c: Ditto.
10398 * i386-nat.h: Ditto.
10399 * i386nbsd-tdep.c: Ditto.
10400 * i386-sol2-nat.c: Ditto.
10401 * i386-stub.c: Ditto.
10402 * i386-tdep.c: Ditto.
10403 * i386-tdep.h: Ditto.
10404 * i387-tdep.c: Ditto.
10405 * ia64-linux-nat.c: Ditto.
10406 * ia64-linux-tdep.c: Ditto.
10407 * ia64-tdep.c: Ditto.
10408 * infcall.c: Ditto.
10409 * infcall.h: Ditto.
10410 * infcmd.c: Ditto.
10411 * inferior.c: Ditto.
10412 * inferior.h: Ditto.
10413 * infloop.c: Ditto.
10414 * inflow.c: Ditto.
10415 * infrun.c: Ditto.
10416 * interps.c: Ditto.
10417 * interps.h: Ditto.
10418 * iq2000-tdep.c: Ditto.
10419 * irix5-nat.c: Ditto.
10420 * jit.c: Ditto.
10421 * jit.h: Ditto.
10422 * jv-exp.y: Ditto.
10423 * jv-lang.c: Ditto.
10424 * jv-lang.h: Ditto.
10425 * jv-typeprint.c: Ditto.
10426 * jv-valprint.c: Ditto.
10427 * language.c: Ditto.
10428 * language.h: Ditto.
10429 * linespec.c: Ditto.
10430 * linux-fork.c: Ditto.
10431 * linux-nat.c: Ditto.
10432 * linux-thread-db.c: Ditto.
10433 * lm32-tdep.c: Ditto.
10434
025bb325
MS
104352011-01-08 Michael Snyder <msnyder@vmware.com>
10436
10437 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10438 * m2-lang.c: Ditto.
10439 * m2-typeprint.c: Ditto.
10440 * m2-valprint.c: Ditto.
10441 * m32c-tdep.c: Ditto.
10442 * m32r-linux-nat.c: Ditto.
10443 * m32r-rom.c: Ditto.
10444 * m32r-tdep.c: Ditto.
10445 * m32r-tdep.h: Ditto.
10446 * m68hc11-tdep.c: Ditto.
10447 * m58klinux-nat.c: Ditto.
10448 * m68k-tdep.c: Ditto.
10449 * m88k-tdep.c: Ditto.
10450 * m88k-tdep.h: Ditto.
10451 * machoread.c: Ditto.
10452 * macrocmd.c: Ditto.
10453 * macroexp.c: Ditto.
10454 * macrotab.c: Ditto.
10455 * main.c: Ditto.
10456 * maint.c: Ditto.
10457 * mdebugread.c: Ditto.
10458 * mdebugread.h: Ditto.
10459 * memattr.c: Ditto.
10460 * memattr.h: Ditto.
10461 * memory-map.h: Ditto.
10462 * mep-tdep.c: Ditto.
10463 * microblaze-rom.c: Ditto.
10464 * microblaze-tdep.c: Ditto.
10465 * minsyms.c: Ditto.
10466 * mips-irix-tdep.c: Ditto.
10467 * mips-linux-nat.c: Ditto.
10468 * mips-linux-tdep.c: Ditto.
10469 * mips-linux-tdep.h: Ditto.
10470 * mipsnbsd-nat.c: Ditto.
10471 * mipsnbsd-tdep.c: Ditto.
10472 * mipsread.c: Ditto.
10473 * mips-tdep.c: Ditto.
10474 * mips-tdep.h: Ditto.
10475 * mn10300-linux-tdep.c: Ditto.
10476 * mn10300-tdep.c: Ditto.
10477 * mn10300-tdep.h: Ditto.
10478 * monitor.c: Ditto.
10479 * monitor.h: Ditto.
10480 * moxie-tdep.c: Ditto.
10481 * moxie-tdep.h: Ditto.
10482 * mt-tdep.c: Ditto.
10483
1642781b
MF
104842011-01-08 Mike Frysinger <vapier@gentoo.org>
10485
10486 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10487
394b0adb
JB
104882011-01-08 Robert Millan <rmh@gnu.org>
10489
10490 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10491
b670013c
MS
104922011-01-07 Michael Snyder <msnyder@vmware.com>
10493
10494 * charset.c (_initialize_charset): Fix typo in string.
10495
a743e542
MS
104962011-01-07 Michael Snyder <msnyder@vmware.com>
10497
10498 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10499 for i18n.
f2eb0bc8 10500 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10501 Split line so that operator goes to beginning of line.
10502 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10503 assignment out of if statement.
10504
0963b4bd
MS
105052011-01-07 Michael Snyder <msnyder@vmware.com>
10506
10507 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10508 * ada-lang.h: Ditto.
10509 * ada-tasks.c: Ditto.
10510 * ada-valprint.c: Ditto.
10511 * aix-threads.c: Ditto.
10512 * alpha-linux-nat.c: Ditto.
10513 * alpha-linux-tdep.c: Ditto.
10514 * alpha-mdebug-tdep.c: Ditto.
10515 * alpha-nat.c: Ditto.
10516 * alpha-osf1-tdep.c: Ditto.
10517 * alpha-tdep.c: Ditto.
10518 * alphabsd-nat.c: Ditto.
10519 * alphabsd-tdep.c: Ditto.
10520 * amd64-darwin-tdep.c: Ditto.
10521 * amd64-linux-nat.c: Ditto.
10522 * amd64-linux-tdep.c: Ditto.
10523 * amd64-sol2-tdep.c: Ditto.
10524 * amd64-tdep.c: Ditto.
10525 * amd64-fbsd-tdep.c: Ditto.
10526 * amd64-nbsd-tdep.c: Ditto.
10527 * amd64-obsd-tdep.c: Ditto.
10528 * amd64-linux-nat.c: Ditto.
10529 * amd64-linux-tdep.c: Ditto.
10530 * arm-tdep.c: Ditto.
10531 * arm-tdep.h: Ditto.
10532 * armnbsd-nat.c: Ditto.
10533 * avr-tdep.c: Ditto.
10534 * bfin-tdep.c: Ditto.
10535 * bsd-kvm.c: Ditto.
10536 * c-typeprintc: Ditto.
10537 * c-valprint.c: Ditto.
10538 * coff-pe-read.h: Ditto.
10539 * coffreead.c: Ditto.
10540 * cris-tdep.c: Ditto.
10541 * d-lang.c: Ditto.
10542 * darwin-nat-info.c: Ditto.
10543 * darwin-nat.c: Ditto.
10544 * dbug-rom.c: Ditto.
10545 * dbxread.c: Ditto.
10546 * dcache.c: Ditto.
10547 * dcache.h: Ditto.
10548 * dec-thread.c: Ditto.
10549 * defs.h: Ditto.
10550 * demangle.c: Ditto.
10551 * dicos-tdep.c: Ditto.
10552 * dictionary.c: Ditto.
10553 * dictionary.h: Ditto.
10554 * dink32-rom.c: Ditto.
10555 * disasm.c: Ditto.
10556 * doublest.c: Ditto.
10557 * dsrec.c: Ditto.
10558 * dummy-frame.c: Ditto.
10559 * dwarf2-frame.c: Ditto.
10560 * dwarf2expr.c: Ditto.
10561 * dwarf2loc.c: Ditto.
10562 * dwarf2read.c: Ditto.
10563 * elfread.c: Ditto.
10564 * environ.c: Ditto.
10565 * eval.c: Ditto.
10566 * event-top.h: Ditto.
10567 * exceptions.c: Ditto.
10568 * exceptions.h: Ditto.
10569 * exec.c: Ditto.
10570 * expprint.c: Ditto.
10571 * expression.h: Ditto.
10572 * f-exp.y: Ditto.
10573 * f-lang.c: Ditto.
10574 * f-lang.h: Ditto.
10575 * f-typeprint.c: Ditto.
10576 * f-valprint.c: Ditto.
10577 * fbsd-nat.c: Ditto.
10578 * findvar.c: Ditto.
10579 * fork-child.c: Ditto.
10580 * frame.c: Ditto.
10581 * frame.h: Ditto.
10582 * frv-linux-tdep.c: Ditto.
10583 * frv-tdep.c: Ditto.
10584 * gcore.c: Ditto.
10585 * gdb-stabs.h: Ditto.
10586 * gdb_assert.h: Ditto.
10587 * gdb_string.h: Ditto.
10588 * gdb_thread_db.h: Ditto.
10589 * gdb_wait.h: Ditto.
10590 * gdbarch.sh: Ditto.
10591 * gdbcore.h: Ditto.
10592 * gdbthread.h: Ditto.
10593 * gdbtypes.c: Ditto.
10594 * gdbtypes.h: Ditto.
10595 * gnu-nat.c: Ditto.
10596 * gnu-nat.h: Ditto.
10597 * gnu-v2-abi.c: Ditto.
10598 * gnu-v3-abi.c: Ditto.
10599 * go32-nat.c: Ditto.
10600 * gdbarch.c: Regenerate.
10601 * gdbarch.h: Regenerate.
10602
ac74f770
MS
106032011-01-07 Michael Snyder <msnyder@vmware.com>
10604
10605 * ax-gdb.c: Adjust some long output strings.
10606 * breakpoint.c: Ditto.
10607 * charset.c: Ditto.
10608 * cp-abi.c: Ditto.
10609 * infcall.c: Ditto.
10610 * infrun.c: Ditto.
10611 * linux-nat.c: Ditto.
10612 * solib-pa64.c: Ditto.
10613 * solib-som.c: Ditto.
10614
d8e22779
TT
106152011-01-06 Tom Tromey <tromey@redhat.com>
10616
10617 PR python/12367:
10618 * NEWS: Add item.
10619 * python/python.c (GdbMethods): Add "newest_frame" method.
10620 * python/python-internal.h (gdbpy_newest_frame): Declare.
10621 * python/py-frame.c (gdbpy_newest_frame): New function.
10622
a255712f
PP
106232010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10624
10625 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10626 * jit.c (jit_debug): New variable.
10627 (show_jit_debug): New function.
10628 (struct target_buffer): Use ULONGEST.
10629 (bfd_open_from_target_memory): Likewise.
10630 (jit_register_code, jit_inferior_init): Add debug output.
10631 (_initialize_jit): Register "debug jit" command.
10632
ccfc3d6e
TT
106332011-01-06 Tom Tromey <tromey@redhat.com>
10634
10635 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10636 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10637 and ARCH_FRAME.
10638
57126e4a
TT
106392011-01-06 Tom Tromey <tromey@redhat.com>
10640
10641 * python/py-frame.c (frapy_block): Use get_frame_block.
10642
16dfc9ce
JB
106432011-01-06 Joel Brobecker <brobecker@adacore.com>
10644
10645 Do not stop on SIGPRIO signals by default
10646 * infrun.c (_initialize_infrun): Unset signal_stop and
10647 signal_print for TARGET_SIGNAL_PRIO.
10648
b1ce2347
JB
106492011-01-06 Joel Brobecker <brobecker@adacore.com>
10650
10651 * ada-tasks.c: Fix style violation in comment.
10652
8f7e195f
JB
106532011-01-06 Joel Brobecker <brobecker@adacore.com>
10654
10655 * linespec.c (decode_compound, find_method): Remove trailing \n
10656 at end of error string.
10657 * solib-irix.c (irix_current_sos): Likewise.
10658 * varobj.c (uninstall_variable): Likewise.
10659
e9bdf92c
JB
106602011-01-06 Joel Brobecker <brobecker@adacore.com>
10661
10662 * copyright.py: New script.
10663 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10664 Launch emacs without exec'ing. Call copyright.py afterwards.
10665
3e43a32a
MS
106662011-01-05 Michael Snyder <msnyder@vmware.com>
10667
10668 * addrmap.c: Shorten lines of >= 80 columns.
10669 * arch-utils.c: Ditto.
10670 * arch-utils.h: Ditto.
10671 * ax-gdb.c: Ditto.
10672 * ax-general.c: Ditto.
10673 * bcache.c: Ditto.
10674 * blockframe.c: Ditto.
10675 * breakpoint.c: Ditto.
10676 * buildsym.c: Ditto.
10677 * c-lang.c: Ditto.
10678 * c-typeprint.c: Ditto.
10679 * charset.c: Ditto.
10680 * coffread.c: Ditto.
10681 * command.h: Ditto.
10682 * corelow.c: Ditto.
10683 * cp-abi.c: Ditto.
10684 * cp-namespace.c: Ditto.
10685 * cp-support.c: Ditto.
10686 * dbug-rom.c: Ditto.
10687 * dbxread.c: Ditto.
10688 * defs.h: Ditto.
10689 * dfp.c: Ditto.
10690 * dfp.h: Ditto.
10691 * dictionary.c: Ditto.
10692 * disasm.c: Ditto.
10693 * doublest.c: Ditto.
10694 * dwarf2-frame.c: Ditto.
10695 * dwarf2expr.c: Ditto.
10696 * dwarf2loc.c: Ditto.
10697 * dwarf2read.c: Ditto.
10698 * elfread.c: Ditto.
10699 * eval.c: Ditto.
10700 * event-loop.c: Ditto.
10701 * event-loop.h: Ditto.
10702 * exceptions.h: Ditto.
10703 * exec.c: Ditto.
10704 * expprint.c: Ditto.
10705 * expression.h: Ditto.
10706 * f-lang.c: Ditto.
10707 * f-valprint.c: Ditto.
10708 * findcmd.c: Ditto.
10709 * frame-base.c: Ditto.
10710 * frame-unwind.c: Ditto.
10711 * frame-unwind.h: Ditto.
10712 * frame.c: Ditto.
10713 * frame.h: Ditto.
10714 * gcore.c: Ditto.
10715 * gdb-stabs.h: Ditto.
10716 * gdb_assert.h: Ditto.
10717 * gdb_dirent.h: Ditto.
10718 * gdb_obstack.h: Ditto.
10719 * gdbcore.h: Ditto.
10720 * gdbtypes.c: Ditto.
10721 * gdbtypes.h: Ditto.
10722 * inf-ttrace.c: Ditto.
10723 * infcall.c: Ditto.
10724 * infcmd.c: Ditto.
10725 * inflow.c: Ditto.
10726 * infrun.c: Ditto.
10727 * inline-frame.h: Ditto.
10728 * language.c: Ditto.
10729 * language.h: Ditto.
10730 * libunwind-frame.c: Ditto.
10731 * libunwind-frame.h: Ditto.
10732 * linespec.c: Ditto.
10733 * linux-nat.c: Ditto.
10734 * linux-nat.h: Ditto.
10735 * linux-thread-db.c: Ditto.
10736 * machoread.c: Ditto.
10737 * macroexp.c: Ditto.
10738 * macrotab.c: Ditto.
10739 * main.c: Ditto.
10740 * maint.c: Ditto.
10741 * mdebugread.c: Ditto.
10742 * memattr.c: Ditto.
10743 * minsyms.c: Ditto.
10744 * monitor.c: Ditto.
10745 * monitor.h: Ditto.
10746 * objfiles.c: Ditto.
10747 * objfiles.h: Ditto.
10748 * osabi.c: Ditto.
10749 * p-typeprint.c: Ditto.
10750 * p-valprint.c: Ditto.
10751 * parse.c: Ditto.
10752 * printcmd.c: Ditto.
10753 * proc-events.c: Ditto.
10754 * procfs.c: Ditto.
10755 * progspace.c: Ditto.
10756 * progspace.h: Ditto.
10757 * psympriv.h: Ditto.
10758 * psymtab.c: Ditto.
10759 * record.c: Ditto.
10760 * regcache.c: Ditto.
10761 * regcache.h: Ditto.
10762 * remote-fileio.c: Ditto.
10763 * remote.c: Ditto.
10764 * ser-mingw.c: Ditto.
10765 * ser-tcp.c: Ditto.
10766 * ser-unix.c: Ditto.
10767 * serial.c: Ditto.
10768 * serial.h: Ditto.
10769 * solib-frv.c: Ditto.
10770 * solib-irix.c: Ditto.
10771 * solib-osf.c: Ditto.
10772 * solib-pa64.c: Ditto.
10773 * solib-som.c: Ditto.
10774 * solib-sunos.c: Ditto.
10775 * solib-svr4.c: Ditto.
10776 * solib-target.c: Ditto.
10777 * solib.c: Ditto.
10778 * somread.c: Ditto.
10779 * source.c: Ditto.
10780 * stabsread.c: Ditto.
10781 * stabsread.c: Ditto.
10782 * stack.c: Ditto.
10783 * stack.h: Ditto.
10784 * symfile-mem.c: Ditto.
10785 * symfile.c: Ditto.
10786 * symfile.h: Ditto.
10787 * symmisc.c: Ditto.
10788 * symtab.c: Ditto.
10789 * symtab.h: Ditto.
10790 * target-descriptions.c: Ditto.
10791 * target-memory.c: Ditto.
10792 * target.c: Ditto.
10793 * target.h: Ditto.
10794 * terminal.h: Ditto.
10795 * thread.c: Ditto.
10796 * top.c: Ditto.
10797 * tracepoint.c: Ditto.
10798 * tracepoint.h: Ditto.
10799 * ui-file.c: Ditto.
10800 * ui-file.h: Ditto.
10801 * ui-out.h: Ditto.
10802 * user-regs.c: Ditto.
10803 * user-regs.h: Ditto.
10804 * utils.c: Ditto.
10805 * valarith.c: Ditto.
10806 * valops.c: Ditto.
10807 * valprint.c: Ditto.
10808 * valprint.h: Ditto.
10809 * value.c: Ditto.
10810 * varobj.c: Ditto.
10811 * varobj.h: Ditto.
10812 * vec.h: Ditto.
10813 * xcoffread.c: Ditto.
10814 * xcoffsolib.c: Ditto.
10815 * xcoffsolib.h: Ditto.
10816 * xml-syscall.c: Ditto.
10817 * xml-tdesc.c: Ditto.
10818
9a2b4c1b
MS
108192011-01-05 Michael Snyder <msnyder@vmware.com>
10820
10821 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10822 * cli/cli-decode.c: Ditto.
10823 * cli/cli-dump.c: Ditto.
10824 * cli/cli-logging.c: Ditto.
10825 * cli/cli-script.c: Ditto.
10826 * cli/cli-setshow.c: Ditto.
10827 * common/signals.c: Ditto.
10828 * mi/mi-cmd-break.c: Ditto.
10829 * mi/mi-cmd-disas.c: Ditto.
10830 * mi/mi-cmd-stack.c: Ditto.
10831 * mi/mi-cmd-var.c: Ditto.
10832 * mi/mi-cmds.c: Ditto.
10833 * mi/mi-common.h: Ditto.
10834 * mi/mi-console.c: Ditto.
10835 * mi/mi-interp.c: Ditto.
10836 * mi/mi-main.c: Ditto.
10837 * osf-share/cma_attr.c: Ditto.
10838 * osf-share/cma_deb_core.h: Ditto.
10839 * osf-share/cma_debug_client.h: Ditto.
10840 * osf-share/cma_handle.h: Ditto.
10841 * osf-share/cma_mutex.h: Ditto.
10842 * osf-share/cma_stack_int.h: Ditto.
10843 * osf-share/cma_tcb_defs.h: Ditto.
10844 * python/py-auto-load.c: Ditto.
10845 * python/py-breakpoint.c: Ditto.
10846 * python/py-cmd.c: Ditto.
10847 * python/py-frame.c: Ditto.
10848 * python/py-objfile.c: Ditto.
10849 * python/py-param.c: Ditto.
10850 * python/py-progspace.c: Ditto.
10851 * python/py-symbol.c: Ditto.
10852 * python/py-value.c: Ditto.
10853 * python/python-internal.h: Ditto.
10854 * python/python.c: Ditto.
10855 * tui/tui-data.c: Ditto.
10856 * tui/tui-disasm.c: Ditto.
10857 * tui/tui-hooks.c: Ditto.
10858 * tui/tui-io.c: Ditto.
10859 * tui/tui-layout.c: Ditto.
10860 * tui/tui-regs.c: Ditto.
10861 * tui/tui-source.c: Ditto.
10862 * tui/tui-stack.c: Ditto.
10863 * tui/tui-win.c: Ditto.
10864 * tui/tui-windata.c: Ditto.
10865 * tui/tui-winsource.c: Ditto.
10866
44944448
JB
108672011-01-05 Joel Brobecker <brobecker@adacore.com>
10868
10869 * configure.ac, gdb.1: Copyright year update.
10870
ebedcab5
JK
108712011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10872
10873 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10874 this_pc_in_block, morestack_msym and morestack_name. Check for
10875 "__morestack" minimal symbol there.
10876
e5cc9f32
JB
108772011-01-03 Joel Brobecker <brobecker@adacore.com>
10878
10879 * symfile.c (find_sym_fns): Add call to dont_repeat.
10880
7b6bb8da
JB
108812011-01-01 Joel Brobecker <brobecker@adacore.com>
10882
10883 Copyright year update in most files (performed by copyright.sh).
10884
71ce852c
JB
108852011-01-01 Joel Brobecker <brobecker@adacore.com>
10886
10887 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 10888
c3c1ebe8 10889For older changes see ChangeLog-2010.
c906108c
SS
10890\f
10891Local Variables:
10892mode: change-log
10893left-margin: 8
10894fill-column: 74
10895version-control: never
57da7796 10896coding: utf-8
c906108c 10897End:
This page took 2.07689 seconds and 4 git commands to generate.