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