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