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