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