gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-11-22 Tom Tromey <tromey@redhat.com>
2
3 PR mi/8444:
4 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
5 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
6 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
7 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
8 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
9 (print_it_catch_syscall, print_it_catch_exec)
10 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
11 (bpstat_print): Add 'kind' argument. Handle
12 TARGET_WAITKIND_LOADED.
13 * infrun.c (normal_stop): Update for bpstat_print change. Don't
14 handle TARGET_WAITKIND_LOADED here.
15 * breakpoint.h (bpstat_print): Update.
16
17 2011-11-22 Tom Tromey <tromey@redhat.com>
18
19 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
20
21 2011-11-22 Tom Tromey <tromey@redhat.com>
22
23 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
24 Use static_assert to check the size of
25 async_reason_string_lookup.
26 * common/gdb_assert.h (static_assert): New macro.
27
28 2011-11-22 Alan Modra <amodra@gmail.com>
29
30 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
31 destination calculation. Don't expect >> to sign extend. Don't
32 add a break if branch lands inside the sequence anywhere.
33
34 2011-11-21 Keith Seitz <keiths@redhat.com>
35
36 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
37 -var-evaluate-expression of an enumeration and fix expected result.
38 * gdb.mi/mi2-varvdisplay.exp: Likewise.
39
40 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
41
42 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
43 the case where osdata->items is empty. Rename column names to a
44 canonical form to avoid problems with unusual column names.
45
46 2011-11-21 Yao Qi <yao@codesourcery.com>
47
48 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
49
50 2011-11-20 Stan Shebs <stan@codesourcery.com>
51
52 * NEWS: Mention tracepoint additions.
53 * breakpoint.h (struct tracepoint): New field traceframe_usage.
54 * breakpoint.c (print_one_breakpoint_location): Identify
55 tracepoints as such when reporting hit counts, report
56 trace buffer usage.
57 (create_tracepoint_from_upload): Copy status info.
58 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
59 add fields user_name, notes, start_time, stop_time.
60 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
61 * tracepoint.c (trace_user): New global.
62 (trace_notes): New global.
63 (trace_stop_notes): New global.
64 (start_tracing): Add argument and trace note handling.
65 (stop_tracing): Ditto.
66 (trace_start_command): Add notes argument.
67 (trace_stop_command): Ditto.
68 (trace_status_command): Report additional status info.
69 (trace_status_mi): Similarly.
70 (trace_save): Update, record tracepoint status.
71 (set_disconnected_tracing): Call target method directly.
72 (send_disconnected_tracing_value): Remove.
73 (set_trace_user): New function.
74 (set_trace_notes): New function.
75 (set_trace_stop_notes): New function.
76 (parse_trace_status): Handle additional status.
77 (parse_tracepoint_status): New function.
78 (parse_tracepoint_definition): Call it.
79 (tfile_get_tracepoint_status): New function.
80 (init_tfile_ops): Use it.
81 (_initialize_tracepoint): Add new setshows.
82 * target.h (struct target_ops): New methods to_get_tracepoint_status
83 and to_set_trace_notes.
84 (target_get_tracepoint_status): New macro.
85 (target_set_trace_notes): New macro.
86 * target.c (update_current_target): Add new methods.
87 * remote.c (remote_get_tracepoint_status): New function.
88 (remote_set_trace_notes): New function.
89 (init_remote_ops): Add them.
90 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
91 (mi_cmd_trace_stop): Ditto.
92
93 2011-11-20 Sanjoy Das <sdas@igalia.com>
94
95 * jit.c: Include regcache.h.
96 (jit_gdbarch_data, jit_frame_unwind): New static variables.
97 (jit_unwind_reg_set_impl, free_reg_value_impl)
98 (jit_unwind_reg_get_impl, jit_frame_sniffer)
99 (jit_frame_unwind_stop_reason, jit_frame_this_id)
100 (jit_frame_prev_register, jit_dealloc_cache)
101 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
102 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
103 jit_prepend_unwinder.
104 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
105
106 2011-11-20 Sanjoy Das <sdas@igalia.com>
107
108 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
109 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
110 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
111 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
112 (finalize_symtab, jit_object_close_impl)
113 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
114 (free_objfile_data): New functions.
115 (_initialize_jit): Register jit_objfile_data with a proper cleanup
116 function.
117
118 2011-11-20 Sanjoy Das <sdas@igalia.com>
119
120 * jit.c: Include gdb-dlfcn.h.
121 (loaded_jit_reader, reader_init_fn_sym): New static variables.
122 (jit_reader_load, jit_reader_load_command)
123 (jit_reader_unload_command): New functions.
124 (_initialize_jit): Add commands "jit-reader-load" and
125 "jit-reader-unload".
126
127 2011-11-20 Sanjoy Das <sdas@igalia.com>
128
129 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
130 * config.in: Add new #define HAVE_LIBDL.
131 * configure.ac: Add check for -ldl.
132 * configure: Re-generated by autoconf.
133 * gdb-dlfcn.c: New file.
134 * gdb-dlfcn.h: New file.
135
136 2011-11-20 Sanjoy Das <sdas@igalia.com>
137
138 * config.in: Add new #defines: JIT_READER_DIR and
139 JIT_READER_DIR_RELOCATABLE.
140 * configure.ac: New GDB directory entry for jit-reader-dir.
141 * configure: Re-generated by autoconf.
142 * jit.c: New static variable: const char *jit_reader_dir.
143 (_initialize_jit): Relocate jit_reader_dir.
144
145 2011-11-20 Sanjoy Das <sdas@igalia.com>
146
147 * Makefile.in: Add jit-reader.h as a header. Have it installed in
148 $(includedir)/gdb.
149 * configure.ac: Generate a correct value for TARGET_PTR for
150 jit-reader.h. Tell configure to generate jit-reader.h from
151 jit-reader.in.
152 * configure: Re-generated by autoconf.
153 * jit-reader.in: New file.
154 * jit.c: Include jit-reader.h.
155
156 2011-11-20 Sanjoy Das <sdas@igalia.com>
157
158 * MAINTAINERS (Write After Approval): Add myself to the list.
159
160 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
161
162 * findvar.c (read_frame_register_value): Respect value_offset
163 of the register value. Remove big-endian special case.
164
165 2011-11-18 Tom Tromey <tromey@redhat.com>
166
167 PR build/7196:
168 * remote.c (putpkt_for_catch_errors): New function.
169 (remote_kill): Use it.
170
171 2011-11-18 Yao Qi <yao@codesourcery.com>
172
173 * breakpoint.c (create_breakpoint): Produce query message according to
174 breakpoint's type.
175 Allocate tracepoint per correct type.
176 Don't check SALs for pending fast tracepoints.
177 * tracepoint.c (process_tracepoint_on_disconnect): New.
178 (disconnect_tracing): Call process_tracepoint_on_disconnect.
179
180 2011-11-18 Yao Qi <yao@codesourcery.com>
181
182 * breakpoint.c (install_breakpoint): Add one more parameter so that
183 update_global_location_list is called conditionally.
184 (create_fork_vfork_event_catchpoint): Update.
185 (create_syscall_event_catchpoint): Update.
186 (create_breakpoint_sal): Update.
187 (create_breakpoint_sal): Update. Call do_cleanups before
188 install_breakpoint.
189 * ada-lang.c (create_ada_exception_catchpoint): Update.
190 * breakpoint.h (install_breakpoint): Update declaration.
191
192 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
193
194 * spu-tdep.c (spu_return_value): Fix handling of
195 TYPE_CALLING_CONVENTION annotation.
196
197 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
198
199 * skip.c (skip_function_command): Work around uninitialized
200 variable warning.
201
202 2011-11-16 David S. Miller <davem@davemloft.net>
203
204 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
205 'tv_usec' to long for printf since these fields have a type which
206 varies.
207
208 2011-11-15 Doug Evans <dje@google.com>
209
210 * buildsym.c (add_symbol_to_list): Delete outdated comment.
211
212 2011-11-15 Paul Koning <paul_koning@dell.com>
213
214 * python/py-type.c (typy_get_composite): New function.
215 (typy_nonzero): New function.
216 (typy_values): Rename from typy_fields.
217 (typy_fields): New function.
218 (typy_length): Raise exception if not struct, union, or enum type.
219 (typy_getitem): Ditto.
220 (typy_has_key): Ditto.
221 (typy_make_iter): Ditto.
222
223 2011-11-15 Doug Evans <dje@google.com>
224
225 * NEWS: Mention new parameter basenames-may-differ.
226 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
227 ! basenames_may_differ.
228 * psymtab.c (lookup_partial_symtab): Ditto.
229 * symtab.c (lookup_symtab): Ditto.
230 (basenames_may_differ): New global.
231 (_initialize_symtab): New parameter basenames-may-differ.
232 * symtab.h (basenames_may_differ): Declare.
233
234 2011-11-15 Pedro Alves <pedro@codesourcery.com>
235 Luis Machado <lgustavo@codesourcery.com>
236
237 * auxv.c: Include observer.h.
238 (auxv_inferior_data_cleanup): New.
239 (invalidate_auxv_cache_inf): New.
240 (invalidate_auxv_cache): New.
241 (get_auxv_inferior_data): New.
242 (auxv_inferior_data): New static global.
243 (auxv_info): New structure.
244 (target_auxv_search): Use get_auxv_inferior_data instead of
245 target_read_alloc and don't free cached buffers.
246 (fprint_target_auxv): Likewise
247 (_initialize_auxv): Register per-inferior auxv cache and register
248 observers to invalidate auxv cache when needed.
249
250 2011-11-14 Doug Evans <dje@google.com>
251
252 Make "!" an alias for "shell".
253 * NEWS: Add mention.
254 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
255 adding "!" command, always add it.
256 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
257 command of length one.
258
259 2011-11-14 Stan Shebs <stan@codesourcery.com>
260 Kwok Cheung Yeung <kcy@codesourcery.com>
261
262 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
263 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
264 the minimum instruction size for fast tracepoints.
265 * target.h (struct target_ops): Add new method
266 to_get_min_fast_tracepoint_insn_len.
267 (target_get_min_fast_tracepoint_insn_len): New.
268 * target.c (update_current_target): Set up new target operation.
269 * remote.c (remote_write_bytes_aux): Fix typo.
270 (remote_get_min_fast_tracepoint_insn_len): New.
271 (init_remote_ops): Initialize new field.
272
273 2011-11-14 Tom Tromey <tromey@redhat.com>
274
275 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
276 (encode_actions): Likewise.
277
278 2011-11-14 Yao Qi <yao@codesourcery.com>
279
280 * remote.c (struct remote_state): <install_in_trace> new field.
281 (PACKET_InstallInTrace): New enum value.
282 (remote_install_in_trace_feature): Support InstallInTrace.
283 (remote_supports_install_in_trace): Likewise.
284 (remote_protocol_features): Likewise.
285 (_initialize_remote): Likewise.
286 (remote_can_download_tracepoint): New.
287 * target.h (struct target): New field
288 `to_can_download_tracepoint'.
289 (target_can_download_tracepoint): New macro.
290 * target.c (update_current_target): Update.
291 * breakpoint.h (struct bp_location): Add comment on field
292 `duplicate'.
293 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
294 and tracepoint.
295 (remove_breakpoints): Don't remove tracepoints.
296 (tracepoint_locations_match ): New.
297 (breakpoint_locations_match): Call it.
298 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
299 (download_tracepoint_locations): New.
300 (update_global_location_list): Call it.
301 * tracepoint.c (find_matching_tracepoint): Delete.
302 (find_matching_tracepoint_location): Renamed from
303 find_matching_tracepoint. Return bp_location rather than
304 tracepoint.
305 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
306 tracepoint is found.
307
308 2011-11-14 Yao Qi <yao@codesourcery.com>
309
310 * target.h (struct target): <to_download_tracepoint> Change type
311 of parameter from tracepoint to bp_location.
312 * target.c (update_current_target): Update.
313 * tracepoint.c (start_tracing): Update.
314 * remote.c (remote_download_tracepoint): Remove loop for each location
315 of a tracepoint.
316
317 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
318
319 * i386-nat.c (i386_insert_hw_breakpoint): Call
320 i386_update_inferior_debug_regs.
321 (i386_remove_hw_breakpoint): Likewise.
322
323 2011-11-14 Yao Qi <yao@codesourcery.com>
324
325 * breakpoint.c (init_raw_breakpoint): Call
326 add_location_to_breakpoint to replace duplicated code.
327 (add_location_to_breakpoint): Adjust the breakpoint's
328 address prior to allocating a location.
329
330 2011-11-12 Matt Rice <ratmice@gmail.com>
331
332 * macrocmd.c (macro_no_macro_info): New function.
333 (macro_expand_command): Use macro_no_macro_info.
334 (macro_expand_once_command): Ditto.
335 (info_macro_command): Add argument processing,
336 move info_definitions_command here.
337 (_initialize_macrocmd): Remove info definitions command.
338 Add arguments to info macro help text.
339 * NEWS: Replace info definitions command with new info macro options.
340
341 2011-11-11 Keith Seitz <keiths@redhat.com>
342
343 PR gdb/12843
344 * linespec.c (locate_first_half): Keep ':' if it looks
345 like it could be part of a Windows path starting with
346 a drive letter.
347
348 2011-11-10 Pedro Alves <pedro@codesourcery.com>
349
350 * linux-nat.c (linux_nat_wait): Don't force waking up the event
351 loop when returning a TARGET_WAITKIND_NO_RESUMED.
352
353 2011-11-10 Pedro Alves <pedro@codesourcery.com>
354
355 * target.c (target_waitstatus_to_string): Handle
356 TARGET_WAITKIND_NO_RESUMED.
357
358 2011-11-10 Doug Evans <dje@google.com>
359
360 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
361 `need_fullname'.
362 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
363 (map_partial_symbol_filenames): Ditto. All callers updated.
364 * psymtab.h (map_partial_symbol_filenames): Update prototype.
365 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
366 parameter need_fullname.
367
368 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
369 * source.c (symtab_to_fullname): Ditto.
370
371 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
372 * gdb-demangle.h: ... here. New file.
373 * demangle.c: #include "gdb-demangle.h".
374 (_initialize_demangler): Use initialize_file_ftype for prototype.
375 Move "set demangle" and "set asm-demangle" parameters here from utils.c
376 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
377 from utils.c
378 * utils.c: Update. #include "gdb-demangle.h".
379 * symtab.h (asm_demangle): Delete.
380 (demangle): Move declaration next to use.
381 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
382 * dwarf2read.c: #include "gdb-demangle.h".
383 * gnu-v2-abi.c: Ditto.
384 * jv-typeprint.c: Ditto.
385 * mdebugread.c: Ditto.
386 * p-typeprint.c: Ditto.
387 * stabsread.c: Ditto.
388 * printcmd.c: Ditto.
389 (asm_demangle): Delete declaration.
390 * tui/tui-stack.c: #include "gdb-demangle.h".
391
392 * python/py-type.c (typy_fields_items): Call check_typedef.
393
394 2011-11-10 Joel Brobecker <brobecker@adacore.com>
395
396 * findvar.c (read_frame_register_value): Read the correct bytes
397 from registers on big-endian architectures.
398
399 2011-11-10 Tom Tromey <tromey@redhat.com>
400
401 * procfs.c (load_syscalls): Make a cleanup.
402 (open_procinfo_files): fd==0 is ok.
403
404 2011-11-10 Joel Brobecker <brobecker@adacore.com>
405
406 * procfs.c (iterate_over_mappings): Call do_cleanups before
407 returning.
408
409 2011-11-09 Doug Evans <dje@google.com>
410
411 * gdbtypes.c (check_typedef): Document that this function can
412 throw an exception.
413
414 2011-11-09 Tom Tromey <tromey@redhat.com>
415
416 PR c++/13342:
417 * valops.c (value_full_object): Return early if real type is
418 smaller than the enclosing type.
419
420 2011-11-08 Yao Qi <yao@codesourcery.com>
421
422 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
423
424 2011-11-08 Meador Inge <meadori@codesourcery.com>
425
426 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
427 register when the frame can't be determined.
428 * arm-tdep.c (arm_analyze_prologue): Ditto.
429
430 2011-11-07 Stan Shebs <stan@codesourcery.com>
431
432 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
433
434 2011-11-07 Joel Brobecker <brobecker@adacore.com>
435
436 * infrun.c (handle_inferior_event): Minor reformatting.
437
438 2011-11-05 Doug Evans <dje@google.com>
439
440 * source.c (forget_cached_source_info_for_objfile): Move call to
441 objfile->sf->qf->forget_cached_source_info outside of
442 ALL_OBJFILE_SYMTABS loop.
443 (forget_cached_source_info): Delete unused variable `s'.
444
445 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
446
447 * i386-nat.c (dr_ref_count): Remove unused variable.
448
449 2011-11-05 Doug Evans <dje@google.com>
450
451 * main.c (captured_main): Set lim_at_start before calling
452 make_command_stats_cleanup.
453
454 2011-11-04 Doug Evans <dje@google.com>
455
456 * utils.c: #include "timeval-utils.h".
457 (cmd_stats): Rename start_time to start_cpu_time.
458 New member start_wall_time.
459 (report_command_stats): Report wall time.
460 (make_command_stats_cleanup): Record start wall time.
461
462 2011-11-04 Tom Tromey <tromey@redhat.com>
463
464 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
465
466 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
467
468 * coff-pe-read.c: Include defs.h before bfd.h.
469
470 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
471
472 PR Python/13345
473
474 * python/python.c (python_run_simple_file): Expand tilde in path.
475
476 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
477
478 PR Python/13363
479
480 * python/py-type.c (typy_lookup_type): Do not return a type in
481 an exception handler.
482
483 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
484 Eli Zaretskii <eliz@gnu.org>
485
486 * linux-nat.c (_initialize_linux_nat): Improve help
487 for `info proc stat', `info proc status', `info proc cwd',
488 `info proc cmdline' and `info proc exe'.
489
490 2011-11-02 Stan Shebs <stan@codesourcery.com>
491
492 String collection for tracepoints.
493 * NEWS: Mention string collection.
494 * common/ax.def (tracenz): New bytecode.
495 * ax-gdb.h (trace_string_kludge): Declare.
496 * ax-gdb.c: Include valprint.h and c-lang.h.
497 (trace_string_kludge): New global.
498 (gen_traced_pop): Add string case.
499 (agent_command): Add string case.
500 * tracepoint.h (decode_agent_options): Declare.
501 * tracepoint.c: Include cli-utils.h.
502 (decode_agent_options): New function.
503 (validate_actionline): Call it.
504 (encode_actions_1): Ditto.
505 * target.h (struct target_ops): New method to_supports_string_tracing.
506 (target_supports_string_tracing): New macro.
507 * target.c (update_current_target): Add to_supports_string_tracing.
508 * remote.c (struct remote_state): New field string_tracing.
509 (remote_string_tracing_feature): New function.
510 (remote_protocol_features): New feature tracenz.
511 (remote_supports_string_tracing): New function.
512 (init_remote_ops): Set to_supports_string_tracing.
513
514 2011-11-02 Pedro Alves <pedro@codesourcery.com>
515 Jan Kratochvil <jan.kratochvil@redhat.com>
516
517 * linux-nat.c: Include cli/cli-utils.h.
518 (enum info_proc_what): New.
519 (linux_nat_info_proc_cmd): Rename to ...
520 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
521 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
522 status_f and stat_f from WHAT. Throw error on extra parameters.
523 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
524 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
525 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
526 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
527 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
528 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
529 `info proc cmdline', `info proc exe' and `info proc all' as real
530 subcommands of `info proc'.
531
532 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
533
534 * Makefile.in: (SFILES): Add skip.c.
535 (HFILES_NO_SRCDIR): Add skip.h.
536 (COMMON_OBS): Add skip.o.
537 * skip.h, skip.c: New.
538 * breakpoint.h (set_default_breakpoint): Remove.
539 (get_sal_arch): Declare.
540 * breakpoint.c: Remove default_breakpoint_valid,
541 default_breakpoint_address, default_breakpoint_symtab,
542 default_breakpoint_line, default_breakpoint_pspace variables.
543 (get_sal_arch): Make public.
544 (set_default_breakpoint): Remove.
545 (parse_breakpoint_sals, create_breakpoint, clear_command,
546 decode_line_spec_1): Remove uses of default_breakpoint variables;
547 replaced with function calls into stack.c.
548 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
549 * cli/cli-cmds.c: Add skiplist.
550 (init_cmd_lists): Initialize skiplist.
551 (init_cli_cmds): Fix comment (classes of commands appear in
552 alphabetical order).
553 * infrun.c (handle_inferior_event): Add check that we don't step into
554 a function whose pc is marked for skip.
555 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
556 last_displayed_addr, last_displayed_symtab, last_displayed_line
557 variables.
558 (set_last_displayed_sal): New static function.
559 (print_frame_info): Switch call to set_default_breakpoint to call to
560 set_last_displayed_sal.
561 (clear_last_displayed_sal, last_displayed_sal_is_valid,
562 get_last_displayed_pspace, get_last_displayed_addr,
563 get_last_displayed_symtab, get_last_displayed_line,
564 get_last_displayed_sal): New public functions.
565 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
566 get_last_displayed_pspace, get_last_displayed_addr,
567 get_last_displayed_symtab, get_last_displayed_line,
568 get_last_displayed_sal): Declare.
569
570 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
571
572 * MAINTAINERS (Write After Approval): Add myself to the list.
573
574 2011-10-29 Yao Qi <yao@codesourcery.com>
575
576 * infcmd.c (disconnect_command): Call disconnect_tracing.
577
578 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 Code cleanup.
581 * symtab.c (skip_prologue_sal): Code reformatting.
582
583 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
584
585 PR symtab/13208
586 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
587 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
588 SAI.
589
590 2011-10-28 Pedro Alves <pedro@codesourcery.com>
591
592 * linux-nat.c (linux_nat_filter_event): Remove `options'
593 parameter, and dead code that used it. If we're handling a
594 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
595 in our lwp list, re-add it.
596 (check_zombie_leaders): New.
597 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
598 wait for children with WNOHANG, and always wait for all children.
599 Don't check for no resumed children upfront. Simplify wait loop.
600 Check for zombie thread group leaders after handling all wait
601 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
602 unwaited-for children left.
603 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
604 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
605 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
606 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
607
608 2011-10-28 Sterling Augustine <saugustine@google.com>
609
610 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
611 * symtab.c (free_completion_list): New function.
612 (do_free_completion_list): Likewise.
613 (default_make_symbol_completion_list_break_on): New variable
614 back_to. Call make_cleanup and discard_cleanups.
615 (make_source_files_completion_list): Likewise.
616
617 2011-10-28 Paul Koning <paul_koning@dell.com>
618
619 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
620 * NEWS: Mention deep_items.
621
622 2011-10-28 Alen Skondro <askondro@gmail.com>
623
624 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
625 defined.
626
627 2011-10-27 Meador Inge <meadori@codesourcery.com>
628
629 * MAINTAINERS (Write After Approval): Add myself to the list.
630
631 2011-10-27 Joel Brobecker <brobecker@adacore.com>
632
633 * value.h (read_frame_register_value): Add declaration.
634 * findvar.c (read_frame_register_value): New function.
635 (value_from_register): Use read_frame_register_value
636 instead of get_frame_register_value + value_contents_copy
637 to get value contents.
638
639 2011-10-27 Doug Evans <dje@google.com>
640
641 * cli/cli-cmds.c (source_script_with_search): Pass full path to
642 source_script_from_stream if it may have been found on the search path.
643 * python/py-auto-load.c (source_section_scripts): Pass full path to
644 source_python_script_for_objfile.
645 * python/python.c (source_python_script): Delete stream parameter.
646 All callers updated.
647 (source_python_script_for_objfile): Ditto.
648 * python/python-internal.h (source_python_script_for_objfile): Update.
649 * python/python.h (source_python_script): Update.
650
651 2011-10-27 Tom Tromey <tromey@redhat.com>
652
653 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
654 (ada_sals_for_line): Remove declarations.
655
656 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
657
658 Move unwind reasons to an external .def file
659 * frame.c (frame_stop_reason_string): Rewrite using
660 unwind_stop_reasons.def.
661 * frame.h (enum unwind_stop_reason): Likewise.
662 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
663 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
664 constants for bound-checking.
665 * unwind_stop_reasons.def: New file.
666 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
667 instead of a distinct value.
668
669 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
670
671 PR python/13331
672
673 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
674 (convert_values_to_python): Return on Python tuple allocation
675 failure. Return NULL on value conversion error.
676
677 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
678
679 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
680 (bppy_set_task): Ditto.
681 (bppy_delete_breakpoint): Ditto.
682 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
683 (gdbpy_lookup_global_symbol): Ditto.
684 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
685 * python/py-frame.c (frapy_is_valid): Ditto.
686 (frame_info_to_frame_object): Ditto.
687 * python/py-type.c (typy_lookup_type): Ditto.
688 (typy_getitem): Ditto.
689 (typy_has_key): Ditto.
690 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
691
692 2011-10-26 Joel Brobecker <brobecker@adacore.com>
693
694 * gdbarch.h: Regenerate.
695
696 2011-10-26 Meador Inge <meadori@codesourcery.com>
697
698 * gdbarch.sh (function_list): Use 'pstring' when printing
699 'gcore_bfd_target'.
700 * gdbarch.c: Regenerate.
701
702 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
703
704 * regcache.c (registers_changed_ptid): Invalidate thread architecture
705 and frame caches if PTID refers to all threads of a process.
706
707 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
708
709 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
710 to create_breakpoint.
711
712 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
713
714 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
715 (ppc_sysv_abi_push_dummy_call): Use it.
716 (do_ppc_sysv_return_value): Likewise.
717 (ppc64_sysv_abi_push_dummy_call): Likewise.
718 (ppc64_sysv_abi_return_value): Likewise.
719
720 2011-10-26 Paul Koning <paul_koning@dell.com>
721
722 * python/lib/gdb/types.py (deepitems): New function.
723
724 2011-10-25 Paul Koning <paul_koning@dell.com>
725
726 PR python/13327
727
728 * python/py-value.c (value_to_value_object): Remove fetching of
729 the value if it was lazy.
730 (valpy_get_is_lazy): New function.
731 (valpy_fetch_lazy): New function.
732
733 2011-10-24 Joel Brobecker <brobecker@adacore.com>
734
735 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
736 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
737
738 2011-10-24 Pedro Alves <pedro@codesourcery.com>
739
740 * linux-nat.c (linux_handle_extended_wait): When handling a clone
741 event, in non-stop, if not stopping, make sure the new lwp has
742 last_resume_kind set to resume_continue. Assert that when we're
743 resuming the new lwp, its last_resume_kind is resume_continue.
744
745 2011-10-24 Pedro Alves <pedro@codesourcery.com>
746
747 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
748 already set when marking the event thread as not executing in
749 non-stop mode.
750
751 2011-10-24 Pedro Alves <pedro@codesourcery.com>
752
753 * infrun.c (handle_inferior_event): Add debug output for
754 TARGET_WAITKIND_NO_HISTORY.
755
756 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
757
758 * NEWS: Move set/show extended-prompt to "New Options". Expand
759 description. Fix typos.
760
761 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
762
763 PR python/13310
764
765 * python/py-param.c (call_doc_function): Correctly deference on
766 function exit.
767
768 2011-10-21 Joel Brobecker <brobecker@adacore.com>
769
770 * ada-tasks.c (print_ada_task_info): Fix computation of
771 number of tasks displayed in command output.
772
773 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
774 Ulrich Weigand <uweigand@de.ibm.com>
775
776 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
777 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
778 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
779 gdbarch_pc_regnum and frame_unwind_register_unsigned by
780 gdbarch_unwind_pc.
781
782 2011-10-20 Cary Coutant <ccoutant@google.com>
783
784 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
785 section to...
786 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
787 flag. Adjust all callers.
788 (process_psymtab_comp_unit): Remove adjustment for type section.
789
790 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
791
792 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
793 arguments by adding OBJFILE. Instead of getting objfile from
794 symbol's symtab, use new argument OBJFILE.
795 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
796 arguments by adding OBJFILE.
797 * gdb/dwarf2read.c (new_symbol_full): Change call to
798 cp_scan_for_anonymous_namespaces to match new signature.
799 * gdb/stabsread.c (define_symbol): Change call to
800 cp_scan_for_anonymous_namespaces to match new signature.
801
802 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
803
804 PR python/13308
805 PR python/13309
806
807 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
808 leak.
809 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
810 leak. Delete unused variables.
811
812 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
813
814 PR python/12656
815
816 * python/py-frame.c (frapy_read_var): Use const struct *block.
817 * python/py-type.c (typy_lookup_typename): Likewise.
818 (typy_lookup_type): Likewise.
819 (typy_legacy_template_argument): Likewise.
820 (typy_template_argument): Likewise.
821 (gdbpy_lookup_type): Likewise.
822 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
823 * python/py-block.c (blpy_block_object): Likewise.
824 (blpy_iter): Likewise.
825 (blpy_get_start): Likewise.
826 (blpy_get_end): Likewise.
827 (blpy_get_function): Likewise.
828 (blpy_get_superblock): Likewise.
829 (set_block): Likewise.
830 (block_to_block_object): Likewise.
831 (block_object_to_block): Likewise.
832 (blpy_is_valid): Likewise.
833 (blpy_get_global_block): New function.
834 (blpy_get_static_block): New function.
835 (blpy_is_global): New function.
836 (blpy_is_static): New function.
837 * blockframe.c (block_innermost_frame): Likewise.
838 * valops.c (value_of_variable): Likewise.
839 * frame.h: Update prototypes.
840 * python/python-internal.h: Likewise.
841 * value.h: Likewise.
842
843 2011-10-19 Cary Coutant <ccoutant@google.com>
844
845 * dwarf2read.c (create_debug_types_hash_table): Fix size of
846 type_offset field.
847
848 2011-10-19 Cary Coutant <ccoutant@google.com>
849
850 * dwarf2read.c (peek_abbrev_code): New function.
851 (dw2_get_file_names): Check for dummy compilation units.
852 (create_debug_types_hash_table): Likewise.
853 (process_psymtab_comp_unit): Likewise.
854 (load_partial_comp_unit): Likewise.
855 (load_full_comp_unit): Likewise.
856
857 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
858
859 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
860 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
861 pt_phdr if PT_PHDR was found.
862
863 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
864
865 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
866 type or "<unnamed type"> when there is no name assigned.
867 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
868 avoid a sigint when no name is assigned.
869
870 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
871
872 Revert:
873 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
874 * dwarf2expr.c (ctx_no_read_reg): New function.
875 * dwarf2expr.h (ctx_no_read_reg): New declaration.
876 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
877 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
878 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
879
880 2011-10-16 Doug Evans <dje@google.com>
881
882 * NEWS: Document python gdb.printing.register_pretty_printer's new
883 `replace' parameter.
884
885 2011-10-14 Keith Seitz <keiths@redhat.com>
886
887 PR c++/13225
888 * eval.c (evaluate_subexp_standard): Do not construct
889 an array of types; pass the value array directly to
890 find_overload_match.
891 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
892 (rank_function): Take an array of values instead of types.
893 (rank_one_type): Add struct value * parameter.
894 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
895 (rank_function): For each argument, pass the argument's
896 value to rank_one_type.
897 (rank_one_type): Add VALUE parameter.
898 If the parameter type is a pointer and the argument type
899 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
900 VALUE is zero.
901 Update all calls to rank_one_type, passing NULL for new
902 VALUE parameter.
903 * valarith.c (value_user_defined_cpp_op): Do not construct
904 an array of types; pass the value array directly to
905 find_overload_match.
906 * valops.c (find_overload_method_list): Take an array of
907 values instead of types.
908 Save the type of OBJP for later use.
909 Update calls to find_oload_champ, and find_oload_champ_namespace.
910 (find_oload_champ_namespace): Take an array of values instead
911 of types.
912 (find_oload_champ_namespace_loop): Likewise.
913 (find_oload_champ): Likewise.
914 (classify_oload_match): Inspect all arguments
915 until INCOMPATIBLE is found. Return the worst badness found
916 otherwise.
917 (compare_parameters): Update call to rank_one_type.
918 * value.h (find_overload_match): Take an array of values instead
919 of types.
920
921 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 Drop lazy lm_info reading.
924 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
925 l_addr_inferior, l_ld, l_next, l_prev and l_name.
926 (lm_info_read): New function.
927 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
928 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
929 lm_dynamic_from_link_map.
930 (lm_next, lm_prev, lm_name): Remove.
931 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
932 initialization incl. read_memory. No longer use lm_name.
933 (svr4_free_so): Drop lm_info->lm freeing.
934 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
935 explicit lm_addr and lm initialization.
936 (svr4_read_so_list): Use lm_info_read, drop the initailization of
937 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
938 lm_name.
939
940 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
941 Paul Pluzhnikov <ppluzhnikov@google.com>
942
943 * defs.h (struct so_list): New forward declaration.
944 (make_cleanup_free_so): New declaration.
945 * solib-svr4.c (ignore_first_link_map_entry): Remove.
946 (svr4_free_so): Move the function here from downwards. Handle NULL
947 so->lm_info.
948 (svr4_free_library_list): New.
949 (svr4_read_so_list): New, moved here code from svr4_current_sos.
950 Use more cleanups. Use new parameter ignore_first instead of
951 ignore_first_link_map_entry.
952 (svr4_current_sos): New variable ignore_first, initialize it. New
953 variable back_to, use it for svr4_free_library_list protection.
954 (svr4_free_so): Remove - move upwards.
955 * utils.c: Include solist.h.
956 (do_free_so, make_cleanup_free_so): New functions.
957
958 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
959
960 Fix internal error regression.
961 * value.c (value_primitive_field): Handle value_optimized_out. Move
962 packed bitfields comment.
963
964 2011-10-13 Tom Tromey <tromey@redhat.com>
965
966 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
967 always released.
968
969 2011-10-13 Tom Tromey <tromey@redhat.com>
970
971 * python/py-type.c (typy_has_key): Make 'field' const.
972
973 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
974
975 * remote.c (remote_save_trace_data): Invert comparison.
976
977 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
978
979 * tracepoint.c (trace_save_command): Use filename instead of
980 args when printing.
981
982 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
983
984 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
985 if .size is 0.
986
987 2011-10-13 Yao Qi <yao@codesourcery.com>
988
989 PR gdb/12703
990 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
991 whether insn is a 32-bit Thumb-2 instruction.
992 (thumb_in_function_epilogue_p): Likewise.
993 (thumb_get_next_pc_raw): Likewise.
994 (arm_breakpoint_from_pc): Likewise.
995
996 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
997
998 Fix empty DWARF expressions DATA vs. SIZE conditionals.
999 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1000 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1001 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1002 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1003 zero DATA.
1004 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1005 validity.
1006 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1007 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1008 clear DATA on zero SIZE.
1009
1010 2011-10-12 Doug Evans <dje@google.com>
1011
1012 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1013 header->first_die_offset here. All callers updated.
1014
1015 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1016
1017 Fix compatibility with texinfo versions older than 4.12.
1018 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1019 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1020 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1021 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1022 * configure: Regenerate.
1023 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1024 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1025 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1026
1027 2011-10-12 Gary Benson <gbenson@redhat.com>
1028
1029 * breakpoint.h (pc_at_non_inline_function): Declare.
1030 * breakpoint.c (is_non_inline_function,
1031 pc_at_non_inline_function): New functions.
1032 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1033 if the stop is at a location where functions cannot be inlined.
1034
1035 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1036
1037 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1038 the core wanted them stopped, or if they now have a pending event
1039 to report.
1040 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1041 down to stop_and_resume_callback.
1042 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1043 having new pending events after calling linux_nat_filter_event.
1044
1045 2011-10-11 Sterling Augustine <saugustine@google.com>
1046
1047 * dwarf2read.c: Undo inadvertent changes in previous commit.
1048
1049 2011-10-11 Sterling Augustine <saugustine@google.com>
1050
1051 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1052 logic.
1053
1054 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1055
1056 * symfile.c (separate_debug_file_exists): Fix condition.
1057
1058 2011-10-11 David S. Miller <davem@davemloft.net>
1059
1060 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1061 static.
1062 * regcache.h (regcache_restore): Remove declaration.
1063
1064 * gdbarch.sh: New field 'long_long_align_bit'.
1065 * gdbarch.c, gdbarch.h: Regenerate.
1066 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1067 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1068
1069 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1070
1071 Revert this part of:
1072 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1073 Support @entry in input expressions.
1074 * c-exp.y (ENTRY, unknown_cpp_name): New.
1075 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1076 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1077 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1078 (name_not_typename: ENTRY): New.
1079 (yylex): Recognize ENTRY.
1080
1081 Reimplement @entry in input expressions.
1082 * c-exp.y (ENTRY): New.
1083 (variable: name_not_typename ENTRY): New.
1084 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1085
1086 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1087
1088 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1089 parent and child's pids as soon as we detect a clone event.
1090 Adjust another debug message.
1091
1092 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1093
1094 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1095 not zombie instead of reading the whole file.
1096
1097 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1098
1099 Fix separate debuginfo warning with "remote:" access.
1100 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1101 * symfile.c (get_file_crc): New function with the code moved from ...
1102 (separate_debug_file_exists): ... this function, specifically variables
1103 buffer and count. New variable verified_as_different, set it. Remove
1104 file_crc initialization. Verify also if both files are not the same
1105 manually, if needed.
1106
1107 2011-10-11 Yao Qi <yao@codesourcery.com>
1108
1109 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1110 to get address.
1111
1112 2011-10-10 Doug Evans <dje@google.com>
1113
1114 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1115 libthread_db when we load libpthread or the main symbol file.
1116 (thread_db_inferior_created): New function.
1117 (_initialize_thread_db): Attach inferior_created observer.
1118 * linux-nat.c (linux_child_post_attach): Remove call to
1119 check_for_thread_db.
1120 (linux_child_post_startup_inferior): Ditto.
1121 * objfiles.h (OBJF_MAINLINE): Define.
1122 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1123 allocate_objfile when appropriate.
1124
1125 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1126
1127 PR gdb/13218
1128 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1129 Remove unused variables.
1130 (get_linux_version): Remove function.
1131 (_initialize_arm_linux_nat): Do not call it.
1132
1133 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1134
1135 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1136 new clone lwp if the core asked it to stop. Don't pass on
1137 unexpected signals to the new clone; leave them pending instead.
1138
1139 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1140
1141 * linux-nat.c (resume_lwp): Remove redundant debug output.
1142
1143 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1144
1145 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1146 last_resume_kind before clearing it, and use the copy instead to
1147 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1148 resume_clear_callback in the non-stop path too.
1149
1150 2011-10-09 Yao Qi <yao@codesourcery.com>
1151
1152 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1153 Honor OPTIONS and VAL's type.
1154 (common_val_print, value_print): Update to pass one more parameter.
1155
1156 2011-10-09 Doug Evans <dje@google.com>
1157
1158 Add new "alias" command.
1159 * NEWS: Mention new command.
1160 * command.h (valid_user_defined_cmd_name_p): Declare.
1161 * defs.h (make_cleanup_dyn_string_delete): Declare.
1162 * utils.c: #include "dyn-string.h".
1163 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1164 * cli/cli-cmds.c: #include "dyn-string.h".
1165 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1166 (init_cli_cmds): Add new command.
1167 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1168
1169 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1170
1171 Fix compatibility with older GCCs.
1172 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1173 * stack.c (read_frame_arg): Initialize val_deref.
1174
1175 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 Entry values NEWS entries, DWARF disassembly support.
1178 * NEWS: New entry values entry.
1179 (set print entry-values, show print entry-values)
1180 (set debug entry-values, show debug entry-values): New entries.
1181 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1182 indent. Remove variable start. Move header printing out. Respect
1183 INDENT. Support DW_OP_GNU_entry_value.
1184 (locexpr_describe_location_1): Move the header printing here, extend
1185 the disassemble_dwarf_expression passed parameters.
1186
1187 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1188
1189 Display @entry parameter values even for references.
1190 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1191 coerce_ref_if_computed.
1192 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1193 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1194 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1195 existing push_dwarf_reg_entry_value call. Add new detection calling
1196 dwarf_block_to_dwarf_reg_deref. Update the error message.
1197 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1198 * dwarf2expr.h
1199 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1200 parameter deref_size, describe it in the comment.
1201 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1202 (dwarf_block_to_dwarf_reg_deref): New declaration.
1203 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1204 deref_size, describe it in the function comment. New variables
1205 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1206 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1207 describe it in the function comment. Fetch the alternative block
1208 accoring to DEREF_SIZE.
1209 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1210 (entry_data_value_free_closure, entry_data_value_funcs): New.
1211 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1212 outer_val, target_val, val and addr. Try to fetch and create also
1213 referenced value content.
1214 (pieced_value_funcs): NULL value for coerce_ref.
1215 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1216 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1217 coerce_ref_if_computed.
1218 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1219 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1220 * stack.c (read_frame_arg): Compare also dereferenced values.
1221 * value.c (value_computed_funcs): Make the parameter v const, use
1222 value_lval_const for it.
1223 (value_lval_const, coerce_ref_if_computed): New function.
1224 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1225 * value.h (struct lval_funcs): New field coerce_ref.
1226 (value_computed_funcs): Make the parameter v const.
1227 (value_lval_const, coerce_ref_if_computed): New declarations.
1228
1229 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1230
1231 Support @entry in input expressions.
1232 * c-exp.y (ENTRY, unknown_cpp_name): New.
1233 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1234 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1235 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1236 (name_not_typename: ENTRY): New.
1237 (yylex): Recognize ENTRY.
1238 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1239 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1240 Likewise.
1241 * parse.c (operator_length_standard): Likewise.
1242 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1243
1244 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 Display referenced values in backtraces.
1247 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1248 * stack.c (print_frame_arg): Likewise.
1249
1250 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1251
1252 Make some lval_funcs methods to default on NULL.
1253 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1254 NULL.
1255 (value_assign): Check if lval_computed write method is NULL.
1256 * value.h (struct lval_funcs): Comment NULL values for read and write
1257 methods.
1258
1259 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1260
1261 Display @entry parameter values (without references).
1262 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1263 New functions.
1264 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1265 New declarations.
1266 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1267 entry record.
1268 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1269 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1270 functions.
1271 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1272 (loclist_read_variable_at_entry): New function.
1273 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1274 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1275 DW_AT_location, call dwarf_block_to_sp_offset for it.
1276 * frame.h (print_entry_values_no, print_entry_values_only)
1277 (print_entry_values_preferred, print_entry_values_if_needed)
1278 (print_entry_values_both, print_entry_values_compact)
1279 (print_entry_values_default, print_entry_values): New declarations.
1280 (struct frame_arg): New field entry_kind.
1281 (read_frame_arg): New parameter entryargp.
1282 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1283 arg->entry_kind. Optionally print the `@entry' suffix.
1284 (list_args_or_locals): New variable entryarg, initialize it.
1285 Initialize also entry_kind of arg and entryarg. Conditionalize
1286 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1287 xfree for entryarg.error.
1288 * stack.c (print_entry_values_no, print_entry_values_only)
1289 (print_entry_values_preferred, print_entry_values_if_needed)
1290 (print_entry_values_both, print_entry_values_compact)
1291 (print_entry_values_default, print_entry_values_choices)
1292 (print_entry_values): New variables.
1293 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1294 print the `@entry' suffix, possibly in combination for
1295 print_entry_values_compact.
1296 (read_frame_arg): New parameter entryargp, new variables entryval,
1297 entryval_error and val_equal. Read in also entryargp, respect
1298 print_entry_values, compare the values using val_equal, fill in also
1299 argp->entry_kind (together with entryargp->entry_kind).
1300 (print_frame_args): New variable entryarg, initialize it.
1301 Conditionalize print_frame_arg for arg, add print_frame_arg for
1302 entryarg. Call xfree for entryarg.error.
1303 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1304 * symtab.h (struct symbol_computed_ops): New field
1305 read_variable_at_entry.
1306
1307 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1308
1309 Code reshuffle.
1310 * frame.h (struct frame_arg): New definition.
1311 (read_frame_arg): New declaration.
1312 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1313 (list_args_or_locals): ... the code here. New variable arg, call
1314 read_frame_arg and list_arg_or_local with it. Unify the
1315 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1316 arg.error.
1317 * stack.c (print_frame_arg): New functiom from the code of
1318 print_frame_args.
1319 (read_frame_arg): New function.
1320 (print_frame_args): Remove variable val. New variable arg, call
1321 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1322
1323 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1324
1325 Protect entry values against self tail calls.
1326 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1327 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1328
1329 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 Recognize virtual tail call frames.
1332 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1333 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1334 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1335 * dwarf2-frame-tailcall.c: New file.
1336 * dwarf2-frame-tailcall.h: New file.
1337 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1338 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1339 REGS.PREV only after CIE execution.
1340 (struct dwarf2_frame_cache): New field tailcall_cache.
1341 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1342 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1343 parts, try to find entry_cfa_sp_offset. Call
1344 dwarf2_tailcall_sniffer_first.
1345 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1346 when appropriate.
1347 (dwarf2_frame_dealloc_cache): New function.
1348 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1349 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1350 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1351 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1352 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1353 * dwarf2loc.c (func_addr_to_tail_call_list)
1354 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1355 (call_site_find_chain_1, call_site_find_chain): New.
1356 * dwarf2loc.h (struct call_site_chain): New.
1357 (call_site_find_chain): New declaration.
1358 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1359 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1360 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1361 * stack.c (frame_info): Support also TAILCALL_FRAME.
1362
1363 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 Tail call sites reader implementation.
1366 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1367 fill in TYPE_TAIL_CALL_LIST.
1368 * gdbtypes.h (struct func_type): New field tail_call_list.
1369 (struct call_site): New field tail_call_next.
1370 (TYPE_TAIL_CALL_LIST): New definition.
1371
1372 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1373
1374 Implement basic support for DW_TAG_GNU_call_site.
1375 * block.c: Include gdbtypes.h and exceptions.h.
1376 (call_site_for_pc): New function.
1377 * block.h (call_site_for_pc): New declaration.
1378 * defs.h: Include hashtab.h.
1379 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1380 declarations.
1381 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1382 ctx_no_push_dwarf_reg_entry_value.
1383 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1384 (dwarf_block_to_dwarf_reg): New function.
1385 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1386 (ctx_no_push_dwarf_reg_entry_value): New function.
1387 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1388 push_dwarf_reg_entry_value.
1389 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1390 declarations.
1391 * dwarf2loc.c: Include gdbcmd.h.
1392 (dwarf_expr_ctx_funcs): New forward declaration.
1393 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1394 (dwarf_expr_reg_to_entry_parameter)
1395 (dwarf_expr_push_dwarf_reg_entry_value): New.
1396 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1397 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1398 (needs_dwarf_reg_entry_value): New function.
1399 (needs_frame_ctx_funcs): Install it.
1400 (_initialize_dwarf2loc): New function.
1401 * dwarf2loc.h (entry_values_debug): New declaration.
1402 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1403 (read_call_site_scope): New forward declaration.
1404 (process_full_comp_unit): Copy call_site_htab.
1405 (process_die): Support DW_TAG_GNU_call_site.
1406 (read_call_site_scope): New function.
1407 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1408 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1409 (cleanup_htab): Delete.
1410 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1411 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1412 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1413 FIELD_LOC_KIND_DWARF_BLOCK.
1414 * gdbtypes.h (enum field_loc_kind): New entry
1415 FIELD_LOC_KIND_DWARF_BLOCK.
1416 (struct main_type): New loc entry dwarf_block.
1417 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1418 (TYPE_FIELD_DWARF_BLOCK): New.
1419 * python/py-type.c: Include dwarf2loc.h.
1420 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1421 internal_error call on unknown FIELD_LOC_KIND.
1422 * symtab.h (struct symtab): New field call_site_htab.
1423 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1424 (core_addr_hash, core_addr_eq): New functions.
1425
1426 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1427
1428 Code reshuffle.
1429 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1430 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1431 calling_convention under func_stuff there.
1432 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1433 (init_type) <TYPE_CODE_FUNC>: Likewise.
1434 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1435 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1436 * gdbtypes.h (enum type_specific_kind): Change
1437 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1438 (struct main_type) <type_specific>: Change calling_convention to
1439 func_stuff. Move calling_convention to ...
1440 (struct func_type): ... this new struct.
1441 (INIT_FUNC_SPECIFIC): New #define.
1442 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1443
1444 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1445
1446 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1447 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1448 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1449 ctx->ref_addr_size. Handle its invalid value.
1450 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1451 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1452 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1453 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1454 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1455 (dwarf2_per_cu_ref_addr_size): New function.
1456
1457 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1458
1459 Code cleanup.
1460 * dwarf2read.c (per_cu_header_read_in): New function.
1461 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1462 variables cu_header_local and cu_headerp.
1463
1464 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 Fix initial language detection with -readnow.
1467 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1468 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1469 searches only for global symbols.
1470
1471 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 Fix printed anonymous struct name.
1474 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1475 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1476 (anonymous_struct_prefix): New function.
1477 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1478 (dwarf2_name): Strip for anonymous structs any prefixes.
1479
1480 2011-10-07 Doug Evans <dje@google.com>
1481
1482 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1483 `replace'.
1484
1485 * python/lib/gdb/printing.py: Whitespace cleanup.
1486
1487 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1488 warning.
1489
1490 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1491
1492 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1493 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1494 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1495 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1496 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1497 (arm_linux_remove_watchpoint): Adjust.
1498 * i386-linux-nat.c (i386_linux_dr_set_control)
1499 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1500 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1501 (ia64_linux_remove_watchpoint): Adjust.
1502 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1503 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1504 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1505 (ppc_linux_insert_mask_watchpoint)
1506 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1507 (ppc_linux_remove_watchpoint): Adjust.
1508 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1509 Adjust.
1510
1511 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1512
1513 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1514 (clear_win32_environment): New function for Cygwin to clear out
1515 Win32 environment.
1516 (windows_create_inferior): Prepare new environment from in_env
1517 for Cygwin, too.
1518
1519 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1520
1521 PR python/13264
1522 * python/py-value.c (valpy_call): Check that arguments are
1523 a tuple.
1524 (is_intlike): Remove call to CHECK_TYPEDEF.
1525 (valpy_nonzero): Catch GDB exceptions.
1526 (valpy_absolute): Ditto.
1527 (valpy_lazy_string): Ditto.
1528 (valpy_call): Ditto.
1529 (valpy_get_is_optimized_out): Ditto.
1530 (valpy_long): Ditto.
1531 (valpy_float): Ditto.
1532 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1533 (valpy_richcompare): Ditto.
1534
1535 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1536
1537 * inferior.h (disable_randomization): Declare.
1538 * infrun.c (disable_randomization): New global variable.
1539 (show_disable_randomization): New function.
1540 (set_disable_randomization): Likewise.
1541 (_initialize_infrun): Install set/show disable-randomization
1542 commands.
1543 * linux-nat.c (disable_randomization): Remove.
1544 (show_disable_randomization): Likewise.
1545 (set_disable_randomization): Likewise.
1546 (_initialize_linux_nat): No longer install set/show
1547 disable-randomization commands here.
1548 (linux_nat_supports_disable_randomization): New function.
1549 (linux_nat_add_target): Install it.
1550 * remote.c (PACKET_QDisableRandomization): New enum value.
1551 (remote_protocol_packets): Support QDisableRandomization.
1552 (_initialize_remote): Likewise.
1553 (remote_supports_disable_randomization): New function.
1554 (init_remote_ops): Install it.
1555 (extended_remote_supports_disable_randomization): New function.
1556 (init_extended_remote_ops): Install it.
1557 (extended_remote_disable_randomization): New function.
1558 (extended_remote_create_inferior_1): Call it.
1559 * target.h (struct target_ops): Add to_supports_disable_randomization.
1560 (target_supports_disable_randomization): Add prototype.
1561 * target.c (target_supports_disable_randomization): New function.
1562 (find_default_supports_disable_randomization): Likewise.
1563 (init_dummy_target): Install it.
1564
1565 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1566
1567 Allow Python notification of new object-file loadings.
1568 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1569 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1570 Add build rule for this file.
1571 * python/py-event.h (emit_new_objfile_event): New prototype.
1572 (newobjfile): New Python event emitter.
1573 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1574 Python event registry.
1575 * python/py-inferior.c: Include objfiles.h
1576 (python_new_objfile): New function.
1577 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1578 observers.
1579 * python/py-newobjfileevent.c: New file.
1580 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1581 prototype.
1582 * python/python.c (_initialize_python): Add
1583 gdbpy_initialize_new_objfile_event call.
1584 * NEWS: Add item for new Python event "gdb.newobjfile"
1585
1586 2011-10-05 Tristan Gingold <gingold@adacore.com>
1587
1588 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1589 Extract the ravenscar task name from the symbol for the atcb.
1590
1591 2011-10-04 Paul Koning <paul_koning@dell.com>
1592
1593 * python/py-type.c (typy_make_iter): Add forward declaration.
1594 (typy_fields_items): Use the gdb.Type iterator.
1595
1596 2011-10-04 Paul Koning <paul_koning@dell.com>
1597
1598 * NEWS: Add entry for Python gdb.Type mapping methods.
1599
1600 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1601
1602 PR python/12691: Add the inferior to Python exited event
1603 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1604 to exited_event.
1605 * python/py-event.h (emit_exited_event): Likewise
1606 * python/-inferior.c (python_inferior_exit): Likewise
1607
1608 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1609
1610 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1611 in output of -ada-task-info GDB/MI command.
1612
1613 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1614
1615 * ada-lang.h (struct inferior): Declare.
1616 (print_ada_task_info): Add declaration.
1617 * ada-tasks.c (print_ada_task_info): Make non-static.
1618 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1619 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1620 * mi/mi-main.c: #include "ada-lang.h".
1621 (mi_cmd_list_features): Add "ada-task-info" to the list
1622 of supported features.
1623 (mi_cmd_ada_task_info): New function.
1624
1625 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1626
1627 * python/python.c (python_run_simple_file): New function.
1628 (source_python_script, source_python_script_for_objfile):
1629 Replace call to PyRun_SimpleFile by call to
1630 python_run_simple_file.
1631
1632 2011-10-03 Paul Koning <paul_koning@dell.com>
1633
1634 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1635 (value_to_value_object): Fetch value if it was lazy.
1636
1637 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1638
1639 Code cleanup.
1640 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1641 Rearrange the code for it.
1642
1643 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1644
1645 * breakpoint.c (bkpt_print_recreate): Add call to
1646 print_recreate_thread.
1647
1648 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1649
1650 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1651 PTRACE_GETFDPIC_INTERP): Define.
1652
1653 2011-09-28 Yao Qi <yao@codesourcery.com>
1654
1655 * symfile.c (add_symbol_file_command): Update message on usage.
1656
1657 2011-09-28 Paul Koning <paul_koning@dell.com>
1658
1659 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1660 (typy_length, typy_get, typy_has_key, typy_make_iter)
1661 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1662 (typy_iterator_iter, typy_iterator_iternext)
1663 (typy_iterator_dealloc): New functions to implement standard
1664 Python mapping methods on gdb.Type object.
1665 (gdb.TypeIterator): New Python type.
1666 * python/python-internal.h (gdbpy_iter_kind): New enum.
1667
1668 2011-09-28 David S. Miller <davem@davemloft.net>
1669
1670 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1671 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1672 * sparc-tdep.c (sparc_complex_floating_p): New function.
1673 (sparc32_store_arguments): Handle complex floats.
1674 (sparc32_extract_return_value): Likewise.
1675 (sparc32_store_return_value): Likewise.
1676 (sparc32_stabs_argument_has_addr): Likewise.
1677 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1678 (sparc64_store_floating_fields): Handle complex floats.
1679 (sparc64_store_arguments): Likewise.
1680 (sparc64_store_return_value): Likewise.
1681
1682 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1683
1684 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1685 before the change on 2006-12-09.
1686 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1687 generates the environment block for CreateProcessA, modulo the
1688 Cygwin-specific parts that are not needed here.
1689
1690 2011-09-27 Tristan Gingold <gingold@adacore.com>
1691
1692 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1693 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1694 (darwin_solib_get_all_image_info_addr_at_init): New function.
1695 (darwin_solib_read_all_image_info_addr): Likewise.
1696 (darwin_solib_create_inferior_hook): Use the above two functions.
1697 * darwin-nat.c (darwin_execvp): Renames retval to res.
1698 (darwin_read_write_inferior): Update comment.
1699 (darwin_read_dyld_info): New function.
1700 (darwin_xfer_partial): Handle DYLD_INFO.
1701
1702 2011-09-27 Stan Shebs <stan@codesourcery.com>
1703
1704 Add return address collection for tracepoints.
1705 * tracepoint.c (encode_actions_1): Add case for $_ret.
1706 (validate_actionline): Check for $_ret.
1707 (trace_dump_actions): Ditto.
1708 * ax-gdb.h (gen_trace_for_return_address): Declare.
1709 * ax-gdb.c: Include arch-utils.h.
1710 (gen_trace_for_return_address): New function.
1711 (agent_command): Add return address special case.
1712 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1713 (amd64_gen_return_address): New function.
1714 (amd64_init_abi): Call it.
1715 * i386-tdep.c: Include ax.h and ax-gdb.h.
1716 (i386_gen_return_address): New function.
1717 (i386_init_abi): Call it.
1718 * arch-utils.h (default_gen_return_address): Declare.
1719 * arch-utils.c (default_gen_return_address): New function.
1720 * gdbarch.sh (gen_return_address): New method.
1721 * gdbarch.h, gdbarch.c: Regenerate.
1722
1723 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1724
1725 PR gdb/13079
1726 * i386-tdep.c (i386_frame_align): New.
1727 (i386_gdbarch_init): Use i386_frame_align.
1728
1729 2011-09-23 Yao Qi <yao@codesourcery.com>
1730
1731 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1732 to get address.
1733
1734 2011-09-22 Tristan Gingold <gingold@adacore.com>
1735
1736 * fork-child.c (fork_inferior): Add exec_fun parameter.
1737 Call exec_fun or execvp.
1738 * inferior.h: Adjust prototype.
1739 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1740 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1741 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1742 * procfs.c (procfs_create_inferior): Ditto.
1743 * darwin-nat.c (darwin_execvp): New function.
1744 (darwin_create_inferior): Use it.
1745
1746 2011-09-22 Yao Qi <yao@codesourcery.com>
1747
1748 * infrun.c (context_switch): Print debug message when switching to
1749 a different thread.
1750
1751 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1752
1753 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1754 complex and vector types.
1755 (s390_return_value_convention): Likewise.
1756
1757 (s390_value_from_register): Call check_typedef.
1758 (extend_simple_arg): Likewise.
1759 (alignment_of): Likewise.
1760 (s390_push_dummy_call): Likewise.
1761 (s390_return_value): Likewise.
1762
1763 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1764
1765 * event-top.c (async_disconnect): If an exception is thrown from
1766 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1767 catch_errors.
1768 * top.c (quit_cover): Return void and take no arguments.
1769 * top.h (quit_cover): Update prototype.
1770
1771 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1772
1773 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1774 current_uiout, not uiout.
1775
1776 2011-09-19 Doug Evans <dje@google.com>
1777
1778 * python/py-auto-load.c (source_section_scripts): Fix file
1779 descriptor leak.
1780 * python/python.c (source_python_script_for_objfile): Tweak comments.
1781
1782 2011-09-18 Yao Qi <yao@codesourcery.com>
1783 Ulrich Weigand <ulrich.weigand@linaro.org>
1784
1785 Support displaced stepping for Thumb 16-bit insns.
1786 * arm-tdep.c (THUMB_NOP) Define.
1787 (thumb_copy_unmodified_16bit): New.
1788 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1789 (thumb_copy_alu_reg): New.
1790 (arm_copy_svc): Move some common code to ...
1791 (install_svc): ... here. New.
1792 (thumb_copy_svc): New.
1793 (install_pc_relative): New.
1794 (thumb_copy_pc_relative_16bit): New.
1795 (thumb_decode_pc_relative_16bit): New.
1796 (thumb_copy_16bit_ldr_literal): New.
1797 (thumb_copy_cbnz_cbz): New.
1798 (cleanup_pop_pc_16bit_all): New.
1799 (thumb_copy_pop_pc_16bit): New.
1800 (thumb_process_displaced_16bit_insn): New.
1801 (thumb_process_displaced_32bit_insn): New.
1802 (thumb_process_displaced_insn): process thumb instruction.
1803
1804 Support displaced stepping for Thumb 32-bit insns.
1805 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1806 (thumb2_copy_preload): New.
1807 (thumb2_copy_copro_load_store): New.
1808 (thumb2_copy_b_bl_blx): New.
1809 (thumb2_copy_alu_imm): New.
1810 (thumb2_copy_load_reg_imm): New.
1811 (thumb2_copy_load_literal): New
1812 (thumb2_copy_block_xfer): New.
1813 (thumb_32bit_copy_undef): New.
1814 (thumb_32bit_copy_unpred): New.
1815 (thumb2_decode_ext_reg_ld_st): New.
1816 (thumb2_decode_svc_copro): New.
1817 (decode_thumb_32bit_store_single_data_item): New.
1818 (thumb_copy_pc_relative_32bit): New.
1819 (thumb_decode_pc_relative_32bit): New.
1820 (decode_thumb_32bit_ld_mem_hints): New.
1821 (thumb2_copy_table_branch): New
1822 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1823 instructions.
1824
1825 2011-09-18 Yao Qi <yao@codesourcery.com>
1826
1827 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1828 (install_b_bl_blx): Likewise.
1829
1830 2011-09-17 Yao Qi <yao@codesourcery.com>
1831
1832 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1833 (install_load_store): ... this. New.
1834 Change parameter BYTE to SIZE.
1835 (arm_copy_ldr_str_ldrb_strb): Update caller.
1836 (arm_decode_ld_st_word_ubyte): Update caller.
1837
1838 2011-09-17 Yao Qi <yao@codesourcery.com>
1839
1840 * infrun.c (displaced_step_fixup): Move some code ...
1841 (displaced_step_restore): ... here. New function.
1842 (handle_inferior_event): Cleanup displaced stepping state for both
1843 child and parent when get forked or vforked event.
1844 * regcache.c (get_thread_arch_aspace_regcache): New function.
1845 get_thread_arch_regcache (): Call it.
1846
1847 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1848
1849 * ada-tasks.c (print_ada_task_info): New function, merging
1850 short_task_info and info_tasks together. Reimplement using
1851 ui-out instead of printing to stdout directly. Move the code
1852 building and checking the task list here, instead of leaving it
1853 in info_tasks_command.
1854 (info_task): Move the code building and checking the task
1855 list here, instead of leaving it in info_tasks_command.
1856 (info_tasks_command): Delete code building and checking
1857 the task list - moved elsewhere. Update calls to info_tasks
1858 and info_task.
1859
1860 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1861
1862 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1863
1864 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1865
1866 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1867
1868 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1869
1870 * ada-lang.h (ada_build_task_list): Remove parameter
1871 `warn_if_null'.
1872 * ada-tasks.c (ada_build_task_list): Remove parameter
1873 `warn_if_null'. Adjust implementation and documentation.
1874 (valid_task_id, ada_get_environment_task)
1875 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1876 (info_tasks_command): Adjust implementation.
1877 (task_command): Likewise.
1878 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1879 to ada_build_task_list.
1880
1881 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1882
1883 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1884 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1885 (ada_tasks_inferior_data_handle): New static global.
1886 (get_ada_tasks_inferior_data): New function.
1887 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1888 (ada_get_environment_task, iterate_over_live_ada_tasks)
1889 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1890 Adjust.
1891 (ada_set_current_inferior_known_tasks_addr): New function.
1892 (read_known_tasks, ada_build_task_list, short_task_info)
1893 (info_tasks, info_task, info_tasks_command, task_command_1)
1894 (task_command, ada_task_list_changed): Adjust.
1895 (ada_tasks_invalidate_inferior_data): New function.
1896 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1897 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1898 * ada-lang.h (struct inferior): Add declaration.
1899 (ada_task_list_changed): Update profile.
1900 * remote-wtx-pd.c: #include "inferior.h".
1901 (switch_to_pd_internal): Update call to ada_task_list_changed.
1902
1903 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1904
1905 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1906 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1907 (atcb_fieldno): Delete these static globals.
1908 (struct ada_tasks_pspace_data): New struct.
1909 (ada_tasks_pspace_data_handle): New static global.
1910 (get_ada_tasks_pspace_data): New function.
1911 (ada_tasks_invalidate_pspace_data): New function.
1912 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1913 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1914 (_initialize_tasks): Create this module's per-progspace
1915 data handle.
1916
1917 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1918
1919 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1920
1921 2011-09-16 Tristan Gingold <gingold@adacore.com>
1922
1923 * fork-child.c (fork_inferior): Update comment. Use alloca
1924 instead of xmalloc for argv. Move len and shell_command
1925 declarations in the block where they are used.
1926 Only call execvp. Factorize failure code.
1927
1928 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1929
1930 Code cleanup.
1931 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1932 `exp_element' instead of an element of the same and make the function
1933 static.
1934 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1935 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1936 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1937 Change argument of `write_exp_elt' function call.
1938 Remove extra spaces from comments.
1939 * parser-defs.h (write_exp_elt): Remove prototype.
1940
1941 2011-09-15 Paul Koning <paul_koning@dell.com>
1942
1943 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1944 count of item appended to list.
1945 * python/py-type.c (typy_fields): Likewise.
1946
1947 2011-09-15 Paul Koning <paul_koning@dell.com>
1948
1949 * MAINTAINERS (Write After Approval): Add myself to the list.
1950
1951 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1952
1953 PR threads/12628
1954 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1955 processes with multiple threads.
1956 (inf_has_multiple_thread_cb): New function.
1957 (inf_has_multiple_threads): New function.
1958
1959 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1960
1961 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1962 * python/py-inferior.c (GdbMethods): New Python method definition.
1963
1964 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1965
1966 Handle multiple breakpoint hits in Python interface:
1967 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1968 variable to breakpoints.
1969 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1970 bps instead of single breakpoint. Fix some space typos.
1971 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1972 variable to breakpoints.
1973
1974 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1975
1976 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1977 note if the breakpoint is internal.
1978
1979 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1980
1981 * MAINTAINERS (Write After Approval): Add myself to the list
1982
1983 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1984
1985 * infrun.c (prepare_for_detach, wait_for_inferior)
1986 (fetch_inferior_event): Don't flush the register cache.
1987 * remote.c (struct stop_reply) <regcache>: Add comment.
1988
1989 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 Remove excessive DWARF expressions memory duplication.
1992 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1993 for block.data.
1994 (indirect_pieced_value): Remove variable result. Remove variable
1995 back_to and its use for baton.data.
1996 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1997 block.data.
1998 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1999 Update the function comment.
2000
2001 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2002
2003 * inferior.h (ALL_INFERIORS): New.
2004 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2005 for a stopped thread.
2006 (thread_db_find_new_threads): Look for threads in all inferiors.
2007
2008 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2009
2010 * breakpoint.c (update_watchpoint): Handle the case of the
2011 watchpoint to update not being in the breakpoint list yet.
2012 (hw_watchpoint_use_count): New, factored out from
2013 hw_watchpoint_used_count.
2014 (hw_watchpoint_used_count): Rename to ...
2015 (hw_watchpoint_used_count_others): ... this. Add `except'
2016 parameter. Don't count resources of `except'. Use
2017 hw_watchpoint_use_count.
2018
2019 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2020
2021 * gdbthread.h (enum thread_state): Moved here.
2022 (struct thread_info): Rename `executing_' field to `executing' and
2023 `state_' to `state'.
2024 * thread.c (enum thread_state): Moved to gdbthread.h.
2025 (new_thread, add_thread_silent, delete_thread_1)
2026 (any_live_thread_of_process, thread_alive, set_running)
2027 (set_running, is_thread_state, any_running, is_executing)
2028 (set_executing, finish_thread_state, print_thread_info)
2029 (do_captured_thread_select): Adjust.
2030
2031 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2034 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2035
2036 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2037 Matt Rice <ratmice@gmail.com>
2038
2039 PR gdb/13175
2040
2041 * interps.c (struct interp) <interpreter_out>: Delete field.
2042 (interp_new): Remove the data and uiout parameters and adjust.
2043 (interp_set): Only set the current_uiout from the interpreter's
2044 uiout after initializing the interpreter. Adjust call to
2045 init_proc.
2046 (interp_ui_out): Adjust to call procs->ui_out_proc.
2047 (interp_data, interp_name): New.
2048 * interps.h (interp_init_ftype): Add `self' parameter.
2049 (interp_ui_out_ftype): New typedef.
2050 (struct interp_procs) <ui_out_proc>: New method pointer.
2051 (interp_new): Remove the data and uiout parameters.
2052 (interp_data, interp_name): Declare.
2053 * tui/tui-interp.c (tui_init): Adjust prototype.
2054 (tui_ui_out): New.
2055 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2056 tui_out here. Adjust call to interp_new.
2057 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2058 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2059 (cli_ui_out): New.
2060 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2061 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2062 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2063 Initialize mi->uiout depending on the mi_version as extracted from
2064 the interpreter's name.
2065 (mi_ui_out): New.
2066 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2067 interp_new. Don't allocate the ui_out's of the interpreters here.
2068
2069 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2070
2071 * solib.c (solib_used): New function.
2072 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2073 by another so_list object before freeing it.
2074
2075 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2076
2077 Code cleanup.
2078 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2079 values.
2080
2081 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2082
2083 Code cleanup.
2084 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2085 (amd64_skip_xmm_prologue): ... this new function. Describe its
2086 parameters. No longer use amd64_prologue_line_bug.
2087 * defs.h (producer_is_gcc_ge_4): New declaration.
2088 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2089 (process_full_comp_unit): Update its caller. Remove
2090 amd64_prologue_line_bug initialization.
2091 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2092 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2093
2094 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2095
2096 * linux-nat.h (enum resume_kind): New.
2097 (struct lwp_info) <last_resume_kind>: New field.
2098 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2099 resume_stop on the new lwp.
2100 (add_lwp): Set last_resume_kind as resume_continue by default.
2101 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2102 (resume_lwp): New, factored out from resume_callback. Also check
2103 for pending status in lp->waitstatus.
2104 (resume_callback): Reimplement.
2105 (resume_clear_callback): Set last_resume_kind as resume_stop.
2106 (resume_set_callback): Set last_resume_kind as resume_continue.
2107 (linux_nat_resume, linux_handle_extended_wait): Set
2108 last_resume_kind.
2109 (running_callback): Also check lp->waitstatus for pending events.
2110 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2111 is resume_step.
2112 (stop_and_resume_callback): Don't re-resume if the core wanted the
2113 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2114 using an invalidated pointer.
2115 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2116 SIGSTOPs if the core wanted the LWP to stop.
2117 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2118 wanted the lwp to stop. If the core wanted the lwp to stop, and
2119 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2120 of TARGET_SIGNAL_STOP.
2121 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2122 here. Instead, signal the lwp, and set the last_resume_kind to
2123 resume_stop.
2124
2125 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2126
2127 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2128 -1 (error), if the lwp exits right after attaching.
2129
2130 2011-09-08 Doug Evans <dje@google.com>
2131
2132 * py-cmd.c: Some minor formatting fixes.
2133 (gdbpy_parse_command_name): Rename text arg to name, make const.
2134 All callers updated.
2135 * python-internal.h (gdbpy_parse_command_name): Update.
2136
2137 * cli/cli-decode.c (add_cmd): Add comment.
2138
2139 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
2141 PR breakpoints/12435
2142 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2143 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2144 * dwarf2read.c (process_full_comp_unit): Initialize
2145 amd64_prologue_line_bug.
2146 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2147
2148 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 Fix TUI screen corruption.
2151 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2152 batch_flag.
2153
2154 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2155
2156 * findvar.c (read_var_value): Never return NULL, throw an error
2157 instead. Update the function comment. State symbol name in the error
2158 messages.
2159 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2160 read_var_value.
2161 * stack.c (print_frame_args): Likewise.
2162 * valops.c (value_of_variable): Likewise.
2163
2164 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2165
2166 * stack.c (print_frame_args): New variable except. Wrap
2167 read_var_value and common_val_print into TRY_CATCH.
2168
2169 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2170
2171 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2172 caller to value_of_this.
2173 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2174 Twice.
2175 * valops.c (value_of_this): Remove parameter complain and variable ret.
2176 Update function comment. Never return NULL by this code.
2177 (value_of_this_silent): New function.
2178 * value.h (value_of_this): Remove parameter complain.
2179 (value_of_this_silent): New declaration.
2180
2181 2011-09-07 Yao Qi <yao@codesourcery.com>
2182
2183 * gdbthread.h (struct thread_info): Remove fields
2184 `stepping_through_solib_after_catch' and
2185 `stepping_through_solib_catchpoints'.
2186 * infrun.c (init_thread_stepping_state): Update.
2187 (process_event_stop_test, currently_stepping): Update.
2188 (currently_stepping_or_nexting_callback): Update.
2189
2190 2011-09-07 Yao Qi <yao@codesourcery.com>
2191
2192 * gdbthread.h (struct thread_info): Comment on field
2193 `step_after_step_resume_breakpoint'.
2194
2195 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2196
2197 * remote.c (remote_console_output): Reindent.
2198
2199 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2200
2201 * frame.c (has_stack_frames): Check for currently selected
2202 traceframe.
2203
2204 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2205
2206 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2207 (set_async_annotation_level, set_async_prompt, pop_prompt)
2208 (push_prompt, new_async_prompt): Delete declarations.
2209 * top.h (get_prompt, set_prompt): Change prototype.
2210 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2211 declarations.
2212 * top.c (command_loop):
2213 (top_prompt): New global.
2214 (get_prefix, set_prefix, get_suffix, ): Delete.
2215 (get_prompt, set_prompt): Rewrite.
2216 (show_new_async_prompt): Rename to ...
2217 (show_prompt): ... this.
2218 (init_main): Adjust. Don't handle --annotate=2 here.
2219 * event-top.c (new_async_prompt): Delete.
2220 (the_prompts): Delete.
2221 (more_to_come): Make static.
2222 (display_gdb_prompt): Use top_level_prompt() to compute the top
2223 level prompt, and don't notify the before_prompt observers
2224 directly here. Always trick readline into not trying to display
2225 the prompt if sync_execution and displaying the primary prompt.
2226 If displaying a local/secondary prompt, always show it, even if
2227 sync_execution is set.
2228 (change_annotation_level): Delete.
2229 (top_level_prompt): New, based on change_annotation_level.
2230 (push_prompt, pop_prompt): Delete.
2231 (async_disable_stdin): No longer pushes prompt.
2232 (command_line_handler): No longer pushes or pops prompt. If more
2233 input is expected, call display_gdb_prompt with an explicit empty
2234 prompt.
2235 (async_stop_sig): Adjust.
2236 (set_async_annotation_level, set_async_prompt): Delete.
2237 * python/python.c (before_prompt_hook): Adjust.
2238
2239 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2240
2241 PR cli/13110
2242
2243 * infrun.c (fetch_inferior_event): Check if there's a selected
2244 thread before checking if the selected thread is executing.
2245
2246 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2247
2248 * inf-loop.c (execute_command): Don't check if the current thread
2249 if running before synchronously waiting for command completion.
2250 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2251 here.
2252 (normal_stop): Call async_enable_stdin here.
2253 * inf-loop.c (inferior_event_handler): Don't call
2254 async_enable_stdin, nor handle "set exec-done-display" here.
2255
2256 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2257
2258 GDB 7.3.1 released.
2259
2260 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2261
2262 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2263
2264 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2265
2266 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2267
2268 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2269
2270 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2271
2272 2011-09-02 Matt Rice <ratmice@gmail.com>
2273
2274 PR gdb/10720
2275 * event-top.c (cli_command_loop): Replace readline setup with
2276 direct call to display_gdb_prompt.
2277 (display_gdb_prompt): Do not call observer mechanism during
2278 synchronous execution.
2279
2280 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2281
2282 * linux-nat.c (in_pid_list_p): New.
2283 (linux_record_stopped_pid): Delete.
2284 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2285 already attached to the LWP. Return an indication if so.
2286 (linux_nat_filter_event): Adjust.
2287 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2288 returning an indication to ignore this thread.
2289
2290 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2291
2292 * top.c: Include interps.h.
2293 (execute_command): If the target can async, but the interpreter is
2294 in sync mode, synchronously wait for the command to finish before
2295 returning.
2296 (execute_command_to_string): Force the interpreter to sync mode.
2297 * infrun.c: Include interps.h.
2298 (fetch_inferior_event): Don't restore the prompt yet if the
2299 interpreter is in sync mode.
2300 * interps.c (interpreter_async): New global.
2301 * interps.h (interpreter_async): Declare.
2302 * inf-loop.c: Include interps.h.
2303 (inferior_event_handler): Don't print the language change or run
2304 breakpoint commands yet if the interpreter in is sync mode.
2305 * main.c (captured_command_loop): Flip the interpreter to async
2306 mode.
2307 * cli/cli-script.c: Include interps.h.
2308 (execute_user_command, while_command, if_command): Force the
2309 interpreter to sync mode.
2310 * python/python.c: Include interps.h.
2311 (python_command, execute_gdb_command): Force the interpreter to
2312 sync mode.
2313
2314 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2315
2316 * value.c (show_convenience): Catch errors thrown while printing
2317 each internal variable.
2318 * infrun.c (validate_siginfo_access): New function.
2319 (siginfo_value_read, siginfo_value_write): Call it.
2320
2321 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2322
2323 Revert:
2324 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2325 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2326 attribute.
2327
2328 2011-08-29 Yao Qi <yao@codesourcery.com>
2329
2330 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2331 (cmp_name): New.
2332 (enable_break2): Update caller.
2333 * solib-frv.c (bfd_lookup_symbol): Removed.
2334 (cmp_name): New.
2335 (enable_break2): Update caller.
2336 * solib-pa64.c (bfd_lookup_symbol): Removed.
2337 (cmp_name): New.
2338 * solib-svr4.c (bfd_lookup_symbol): Removed.
2339 (cmp_name_and_sec_flags): New.
2340 (enable_break): Update caller.
2341 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2342 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2343 (gdb_bfd_lookup_symbol): New.
2344 * solib.h: Functions declarations.
2345
2346 2011-08-29 Yao Qi <yao@codesourcery.com>
2347
2348 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2349 and solib-dsbt.o.
2350
2351 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2352
2353 Fix TUI stepi on code without symbols.
2354 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2355 current PC instead.
2356
2357 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2358
2359 Code cleanup.
2360 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2361 and the static keyword.
2362 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2363 Make prefix an array.
2364 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2365 * mi/mi-main.c (get_register): Remove stb initialization and the static
2366 keyword.
2367
2368 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2369
2370 Code cleanup - make mi_opt const.
2371 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2372 opts const.
2373 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2374 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2375 (mi_cmd_env_dir): Likewise.
2376 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2377 (mi_cmd_target_file_put): Likewise.
2378 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2379 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2380 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2381 (mi_valid_noargs): Make opts const.
2382 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2383 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2384 (mi_cmd_data_read_memory): Likewise.
2385 (mi_cmd_data_read_memory_bytes): Likewise.
2386 (mi_cmd_data_write_memory): Likewise.
2387
2388 2011-08-26 Matt Rice <ratmice@gmail.com>
2389
2390 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2391 bcache_xmalloc, replace bcache_xmalloc with call to
2392 psymbol_bcache_init for psymbol_cache.
2393 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2394
2395 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 * inf-loop.c (inferior_event_handler): Add exception_print in
2398 INF_EXEC_COMPLETE.
2399
2400 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2403 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2404 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2405 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2406 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2407 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2408 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2409 * infrun.c (fetch_inferior_event): Call
2410 make_bpstat_clear_actions_cleanup.
2411 * top.c (execute_command): New variable cleanup_if_error, call
2412 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2413 * utils.c (do_bpstat_clear_actions_cleanup)
2414 (make_bpstat_clear_actions_cleanup): New functions.
2415
2416 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2417
2418 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2419 either the parent or the child forks. Rename a couple locals.
2420
2421 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2422
2423 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2424 library call. Avoid reading the `status' local if all waitpid
2425 calls failed.
2426
2427 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2428
2429 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2430 opening /proc/PID/task always succeeds.
2431
2432 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2433
2434 * linespec.c (symtab_from_filename): Check for the end of string.
2435
2436 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2437
2438 PR mi/11912
2439 * varobj.c (cplus_describe_child): Add the keyword
2440 'class' to the output of the method when dealing
2441 with a cast to a base class.
2442
2443 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2444
2445 No functionality change.
2446 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2447 function comment a reference, new variables tp and bs, move here code
2448 from throw_exception.
2449 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2450 describe it in the comment.
2451 * exceptions.c (throw_exception): Remove variable tp, move the code for
2452 bpstat_clear_actions to bpstat_clear_actions.
2453
2454 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2455
2456 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2457 * linux-nat.c: Include linux-procfs.h.
2458 (linux_proc_get_tgid): Move to ...
2459 * common/linux-procfs.c: ... here. New file.
2460 * common/linux-procfs.h: New file.
2461 * linux-thread-db.c: Include linux-procfs.h.
2462 * Makefile.in: Update dependencies.
2463 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2464 * config/arm/linux.mh: Likewise.
2465 * config/i386/linux.mh: Likewise.
2466 * config/i386/linux64.mh: Likewise.
2467 * config/ia64/linux.mh: Likewise.
2468 * config/m32r/linux.mh: Likewise.
2469 * config/m68k/linux.mh: Likewise.
2470 * config/mips/linux.mh: Likewise.
2471 * config/pa/linux.mh: Likewise.
2472 * config/pa/linux.mh: Likewise.
2473 * config/powerpc/linux.mh: Likewise.
2474 * config/powerpc/ppc64-linux.mh: Likewise.
2475 * config/powerpc/spu-linux.mh: Likewise.
2476 * config/sparc/linux.mh: Likewise.
2477 * config/sparc/linux64.mh: Likewise.
2478 * config/xtensa/linux.mh: Likewise.
2479
2480 2011-08-24 Hui Zhu <teawater@gmail.com>
2481
2482 * tracepoint.c (cond_string_is_same): New function.
2483 (find_matching_tracepoint): Add condition check
2484 by cond_string_is_same.
2485
2486 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2487
2488 Fix build error in Darwin port.
2489 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2490
2491 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 Code cleanup.
2494 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2495 (command_line_is_silent): New function.
2496 (bpstat_do_actions_1): No longer use commands_left, use
2497 command_line_is_silent for commands.
2498 (bpstat_alloc): Remove clearing of commands_left.
2499 (bpstat_stop_status): Remove initialization of commands_left, use
2500 command_line_is_silent.
2501 * breakpoint.h (struct bpstats): Remove commands_left.
2502
2503 2011-08-18 Keith Seitz <keiths@redhat.com>
2504
2505 PR c++/12266
2506 * cp-name-parser.y (struct demangle_info): Remove unused
2507 member PREV.
2508 (d_grab): Likewise.
2509 (allocate_info): Change return type to struct demangle_info *.
2510 Always allocate a new demangle_info.
2511 Remove unused PREV pointer.
2512 (cp_new_demangle_parse_info): New function.
2513 (cp_demangled_name_parse_free): New function.
2514 (do_demangled_name_parse_free_cleanup): New function.
2515 (make_cleanup_cp_demangled_name_parse_free): New function.
2516 (cp_demangled_name_to_comp): Change return type to
2517 struct demangle_parse_info *.
2518 Allocate a new storage for each call.
2519 (main): Update usage for cp_demangled_name_to_comp
2520 API change.
2521 * cp-support.h (struct demangle_parse_info): New structure.
2522 (cp_demangled_name_to_comp): Update API change for
2523 return type.
2524 (cp_new_demangle_parse_info): Declare.
2525 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2526 (cp_demangled_name_parse_free): Declare.
2527 * cp-support.c (cp_canonicalize_string): Update API
2528 change for cp_demangled_name_to_comp.
2529 (mangled_name_to_comp): Likewise.
2530 Return struct demangle_parse_info, too.
2531 (cp_class_name_from_physname): Update mangled_name_to_comp
2532 API change.
2533 (method_name_from_physname): Likewise.
2534 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2535 (cp_remove_params): Likewise.
2536 * python/py-type.c (typy_legacy_template_argument): Likewise.
2537
2538 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2539 (cp_merge_demangle_parse_infos): Declare.
2540 * cp-support.c (ignore_typedefs): New file global.
2541 (copy_string_to_obstack): New function.
2542 (inspect_type): New function.
2543 (replace_typedefs): New function.
2544 (replace_typedefs_qualified_name): New function.
2545 (cp_canonicalize_string_no_typedefs): New function.
2546 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2547 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2548 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2549 instead of cp_canonicalize_string.
2550 (find_method): Likewise.
2551 (decode_compound): Before looking up the name, call
2552 cp_canonicalize_string_no_typedefs.
2553 (decode_variable): Likewise.
2554
2555 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2556 Tom Tromey <tromey@redhat.com>
2557 Matt Rice <ratmice@gmail.com>
2558
2559 * python/lib/gdb/prompt.py: New file.
2560 * python/lib/gdb/command/prompt.py: New file.
2561 * NEWS: Document set extended-prompt and gdb.prompt library
2562
2563 2011-08-16 Yao Qi <yao@codesourcery.com>
2564
2565 * tic6x-linux-tdep.c: Move const arrays definition from here...
2566 * tic6x-tdep.c: to here ...
2567
2568 2011-08-14 Yao Qi <yao@codesourcery.com>
2569
2570 * NEWS: New port to Texas Instruments TMS320C6x.
2571
2572 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2573 Bernd Schmidt <bernds@codesourcery.com>
2574 Yao Qi <yao@codesourcery.com>
2575
2576 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2577 * solib-dsbt.c: New file. Support DSBT shared object.
2578 * tic6x-linux-tdep.c: New file.
2579 * tic6x-tdep.c: New file.
2580 * tic6x-tdep.h: New file.
2581
2582 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2583 Yao Qi <yao@codesourcery.com>
2584
2585 * remote.c (PACKET_qXfer_fdpic): New enum value.
2586 (remote_protocol_features): Add qXfer:fdpic:read packet.
2587 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2588 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2589 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2590
2591 2011-08-14 Yao Qi <yao@codesourcery.com>
2592
2593 Target description for tic6x.
2594 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2595 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2596 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2597 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2598 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2599 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2600 * features/tic6x-c64xp-linux.xml: New.
2601 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2602 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2603 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2604 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2605 * regformats/tic6x-c64xp.dat,
2606 regformats/tic6x-c62x-linux.dat: Generated.
2607 * regformats/tic6x-c64x-linux.dat,
2608 regformats/tic6x-c64xp-linux.dat: Generated.
2609 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2610 features/tic6x-*.c files.
2611 Add regformats/tic6x-*.dat files.
2612
2613 2011-08-12 Doug Evans <dje@google.com>
2614
2615 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2616 * python/py-symbol.c (sympy_get_type): New function.
2617 (symbol_object_getset): Add "type".
2618
2619 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2620
2621 PR tui/13073
2622
2623 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2624 empty name.
2625 (tui_show_register_group): Don't store a byte buffer in the data
2626 element's value.
2627 (tui_register_format): Skip registers with an empty name.
2628 (tui_get_register): Store a struct value in the data element's
2629 value field instead of a byte buffer holding the raw register
2630 contents. Account for optimized-out and unavailable registers
2631 when comparing register contents.
2632
2633 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2634
2635 * printcmd.c (current_display_number): Update comment.
2636 (disable_current_display_cleanup): Delete.
2637 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2638 catch errors thrown while evaluating and printing the display.
2639
2640 2011-08-09 Tom Tromey <tromey@redhat.com>
2641
2642 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2643
2644 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2645
2646 * elfread.c (elf_symtab_read): Rework comments.
2647 * maint.c (maintenance_command): Ditto.
2648 * somread.c (som_symtab_read): Ditto.
2649 * solib.c (solib_find, solib_map_sections, update_solib_list)
2650 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2651 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2652 (sharedlibrary_command, no_shared_libraries): Ditto.
2653 * solib-irix.c (locate_base, disable_break, enable_break)
2654 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2655 (irix_current_sos, irix_open_symbol_file_object)
2656 (irix_special_symbol_handling): Ditto.
2657 * solib-sunos.c (locate_base, first_link_map_member)
2658 (sunos_current_sos, disable_break, enable_break)
2659 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2660 Ditto.
2661 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2662 (open_symbol_file_object, svr4_current_sos, enable_break)
2663 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2664 Ditto.
2665 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2666 (frv_current_sos, enable_break, frv_special_symbol_handling)
2667 (frv_solib_create_inferior_hook): Ditto.
2668 * solist.h (struct target_so_ops): Extend the comments of the
2669 special_symbol_handling, current_sos and open_symbol_file_object
2670 methods.
2671
2672 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2673
2674 * python/lib/gdb/__init__.py: Auto-load files in command and
2675 function directories.
2676 * python/python.c (finish_python_initialization): Use
2677 os.path.join.
2678 * python/lib/gdb/command/pretty_printers.py: Self register
2679 command.
2680 * NEWS: Document auto-loading.
2681
2682 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2683
2684 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2685 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2686 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2687
2688 2011-08-08 Tom Tromey <tromey@redhat.com>
2689
2690 * breakpoint.c (clean_up_filters): Remove.
2691 (catch_syscall_split_args): Use VEC_cleanup.
2692
2693 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2696 (main): Uncomment "Demangling error\n".
2697
2698 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2699
2700 * solib-target.c (segment_attributes): Make them static.
2701 (section_attributes, library_children, library_attributes): Likewise.
2702 (library_list_children, library_list_attributes): Likesise.
2703 (library_list_elements): Likewise.
2704
2705 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2706
2707 * exceptions.c (throw_exception): Don't disable the current
2708 display.
2709 * printcmd.c (disable_current_display_cleanup): New function.
2710 (do_one_display): Install a cleanup to disable the current display
2711 if doing the display throws.
2712
2713 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2714
2715 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2716 initialization of the tp_new member to the corresponding
2717 gdbpy_initialize_* function.
2718 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2719 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2720 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2721 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2722 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2723
2724 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2725
2726 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2727 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2728 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2729 references to current_uiout.
2730
2731 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2732
2733 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2734 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2735 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2736 * top.c (gdb_readline_wrapper): Adjust.
2737 * tui/tui-interp.c (tui_command_loop):
2738 (_initialize_tui_interp): Don't install it.
2739
2740 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2741
2742 * ui-out.h (uiout): Rename to ...
2743 (current_uiout): ... this.
2744 * ui-out.c (uiout): Rename to ...
2745 (current_uiout): ... this.
2746 * ada-lang.c (print_it_exception, print_one_exception)
2747 (print_mention_exception): Adjust.
2748 * breakpoint.c (watchpoint_check): Adjust.
2749 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2750 (default_collect_info, watchpoints_info, print_one_catch_fork)
2751 (print_one_catch_vfork, print_one_catch_syscall)
2752 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2753 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2754 (print_it_watchpoint, print_mention_watchpoint)
2755 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2756 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2757 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2758 (bkpt_print_mention, momentary_bkpt_print_it)
2759 (tracepoint_print_mention, update_static_tracepoint)
2760 (tracepoints_info, save_breakpoints): Adjust.
2761 * cli-out.c (field_separator): Adjust.
2762 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2763 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2764 * frame.c (get_current_frame): Adjust.
2765 * infcmd.c (run_command_1, print_return_value): Adjust.
2766 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2767 * infrun.c (print_end_stepping_range_reason): Adjust.
2768 (print_signal_exited_reason, print_exited_reason): Adjust.
2769 (print_signal_received_reason, print_no_history_reason): Adjust.
2770 * interps.c (interp_set): Adjust.
2771 * osdata.c (info_osdata_command): Adjust.
2772 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2773 * remote-fileio.c (remote_fileio_request): Adjust.
2774 * remote.c (show_remote_cmd): Adjust.
2775 * solib.c (info_sharedlibrary_command): Adjust.
2776 * source.c (print_source_lines_base): Adjust.
2777 * stack.c (print_stack_frame): Adjust.
2778 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2779 * symfile-mem.c (add_vsyscall_page): Adjust.
2780 * symfile.c (load_progress, generic_load)
2781 (print_transfer_performance): Adjust.
2782 * thread.c (info_threads_command, restore_selected_frame)
2783 (thread_command): Adjust.
2784 * top.c (make_cleanup_restore_ui_file): Adjust.
2785 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2786 (print_one_static_tracepoint_marker): Adjust.
2787 * cli/cli-cmds.c (print_disassembly): Adjust.
2788 * cli/cli-decode.c (print_doc_line): Adjust.
2789 * cli/cli-interp.c (safe_execute_command): Adjust.
2790 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2791 (handle_redirections): Adjust.
2792 * cli/cli-script.c (show_user_1): Adjust.
2793 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2794 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2795 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2796 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2797 (mi_cmd_env_dir): Adjust.
2798 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2799 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2800 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2801 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2802 (list_args_or_locals): Adjust.
2803 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2804 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2805 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2806 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2807 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2808 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2809 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2810 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2811 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2812 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2813 (list_available_thread_groups, mi_cmd_list_thread_groups)
2814 (mi_cmd_data_list_register_names)
2815 (mi_cmd_data_list_changed_registers)
2816 (mi_cmd_data_list_register_values, get_register)
2817 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2818 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2819 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2820 (mi_execute_command, mi_load_progress): Adjust.
2821 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2822 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2823 Adjust.
2824 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2825 * tui/tui-interp.c (tui_command_loop): Adjust.
2826 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2827
2828 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2829
2830 * exceptions.c (struct catcher): Remove saved_uiout field.
2831 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2832 no longer save/resvore the global ui_out builder.
2833 (catch_exceptions_with_msg): Save/override/restore the global
2834 ui_out builder manually instead of relying on TRY_CATCH to do it.
2835 (catch_errors): Save/restore the global ui_out builder manually
2836 instead of relying on TRY_CATCH to do it.
2837 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2838 parameter.
2839 (TRY_CATCH): Adjust.
2840 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2841 the global ui_out builder manually instead of relying on TRY_CATCH
2842 to do it.
2843
2844 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2845
2846 * breakpoint.c (update_global_location_list): Ensure
2847 invariant 'first loc marked not duplicated and inserted,
2848 following locs marked duplicated/not inserted' is respected
2849 for multiple locations at the same address.
2850 (unduplicated_should_be_inserted) New function.
2851 (swap_insertion) New function.
2852
2853 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2854
2855 * stack.c (print_frame_arguments_choices): Comment typo fix.
2856
2857 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2858
2859 Revert:
2860 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2861 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2862 argument. Update callers.
2863
2864 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2865
2866 PR gdb/13045
2867 * doublest.c (convert_doublest_to_floatformat): Pass correct
2868 mantissa length to put_field.
2869
2870 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2871
2872 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2873 exception_print code path.
2874 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2875 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2876 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2877
2878 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2879
2880 Code cleanup.
2881 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2882 Remove, merge them into ...
2883 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2884 variable args and its initialization.
2885 (struct print_args_args, print_args_stub): Remove, merge them into
2886 print_frame.
2887 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2888 them into ...
2889 (do_gdb_disassembly): ... here. Remove variable args and its
2890 initialization.
2891 (print_frame): Remove variable args and its initialization, new
2892 variable gdbarch and numargs (from print_args_stub), inline here
2893 print_args_stub with a TRY_CATCH.
2894 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2895 them into ...
2896 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2897 New variable e, remove variable btargs and its initialization.
2898
2899 2011-08-01 Tristan Gingold <gingold@adacore.com>
2900
2901 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2902
2903 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2904
2905 * breakpoint.c (insert_bp_location): Document return value.
2906 (insert_breakpoint_locations): Fix documentation.
2907 (remove_breakpoints): Add documentation.
2908
2909 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2910
2911 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2912 argument. Update callers.
2913
2914 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2915
2916 * stack.c (print_frame_info): Comment typo fix.
2917
2918 2011-07-29 Sterling Augustine <saugustine@google.com>
2919
2920 * MAINTAINERS (Write After Approval): Add myself to the list.
2921
2922 2011-07-29 Tom Tromey <tromey@redhat.com>
2923
2924 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2925 (library_list_start_segment): Update.
2926 (library_list_start_section): Update.
2927
2928 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2929
2930 * varobj.c (value_get_print_value): Move hint check later into the
2931 function. Comment function. Free thevalue before reusing it.
2932
2933 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2934 Pedro Alves <pedro@codesourcery.com>
2935
2936 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2937 value_one.
2938 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2939 Assert the result kind.
2940 * value.h (value_one): Remove parameter lv.
2941
2942 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2943
2944 Fix crash on lval_computed values.
2945 * valops.c (value_zero): Use not_lval for lval_computed.
2946
2947 2011-07-27 Tom Tromey <tromey@redhat.com>
2948
2949 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2950 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2951
2952 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2953
2954 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2955 "ptype" by their typedefs difference.
2956
2957 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2958
2959 * dwarf2expr.c (ctx_no_read_reg): New function.
2960 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2961 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2962 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2963 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2964
2965 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2966
2967 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2968 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2969 file.
2970 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2971 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2972 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2973 (ctx_no_get_base_type): Move the functions here.
2974 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2975 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2976 (ctx_no_get_base_type): New declarations.
2977
2978 2011-07-27 Tom Tromey <tromey@redhat.com>
2979
2980 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2981 entries.
2982 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2983 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2984
2985 2011-07-26 Sterling Augustine <saugustine@google.com>
2986
2987 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2988 ULONGEST.
2989 (dump_bfd_file): Likewise.
2990
2991 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2992
2993 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2994 (remote_hw_watchpoint_length_limit): New variable.
2995 (_initialize_remote) add set,show cmds for this new variable.
2996 * gdb.texinfo: document these new commands.
2997 * NEWS: Mention these new commands.
2998
2999 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3000
3001 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3002 true for software watchpoints.
3003
3004 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3005
3006 GDB 7.3 released.
3007
3008 2011-07-26 Tom Tromey <tromey@redhat.com>
3009
3010 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3011 * dwarf2read.c (read_indirect_string_at_offset): New function.
3012 (read_indirect_string): Use it.
3013 (dwarf_decode_macro_bytes): New function, taken from
3014 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3015 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3016 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3017 New functions.
3018 (struct dwarf2_per_objfile) <macro>: New field.
3019 (dwarf2_elf_names): Add .debug_macro.
3020 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3021 (dwarf2_locate_sections): Handle new section.
3022 (read_file_scope): Handle DW_AT_GNU_macros.
3023 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3024
3025 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3026
3027 * NEWS: Mention dcache configuration.
3028 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3029 (dcache_size, dcache_line_size): New variables.
3030 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3031 (struct dcache_block): Make it expandable.
3032 (struct dcache_struct): New field.
3033 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3034 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3035 (dcache_poke_byte, dcache_print_line): Adjust.
3036 (set_dcache_size, set_dcache_line_size): New functions.
3037 (set_dcache_command, show_dcache_command): New functions.
3038 (_initialize_dcache): Add new commands.
3039
3040 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3041
3042 * progspace.h (struct program_space): Add solib_add_generation.
3043 * infcmd.c (post_create_inferior): Only call solib_add if not
3044 already done.
3045 * solib.c (solib_add): Increment solib_add_generation.
3046
3047 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3048
3049 Fix implicit pointer offsets.
3050 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3051 ptr.OFFSET.
3052
3053 2011-07-25 Tom Tromey <tromey@redhat.com>
3054
3055 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3056 const.
3057 (ada_exception_sal): Make 'ops' const.
3058 (ada_decode_exception_location): Likewise.
3059 (ada_decode_assert_location): Likewise.
3060 (catch_assert_command): Update.
3061 (catch_ada_exception_command): Update.
3062 (create_ada_exception_catchpoint): Make 'ops' const.
3063 * breakpoint.c (set_raw_breakpoint_without_location)
3064 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3065 const.
3066 (create_internal_breakpoint): Update.
3067 (init_raw_breakpoint_without_location): Make 'ops' const.
3068 (init_raw_breakpoint, init_catchpoint)
3069 (create_fork_vfork_event_catchpoint)
3070 (create_syscall_event_catchpoint, init_breakpoint_sal)
3071 (create_breakpoint_sal, create_breakpoints_sal)
3072 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3073 * breakpoint.h (struct breakpoint) <ops>: Now const.
3074 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3075 const.
3076
3077 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3078
3079 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3080
3081 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3082
3083 * breakpoint.h (print_recreate_thread): Declare.
3084 (struct breakpoint): Move step_count, pass_count,
3085 number_on_target, static_trace_marker_id,
3086 static_trace_marker_id_idx ...
3087 (struct tracepoint): ... to this new struct.
3088 (get_tracepoint, get_tracepoint_by_number_on_target)
3089 (get_tracepoint_by_number): Change return type to struct
3090 tracepoint pointer.
3091 * breakpoint.c (is_tracepoint_type): New, factored out from
3092 is_tracepoint.
3093 (is_tracepoint): Adjust.
3094 (print_one_breakpoint_location): Cast to struct tracepoint as
3095 necessary, and adjust.
3096 (print_recreate_catch_fork, print_recreate_catch_vfork)
3097 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3098 print_recreate_thread.
3099 (init_breakpoint_sal): New, factored out from
3100 create_breakpoint_sal.
3101 (create_breakpoint_sal): Reimplement.
3102 (create_breakpoint): Allocate a struct tracecepoint if the caller
3103 wanted a tracepoint. Use init_breakpoint_sal and
3104 install_breakpoint.
3105 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3106 (print_recreate_masked_watchpoint)
3107 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3108 (tracepoint_print_one_detail): Adjust.
3109 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3110 Dump the pass count here.
3111 (update_static_tracepoint): Adjust.
3112 (addr_string_to_sals): Adjust.
3113 (create_tracepoint_from_upload): Adjust. Change return type to
3114 struct tracepoint pointer.
3115 (trace_pass_set_count): Change parameter type to struct tracepoint
3116 pointer, and adjust.
3117 (trace_pass_command): Adjust.
3118 (get_tracepoint, get_tracepoint_by_number_on_target)
3119 (get_tracepoint_by_number): Change return type to struct
3120 tracepoint pointer, and adjust.
3121 (print_recreate_thread): New, factored out from save_breakpoints.
3122 (save_breakpoints): Don't print thread and task and passcount
3123 recreation here.
3124 * remote.c (remote_download_tracepoint): Adjust.
3125 * tracepoint.c (trace_actions_command, validate_actionline)
3126 (start_tracing, tfind_1, trace_find_tracepoint_command)
3127 (trace_dump_command): Adjust.
3128 (find_matching_tracepoint): Change return type to struct
3129 tracepoint pointer, and adjust.
3130 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3131 (tfile_trace_find, tfile_fetch_registers): Adjust.
3132 * tracepoint.h (create_tracepoint_from_upload): Change return type
3133 to struct tracepoint pointer.
3134 * ada-lang.c (print_recreate_exception): Call
3135 print_recreate_thread.
3136 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3137
3138 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3139
3140 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3141 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3142 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3143 watchpoint_thread, watchpoint_triggered ...
3144 (struct watchpoint): ... to this new struct.
3145 (is_watchpoint): Declare.
3146 (install_breakpoint): Add new `internal' parameter.
3147 * breakpoint.c (is_watchpoint): Delete declaration.
3148 (set_breakpoint_condition): Handle watchpoints.
3149 (is_watchpoint): Make public.
3150 (watchpoint_in_thread_scope): Change parameter type to struct
3151 watchpoint.
3152 (watchpoint_del_at_next_stop): Change parameter type to struct
3153 watchpoint. Remove assertion. Adjust.
3154 (update_watchpoint): Ditto.
3155 (insert_breakpoints, breakpoint_init_inferior)
3156 (watchpoints_triggered, watchpoint_check)
3157 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3158 (bpstat_stop_status, print_one_breakpoint_location)
3159 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3160 to struct watchpoint as necessary, and adjust.
3161 (install_breakpoint): Add `internal' argument. If true, don't
3162 mention the new breakpoint. Use set_breakpoint_number.
3163 (create_fork_vfork_event_catchpoint)
3164 (create_syscall_event_catchpoint): Adjust.
3165 (dtor_watchpoint): New.
3166 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3167 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3168 (print_it_watchpoint, print_mention_watchpoint)
3169 (print_recreate_watchpoint, insert_masked_watchpoint)
3170 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3171 (print_one_detail_masked_watchpoint)
3172 (print_mention_masked_watchpoint)
3173 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3174 necessary, and adjust.
3175 (watch_command_1): Allocate and initialize a struct watchpoint
3176 instead of a struct breakpoint. Use install_breakpoint.
3177 (catch_exec_command_1): Adjust.
3178 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3179 fields.
3180 (delete_breakpoint, enable_breakpoint_disp)
3181 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3182 as necessary, and adjust.
3183 (initialize_breakpoint_ops): Install dtor_watchpoint as
3184 watchpoints' dtor method.
3185 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3186 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3187 to struct watchpoint as necessary, and adjust.
3188
3189 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3190
3191 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3192 the the base class ops table.
3193 (catch_exception_breakpoint_ops)
3194 (catch_exception_unhandled_breakpoint_ops)
3195 (catch_assert_breakpoint_ops): Don't statically initialize.
3196 (initialize_ada_catchpoint_ops): New.
3197 (_initialize_ada_language): Call it.
3198 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3199 (bkpt_breakpoint_ops): Forward declare.
3200 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3201 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3202 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3203 (masked_watchpoint_breakpoint_ops)
3204 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3205 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3206 base class ops table.
3207 (null_re_set, null_check_status, null_works_in_software_mode)
3208 (null_resources_needed, null_print_one_detail): Delete.
3209 (bkpt_dtor): Rename to ...
3210 (base_breakpoint_dtor): ... this. Make static.
3211 (bkpt_allocate_location): Rename to ...
3212 (base_breakpoint_allocate_location): ... this. Make static.
3213 (base_breakpoint_re_set): New.
3214 (internal_error_pure_virtual_called): New.
3215 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3216 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3217 (base_breakpoint_works_in_software_mode)
3218 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3219 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3220 (base_breakpoint_print_recreate): New functions.
3221 (base_breakpoint_ops): New global.
3222 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3223 (bkpt_breakpoint_hit): Make static.
3224 (bkpt_check_status): Delete.
3225 (bkpt_resources_needed): Make static.
3226 (bkpt_works_in_software_mode): Delete.
3227 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3228 static.
3229 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3230 (momentary_breakpoint_ops): Don't statically initialize.
3231 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3232 Delete.
3233 (tracepoint_insert_location, tracepoint_remove_location)
3234 (tracepoint_check_status, tracepoint_works_in_software_mode)
3235 (tracepoint_print_it): Delete.
3236 (tracepoint_breakpoint_ops): Don't statically initialize.
3237 (initialize_breakpoint_ops): New.
3238 (_initialize_breakpoint): Call it.
3239 * breakpoint.h (null_re_set, null_works_in_software_mode)
3240 (null_resources_needed, null_check_status, null_print_one_detail):
3241 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3242 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3243 (bkpt_check_status, bkpt_resources_needed)
3244 (bkpt_works_in_software_mode, bkpt_print_it)
3245 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3246 Delete declarations.
3247 (initialize_breakpoint_ops): Declare.
3248
3249 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3250
3251 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3252 (momentary_bkpt_print_it): Simplify.
3253
3254 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3255
3256 Split internal, momentary and user breakpoints breakpoint_ops
3257 tables.
3258
3259 * breakpoint.c (internal_breakpoint_ops)
3260 (momentary_breakpoint_ops): Forward declare.
3261 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3262 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3263 (create_overlay_event_breakpoint)
3264 (create_std_terminate_master_breakpoint)
3265 (create_exception_master_breakpoint): Create breakpoints with
3266 internal_breakpoint_ops vtable.
3267 (set_longjmp_breakpoint): Create momentary breakpoints with
3268 momentary_breakpoint_ops vtable, using
3269 momentary_breakpoint_from_master.
3270 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3271 (create_solib_event_breakpoint): Create breakpoints with
3272 internal_breakpoint_ops vtable.
3273 (set_momentary_breakpoint): Create breakpoints with
3274 momentary_breakpoint_ops vtable.
3275 (momentary_breakpoint_from_master): New, factored out from
3276 clone_momentary_breakpoint.
3277 (clone_momentary_breakpoint): Adjust.
3278 (watch_command_1): Create scope breakpoints with
3279 momentary_breakpoint_ops vtable.
3280 (bkpt_re_set): Remove handling of internal and momentary
3281 breakpoints.
3282 (bkpt_print_mention, bkpt_print_recreate): New.
3283 (bkpt_breakpoint_ops): Adjust.
3284 (internal_bkpt_re_set, internal_bkpt_check_status)
3285 (internal_bkpt_print_it, internal_bkpt_print_mention)
3286 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3287 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3288 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3289 (momentary_bkpt_print_recreate): New.
3290 (momentary_breakpoint_ops): New.
3291
3292 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3293
3294 Implement most breakpoint_ops methods for all breakpoint types,
3295 and move the default handlings to the proper callbacks.
3296
3297 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3298 works_in_software_mode method.
3299 (insert_bp_location): Go through breakpoint_ops->insert_location
3300 for software and hardware watchpoints.
3301 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3302 breakpoint_ops.
3303 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3304 for software and hardware watchpoints.
3305 (print_it_typical): Delete.
3306 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3307 method.
3308 (watchpoint_check): Adjust comment.
3309 (bpstat_check_location): Simply always call the breakpoint's
3310 breakpoint_hit method.
3311 (bpstat_stop_status): Always call the breakpoint's check_status
3312 method. Remove special cases for watchpoints and internal event
3313 breakpoints from here (moved to the check_status implementations).
3314 (print_one_breakpoint_location): Assume b->ops is never NULL.
3315 Remove static tracepoint marker id printing from here (moved to
3316 the print_one_detail callback implementation of tracepoints).
3317 (init_bp_location): Assert OPS is never NULL.
3318 (allocate_bp_location): Always call the breakpoint's
3319 allocate_location method, and remove the default code from here.
3320 (free_bp_location): Always call the location's dtor method, and
3321 remove the default code from here.
3322 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3323 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3324 parameter. Pass it down.
3325 (set_raw_breakpoint): Ditto.
3326 (print_it_catch_fork): Adjust to take a bpstat as argument.
3327 (catch_fork_breakpoint_ops): Install methods.
3328 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3329 (catch_vfork_breakpoint_ops): Install methods.
3330 (dtor_catch_syscall): Call the base dtor.
3331 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3332 (catch_syscall_breakpoint_ops): Install methods.
3333 (dtor_catch_exec): Call the base dtor.
3334 (print_it_catch_exec): Adjust to take a bpstat as argument.
3335 (catch_exec_breakpoint_ops): Install methods.
3336 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3337 the breakpoint's resources_needed method, and remove the default
3338 code from here.
3339 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3340 breakpoint_ops.
3341 (clone_momentary_breakpoint): Clone the original's ops.
3342 (mention): Always call the breakpoint's print_mention method, and
3343 remove the default code from here.
3344 (create_breakpoint_sal): Adjust to pass the ops to
3345 set_raw_breakpoint rather than setting it manually.
3346 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3347 ops to set_raw_breakpoint_without_location rather than setting it
3348 manually.
3349 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3350 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3351 (ranged_breakpoint_ops): Install methods.
3352 (break_range_command): Adjust to pass the ops to
3353 set_raw_breakpoint rather than setting it manually.
3354 (re_set_watchpoint, breakpoint_hit_watchpoint)
3355 (check_status_watchpoint, resources_needed_watchpoint)
3356 (works_in_software_mode_watchpoint, print_it_watchpoint)
3357 (print_mention_watchpoint, print_recreate_watchpoint): New
3358 functions.
3359 (watchpoint_breakpoint_ops): Install new methods.
3360 (print_it_masked_watchpoint): New function.
3361 (masked_watchpoint_breakpoint_ops): Install new methods.
3362 (watch_command_1): Adjust to pass the right breakpoint_ops to
3363 set_raw_breakpoint_without_location rather than setting it
3364 manually later. Record the current pspace.
3365 (print_it_exception_catchpoint): Adjust to take a bpstat as
3366 argument.
3367 (gnu_v3_exception_catchpoint_ops): Install new methods.
3368 (say_where): New function.
3369 (null_re_set, null_check_status, null_works_in_software_mode)
3370 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3371 New functions.
3372 (bp_location_ops): New global.
3373 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3374 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3375 (bkpt_check_status, bkpt_resources_needed)
3376 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3377 (bkpt_print_recreate): New functions.
3378 (bkpt_breakpoint_ops): New global.
3379 (tracepoint_re_set, tracepoint_insert_location)
3380 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3381 (tracepoint_check_status, tracepoint_works_in_software_mode)
3382 (tracepoint_print_it, tracepoint_print_one_detail)
3383 (tracepoint_print_mention, tracepoint_print_recreate): New
3384 functions.
3385 (tracepoint_breakpoint_ops): New global.
3386 (delete_breakpoint): Always call the breakpoint's dtor method, and
3387 remove the default handling from here.
3388 (breakpoint_re_set_default): Make static.
3389 (breakpoint_re_set_one): Always call the breakpoints re_set
3390 method, and remove the default handling from here.
3391 (trace_command, ftrace_command, strace_command)
3392 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3393 to create_breakpoint.
3394 (save_breakpoints): Always call the breakpoint's print_recreate
3395 method, and remove the default handling from here.
3396
3397 * ada-lang.c (dtor_exception): Call the base dtor.
3398 (re_set_exception): Call the base method.
3399 (print_it_exception, print_it_catch_exception): Adjust to take a
3400 bpstat as argument.
3401 (catch_exception_breakpoint_ops): Install methods.
3402 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3403 argument.
3404 (catch_exception_unhandled_breakpoint_ops): Install methods.
3405 (print_it_catch_assert): Adjust to take a bpstat as argument.
3406 (catch_assert_breakpoint_ops): Install methods.
3407
3408 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3409 to take a bpstat as argument.
3410 (enum print_stop_action): Add describing comments to each enum
3411 value.
3412 (breakpoint_re_set_default): Delete declaration.
3413 (null_re_set, null_works_in_software_mode, null_resources_needed)
3414 (null_check_status, null_print_one_detail): Declare.
3415 (bkpt_breakpoint_ops): Declare.
3416 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3417 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3418 (bkpt_check_status, bkpt_resources_needed)
3419 (bkpt_works_in_software_mode, bkpt_print_it)
3420 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3421 Declare.
3422
3423 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3424 bkpt_breakpoint_ops.
3425 * python/py-breakpoint.c (bppy_init): Ditto.
3426
3427 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3428
3429 * MAINTAINERS (Write After Approval): Add myself to the list.
3430
3431 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3432
3433 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3434
3435 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3436
3437 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3438 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3439 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3440 adjust.
3441 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3442 (struct i386_debug_reg_state): New.
3443 (i386_init_dregs): New.
3444 (dr_mirror): New.
3445 (i386_cleanup_dregs): Use i386_init_dregs.
3446 (i386_show_dr): Add state parameter and adjust.
3447 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3448 the inferior here.
3449 (i386_remove_aligned_watchpoint): Likewise.
3450 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3451 (i386_update_inferior_debug_regs): New.
3452 (i386_insert_watchpoint): Work on a local mirror of the debug
3453 registers, and only update the inferior on success.
3454 (i386_remove_watchpoint): Ditto.
3455 (i386_region_ok_for_watchpoint): Adjust.
3456 (i386_stopped_data_address): Adjust.
3457 (i386_insert_hw_breakpoint): Adjust.
3458 (i386_remove_hw_breakpoint): Adjust.
3459
3460 2011-07-22 Tom Tromey <tromey@redhat.com>
3461
3462 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3463 from amd64_pseudo_register_read. Change arguments. Call
3464 mark_value_bytes_unavailable when needed.
3465 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3466 set_gdbarch_pseudo_register_read.
3467 * sentinel-frame.c (sentinel_frame_prev_register): Use
3468 regcache_cooked_read_value.
3469 * regcache.h (regcache_cooked_read_value): Declare.
3470 * regcache.c (regcache_cooked_read_value): New function.
3471 (regcache_cooked_read): Call
3472 gdbarch_pseudo_register_read_value if available.
3473 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3474 (i386_pseudo_register_read): Remove.
3475 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3476 i386_pseudo_register_read. Change arguments. Call
3477 mark_value_bytes_unavailable when needed.
3478 (i386_pseudo_register_read_value): New function.
3479 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3480 not set_gdbarch_pseudo_register_read.
3481 * gdbarch.sh (pseudo_register_read_value): New method.
3482 * gdbarch.c, gdbarch.h: Rebuild.
3483 * findvar.c (value_from_register): Call get_frame_register_value.
3484
3485 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3486
3487 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3488 get_prefix.
3489 (display_gdb_prompt): Likewise.
3490 (change_annotation_level): Likewise.
3491 (push_prompt): Likewise.
3492 (pop_prompt): Likewise.
3493 (handle_stop_sig): Use get_prompt with a level.
3494 * top.c (command_loop): Use get_prompt with a level.
3495 (set_async_annotation_level): Use set_prompt with a level.
3496 (get_prefix): New function.
3497 (set_prefix): Ditto.
3498 (set_suffix): Ditto.
3499 (get_suffix): Ditto.
3500 (get_prompt): Accept a level argument.
3501 (set_prompt): Accept a level argument. Free old prompts. Set
3502 new_async_prompt if level is 0.
3503 (init_main): Use set_prompt with a level. Do not set
3504 new_async_prompt.
3505 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3506 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3507 Modify set_prompt, get_prompt to account for levels.
3508 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3509 level.
3510 * python/python.c (before_prompt_hook): Use set_prompt.
3511
3512 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3513
3514 * defs.h: Add guard against inclusion in gdbserver.
3515 (struct ptid, ptid_t): Move to common/ptid.h.
3516 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3517 xsnprintf, internal_error): Move to common/common-utils.h.
3518 (nomem): Delete.
3519 * gdb_assert.h: Move into common/ sub-directory.
3520 * gdb_locale.h: Ditto.
3521 * gdb_dirent.h: Ditto.
3522 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3523 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3524 Move into common/ptid.h.
3525 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3526 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3527 Change nomem to malloc_failure.
3528 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3529 * utils.c (nomem): Rename to malloc_failure.
3530 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3531 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3532 (gdb_buildargv): Change nomem to malloc_failure.
3533 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3534 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3535 ptid_is_pid): Move into common/ptid.c.
3536 (initialize_infrun): Delete initialization of null_ptid and
3537 minus_one_ptid.
3538 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3539 linux_common_xfer_osdata.
3540 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3541 common/ptid.c and common/buffer.c.
3542 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3543 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3544 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3545 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3546 rules.
3547 * common/gdb_assert.h: New.
3548 * common/gdb_dirent.h: New.
3549 * common/gdb_locale.h: New.
3550 * common/buffer.c: New.
3551 * common/buffer.h: New.
3552 * common/ptid.c: New.
3553 * common/ptid.h: New.
3554 * common/xml-utils.c: New.
3555 * common/xml-utils.h: New.
3556 * common/common-utils.c: New.
3557 * common/common-utils.h: New.
3558 * common/linux-osdata.c: New.
3559 * common/linux-osdata.h: New.
3560 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3561 * config/arm/linux.mh (NATDEPFILES): Ditto.
3562 * config/i386/linux.mh (NATDEPFILES): Ditto.
3563 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3564 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3565 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3566 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3567 * config/mips/linux.mh (NATDEPFILES): Ditto.
3568 * config/pa/linux.mh (NATDEPFILES): Ditto.
3569 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3570 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3571 * config/s390/s390.mh (NATDEPFILES): Ditto.
3572 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3573 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3574 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3575
3576 2011-07-21 Matt Rice <ratmice@gmail.com>
3577
3578 * NEWS: Add info macros and info definitions commands.
3579
3580 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3581
3582 * NEWS: Document Python prompt substitution hook.
3583
3584 2011-07-18 Matt Rice <ratmice@gmail.com>
3585
3586 PR macros/12999
3587 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3588 * macrotab.c (foreach_macro): Ditto.
3589 (foreach_macro_in_scope): Ditto.
3590 * macrocmd.c (print_macro_callback): New function.
3591 (info_macro_command): Move some code to print_macro_definition.
3592 (print_macro_definition): New function.
3593 (print_one_macro): Add new arguments to callback.
3594 (info_definitions_command): New function.
3595 (info_macros_command): Ditto.
3596 (_initialize_macrocmd): Add info macros and info definitions commands.
3597 * symtab.c (add_macro_name): Add new arguments to callback.
3598
3599 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3600 Tom Tromey <tromey@redhat.com>
3601
3602 * top.c (set_prompt): Rewrite to free previous prompt, free
3603 asynch_new_prompt and set both on new prompts.
3604 * event-top.c (display_gdb_prompt): Add prompt substitution
3605 logic.
3606 * python/python.c (before_prompt_hook): New function.
3607
3608 2011-07-20 Matt Rice <ratmice@gmail.com>
3609
3610 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3611 arguments to store_unsigned_integer.
3612
3613 2011-07-20 Tom Tromey <tromey@redhat.com>
3614
3615 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3616 in some declaration-only cases.
3617
3618 2011-07-18 Tom Tromey <tromey@redhat.com>
3619
3620 PR symtab/12984:
3621 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3622 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3623 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3624 <debug_type_section>: New field.
3625 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3626 (load_cu): Use appropriate section.
3627 (create_signatured_type_table_from_index): Add 'section'
3628 argument.
3629 (dwarf2_read_index): Only allow a single .debug_types section.
3630 (dw2_get_file_names): Use appropriate section.
3631 (read_type_comp_unit_head): Add 'section' argument.
3632 (create_debug_types_hash_table): Loop over all .debug_types
3633 sections.
3634 (init_cu_die_reader): Use appropriate section.
3635 (process_psymtab_comp_unit, load_partial_comp_unit)
3636 (load_full_comp_unit, read_die_and_children, find_partial_die)
3637 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3638 (lookup_signatured_type_at_offset): Add 'section' argument.
3639 (read_signatured_type_at_offset): Add 'sect' argument.
3640 (read_signatured_type): Use appropriate section.
3641 (set_die_type, get_die_type_at_offset): Update.
3642 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3643 VEC.
3644 (write_psymtabs_to_index): Don't allow index with more than one
3645 .debug_types section.
3646
3647 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 Fix crash if referenced CU is aged out.
3650 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3651 xfree of block.data.
3652 (indirect_pieced_value): New variable back_to, use to for xfree of
3653 baton.data.
3654 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3655 block.data.
3656 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3657 (load_cu): New function from ...
3658 (dw2_do_instantiate_symtab): ... the code here ...
3659 (process_full_comp_unit): ... and here.
3660 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3661 retval.data.
3662
3663 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3664
3665 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3666 type.
3667
3668 2011-07-19 Gary Benson <gbenson@redhat.com>
3669
3670 * infrun.c (struct execution_control_state): New member
3671 stop_func_filled_in.
3672 (clear_stop_func, fill_in_stop_func): New functions.
3673 (handle_inferior_event): Call clear_stop_func rather than
3674 manipulating the execution control state directly.
3675 Call fill_in_stop_func lazily as required rather than
3676 directly calling find_pc_partial_function in all cases.
3677
3678 2011-07-18 Tom Tromey <tromey@redhat.com>
3679
3680 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3681 checking for variable-sized array.
3682
3683 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3684
3685 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3686 of supported languages.
3687 * varobj.c: Add top definitions and basic implementation of the
3688 following callbacks: ada_number_of_children, ada_name_of_variable,
3689 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3690 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3691 (languages): Register Ada-specific callbacks.
3692 (variable_language): Add the Ada case in the language setter switch.
3693
3694 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3695
3696 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3697
3698 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3699
3700 Code cleanup.
3701 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3702 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3703 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3704 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3705 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3706 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3707 (struct dwarf_expr_context_funcs): New, move here methods from ...
3708 (struct dwarf_expr_context): ... here. New fields funcs.
3709 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3710 (dwarf_expr_ctx_funcs): New.
3711 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3712 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3713 (needs_frame_ctx_funcs): New.
3714 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3715
3716 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3717
3718 * MAINTAINERS (Write After Approval): Add myself to the list.
3719
3720 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3721
3722 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3723 that CIE pointer of an FDE really points to a CIE .
3724
3725 2011-07-15 Hui Zhu <teawater@gmail.com>
3726
3727 * remote.c (remote_get_trace_status): Add comments.
3728
3729 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3730
3731 Code cleanup - constify struct lval_funcs.
3732 * dwarf2loc.c (pieced_value_funcs): Make it const.
3733 * infrun.c (siginfo_value_funcs): Likewise.
3734 * opencl-lang.c (opencl_value_funcs): Likewise.
3735 * valops.c (value_assign, value_ind): Make the funcs variable const.
3736 * value.c (struct value): Make location.computed.funcs target const.
3737 Rearrange the comments.
3738 (allocate_computed_value): Make the funcs parameter target const.
3739 (value_computed_funcs): Return the funcs target const.
3740 (value_free, value_copy, set_value_component_location): Make the funcs
3741 variable const.
3742 * value.h (allocate_computed_value): Make the funcs parameter target
3743 const.
3744 (value_computed_funcs): Return the funcs target const.
3745 * windows-tdep.c (tlb_value_funcs): Make it const.
3746
3747 2011-07-14 Hui Zhu <teawater@gmail.com>
3748
3749 * remote.c (remote_get_trace_status): Initialize p.
3750
3751 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3752
3753 Work around kgdb.
3754 * remote.c (remote_get_trace_status): New variable ex. Put
3755 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3756
3757 2011-07-13 Tom Tromey <tromey@redhat.com>
3758
3759 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3760 value_from_contents for final conversion.
3761
3762 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3763
3764 Code cleanup.
3765 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3766 Indent prototypes so they do not get into tags.
3767
3768 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3769
3770 Code cleanup making also optimized out values lazy.
3771 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3772 allocate_optimized_out_value. Twice.
3773 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3774 * findvar.c (read_var_value): Likewise.
3775 * value.c (allocate_optimized_out_value): New function.
3776 * value.h (allocate_optimized_out_value): New declaration.
3777
3778 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3779
3780 Fix occasional crash of CTRL-C during DWARF read in.
3781 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3782
3783 2011-07-11 Tom Tromey <tromey@redhat.com>
3784
3785 * regcache.c (struct regcache_descr): Fix typo.
3786 * i387-tdep.c (i387_supply_xsave): Fix typo.
3787
3788 2011-07-11 Tom Tromey <tromey@redhat.com>
3789
3790 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3791 (read_file_scope, read_type_unit_scope): Use it.
3792
3793 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3794
3795 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3796 `int'.
3797
3798 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3799
3800 PR python/12438
3801 * python/python.c: Set gdbpy_should_print_stack default to off.
3802 (set_python): Deprecate maint set python print-stack to
3803 class_deprecate.
3804 (_initialize_python): Deprecate maint set/show python print-stack.
3805 Add new prefix command, python. Add new setting, print-backtrace.
3806 * NEWS: Document set python print-stack. Document default change.
3807
3808 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3809
3810 * python/py-inferior.c (infpy_dealloc): New function.
3811 (inferior_to_inferior_object): Return a new object, or a
3812 new reference to the existing object.
3813 (find_thread_object): Cleanup references to inferior.
3814 (delete_thread_object): Ditto.
3815 * python/py-infthread.c (create_thread_object): Do not increment
3816 inferior reference count.
3817
3818 2011-07-08 Tom Tromey <tromey@redhat.com>
3819
3820 * dwarf2loc.c (locexpr_regname): New function.
3821 (locexpr_describe_location_piece): Use it.
3822 (disassemble_dwarf_expression): Add per_cu argument. Use
3823 locexpr_regname.
3824 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3825 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3826 New cases.
3827 (locexpr_describe_location_1): Add per_cu argument.
3828 (locexpr_describe_location): Update.
3829 (loclist_describe_location): Update.
3830
3831 2011-07-08 Tom Tromey <tromey@redhat.com>
3832
3833 * dwarf2expr.c (execute_stack_op): Add QUIT.
3834
3835 2011-07-07 Hui Zhu <teawater@gmail.com>
3836
3837 Revert:
3838 2011-07-06 Hui Zhu <teawater@gmail.com>
3839 * remote.c (remote_start_remote): Add TRY_CATCH for
3840 remote_get_trace_status.
3841 * tracepoint.c (disconnect_tracing): Ditto.
3842
3843 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3844
3845 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3846 variables as signed, not unsigned.
3847
3848 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3849
3850 * jit.c (jit_inferior_init): Reformat forward declaration.
3851
3852 2011-07-06 Matt Rice <ratmice@gmail.com>
3853
3854 * MAINTAINERS (Write After Approval): Add myself to the list.
3855
3856 2011-07-06 Hui Zhu <teawater@gmail.com>
3857
3858 * remote.c (remote_start_remote): Add TRY_CATCH for
3859 remote_get_trace_status.
3860 * tracepoint.c (disconnect_tracing): Ditto.
3861
3862 2011-07-05 Tom Tromey <tromey@redhat.com>
3863
3864 * symtab.c (operator_chars): Now static.
3865 * linespec.c (operator_chars): Don't declare.
3866
3867 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3868
3869 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3870
3871 2011-07-05 Tom Tromey <tromey@redhat.com>
3872
3873 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3874 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3875 (TYPE_CPLUS_REALLY_JAVA): New macro.
3876 * dwarf2read.c (process_structure_scope): Set
3877 TYPE_CPLUS_REALLY_JAVA.
3878
3879 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3880
3881 * ada-lang.c: Fix typos.
3882 * amd64-tdep.c: Likewise.
3883 * breakpoint.c: Likewise.
3884 * cli/cli-decode.c: Likewise.
3885 * findcmd.c: Likewise.
3886 * inline-frame.c: Likewise.
3887 * mi/mi-main.c: Likewise.
3888 * minsyms.c: Likewise.
3889 * monitor.c: Likewise.
3890 * monitor.h: Likewise.
3891 * prologue-value.c: Likewise.
3892 * reverse.c: Likewise.
3893 * s390-tdep.c: Likewise.
3894
3895 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3896
3897 * jit.c (jit_inferior_init): Forward declare.
3898 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3899
3900 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3901
3902 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3903
3904 2011-07-04 Tristan Gingold <gingold@adacore.com>
3905
3906 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3907 (tcb_fieldno): Add activation_link field.
3908 (get_known_tasks_addr): Moved and rewritten.
3909 (get_tcb_types_info): Set activation_link field.
3910 (read_known_tasks_array): Add parameter. Rewritten.
3911 (read_known_tasks_list): New function.
3912 (read_known_tasks): New function.
3913 (ada_build_task_list): Call read_known_tasks instead of
3914 read_known_tasks_array.
3915 * ravenscar-thread.c: Add first_task_name constant.
3916 (has_ravenscar_runtime): Check for task list too.
3917
3918 2011-07-04 Tristan Gingold <gingold@adacore.com>
3919
3920 * ada-tasks.c: Renames fieldno to actb_fieldno.
3921 (ada_get_task_number): Indentation.
3922 (get_tcb_types_info): Remove all parameters. Write directly
3923 the globals.
3924 (ptid_from_atcb_common): Adjust.
3925 (read_atcb): Adjust.
3926
3927 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3928
3929 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3930
3931 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3932
3933 * ui-out.c (ui_out_field_core_addr): Mention that the function
3934 description is in the header file.
3935 * ui-out.h (ui_out_field_core_addr): Document function.
3936
3937 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3938
3939 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3940 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3941
3942 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3943
3944 * symtab.c (expand_line_sal): Remove empty line.
3945
3946 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3947
3948 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3949 same way as ELFOSABI_NONE.
3950 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3951
3952 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3953
3954 * breakpoint.c: Fix typos in comments.
3955 * linespec.c: Likewise.
3956 * symtab.c: Likewise.
3957
3958 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3959
3960 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3961 section in separate object files.
3962
3963 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3964
3965 Fix false GCC warning.
3966 * linespec.c (decode_line_1): Initialize values.
3967
3968 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3969
3970 * linespec.c (find_method): Accept the function type automatically only
3971 if it was specified with parameter types.
3972
3973 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3974
3975 Stop on first linespec terminator instead of eating what we can.
3976 * linespec.c (is_linespec_boundary): New function.
3977 (name_end): Remove function.
3978 (keep_name_info): New parameter on_boundary, replace the body.
3979 (decode_line_1): Provide the parameter to keep_name_info.
3980 (decode_compound): Likewise. Drop the trailing java return type
3981 handling. Twice.
3982
3983 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3984
3985 Fall back linespec to minimal symbols.
3986 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3987 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3988 (find_method, symbol_found): Change error to cplusplus_error.
3989
3990 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3991
3992 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3993
3994 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3995 Tom Tromey <tromey@redhat.com>
3996
3997 * dwarf2read.c (check_physname): New variable.
3998 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3999 (show_check_physname): New function.
4000 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4001
4002 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4003
4004 * machoread.c (macho_symfile_read): Delete OBE comment.
4005
4006 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4007
4008 * machoread.c (struct macho_oso_data): Delete.
4009 (current_oso): Delete.
4010 (macho_relocate_common_syms): New function, mostly extracted
4011 out of
4012 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4013 Remove code that sets and unset current_oso.
4014 (macho_symfile_relocate): Delete handling of common symbols,
4015 now moved to macho_relocate_common_syms.
4016
4017 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4018
4019 * darwin-nat.c (darwin_ptrace): Add documentation.
4020 Set errno to zero before calling ptrace. If ptrace returns
4021 -1 and errno is zero, then change then return zero.
4022 (darwin_kill_inferior): Issue a warning instead of triggering
4023 a failed assertion when the PT_KILL ptrace operations returned
4024 nonzero.
4025
4026 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4027
4028 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4029 only when inf->private->no_ptrace.
4030
4031 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4032
4033 * ada-lang.c (print_it_exception): Print temporary catchpoints
4034 as "Temporary catchpoint".
4035 (print_mention_exception): Likewise.
4036
4037 2011-07-01 Tom Tromey <tromey@redhat.com>
4038
4039 * jv-lang.c (java_language_defn): Use java_printchar,
4040 java_printstr.
4041 (java_get_encoding): New function.
4042 (java_emit_char): Use generic_emit_char.
4043 (java_printchar): New function.
4044 (java_printstr): Likewise.
4045
4046 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4047
4048 * ada-typeprint.c (print_record_type): If unable to decode
4049 the name of the parent type, use the encoded name.
4050
4051 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4052
4053 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4054 pointer to constrained packed array type output.
4055 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4056 packed array output.
4057
4058 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4059
4060 * ada-typeprint.c (print_array_type): removed if condition on show
4061 being negative for bounds printing.
4062
4063 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4064
4065 * ada-lang.c (ada_identical_enum_types_p): New function.
4066 (symbols_are_identical_enums): New function.
4067 (remove_extra_symbols): Do nothing if NSYMS < 2.
4068 Use symbols_are_identical_enums.
4069
4070 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4071
4072 * ada-valprint.c (ada_value_print): Handle typedefs.
4073
4074 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4075
4076 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4077
4078 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4079
4080 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4081 (decode_constrained_packed_array): Likewise.
4082 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4083
4084 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4085
4086 * ada-exp.y (convert_char_literal): Handle typedef types.
4087
4088 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4089
4090 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4091
4092 2011-06-30 Tom Tromey <tromey@redhat.com>
4093
4094 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4095 * valops.c (find_overload_match): Call do_cleanups on early exit
4096 path.
4097 * solib.c (solib_find): Call do_cleanups on early exit path.
4098
4099 2011-06-30 Tom Tromey <tromey@redhat.com>
4100
4101 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4102 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4103 return paths. Defer final do_cleanups until last return.
4104 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4105 early return.
4106
4107 2011-06-30 Tom Tromey <tromey@redhat.com>
4108
4109 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4110
4111 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4112
4113 * MAINTAINERS (Write After Approval): Add myself to the list.
4114
4115 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4116
4117 Disable epilogue unwinders on recent GCCs.
4118 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4119 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4120 * dwarf2read.c (process_full_comp_unit): Initialize
4121 EPILOGUE_UNWIND_VALID.
4122 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4123 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4124 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4125
4126 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4127
4128 Code cleanup - reformatting.
4129 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4130 (producer_is_gcc_ge_4): ... here, change the return value.
4131 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4132 interpretation.
4133
4134 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 Fix non-only rename list for Fortran modules import.
4137 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4138 cp_add_using_directive caller.
4139 (cp_add_using_directive): New parameter excludes, describe it. New
4140 variables ix and param. Compare if also excludes match. Allocate NEW
4141 with variable size, initialize EXCLUDES there.
4142 (cp_lookup_symbol_imports): New variable excludep, test
4143 current->EXCLUDES with it.
4144 * cp-support.h: Include vec.h.
4145 (struct using_direct): New field excludes, describe it.
4146 (DEF_VEC_P (const_char_ptr)): New.
4147 (cp_add_using_directive): New parameter excludes.
4148 * defs.h (const_char_ptr): New typedef.
4149 * dwarf2read.c (read_import_statement): New variables child_die,
4150 excludes and cleanups, read in excludes.
4151 (read_namespace): Adjust the cp_add_using_directive caller.
4152
4153 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 Code cleanup.
4156 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4157 negative comparisons.
4158
4159 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4160
4161 * mi/mi-main.c (mi_cmd_list_features): Emit
4162 breakpoint-notifications.
4163
4164 2011-06-29 Tom Tromey <tromey@redhat.com>
4165
4166 PR fortran/10036:
4167 * valprint.h (generic_emit_char, generic_printstr): Declare.
4168 * valprint.c (wchar_printable, append_string_as_wide)
4169 (print_wchar): Move from c-lang.c.
4170 (generic_emit_char): New function; mostly taken from c_emit_char.
4171 (generic_printstr): New function; mostly taken from c_printstr.
4172 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4173 represented as arrays.
4174 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4175 type.
4176 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4177 identically to TYPE_CODE_INT.
4178 * f-lang.c (f_get_encoding): New function.
4179 (f_emit_char): Use generic_emit_char.
4180 (f_printchar): Replace comment.
4181 (f_printstr): Use generic_printstr.
4182 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4183 "character" types specially.
4184 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4185 for Fortran.
4186 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4187 Move to valprint.c
4188 (c_emit_char): Call generic_emit_char.
4189 (c_printstr): Call generic_printstr.
4190
4191 2011-06-29 Gary Benson <gbenson@redhat.com>
4192
4193 * breakpoint.c (bpstat_what): Removed duplicated case.
4194
4195 2011-06-28 Tom Tromey <tromey@redhat.com>
4196
4197 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4198
4199 2011-06-27 Tom Tromey <tromey@redhat.com>
4200
4201 * valops.c (find_overload_match): Call do_cleanups before early
4202 return.
4203 * top.c (execute_command): Call do_cleanups before early return.
4204 (command_loop): Likewise.
4205 * stack.c (backtrace_command): Make a null cleanup early. Don't
4206 conditionally call do_cleanups.
4207 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4208 TRY_CATCH.
4209 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4210 so cleanups are always run.
4211 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4212 * findcmd.c (parse_find_args): Call do_cleanups on early return
4213 path.
4214 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4215 Don't conditionally call do_cleanups.
4216 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4217 later.
4218
4219 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4220
4221 * MAINTAINERS (Write After Approval): Use default email address.
4222
4223 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4224
4225 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4226
4227 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4228
4229 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4230 saved_regs_mask and copied_regs_mask fields.
4231 (sparc_record_save_insn): New prototype.
4232 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4233 (sparc_record_save_insn): New function.
4234 (sparc_analyze_prologue): Add head comment. Recognize store insns
4235 of call-saved registers. Use OFFSET consistently. Recognize flat
4236 frames and cache their settings.
4237 (sparc32_skip_prologue): Handle flat frames.
4238 (sparc_frame_cache): Add frame_offset to the base address.
4239 (sparc32_frame_cache): Adjust to new frame description.
4240 (sparc32_frame_prev_register): Likewise.
4241 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4242 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4243 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4244 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4245 frame by calling sparc_record_save_insn.
4246 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4247 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4248 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4249
4250 2011-06-27 Tristan Gingold <gingold@adacore.com>
4251
4252 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4253 field by map_addr and map_len.
4254 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4255 (munmap_section_buffer): Likewise.
4256
4257 2011-06-24 Tom Tromey <tromey@redhat.com>
4258
4259 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4260 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4261 * python/python.c (gdbpy_parameter): Make 'arg' const.
4262 (execute_gdb_command): Likewise.
4263 (gdbpy_decode_line): Likewise. Copy it.
4264 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4265 (gdbpy_write): Make 'arg' const.
4266 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4267 const.
4268 (gdbpy_lookup_type): Likewise.
4269 * python/py-prettyprint.c (print_children): Make 'name' const.
4270 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4271 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4272 Py_ssize_t.
4273 * python/py-function.c (fnpy_init): Make 'name' const.
4274 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4275 (gdbpy_string_to_argv): Make 'input' const.
4276 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4277 it.
4278 * gdbtypes.h (lookup_typename): Update.
4279 * gdbtypes.c (lookup_typename): Make 'name' const.
4280 (lookup_struct): Likewise.
4281 (lookup_union): Likewise.
4282 (lookup_enum): Likewise.
4283
4284 2011-06-24 Tom Tromey <tromey@redhat.com>
4285
4286 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4287 gdb_thread_db.h. Move all common/ entries to be together.
4288 (TAGS): Don't depend on DEPFILES.
4289
4290 2011-06-23 Yao Qi <yao@codesourcery.com>
4291
4292 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4293 * remote.c (remote_start_remote): ... here.
4294 * monitor.c (monitor_open): ... here.
4295
4296 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4297
4298 * gdbtypes.c (append_composite_type_field_aligned): Fix
4299 calculation of bit position based on alignment.
4300
4301 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4302
4303 * breakpoint.c (bpstat_stop_status): Call the check_status
4304 breakpoint_ops method.
4305 (print_one_breakpoint_location): Also print the condition for Ada
4306 exception catchpoints.
4307 (allocate_bp_location): New, factored out from
4308 allocate_bp_location.
4309 (allocate_bp_location): Adjust. Call the owner breakpoint's
4310 allocate_location method, if there is one.
4311 (free_bp_location): Call the locations's dtor method, if there is
4312 one.
4313 (init_raw_breakpoint_without_location): New breakpoint_ops
4314 parameter. Use it.
4315 (set_raw_breakpoint_without_location): Adjust.
4316 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4317 (set_raw_breakpoint): Adjust.
4318 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4319 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4320 re_set and check_status methods.
4321 (init_catchpoint): Don't memset, initialize thread, addr_string
4322 and enable_state. Pass the ops down to init_raw_breakpoint.
4323 (install_catchpoint): Rename to ...
4324 (install_breakpoint): ... this, and make extern.
4325 (create_fork_vfork_event_catchpoint): Adjust.
4326 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4327 re_set and check_status methods.
4328 (create_syscall_event_catchpoint): Adjust.
4329 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4330 (masked_watchpoint_breakpoint_ops): Install NULL
4331 allocate_location, re_set and check_status methods.
4332 (catch_exec_command_1): Adjust.
4333 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4334 re_set and check_status methods.
4335 (create_ada_exception_breakpoint): Rename to ...
4336 (init_ada_exception_breakpoint): ... this. Add a struct
4337 breakpoint parameter, and delete the exp_string, cond_string and
4338 cond parameters. Use init_raw_breakpoint, and don't install or
4339 mention the breakpoint yet. Don't clear breakpoint fields that
4340 init_raw_breakpoint already clears.
4341 (re_set_breakpoint): Delete, split into ...
4342 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4343 functions.
4344 (breakpoint_re_set_one): Call the breakpoint's
4345 breakpoint_ops->re_set implementation, if there's one. Adjust.
4346 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4347 (struct bp_location_ops): New type.
4348 (struct bp_location): New field `ops'.
4349 (struct breakpoint_ops): New `allocate_location', `re_set' and
4350 `check_status' fields. Make `breakpoint_hit''s description match
4351 reality.
4352 (init_bp_location): Declare.
4353 (breakpoint_re_set_default): Declare.
4354 (create_ada_exception_breakpoint): Rename to ...
4355 (init_ada_exception_breakpoint): ... this. Add a struct
4356 breakpoint parameter, and delete the exp_string, cond_string and
4357 cond parameters.
4358 (install_breakpoint): Declare.
4359 * ada-lang.c: Include exceptions.h.
4360 <Ada exceptions description>: Update.
4361 (struct ada_catchpoint_location): New type.
4362 (ada_catchpoint_location_dtor): New function.
4363 (ada_catchpoint_location_ops): New global.
4364 (ada_catchpoint): New type.
4365 (create_excep_cond_exprs): New function.
4366 (dtor_exception, allocate_location_exception, re_set_exception)
4367 (should_stop_exception, check_status_exception): New functions.
4368 (print_one_exception, print_mention_exception)
4369 (print_recreate_exception): Adjust.
4370 (dtor_catch_exception, allocate_location_catch_exception)
4371 (re_set_catch_exception, check_status_catch_exception): New
4372 functions.
4373 (catch_exception_breakpoint_ops): Install them.
4374 (dtor_catch_exception_unhandled)
4375 (allocate_location_catch_exception_unhandled)
4376 (re_set_catch_exception_unhandled)
4377 (check_status_catch_exception_unhandled): New functions.
4378 (catch_exception_unhandled_breakpoint_ops): Install them.
4379 (dtor_catch_assert, allocate_location_catch_assert)
4380 (re_set_catch_assert, check_status_catch_assert): New functions.
4381 (catch_assert_breakpoint_ops): Install them.
4382 (ada_exception_catchpoint_p): Delete.
4383 (catch_ada_exception_command_split)
4384 (ada_exception_catchpoint_cond_string): Rename exp_string
4385 parameter to excep_string. Adjust.
4386 (ada_parse_catchpoint_condition): Delete.
4387 (ada_exception_sal): Rename the exp_string parameter to
4388 excep_string. Delete the cond_string and cond parameters.
4389 Adjust.
4390 (ada_decode_exception_location): Rename the exp_string parameter
4391 to excep_string. Delete the cond_string and cond parameters.
4392 Adjust.
4393 (create_ada_exception_catchpoint): New function.
4394 (catch_ada_exception_command, ada_decode_assert_location)
4395 (catch_assert_command): Adjust.
4396 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4397
4398 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4399
4400 * ada-lang.c: Include arch-utils.h.
4401 (ada_decode_exception_location): Make static.
4402 (catch_ada_exception_command): Moved here from breakpoint.c.
4403 (ada_decode_assert_location): Make static.
4404 (catch_assert_command): Moved here from breakpoint.c.
4405 (_initialize_ada_lang): Install the exception and assert
4406 catchpoint commands here.
4407 * ada-lang.h (ada_decode_exception_location)
4408 (ada_decode_assert_location): Delete declarations.
4409 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4410 breakpoint.h.
4411 (create_ada_exception_breakpoint): Make extern.
4412 (catch_ada_exception_command, catch_assert_command): Moved to
4413 ada-lang.c.
4414 (add_catch_command): Make extern.
4415 (_initilize_breakpoint): Don't install the exception and assert
4416 catchpoint commands here.
4417 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4418 breakpoint.c
4419 (add_catch_command, create_ada_exception_breakpoint): Declare.
4420
4421 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4422
4423 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4424 the breakpoint to the breakpoint chain here.
4425 (set_raw_breakpoint_without_location): Add the breakpoint to the
4426 breakpoint chain here.
4427 (init_raw_breakpoint): Adjust comments.
4428 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4429 here.
4430 (init_catchpoint): Don't set the catchpoint's breakpoint number
4431 here.
4432 (install_catchpoint): New function.
4433 (create_fork_vfork_event_catchpoint)
4434 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4435 use install_catchpoint.
4436
4437 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4438
4439 * breakpoint.c (create_catchpoint_without_mention)
4440 (create_catchpoint): Delete.
4441
4442 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4443
4444 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4445 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4446 reference to exec_pathname.
4447 (struct exec_catchpoint): New type.
4448 (dtor_catch_exec): New function.
4449 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4450 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4451 (catch_exec_command_1): Adjust to use init_catchpoint.
4452 (delete_breakpoint): Remove reference to exec_pathname.
4453
4454 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4455
4456 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4457 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4458 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4459 reference to syscalls_to_be_caught.
4460 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4461 NULL `dtor'.
4462 (struct syscall_catchpoint): New type.
4463 (dtor_catch_syscall): New function.
4464 (insert_catch_syscall, remove_catch_syscall)
4465 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4466 (print_recreate_catch_syscall): Adjust.
4467 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4468 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4469 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4470 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4471 (masked_watchpoint_breakpoint_ops)
4472 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4473 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4474 there is one. Remove references to syscalls_to_be_caught.
4475 (catching_syscall_number): Adjust.
4476 * ada-lang.c (catch_exception_breakpoint_ops)
4477 (catch_exception_unhandled_breakpoint_ops)
4478 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4479
4480 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4481
4482 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4483 field.
4484 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4485 reference to forked_inferior_pid.
4486 (struct fork_catchpoint): New type.
4487 (breakpoint_hit_catch_fork, print_it_catch_fork)
4488 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4489 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4490 (create_fork_vfork_event_catchpoint): Adjust to use
4491 init_catchpoint.
4492
4493 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4494
4495 * breakpoint.c (add_to_breakpoint_chain)
4496 (init_raw_breakpoint_without_location): New functions, factored
4497 out from ...
4498 (set_raw_breakpoint_without_location): ... this one.
4499 (init_raw_breakpoint): New function, factored out from
4500 set_raw_breakpoint and adjusted to use
4501 init_raw_breakpoint_without_location.
4502 (set_raw_breakpoint): Adjust.
4503 (init_catchpoint): New function, factored out from
4504 create_catchpoint_without_mention and adjusted to use
4505 init_raw_breakpoint.
4506 (create_catchpoint_without_mention): Adjust.
4507
4508 2011-06-22 Tom Tromey <tromey@redhat.com>
4509
4510 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4511 argument of 0 specially.
4512
4513 2011-06-22 Yao Qi <yao@codesourcery.com>
4514
4515 * infrun.c (handle_inferior_event): Remove write-only local variable
4516 `sw_single_step_trap_p'.
4517
4518 2011-06-20 Tom Tromey <tromey@redhat.com>
4519
4520 * symtab.c (lookup_language_this): End loop if block is NULL.
4521
4522 2011-06-17 Tom Tromey <tromey@redhat.com>
4523
4524 * valops.c (value_of_this): Use lookup_language_this.
4525 * symtab.h (lookup_language_this): Declare.
4526 * symtab.c (lookup_language_this): New function.
4527 (lookup_symbol_aux): Use lookup_language_this.
4528 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4529
4530 2011-06-17 Tom Tromey <tromey@redhat.com>
4531
4532 * value.h (value_of_this): Update.
4533 (value_of_local): Remove.
4534 * valops.c (value_of_this): Rename from value_of_local. Change
4535 parameters.
4536 * p-exp.y (exp): Update.
4537 (variable): Likewise.
4538 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4539
4540 2011-06-17 Tom Tromey <tromey@redhat.com>
4541
4542 * valops.c (value_of_local): Complain if NAME is NULL.
4543 * std-operator.def (OP_OBJC_SELF): Remove.
4544 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4545 * objc-exp.y (name_not_typename): Use OP_THIS.
4546 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4547 name for "this".
4548 <OP_OBJC_SELF>: Remove.
4549 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4550
4551 2011-06-16 Tristan Gingold <gingold@adacore.com>
4552
4553 * python/py-events.h (gdb_py_events): Make it extern.
4554 * python/py-evtregistry.c (gdb_py_events): Declare.
4555
4556 2011-06-16 Hui Zhu <teawater@gmail.com>
4557
4558 * remote.c (remote_trace_set_readonly_regions): Add check for
4559 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4560 output warning.
4561
4562 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4563
4564 * arm-linux-tdep.c: Include "auxv.h".
4565 (AT_HWCAP): Define.
4566 (ARM_LINUX_SIZEOF_VFP): Define.
4567 (arm_linux_supply_vfp): New function.
4568 (arm_linux_collect_vfp): Likewise.
4569 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4570 (arm_linux_fpa_regset_sections): New variable.
4571 (arm_linux_vfp_regset_sections): Likewise.
4572 (arm_linux_core_read_description): New function.
4573 (arm_linux_init_abi): Install arm_linux_core_read_description and
4574 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4575 appropriate for the architecture.
4576 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4577 (tdesc_arm_with_m): Declare.
4578 (tdesc_arm_with_iwmmxt): Likewise.
4579 (tdesc_arm_with_vfpv2): Likewise.
4580 (tdesc_arm_with_vfpv3): Likewise.
4581 (tdesc_arm_with_neon): Likewise.
4582 * arm-linux-nat.c: Move features/*.c includes ...
4583 * arm-tdep.c: ... here.
4584 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4585 target description data structures ...
4586 * arm-tdep.c (_initialize_arm_tdep): ... here.
4587 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4588 HWCAP_VFPv3D16): Move definitions ...
4589 * arm-linux-tdep.h: ... here.
4590
4591 2011-06-15 Hui Zhu <teawater@gmail.com>
4592
4593 * remote.c (remote_trace_set_readonly_regions): Add a check for
4594 target_buf_size.
4595
4596 2011-06-14 Tom Tromey <tromey@redhat.com>
4597
4598 * coffread.c (coffread_objfile): Rename from current_objfile.
4599 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4600 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4601
4602 2011-06-14 Tom Tromey <tromey@redhat.com>
4603
4604 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4605 (class_symtab): Remove.
4606 (jv_dynamics_progspace_key): New global.
4607 (jv_per_objfile_free): Reset program space data. Update assert.
4608 Don't clear globals.
4609 (get_dynamics_objfile): Use and set program space data.
4610 (get_java_class_symtab): Use get_dynamics_objfile.
4611 (add_class_symbol): Likewise.
4612 (java_link_class_type): Likewise.
4613 (java_object_type, jv_clear_object_type, set_java_object_type):
4614 Remove.
4615 (get_java_object_type): Update. Don't cache result.
4616 (is_object_type): Don't call set_java_object_type.
4617 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4618 initialize jv_dynamics_progspace_key.
4619
4620 2011-06-14 Tom Tromey <tromey@redhat.com>
4621
4622 * symtab.h (current_objfile): Don't declare.
4623 * objfiles.h (current_objfile): Don't declare.
4624 * objfiles.c (current_objfile): Remove.
4625 * mdebugread.c (current_objfile): New file-scope global.
4626 * dbxread.c (current_objfile): New file-scope global.
4627 * coffread.c (current_objfile): New file-scope global.
4628
4629 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4630
4631 * top.h (line): Rename to ...
4632 (saved_command_line): ... this.
4633 (linesize): Rename to ...
4634 (saved_command_line_size): ... this.
4635 * top.c (line): Rename to ...
4636 (saved_command_line): ... this.
4637 (linesize): Rename to ...
4638 (saved_command_line_size): ... this.
4639 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4640 * event-top.c (command_line_handler): Adjust.
4641 * main.c (captured_main): Adjust.
4642
4643 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4644
4645 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4646 get_frame_func instead of get_frame_pc to determine the code
4647 address used to construct the frame ID.
4648 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4649 (i386_epilogue_frame_this_id): Likewise.
4650 (i386_epilogue_frame_prev_register): New function.
4651 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4652 (i386_stack_tramp_frame_sniffer): Fix coding style.
4653 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4654 (i386_gdbarch_init): Fix comments.
4655
4656 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4657
4658 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4659 instruction when walking back through the instruction stream.
4660
4661 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4662
4663 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4664 fullname parameters order.
4665
4666 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4667
4668 Code cleanup.
4669 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4670 for fun.
4671 * psymtab.c (map_symbol_filenames_psymtab)
4672 (map_partial_symbol_filenames): Likewise.
4673 * psymtab.h: Include symfile.h.
4674 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4675 * symfile.h (symbol_filename_ftype): New.
4676 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4677 map_symbol_filenames, clarify more the naming in comment.
4678
4679 2011-06-07 Doug Evans <dje@google.com>
4680
4681 * cc-with-index.sh: Fix typos in comment.
4682 Look for ../../gdb, for fullname.exp.
4683
4684 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4685 Pedro Alves <pedro@codesourcery.com>
4686
4687 * cli/cli-cmds.c (shell_escape): Use waitpid.
4688 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4689
4690 2011-06-07 Tristan Gingold <gingold@adacore.com>
4691
4692 * xcoffread.c (dwarf2_xcoff_names): New variable.
4693 (aix_process_linenos): Add a guard.
4694 (xcoff_symfile_finish): Free dwarf2.
4695 (xcoff_initial_scan): Add dwarf2 support.
4696
4697 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4698
4699 * infcall.c (run_inferior_call): Don't mask async. Instead force
4700 a synchronous wait, if the target can async.
4701
4702 * target.h (struct target_ops): Delete to_async_mask.
4703 (target_async_mask): Delete.
4704 * target.c (update_current_target): Delete references to to_async_mask.
4705 * linux-nat.c (linux_nat_async_mask_value): Delete.
4706 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4707 to linux_nat_async_mask_value.
4708 (linux_nat_async_mask): Delete.
4709 (linux_nat_async, linux_nat_close): Remove references to
4710 linux_nat_async_mask_value.
4711 * record.c (record_async_mask_value): Delete.
4712 (record_async): Remove references to record_async_mask_value.
4713 (record_async_mask): Delete.
4714 (record_can_async_p, record_is_async_p): Remove references to
4715 record_async_mask_value.
4716 (init_record_ops, init_record_core_ops): Remove references to
4717 record_async_mask.
4718 * remote.c (remote_async_mask_value): Delete.
4719 (init_remote_ops): Remove reference to remote_async_mask.
4720 (remote_can_async_p, remote_is_async_p): Remove references to
4721 remote_async_mask_value.
4722 (remote_async): Remove references to remote_async_mask_value.
4723 (remote_async_mask): Delete.
4724
4725 * infrun.c (fetch_inferior_event): Don't claim registers changed
4726 if the current thread is already not executing.
4727
4728 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4729
4730 From Stephen Kitt <steve@sk2.org>
4731 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4732 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4733
4734 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4735
4736 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4737 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4738
4739 2011-06-03 Tom Tromey <tromey@redhat.com>
4740
4741 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4742 code fields.
4743 * python/py-exitedevent.c (create_exited_event_object): Change
4744 type of 'exit_code'. Optionally add exit_code attribute.
4745 (emit_exited_event): Change type of 'exit_code'.
4746 * python/py-event.h (emit_exited_event): Update.
4747 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4748 * infrun.c (handle_inferior_event): Set exit code fields on
4749 inferior.
4750 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4751 fields.
4752 * inferior.c (exit_inferior_1): Initialize new fields.
4753
4754 2011-06-03 Tom Tromey <tromey@redhat.com>
4755
4756 * dwarf2expr.c (get_signed_type): New function.
4757 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4758
4759 2011-06-02 Keith Seitz <keiths@redhat.com>
4760
4761 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4762
4763 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4764
4765 * top.h (simplified_command_loop): Delete declaration.
4766
4767 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4768
4769 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4770 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4771
4772 2011-06-01 Yao Qi <yao@codesourcery.com>
4773
4774 * objfiles.h (obj_section_addr): Update reference to objfile from
4775 `abfd' to `obfd'.
4776 (obj_section_endaddr): Likewise.
4777
4778 2011-06-01 Daniel Jacobowitz <drow@false.org>
4779
4780 * MAINTAINERS: Update my email address and affiliation. Also
4781 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4782
4783 2010-05-31 Keith Seitz <keiths@redhat.com>
4784
4785 PR c++/12750
4786 * linespec.c (get_search_block): New function.
4787 (find_methods): Add FILE_SYMTATB parameter and use it and
4788 get_search_block to pass an appropriate block to
4789 lookup_symbol_in_namespace.
4790 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4791 Check if *ARGPTR starts with a filename first.
4792 If it does, call locate_first_half again to locate the next
4793 "first half" of the linespec.
4794 Pass FILE_SYMTATB to decode_objc and decode_compound.
4795 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4796 (locate_first_half): Stop on the first colon seen.
4797 (decode_compound): Add FILE_SYMTAB parameter.
4798 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4799 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4800 get_search_block with lookup_symbol.
4801 (find_method): Add FILE_SYMTAB parameter and pass it to
4802 find_methods.
4803 (decode_objc): Use get_search_block.
4804
4805 2010-05-31 Keith Seitz <keiths@redhat.com>
4806
4807 PR symtab/12704
4808 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4809 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4810 and CP_ANONYMOUS_NAMESPACE_LEN.
4811 (cp_is_anonymous): Likewise.
4812 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4813 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4814 * dwarf2read.c (namespace_name): Likewise.
4815 (fixup_partial_die): Likewise.
4816 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4817 seen in the input, keep it.
4818
4819 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4820
4821 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4822 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4823 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4824 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4825 * remote.c (_initialize_remote): Register
4826 async_remote_interrupt_twice directly as
4827 sigint_remote_twice_token event.
4828
4829 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4830
4831 * target.h (enum inferior_event_type): Delete INF_ERROR.
4832 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4833
4834 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4835
4836 * interps.c (interp_set): Don't cancel continuations.
4837
4838 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4839
4840 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4841
4842 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4843
4844 * continuations.h (continuation_ftype): Add `err' parameter.
4845 Document parameters.
4846 (do_all_continuations, do_all_continuations_thread)
4847 (do_all_intermediate_continuations)
4848 (do_all_intermediate_continuations_thread)
4849 (do_all_inferior_continuations): Add `err' parameter.
4850 * continuations.c (do_my_continuations_1, do_my_continuations)
4851 (do_all_inferior_continuations, do_all_continuations_ptid)
4852 (do_all_continuations_thread_callback)
4853 (do_all_continuations_thread, do_all_continuations)
4854 (do_all_intermediate_continuations_thread_callback)
4855 (do_all_intermediate_continuations_thread)
4856 (do_all_intermediate_continuations): Add `err' parameter, and pass
4857 it down all the way to the continuations proper.
4858 * inf-loop.c (inferior_event_handler): If fetching an inferior
4859 event throws an error, don't pop the target, and still call the
4860 continuations, but with `err' set. Adjust all other continuation
4861 calls.
4862 * breakpoint.c (until_break_command_continuation): Add `err'
4863 parameter.
4864 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4865 issue another step if `err' is set.
4866 (struct until_next_continuation_args): New.
4867 (until_next_continuation): Add `err' parameter. Adjust.
4868 (until_next_command): Adjust.
4869 (struct finish_command_continuation_args): Add `thread' field.
4870 (finish_command_continuation): Add `err' parameter. Handle it.
4871 (finish_forward): Adjust.
4872 (attach_command_continuation): Add `err' parameter. Handle it.
4873 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4874 cancel the continuations.
4875 * interps.c (interp_set): Adjust to cancel the continuations.
4876 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4877 continuations rather than discarding.
4878 (free_thread): Don't clear thread inferior resources here.
4879 (delete_thread_1): Do it here instead. And do it before removing
4880 the thread from the threads list. Tag the thread as exited before
4881 clearing thread inferior resources.
4882
4883 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4884
4885 * infcall.c (call_function_by_hand): Rephrase error message.
4886
4887 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4888
4889 * defs.h (struct thread_info, struct inferior): Delete forward
4890 declarations.
4891 * breakpoint.h (struct thread_info): New forward declaration.
4892 * observer.sh (struct inferior): New forward declaration.
4893 * python/python-internal.h (struct inferior): New forward
4894 declaration.
4895
4896 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4897
4898 * defs.h (struct continuation, continuation_ftype)
4899 (continuation_free_arg_ftype, add_continuation)
4900 (do_all_continuations, do_all_continuations_thread)
4901 (discard_all_continuations, discard_all_continuations_thread)
4902 (add_intermediate_continuation, do_all_intermediate_continuations)
4903 (do_all_intermediate_continuations_thread)
4904 (discard_all_intermediate_continuations)
4905 (discard_all_intermediate_continuations_thread)
4906 (add_inferior_continuation, do_all_inferior_continuations)
4907 (discard_all_inferior_continuations): Move to ...
4908 * continuations.h: ... this new file.
4909 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4910 infcmd.c, inferior.c, infrun.c, interps.c: Include
4911 continuations.h.
4912
4913 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4914 Doug Evans <dje@google.com>
4915
4916 Fix PR 10970, PR 12702.
4917 * linux-nat.c (linux_lwp_is_zombie): New function.
4918 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4919 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4920
4921 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4922
4923 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4924 typedefs.
4925 (add_continuation, add_intermediate_continuation)
4926 (add_inferior_continuation): Use them.
4927 * continuations.c (struct continuation): Use them.
4928 (make_continuation_ftype): Delete.
4929 (make_continuation, add_inferior_continuation, add_continuation)
4930 (add_intermediate_continuation): Use continuation_ftype and
4931 continuation_free_arg_ftype. Rename parameters to shorter names.
4932
4933 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4934
4935 * continuations.c (make_continuation): Make it return void.
4936 (do_my_continuations): Rename to ...
4937 (do_my_continuations_1): ... this. Remove old_chain parameter and
4938 adjust.
4939 (do_my_continuations): New.
4940 (discard_my_continuations): Rename to ...
4941 (discard_my_continuations_1): ... this. Remove old_chain
4942 parameter and adjust.
4943 (discard_my_continuations): New.
4944 (add_inferior_continuation): Simplify.
4945 (do_all_inferior_continuations): Reimplement on top
4946 do_my_continuations.
4947 (discard_all_inferior_continuations): Simplify.
4948 (add_continuation): Simplify.
4949 (do_all_continuations_ptid): Simplify.
4950 (discard_all_continuations_thread_callback): Simplify.
4951 (add_intermediate_continuation): Simplify.
4952 (discard_all_intermediate_continuations_thread_callback):
4953 Simplify.
4954
4955 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4956
4957 * utils.c (struct continuation, add_continuation)
4958 (add_inferior_continuation)
4959 (do_all_inferior_continuations, discard_all_inferior_continuations)
4960 (restore_thread_cleanup, do_all_continuations_ptid)
4961 (do_all_continuations_thread_callback)
4962 (do_all_continuations_thread, do_all_continuations)
4963 (discard_all_continuations_thread_callback)
4964 (discard_all_continuations_thread, discard_all_continuations)
4965 (add_intermediate_continuation)
4966 (do_all_intermediate_continuations_thread_callback)
4967 (do_all_intermediate_continuations_thread)
4968 (do_all_intermediate_continuations)
4969 (discard_all_intermediate_continuations_thread_callback)
4970 (discard_all_intermediate_continuations_thread)
4971 (discard_all_intermediate_continuations): Move to ...
4972 * continuations.c: ... this new file, and adjust to no longer
4973 implement continuations on top of cleanups.
4974 * Makefile.in (SFILES): Add continuations.c.
4975 (COMMON_OBS): Add continuations.o.
4976
4977 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4978
4979 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4980 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4981 Internal error on invalid values.
4982 * reverse.c: Don't handle EXEC_ERROR.
4983 * mi/mi-main.c: Don't handle EXEC_ERROR.
4984
4985 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4986
4987 * record.c: Include event-loop.h, inf-loop.h.
4988 (record_beneath_to_async): New global.
4989 (tmp_to_async): New global.
4990 (record_async_inferior_event_token): New global.
4991 (record_open_1): Don't error out if async is enabled.
4992 (record_open): Handle to_async. Create an async event source in
4993 the event loop.
4994 (record_close): Delete the async event source.
4995 (record_resumed): New global.
4996 (record_execution_dir): New global.
4997 (record_resume, record_core_resume): Set them. Register the
4998 target on the event loop.
4999 (record_wait): Rename to ...
5000 (record_wait_1): ... this. Add more debug output. Handle
5001 TARGET_WNOHANG, and the target beneath returning
5002 TARGET_WAITKIND_IGNORE.
5003 (record_wait): Reimplement on top of record_wait_1.
5004 (record_async_mask_value): New global.
5005 (record_async, record_async_mask, record_can_async_p)
5006 (record_is_async_p, record_execution_direction): New functions.
5007 (init_record_ops, init_record_core_ops): Install new methods.
5008 * infrun.c (fetch_inferior_event): Temporarily switch the global
5009 execution direction to the direction the target was going.
5010 (execution_direction): Change type to int.
5011 * target.c (default_execution_direction): New function.
5012 (update_current_target): Inherit and de_fault
5013 to_execution_direction.
5014 * target.h (struct target_ops) <to_execution_direction>: New
5015 field.
5016 (target_execution_direction): New macro.
5017 * inferior.h (execution_direction): Change type to int.
5018
5019 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5020
5021 * infcall.c (call_function_by_hand): Don't allow calling functions
5022 in reverse execution mode.
5023
5024 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5025
5026 * infcmd.c (finish_command): Allow async finish in reverse.
5027
5028 2011-05-26 Yao Qi <yao@codesourcery.com>
5029
5030 * gdb_thread_db.h: Delete. Move to ...
5031 * common/gdb_thread_db.h: ... here.
5032
5033 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5034
5035 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5036 function's entry point instead of a manually managed momentary
5037 breakpoint, and only ever issue one proceed call.
5038 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5039 doing a reverse-finish, switch to stepi mode, to do another step.
5040 (insert_step_resume_breakpoint_at_sal): Make public.
5041 (normal_stop): No need to save function value return registers if
5042 going reverse.
5043 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5044
5045 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5046
5047 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5048 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5049 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5050 at the end.
5051 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5052 step-resume breakpoints.
5053 (print_it_typical): Handle bp_hp_step_resume.
5054 (bpstat_what): Ditto.
5055 (bptype_string): Ditto.
5056 (print_one_breakpoint_location): Ditto.
5057 (allocate_bp_location): Ditto.
5058 (mention): Ditto.
5059 (breakpoint_re_set_one): Ditto.
5060 * infrun.c (handle_inferior_event): Adjust. Split
5061 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5062 BPSTAT_WHAT_HP_STEP_RESUME.
5063 (insert_step_resume_breakpoint_at_sal): Rename to ...
5064 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5065 parameter. Handle it.
5066 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5067 insert_step_resume_breakpoint_at_sal_1.
5068 (insert_step_resume_breakpoint_at_frame): Rename to ...
5069 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5070 set a high-priority step-resume breakpoint.
5071 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5072 (insert_step_resume_breakpoint_at_caller): Ditto.
5073
5074 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5075
5076 * breakpoint.c (iterate_over_related_breakpoints): New.
5077 (do_map_delete_breakpoint): New.
5078 (delete_command): Pass do_map_delete_breakpoint to
5079 map_breakpoint_numbers.
5080 (do_disable_breakpoint): New.
5081 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5082 breakpoints.
5083 (do_enable_breakpoint): Rename to ...
5084 (enable_breakpoint_disp): ... this.
5085 (enable_breakpoint): Adjust.
5086 (do_enable_breakpoint): New.
5087 (enable_once_breakpoint): Delete.
5088 (do_map_enable_breakpoint): New.
5089 (do_map_enable_once_breakpoint): New.
5090 (enable_once_command, enable_delete_command)
5091 (delete_trace_command): Iterate over the breakpoint's related
5092 breakpoints.
5093
5094 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5095
5096 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5097 for ALPHA_ZERO_REGNUM.
5098 (alpha_supply_int_regs): Explicitly supply zero as the value for
5099 ALPHA_ZERO_REGNUM in the register cache.
5100 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5101
5102 2011-05-26 Yao Qi <yao@codesourcery.com>
5103
5104 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5105
5106 2011-05-26 Tristan Gingold <gingold@adacore.com>
5107
5108 * symfile.h (struct dwarf2_section_names): New type.
5109 (struct dwarf2_debug_sections): New type.
5110 (dwarf2_has_info): Add parameter.
5111 * dwarf2read.c (dwarf2_elf_names): New variable.
5112 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5113 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5114 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5115 (dwarf2_has_info): Add names parameter. Pass names
5116 to dwarf2_locate_sections.
5117 (section_is_p): Rewrite using the names parameter.
5118 (dwarf2_locate_sections): Use section names from the names parameter.
5119 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5120 * elfread.c (read_psyms): Ditto.
5121 * machoread.c (macho_symfile_read): Ditto.
5122
5123 2011-05-25 Andreas Schwab <schwab@redhat.com>
5124
5125 PR gdb/8677
5126 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5127
5128 2011-05-24 Keith Seitz <keiths@redhat.com>
5129
5130 PR breakpoint/12803
5131 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5132 (decode_compound): Unconditionally call keep_name_info.
5133
5134 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5135
5136 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5137 scope, clear its command list.
5138 (map_breakpoint_numbers): Don't walk the related breakpoints list
5139 of each breakpoint.
5140
5141 2011-05-24 Tom Tromey <tromey@redhat.com>
5142
5143 * MAINTAINERS: Move Jim Blandy to past maintainers.
5144
5145 2011-05-24 Tristan Gingold <gingold@adacore.com>
5146
5147 * symfile.h (enum dwarf2_section_enum): New type.
5148 (dwarf2_get_section_info): New prototype.
5149 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5150 section_name by sect. Use a switch to select the info.
5151 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5152 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5153
5154 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5155
5156 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5157 shared library event breakpoint if there's no execution.
5158
5159 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5160
5161 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5162 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5163
5164 2011-05-23 Tom Tromey <tromey@redhat.com>
5165
5166 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5167 NULL.
5168
5169 2011-05-23 Doug Evans <dje@google.com>
5170
5171 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5172 entry for RuntimeError to doc string.
5173
5174 2011-05-23 Jerome Guitton <guitton@adacore.com>
5175
5176 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5177 sequence for probing loops.
5178
5179 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5180
5181 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5182 comment.
5183
5184 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5185
5186 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5187 zero as the value for %g0 in the register cache.
5188 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5189 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5190
5191 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5192
5193 * infrun.c (proceed): Set previous_inferior_ptid here.
5194 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5195 inferior_ptid, not null_ptid.
5196 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5197 (fetch_inferior_event): Nor here.
5198
5199 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5200
5201 * inf-loop.c (inferior_event_handler): Only output a message if
5202 verbose.
5203
5204 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5205
5206 * MAINTAINERS: Update my e-mail address.
5207
5208 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5209
5210 * infrun.c (proceed): Switch the inferior event loop to
5211 INF_EXEC_COMPLETE if the target refused to resume from a
5212 vfork/fork.
5213
5214 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5215
5216 * infcmd.c: Include "inf-loop.h".
5217 (step_once): When stepping into an inline subroutine, pretend the
5218 target has run. If the target can async, switch the inferior
5219 event loop to INF_EXEC_COMPLETE.
5220 * inferior.h (user_visible_resume_ptid): Declare.
5221 * infrun.c (user_visible_resume_ptid): New function, factored out
5222 from `resume'.
5223 (resume): Use it.
5224 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5225 that the current thread is running. Merge async and sync
5226 branches.
5227
5228 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5229
5230 * infcmd.c (step_1): Simplify synchronous case.
5231
5232 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5233
5234 * tracepoint.c: Include exceptions.h.
5235 (TFILE_PID): Move higher in file.
5236 (tfile_open): Delay pushing the tfile target until we're assured
5237 the tfile header is present in the file. Wrap reading the initial
5238 newline-terminated lines in TRY_CATCH. Pop the target if the
5239 initial setup failed. Add the tfile's thread immediately
5240 aftwards, before any non-essential setup. Don't skip
5241 post_create_inferior if there are no traceframes present in the
5242 file.
5243 (tfile_close): Remove redundant check for null before xfree call.
5244 (tfile_thread_alive): New function.
5245 (init_tfile_ops): Register it as to_thread_alive callback.
5246
5247 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5248
5249 * tracepoint.c (tfile_open): Delete #if 0'd code.
5250
5251 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5252
5253 Fix -readnow for -gdwarf-4 unused type units.
5254 * dwarf2read.c (struct signatured_type): Remove the field offset.
5255 (create_signatured_type_table_from_index): Remove its initialization.
5256 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5257 instead. Add a complaint call.
5258 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5259 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5260 (lookup_signatured_type_at_offset, read_signatured_type)
5261 (write_one_signatured_type): Update the field for per_cu.
5262
5263 2011-05-19 Tom Tromey <tromey@redhat.com>
5264
5265 * python/py-inferior.c (python_inferior_exit): Use
5266 target_gdbarch.
5267 (python_on_resume): Likewise.
5268
5269 2011-05-19 Matt Rice <ratmice@gmail.com>
5270
5271 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5272
5273 2011-05-19 Hui Zhu <teawater@gmail.com>
5274
5275 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5276
5277 2011-05-19 Hui Zhu <teawater@gmail.com>
5278
5279 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5280
5281 2011-05-18 Tom Tromey <tromey@redhat.com>
5282
5283 * dwarf2read.c (dwarf2_add_field): Constify.
5284 * value.c (value_static_field): Constify.
5285 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5286 Now const.
5287 * ax-gdb.c (gen_static_field): Constify
5288
5289 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5290
5291 * linux-nat.c (kill_callback): Use SIGKILL first.
5292
5293 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5294
5295 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5296
5297 2011-05-18 Tom Tromey <tromey@redhat.com>
5298
5299 * value.c (value_fn_field): Constify.
5300 * symtab.c (gdb_mangle_name): Constify.
5301 * stabsread.c (update_method_name_from_physname): Make 'physname'
5302 argument const.
5303 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5304 const. Use explicit fputc_filtered loop.
5305 (pascal_type_print_base): Constify.
5306 * p-lang.h (pascal_type_print_method_args): Update.
5307 * linespec.c (add_matching_methods): Constify.
5308 (add_constructors): Likewise.
5309 * jv-typeprint.c (java_type_print_base): Constify.
5310 * gdbtypes.h (struct cplus_struct_type)
5311 <fn_fieldlist.fn_field.physname>: Now const.
5312 * dwarf2read.c (compute_delayed_physnames): Constify.
5313 (dwarf2_add_member_fn): Likewise.
5314 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5315
5316 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5317
5318 * infrun.c (resume): Mention which is the current thread, and its
5319 current PC in debug output.
5320 (prepare_to_proceed): Mention the thread switching in debug
5321 output.
5322
5323 2011-05-18 Tom Tromey <tromey@redhat.com>
5324
5325 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5326 path check. Use xmalloc and cleanups.
5327 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5328
5329 2011-05-17 Tom Tromey <tromey@redhat.com>
5330
5331 * cp-valprint.c (cp_print_value_fields): Catch errors from
5332 value_static_field.
5333
5334 2011-05-17 Tom Tromey <tromey@redhat.com>
5335
5336 * dwarf2read.c (dwarf2_get_die_type): Call
5337 get_die_type_at_offset.
5338 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5339 get_base_type function.
5340
5341 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5342
5343 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5344 trap_expected.
5345
5346 2011-05-16 Doug Evans <dje@google.com>
5347
5348 * python/py-auto-load.c (source_section_scripts): Mention objfile
5349 name in warning.
5350
5351 2011-05-15 Doug Evans <dje@google.com>
5352
5353 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5354 (try_thread_db_load_from_pdir): Call it. If unable to find
5355 libthread_db in directory of libpthread, see if we're looking at
5356 the separate-debug-info copy.
5357
5358 * python/py-autoload.c (print_script): Print "Missing" instead of
5359 "No" for missing scripts.
5360 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5361
5362 2011-05-13 Doug Evans <dje@google.com>
5363
5364 * ui-file.c (stdio_file_write_async_safe): Add comment.
5365
5366 2011-05-14 Hui Zhu <teawater@gmail.com>
5367
5368 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5369
5370 2011-05-13 Doug Evans <dje@google.com>
5371
5372 Support $pdir and $sdir in libthread-db-search-path.
5373 * NEWS: Mention $sdir,$pdir.
5374 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5375 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5376 (try_thread_db_load_from_sdir): New function.
5377 (try_thread_db_load_from_dir): New function.
5378 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5379 system directories if search of libthread-db-search-path fails,
5380 that is now done via $sdir.
5381 (has_libpthread): New function.
5382 (thread_db_load): Remove search for libthread_db in directory of
5383 libpthread, that is now done via $pdir.
5384
5385 * NEWS: Mention "info auto-load-scripts".
5386 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5387 script_not_found_warning_printed.
5388 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5389 all callers updated. Initialize script_not_found_warning_printed.
5390 (get_auto_load_pspace_data_for_loading): New function.
5391 (maybe_add_script): New function.
5392 (source_section_scripts): Simplify. Only print one warning regardless
5393 of the number of auto-load scripts not found.
5394 (clear_section_scripts): Clear script_not_found_warning_printed.
5395 (auto_load_objfile_script): Record script in hash table.
5396 (count_matching_scripts): New function.
5397 (maybe_print_script): Renamed from maybe_print_section_script, all
5398 callers updated. Rewrite to use ui_out_*.
5399 (info_auto_load_scripts): Renamed from
5400 maintenance_print_section_scripts, all callers updated.
5401 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5402 renamed as "info auto-load-scripts".
5403
5404 2011-05-13 Tom Tromey <tromey@redhat.com>
5405
5406 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5407 (read_sleb128): Likewise.
5408
5409 2011-05-13 Tom Tromey <tromey@redhat.com>
5410
5411 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5412 offset display.
5413
5414 2011-05-13 Doug Evans <dje@google.com>
5415
5416 * linux-nat.c (debug_linux_nat_async): Delete.
5417 Replace all references to use debug_linux_nat instead.
5418 (show_debug_linux_nat_async): Delete.
5419 (sigchld_handler): Call ui_file_write_async_safe instead of
5420 fprintf_unfiltered.
5421 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5422 * ui-file.c (struct ui_file): New member to_write_async_safe.
5423 (null_file_write_async_safe): New function.
5424 (ui_file_write_async_safe): New function.
5425 (set_ui_file_write_async_safe): New function.
5426 (ui_file_new): Initialize to_write_async_safe.
5427 (stdio_file_write_async_safe): New function.
5428 (struct stdio_file): New member fd.
5429 (stdio_file_new): Initialize to_write_async_safe, fd.
5430 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5431 fileno.
5432 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5433 (set_ui_file_write_async_safe): Declare.
5434 (ui_file_write_async_safe): Declare.
5435
5436 2011-05-13 Tom Tromey <tromey@redhat.com>
5437
5438 * utils.c (do_value_free): New function.
5439 (make_cleanup_value_free): Likewise.
5440 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5441 freeing correctly.
5442 (dwarf2_loc_desc_needs_frame): Call
5443 make_cleanup_value_free_to_mark.
5444 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5445 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5446 value_free_to_mark.
5447 (new_dwarf_expr_context): Don't call value_mark.
5448 * dwarf2-frame.c (execute_stack_op): Call
5449 make_cleanup_value_free_to_mark.
5450 * defs.h (make_cleanup_value_free): Declare.
5451
5452 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5453
5454 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5455 prepare_execute_command.
5456 * top.c (prepare_execute_command): Return cleanup.
5457 (execute_command): Use cleanup from prepare_execute_command.
5458 * top.h (prepare_execute_command): Change prototype to return
5459 cleanup.
5460 * defs.h (struct value): Add opaque declaration.
5461 (make_cleanup_value_free_to_mark): Add prototype.
5462 * utils.c (do_value_free_to_mark): New function.
5463 (make_cleanup_value_free_to_mark): Likewise.
5464
5465 2011-05-12 Tom Tromey <tromey@redhat.com>
5466
5467 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5468 cast left-hand-side to unsigned.
5469
5470 2011-05-12 Tom Tromey <tromey@redhat.com>
5471
5472 PR gdb/12617:
5473 * value.h (value_from_contents): Declare.
5474 * value.c (value_from_contents): New function.
5475 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5476 (dwarf2_get_die_type): New function.
5477 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5478 (allocate_piece_closure): Acquire reference to values.
5479 (read_pieced_value): Update for value-based expressions.
5480 (write_pieced_value): Likewise.
5481 (free_pieced_value_closure): Call value_free as needed.
5482 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5483 Update for value-based expressions.
5484 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5485 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5486 <get_base_type>: New field.
5487 (struct dwarf_expr_piece) <v.value>: Change type.
5488 <v.regno>: New field.
5489 (struct dwarf_expr_context) <mark>: New field.
5490 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5491 (dwarf_expr_pop, dwarf_expr_push): Remove.
5492 (dwarf_expr_push_address): Declare.
5493 * dwarf2expr.c (dwarf_arch_cookie): New global.
5494 (struct dwarf_gdbarch_types): New.
5495 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5496 functions.
5497 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5498 static.
5499 (dwarf_expr_push_address): New function.
5500 (dwarf_expr_pop): Now static.
5501 (dwarf_expr_fetch): Change return type.
5502 (dwarf_require_integral): New function.
5503 (dwarf_expr_fetch): Simplify.
5504 (add_piece): Update.
5505 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5506 functions.
5507 (execute_stack_op) <sign_ext>: Remove.
5508 Use values for DWARF stack.
5509 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5510 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5511 New cases.
5512 (_initialize_dwarf2expr): New function.
5513 (add_piece): Update.
5514 (new_dwarf_expr_context): Set new field.
5515 (free_dwarf_expr_context): Call value_free_to_mark.
5516 * dwarf2-frame.c (no_base_type): New function.
5517 (execute_stack_op): Set get_base_type field. Update.
5518
5519 2011-05-12 Tom Tromey <tromey@redhat.com>
5520
5521 * dwarf2read.c (read_common_block): Fix formatting.
5522
5523 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5524
5525 * breakpoint.c (disable_breakpoint): Disable all locations
5526 associated with a tracepoint on target if a trace experiment is
5527 running.
5528 (disable_command): Disable a specific tracepoint location on target if
5529 a trace experiment is running.
5530 (do_enable_breakpoint): Enable all locations associated with a
5531 tracepoint on target if a trace experiment is running.
5532 (enable_command) Enable a specific tracepoint location on target if a
5533 trace experiment is running.
5534 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5535 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5536 to_disable_tracepoint.
5537 * target.h: Add declaration of struct bp_location.
5538 (struct target_ops): Add new functions
5539 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5540 to_disable_tracepoint to target operations.
5541 (target_supports_enable_disable_tracepoint): New macro.
5542 (target_enable_tracepoint): New macro.
5543 (target_disable_tracepoint): New macro.
5544 * remote.c (struct remote_state): Add new field.
5545 (remote_enable_disable_tracepoint_feature): New.
5546 (remote_protocol_features): Add new entry.
5547 (remote_supports_enable_disable_tracepoint): New.
5548 (remote_enable_tracepoint): New.
5549 (remote_disable_tracepoint): New.
5550 (init_remote_ops): Add remote_enable_tracepoint,
5551 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5552 to remote operations.
5553 * tracepoint.c (start_tracing): Allow tracing to start without any
5554 tracepoints enabled with just a warning if they can be re-enabled
5555 later.
5556 * NEWS: Add news item for the new behaviour of the enable and disable
5557 GDB commands when applied to tracepoints.
5558 Add news items for the new remote packets QTEnable and QTDisable.
5559
5560 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5561
5562 * config.in: Regenerate.
5563 * configure: Regenerate.
5564 * configure.ac <--with-system-readline> (for readline_echoing_p):
5565 Remove the test.
5566 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5567 (tui_old_rl_echoing_p): ... here.
5568 (tui_setup_io): Rename extern declaration readline_echoing_p to
5569 _rl_echoing_p. Adjust assignments for the both renames.
5570
5571 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5572
5573 * symtab.c (lookup_symtab): Run cleanup before returning.
5574
5575 2011-05-11 Tom Tromey <tromey@redhat.com>
5576
5577 * dwarf2read.c (handle_data_member_location): New function.
5578 (dwarf2_add_field): Use it.
5579 (read_common_block): Likewise.
5580
5581 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5582
5583 Make addrs->SECTINDEX always defined.
5584 * symfile.c (relative_addr_info_to_section_offsets): Check for
5585 SECTINDEX -1, not for zero ADDR.
5586 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5587 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5588 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5589 on its validity.
5590
5591 2011-05-10 Doug Evans <dje@google.com>
5592
5593 * linux-thread-db.c: Whitespace cleanup.
5594 (try_thread_db_load_1): Fix comment.
5595
5596 * linux-thread-db.c (set_libthread_db_search_path): New function.
5597 (_initialize_thread_db): Add setter for libthread-db-search-path.
5598
5599 2011-05-09 Doug Evans <dje@google.com>
5600
5601 * NEWS: Mention --with-iconv-bin.
5602 * configure.ac: New option --with-iconv-bin.
5603 * configure: Regenerate.
5604 * config.in: Regenerate.
5605 * defs.h (relocate_gdb_directory): Declare.
5606 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5607 removed progname parameter, and exported. All callers updated.
5608 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5609
5610 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5611 adding missing call to restore_child_signals_mask.
5612
5613 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5614
5615 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5616 parameter.
5617 * infrun.c (proceed, start_remote): Adjust.
5618 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5619 and adjust to not handle it.
5620 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5621 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5622 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5623 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5624 * windows-nat.c (do_initial_windows_stuff): Adjust.
5625 * infcmd.c (attach_command): Adjust.
5626 (notice_new_inferior): Adjust.
5627
5628 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5629
5630 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5631 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5632 * spu-tdep.c (op_selb): Use correct value.
5633
5634 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5635
5636 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5637 "parent" parameter to symbol_file_add_from_bfd call.
5638
5639 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5640 Thiago Jung Bauermann <bauerman@br.ibm.com>
5641
5642 Implement support for PowerPC BookE masked watchpoints.
5643 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5644 section.
5645 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5646 method. Initialize to NULL in all existing breakpoint_ops instances.
5647 (struct breakpoint) <hw_wp_mask>: New field.
5648 * breakpoint.c (is_masked_watchpoint): Add prototype.
5649 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5650 breakpoint's breakpoint_ops.works_in_software_mode if available.
5651 (watchpoints_triggered): Handle the case of a hardware masked
5652 watchpoint trigger.
5653 (watchpoint_check): Likewise.
5654 (works_in_software_mode_watchpoint): New function.
5655 (insert_masked_watchpoint, remove_masked_watchpoint)
5656 (resources_needed_masked_watchpoint)
5657 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5658 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5659 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5660 functions.
5661 (masked_watchpoint_breakpoint_ops): New structure.
5662 (watch_command_1): Check for the existence of the `mask' parameter.
5663 Set b->ops according to the type of hardware watchpoint being created.
5664 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5665 (ppc_linux_remove_mask_watchpoint)
5666 (ppc_linux_masked_watch_num_registers): New functions.
5667 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5668 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5669 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5670 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5671 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5672 (target_masked_watch_num_registers): New functions.
5673 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5674 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5675 methods.
5676 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5677 (target_masked_watch_num_registers): Add prototypes.
5678
5679 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5680
5681 PR 12573
5682 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5683 (producer_is_gcc_ge_4_0): New function.
5684 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5685 symtab->language code.
5686 (var_decode_location): Set cu->has_loclist.
5687 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5688 skip. Intialize force_skip from locations_valid. Move the prologue
5689 skipping code into two passes.
5690 * symtab.h (struct symtab): Make the primary field a bitfield. New
5691 field locations_valid.
5692
5693 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5694
5695 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5696 (classify_inner_name): Call cp_lookup_nested_type with
5697 yylval.tsym.type.
5698 * cp-namespace.c (cp_lookup_nested_type): New variable
5699 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5700 type_name_no_tag_or_error with saved_parent_type.
5701 * dwarf2read.c (load_partial_dies): Read in any children of
5702 DW_TAG_typedef with complaint in such case.
5703 * gdbtypes.c (type_name_no_tag_or_error): New function.
5704 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5705 * valops.c (destructor_name_p): New comment for parameter type. Remove
5706 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5707 * value.h (destructor_name_p): Remove type const.
5708
5709 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5710
5711 * symtab.c (compare_symbol_name): New function.
5712 (completion_list_add_name, expand_partial_symbol_name): Call it,
5713 remove the variable ncmp.
5714 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5715 gdb_assert it.
5716
5717 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5718
5719 Demote to sw watchpoint only in update_watchpoint.
5720 * breakpoint.c (update_watchpoint): Change between software and
5721 hardware watchpoint for all kinds of watchpoints, not just
5722 read/write ones. Determine b->exact value here instead of
5723 in watch_command_1. Error out if there are not enough resources
5724 for a read or access hardware watchpoint.
5725 (watch_command_1): Remove logic of checking whether there are
5726 enough resources available, since update_watchpoint will do that
5727 work now. Don't set b->exact here. Catch exceptions thrown by
5728 update_watchpoint and delete the watchpoint.
5729 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5730 Use target_exact_watchpoints instead.
5731 (delete_breakpoint): Notify observers only if deleted watchpoint
5732 has a breakpoint number assigned to it.
5733
5734 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5735
5736 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5737
5738 2011-05-05 Jerome Guitton <guitton@adacore.com>
5739
5740 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5741 New functions.
5742 (i386_stack_tramp_frame_unwind): New static global.
5743 (i386_match_pattern): New function, extracted from i386_match_insn.
5744 (i386_match_insn): Use i386_match_pattern.
5745 (i386_match_insn_block): New function.
5746 (i386_tramp_chain_in_reg_insns)
5747 (i386_tramp_chain_on_stack_insns): New static variables.
5748 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5749 of unwinders.
5750
5751 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5752
5753 * configure.host (xscale*): Don't handle target.
5754 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5755 handle targets.
5756
5757 2011-05-04 Yao Qi <yao@codesourcery.com>
5758
5759 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5760
5761 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5762
5763 Revert:
5764 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5765 | * elfread.c (elf_symtab_read): Stop memory leak.
5766
5767 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5768
5769 * nto-tdep.c (nto_target): Replace deprecated call to
5770 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5771
5772 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5773
5774 Fix false GCC warning.
5775 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5776
5777 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5778
5779 * breakpoint.c (update_watchpoint): Move code to change
5780 the enable state of breakpoint from here ...
5781 (do_enable_breakpoint): ... to here.
5782
5783 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5784
5785 * valprint.c (val_print_array_elements): Fixed poor performance
5786 of printing very large arrays with repeat_count_threshold set
5787 to unlimited. New comment.
5788
5789 2011-04-29 Tom Tromey <tromey@redhat.com>
5790
5791 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5792 (mi_parse): Likewise.
5793 * breakpoint.c (break_range_command): Use sizeof char*, not
5794 char**.
5795 (create_breakpoint): Likewise.
5796 (parse_breakpoint_sals): Likewise.
5797
5798 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5799
5800 * linux-nat.c (linux_child_remove_fork_catchpoint)
5801 (linux_child_remove_vfork_catchpoint)
5802 (linux_child_remove_exec_catchpoint): New functions.
5803 (linux_target_install_ops): Install them.
5804
5805 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5806
5807 PR mi/12531
5808
5809 * varobj.c (install_default_visualizer): Do not install a
5810 visualizer if the varobj is CPLUS_FAKE_CHILD.
5811 (construct_visualizer): Likewise.
5812
5813 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5814
5815 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5816 case insensitive comparison.
5817
5818 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5819
5820 * infrun.c (proceed): Revert previous change.
5821 (resume): Instead, handle the case of signal delivery while stepping
5822 off a breakpoint location here, and only if software single-stepping
5823 is used. Handle nested signals.
5824
5825 2011-04-28 Yao Qi <yao@codesourcery.com>
5826
5827 * arm-tdep.c (copy_unmodified): Rename to ...
5828 (arm_copy_unmodified): .. this. New.
5829 (copy_preload): Move common part to ...
5830 (install_preload): .. this. New.
5831 (arm_copy_preload): New.
5832 (copy_preload_reg): Move common part to ...
5833 (install_preload_reg): ... this. New.
5834 (arm_copy_preload_reg): New.
5835 (copy_b_bl_blx): Move common part to ...
5836 (install_b_bl_blx): .. this. New.
5837 (arm_copy_b_bl_blx): New.
5838 (copy_bx_blx_reg): Move common part to ...
5839 (install_bx_blx_reg): ... this. New.
5840 (arm_copy_bx_blx_reg): New.
5841 (copy_alu_reg): Move common part to ...
5842 (install_alu_reg): ... this. New.
5843 (arm_copy_alu_reg): New.
5844 (copy_alu_shifted_reg): Move common part to ...
5845 (install_alu_shifted_reg): ... this. New.
5846 (copy_ldr_str_ldrb_strb): Move common part to ...
5847 (install_ldr_str_ldrb_strb): ... this. New.
5848 (arm_copy_ldr_str_ldrb_strb): New.
5849 (copy_copro_load_store): Move some common part to ...
5850 (install_copy_copro_load_store): ... this. New.
5851 (arm_copy_copro_load_store): New.
5852 (copy_svc): Delete.
5853 (arm_copy_svc): Renamed from copy_svc.
5854 (copy_undef): Delete.
5855 (arm_copy_undef): Renamed from copy_undef.
5856 (decode_ext_reg_ld_st): Delete.
5857 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5858 (decode_svc_copro): Delete.
5859 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5860 (copy_copro_load_store, copy_alu_imm): update callers.
5861 (copy_extra_ld_st, copy_block_xfer): Likewise.
5862 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5863 (decode_miscellaneous, decode_dp_misc): Likewise.
5864 (decode_ld_st_word_ubyte, decode_media): Likewise.
5865 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5866 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5867 (decode_unconditional, decode_miscellaneous): Likewise.
5868 (decode_media, decode_b_bl_ldmstm): Likewise.
5869 (arm_process_displaced_insn): Likewise..
5870 (decode_misc_memhint_neon): Delete.
5871 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5872 (decode_miscellaneous): Delete.
5873 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5874 (decode_dp_misc): Delete.
5875 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5876 (decode_ld_st_word_ubyte): Delete.
5877 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5878 (decode_media): Delete.
5879 (arm_decode_media): Renamed from decode_media.
5880 (decode_b_bl_ldmstm): Delete.
5881 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5882 (decode_ext_reg_ld_st): Delete.
5883 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5884 (decode_unconditional): Delete.
5885 (arm_decode_unconditional): Renamed from decode_unconditional.
5886
5887 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5888
5889 Case insensitive lookups implementation.
5890 * dwarf2read.c: Include ctype.h.
5891 (struct mapped_index): New field version.
5892 (mapped_index_string_hash): New parameter index_version. New comment
5893 for it. Call tolower appropriately.
5894 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5895 Choose the right index version for mapped_index_string_hash.
5896 (dwarf2_read_index): Support also the index version 5. Initialize the
5897 new struct mapped_index field version.
5898 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5899 (find_slot): Explain the version needs. Pass INT_MAX for the new
5900 parameter.
5901 (write_psymtabs_to_index): Produce version 5.
5902 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5903 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5904 * psymtab.c (lookup_partial_symbol): Find the
5905 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5906 entries.
5907 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5908 NAME lowercasing.
5909 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5910 (completion_list_add_name): New variable ncmp, initialize it, use it.
5911 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5912 * utils.c (strcmp_iw): Support case_sensitive_off.
5913 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5914 New function comment part. New variables saved_string1,
5915 saved_string2 and case_pass. Add a proper second pass.
5916
5917 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5918
5919 Replace re_comp/re_exec by regcomp/regexec.
5920 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5921 (search_symbols_name_matches): Use them, use regexec.
5922 (search_symbols): New variable retval_chain, adjust the use of
5923 old_chain against it. Replace re_comp by regcomp. Use the new struct
5924 search_symbols_data fields, use regexec instead of re_exec.
5925
5926 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5927
5928 Format the code for the next patch.
5929 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5930 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5931 New variables c1 and c2.
5932
5933 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5934
5935 * infrun.c (proceed): Do not single-step into signal delivery
5936 when stepping off a breakpoint location.
5937 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5938 (insert_step_resume_breakpoint_at_caller): Likewise.
5939 (insert_step_resume_breakpoint_at_sal): Likewise.
5940 (insert_longjmp_resume_breakpoint): Likewise.
5941
5942 2011-04-27 Yao Qi <yao@codesourcery.com>
5943
5944 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5945
5946 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5947
5948 * procfs.c (procfs_pass_signals): Fix advance declaration.
5949
5950 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5951
5952 * target.h (struct target_ops): Remove to_notice_signals;
5953 add to_pass_signals.
5954 (target_notice_signals): Remove.
5955 (target_pass_signals): Add prototype.
5956 * target.c (update_current_target): Remove to_notice_signals;
5957 mention to_pass_signals.
5958 (target_pass_signals): New function.
5959 (debug_to_notice_signals): Remove.
5960 (setup_target_debug): Do not install debug_to_notice_signals.
5961
5962 * infrun.c (signal_pass): New global.
5963 (resume): Call target_pass_signals.
5964 (handle_inferior_event): Report all signals while stepping over
5965 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5966 are re-inserted when stepping over a signal handler.
5967 (signal_cache_update): New function.
5968 (signal_stop_update): Call it.
5969 (signal_print_update): Likewise.
5970 (signal_pass_update): Likewise.
5971 (handle_command): Call signal_cache_update and target_pass_signals
5972 instead of target_notice_signals.
5973 (_initialize_infrun): Initialize signal_pass.
5974
5975 * linux-nat.c (pass_mask): New global.
5976 (linux_nat_pass_signals): New function.
5977 (linux_nat_create_inferior): Report all signals initially.
5978 (linux_nat_attach): Likewise.
5979 (linux_nat_resume): Use pass_mask to decide whether to directly
5980 handle an inferior signal.
5981 (linux_nat_wait_1): Likewise.
5982 (linux_nat_add_target): Install to_pass_signals callback.
5983
5984 * nto-procfs.c (notice_signals): Remove.
5985 (procfs_resume): Do not call notice_signals.
5986 (procfs_notice_signals): Remove.
5987 (procfs_pass_signals): New function.
5988 (init_procfs_ops): Install to_pass_signals callback instead of
5989 to_notice_signals callback.
5990 (_initialize_procfs): Report all signals initially.
5991
5992 * procfs.c (procfs_notice_signals): Remove.
5993 (procfs_pass_signals): New function.
5994 (procfs_target): Install to_pass_signals callback instead of
5995 to_notice_signals callback.
5996 (register_gdb_signals): Remove.
5997 (procfs_debug_inferior): Report all signals initially.
5998 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5999
6000 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6001 parameters; use them instead of calling signal_..._state routines.
6002 (remote_notice_signals): Remove.
6003 (remote_start_remote): Report all signals initially.
6004 (remote_resume): Do not call remote_pass_signals.
6005 (_initialize_remote): Install to_pass_signals callback instead of
6006 to_notice_signals callback.
6007
6008 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6009
6010 * breakpoint.c (user_settable_breakpoint): Delete.
6011 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6012 (delete_command): Check user_breakpoint_p instead of looking at
6013 the breakpoint's type.
6014 (disable_command): Ditto.
6015 (enable_command): Ditto.
6016 (delete_trace_command): Use user_breakpoint_p instead of looking
6017 at the breakpoint number directly. When checking if there are
6018 user visible tracepoints, in order to know whether to ask the user
6019 for confirmation, check whether the breakpoint is actually a
6020 tracepoint.
6021
6022 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6023
6024 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6025 compilation.
6026
6027 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6028
6029 MI breakpoint notifications.
6030
6031 * annotate.c (breakpoint_changed): Adjust parameter type.
6032 * breakpoint.c (set_breakpoint_condition): Adjust to change
6033 in breakpoint_modified type.
6034 (breakpoint_set_commands): Likewise.
6035 (do_map_commands_command): Likewise.
6036 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6037 changed after bumping hit count.
6038 (bpstat_stop_status): Likewise.
6039 (print_one_breakpoint_location): Don't wrap in tuple here.
6040 (print_one_breakpoint): Always print individual locations.
6041 For locations, use unnamed tuple.
6042 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6043 has changed.
6044 (create_catchpoint, create_syscall_event_catchpoint): Call
6045 breakpoint_created obsever.
6046 (mention): Don't call breakpoint_created observer.
6047 (create_breakpoint_sal): Call breakpoint_created observer.
6048 (create_breakpoint, watch_command_1): Likewise.
6049 (create_ada_exception_breakpoint): Likewise.
6050 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6051 (locations_are_equal): New.
6052 (update_breakpoint_locations): If locations were changed, notify.
6053 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6054 Call breakpoint_modified observer.
6055
6056 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6057 (mi_cmd_break_insert): Don't set observers for modify and delete.
6058 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6059 (mi_breakpoint_created, mi_breakpoint_deleted)
6060 (mi_breakpoint_modified): New.
6061 (mi_interpreter_init): Hook the above.
6062 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6063 while -break-* commands are executing.
6064 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6065 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6066 (mi_redirect): New.
6067 (mi_ui_out_impl): Hook in mi_redirect.
6068 (mi_field_skip): True to the name, skip the field, don't output
6069 a field with an empty value.
6070
6071 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6072 (gdbpy_breakpoint_deleted): Adjust.
6073 * tui/tui-hooks.c (tui_event_create_breakpoint)
6074 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6075
6076 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6077
6078 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6079 (procfs_remove_hw_watchpoint): Likewise.
6080
6081 2011-04-26 Michael Walle <michael@walle.cc>
6082
6083 * remote.c (remote_start_remote): Ack packet after sending the
6084 interrupt sequence.
6085
6086 2011-04-26 Yao Qi <yao@codesourcery.com>
6087
6088 * linux-nat.c: Move common macros to ...
6089 Include linux-ptrace.h.
6090 * common/linux-ptrace.h: ... here. New.
6091
6092 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6093
6094 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6095 !objfile_has_partial_symbols. New comment.
6096 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6097 SYM_READ_PSYMBOLS is not present. Extend the comment.
6098 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6099
6100 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6101
6102 * defs.h (ENUM_BITFIELD): Remove.
6103
6104 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6105 Eli Zaretskii <eliz@gnu.org>
6106
6107 * NEWS: Document the new gdbserver --once option.
6108
6109 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6110
6111 * MAINTAINERS: Update my email address.
6112
6113 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6114
6115 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6116 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6117 function call if __STDC_ISO_10646__ macro is defined.
6118 (intermediate_encoding): New prototype.
6119 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6120 to generate compile time error for unsupported gdb_wchar_t size.
6121 (ENDIAN_SUFFIX): New macro.
6122 (intermediate_encoding): New function.
6123
6124 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6125
6126 * ada-lang.c (struct add_partial_datum): Update the comment for
6127 expand_partial_symbol_name.
6128 (ada_add_partial_symbol_completions): Rename to ...
6129 (ada_expand_partial_symbol_name): ... here, change return type, update
6130 function comment, call symbol_completion_match instead of
6131 symbol_completion_add.
6132 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6133 and ada_expand_partial_symbol_name.
6134 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6135 FILE_MATCHER.
6136 (dw2_map_symbol_names): Remove.
6137 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6138 * psymtab.c (map_symbol_names_psymtab): Remove.
6139 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6140 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6141 order.
6142 (psym_functions): Unlist map_symbol_names_psymtab.
6143 (map_partial_symbol_names): Rename to ...
6144 (expand_partial_symbol_names): ... here, change the FUN type, call
6145 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6146 * psymtab.h (map_partial_symbol_names): Rename to ...
6147 (expand_partial_symbol_names): ... here, change the FUN type.
6148 * symfile.h (struct quick_symbol_functions): Update the description of
6149 expand_symtabs_matching. Remove map_symbol_names.
6150 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6151 (struct add_name_data): Update the comment for
6152 expand_partial_symbol_name.
6153 (add_partial_symbol_name): Rename to ...
6154 (expand_partial_symbol_name): ... here. Replace
6155 completion_list_add_name call by strncmp.
6156 (default_make_symbol_completion_list_break_on): Use now
6157 expand_partial_symbol_names and expand_partial_symbol_name.
6158 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6159
6160 2011-04-20 Tom Tromey <tromey@redhat.com>
6161
6162 * dwarf2read.c (save_gdb_index_command): Replace format
6163 documentation with a pointer to the manual.
6164
6165 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6166
6167 * regcache.c: Include remote.h.
6168 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6169 (regcache_dump): Handle regcache_dump_remote.
6170 (maintenance_print_remote_registers): New function.
6171 (_initialize_regcache): Install "maint print remote-registers"
6172 command.
6173 * remote.c (map_regcache_remote_table): New function, factored out
6174 from ...
6175 (init_remote_state): ... here.
6176 (remote_register_number_and_offset): New.
6177 * remote.h (remote_register_number_and_offset): Declare.
6178
6179 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6180
6181 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6182 null_ptid, assume and allow a NULL address space, instead of
6183 asking the target for the ptid's address space.
6184 * infrun.c (ptid_is_pid): Remove assertion.
6185
6186 2011-04-19 Tom Tromey <tromey@redhat.com>
6187
6188 * windows-tdep.c (windows_xfer_shared_library):
6189 * windows-nat.c (get_module_name, windows_make_so):
6190 * v850-tdep.c (v850_handle_pushm):
6191 * utils.c (null_cleanup, gdb_realpath):
6192 * ui-out.c (get_next_header):
6193 * tracepoint.c (clear_traceframe_info):
6194 * symtab.c (lookup_symtab):
6195 * serial.h (struct serial_ops):
6196 * mipsread.c (read_alphacoff_dynamic_symtab):
6197 * infcmd.c (print_return_value):
6198 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6199 * f-exp.y (parse_number):
6200 * exceptions.c (catch_exceptions):
6201 * dummy-frame.c (dummy_frame_this_id):
6202 * defs.h (struct cleanup):
6203 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6204 * arm-tdep.c (arm_push_dummy_call):
6205 * amd64-tdep.h (amd64_collect_xsave):
6206 * amd64-tdep.c (amd64_collect_xsave):
6207 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6208 * README (typing): Remove duplicate words.
6209 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6210 * infrun.c (siginfo_value_read): Fix typo.
6211 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6212 * top.c (source_line_number): Add comma.
6213
6214 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6215
6216 * thread.c (any_live_thread_of_process): Prioritize threads
6217 that are not executing.
6218 * gdbthread.h (any_live_thread_of_process): Update comment
6219 as per above change.
6220
6221 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6222
6223 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6224 (scan_xcoff_symtab): Likewise.
6225
6226 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6227
6228 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6229 inside if clause.
6230
6231 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6232 Pedro Alves <pedro@codesourcery.com>
6233
6234 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6235 variables to simplify code and avoid == operator at end of
6236 line as this is against GNU coding standards.
6237
6238 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6239
6240 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6241 lm_name to name_lm to avoid conflict with lm_name function.
6242
6243 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6244
6245 ARI fixes: Use only lowercase function name for static functions.
6246 * nto-tdep.c (LM_ADDR): Rename to...
6247 (lm_addr): New function name.
6248 (nto_relocate_section_addresses): Adapt to change above.
6249 * solib-sunos.c (LM_ADDR): Rename to...
6250 (lm_addr): New function name.
6251 (LM_NEXT): Rename to...
6252 (lm_next): New function name.
6253 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6254 function name changes above.
6255 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6256 (lm_addr_from_link_map): New function name.
6257 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6258 (has_lm_dynamic_from_link_map): New function name.
6259 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6260 (lm_dynamic_from_link_map): New function name.
6261 (LM_ADDR_CHECK): Rename to...
6262 (lm_addr_check): New function name.
6263 (LM_NEXT): Rename to...
6264 (lm_next): New function name.
6265 (LM_PREV): Rename to...
6266 (lm_prev): New function name.
6267 (LM_NAME): Rename to...
6268 (lm_name): New function name.
6269 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6270 (ignore_first_link_map_entry): New function name.
6271 (svr4_keep_data_in_core): Adapt to function name changes above.
6272 (svr4_current_sos): Likewise.
6273 (enable_break): Likewise.
6274 (svr4_relocate_section_addresses): Likewise.
6275
6276 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6277
6278 ARI cleanup.
6279 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6280 sprintf. Simplify code and avoid loosing memory.
6281 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6282 (call0_frame_cache): Remove && operator from end of line.
6283
6284 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6285
6286 Fix libraries displacement if they change whether they were prelinked.
6287 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6288 does not match. Comment why.
6289
6290 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6291
6292 * corelow.c: Include wrapper.h.
6293 (core_open): Call now gdb_target_find_new_threads.
6294 * wrapper.c: Include target.h.
6295 (gdb_target_find_new_threads): New.
6296 * wrapper.h (gdb_target_find_new_threads): New declaration.
6297
6298 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6299
6300 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6301 even if !TARGET_HAS_EXECUTION.
6302
6303 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6304
6305 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6306 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6307 bfd_get_synthetic_symtab.
6308 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6309 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6310 parameter parent, remove the call to add_separate_debug_objfile.
6311 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6312 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6313 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6314 parent, new comment for it, call add_separate_debug_objfile for it.
6315 (symbol_file_add_separate): Pass objfile as the parameter parent,
6316 remove the call to add_separate_debug_objfile.
6317 (symbol_file_add_from_bfd): New parameter parent, pass it.
6318 (symbol_file_add): Pass NULL to the new parameter parent.
6319 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6320
6321 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6322
6323 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6324 BSF_SYNTHETIC.
6325
6326 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 Fix Python access to inlined frames.
6329 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6330 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6331
6332 2011-04-15 Tom Tromey <tromey@redhat.com>
6333
6334 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6335
6336 2011-04-15 Gary Benson <gbenson@redhat.com>
6337
6338 * MAINTAINERS: Add myself to write-after-approval section.
6339
6340 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6341
6342 * remote-sim.c (sim_command_completer): New function.
6343 (_initialize_remote_sim): Set completer to sim_command_completer.
6344
6345 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6346
6347 * breakpoint.c (print_exception_catchpoint): Rename to ...
6348 (print_it_exception_catchpoint): ... this.
6349 (gnu_v3_exception_catchpoint_ops): Update with new name
6350 for print_it_exception_catchpoint.
6351
6352 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6353
6354 * MAINTAINERS: Add myself for write after approval privileges.
6355
6356 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6357
6358 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6359
6360 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6361
6362 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6363
6364 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6365
6366 * breakpoint.c (save_breakpoints): Verify whether
6367 breakpoint_ops.print_recreate is defined before calling it.
6368
6369 2011-04-11 Gary Benson <gbenson@redhat.com>
6370
6371 Fix failure with --enable-maintainer-mode.
6372 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6373
6374 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6375
6376 Code cleanup.
6377 * symtab.c (search_symbols): Reorder the KIND description in the
6378 function comment. Remove the unused 4th element of types, types2,
6379 types3 and types4. New gdb_assert on KIND.
6380 (symtab_symbol_info): Remove the unused 4th element of classnames.
6381 New gdb_assert on KIND.
6382 * symtab.h (enum search_domain): New warning in the enum comment.
6383 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6384 TYPES_DOMAIN.
6385
6386 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6387
6388 Fix crash of gdb save-index on a STABS file.
6389 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6390 PSYMTABS_ADDRMAP.
6391
6392 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6393
6394 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6395 * dwarf2read.c: Include ctype.h.
6396 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6397 functions.
6398 (dwarf2_add_field): Fix new_field->accessibility by calling
6399 dwarf2_default_access_attribute. Restructure setting accessibility
6400 vs. virtuality.
6401 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6402 is_private and is_protected by calling
6403 dwarf2_default_access_attribute.
6404
6405 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6406
6407 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6408 to the initialization.
6409
6410 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6411
6412 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6413 initalization.
6414
6415 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6416
6417 Remove support for old Cygwin 1.5 versions.
6418 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6419 function on old Cygwin version.
6420 * windows-nat.c: Remove cygwin version check and always define
6421 __USEWIDE for Cygwin compilation.
6422
6423 2011-04-07 Yao Qi <yao@codesourcery.com>
6424
6425 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6426 and TO.
6427 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6428 (arm_copy_svc): Remove parameters INSN and TO.
6429 (decode_svc_copro): Update caller.
6430 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6431 from function pointer `copy_svc_os'.
6432
6433 2011-04-07 Yao Qi <yao@codesourcery.com>
6434
6435 * arm-tdep.c (cleanup_branch): Set a correct return address in
6436 LR for ARM and Thumb.
6437
6438 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6439
6440 Code cleanup.
6441 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6442 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6443 in the function comment, a new note on values compatibility.
6444 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6445 * symtab.h (SYMBOL_HASH_NEXT): New.
6446
6447 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6448
6449 * ppc-linux-nat.c (check_condition): Add len output parameter.
6450 Set it based on the memory region referenced in the condition
6451 expression. Update all callers.
6452
6453 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6454
6455 Fix crash regression on systems featuring .gdb_index.
6456 * objfiles.c (free_objfile): Move the
6457 forget_cached_source_info_for_objfile call earlier. Comment it.
6458 Extend the comment for objfile_free_data.
6459
6460 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6461
6462 Fix regression of displaying the debug format.
6463 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6464 subfile.
6465
6466 2011-04-04 Tom Tromey <tromey@redhat.com>
6467
6468 * cli/cli-interp.c (struct captured_execute_command_args):
6469 Remove.
6470 (do_captured_execute_command): Remove.
6471 (safe_execute_command): Use TRY_CATCH.
6472 * cli/cli-script.c (struct wrapped_read_command_file_args):
6473 Remove.
6474 (wrapped_read_command_file): Remove.
6475 (script_from_file): Use TRY_CATCH.
6476 * exceptions.c (catch_exception): Remove.
6477 * exceptions.h (catch_exception): Remove.
6478 (deprecated_throw_reason): Update comment.
6479 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6480 argument to 'context'.
6481 (mi_execute_command): Use TRY_CATCH.
6482 * remote.c (struct start_remote_args): Remove.
6483 (remote_start_remote): Update; change arguments.
6484 (remote_open_1): Use TRY_CATCH.
6485
6486 2011-04-04 Tom Tromey <tromey@redhat.com>
6487
6488 * tracepoint.c (scope_info): Update.
6489 * symtab.c (decode_line_spec): Update.
6490 * python/python.c (gdbpy_decode_line): Update.
6491 * linespec.h (decode_line_1): Update.
6492 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6493 (decode_compound, find_method, symtab_from_filename)
6494 (decode_variable): Likewise.
6495 * cli/cli-cmds.c (edit_command): Update.
6496 (list_command): Update.
6497 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6498 argument.
6499 (create_breakpoint): Update.
6500 (until_break_command): Update.
6501 (addr_string_to_sals): Update.
6502 (decode_line_spec_1): Update.
6503
6504 2011-04-04 Tom Tromey <tromey@redhat.com>
6505
6506 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6507 (do_captured_parse_breakpoint): Remove.
6508 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6509 Use TRY_CATCH directly.
6510
6511 2011-04-04 Tom Tromey <tromey@redhat.com>
6512
6513 * symtab.h (free_symtab): Remove.
6514 (forget_cached_source_info_for_objfile): Declare.
6515 * symmisc.c (free_symtab): Remove.
6516 * source.c (forget_cached_source_info_for_objfile): New function.
6517 (forget_cached_source_info): Use it.
6518 * objfiles.c (free_objfile): Simplify check before calling
6519 clear_current_source_symtab_and_line. Call
6520 forget_cached_source_info_for_objfile.
6521
6522 2011-04-04 Tom Tromey <tromey@redhat.com>
6523
6524 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6525 (new_symtab): Don't set `free_code' on symtab.
6526 (new_linetable): Properly handle size==0.
6527 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6528 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6529 free_func.
6530 * jv-lang.c (struct jv_per_objfile_data): New.
6531 (jv_per_objfile_free): Free the data.
6532 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6533 (get_java_class_symtab): Set the `dict' field on the
6534 jv_per_objfile_data.
6535 (free_class_block): Remove.
6536 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6537 the symtab.
6538
6539 2011-04-04 Tom Tromey <tromey@redhat.com>
6540
6541 * symfile.c (reread_symbols): Update.
6542 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6543 field.
6544 * objfiles.c (allocate_objfile): Update.
6545 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6546 declare.
6547 * cp-namespace.c (lookup_symbol_file): Don't call
6548 lookup_possible_namespace_symbol.
6549 (initialize_namespace_symtab, get_possible_namespace_block)
6550 (free_namespace_block, cp_check_possible_namespace_symbols)
6551 (check_possible_namespace_symbols_loop)
6552 (check_one_possible_namespace_symbol)
6553 (lookup_possible_namespace_symbol): Remove.
6554 (maintenance_cplus_namespace): Replace with notice.
6555 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6556
6557 2011-04-04 Tom Tromey <tromey@redhat.com>
6558
6559 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6560 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6561 * symmisc.c (free_symtab): Don't free debugformat.
6562 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6563 (record_debugformat, record_producer): Document.
6564 * buildsym.c (end_symtab): Don't save debugformat and producer
6565 names on obstack.
6566 (end_symtab): Don't free debugformat and producer fields.
6567 (record_debugformat): Don't call xstrdup.
6568 (record_producer): Likewise.
6569
6570 2011-04-04 Tom Tromey <tromey@redhat.com>
6571
6572 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6573 (source_line_charpos, source_charpos_line): Remove.
6574
6575 2011-04-04 Tom Tromey <tromey@redhat.com>
6576
6577 * symtab.h (domain_enum): Split in two...
6578 (enum search_domain): New.
6579 (search_symbols): Update.
6580 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6581 redundant declarations.
6582 (search_symbols): Change 'kind' argument to search_domain.
6583 Update.
6584 (print_symbol_info): Likewise.
6585 (symtab_symbol_info): Likewise.
6586 * symfile.h (struct quick_symbol_functions)
6587 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6588 <expand_symtabs_matching>: Likewise.
6589 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6590 (expand_symtabs_matching_via_partial): Update.
6591 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6592 (dw2_expand_symtabs_for_function): Update.
6593 * block.h: Moved anonymous enum...
6594 * defs.h (enum block_enum): ... here. Now named.
6595
6596 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6597
6598 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6599 * version.in: Bump version to 7.3.50.20110403-cvs.
6600
6601 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6602
6603 * NEWS: Create a new section for the next release branch.
6604 Rename the section of the current branch, now that it has
6605 been cut.
6606
6607 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6608
6609 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6610 for "fpscr" in target description.
6611
6612 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6613
6614 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6615 initialize it. Delay HASH initialization. Strip the part after open
6616 parenthesis for languages with qualifiers. Call do_cleanups.
6617
6618 2011-04-01 Tom Tromey <tromey@redhat.com>
6619
6620 * utils.c (report_command_stats): Don't print `-' for negative
6621 number.
6622
6623 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6624
6625 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6626 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6627 typedefs.
6628
6629 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6630
6631 * breakpoint.h (bpdisp_text): Add declaration.
6632 * breakpoint.c (bpdisp_text): Make non-static.
6633 * ada-lang.c: #include "mi/mi-common.h".
6634 (print_it_exception): Rewrite to improve GDB/MI output.
6635
6636 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6637
6638 * arm-tdep.h (struct address_space): Add forward declaration.
6639
6640 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6641
6642 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6643 * arm-tdep.c (arm_override_mode): New global.
6644 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6645 execution mode heuristics.
6646 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6647 second single-step breakpoint if needed, using
6648 arm_insert_single_step_breakpoint.
6649 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6650 ARM execution mode, do not call thumb_get_next_pc_raw.
6651 (arm_get_next_pc): Encode execution mode in return value. Call
6652 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6653 (arm_insert_single_step_breakpoint): New function.
6654 (arm_software_single_step): Call it.
6655 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6656 argument to return execution mode of sigreturn target.
6657 (arm_linux_syscall_next_pc): Use it.
6658 (arm_linux_copy_svc): Update call.
6659 (arm_linux_software_single_step): Call
6660 arm_insert_single_step_breakpoint.
6661
6662 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6663
6664 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6665 the comment.
6666
6667 2011-03-31 Tom Tromey <tromey@redhat.com>
6668
6669 * varobj.c (update_dynamic_varobj_children): Properly handle
6670 errors from iterator.
6671
6672 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6673
6674 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6675 struct linkage name twice.
6676
6677 2011-03-31 Tom Tromey <tromey@redhat.com>
6678
6679 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6680 missing ">" to message.
6681
6682 2011-03-31 Tom Tromey <tromey@redhat.com>
6683
6684 * varobj.c (instantiate_pretty_printer): Remove duplicate
6685 'return'.
6686
6687 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6688
6689 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6690 if neither saved value nor register available (e.g. signal frame).
6691
6692 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6693
6694 * macroexp.c (expand): Avoid uninitialized variable
6695 compiler warning.
6696
6697 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6698
6699 * breakpoint.c (break_range_command): Fix typo in comment.
6700
6701 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6702 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6703
6704 Implement support for PowerPC BookE ranged breakpoints.
6705 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6706 * breakpoint.h (struct bp_target_info) <length>: New member
6707 variable.
6708 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6709 instead of struct breakpoint as argument, and also add ASPACE
6710 and BP_ADDR arguments. Update all callers.
6711 (struct breakpoint_ops) <print_one_detail>: New method.
6712 (struct breakpoint) <addr_string_range_end>: New member variable.
6713 * breakpoint.c (breakpoint_location_address_match): Add function
6714 prototype.
6715 (insert_bp_location): Set bl->target_info.length.
6716 (breakpoint_here_p): Call breakpoint_location_address_match.
6717 (moribund_breakpoint_here_p): Likewise.
6718 (regular_breakpoint_inserted_here_p): Likewise.
6719 (breakpoint_thread_match): Likewise.
6720 (bpstat_stop_status): Likewise.
6721 (bpstat_check_location): Move call to
6722 breakpoint_ops.breakpoint_hit to the top.
6723 (print_one_breakpoint_location): Call
6724 breakpoint_ops.print_one_detail if available.
6725 (breakpoint_address_match_range): New function.
6726 (breakpoint_location_address_match): Likewise.
6727 (breakpoint_locations_match): Compare the length field of the
6728 locations too.
6729 (hw_breakpoint_used_count): Count resources used by all locations
6730 in a breakpoint, and use breakpoint_ops.resources_needed if
6731 available.
6732 (breakpoint_hit_ranged_breakpoint): New function.
6733 (resources_needed_ranged_breakpoint): Likewise.
6734 (print_it_ranged_breakpoint): Likewise.
6735 (print_one_ranged_breakpoint): Likewise.
6736 (print_one_detail_ranged_breakpoint): Likewise.
6737 (print_mention_ranged_breakpoint): Likewise.
6738 (print_recreate_ranged_breakpoint): Likewise.
6739 (ranged_breakpoint_ops): New structure.
6740 (find_breakpoint_range_end): New function.
6741 (break_range_command): Likewise.
6742 (delete_breakpoint): Free addr_string_range_end.
6743 (update_breakpoint_locations): Add SALS_END argument. Update
6744 all callers. Calculate breakpoint length if a non-zero SALS_END
6745 is given. Call breakpoint_locations_match instead of
6746 breakpoint_address_match.
6747 (reset_breakpoint): Find SaL of the end of the range if B is a
6748 ranged breakpoint.
6749 (_initialize_breakpoint): Register break-range command.
6750 * defs.h (print_core_address): Add function prototype.
6751 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6752 function.
6753 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6754 (ppc_linux_remove_hw_breakpoint): Likewise.
6755 (_initialize_ppc_linux_nat): Initialize
6756 to_ranged_break_num_registers.
6757 * target.c (update_current_target): Add comment about
6758 to_ranged_break_num_registers.
6759 (target_ranged_break_num_registers): New function.
6760 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6761 New method.
6762 (target_ranged_break_num_registers): Add function prototype.
6763 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6764 * utils.c (print_core_address): ... here.
6765
6766 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6767
6768 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6769 variable compiler warning.
6770
6771 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6772
6773 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6774 code from here ...
6775 (re_set_breakpoint): ... to here ...
6776 (addr_string_to_sals): ... and here.
6777
6778 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6779
6780 * Makefile.in (SFILES): Add missing C sources.
6781 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6782 Add missing headers.
6783
6784 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6785
6786 * .gitignore: New file.
6787
6788 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6789
6790 * NEWS: Mention new cfi device simulation.
6791
6792 2011-03-29 Tom Tromey <tromey@redhat.com>
6793
6794 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6795 otherwise anonymous types.
6796 (dwarf2_name): Likewise.
6797 * valops.c (value_struct_elt_for_reference): Refine artificial
6798 type logic. Call error if j==-1.
6799
6800 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6801
6802 Fix false GCC warning.
6803 * infcall.c (find_function_addr): Initialize funaddr.
6804
6805 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6806
6807 Fix mingw compilation with --enable-targets=all.
6808 * remote-mips.c (gdb_usleep.h): Include header.
6809 (mips_enter_debug): Use gdb_usleep instead of sleep.
6810
6811 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6812
6813 Support resolution of STT_GNU_IFUNC via breakpoints.
6814 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6815 bp_gnu_ifunc_resolver_return.
6816 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6817 the loop. Support bp_gnu_ifunc_resolver and
6818 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6819 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6820 breakpoints.
6821 (bptype_string, print_one_breakpoint_location): Support
6822 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6823 (user_settable_breakpoint): Return true also for
6824 bp_gnu_ifunc_resolver.
6825 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6826 bp_gnu_ifunc_resolver_return.
6827 (set_breakpoint_location_function): New parameter explicit_loc,
6828 describe it. Call find_pc_partial_function_gnu_ifunc with new
6829 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6830 EXPLICIT_LOC is not set.
6831 (set_raw_breakpoint): Set EXPLICIT_LOC for
6832 set_breakpoint_location_function.
6833 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6834 set_breakpoint_location_function.
6835 (mention): Support bp_gnu_ifunc_resolver and
6836 bp_gnu_ifunc_resolver_return.
6837 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6838 set_breakpoint_location_function.
6839 (update_breakpoint_locations): Remove static.
6840 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6841 bp_gnu_ifunc_resolver_return.
6842 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6843 bp_gnu_ifunc_resolver_return.
6844 (update_breakpoint_locations): New declaration.
6845 * elfread.c: Include gdbthread.h and regcache.h.
6846 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6847 functions.
6848 (elf_gnu_ifunc_fns): Install them.
6849 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6850 (stub_gnu_ifunc_resolver_return_stop): New functions.
6851 (stub_gnu_ifunc_fns): Install them.
6852 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6853 and gnu_ifunc_resolver_return_stop.
6854 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6855
6856 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6857
6858 STT_GNU_IFUNC reader implementation.
6859 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6860 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6861 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6862 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6863 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6864 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6865 (elf_gnu_ifunc_resolve_addr): New.
6866 (elf_symfile_read): Call elf_rel_plt_read.
6867 (elf_gnu_ifunc_fns): New.
6868 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6869 Install elf_gnu_ifunc_fns.
6870 * infcall.c (find_function_return_type): New function.
6871 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6872 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6873 (stub_gnu_ifunc_resolve_name): New functions.
6874 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6875 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6876 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6877
6878 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6879
6880 Code cleanup for later STT_GNU_IFUNC support.
6881 * infcall.c (find_function_addr): Remove variable code, use explicit
6882 dereferences for it. Move VALUE_TYPE initialization later.
6883
6884 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6885
6886 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6887 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6888 (clear_pc_function_cache): Clear it.
6889 (find_pc_partial_function): Rename to ...
6890 (find_pc_partial_function_gnu_ifunc): ... this function. New
6891 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6892 (find_pc_partial_function): New wrapper for this function.
6893 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6894
6895 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6896
6897 GDB internal type support for STT_GNU_IFUNC.
6898 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6899 (elf_symtab_read): Set mst_text_gnu_ifunc for
6900 BSF_GNU_INDIRECT_FUNCTION.
6901 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6902 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6903 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6904 nodebug_got_plt_symbol.
6905 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6906 (TYPE_GNU_IFUNC): New.
6907 (struct main_type): New field flag_gnu_ifunc.
6908 (struct builtin_type): New field builtin_func_func.
6909 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6910 nodebug_got_plt_symbol.
6911 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6912 (in_gnu_ifunc_stub): New.
6913 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6914 mst_text_gnu_ifunc.
6915 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6916 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6917 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6918 in_gnu_ifunc_stub.
6919 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6920 * symtab.c (search_symbols): Likewise.
6921 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6922 and mst_slot_got_plt.
6923 (in_gnu_ifunc_stub): New declaration.
6924
6925 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6926
6927 Support a ring of related breakpoints.
6928 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6929 other functions, add gdb_assert.
6930 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6931 watchpoint_del_at_next_stop.
6932 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6933 (bpstat_stop_status): Handle ring in related_breakpoint.
6934 (set_raw_breakpoint_without_location): Initialize ring in
6935 related_breakpoint.
6936 (delete_breakpoint): Handle ring in related_breakpoint, use
6937 watchpoint_del_at_next_stop.
6938 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6939
6940 2011-03-28 Tom Tromey <tromey@redhat.com>
6941
6942 PR symtab/12441:
6943 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6944 with `language_minimal'.
6945
6946 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6947
6948 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6949 instead of checking for STT_ARM_TFUNC symbol type.
6950
6951 2011-03-25 Tom Tromey <tromey@redhat.com>
6952
6953 * linespec.c (symbol_found): Restore line-based result for
6954 non-LOC_LABEL symbols.
6955
6956 2011-03-25 Kai Tietz <ktietz@redhat.com>
6957
6958 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6959 instead of strcmp for comparison.
6960 (tui_source_is_displayed): Likewise.
6961 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6962
6963 2011-03-24 Mark Wielaard <mjw@redhat.com>
6964
6965 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6966 complaint.
6967 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6968 (find_partial_die_in_comp_unit): Likewise in comment.
6969 (read_attribute_value): Likewise.
6970 (lookup_die_type): Likewise.
6971 (dwarf_form_name): Likewise.
6972 (dump_die_shallow): Likewise.
6973 (follow_die_ref_or_sig): Likewise.
6974
6975 2011-03-24 Tom Tromey <tromey@redhat.com>
6976
6977 PR breakpoints/11816:
6978 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6979 (decode_compound): Update.
6980 (find_function_symbol): New function.
6981 (decode_dollar): Update.
6982 (decode_label): Add 'function_symbol' parameter. Handle
6983 function-relative labels.
6984 (decode_variable): Update.
6985 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6986 not its line. Set `special_display' and canonical name for
6987 labels.
6988
6989 2011-03-24 Tom Tromey <tromey@redhat.com>
6990
6991 * linespec.h (struct linespec_result) <special_display>: New
6992 field.
6993 * breakpoint.h (struct breakpoint) <display_canonical>: New
6994 field.
6995 * breakpoint.c (print_breakpoint_location): Respect
6996 display_canonical.
6997 (create_breakpoint_sal): Add 'display_canonical' parameter.
6998 (create_breakpoints_sal): Update.
6999 (create_breakpoint): Update.
7000
7001 2011-03-24 Tom Tromey <tromey@redhat.com>
7002
7003 * symtab.c (decode_line_spec): Update.
7004 * linespec.c (build_canonical_line_spec): Change type of
7005 'canonical'.
7006 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7007 (find_method, decode_all_digits, decode_dollar, decode_label)
7008 (symbol_found): Likewise.
7009 (init_linespec_result): New function.
7010 * breakpoint.c (struct captured_parse_breakpoint_args)
7011 <canonical_p>: New field, replaces addr_string_p.
7012 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7013 'addr_string'.
7014 (parse_breakpoint_sals): Likewise.
7015 (do_captured_parse_breakpoint): Update.
7016 (create_breakpoint): Use struct linespec_result.
7017 (until_break_command): Update.
7018 (breakpoint_re_set_one): Update.
7019 (decode_line_spec_1): Update.
7020 * linespec.h (struct linespec_result): New.
7021 (init_linespec_result): Declare.
7022
7023 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7024
7025 * regcache.c (regcache_raw_read): If the target didn't supply a
7026 given raw register, mark it as unavailable.
7027
7028 2011-03-23 Kai Tietz <ktietz@redhat.com>
7029
7030 * breakpoint.c (clear_command): Use filename_cmp
7031 instead of strcmp for comparison.
7032 * buildsym.c (watch_main_source_file_lossage): Likewise.
7033 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7034 checking just for slash.
7035 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7036 strrchr and filename_cmp instead of strcmp for filenames.
7037 (add_old_header_file): Use filename_cmp
7038 instead of strcmp for comparison.
7039 * exec.c (exec_set_section_address): Likewise.
7040 * macrotab.c (macro_lookup_inclusion): Likewise.
7041 (macro_lookup_inclusion): Likewise.
7042 * elfread.c (_initialize_elfread): Likewise.
7043 (elfstab_offset_sections): Likewise.
7044 (elfstab_offset_sections): Use lbasename instead of
7045 strrchr.
7046 * mdebugread.c (parse_partial_symbols): Likewise.
7047 (arse_partial_symbols): Use filename_(n)cmp instead of
7048 str(n)cmp for comparison.
7049 * minsyms.c (lookup_minimal_symbol): Likewise.
7050 * psymtab.c (read_psymtabs_with_filename): Likewise.
7051 * solib.c (solib_read_symbols): Likewise.
7052 (reload_shared_libraries_1): Likewise.
7053 * symmisc.c (maintenance_print_symbols): Likewise.
7054 * symfile.c (separate_debug_file_exists): Likewise.
7055 (reread_symbols): Likewise.
7056 (find_separate_debug_file_by_debuglink): Likewise.
7057 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7058 * source.c (add_path): Likewise.
7059 * symtab.c (filename_seen): Likewise.
7060 (file_matches): Likewise.
7061 (print_symbol_info): Likewise.
7062 (maybe_add_partial_symtab_filename): Likewise.
7063 (make_source_files_completion_list): Likewise.
7064 * xml-syscall.c (init_sysinfo): Likewise.
7065 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7066 IS_DIR_SEPARATOR for checking for trailing path separator.
7067
7068 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7071 label abort_expression.
7072 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7073 DWARF_VALUE_OPTIMIZED_OUT.
7074
7075 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7076
7077 Code cleanup.
7078 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7079 to linkage_name. Invert its value. Update the function comment.
7080 (c_type_print_varspec_suffix): Invert it at the caller.
7081 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7082
7083 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7084
7085 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7086 errors when reading the `stop_pc'.
7087 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7088 get_frame_pc.
7089
7090 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7091
7092 * NEWS: Document gdb.Write stream keyword.
7093
7094 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7095
7096 Revert:
7097 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7098 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7099 (dwarf2_add_field): Fix new_field->accessibility for
7100 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7101
7102 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7103
7104 PR python/12183
7105
7106 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7107 other error classes. Do not print stack trace.
7108
7109 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7110
7111 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7112 (dwarf2_add_field): Fix new_field->accessibility for
7113 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7114
7115 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7116
7117 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7118 encountering a load via a non-SP register.
7119
7120 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7121
7122 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7123 field in returned unwinder.
7124
7125 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7126
7127 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7128
7129 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7130
7131 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7132 of xmalloc.
7133
7134 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7135
7136 * frame.c (frame_unwind_register): Throw an error if unwinding the
7137 register failed.
7138 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7139 an unwind stop reason.
7140 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7141 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7142 UNWIND_UNAVAILABLE>: New.
7143 * inline-frame.c (inline_frame_unwind): Install
7144 default_frame_unwind_stop_reason.
7145 * frame-unwind.c: Include "exceptions.h".
7146 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7147 (default_frame_unwind_stop_reason): New.
7148 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7149 (default_frame_unwind_stop_reason): Declare.
7150 (struct frame_unwind) <stop_reason>: New function pointer.
7151
7152 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7153 * dwarf2-frame.c: Include exceptions.h.
7154 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7155 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7156 computing the CFA. If such an error was thrown, set
7157 unavailable_retaddr.
7158 (dwarf2_frame_unwind_stop_reason): New.
7159 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7160 unavailable.
7161 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7162 (dwarf2_signal_frame_unwind): Ditto.
7163
7164 * amd64-tdep.c: Include "exceptions.h".
7165 (struct amd64_frame_cache): New field "base_p".
7166 (amd64_init_frame_cache): Clear it.
7167 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7168 Avoid reading registers with functions that throw if the register
7169 is not necessary to compute the frame base.
7170 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7171 swallowing NOT_AVAILABLE_ERROR.
7172 (amd64_frame_unwind_stop_reason): New.
7173 (amd64_frame_this_id): Don't build a frame id if the frame base
7174 was unavailable.
7175 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7176 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7177 base_p if the frame base was computable.
7178 (amd64_sigtramp_frame_unwind_stop_reason): New.
7179 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7180 frame base was unavailable.
7181 (amd64_sigtramp_frame_unwind): Install
7182 amd64_sigtramp_frame_unwind_stop_reason.
7183 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7184 base_p if the frame base was computable.
7185 (amd64_epilogue_frame_unwind_stop_reason): New.
7186 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7187 frame base was unavailable.
7188 (amd64_epilogue_frame_unwind): Install
7189 amd64_epilogue_frame_unwind_stop_reason.
7190 * i386-tdep.c: Include "exceptions.h".
7191 (struct i386_frame_cache): New field "base_p".
7192 (i386_init_frame_cache): Clear it.
7193 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7194 Avoid reading registers with functions that throw if the register
7195 is not necessary to compute the frame base.
7196 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7197 swallowing NOT_AVAILABLE_ERROR.
7198 (i386_frame_unwind_stop_reason): New.
7199 (i386_frame_this_id): Don't build a frame id if the frame base was
7200 unavailable.
7201 (i386_frame_prev_register): Handle unavailable SP.
7202 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7203 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7204 base_p if the frame base was computable.
7205 (i386_epilogue_frame_unwind_stop_reason): New.
7206 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7207 base was unavailable.
7208 (i386_epilogue_frame_unwind): Install
7209 i386_epilogue_frame_unwind_stop_reason.
7210 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7211 base_p if the frame base was computable.
7212 (i386_sigtramp_frame_unwind_stop_reason): New.
7213 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7214 base was unavailable.
7215 (i386_sigtramp_frame_unwind): Install
7216 i386_sigtramp_frame_unwind_stop_reason.
7217 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7218 type's size, not the register's.
7219 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7220
7221 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7222 default_frame_unwind_stop_reason.
7223 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7224 (alpha_heuristic_frame_unwind): Ditto.
7225 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7226 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7227 * avr-tdep.c (avr_frame_unwind): Ditto.
7228 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7229 Ditto.
7230 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7231 * frv-tdep.c (frv_frame_unwind): Ditto.
7232 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7233 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7234 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7235 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7236 (hppa_stub_frame_unwind): Ditto.
7237 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7238 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7239 (ia64_libunwind_frame_unwind)
7240 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7241 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7242 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7243 * m32c-tdep.c (m32c_unwind): Ditto.
7244 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7245 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7246 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7247 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7248 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7249 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7250 * mep-tdep.c (mep_frame_unwind): Ditto.
7251 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7252 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7253 (mips_stub_frame_unwind): Ditto.
7254 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7255 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7256 * mt-tdep.c (mt_frame_unwind): Ditto.
7257 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7258 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7259 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7260 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7261 (s390_sigtramp_frame_unwind): Ditto.
7262 * score-tdep.c (score_prologue_unwind): Ditto.
7263 * sh-tdep.c (sh_frame_unwind): Ditto.
7264 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7265 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7266 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7267 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7268 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7269 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7270 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7271 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7272 (sparc64obsd_trapframe_unwind): Ditto.
7273 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7274 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7275 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7276 * v850-tdep.c (v850_frame_unwind): Ditto.
7277 * vax-tdep.c (vax_frame_unwind): Ditto.
7278 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7279 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7280 * xtensa-tdep.c (xtensa_unwind): Ditto.
7281
7282 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7283
7284 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7285 there's always a frame. Use get_frame_pc_if_available instead of
7286 get_frame_pc, and if there's no PC available, don't look up a
7287 symtab.
7288
7289 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7290
7291 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7292 unavailable PC.
7293
7294 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7295
7296 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7297 gracefully.
7298
7299 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7300
7301 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7302 * frame.c (frame_unwind_caller_pc_if_available): New.
7303 * stack.c (frame_info): Handle unavailable PC.
7304
7305 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7306
7307 * frame.c (frame_unwind_pc): Rename to ...
7308 (frame_unwind_pc_if_available): ... this. New `pc' output
7309 parameter. Change return type to int. Gracefully handle
7310 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7311 happened, or 1 otherwise.
7312 (frame_unwind_pc): Reimplement on top of
7313 frame_unwind_pc_if_available.
7314 (get_frame_func): Rename to ...
7315 (get_frame_func_if_available): New `pc' output parameter. Change
7316 return type to int. Gracefully handle the PC not being available.
7317 (get_frame_func): Reimplement on top of
7318 get_frame_func_if_available.
7319 (select_frame): Handle the PC being unavailable.
7320 (get_prev_frame): Handle the PC being unavailable.
7321 (get_frame_pc_if_available): New.
7322 (get_frame_address_in_block_if_available): New.
7323 (find_frame_sal): Handle the frame PC not being available.
7324 * frame.h (get_frame_pc_if_available): Declare.
7325 (get_frame_address_in_block_if_available): Declare.
7326 (get_frame_func_if_available): Declare.
7327 * stack.c (print_frame_info): Handle the PC being unavailable.
7328 (find_frame_funname): Ditto.
7329 (print_frame): Handle the PC being unavailable.
7330 (get_frame_language): Ditto.
7331 * blockframe.c (get_frame_block): Ditto.
7332 * macroscope.c (default_macro_scope): Ditto.
7333 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7334
7335 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7336
7337 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7338 NOT_AVAILABLE_ERROR when evaluating the location expression.
7339
7340 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7341
7342 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7343 returning that the register piece is unavailable/optimized out.
7344 (write_pieced_value): Handle get_frame_register_bytes returning
7345 that the register piece is unavailable/optimized out when doing a
7346 read-modify write of a bitfield.
7347 * findvar.c (value_from_register): Handle get_frame_register_bytes
7348 returning that the register piece is unavailable/optimized out.
7349 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7350 and `unavailablep'. Throw error on bad debug info. Use
7351 frame_register instead of frame_register_read, to fill in the new
7352 arguments.
7353 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7354 and `unavailablep'.
7355 * valops.c: (value_assign): Adjust, and handle
7356 get_frame_register_bytes failing.
7357 * spu-tdep.c: Include exceptions.h.
7358 (spu_software_single_step): Adjust, and handle
7359 get_frame_register_bytes failing.
7360 (spu_get_longjmp_target): Ditto.
7361 * gdbarch.sh (register_to_value): Change to return int. New
7362 parameters `optimizedp' and `unavailablep'.
7363 * gdbarch.h, gdbarch.c: Regenerate.
7364 * i386-tdep.c (i386_register_to_value): Adjust to new
7365 gdbarch_register_to_value interface.
7366 * i387-tdep.c (i387_register_to_value): Ditto.
7367 * i387-tdep.h (i387_register_to_value): Ditto.
7368 * alpha-tdep.c (alpha_register_to_value): Ditto.
7369 * ia64-tdep.c (ia64_register_to_value): Ditto.
7370 * m68k-tdep.c (m68k_register_to_value): Ditto.
7371 * mips-tdep.c (mips_register_to_value): Ditto.
7372 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7373
7374 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7375
7376 * findvar.c (value_of_register): Mark the value as unavailable, if
7377 the register is unavailable.
7378 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7379 (frame_register): New `unavailablep' parameter.
7380 (frame_register_read): Update comment.
7381 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7382 Set it if the register is unavailable. If the register is
7383 unavailable, clear the output buffer.
7384 (frame_register): New `unavailablep' parameter. Pass it down.
7385 (frame_unwind_register): Adjust.
7386 (put_frame_register): Adjust.
7387 (frame_register_read): Adjust. Also return false if the register
7388 is not available.
7389 (frame_register_unwind_location): Adjust.
7390 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7391 is unavailable, mark the value accordingly.
7392 * stack.c (frame_info): Handle unavailable registers.
7393
7394 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7395
7396 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7397 simplify, using regcache_cooked_read.
7398
7399 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7400
7401 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7402 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7403 (regcache_raw_read_unsigned, regcache_raw_read_part)
7404 (regcache_cooked_read, regcache_cooked_read_signed)
7405 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7406 (regcache_cooked_read_ftype): Change return to enum
7407 register_status.
7408 * regcache.c: Include exceptions.h
7409 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7410 (do_cooked_read): Change return to enum register_status. Always
7411 forward to regcache_cooked_read.
7412 (regcache_raw_read): Change return to enum register_status. If
7413 the register is not REG_VALID, memset the buffer. Return the
7414 register's status.
7415 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7416 return the register's status.
7417 (regcache_raw_read_unsigned): Ditto.
7418 (regcache_cooked_read): Change return to enum register_status.
7419 Assert that with read-only regcaches, the register's status must
7420 be known. If the regcache is read-only, and the register is not
7421 REG_VALID, memset the buffer. Return the register's status.
7422 (regcache_cooked_read_signed): Change return to enum
7423 register_status. Handle non-REG_VALID registers and return the
7424 register's status.
7425 (regcache_cooked_read_unsigned): Change return to enum
7426 register_status. Handle non-REG_VALID registers and return the
7427 register's status.
7428 (regcache_xfer_part, regcache_raw_read_part)
7429 (regcache_cooked_read_part): Change return to enum
7430 register_status. Return the register's status.
7431 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7432 unavailable.
7433 (regcache_dump): Handle unavailable cooked registers.
7434 * frame.c (do_frame_register_read): Adjust interface to match
7435 regcache_cooked_read_ftype.
7436 * gdbarch.sh (pseudo_register_read): Change return to enum
7437 register_status.
7438 * gdbarch.h, gdbarch.c: Regenerate.
7439
7440 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7441 register_status.
7442 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7443 register_status. If reading a raw register indicates the raw
7444 register is not valid, return the raw register's status,
7445 otherwise, return REG_VALID.
7446 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7447 register_status. Handle non-REG_VALID raw registers and return
7448 the register's status.
7449 * arm-tdep.c (arm_neon_quad_read)
7450 (arm_pseudo_read): Change return to enum register_status. Handle
7451 non-REG_VALID raw registers and return the register's status.
7452 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7453 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7454 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7455 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7456 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7457 register_status.
7458 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7459 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7460 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7461 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7462 (m32c_pseudo_register_read): Change return to enum
7463 register_status. Adjust.
7464 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7465 enum register_status. Return the register's status.
7466 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7467 register_status. Return the register's status.
7468 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7469 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7470 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7471 * rs6000-tdep.c (move_ev_register_func): New typedef.
7472 (e500_move_ev_register): Use it. Change return to enum
7473 register_status. Return the register's status.
7474 (do_regcache_raw_read): New function.
7475 (do_regcache_raw_write): New function.
7476 (e500_pseudo_register_read): Change return to enum
7477 register_status. Return the register's status. Use
7478 do_regcache_raw_read.
7479 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7480 (dfp_pseudo_register_read): Change return to enum register_status.
7481 Return the register's status.
7482 (vsx_pseudo_register_read): Ditto.
7483 (efpr_pseudo_register_read): Ditto.
7484 (rs6000_pseudo_register_read): Ditto.
7485 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7486 register_status. Return the register's status.
7487 * sh64-tdep.c (pseudo_register_read_portions): New function.
7488 (sh64_pseudo_register_read): Change return to enum
7489 register_status. Use pseudo_register_read_portions. Return the
7490 register's status.
7491 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7492 register_status. Return the register's status.
7493 * sh-tdep.c (pseudo_register_read_portions): New function.
7494 (sh_pseudo_register_read): Change return to enum register_status.
7495 Use pseudo_register_read_portions. Return the register's status.
7496 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7497 enum register_status. Return the register's status.
7498 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7499 * spu-tdep.c (spu_pseudo_register_read_spu)
7500 (spu_pseudo_register_read): Ditto.
7501 * xtensa-tdep.c (xtensa_register_read_masked)
7502 (xtensa_pseudo_register_read): Ditto.
7503 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7504
7505 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7506
7507 * python/py-value.c (valpy_getitem): Fix formatting of error function
7508 call.
7509
7510 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7511
7512 ARI fixes: Add missing internationalization markups throughout
7513 C source files.
7514 * darwin-nat-info.c: Ditto.
7515 * record.c: Ditto.
7516 * remote.c: Ditto.
7517 * mi/mi-main.c: Ditto.
7518
7519 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7520
7521 ARI fixes: Add missing internationalization markups throughout
7522 yacc files.
7523 * c-exp.y: Ditto.
7524 * cp-name-parser.y: Ditto.
7525 * f-exp.y: Ditto.
7526 * m2-exp.y: Ditto.
7527 * objc-exp.y: Ditto.
7528 * p-exp.y: Ditto.
7529
7530 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7531
7532 ARI fixes: Messages should have no trailing new lines.
7533 * darwin-nat.c (mach_check_error): Remove trailing new line from
7534 warning function call message.
7535 * record.c (bfdcore_read): Idem for error call.
7536
7537 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7538
7539 * common/signals.c (target_signal_from_host): Add _ markup to error
7540 function call message.
7541 (target_signal_to_host): Add _ markup and remove trailing new line
7542 from warning call message.
7543 (target_signal_from_command): Add _ markup to error function call
7544 message.
7545
7546 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7547
7548 PR python/12149
7549
7550 * python/python.c (gdbpy_write): Accept a stream argument and
7551 operate to the appropriate stream.
7552 (gdbpy_flush): Likewise.
7553 (_initialize_python): Add stream constants.
7554 (finish_python_initialization): Add GdbOutputErrorFile class.
7555
7556 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7557
7558 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7559
7560 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7561
7562 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7563 to store_signed_integer. Add debug message when relocating CALL
7564 instructions. Fix formatting of debug message.
7565 * i386-tdep.c (i386_relocate_instruction): Ditto.
7566
7567 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7568
7569 * target.h (struct target_ops): Remove to_lookup_symbol field.
7570 (target_lookup_symbol): Delete macro.
7571 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7572 (update_current_target, setup_target_debug): Remove handling
7573 of to_lookup_symbol target_ops field.
7574 * ada-tasks.c (get_known_tasks_addr): Remove use of
7575 target_lookup_symbol.
7576 * coffread.c (coff_symtab_read): Likewise.
7577 * dbxread.c (read_dbx_symtab): Ditto.
7578
7579 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7580
7581 PR gdb/12116:
7582 * configure.ac: Add getthrds declaration check.
7583 * configure, config.in: Regenerate.
7584 * aix-thread.c (getthrds): Declare only if not already declared
7585 in procinfo.h. More declaration out of get_signaled_thread to
7586 global scope.
7587
7588 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7589
7590 * python/py-symtab.c: Populate symtab_object_methods,
7591 sal_object_methods.
7592 (stpy_is_valid): New function.
7593 (salpy_is_valid): Ditto.
7594 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7595 (sympy_is_valid): New function.
7596 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7597 (objfpy_is_valid): New function.
7598 * python/py-inferior.c: Populate inferior_object_methods.
7599 (infpy_is_valid): New function.
7600 * python/py-infthread.c: Populate thread_object_methods.
7601 (thpy_is_valid): New function.
7602 * python/py-block.c: Declare block_object_methods. Populate. Declare
7603 block_iterator_object_methods. Populate.
7604 (blpy_is_valid): New function.
7605 (blpy_iter_is_valid): Ditto.
7606
7607 2011-03-16 Keith Seitz <keiths@redhat.com>
7608
7609 * linespec.c (find_methods): Canonicalize NAME before looking
7610 up the symbol.
7611 (name_end): New function.
7612 (keep_name_info): New function.
7613 (decode_line_1): Use keep_name_info.
7614 (decode_compound): Likewise.
7615 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7616 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7617
7618 PR c++/12273
7619 * linespec.c (locate_first_half): Keep overload information, too.
7620 (decode_compound): Use a string to represent break characters
7621 to escape the loop.
7622 If P points to a break character, do not increment it.
7623 For C++ and Java, keep overload information and relevant keywords.
7624 If we cannot find a symbol, search the minimal symbols.
7625
7626 PR c++/11734
7627 * linespec.c (decode_compound): Rename SAVED_ARG to
7628 THE_REAL_SAVED_ARG.
7629 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7630 single-quotes.
7631 Pass a valid block to lookup_symbol.
7632 (lookup_prefix_sym): Likewise.
7633 (find_method): Construct search name based on SYM_CLASS instead
7634 of SAVED_ARG.
7635 * psymtab.c (lookup_partial_symbol): Add language parameter.
7636 (lookup_symbol_aux_psymtabs): Likewise.
7637 Don't assume that the psymtab we found was the right one. Search
7638 for the desired symbol in the symtab to be certain.
7639 (psymtab_search_name): New function.
7640 (lookup_partial_symbol): Use psymtab_search_name.
7641 Add language parameter.
7642 (read_symtabs_for_function): Add language parameter and pass to
7643 lookup_partial_symbol.
7644 (find_symbol_file_from_partial): Likewise.
7645
7646 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7647
7648 PR gdb/12528
7649 * dwarf2read.c (noop_record_line): New function.
7650 (dwarf_decode_lines): Ignore line tables for GCd functions.
7651
7652 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7653
7654 Fix ARI warnings about new lines at the end of messages, which
7655 are unneeded as there is a new line added at the end of the message
7656 automatically.
7657 * darwin-nat.c (darwin_stop_inferior): Ditto.
7658 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7659 * dfp.c (decimal_to_number): Ditto.
7660 * exec.c (print_section_info): Ditto.
7661 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7662 * osdata.c (get_osdata): Ditto.
7663 * record.c (bfdcore_write): Ditto.
7664 * remote-mips.c (mips_readchar): Ditto.
7665 * remote.c (read_ptid): Ditto.
7666 * ser-mingw.c (ser_windows_raw): Ditto.
7667 * tracepoint.c (add_local_symbols): Ditto.
7668 * windows-nat.c (fake_create_process): Ditto.
7669
7670 2011-03-16 Tom Tromey <tromey@redhat.com>
7671
7672 * tracepoint.c (stop_tracing): Don't declare.
7673 * event-top.c (after_char_processing_hook): Add `(void)'.
7674
7675 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7676
7677 * NEWS: Add Parameter sub-classing description.
7678
7679 2011-03-16 Kai Tietz <ktietz@redhat.com>
7680
7681 * MAINTAINERS: Update my e-mail address.
7682
7683 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7684
7685 * MAINTAINERS: Add myself for write after approval privileges.
7686
7687 2011-03-15 Michael Snyder <msnyder@vmware.com>
7688
7689 * frame.c (find_frame_sal): Assert sym is not null.
7690
7691 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7692
7693 * objc-lang.c (selectors_info): Check strchr for null result.
7694
7695 * stabsread.c (define_symbol): Guard against bad stabstring input.
7696
7697 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7698
7699 Remove trailing spaces and tabulations from pascal language
7700 support sources.
7701 p-exp.y: Ditto.
7702 p-lang.c: Ditto.
7703 p-lang.h: Ditto.
7704 p-valprint.c: Ditto.
7705
7706 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7707
7708 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7709 than LOW. Comment it.
7710 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7711 HIGHPC not strictly higher than LOWPC.
7712
7713 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7714
7715 Fix formatting of function declarations returning a pointer in
7716 previous commit.
7717 * varobj.c (varobj_add_child): Ditto.
7718 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7719 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7720
7721 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7722
7723 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7724 for the "generic" vector ABI used with GCC 4.3 and later.
7725 (ppc64_sysv_abi_return_value): Likewise.
7726
7727 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7728
7729 * infcall.c (call_function_by_hand): Function return value is
7730 always a non_lval, even when using struct_return.
7731
7732 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7733
7734 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7735 (map_display_numbers): New.
7736 (do_delete_display): New.
7737 (undisplay_command): Use map_display_numbers.
7738 (do_enable_disable_display): New.
7739 (enable_disable_display_command): New function.
7740 (enable_display): Delete.
7741 (enable_display_command): New.
7742 (disable_display_command): Reimplement.
7743 (_initialize_printcmd): Adjust "enable display" command to use
7744 `enable_display_command' as callback.
7745
7746 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7747
7748 * NEWS: Add Python breakpoint 'stop' operation.
7749
7750 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7751
7752 * NEWS: Delete duplicate entry. Fix typo.
7753
7754 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7755
7756 Fix ARI warning about function names in first column.
7757 Put prototype declaration on same line as return type.
7758 * objc-exp.y: Ditto.
7759 * p-exp.y: Ditto.
7760 * python/py-stopevent.h: Ditto.
7761 For long function names, split parameters to
7762 allow function name on same line as return type.
7763 * solib-pa64.c: Ditto.
7764 * varobj.c: Ditto.
7765 * varobj.h: Ditto.
7766 For long function declaration, use single line.
7767 * hppa-tdep.h: Ditto.
7768 * inferior.h: Ditto.
7769
7770 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7771
7772 * python/python.h: Declare gdbpy_should_stop and
7773 gdbpy_breakpoint_has_py_cond.
7774 * python/python.c: Add python.h to includes. Remove python.h from
7775 HAVE_PYTHON definition
7776 (gdbpy_should_stop): New dummy function.
7777 (gdbpy_breakpoint_has_py_cond): New dummy function.
7778 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7779 sub-classing capabilities.
7780 (gdbpy_should_stop): New function.
7781 (gdbpy_breakpoint_has_py_cond): New function.
7782 (local_setattro): New function.
7783 * breakpoint.c (condition_command): Add check for Python 'stop'
7784 operation.
7785 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7786 operation function as part of stop/continue tests.
7787
7788 2011-03-14 Tom Tromey <tromey@redhat.com>
7789
7790 PR gdb/12576:
7791 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7792 (needs_frame_dwarf_call): Likewise.
7793
7794 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7795
7796 Fix ARI warning about functions without parameters that do not
7797 use (void).
7798 * breakpoint.c (all_tracepoints): Replace () by (void).
7799 * f-exp.y (match_string_literal): Ditto.
7800 (yylex): Ditto.
7801 * m2-exp.y (yylex): Ditto.
7802 * mep-tdep.c (current_me_module): Ditto.
7803 (current_options): Ditto.
7804 (current_cop_data_bus_width): Ditto.
7805 (current_cr_names): Ditto.
7806 (current_cr_is_float): Ditto.
7807 (current_ccr_names): Ditto.
7808 * objc-exp.y (yylex): Ditto.
7809 * p-exp.y (yylex): Ditto.
7810 * remote.c (send_interrupt_sequence): Ditto.
7811 * tracepoint.c (current_trace_status): Ditto.
7812 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7813 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7814
7815 2011-03-11 Michael Snyder <msnyder@vmware.com>
7816
7817 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7818 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7819 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7820 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7821 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7822
7823 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7824 (delete_async_event_handler): Ditto.
7825
7826 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7827
7828 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7829
7830 * top.c (set_verbose): Assert showcmd was found.
7831
7832 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7833
7834 * xtensa-tdep.c (warning_once): Correct style issues.
7835
7836 2011-03-11 Yao Qi <yao@codesourcery.com>
7837
7838 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7839
7840 2011-03-11 Andreas Schwab <schwab@redhat.com>
7841
7842 * common/aclocal.m4: Remove.
7843
7844 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7845
7846 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7847 (xtensa_write_register, xtensa_read_register): Likewise.
7848 (xtensa_hextochar): Removed.
7849 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7850
7851 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7852
7853 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7854 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7855 (xtensa_alloc_frame_cache): Add initialization for new fields.
7856 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7857 (warning_once): New function.
7858 (xtensa_insn_kind): New item c0opc_and.
7859 (call0_classify_opcode): Add the case for AND instruction.
7860 (call0_track_op): Change arguments. New local variable litbase.
7861 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7862 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7863 in the prologue.
7864 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7865 (call0_analyze_prologue): Update the comments. Change arguments.
7866 Add the variety of updates to handle extended prologues, which now can
7867 conduct dynamic stack adjustments.
7868 (call0_frame_cache): Likewise.
7869 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7870 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7871
7872 2011-03-10 Michael Snyder <msnyder@vmware.com>
7873
7874 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7875 (cmd_qtframe): Ditto.
7876 (cmd_qtbuffer): Ditto.
7877 (cmd_bigqtbuffer): Ditto.
7878
7879 2011-03-10 Tom Tromey <tromey@redhat.com>
7880
7881 * tracepoint.c (trace_actions_command): Update.
7882 * thread.c (thread_apply_command): Update.
7883 * reverse.c (delete_bookmark_command): Update.
7884 (bookmarks_info): Update.
7885 * printcmd.c (undisplay_command): Update.
7886 * memattr.c (mem_enable_command): Update.
7887 (mem_disable_command): Update.
7888 (mem_delete_command): Update.
7889 * inferior.c (detach_inferior_command): Update.
7890 (kill_inferior_command): Update.
7891 (remove_inferior_command): Update.
7892 * cli/cli-utils.h (struct get_number_or_range_state): New.
7893 (init_number_or_range): Declare.
7894 (get_number_or_range): Update.
7895 * cli/cli-utils.c (init_number_or_range): New function.
7896 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7897 static variables.
7898 (number_is_in_list): Update.
7899 * breakpoint.h (get_tracepoint_by_number): Update.
7900 * breakpoint.c (map_breakpoint_numbers): Update for change to
7901 get_number_or_range.
7902 (find_location_by_number): Use get_number, not
7903 get_number_or_range.
7904 (trace_pass_set_count): New function.
7905 (trace_pass_command): Update for change to get_number_or_range.
7906 Rework loop logic.
7907 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7908 'state' parameter.
7909
7910 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7911
7912 * python/py-param.c (add_setshow_generic): Add set/show callback
7913 parameters. Register Python object context.
7914 (get_show_value): New function.
7915 (get_set_value): New function.
7916 (call_doc_function): New function.
7917 (get_doc_string): Move behind get_show_value/get_set_value.
7918
7919 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7920
7921 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7922
7923 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7924
7925 * xtensa-tdep.c (xtensa_read_register): Add comment.
7926 (xtensa_write_register): Likewise.
7927 (xtensa_hextochar): Add comment and update to match coding conventions.
7928 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7929 (execute_l32e, execute_s32e, execute_code): Update comments.
7930 (xtensa_exception_handler_t): Update to match coding conventions.
7931 (xtensa_insn_kind): Likewise.
7932
7933 2011-03-09 Michael Snyder <msnyder@vmware.com>
7934
7935 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7936
7937 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7938
7939 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7940
7941 2011-03-09 Tom Tromey <tromey@redhat.com>
7942
7943 * thread.c (restore_selected_frame): Handle frame_level == -1.
7944 (make_cleanup_restore_current_thread): Use
7945 get_selected_frame_if_set.
7946 * frame.h (get_selected_frame_if_set): Declare.
7947 * frame.c (get_selected_frame_if_set): New function.
7948
7949 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7950
7951 * cli/cli-cmds.c (shell_escape): Use lbasename.
7952 * coffread.c (coff_start_symtab): Constify parameter.
7953 (complete_symtab): Constify `name' parameter.
7954 (coff_symtab_read): Constify `filestring' local.
7955 (coff_getfilename): Constify return and `result' local.
7956 Use lbasename.
7957 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7958 * linux-fork.c (info_checkpoints_command): Use lbasename.
7959 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7960 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7961 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7962 * procfs.c (procfs_make_note_section): Use lbasename.
7963 * tui/tui-io.c (printable_part): Constity return and parameter.
7964 Use lbasename.
7965 (print_filename): Constify parameters, and local `s'.
7966 (tui_rl_display_match_list): Constify local `temp'.
7967
7968 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7969
7970 Revert:
7971 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7972 Fix DWARF-3+ DW_AT_accessibility default assumption.
7973 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7974 cu->header.version >= 3.
7975
7976 2011-03-09 Yao Qi <yao@codesourcery.com>
7977
7978 * common/Makefile.in: Remove.
7979 * common/configure: Remove.
7980 * common/configure.ac: Remove.
7981
7982 2011-03-09 Yao Qi <yao@codesourcery.com>
7983
7984 Revert:
7985 2011-02-11 Yao Qi <yao@codesourcery.com>
7986
7987 * common/Makefile.in: Add copyright header.
7988
7989 2011-02-11 Yao Qi <yao@codesourcery.com>
7990
7991 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7992 libcommon.a.
7993 * configure.ac: Add common to sub dir.
7994 * configure: Regenerate.
7995
7996 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7997
7998 * xtensa-tdep.c (call0_ret): New function.
7999 (xtensa_skip_prologue): Speed up analysis.
8000
8001 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8002
8003 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8004 while executing MI command -data-list-changed-registers.
8005
8006 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8007
8008 * xtensa-tdep.c (xtensa_read_register): New function.
8009 (xtensa_write_register): New function.
8010 (xtensa_find_register_by_name): New function.
8011 (xtensa_windowed_frame_cache): Update comments in type description.
8012 (xtensa_frame_cache): Likewise.
8013 (xtensa_window_interrupt_insn): New function.
8014 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8015 (xtensa_insn_kind): Add new instructions.
8016 (rwx_special_register): New function.
8017 (call0_classify_opcode): Add new instructions to the analysis.
8018 (a0_saved, a7_saved, a11_saved): New variables.
8019 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8020 (execute_l32e): New function.
8021 (execute_s32e): New function.
8022 (xtensa_exception_handler_t): New type.
8023 (execute_code): New function.
8024 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8025 analysis for Xtensa Window Exception handlers.
8026
8027 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8028
8029 * xtensa-tdep.c (TX_PS): New.
8030 (windowing_enabled): Update to count for Call0 ABI.
8031 (xtensa_hextochar): New.
8032 (xtensa_init_reggroups): Make algorithm generic.
8033 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8034
8035 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8036
8037 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8038
8039 2011-03-08 Michael Snyder <msnyder@vmware.com>
8040
8041 * i386-tdep.c (i386_follow_jump): Check return value of
8042 target_read_memory.
8043 (i386_analyze_struct_return): Ditto.
8044 (i386_skip_probe): Ditto.
8045 (i386_match_insn): Ditto.
8046 (i386_skip_noop): Ditto.
8047 (i386_analyze_frame_setup): Ditto.
8048 (i386_analyze_register_saves): Ditto.
8049 (i386_skip_prologue): Ditto.
8050 (i386_skip_main_prologue): Ditto.
8051
8052 * target.c (read_whatever_is_readable): Fix memory leak.
8053
8054 * i386-tdep.c (i386_process_record): Document fall through.
8055
8056 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8057
8058 Fix DWARF-3+ DW_AT_accessibility default assumption.
8059 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8060 cu->header.version >= 3.
8061
8062 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8063
8064 * remote.c (remote_check_symbols): Skip if the target has no
8065 execution.
8066
8067 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8068
8069 * target.c (read_whatever_is_readable): Reformat comment,
8070 with a minor typo fix. Minor reformatting of the code.
8071
8072 2011-03-08 Yao Qi <yao@codesourcery.com>
8073
8074 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8075 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8076 Use cached result instead of calling displaced_in_arm_mode again.
8077 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8078 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8079 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8080 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8081 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8082 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8083 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8084 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8085 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8086 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8087 (arm_catch_kernel_helper_return): Likewise.
8088 * gdb/arm-tdep.h : Update function declarations.
8089
8090 2011-03-07 Michael Snyder <msnyder@vmware.com>
8091
8092 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8093
8094 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8095
8096 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8097
8098 * elfread.c (elf_symtab_read): Stop memory leak.
8099
8100 * main.c (captured_main): Fix memory leak.
8101
8102 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8103
8104 * ada-lang.c (compare_names): Call is_name_suffix with string1
8105 instead of string2.
8106
8107 2011-03-07 Tom Tromey <tromey@redhat.com>
8108
8109 * xcoffread.c (xcoff_sym_fns): Update.
8110 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8111 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8112 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8113 (symbol_file_add_with_addrs_or_offsets): Likewise.
8114 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8115 * somread.c (som_sym_fns): Update.
8116 * psymtab.h (require_partial_symbols): Declare.
8117 * psymtab.c (require_partial_symbols): New function.
8118 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8119 (ALL_OBJFILE_PSYMTABS): Undef.
8120 (ALL_PSYMTABS): Move from psympriv.h.
8121 (lookup_partial_symtab, find_pc_sect_psymtab)
8122 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8123 (find_last_source_symtab_from_partial)
8124 (forget_cached_source_info_partial)
8125 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8126 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8127 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8128 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8129 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8130 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8131 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8132 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8133 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8134 psymtabs.
8135 * mipsread.c (ecoff_sym_fns): Update.
8136 * machoread.c (macho_sym_fns): Update.
8137 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8138 (read_psyms): New function.
8139 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8140 (elf_sym_fns_lazy_psyms): New global.
8141 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8142 dwarf2_build_psymtabs.
8143 * dbxread.c (aout_sym_fns): Update.
8144 * coffread.c (coff_sym_fns): Update.
8145
8146 2011-03-07 Tom Tromey <tromey@redhat.com>
8147
8148 * infrun.c (print_exited_reason): Include inferior id and pid in
8149 message.
8150
8151 2011-03-07 Tom Tromey <tromey@redhat.com>
8152
8153 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8154 parameter.
8155 (target_has_execution_1): Update.
8156 (target_has_execution_current): Declare.
8157 (target_has_execution): Call target_has_execution_current.
8158 (default_child_has_execution): Update.
8159 * target.c (default_child_has_execution): Add 'the_ptid'
8160 parameter.
8161 (target_has_execution_1): Likewise.
8162 (target_has_execution_current): New function.
8163 (add_target): Update.
8164 (init_dummy_target): Update.
8165 * remote-m32r-sdi.c (m32r_has_execution): New function.
8166 (init_m32r_ops): Use it.
8167 * record.c (record_core_has_execution): Now static. Add
8168 'the_ptid' parameter.
8169 * inferior.c (have_live_inferiors): Don't save current thread.
8170 Use target_has_execution_1.
8171
8172 2011-03-07 Yao Qi <yao@codesourcery.com>
8173
8174 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8175
8176 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8177
8178 * elfread.c (elf_symtab_read): Minor reformatting.
8179
8180 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8181
8182 * objc-lang.c (selectors_info): Minor reformatting.
8183
8184 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8185
8186 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8187
8188 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8189 Michael Snyder <msnyder@vmware.com>
8190
8191 * ada-valprint.c (ada_val_print_array): Move the declaration of
8192 "byte_order" and "elttype" inside the block where these variables
8193 are actually used. Remove some special handling for the case
8194 where "elttype" and "eltlen" are null. Replace by a comment
8195 and a couple of assertion checks.
8196
8197 2011-03-05 Michael Snyder <msnyder@vmware.com>
8198
8199 * source.c (add_path): Replace semicolon at end of block.
8200 * dwarf2expr.c (execute_stack_op): Ditto.
8201
8202 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8203
8204 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8205 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8206 (bfin-*-*): Likewise.
8207
8208 2011-03-05 Michael Snyder <msnyder@vmware.com>
8209
8210 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8211 * mdebugread.c (parse_symbol): Ditto.
8212 * parse.c (parse_exp_in_context): Ditto.
8213 * source.c (add_path): Ditto.
8214 * utils.c (gnu_debuglink_crc32): Ditto.
8215 * varobj.c (variable_language): Ditto.
8216
8217 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8218
8219 2011-03-04 Michael Snyder <msnyder@vmware.com>
8220
8221 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8222
8223 * symfile.c (simple_overlay_update): Check for null return value
8224 from lookup_minimal_symbol.
8225
8226 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8227
8228 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8229
8230 * eval.c (parse_and_eval_address_1): Remove function.
8231 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8232 instead of parse_and_eval_address_1.
8233 * value.h (parse_and_eval_address_1): Remove prototype.
8234
8235 2011-03-04 Michael Snyder <msnyder@vmware.com>
8236
8237 * remote.c (putpkt_binary): Document that case stmt falls through.
8238
8239 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8240
8241 * breakpointc (print_it_typical): Move NULL check from here...
8242 (print_bp_stop_message): ... to here.
8243
8244 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8245
8246 * breakpoint.c (enable_command): Use break instead of continue,
8247 and fill in a missing break.
8248 (disable_command): Ditto.
8249
8250 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8251
8252 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8253 (terminal_save_ours): Remove misleading comment.
8254 (inflow_inferior_data_cleanup): Free ttystate.
8255 (inflow_inferior_exit): Likewise.
8256 (copy_terminal_info): Copy ttystate.
8257
8258 * serial.c (serial_copy_tty_state): New function.
8259 * serial.h (serial_copy_tty_state): Add prototype.
8260 (struct serial_ops): Add copy_tty_state callback.
8261 * ser-base.c (ser_base_copy_tty_state): New function.
8262 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8263 * ser-go32.c (dos_copy_tty_state): New function.
8264 (dos_ops): Install copy_tty_state callback.
8265 * ser-mingw.c (_initialize_ser_windows): Likewise.
8266 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8267 * ser-unix.c (hardwire_copy_tty_state): New function.
8268 (_initialize_ser_hardwire): Install it.
8269
8270 2011-03-04 Michael Snyder <msnyder@vmware.com>
8271
8272 * breakpoint.c (create_breakpoint): Add missing break statement.
8273
8274 Reverting this patch:
8275 * infcall.c (call_function_by_hand): Add break statements for lint.
8276
8277 Reverting this patch:
8278 * cli/cli-script.c (script_from_file): Add break for lint.
8279
8280 2011-03-04 Michael Snyder <msnyder@vmware.com>
8281
8282 * solib.c (reload_shared_libraries_1): Close memory leak.
8283
8284 2011-03-03 Tom Tromey <tromey@redhat.com>
8285
8286 PR gdb/12538:
8287 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8288 DW_STRING is NULL.
8289
8290 2011-03-03 Michael Snyder <msnyder@vmware.com>
8291
8292 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8293 fields of struct 'st' to zero.
8294
8295 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8296 sal.pspace before calling set_current_source_symtab_and_line.
8297
8298 2011-03-03 Yao Qi <yao@codesourcery.com>
8299
8300 * Makefile.in (configure-common): Remove. Let Makefile
8301 in dir common to rebuild itself.
8302 (common/Makefile): Likewise.
8303
8304 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8305
8306 * utils.c (parse_escape): Add i18n markup in error message.
8307
8308 2011-03-03 Yao Qi <yao@codesourcery.com>
8309
8310 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8311 ARM_PC_REGNUM.
8312 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8313 (displaced_write_reg, displaced_read_reg): Likewise.
8314 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8315 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8316 (cleanup_branch): Replace magic number 14 and 15 with
8317 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8318
8319 2011-03-02 Michael Snyder <msnyder@vmware.com>
8320
8321 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8322
8323 * cli/cli-script.c (script_from_file): Add break for lint.
8324
8325 * mdebugread.c (parse_partial_symbols): Fix indent.
8326
8327 * target-descriptions.c (tdesc_gdb_type): No need to call
8328 xstrdup, callee saves a copy.
8329
8330 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8331
8332 * infcall.c (call_function_by_hand): Add break statements for lint.
8333
8334 * utils.c (parse_escape): Escape the escape char.
8335
8336 * python/py-inferior.c (build_inferior_list): Error out if
8337 PyList_Append fails.
8338 (gdbpy_inferiors): Error out if build_inferior_list fails.
8339
8340 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8341 a function call.
8342
8343 * record.c (record_restore): Move printf to before error return.
8344
8345 2011-03-02 Yao Qi <yao@codesourcery.com>
8346
8347 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8348 is_thumb and insn_size.
8349 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8350 on both ARM and Thumb mode.
8351 (arm_process_displaced_insn): Set is_thumb and insn_size.
8352 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8353 (arm_displaced_step_fixup): Likewise.
8354
8355 2011-03-01 Michael Snyder <msnyder@vmware.com>
8356
8357 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8358
8359 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8360
8361 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8362
8363 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8364
8365 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8366 with xmalloc.
8367
8368 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8369 which shadows function parameter.
8370
8371 * tracepoint.c (create_tsv_from_upload): Superfluous call
8372 to xstrdup. Callee already calls xstrdup.
8373
8374 * linespec.c (decode_line_1): Remove unnecessary null check.
8375
8376 * tracepoint.c (scope_info): Fix mem leak, remove underused
8377 variable.
8378
8379 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8380 superfluous null check.
8381
8382 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8383 (value_of_builtin_frame_fp_reg): Ditto.
8384
8385 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8386
8387 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8388 be null.
8389
8390 * linespec.c (decode_line_1): Check for null before dereference.
8391
8392 * reverse.c (record_restore): Move null-check to before pointer
8393 dereference.
8394
8395 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8396
8397 * objc-lang.c (selectors_info): Add explanitory comment.
8398 (classes_info): Ditto.
8399
8400 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8401
8402 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8403 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8404 versions of the trampoline. Handle Thumb vs. ARM addresses.
8405 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8406 (arm_linux_init_abi): Install it.
8407 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8408 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8409
8410 2011-02-28 Michael Snyder <msnyder@vmware.com>
8411
8412 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8413 a little bigger, to avoid possibility of an overflow.
8414
8415 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8416 buffers a little bigger, to avoid possibility of an overflow.
8417
8418 * coffread.c (coff_getfilename): Add check to avoid overflow.
8419
8420 * objc-lang.c (selectors_info): Add a small safety margin to
8421 avoid overflow.
8422 (classes_info): Error out on too long REGEXP.
8423
8424 * infrun.c (handle_inferior_event): Remove unused function call.
8425
8426 * fork-child.c (fork_inferior): Remove ifdef'd code and
8427 unused variable.
8428
8429 * linux-thread-db.c (attach_thread): Discard unused value.
8430
8431 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8432
8433 * remote.c (remote_get_noisy_reply): Discard unused value.
8434 (remote_vcont_resume): Ditto.
8435 (remote_stop_ns): Ditto.
8436
8437 * linespec.c (decode_objc): Delete unused variable.
8438
8439 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8440
8441 * dwarf2read.c (add_partial_symbol): Discard unused values.
8442 (read_base_type): Delete unused variable.
8443
8444 * dbxread.c (read_dbx_symtab): Discard unused value.
8445
8446 * eval.c (evaluate_subexp_standard): Delete unused variable,
8447 and discard unused values.
8448
8449 * infcmd.c (_initialize_infcmd): Discard unused values.
8450
8451 * stabsread.c (rs6000_builtin_type): Missing break statement.
8452
8453 * dbxread.c (process_one_symbol): Discard unused value.
8454
8455 * coffread.c (coff_end_symtab): Delete unused variable.
8456
8457 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8458 (dwarf2_add_typedef): Delete unused variable.
8459 (read_namespace): Ditto.
8460 (dwarf_decode_macros): Ditto.
8461
8462 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8463
8464 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8465
8466 * p-valprint.c (pascal_val_print): Discard unused value.
8467
8468 * utils.c (nquery): Call va_end before return;
8469 (yquery): Ditto.
8470 (query): Ditto.
8471
8472 * proc-service.c (ps_plog): Call va_end before return.
8473
8474 2011-02-28 Tom Tromey <tromey@redhat.com>
8475
8476 * python/python.c (gdbpy_value_cst): New global.
8477 (_initialize_python): Initialize it.
8478 * python/python-internal.h (gdbpy_value_cst): Declare.
8479 * python/py-value.c (convert_value_from_python): Use
8480 gdbpy_value_cst.
8481
8482 2011-02-28 Michael Snyder <msnyder@vmware.com>
8483
8484 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8485
8486 * breakpoint.c (catch_syscall_completer): Free malloced list.
8487
8488 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8489
8490 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8491 (lval_func_check_synthetic_pointer): Ditto.
8492 (lval_func_free_closure): Fix use-after-free.
8493
8494 2011-02-28 Tom Tromey <tromey@redhat.com>
8495
8496 * psymtab.c (expand_partial_symbol_tables): Use
8497 ALL_OBJFILE_PSYMTABS.
8498
8499 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8500
8501 * objc-lang.c (selectors_info): Error on too long REGEXP.
8502
8503 2011-02-28 Michael Snyder <msnyder@vmware.com>
8504
8505 * python/py-param.c (set_parameter_value): Add missing
8506 break statement.
8507
8508 * linux-record.c (record_linux_system_call): Add missing
8509 break statement.
8510
8511 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8512
8513 * breakpoint.c (print_one_breakpoint_location): Remove unused
8514 argument PRINT_ADDRESS_BITS. Update callers.
8515 (print_one_breakpoint): Likewise.
8516
8517 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8518
8519 * breakpoint.c (wrap_indent_at_field): New function.
8520 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8521 Allocate ui_stream locally instead of using STB argument.
8522 (print_one_breakpoint_location): Update call.
8523 * ui-out.c (ui_out_query_field): New function.
8524 * ui-out.h (ui_out_query_field): Add prototype.
8525
8526 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8527
8528 From Michael Snyder <msnyder@vmware.com>
8529 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8530
8531 2011-02-27 Michael Snyder <msnyder@vmware.com>
8532
8533 * objc-lang.c (selectors_info): Prevent string overrun.
8534
8535 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8536 error in strncpy.
8537
8538 * symtab.c (rbreak_command): Move variable 'file_name' to
8539 outer scope.
8540
8541 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8542 param with a local variable of the same name.
8543
8544 2011-02-27 Michael Snyder <msnyder@vmware.com>
8545
8546 * value.c (value_from_history_ref): New function.
8547 * value.h (value_from_history_ref): Export.
8548 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8549 to parse value history references.
8550 * cli/cli-utils.h (get_number_trailer): Update comment.
8551
8552 2011-02-27 Michael Snyder <msnyder@vmware.com>
8553
8554 * inferior.c (detach_inferior_command): Use get_number_or_range.
8555 (kill_inferior_command): Ditto.
8556 (remove_inferior_command): Ditto.
8557 (initialize_inferiors): Make command names plural.
8558 Update help strings.
8559
8560 2011-02-27 Michael Snyder <msnyder@vmware.com>
8561
8562 * darwin-nat-info.c: Fix comment typo.
8563 * dwarf2expr.h: Ditto.
8564 * fbsd-nat.c: Ditto.
8565 * fbsd-nat.h: Ditto.
8566 * frame-unwind.h: Ditto.
8567 * frame.h: Ditto.
8568 * hppa-hpux-tdep.c: Ditto.
8569 * i386-linux-nat.c: Ditto.
8570 * linux-nat.c: Ditto.
8571 * nbsd-nat.c: Ditto.
8572 * nbsd-nat.h: Ditto.
8573 * ppc-linux-tdep.c: Ditto.
8574 * serial.c: Ditto.
8575 * ui-file.h: Ditto.
8576 * tui/tui-winsource.c: Ditto.
8577
8578 2011-02-26 Michael Snyder <msnyder@vmware.com>
8579
8580 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8581
8582 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8583
8584 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8585 with a local variable of the same name.
8586
8587 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8588 param with a local variable of the same name.
8589 (i387_supply_xsave): Ditto.
8590
8591 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8592 that it does not shadow a function parameter.
8593
8594 * i386-nat.c (i386_length_and_rw_bits): Document that case
8595 statement is meant to fall through.
8596
8597 * expprint.c (dump_subexp_body_standard): Document that case
8598 statement is meant to fall through.
8599
8600 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8601 dead if statement. Condition can't be false.
8602
8603 2011-02-25 Michael Snyder <msnyder@vmware.com>
8604
8605 * arm-tdep.c: Fix typos in comments.
8606 * bsd-uthread.c: Ditto.
8607 * completer.c: Ditto.
8608 * corelow.c: Ditto.
8609 * cp-namespace.c: Ditto.
8610 * cp-support.c: Ditto.
8611 * cris-tdep.c: Ditto.
8612 * dbxread.c: Ditto.
8613 * dwarf2read.c: Ditto.
8614 * frame.h: Ditto.
8615 * gdbtypes.h: Ditto.
8616 * inferior.h: Ditto.
8617 * mdebugread.c: Ditto.
8618 * mips-tdep.c: Ditto.
8619 * ppc-linux-nat.c: Ditto.
8620 * ppc-linux-tdep.c: Ditto.
8621 * printcmd.c: Ditto.
8622 * sol-thread.c: Ditto.
8623 * solib-frv.c: Ditto.
8624 * solist.h: Ditto.
8625 * sparc64-tdep.c: Ditto.
8626 * spu-tdep.c: Ditto.
8627 * stabsread.c: Ditto.
8628 * symfile.c: Ditto.
8629 * valops.c: Ditto.
8630 * varobj.c: Ditto.
8631 * vax-nat.c: Ditto.
8632 * python/py-block.c: Ditto.
8633 * python/py-symbol.c: Ditto.
8634 * python/py-symtab.c: Ditto.
8635 * python/py-value.c: Ditto.
8636 * tui/tui-win.c: Ditto.
8637
8638 2011-02-25 Michael Snyder <msnyder@vmware.com>
8639
8640 * inferior.c (print_inferior): Accept a string instead of an int
8641 for requested_inferiors, and use get_number_or_range to parse it.
8642 (info_inferiors_command): Pass args string to print_inferior.
8643 (initialize_inferiors): Change help string for info inferiors.
8644 * inferior.h (print_inferior): Export prototype change.
8645
8646 2011-02-25 Tom Tromey <tromey@redhat.com>
8647
8648 * common/ax.def (invalid2): Set to 0x31.
8649
8650 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8651
8652 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8653 L and plongest.
8654 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8655 use L and plongest.
8656 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8657
8658 2011-02-24 Michael Snyder <msnyder@vmware.com>
8659
8660 * Makefile.in (clean): Make clean should remove generated files
8661 observer.h and observer.inc.
8662
8663 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8664
8665 Revert the following patch (not approved yet):
8666 2011-02-21 Hui Zhu <teawater@gmail.com>
8667 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8668 * ax-gdb.c (gen_printf_expr_callback): New function.
8669 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8670 * ax-general.c (ax_memcpy): New function.
8671 (ax_print): Handle "printf".
8672 (ax_reqs): Ditto.
8673 * ax.h (ax_memcpy): Forward declare.
8674 * common/ax.def (invalid2): Removed.
8675 (printf): New entry.
8676 * printcmd.c (printcmd.h): New include.
8677 (string_printf): New function.
8678 (ui_printf): Removed.
8679 (printf_command): Remove static. Call string_printf.
8680 (eval_command): Call string_printf.
8681 * printcmd.h: New file.
8682 * tracepoint.c (validate_actionline,
8683 encode_actions_1): handle printf_command.
8684
8685 2011-02-23 Tom Tromey <tromey@redhat.com>
8686
8687 * ax-general.c (ax_pick): Add missing newline.
8688
8689 2011-02-23 Michael Snyder <msnyder@vmware.com>
8690
8691 * breakpoint.c (breakpoint_1): Change first argument from an int
8692 to a char pointer, so that the function now accepts a list of
8693 breakpoints rather than just one. Use new function
8694 'number_is_in_list' to implement.
8695 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8696 (watchpoints_info): Ditto.
8697 (tracepoints_info): Ditto.
8698 (maintenance_info_breakpoints): Ditto.
8699 (_initialize_breakpoint): Update help strings to reflect the fact
8700 that these functions can now take more than one argument.
8701 * cli/cli-utils.c (number_is_in_list): New function.
8702 * cli/cli-utils.h (number_is_in_list): Export.
8703
8704 2011-02-23 Michael Snyder <msnyder@vmware.com>
8705
8706 * memattr.c (mem_enable_command): Use get_number_or_range.
8707 (mem_disable_command): Ditto.
8708 (mem_delete_command): Ditto.
8709 (_initialize_mem): Tweak usage message to reflect multiple
8710 arguments.
8711
8712 2011-02-22 Doug Evans <dje@google.com>
8713
8714 Add gdb.lookup_global_symbol python function.
8715 * NEWS: Add entry.
8716 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8717 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8718 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8719
8720 2011-02-22 Tom Tromey <tromey@redhat.com>
8721
8722 * language.c (language_class_name_from_physname): Rename
8723 'curr_language' argument to 'lang'; use in body.
8724
8725 2011-02-22 Michael Snyder <msnyder@vmware.com>
8726
8727 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8728
8729 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8730
8731 * frame-unwind.h: Fix comment to mention the this frame, not the
8732 next.
8733
8734 2011-02-22 Tom Tromey <tromey@redhat.com>
8735
8736 * symfile.c (auto_solib_limit): Remove.
8737 * symfile.h (auto_solib_limit): Remove.
8738
8739 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8740
8741 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8742
8743 2011-02-21 Michael Snyder <msnyder@vmware.com>
8744
8745 * gdbthread.h (print_thread_info): Change prototype.
8746 * thread.c (print_thread_info): Accept char* instead of int for
8747 requested_threads argument. Use new function number_is_in_list
8748 to determine which threads to list.
8749 (info_threads_command): Pass char* to print_thread_info.
8750 * cli/cli-utils.c (number_is_in_list): New function.
8751 * cli/cli-utils.h (number_is_in_list): Export.
8752 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8753 print_thread_info.
8754 (print_one_inferior): Ditto.
8755 (mi_cmd_list_thread_groups): Ditto.
8756
8757 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8758
8759 * common/Makefile.in (CFLAGS): New.
8760 (COMPILE): Add $(CFLAGS).
8761
8762 2011-02-21 Tom Tromey <tromey@redhat.com>
8763
8764 * breakpoint.c (catch_syscall_command_1): Fix typo.
8765
8766 2011-02-21 Tom Tromey <tromey@redhat.com>
8767
8768 * reverse.c: Include cli-utils.h.
8769 * printcmd.c: Include cli-utils.h.
8770 (string_printf): Use skip_spaces.
8771 * cli/cli-utils.h: New file.
8772 * cli/cli-utils.c: New file.
8773 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8774 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8775 * breakpoint.h (get_number, get_number_or_range): Move to
8776 cli-utils.h.
8777 * breakpoint.c: Include cli-utils.h.
8778 (get_number_trailer, get_number, get_number_or_range)
8779 (ep_skip_leading_whitespace): Move to cli-utils.c.
8780 (create_breakpoint_sal, find_condition_and_thread)
8781 (decode_static_tracepoint_spec, watch_command_1)
8782 (watch_maybe_just_location, ep_parse_optional_if_clause)
8783 (catch_fork_command_1, catch_exec_command_1)
8784 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8785 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8786 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8787 (HFILES_NO_SRCDIR): Add cli-utils.h.
8788 (cli-utils.o): New target.
8789
8790 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8791
8792 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8793 before calling discard_all_inferiors.
8794
8795 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8796
8797 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8798 (struct builtin_opencl_type): Remove.
8799 (builtin_opencl_type): Change return type to "struct type **".
8800 (lookup_opencl_vector_type): Update caller.
8801 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8802 (build_opencl_types): Install plain array of "struct type *"
8803 instead of "struct builtin_opencl_type".
8804
8805 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8806 Ulrich Weigand <uweigand@de.ibm.com>
8807
8808 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8809 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8810 (struct arm_linux_hwbp_cap): New type.
8811 (arm_linux_get_hwbp_cap): New function.
8812 (arm_linux_get_hw_breakpoint_count): Likewise.
8813 (arm_linux_get_hw_watchpoint_count): Likewise.
8814 (arm_linux_can_use_hw_breakpoint): Likewise.
8815 (arm_hwbp_type): New type.
8816 (arm_hwbp_control_t): Likewise.
8817 (struct arm_linux_hw_breakpoint): Likewise.
8818 (struct arm_linux_thread_points): Likewise.
8819 (arm_threads): New global variable.
8820 (arm_linux_find_breakpoints_by_tid): New function.
8821 (arm_hwbp_control_initialize): Likewise.
8822 (arm_hwbp_control_is_enabled): Likewise.
8823 (arm_hwbp_control_disable): Likewise.
8824 (arm_linux_hw_breakpoint_initialize): Likewise.
8825 (arm_linux_get_hwbp_type): Likewise.
8826 (arm_linux_hw_watchpoint_initialize): Likewise.
8827 (arm_linux_hw_breakpoint_equal): Likewise.
8828 (arm_linux_insert_hw_breakpoint1): Likewise.
8829 (arm_linux_remove_hw_breakpoint1): Likewise.
8830 (arm_linux_insert_hw_breakpoint): Likewise.
8831 (arm_linux_remove_hw_breakpoint): Likewise.
8832 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8833 (arm_linux_insert_watchpoint): Likewise.
8834 (arm_linux_remove_watchpoint): Likewise.
8835 (arm_linux_stopped_data_address): Likewise.
8836 (arm_linux_stopped_by_watchpoint): Likewise.
8837 (arm_linux_watchpoint_addr_within_range): Likewise.
8838 (arm_linux_new_thread): Likewise.
8839 (arm_linux_thread_exit): Likewise.
8840 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8841 related target callbacks. Register arm_linux_new_thread and
8842 arm_linux_thread_exit.
8843 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8844 * arm-tdep.c (arm_pc_is_thumb): Make global.
8845 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8846
8847 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8848
8849 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8850 per-frame locations while within a function epilogue.
8851
8852 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8853
8854 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8855 to GNU coding standards.
8856
8857 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8858
8859 Allow use of mingw native on Windows 95 OS.
8860 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8861 (ser_windows_close): Only call CancelIo if function exists.
8862 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8863 to check for existence of CancelIo function in kernel32 DLL.
8864
8865 2011-02-21 Hui Zhu <teawater@gmail.com>
8866
8867 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8868 * ax-gdb.c (gen_printf_expr_callback): New function.
8869 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8870 * ax-general.c (ax_memcpy): New function.
8871 (ax_print): Handle "printf".
8872 (ax_reqs): Ditto.
8873 * ax.h (ax_memcpy): Forward declare.
8874 * common/ax.def (invalid2): Removed.
8875 (printf): New entry.
8876 * printcmd.c (printcmd.h): New include.
8877 (string_printf): New function.
8878 (ui_printf): Removed.
8879 (printf_command): Remove static. Call string_printf.
8880 (eval_command): Call string_printf.
8881 * printcmd.h: New file.
8882 * tracepoint.c (validate_actionline,
8883 encode_actions_1): handle printf_command.
8884
8885 2011-02-19 Michael Snyder <msnyder@vmware.com>
8886
8887 * reverse.c (delete_one_bookmark): Argument is now bookmark
8888 id rather than pointer to bookmark struct.
8889 (delete_bookmark_command): Use get_number_or_range.
8890 (goto_bookmark_command): Parse with get_number instead of strtoul.
8891 (bookmark_1): New function. Print info for one bookmark.
8892 (bookmarks_info): Use get_number_or_range and bookmark_1.
8893
8894 2011-02-18 Michael Snyder <msnyder@vmware.com>
8895
8896 * thread.c (info_threads_command): Re-implement using
8897 get_number_or_range.
8898 (thread_apply_command): Ditto.
8899
8900 2011-02-18 Tom Tromey <tromey@redhat.com>
8901
8902 * common/ax.def: New file.
8903 * ax.h (enum agent_op): Use ax.def.
8904 * ax-general.c (aop_map): Use ax.def.
8905
8906 2011-02-18 Tom Tromey <tromey@redhat.com>
8907
8908 * ax-general.c (aop_map): Add pick and rot.
8909 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8910 <DW_OP_rot>: Implement.
8911 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8912 (ax_pick): Declare.
8913 * ax-general.c (ax_pick): New function.
8914
8915 2011-02-18 Tom Tromey <tromey@redhat.com>
8916
8917 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8918
8919 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8920 Tom Tromey <tromey@redhat.com>
8921
8922 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8923 make_symbol_overload_list_block with NULL BLOCK.
8924 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8925
8926 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8927
8928 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8929 * breakpoint.h (get_number_or_range): Declare.
8930 * printcmd.c (ALL_DISPLAYS): Declare.
8931 (delete_display): Reimplement taking a display pointer.
8932 (undisplay_command): Accept a range of displays to delete, using
8933 get_number_or_range.
8934
8935 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8936
8937 * c-valprint.c (c_val_print): Add embedded_offset to address
8938 for arrays of unspecified length.
8939 * p-valprint.c (pascal_val_print): Likewise.
8940
8941 2011-02-18 Yao Qi <yao@codesourcery.com>
8942
8943 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8944 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8945 (thumb_process_displaced_insn): New.
8946 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8947 call to arm_process_displaced_insn.
8948 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8949
8950 2011-02-17 Tom Tromey <tromey@redhat.com>
8951
8952 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8953 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8954 compile_dwarf_to_ax. No longer static. Call
8955 dwarf2_compile_cfa_to_ax.
8956 (locexpr_tracepoint_var_ref): Update.
8957 (loclist_tracepoint_var_ref): Update.
8958 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8959 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8960 argument; add 'gdbarch' and 'pc'.
8961 (dwarf2_compile_cfa_to_ax): New function.
8962 (dwarf2_frame_cache): Update.
8963
8964 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8965
8966 * ada-lang.c (ada_type_of_array): Fix the size of the array
8967 in the case of an unconstrained packed array.
8968
8969 2011-02-17 Yao Qi <yao@codesourcery.com>
8970
8971 * common/Makefile.in: Add more targets for make.
8972
8973 2011-02-16 Tom Tromey <tromey@redhat.com>
8974
8975 * dwarf2loc.c (unimplemented): Fix typo.
8976
8977 2011-02-16 Tom Tromey <tromey@redhat.com>
8978
8979 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8980 (compile_dwarf_to_ax) <default>: Use unimplemented.
8981 <DW_OP_deref>: Update.
8982 (disassemble_dwarf_expression): Update.
8983 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8984 (decode_locdesc): Update.
8985 * dwarf2expr.h (dwarf_stack_op_name): Update.
8986
8987 2011-02-16 Tom Tromey <tromey@redhat.com>
8988
8989 * ax.h (struct aop_map) <name>: Now const.
8990
8991 2011-02-16 Tom Tromey <tromey@redhat.com>
8992
8993 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8994 than axs_rvalue.
8995
8996 2011-02-16 Yao Qi <yao@codesourcery.com>
8997
8998 * infrun.c (get_displaced_step_closure_by_addr): New.
8999 * inferior.h: Declare it.
9000 * arm-tdep.c: (arm_pc_is_thumb): Call
9001 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9002 returns non-NULL.
9003
9004 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9005 Jan Kratochvil <jan.kratochvil@redhat.com>
9006
9007 gdb/
9008 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9009
9010 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9011 Jan Kratochvil <jan.kratochvil@redhat.com>
9012
9013 * value.c (value_contents_copy_raw): Extend describing comment.
9014 Assert that the destination contents we're overwriting are wholly
9015 available.
9016 (value_contents_copy): Extend describing comment.
9017
9018 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9019 Jan Kratochvil <jan.kratochvil@redhat.com>
9020
9021 * value.c (value_available_contents_eq): Remove redundant local
9022 variables. Fix available contents comparision.
9023 * value.h (value_available_contents_eq): Extend describing
9024 comment.
9025
9026 2011-02-16 Yao Qi <yao@codesourcery.com>
9027
9028 * thread.c (info_threads_command): Add missing i18n markup and remove
9029 trailing newline.
9030
9031 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9032
9033 * breakpoint.c (longjmp_names): New variable.
9034 (struct breakpoint_objfile_data): New type.
9035 (breakpoint_objfile_key): New variable.
9036 (msym_not_found): New variable.
9037 (msym_not_found_p): New predicate.
9038 (get_breakpoint_objfile_data): New function.
9039 (create_overlay_event_breakpoint): Check per-objfile cache for
9040 symbols first.
9041 (create_longjmp_master_breakpoint): Likewise.
9042 (create_std_terminate_master_breakpoint): Likewise.
9043 (create_exception_master_breakpoint): Likewise.
9044 (_initialize_breakpoint): Register per-objfile data key.
9045
9046 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9047
9048 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9049 parameter value.
9050 (create_longjmp_master_breakpoint): Loop over longjmp names.
9051 (create_std_terminate_master_breakpoint): Const-propagate parameter
9052 value.
9053 (update_breakpoints_after_exec): Adjust.
9054 (breakpoint_re_set): Adjust.
9055
9056 2011-02-15 Michael Snyder <msnyder@vmware.com>
9057
9058 * thread.c (info_threads_command): Process arg as thread id,
9059 or list of thread ids.
9060 (thread_find_command): New command.
9061 (_initialize_thread): Document argument for info threads.
9062 Document 'thread find' command.
9063 * NEWS: Document new command "thread find".
9064
9065 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9066
9067 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9068 * aclocal.m4: Regenerated with aclocal-1.11.1.
9069 * common/configure: Regenerate with autoconf-2.64.
9070
9071 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9072
9073 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9074 bool data type to a size of one byte.
9075
9076 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9077 Jan Kratochvil <jan.kratochvil@redhat.com>
9078
9079 * target.c (memory_xfer_live_readonly_partial): Document where to
9080 look for interface description.
9081
9082 2011-02-15 Yao Qi <yao@codesourcery.com>
9083
9084 PR tdep/12352
9085 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9086 order to store PC value on stack instead of text section.
9087
9088 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9089
9090 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9091 the EFP register set size.
9092 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9093 data from the VMX register.
9094 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9095 and write data from/to the VMX register.
9096
9097 2011-02-14 Michael Snyder <msnyder@vmware.com>
9098
9099 * command.h (enum command_class): New class 'no_set_class', for
9100 "show" commands without a corresponding "set" command.
9101 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9102 * copying.c (_initialize_copying): Ditto for "show copying" and
9103 "show warranty".
9104 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9105 "show version".
9106 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9107 which there is no corresponding "set" command (eg. "show copying").
9108
9109 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9110 Jan Kratochvil <jan.kratochvil@redhat.com>
9111
9112 * exec.c (section_table_available_memory): Change `len' parameter
9113 type to ULONGEST.
9114 * exec.h (section_table_available_memory): Ditto.
9115 * value.h (read_value_memory): Rename the `offset' parameter to
9116 `embedded_offset'.
9117
9118 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9119 Jan Kratochvil <jan.kratochvil@redhat.com>
9120
9121 * memrange.c (compare_mem_ranges): Mention sort order in
9122 describing comment.
9123 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9124 * tracepoint.c (traceframe_available_memory): Extend comment to
9125 mention what happens to RESULT when the target does not support
9126 the query.
9127
9128 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9129 Jan Kratochvil <jan.kratochvil@redhat.com>
9130
9131 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9132 range.
9133
9134 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9135
9136 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9137 No longer handle NULL values.
9138
9139 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9140
9141 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9142 * value.c: Include "exceptions.h".
9143 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9144 generic error.
9145 * cp-abi.c: Include gdb_assert.h.
9146 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9147 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9148 errors.
9149 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9150 parameters. No longer returns -1 on error.
9151 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9152 `val' parameters.
9153 * cp-valprint.c: Include exceptions.h.
9154 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9155 the baseclass_offset. Handle unavailable base classes. Use
9156 val_print_invalid_address.
9157 * p-valprint.c: Include exceptions.h.
9158 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9159 when fetching the baseclass_offset. No longer expect
9160 baseclass_offset returning -1. Handle unavailable base classes.
9161 Use val_print_invalid_address.
9162 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9163 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9164 `embedded_offset' and `val' parameters. Adjust.
9165 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9166 parameter, and change its type to gdb_byte pointer. Add
9167 `embedded_offset' and `val' parameters. Adjust. No longer expect
9168 baseclass_offset returning -1.
9169 (value_dynamic_cast): Use value_contents_for_printing rather than
9170 value_contents. Adjust.
9171 (search_struct_field): No longer expect baseclass_offset returning
9172 -1.
9173 (search_struct_method): If reading memory from the target is
9174 necessary, wrap it in a new value to pass to baseclass_offset. No
9175 longer expect baseclass_offset returning -1.
9176 (find_method_list): No longer expect baseclass_offset returning
9177 -1. Use value_contents_for_printing rather than value_contents.
9178 * valprint.c (val_print_invalid_address): New function.
9179 * valprint.h (val_print_invalid_address): Declare.
9180 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9181 and `val' parameters. No longer expect baseclass_offset returning
9182 -1. Adjust.
9183 * gnu-v2-abi.c: Include "exceptions.h".
9184 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9185 parameters. Handle unavailable memory. Recurse through
9186 gnuv2_baseclass_offset directly, rather than through
9187 baseclass_offset. No longer returns -1 on not found, instead
9188 throw an error.
9189 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9190 `val' parameters. Adjust.
9191
9192 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9193
9194 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9195 almost but not quite adjacent.
9196
9197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9198
9199 * value.h (value_entirely_available): Declare.
9200 * value.c (value_entirely_available): New function.
9201 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9202 real type if the pointer is unavailable.
9203
9204 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9205
9206 * valops.c (value_repeat): Use read_value_memory instead of
9207 read_memory.
9208
9209 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9210
9211 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9212 * value.c (value_contents_copy_raw, value_contents_copy): New
9213 functions.
9214 (value_primitive_field): Use value_contents_copy_raw instead of
9215 memcpy.
9216 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9217 memcpy.
9218 (value_array, value_slice): Ditto.
9219 * valarith.c (value_subscripted_rvalue): Use
9220 value_contents_copy_raw instead of memcpy.
9221
9222 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9223
9224 <unavailable> references.
9225
9226 * valops.c (get_value_at): Use value_from_contents_and_address,
9227 avoiding read_memory.
9228
9229 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9230
9231 * c-valprint.c (c_val_print): Print a string with unavailable
9232 contents as an array.
9233
9234 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9235
9236 * value.h (unpack_bits_as_long): Delete declaration.
9237 (unpack_value_bits_as_long): Declare.
9238 (unpack_value_field_as_long): Declare.
9239 (value_field_bitfield): Declare.
9240 * value.c (unpack_bits_as_long): Rename to...
9241 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9242 value parameters. Return the extracted result in a new output
9243 parameter. If the value contents are unavailable, return false,
9244 otherwise return true.
9245 (unpack_value_bits_as_long): New.
9246 (unpack_field_as_long): Rename to...
9247 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9248 Add embedded_offset and value parameters. Return the extracted
9249 result in a new output parameter. If the value contents are
9250 unavailable, return false, otherwise return true.
9251 (unpack_value_field_as_long): New.
9252 (unpack_field_as_long_1): New.
9253 (unpack_field_as_long): Reimplement as wrapper around
9254 unpack_value_field_as_long_1.
9255 (value_field_bitfield): New function.
9256 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9257 unpack_value_bits_as_long. Mark the value as unavailable, if it
9258 is unavailable.
9259 * jv-valprint.c (java_print_value_fields): Use
9260 value_field_bitfield.
9261 * p-valprint.c (pascal_object_print_value_fields): Use
9262 value_field_bitfield.
9263 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9264
9265 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9266
9267 * value.c (get_internalvar_integer): Also return the int value of
9268 TYPE_CODE_INT INTERNALVAR_VALUE values.
9269 (set_internalvar): Don't special case TYPE_CODE_INT.
9270
9271 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9272
9273 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9274 INTERNALVAR_POINTER.
9275 <pointer>: Delete.
9276 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9277 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9278 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9279
9280 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9281
9282 * value.h (value_available_contents_eq): Declare.
9283 * value.c (find_first_range_overlap): New function.
9284 (value_available_contents_eq): New function.
9285 * valprint.c (val_print_array_elements): Use
9286 value_available_contents_eq.
9287 * ada-valprint.c (val_print_packed_array_elements): Use
9288 value_available_contents_eq.
9289 * jv-valprint.c (java_value_print): Use
9290 value_available_contents_eq.
9291
9292 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9293
9294 * target.c (target_read_live_memory): New function.
9295 (memory_xfer_live_readonly_partial): New.
9296 (memory_xfer_partial): If reading from a traceframe, fallback to
9297 reading unavailable read-only memory from read-only regions of
9298 live target memory.
9299 * tracepoint.c (disconnect_tracing): Adjust.
9300 (set_current_traceframe): New, factored out from
9301 set_traceframe_number.
9302 (set_traceframe_number): Reimplement to only change the traceframe
9303 number on the GDB side.
9304 (do_restore_current_traceframe_cleanup): Adjust.
9305 (make_cleanup_restore_traceframe_number): New.
9306 (cur_traceframe_number): New global.
9307 (tfile_open): Set cur_traceframe_number to no traceframe.
9308 (set_tfile_traceframe): New function.
9309 (tfile_trace_find): If looking up a traceframe using any method
9310 other than by number, make sure the current tfile traceframe
9311 matches gdb's current traceframe. Update the current tfile
9312 traceframe if the lookup succeeded.
9313 (tfile_fetch_registers, tfile_xfer_partial)
9314 (tfile_get_trace_state_variable_value): Make sure the remote
9315 traceframe matches gdb's current traceframe.
9316 * remote.c (remote_traceframe_number): New global.
9317 (remote_open_1): Set it to -1.
9318 (set_remote_traceframe): New function.
9319 (remote_fetch_registers, remote_store_registers)
9320 (remote_xfer_memory, remote_xfer_partial)
9321 (remote_get_trace_state_variable_value): Make sure the remote
9322 traceframe matches gdb's current traceframe.
9323 (remote_trace_find): If looking up a traceframe using any method
9324 other than by number, make sure the current remote traceframe
9325 matches gdb's current traceframe. Update the current remote
9326 traceframe if the lookup succeeded.
9327 * infrun.c (fetch_inferior_event): Adjust.
9328 * tracepoint.h (set_current_traceframe): Declare.
9329 (get_traceframe_number, set_traceframe_number): Add describing
9330 comments.
9331
9332 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9333
9334 Mark pieces of values as unavailable if the corresponding memory
9335 is unavailable.
9336
9337 * valops.c: Include tracepoint.h.
9338 (value_fetch_lazy): Use read_value_memory.
9339 (read_value_memory): New.
9340 * value.h (read_value_memory): Declare.
9341 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9342 * exec.c (section_table_available_memory): New function.
9343 * exec.h (section_table_available_memory): Declare.
9344
9345 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9346
9347 * Makefile.in (SFILES): Add memrange.c.
9348 (HFILES_NO_SRCDIR): Add memrange.h.
9349 (COMMON_OBS): Add memrange.o.
9350 * memrange.c: New file.
9351 * memrange.h: New file.
9352 * tracepoint.c: Include memrange.h.
9353 (struct mem_range): Delete.
9354 (mem_range_s): Delete.
9355 (traceframe_available_memory): New function.
9356 * tracepoint.h (traceframe_available_memory): Declare.
9357
9358 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9359
9360 * target.h (struct traceframe_info): Forward declare.
9361 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9362 (struct target_ops) <to_traceframe_info>: New field.
9363 (target_traceframe_info): New.
9364 * target.c (update_current_target): Inherit and default
9365 to_traceframe_info.
9366 * remote.c (PACKET_qXfer_traceframe_info): New.
9367 (remote_protocol_features): Register qXfer:traceframe-info:read.
9368 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9369 (remote_traceframe_info): New.
9370 (init_remote_ops): Install it.
9371 (_initialize_remote): Install "set/show remote traceframe-info"
9372 commands.
9373 * tracepoint.h (parse_traceframe_info): Declare.
9374 * tracepoint.c (struct mem_range): New.
9375 (mem_range_s): New typedef.
9376 (struct traceframe_info): New.
9377 (traceframe_info): New global.
9378 (free_traceframe_info): New function.
9379 (clear_traceframe_info): New function.
9380 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9381 info.
9382 (build_traceframe_info): New function.
9383 (tfile_traceframe_info): New function.
9384 (init_tfile_ops): Install tfile_traceframe_info.
9385 (traceframe_info_start_memory, free_result): New functions.
9386 (memory_attributes, traceframe_info_elements): New globals.
9387 (parse_traceframe_info, get_traceframe_info): New functions.
9388 * features/traceframe-info.dtd: New file.
9389 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9390
9391 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9392
9393 Base support for <unavailable> value contents.
9394
9395 * value.h (value_bytes_available): Declare.
9396 (mark_value_bytes_unavailable): Declare.
9397 * value.c (struct range): New struct.
9398 (range_s): New typedef.
9399 (ranges_overlap): New function.
9400 (range_lessthan): New function.
9401 (ranges_contain_p): New function.
9402 (struct value) <unavailable>: New field.
9403 (value_bytes_available): New function.
9404 (mark_value_bytes_unavailable): New function.
9405 (require_not_optimized_out): Constify parameter.
9406 (require_available): New function.
9407 (value_contents_all, value_contents): Require all bytes be
9408 available.
9409 (value_free): Free `unavailable'.
9410 (value_copy): Copy `unavailable'.
9411 * valprint.h (val_print_unavailable): Declare.
9412 * valprint.c (valprint_check_validity): Rename `offset' parameter
9413 to `embedded_offset'. If printing a scalar, check whether the
9414 value chunk is available.
9415 (val_print_unavailable): New.
9416 (val_print_scalar_formatted): Check whether the value is
9417 available.
9418 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9419 pretty-printing unavailable values.
9420
9421 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9422
9423 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9424 * c-typeprint.c (c_type_print_args): Update the function comment. New
9425 variable param_type, initialize it. Remove const/volatile qualifiers
9426 for language_cplus and !show_artificial. Use param_type.
9427
9428 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9429
9430 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9431 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9432 * symtab.h (struct symtab) <next>: Comment extension.
9433
9434 2011-02-12 Yao Qi <yao@codesourcery.com>
9435
9436 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9437
9438 2011-02-11 Yao Qi <yao@codesourcery.com>
9439
9440 * common/Makefile.in: Add copyright header.
9441
9442 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9443
9444 * infrun.c (proceed): Move switching out and in of tfind mode from
9445 here ...
9446 (fetch_inferior_event): ... to here.
9447
9448 2011-02-11 Yao Qi <yao@codesourcery.com>
9449
9450 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9451 libcommon.a.
9452 * configure.ac: Add common to sub dir.
9453 * configure: Regenerate.
9454
9455 2011-02-11 Yao Qi <yao@codesourcery.com>
9456
9457 Build libcommon.a.
9458
9459 * common/Makefile.in: New.
9460 * common/configure.ac: New.
9461 * common/aclocal.m4: New.
9462 * common/configure: Generate.
9463
9464 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9465
9466 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9467 side of the parenthesis.
9468
9469 Merge from GCC:
9470 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9471 * vec.h (VEC_block_remove): Fix comment.
9472
9473 2011-02-08 Michael Snyder <msnyder@vmware.com>
9474
9475 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9476
9477 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9478
9479 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9480 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9481 psubd and paddd.
9482
9483 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9484
9485 PR 12361.
9486 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9487 phsubsw.
9488 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9489 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9490
9491 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9492
9493 * dwarf2read.c (read_subroutine_type): Set special calling
9494 convention flag for functions compiled by IBM XL C for OpenCL.
9495 * ppc-sysv-tdep.c: Include "dwarf2.h"
9496 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9497 calling convention.
9498 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9499 IBM OpenCL vector types calling convention.
9500 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9501 (ppc_sysv_abi_broken_return_value): Likewise.
9502 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9503 types calling convention.
9504 (ppc64_sysv_abi_return_value): Likewise.
9505 * spu-tdep.c: Include "dwarf2.h"
9506 (spu_return_value): Implement IBM OpenCL vector types calling
9507 convention.
9508
9509 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9510
9511 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9512 correct ABI for AltiVec vector arguments.
9513
9514 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9515
9516 * valprint.c (val_print): Extend comment.
9517 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9518 interface explanation to val_print.
9519 (ada_val_print_array): Adjust comment to current interface.
9520 (print_field_values): Adjust comment to current interface.
9521 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9522 explanation to val_print.
9523 * f-valprint.c (f_val_print): Ditto.
9524 * jv-valprint.c (java_val_print): Ditto.
9525 * m2-valprint.c (m2_val_print): Ditto.
9526 * p-valprint.c (pascal_val_print): Ditto.
9527
9528 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9529
9530 * breakpoint.c (parse_breakpoint_sals): Fix description.
9531
9532 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9533 Oguz Kayral <oguzkayral@gmail.com>
9534
9535 * python/py-inferior.c (python_on_normal_stop): New function.
9536 (python_on_resume): New function.
9537 (python_inferior_exit): New function.
9538 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9539 inferior_exit observers.
9540 * python/py-evtregistry.c: New file.
9541 * python/py-threadevent.c : New file.
9542 * python/py-event.c: New file.
9543 * python/py-evts.c: New file.
9544 * python/py-continueevent.c: New file.
9545 * python/py-bpevent.c: New file.
9546 * python/py-signalevent.c: New file.
9547 * python/py-exetiedevent.c: New file.
9548 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9549 Move struct breakpoint_object from here...
9550 * python/python-internal.h: ... to here.
9551 * python/py-event.h: New file.
9552 * python/py-events.h: New file.
9553 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9554 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9555 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9556 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9557 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9558 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9559 Add build rules for all the above.
9560
9561 2011-02-04 Tom Tromey <tromey@redhat.com>
9562
9563 * dwarf2read.c (dwarf2_section_empty_p): New function.
9564 (dwarf2_read_section): Use dwarf2_section_empty_p.
9565 (dwarf2_section_size): New function.
9566 (dwarf2_get_section_info): Unconditionally read section.
9567 (dwarf2_read_index): Use dwarf2_section_empty_p.
9568 (partial_read_comp_unit_head): Use dwarf2_section_size.
9569 (dwarf2_symbol_mark_computed): Likewise.
9570
9571 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9572
9573 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9574
9575 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9576
9577 * mips-linux-tdep.c: Include xml-syscall.h.
9578 (mips_linux_get_syscall_number): New function.
9579 (mips_linux_init_abi): Add calls to
9580 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9581 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9582 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9583 * syscalls/mips-n32-linux.xml: New file.
9584 * syscalls/mips-n64-linux.xml: New file.
9585 * syscalls/mips-o32-linux.xml: New file.
9586
9587 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9588
9589 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9590 Complain about inverted range entries.
9591 (dwarf2_record_block_ranges): Likewise.
9592
9593 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9594
9595 Fix some typos.
9596 * breakpoint.c (update_watchpoint): Fix name of the
9597 update_global_location_list function.
9598 (print_one_breakpoint): Fix typo.
9599 (_initialize_breakpoint): Remove extra space in hbreak help
9600 string.
9601 * breakpoint.h (struct bp_location) <length>: Fix field
9602 description.
9603
9604 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9605
9606 * regcache.c (registers_changed_ptid): Don't explictly always
9607 clear `current_regcache'. Only clear current_thread_ptid and
9608 current_thread_arch when PTID matches. Only reinit the frame
9609 cache if PTID matches the current inferior_ptid. Move alloca(0)
9610 call to ...
9611 (registers_changed): ... here.
9612
9613 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9614
9615 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9616 starts with __stack_chk_guard as stack guard symbol.
9617
9618 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9619
9620 * disasm.c (compare_lines): Handle the end of sequence markers
9621 within the line table to better support disassembling over
9622 compilation unit boundaries.
9623
9624 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9625
9626 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9627 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9628 implementation even if no symbols are available.
9629 (thumb_analyze_prologue): Update call to skip_prologue_function.
9630 (arm_analyze_prologue): Likewise.
9631
9632 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9633
9634 * arm-tdep.c: Include "observer.h".
9635 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9636 (arm_exidx_data_key): New static variable.
9637 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9638 (struct arm_exidx_data): Likewise.
9639 (arm_exidx_data_free): New function.
9640 (arm_compare_exidx_entries): Likewise.
9641 (arm_obj_section_from_vma): Likewise.
9642 (arm_exidx_new_objfile): Likewise.
9643 (arm_find_exidx_entry): Likewise.
9644 (arm_exidx_fill_cache): Likewise.
9645 (arm_exidx_unwind_sniffer): Likewise.
9646 (arm_exidx_unwind): New global variable.
9647 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9648 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9649 observer. Register arm_exidx_data_key as objfile data.
9650
9651 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9652
9653 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9654 due to accessing uninitialized variable. Fix indentation.
9655
9656 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9657
9658 * c-valprint.c (c_value_print): When doing virtual base pointer
9659 adjustment, create a new value with adjusted contents rather than
9660 changing the contents of the value being printed (and getting it
9661 wrong).
9662
9663 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9664
9665 * xml-support.c (xml_find_attribute): New.
9666 (xinclude_start_include): Use it.
9667 * xml-support.h (xml_find_attribute): Declare.
9668 * memory-map.c (memory_map_start_memory)
9669 (memory_map_start_property): Use xml_find_attribute.
9670 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9671 xml_find_attribute.
9672 * remote.c (start_thread): Use xml_find_attribute.
9673 * solib-target.c (library_list_start_segment)
9674 (library_list_start_section, library_list_start_library)
9675 (library_list_start_list): Use xml_find_attribute.
9676 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9677 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9678 (tdesc_start_field): Use xml_find_attribute.
9679
9680 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9681
9682 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9683 (BUILD_OCL_VTYPES): Update.
9684
9685 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9686
9687 * configure.ac: Work around non-GNU sed limitation when computing
9688 python version number.
9689 * configure: Regenerate.
9690
9691 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9692
9693 Fix debug printing of TYPE_INSTANCE.
9694 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9695 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9696
9697 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9698
9699 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9700 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9701 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9702 * ada-operator.inc: Rename the file to ...
9703 * ada-operator.def: ... here, wrap all the entries by macro OP.
9704 * expprint.c (op_name_standard): Remove all the entries. Include
9705 "std-operator.def" instead.
9706 * expression.h (enum exp_opcode): Include "std-operator.def" and
9707 "ada-operator.def". Move all the entries ...
9708 * std-operator.def: ... here, wrap all the entries by macro OP.
9709
9710 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9711
9712 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9713 * breakpoint.c (remove_jit_event_breakpoints): New function.
9714 * jit.c (jit_descriptor_addr): Delete.
9715 (registering_code): Delete.
9716 (clear_int): Delete.
9717 (jit_inferior_data): New variable.
9718 (struct jit_inferior_data): New type.
9719 (get_jit_inferior_data): New function.
9720 (jit_inferior_data_cleanup): New function.
9721 (jit_read_descriptor): Adjust.
9722 (jit_register_code): Adjust.
9723 (jit_breakpoint_re_set_internal): New function; move code here ...
9724 (jit_inferior_init): ... from here.
9725 (jit_breakpoint_re_set): Adjust.
9726 (jit_reset_inferior_data_and_breakpoints): New function.
9727 (jit_inferior_created_observer): Adjust.
9728 (jit_inferior_exit_hook): Adjust.
9729 (jit_executable_changed_observer): New function.
9730 (jit_event_handler): Adjust.
9731 (_initialize_jit): Adjust.
9732
9733 2011-01-31 Michael Snyder <msnyder@vmware.com>
9734
9735 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9736 line.
9737
9738 2011-01-31 Tom Tromey <tromey@redhat.com>
9739
9740 PR python/12216:
9741 * python/python.c (execute_gdb_command): Call
9742 prevent_dont_repeat.
9743 * top.c (suppress_dont_repeat): New global.
9744 (dont_repeat): Use it.
9745 (prevent_dont_repeat): New function.
9746 * command.h (prevent_dont_repeat): Declare.
9747
9748 2011-01-31 Tom Tromey <tromey@redhat.com>
9749
9750 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9751 * python/py-breakpoint.c (bppy_set_silent): Use
9752 breakpoint_set_silent.
9753 (bppy_set_thread): Use breakpoint_set_thread.
9754 (bppy_set_task): Use breakpoint_set_task.
9755 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9756 (breakpoint_set_task): Declare.
9757 (make_breakpoint_silent): Remove.
9758 * breakpoint.c (breakpoint_set_silent): New function.
9759 (breakpoint_set_thread): Likewise.
9760 (breakpoint_set_task): Likewise.
9761 (make_breakpoint_silent): Remove.
9762
9763 2011-01-31 Tom Tromey <tromey@redhat.com>
9764
9765 * breakpoint.h (user_breakpoint_p): Declare.
9766 * breakpoint.c (user_breakpoint_p): New function.
9767 (breakpoint_1): Use it.
9768 (save_breakpoints): Likewise.
9769
9770 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9771
9772 * configure.ac: Add handling of Python distribution on Windows.
9773 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9774 sysconfig variables are not defined, then do not use them.
9775 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9776 instead. On Windows, return all paths using forward-slashes
9777 rather than backslashes.
9778
9779 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9780
9781 * configure.ac: Remove fallback behavior for building
9782 against Python. Remove tweaking of Python include path.
9783 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9784 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9785 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9786 Always restore CPPFLAGS and LIBS after linking test.
9787 * configure: Regenerated.
9788 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9789 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9790 * python/python-internal.h: Adjust includes of Python .h files.
9791
9792 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9793
9794 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9795 in error message.
9796
9797 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9798
9799 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9800 value test.
9801
9802 2011-01-31 Yao Qi <yao@codesourcery.com>
9803
9804 * arm-linux-nat.c: Update calls to regcache_register_status
9805 instead of regcache_valid_p.
9806 * aix-thread.c: Likewise.
9807 * i386gnu-nat.c: Likewise.
9808
9809 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 Fix crash.
9812 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9813 touching TYPE_FIELD_ARTIFICIAL.
9814
9815 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9816
9817 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9818 Committers.
9819
9820 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9821
9822 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9823 selected, don't try iterating over the traceframe's blocks.
9824 (tfile_has_stack): If there's no traceframe selected, then there's
9825 no stack.
9826 (tfile_has_registers): If there's no traceframe selected, then
9827 there's no registers.
9828
9829 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9830
9831 * target.c (memory_xfer_partial): No need to restore shadows if we
9832 haven't read anything.
9833
9834 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9835
9836 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9837 and val_print_scalar_formatted.
9838
9839 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9840
9841 * tracepoint.c (tfile_read): New.
9842 (tfile_open): Use it.
9843 (tfile_get_traceframe_address): Use it.
9844 (tfile_trace_find): Use it.
9845 (walk_blocks_callback_func): New typedef.
9846 (match_blocktype): New function.
9847 (traceframe_walk_blocks): New function.
9848 (traceframe_find_block_type): New function.
9849 (tfile_fetch_registers, tfile_xfer_partial)
9850 (tfile_get_trace_state_variable_value): Use
9851 traceframe_find_block_type and tfile_read.
9852
9853 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9854
9855 * remote-mips.c: Add internationalization mark ups. Remove
9856 trailing \n from already marked up strings.
9857
9858 2011-01-26 Tom Tromey <tromey@redhat.com>
9859
9860 * python/py-prettyprint.c (print_string_repr): Clear
9861 'addressprint' option when calling val_print_string.
9862 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9863 option when calling val_print_string.
9864
9865 2011-01-26 Tom Tromey <tromey@redhat.com>
9866
9867 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9868 GDB_PY_LL_ARG.
9869 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9870 macros.
9871 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9872 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9873 (gdb_py_long_as_ulongest): New defines.
9874 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9875 (gdb_py_int_as_long): Declare.
9876 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9877 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9878 (valpy_long): Add comment.
9879 * python/py-utils.c (get_addr_from_python): Use
9880 gdb_py_long_as_ulongest. Handle overflow properly.
9881 (gdb_py_object_from_longest): New function.
9882 (gdb_py_object_from_ulongest): Likewise.
9883 (gdb_py_int_as_long): Likewise.
9884 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9885 * python/py-symtab.c (salpy_get_pc): Use
9886 gdb_py_long_from_ulongest.
9887 (salpy_get_line): Use PyInt_FromLong.
9888 * python/py-param.c (set_parameter_value): Use
9889 gdb_py_int_as_long.
9890 * python/py-lazy-string.c (stpy_get_address): Use
9891 gdb_py_long_from_ulongest.
9892 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9893 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9894 * python/py-breakpoint.c (bppy_set_thread): Use
9895 gdb_py_int_as_long.
9896 (bppy_set_task): Likewise.
9897 (bppy_set_ignore_count): Likewise.
9898 (bppy_set_hit_count): Likewise.
9899 * python/py-block.c (blpy_get_start): Use
9900 gdb_py_object_from_ulongest.
9901 (blpy_get_end): Likewise.
9902 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9903
9904 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9905
9906 PR/symtab 11766:
9907 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9908 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9909 equality test for objfile, initialize addr_low if needed.
9910
9911 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9912
9913 * tui/tui-regs.c (tui_register_format): Remove dead code.
9914
9915 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9916
9917 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9918 instead of print_scalar_formatted.
9919 (print_scalar_formatted): Don't handle 's' format strings here,
9920 and add an assertion that we never see such format here.
9921 * valprint.h (val_print_scalar_formatted): Declare.
9922 * valprint.c (val_print_scalar_formatted): New.
9923 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9924 instead of print_scalar_formatted.
9925 * jv-valprint.c (java_val_print): Ditto.
9926 * p-valprint.c (pascal_val_print): Ditto.
9927 * ada-valprint.c (ada_val_print_1): Ditto.
9928 * f-valprint.c (f_val_print): Ditto.
9929 * infcmd.c (registers_info): Ditto.
9930 * m2-valprint.c (m2_val_print): Ditto.
9931
9932 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9933
9934 * m2-valprint.c (print_unbounded_array): Pass
9935 value_contents_for_printing rather than value_contents, to
9936 m2_print_array_contents. Also pass in the value.
9937
9938 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9939
9940 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9941 (save_gdb_index_command): Switch to .gdb_index version 4.
9942
9943 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9944
9945 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9946 than frame_register, and always pass a valid value to val_print.
9947
9948 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9949
9950 Centralize printing "<optimized out>".
9951
9952 * valprint.h (val_print_optimized_out): Declare.
9953 * cp-valprint.c (cp_print_value_fields): Use
9954 val_print_optimized_out.
9955 * jv-valprint.c (java_print_value_fields): Ditto.
9956 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9957 * printcmd.c (print_formatted): Ditto.
9958 * valprint.c (valprint_check_validity): Ditto.
9959 (value_check_printable): Ditto.
9960 (val_print_optimized_out): New.
9961
9962 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9963
9964 * infcmd.c (default_print_registers_info): Allocate values so to
9965 never pass a NULL value to val_print.
9966
9967 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9968
9969 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9970 boolean. Make sure to always pass a value that matches the
9971 contents buffer to callees. Preserve `address' for following
9972 iterations.
9973 * value.c (value_contents_for_printing_const): New.
9974 (value_address): Constify value argument.
9975 * value.h (value_contents_for_printing_const): Declare.
9976 (value_address): Constify value argument.
9977
9978 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9979
9980 * regcache.c (struct regcache_descr): Rename
9981 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9982 and sizeof_cooked_register_valid_p to
9983 sizeof_cooked_register_status.
9984 (init_regcache_descr): Adjust.
9985 (struct regcache): Rename register_valid_p field to
9986 register_status.
9987 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9988 (do_cooked_read): Adjust.
9989 (regcache_valid_p): Rename to ...
9990 (regcache_register_status): ... this. Adjust.
9991 (regcache_invalidate): Adjust.
9992 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9993 Adjust.
9994 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9995 as unavailable, not valid.
9996 (regcache_dump): Adjust.
9997 * regcache.h (enum register_status): New.
9998 (regcache_register_status): Declare.
9999 (regcache_invalidate): Delete declaration.
10000 * corelow.c (get_core_registers): Adjust.
10001 * tracepoint.c (tfile_fetch_registers): Adjust.
10002 * trad-frame.c (REG_VALUE): Rename to ...
10003 (TF_REG_VALUE): ... this.
10004 (REG_UNKNOWN): Rename to ...
10005 (TF_REG_UNKNOWN): ... this.
10006 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10007 * mi/mi-main.c (register_changed_p): Adjust.
10008
10009 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10010
10011 * regcache.c (struct regcache_descr): Remove outdated comment.
10012 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10013 overallocate hack.
10014 (regcache_xmalloc): Rename to ...
10015 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10016 Allocate the regcache type accordingly.
10017 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10018 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10019 cooked registers, not raw.
10020 (regcache_dup_no_passthrough): Delete.
10021 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10022 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10023 mention obsolete write_register_bytes.
10024 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10025
10026 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10027
10028 Stop remote_read_bytes from handling partial reads itself.
10029
10030 * remote-fileio.c: Include target.h.
10031 (remote_fileio_write_bytes): Delete.
10032 (remote_fileio_func_open, remote_fileio_func_write)
10033 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10034 target_read_memory.
10035 (remote_fileio_func_stat): Use target_read_memory and
10036 target_write_memory.
10037 (remote_fileio_func_gettimeofday): Use target_write_memory.
10038 (remote_fileio_func_system): Use target_read_memory.
10039 * remote.c (remote_write_bytes): Make it static.
10040 (remote_read_bytes): Don't handle partial reads here.
10041 * remote.h (remote_read_bytes): Delete declaration.
10042
10043 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10044
10045 Simplify XML parsing a bit.
10046
10047 * xml-support.h (gdb_xml_parse_quick): Declare.
10048 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10049 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10050 parameter.
10051 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10052 gdb_xml_create_parser_and_cleanup_1.
10053 (gdb_xml_parse_quick): New.
10054 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10055 * osdata.c (osdata_parse): Ditto.
10056 * remote.c (remote_threads_info): Ditto.
10057 * solib-target.c (solib_target_parse_libraries): Ditto.
10058 * xml-syscall.c (syscall_parse_xml): Ditto.
10059 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10060
10061 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10062
10063 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10064 with remote-mips.o added to gdb_target_obs.
10065 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10066
10067 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10068
10069 * ada-valprint.c (val_print_packed_array_elements): Pass the
10070 correct struct value to val_print.
10071 (ada_val_print_1): Ditto.
10072
10073 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10074
10075 Don't lose embedded_offset in printing routines throughout.
10076
10077 * valprint.h (val_print_array_elements): Change prototype.
10078 * valprint.c (val_print_array_elements): Add `embedded_offset'
10079 parameter, and adjust to pass it down to val_print, while passing
10080 `valaddr' or `address' unmodified. Take embedded_offset into
10081 account when checking repetitions.
10082 * c-valprint.c (c_val_print): Pass embedded_offset to
10083 val_print_array_elements instead of adjusting `valaddr' and
10084 `address'.
10085 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10086 embedded_offset to val_print_array_elements instead of adjusting
10087 `valaddr'.
10088 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10089 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10090 val_print_array_elements and pascal_object_print_value_fields
10091 instead of adjusting `valaddr'.
10092 (pascal_object_print_value_fields): Add `offset' parameter, and
10093 adjust to use it.
10094 (pascal_object_print_value): Add `offset' parameter, and adjust to
10095 use it.
10096 (pascal_object_print_static_field): Use
10097 value_contents_for_printing/value_embedded_offset, rather than
10098 value_contents.
10099 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10100 parameter, and adjust to use it. Use
10101 value_contents_for_printing/value_embedded_offset, rather than
10102 value_contents.
10103 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10104 (ada_val_print_array): Add `offset' parameter, and adjust to use
10105 it.
10106 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10107 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10108 Instead work with offsets. Use
10109 value_contents_for_printing/value_embedded_offset, rather than
10110 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10111 and use value_from_pointer to extract a target pointer, rather
10112 than value_from_longest.
10113 (print_variant_part): Add `offset' parameter. Replace
10114 `outer_valaddr' parameter by a new `outer_offset' parameter.
10115 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10116 (ada_value_print): Use
10117 value_contents_for_printing/value_embedded_offset, rather than
10118 value_contents.
10119 (print_record): Add `offset' parameter, and adjust to pass it
10120 down.
10121 (print_field_values): Add `offset' parameter. Replace
10122 `outer_valaddr' parameter by a new `outer_offset' parameter.
10123 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10124 Use value_contents_for_printing/value_embedded_offset, rather than
10125 value_contents.
10126 * d-valprint.c (dynamic_array_type): Use
10127 value_contents_for_printing/value_embedded_offset, rather than
10128 value_contents.
10129 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10130 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10131 (java_print_value_fields): Take `offset' into account. Don't
10132 re-adjust `valaddr'. Instead pass down adjusted offsets.
10133 (java_val_print): Take `embedded_offset' into account. Pass it to
10134 java_print_value_fields.
10135 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10136 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10137 down adjusted offsets.
10138 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10139 (f_val_print): Take `embedded_offset' into account.
10140
10141 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10142
10143 * inflow.c: Include "gdbcmd.h".
10144 (interactive_mode): New static global, moved here from top.c.
10145 (show_interactive_mode): New function, moved here from top.c.
10146 use gdb_has_a_terminal instead of input_from_terminal_p to
10147 determine the current mode.
10148 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10149 setting.
10150 (_initialize_inflow): Add the "set/show interactive-mode"
10151 commands. Moved here from top.c, after having adjusted slightly
10152 the help text.
10153 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10154 to inflow.c.
10155 (input_from_terminal_p): Remove handling of "interactive-mode"
10156 setting, moved to infow.c.
10157 (init_main): Remove creation of the "set/show interactive-mode"
10158 commands, moved to inflow.c.
10159
10160 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10161
10162 * NEWS: Add entry for native ia64-hpux support.
10163
10164 2011-01-19 Tom Tromey <tromey@redhat.com>
10165
10166 PR mi/8618:
10167 * thread.c (free_thread): Free 'name'.
10168 (print_thread_info): Emit thread name. Change CLI output.
10169 (thread_name_command): New function.
10170 (do_captured_thread_select): Emit newline.
10171 (_initialize_thread): Register 'thread name' command.
10172 * target.h (struct target_ops) <to_thread_name>: New field.
10173 (target_thread_name): New macro.
10174 * target.c (update_current_target): Handle to_thread_name.
10175 * python/py-infthread.c (thpy_get_name): New function.
10176 (thpy_set_name): Likewise.
10177 (thread_object_getset): Add "name".
10178 * linux-nat.c (linux_nat_thread_name): New function.
10179 (linux_nat_add_target): Set to_thread_name.
10180 * gdbthread.h (struct thread_info) <name>: New field.
10181
10182 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10183
10184 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10185 (ada_val_print_1): Likewise.
10186
10187 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10188
10189 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10190 upper limit address is not greater than the function end address
10191 when the upper limit could not be computed using the debugging
10192 info.
10193
10194 2011-01-17 Tom Tromey <tromey@redhat.com>
10195
10196 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10197 get_regcomp_error.
10198 * utils.c: Include gdb_regex.h.
10199 (do_regfree_cleanup): New function.
10200 (make_regfree_cleanup): Likewise.
10201 (get_regcomp_error): Likewise.
10202 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10203
10204 2011-01-17 Tom Tromey <tromey@redhat.com>
10205
10206 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10207 re_compile_fastmap.
10208
10209 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10210
10211 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10212 for internal variables.
10213 (last_was_structop): New static variable.
10214 (COMPLETE): New token.
10215 (field_exp): New rule to group all '.' suffix handling.
10216 Add mark_struct_expression calls when approriate to be able
10217 to correctly find fields for completion.
10218 (yylex): Adapt to handle field completion and set INTVAR when
10219 required.
10220
10221 2011-01-14 Yao Qi <yao@codesourcery.com>
10222
10223 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10224 save_reggroup, restore_reggroup and all_reggroup.
10225
10226 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10227
10228 * ada-valprint. (ada_printchar): Use the correct type length
10229 in call to ada_emit_char.
10230 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10231
10232 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10233
10234 * solib-som.h (hpux_major_release): Declare variable here.
10235 * solib-som.c: Remove <sys/utsname.h> header.
10236 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10237 (hpux_major_release): Make global, change default value to
10238 DEFAULT_HPUX_MAJOR_RELEASE.
10239 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10240 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10241 Add "solib-som.h" header.
10242 (set_hpux_major_release): New function.
10243 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10244
10245 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10246
10247 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10248
10249 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10250
10251 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10252 new-line at end of warning message.
10253 (ia64_hpux_store_register): Remove trailing new-line at end of
10254 error message.
10255 * ia64-hpux-tdep.c: Rephrase comment.
10256 * solib-ia64-hpux.c (struct dld_info): Change type of field
10257 dld_flags from "long long" to ULONGEST.
10258
10259 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10260
10261 * target.h (deprecated_child_ops): Delete declaration.
10262 * target.c (deprecated_child_ops): Delete definition.
10263
10264 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10265
10266 * Makefile.in (hpux-thread.o): Delete rule.
10267 * configure.ac: Don't check for HPUX DCE threads support.
10268 * configure, config.in: Regenerate.
10269 * hppa-hpux-nat.c (child_suppress_run): Delete.
10270 (hppa_hpux_child_can_run): Delete.
10271 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10272 * hpux-thread.c: Delete.
10273
10274 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10275
10276 * hpux-thread.c (hpux_pid_to_str): Delete.
10277
10278 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10279
10280 * ada-valprint.c (ada_emit_char): Remove strange code.
10281 Check that c is <= UCHAR_MAX before passing it to isascii.
10282 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10283
10284 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10285
10286 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10287 to the case where instream is stdin.
10288
10289 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10290
10291 * ia64-tdep.h (struct regcache): Forward declare.
10292 (struct ia64_infcall_ops): New struct type.
10293 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10294 and "infcall_ops".
10295 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10296 Renames ia64_find_global_pointer.
10297 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10298 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10299 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10300 methods.
10301 (ia64_infcall_ops): New static global constant.
10302 (ia64_gdbarch_init): Set tdep->infcall_ops.
10303 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10304 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10305 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10306 (ia64_hpux_dummy_code): New static global constant.
10307 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10308 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10309 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10310 New function.
10311 (ia64_hpux_infcall_ops): New static global constant.
10312 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10313 for inferior function calls to work properly on ia64-hpux.
10314
10315 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10316
10317 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10318 * ia64-tdep.h (struct frame_info): forward declaration.
10319 (struct gdbarch_tdep): Add field size_of_register_frame.
10320 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10321 to determine the size of the register frame.
10322 (ia64_size_of_register_frame): New function.
10323 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10324 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10325 (IA64_HPUX_UREG_REASON): New macro.
10326 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10327 New functions.
10328 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10329 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10330 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10331 objects.
10332
10333 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10334
10335 Add support for ia64-hpux.
10336 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10337 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10338
10339 * configure.host: Add handling for ia64-hpux hosts. Add associated
10340 floatformats.
10341 * configure.tgt: Add handling for ia64-hpux targets.
10342 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10343 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10344 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10345
10346 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10347
10348 [ttrace] Compute thread list immediately after attach.
10349 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10350 New subprogram.
10351 (inf_ttrace_attach): Use it.
10352
10353 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10354
10355 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10356 if we could not determine the frame's function address. Instead,
10357 use the frame's PC, and then continue.
10358
10359 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10360
10361 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10362 not already defined.
10363
10364 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10365
10366 * ia64-tdep.c (ia64_struct_type_p): New function.
10367 (ia64_extract_return_value): Handle integral values that are
10368 less than 8 bytes long.
10369 (ia64_push_dummy_call): Likewise.
10370
10371 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10372
10373 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10374 floatformat_ia64_ext.
10375 (floatformat_ia64_ext_big): New static const.
10376 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10377
10378 2011-01-12 Tom Tromey <tromey@redhat.com>
10379
10380 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10381 messages.
10382 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10383 (mi_cmd_thread_list_ids): Likewise.
10384 (mi_cmd_data_list_changed_registers): Likewise.
10385 (mi_cmd_data_list_register_values): Likewise.
10386 (mi_cmd_data_write_register_values): Likewise.
10387 (mi_cmd_data_evaluate_expression): Likewise.
10388 (mi_cmd_data_read_memory): Likewise.
10389 (mi_cmd_data_read_memory_bytes): Likewise.
10390 (mi_cmd_data_write_memory): Likewise.
10391 (mi_cmd_enable_timings): Likewise.
10392 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10393 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10394 (mi_cmd_var_delete): Likewise.
10395 (mi_cmd_var_set_format): Likewise.
10396 (mi_cmd_var_show_format): Likewise.
10397 (mi_cmd_var_info_num_children): Likewise.
10398 (mi_cmd_var_list_children): Likewise.
10399 (mi_cmd_var_info_type): Likewise.
10400 (mi_cmd_var_info_expression): Likewise.
10401 (mi_cmd_var_show_attributes): Likewise.
10402 (mi_cmd_var_assign): Likewise.
10403 (mi_cmd_var_update): Likewise.
10404 (mi_cmd_enable_pretty_printing): Likewise.
10405 (mi_cmd_var_set_update_range): Likewise.
10406 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10407 messages.
10408 (mi_cmd_target_file_put): Likewise.
10409 (mi_cmd_target_file_delete): Likewise.
10410 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10411 messages.
10412 (mi_cmd_stack_info_depth): Likewise.
10413 (mi_cmd_stack_list_locals): Likewise.
10414 (mi_cmd_stack_list_args): Likewise.
10415 (mi_cmd_stack_select_frame): Likewise.
10416 (mi_cmd_stack_select_frame): Likewise.
10417 (mi_cmd_stack_info_frame): Likewise.
10418 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10419 messages.
10420 (mi_cmd_file_list_exec_source_files): Likewise.
10421 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10422 (mi_cmd_env_cd): Likewise.
10423 (mi_cmd_env_path): Likewise.
10424 (mi_cmd_env_dir): Likewise.
10425 (mi_cmd_inferior_tty_show): Likewise.
10426 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10427 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10428 (mi_cmd_break_watch): Likewise.
10429
10430 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10431
10432 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10433 (ppc_linux_insert_hw_breakpoint): Likewise.
10434 (ppc_linux_remove_hw_breakpoint): Likewise.
10435 (ppc_linux_insert_watchpoint): Likewise.
10436
10437 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10438 Jan Kratochvil <jan.kratochvil@redhat.com>
10439
10440 PR fortran/11104 and DWARF unbound arrays detection.
10441 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10442 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10443 unspecified upper bound.
10444 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10445 variables array_size_array, tmp_type and offset_item. New variable
10446 array. Remove call to f77_get_upperbound. New variables array_type
10447 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10448 the final call to deprecated_set_value_type.
10449
10450 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10451
10452 Make value allocations more lazy.
10453 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10454 instead of allocate_value and set_value_lazy when possible.
10455 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10456 instead of allocate_value and set_value_lazy.
10457 * findvar.c (value_of_register_lazy): Likewise.
10458 (read_var_value): Remove V preallocation, call just check_typedef in
10459 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10460 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10461 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10462 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10463 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10464 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10465 the end, remove set_value_lazy there.
10466 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10467 instead of allocate_value and set_value_lazy when possible.
10468 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10469 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10470 of allocate_value and set_value_lazy.
10471 (value_from_contents_and_address): Use allocate_value_lazy instead of
10472 allocate_value and set_value_lazy when possible.
10473
10474 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10475
10476 * disasm.c (dump_insns): Support dumping opcodes for MI.
10477 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10478 dumping of instruction opcodes.
10479
10480 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10481
10482 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10483 appropiately.
10484
10485 2011-01-11 Tom Tromey <tromey@redhat.com>
10486
10487 * thread.c (do_captured_thread_select): Emit newline before
10488 printing frame.
10489
10490 2011-01-11 Michael Snyder <msnyder@vmware.com>
10491
10492 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10493 * score-tdep.c: Ditto.
10494 * score-tdep.h: Ditto.
10495 * ser-base.c: Ditto.
10496 * ser-go32.c: Ditto.
10497 * serial.c: Ditto.
10498 * serial.h: Ditto.
10499 * ser-mingw.c: Ditto.
10500 * ser-pipe.c: Ditto.
10501 * ser-tcp.c: Ditto.
10502 * ser-unix.c: Ditto.
10503 * sh64-tdep.c: Ditto.
10504 * shnbsd-nat.c: Ditto.
10505 * sh-tdep.c: Ditto.
10506 * sh-tdep.h: Ditto.
10507 * solib.c: Ditto.
10508 * solib-darwin.c: Ditto.
10509 * solib-frv.c: Ditto.
10510 * solib.h: Ditto.
10511 * solib-irix.c: Ditto.
10512 * solib-osf.c: Ditto.
10513 * solib-pa64.c: Ditto.
10514 * solib-som.c: Ditto.
10515 * solib-spu.c: Ditto.
10516 * solib-sunos.c: Ditto.
10517 * solib-svr4.c: Ditto.
10518 * solist.h: Ditto.
10519 * sol-thread.c: Ditto.
10520 * somread.c: Ditto.
10521 * source.c: Ditto.
10522 * source.h: Ditto.
10523 * sparc64-linux-tdep.c: Ditto.
10524 * sparc64-tdep.c: Ditto.
10525 * sparc-linux-nat.c: Ditto.
10526 * sparc-linux-tdep.c: Ditto.
10527 * sparc-sol2-nat.c: Ditto.
10528 * sparc-sol2-tdep.c: Ditto.
10529 * sparc-tdep.c: Ditto.
10530 * sparc-tdep.h: Ditto.
10531 * spu-tdep.c: Ditto.
10532 * stabsread.c: Ditto.
10533 * stabsread.h: Ditto.
10534 * stack.c: Ditto.
10535 * symfile.c: Ditto.
10536 * symfile.h: Ditto.
10537 * symmisc.c: Ditto.
10538 * symtab.c: Ditto.
10539 * symtab.h: Ditto.
10540 * target.c: Ditto.
10541 * target-descriptions.c: Ditto.
10542 * target-descriptions.h: Ditto.
10543 * target.h: Ditto.
10544 * target-memory.c: Ditto.
10545 * terminal.h: Ditto.
10546 * thread.c: Ditto.
10547 * top.c: Ditto.
10548 * tracepoint.c: Ditto.
10549 * tracepoint.h: Ditto.
10550 * trad-frame.h: Ditto.
10551 * typeprint.c: Ditto.
10552
10553 2011-01-11 Michael Snyder <msnyder@vmware.com>
10554
10555 * ui-file.c: Comment cleanup, mostly periods and spaces.
10556 * ui-file.h: Ditto.
10557 * ui-out.c: Ditto.
10558 * ui-out.h: Ditto.
10559 * utils.c: Ditto.
10560 * v850-tdep.c: Ditto.
10561 * valarith.c: Ditto.
10562 * valops.c: Ditto.
10563 * valprint.c: Ditto.
10564 * valprint.h: Ditto.
10565 * value.c: Ditto.
10566 * value.h: Ditto.
10567 * varobj.c: Ditto.
10568 * varobj.h: Ditto.
10569 * vax-tdep.c: Ditto.
10570 * vec.c: Ditto.
10571 * vec.h: Ditto.
10572 * version.h: Ditto.
10573 * windows-nat.c: Ditto.
10574 * windows-tdep.c: Ditto.
10575 * xcoffread.c: Ditto.
10576 * xcoffsolib.c: Ditto.
10577 * xml-support.c: Ditto.
10578 * xstormy16-tdep.c: Ditto.
10579 * xtensa-tdep.c: Ditto.
10580 * xtensa-tdep.h: Ditto.
10581
10582 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10583
10584 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10585 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10586
10587 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10588 Thiago Jung Bauermann <bauerman@br.ibm.com>
10589
10590 Implement support for PowerPC BookE ranged watchpoints.
10591 * breakpoint.h
10592 (struct breakpoint_ops) <resources_needed>: New method.
10593 Initialize to NULL in all existing breakpoint_ops instances.
10594 (struct breakpoint) <exact>: New field.
10595 (target_exact_watchpoints): Declare external global.
10596 * breakpoint.c (target_exact_watchpoints): New global flag.
10597 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10598 b->enable_state to bp_enabled before calling
10599 hw_watchpoint_used_count.
10600 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10601 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10602 if available.
10603 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10604 if the watchpoint is exact.
10605 (resources_needed_watchpoint): New function.
10606 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10607 (watch_command_1): Set b->exact if the user asked for an exact
10608 watchpoint and one can be set.
10609 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10610 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10611 the user asks for an exact watchpoint and one can be set. Return
10612 number of needed debug registers to watch the expression.
10613 * gdbtypes.c (is_scalar_type): New function, based on
10614 valprint.c:scalar_type_p.
10615 (is_scalar_type_recursive): New function.
10616 * gdbtypes.h (is_scalar_type_recursive): Declare.
10617 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10618 handle regions when ranged watchpoints are available.
10619 (create_watchpoint_request): New function.
10620 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10621 create_watchpoint_request.
10622 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10623 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10624 `set powerpc' and `show powerpc' commands.
10625 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10626 Mention documentation comment in the target macro.
10627 (target_region_ok_for_hw_watchpoint): Document return value.
10628
10629 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10630
10631 * breakpoint.c (update_watchpoint): Decide on using a software or
10632 hardware watchpoint after the bp_locations are created.
10633
10634 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10635
10636 Convert hardware watchpoints to use breakpoint_ops.
10637 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10638 <insert_location>: ... this. Return int instead of void.
10639 Accept pointer to struct bp_location instead of pointer to
10640 struct breakpoint. Adapt all implementations.
10641 (breakpoint_ops) <remove>: Rename to...
10642 <remove_location>: ... this. Accept pointer to struct bp_location
10643 instead of pointer to struct breakpoint. Adapt all implementations.
10644 * breakpoint.c (insert_catchpoint): Delete function.
10645 (insert_bp_location): Call the watchpoint or catchpoint's
10646 breakpoint_ops.insert method.
10647 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10648 breakpoint_ops.remove method.
10649 (insert_watchpoint, remove_watchpoint): New functions.
10650 (watchpoint_breakpoint_ops): New structure.
10651 (watch_command_1): Initialize the OPS field.
10652 * inf-child.c (inf_child_insert_fork_catchpoint)
10653 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10654 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10655 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10656 Delete functions.
10657 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10658 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10659 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10660 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10661 * target.c (update_current_target): Change default implementation of
10662 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10663 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10664 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10665 to_set_syscall_catchpoint to return_one.
10666 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10667 (debug_to_insert_exec_catchpoint): Report return value.
10668 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10669 (to_insert_exec_catchpoint): Change declaration to return int instead
10670 of void.
10671
10672 2011-01-11 Michael Snyder <msnyder@vmware.com>
10673
10674 * arm-tdep.c: Internationalization.
10675 * c-lang.c: Ditto.
10676 * charset.c: Ditto.
10677 * fork-child.c: Ditto.
10678 * nto-procfs.c: Ditto.
10679 * ppc-sysv-tdep.c: Ditto.
10680 * procfs.c: Ditto.
10681 * remote-mips.c: Ditto.
10682 * remote.c: Ditto.
10683 * rs6000-nat.c: Ditto.
10684 * rs6000-tdep.c: Ditto.
10685 * target.c: Ditto.
10686 * valops.c: Ditto.
10687 * value.c: Ditto.
10688 * xml-support.c: Ditto.
10689 * mi/mi-cmd-break.c: Ditto.
10690 * mi/mi-cmd-var.c: Ditto.
10691 * mi/mi-interp.c: Ditto.
10692 * mi/mi-main.c: Ditto.
10693
10694 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10695
10696 * remote-sim.c (gdbsim_store_register): Update API to
10697 sim_store_register to check more error conditions.
10698
10699 2011-01-10 Michael Snyder <msnyder@vmware.com>
10700
10701 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10702 * nto-tdep.c: Ditto.
10703 * nto-tdep.h: Ditto.
10704 * objc-exp.y: Ditto.
10705 * objc-lang.c: Ditto.
10706 * objfiles.c: Ditto.
10707 * objfiles.h: Ditto.
10708 * observer.c: Ditto.
10709 * opencl-lang.c: Ditto.
10710 * osabi.c: Ditto.
10711 * parse.c: Ditto.
10712 * parser-defs.h: Ditto.
10713 * p-exp.y: Ditto.
10714 * p-lang.c: Ditto.
10715 * posix-hdep.c: Ditto.
10716 * ppcbug-rom.c: Ditto.
10717 * ppc-linux-nat.c: Ditto.
10718 * ppc-linux-tdep.c: Ditto.
10719 * ppc-linux-tdep.h: Ditto.
10720 * ppcnbsd-tdep.c: Ditto.
10721 * ppcobsd-tdep.c: Ditto.
10722 * ppcobsd-tdep.h: Ditto.
10723 * ppc-sysv-tdep.c: Ditto.
10724 * ppc-tdep.h: Ditto.
10725 * printcmd.c: Ditto.
10726 * proc-abi.c: Ditto.
10727 * proc-flags.c: Ditto.
10728 * procfs.c: Ditto.
10729 * proc-utils.h: Ditto.
10730 * progspace.h: Ditto.
10731 * prologue-value.c: Ditto.
10732 * prologue-value.h: Ditto.
10733 * psympriv.h: Ditto.
10734 * psymtab.c: Ditto.
10735 * p-typeprint.c: Ditto.
10736 * p-valprint.c: Ditto.
10737 * ravenscar-sparc-thread.c: Ditto.
10738 * ravenscar-thread.c: Ditto.
10739 * ravenscar-thread.h: Ditto.
10740 * record.c: Ditto.
10741 * regcache.c: Ditto.
10742 * regcache.h: Ditto.
10743 * remote.c: Ditto.
10744 * remote-fileio.c: Ditto.
10745 * remote-fileio.h: Ditto.
10746 * remote.h: Ditto.
10747 * remote-m32r-sdi.c: Ditto.
10748 * remote-mips.c: Ditto.
10749 * remote-sim.c: Ditto.
10750 * rs6000-aix-tdep.c: Ditto.
10751 * rs6000-nat.c: Ditto.
10752 * rs6000-tdep.c: Ditto.
10753
10754 2011-01-10 Michael Snyder <msnyder@vmware.com>
10755
10756 * charset.c (validate): Internationalization.
10757 * coffread.c (read_one_sym): Ditto.
10758 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10759 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10760 * inflow.c (new_tty): Ditto.
10761 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10762 * m32c-tdep.c (m32c_return_value): Ditto.
10763 * mep-tdep.c (mep_store_return_value): Ditto.
10764 * score-tdep.c (score7_fetch_insn): Ditto.
10765 * ser-mingw.c (pipe_windows_open): Ditto.
10766 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10767 * spu-tdep.c (spu_register_type): Ditto.
10768 * tracepoint.c (trace_find_command): Ditto.
10769 * valarith.c (value_pos): Ditto.
10770
10771 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10772
10773 * ada-valprint.c (printstr): Minor comment reformatting.
10774
10775 2011-01-08 Michael Snyder <msnyder@vmware.com>
10776
10777 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10778 markup.
10779
10780 2011-01-08 Michael Snyder <msnyder@vmware.com>
10781
10782 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10783 * hppa-hpux-tdep.c: Ditto.
10784 * hppa-linux-nat.c: Ditto.
10785 * hppa-linux-tdep.c: Ditto.
10786 * hppanbsd-tdep.c: Ditto.
10787 * hppa-tdep.c: Ditto.
10788 * hppa-tdep.h: Ditto.
10789 * hpux-thread.c: Ditto.
10790 * i386-cygwin-tdep.c: Ditto.
10791 * i386-darwin-nat.c: Ditto.
10792 * i386gnu-nat.c: Ditto.
10793 * i386-linux-nat.c: Ditto.
10794 * i386-linux-tdep.c: Ditto.
10795 * i386-nat.c: Ditto.
10796 * i386-nat.h: Ditto.
10797 * i386nbsd-tdep.c: Ditto.
10798 * i386-sol2-nat.c: Ditto.
10799 * i386-stub.c: Ditto.
10800 * i386-tdep.c: Ditto.
10801 * i386-tdep.h: Ditto.
10802 * i387-tdep.c: Ditto.
10803 * ia64-linux-nat.c: Ditto.
10804 * ia64-linux-tdep.c: Ditto.
10805 * ia64-tdep.c: Ditto.
10806 * infcall.c: Ditto.
10807 * infcall.h: Ditto.
10808 * infcmd.c: Ditto.
10809 * inferior.c: Ditto.
10810 * inferior.h: Ditto.
10811 * infloop.c: Ditto.
10812 * inflow.c: Ditto.
10813 * infrun.c: Ditto.
10814 * interps.c: Ditto.
10815 * interps.h: Ditto.
10816 * iq2000-tdep.c: Ditto.
10817 * irix5-nat.c: Ditto.
10818 * jit.c: Ditto.
10819 * jit.h: Ditto.
10820 * jv-exp.y: Ditto.
10821 * jv-lang.c: Ditto.
10822 * jv-lang.h: Ditto.
10823 * jv-typeprint.c: Ditto.
10824 * jv-valprint.c: Ditto.
10825 * language.c: Ditto.
10826 * language.h: Ditto.
10827 * linespec.c: Ditto.
10828 * linux-fork.c: Ditto.
10829 * linux-nat.c: Ditto.
10830 * linux-thread-db.c: Ditto.
10831 * lm32-tdep.c: Ditto.
10832
10833 2011-01-08 Michael Snyder <msnyder@vmware.com>
10834
10835 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10836 * m2-lang.c: Ditto.
10837 * m2-typeprint.c: Ditto.
10838 * m2-valprint.c: Ditto.
10839 * m32c-tdep.c: Ditto.
10840 * m32r-linux-nat.c: Ditto.
10841 * m32r-rom.c: Ditto.
10842 * m32r-tdep.c: Ditto.
10843 * m32r-tdep.h: Ditto.
10844 * m68hc11-tdep.c: Ditto.
10845 * m58klinux-nat.c: Ditto.
10846 * m68k-tdep.c: Ditto.
10847 * m88k-tdep.c: Ditto.
10848 * m88k-tdep.h: Ditto.
10849 * machoread.c: Ditto.
10850 * macrocmd.c: Ditto.
10851 * macroexp.c: Ditto.
10852 * macrotab.c: Ditto.
10853 * main.c: Ditto.
10854 * maint.c: Ditto.
10855 * mdebugread.c: Ditto.
10856 * mdebugread.h: Ditto.
10857 * memattr.c: Ditto.
10858 * memattr.h: Ditto.
10859 * memory-map.h: Ditto.
10860 * mep-tdep.c: Ditto.
10861 * microblaze-rom.c: Ditto.
10862 * microblaze-tdep.c: Ditto.
10863 * minsyms.c: Ditto.
10864 * mips-irix-tdep.c: Ditto.
10865 * mips-linux-nat.c: Ditto.
10866 * mips-linux-tdep.c: Ditto.
10867 * mips-linux-tdep.h: Ditto.
10868 * mipsnbsd-nat.c: Ditto.
10869 * mipsnbsd-tdep.c: Ditto.
10870 * mipsread.c: Ditto.
10871 * mips-tdep.c: Ditto.
10872 * mips-tdep.h: Ditto.
10873 * mn10300-linux-tdep.c: Ditto.
10874 * mn10300-tdep.c: Ditto.
10875 * mn10300-tdep.h: Ditto.
10876 * monitor.c: Ditto.
10877 * monitor.h: Ditto.
10878 * moxie-tdep.c: Ditto.
10879 * moxie-tdep.h: Ditto.
10880 * mt-tdep.c: Ditto.
10881
10882 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10883
10884 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10885
10886 2011-01-08 Robert Millan <rmh@gnu.org>
10887
10888 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10889
10890 2011-01-07 Michael Snyder <msnyder@vmware.com>
10891
10892 * charset.c (_initialize_charset): Fix typo in string.
10893
10894 2011-01-07 Michael Snyder <msnyder@vmware.com>
10895
10896 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10897 for i18n.
10898 * tui/tui-layout.c (tui_set_layout_for_display_command):
10899 Split line so that operator goes to beginning of line.
10900 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10901 assignment out of if statement.
10902
10903 2011-01-07 Michael Snyder <msnyder@vmware.com>
10904
10905 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10906 * ada-lang.h: Ditto.
10907 * ada-tasks.c: Ditto.
10908 * ada-valprint.c: Ditto.
10909 * aix-threads.c: Ditto.
10910 * alpha-linux-nat.c: Ditto.
10911 * alpha-linux-tdep.c: Ditto.
10912 * alpha-mdebug-tdep.c: Ditto.
10913 * alpha-nat.c: Ditto.
10914 * alpha-osf1-tdep.c: Ditto.
10915 * alpha-tdep.c: Ditto.
10916 * alphabsd-nat.c: Ditto.
10917 * alphabsd-tdep.c: Ditto.
10918 * amd64-darwin-tdep.c: Ditto.
10919 * amd64-linux-nat.c: Ditto.
10920 * amd64-linux-tdep.c: Ditto.
10921 * amd64-sol2-tdep.c: Ditto.
10922 * amd64-tdep.c: Ditto.
10923 * amd64-fbsd-tdep.c: Ditto.
10924 * amd64-nbsd-tdep.c: Ditto.
10925 * amd64-obsd-tdep.c: Ditto.
10926 * amd64-linux-nat.c: Ditto.
10927 * amd64-linux-tdep.c: Ditto.
10928 * arm-tdep.c: Ditto.
10929 * arm-tdep.h: Ditto.
10930 * armnbsd-nat.c: Ditto.
10931 * avr-tdep.c: Ditto.
10932 * bfin-tdep.c: Ditto.
10933 * bsd-kvm.c: Ditto.
10934 * c-typeprintc: Ditto.
10935 * c-valprint.c: Ditto.
10936 * coff-pe-read.h: Ditto.
10937 * coffreead.c: Ditto.
10938 * cris-tdep.c: Ditto.
10939 * d-lang.c: Ditto.
10940 * darwin-nat-info.c: Ditto.
10941 * darwin-nat.c: Ditto.
10942 * dbug-rom.c: Ditto.
10943 * dbxread.c: Ditto.
10944 * dcache.c: Ditto.
10945 * dcache.h: Ditto.
10946 * dec-thread.c: Ditto.
10947 * defs.h: Ditto.
10948 * demangle.c: Ditto.
10949 * dicos-tdep.c: Ditto.
10950 * dictionary.c: Ditto.
10951 * dictionary.h: Ditto.
10952 * dink32-rom.c: Ditto.
10953 * disasm.c: Ditto.
10954 * doublest.c: Ditto.
10955 * dsrec.c: Ditto.
10956 * dummy-frame.c: Ditto.
10957 * dwarf2-frame.c: Ditto.
10958 * dwarf2expr.c: Ditto.
10959 * dwarf2loc.c: Ditto.
10960 * dwarf2read.c: Ditto.
10961 * elfread.c: Ditto.
10962 * environ.c: Ditto.
10963 * eval.c: Ditto.
10964 * event-top.h: Ditto.
10965 * exceptions.c: Ditto.
10966 * exceptions.h: Ditto.
10967 * exec.c: Ditto.
10968 * expprint.c: Ditto.
10969 * expression.h: Ditto.
10970 * f-exp.y: Ditto.
10971 * f-lang.c: Ditto.
10972 * f-lang.h: Ditto.
10973 * f-typeprint.c: Ditto.
10974 * f-valprint.c: Ditto.
10975 * fbsd-nat.c: Ditto.
10976 * findvar.c: Ditto.
10977 * fork-child.c: Ditto.
10978 * frame.c: Ditto.
10979 * frame.h: Ditto.
10980 * frv-linux-tdep.c: Ditto.
10981 * frv-tdep.c: Ditto.
10982 * gcore.c: Ditto.
10983 * gdb-stabs.h: Ditto.
10984 * gdb_assert.h: Ditto.
10985 * gdb_string.h: Ditto.
10986 * gdb_thread_db.h: Ditto.
10987 * gdb_wait.h: Ditto.
10988 * gdbarch.sh: Ditto.
10989 * gdbcore.h: Ditto.
10990 * gdbthread.h: Ditto.
10991 * gdbtypes.c: Ditto.
10992 * gdbtypes.h: Ditto.
10993 * gnu-nat.c: Ditto.
10994 * gnu-nat.h: Ditto.
10995 * gnu-v2-abi.c: Ditto.
10996 * gnu-v3-abi.c: Ditto.
10997 * go32-nat.c: Ditto.
10998 * gdbarch.c: Regenerate.
10999 * gdbarch.h: Regenerate.
11000
11001 2011-01-07 Michael Snyder <msnyder@vmware.com>
11002
11003 * ax-gdb.c: Adjust some long output strings.
11004 * breakpoint.c: Ditto.
11005 * charset.c: Ditto.
11006 * cp-abi.c: Ditto.
11007 * infcall.c: Ditto.
11008 * infrun.c: Ditto.
11009 * linux-nat.c: Ditto.
11010 * solib-pa64.c: Ditto.
11011 * solib-som.c: Ditto.
11012
11013 2011-01-06 Tom Tromey <tromey@redhat.com>
11014
11015 PR python/12367:
11016 * NEWS: Add item.
11017 * python/python.c (GdbMethods): Add "newest_frame" method.
11018 * python/python-internal.h (gdbpy_newest_frame): Declare.
11019 * python/py-frame.c (gdbpy_newest_frame): New function.
11020
11021 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11022
11023 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11024 * jit.c (jit_debug): New variable.
11025 (show_jit_debug): New function.
11026 (struct target_buffer): Use ULONGEST.
11027 (bfd_open_from_target_memory): Likewise.
11028 (jit_register_code, jit_inferior_init): Add debug output.
11029 (_initialize_jit): Register "debug jit" command.
11030
11031 2011-01-06 Tom Tromey <tromey@redhat.com>
11032
11033 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11034 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11035 and ARCH_FRAME.
11036
11037 2011-01-06 Tom Tromey <tromey@redhat.com>
11038
11039 * python/py-frame.c (frapy_block): Use get_frame_block.
11040
11041 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11042
11043 Do not stop on SIGPRIO signals by default
11044 * infrun.c (_initialize_infrun): Unset signal_stop and
11045 signal_print for TARGET_SIGNAL_PRIO.
11046
11047 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11048
11049 * ada-tasks.c: Fix style violation in comment.
11050
11051 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11052
11053 * linespec.c (decode_compound, find_method): Remove trailing \n
11054 at end of error string.
11055 * solib-irix.c (irix_current_sos): Likewise.
11056 * varobj.c (uninstall_variable): Likewise.
11057
11058 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11059
11060 * copyright.py: New script.
11061 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11062 Launch emacs without exec'ing. Call copyright.py afterwards.
11063
11064 2011-01-05 Michael Snyder <msnyder@vmware.com>
11065
11066 * addrmap.c: Shorten lines of >= 80 columns.
11067 * arch-utils.c: Ditto.
11068 * arch-utils.h: Ditto.
11069 * ax-gdb.c: Ditto.
11070 * ax-general.c: Ditto.
11071 * bcache.c: Ditto.
11072 * blockframe.c: Ditto.
11073 * breakpoint.c: Ditto.
11074 * buildsym.c: Ditto.
11075 * c-lang.c: Ditto.
11076 * c-typeprint.c: Ditto.
11077 * charset.c: Ditto.
11078 * coffread.c: Ditto.
11079 * command.h: Ditto.
11080 * corelow.c: Ditto.
11081 * cp-abi.c: Ditto.
11082 * cp-namespace.c: Ditto.
11083 * cp-support.c: Ditto.
11084 * dbug-rom.c: Ditto.
11085 * dbxread.c: Ditto.
11086 * defs.h: Ditto.
11087 * dfp.c: Ditto.
11088 * dfp.h: Ditto.
11089 * dictionary.c: Ditto.
11090 * disasm.c: Ditto.
11091 * doublest.c: Ditto.
11092 * dwarf2-frame.c: Ditto.
11093 * dwarf2expr.c: Ditto.
11094 * dwarf2loc.c: Ditto.
11095 * dwarf2read.c: Ditto.
11096 * elfread.c: Ditto.
11097 * eval.c: Ditto.
11098 * event-loop.c: Ditto.
11099 * event-loop.h: Ditto.
11100 * exceptions.h: Ditto.
11101 * exec.c: Ditto.
11102 * expprint.c: Ditto.
11103 * expression.h: Ditto.
11104 * f-lang.c: Ditto.
11105 * f-valprint.c: Ditto.
11106 * findcmd.c: Ditto.
11107 * frame-base.c: Ditto.
11108 * frame-unwind.c: Ditto.
11109 * frame-unwind.h: Ditto.
11110 * frame.c: Ditto.
11111 * frame.h: Ditto.
11112 * gcore.c: Ditto.
11113 * gdb-stabs.h: Ditto.
11114 * gdb_assert.h: Ditto.
11115 * gdb_dirent.h: Ditto.
11116 * gdb_obstack.h: Ditto.
11117 * gdbcore.h: Ditto.
11118 * gdbtypes.c: Ditto.
11119 * gdbtypes.h: Ditto.
11120 * inf-ttrace.c: Ditto.
11121 * infcall.c: Ditto.
11122 * infcmd.c: Ditto.
11123 * inflow.c: Ditto.
11124 * infrun.c: Ditto.
11125 * inline-frame.h: Ditto.
11126 * language.c: Ditto.
11127 * language.h: Ditto.
11128 * libunwind-frame.c: Ditto.
11129 * libunwind-frame.h: Ditto.
11130 * linespec.c: Ditto.
11131 * linux-nat.c: Ditto.
11132 * linux-nat.h: Ditto.
11133 * linux-thread-db.c: Ditto.
11134 * machoread.c: Ditto.
11135 * macroexp.c: Ditto.
11136 * macrotab.c: Ditto.
11137 * main.c: Ditto.
11138 * maint.c: Ditto.
11139 * mdebugread.c: Ditto.
11140 * memattr.c: Ditto.
11141 * minsyms.c: Ditto.
11142 * monitor.c: Ditto.
11143 * monitor.h: Ditto.
11144 * objfiles.c: Ditto.
11145 * objfiles.h: Ditto.
11146 * osabi.c: Ditto.
11147 * p-typeprint.c: Ditto.
11148 * p-valprint.c: Ditto.
11149 * parse.c: Ditto.
11150 * printcmd.c: Ditto.
11151 * proc-events.c: Ditto.
11152 * procfs.c: Ditto.
11153 * progspace.c: Ditto.
11154 * progspace.h: Ditto.
11155 * psympriv.h: Ditto.
11156 * psymtab.c: Ditto.
11157 * record.c: Ditto.
11158 * regcache.c: Ditto.
11159 * regcache.h: Ditto.
11160 * remote-fileio.c: Ditto.
11161 * remote.c: Ditto.
11162 * ser-mingw.c: Ditto.
11163 * ser-tcp.c: Ditto.
11164 * ser-unix.c: Ditto.
11165 * serial.c: Ditto.
11166 * serial.h: Ditto.
11167 * solib-frv.c: Ditto.
11168 * solib-irix.c: Ditto.
11169 * solib-osf.c: Ditto.
11170 * solib-pa64.c: Ditto.
11171 * solib-som.c: Ditto.
11172 * solib-sunos.c: Ditto.
11173 * solib-svr4.c: Ditto.
11174 * solib-target.c: Ditto.
11175 * solib.c: Ditto.
11176 * somread.c: Ditto.
11177 * source.c: Ditto.
11178 * stabsread.c: Ditto.
11179 * stabsread.c: Ditto.
11180 * stack.c: Ditto.
11181 * stack.h: Ditto.
11182 * symfile-mem.c: Ditto.
11183 * symfile.c: Ditto.
11184 * symfile.h: Ditto.
11185 * symmisc.c: Ditto.
11186 * symtab.c: Ditto.
11187 * symtab.h: Ditto.
11188 * target-descriptions.c: Ditto.
11189 * target-memory.c: Ditto.
11190 * target.c: Ditto.
11191 * target.h: Ditto.
11192 * terminal.h: Ditto.
11193 * thread.c: Ditto.
11194 * top.c: Ditto.
11195 * tracepoint.c: Ditto.
11196 * tracepoint.h: Ditto.
11197 * ui-file.c: Ditto.
11198 * ui-file.h: Ditto.
11199 * ui-out.h: Ditto.
11200 * user-regs.c: Ditto.
11201 * user-regs.h: Ditto.
11202 * utils.c: Ditto.
11203 * valarith.c: Ditto.
11204 * valops.c: Ditto.
11205 * valprint.c: Ditto.
11206 * valprint.h: Ditto.
11207 * value.c: Ditto.
11208 * varobj.c: Ditto.
11209 * varobj.h: Ditto.
11210 * vec.h: Ditto.
11211 * xcoffread.c: Ditto.
11212 * xcoffsolib.c: Ditto.
11213 * xcoffsolib.h: Ditto.
11214 * xml-syscall.c: Ditto.
11215 * xml-tdesc.c: Ditto.
11216
11217 2011-01-05 Michael Snyder <msnyder@vmware.com>
11218
11219 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11220 * cli/cli-decode.c: Ditto.
11221 * cli/cli-dump.c: Ditto.
11222 * cli/cli-logging.c: Ditto.
11223 * cli/cli-script.c: Ditto.
11224 * cli/cli-setshow.c: Ditto.
11225 * common/signals.c: Ditto.
11226 * mi/mi-cmd-break.c: Ditto.
11227 * mi/mi-cmd-disas.c: Ditto.
11228 * mi/mi-cmd-stack.c: Ditto.
11229 * mi/mi-cmd-var.c: Ditto.
11230 * mi/mi-cmds.c: Ditto.
11231 * mi/mi-common.h: Ditto.
11232 * mi/mi-console.c: Ditto.
11233 * mi/mi-interp.c: Ditto.
11234 * mi/mi-main.c: Ditto.
11235 * osf-share/cma_attr.c: Ditto.
11236 * osf-share/cma_deb_core.h: Ditto.
11237 * osf-share/cma_debug_client.h: Ditto.
11238 * osf-share/cma_handle.h: Ditto.
11239 * osf-share/cma_mutex.h: Ditto.
11240 * osf-share/cma_stack_int.h: Ditto.
11241 * osf-share/cma_tcb_defs.h: Ditto.
11242 * python/py-auto-load.c: Ditto.
11243 * python/py-breakpoint.c: Ditto.
11244 * python/py-cmd.c: Ditto.
11245 * python/py-frame.c: Ditto.
11246 * python/py-objfile.c: Ditto.
11247 * python/py-param.c: Ditto.
11248 * python/py-progspace.c: Ditto.
11249 * python/py-symbol.c: Ditto.
11250 * python/py-value.c: Ditto.
11251 * python/python-internal.h: Ditto.
11252 * python/python.c: Ditto.
11253 * tui/tui-data.c: Ditto.
11254 * tui/tui-disasm.c: Ditto.
11255 * tui/tui-hooks.c: Ditto.
11256 * tui/tui-io.c: Ditto.
11257 * tui/tui-layout.c: Ditto.
11258 * tui/tui-regs.c: Ditto.
11259 * tui/tui-source.c: Ditto.
11260 * tui/tui-stack.c: Ditto.
11261 * tui/tui-win.c: Ditto.
11262 * tui/tui-windata.c: Ditto.
11263 * tui/tui-winsource.c: Ditto.
11264
11265 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11266
11267 * configure.ac, gdb.1: Copyright year update.
11268
11269 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11270
11271 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11272 this_pc_in_block, morestack_msym and morestack_name. Check for
11273 "__morestack" minimal symbol there.
11274
11275 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11276
11277 * symfile.c (find_sym_fns): Add call to dont_repeat.
11278
11279 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11280
11281 Copyright year update in most files (performed by copyright.sh).
11282
11283 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11284
11285 * top.c (print_gdb_version): Update copyright year in version output.
11286
11287 For older changes see ChangeLog-2010.
11288 \f
11289 Local Variables:
11290 mode: change-log
11291 left-margin: 8
11292 fill-column: 74
11293 version-control: never
11294 coding: utf-8
11295 End:
This page took 0.463446 seconds and 4 git commands to generate.