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