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