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