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