]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9750bca9
JK
12011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 PR breakpoints/13346
4 * dwarf2read.c (process_psymtab_comp_unit): Set
5 PSYMTABS_ADDRMAP_SUPPORTED.
6 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
7 validity. New field psymtabs_addrmap_supported.
8 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
9 psymtabs_addrmap_supported.
10 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
11 !PSYMTABS_ADDRMAP_SUPPORTED.
12 (dump_psymtab, maintenance_info_psymtabs): Print also
13 psymtabs_addrmap_supported.
14
f28c316a
DE
152011-12-01 Doug Evans <dje@google.com>
16
17 * python/py-type.c (type_object_methods): Fix "array" doc string.
18
fc0ae648
AB
192011-12-01 Andrew Burgess <aburgess@broadcom.com>
20
21 * source.c (print_source_lines_base): Fix missing braces on else
22 clause leading to additional output.
23
d6db1fab
UW
242011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
25
26 * s390-nat.c (SUBOFF): Remove.
27 (s390_native_supply, s390_native_collect): New functions.
28 (supply_gregset, supply_fpregset): Use s390_native_supply.
29 (fill_gregset, fill_fpregset): Use s390_native_collect.
30
31 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
32 (s390_unwind_pseudo_register): New function.
33 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
34 registers instead of PC and CC.
35 (s390_backchain_frame_unwind_cache): Likewise.
36 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
37 full GPR pseudos.
38 (s390_trad_frame_prev_register): New function.
39 (s390_frame_prev_register): Use it.
40 (s390_sigtramp_frame_prev_register): Likewise.
41 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
42 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
43 special callback to unwind any pseudo.
44
45 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
46 * features/s390-core64.xml: Likewise.
47 * features/s390x-core64.xml: Likewise.
48 * features/s390-linux32.c: Regenerate.
49 * features/s390-linux64.c: Likewise.
50 * features/s390x-linux64.c: Likewise.
51
1dd635ac
UW
522011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
53
54 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
55
0161e4b9
UW
562011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
57
58 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
59 instruction. Add more diagnostic output.
60
0c36327f
AS
612011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
62
63 * MAINTAINERS (Write After Approval): Add myself to the list.
64
b4264740
SD
652011-11-29 Sanjoy Das <sdas@igalia.com>
66
67 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
68 (jit_bfd_try_read_symtab): Fix comments.
69
87326c78
DD
702011-11-28 DJ Delorie <dj@redhat.com>
71
72 * NEWS: Mention RL78 simulator.
73
1e3a8f45
JB
742011-11-28 Joel Brobecker <brobecker@adacore.com>
75
76 * symfile.h (struct quick_symbol_functions): Fix the documentation
77 of field map_matching_symbols, as symbols are sorted using
78 strcmp_iw_ordered, not strcmp_iw.
79
265e52c3
JB
802011-11-28 Paul Hilfinger <hilfinger@adacore.com>
81
82 * symfile.h (struct quick_symbol_functions): Update the
83 documentation for field map_matching_symbols.
84
1a1d5513
JB
852011-11-28 Joel Brobecker <brobecker@adacore.com>
86
87 * ada-lang.c (compare_names): Fix wrong return value in case
88 string1 starts with the same contents as string2, followed
89 by an underscore that do not start a symbol name suffix.
90
5d9c5995
PM
912011-11-28 Phil Muldoon <pmuldoon@redhat.com>
92
93 PR python/13369
94 PR python/13374
95
96 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
97 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
98 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
99 exceptions.
100 * python/py-type.c (typy_strip_typedefs): Ditto.
101 (typy_legacy_template_argument): Ditto.
102 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
103 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
104
2bf50f6f
JB
1052011-11-27 Joel Brobecker <brobecker@acacore.com>
106
107 * remote.c (remote_get_tracepoint_status): Delete addrbuf
108 local variable. Avoid use of sprintf_vma.
109
744ab88c
SD
1102011-11-27 Sanjoy Das <sdas@igalia.com>
111
112 Fix regression in jit.exp.
113 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
114 (jit_register_code): Set the jit_objfile_data field to the correct
115 value.
116
46ad3598
UW
1172011-11-25  Uros Bizjak  <ubizjak@gmail.com>
118
119 * alpha-tdep.c (br_opcode): New.
120 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
121 (alpha_deal_with_atomic_sequence): New function.
122 (alpha_gdbarch_init): Handle single stepping of atomic sequences
123 with alpha_deal_with_atomic_sequence.
124
e4c5f296
TG
1252011-11-24 Tristan Gingold <gingold@adacore.com>
126
127 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
128 fields. Add oso_sym, end_sym and nbr_syms.
129 (macho_register_oso): Change interface.
130 (macho_symtab_add_minsym): New function.
131 (macho_symtab_read): Rewritten.
132 (get_archive_prefix_len): Remove trailing blanks.
133 (oso_el_compare_name): Add comment.
134 (struct macho_sym_hash_entry): New structure.
135 (macho_relocate_common_syms): Remove.
136 (macho_sym_hash_newfunc): New function.
137 (macho_resolve_oso_sym_with_minsym): Likewise.
138 (macho_add_oso_symfile): Rewritten.
139 (macho_symfile_read_all_oso): Remove trailing blanks.
140 Adjust code to free oso vector.
141 (macho_symfile_read): Likewise.
142 Move code to initialize minimal symbol
143
130854df
MR
1442011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
145
146 * mips-tdep.c (extended_offset): Fix formatting.
147
3d7bb9d9
DE
1482011-11-23 Doug Evans <dje@google.com>
149
150 * dwarf2read.c (dw2_lookup_symtab): Add comment.
151 (dw2_expand_symtabs_with_filename): Ditto.
152 (dw2_expand_symtabs_matching): Ditto.
153 (dw2_map_symbol_filenames): Ditto.
154
1fbf5ada
JB
1552011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
156
157 * ada-lang.c (assign_aggregate): Minor reformatting.
158
d984108d
JB
1592011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
160
161 * ada-lang.c (assign_aggregate): Remove declaration of local
162 variable `i' which is shadowing another variable with the same
163 name declared in the outer scope.
164
18af8284
JB
1652011-11-23 Joel Brobecker <brobecker@adacore.com>
166
167 * ada-lang.c (get_base_type): Renames base_type. Adjust all
168 calls throughout this file.
169
1fc7b5d7
JB
1702011-11-23 Joel Brobecker <brobecker@adacore.com>
171
172 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
173 FormatMessage.
174
36dfb11c
TT
1752011-11-22 Tom Tromey <tromey@redhat.com>
176
177 PR mi/8444:
178 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
179 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
180 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
181 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
182 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
183 (print_it_catch_syscall, print_it_catch_exec)
184 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
185 (bpstat_print): Add 'kind' argument. Handle
186 TARGET_WAITKIND_LOADED.
187 * infrun.c (normal_stop): Update for bpstat_print change. Don't
188 handle TARGET_WAITKIND_LOADED here.
189 * breakpoint.h (bpstat_print): Update.
190
5bd6aa83
TT
1912011-11-22 Tom Tromey <tromey@redhat.com>
192
193 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
194
f5afdc18
TT
1952011-11-22 Tom Tromey <tromey@redhat.com>
196
197 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
198 Use static_assert to check the size of
199 async_reason_string_lookup.
200 * common/gdb_assert.h (static_assert): New macro.
201
a3769e0c
AM
2022011-11-22 Alan Modra <amodra@gmail.com>
203
204 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
205 destination calculation. Don't expect >> to sign extend. Don't
206 add a break if branch lands inside the sequence anywhere.
207
56767571
KS
2082011-11-21 Keith Seitz <keiths@redhat.com>
209
210 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
211 -var-evaluate-expression of an enumeration and fix expected result.
212 * gdb.mi/mi2-varvdisplay.exp: Likewise.
213
8443c207
KY
2142011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
215
216 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
217 the case where osdata->items is empty. Rename column names to a
218 canonical form to avoid problems with unusual column names.
219
97643830
YQ
2202011-11-21 Yao Qi <yao@codesourcery.com>
221
222 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
223
f196051f
SS
2242011-11-20 Stan Shebs <stan@codesourcery.com>
225
226 * NEWS: Mention tracepoint additions.
227 * breakpoint.h (struct tracepoint): New field traceframe_usage.
228 * breakpoint.c (print_one_breakpoint_location): Identify
229 tracepoints as such when reporting hit counts, report
230 trace buffer usage.
231 (create_tracepoint_from_upload): Copy status info.
232 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
233 add fields user_name, notes, start_time, stop_time.
234 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
235 * tracepoint.c (trace_user): New global.
236 (trace_notes): New global.
237 (trace_stop_notes): New global.
238 (start_tracing): Add argument and trace note handling.
239 (stop_tracing): Ditto.
240 (trace_start_command): Add notes argument.
241 (trace_stop_command): Ditto.
242 (trace_status_command): Report additional status info.
243 (trace_status_mi): Similarly.
244 (trace_save): Update, record tracepoint status.
245 (set_disconnected_tracing): Call target method directly.
246 (send_disconnected_tracing_value): Remove.
247 (set_trace_user): New function.
248 (set_trace_notes): New function.
249 (set_trace_stop_notes): New function.
250 (parse_trace_status): Handle additional status.
251 (parse_tracepoint_status): New function.
252 (parse_tracepoint_definition): Call it.
253 (tfile_get_tracepoint_status): New function.
254 (init_tfile_ops): Use it.
255 (_initialize_tracepoint): Add new setshows.
256 * target.h (struct target_ops): New methods to_get_tracepoint_status
257 and to_set_trace_notes.
258 (target_get_tracepoint_status): New macro.
259 (target_set_trace_notes): New macro.
260 * target.c (update_current_target): Add new methods.
261 * remote.c (remote_get_tracepoint_status): New function.
262 (remote_set_trace_notes): New function.
263 (init_remote_ops): Add them.
264 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
265 (mi_cmd_trace_stop): Ditto.
266
3623dc3a
SD
2672011-11-20 Sanjoy Das <sdas@igalia.com>
268
269 * jit.c: Include regcache.h.
270 (jit_gdbarch_data, jit_frame_unwind): New static variables.
271 (jit_unwind_reg_set_impl, free_reg_value_impl)
272 (jit_unwind_reg_get_impl, jit_frame_sniffer)
273 (jit_frame_unwind_stop_reason, jit_frame_this_id)
274 (jit_frame_prev_register, jit_dealloc_cache)
275 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
276 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
277 jit_prepend_unwinder.
278 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
279
1825a88d
SD
2802011-11-20 Sanjoy Das <sdas@igalia.com>
281
282 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
283 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
284 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
285 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
286 (finalize_symtab, jit_object_close_impl)
287 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
288 (free_objfile_data): New functions.
289 (_initialize_jit): Register jit_objfile_data with a proper cleanup
290 function.
291
784c47ee
SD
2922011-11-20 Sanjoy Das <sdas@igalia.com>
293
294 * jit.c: Include gdb-dlfcn.h.
295 (loaded_jit_reader, reader_init_fn_sym): New static variables.
296 (jit_reader_load, jit_reader_load_command)
297 (jit_reader_unload_command): New functions.
298 (_initialize_jit): Add commands "jit-reader-load" and
299 "jit-reader-unload".
300
a2d08b9e
SD
3012011-11-20 Sanjoy Das <sdas@igalia.com>
302
303 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
304 * config.in: Add new #define HAVE_LIBDL.
305 * configure.ac: Add check for -ldl.
306 * configure: Re-generated by autoconf.
307 * gdb-dlfcn.c: New file.
308 * gdb-dlfcn.h: New file.
309
b8e0a31c
SD
3102011-11-20 Sanjoy Das <sdas@igalia.com>
311
312 * config.in: Add new #defines: JIT_READER_DIR and
313 JIT_READER_DIR_RELOCATABLE.
314 * configure.ac: New GDB directory entry for jit-reader-dir.
315 * configure: Re-generated by autoconf.
316 * jit.c: New static variable: const char *jit_reader_dir.
317 (_initialize_jit): Relocate jit_reader_dir.
318
f997c383
SD
3192011-11-20 Sanjoy Das <sdas@igalia.com>
320
321 * Makefile.in: Add jit-reader.h as a header. Have it installed in
322 $(includedir)/gdb.
323 * configure.ac: Generate a correct value for TARGET_PTR for
324 jit-reader.h. Tell configure to generate jit-reader.h from
325 jit-reader.in.
326 * configure: Re-generated by autoconf.
327 * jit-reader.in: New file.
328 * jit.c: Include jit-reader.h.
329
dc8c0494
SD
3302011-11-20 Sanjoy Das <sdas@igalia.com>
331
332 * MAINTAINERS (Write After Approval): Add myself to the list.
333
01efb936
UW
3342011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
335
336 * findvar.c (read_frame_register_value): Respect value_offset
337 of the register value. Remove big-endian special case.
338
732f3f12
TT
3392011-11-18 Tom Tromey <tromey@redhat.com>
340
341 PR build/7196:
342 * remote.c (putpkt_for_catch_errors): New function.
343 (remote_kill): Use it.
344
bfccc43c
YQ
3452011-11-18 Yao Qi <yao@codesourcery.com>
346
347 * breakpoint.c (create_breakpoint): Produce query message according to
348 breakpoint's type.
349 Allocate tracepoint per correct type.
350 Don't check SALs for pending fast tracepoints.
351 * tracepoint.c (process_tracepoint_on_disconnect): New.
352 (disconnect_tracing): Call process_tracepoint_on_disconnect.
353
3ea46bff
YQ
3542011-11-18 Yao Qi <yao@codesourcery.com>
355
356 * breakpoint.c (install_breakpoint): Add one more parameter so that
357 update_global_location_list is called conditionally.
358 (create_fork_vfork_event_catchpoint): Update.
359 (create_syscall_event_catchpoint): Update.
360 (create_breakpoint_sal): Update.
361 (create_breakpoint_sal): Update. Call do_cleanups before
362 install_breakpoint.
363 * ada-lang.c (create_ada_exception_catchpoint): Update.
364 * breakpoint.h (install_breakpoint): Update declaration.
365
598cfb71
UW
3662011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
367
368 * spu-tdep.c (spu_return_value): Fix handling of
369 TYPE_CALLING_CONVENTION annotation.
370
caf4328c
UW
3712011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
372
373 * skip.c (skip_function_command): Work around uninitialized
374 variable warning.
375
2b54dda2
DM
3762011-11-16 David S. Miller <davem@davemloft.net>
377
378 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
379 'tv_usec' to long for printf since these fields have a type which
380 varies.
381
93bf33fd
DE
3822011-11-15 Doug Evans <dje@google.com>
383
384 * buildsym.c (add_symbol_to_list): Delete outdated comment.
385
9cc10fd1
PK
3862011-11-15 Paul Koning <paul_koning@dell.com>
387
388 * python/py-type.c (typy_get_composite): New function.
389 (typy_nonzero): New function.
390 (typy_values): Rename from typy_fields.
391 (typy_fields): New function.
392 (typy_length): Raise exception if not struct, union, or enum type.
393 (typy_getitem): Ditto.
394 (typy_has_key): Ditto.
395 (typy_make_iter): Ditto.
396
c011a4f4
DE
3972011-11-15 Doug Evans <dje@google.com>
398
399 * NEWS: Mention new parameter basenames-may-differ.
400 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
401 ! basenames_may_differ.
402 * psymtab.c (lookup_partial_symtab): Ditto.
403 * symtab.c (lookup_symtab): Ditto.
404 (basenames_may_differ): New global.
405 (_initialize_symtab): New parameter basenames-may-differ.
406 * symtab.h (basenames_may_differ): Declare.
407
865ecab4
LM
4082011-11-15 Pedro Alves <pedro@codesourcery.com>
409 Luis Machado <lgustavo@codesourcery.com>
410
411 * auxv.c: Include observer.h.
412 (auxv_inferior_data_cleanup): New.
413 (invalidate_auxv_cache_inf): New.
414 (invalidate_auxv_cache): New.
415 (get_auxv_inferior_data): New.
416 (auxv_inferior_data): New static global.
417 (auxv_info): New structure.
418 (target_auxv_search): Use get_auxv_inferior_data instead of
419 target_read_alloc and don't free cached buffers.
420 (fprint_target_auxv): Likewise
421 (_initialize_auxv): Register per-inferior auxv cache and register
422 observers to invalidate auxv cache when needed.
423
ed59ded5
DE
4242011-11-14 Doug Evans <dje@google.com>
425
426 Make "!" an alias for "shell".
427 * NEWS: Add mention.
428 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
429 adding "!" command, always add it.
430 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
431 command of length one.
432
405f8e94
SS
4332011-11-14 Stan Shebs <stan@codesourcery.com>
434 Kwok Cheung Yeung <kcy@codesourcery.com>
435
436 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
437 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
438 the minimum instruction size for fast tracepoints.
439 * target.h (struct target_ops): Add new method
440 to_get_min_fast_tracepoint_insn_len.
441 (target_get_min_fast_tracepoint_insn_len): New.
442 * target.c (update_current_target): Set up new target operation.
443 * remote.c (remote_write_bytes_aux): Fix typo.
444 (remote_get_min_fast_tracepoint_insn_len): New.
445 (init_remote_ops): Initialize new field.
446
3e05895e
TT
4472011-11-14 Tom Tromey <tromey@redhat.com>
448
449 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
450 (encode_actions): Likewise.
451
1e4d1764
YQ
4522011-11-14 Yao Qi <yao@codesourcery.com>
453
454 * remote.c (struct remote_state): <install_in_trace> new field.
455 (PACKET_InstallInTrace): New enum value.
456 (remote_install_in_trace_feature): Support InstallInTrace.
457 (remote_supports_install_in_trace): Likewise.
458 (remote_protocol_features): Likewise.
459 (_initialize_remote): Likewise.
460 (remote_can_download_tracepoint): New.
461 * target.h (struct target): New field
462 `to_can_download_tracepoint'.
463 (target_can_download_tracepoint): New macro.
464 * target.c (update_current_target): Update.
465 * breakpoint.h (struct bp_location): Add comment on field
466 `duplicate'.
3ccd4ac6
YQ
467 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
468 and tracepoint.
1e4d1764
YQ
469 (remove_breakpoints): Don't remove tracepoints.
470 (tracepoint_locations_match ): New.
471 (breakpoint_locations_match): Call it.
472 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
473 (download_tracepoint_locations): New.
474 (update_global_location_list): Call it.
475 * tracepoint.c (find_matching_tracepoint): Delete.
476 (find_matching_tracepoint_location): Renamed from
477 find_matching_tracepoint. Return bp_location rather than
478 tracepoint.
479 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
480 tracepoint is found.
481
e8ba3115
YQ
4822011-11-14 Yao Qi <yao@codesourcery.com>
483
484 * target.h (struct target): <to_download_tracepoint> Change type
485 of parameter from tracepoint to bp_location.
486 * target.c (update_current_target): Update.
487 * tracepoint.c (start_tracing): Update.
488 * remote.c (remote_download_tracepoint): Remove loop for each location
489 of a tracepoint.
490
edcc485a
MR
4912011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
492
493 * i386-nat.c (i386_insert_hw_breakpoint): Call
494 i386_update_inferior_debug_regs.
495 (i386_remove_hw_breakpoint): Likewise.
496
3742cc8b
YQ
4972011-11-14 Yao Qi <yao@codesourcery.com>
498
499 * breakpoint.c (init_raw_breakpoint): Call
500 add_location_to_breakpoint to replace duplicated code.
501 (add_location_to_breakpoint): Adjust the breakpoint's
502 address prior to allocating a location.
503
71eba9c2 5042011-11-12 Matt Rice <ratmice@gmail.com>
505
506 * macrocmd.c (macro_no_macro_info): New function.
507 (macro_expand_command): Use macro_no_macro_info.
508 (macro_expand_once_command): Ditto.
509 (info_macro_command): Add argument processing,
510 move info_definitions_command here.
511 (_initialize_macrocmd): Remove info definitions command.
512 Add arguments to info macro help text.
513 * NEWS: Replace info definitions command with new info macro options.
514
731971ed
KS
5152011-11-11 Keith Seitz <keiths@redhat.com>
516
517 PR gdb/12843
518 * linespec.c (locate_first_half): Keep ':' if it looks
519 like it could be part of a Windows path starting with
520 a drive letter.
521
6953d224
PA
5222011-11-10 Pedro Alves <pedro@codesourcery.com>
523
524 * linux-nat.c (linux_nat_wait): Don't force waking up the event
525 loop when returning a TARGET_WAITKIND_NO_RESUMED.
526
0c94aa73
PA
5272011-11-10 Pedro Alves <pedro@codesourcery.com>
528
529 * target.c (target_waitstatus_to_string): Handle
530 TARGET_WAITKIND_NO_RESUMED.
531
f6b47be4
DE
5322011-11-10 Doug Evans <dje@google.com>
533
74e2f255
DE
534 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
535 `need_fullname'.
536 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
537 (map_partial_symbol_filenames): Ditto. All callers updated.
538 * psymtab.h (map_partial_symbol_filenames): Update prototype.
539 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
540 parameter need_fullname.
541
256f06f3
DE
542 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
543 * source.c (symtab_to_fullname): Ditto.
544
50f182aa
DE
545 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
546 * gdb-demangle.h: ... here. New file.
547 * demangle.c: #include "gdb-demangle.h".
548 (_initialize_demangler): Use initialize_file_ftype for prototype.
549 Move "set demangle" and "set asm-demangle" parameters here from utils.c
550 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
551 from utils.c
552 * utils.c: Update. #include "gdb-demangle.h".
553 * symtab.h (asm_demangle): Delete.
554 (demangle): Move declaration next to use.
555 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
556 * dwarf2read.c: #include "gdb-demangle.h".
557 * gnu-v2-abi.c: Ditto.
558 * jv-typeprint.c: Ditto.
559 * mdebugread.c: Ditto.
560 * p-typeprint.c: Ditto.
561 * stabsread.c: Ditto.
562 * printcmd.c: Ditto.
563 (asm_demangle): Delete declaration.
564 * tui/tui-stack.c: #include "gdb-demangle.h".
565
f6b47be4
DE
566 * python/py-type.c (typy_fields_items): Call check_typedef.
567
22355c90
JB
5682011-11-10 Joel Brobecker <brobecker@adacore.com>
569
570 * findvar.c (read_frame_register_value): Read the correct bytes
571 from registers on big-endian architectures.
572
bd119cf1 5732011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
574
575 * procfs.c (load_syscalls): Make a cleanup.
576 (open_procinfo_files): fd==0 is ok.
577
0a86f364
JB
5782011-11-10 Joel Brobecker <brobecker@adacore.com>
579
580 * procfs.c (iterate_over_mappings): Call do_cleanups before
581 returning.
582
9bc118a5
DE
5832011-11-09 Doug Evans <dje@google.com>
584
585 * gdbtypes.c (check_typedef): Document that this function can
586 throw an exception.
587
a7860e76
TT
5882011-11-09 Tom Tromey <tromey@redhat.com>
589
590 PR c++/13342:
591 * valops.c (value_full_object): Return early if real type is
592 smaller than the enclosing type.
593
60965737
YQ
5942011-11-08 Yao Qi <yao@codesourcery.com>
595
596 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
597
72a2e3dc
MI
5982011-11-08 Meador Inge <meadori@codesourcery.com>
599
600 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
601 register when the frame can't be determined.
602 * arm-tdep.c (arm_analyze_prologue): Ditto.
603
ce3b0ff7
SS
6042011-11-07 Stan Shebs <stan@codesourcery.com>
605
606 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
607
2b914b52
JB
6082011-11-07 Joel Brobecker <brobecker@adacore.com>
609
610 * infrun.c (handle_inferior_event): Minor reformatting.
611
6f809020
DE
6122011-11-05 Doug Evans <dje@google.com>
613
614 * source.c (forget_cached_source_info_for_objfile): Move call to
615 objfile->sf->qf->forget_cached_source_info outside of
616 ALL_OBJFILE_SYMTABS loop.
617 (forget_cached_source_info): Delete unused variable `s'.
618
75d12218
JK
6192011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 * i386-nat.c (dr_ref_count): Remove unused variable.
622
e565b837
DE
6232011-11-05 Doug Evans <dje@google.com>
624
625 * main.c (captured_main): Set lim_at_start before calling
626 make_command_stats_cleanup.
627
0a1c4d10
DE
6282011-11-04 Doug Evans <dje@google.com>
629
630 * utils.c: #include "timeval-utils.h".
631 (cmd_stats): Rename start_time to start_cpu_time.
632 New member start_wall_time.
633 (report_command_stats): Report wall time.
634 (make_command_stats_cleanup): Record start wall time.
635
a1d705ee
TT
6362011-11-04 Tom Tromey <tromey@redhat.com>
637
638 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
639
81de56be
RO
6402011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
641
642 * coff-pe-read.c: Include defs.h before bfd.h.
643
3ab1ec27
PM
6442011-11-04 Phil Muldoon <pmuldoon@redhat.com>
645
646 PR Python/13345
647
648 * python/python.c (python_run_simple_file): Expand tilde in path.
649
cd829959
PM
6502011-11-04 Phil Muldoon <pmuldoon@redhat.com>
651
652 PR Python/13363
653
654 * python/py-type.c (typy_lookup_type): Do not return a type in
655 an exception handler.
656
080ad648
JK
6572011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
658 Eli Zaretskii <eliz@gnu.org>
659
660 * linux-nat.c (_initialize_linux_nat): Improve help
661 for `info proc stat', `info proc status', `info proc cwd',
662 `info proc cmdline' and `info proc exe'.
663
3065dfb6
SS
6642011-11-02 Stan Shebs <stan@codesourcery.com>
665
666 String collection for tracepoints.
667 * NEWS: Mention string collection.
668 * common/ax.def (tracenz): New bytecode.
669 * ax-gdb.h (trace_string_kludge): Declare.
670 * ax-gdb.c: Include valprint.h and c-lang.h.
671 (trace_string_kludge): New global.
672 (gen_traced_pop): Add string case.
673 (agent_command): Add string case.
674 * tracepoint.h (decode_agent_options): Declare.
675 * tracepoint.c: Include cli-utils.h.
676 (decode_agent_options): New function.
677 (validate_actionline): Call it.
678 (encode_actions_1): Ditto.
679 * target.h (struct target_ops): New method to_supports_string_tracing.
680 (target_supports_string_tracing): New macro.
681 * target.c (update_current_target): Add to_supports_string_tracing.
682 * remote.c (struct remote_state): New field string_tracing.
683 (remote_string_tracing_feature): New function.
684 (remote_protocol_features): New feature tracenz.
685 (remote_supports_string_tracing): New function.
686 (init_remote_ops): Set to_supports_string_tracing.
687
f179e162
JK
6882011-11-02 Pedro Alves <pedro@codesourcery.com>
689 Jan Kratochvil <jan.kratochvil@redhat.com>
690
691 * linux-nat.c: Include cli/cli-utils.h.
692 (enum info_proc_what): New.
693 (linux_nat_info_proc_cmd): Rename to ...
694 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
695 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
696 status_f and stat_f from WHAT. Throw error on extra parameters.
697 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
698 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
699 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
700 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
701 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
702 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
703 `info proc cmdline', `info proc exe' and `info proc all' as real
704 subcommands of `info proc'.
705
7b35ec7f 7062011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
707
708 * Makefile.in: (SFILES): Add skip.c.
709 (HFILES_NO_SRCDIR): Add skip.h.
710 (COMMON_OBS): Add skip.o.
711 * skip.h, skip.c: New.
712 * breakpoint.h (set_default_breakpoint): Remove.
713 (get_sal_arch): Declare.
714 * breakpoint.c: Remove default_breakpoint_valid,
715 default_breakpoint_address, default_breakpoint_symtab,
716 default_breakpoint_line, default_breakpoint_pspace variables.
717 (get_sal_arch): Make public.
718 (set_default_breakpoint): Remove.
719 (parse_breakpoint_sals, create_breakpoint, clear_command,
720 decode_line_spec_1): Remove uses of default_breakpoint variables;
721 replaced with function calls into stack.c.
722 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
723 * cli/cli-cmds.c: Add skiplist.
724 (init_cmd_lists): Initialize skiplist.
725 (init_cli_cmds): Fix comment (classes of commands appear in
726 alphabetical order).
727 * infrun.c (handle_inferior_event): Add check that we don't step into
728 a function whose pc is marked for skip.
729 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
730 last_displayed_addr, last_displayed_symtab, last_displayed_line
731 variables.
732 (set_last_displayed_sal): New static function.
733 (print_frame_info): Switch call to set_default_breakpoint to call to
734 set_last_displayed_sal.
735 (clear_last_displayed_sal, last_displayed_sal_is_valid,
736 get_last_displayed_pspace, get_last_displayed_addr,
737 get_last_displayed_symtab, get_last_displayed_line,
738 get_last_displayed_sal): New public functions.
739 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
740 get_last_displayed_pspace, get_last_displayed_addr,
741 get_last_displayed_symtab, get_last_displayed_line,
742 get_last_displayed_sal): Declare.
743
b60e1588
JL
7442011-11-01 Justin Lebar <justin.lebar@gmail.com>
745
746 * MAINTAINERS (Write After Approval): Add myself to the list.
747
d31647d2
YQ
7482011-10-29 Yao Qi <yao@codesourcery.com>
749
750 * infcmd.c (disconnect_command): Call disconnect_tracing.
751
b1d96efd
JK
7522011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
753
754 Code cleanup.
755 * symtab.c (skip_prologue_sal): Code reformatting.
756
4dfb2365
JK
7572011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
758
759 PR symtab/13208
760 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
761 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
762 SAI.
763
0e5bf2a8
PA
7642011-10-28 Pedro Alves <pedro@codesourcery.com>
765
766 * linux-nat.c (linux_nat_filter_event): Remove `options'
767 parameter, and dead code that used it. If we're handling a
768 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
769 in our lwp list, re-add it.
770 (check_zombie_leaders): New.
771 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
772 wait for children with WNOHANG, and always wait for all children.
773 Don't check for no resumed children upfront. Simplify wait loop.
774 Check for zombie thread group leaders after handling all wait
775 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
776 unwaited-for children left.
777 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
778 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
779 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
780 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
781
821296b7
SA
7822011-10-28 Sterling Augustine <saugustine@google.com>
783
784 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
785 * symtab.c (free_completion_list): New function.
786 (do_free_completion_list): Likewise.
787 (default_make_symbol_completion_list_break_on): New variable
788 back_to. Call make_cleanup and discard_cleanups.
789 (make_source_files_completion_list): Likewise.
790
03c3051a
PK
7912011-10-28 Paul Koning <paul_koning@dell.com>
792
793 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
794 * NEWS: Mention deep_items.
795
8e7ebaf5
PA
7962011-10-28 Alen Skondro <askondro@gmail.com>
797
8de33dc2 798 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
799 defined.
800
e0c6ef61
MI
8012011-10-27 Meador Inge <meadori@codesourcery.com>
802
803 * MAINTAINERS (Write After Approval): Add myself to the list.
804
b56d6f31
JB
8052011-10-27 Joel Brobecker <brobecker@adacore.com>
806
807 * value.h (read_frame_register_value): Add declaration.
808 * findvar.c (read_frame_register_value): New function.
809 (value_from_register): Use read_frame_register_value
810 instead of get_frame_register_value + value_contents_copy
811 to get value contents.
812
d234ef5c
DE
8132011-10-27 Doug Evans <dje@google.com>
814
815 * cli/cli-cmds.c (source_script_with_search): Pass full path to
816 source_script_from_stream if it may have been found on the search path.
817 * python/py-auto-load.c (source_section_scripts): Pass full path to
818 source_python_script_for_objfile.
819 * python/python.c (source_python_script): Delete stream parameter.
820 All callers updated.
821 (source_python_script_for_objfile): Ditto.
822 * python/python-internal.h (source_python_script_for_objfile): Update.
823 * python/python.h (source_python_script): Update.
824
d849d44f
TT
8252011-10-27 Tom Tromey <tromey@redhat.com>
826
827 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
828 (ada_sals_for_line): Remove declarations.
829
2231f1fb
KP
8302011-10-27 Kevin Pouget <kevin.pouget@st.com>
831
832 Move unwind reasons to an external .def file
833 * frame.c (frame_stop_reason_string): Rewrite using
834 unwind_stop_reasons.def.
835 * frame.h (enum unwind_stop_reason): Likewise.
836 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
837 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
838 constants for bound-checking.
839 * unwind_stop_reasons.def: New file.
840 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
841 instead of a distinct value.
842
f77b9a5d
PM
8432011-10-27 Phil Muldoon <pmuldoon@redhat.com>
844
845 PR python/13331
846
847 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
848 (convert_values_to_python): Return on Python tuple allocation
849 failure. Return NULL on value conversion error.
850
76dce0be
PM
8512011-10-27 Phil Muldoon <pmuldoon@redhat.com>
852
853 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
854 (bppy_set_task): Ditto.
855 (bppy_delete_breakpoint): Ditto.
856 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
857 (gdbpy_lookup_global_symbol): Ditto.
858 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
859 * python/py-frame.c (frapy_is_valid): Ditto.
860 (frame_info_to_frame_object): Ditto.
861 * python/py-type.c (typy_lookup_type): Ditto.
862 (typy_getitem): Ditto.
863 (typy_has_key): Ditto.
864 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
865
f17b6955
JB
8662011-10-26 Joel Brobecker <brobecker@adacore.com>
867
868 * gdbarch.h: Regenerate.
869
86ba1042
JB
8702011-10-26 Meador Inge <meadori@codesourcery.com>
871
872 * gdbarch.sh (function_list): Use 'pstring' when printing
873 'gcore_bfd_target'.
874 * gdbarch.c: Regenerate.
875
c34fd852
UW
8762011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
877
878 * regcache.c (registers_changed_ptid): Invalidate thread architecture
879 and frame caches if PTID refers to all threads of a process.
880
931bb47f
UW
8812011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
882
883 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
884 to create_breakpoint.
885
88aed45e
UW
8862011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
887
888 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
889 (ppc_sysv_abi_push_dummy_call): Use it.
890 (do_ppc_sysv_return_value): Likewise.
891 (ppc64_sysv_abi_push_dummy_call): Likewise.
892 (ppc64_sysv_abi_return_value): Likewise.
893
3eaf3fa2
PK
8942011-10-26 Paul Koning <paul_koning@dell.com>
895
896 * python/lib/gdb/types.py (deepitems): New function.
897
913460fc
PK
8982011-10-25 Paul Koning <paul_koning@dell.com>
899
900 PR python/13327
901
902 * python/py-value.c (value_to_value_object): Remove fetching of
903 the value if it was lazy.
904 (valpy_get_is_lazy): New function.
905 (valpy_fetch_lazy): New function.
906
2b5b9d09
JB
9072011-10-24 Joel Brobecker <brobecker@adacore.com>
908
909 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
910 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
911
e21ffe51
PA
9122011-10-24 Pedro Alves <pedro@codesourcery.com>
913
914 * linux-nat.c (linux_handle_extended_wait): When handling a clone
915 event, in non-stop, if not stopping, make sure the new lwp has
916 last_resume_kind set to resume_continue. Assert that when we're
917 resuming the new lwp, its last_resume_kind is resume_continue.
918
7aee8dc2
PA
9192011-10-24 Pedro Alves <pedro@codesourcery.com>
920
921 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
922 already set when marking the event thread as not executing in
923 non-stop mode.
924
4b4e080e
PA
9252011-10-24 Pedro Alves <pedro@codesourcery.com>
926
927 * infrun.c (handle_inferior_event): Add debug output for
928 TARGET_WAITKIND_NO_HISTORY.
929
baacfb07
PM
9302011-10-24 Phil Muldoon <pmuldoon@redhat.com>
931
932 * NEWS: Move set/show extended-prompt to "New Options". Expand
933 description. Fix typos.
934
8432bc41
PM
9352011-10-24 Phil Muldoon <pmuldoon@redhat.com>
936
937 PR python/13310
938
939 * python/py-param.c (call_doc_function): Correctly deference on
940 function exit.
941
6cda5a20
JB
9422011-10-21 Joel Brobecker <brobecker@adacore.com>
943
944 * ada-tasks.c (print_ada_task_info): Fix computation of
945 number of tasks displayed in command output.
946
13294f7d
JK
9472011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
948 Ulrich Weigand <uweigand@de.ibm.com>
949
950 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
951 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
952 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
953 gdbarch_pc_regnum and frame_unwind_register_unsigned by
954 gdbarch_unwind_pc.
955
460c1c54
CC
9562011-10-20 Cary Coutant <ccoutant@google.com>
957
958 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
959 section to...
960 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
961 flag. Adjust all callers.
962 (process_psymtab_comp_unit): Remove adjustment for type section.
963
a10964d1
AR
9642011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
965
966 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
967 arguments by adding OBJFILE. Instead of getting objfile from
968 symbol's symtab, use new argument OBJFILE.
969 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
970 arguments by adding OBJFILE.
971 * gdb/dwarf2read.c (new_symbol_full): Change call to
972 cp_scan_for_anonymous_namespaces to match new signature.
973 * gdb/stabsread.c (define_symbol): Change call to
974 cp_scan_for_anonymous_namespaces to match new signature.
975
27ca1a5b
PM
9762011-10-20 Phil Muldoon <pmuldoon@redhat.com>
977
978 PR python/13308
979 PR python/13309
980
981 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
982 leak.
983 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
984 leak. Delete unused variables.
985
9df2fbc4
PM
9862011-10-20 Phil Muldoon <pmuldoon@redhat.com>
987
988 PR python/12656
989
990 * python/py-frame.c (frapy_read_var): Use const struct *block.
991 * python/py-type.c (typy_lookup_typename): Likewise.
992 (typy_lookup_type): Likewise.
993 (typy_legacy_template_argument): Likewise.
994 (typy_template_argument): Likewise.
995 (gdbpy_lookup_type): Likewise.
996 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
997 * python/py-block.c (blpy_block_object): Likewise.
998 (blpy_iter): Likewise.
999 (blpy_get_start): Likewise.
1000 (blpy_get_end): Likewise.
1001 (blpy_get_function): Likewise.
1002 (blpy_get_superblock): Likewise.
1003 (set_block): Likewise.
1004 (block_to_block_object): Likewise.
1005 (block_object_to_block): Likewise.
1006 (blpy_is_valid): Likewise.
1007 (blpy_get_global_block): New function.
1008 (blpy_get_static_block): New function.
1009 (blpy_is_global): New function.
1010 (blpy_is_static): New function.
1011 * blockframe.c (block_innermost_frame): Likewise.
1012 * valops.c (value_of_variable): Likewise.
1013 * frame.h: Update prototypes.
1014 * python/python-internal.h: Likewise.
1015 * value.h: Likewise.
1016
4743b735
CC
10172011-10-19 Cary Coutant <ccoutant@google.com>
1018
1019 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1020 type_offset field.
1021
6caca83c
CC
10222011-10-19 Cary Coutant <ccoutant@google.com>
1023
1024 * dwarf2read.c (peek_abbrev_code): New function.
1025 (dw2_get_file_names): Check for dummy compilation units.
1026 (create_debug_types_hash_table): Likewise.
1027 (process_psymtab_comp_unit): Likewise.
1028 (load_partial_comp_unit): Likewise.
1029 (load_full_comp_unit): Likewise.
1030
43136979
AR
10312011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1032
1033 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1034 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1035 pt_phdr if PT_PHDR was found.
1036
0a07729b
TT
10372011-10-17 Joost van der Sluis <joost@cnoc.nl>
1038
1039 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1040 type or "<unnamed type"> when there is no name assigned.
1041 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1042 avoid a sigint when no name is assigned.
1043
21ae7a4d
JK
10442011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1045
1046 Revert:
1047 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1048 * dwarf2expr.c (ctx_no_read_reg): New function.
1049 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1050 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1051 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1052 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1053
32d1c362
DE
10542011-10-16 Doug Evans <dje@google.com>
1055
1056 * NEWS: Document python gdb.printing.register_pretty_printer's new
1057 `replace' parameter.
1058
da096638
KS
10592011-10-14 Keith Seitz <keiths@redhat.com>
1060
1061 PR c++/13225
1062 * eval.c (evaluate_subexp_standard): Do not construct
1063 an array of types; pass the value array directly to
1064 find_overload_match.
1065 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1066 (rank_function): Take an array of values instead of types.
1067 (rank_one_type): Add struct value * parameter.
1068 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1069 (rank_function): For each argument, pass the argument's
1070 value to rank_one_type.
1071 (rank_one_type): Add VALUE parameter.
1072 If the parameter type is a pointer and the argument type
1073 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1074 VALUE is zero.
1075 Update all calls to rank_one_type, passing NULL for new
1076 VALUE parameter.
1077 * valarith.c (value_user_defined_cpp_op): Do not construct
1078 an array of types; pass the value array directly to
1079 find_overload_match.
1080 * valops.c (find_overload_method_list): Take an array of
1081 values instead of types.
1082 Save the type of OBJP for later use.
1083 Update calls to find_oload_champ, and find_oload_champ_namespace.
1084 (find_oload_champ_namespace): Take an array of values instead
1085 of types.
1086 (find_oload_champ_namespace_loop): Likewise.
1087 (find_oload_champ): Likewise.
1088 (classify_oload_match): Inspect all arguments
1089 until INCOMPATIBLE is found. Return the worst badness found
1090 otherwise.
1091 (compare_parameters): Update call to rank_one_type.
1092 * value.h (find_overload_match): Take an array of values instead
1093 of types.
1094
3957565a
JK
10952011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1096
1097 Drop lazy lm_info reading.
1098 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1099 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1100 (lm_info_read): New function.
1101 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1102 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1103 lm_dynamic_from_link_map.
1104 (lm_next, lm_prev, lm_name): Remove.
1105 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1106 initialization incl. read_memory. No longer use lm_name.
1107 (svr4_free_so): Drop lm_info->lm freeing.
1108 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1109 explicit lm_addr and lm initialization.
1110 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1111 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1112 lm_name.
1113
cb08cc53
JK
11142011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1115 Paul Pluzhnikov <ppluzhnikov@google.com>
1116
1117 * defs.h (struct so_list): New forward declaration.
1118 (make_cleanup_free_so): New declaration.
1119 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1120 (svr4_free_so): Move the function here from downwards. Handle NULL
1121 so->lm_info.
1122 (svr4_free_library_list): New.
1123 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1124 Use more cleanups. Use new parameter ignore_first instead of
1125 ignore_first_link_map_entry.
1126 (svr4_current_sos): New variable ignore_first, initialize it. New
1127 variable back_to, use it for svr4_free_library_list protection.
1128 (svr4_free_so): Remove - move upwards.
1129 * utils.c: Include solist.h.
1130 (do_free_so, make_cleanup_free_so): New functions.
1131
22c05d8a
JK
11322011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1133
1134 Fix internal error regression.
1135 * value.c (value_primitive_field): Handle value_optimized_out. Move
1136 packed bitfields comment.
1137
d930d06e
TT
11382011-10-13 Tom Tromey <tromey@redhat.com>
1139
1140 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1141 always released.
1142
2ff6b080
TT
11432011-10-13 Tom Tromey <tromey@redhat.com>
1144
1145 * python/py-type.c (typy_has_key): Make 'field' const.
1146
d6c5869f
LM
11472011-10-13 Luis Machado <lgustavo@codesourcery.com>
1148
1149 * remote.c (remote_save_trace_data): Invert comparison.
1150
a70633a2
LM
11512011-10-13 Luis Machado <lgustavo@codesourcery.com>
1152
1153 * tracepoint.c (trace_save_command): Use filename instead of
1154 args when printing.
1155
e103e986
JK
11562011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1157
1158 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1159 if .size is 0.
1160
db24da6d
YQ
11612011-10-13 Yao Qi <yao@codesourcery.com>
1162
1163 PR gdb/12703
1164 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1165 whether insn is a 32-bit Thumb-2 instruction.
1166 (thumb_in_function_epilogue_p): Likewise.
1167 (thumb_get_next_pc_raw): Likewise.
1168 (arm_breakpoint_from_pc): Likewise.
1169
1d6edc3c
JK
11702011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1171
1172 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1173 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1174 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1175 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1176 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1177 zero DATA.
1178 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1179 validity.
1180 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1181 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1182 clear DATA on zero SIZE.
1183
adabb602
DE
11842011-10-12 Doug Evans <dje@google.com>
1185
1186 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1187 header->first_die_offset here. All callers updated.
1188
5048e516
JK
11892011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1190
1191 Fix compatibility with texinfo versions older than 4.12.
1192 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1193 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1194 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1195 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1196 * configure: Regenerate.
1197 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1198 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1199 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1200
0574c78f
GB
12012011-10-12 Gary Benson <gbenson@redhat.com>
1202
1203 * breakpoint.h (pc_at_non_inline_function): Declare.
1204 * breakpoint.c (is_non_inline_function,
1205 pc_at_non_inline_function): New functions.
1206 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1207 if the stop is at a location where functions cannot be inlined.
1208
12d9289a
PA
12092011-10-12 Pedro Alves <pedro@codesourcery.com>
1210
1211 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1212 the core wanted them stopped, or if they now have a pending event
1213 to report.
ecf8e7f5
PA
1214 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1215 down to stop_and_resume_callback.
1216 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1217 having new pending events after calling linux_nat_filter_event.
12d9289a 1218
96408a79
SA
12192011-10-11 Sterling Augustine <saugustine@google.com>
1220
1221 * dwarf2read.c: Undo inadvertent changes in previous commit.
1222
9c6c53f7
SA
12232011-10-11 Sterling Augustine <saugustine@google.com>
1224
1225 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1226 logic.
1227
0e8aefe7
UW
12282011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1229
1230 * symfile.c (separate_debug_file_exists): Fix condition.
1231
349d1385
DM
12322011-10-11 David S. Miller <davem@davemloft.net>
1233
1234 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1235 static.
1236 * regcache.h (regcache_restore): Remove declaration.
1237
205c306f
DM
1238 * gdbarch.sh: New field 'long_long_align_bit'.
1239 * gdbarch.c, gdbarch.h: Regenerate.
1240 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1241 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1242
941b2081
JK
12432011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1244
1245 Revert this part of:
1246 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1247 Support @entry in input expressions.
1248 * c-exp.y (ENTRY, unknown_cpp_name): New.
1249 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1250 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1251 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1252 (name_not_typename: ENTRY): New.
1253 (yylex): Recognize ENTRY.
1254
1255 Reimplement @entry in input expressions.
1256 * c-exp.y (ENTRY): New.
1257 (variable: name_not_typename ENTRY): New.
1258 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1259
3c4d7e12
PA
12602011-10-11 Pedro Alves <pedro@codesourcery.com>
1261
1262 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1263 parent and child's pids as soon as we detect a clone event.
1264 Adjust another debug message.
1265
ea23808b
PA
12662011-10-11 Pedro Alves <pedro@codesourcery.com>
1267
1268 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1269 not zombie instead of reading the whole file.
1270
904578ed
JK
12712011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1272
1273 Fix separate debuginfo warning with "remote:" access.
1274 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1275 * symfile.c (get_file_crc): New function with the code moved from ...
1276 (separate_debug_file_exists): ... this function, specifically variables
1277 buffer and count. New variable verified_as_different, set it. Remove
1278 file_crc initialization. Verify also if both files are not the same
1279 manually, if needed.
1280
51370a33
YQ
12812011-10-11 Yao Qi <yao@codesourcery.com>
1282
1283 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1284 to get address.
1285
0838fb57
DE
12862011-10-10 Doug Evans <dje@google.com>
1287
1288 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1289 libthread_db when we load libpthread or the main symbol file.
1290 (thread_db_inferior_created): New function.
1291 (_initialize_thread_db): Attach inferior_created observer.
1292 * linux-nat.c (linux_child_post_attach): Remove call to
1293 check_for_thread_db.
1294 (linux_child_post_startup_inferior): Ditto.
1295 * objfiles.h (OBJF_MAINLINE): Define.
1296 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1297 allocate_objfile when appropriate.
1298
623bd5b7
UW
12992011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1300
1301 PR gdb/13218
1302 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1303 Remove unused variables.
1304 (get_linux_version): Remove function.
1305 (_initialize_arm_linux_nat): Do not call it.
1306
79395f92
PA
13072011-10-10 Pedro Alves <pedro@codesourcery.com>
1308
1309 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1310 new clone lwp if the core asked it to stop. Don't pass on
1311 unexpected signals to the new clone; leave them pending instead.
1312
eff3df78
PA
13132011-10-10 Pedro Alves <pedro@codesourcery.com>
1314
1315 * linux-nat.c (resume_lwp): Remove redundant debug output.
1316
4b60df3d
PA
13172011-10-10 Pedro Alves <pedro@codesourcery.com>
1318
1319 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1320 last_resume_kind before clearing it, and use the copy instead to
1321 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1322 resume_clear_callback in the non-stop path too.
1323
6501578c
YQ
13242011-10-09 Yao Qi <yao@codesourcery.com>
1325
1326 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1327 Honor OPTIONS and VAL's type.
1328 (common_val_print, value_print): Update to pass one more parameter.
1329
5a56e9c5
DE
13302011-10-09 Doug Evans <dje@google.com>
1331
1332 Add new "alias" command.
1333 * NEWS: Mention new command.
1334 * command.h (valid_user_defined_cmd_name_p): Declare.
1335 * defs.h (make_cleanup_dyn_string_delete): Declare.
1336 * utils.c: #include "dyn-string.h".
1337 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1338 * cli/cli-cmds.c: #include "dyn-string.h".
1339 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1340 (init_cli_cmds): Add new command.
1341 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1342
509f0fd9
JK
13432011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1344
1345 Fix compatibility with older GCCs.
1346 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1347 * stack.c (read_frame_arg): Initialize val_deref.
1348
2bda9cc5
JK
13492011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 Entry values NEWS entries, DWARF disassembly support.
1352 * NEWS: New entry values entry.
1353 (set print entry-values, show print entry-values)
1354 (set debug entry-values, show debug entry-values): New entries.
1355 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1356 indent. Remove variable start. Move header printing out. Respect
1357 INDENT. Support DW_OP_GNU_entry_value.
1358 (locexpr_describe_location_1): Move the header printing here, extend
1359 the disassemble_dwarf_expression passed parameters.
1360
a471c594
JK
13612011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1362
1363 Display @entry parameter values even for references.
1364 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1365 coerce_ref_if_computed.
1366 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1367 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1368 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1369 existing push_dwarf_reg_entry_value call. Add new detection calling
1370 dwarf_block_to_dwarf_reg_deref. Update the error message.
1371 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1372 * dwarf2expr.h
1373 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1374 parameter deref_size, describe it in the comment.
1375 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1376 (dwarf_block_to_dwarf_reg_deref): New declaration.
1377 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1378 deref_size, describe it in the function comment. New variables
1379 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1380 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1381 describe it in the function comment. Fetch the alternative block
1382 accoring to DEREF_SIZE.
1383 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1384 (entry_data_value_free_closure, entry_data_value_funcs): New.
1385 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1386 outer_val, target_val, val and addr. Try to fetch and create also
1387 referenced value content.
1388 (pieced_value_funcs): NULL value for coerce_ref.
1389 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1390 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1391 coerce_ref_if_computed.
1392 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1393 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1394 * stack.c (read_frame_arg): Compare also dereferenced values.
1395 * value.c (value_computed_funcs): Make the parameter v const, use
1396 value_lval_const for it.
1397 (value_lval_const, coerce_ref_if_computed): New function.
1398 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1399 * value.h (struct lval_funcs): New field coerce_ref.
1400 (value_computed_funcs): Make the parameter v const.
1401 (value_lval_const, coerce_ref_if_computed): New declarations.
1402
36b11add
JK
14032011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1404
1405 Support @entry in input expressions.
1406 * c-exp.y (ENTRY, unknown_cpp_name): New.
1407 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1408 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1409 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1410 (name_not_typename: ENTRY): New.
1411 (yylex): Recognize ENTRY.
1412 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1413 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1414 Likewise.
1415 * parse.c (operator_length_standard): Likewise.
1416 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1417
3343315b
JK
14182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1419
1420 Display referenced values in backtraces.
1421 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1422 * stack.c (print_frame_arg): Likewise.
1423
ac71a68c
JK
14242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1425
1426 Make some lval_funcs methods to default on NULL.
1427 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1428 NULL.
1429 (value_assign): Check if lval_computed write method is NULL.
1430 * value.h (struct lval_funcs): Comment NULL values for read and write
1431 methods.
1432
e18b2753
JK
14332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1434
1435 Display @entry parameter values (without references).
1436 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1437 New functions.
1438 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1439 New declarations.
1440 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1441 entry record.
1442 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1443 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1444 functions.
1445 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1446 (loclist_read_variable_at_entry): New function.
1447 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1448 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1449 DW_AT_location, call dwarf_block_to_sp_offset for it.
1450 * frame.h (print_entry_values_no, print_entry_values_only)
1451 (print_entry_values_preferred, print_entry_values_if_needed)
1452 (print_entry_values_both, print_entry_values_compact)
1453 (print_entry_values_default, print_entry_values): New declarations.
1454 (struct frame_arg): New field entry_kind.
1455 (read_frame_arg): New parameter entryargp.
1456 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1457 arg->entry_kind. Optionally print the `@entry' suffix.
1458 (list_args_or_locals): New variable entryarg, initialize it.
1459 Initialize also entry_kind of arg and entryarg. Conditionalize
1460 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1461 xfree for entryarg.error.
1462 * stack.c (print_entry_values_no, print_entry_values_only)
1463 (print_entry_values_preferred, print_entry_values_if_needed)
1464 (print_entry_values_both, print_entry_values_compact)
1465 (print_entry_values_default, print_entry_values_choices)
1466 (print_entry_values): New variables.
1467 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1468 print the `@entry' suffix, possibly in combination for
1469 print_entry_values_compact.
1470 (read_frame_arg): New parameter entryargp, new variables entryval,
1471 entryval_error and val_equal. Read in also entryargp, respect
1472 print_entry_values, compare the values using val_equal, fill in also
1473 argp->entry_kind (together with entryargp->entry_kind).
1474 (print_frame_args): New variable entryarg, initialize it.
1475 Conditionalize print_frame_arg for arg, add print_frame_arg for
1476 entryarg. Call xfree for entryarg.error.
1477 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1478 * symtab.h (struct symbol_computed_ops): New field
1479 read_variable_at_entry.
1480
93d86cef
JK
14812011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1482
1483 Code reshuffle.
1484 * frame.h (struct frame_arg): New definition.
1485 (read_frame_arg): New declaration.
1486 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1487 (list_args_or_locals): ... the code here. New variable arg, call
1488 read_frame_arg and list_arg_or_local with it. Unify the
1489 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1490 arg.error.
1491 * stack.c (print_frame_arg): New functiom from the code of
1492 print_frame_args.
1493 (read_frame_arg): New function.
1494 (print_frame_args): Remove variable val. New variable arg, call
1495 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1496
2d6c5dc2
JK
14972011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1498
1499 Protect entry values against self tail calls.
1500 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1501 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1502
111c6489
JK
15032011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 Recognize virtual tail call frames.
1506 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1507 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1508 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1509 * dwarf2-frame-tailcall.c: New file.
1510 * dwarf2-frame-tailcall.h: New file.
1511 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1512 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1513 REGS.PREV only after CIE execution.
1514 (struct dwarf2_frame_cache): New field tailcall_cache.
1515 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1516 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1517 parts, try to find entry_cfa_sp_offset. Call
1518 dwarf2_tailcall_sniffer_first.
1519 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1520 when appropriate.
1521 (dwarf2_frame_dealloc_cache): New function.
1522 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1523 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1524 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1525 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1526 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1527 * dwarf2loc.c (func_addr_to_tail_call_list)
1528 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1529 (call_site_find_chain_1, call_site_find_chain): New.
1530 * dwarf2loc.h (struct call_site_chain): New.
1531 (call_site_find_chain): New declaration.
1532 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1533 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1534 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1535 * stack.c (frame_info): Support also TAILCALL_FRAME.
1536
bb984ff1
JK
15372011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1538
1539 Tail call sites reader implementation.
1540 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1541 fill in TYPE_TAIL_CALL_LIST.
1542 * gdbtypes.h (struct func_type): New field tail_call_list.
1543 (struct call_site): New field tail_call_next.
1544 (TYPE_TAIL_CALL_LIST): New definition.
1545
8e3b41a9
JK
15462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1547
1548 Implement basic support for DW_TAG_GNU_call_site.
1549 * block.c: Include gdbtypes.h and exceptions.h.
1550 (call_site_for_pc): New function.
1551 * block.h (call_site_for_pc): New declaration.
1552 * defs.h: Include hashtab.h.
1553 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1554 declarations.
1555 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1556 ctx_no_push_dwarf_reg_entry_value.
1557 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1558 (dwarf_block_to_dwarf_reg): New function.
1559 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1560 (ctx_no_push_dwarf_reg_entry_value): New function.
1561 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1562 push_dwarf_reg_entry_value.
1563 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1564 declarations.
1565 * dwarf2loc.c: Include gdbcmd.h.
1566 (dwarf_expr_ctx_funcs): New forward declaration.
1567 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1568 (dwarf_expr_reg_to_entry_parameter)
1569 (dwarf_expr_push_dwarf_reg_entry_value): New.
1570 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1571 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1572 (needs_dwarf_reg_entry_value): New function.
1573 (needs_frame_ctx_funcs): Install it.
1574 (_initialize_dwarf2loc): New function.
1575 * dwarf2loc.h (entry_values_debug): New declaration.
1576 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1577 (read_call_site_scope): New forward declaration.
1578 (process_full_comp_unit): Copy call_site_htab.
1579 (process_die): Support DW_TAG_GNU_call_site.
1580 (read_call_site_scope): New function.
1581 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1582 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1583 (cleanup_htab): Delete.
1584 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1585 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1586 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1587 FIELD_LOC_KIND_DWARF_BLOCK.
1588 * gdbtypes.h (enum field_loc_kind): New entry
1589 FIELD_LOC_KIND_DWARF_BLOCK.
1590 (struct main_type): New loc entry dwarf_block.
1591 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1592 (TYPE_FIELD_DWARF_BLOCK): New.
1593 * python/py-type.c: Include dwarf2loc.h.
1594 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1595 internal_error call on unknown FIELD_LOC_KIND.
1596 * symtab.h (struct symtab): New field call_site_htab.
1597 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1598 (core_addr_hash, core_addr_eq): New functions.
1599
b6cdc2c1
JK
16002011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 Code reshuffle.
1603 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1604 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1605 calling_convention under func_stuff there.
1606 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1607 (init_type) <TYPE_CODE_FUNC>: Likewise.
1608 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1609 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1610 * gdbtypes.h (enum type_specific_kind): Change
1611 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1612 (struct main_type) <type_specific>: Change calling_convention to
1613 func_stuff. Move calling_convention to ...
1614 (struct func_type): ... this new struct.
1615 (INIT_FUNC_SPECIFIC): New #define.
1616 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1617
181cebd4
JK
16182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1619
1620 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1621 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1622 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1623 ctx->ref_addr_size. Handle its invalid value.
1624 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1625 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1626 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1627 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1628 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1629 (dwarf2_per_cu_ref_addr_size): New function.
1630
c471e790
JK
16312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1632
1633 Code cleanup.
1634 * dwarf2read.c (per_cu_header_read_in): New function.
1635 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1636 variables cu_header_local and cu_headerp.
1637
741f5e3c
JK
16382011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1639
1640 Fix initial language detection with -readnow.
1641 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1642 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1643 searches only for global symbols.
1644
a73d2258
JK
16452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1646
1647 Fix printed anonymous struct name.
1648 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1649 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1650 (anonymous_struct_prefix): New function.
1651 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1652 (dwarf2_name): Strip for anonymous structs any prefixes.
1653
749fd4ea
DE
16542011-10-07 Doug Evans <dje@google.com>
1655
1fa57852
DE
1656 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1657 `replace'.
1658
690a4937
DE
1659 * python/lib/gdb/printing.py: Whitespace cleanup.
1660
749fd4ea
DE
1661 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1662 warning.
1663
4c38200f
PA
16642011-10-07 Pedro Alves <pedro@codesourcery.com>
1665
1666 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1667 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1668 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1669 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1670 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1671 (arm_linux_remove_watchpoint): Adjust.
1672 * i386-linux-nat.c (i386_linux_dr_set_control)
1673 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1674 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1675 (ia64_linux_remove_watchpoint): Adjust.
1676 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1677 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1678 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1679 (ppc_linux_insert_mask_watchpoint)
1680 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1681 (ppc_linux_remove_watchpoint): Adjust.
1682 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1683 Adjust.
1684
b7ff339d
CV
16852011-10-07 Corinna Vinschen <vinschen@redhat.com>
1686
1687 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1688 (clear_win32_environment): New function for Cygwin to clear out
1689 Win32 environment.
1690 (windows_create_inferior): Prepare new environment from in_env
1691 for Cygwin, too.
1692
f287c1f3
PM
16932011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1694
5631e596 1695 PR python/13264
f287c1f3
PM
1696 * python/py-value.c (valpy_call): Check that arguments are
1697 a tuple.
1698 (is_intlike): Remove call to CHECK_TYPEDEF.
1699 (valpy_nonzero): Catch GDB exceptions.
1700 (valpy_absolute): Ditto.
1701 (valpy_lazy_string): Ditto.
1702 (valpy_call): Ditto.
1703 (valpy_get_is_optimized_out): Ditto.
1704 (valpy_long): Ditto.
1705 (valpy_float): Ditto.
1706 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1707 (valpy_richcompare): Ditto.
1708
03583c20
UW
17092011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1710
1711 * inferior.h (disable_randomization): Declare.
1712 * infrun.c (disable_randomization): New global variable.
1713 (show_disable_randomization): New function.
1714 (set_disable_randomization): Likewise.
1715 (_initialize_infrun): Install set/show disable-randomization
1716 commands.
1717 * linux-nat.c (disable_randomization): Remove.
1718 (show_disable_randomization): Likewise.
1719 (set_disable_randomization): Likewise.
1720 (_initialize_linux_nat): No longer install set/show
1721 disable-randomization commands here.
1722 (linux_nat_supports_disable_randomization): New function.
1723 (linux_nat_add_target): Install it.
1724 * remote.c (PACKET_QDisableRandomization): New enum value.
1725 (remote_protocol_packets): Support QDisableRandomization.
1726 (_initialize_remote): Likewise.
1727 (remote_supports_disable_randomization): New function.
1728 (init_remote_ops): Install it.
1729 (extended_remote_supports_disable_randomization): New function.
1730 (init_extended_remote_ops): Install it.
1731 (extended_remote_disable_randomization): New function.
1732 (extended_remote_create_inferior_1): Call it.
1733 * target.h (struct target_ops): Add to_supports_disable_randomization.
1734 (target_supports_disable_randomization): Add prototype.
1735 * target.c (target_supports_disable_randomization): New function.
1736 (find_default_supports_disable_randomization): Likewise.
1737 (init_dummy_target): Install it.
1738
20c168b5
KP
17392011-10-07 Kevin Pouget <kevin.pouget@st.com>
1740
1741 Allow Python notification of new object-file loadings.
1742 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1743 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1744 Add build rule for this file.
1745 * python/py-event.h (emit_new_objfile_event): New prototype.
1746 (newobjfile): New Python event emitter.
1747 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1748 Python event registry.
1749 * python/py-inferior.c: Include objfiles.h
1750 (python_new_objfile): New function.
1751 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1752 observers.
1753 * python/py-newobjfileevent.c: New file.
1754 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1755 prototype.
1756 * python/python.c (_initialize_python): Add
1757 gdbpy_initialize_new_objfile_event call.
1758 * NEWS: Add item for new Python event "gdb.newobjfile"
1759
b1c8db38
TG
17602011-10-05 Tristan Gingold <gingold@adacore.com>
1761
1762 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1763 Extract the ravenscar task name from the symbol for the atcb.
1764
0dab82e9
PK
17652011-10-04 Paul Koning <paul_koning@dell.com>
1766
1767 * python/py-type.c (typy_make_iter): Add forward declaration.
1768 (typy_fields_items): Use the gdb.Type iterator.
1769
84ad80e6
PK
17702011-10-04 Paul Koning <paul_koning@dell.com>
1771
1772 * NEWS: Add entry for Python gdb.Type mapping methods.
1773
cb6be26b
KP
17742011-10-04 Kevin Pouget <kevin.pouget@st.com>
1775
1776 PR python/12691: Add the inferior to Python exited event
1777 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1778 to exited_event.
1779 * python/py-event.h (emit_exited_event): Likewise
1780 * python/-inferior.c (python_inferior_exit): Likewise
1781
6005b210
JB
17822011-10-03 Joel Brobecker <brobecker@adacore.com>
1783
1784 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1785 in output of -ada-task-info GDB/MI command.
1786
75082e8c
JB
17872011-10-03 Joel Brobecker <brobecker@adacore.com>
1788
1789 * ada-lang.h (struct inferior): Declare.
1790 (print_ada_task_info): Add declaration.
1791 * ada-tasks.c (print_ada_task_info): Make non-static.
1792 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1793 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1794 * mi/mi-main.c: #include "ada-lang.h".
1795 (mi_cmd_list_features): Add "ada-task-info" to the list
1796 of supported features.
1797 (mi_cmd_ada_task_info): New function.
1798
7ed7d719
JB
17992011-10-03 Joel Brobecker <brobecker@adacore.com>
1800
1801 * python/python.c (python_run_simple_file): New function.
1802 (source_python_script, source_python_script_for_objfile):
1803 Replace call to PyRun_SimpleFile by call to
1804 python_run_simple_file.
1805
3fcaed38
PK
18062011-10-03 Paul Koning <paul_koning@dell.com>
1807
1808 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1809 (value_to_value_object): Fetch value if it was lazy.
1810
8e5c319d
JK
18112011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1812
1813 Code cleanup.
1814 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1815 Rearrange the code for it.
1816
dd11a36c
JB
18172011-10-02 Joel Brobecker <brobecker@adacore.com>
1818
1819 * breakpoint.c (bkpt_print_recreate): Add call to
1820 print_recreate_thread.
1821
723b724b
MF
18222011-09-29 Mike Frysinger <vapier@gentoo.org>
1823
1824 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1825 PTRACE_GETFDPIC_INTERP): Define.
1826
412946b6
YQ
18272011-09-28 Yao Qi <yao@codesourcery.com>
1828
1829 * symfile.c (add_symbol_file_command): Update message on usage.
1830
a73bb892
PK
18312011-09-28 Paul Koning <paul_koning@dell.com>
1832
1833 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1834 (typy_length, typy_get, typy_has_key, typy_make_iter)
1835 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1836 (typy_iterator_iter, typy_iterator_iternext)
1837 (typy_iterator_dealloc): New functions to implement standard
1838 Python mapping methods on gdb.Type object.
1839 (gdb.TypeIterator): New Python type.
1840 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1841
fe10a582
DM
18422011-09-28 David S. Miller <davem@davemloft.net>
1843
1844 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1845 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1846 * sparc-tdep.c (sparc_complex_floating_p): New function.
1847 (sparc32_store_arguments): Handle complex floats.
1848 (sparc32_extract_return_value): Likewise.
1849 (sparc32_store_return_value): Likewise.
1850 (sparc32_stabs_argument_has_addr): Likewise.
1851 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1852 (sparc64_store_floating_fields): Handle complex floats.
1853 (sparc64_store_arguments): Likewise.
1854 (sparc64_store_return_value): Likewise.
1855
c93dbcba
EZ
18562011-09-28 Eli Zaretskii <eliz@gnu.org>
1857
1858 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1859 before the change on 2006-12-09.
1860 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1861 generates the environment block for CreateProcessA, modulo the
1862 Cygwin-specific parts that are not needed here.
1863
f00c55f8
TG
18642011-09-27 Tristan Gingold <gingold@adacore.com>
1865
1866 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1867 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1868 (darwin_solib_get_all_image_info_addr_at_init): New function.
1869 (darwin_solib_read_all_image_info_addr): Likewise.
1870 (darwin_solib_create_inferior_hook): Use the above two functions.
1871 * darwin-nat.c (darwin_execvp): Renames retval to res.
1872 (darwin_read_write_inferior): Update comment.
1873 (darwin_read_dyld_info): New function.
1874 (darwin_xfer_partial): Handle DYLD_INFO.
1875
6710bf39
SS
18762011-09-27 Stan Shebs <stan@codesourcery.com>
1877
1878 Add return address collection for tracepoints.
1879 * tracepoint.c (encode_actions_1): Add case for $_ret.
1880 (validate_actionline): Check for $_ret.
1881 (trace_dump_actions): Ditto.
1882 * ax-gdb.h (gen_trace_for_return_address): Declare.
1883 * ax-gdb.c: Include arch-utils.h.
1884 (gen_trace_for_return_address): New function.
1885 (agent_command): Add return address special case.
1886 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1887 (amd64_gen_return_address): New function.
1888 (amd64_init_abi): Call it.
1889 * i386-tdep.c: Include ax.h and ax-gdb.h.
1890 (i386_gen_return_address): New function.
1891 (i386_init_abi): Call it.
1892 * arch-utils.h (default_gen_return_address): Declare.
1893 * arch-utils.c (default_gen_return_address): New function.
1894 * gdbarch.sh (gen_return_address): New method.
1895 * gdbarch.h, gdbarch.c: Regenerate.
1896
e04e5beb
JM
18972011-09-23 Joseph Myers <joseph@codesourcery.com>
1898
1899 PR gdb/13079
1900 * i386-tdep.c (i386_frame_align): New.
1901 (i386_gdbarch_init): Use i386_frame_align.
1902
f3d6df6d
YQ
19032011-09-23 Yao Qi <yao@codesourcery.com>
1904
1905 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1906 to get address.
1907
e69860f1
TG
19082011-09-22 Tristan Gingold <gingold@adacore.com>
1909
1910 * fork-child.c (fork_inferior): Add exec_fun parameter.
1911 Call exec_fun or execvp.
1912 * inferior.h: Adjust prototype.
1913 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1914 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1915 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1916 * procfs.c (procfs_create_inferior): Ditto.
1917 * darwin-nat.c (darwin_execvp): New function.
1918 (darwin_create_inferior): Use it.
1919
4b51d87b
YQ
19202011-09-22 Yao Qi <yao@codesourcery.com>
1921
1922 * infrun.c (context_switch): Print debug message when switching to
1923 a different thread.
1924
56b9d9ac
UW
19252011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1926
1927 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1928 complex and vector types.
1929 (s390_return_value_convention): Likewise.
1930
1931 (s390_value_from_register): Call check_typedef.
1932 (extend_simple_arg): Likewise.
1933 (alignment_of): Likewise.
1934 (s390_push_dummy_call): Likewise.
1935 (s390_return_value): Likewise.
1936
b2cd6b29
JM
19372011-09-21 Joseph Myers <joseph@codesourcery.com>
1938
1939 * event-top.c (async_disconnect): If an exception is thrown from
1940 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1941 catch_errors.
1942 * top.c (quit_cover): Return void and take no arguments.
1943 * top.h (quit_cover): Update prototype.
1944
67ba4e42
JM
19452011-09-20 Joseph Myers <joseph@codesourcery.com>
1946
1947 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1948 current_uiout, not uiout.
1949
562f943b
DE
19502011-09-19 Doug Evans <dje@google.com>
1951
1952 * python/py-auto-load.c (source_section_scripts): Fix file
1953 descriptor leak.
1954 * python/python.c (source_python_script_for_objfile): Tweak comments.
1955
34518530
YQ
19562011-09-18 Yao Qi <yao@codesourcery.com>
1957 Ulrich Weigand <ulrich.weigand@linaro.org>
1958
1959 Support displaced stepping for Thumb 16-bit insns.
1960 * arm-tdep.c (THUMB_NOP) Define.
1961 (thumb_copy_unmodified_16bit): New.
1962 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1963 (thumb_copy_alu_reg): New.
1964 (arm_copy_svc): Move some common code to ...
1965 (install_svc): ... here. New.
1966 (thumb_copy_svc): New.
1967 (install_pc_relative): New.
1968 (thumb_copy_pc_relative_16bit): New.
1969 (thumb_decode_pc_relative_16bit): New.
1970 (thumb_copy_16bit_ldr_literal): New.
1971 (thumb_copy_cbnz_cbz): New.
1972 (cleanup_pop_pc_16bit_all): New.
1973 (thumb_copy_pop_pc_16bit): New.
1974 (thumb_process_displaced_16bit_insn): New.
1975 (thumb_process_displaced_32bit_insn): New.
1976 (thumb_process_displaced_insn): process thumb instruction.
1977
1978 Support displaced stepping for Thumb 32-bit insns.
1979 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1980 (thumb2_copy_preload): New.
1981 (thumb2_copy_copro_load_store): New.
1982 (thumb2_copy_b_bl_blx): New.
1983 (thumb2_copy_alu_imm): New.
1984 (thumb2_copy_load_reg_imm): New.
1985 (thumb2_copy_load_literal): New
1986 (thumb2_copy_block_xfer): New.
1987 (thumb_32bit_copy_undef): New.
1988 (thumb_32bit_copy_unpred): New.
1989 (thumb2_decode_ext_reg_ld_st): New.
1990 (thumb2_decode_svc_copro): New.
1991 (decode_thumb_32bit_store_single_data_item): New.
1992 (thumb_copy_pc_relative_32bit): New.
1993 (thumb_decode_pc_relative_32bit): New.
1994 (decode_thumb_32bit_ld_mem_hints): New.
1995 (thumb2_copy_table_branch): New
1996 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1997 instructions.
1998
2b16b2e3
YQ
19992011-09-18 Yao Qi <yao@codesourcery.com>
2000
2001 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2002 (install_b_bl_blx): Likewise.
2003
0f6f04ba
YQ
20042011-09-17 Yao Qi <yao@codesourcery.com>
2005
2006 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2007 (install_load_store): ... this. New.
2008 Change parameter BYTE to SIZE.
2009 (arm_copy_ldr_str_ldrb_strb): Update caller.
2010 (arm_decode_ld_st_word_ubyte): Update caller.
2011
e2d96639
YQ
20122011-09-17 Yao Qi <yao@codesourcery.com>
2013
2014 * infrun.c (displaced_step_fixup): Move some code ...
2015 (displaced_step_restore): ... here. New function.
2016 (handle_inferior_event): Cleanup displaced stepping state for both
2017 child and parent when get forked or vforked event.
2018 * regcache.c (get_thread_arch_aspace_regcache): New function.
2019 get_thread_arch_regcache (): Call it.
2020
a8123151
JB
20212011-09-16 Joel Brobecker <brobecker@adacore.com>
2022
2023 * ada-tasks.c (print_ada_task_info): New function, merging
2024 short_task_info and info_tasks together. Reimplement using
2025 ui-out instead of printing to stdout directly. Move the code
2026 building and checking the task list here, instead of leaving it
2027 in info_tasks_command.
2028 (info_task): Move the code building and checking the task
2029 list here, instead of leaving it in info_tasks_command.
2030 (info_tasks_command): Delete code building and checking
2031 the task list - moved elsewhere. Update calls to info_tasks
2032 and info_task.
2033
fbf06824
JB
20342011-09-16 Joel Brobecker <brobecker@adacore.com>
2035
2036 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2037
34a0bc90
JB
20382011-09-16 Joel Brobecker <brobecker@adacore.com>
2039
2040 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2041
79779fa9
JB
20422011-09-16 Joel Brobecker <brobecker@adacore.com>
2043
2044 * ada-lang.h (ada_build_task_list): Remove parameter
2045 `warn_if_null'.
2046 * ada-tasks.c (ada_build_task_list): Remove parameter
2047 `warn_if_null'. Adjust implementation and documentation.
2048 (valid_task_id, ada_get_environment_task)
2049 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2050 (info_tasks_command): Adjust implementation.
2051 (task_command): Likewise.
2052 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2053 to ada_build_task_list.
2054
e225eb91
JB
20552011-09-16 Joel Brobecker <brobecker@adacore.com>
2056
2057 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2058 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2059 (ada_tasks_inferior_data_handle): New static global.
2060 (get_ada_tasks_inferior_data): New function.
2061 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2062 (ada_get_environment_task, iterate_over_live_ada_tasks)
2063 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2064 Adjust.
2065 (ada_set_current_inferior_known_tasks_addr): New function.
2066 (read_known_tasks, ada_build_task_list, short_task_info)
2067 (info_tasks, info_task, info_tasks_command, task_command_1)
2068 (task_command, ada_task_list_changed): Adjust.
2069 (ada_tasks_invalidate_inferior_data): New function.
2070 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2071 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2072 * ada-lang.h (struct inferior): Add declaration.
2073 (ada_task_list_changed): Update profile.
2074 * remote-wtx-pd.c: #include "inferior.h".
2075 (switch_to_pd_internal): Update call to ada_task_list_changed.
2076
6da9ca05
JB
20772011-09-16 Joel Brobecker <brobecker@adacore.com>
2078
2079 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2080 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2081 (atcb_fieldno): Delete these static globals.
2082 (struct ada_tasks_pspace_data): New struct.
2083 (ada_tasks_pspace_data_handle): New static global.
2084 (get_ada_tasks_pspace_data): New function.
2085 (ada_tasks_invalidate_pspace_data): New function.
2086 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2087 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2088 (_initialize_tasks): Create this module's per-progspace
2089 data handle.
2090
dccd3cbd
JB
20912011-09-16 Joel Brobecker <brobecker@adacore.com>
2092
2093 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2094
f877b031
TG
20952011-09-16 Tristan Gingold <gingold@adacore.com>
2096
2097 * fork-child.c (fork_inferior): Update comment. Use alloca
2098 instead of xmalloc for argv. Move len and shell_command
2099 declarations in the block where they are used.
2100 Only call execvp. Factorize failure code.
2101
ae0c443d
JK
21022011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2103
2104 Code cleanup.
2105 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2106 `exp_element' instead of an element of the same and make the function
2107 static.
2108 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2109 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2110 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2111 Change argument of `write_exp_elt' function call.
2112 Remove extra spaces from comments.
2113 * parser-defs.h (write_exp_elt): Remove prototype.
2114
5af65ec0
PK
21152011-09-15 Paul Koning <paul_koning@dell.com>
2116
2117 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2118 count of item appended to list.
2119 * python/py-type.c (typy_fields): Likewise.
2120
72be8ccc
PK
21212011-09-15 Paul Koning <paul_koning@dell.com>
2122
883640a8 2123 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2124
92f6badc
KP
21252011-09-15 Kevin Pouget <kevin.pouget@st.com>
2126
2127 PR threads/12628
2128 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2129 processes with multiple threads.
2130 (inf_has_multiple_thread_cb): New function.
2131 (inf_has_multiple_threads): New function.
2132
0672bf41 21332011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2134
2135 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2136 * python/py-inferior.c (GdbMethods): New Python method definition.
2137
6839b47f
KP
21382011-09-15 Kevin Pouget <kevin.pouget@st.com>
2139
2140 Handle multiple breakpoint hits in Python interface:
2141 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2142 variable to breakpoints.
2143 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2144 bps instead of single breakpoint. Fix some space typos.
2145 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2146 variable to breakpoints.
2147
672f9b60
KP
21482011-09-15 Kevin Pouget <kevin.pouget@st.com>
2149
2150 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2151 note if the breakpoint is internal.
2152
43675ae4
KP
21532011-09-15 Kevin Pouget <kevin.pouget@st.com>
2154
0672bf41 2155 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2156
15148d6a
PA
21572011-09-14 Pedro Alves <pedro@codesourcery.com>
2158
2159 * infrun.c (prepare_for_detach, wait_for_inferior)
2160 (fetch_inferior_event): Don't flush the register cache.
2161 * remote.c (struct stop_reply) <regcache>: Add comment.
2162
d83e736b
JK
21632011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 Remove excessive DWARF expressions memory duplication.
2166 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2167 for block.data.
2168 (indirect_pieced_value): Remove variable result. Remove variable
2169 back_to and its use for baton.data.
2170 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2171 block.data.
2172 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2173 Update the function comment.
2174
c65b3e0d
PA
21752011-09-13 Pedro Alves <pedro@codesourcery.com>
2176
2177 * inferior.h (ALL_INFERIORS): New.
2178 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2179 for a stopped thread.
2180 (thread_db_find_new_threads): Look for threads in all inferiors.
2181
a1398e0c
PA
21822011-09-13 Pedro Alves <pedro@codesourcery.com>
2183
2184 * breakpoint.c (update_watchpoint): Handle the case of the
2185 watchpoint to update not being in the breakpoint list yet.
2186 (hw_watchpoint_use_count): New, factored out from
2187 hw_watchpoint_used_count.
2188 (hw_watchpoint_used_count): Rename to ...
2189 (hw_watchpoint_used_count_others): ... this. Add `except'
2190 parameter. Don't count resources of `except'. Use
2191 hw_watchpoint_use_count.
2192
30596231
PA
21932011-09-13 Pedro Alves <pedro@codesourcery.com>
2194
2195 * gdbthread.h (enum thread_state): Moved here.
2196 (struct thread_info): Rename `executing_' field to `executing' and
2197 `state_' to `state'.
2198 * thread.c (enum thread_state): Moved to gdbthread.h.
2199 (new_thread, add_thread_silent, delete_thread_1)
2200 (any_live_thread_of_process, thread_alive, set_running)
2201 (set_running, is_thread_state, any_running, is_executing)
2202 (set_executing, finish_thread_state, print_thread_info)
2203 (do_captured_thread_select): Adjust.
2204
bede5f5f
JK
22052011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2206
2207 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2208 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2209
4801a9a3
PA
22102011-09-12 Pedro Alves <pedro@codesourcery.com>
2211 Matt Rice <ratmice@gmail.com>
2212
2213 PR gdb/13175
2214
2215 * interps.c (struct interp) <interpreter_out>: Delete field.
2216 (interp_new): Remove the data and uiout parameters and adjust.
2217 (interp_set): Only set the current_uiout from the interpreter's
2218 uiout after initializing the interpreter. Adjust call to
2219 init_proc.
2220 (interp_ui_out): Adjust to call procs->ui_out_proc.
2221 (interp_data, interp_name): New.
2222 * interps.h (interp_init_ftype): Add `self' parameter.
2223 (interp_ui_out_ftype): New typedef.
2224 (struct interp_procs) <ui_out_proc>: New method pointer.
2225 (interp_new): Remove the data and uiout parameters.
2226 (interp_data, interp_name): Declare.
2227 * tui/tui-interp.c (tui_init): Adjust prototype.
2228 (tui_ui_out): New.
2229 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2230 tui_out here. Adjust call to interp_new.
2231 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2232 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2233 (cli_ui_out): New.
2234 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2235 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2236 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2237 Initialize mi->uiout depending on the mi_version as extracted from
2238 the interpreter's name.
2239 (mi_ui_out): New.
2240 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2241 interp_new. Don't allocate the ui_out's of the interpreters here.
2242
d0afda03 22432011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2244
d0afda03 2245 * solib.c (solib_used): New function.
59145f8c
AR
2246 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2247 by another so_list object before freeing it.
2248
bdaf8d4a
JK
22492011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 Code cleanup.
2252 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2253 values.
2254
df15bd07
JK
22552011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257 Code cleanup.
2258 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2259 (amd64_skip_xmm_prologue): ... this new function. Describe its
2260 parameters. No longer use amd64_prologue_line_bug.
2261 * defs.h (producer_is_gcc_ge_4): New declaration.
2262 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2263 (process_full_comp_unit): Update its caller. Remove
2264 amd64_prologue_line_bug initialization.
2265 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2266 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2267
25289eb2
PA
22682011-09-09 Pedro Alves <pedro@codesourcery.com>
2269
2270 * linux-nat.h (enum resume_kind): New.
2271 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2272 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2273 resume_stop on the new lwp.
25289eb2
PA
2274 (add_lwp): Set last_resume_kind as resume_continue by default.
2275 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2276 (resume_lwp): New, factored out from resume_callback. Also check
2277 for pending status in lp->waitstatus.
2278 (resume_callback): Reimplement.
2279 (resume_clear_callback): Set last_resume_kind as resume_stop.
2280 (resume_set_callback): Set last_resume_kind as resume_continue.
2281 (linux_nat_resume, linux_handle_extended_wait): Set
2282 last_resume_kind.
2283 (running_callback): Also check lp->waitstatus for pending events.
2284 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2285 is resume_step.
2286 (stop_and_resume_callback): Don't re-resume if the core wanted the
2287 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2288 using an invalidated pointer.
2289 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2290 SIGSTOPs if the core wanted the LWP to stop.
2291 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2292 wanted the lwp to stop. If the core wanted the lwp to stop, and
2293 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2294 of TARGET_SIGNAL_STOP.
2295 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2296 here. Instead, signal the lwp, and set the last_resume_kind to
2297 resume_stop.
2298
f687d035
PA
22992011-09-09 Pedro Alves <pedro@codesourcery.com>
2300
2301 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2302 -1 (error), if the lwp exits right after attaching.
2303
bc587a6b
DE
23042011-09-08 Doug Evans <dje@google.com>
2305
63d97a20
DE
2306 * py-cmd.c: Some minor formatting fixes.
2307 (gdbpy_parse_command_name): Rename text arg to name, make const.
2308 All callers updated.
2309 * python-internal.h (gdbpy_parse_command_name): Update.
2310
bc587a6b
DE
2311 * cli/cli-decode.c (add_cmd): Add comment.
2312
08711b9a
JK
23132011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2314
2315 PR breakpoints/12435
2316 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2317 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2318 * dwarf2read.c (process_full_comp_unit): Initialize
2319 amd64_prologue_line_bug.
2320 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2321
b2e7f004
JK
23222011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 Fix TUI screen corruption.
2325 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2326 batch_flag.
2327
8afd712c
JK
23282011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2329
2330 * findvar.c (read_var_value): Never return NULL, throw an error
2331 instead. Update the function comment. State symbol name in the error
2332 messages.
2333 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2334 read_var_value.
2335 * stack.c (print_frame_args): Likewise.
2336 * valops.c (value_of_variable): Likewise.
2337
b99b5f66
JK
23382011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 * stack.c (print_frame_args): New variable except. Wrap
2341 read_var_value and common_val_print into TRY_CATCH.
2342
85bc8cb7
JK
23432011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2344
2345 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2346 caller to value_of_this.
2347 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2348 Twice.
2349 * valops.c (value_of_this): Remove parameter complain and variable ret.
2350 Update function comment. Never return NULL by this code.
2351 (value_of_this_silent): New function.
2352 * value.h (value_of_this): Remove parameter complain.
2353 (value_of_this_silent): New declaration.
2354
ede1849f
YQ
23552011-09-07 Yao Qi <yao@codesourcery.com>
2356
2357 * gdbthread.h (struct thread_info): Remove fields
2358 `stepping_through_solib_after_catch' and
2359 `stepping_through_solib_catchpoints'.
2360 * infrun.c (init_thread_stepping_state): Update.
2361 (process_event_stop_test, currently_stepping): Update.
2362 (currently_stepping_or_nexting_callback): Update.
2363
6aa27652
YQ
23642011-09-07 Yao Qi <yao@codesourcery.com>
2365
2366 * gdbthread.h (struct thread_info): Comment on field
2367 `step_after_step_resume_breakpoint'.
2368
00db5b94
PA
23692011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2370
2371 * remote.c (remote_console_output): Reindent.
2372
861152be
LM
23732011-09-06 Luis Machado <lgustavo@codesourcery.com>
2374
2375 * frame.c (has_stack_frames): Check for currently selected
2376 traceframe.
2377
ab821bc6
PA
23782011-09-06 Pedro Alves <pedro@codesourcery.com>
2379
2380 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2381 (set_async_annotation_level, set_async_prompt, pop_prompt)
2382 (push_prompt, new_async_prompt): Delete declarations.
2383 * top.h (get_prompt, set_prompt): Change prototype.
2384 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2385 declarations.
2386 * top.c (command_loop):
2387 (top_prompt): New global.
2388 (get_prefix, set_prefix, get_suffix, ): Delete.
2389 (get_prompt, set_prompt): Rewrite.
2390 (show_new_async_prompt): Rename to ...
2391 (show_prompt): ... this.
2392 (init_main): Adjust. Don't handle --annotate=2 here.
2393 * event-top.c (new_async_prompt): Delete.
2394 (the_prompts): Delete.
2395 (more_to_come): Make static.
2396 (display_gdb_prompt): Use top_level_prompt() to compute the top
2397 level prompt, and don't notify the before_prompt observers
2398 directly here. Always trick readline into not trying to display
2399 the prompt if sync_execution and displaying the primary prompt.
2400 If displaying a local/secondary prompt, always show it, even if
2401 sync_execution is set.
2402 (change_annotation_level): Delete.
2403 (top_level_prompt): New, based on change_annotation_level.
2404 (push_prompt, pop_prompt): Delete.
2405 (async_disable_stdin): No longer pushes prompt.
2406 (command_line_handler): No longer pushes or pops prompt. If more
2407 input is expected, call display_gdb_prompt with an explicit empty
2408 prompt.
2409 (async_stop_sig): Adjust.
2410 (set_async_annotation_level, set_async_prompt): Delete.
2411 * python/python.c (before_prompt_hook): Adjust.
2412
f1d90504
PA
24132011-09-05 Pedro Alves <pedro@codesourcery.com>
2414
2415 PR cli/13110
2416
2417 * infrun.c (fetch_inferior_event): Check if there's a selected
2418 thread before checking if the selected thread is executing.
2419
0f641c01
PA
24202011-09-05 Pedro Alves <pedro@codesourcery.com>
2421
2422 * inf-loop.c (execute_command): Don't check if the current thread
2423 if running before synchronously waiting for command completion.
2424 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2425 here.
2426 (normal_stop): Call async_enable_stdin here.
2427 * inf-loop.c (inferior_event_handler): Don't call
2428 async_enable_stdin, nor handle "set exec-done-display" here.
2429
30368258 24302011-09-04 Joel Brobecker <brobecker@adacore.com>
2431
2432 GDB 7.3.1 released.
2433
31916278
JB
24342011-09-04 Joel Brobecker <brobecker@adacore.com>
2435
2436 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2437
e8d56f18
JB
24382011-09-04 Joel Brobecker <brobecker@adacore.com>
2439
2440 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2441
5dd05d8c
JK
24422011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2443
2444 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2445
7d8e6458 24462011-09-02 Matt Rice <ratmice@gmail.com>
2447
2448 PR gdb/10720
2449 * event-top.c (cli_command_loop): Replace readline setup with
2450 direct call to display_gdb_prompt.
2451 (display_gdb_prompt): Do not call observer mechanism during
2452 synchronous execution.
2453
84636d28
PA
24542011-09-02 Pedro Alves <pedro@codesourcery.com>
2455
2456 * linux-nat.c (in_pid_list_p): New.
2457 (linux_record_stopped_pid): Delete.
2458 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2459 already attached to the LWP. Return an indication if so.
2460 (linux_nat_filter_event): Adjust.
2461 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2462 returning an indication to ignore this thread.
2463
b4a14fd0
PA
24642011-09-02 Pedro Alves <pedro@codesourcery.com>
2465
2466 * top.c: Include interps.h.
2467 (execute_command): If the target can async, but the interpreter is
2468 in sync mode, synchronously wait for the command to finish before
2469 returning.
2470 (execute_command_to_string): Force the interpreter to sync mode.
2471 * infrun.c: Include interps.h.
2472 (fetch_inferior_event): Don't restore the prompt yet if the
2473 interpreter is in sync mode.
2474 * interps.c (interpreter_async): New global.
2475 * interps.h (interpreter_async): Declare.
2476 * inf-loop.c: Include interps.h.
2477 (inferior_event_handler): Don't print the language change or run
2478 breakpoint commands yet if the interpreter in is sync mode.
2479 * main.c (captured_command_loop): Flip the interpreter to async
2480 mode.
2481 * cli/cli-script.c: Include interps.h.
2482 (execute_user_command, while_command, if_command): Force the
2483 interpreter to sync mode.
2484 * python/python.c: Include interps.h.
2485 (python_command, execute_gdb_command): Force the interpreter to
2486 sync mode.
2487
c709acd1
PA
24882011-09-02 Pedro Alves <pedro@codesourcery.com>
2489
2490 * value.c (show_convenience): Catch errors thrown while printing
2491 each internal variable.
2492 * infrun.c (validate_siginfo_access): New function.
2493 (siginfo_value_read, siginfo_value_write): Call it.
2494
9655e943
JK
24952011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2496
2497 Revert:
2498 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2499 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2500 attribute.
2501
cb457ae2
YQ
25022011-08-29 Yao Qi <yao@codesourcery.com>
2503
2504 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2505 (cmp_name): New.
2506 (enable_break2): Update caller.
2507 * solib-frv.c (bfd_lookup_symbol): Removed.
2508 (cmp_name): New.
2509 (enable_break2): Update caller.
2510 * solib-pa64.c (bfd_lookup_symbol): Removed.
2511 (cmp_name): New.
2512 * solib-svr4.c (bfd_lookup_symbol): Removed.
2513 (cmp_name_and_sec_flags): New.
2514 (enable_break): Update caller.
2515 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2516 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2517 (gdb_bfd_lookup_symbol): New.
2518 * solib.h: Functions declarations.
2519
83d1a36a
YQ
25202011-08-29 Yao Qi <yao@codesourcery.com>
2521
2522 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2523 and solib-dsbt.o.
2524
c04b3e8f
JK
25252011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2526
2527 Fix TUI stepi on code without symbols.
2528 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2529 current PC instead.
2530
cb0fd152
JK
25312011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2532
2533 Code cleanup.
2534 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2535 and the static keyword.
2536 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2537 Make prefix an array.
2538 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2539 * mi/mi-main.c (get_register): Remove stb initialization and the static
2540 keyword.
2541
91174723
JK
25422011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2543
2544 Code cleanup - make mi_opt const.
2545 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2546 opts const.
2547 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2548 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2549 (mi_cmd_env_dir): Likewise.
2550 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2551 (mi_cmd_target_file_put): Likewise.
2552 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2553 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2554 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2555 (mi_valid_noargs): Make opts const.
2556 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2557 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2558 (mi_cmd_data_read_memory): Likewise.
2559 (mi_cmd_data_read_memory_bytes): Likewise.
2560 (mi_cmd_data_write_memory): Likewise.
2561
5068b8e8 25622011-08-26 Matt Rice <ratmice@gmail.com>
2563
2564 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2565 bcache_xmalloc, replace bcache_xmalloc with call to
2566 psymbol_bcache_init for psymbol_cache.
2567 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2568
a4f2ce05
JK
25692011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 * inf-loop.c (inferior_event_handler): Add exception_print in
2572 INF_EXEC_COMPLETE.
2573
353d1d73
JK
25742011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2575
2576 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2577 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2578 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2579 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2580 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2581 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2582 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2583 * infrun.c (fetch_inferior_event): Call
2584 make_bpstat_clear_actions_cleanup.
2585 * top.c (execute_command): New variable cleanup_if_error, call
2586 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2587 * utils.c (do_bpstat_clear_actions_cleanup)
2588 (make_bpstat_clear_actions_cleanup): New functions.
2589
3ced3da4
PA
25902011-08-26 Pedro Alves <pedro@codesourcery.com>
2591
2592 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2593 either the parent or the child forks. Rename a couple locals.
2594
a9f4bb21
PA
25952011-08-26 Pedro Alves <pedro@codesourcery.com>
2596
2597 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2598 library call. Avoid reading the `status' local if all waitpid
2599 calls failed.
2600
e5798bef
PA
26012011-08-26 Pedro Alves <pedro@codesourcery.com>
2602
2603 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2604 opening /proc/PID/task always succeeds.
2605
edb2aadf
AR
26062011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2607
2608 * linespec.c (symtab_from_filename): Check for the end of string.
2609
0d932b2f
MK
26102011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2611
2612 PR mi/11912
2613 * varobj.c (cplus_describe_child): Add the keyword
2614 'class' to the output of the method when dealing
2615 with a cast to a base class.
2616
e93ca019
JK
26172011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2618
2619 No functionality change.
2620 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2621 function comment a reference, new variables tp and bs, move here code
2622 from throw_exception.
2623 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2624 describe it in the comment.
2625 * exceptions.c (throw_exception): Remove variable tp, move the code for
2626 bpstat_clear_actions to bpstat_clear_actions.
2627
13da1c97
LM
26282011-08-24 Luis Machado <lgustavo@codesourcery.com>
2629
2630 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2631 * linux-nat.c: Include linux-procfs.h.
2632 (linux_proc_get_tgid): Move to ...
2633 * common/linux-procfs.c: ... here. New file.
2634 * common/linux-procfs.h: New file.
2635 * linux-thread-db.c: Include linux-procfs.h.
2636 * Makefile.in: Update dependencies.
2637 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2638 * config/arm/linux.mh: Likewise.
2639 * config/i386/linux.mh: Likewise.
2640 * config/i386/linux64.mh: Likewise.
2641 * config/ia64/linux.mh: Likewise.
2642 * config/m32r/linux.mh: Likewise.
2643 * config/m68k/linux.mh: Likewise.
2644 * config/mips/linux.mh: Likewise.
2645 * config/pa/linux.mh: Likewise.
2646 * config/pa/linux.mh: Likewise.
2647 * config/powerpc/linux.mh: Likewise.
2648 * config/powerpc/ppc64-linux.mh: Likewise.
2649 * config/powerpc/spu-linux.mh: Likewise.
2650 * config/sparc/linux.mh: Likewise.
2651 * config/sparc/linux64.mh: Likewise.
2652 * config/xtensa/linux.mh: Likewise.
2653
4e5c165d
HZ
26542011-08-24 Hui Zhu <teawater@gmail.com>
2655
2656 * tracepoint.c (cond_string_is_same): New function.
2657 (find_matching_tracepoint): Add condition check
2658 by cond_string_is_same.
2659
6e2f5b22
JK
26602011-08-23 Josh Matthews <josh@joshmatthews.net>
2661
2662 Fix build error in Darwin port.
2663 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2664
abf85f46
JK
26652011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2666
2667 Code cleanup.
2668 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2669 (command_line_is_silent): New function.
2670 (bpstat_do_actions_1): No longer use commands_left, use
2671 command_line_is_silent for commands.
2672 (bpstat_alloc): Remove clearing of commands_left.
2673 (bpstat_stop_status): Remove initialization of commands_left, use
2674 command_line_is_silent.
2675 * breakpoint.h (struct bpstats): Remove commands_left.
2676
3a93a0c2
KS
26772011-08-18 Keith Seitz <keiths@redhat.com>
2678
2679 PR c++/12266
2680 * cp-name-parser.y (struct demangle_info): Remove unused
2681 member PREV.
2682 (d_grab): Likewise.
2683 (allocate_info): Change return type to struct demangle_info *.
2684 Always allocate a new demangle_info.
2685 Remove unused PREV pointer.
2686 (cp_new_demangle_parse_info): New function.
2687 (cp_demangled_name_parse_free): New function.
2688 (do_demangled_name_parse_free_cleanup): New function.
2689 (make_cleanup_cp_demangled_name_parse_free): New function.
2690 (cp_demangled_name_to_comp): Change return type to
2691 struct demangle_parse_info *.
2692 Allocate a new storage for each call.
2693 (main): Update usage for cp_demangled_name_to_comp
2694 API change.
2695 * cp-support.h (struct demangle_parse_info): New structure.
2696 (cp_demangled_name_to_comp): Update API change for
2697 return type.
2698 (cp_new_demangle_parse_info): Declare.
2699 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2700 (cp_demangled_name_parse_free): Declare.
2701 * cp-support.c (cp_canonicalize_string): Update API
2702 change for cp_demangled_name_to_comp.
2703 (mangled_name_to_comp): Likewise.
2704 Return struct demangle_parse_info, too.
2705 (cp_class_name_from_physname): Update mangled_name_to_comp
2706 API change.
2707 (method_name_from_physname): Likewise.
2708 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2709 (cp_remove_params): Likewise.
2710 * python/py-type.c (typy_legacy_template_argument): Likewise.
2711
2712 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2713 (cp_merge_demangle_parse_infos): Declare.
2714 * cp-support.c (ignore_typedefs): New file global.
2715 (copy_string_to_obstack): New function.
2716 (inspect_type): New function.
2717 (replace_typedefs): New function.
2718 (replace_typedefs_qualified_name): New function.
2719 (cp_canonicalize_string_no_typedefs): New function.
2720 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2721 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2722 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2723 instead of cp_canonicalize_string.
2724 (find_method): Likewise.
2725 (decode_compound): Before looking up the name, call
2726 cp_canonicalize_string_no_typedefs.
2727 (decode_variable): Likewise.
2728
fa3a4f15
PM
27292011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2730 Tom Tromey <tromey@redhat.com>
2731 Matt Rice <ratmice@gmail.com>
2732
2733 * python/lib/gdb/prompt.py: New file.
2734 * python/lib/gdb/command/prompt.py: New file.
2735 * NEWS: Document set extended-prompt and gdb.prompt library
2736
85661b1e
YQ
27372011-08-16 Yao Qi <yao@codesourcery.com>
2738
2739 * tic6x-linux-tdep.c: Move const arrays definition from here...
2740 * tic6x-tdep.c: to here ...
2741
11315641
YQ
27422011-08-14 Yao Qi <yao@codesourcery.com>
2743
2744 * NEWS: New port to Texas Instruments TMS320C6x.
2745
8cd64e00
YQ
27462011-08-14 Andrew Jenner <andrew@codesourcery.com>
2747 Bernd Schmidt <bernds@codesourcery.com>
2748 Yao Qi <yao@codesourcery.com>
2749
2750 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2751 * solib-dsbt.c: New file. Support DSBT shared object.
2752 * tic6x-linux-tdep.c: New file.
2753 * tic6x-tdep.c: New file.
2754 * tic6x-tdep.h: New file.
2755
78d85199
YQ
27562011-08-14 Andrew Stubbs <ams@codesourcery.com>
2757 Yao Qi <yao@codesourcery.com>
2758
2759 * remote.c (PACKET_qXfer_fdpic): New enum value.
2760 (remote_protocol_features): Add qXfer:fdpic:read packet.
2761 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2762 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2763 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2764
224bbe49
YQ
27652011-08-14 Yao Qi <yao@codesourcery.com>
2766
2767 Target description for tic6x.
2768 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2769 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2770 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2771 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2772 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2773 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2774 * features/tic6x-c64xp-linux.xml: New.
2775 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2776 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2777 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2778 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2779 * regformats/tic6x-c64xp.dat,
2780 regformats/tic6x-c62x-linux.dat: Generated.
2781 * regformats/tic6x-c64x-linux.dat,
2782 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2783 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2784 features/tic6x-*.c files.
2785 Add regformats/tic6x-*.dat files.
2786
457e09f0
DE
27872011-08-12 Doug Evans <dje@google.com>
2788
2789 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2790 * python/py-symbol.c (sympy_get_type): New function.
2791 (symbol_object_getset): Add "type".
2792
d20c1c3f
PA
27932011-08-12 Pedro Alves <pedro@codesourcery.com>
2794
2795 PR tui/13073
2796
2797 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2798 empty name.
2799 (tui_show_register_group): Don't store a byte buffer in the data
2800 element's value.
2801 (tui_register_format): Skip registers with an empty name.
2802 (tui_get_register): Store a struct value in the data element's
2803 value field instead of a byte buffer holding the raw register
2804 contents. Account for optimized-out and unavailable registers
2805 when comparing register contents.
2806
9d8fa392
PA
28072011-08-09 Pedro Alves <pedro@codesourcery.com>
2808
2809 * printcmd.c (current_display_number): Update comment.
2810 (disable_current_display_cleanup): Delete.
2811 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2812 catch errors thrown while evaluating and printing the display.
2813
401a70b8
TT
28142011-08-09 Tom Tromey <tromey@redhat.com>
2815
2816 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2817
7f86f058
PA
28182011-08-09 Pedro Alves <pedro@codesourcery.com>
2819
94b71cca 2820 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2821 * maint.c (maintenance_command): Ditto.
2822 * somread.c (som_symtab_read): Ditto.
2823 * solib.c (solib_find, solib_map_sections, update_solib_list)
2824 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2825 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2826 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2827 * solib-irix.c (locate_base, disable_break, enable_break)
2828 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2829 (irix_current_sos, irix_open_symbol_file_object)
2830 (irix_special_symbol_handling): Ditto.
2831 * solib-sunos.c (locate_base, first_link_map_member)
2832 (sunos_current_sos, disable_break, enable_break)
2833 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2834 Ditto.
2835 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2836 (open_symbol_file_object, svr4_current_sos, enable_break)
2837 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2838 Ditto.
2839 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2840 (frv_current_sos, enable_break, frv_special_symbol_handling)
2841 (frv_solib_create_inferior_hook): Ditto.
2842 * solist.h (struct target_so_ops): Extend the comments of the
2843 special_symbol_handling, current_sos and open_symbol_file_object
2844 methods.
2845
5e239b84
PM
28462011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2847
2848 * python/lib/gdb/__init__.py: Auto-load files in command and
2849 function directories.
2850 * python/python.c (finish_python_initialization): Use
2851 os.path.join.
2852 * python/lib/gdb/command/pretty_printers.py: Self register
2853 command.
2854 * NEWS: Document auto-loading.
2855
b6cede78
JK
28562011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2857
2858 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2859 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2860 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2861
29d0bb3d
TT
28622011-08-08 Tom Tromey <tromey@redhat.com>
2863
2864 * breakpoint.c (clean_up_filters): Remove.
2865 (catch_syscall_split_args): Use VEC_cleanup.
2866
2f7fb8e4
JK
28672011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2868
2869 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2870 (main): Uncomment "Demangling error\n".
2871
d6c10e95
PP
28722011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2873
2874 * solib-target.c (segment_attributes): Make them static.
2875 (section_attributes, library_children, library_attributes): Likewise.
2876 (library_list_children, library_list_attributes): Likesise.
2877 (library_list_elements): Likewise.
2878
af6e93b2
PA
28792011-08-05 Pedro Alves <pedro@codesourcery.com>
2880
2881 * exceptions.c (throw_exception): Don't disable the current
2882 display.
2883 * printcmd.c (disable_current_display_cleanup): New function.
2884 (do_one_display): Install a cleanup to disable the current display
2885 if doing the display throws.
2886
6a1b1664
EZ
28872011-08-05 Eli Zaretskii <eliz@gnu.org>
2888
2889 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2890 initialization of the tp_new member to the corresponding
2891 gdbpy_initialize_* function.
2892 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2893 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2894 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2895 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2896 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2897
31a0ae49
JK
28982011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2899
2900 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2901 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2902 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2903 references to current_uiout.
2904
e0dd0826
PA
29052011-08-04 Pedro Alves <pedro@codesourcery.com>
2906
2907 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2908 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2909 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2910 * top.c (gdb_readline_wrapper): Adjust.
2911 * tui/tui-interp.c (tui_command_loop):
2912 (_initialize_tui_interp): Don't install it.
2913
79a45e25
PA
29142011-08-04 Pedro Alves <pedro@codesourcery.com>
2915
2916 * ui-out.h (uiout): Rename to ...
2917 (current_uiout): ... this.
2918 * ui-out.c (uiout): Rename to ...
2919 (current_uiout): ... this.
2920 * ada-lang.c (print_it_exception, print_one_exception)
2921 (print_mention_exception): Adjust.
2922 * breakpoint.c (watchpoint_check): Adjust.
2923 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2924 (default_collect_info, watchpoints_info, print_one_catch_fork)
2925 (print_one_catch_vfork, print_one_catch_syscall)
2926 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2927 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2928 (print_it_watchpoint, print_mention_watchpoint)
2929 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2930 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2931 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2932 (bkpt_print_mention, momentary_bkpt_print_it)
2933 (tracepoint_print_mention, update_static_tracepoint)
2934 (tracepoints_info, save_breakpoints): Adjust.
2935 * cli-out.c (field_separator): Adjust.
2936 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2937 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2938 * frame.c (get_current_frame): Adjust.
2939 * infcmd.c (run_command_1, print_return_value): Adjust.
2940 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2941 * infrun.c (print_end_stepping_range_reason): Adjust.
2942 (print_signal_exited_reason, print_exited_reason): Adjust.
2943 (print_signal_received_reason, print_no_history_reason): Adjust.
2944 * interps.c (interp_set): Adjust.
2945 * osdata.c (info_osdata_command): Adjust.
2946 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2947 * remote-fileio.c (remote_fileio_request): Adjust.
2948 * remote.c (show_remote_cmd): Adjust.
2949 * solib.c (info_sharedlibrary_command): Adjust.
2950 * source.c (print_source_lines_base): Adjust.
2951 * stack.c (print_stack_frame): Adjust.
2952 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2953 * symfile-mem.c (add_vsyscall_page): Adjust.
2954 * symfile.c (load_progress, generic_load)
2955 (print_transfer_performance): Adjust.
2956 * thread.c (info_threads_command, restore_selected_frame)
2957 (thread_command): Adjust.
2958 * top.c (make_cleanup_restore_ui_file): Adjust.
2959 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2960 (print_one_static_tracepoint_marker): Adjust.
2961 * cli/cli-cmds.c (print_disassembly): Adjust.
2962 * cli/cli-decode.c (print_doc_line): Adjust.
2963 * cli/cli-interp.c (safe_execute_command): Adjust.
2964 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2965 (handle_redirections): Adjust.
2966 * cli/cli-script.c (show_user_1): Adjust.
2967 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2968 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2969 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2970 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2971 (mi_cmd_env_dir): Adjust.
2972 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2973 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2974 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2975 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2976 (list_args_or_locals): Adjust.
2977 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2978 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2979 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2980 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2981 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2982 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2983 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2984 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2985 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2986 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2987 (list_available_thread_groups, mi_cmd_list_thread_groups)
2988 (mi_cmd_data_list_register_names)
2989 (mi_cmd_data_list_changed_registers)
2990 (mi_cmd_data_list_register_values, get_register)
2991 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2992 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2993 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2994 (mi_execute_command, mi_load_progress): Adjust.
2995 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2996 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2997 Adjust.
2998 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2999 * tui/tui-interp.c (tui_command_loop): Adjust.
3000 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3001
f9679975
PA
30022011-08-04 Pedro Alves <pedro@codesourcery.com>
3003
3004 * exceptions.c (struct catcher): Remove saved_uiout field.
3005 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3006 no longer save/resvore the global ui_out builder.
3007 (catch_exceptions_with_msg): Save/override/restore the global
3008 ui_out builder manually instead of relying on TRY_CATCH to do it.
3009 (catch_errors): Save/restore the global ui_out builder manually
3010 instead of relying on TRY_CATCH to do it.
3011 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3012 parameter.
3013 (TRY_CATCH): Adjust.
3014 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3015 the global ui_out builder manually instead of relying on TRY_CATCH
3016 to do it.
3017
934709f0
PW
30182011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3019
3020 * breakpoint.c (update_global_location_list): Ensure
3021 invariant 'first loc marked not duplicated and inserted,
3022 following locs marked duplicated/not inserted' is respected
3023 for multiple locations at the same address.
3024 (unduplicated_should_be_inserted) New function.
3025 (swap_insertion) New function.
3026
2421fe6f
JK
30272011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3028
3029 * stack.c (print_frame_arguments_choices): Comment typo fix.
3030
3fbb6ffa
TJB
30312011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3032
3033 Revert:
3034 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3035 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3036 argument. Update callers.
3037
fbe12357
PP
30382011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3039
3040 PR gdb/13045
3041 * doublest.c (convert_doublest_to_floatformat): Pass correct
3042 mantissa length to put_field.
3043
b1d288d3
JK
30442011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3045
3046 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3047 exception_print code path.
3048 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3049 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3050 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3051
311b5970
JK
30522011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3053
3054 Code cleanup.
3055 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3056 Remove, merge them into ...
3057 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3058 variable args and its initialization.
3059 (struct print_args_args, print_args_stub): Remove, merge them into
3060 print_frame.
3061 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3062 them into ...
3063 (do_gdb_disassembly): ... here. Remove variable args and its
3064 initialization.
3065 (print_frame): Remove variable args and its initialization, new
3066 variable gdbarch and numargs (from print_args_stub), inline here
3067 print_args_stub with a TRY_CATCH.
3068 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3069 them into ...
3070 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3071 New variable e, remove variable btargs and its initialization.
311b5970 3072
484a26a8
TG
30732011-08-01 Tristan Gingold <gingold@adacore.com>
3074
3075 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3076
c30eee59
TJB
30772011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3078
3079 * breakpoint.c (insert_bp_location): Document return value.
3080 (insert_breakpoint_locations): Fix documentation.
3081 (remove_breakpoints): Add documentation.
3082
f116073b
TJB
30832011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3084
3085 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3086 argument. Update callers.
3087
65aa373f
JK
30882011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3089
3090 * stack.c (print_frame_info): Comment typo fix.
3091
a50242fb
SA
30922011-07-29 Sterling Augustine <saugustine@google.com>
3093
3094 * MAINTAINERS (Write After Approval): Add myself to the list.
3095
267f6504
TT
30962011-07-29 Tom Tromey <tromey@redhat.com>
3097
3098 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3099 (library_list_start_segment): Update.
3100 (library_list_start_section): Update.
3101
00bd41d6
PM
31022011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3103
3104 * varobj.c (value_get_print_value): Move hint check later into the
3105 function. Comment function. Free thevalue before reusing it.
3106
18a46dbe
JK
31072011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3108 Pedro Alves <pedro@codesourcery.com>
3109
3110 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3111 value_one.
3112 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3113 Assert the result kind.
3114 * value.h (value_one): Remove parameter lv.
3115
bb7da2bf
JK
31162011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 Fix crash on lval_computed values.
3119 * valops.c (value_zero): Use not_lval for lval_computed.
3120
2d5213f8
TT
31212011-07-27 Tom Tromey <tromey@redhat.com>
3122
3123 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3124 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3125
11081198
JK
31262011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3127
3128 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3129 "ptype" by their typedefs difference.
3130
3c6e0cb3
JK
31312011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3132
3133 * dwarf2expr.c (ctx_no_read_reg): New function.
3134 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3135 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3136 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3137 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3138
523f3620
JK
31392011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3140
3141 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3142 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3143 file.
3144 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3145 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3146 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3147 (ctx_no_get_base_type): Move the functions here.
3148 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3149 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3150 (ctx_no_get_base_type): New declarations.
3151
24d3216f
TT
31522011-07-27 Tom Tromey <tromey@redhat.com>
3153
3154 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3155 entries.
3156 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3157 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3158
5005c8a9
PP
31592011-07-26 Sterling Augustine <saugustine@google.com>
3160
3161 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3162 ULONGEST.
3163 (dump_bfd_file): Likewise.
3164
480a3f21
PW
31652011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3166
3167 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3168 (remote_hw_watchpoint_length_limit): New variable.
3169 (_initialize_remote) add set,show cmds for this new variable.
3170 * gdb.texinfo: document these new commands.
3171 * NEWS: Mention these new commands.
3172
efa80663
PA
31732011-07-26 Pedro Alves <pedro@codesourcery.com>
3174
3175 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3176 true for software watchpoints.
3177
dbdaa232 31782011-07-26 Joel Brobecker <brobecker@adacore.com>
3179
3180 GDB 7.3 released.
3181
cf2c3c16
TT
31822011-07-26 Tom Tromey <tromey@redhat.com>
3183
3184 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3185 * dwarf2read.c (read_indirect_string_at_offset): New function.
3186 (read_indirect_string): Use it.
3187 (dwarf_decode_macro_bytes): New function, taken from
3188 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3189 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3190 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3191 New functions.
3192 (struct dwarf2_per_objfile) <macro>: New field.
3193 (dwarf2_elf_names): Add .debug_macro.
3194 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3195 (dwarf2_locate_sections): Handle new section.
3196 (read_file_scope): Handle DW_AT_GNU_macros.
3197 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3198
1a532630
PP
31992011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3200
3201 * NEWS: Mention dcache configuration.
3202 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3203 (dcache_size, dcache_line_size): New variables.
3204 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3205 (struct dcache_block): Make it expandable.
3206 (struct dcache_struct): New field.
3207 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3208 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3209 (dcache_poke_byte, dcache_print_line): Adjust.
3210 (set_dcache_size, set_dcache_line_size): New functions.
3211 (set_dcache_command, show_dcache_command): New functions.
3212 (_initialize_dcache): Add new commands.
3213
2eff07b3
PP
32142011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3215
3216 * progspace.h (struct program_space): Add solib_add_generation.
3217 * infcmd.c (post_create_inferior): Only call solib_add if not
3218 already done.
3219 * solib.c (solib_add): Increment solib_add_generation.
3220
543305c9
JK
32212011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3222
3223 Fix implicit pointer offsets.
3224 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3225 ptr.OFFSET.
3226
c0a91b2b
TT
32272011-07-25 Tom Tromey <tromey@redhat.com>
3228
3229 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3230 const.
3231 (ada_exception_sal): Make 'ops' const.
3232 (ada_decode_exception_location): Likewise.
3233 (ada_decode_assert_location): Likewise.
3234 (catch_assert_command): Update.
3235 (catch_ada_exception_command): Update.
3236 (create_ada_exception_catchpoint): Make 'ops' const.
3237 * breakpoint.c (set_raw_breakpoint_without_location)
3238 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3239 const.
3240 (create_internal_breakpoint): Update.
3241 (init_raw_breakpoint_without_location): Make 'ops' const.
3242 (init_raw_breakpoint, init_catchpoint)
3243 (create_fork_vfork_event_catchpoint)
3244 (create_syscall_event_catchpoint, init_breakpoint_sal)
3245 (create_breakpoint_sal, create_breakpoints_sal)
3246 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3247 * breakpoint.h (struct breakpoint) <ops>: Now const.
3248 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3249 const.
3250
6cb9b55b
PP
32512011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3252
3253 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3254
d9b3f62e
PA
32552011-07-25 Pedro Alves <pedro@codesourcery.com>
3256
3257 * breakpoint.h (print_recreate_thread): Declare.
3258 (struct breakpoint): Move step_count, pass_count,
3259 number_on_target, static_trace_marker_id,
3260 static_trace_marker_id_idx ...
3261 (struct tracepoint): ... to this new struct.
3262 (get_tracepoint, get_tracepoint_by_number_on_target)
3263 (get_tracepoint_by_number): Change return type to struct
3264 tracepoint pointer.
3265 * breakpoint.c (is_tracepoint_type): New, factored out from
3266 is_tracepoint.
3267 (is_tracepoint): Adjust.
3268 (print_one_breakpoint_location): Cast to struct tracepoint as
3269 necessary, and adjust.
3270 (print_recreate_catch_fork, print_recreate_catch_vfork)
3271 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3272 print_recreate_thread.
3273 (init_breakpoint_sal): New, factored out from
3274 create_breakpoint_sal.
3275 (create_breakpoint_sal): Reimplement.
3276 (create_breakpoint): Allocate a struct tracecepoint if the caller
3277 wanted a tracepoint. Use init_breakpoint_sal and
3278 install_breakpoint.
3279 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3280 (print_recreate_masked_watchpoint)
3281 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3282 (tracepoint_print_one_detail): Adjust.
3283 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3284 Dump the pass count here.
3285 (update_static_tracepoint): Adjust.
3286 (addr_string_to_sals): Adjust.
3287 (create_tracepoint_from_upload): Adjust. Change return type to
3288 struct tracepoint pointer.
3289 (trace_pass_set_count): Change parameter type to struct tracepoint
3290 pointer, and adjust.
3291 (trace_pass_command): Adjust.
3292 (get_tracepoint, get_tracepoint_by_number_on_target)
3293 (get_tracepoint_by_number): Change return type to struct
3294 tracepoint pointer, and adjust.
3295 (print_recreate_thread): New, factored out from save_breakpoints.
3296 (save_breakpoints): Don't print thread and task and passcount
3297 recreation here.
3298 * remote.c (remote_download_tracepoint): Adjust.
3299 * tracepoint.c (trace_actions_command, validate_actionline)
3300 (start_tracing, tfind_1, trace_find_tracepoint_command)
3301 (trace_dump_command): Adjust.
3302 (find_matching_tracepoint): Change return type to struct
3303 tracepoint pointer, and adjust.
3304 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3305 (tfile_trace_find, tfile_fetch_registers): Adjust.
3306 * tracepoint.h (create_tracepoint_from_upload): Change return type
3307 to struct tracepoint pointer.
3308 * ada-lang.c (print_recreate_exception): Call
3309 print_recreate_thread.
3310 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3311
3a5c3e22
PA
33122011-07-25 Pedro Alves <pedro@codesourcery.com>
3313
3314 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3315 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3316 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3317 watchpoint_thread, watchpoint_triggered ...
3318 (struct watchpoint): ... to this new struct.
3319 (is_watchpoint): Declare.
3320 (install_breakpoint): Add new `internal' parameter.
3321 * breakpoint.c (is_watchpoint): Delete declaration.
3322 (set_breakpoint_condition): Handle watchpoints.
3323 (is_watchpoint): Make public.
3324 (watchpoint_in_thread_scope): Change parameter type to struct
3325 watchpoint.
3326 (watchpoint_del_at_next_stop): Change parameter type to struct
3327 watchpoint. Remove assertion. Adjust.
3328 (update_watchpoint): Ditto.
3329 (insert_breakpoints, breakpoint_init_inferior)
3330 (watchpoints_triggered, watchpoint_check)
3331 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3332 (bpstat_stop_status, print_one_breakpoint_location)
3333 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3334 to struct watchpoint as necessary, and adjust.
3335 (install_breakpoint): Add `internal' argument. If true, don't
3336 mention the new breakpoint. Use set_breakpoint_number.
3337 (create_fork_vfork_event_catchpoint)
3338 (create_syscall_event_catchpoint): Adjust.
3339 (dtor_watchpoint): New.
3340 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3341 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3342 (print_it_watchpoint, print_mention_watchpoint)
3343 (print_recreate_watchpoint, insert_masked_watchpoint)
3344 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3345 (print_one_detail_masked_watchpoint)
3346 (print_mention_masked_watchpoint)
3347 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3348 necessary, and adjust.
3349 (watch_command_1): Allocate and initialize a struct watchpoint
3350 instead of a struct breakpoint. Use install_breakpoint.
3351 (catch_exec_command_1): Adjust.
3352 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3353 fields.
3354 (delete_breakpoint, enable_breakpoint_disp)
3355 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3356 as necessary, and adjust.
3357 (initialize_breakpoint_ops): Install dtor_watchpoint as
3358 watchpoints' dtor method.
3359 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3360 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3361 to struct watchpoint as necessary, and adjust.
3362
2060206e
PA
33632011-07-25 Pedro Alves <pedro@codesourcery.com>
3364
3365 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3366 the the base class ops table.
3367 (catch_exception_breakpoint_ops)
3368 (catch_exception_unhandled_breakpoint_ops)
3369 (catch_assert_breakpoint_ops): Don't statically initialize.
3370 (initialize_ada_catchpoint_ops): New.
3371 (_initialize_ada_language): Call it.
3372 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3373 (bkpt_breakpoint_ops): Forward declare.
3374 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3375 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3376 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3377 (masked_watchpoint_breakpoint_ops)
3378 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3379 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3380 base class ops table.
3381 (null_re_set, null_check_status, null_works_in_software_mode)
3382 (null_resources_needed, null_print_one_detail): Delete.
3383 (bkpt_dtor): Rename to ...
3384 (base_breakpoint_dtor): ... this. Make static.
3385 (bkpt_allocate_location): Rename to ...
3386 (base_breakpoint_allocate_location): ... this. Make static.
3387 (base_breakpoint_re_set): New.
3388 (internal_error_pure_virtual_called): New.
3389 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3390 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3391 (base_breakpoint_works_in_software_mode)
3392 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3393 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3394 (base_breakpoint_print_recreate): New functions.
3395 (base_breakpoint_ops): New global.
3396 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3397 (bkpt_breakpoint_hit): Make static.
3398 (bkpt_check_status): Delete.
3399 (bkpt_resources_needed): Make static.
3400 (bkpt_works_in_software_mode): Delete.
3401 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3402 static.
3403 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3404 (momentary_breakpoint_ops): Don't statically initialize.
3405 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3406 Delete.
3407 (tracepoint_insert_location, tracepoint_remove_location)
3408 (tracepoint_check_status, tracepoint_works_in_software_mode)
3409 (tracepoint_print_it): Delete.
3410 (tracepoint_breakpoint_ops): Don't statically initialize.
3411 (initialize_breakpoint_ops): New.
3412 (_initialize_breakpoint): Call it.
3413 * breakpoint.h (null_re_set, null_works_in_software_mode)
3414 (null_resources_needed, null_check_status, null_print_one_detail):
3415 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3416 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3417 (bkpt_check_status, bkpt_resources_needed)
3418 (bkpt_works_in_software_mode, bkpt_print_it)
3419 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3420 Delete declarations.
3421 (initialize_breakpoint_ops): Declare.
3422
001c8c33
PA
34232011-07-25 Pedro Alves <pedro@codesourcery.com>
3424
3425 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3426 (momentary_bkpt_print_it): Simplify.
3427
06edf0c0
PA
34282011-07-25 Pedro Alves <pedro@codesourcery.com>
3429
3430 Split internal, momentary and user breakpoints breakpoint_ops
3431 tables.
3432
3433 * breakpoint.c (internal_breakpoint_ops)
3434 (momentary_breakpoint_ops): Forward declare.
3435 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3436 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3437 (create_overlay_event_breakpoint)
3438 (create_std_terminate_master_breakpoint)
3439 (create_exception_master_breakpoint): Create breakpoints with
3440 internal_breakpoint_ops vtable.
3441 (set_longjmp_breakpoint): Create momentary breakpoints with
3442 momentary_breakpoint_ops vtable, using
3443 momentary_breakpoint_from_master.
3444 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3445 (create_solib_event_breakpoint): Create breakpoints with
3446 internal_breakpoint_ops vtable.
3447 (set_momentary_breakpoint): Create breakpoints with
3448 momentary_breakpoint_ops vtable.
3449 (momentary_breakpoint_from_master): New, factored out from
3450 clone_momentary_breakpoint.
3451 (clone_momentary_breakpoint): Adjust.
3452 (watch_command_1): Create scope breakpoints with
3453 momentary_breakpoint_ops vtable.
3454 (bkpt_re_set): Remove handling of internal and momentary
3455 breakpoints.
3456 (bkpt_print_mention, bkpt_print_recreate): New.
3457 (bkpt_breakpoint_ops): Adjust.
3458 (internal_bkpt_re_set, internal_bkpt_check_status)
3459 (internal_bkpt_print_it, internal_bkpt_print_mention)
3460 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3461 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3462 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3463 (momentary_bkpt_print_recreate): New.
3464 (momentary_breakpoint_ops): New.
3465
348d480f
PA
34662011-07-25 Pedro Alves <pedro@codesourcery.com>
3467
3468 Implement most breakpoint_ops methods for all breakpoint types,
3469 and move the default handlings to the proper callbacks.
3470
3471 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3472 works_in_software_mode method.
3473 (insert_bp_location): Go through breakpoint_ops->insert_location
3474 for software and hardware watchpoints.
3475 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3476 breakpoint_ops.
3477 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3478 for software and hardware watchpoints.
3479 (print_it_typical): Delete.
3480 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3481 method.
3482 (watchpoint_check): Adjust comment.
3483 (bpstat_check_location): Simply always call the breakpoint's
3484 breakpoint_hit method.
3485 (bpstat_stop_status): Always call the breakpoint's check_status
3486 method. Remove special cases for watchpoints and internal event
3487 breakpoints from here (moved to the check_status implementations).
3488 (print_one_breakpoint_location): Assume b->ops is never NULL.
3489 Remove static tracepoint marker id printing from here (moved to
3490 the print_one_detail callback implementation of tracepoints).
3491 (init_bp_location): Assert OPS is never NULL.
3492 (allocate_bp_location): Always call the breakpoint's
3493 allocate_location method, and remove the default code from here.
3494 (free_bp_location): Always call the location's dtor method, and
3495 remove the default code from here.
3496 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3497 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3498 parameter. Pass it down.
3499 (set_raw_breakpoint): Ditto.
3500 (print_it_catch_fork): Adjust to take a bpstat as argument.
3501 (catch_fork_breakpoint_ops): Install methods.
3502 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3503 (catch_vfork_breakpoint_ops): Install methods.
3504 (dtor_catch_syscall): Call the base dtor.
3505 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3506 (catch_syscall_breakpoint_ops): Install methods.
3507 (dtor_catch_exec): Call the base dtor.
3508 (print_it_catch_exec): Adjust to take a bpstat as argument.
3509 (catch_exec_breakpoint_ops): Install methods.
3510 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3511 the breakpoint's resources_needed method, and remove the default
3512 code from here.
3513 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3514 breakpoint_ops.
3515 (clone_momentary_breakpoint): Clone the original's ops.
3516 (mention): Always call the breakpoint's print_mention method, and
3517 remove the default code from here.
3518 (create_breakpoint_sal): Adjust to pass the ops to
3519 set_raw_breakpoint rather than setting it manually.
3520 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3521 ops to set_raw_breakpoint_without_location rather than setting it
3522 manually.
3523 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3524 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3525 (ranged_breakpoint_ops): Install methods.
3526 (break_range_command): Adjust to pass the ops to
3527 set_raw_breakpoint rather than setting it manually.
3528 (re_set_watchpoint, breakpoint_hit_watchpoint)
3529 (check_status_watchpoint, resources_needed_watchpoint)
3530 (works_in_software_mode_watchpoint, print_it_watchpoint)
3531 (print_mention_watchpoint, print_recreate_watchpoint): New
3532 functions.
3533 (watchpoint_breakpoint_ops): Install new methods.
3534 (print_it_masked_watchpoint): New function.
3535 (masked_watchpoint_breakpoint_ops): Install new methods.
3536 (watch_command_1): Adjust to pass the right breakpoint_ops to
3537 set_raw_breakpoint_without_location rather than setting it
3538 manually later. Record the current pspace.
3539 (print_it_exception_catchpoint): Adjust to take a bpstat as
3540 argument.
3541 (gnu_v3_exception_catchpoint_ops): Install new methods.
3542 (say_where): New function.
3543 (null_re_set, null_check_status, null_works_in_software_mode)
3544 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3545 New functions.
3546 (bp_location_ops): New global.
3547 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3548 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3549 (bkpt_check_status, bkpt_resources_needed)
3550 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3551 (bkpt_print_recreate): New functions.
3552 (bkpt_breakpoint_ops): New global.
3553 (tracepoint_re_set, tracepoint_insert_location)
3554 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3555 (tracepoint_check_status, tracepoint_works_in_software_mode)
3556 (tracepoint_print_it, tracepoint_print_one_detail)
3557 (tracepoint_print_mention, tracepoint_print_recreate): New
3558 functions.
3559 (tracepoint_breakpoint_ops): New global.
3560 (delete_breakpoint): Always call the breakpoint's dtor method, and
3561 remove the default handling from here.
3562 (breakpoint_re_set_default): Make static.
3563 (breakpoint_re_set_one): Always call the breakpoints re_set
3564 method, and remove the default handling from here.
3565 (trace_command, ftrace_command, strace_command)
3566 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3567 to create_breakpoint.
3568 (save_breakpoints): Always call the breakpoint's print_recreate
3569 method, and remove the default handling from here.
3570
3571 * ada-lang.c (dtor_exception): Call the base dtor.
3572 (re_set_exception): Call the base method.
3573 (print_it_exception, print_it_catch_exception): Adjust to take a
3574 bpstat as argument.
3575 (catch_exception_breakpoint_ops): Install methods.
3576 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3577 argument.
3578 (catch_exception_unhandled_breakpoint_ops): Install methods.
3579 (print_it_catch_assert): Adjust to take a bpstat as argument.
3580 (catch_assert_breakpoint_ops): Install methods.
3581
3582 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3583 to take a bpstat as argument.
3584 (enum print_stop_action): Add describing comments to each enum
3585 value.
3586 (breakpoint_re_set_default): Delete declaration.
3587 (null_re_set, null_works_in_software_mode, null_resources_needed)
3588 (null_check_status, null_print_one_detail): Declare.
3589 (bkpt_breakpoint_ops): Declare.
3590 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3591 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3592 (bkpt_check_status, bkpt_resources_needed)
3593 (bkpt_works_in_software_mode, bkpt_print_it)
3594 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3595 Declare.
3596
3597 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3598 bkpt_breakpoint_ops.
3599 * python/py-breakpoint.c (bppy_init): Ditto.
3600
be8f8133
PW
36012011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3602
3603 * MAINTAINERS (Write After Approval): Add myself to the list.
3604
3807f613
PP
36052011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3606
3607 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3608
1ced966e
PA
36092011-07-22 Pedro Alves <pedro@codesourcery.com>
3610
3611 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3612 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3613 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3614 adjust.
3615 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3616 (struct i386_debug_reg_state): New.
3617 (i386_init_dregs): New.
3618 (dr_mirror): New.
3619 (i386_cleanup_dregs): Use i386_init_dregs.
3620 (i386_show_dr): Add state parameter and adjust.
3621 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3622 the inferior here.
3623 (i386_remove_aligned_watchpoint): Likewise.
3624 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3625 (i386_update_inferior_debug_regs): New.
3626 (i386_insert_watchpoint): Work on a local mirror of the debug
3627 registers, and only update the inferior on success.
3628 (i386_remove_watchpoint): Ditto.
3629 (i386_region_ok_for_watchpoint): Adjust.
3630 (i386_stopped_data_address): Adjust.
3631 (i386_insert_hw_breakpoint): Adjust.
3632 (i386_remove_hw_breakpoint): Adjust.
3633
3543a589
TT
36342011-07-22 Tom Tromey <tromey@redhat.com>
3635
3636 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3637 from amd64_pseudo_register_read. Change arguments. Call
3638 mark_value_bytes_unavailable when needed.
3639 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3640 set_gdbarch_pseudo_register_read.
3641 * sentinel-frame.c (sentinel_frame_prev_register): Use
3642 regcache_cooked_read_value.
3643 * regcache.h (regcache_cooked_read_value): Declare.
3644 * regcache.c (regcache_cooked_read_value): New function.
3645 (regcache_cooked_read): Call
3646 gdbarch_pseudo_register_read_value if available.
3647 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3648 (i386_pseudo_register_read): Remove.
3649 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3650 i386_pseudo_register_read. Change arguments. Call
3651 mark_value_bytes_unavailable when needed.
3652 (i386_pseudo_register_read_value): New function.
3653 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3654 not set_gdbarch_pseudo_register_read.
3655 * gdbarch.sh (pseudo_register_read_value): New method.
3656 * gdbarch.c, gdbarch.h: Rebuild.
3657 * findvar.c (value_from_register): Call get_frame_register_value.
3658
95298e72
PM
36592011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3660
3661 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3662 get_prefix.
3663 (display_gdb_prompt): Likewise.
3664 (change_annotation_level): Likewise.
3665 (push_prompt): Likewise.
3666 (pop_prompt): Likewise.
3667 (handle_stop_sig): Use get_prompt with a level.
3668 * top.c (command_loop): Use get_prompt with a level.
3669 (set_async_annotation_level): Use set_prompt with a level.
3670 (get_prefix): New function.
3671 (set_prefix): Ditto.
3672 (set_suffix): Ditto.
3673 (get_suffix): Ditto.
3674 (get_prompt): Accept a level argument.
3675 (set_prompt): Accept a level argument. Free old prompts. Set
3676 new_async_prompt if level is 0.
3677 (init_main): Use set_prompt with a level. Do not set
3678 new_async_prompt.
3679 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3680 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3681 Modify set_prompt, get_prompt to account for levels.
3682 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3683 level.
3684 * python/python.c (before_prompt_hook): Use set_prompt.
3685
d26e3629
KY
36862011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3687
3688 * defs.h: Add guard against inclusion in gdbserver.
3689 (struct ptid, ptid_t): Move to common/ptid.h.
3690 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3691 xsnprintf, internal_error): Move to common/common-utils.h.
3692 (nomem): Delete.
3693 * gdb_assert.h: Move into common/ sub-directory.
3694 * gdb_locale.h: Ditto.
3695 * gdb_dirent.h: Ditto.
3696 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3697 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3698 Move into common/ptid.h.
3699 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3700 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3701 Change nomem to malloc_failure.
3702 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3703 * utils.c (nomem): Rename to malloc_failure.
3704 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3705 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3706 (gdb_buildargv): Change nomem to malloc_failure.
3707 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3708 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3709 ptid_is_pid): Move into common/ptid.c.
3710 (initialize_infrun): Delete initialization of null_ptid and
3711 minus_one_ptid.
3712 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3713 linux_common_xfer_osdata.
3714 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3715 common/ptid.c and common/buffer.c.
3716 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3717 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3718 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3719 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3720 rules.
3721 * common/gdb_assert.h: New.
3722 * common/gdb_dirent.h: New.
3723 * common/gdb_locale.h: New.
3724 * common/buffer.c: New.
3725 * common/buffer.h: New.
3726 * common/ptid.c: New.
3727 * common/ptid.h: New.
3728 * common/xml-utils.c: New.
3729 * common/xml-utils.h: New.
3730 * common/common-utils.c: New.
3731 * common/common-utils.h: New.
3732 * common/linux-osdata.c: New.
3733 * common/linux-osdata.h: New.
3734 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3735 * config/arm/linux.mh (NATDEPFILES): Ditto.
3736 * config/i386/linux.mh (NATDEPFILES): Ditto.
3737 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3738 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3739 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3740 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3741 * config/mips/linux.mh (NATDEPFILES): Ditto.
3742 * config/pa/linux.mh (NATDEPFILES): Ditto.
3743 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3744 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3745 * config/s390/s390.mh (NATDEPFILES): Ditto.
3746 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3747 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3748 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3749
edc84990 37502011-07-21 Matt Rice <ratmice@gmail.com>
3751
3752 * NEWS: Add info macros and info definitions commands.
3753
3a7bf607
PM
37542011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3755
3756 * NEWS: Document Python prompt substitution hook.
3757
9b158ba0 37582011-07-18 Matt Rice <ratmice@gmail.com>
3759
3760 PR macros/12999
3761 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3762 * macrotab.c (foreach_macro): Ditto.
3763 (foreach_macro_in_scope): Ditto.
3764 * macrocmd.c (print_macro_callback): New function.
3765 (info_macro_command): Move some code to print_macro_definition.
3766 (print_macro_definition): New function.
3767 (print_one_macro): Add new arguments to callback.
3768 (info_definitions_command): New function.
3769 (info_macros_command): Ditto.
3770 (_initialize_macrocmd): Add info macros and info definitions commands.
3771 * symtab.c (add_macro_name): Add new arguments to callback.
3772
d17b6f81
PM
37732011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3774 Tom Tromey <tromey@redhat.com>
3775
3776 * top.c (set_prompt): Rewrite to free previous prompt, free
3777 asynch_new_prompt and set both on new prompts.
3778 * event-top.c (display_gdb_prompt): Add prompt substitution
3779 logic.
3780 * python/python.c (before_prompt_hook): New function.
3781
1364323a 37822011-07-20 Matt Rice <ratmice@gmail.com>
3783
3784 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3785 arguments to store_unsigned_integer.
3786
8b70b953
TT
37872011-07-20 Tom Tromey <tromey@redhat.com>
3788
6c83ed52
TT
3789 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3790 in some declaration-only cases.
3791
37922011-07-18 Tom Tromey <tromey@redhat.com>
3793
8b70b953
TT
3794 PR symtab/12984:
3795 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3796 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3797 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3798 <debug_type_section>: New field.
3799 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3800 (load_cu): Use appropriate section.
3801 (create_signatured_type_table_from_index): Add 'section'
3802 argument.
3803 (dwarf2_read_index): Only allow a single .debug_types section.
3804 (dw2_get_file_names): Use appropriate section.
3805 (read_type_comp_unit_head): Add 'section' argument.
3806 (create_debug_types_hash_table): Loop over all .debug_types
3807 sections.
3808 (init_cu_die_reader): Use appropriate section.
3809 (process_psymtab_comp_unit, load_partial_comp_unit)
3810 (load_full_comp_unit, read_die_and_children, find_partial_die)
3811 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3812 (lookup_signatured_type_at_offset): Add 'section' argument.
3813 (read_signatured_type_at_offset): Add 'sect' argument.
3814 (read_signatured_type): Use appropriate section.
3815 (set_die_type, get_die_type_at_offset): Update.
3816 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3817 VEC.
3818 (write_psymtabs_to_index): Don't allow index with more than one
3819 .debug_types section.
3820
918dd910
JK
38212011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3822
3823 Fix crash if referenced CU is aged out.
3824 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3825 xfree of block.data.
3826 (indirect_pieced_value): New variable back_to, use to for xfree of
3827 baton.data.
3828 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3829 block.data.
3830 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3831 (load_cu): New function from ...
3832 (dw2_do_instantiate_symtab): ... the code here ...
3833 (process_full_comp_unit): ... and here.
3834 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3835 retval.data.
3836
0e37a63c
JK
38372011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3838
3839 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3840 type.
3841
7e324e48
GB
38422011-07-19 Gary Benson <gbenson@redhat.com>
3843
3844 * infrun.c (struct execution_control_state): New member
3845 stop_func_filled_in.
3846 (clear_stop_func, fill_in_stop_func): New functions.
3847 (handle_inferior_event): Call clear_stop_func rather than
3848 manipulating the execution control state directly.
3849 Call fill_in_stop_func lazily as required rather than
3850 directly calling find_pc_partial_function in all cases.
3851
d48323d8
TT
38522011-07-18 Tom Tromey <tromey@redhat.com>
3853
3854 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3855 checking for variable-sized array.
3856
40591b7d
JCD
38572011-07-18 Jean-Charles Delay <delay@adacore.com>
3858
3859 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3860 of supported languages.
3861 * varobj.c: Add top definitions and basic implementation of the
3862 following callbacks: ada_number_of_children, ada_name_of_variable,
3863 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3864 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3865 (languages): Register Ada-specific callbacks.
3866 (variable_language): Add the Ada case in the language setter switch.
3867
2e424e08
JK
38682011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3869
3870 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3871
9e8b7a03
JK
38722011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 Code cleanup.
3875 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3876 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3877 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3878 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3879 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3880 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3881 (struct dwarf_expr_context_funcs): New, move here methods from ...
3882 (struct dwarf_expr_context): ... here. New fields funcs.
3883 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3884 (dwarf_expr_ctx_funcs): New.
3885 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3886 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3887 (needs_frame_ctx_funcs): New.
3888 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3889
2b1260ab
FM
38902011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3891
3892 * MAINTAINERS (Write After Approval): Add myself to the list.
3893
8bd90839
FM
38942011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3895
3896 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3897 that CIE pointer of an FDE really points to a CIE .
3898
953b98d1
HZ
38992011-07-15 Hui Zhu <teawater@gmail.com>
3900
3901 * remote.c (remote_get_trace_status): Add comments.
3902
c8f2448a
JK
39032011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3904
3905 Code cleanup - constify struct lval_funcs.
3906 * dwarf2loc.c (pieced_value_funcs): Make it const.
3907 * infrun.c (siginfo_value_funcs): Likewise.
3908 * opencl-lang.c (opencl_value_funcs): Likewise.
3909 * valops.c (value_assign, value_ind): Make the funcs variable const.
3910 * value.c (struct value): Make location.computed.funcs target const.
3911 Rearrange the comments.
3912 (allocate_computed_value): Make the funcs parameter target const.
3913 (value_computed_funcs): Return the funcs target const.
3914 (value_free, value_copy, set_value_component_location): Make the funcs
3915 variable const.
3916 * value.h (allocate_computed_value): Make the funcs parameter target
3917 const.
3918 (value_computed_funcs): Return the funcs target const.
3919 * windows-tdep.c (tlb_value_funcs): Make it const.
3920
f652de6f
HZ
39212011-07-14 Hui Zhu <teawater@gmail.com>
3922
3923 * remote.c (remote_get_trace_status): Initialize p.
3924
67f41397
JK
39252011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3926
3927 Work around kgdb.
3928 * remote.c (remote_get_trace_status): New variable ex. Put
3929 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3930
d1b66e6d
TT
39312011-07-13 Tom Tromey <tromey@redhat.com>
3932
3933 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3934 value_from_contents for final conversion.
3935
1632a688
JK
39362011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3937
3938 Code cleanup.
3939 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3940 Indent prototypes so they do not get into tags.
3941
a7035dbb
JK
39422011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3943
3944 Code cleanup making also optimized out values lazy.
3945 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3946 allocate_optimized_out_value. Twice.
3947 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3948 * findvar.c (read_var_value): Likewise.
3949 * value.c (allocate_optimized_out_value): New function.
3950 * value.h (allocate_optimized_out_value): New declaration.
3951
d07ed419
JK
39522011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3953
3954 Fix occasional crash of CTRL-C during DWARF read in.
3955 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3956
86d31898
TT
39572011-07-11 Tom Tromey <tromey@redhat.com>
3958
3959 * regcache.c (struct regcache_descr): Fix typo.
3960 * i387-tdep.c (i387_supply_xsave): Fix typo.
3961
2ab95328
TT
39622011-07-11 Tom Tromey <tromey@redhat.com>
3963
3964 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3965 (read_file_scope, read_type_unit_scope): Use it.
3966
04ad99e6
JK
39672011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3970 `int'.
3971
713389e0
PM
39722011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3973
3974 PR python/12438
3975 * python/python.c: Set gdbpy_should_print_stack default to off.
3976 (set_python): Deprecate maint set python print-stack to
3977 class_deprecate.
3978 (_initialize_python): Deprecate maint set/show python print-stack.
3979 Add new prefix command, python. Add new setting, print-backtrace.
3980 * NEWS: Document set python print-stack. Document default change.
3981
754eadd1
PM
39822011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3983
3984 * python/py-inferior.c (infpy_dealloc): New function.
3985 (inferior_to_inferior_object): Return a new object, or a
3986 new reference to the existing object.
3987 (find_thread_object): Cleanup references to inferior.
3988 (delete_thread_object): Ditto.
3989 * python/py-infthread.c (create_thread_object): Do not increment
3990 inferior reference count.
3991
5e44ecb3
TT
39922011-07-08 Tom Tromey <tromey@redhat.com>
3993
3994 * dwarf2loc.c (locexpr_regname): New function.
3995 (locexpr_describe_location_piece): Use it.
3996 (disassemble_dwarf_expression): Add per_cu argument. Use
3997 locexpr_regname.
3998 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3999 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4000 New cases.
4001 (locexpr_describe_location_1): Add per_cu argument.
4002 (locexpr_describe_location): Update.
4003 (loclist_describe_location): Update.
4004
e0e9434c
TT
40052011-07-08 Tom Tromey <tromey@redhat.com>
4006
4007 * dwarf2expr.c (execute_stack_op): Add QUIT.
4008
26afc0d7
HZ
40092011-07-07 Hui Zhu <teawater@gmail.com>
4010
4011 Revert:
4012 2011-07-06 Hui Zhu <teawater@gmail.com>
4013 * remote.c (remote_start_remote): Add TRY_CATCH for
4014 remote_get_trace_status.
4015 * tracepoint.c (disconnect_tracing): Ditto.
4016
a40a111f
AB
40172011-07-07 Andrew Burgess <aburgess@broadcom.com>
4018
4019 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4020 variables as signed, not unsigned.
4021
e2bd3b15
JB
40222011-07-06 Joel Brobecker <brobecker@adacore.com>
4023
4024 * jit.c (jit_inferior_init): Reformat forward declaration.
4025
e3d961fe 40262011-07-06 Matt Rice <ratmice@gmail.com>
4027
4028 * MAINTAINERS (Write After Approval): Add myself to the list.
4029
0f3428f0
HZ
40302011-07-06 Hui Zhu <teawater@gmail.com>
4031
4032 * remote.c (remote_start_remote): Add TRY_CATCH for
4033 remote_get_trace_status.
4034 * tracepoint.c (disconnect_tracing): Ditto.
4035
fc9f3a69
TT
40362011-07-05 Tom Tromey <tromey@redhat.com>
4037
4038 * symtab.c (operator_chars): Now static.
4039 * linespec.c (operator_chars): Don't declare.
4040
26e519b9
TJB
40412011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4042
4043 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4044
eb2a6f42
TT
40452011-07-05 Tom Tromey <tromey@redhat.com>
4046
4047 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4048 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4049 (TYPE_CPLUS_REALLY_JAVA): New macro.
4050 * dwarf2read.c (process_structure_scope): Set
4051 TYPE_CPLUS_REALLY_JAVA.
4052
21083d0f 40532011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4054
4055 * ada-lang.c: Fix typos.
4056 * amd64-tdep.c: Likewise.
4057 * breakpoint.c: Likewise.
4058 * cli/cli-decode.c: Likewise.
4059 * findcmd.c: Likewise.
4060 * inline-frame.c: Likewise.
4061 * mi/mi-main.c: Likewise.
4062 * minsyms.c: Likewise.
4063 * monitor.c: Likewise.
4064 * monitor.h: Likewise.
4065 * prologue-value.c: Likewise.
4066 * reverse.c: Likewise.
4067 * s390-tdep.c: Likewise.
4068
3b2a0cf2
JB
40692011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4070
4071 * jit.c (jit_inferior_init): Forward declare.
4072 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4073
efae1d92
JB
40742011-07-04 Joel Brobecker <brobecker@adacore.com>
4075
4076 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4077
6040a59d
JB
40782011-07-04 Tristan Gingold <gingold@adacore.com>
4079
4080 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4081 (tcb_fieldno): Add activation_link field.
4082 (get_known_tasks_addr): Moved and rewritten.
4083 (get_tcb_types_info): Set activation_link field.
4084 (read_known_tasks_array): Add parameter. Rewritten.
4085 (read_known_tasks_list): New function.
4086 (read_known_tasks): New function.
4087 (ada_build_task_list): Call read_known_tasks instead of
4088 read_known_tasks_array.
4089 * ravenscar-thread.c: Add first_task_name constant.
4090 (has_ravenscar_runtime): Check for task list too.
4091
cb741e45
JB
40922011-07-04 Tristan Gingold <gingold@adacore.com>
4093
4094 * ada-tasks.c: Renames fieldno to actb_fieldno.
4095 (ada_get_task_number): Indentation.
4096 (get_tcb_types_info): Remove all parameters. Write directly
4097 the globals.
4098 (ptid_from_atcb_common): Adjust.
4099 (read_atcb): Adjust.
4100
7475b06c
TJB
41012011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4102
4103 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4104
15230f37
TJB
41052011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4106
4107 * ui-out.c (ui_out_field_core_addr): Mention that the function
4108 description is in the header file.
4109 * ui-out.h (ui_out_field_core_addr): Document function.
4110
65743aba
TJB
41112011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4112
4113 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4114 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4115
c37a5aab
TJB
41162011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4117
4118 * symtab.c (expand_line_sal): Remove empty line.
4119
59adf69e
TS
41202011-07-04 Thomas Schwinge <thomas@schwinge.name>
4121
4122 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4123 same way as ELFOSABI_NONE.
4124 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4125
e5dd4106
TJB
41262011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4127
4128 * breakpoint.c: Fix typos in comments.
4129 * linespec.c: Likewise.
4130 * symtab.c: Likewise.
4131
d40102a1
JB
41322011-07-04 Joel Brobecker <brobecker@adacore.com>
4133
4134 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4135 section in separate object files.
4136
2f741504
JK
41372011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4138
4139 Fix false GCC warning.
4140 * linespec.c (decode_line_1): Initialize values.
4141
418c7cf7
JK
41422011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 * linespec.c (find_method): Accept the function type automatically only
4145 if it was specified with parameter types.
4146
3d50dd94
JK
41472011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4148
4149 Stop on first linespec terminator instead of eating what we can.
4150 * linespec.c (is_linespec_boundary): New function.
4151 (name_end): Remove function.
4152 (keep_name_info): New parameter on_boundary, replace the body.
4153 (decode_line_1): Provide the parameter to keep_name_info.
4154 (decode_compound): Likewise. Drop the trailing java return type
4155 handling. Twice.
4156
dcf9f4ab
JK
41572011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4158
4159 Fall back linespec to minimal symbols.
4160 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4161 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4162 (find_method, symbol_found): Change error to cplusplus_error.
4163
3f542ed1
JK
41642011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4165
bc68c4e5 4166 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4167
900e11f9
JK
41682011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4169 Tom Tromey <tromey@redhat.com>
4170
4171 * dwarf2read.c (check_physname): New variable.
4172 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4173 (show_check_physname): New function.
4174 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4175
2301925d
JB
41762011-07-01 Joel Brobecker <brobecker@adacore.com>
4177
4178 * machoread.c (macho_symfile_read): Delete OBE comment.
4179
38947cca
JB
41802011-07-01 Joel Brobecker <brobecker@adacore.com>
4181
4182 * machoread.c (struct macho_oso_data): Delete.
4183 (current_oso): Delete.
4184 (macho_relocate_common_syms): New function, mostly extracted
4185 out of
4186 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4187 Remove code that sets and unset current_oso.
4188 (macho_symfile_relocate): Delete handling of common symbols,
4189 now moved to macho_relocate_common_syms.
4190
a7aa0d73
JB
41912011-07-01 Joel Brobecker <brobecker@adacore.com>
4192
4193 * darwin-nat.c (darwin_ptrace): Add documentation.
4194 Set errno to zero before calling ptrace. If ptrace returns
4195 -1 and errno is zero, then change then return zero.
4196 (darwin_kill_inferior): Issue a warning instead of triggering
4197 a failed assertion when the PT_KILL ptrace operations returned
4198 nonzero.
4199
5e9bc145
JB
42002011-07-01 Joel Brobecker <brobecker@adacore.com>
4201
4202 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4203 only when inf->private->no_ptrace.
4204
00eb2c4a
JB
42052011-07-01 Joel Brobecker <brobecker@adacore.com>
4206
4207 * ada-lang.c (print_it_exception): Print temporary catchpoints
4208 as "Temporary catchpoint".
4209 (print_mention_exception): Likewise.
4210
127c81bc
TT
42112011-07-01 Tom Tromey <tromey@redhat.com>
4212
4213 * jv-lang.c (java_language_defn): Use java_printchar,
4214 java_printstr.
4215 (java_get_encoding): New function.
4216 (java_emit_char): Use generic_emit_char.
4217 (java_printchar): New function.
4218 (java_printstr): Likewise.
4219
25552254
JB
42202011-07-01 Joel Brobecker <brobecker@adacore.com>
4221
4222 * ada-typeprint.c (print_record_type): If unable to decode
4223 the name of the parent type, use the encoded name.
4224
d2d43431
JB
42252011-07-01 Jean-Charles Delay <delay@adacore.com>
4226
4227 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4228 pointer to constrained packed array type output.
4229 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4230 packed array output.
4231
54ae186f
JB
42322011-07-01 Jean-Charles Delay <delay@adacore.com>
4233
4234 * ada-typeprint.c (print_array_type): removed if condition on show
4235 being negative for bounds printing.
4236
8f17729f
JB
42372011-07-01 Joel Brobecker <brobecker@adacore.com>
4238
4239 * ada-lang.c (ada_identical_enum_types_p): New function.
4240 (symbols_are_identical_enums): New function.
4241 (remove_extra_symbols): Do nothing if NSYMS < 2.
4242 Use symbols_are_identical_enums.
4243
f5aa6869
JB
42442011-07-01 Joel Brobecker <brobecker@adacore.com>
4245
4246 * ada-valprint.c (ada_value_print): Handle typedefs.
4247
8f465ea7
JB
42482011-07-01 Joel Brobecker <brobecker@adacore.com>
4249
4250 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4251
828292f2
JB
42522011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4253
4254 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4255 (decode_constrained_packed_array): Likewise.
4256 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4257
18920c42
JB
42582011-07-01 Joel Brobecker <brobecker@adacore.com>
4259
4260 * ada-exp.y (convert_char_literal): Handle typedef types.
4261
c90092fe
JB
42622011-07-01 Joel Brobecker <brobecker@adacore.com>
4263
4264 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4265
f748fb40
TT
42662011-06-30 Tom Tromey <tromey@redhat.com>
4267
4268 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4269 * valops.c (find_overload_match): Call do_cleanups on early exit
4270 path.
4271 * solib.c (solib_find): Call do_cleanups on early exit path.
4272
3bb47e8b
TT
42732011-06-30 Tom Tromey <tromey@redhat.com>
4274
4275 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4276 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4277 return paths. Defer final do_cleanups until last return.
4278 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4279 early return.
4280
4727bad3
TT
42812011-06-30 Tom Tromey <tromey@redhat.com>
4282
4283 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4284
bb361dbf
AB
42852011-06-30 Andrew Burgess <aburgess@broadcom.com>
4286
4287 * MAINTAINERS (Write After Approval): Add myself to the list.
4288
e0d00bc7
JK
42892011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4290
4291 Disable epilogue unwinders on recent GCCs.
4292 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4293 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4294 * dwarf2read.c (process_full_comp_unit): Initialize
4295 EPILOGUE_UNWIND_VALID.
4296 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4297 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4298 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4299
4632c0d0
JK
43002011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4301
4302 Code cleanup - reformatting.
4303 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4304 (producer_is_gcc_ge_4): ... here, change the return value.
4305 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4306 interpretation.
4307
32019081
JK
43082011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4309
4310 Fix non-only rename list for Fortran modules import.
4311 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4312 cp_add_using_directive caller.
4313 (cp_add_using_directive): New parameter excludes, describe it. New
4314 variables ix and param. Compare if also excludes match. Allocate NEW
4315 with variable size, initialize EXCLUDES there.
4316 (cp_lookup_symbol_imports): New variable excludep, test
4317 current->EXCLUDES with it.
4318 * cp-support.h: Include vec.h.
4319 (struct using_direct): New field excludes, describe it.
4320 (DEF_VEC_P (const_char_ptr)): New.
4321 (cp_add_using_directive): New parameter excludes.
4322 * defs.h (const_char_ptr): New typedef.
4323 * dwarf2read.c (read_import_statement): New variables child_die,
4324 excludes and cleanups, read in excludes.
4325 (read_namespace): Adjust the cp_add_using_directive caller.
4326
70c622a3
JK
43272011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4328
4329 Code cleanup.
4330 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4331 negative comparisons.
4332
39c4d40a
TT
43332011-06-29 André Pönitz <andre.poenitz@nokia.com>
4334
4335 * mi/mi-main.c (mi_cmd_list_features): Emit
4336 breakpoint-notifications.
4337
3b2b8fea
TT
43382011-06-29 Tom Tromey <tromey@redhat.com>
4339
4340 PR fortran/10036:
4341 * valprint.h (generic_emit_char, generic_printstr): Declare.
4342 * valprint.c (wchar_printable, append_string_as_wide)
4343 (print_wchar): Move from c-lang.c.
4344 (generic_emit_char): New function; mostly taken from c_emit_char.
4345 (generic_printstr): New function; mostly taken from c_printstr.
4346 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4347 represented as arrays.
4348 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4349 type.
4350 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4351 identically to TYPE_CODE_INT.
4352 * f-lang.c (f_get_encoding): New function.
4353 (f_emit_char): Use generic_emit_char.
4354 (f_printchar): Replace comment.
4355 (f_printstr): Use generic_printstr.
4356 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4357 "character" types specially.
4358 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4359 for Fortran.
4360 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4361 Move to valprint.c
4362 (c_emit_char): Call generic_emit_char.
4363 (c_printstr): Call generic_printstr.
4364
168e6d44
GB
43652011-06-29 Gary Benson <gbenson@redhat.com>
4366
4367 * breakpoint.c (bpstat_what): Removed duplicated case.
4368
1c033f8c
TT
43692011-06-28 Tom Tromey <tromey@redhat.com>
4370
4371 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4372
5fe41fbf
TT
43732011-06-27 Tom Tromey <tromey@redhat.com>
4374
4375 * valops.c (find_overload_match): Call do_cleanups before early
4376 return.
4377 * top.c (execute_command): Call do_cleanups before early return.
4378 (command_loop): Likewise.
4379 * stack.c (backtrace_command): Make a null cleanup early. Don't
4380 conditionally call do_cleanups.
4381 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4382 TRY_CATCH.
4383 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4384 so cleanups are always run.
4385 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4386 * findcmd.c (parse_find_args): Call do_cleanups on early return
4387 path.
4388 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4389 Don't conditionally call do_cleanups.
4390 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4391 later.
4392
e26bd57d
EB
43932011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4394
4395 * MAINTAINERS (Write After Approval): Use default email address.
4396
6c3097fc
JB
43972011-06-27 Joel Brobecker <brobecker@adacore.com>
4398
4399 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4400
369c397b
JB
44012011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4402
4403 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4404 saved_regs_mask and copied_regs_mask fields.
4405 (sparc_record_save_insn): New prototype.
4406 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4407 (sparc_record_save_insn): New function.
4408 (sparc_analyze_prologue): Add head comment. Recognize store insns
4409 of call-saved registers. Use OFFSET consistently. Recognize flat
4410 frames and cache their settings.
4411 (sparc32_skip_prologue): Handle flat frames.
4412 (sparc_frame_cache): Add frame_offset to the base address.
4413 (sparc32_frame_cache): Adjust to new frame description.
4414 (sparc32_frame_prev_register): Likewise.
4415 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4416 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4417 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4418 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4419 frame by calling sparc_record_save_insn.
4420 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4421 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4422 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4423
b315ab21
TG
44242011-06-27 Tristan Gingold <gingold@adacore.com>
4425
4426 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4427 field by map_addr and map_len.
4428 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4429 (munmap_section_buffer): Likewise.
4430
ddd49eee
TT
44312011-06-24 Tom Tromey <tromey@redhat.com>
4432
4433 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4434 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4435 * python/python.c (gdbpy_parameter): Make 'arg' const.
4436 (execute_gdb_command): Likewise.
4437 (gdbpy_decode_line): Likewise. Copy it.
4438 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4439 (gdbpy_write): Make 'arg' const.
4440 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4441 const.
4442 (gdbpy_lookup_type): Likewise.
4443 * python/py-prettyprint.c (print_children): Make 'name' const.
4444 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4445 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4446 Py_ssize_t.
4447 * python/py-function.c (fnpy_init): Make 'name' const.
4448 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4449 (gdbpy_string_to_argv): Make 'input' const.
4450 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4451 it.
4452 * gdbtypes.h (lookup_typename): Update.
4453 * gdbtypes.c (lookup_typename): Make 'name' const.
4454 (lookup_struct): Likewise.
4455 (lookup_union): Likewise.
4456 (lookup_enum): Likewise.
4457
5998129b
TT
44582011-06-24 Tom Tromey <tromey@redhat.com>
4459
4460 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4461 gdb_thread_db.h. Move all common/ entries to be together.
4462 (TAGS): Don't depend on DEPFILES.
4463
6e586cc5
YQ
44642011-06-23 Yao Qi <yao@codesourcery.com>
4465
4466 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4467 * remote.c (remote_start_remote): ... here.
4468 * monitor.c (monitor_open): ... here.
4469
86c3c1fc
AB
44702011-06-23 Andrew Burgess <aburgess@broadcom.com>
4471
4472 * gdbtypes.c (append_composite_type_field_aligned): Fix
4473 calculation of bit position based on alignment.
4474
28010a5d
PA
44752011-06-22 Pedro Alves <pedro@codesourcery.com>
4476
4477 * breakpoint.c (bpstat_stop_status): Call the check_status
4478 breakpoint_ops method.
4479 (print_one_breakpoint_location): Also print the condition for Ada
4480 exception catchpoints.
4481 (allocate_bp_location): New, factored out from
4482 allocate_bp_location.
4483 (allocate_bp_location): Adjust. Call the owner breakpoint's
4484 allocate_location method, if there is one.
4485 (free_bp_location): Call the locations's dtor method, if there is
4486 one.
4487 (init_raw_breakpoint_without_location): New breakpoint_ops
4488 parameter. Use it.
4489 (set_raw_breakpoint_without_location): Adjust.
4490 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4491 (set_raw_breakpoint): Adjust.
4492 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4493 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4494 re_set and check_status methods.
4495 (init_catchpoint): Don't memset, initialize thread, addr_string
4496 and enable_state. Pass the ops down to init_raw_breakpoint.
4497 (install_catchpoint): Rename to ...
4498 (install_breakpoint): ... this, and make extern.
4499 (create_fork_vfork_event_catchpoint): Adjust.
4500 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4501 re_set and check_status methods.
4502 (create_syscall_event_catchpoint): Adjust.
4503 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4504 (masked_watchpoint_breakpoint_ops): Install NULL
4505 allocate_location, re_set and check_status methods.
4506 (catch_exec_command_1): Adjust.
4507 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4508 re_set and check_status methods.
4509 (create_ada_exception_breakpoint): Rename to ...
4510 (init_ada_exception_breakpoint): ... this. Add a struct
4511 breakpoint parameter, and delete the exp_string, cond_string and
4512 cond parameters. Use init_raw_breakpoint, and don't install or
4513 mention the breakpoint yet. Don't clear breakpoint fields that
4514 init_raw_breakpoint already clears.
4515 (re_set_breakpoint): Delete, split into ...
4516 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4517 functions.
4518 (breakpoint_re_set_one): Call the breakpoint's
4519 breakpoint_ops->re_set implementation, if there's one. Adjust.
4520 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4521 (struct bp_location_ops): New type.
4522 (struct bp_location): New field `ops'.
4523 (struct breakpoint_ops): New `allocate_location', `re_set' and
4524 `check_status' fields. Make `breakpoint_hit''s description match
4525 reality.
4526 (init_bp_location): Declare.
4527 (breakpoint_re_set_default): Declare.
4528 (create_ada_exception_breakpoint): Rename to ...
4529 (init_ada_exception_breakpoint): ... this. Add a struct
4530 breakpoint parameter, and delete the exp_string, cond_string and
4531 cond parameters.
4532 (install_breakpoint): Declare.
4533 * ada-lang.c: Include exceptions.h.
4534 <Ada exceptions description>: Update.
4535 (struct ada_catchpoint_location): New type.
4536 (ada_catchpoint_location_dtor): New function.
4537 (ada_catchpoint_location_ops): New global.
4538 (ada_catchpoint): New type.
4539 (create_excep_cond_exprs): New function.
4540 (dtor_exception, allocate_location_exception, re_set_exception)
4541 (should_stop_exception, check_status_exception): New functions.
4542 (print_one_exception, print_mention_exception)
4543 (print_recreate_exception): Adjust.
4544 (dtor_catch_exception, allocate_location_catch_exception)
4545 (re_set_catch_exception, check_status_catch_exception): New
4546 functions.
4547 (catch_exception_breakpoint_ops): Install them.
4548 (dtor_catch_exception_unhandled)
4549 (allocate_location_catch_exception_unhandled)
4550 (re_set_catch_exception_unhandled)
4551 (check_status_catch_exception_unhandled): New functions.
4552 (catch_exception_unhandled_breakpoint_ops): Install them.
4553 (dtor_catch_assert, allocate_location_catch_assert)
4554 (re_set_catch_assert, check_status_catch_assert): New functions.
4555 (catch_assert_breakpoint_ops): Install them.
4556 (ada_exception_catchpoint_p): Delete.
4557 (catch_ada_exception_command_split)
4558 (ada_exception_catchpoint_cond_string): Rename exp_string
4559 parameter to excep_string. Adjust.
4560 (ada_parse_catchpoint_condition): Delete.
4561 (ada_exception_sal): Rename the exp_string parameter to
4562 excep_string. Delete the cond_string and cond parameters.
4563 Adjust.
4564 (ada_decode_exception_location): Rename the exp_string parameter
4565 to excep_string. Delete the cond_string and cond parameters.
4566 Adjust.
4567 (create_ada_exception_catchpoint): New function.
4568 (catch_ada_exception_command, ada_decode_assert_location)
4569 (catch_assert_command): Adjust.
4570 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4571
9ac4176b
PA
45722011-06-22 Pedro Alves <pedro@codesourcery.com>
4573
4574 * ada-lang.c: Include arch-utils.h.
4575 (ada_decode_exception_location): Make static.
4576 (catch_ada_exception_command): Moved here from breakpoint.c.
4577 (ada_decode_assert_location): Make static.
4578 (catch_assert_command): Moved here from breakpoint.c.
4579 (_initialize_ada_lang): Install the exception and assert
4580 catchpoint commands here.
4581 * ada-lang.h (ada_decode_exception_location)
4582 (ada_decode_assert_location): Delete declarations.
4583 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4584 breakpoint.h.
4585 (create_ada_exception_breakpoint): Make extern.
4586 (catch_ada_exception_command, catch_assert_command): Moved to
4587 ada-lang.c.
4588 (add_catch_command): Make extern.
4589 (_initilize_breakpoint): Don't install the exception and assert
4590 catchpoint commands here.
4591 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4592 breakpoint.c
4593 (add_catch_command, create_ada_exception_breakpoint): Declare.
4594
c56053d2
PA
45952011-06-22 Pedro Alves <pedro@codesourcery.com>
4596
4597 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4598 the breakpoint to the breakpoint chain here.
4599 (set_raw_breakpoint_without_location): Add the breakpoint to the
4600 breakpoint chain here.
4601 (init_raw_breakpoint): Adjust comments.
4602 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4603 here.
4604 (init_catchpoint): Don't set the catchpoint's breakpoint number
4605 here.
4606 (install_catchpoint): New function.
4607 (create_fork_vfork_event_catchpoint)
4608 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4609 use install_catchpoint.
4610
d2f3fc74
PA
46112011-06-22 Pedro Alves <pedro@codesourcery.com>
4612
4613 * breakpoint.c (create_catchpoint_without_mention)
4614 (create_catchpoint): Delete.
4615
b4d90040
PA
46162011-06-22 Pedro Alves <pedro@codesourcery.com>
4617
4618 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4619 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4620 reference to exec_pathname.
4621 (struct exec_catchpoint): New type.
4622 (dtor_catch_exec): New function.
4623 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4624 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4625 (catch_exec_command_1): Adjust to use init_catchpoint.
4626 (delete_breakpoint): Remove reference to exec_pathname.
4627
be5c67c1
PA
46282011-06-22 Pedro Alves <pedro@codesourcery.com>
4629
4630 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4631 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4632 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4633 reference to syscalls_to_be_caught.
4634 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4635 NULL `dtor'.
4636 (struct syscall_catchpoint): New type.
4637 (dtor_catch_syscall): New function.
4638 (insert_catch_syscall, remove_catch_syscall)
4639 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4640 (print_recreate_catch_syscall): Adjust.
4641 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4642 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4643 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4644 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4645 (masked_watchpoint_breakpoint_ops)
4646 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4647 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4648 there is one. Remove references to syscalls_to_be_caught.
4649 (catching_syscall_number): Adjust.
4650 * ada-lang.c (catch_exception_breakpoint_ops)
4651 (catch_exception_unhandled_breakpoint_ops)
4652 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4653
e29a4733
PA
46542011-06-22 Pedro Alves <pedro@codesourcery.com>
4655
4656 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4657 field.
4658 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4659 reference to forked_inferior_pid.
4660 (struct fork_catchpoint): New type.
4661 (breakpoint_hit_catch_fork, print_it_catch_fork)
4662 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4663 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4664 (create_fork_vfork_event_catchpoint): Adjust to use
4665 init_catchpoint.
4666
346774a9
PA
46672011-06-22 Pedro Alves <pedro@codesourcery.com>
4668
4669 * breakpoint.c (add_to_breakpoint_chain)
4670 (init_raw_breakpoint_without_location): New functions, factored
4671 out from ...
4672 (set_raw_breakpoint_without_location): ... this one.
4673 (init_raw_breakpoint): New function, factored out from
4674 set_raw_breakpoint and adjusted to use
4675 init_raw_breakpoint_without_location.
4676 (set_raw_breakpoint): Adjust.
4677 (init_catchpoint): New function, factored out from
4678 create_catchpoint_without_mention and adjusted to use
4679 init_raw_breakpoint.
4680 (create_catchpoint_without_mention): Adjust.
4681
c38c4bc5
TT
46822011-06-22 Tom Tromey <tromey@redhat.com>
4683
4684 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4685 argument of 0 specially.
4686
b138ce37
YQ
46872011-06-22 Yao Qi <yao@codesourcery.com>
4688
4689 * infrun.c (handle_inferior_event): Remove write-only local variable
4690 `sw_single_step_trap_p'.
4691
03de6823
TT
46922011-06-20 Tom Tromey <tromey@redhat.com>
4693
4694 * symtab.c (lookup_language_this): End loop if block is NULL.
4695
66a17cb6
TT
46962011-06-17 Tom Tromey <tromey@redhat.com>
4697
4698 * valops.c (value_of_this): Use lookup_language_this.
4699 * symtab.h (lookup_language_this): Declare.
4700 * symtab.c (lookup_language_this): New function.
4701 (lookup_symbol_aux): Use lookup_language_this.
4702 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4703
7518bff5
TT
47042011-06-17 Tom Tromey <tromey@redhat.com>
4705
4706 * value.h (value_of_this): Update.
4707 (value_of_local): Remove.
4708 * valops.c (value_of_this): Rename from value_of_local. Change
4709 parameters.
4710 * p-exp.y (exp): Update.
4711 (variable): Likewise.
4712 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4713
aee28ec6
TT
47142011-06-17 Tom Tromey <tromey@redhat.com>
4715
4716 * valops.c (value_of_local): Complain if NAME is NULL.
4717 * std-operator.def (OP_OBJC_SELF): Remove.
4718 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4719 * objc-exp.y (name_not_typename): Use OP_THIS.
4720 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4721 name for "this".
4722 <OP_OBJC_SELF>: Remove.
4723 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4724
eed8f803
TG
47252011-06-16 Tristan Gingold <gingold@adacore.com>
4726
4727 * python/py-events.h (gdb_py_events): Make it extern.
4728 * python/py-evtregistry.c (gdb_py_events): Declare.
4729
864ac8a7
HZ
47302011-06-16 Hui Zhu <teawater@gmail.com>
4731
4732 * remote.c (remote_trace_set_readonly_regions): Add check for
4733 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4734 output warning.
4735
ef7e8358
UW
47362011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4737
4738 * arm-linux-tdep.c: Include "auxv.h".
4739 (AT_HWCAP): Define.
4740 (ARM_LINUX_SIZEOF_VFP): Define.
4741 (arm_linux_supply_vfp): New function.
4742 (arm_linux_collect_vfp): Likewise.
4743 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4744 (arm_linux_fpa_regset_sections): New variable.
4745 (arm_linux_vfp_regset_sections): Likewise.
4746 (arm_linux_core_read_description): New function.
4747 (arm_linux_init_abi): Install arm_linux_core_read_description and
4748 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4749 appropriate for the architecture.
4750 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4751 (tdesc_arm_with_m): Declare.
4752 (tdesc_arm_with_iwmmxt): Likewise.
4753 (tdesc_arm_with_vfpv2): Likewise.
4754 (tdesc_arm_with_vfpv3): Likewise.
4755 (tdesc_arm_with_neon): Likewise.
4756 * arm-linux-nat.c: Move features/*.c includes ...
4757 * arm-tdep.c: ... here.
4758 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4759 target description data structures ...
4760 * arm-tdep.c (_initialize_arm_tdep): ... here.
4761 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4762 HWCAP_VFPv3D16): Move definitions ...
4763 * arm-linux-tdep.h: ... here.
4764
c2fa21f1
HZ
47652011-06-15 Hui Zhu <teawater@gmail.com>
4766
4767 * remote.c (remote_trace_set_readonly_regions): Add a check for
4768 target_buf_size.
4769
dd707e8e
TT
47702011-06-14 Tom Tromey <tromey@redhat.com>
4771
4772 * coffread.c (coffread_objfile): Rename from current_objfile.
4773 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4774 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4775
86cc0029
TT
47762011-06-14 Tom Tromey <tromey@redhat.com>
4777
4778 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4779 (class_symtab): Remove.
4780 (jv_dynamics_progspace_key): New global.
4781 (jv_per_objfile_free): Reset program space data. Update assert.
4782 Don't clear globals.
4783 (get_dynamics_objfile): Use and set program space data.
4784 (get_java_class_symtab): Use get_dynamics_objfile.
4785 (add_class_symbol): Likewise.
4786 (java_link_class_type): Likewise.
4787 (java_object_type, jv_clear_object_type, set_java_object_type):
4788 Remove.
4789 (get_java_object_type): Update. Don't cache result.
4790 (is_object_type): Don't call set_java_object_type.
4791 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4792 initialize jv_dynamics_progspace_key.
4793
91a81f69
TT
47942011-06-14 Tom Tromey <tromey@redhat.com>
4795
4796 * symtab.h (current_objfile): Don't declare.
4797 * objfiles.h (current_objfile): Don't declare.
4798 * objfiles.c (current_objfile): Remove.
4799 * mdebugread.c (current_objfile): New file-scope global.
4800 * dbxread.c (current_objfile): New file-scope global.
4801 * coffread.c (current_objfile): New file-scope global.
4802
dc7eb48e
PA
48032011-06-13 Pedro Alves <pedro@codesourcery.com>
4804
4805 * top.h (line): Rename to ...
4806 (saved_command_line): ... this.
4807 (linesize): Rename to ...
4808 (saved_command_line_size): ... this.
4809 * top.c (line): Rename to ...
4810 (saved_command_line): ... this.
4811 (linesize): Rename to ...
4812 (saved_command_line_size): ... this.
4813 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4814 * event-top.c (command_line_handler): Adjust.
4815 * main.c (captured_main): Adjust.
4816
0d6c2135
MK
48172011-06-12 Mark Kettenis <kettenis@gnu.org>
4818
4819 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4820 get_frame_func instead of get_frame_pc to determine the code
4821 address used to construct the frame ID.
4822 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4823 (i386_epilogue_frame_this_id): Likewise.
4824 (i386_epilogue_frame_prev_register): New function.
4825 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4826 (i386_stack_tramp_frame_sniffer): Fix coding style.
4827 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4828 (i386_gdbarch_init): Fix comments.
4829
8bbdd3f4
MK
48302011-06-12 Mark Kettenis <kettenis@gnu.org>
4831
4832 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4833 instruction when walking back through the instruction stream.
4834
533a737e
JK
48352011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4836
4837 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4838 fullname parameters order.
4839
44b13c5a
JK
48402011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4841
4842 Code cleanup.
4843 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4844 for fun.
4845 * psymtab.c (map_symbol_filenames_psymtab)
4846 (map_partial_symbol_filenames): Likewise.
4847 * psymtab.h: Include symfile.h.
4848 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4849 * symfile.h (symbol_filename_ftype): New.
4850 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4851 map_symbol_filenames, clarify more the naming in comment.
4852
0b5574da
DE
48532011-06-07 Doug Evans <dje@google.com>
4854
4855 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4856 Look for ../../gdb, for fullname.exp.
0b5574da 4857
5be4dfca
JK
48582011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4859 Pedro Alves <pedro@codesourcery.com>
4860
4861 * cli/cli-cmds.c (shell_escape): Use waitpid.
4862 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4863
316a8b21
TG
48642011-06-07 Tristan Gingold <gingold@adacore.com>
4865
4866 * xcoffread.c (dwarf2_xcoff_names): New variable.
4867 (aix_process_linenos): Add a guard.
4868 (xcoff_symfile_finish): Free dwarf2.
4869 (xcoff_initial_scan): Add dwarf2 support.
4870
3dd5b83d
PA
48712011-06-06 Pedro Alves <pedro@codesourcery.com>
4872
4873 * infcall.c (run_inferior_call): Don't mask async. Instead force
4874 a synchronous wait, if the target can async.
4875
4876 * target.h (struct target_ops): Delete to_async_mask.
4877 (target_async_mask): Delete.
4878 * target.c (update_current_target): Delete references to to_async_mask.
4879 * linux-nat.c (linux_nat_async_mask_value): Delete.
4880 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4881 to linux_nat_async_mask_value.
4882 (linux_nat_async_mask): Delete.
4883 (linux_nat_async, linux_nat_close): Remove references to
4884 linux_nat_async_mask_value.
4885 * record.c (record_async_mask_value): Delete.
4886 (record_async): Remove references to record_async_mask_value.
4887 (record_async_mask): Delete.
4888 (record_can_async_p, record_is_async_p): Remove references to
4889 record_async_mask_value.
4890 (init_record_ops, init_record_core_ops): Remove references to
4891 record_async_mask.
4892 * remote.c (remote_async_mask_value): Delete.
4893 (init_remote_ops): Remove reference to remote_async_mask.
4894 (remote_can_async_p, remote_is_async_p): Remove references to
4895 remote_async_mask_value.
4896 (remote_async): Remove references to remote_async_mask_value.
4897 (remote_async_mask): Delete.
4898
4899 * infrun.c (fetch_inferior_event): Don't claim registers changed
4900 if the current thread is already not executing.
4901
64b9b334
JB
49022011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4903
4904 From Stephen Kitt <steve@sk2.org>
4905 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4906 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4907
325663dc
JB
49082011-06-03 Joel Brobecker <brobecker@adacore.com>
4909
4910 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4911 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4912
8cf64490
TT
49132011-06-03 Tom Tromey <tromey@redhat.com>
4914
4915 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4916 code fields.
4917 * python/py-exitedevent.c (create_exited_event_object): Change
4918 type of 'exit_code'. Optionally add exit_code attribute.
4919 (emit_exited_event): Change type of 'exit_code'.
4920 * python/py-event.h (emit_exited_event): Update.
4921 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4922 * infrun.c (handle_inferior_event): Set exit code fields on
4923 inferior.
4924 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4925 fields.
4926 * inferior.c (exit_inferior_1): Initialize new fields.
4927
8ddd9a20
TT
49282011-06-03 Tom Tromey <tromey@redhat.com>
4929
4930 * dwarf2expr.c (get_signed_type): New function.
4931 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4932
8dfd1e6d
KS
49332011-06-02 Keith Seitz <keiths@redhat.com>
4934
4935 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4936
65fdb766
PA
49372011-06-02 Pedro Alves <pedro@codesourcery.com>
4938
4939 * top.h (simplified_command_loop): Delete declaration.
4940
f4b8c29b
MF
49412011-06-01 Mike Frysinger <vapier@gentoo.org>
4942
4943 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4944 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4945
1706c199
YQ
49462011-06-01 Yao Qi <yao@codesourcery.com>
4947
4948 * objfiles.h (obj_section_addr): Update reference to objfile from
4949 `abfd' to `obfd'.
4950 (obj_section_endaddr): Likewise.
4951
d19cd713 49522011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4953
4954 * MAINTAINERS: Update my email address and affiliation. Also
4955 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4956
e8eb7bc5
KS
49572010-05-31 Keith Seitz <keiths@redhat.com>
4958
4959 PR c++/12750
4960 * linespec.c (get_search_block): New function.
4961 (find_methods): Add FILE_SYMTATB parameter and use it and
4962 get_search_block to pass an appropriate block to
4963 lookup_symbol_in_namespace.
4964 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4965 Check if *ARGPTR starts with a filename first.
4966 If it does, call locate_first_half again to locate the next
4967 "first half" of the linespec.
4968 Pass FILE_SYMTATB to decode_objc and decode_compound.
4969 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4970 (locate_first_half): Stop on the first colon seen.
4971 (decode_compound): Add FILE_SYMTAB parameter.
4972 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4973 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4974 get_search_block with lookup_symbol.
4975 (find_method): Add FILE_SYMTAB parameter and pass it to
4976 find_methods.
4977 (decode_objc): Use get_search_block.
4978
2b1dbab0
KS
49792010-05-31 Keith Seitz <keiths@redhat.com>
4980
4981 PR symtab/12704
4982 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4983 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4984 and CP_ANONYMOUS_NAMESPACE_LEN.
4985 (cp_is_anonymous): Likewise.
4986 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4987 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4988 * dwarf2read.c (namespace_name): Likewise.
4989 (fixup_partial_die): Likewise.
4990 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4991 seen in the input, keep it.
4992
6d549500
PA
49932011-05-30 Pedro Alves <pedro@codesourcery.com>
4994
4995 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4996 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4997 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4998 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4999 * remote.c (_initialize_remote): Register
5000 async_remote_interrupt_twice directly as
5001 sigint_remote_twice_token event.
5002
395bff70
PA
50032011-05-30 Pedro Alves <pedro@codesourcery.com>
5004
5005 * target.h (enum inferior_event_type): Delete INF_ERROR.
5006 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5007
97224164
PA
50082011-05-30 Pedro Alves <pedro@codesourcery.com>
5009
5010 * interps.c (interp_set): Don't cancel continuations.
5011
07e78767
JK
50122011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5013
5014 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5015
fa4cd53f
PA
50162011-05-30 Pedro Alves <pedro@codesourcery.com>
5017
5018 * continuations.h (continuation_ftype): Add `err' parameter.
5019 Document parameters.
5020 (do_all_continuations, do_all_continuations_thread)
5021 (do_all_intermediate_continuations)
5022 (do_all_intermediate_continuations_thread)
5023 (do_all_inferior_continuations): Add `err' parameter.
5024 * continuations.c (do_my_continuations_1, do_my_continuations)
5025 (do_all_inferior_continuations, do_all_continuations_ptid)
5026 (do_all_continuations_thread_callback)
5027 (do_all_continuations_thread, do_all_continuations)
5028 (do_all_intermediate_continuations_thread_callback)
5029 (do_all_intermediate_continuations_thread)
5030 (do_all_intermediate_continuations): Add `err' parameter, and pass
5031 it down all the way to the continuations proper.
5032 * inf-loop.c (inferior_event_handler): If fetching an inferior
5033 event throws an error, don't pop the target, and still call the
5034 continuations, but with `err' set. Adjust all other continuation
5035 calls.
5036 * breakpoint.c (until_break_command_continuation): Add `err'
5037 parameter.
5038 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5039 issue another step if `err' is set.
5040 (struct until_next_continuation_args): New.
5041 (until_next_continuation): Add `err' parameter. Adjust.
5042 (until_next_command): Adjust.
5043 (struct finish_command_continuation_args): Add `thread' field.
5044 (finish_command_continuation): Add `err' parameter. Handle it.
5045 (finish_forward): Adjust.
5046 (attach_command_continuation): Add `err' parameter. Handle it.
5047 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5048 cancel the continuations.
5049 * interps.c (interp_set): Adjust to cancel the continuations.
5050 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5051 continuations rather than discarding.
5052 (free_thread): Don't clear thread inferior resources here.
5053 (delete_thread_1): Do it here instead. And do it before removing
5054 the thread from the threads list. Tag the thread as exited before
5055 clearing thread inferior resources.
5056
c2949be0
JB
50572011-05-30 Joel Brobecker <brobecker@adacore.com>
5058
5059 * infcall.c (call_function_by_hand): Rephrase error message.
5060
619cebe8
PA
50612011-05-27 Pedro Alves <pedro@codesourcery.com>
5062
5063 * defs.h (struct thread_info, struct inferior): Delete forward
5064 declarations.
5065 * breakpoint.h (struct thread_info): New forward declaration.
5066 * observer.sh (struct inferior): New forward declaration.
5067 * python/python-internal.h (struct inferior): New forward
5068 declaration.
5069
be34f849
PA
50702011-05-27 Pedro Alves <pedro@codesourcery.com>
5071
5072 * defs.h (struct continuation, continuation_ftype)
5073 (continuation_free_arg_ftype, add_continuation)
5074 (do_all_continuations, do_all_continuations_thread)
5075 (discard_all_continuations, discard_all_continuations_thread)
5076 (add_intermediate_continuation, do_all_intermediate_continuations)
5077 (do_all_intermediate_continuations_thread)
5078 (discard_all_intermediate_continuations)
5079 (discard_all_intermediate_continuations_thread)
5080 (add_inferior_continuation, do_all_inferior_continuations)
5081 (discard_all_inferior_continuations): Move to ...
5082 * continuations.h: ... this new file.
5083 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5084 infcmd.c, inferior.c, infrun.c, interps.c: Include
5085 continuations.h.
5086
432b4d03
JK
50872011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5088 Doug Evans <dje@google.com>
5089
5090 Fix PR 10970, PR 12702.
5091 * linux-nat.c (linux_lwp_is_zombie): New function.
5092 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5093 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5094
b0f260d6
PA
50952011-05-27 Pedro Alves <pedro@codesourcery.com>
5096
5097 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5098 typedefs.
5099 (add_continuation, add_intermediate_continuation)
5100 (add_inferior_continuation): Use them.
5101 * continuations.c (struct continuation): Use them.
5102 (make_continuation_ftype): Delete.
5103 (make_continuation, add_inferior_continuation, add_continuation)
5104 (add_intermediate_continuation): Use continuation_ftype and
5105 continuation_free_arg_ftype. Rename parameters to shorter names.
5106
af1e9a32
PA
51072011-05-27 Pedro Alves <pedro@codesourcery.com>
5108
5109 * continuations.c (make_continuation): Make it return void.
5110 (do_my_continuations): Rename to ...
5111 (do_my_continuations_1): ... this. Remove old_chain parameter and
5112 adjust.
5113 (do_my_continuations): New.
5114 (discard_my_continuations): Rename to ...
5115 (discard_my_continuations_1): ... this. Remove old_chain
5116 parameter and adjust.
5117 (discard_my_continuations): New.
5118 (add_inferior_continuation): Simplify.
5119 (do_all_inferior_continuations): Reimplement on top
5120 do_my_continuations.
5121 (discard_all_inferior_continuations): Simplify.
5122 (add_continuation): Simplify.
5123 (do_all_continuations_ptid): Simplify.
5124 (discard_all_continuations_thread_callback): Simplify.
5125 (add_intermediate_continuation): Simplify.
5126 (discard_all_intermediate_continuations_thread_callback):
5127 Simplify.
5128
50c0c017
PA
51292011-05-27 Pedro Alves <pedro@codesourcery.com>
5130
5131 * utils.c (struct continuation, add_continuation)
5132 (add_inferior_continuation)
5133 (do_all_inferior_continuations, discard_all_inferior_continuations)
5134 (restore_thread_cleanup, do_all_continuations_ptid)
5135 (do_all_continuations_thread_callback)
5136 (do_all_continuations_thread, do_all_continuations)
5137 (discard_all_continuations_thread_callback)
5138 (discard_all_continuations_thread, discard_all_continuations)
5139 (add_intermediate_continuation)
5140 (do_all_intermediate_continuations_thread_callback)
5141 (do_all_intermediate_continuations_thread)
5142 (do_all_intermediate_continuations)
5143 (discard_all_intermediate_continuations_thread_callback)
5144 (discard_all_intermediate_continuations_thread)
5145 (discard_all_intermediate_continuations): Move to ...
5146 * continuations.c: ... this new file, and adjust to no longer
5147 implement continuations on top of cleanups.
5148 * Makefile.in (SFILES): Add continuations.c.
5149 (COMMON_OBS): Add continuations.o.
5150
d8b34453
PA
51512011-05-26 Pedro Alves <pedro@codesourcery.com>
5152
5153 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5154 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5155 Internal error on invalid values.
5156 * reverse.c: Don't handle EXEC_ERROR.
5157 * mi/mi-main.c: Don't handle EXEC_ERROR.
5158
32231432
PA
51592011-05-26 Pedro Alves <pedro@codesourcery.com>
5160
5161 * record.c: Include event-loop.h, inf-loop.h.
5162 (record_beneath_to_async): New global.
5163 (tmp_to_async): New global.
5164 (record_async_inferior_event_token): New global.
5165 (record_open_1): Don't error out if async is enabled.
5166 (record_open): Handle to_async. Create an async event source in
5167 the event loop.
5168 (record_close): Delete the async event source.
5169 (record_resumed): New global.
5170 (record_execution_dir): New global.
5171 (record_resume, record_core_resume): Set them. Register the
5172 target on the event loop.
5173 (record_wait): Rename to ...
5174 (record_wait_1): ... this. Add more debug output. Handle
5175 TARGET_WNOHANG, and the target beneath returning
5176 TARGET_WAITKIND_IGNORE.
5177 (record_wait): Reimplement on top of record_wait_1.
5178 (record_async_mask_value): New global.
5179 (record_async, record_async_mask, record_can_async_p)
5180 (record_is_async_p, record_execution_direction): New functions.
5181 (init_record_ops, init_record_core_ops): Install new methods.
5182 * infrun.c (fetch_inferior_event): Temporarily switch the global
5183 execution direction to the direction the target was going.
5184 (execution_direction): Change type to int.
5185 * target.c (default_execution_direction): New function.
5186 (update_current_target): Inherit and de_fault
5187 to_execution_direction.
5188 * target.h (struct target_ops) <to_execution_direction>: New
5189 field.
5190 (target_execution_direction): New macro.
5191 * inferior.h (execution_direction): Change type to int.
5192
949dc678
PA
51932011-05-26 Pedro Alves <pedro@codesourcery.com>
5194
5195 * infcall.c (call_function_by_hand): Don't allow calling functions
5196 in reverse execution mode.
5197
c13bd2b5
PA
51982011-05-26 Pedro Alves <pedro@codesourcery.com>
5199
5200 * infcmd.c (finish_command): Allow async finish in reverse.
5201
6938fd34
YQ
52022011-05-26 Yao Qi <yao@codesourcery.com>
5203
5204 * gdb_thread_db.h: Delete. Move to ...
5205 * common/gdb_thread_db.h: ... here.
5206
9da8c2a0
PA
52072011-05-26 Pedro Alves <pedro@codesourcery.com>
5208
5209 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5210 function's entry point instead of a manually managed momentary
5211 breakpoint, and only ever issue one proceed call.
5212 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5213 doing a reverse-finish, switch to stepi mode, to do another step.
5214 (insert_step_resume_breakpoint_at_sal): Make public.
5215 (normal_stop): No need to save function value return registers if
5216 going reverse.
5217 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5218
2c03e5be
PA
52192011-05-26 Pedro Alves <pedro@codesourcery.com>
5220
5221 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5222 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5223 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5224 at the end.
5225 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5226 step-resume breakpoints.
5227 (print_it_typical): Handle bp_hp_step_resume.
5228 (bpstat_what): Ditto.
5229 (bptype_string): Ditto.
5230 (print_one_breakpoint_location): Ditto.
5231 (allocate_bp_location): Ditto.
5232 (mention): Ditto.
5233 (breakpoint_re_set_one): Ditto.
5234 * infrun.c (handle_inferior_event): Adjust. Split
5235 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5236 BPSTAT_WHAT_HP_STEP_RESUME.
5237 (insert_step_resume_breakpoint_at_sal): Rename to ...
5238 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5239 parameter. Handle it.
5240 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5241 insert_step_resume_breakpoint_at_sal_1.
5242 (insert_step_resume_breakpoint_at_frame): Rename to ...
5243 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5244 set a high-priority step-resume breakpoint.
5245 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5246 (insert_step_resume_breakpoint_at_caller): Ditto.
5247
51be5b68
PA
52482011-05-26 Pedro Alves <pedro@codesourcery.com>
5249
5250 * breakpoint.c (iterate_over_related_breakpoints): New.
5251 (do_map_delete_breakpoint): New.
5252 (delete_command): Pass do_map_delete_breakpoint to
5253 map_breakpoint_numbers.
5254 (do_disable_breakpoint): New.
5255 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5256 breakpoints.
5257 (do_enable_breakpoint): Rename to ...
5258 (enable_breakpoint_disp): ... this.
5259 (enable_breakpoint): Adjust.
5260 (do_enable_breakpoint): New.
5261 (enable_once_breakpoint): Delete.
5262 (do_map_enable_breakpoint): New.
5263 (do_map_enable_once_breakpoint): New.
5264 (enable_once_command, enable_delete_command)
5265 (delete_trace_command): Iterate over the breakpoint's related
5266 breakpoints.
5267
4a1be8d2
PA
52682011-05-26 Pedro Alves <pedro@codesourcery.com>
5269
5270 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5271 for ALPHA_ZERO_REGNUM.
5272 (alpha_supply_int_regs): Explicitly supply zero as the value for
5273 ALPHA_ZERO_REGNUM in the register cache.
5274 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5275
59d70315
YQ
52762011-05-26 Yao Qi <yao@codesourcery.com>
5277
5278 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5279
251d32d9
TG
52802011-05-26 Tristan Gingold <gingold@adacore.com>
5281
5282 * symfile.h (struct dwarf2_section_names): New type.
5283 (struct dwarf2_debug_sections): New type.
5284 (dwarf2_has_info): Add parameter.
5285 * dwarf2read.c (dwarf2_elf_names): New variable.
5286 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5287 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5288 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5289 (dwarf2_has_info): Add names parameter. Pass names
5290 to dwarf2_locate_sections.
5291 (section_is_p): Rewrite using the names parameter.
5292 (dwarf2_locate_sections): Use section names from the names parameter.
5293 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5294 * elfread.c (read_psyms): Ditto.
5295 * machoread.c (macho_symfile_read): Ditto.
5296
652c71b4
AS
52972011-05-25 Andreas Schwab <schwab@redhat.com>
5298
5299 PR gdb/8677
5300 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5301
f17170e5
KS
53022011-05-24 Keith Seitz <keiths@redhat.com>
5303
5304 PR breakpoint/12803
5305 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5306 (decode_compound): Unconditionally call keep_name_info.
5307
cdac0397
PA
53082011-05-24 Pedro Alves <pedro@codesourcery.com>
5309
5310 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5311 scope, clear its command list.
5312 (map_breakpoint_numbers): Don't walk the related breakpoints list
5313 of each breakpoint.
5314
91d4fe3f
TT
53152011-05-24 Tom Tromey <tromey@redhat.com>
5316
5317 * MAINTAINERS: Move Jim Blandy to past maintainers.
5318
3017a003
TG
53192011-05-24 Tristan Gingold <gingold@adacore.com>
5320
5321 * symfile.h (enum dwarf2_section_enum): New type.
5322 (dwarf2_get_section_info): New prototype.
5323 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5324 section_name by sect. Use a switch to select the info.
5325 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5326 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5327
c91c8c16
PA
53282011-05-24 Pedro Alves <pedro@codesourcery.com>
5329
5330 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5331 shared library event breakpoint if there's no execution.
5332
77bc418a
TJB
53332011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5334
5335 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5336 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5337
c50491a7
TT
53382011-05-23 Tom Tromey <tromey@redhat.com>
5339
5340 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5341 NULL.
5342
6d64e6d4
DE
53432011-05-23 Doug Evans <dje@google.com>
5344
5345 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5346 entry for RuntimeError to doc string.
5347
2067c8d4
JG
53482011-05-23 Jerome Guitton <guitton@adacore.com>
5349
5350 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5351 sequence for probing loops.
5352
b136cd05
PA
53532011-05-23 Pedro Alves <pedro@codesourcery.com>
5354
5355 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5356 comment.
5357
22e74ef9
MK
53582011-05-21 Mark Kettenis <kettenis@gnu.org>
5359
5360 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5361 zero as the value for %g0 in the register cache.
5362 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5363 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5364
842951eb
PA
53652011-05-20 Pedro Alves <pedro@codesourcery.com>
5366
5367 * infrun.c (proceed): Set previous_inferior_ptid here.
5368 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5369 inferior_ptid, not null_ptid.
5370 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5371 (fetch_inferior_event): Nor here.
5372
46cf51e6
PA
53732011-05-20 Pedro Alves <pedro@codesourcery.com>
5374
5375 * inf-loop.c (inferior_event_handler): Only output a message if
5376 verbose.
5377
29ef4c46
LM
53782011-05-20 Luis Machado <lgustavo@codesourcery.com>
5379
5380 * MAINTAINERS: Update my e-mail address.
5381
f148b27e
PA
53822011-05-20 Pedro Alves <pedro@codesourcery.com>
5383
5384 * infrun.c (proceed): Switch the inferior event loop to
5385 INF_EXEC_COMPLETE if the target refused to resume from a
5386 vfork/fork.
5387
09cee04b
PA
53882011-05-20 Pedro Alves <pedro@codesourcery.com>
5389
5390 * infcmd.c: Include "inf-loop.h".
5391 (step_once): When stepping into an inline subroutine, pretend the
5392 target has run. If the target can async, switch the inferior
5393 event loop to INF_EXEC_COMPLETE.
5394 * inferior.h (user_visible_resume_ptid): Declare.
5395 * infrun.c (user_visible_resume_ptid): New function, factored out
5396 from `resume'.
5397 (resume): Use it.
5398 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5399 that the current thread is running. Merge async and sync
5400 branches.
5401
751b8ce1
PA
54022011-05-20 Pedro Alves <pedro@codesourcery.com>
5403
5404 * infcmd.c (step_1): Simplify synchronous case.
5405
e93a69ed
PA
54062011-05-20 Pedro Alves <pedro@codesourcery.com>
5407
5408 * tracepoint.c: Include exceptions.h.
5409 (TFILE_PID): Move higher in file.
5410 (tfile_open): Delay pushing the tfile target until we're assured
5411 the tfile header is present in the file. Wrap reading the initial
5412 newline-terminated lines in TRY_CATCH. Pop the target if the
5413 initial setup failed. Add the tfile's thread immediately
5414 aftwards, before any non-essential setup. Don't skip
5415 post_create_inferior if there are no traceframes present in the
5416 file.
5417 (tfile_close): Remove redundant check for null before xfree call.
5418 (tfile_thread_alive): New function.
5419 (init_tfile_ops): Register it as to_thread_alive callback.
5420
6823e2b1
PA
54212011-05-20 Pedro Alves <pedro@codesourcery.com>
5422
5423 * tracepoint.c (tfile_open): Delete #if 0'd code.
5424
b3c8eb43
JK
54252011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5426
5427 Fix -readnow for -gdwarf-4 unused type units.
5428 * dwarf2read.c (struct signatured_type): Remove the field offset.
5429 (create_signatured_type_table_from_index): Remove its initialization.
5430 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5431 instead. Add a complaint call.
5432 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5433 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5434 (lookup_signatured_type_at_offset, read_signatured_type)
5435 (write_one_signatured_type): Update the field for per_cu.
5436
310afc76
TT
54372011-05-19 Tom Tromey <tromey@redhat.com>
5438
5439 * python/py-inferior.c (python_inferior_exit): Use
5440 target_gdbarch.
5441 (python_on_resume): Likewise.
5442
cf6c5ffb
TT
54432011-05-19 Matt Rice <ratmice@gmail.com>
5444
5445 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5446
fb80a3c5
HZ
54472011-05-19 Hui Zhu <teawater@gmail.com>
5448
5449 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5450
3672b1be
HZ
54512011-05-19 Hui Zhu <teawater@gmail.com>
5452
5453 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5454
ff355380
TT
54552011-05-18 Tom Tromey <tromey@redhat.com>
5456
5457 * dwarf2read.c (dwarf2_add_field): Constify.
5458 * value.c (value_static_field): Constify.
5459 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5460 Now const.
5461 * ax-gdb.c (gen_static_field): Constify
5462
ed731959
JK
54632011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5464
5465 * linux-nat.c (kill_callback): Use SIGKILL first.
5466
967cff16
JB
54672011-05-18 Joel Brobecker <brobecker@adacore.com>
5468
5469 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5470
1d06ead6
TT
54712011-05-18 Tom Tromey <tromey@redhat.com>
5472
5473 * value.c (value_fn_field): Constify.
5474 * symtab.c (gdb_mangle_name): Constify.
5475 * stabsread.c (update_method_name_from_physname): Make 'physname'
5476 argument const.
5477 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5478 const. Use explicit fputc_filtered loop.
5479 (pascal_type_print_base): Constify.
5480 * p-lang.h (pascal_type_print_method_args): Update.
5481 * linespec.c (add_matching_methods): Constify.
5482 (add_constructors): Likewise.
5483 * jv-typeprint.c (java_type_print_base): Constify.
5484 * gdbtypes.h (struct cplus_struct_type)
5485 <fn_fieldlist.fn_field.physname>: Now const.
5486 * dwarf2read.c (compute_delayed_physnames): Constify.
5487 (dwarf2_add_member_fn): Likewise.
5488 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5489
0d9a9a5f
PA
54902011-05-18 Pedro Alves <pedro@codesourcery.com>
5491
5492 * infrun.c (resume): Mention which is the current thread, and its
5493 current PC in debug output.
5494 (prepare_to_proceed): Mention the thread switching in debug
5495 output.
5496
05386e9e
TT
54972011-05-18 Tom Tromey <tromey@redhat.com>
5498
5499 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5500 path check. Use xmalloc and cleanups.
5501 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5502
ee86786c
TT
55032011-05-17 Tom Tromey <tromey@redhat.com>
5504
5505 * cp-valprint.c (cp_print_value_fields): Catch errors from
5506 value_static_field.
5507
9ff3b74f
TT
55082011-05-17 Tom Tromey <tromey@redhat.com>
5509
5510 * dwarf2read.c (dwarf2_get_die_type): Call
5511 get_die_type_at_offset.
5512 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5513 get_base_type function.
5514
cd3da28e
PA
55152011-05-17 Tomas Martinec <fyzmat@gmail.com>
5516
5517 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5518 trap_expected.
5519
fd20d931
DE
55202011-05-16 Doug Evans <dje@google.com>
5521
5522 * python/py-auto-load.c (source_section_scripts): Mention objfile
5523 name in warning.
5524
75fc9810
DE
55252011-05-15 Doug Evans <dje@google.com>
5526
290351b8
DE
5527 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5528 (try_thread_db_load_from_pdir): Call it. If unable to find
5529 libthread_db in directory of libpthread, see if we're looking at
5530 the separate-debug-info copy.
5531
75fc9810
DE
5532 * python/py-autoload.c (print_script): Print "Missing" instead of
5533 "No" for missing scripts.
5534 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5535
9f7bc587
DE
55362011-05-13 Doug Evans <dje@google.com>
5537
5538 * ui-file.c (stdio_file_write_async_safe): Add comment.
5539
093cee7d
HZ
55402011-05-14 Hui Zhu <teawater@gmail.com>
5541
5542 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5543
dbaefcf7
DE
55442011-05-13 Doug Evans <dje@google.com>
5545
98a5dd13
DE
5546 Support $pdir and $sdir in libthread-db-search-path.
5547 * NEWS: Mention $sdir,$pdir.
5548 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5549 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5550 (try_thread_db_load_from_sdir): New function.
5551 (try_thread_db_load_from_dir): New function.
5552 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5553 system directories if search of libthread-db-search-path fails,
5554 that is now done via $sdir.
5555 (has_libpthread): New function.
5556 (thread_db_load): Remove search for libthread_db in directory of
5557 libpthread, that is now done via $pdir.
5558
dbaefcf7
DE
5559 * NEWS: Mention "info auto-load-scripts".
5560 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5561 script_not_found_warning_printed.
5562 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5563 all callers updated. Initialize script_not_found_warning_printed.
5564 (get_auto_load_pspace_data_for_loading): New function.
5565 (maybe_add_script): New function.
5566 (source_section_scripts): Simplify. Only print one warning regardless
5567 of the number of auto-load scripts not found.
5568 (clear_section_scripts): Clear script_not_found_warning_printed.
5569 (auto_load_objfile_script): Record script in hash table.
5570 (count_matching_scripts): New function.
5571 (maybe_print_script): Renamed from maybe_print_section_script, all
5572 callers updated. Rewrite to use ui_out_*.
5573 (info_auto_load_scripts): Renamed from
5574 maintenance_print_section_scripts, all callers updated.
5575 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5576 renamed as "info auto-load-scripts".
5577
9930639c
TT
55782011-05-13 Tom Tromey <tromey@redhat.com>
5579
5580 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5581 (read_sleb128): Likewise.
5582
06826322
TT
55832011-05-13 Tom Tromey <tromey@redhat.com>
5584
5585 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5586 offset display.
5587
01124a23
DE
55882011-05-13 Doug Evans <dje@google.com>
5589
5590 * linux-nat.c (debug_linux_nat_async): Delete.
5591 Replace all references to use debug_linux_nat instead.
5592 (show_debug_linux_nat_async): Delete.
5593 (sigchld_handler): Call ui_file_write_async_safe instead of
5594 fprintf_unfiltered.
5595 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5596 * ui-file.c (struct ui_file): New member to_write_async_safe.
5597 (null_file_write_async_safe): New function.
5598 (ui_file_write_async_safe): New function.
5599 (set_ui_file_write_async_safe): New function.
5600 (ui_file_new): Initialize to_write_async_safe.
5601 (stdio_file_write_async_safe): New function.
5602 (struct stdio_file): New member fd.
5603 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5604 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5605 fileno.
01124a23
DE
5606 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5607 (set_ui_file_write_async_safe): Declare.
5608 (ui_file_write_async_safe): Declare.
5609
72fc29ff
TT
56102011-05-13 Tom Tromey <tromey@redhat.com>
5611
5612 * utils.c (do_value_free): New function.
5613 (make_cleanup_value_free): Likewise.
5614 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5615 freeing correctly.
5616 (dwarf2_loc_desc_needs_frame): Call
5617 make_cleanup_value_free_to_mark.
5618 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5619 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5620 value_free_to_mark.
5621 (new_dwarf_expr_context): Don't call value_mark.
5622 * dwarf2-frame.c (execute_stack_op): Call
5623 make_cleanup_value_free_to_mark.
5624 * defs.h (make_cleanup_value_free): Declare.
5625
028d0ed5
TJB
56262011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5627
5628 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5629 prepare_execute_command.
5630 * top.c (prepare_execute_command): Return cleanup.
5631 (execute_command): Use cleanup from prepare_execute_command.
5632 * top.h (prepare_execute_command): Change prototype to return
5633 cleanup.
5634 * defs.h (struct value): Add opaque declaration.
5635 (make_cleanup_value_free_to_mark): Add prototype.
5636 * utils.c (do_value_free_to_mark): New function.
5637 (make_cleanup_value_free_to_mark): Likewise.
5638
b087e0ed
TT
56392011-05-12 Tom Tromey <tromey@redhat.com>
5640
5641 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5642 cast left-hand-side to unsigned.
5643
8a9b8146
TT
56442011-05-12 Tom Tromey <tromey@redhat.com>
5645
5646 PR gdb/12617:
5647 * value.h (value_from_contents): Declare.
5648 * value.c (value_from_contents): New function.
5649 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5650 (dwarf2_get_die_type): New function.
5651 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5652 (allocate_piece_closure): Acquire reference to values.
5653 (read_pieced_value): Update for value-based expressions.
5654 (write_pieced_value): Likewise.
5655 (free_pieced_value_closure): Call value_free as needed.
5656 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5657 Update for value-based expressions.
5658 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5659 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5660 <get_base_type>: New field.
5661 (struct dwarf_expr_piece) <v.value>: Change type.
5662 <v.regno>: New field.
5663 (struct dwarf_expr_context) <mark>: New field.
5664 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5665 (dwarf_expr_pop, dwarf_expr_push): Remove.
5666 (dwarf_expr_push_address): Declare.
5667 * dwarf2expr.c (dwarf_arch_cookie): New global.
5668 (struct dwarf_gdbarch_types): New.
5669 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5670 functions.
5671 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5672 static.
5673 (dwarf_expr_push_address): New function.
5674 (dwarf_expr_pop): Now static.
5675 (dwarf_expr_fetch): Change return type.
5676 (dwarf_require_integral): New function.
5677 (dwarf_expr_fetch): Simplify.
5678 (add_piece): Update.
5679 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5680 functions.
5681 (execute_stack_op) <sign_ext>: Remove.
5682 Use values for DWARF stack.
5683 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5684 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5685 New cases.
5686 (_initialize_dwarf2expr): New function.
5687 (add_piece): Update.
5688 (new_dwarf_expr_context): Set new field.
5689 (free_dwarf_expr_context): Call value_free_to_mark.
5690 * dwarf2-frame.c (no_base_type): New function.
5691 (execute_stack_op): Set get_base_type field. Update.
5692
e8d28ef4
TT
56932011-05-12 Tom Tromey <tromey@redhat.com>
5694
5695 * dwarf2read.c (read_common_block): Fix formatting.
5696
d248b706
KY
56972011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5698
5699 * breakpoint.c (disable_breakpoint): Disable all locations
5700 associated with a tracepoint on target if a trace experiment is
5701 running.
5702 (disable_command): Disable a specific tracepoint location on target if
5703 a trace experiment is running.
5704 (do_enable_breakpoint): Enable all locations associated with a
5705 tracepoint on target if a trace experiment is running.
5706 (enable_command) Enable a specific tracepoint location on target if a
5707 trace experiment is running.
5708 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5709 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5710 to_disable_tracepoint.
5711 * target.h: Add declaration of struct bp_location.
5712 (struct target_ops): Add new functions
5713 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5714 to_disable_tracepoint to target operations.
5715 (target_supports_enable_disable_tracepoint): New macro.
5716 (target_enable_tracepoint): New macro.
5717 (target_disable_tracepoint): New macro.
5718 * remote.c (struct remote_state): Add new field.
5719 (remote_enable_disable_tracepoint_feature): New.
5720 (remote_protocol_features): Add new entry.
5721 (remote_supports_enable_disable_tracepoint): New.
5722 (remote_enable_tracepoint): New.
5723 (remote_disable_tracepoint): New.
5724 (init_remote_ops): Add remote_enable_tracepoint,
5725 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5726 to remote operations.
5727 * tracepoint.c (start_tracing): Allow tracing to start without any
5728 tracepoints enabled with just a warning if they can be re-enabled
5729 later.
5730 * NEWS: Add news item for the new behaviour of the enable and disable
5731 GDB commands when applied to tracepoints.
5732 Add news items for the new remote packets QTEnable and QTDisable.
5733
cc88a640
JK
57342011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5735
5736 * config.in: Regenerate.
5737 * configure: Regenerate.
5738 * configure.ac <--with-system-readline> (for readline_echoing_p):
5739 Remove the test.
5740 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5741 (tui_old_rl_echoing_p): ... here.
5742 (tui_setup_io): Rename extern declaration readline_echoing_p to
5743 _rl_echoing_p. Adjust assignments for the both renames.
5744
1f84b619
TJB
57452011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5746
5747 * symtab.c (lookup_symtab): Run cleanup before returning.
5748
74ac6d43
TT
57492011-05-11 Tom Tromey <tromey@redhat.com>
5750
5751 * dwarf2read.c (handle_data_member_location): New function.
5752 (dwarf2_add_field): Use it.
5753 (read_common_block): Likewise.
5754
5488dafb
JK
57552011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5756
5757 Make addrs->SECTINDEX always defined.
5758 * symfile.c (relative_addr_info_to_section_offsets): Check for
5759 SECTINDEX -1, not for zero ADDR.
5760 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5761 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5762 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5763 on its validity.
5764
84e578fb
DE
57652011-05-10 Doug Evans <dje@google.com>
5766
2471d008
DE
5767 * linux-thread-db.c: Whitespace cleanup.
5768 (try_thread_db_load_1): Fix comment.
5769
84e578fb
DE
5770 * linux-thread-db.c (set_libthread_db_search_path): New function.
5771 (_initialize_thread_db): Add setter for libthread-db-search-path.
5772
673c2bbe
DE
57732011-05-09 Doug Evans <dje@google.com>
5774
478aac75
DE
5775 * NEWS: Mention --with-iconv-bin.
5776 * configure.ac: New option --with-iconv-bin.
5777 * configure: Regenerate.
5778 * config.in: Regenerate.
5779 * defs.h (relocate_gdb_directory): Declare.
5780 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5781 removed progname parameter, and exported. All callers updated.
5782 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5783
673c2bbe
DE
5784 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5785 adding missing call to restore_child_signals_mask.
5786
e4c8541f
PA
57872011-05-09 Pedro Alves <pedro@codesourcery.com>
5788
5789 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5790 parameter.
5791 * infrun.c (proceed, start_remote): Adjust.
5792 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5793 and adjust to not handle it.
5794 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5795 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5796 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5797 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5798 * windows-nat.c (do_initial_windows_stuff): Adjust.
5799 * infcmd.c (attach_command): Adjust.
5800 (notice_new_inferior): Adjust.
5801
a536c6d7
UW
58022011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5803
5804 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5805 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5806 * spu-tdep.c (op_selb): Use correct value.
5807
7845b013
UW
58082011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5809
5810 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5811 "parent" parameter to symbol_file_add_from_bfd call.
5812
9c06b0b4
TJB
58132011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5814 Thiago Jung Bauermann <bauerman@br.ibm.com>
5815
5816 Implement support for PowerPC BookE masked watchpoints.
5817 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5818 section.
5819 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5820 method. Initialize to NULL in all existing breakpoint_ops instances.
5821 (struct breakpoint) <hw_wp_mask>: New field.
5822 * breakpoint.c (is_masked_watchpoint): Add prototype.
5823 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5824 breakpoint's breakpoint_ops.works_in_software_mode if available.
5825 (watchpoints_triggered): Handle the case of a hardware masked
5826 watchpoint trigger.
5827 (watchpoint_check): Likewise.
5828 (works_in_software_mode_watchpoint): New function.
5829 (insert_masked_watchpoint, remove_masked_watchpoint)
5830 (resources_needed_masked_watchpoint)
5831 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5832 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5833 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5834 functions.
5835 (masked_watchpoint_breakpoint_ops): New structure.
5836 (watch_command_1): Check for the existence of the `mask' parameter.
5837 Set b->ops according to the type of hardware watchpoint being created.
5838 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5839 (ppc_linux_remove_mask_watchpoint)
5840 (ppc_linux_masked_watch_num_registers): New functions.
5841 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5842 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5843 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5844 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5845 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5846 (target_masked_watch_num_registers): New functions.
5847 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5848 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5849 methods.
5850 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5851 (target_masked_watch_num_registers): Add prototypes.
5852
8be455d7
JK
58532011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5854
5855 PR 12573
5856 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5857 (producer_is_gcc_ge_4_0): New function.
5858 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5859 symtab->language code.
5860 (var_decode_location): Set cu->has_loclist.
5861 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5862 skip. Intialize force_skip from locations_valid. Move the prologue
5863 skipping code into two passes.
5864 * symtab.h (struct symtab): Make the primary field a bitfield. New
5865 field locations_valid.
5866
d8228535
JK
58672011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5868
5869 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5870 (classify_inner_name): Call cp_lookup_nested_type with
5871 yylval.tsym.type.
5872 * cp-namespace.c (cp_lookup_nested_type): New variable
5873 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5874 type_name_no_tag_or_error with saved_parent_type.
5875 * dwarf2read.c (load_partial_dies): Read in any children of
5876 DW_TAG_typedef with complaint in such case.
5877 * gdbtypes.c (type_name_no_tag_or_error): New function.
5878 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5879 * valops.c (destructor_name_p): New comment for parameter type. Remove
5880 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5881 * value.h (destructor_name_p): Remove type const.
5882
1976171a
JK
58832011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5884
5885 * symtab.c (compare_symbol_name): New function.
5886 (completion_list_add_name, expand_partial_symbol_name): Call it,
5887 remove the variable ncmp.
5888 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5889 gdb_assert it.
5890
a9634178
TJB
58912011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5892
5893 Demote to sw watchpoint only in update_watchpoint.
5894 * breakpoint.c (update_watchpoint): Change between software and
5895 hardware watchpoint for all kinds of watchpoints, not just
5896 read/write ones. Determine b->exact value here instead of
5897 in watch_command_1. Error out if there are not enough resources
5898 for a read or access hardware watchpoint.
5899 (watch_command_1): Remove logic of checking whether there are
5900 enough resources available, since update_watchpoint will do that
5901 work now. Don't set b->exact here. Catch exceptions thrown by
5902 update_watchpoint and delete the watchpoint.
5903 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5904 Use target_exact_watchpoints instead.
5905 (delete_breakpoint): Notify observers only if deleted watchpoint
5906 has a breakpoint number assigned to it.
5907
4c67c798
JJ
59082011-05-05 Janis Johnson <janisjo@codesourcery.com>
5909
5910 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5911
a3fcb948
JG
59122011-05-05 Jerome Guitton <guitton@adacore.com>
5913
5914 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5915 New functions.
5916 (i386_stack_tramp_frame_unwind): New static global.
5917 (i386_match_pattern): New function, extracted from i386_match_insn.
5918 (i386_match_insn): Use i386_match_pattern.
5919 (i386_match_insn_block): New function.
5920 (i386_tramp_chain_in_reg_insns)
5921 (i386_tramp_chain_on_stack_insns): New static variables.
5922 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5923 of unwinders.
5924
4d393d60
JM
59252011-05-04 Joseph Myers <joseph@codesourcery.com>
5926
5927 * configure.host (xscale*): Don't handle target.
5928 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5929 handle targets.
5930
f70bd40b
YQ
59312011-05-04 Yao Qi <yao@codesourcery.com>
5932
5933 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5934
dd3295ee
JB
59352011-05-03 Joel Brobecker <brobecker@adacore.com>
5936
5937 Revert:
5938 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5939 | * elfread.c (elf_symtab_read): Stop memory leak.
5940
90375a0e
PM
59412011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5942
5943 * nto-tdep.c (nto_target): Replace deprecated call to
5944 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5945
d07205c2
JK
59462011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5947
5948 Fix false GCC warning.
5949 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5950
1e718ff1
TJB
59512011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5952
5953 * breakpoint.c (update_watchpoint): Move code to change
5954 the enable state of breakpoint from here ...
5955 (do_enable_breakpoint): ... to here.
5956
35bef4fd
TT
59572011-04-26 Andrew Gontarek <andrewg@cray.com>
5958
78290264
PP
5959 * valprint.c (val_print_array_elements): Fixed poor performance
5960 of printing very large arrays with repeat_count_threshold set
5961 to unlimited. New comment.
35bef4fd 5962
38a714bb
TT
59632011-04-29 Tom Tromey <tromey@redhat.com>
5964
5965 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5966 (mi_parse): Likewise.
5967 * breakpoint.c (break_range_command): Use sizeof char*, not
5968 char**.
5969 (create_breakpoint): Likewise.
5970 (parse_breakpoint_sals): Likewise.
5971
eb73ad13
PA
59722011-04-29 Pedro Alves <pedro@codesourcery.com>
5973
5974 * linux-nat.c (linux_child_remove_fork_catchpoint)
5975 (linux_child_remove_vfork_catchpoint)
5976 (linux_child_remove_exec_catchpoint): New functions.
5977 (linux_target_install_ops): Install them.
5978
d65aec65
PM
59792011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5980
5981 PR mi/12531
5982
5983 * varobj.c (install_default_visualizer): Do not install a
5984 visualizer if the varobj is CPLUS_FAKE_CHILD.
5985 (construct_visualizer): Likewise.
5986
165195f4
JK
59872011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5988
5989 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5990 case insensitive comparison.
5991
30852783
UW
59922011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5993
5994 * infrun.c (proceed): Revert previous change.
5995 (resume): Instead, handle the case of signal delivery while stepping
5996 off a breakpoint location here, and only if software single-stepping
5997 is used. Handle nested signals.
5998
7ff120b4
YQ
59992011-04-28 Yao Qi <yao@codesourcery.com>
6000
6001 * arm-tdep.c (copy_unmodified): Rename to ...
6002 (arm_copy_unmodified): .. this. New.
6003 (copy_preload): Move common part to ...
6004 (install_preload): .. this. New.
6005 (arm_copy_preload): New.
6006 (copy_preload_reg): Move common part to ...
6007 (install_preload_reg): ... this. New.
6008 (arm_copy_preload_reg): New.
6009 (copy_b_bl_blx): Move common part to ...
6010 (install_b_bl_blx): .. this. New.
6011 (arm_copy_b_bl_blx): New.
6012 (copy_bx_blx_reg): Move common part to ...
6013 (install_bx_blx_reg): ... this. New.
6014 (arm_copy_bx_blx_reg): New.
6015 (copy_alu_reg): Move common part to ...
6016 (install_alu_reg): ... this. New.
6017 (arm_copy_alu_reg): New.
6018 (copy_alu_shifted_reg): Move common part to ...
6019 (install_alu_shifted_reg): ... this. New.
6020 (copy_ldr_str_ldrb_strb): Move common part to ...
6021 (install_ldr_str_ldrb_strb): ... this. New.
6022 (arm_copy_ldr_str_ldrb_strb): New.
6023 (copy_copro_load_store): Move some common part to ...
6024 (install_copy_copro_load_store): ... this. New.
6025 (arm_copy_copro_load_store): New.
6026 (copy_svc): Delete.
6027 (arm_copy_svc): Renamed from copy_svc.
6028 (copy_undef): Delete.
6029 (arm_copy_undef): Renamed from copy_undef.
6030 (decode_ext_reg_ld_st): Delete.
6031 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6032 (decode_svc_copro): Delete.
6033 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6034 (copy_copro_load_store, copy_alu_imm): update callers.
6035 (copy_extra_ld_st, copy_block_xfer): Likewise.
6036 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6037 (decode_miscellaneous, decode_dp_misc): Likewise.
6038 (decode_ld_st_word_ubyte, decode_media): Likewise.
6039 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6040 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6041 (decode_unconditional, decode_miscellaneous): Likewise.
6042 (decode_media, decode_b_bl_ldmstm): Likewise.
6043 (arm_process_displaced_insn): Likewise..
6044 (decode_misc_memhint_neon): Delete.
6045 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6046 (decode_miscellaneous): Delete.
6047 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6048 (decode_dp_misc): Delete.
6049 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6050 (decode_ld_st_word_ubyte): Delete.
6051 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6052 (decode_media): Delete.
6053 (arm_decode_media): Renamed from decode_media.
6054 (decode_b_bl_ldmstm): Delete.
6055 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6056 (decode_ext_reg_ld_st): Delete.
6057 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6058 (decode_unconditional): Delete.
6059 (arm_decode_unconditional): Renamed from decode_unconditional.
6060
559a7a62
JK
60612011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6062
6063 Case insensitive lookups implementation.
6064 * dwarf2read.c: Include ctype.h.
6065 (struct mapped_index): New field version.
6066 (mapped_index_string_hash): New parameter index_version. New comment
6067 for it. Call tolower appropriately.
6068 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6069 Choose the right index version for mapped_index_string_hash.
6070 (dwarf2_read_index): Support also the index version 5. Initialize the
6071 new struct mapped_index field version.
6072 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6073 (find_slot): Explain the version needs. Pass INT_MAX for the new
6074 parameter.
6075 (write_psymtabs_to_index): Produce version 5.
6076 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6077 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6078 * psymtab.c (lookup_partial_symbol): Find the
6079 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6080 entries.
6081 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6082 NAME lowercasing.
6083 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6084 (completion_list_add_name): New variable ncmp, initialize it, use it.
6085 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6086 * utils.c (strcmp_iw): Support case_sensitive_off.
6087 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6088 New function comment part. New variables saved_string1,
6089 saved_string2 and case_pass. Add a proper second pass.
6090
681bf369
JK
60912011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6092
6093 Replace re_comp/re_exec by regcomp/regexec.
6094 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6095 (search_symbols_name_matches): Use them, use regexec.
6096 (search_symbols): New variable retval_chain, adjust the use of
6097 old_chain against it. Replace re_comp by regcomp. Use the new struct
6098 search_symbols_data fields, use regexec instead of re_exec.
6099
b11b1f88
JK
61002011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6101
6102 Format the code for the next patch.
6103 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6104 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6105 New variables c1 and c2.
6106
2484c66b
UW
61072011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6108
6109 * infrun.c (proceed): Do not single-step into signal delivery
6110 when stepping off a breakpoint location.
6111 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6112 (insert_step_resume_breakpoint_at_caller): Likewise.
6113 (insert_step_resume_breakpoint_at_sal): Likewise.
6114 (insert_longjmp_resume_breakpoint): Likewise.
6115
47423772
YQ
61162011-04-27 Yao Qi <yao@codesourcery.com>
6117
6118 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6119
13bdd2e7
JB
61202011-04-27 Joel Brobecker <brobecker@adacore.com>
6121
6122 * procfs.c (procfs_pass_signals): Fix advance declaration.
6123
2455069d
UW
61242011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6125
6126 * target.h (struct target_ops): Remove to_notice_signals;
6127 add to_pass_signals.
6128 (target_notice_signals): Remove.
6129 (target_pass_signals): Add prototype.
6130 * target.c (update_current_target): Remove to_notice_signals;
6131 mention to_pass_signals.
6132 (target_pass_signals): New function.
6133 (debug_to_notice_signals): Remove.
6134 (setup_target_debug): Do not install debug_to_notice_signals.
6135
6136 * infrun.c (signal_pass): New global.
6137 (resume): Call target_pass_signals.
6138 (handle_inferior_event): Report all signals while stepping over
6139 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6140 are re-inserted when stepping over a signal handler.
6141 (signal_cache_update): New function.
6142 (signal_stop_update): Call it.
6143 (signal_print_update): Likewise.
6144 (signal_pass_update): Likewise.
6145 (handle_command): Call signal_cache_update and target_pass_signals
6146 instead of target_notice_signals.
6147 (_initialize_infrun): Initialize signal_pass.
6148
6149 * linux-nat.c (pass_mask): New global.
6150 (linux_nat_pass_signals): New function.
6151 (linux_nat_create_inferior): Report all signals initially.
6152 (linux_nat_attach): Likewise.
6153 (linux_nat_resume): Use pass_mask to decide whether to directly
6154 handle an inferior signal.
6155 (linux_nat_wait_1): Likewise.
6156 (linux_nat_add_target): Install to_pass_signals callback.
6157
6158 * nto-procfs.c (notice_signals): Remove.
6159 (procfs_resume): Do not call notice_signals.
6160 (procfs_notice_signals): Remove.
6161 (procfs_pass_signals): New function.
6162 (init_procfs_ops): Install to_pass_signals callback instead of
6163 to_notice_signals callback.
6164 (_initialize_procfs): Report all signals initially.
6165
6166 * procfs.c (procfs_notice_signals): Remove.
6167 (procfs_pass_signals): New function.
6168 (procfs_target): Install to_pass_signals callback instead of
6169 to_notice_signals callback.
6170 (register_gdb_signals): Remove.
6171 (procfs_debug_inferior): Report all signals initially.
6172 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6173
6174 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6175 parameters; use them instead of calling signal_..._state routines.
6176 (remote_notice_signals): Remove.
6177 (remote_start_remote): Report all signals initially.
6178 (remote_resume): Do not call remote_pass_signals.
6179 (_initialize_remote): Install to_pass_signals callback instead of
6180 to_notice_signals callback.
6181
46c6471b
PA
61822011-04-27 Pedro Alves <pedro@codesourcery.com>
6183
6184 * breakpoint.c (user_settable_breakpoint): Delete.
6185 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6186 (delete_command): Check user_breakpoint_p instead of looking at
6187 the breakpoint's type.
6188 (disable_command): Ditto.
6189 (enable_command): Ditto.
6190 (delete_trace_command): Use user_breakpoint_p instead of looking
6191 at the breakpoint number directly. When checking if there are
6192 user visible tracepoints, in order to know whether to ask the user
6193 for confirmation, check whether the breakpoint is actually a
6194 tracepoint.
6195
f6d90398
VP
61962011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6197
6198 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6199 compilation.
6200
8d3788bd
VP
62012011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6202
6203 MI breakpoint notifications.
6204
f33edef8
PP
6205 * annotate.c (breakpoint_changed): Adjust parameter type.
6206 * breakpoint.c (set_breakpoint_condition): Adjust to change
6207 in breakpoint_modified type.
6208 (breakpoint_set_commands): Likewise.
6209 (do_map_commands_command): Likewise.
6210 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6211 changed after bumping hit count.
6212 (bpstat_stop_status): Likewise.
6213 (print_one_breakpoint_location): Don't wrap in tuple here.
6214 (print_one_breakpoint): Always print individual locations.
6215 For locations, use unnamed tuple.
6216 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6217 has changed.
6218 (create_catchpoint, create_syscall_event_catchpoint): Call
6219 breakpoint_created obsever.
6220 (mention): Don't call breakpoint_created observer.
6221 (create_breakpoint_sal): Call breakpoint_created observer.
6222 (create_breakpoint, watch_command_1): Likewise.
6223 (create_ada_exception_breakpoint): Likewise.
6224 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6225 (locations_are_equal): New.
6226 (update_breakpoint_locations): If locations were changed, notify.
6227 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6228 Call breakpoint_modified observer.
6229
6230 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6231 (mi_cmd_break_insert): Don't set observers for modify and delete.
6232 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6233 (mi_breakpoint_created, mi_breakpoint_deleted)
6234 (mi_breakpoint_modified): New.
6235 (mi_interpreter_init): Hook the above.
6236 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6237 while -break-* commands are executing.
6238 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6239 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6240 (mi_redirect): New.
6241 (mi_ui_out_impl): Hook in mi_redirect.
6242 (mi_field_skip): True to the name, skip the field, don't output
6243 a field with an empty value.
6244
6245 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6246 (gdbpy_breakpoint_deleted): Adjust.
6247 * tui/tui-hooks.c (tui_event_create_breakpoint)
6248 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6249
a8f42b45
UW
62502011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6251
6252 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6253 (procfs_remove_hw_watchpoint): Likewise.
6254
57e12211
TT
62552011-04-26 Michael Walle <michael@walle.cc>
6256
6257 * remote.c (remote_start_remote): Ack packet after sending the
6258 interrupt sequence.
6259
af96c192
YQ
62602011-04-26 Yao Qi <yao@codesourcery.com>
6261
f33edef8
PP
6262 * linux-nat.c: Move common macros to ...
6263 Include linux-ptrace.h.
6264 * common/linux-ptrace.h: ... here. New.
af96c192 6265
3e03848b
JK
62662011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6267
6268 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6269 !objfile_has_partial_symbols. New comment.
6270 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6271 SYM_READ_PSYMBOLS is not present. Extend the comment.
6272 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6273
1ae0d051
JK
62742011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6275
6276 * defs.h (ENUM_BITFIELD): Remove.
6277
03f2bd59
JK
62782011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6279 Eli Zaretskii <eliz@gnu.org>
6280
6281 * NEWS: Document the new gdbserver --once option.
6282
4161fbb0
JZ
62832011-04-21 Jie Zhang <jzhang918@gmail.com>
6284
6285 * MAINTAINERS: Update my email address.
6286
bcb28afc
PM
62872011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6288
6289 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6290 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6291 function call if __STDC_ISO_10646__ macro is defined.
6292 (intermediate_encoding): New prototype.
6293 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6294 to generate compile time error for unsupported gdb_wchar_t size.
6295 (ENDIAN_SUFFIX): New macro.
6296 (intermediate_encoding): New function.
6297
7b08b9eb
JK
62982011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6299
6300 * ada-lang.c (struct add_partial_datum): Update the comment for
6301 expand_partial_symbol_name.
6302 (ada_add_partial_symbol_completions): Rename to ...
6303 (ada_expand_partial_symbol_name): ... here, change return type, update
6304 function comment, call symbol_completion_match instead of
6305 symbol_completion_add.
6306 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6307 and ada_expand_partial_symbol_name.
6308 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6309 FILE_MATCHER.
6310 (dw2_map_symbol_names): Remove.
6311 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6312 * psymtab.c (map_symbol_names_psymtab): Remove.
6313 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6314 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6315 order.
6316 (psym_functions): Unlist map_symbol_names_psymtab.
6317 (map_partial_symbol_names): Rename to ...
6318 (expand_partial_symbol_names): ... here, change the FUN type, call
6319 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6320 * psymtab.h (map_partial_symbol_names): Rename to ...
6321 (expand_partial_symbol_names): ... here, change the FUN type.
6322 * symfile.h (struct quick_symbol_functions): Update the description of
6323 expand_symtabs_matching. Remove map_symbol_names.
6324 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6325 (struct add_name_data): Update the comment for
6326 expand_partial_symbol_name.
6327 (add_partial_symbol_name): Rename to ...
6328 (expand_partial_symbol_name): ... here. Replace
6329 completion_list_add_name call by strncmp.
6330 (default_make_symbol_completion_list_break_on): Use now
6331 expand_partial_symbol_names and expand_partial_symbol_name.
6332 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6333
90476074
TT
63342011-04-20 Tom Tromey <tromey@redhat.com>
6335
6336 * dwarf2read.c (save_gdb_index_command): Replace format
6337 documentation with a pointer to the manual.
6338
c21236dc
PA
63392011-04-20 Pedro Alves <pedro@codesourcery.com>
6340
6341 * regcache.c: Include remote.h.
6342 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6343 (regcache_dump): Handle regcache_dump_remote.
6344 (maintenance_print_remote_registers): New function.
6345 (_initialize_regcache): Install "maint print remote-registers"
6346 command.
6347 * remote.c (map_regcache_remote_table): New function, factored out
6348 from ...
6349 (init_remote_state): ... here.
6350 (remote_register_number_and_offset): New.
6351 * remote.h (remote_register_number_and_offset): Declare.
6352
b78974c3
PA
63532011-04-20 Pedro Alves <pedro@codesourcery.com>
6354
6355 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6356 null_ptid, assume and allow a NULL address space, instead of
6357 asking the target for the ptid's address space.
6358 * infrun.c (ptid_is_pid): Remove assertion.
6359
7a9dd1b2
TT
63602011-04-19 Tom Tromey <tromey@redhat.com>
6361
6362 * windows-tdep.c (windows_xfer_shared_library):
6363 * windows-nat.c (get_module_name, windows_make_so):
6364 * v850-tdep.c (v850_handle_pushm):
6365 * utils.c (null_cleanup, gdb_realpath):
6366 * ui-out.c (get_next_header):
6367 * tracepoint.c (clear_traceframe_info):
6368 * symtab.c (lookup_symtab):
6369 * serial.h (struct serial_ops):
6370 * mipsread.c (read_alphacoff_dynamic_symtab):
6371 * infcmd.c (print_return_value):
6372 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6373 * f-exp.y (parse_number):
6374 * exceptions.c (catch_exceptions):
6375 * dummy-frame.c (dummy_frame_this_id):
6376 * defs.h (struct cleanup):
6377 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6378 * arm-tdep.c (arm_push_dummy_call):
6379 * amd64-tdep.h (amd64_collect_xsave):
6380 * amd64-tdep.c (amd64_collect_xsave):
6381 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6382 * README (typing): Remove duplicate words.
6383 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6384 * infrun.c (siginfo_value_read): Fix typo.
6385 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6386 * top.c (source_line_number): Add comma.
6387
9941e0c5
MK
63882011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6389
6390 * thread.c (any_live_thread_of_process): Prioritize threads
6391 that are not executing.
6392 * gdbthread.h (any_live_thread_of_process): Update comment
6393 as per above change.
6394
ed4b0e6a
AS
63952011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6396
6397 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6398 (scan_xcoff_symtab): Likewise.
6399
9b13a2db
PM
64002011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6401
6402 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6403 inside if clause.
6404
1c6e1b0d
PM
64052011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6406 Pedro Alves <pedro@codesourcery.com>
6407
6408 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6409 variables to simplify code and avoid == operator at end of
6410 line as this is against GNU coding standards.
6411
74de0234
PM
64122011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6413
6414 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6415 lm_name to name_lm to avoid conflict with lm_name function.
6416
b23518f0
PM
64172011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6418
6419 ARI fixes: Use only lowercase function name for static functions.
6420 * nto-tdep.c (LM_ADDR): Rename to...
6421 (lm_addr): New function name.
6422 (nto_relocate_section_addresses): Adapt to change above.
6423 * solib-sunos.c (LM_ADDR): Rename to...
6424 (lm_addr): New function name.
6425 (LM_NEXT): Rename to...
6426 (lm_next): New function name.
6427 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6428 function name changes above.
6429 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6430 (lm_addr_from_link_map): New function name.
6431 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6432 (has_lm_dynamic_from_link_map): New function name.
6433 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6434 (lm_dynamic_from_link_map): New function name.
6435 (LM_ADDR_CHECK): Rename to...
6436 (lm_addr_check): New function name.
6437 (LM_NEXT): Rename to...
6438 (lm_next): New function name.
6439 (LM_PREV): Rename to...
6440 (lm_prev): New function name.
6441 (LM_NAME): Rename to...
6442 (lm_name): New function name.
6443 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6444 (ignore_first_link_map_entry): New function name.
6445 (svr4_keep_data_in_core): Adapt to function name changes above.
6446 (svr4_current_sos): Likewise.
6447 (enable_break): Likewise.
6448 (svr4_relocate_section_addresses): Likewise.
6449
1448a0a2
PM
64502011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6451
6452 ARI cleanup.
6453 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6454 sprintf. Simplify code and avoid loosing memory.
6455 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6456 (call0_frame_cache): Remove && operator from end of line.
6457
02835898
JK
64582011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6459
6460 Fix libraries displacement if they change whether they were prelinked.
6461 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6462 does not match. Comment why.
6463
9a845ea2
JK
64642011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6465
6466 * corelow.c: Include wrapper.h.
6467 (core_open): Call now gdb_target_find_new_threads.
6468 * wrapper.c: Include target.h.
6469 (gdb_target_find_new_threads): New.
6470 * wrapper.h (gdb_target_find_new_threads): New declaration.
6471
254f582e
JK
64722011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6473
6474 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6475 even if !TARGET_HAS_EXECUTION.
6476
63524580
JK
64772011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6478
6479 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6480 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6481 bfd_get_synthetic_symtab.
6482 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6483 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6484 parameter parent, remove the call to add_separate_debug_objfile.
6485 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6486 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6487 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6488 parent, new comment for it, call add_separate_debug_objfile for it.
6489 (symbol_file_add_separate): Pass objfile as the parameter parent,
6490 remove the call to add_separate_debug_objfile.
6491 (symbol_file_add_from_bfd): New parameter parent, pass it.
6492 (symbol_file_add): Pass NULL to the new parameter parent.
6493 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6494
90359a16
JK
64952011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6496
6497 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6498 BSF_SYNTHETIC.
6499
626e7282
JK
65002011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6501
6502 Fix Python access to inlined frames.
6503 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6504 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6505
cf31e6f9
TT
65062011-04-15 Tom Tromey <tromey@redhat.com>
6507
6508 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6509
c8d895f1
GB
65102011-04-15 Gary Benson <gbenson@redhat.com>
6511
6512 * MAINTAINERS: Add myself to write-after-approval section.
6513
56a9aa1d
MF
65142011-04-14 Mike Frysinger <vapier@gentoo.org>
6515
6516 * remote-sim.c (sim_command_completer): New function.
6517 (_initialize_remote_sim): Set completer to sim_command_completer.
6518
ba770c9c
TJB
65192011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6520
6521 * breakpoint.c (print_exception_catchpoint): Rename to ...
6522 (print_it_exception_catchpoint): ... this.
6523 (gnu_v3_exception_catchpoint_ops): Update with new name
6524 for print_it_exception_catchpoint.
6525
51bf2553
EBM
65262011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6527
6528 * MAINTAINERS: Add myself for write after approval privileges.
6529
d242658c
MP
65302011-04-13 Marek Polacek <mpolacek@redhat.com>
6531
6532 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6533
4a4106ca
TJB
65342011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6535
6536 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6537
26063d49
TJB
65382011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6539
6540 * breakpoint.c (save_breakpoints): Verify whether
6541 breakpoint_ops.print_recreate is defined before calling it.
6542
7782b183
GB
65432011-04-11 Gary Benson <gbenson@redhat.com>
6544
6545 Fix failure with --enable-maintainer-mode.
6546 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6547
e8930875
JK
65482011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6549
6550 Code cleanup.
6551 * symtab.c (search_symbols): Reorder the KIND description in the
6552 function comment. Remove the unused 4th element of types, types2,
6553 types3 and types4. New gdb_assert on KIND.
6554 (symtab_symbol_info): Remove the unused 4th element of classnames.
6555 New gdb_assert on KIND.
6556 * symtab.h (enum search_domain): New warning in the enum comment.
6557 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6558 TYPES_DOMAIN.
6559
b4f2f049
JK
65602011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6561
6562 Fix crash of gdb save-index on a STABS file.
6563 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6564 PSYMTABS_ADDRMAP.
6565
60d5a603
JK
65662011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6567
6568 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6569 * dwarf2read.c: Include ctype.h.
6570 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6571 functions.
6572 (dwarf2_add_field): Fix new_field->accessibility by calling
6573 dwarf2_default_access_attribute. Restructure setting accessibility
6574 vs. virtuality.
6575 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6576 is_private and is_protected by calling
6577 dwarf2_default_access_attribute.
6578
e0f68161
KB
65792011-04-08 Kevin Buettner <kevinb@redhat.com>
6580
6581 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6582 to the initialization.
6583
2e1aae43
SE
65842011-04-08 Steve Ellcey <sje@cup.hp.com>
6585
6586 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6587 initalization.
6588
c6ca3dab
PM
65892011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6590
6591 Remove support for old Cygwin 1.5 versions.
6592 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6593 function on old Cygwin version.
6594 * windows-nat.c: Remove cygwin version check and always define
6595 __USEWIDE for Cygwin compilation.
6596
bd18283a
YQ
65972011-04-07 Yao Qi <yao@codesourcery.com>
6598
6599 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6600 and TO.
6601 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6602 (arm_copy_svc): Remove parameters INSN and TO.
6603 (decode_svc_copro): Update caller.
6604 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6605 from function pointer `copy_svc_os'.
6606
8c8dba6d
YQ
66072011-04-07 Yao Qi <yao@codesourcery.com>
6608
6609 * arm-tdep.c (cleanup_branch): Set a correct return address in
6610 LR for ARM and Thumb.
6611
59d7bcaf
JK
66122011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6613
6614 Code cleanup.
6615 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6616 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6617 in the function comment, a new note on values compatibility.
6618 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6619 * symtab.h (SYMBOL_HASH_NEXT): New.
6620
e7db58ea
TJB
66212011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6622
6623 * ppc-linux-nat.c (check_condition): Add len output parameter.
6624 Set it based on the memory region referenced in the condition
6625 expression. Update all callers.
6626
9f743ef6
JK
66272011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6628
6629 Fix crash regression on systems featuring .gdb_index.
6630 * objfiles.c (free_objfile): Move the
6631 forget_cached_source_info_for_objfile call earlier. Comment it.
6632 Extend the comment for objfile_free_data.
6633
9182c5bc
JK
66342011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6635
6636 Fix regression of displaying the debug format.
6637 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6638 subfile.
6639
04bd08de
TT
66402011-04-04 Tom Tromey <tromey@redhat.com>
6641
6642 * cli/cli-interp.c (struct captured_execute_command_args):
6643 Remove.
6644 (do_captured_execute_command): Remove.
6645 (safe_execute_command): Use TRY_CATCH.
6646 * cli/cli-script.c (struct wrapped_read_command_file_args):
6647 Remove.
6648 (wrapped_read_command_file): Remove.
6649 (script_from_file): Use TRY_CATCH.
6650 * exceptions.c (catch_exception): Remove.
6651 * exceptions.h (catch_exception): Remove.
6652 (deprecated_throw_reason): Update comment.
6653 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6654 argument to 'context'.
6655 (mi_execute_command): Use TRY_CATCH.
6656 * remote.c (struct start_remote_args): Remove.
6657 (remote_start_remote): Update; change arguments.
6658 (remote_open_1): Use TRY_CATCH.
6659
58438ac1
TT
66602011-04-04 Tom Tromey <tromey@redhat.com>
6661
6662 * tracepoint.c (scope_info): Update.
6663 * symtab.c (decode_line_spec): Update.
6664 * python/python.c (gdbpy_decode_line): Update.
6665 * linespec.h (decode_line_1): Update.
6666 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6667 (decode_compound, find_method, symtab_from_filename)
6668 (decode_variable): Likewise.
6669 * cli/cli-cmds.c (edit_command): Update.
6670 (list_command): Update.
6671 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6672 argument.
6673 (create_breakpoint): Update.
6674 (until_break_command): Update.
6675 (addr_string_to_sals): Update.
6676 (decode_line_spec_1): Update.
6677
b78a6381
TT
66782011-04-04 Tom Tromey <tromey@redhat.com>
6679
6680 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6681 (do_captured_parse_breakpoint): Remove.
6682 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6683 Use TRY_CATCH directly.
6684
00174a86
TT
66852011-04-04 Tom Tromey <tromey@redhat.com>
6686
6687 * symtab.h (free_symtab): Remove.
6688 (forget_cached_source_info_for_objfile): Declare.
6689 * symmisc.c (free_symtab): Remove.
6690 * source.c (forget_cached_source_info_for_objfile): New function.
6691 (forget_cached_source_info): Use it.
6692 * objfiles.c (free_objfile): Simplify check before calling
6693 clear_current_source_symtab_and_line. Call
6694 forget_cached_source_info_for_objfile.
6695
30cc903e
TT
66962011-04-04 Tom Tromey <tromey@redhat.com>
6697
6698 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6699 (new_symtab): Don't set `free_code' on symtab.
6700 (new_linetable): Properly handle size==0.
6701 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6702 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6703 free_func.
6704 * jv-lang.c (struct jv_per_objfile_data): New.
6705 (jv_per_objfile_free): Free the data.
6706 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6707 (get_java_class_symtab): Set the `dict' field on the
6708 jv_per_objfile_data.
6709 (free_class_block): Remove.
6710 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6711 the symtab.
6712
0c2e6019
TT
67132011-04-04 Tom Tromey <tromey@redhat.com>
6714
6715 * symfile.c (reread_symbols): Update.
6716 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6717 field.
6718 * objfiles.c (allocate_objfile): Update.
6719 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6720 declare.
6721 * cp-namespace.c (lookup_symbol_file): Don't call
6722 lookup_possible_namespace_symbol.
6723 (initialize_namespace_symtab, get_possible_namespace_block)
6724 (free_namespace_block, cp_check_possible_namespace_symbols)
6725 (check_possible_namespace_symbols_loop)
6726 (check_one_possible_namespace_symbol)
6727 (lookup_possible_namespace_symbol): Remove.
6728 (maintenance_cplus_namespace): Replace with notice.
6729 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6730
554d387d
TT
67312011-04-04 Tom Tromey <tromey@redhat.com>
6732
6733 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6734 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6735 * symmisc.c (free_symtab): Don't free debugformat.
6736 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6737 (record_debugformat, record_producer): Document.
6738 * buildsym.c (end_symtab): Don't save debugformat and producer
6739 names on obstack.
6740 (end_symtab): Don't free debugformat and producer fields.
6741 (record_debugformat): Don't call xstrdup.
6742 (record_producer): Likewise.
6743
d4d4db8a
TT
67442011-04-04 Tom Tromey <tromey@redhat.com>
6745
6746 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6747 (source_line_charpos, source_charpos_line): Remove.
6748
8903c50d
TT
67492011-04-04 Tom Tromey <tromey@redhat.com>
6750
6751 * symtab.h (domain_enum): Split in two...
6752 (enum search_domain): New.
6753 (search_symbols): Update.
6754 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6755 redundant declarations.
6756 (search_symbols): Change 'kind' argument to search_domain.
6757 Update.
6758 (print_symbol_info): Likewise.
6759 (symtab_symbol_info): Likewise.
6760 * symfile.h (struct quick_symbol_functions)
6761 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6762 <expand_symtabs_matching>: Likewise.
6763 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6764 (expand_symtabs_matching_via_partial): Update.
6765 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6766 (dw2_expand_symtabs_for_function): Update.
6767 * block.h: Moved anonymous enum...
6768 * defs.h (enum block_enum): ... here. Now named.
6769
d9351f5f 67702011-04-03 Joel Brobecker <brobecker@adacore.com>
6771
6772 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6773 * version.in: Bump version to 7.3.50.20110403-cvs.
6774
d6e00af6
JB
67752011-04-03 Joel Brobecker <brobecker@adacore.com>
6776
6777 * NEWS: Create a new section for the next release branch.
6778 Rename the section of the current branch, now that it has
6779 been cut.
6780
2b9e5ea6
UW
67812011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6782
6783 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6784 for "fpscr" in target description.
6785
0cf03b49
JK
67862011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6787
6788 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6789 initialize it. Delay HASH initialization. Strip the part after open
6790 parenthesis for languages with qualifiers. Call do_cleanups.
6791
5d901a73
TT
67922011-04-01 Tom Tromey <tromey@redhat.com>
6793
6794 * utils.c (report_command_stats): Don't print `-' for negative
6795 number.
6796
b0dd7688
JB
67972011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6798
6799 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6800 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6801 typedefs.
6802
956a9fb9
JB
68032011-04-01 Joel Brobecker <brobecker@adacore.com>
6804
6805 * breakpoint.h (bpdisp_text): Add declaration.
6806 * breakpoint.c (bpdisp_text): Make non-static.
6807 * ada-lang.c: #include "mi/mi-common.h".
6808 (print_it_exception): Rewrite to improve GDB/MI output.
6809
3352110b
PA
68102011-04-01 Pedro Alves <pedro@codesourcery.com>
6811
6812 * arm-tdep.h (struct address_space): Add forward declaration.
6813
18819fa6
UW
68142011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6815
6816 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6817 * arm-tdep.c (arm_override_mode): New global.
6818 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6819 execution mode heuristics.
6820 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6821 second single-step breakpoint if needed, using
6822 arm_insert_single_step_breakpoint.
6823 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6824 ARM execution mode, do not call thumb_get_next_pc_raw.
6825 (arm_get_next_pc): Encode execution mode in return value. Call
6826 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6827 (arm_insert_single_step_breakpoint): New function.
6828 (arm_software_single_step): Call it.
6829 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6830 argument to return execution mode of sigreturn target.
6831 (arm_linux_syscall_next_pc): Use it.
6832 (arm_linux_copy_svc): Update call.
6833 (arm_linux_software_single_step): Call
6834 arm_insert_single_step_breakpoint.
6835
a6e293d1
JK
68362011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6837
6838 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6839 the comment.
6840
a4c8e806
TT
68412011-03-31 Tom Tromey <tromey@redhat.com>
6842
6843 * varobj.c (update_dynamic_varobj_children): Properly handle
6844 errors from iterator.
6845
df5c6c50
JK
68462011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6847
6848 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6849 struct linkage name twice.
6850
1dae3efc
TT
68512011-03-31 Tom Tromey <tromey@redhat.com>
6852
6853 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6854 missing ">" to message.
6855
f4f7ab05
TT
68562011-03-31 Tom Tromey <tromey@redhat.com>
6857
6858 * varobj.c (instantiate_pretty_printer): Remove duplicate
6859 'return'.
6860
fcf250e2
UW
68612011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6862
6863 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6864 if neither saved value nor register available (e.g. signal frame).
6865
ee6436e3
TJB
68662011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6867
6868 * macroexp.c (expand): Avoid uninitialized variable
6869 compiler warning.
6870
423f41a5
TJB
68712011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6872
6873 * breakpoint.c (break_range_command): Fix typo in comment.
6874
f1310107
TJB
68752011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6876 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6877
6878 Implement support for PowerPC BookE ranged breakpoints.
6879 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6880 * breakpoint.h (struct bp_target_info) <length>: New member
6881 variable.
6882 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6883 instead of struct breakpoint as argument, and also add ASPACE
6884 and BP_ADDR arguments. Update all callers.
6885 (struct breakpoint_ops) <print_one_detail>: New method.
6886 (struct breakpoint) <addr_string_range_end>: New member variable.
6887 * breakpoint.c (breakpoint_location_address_match): Add function
6888 prototype.
6889 (insert_bp_location): Set bl->target_info.length.
6890 (breakpoint_here_p): Call breakpoint_location_address_match.
6891 (moribund_breakpoint_here_p): Likewise.
6892 (regular_breakpoint_inserted_here_p): Likewise.
6893 (breakpoint_thread_match): Likewise.
6894 (bpstat_stop_status): Likewise.
6895 (bpstat_check_location): Move call to
6896 breakpoint_ops.breakpoint_hit to the top.
6897 (print_one_breakpoint_location): Call
6898 breakpoint_ops.print_one_detail if available.
6899 (breakpoint_address_match_range): New function.
6900 (breakpoint_location_address_match): Likewise.
6901 (breakpoint_locations_match): Compare the length field of the
6902 locations too.
6903 (hw_breakpoint_used_count): Count resources used by all locations
6904 in a breakpoint, and use breakpoint_ops.resources_needed if
6905 available.
6906 (breakpoint_hit_ranged_breakpoint): New function.
6907 (resources_needed_ranged_breakpoint): Likewise.
6908 (print_it_ranged_breakpoint): Likewise.
6909 (print_one_ranged_breakpoint): Likewise.
6910 (print_one_detail_ranged_breakpoint): Likewise.
6911 (print_mention_ranged_breakpoint): Likewise.
6912 (print_recreate_ranged_breakpoint): Likewise.
6913 (ranged_breakpoint_ops): New structure.
6914 (find_breakpoint_range_end): New function.
6915 (break_range_command): Likewise.
6916 (delete_breakpoint): Free addr_string_range_end.
6917 (update_breakpoint_locations): Add SALS_END argument. Update
6918 all callers. Calculate breakpoint length if a non-zero SALS_END
6919 is given. Call breakpoint_locations_match instead of
6920 breakpoint_address_match.
6921 (reset_breakpoint): Find SaL of the end of the range if B is a
6922 ranged breakpoint.
6923 (_initialize_breakpoint): Register break-range command.
6924 * defs.h (print_core_address): Add function prototype.
6925 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6926 function.
6927 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6928 (ppc_linux_remove_hw_breakpoint): Likewise.
6929 (_initialize_ppc_linux_nat): Initialize
6930 to_ranged_break_num_registers.
6931 * target.c (update_current_target): Add comment about
6932 to_ranged_break_num_registers.
6933 (target_ranged_break_num_registers): New function.
6934 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6935 New method.
6936 (target_ranged_break_num_registers): Add function prototype.
6937 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6938 * utils.c (print_core_address): ... here.
6939
02d20e4a
UW
69402011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6941
6942 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6943 variable compiler warning.
6944
ef23e705
TJB
69452011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6946
6947 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6948 code from here ...
6949 (re_set_breakpoint): ... to here ...
6950 (addr_string_to_sals): ... and here.
6951
311e6ab3
PM
69522011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6953
6954 * Makefile.in (SFILES): Add missing C sources.
6955 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6956 Add missing headers.
6957
acd1d99c
MF
69582011-03-29 Mike Frysinger <vapier@gentoo.org>
6959
6960 * .gitignore: New file.
6961
66ee2731
MF
69622011-03-29 Mike Frysinger <vapier@gentoo.org>
6963
6964 * NEWS: Mention new cfi device simulation.
6965
53832f31
TT
69662011-03-29 Tom Tromey <tromey@redhat.com>
6967
6968 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6969 otherwise anonymous types.
6970 (dwarf2_name): Likewise.
6971 * valops.c (value_struct_elt_for_reference): Refine artificial
6972 type logic. Call error if j==-1.
6973
09b58708
JK
69742011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6975
6976 Fix false GCC warning.
6977 * infcall.c (find_function_addr): Initialize funaddr.
6978
6023c606
PM
69792011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6980
6981 Fix mingw compilation with --enable-targets=all.
6982 * remote-mips.c (gdb_usleep.h): Include header.
6983 (mips_enter_debug): Use gdb_usleep instead of sleep.
6984
0e30163f
JK
69852011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 Support resolution of STT_GNU_IFUNC via breakpoints.
6988 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6989 bp_gnu_ifunc_resolver_return.
6990 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6991 the loop. Support bp_gnu_ifunc_resolver and
6992 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6993 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6994 breakpoints.
6995 (bptype_string, print_one_breakpoint_location): Support
6996 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6997 (user_settable_breakpoint): Return true also for
6998 bp_gnu_ifunc_resolver.
6999 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7000 bp_gnu_ifunc_resolver_return.
7001 (set_breakpoint_location_function): New parameter explicit_loc,
7002 describe it. Call find_pc_partial_function_gnu_ifunc with new
7003 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7004 EXPLICIT_LOC is not set.
7005 (set_raw_breakpoint): Set EXPLICIT_LOC for
7006 set_breakpoint_location_function.
7007 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7008 set_breakpoint_location_function.
7009 (mention): Support bp_gnu_ifunc_resolver and
7010 bp_gnu_ifunc_resolver_return.
7011 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7012 set_breakpoint_location_function.
7013 (update_breakpoint_locations): Remove static.
7014 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7015 bp_gnu_ifunc_resolver_return.
7016 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7017 bp_gnu_ifunc_resolver_return.
7018 (update_breakpoint_locations): New declaration.
7019 * elfread.c: Include gdbthread.h and regcache.h.
7020 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7021 functions.
7022 (elf_gnu_ifunc_fns): Install them.
7023 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7024 (stub_gnu_ifunc_resolver_return_stop): New functions.
7025 (stub_gnu_ifunc_fns): Install them.
7026 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7027 and gnu_ifunc_resolver_return_stop.
7028 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7029
07be84bf
JK
70302011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7031
7032 STT_GNU_IFUNC reader implementation.
7033 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7034 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7035 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7036 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7037 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7038 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7039 (elf_gnu_ifunc_resolve_addr): New.
7040 (elf_symfile_read): Call elf_rel_plt_read.
7041 (elf_gnu_ifunc_fns): New.
7042 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7043 Install elf_gnu_ifunc_fns.
7044 * infcall.c (find_function_return_type): New function.
7045 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7046 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7047 (stub_gnu_ifunc_resolve_name): New functions.
7048 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7049 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7050 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7051
300f8e10
JK
70522011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7053
7054 Code cleanup for later STT_GNU_IFUNC support.
7055 * infcall.c (find_function_addr): Remove variable code, use explicit
7056 dereferences for it. Move VALUE_TYPE initialization later.
7057
11c81455
JK
70582011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7059
7060 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7061 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7062 (clear_pc_function_cache): Clear it.
7063 (find_pc_partial_function): Rename to ...
7064 (find_pc_partial_function_gnu_ifunc): ... this function. New
7065 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7066 (find_pc_partial_function): New wrapper for this function.
7067 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7068
0875794a
JK
70692011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7070
7071 GDB internal type support for STT_GNU_IFUNC.
7072 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7073 (elf_symtab_read): Set mst_text_gnu_ifunc for
7074 BSF_GNU_INDIRECT_FUNCTION.
7075 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7076 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7077 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7078 nodebug_got_plt_symbol.
7079 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7080 (TYPE_GNU_IFUNC): New.
7081 (struct main_type): New field flag_gnu_ifunc.
7082 (struct builtin_type): New field builtin_func_func.
7083 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7084 nodebug_got_plt_symbol.
7085 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7086 (in_gnu_ifunc_stub): New.
7087 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7088 mst_text_gnu_ifunc.
7089 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7090 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7091 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7092 in_gnu_ifunc_stub.
7093 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7094 * symtab.c (search_symbols): Likewise.
7095 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7096 and mst_slot_got_plt.
7097 (in_gnu_ifunc_stub): New declaration.
7098
d0fb5eae
JK
70992011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7100
7101 Support a ring of related breakpoints.
7102 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7103 other functions, add gdb_assert.
7104 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7105 watchpoint_del_at_next_stop.
7106 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7107 (bpstat_stop_status): Handle ring in related_breakpoint.
7108 (set_raw_breakpoint_without_location): Initialize ring in
7109 related_breakpoint.
7110 (delete_breakpoint): Handle ring in related_breakpoint, use
7111 watchpoint_del_at_next_stop.
7112 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7113
9cded63f
TT
71142011-03-28 Tom Tromey <tromey@redhat.com>
7115
7116 PR symtab/12441:
7117 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7118 with `language_minimal'.
7119
467d42c4
UW
71202011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7121
7122 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7123 instead of checking for STT_ARM_TFUNC symbol type.
7124
62853458
TT
71252011-03-25 Tom Tromey <tromey@redhat.com>
7126
7127 * linespec.c (symbol_found): Restore line-based result for
7128 non-LOC_LABEL symbols.
7129
a7417d46
KT
71302011-03-25 Kai Tietz <ktietz@redhat.com>
7131
7132 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7133 instead of strcmp for comparison.
7134 (tui_source_is_displayed): Likewise.
7135 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7136
55f1336d
TT
71372011-03-24 Mark Wielaard <mjw@redhat.com>
7138
f33edef8
PP
7139 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7140 complaint.
7141 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7142 (find_partial_die_in_comp_unit): Likewise in comment.
7143 (read_attribute_value): Likewise.
7144 (lookup_die_type): Likewise.
7145 (dwarf_form_name): Likewise.
7146 (dump_die_shallow): Likewise.
7147 (follow_die_ref_or_sig): Likewise.
55f1336d 7148
9ef07c8c
TT
71492011-03-24 Tom Tromey <tromey@redhat.com>
7150
7151 PR breakpoints/11816:
7152 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7153 (decode_compound): Update.
7154 (find_function_symbol): New function.
7155 (decode_dollar): Update.
7156 (decode_label): Add 'function_symbol' parameter. Handle
7157 function-relative labels.
7158 (decode_variable): Update.
7159 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7160 not its line. Set `special_display' and canonical name for
7161 labels.
7162
56435ebe
TT
71632011-03-24 Tom Tromey <tromey@redhat.com>
7164
7165 * linespec.h (struct linespec_result) <special_display>: New
7166 field.
7167 * breakpoint.h (struct breakpoint) <display_canonical>: New
7168 field.
7169 * breakpoint.c (print_breakpoint_location): Respect
7170 display_canonical.
7171 (create_breakpoint_sal): Add 'display_canonical' parameter.
7172 (create_breakpoints_sal): Update.
7173 (create_breakpoint): Update.
7174
7efd8fc2
TT
71752011-03-24 Tom Tromey <tromey@redhat.com>
7176
7177 * symtab.c (decode_line_spec): Update.
7178 * linespec.c (build_canonical_line_spec): Change type of
7179 'canonical'.
7180 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7181 (find_method, decode_all_digits, decode_dollar, decode_label)
7182 (symbol_found): Likewise.
7183 (init_linespec_result): New function.
7184 * breakpoint.c (struct captured_parse_breakpoint_args)
7185 <canonical_p>: New field, replaces addr_string_p.
7186 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7187 'addr_string'.
7188 (parse_breakpoint_sals): Likewise.
7189 (do_captured_parse_breakpoint): Update.
7190 (create_breakpoint): Use struct linespec_result.
7191 (until_break_command): Update.
7192 (breakpoint_re_set_one): Update.
7193 (decode_line_spec_1): Update.
7194 * linespec.h (struct linespec_result): New.
7195 (init_linespec_result): Declare.
7196
788c8b10
PA
71972011-03-23 Pedro Alves <pedro@codesourcery.com>
7198
7199 * regcache.c (regcache_raw_read): If the target didn't supply a
7200 given raw register, mark it as unavailable.
7201
0ba1096a
KT
72022011-03-23 Kai Tietz <ktietz@redhat.com>
7203
7204 * breakpoint.c (clear_command): Use filename_cmp
7205 instead of strcmp for comparison.
7206 * buildsym.c (watch_main_source_file_lossage): Likewise.
7207 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7208 checking just for slash.
7209 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7210 strrchr and filename_cmp instead of strcmp for filenames.
7211 (add_old_header_file): Use filename_cmp
7212 instead of strcmp for comparison.
7213 * exec.c (exec_set_section_address): Likewise.
7214 * macrotab.c (macro_lookup_inclusion): Likewise.
7215 (macro_lookup_inclusion): Likewise.
7216 * elfread.c (_initialize_elfread): Likewise.
7217 (elfstab_offset_sections): Likewise.
7218 (elfstab_offset_sections): Use lbasename instead of
7219 strrchr.
7220 * mdebugread.c (parse_partial_symbols): Likewise.
7221 (arse_partial_symbols): Use filename_(n)cmp instead of
7222 str(n)cmp for comparison.
7223 * minsyms.c (lookup_minimal_symbol): Likewise.
7224 * psymtab.c (read_psymtabs_with_filename): Likewise.
7225 * solib.c (solib_read_symbols): Likewise.
7226 (reload_shared_libraries_1): Likewise.
7227 * symmisc.c (maintenance_print_symbols): Likewise.
7228 * symfile.c (separate_debug_file_exists): Likewise.
7229 (reread_symbols): Likewise.
7230 (find_separate_debug_file_by_debuglink): Likewise.
7231 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7232 * source.c (add_path): Likewise.
7233 * symtab.c (filename_seen): Likewise.
7234 (file_matches): Likewise.
7235 (print_symbol_info): Likewise.
7236 (maybe_add_partial_symtab_filename): Likewise.
7237 (make_source_files_completion_list): Likewise.
7238 * xml-syscall.c (init_sysinfo): Likewise.
7239 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7240 IS_DIR_SEPARATOR for checking for trailing path separator.
7241
dd90784c
JK
72422011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7243
7244 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7245 label abort_expression.
7246 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7247 DWARF_VALUE_OPTIMIZED_OUT.
7248
3167638f
JK
72492011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7250
7251 Code cleanup.
7252 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7253 to linkage_name. Invert its value. Update the function comment.
7254 (c_type_print_varspec_suffix): Invert it at the caller.
7255 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7256
ce406537
PA
72572011-03-22 Pedro Alves <pedro@codesourcery.com>
7258
7259 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7260 errors when reading the `stop_pc'.
7261 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7262 get_frame_pc.
7263
da5d4055
PM
72642011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7265
7266 * NEWS: Document gdb.Write stream keyword.
7267
29e0eb9c
JK
72682011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7269
7270 Revert:
7271 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7272 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7273 (dwarf2_add_field): Fix new_field->accessibility for
7274 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7275
05775840
PM
72762011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7277
f33edef8 7278 PR python/12183
05775840
PM
7279
7280 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7281 other error classes. Do not print stack trace.
7282
a0cb7835
JK
72832011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7284
7285 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7286 (dwarf2_add_field): Fix new_field->accessibility for
7287 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7288
d19f7eee
UW
72892011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7290
7291 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7292 encountering a load via a non-SP register.
7293
4a2fbb50
UW
72942011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7295
7296 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7297 field in returned unwinder.
7298
3489610d
JB
72992012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7300
7301 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7302
8c1a34e7
JB
73032012-03-21 Joel Brobecker <brobecker@adacore.com>
7304
7305 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7306 of xmalloc.
7307
8fbca658
PA
73082012-03-18 Pedro Alves <pedro@codesourcery.com>
7309
7310 * frame.c (frame_unwind_register): Throw an error if unwinding the
7311 register failed.
7312 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7313 an unwind stop reason.
7314 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7315 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7316 UNWIND_UNAVAILABLE>: New.
7317 * inline-frame.c (inline_frame_unwind): Install
7318 default_frame_unwind_stop_reason.
7319 * frame-unwind.c: Include "exceptions.h".
7320 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7321 (default_frame_unwind_stop_reason): New.
7322 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7323 (default_frame_unwind_stop_reason): Declare.
7324 (struct frame_unwind) <stop_reason>: New function pointer.
7325
7326 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7327 * dwarf2-frame.c: Include exceptions.h.
7328 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7329 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7330 computing the CFA. If such an error was thrown, set
7331 unavailable_retaddr.
7332 (dwarf2_frame_unwind_stop_reason): New.
7333 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7334 unavailable.
7335 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7336 (dwarf2_signal_frame_unwind): Ditto.
7337
7338 * amd64-tdep.c: Include "exceptions.h".
7339 (struct amd64_frame_cache): New field "base_p".
7340 (amd64_init_frame_cache): Clear it.
7341 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7342 Avoid reading registers with functions that throw if the register
7343 is not necessary to compute the frame base.
7344 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7345 swallowing NOT_AVAILABLE_ERROR.
7346 (amd64_frame_unwind_stop_reason): New.
7347 (amd64_frame_this_id): Don't build a frame id if the frame base
7348 was unavailable.
7349 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7350 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7351 base_p if the frame base was computable.
7352 (amd64_sigtramp_frame_unwind_stop_reason): New.
7353 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7354 frame base was unavailable.
7355 (amd64_sigtramp_frame_unwind): Install
7356 amd64_sigtramp_frame_unwind_stop_reason.
7357 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7358 base_p if the frame base was computable.
7359 (amd64_epilogue_frame_unwind_stop_reason): New.
7360 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7361 frame base was unavailable.
7362 (amd64_epilogue_frame_unwind): Install
7363 amd64_epilogue_frame_unwind_stop_reason.
7364 * i386-tdep.c: Include "exceptions.h".
7365 (struct i386_frame_cache): New field "base_p".
7366 (i386_init_frame_cache): Clear it.
7367 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7368 Avoid reading registers with functions that throw if the register
7369 is not necessary to compute the frame base.
7370 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7371 swallowing NOT_AVAILABLE_ERROR.
7372 (i386_frame_unwind_stop_reason): New.
7373 (i386_frame_this_id): Don't build a frame id if the frame base was
7374 unavailable.
7375 (i386_frame_prev_register): Handle unavailable SP.
7376 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7377 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7378 base_p if the frame base was computable.
7379 (i386_epilogue_frame_unwind_stop_reason): New.
7380 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7381 base was unavailable.
7382 (i386_epilogue_frame_unwind): Install
7383 i386_epilogue_frame_unwind_stop_reason.
7384 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7385 base_p if the frame base was computable.
7386 (i386_sigtramp_frame_unwind_stop_reason): New.
7387 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7388 base was unavailable.
7389 (i386_sigtramp_frame_unwind): Install
7390 i386_sigtramp_frame_unwind_stop_reason.
7391 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7392 type's size, not the register's.
7393 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7394
7395 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7396 default_frame_unwind_stop_reason.
7397 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7398 (alpha_heuristic_frame_unwind): Ditto.
7399 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7400 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7401 * avr-tdep.c (avr_frame_unwind): Ditto.
7402 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7403 Ditto.
7404 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7405 * frv-tdep.c (frv_frame_unwind): Ditto.
7406 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7407 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7408 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7409 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7410 (hppa_stub_frame_unwind): Ditto.
7411 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7412 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7413 (ia64_libunwind_frame_unwind)
7414 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7415 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7416 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7417 * m32c-tdep.c (m32c_unwind): Ditto.
7418 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7419 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7420 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7421 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7422 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7423 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7424 * mep-tdep.c (mep_frame_unwind): Ditto.
7425 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7426 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7427 (mips_stub_frame_unwind): Ditto.
7428 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7429 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7430 * mt-tdep.c (mt_frame_unwind): Ditto.
7431 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7432 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7433 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7434 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7435 (s390_sigtramp_frame_unwind): Ditto.
7436 * score-tdep.c (score_prologue_unwind): Ditto.
7437 * sh-tdep.c (sh_frame_unwind): Ditto.
7438 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7439 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7440 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7441 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7442 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7443 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7444 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7445 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7446 (sparc64obsd_trapframe_unwind): Ditto.
7447 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7448 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7449 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7450 * v850-tdep.c (v850_frame_unwind): Ditto.
7451 * vax-tdep.c (vax_frame_unwind): Ditto.
7452 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7453 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7454 * xtensa-tdep.c (xtensa_unwind): Ditto.
7455
f23d1b92
PA
74562011-03-18 Pedro Alves <pedro@codesourcery.com>
7457
7458 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7459 there's always a frame. Use get_frame_pc_if_available instead of
7460 get_frame_pc, and if there's no PC available, don't look up a
7461 symtab.
7462
1d4f5741
PA
74632011-03-18 Pedro Alves <pedro@codesourcery.com>
7464
7465 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7466 unavailable PC.
7467
dba09041
PA
74682011-03-18 Pedro Alves <pedro@codesourcery.com>
7469
7470 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7471 gracefully.
7472
9a26e44c
PA
74732011-03-18 Pedro Alves <pedro@codesourcery.com>
7474
7475 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7476 * frame.c (frame_unwind_caller_pc_if_available): New.
7477 * stack.c (frame_info): Handle unavailable PC.
7478
74792011-03-18 Pedro Alves <pedro@codesourcery.com>
7480
7481 * frame.c (frame_unwind_pc): Rename to ...
7482 (frame_unwind_pc_if_available): ... this. New `pc' output
7483 parameter. Change return type to int. Gracefully handle
7484 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7485 happened, or 1 otherwise.
7486 (frame_unwind_pc): Reimplement on top of
7487 frame_unwind_pc_if_available.
7488 (get_frame_func): Rename to ...
7489 (get_frame_func_if_available): New `pc' output parameter. Change
7490 return type to int. Gracefully handle the PC not being available.
7491 (get_frame_func): Reimplement on top of
7492 get_frame_func_if_available.
7493 (select_frame): Handle the PC being unavailable.
7494 (get_prev_frame): Handle the PC being unavailable.
7495 (get_frame_pc_if_available): New.
7496 (get_frame_address_in_block_if_available): New.
7497 (find_frame_sal): Handle the frame PC not being available.
7498 * frame.h (get_frame_pc_if_available): Declare.
7499 (get_frame_address_in_block_if_available): Declare.
7500 (get_frame_func_if_available): Declare.
7501 * stack.c (print_frame_info): Handle the PC being unavailable.
7502 (find_frame_funname): Ditto.
7503 (print_frame): Handle the PC being unavailable.
7504 (get_frame_language): Ditto.
7505 * blockframe.c (get_frame_block): Ditto.
7506 * macroscope.c (default_macro_scope): Ditto.
7507 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7508
75092011-03-18 Pedro Alves <pedro@codesourcery.com>
7510
7511 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7512 NOT_AVAILABLE_ERROR when evaluating the location expression.
7513
75142011-03-18 Pedro Alves <pedro@codesourcery.com>
7515
7516 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7517 returning that the register piece is unavailable/optimized out.
7518 (write_pieced_value): Handle get_frame_register_bytes returning
7519 that the register piece is unavailable/optimized out when doing a
7520 read-modify write of a bitfield.
7521 * findvar.c (value_from_register): Handle get_frame_register_bytes
7522 returning that the register piece is unavailable/optimized out.
7523 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7524 and `unavailablep'. Throw error on bad debug info. Use
7525 frame_register instead of frame_register_read, to fill in the new
7526 arguments.
7527 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7528 and `unavailablep'.
7529 * valops.c: (value_assign): Adjust, and handle
7530 get_frame_register_bytes failing.
7531 * spu-tdep.c: Include exceptions.h.
7532 (spu_software_single_step): Adjust, and handle
7533 get_frame_register_bytes failing.
7534 (spu_get_longjmp_target): Ditto.
7535 * gdbarch.sh (register_to_value): Change to return int. New
7536 parameters `optimizedp' and `unavailablep'.
7537 * gdbarch.h, gdbarch.c: Regenerate.
7538 * i386-tdep.c (i386_register_to_value): Adjust to new
7539 gdbarch_register_to_value interface.
7540 * i387-tdep.c (i387_register_to_value): Ditto.
7541 * i387-tdep.h (i387_register_to_value): Ditto.
7542 * alpha-tdep.c (alpha_register_to_value): Ditto.
7543 * ia64-tdep.c (ia64_register_to_value): Ditto.
7544 * m68k-tdep.c (m68k_register_to_value): Ditto.
7545 * mips-tdep.c (mips_register_to_value): Ditto.
7546 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7547
0fdb4f18
PA
75482011-03-18 Pedro Alves <pedro@codesourcery.com>
7549
7550 * findvar.c (value_of_register): Mark the value as unavailable, if
7551 the register is unavailable.
7552 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7553 (frame_register): New `unavailablep' parameter.
7554 (frame_register_read): Update comment.
7555 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7556 Set it if the register is unavailable. If the register is
7557 unavailable, clear the output buffer.
7558 (frame_register): New `unavailablep' parameter. Pass it down.
7559 (frame_unwind_register): Adjust.
7560 (put_frame_register): Adjust.
7561 (frame_register_read): Adjust. Also return false if the register
7562 is not available.
7563 (frame_register_unwind_location): Adjust.
7564 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7565 is unavailable, mark the value accordingly.
7566 * stack.c (frame_info): Handle unavailable registers.
7567
e69aa73e
PA
75682011-03-18 Pedro Alves <pedro@codesourcery.com>
7569
7570 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7571 simplify, using regcache_cooked_read.
7572
05d1431c
PA
75732011-03-18 Pedro Alves <pedro@codesourcery.com>
7574
7575 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7576 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7577 (regcache_raw_read_unsigned, regcache_raw_read_part)
7578 (regcache_cooked_read, regcache_cooked_read_signed)
7579 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7580 (regcache_cooked_read_ftype): Change return to enum
7581 register_status.
7582 * regcache.c: Include exceptions.h
7583 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7584 (do_cooked_read): Change return to enum register_status. Always
7585 forward to regcache_cooked_read.
7586 (regcache_raw_read): Change return to enum register_status. If
7587 the register is not REG_VALID, memset the buffer. Return the
7588 register's status.
7589 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7590 return the register's status.
7591 (regcache_raw_read_unsigned): Ditto.
7592 (regcache_cooked_read): Change return to enum register_status.
7593 Assert that with read-only regcaches, the register's status must
7594 be known. If the regcache is read-only, and the register is not
7595 REG_VALID, memset the buffer. Return the register's status.
7596 (regcache_cooked_read_signed): Change return to enum
7597 register_status. Handle non-REG_VALID registers and return the
7598 register's status.
7599 (regcache_cooked_read_unsigned): Change return to enum
7600 register_status. Handle non-REG_VALID registers and return the
7601 register's status.
7602 (regcache_xfer_part, regcache_raw_read_part)
7603 (regcache_cooked_read_part): Change return to enum
7604 register_status. Return the register's status.
7605 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7606 unavailable.
7607 (regcache_dump): Handle unavailable cooked registers.
7608 * frame.c (do_frame_register_read): Adjust interface to match
7609 regcache_cooked_read_ftype.
7610 * gdbarch.sh (pseudo_register_read): Change return to enum
7611 register_status.
7612 * gdbarch.h, gdbarch.c: Regenerate.
7613
7614 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7615 register_status.
7616 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7617 register_status. If reading a raw register indicates the raw
7618 register is not valid, return the raw register's status,
7619 otherwise, return REG_VALID.
7620 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7621 register_status. Handle non-REG_VALID raw registers and return
7622 the register's status.
7623 * arm-tdep.c (arm_neon_quad_read)
7624 (arm_pseudo_read): Change return to enum register_status. Handle
7625 non-REG_VALID raw registers and return the register's status.
7626 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7627 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7628 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7629 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7630 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7631 register_status.
7632 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7633 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7634 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7635 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7636 (m32c_pseudo_register_read): Change return to enum
7637 register_status. Adjust.
7638 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7639 enum register_status. Return the register's status.
7640 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7641 register_status. Return the register's status.
7642 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7643 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7644 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7645 * rs6000-tdep.c (move_ev_register_func): New typedef.
7646 (e500_move_ev_register): Use it. Change return to enum
7647 register_status. Return the register's status.
7648 (do_regcache_raw_read): New function.
7649 (do_regcache_raw_write): New function.
7650 (e500_pseudo_register_read): Change return to enum
7651 register_status. Return the register's status. Use
7652 do_regcache_raw_read.
7653 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7654 (dfp_pseudo_register_read): Change return to enum register_status.
7655 Return the register's status.
7656 (vsx_pseudo_register_read): Ditto.
7657 (efpr_pseudo_register_read): Ditto.
7658 (rs6000_pseudo_register_read): Ditto.
7659 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7660 register_status. Return the register's status.
7661 * sh64-tdep.c (pseudo_register_read_portions): New function.
7662 (sh64_pseudo_register_read): Change return to enum
7663 register_status. Use pseudo_register_read_portions. Return the
7664 register's status.
7665 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7666 register_status. Return the register's status.
7667 * sh-tdep.c (pseudo_register_read_portions): New function.
7668 (sh_pseudo_register_read): Change return to enum register_status.
7669 Use pseudo_register_read_portions. Return the register's status.
7670 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7671 enum register_status. Return the register's status.
7672 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7673 * spu-tdep.c (spu_pseudo_register_read_spu)
7674 (spu_pseudo_register_read): Ditto.
7675 * xtensa-tdep.c (xtensa_register_read_masked)
7676 (xtensa_pseudo_register_read): Ditto.
7677 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7678
e10abd8f
PM
76792011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7680
7681 * python/py-value.c (valpy_getitem): Fix formatting of error function
7682 call.
7683
7ea6d463
PM
76842011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7685
7686 ARI fixes: Add missing internationalization markups throughout
7687 C source files.
7688 * darwin-nat-info.c: Ditto.
7689 * record.c: Ditto.
7690 * remote.c: Ditto.
7691 * mi/mi-main.c: Ditto.
7692
001083c6
PM
76932011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7694
7695 ARI fixes: Add missing internationalization markups throughout
7696 yacc files.
7697 * c-exp.y: Ditto.
7698 * cp-name-parser.y: Ditto.
7699 * f-exp.y: Ditto.
7700 * m2-exp.y: Ditto.
7701 * objc-exp.y: Ditto.
7702 * p-exp.y: Ditto.
7703
4f1cdeec
PM
77042011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7705
7706 ARI fixes: Messages should have no trailing new lines.
7707 * darwin-nat.c (mach_check_error): Remove trailing new line from
7708 warning function call message.
7709 * record.c (bfdcore_read): Idem for error call.
7710
28e698f1
PM
77112011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7712
7713 * common/signals.c (target_signal_from_host): Add _ markup to error
7714 function call message.
7715 (target_signal_to_host): Add _ markup and remove trailing new line
7716 from warning call message.
7717 (target_signal_from_command): Add _ markup to error function call
7718 message.
7719
99c3dc11
PM
77202011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7721
f33edef8 7722 PR python/12149
99c3dc11
PM
7723
7724 * python/python.c (gdbpy_write): Accept a stream argument and
7725 operate to the appropriate stream.
7726 (gdbpy_flush): Likewise.
7727 (_initialize_python): Add stream constants.
7728 (finish_python_initialization): Add GdbOutputErrorFile class.
7729
c20800be
KY
77302011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7731
7732 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7733
f4a1794a
KY
77342011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7735
7736 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7737 to store_signed_integer. Add debug message when relocating CALL
7738 instructions. Fix formatting of debug message.
7739 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7740
d4862372
JB
77412011-03-17 Joel Brobecker <brobecker@gnat.com>
7742
7743 * target.h (struct target_ops): Remove to_lookup_symbol field.
7744 (target_lookup_symbol): Delete macro.
7745 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7746 (update_current_target, setup_target_debug): Remove handling
7747 of to_lookup_symbol target_ops field.
7748 * ada-tasks.c (get_known_tasks_addr): Remove use of
7749 target_lookup_symbol.
7750 * coffread.c (coff_symtab_read): Likewise.
7751 * dbxread.c (read_dbx_symtab): Ditto.
7752
d645e32e
JB
77532011-03-17 Joel Brobecker <brobecker@gnat.com>
7754
7755 PR gdb/12116:
7756 * configure.ac: Add getthrds declaration check.
7757 * configure, config.in: Regenerate.
7758 * aix-thread.c (getthrds): Declare only if not already declared
7759 in procinfo.h. More declaration out of get_signaled_thread to
7760 global scope.
7761
29703da4
PM
77622011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7763
7764 * python/py-symtab.c: Populate symtab_object_methods,
7765 sal_object_methods.
7766 (stpy_is_valid): New function.
7767 (salpy_is_valid): Ditto.
7768 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7769 (sympy_is_valid): New function.
7770 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7771 (objfpy_is_valid): New function.
7772 * python/py-inferior.c: Populate inferior_object_methods.
7773 (infpy_is_valid): New function.
7774 * python/py-infthread.c: Populate thread_object_methods.
7775 (thpy_is_valid): New function.
7776 * python/py-block.c: Declare block_object_methods. Populate. Declare
7777 block_iterator_object_methods. Populate.
7778 (blpy_is_valid): New function.
7779 (blpy_iter_is_valid): Ditto.
7780
c00f8484
KS
77812011-03-16 Keith Seitz <keiths@redhat.com>
7782
7783 * linespec.c (find_methods): Canonicalize NAME before looking
7784 up the symbol.
7785 (name_end): New function.
7786 (keep_name_info): New function.
7787 (decode_line_1): Use keep_name_info.
7788 (decode_compound): Likewise.
7789 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7790 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7791
7792 PR c++/12273
7793 * linespec.c (locate_first_half): Keep overload information, too.
7794 (decode_compound): Use a string to represent break characters
7795 to escape the loop.
7796 If P points to a break character, do not increment it.
7797 For C++ and Java, keep overload information and relevant keywords.
7798 If we cannot find a symbol, search the minimal symbols.
7799
7800 PR c++/11734
7801 * linespec.c (decode_compound): Rename SAVED_ARG to
7802 THE_REAL_SAVED_ARG.
7803 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7804 single-quotes.
7805 Pass a valid block to lookup_symbol.
7806 (lookup_prefix_sym): Likewise.
7807 (find_method): Construct search name based on SYM_CLASS instead
7808 of SAVED_ARG.
7809 * psymtab.c (lookup_partial_symbol): Add language parameter.
7810 (lookup_symbol_aux_psymtabs): Likewise.
7811 Don't assume that the psymtab we found was the right one. Search
7812 for the desired symbol in the symtab to be certain.
7813 (psymtab_search_name): New function.
7814 (lookup_partial_symbol): Use psymtab_search_name.
7815 Add language parameter.
7816 (read_symtabs_for_function): Add language parameter and pass to
7817 lookup_partial_symbol.
7818 (find_symbol_file_from_partial): Likewise.
7819
c91513d8
PP
78202011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7821
7822 PR gdb/12528
7823 * dwarf2read.c (noop_record_line): New function.
7824 (dwarf_decode_lines): Ignore line tables for GCd functions.
7825
b37520b6
PM
78262011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7827
7828 Fix ARI warnings about new lines at the end of messages, which
7829 are unneeded as there is a new line added at the end of the message
7830 automatically.
7831 * darwin-nat.c (darwin_stop_inferior): Ditto.
7832 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7833 * dfp.c (decimal_to_number): Ditto.
7834 * exec.c (print_section_info): Ditto.
7835 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7836 * osdata.c (get_osdata): Ditto.
7837 * record.c (bfdcore_write): Ditto.
7838 * remote-mips.c (mips_readchar): Ditto.
7839 * remote.c (read_ptid): Ditto.
7840 * ser-mingw.c (ser_windows_raw): Ditto.
7841 * tracepoint.c (add_local_symbols): Ditto.
7842 * windows-nat.c (fake_create_process): Ditto.
7843
b08ee6a2
TT
78442011-03-16 Tom Tromey <tromey@redhat.com>
7845
7846 * tracepoint.c (stop_tracing): Don't declare.
7847 * event-top.c (after_char_processing_hook): Add `(void)'.
7848
9a6f1302
PM
78492011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7850
7851 * NEWS: Add Parameter sub-classing description.
7852
7ceb86b1
KT
78532011-03-16 Kai Tietz <ktietz@redhat.com>
7854
7855 * MAINTAINERS: Update my e-mail address.
7856
efeff6cf
AT
78572011-03-15 Andreas Tobler <andreast@fgznet.ch>
7858
7859 * MAINTAINERS: Add myself for write after approval privileges.
7860
681c238c
MS
78612011-03-15 Michael Snyder <msnyder@vmware.com>
7862
f3df5b08
MS
7863 * frame.c (find_frame_sal): Assert sym is not null.
7864
13f6513c
MS
7865 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7866
50412521
MS
7867 * objc-lang.c (selectors_info): Check strchr for null result.
7868
681c238c
MS
7869 * stabsread.c (define_symbol): Guard against bad stabstring input.
7870
6ced1581
PM
78712011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7872
7873 Remove trailing spaces and tabulations from pascal language
7874 support sources.
7875 p-exp.y: Ditto.
7876 p-lang.c: Ditto.
7877 p-lang.h: Ditto.
7878 p-valprint.c: Ditto.
7879
9373cf26
JK
78802011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7881
7882 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7883 than LOW. Comment it.
7884 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7885 HIGHPC not strictly higher than LOWPC.
7886
9a1edae6
PM
78872011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7888
7889 Fix formatting of function declarations returning a pointer in
7890 previous commit.
7891 * varobj.c (varobj_add_child): Ditto.
7892 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7893 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7894
24e9cda0
UW
78952011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7896
7897 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7898 for the "generic" vector ABI used with GCC 4.3 and later.
7899 (ppc64_sysv_abi_return_value): Likewise.
7900
79012011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7902
7903 * infcall.c (call_function_by_hand): Function return value is
7904 always a non_lval, even when using struct_return.
7905
c9174737
PA
79062011-03-15 Pedro Alves <pedro@codesourcery.com>
7907
7908 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7909 (map_display_numbers): New.
7910 (do_delete_display): New.
7911 (undisplay_command): Use map_display_numbers.
7912 (do_enable_disable_display): New.
7913 (enable_disable_display_command): New function.
7914 (enable_display): Delete.
7915 (enable_display_command): New.
7916 (disable_display_command): Reimplement.
7917 (_initialize_printcmd): Adjust "enable display" command to use
7918 `enable_display_command' as callback.
7919
350c6c65
PM
79202011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7921
7922 * NEWS: Add Python breakpoint 'stop' operation.
7923
824446ad
PM
79242011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7925
7926 * NEWS: Delete duplicate entry. Fix typo.
7927
2021ad3a
PM
79282011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7929
7930 Fix ARI warning about function names in first column.
7931 Put prototype declaration on same line as return type.
7932 * objc-exp.y: Ditto.
7933 * p-exp.y: Ditto.
7934 * python/py-stopevent.h: Ditto.
7935 For long function names, split parameters to
7936 allow function name on same line as return type.
7937 * solib-pa64.c: Ditto.
7938 * varobj.c: Ditto.
7939 * varobj.h: Ditto.
7940 For long function declaration, use single line.
7941 * hppa-tdep.h: Ditto.
7942 * inferior.h: Ditto.
7943
7371cf6d
PM
79442011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7945
7946 * python/python.h: Declare gdbpy_should_stop and
7947 gdbpy_breakpoint_has_py_cond.
7948 * python/python.c: Add python.h to includes. Remove python.h from
7949 HAVE_PYTHON definition
7950 (gdbpy_should_stop): New dummy function.
7951 (gdbpy_breakpoint_has_py_cond): New dummy function.
7952 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7953 sub-classing capabilities.
7954 (gdbpy_should_stop): New function.
7955 (gdbpy_breakpoint_has_py_cond): New function.
7956 (local_setattro): New function.
7957 * breakpoint.c (condition_command): Add check for Python 'stop'
7958 operation.
7959 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7960 operation function as part of stop/continue tests.
7961
37b50a69
TT
79622011-03-14 Tom Tromey <tromey@redhat.com>
7963
7964 PR gdb/12576:
7965 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7966 (needs_frame_dwarf_call): Likewise.
7967
eeae04df
PM
79682011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7969
7970 Fix ARI warning about functions without parameters that do not
7971 use (void).
7972 * breakpoint.c (all_tracepoints): Replace () by (void).
7973 * f-exp.y (match_string_literal): Ditto.
7974 (yylex): Ditto.
7975 * m2-exp.y (yylex): Ditto.
7976 * mep-tdep.c (current_me_module): Ditto.
7977 (current_options): Ditto.
7978 (current_cop_data_bus_width): Ditto.
7979 (current_cr_names): Ditto.
7980 (current_cr_is_float): Ditto.
7981 (current_ccr_names): Ditto.
7982 * objc-exp.y (yylex): Ditto.
7983 * p-exp.y (yylex): Ditto.
7984 * remote.c (send_interrupt_sequence): Ditto.
7985 * tracepoint.c (current_trace_status): Ditto.
7986 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7987 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7988
6dc3565d
MS
79892011-03-11 Michael Snyder <msnyder@vmware.com>
7990
1427fe5e
MS
7991 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7992 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7993 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7994 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7995 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7996
60bc018f
MS
7997 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7998 (delete_async_event_handler): Ditto.
7999
f3be5b64
MS
8000 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8001
4c2d5724
MS
8002 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8003
6dc3565d
MS
8004 * top.c (set_verbose): Assert showcmd was found.
8005
4e6ca6d5
MG
80062011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8007
8008 * xtensa-tdep.c (warning_once): Correct style issues.
8009
815a83e4
YQ
80102011-03-11 Yao Qi <yao@codesourcery.com>
8011
8012 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8013
f2eb0bc8
AS
80142011-03-11 Andreas Schwab <schwab@redhat.com>
8015
8016 * common/aclocal.m4: Remove.
8017
b801de47
MG
80182011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8019
8020 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8021 (xtensa_write_register, xtensa_read_register): Likewise.
8022 (xtensa_hextochar): Removed.
8023 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8024
dbab50de
MG
80252011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8026
8027 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8028 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8029 (xtensa_alloc_frame_cache): Add initialization for new fields.
8030 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8031 (warning_once): New function.
8032 (xtensa_insn_kind): New item c0opc_and.
8033 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8034 (call0_track_op): Change arguments. New local variable litbase.
8035 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8036 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8037 in the prologue.
dbab50de 8038 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8039 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8040 Add the variety of updates to handle extended prologues, which now can
8041 conduct dynamic stack adjustments.
8042 (call0_frame_cache): Likewise.
8043 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8044 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8045
b2c04452
MS
80462011-03-10 Michael Snyder <msnyder@vmware.com>
8047
f8f67713
MS
8048 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8049 (cmd_qtframe): Ditto.
8050 (cmd_qtbuffer): Ditto.
8051 (cmd_bigqtbuffer): Ditto.
8052
197f0a60
TT
80532011-03-10 Tom Tromey <tromey@redhat.com>
8054
8055 * tracepoint.c (trace_actions_command): Update.
8056 * thread.c (thread_apply_command): Update.
8057 * reverse.c (delete_bookmark_command): Update.
8058 (bookmarks_info): Update.
8059 * printcmd.c (undisplay_command): Update.
8060 * memattr.c (mem_enable_command): Update.
8061 (mem_disable_command): Update.
8062 (mem_delete_command): Update.
8063 * inferior.c (detach_inferior_command): Update.
8064 (kill_inferior_command): Update.
8065 (remove_inferior_command): Update.
8066 * cli/cli-utils.h (struct get_number_or_range_state): New.
8067 (init_number_or_range): Declare.
8068 (get_number_or_range): Update.
8069 * cli/cli-utils.c (init_number_or_range): New function.
8070 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8071 static variables.
8072 (number_is_in_list): Update.
8073 * breakpoint.h (get_tracepoint_by_number): Update.
8074 * breakpoint.c (map_breakpoint_numbers): Update for change to
8075 get_number_or_range.
8076 (find_location_by_number): Use get_number, not
8077 get_number_or_range.
8078 (trace_pass_set_count): New function.
8079 (trace_pass_command): Update for change to get_number_or_range.
8080 Rework loop logic.
8081 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8082 'state' parameter.
8083
ecec24e6
PM
80842011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8085
8086 * python/py-param.c (add_setshow_generic): Add set/show callback
8087 parameters. Register Python object context.
8088 (get_show_value): New function.
8089 (get_set_value): New function.
8090 (call_doc_function): New function.
8091 (get_doc_string): Move behind get_show_value/get_set_value.
8092
6d6c6b1f
JK
80932011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8094
8095 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8096
68d6df83
MG
80972011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8098
dbab50de 8099 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8100 (xtensa_write_register): Likewise.
8101 (xtensa_hextochar): Add comment and update to match coding conventions.
8102 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8103 (execute_l32e, execute_s32e, execute_code): Update comments.
8104 (xtensa_exception_handler_t): Update to match coding conventions.
8105 (xtensa_insn_kind): Likewise.
8106
85c9d6a6
MS
81072011-03-09 Michael Snyder <msnyder@vmware.com>
8108
8109 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8110
91495617
PA
81112011-03-09 Pedro Alves <pedro@codesourcery.com>
8112
8113 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8114
eb8c0621
TT
81152011-03-09 Tom Tromey <tromey@redhat.com>
8116
8117 * thread.c (restore_selected_frame): Handle frame_level == -1.
8118 (make_cleanup_restore_current_thread): Use
8119 get_selected_frame_if_set.
8120 * frame.h (get_selected_frame_if_set): Declare.
8121 * frame.c (get_selected_frame_if_set): New function.
8122
9f37bbcc
PA
81232011-03-09 Pedro Alves <pedro@codesourcery.com>
8124
8125 * cli/cli-cmds.c (shell_escape): Use lbasename.
8126 * coffread.c (coff_start_symtab): Constify parameter.
8127 (complete_symtab): Constify `name' parameter.
8128 (coff_symtab_read): Constify `filestring' local.
8129 (coff_getfilename): Constify return and `result' local.
8130 Use lbasename.
8131 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8132 * linux-fork.c (info_checkpoints_command): Use lbasename.
8133 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8134 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8135 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8136 * procfs.c (procfs_make_note_section): Use lbasename.
8137 * tui/tui-io.c (printable_part): Constity return and parameter.
8138 Use lbasename.
8139 (print_filename): Constify parameters, and local `s'.
8140 (tui_rl_display_match_list): Constify local `temp'.
8141
f8de3c55
JK
81422011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8143
8144 Revert:
8145 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8146 Fix DWARF-3+ DW_AT_accessibility default assumption.
8147 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8148 cu->header.version >= 3.
8149
d9837b00
YQ
81502011-03-09 Yao Qi <yao@codesourcery.com>
8151
8152 * common/Makefile.in: Remove.
8153 * common/configure: Remove.
8154 * common/configure.ac: Remove.
8155
e637a4f5
YQ
81562011-03-09 Yao Qi <yao@codesourcery.com>
8157
8158 Revert:
8159 2011-02-11 Yao Qi <yao@codesourcery.com>
8160
8161 * common/Makefile.in: Add copyright header.
8162
8163 2011-02-11 Yao Qi <yao@codesourcery.com>
8164
8165 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8166 libcommon.a.
8167 * configure.ac: Add common to sub dir.
8168 * configure: Regenerate.
8169
f976a05d
MG
81702011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8171
8172 * xtensa-tdep.c (call0_ret): New function.
8173 (xtensa_skip_prologue): Speed up analysis.
8174
57041825
MG
81752011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8176
8177 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8178 while executing MI command -data-list-changed-registers.
8179
08b9c608
MG
81802011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8181
8182 * xtensa-tdep.c (xtensa_read_register): New function.
8183 (xtensa_write_register): New function.
8184 (xtensa_find_register_by_name): New function.
8185 (xtensa_windowed_frame_cache): Update comments in type description.
8186 (xtensa_frame_cache): Likewise.
8187 (xtensa_window_interrupt_insn): New function.
8188 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8189 (xtensa_insn_kind): Add new instructions.
8190 (rwx_special_register): New function.
8191 (call0_classify_opcode): Add new instructions to the analysis.
8192 (a0_saved, a7_saved, a11_saved): New variables.
8193 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8194 (execute_l32e): New function.
8195 (execute_s32e): New function.
8196 (xtensa_exception_handler_t): New type.
8197 (execute_code): New function.
8198 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8199 analysis for Xtensa Window Exception handlers.
8200
4d1acb11
MG
82012011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8202
98689b25
MG
8203 * xtensa-tdep.c (TX_PS): New.
8204 (windowing_enabled): Update to count for Call0 ABI.
8205 (xtensa_hextochar): New.
8206 (xtensa_init_reggroups): Make algorithm generic.
8207 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8208
82092011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8210
8211 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8212
d3f323f3
MS
82132011-03-08 Michael Snyder <msnyder@vmware.com>
8214
3dcabaa8
MS
8215 * i386-tdep.c (i386_follow_jump): Check return value of
8216 target_read_memory.
8217 (i386_analyze_struct_return): Ditto.
8218 (i386_skip_probe): Ditto.
8219 (i386_match_insn): Ditto.
8220 (i386_skip_noop): Ditto.
8221 (i386_analyze_frame_setup): Ditto.
8222 (i386_analyze_register_saves): Ditto.
8223 (i386_skip_prologue): Ditto.
8224 (i386_skip_main_prologue): Ditto.
8225
13b3fd9b
MS
8226 * target.c (read_whatever_is_readable): Fix memory leak.
8227
d3f323f3
MS
8228 * i386-tdep.c (i386_process_record): Document fall through.
8229
421d5c74
JK
82302011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8231
8232 Fix DWARF-3+ DW_AT_accessibility default assumption.
8233 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8234 cu->header.version >= 3.
8235
63154eca
PA
82362011-03-08 Pedro Alves <pedro@codesourcery.com>
8237
8238 * remote.c (remote_check_symbols): Skip if the target has no
8239 execution.
8240
f1a507a1
JB
82412011-03-08 Joel Brobecker <brobecker@adacore.com>
8242
8243 * target.c (read_whatever_is_readable): Reformat comment,
8244 with a minor typo fix. Minor reformatting of the code.
8245
36073a92
YQ
82462011-03-08 Yao Qi <yao@codesourcery.com>
8247
8248 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8249 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8250 Use cached result instead of calling displaced_in_arm_mode again.
8251 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8252 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8253 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8254 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8255 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8256 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8257 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8258 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8259 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8260 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8261 (arm_catch_kernel_helper_return): Likewise.
8262 * gdb/arm-tdep.h : Update function declarations.
8263
d3f323f3 82642011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8265
e0e40094
MS
8266 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8267
0b2381f5
MS
8268 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8269
0350914a
MS
8270 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8271
69feea6f
MS
8272 * elfread.c (elf_symtab_read): Stop memory leak.
8273
e6040cbd
MS
8274 * main.c (captured_main): Fix memory leak.
8275
052874e8
AS
82762011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8277
8278 * ada-lang.c (compare_names): Call is_name_suffix with string1
8279 instead of string2.
8280
b11896a5
TT
82812011-03-07 Tom Tromey <tromey@redhat.com>
8282
8283 * xcoffread.c (xcoff_sym_fns): Update.
8284 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8285 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8286 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8287 (symbol_file_add_with_addrs_or_offsets): Likewise.
8288 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8289 * somread.c (som_sym_fns): Update.
8290 * psymtab.h (require_partial_symbols): Declare.
8291 * psymtab.c (require_partial_symbols): New function.
8292 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8293 (ALL_OBJFILE_PSYMTABS): Undef.
8294 (ALL_PSYMTABS): Move from psympriv.h.
8295 (lookup_partial_symtab, find_pc_sect_psymtab)
8296 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8297 (find_last_source_symtab_from_partial)
8298 (forget_cached_source_info_partial)
8299 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8300 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8301 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8302 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8303 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8304 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8305 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8306 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8307 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8308 psymtabs.
8309 * mipsread.c (ecoff_sym_fns): Update.
8310 * machoread.c (macho_sym_fns): Update.
8311 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8312 (read_psyms): New function.
8313 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8314 (elf_sym_fns_lazy_psyms): New global.
8315 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8316 dwarf2_build_psymtabs.
8317 * dbxread.c (aout_sym_fns): Update.
8318 * coffread.c (coff_sym_fns): Update.
8319
fda326dd
TT
83202011-03-07 Tom Tromey <tromey@redhat.com>
8321
8322 * infrun.c (print_exited_reason): Include inferior id and pid in
8323 message.
8324
aeaec162
TT
83252011-03-07 Tom Tromey <tromey@redhat.com>
8326
8327 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8328 parameter.
8329 (target_has_execution_1): Update.
8330 (target_has_execution_current): Declare.
8331 (target_has_execution): Call target_has_execution_current.
8332 (default_child_has_execution): Update.
8333 * target.c (default_child_has_execution): Add 'the_ptid'
8334 parameter.
8335 (target_has_execution_1): Likewise.
8336 (target_has_execution_current): New function.
8337 (add_target): Update.
8338 (init_dummy_target): Update.
8339 * remote-m32r-sdi.c (m32r_has_execution): New function.
8340 (init_m32r_ops): Use it.
8341 * record.c (record_core_has_execution): Now static. Add
8342 'the_ptid' parameter.
8343 * inferior.c (have_live_inferiors): Don't save current thread.
8344 Use target_has_execution_1.
8345
08e14083
YQ
83462011-03-07 Yao Qi <yao@codesourcery.com>
8347
8348 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8349
c05d19c5
JB
83502011-03-07 Joel Brobecker <brobecker@adacore.com>
8351
8352 * elfread.c (elf_symtab_read): Minor reformatting.
8353
3e6ef9e4
JB
83542011-03-07 Joel Brobecker <brobecker@adacore.com>
8355
8356 * objc-lang.c (selectors_info): Minor reformatting.
8357
dbb8534f
JB
83582011-03-07 Joel Brobecker <brobecker@adacore.com>
8359
8360 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8361
dd70cc93
JB
83622011-03-07 Joel Brobecker <brobecker@adacore.com>
8363 Michael Snyder <msnyder@vmware.com>
8364
8365 * ada-valprint.c (ada_val_print_array): Move the declaration of
8366 "byte_order" and "elttype" inside the block where these variables
8367 are actually used. Remove some special handling for the case
8368 where "elttype" and "eltlen" are null. Replace by a comment
8369 and a couple of assertion checks.
8370
b27cf2b3
MS
83712011-03-05 Michael Snyder <msnyder@vmware.com>
8372
8373 * source.c (add_path): Replace semicolon at end of block.
8374 * dwarf2expr.c (execute_stack_op): Ditto.
8375
5387a0c6
MF
83762011-03-05 Mike Frysinger <vapier@gentoo.org>
8377
8378 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8379 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8380 (bfin-*-*): Likewise.
8381
e3aa49af
MS
83822011-03-05 Michael Snyder <msnyder@vmware.com>
8383
82ae4854
MS
8384 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8385 * mdebugread.c (parse_symbol): Ditto.
8386 * parse.c (parse_exp_in_context): Ditto.
8387 * source.c (add_path): Ditto.
8388 * utils.c (gnu_debuglink_crc32): Ditto.
8389 * varobj.c (variable_language): Ditto.
8390
e3aa49af
MS
8391 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8392
154f592e
MS
83932011-03-04 Michael Snyder <msnyder@vmware.com>
8394
da3ecdc6
MS
8395 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8396
9cc89665
MS
8397 * symfile.c (simple_overlay_update): Check for null return value
8398 from lookup_minimal_symbol.
8399
154f592e
MS
8400 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8401
63ffa6ee
TJB
84022011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8403
8404 * eval.c (parse_and_eval_address_1): Remove function.
8405 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8406 instead of parse_and_eval_address_1.
8407 * value.h (parse_and_eval_address_1): Remove prototype.
8408
a17d146e
MS
84092011-03-04 Michael Snyder <msnyder@vmware.com>
8410
8411 * remote.c (putpkt_binary): Document that case stmt falls through.
8412
1a6a67de
TJB
84132011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8414
8415 * breakpointc (print_it_typical): Move NULL check from here...
8416 (print_bp_stop_message): ... to here.
8417
488919c4
MS
84182011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8419
8420 * breakpoint.c (enable_command): Use break instead of continue,
8421 and fill in a missing break.
8422 (disable_command): Ditto.
8423
1e182ce8
UW
84242011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8425
8426 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8427 (terminal_save_ours): Remove misleading comment.
8428 (inflow_inferior_data_cleanup): Free ttystate.
8429 (inflow_inferior_exit): Likewise.
8430 (copy_terminal_info): Copy ttystate.
8431
8432 * serial.c (serial_copy_tty_state): New function.
8433 * serial.h (serial_copy_tty_state): Add prototype.
8434 (struct serial_ops): Add copy_tty_state callback.
8435 * ser-base.c (ser_base_copy_tty_state): New function.
8436 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8437 * ser-go32.c (dos_copy_tty_state): New function.
8438 (dos_ops): Install copy_tty_state callback.
8439 * ser-mingw.c (_initialize_ser_windows): Likewise.
8440 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8441 * ser-unix.c (hardwire_copy_tty_state): New function.
8442 (_initialize_ser_hardwire): Install it.
8443
b2c5f112
MS
84442011-03-04 Michael Snyder <msnyder@vmware.com>
8445
2abae994
MS
8446 * breakpoint.c (create_breakpoint): Add missing break statement.
8447
7f5936f9
MS
8448 Reverting this patch:
8449 * infcall.c (call_function_by_hand): Add break statements for lint.
8450
b2c5f112
MS
8451 Reverting this patch:
8452 * cli/cli-script.c (script_from_file): Add break for lint.
8453
42b1321c
MS
84542011-03-04 Michael Snyder <msnyder@vmware.com>
8455
8456 * solib.c (reload_shared_libraries_1): Close memory leak.
8457
3e2a0cee
TT
84582011-03-03 Tom Tromey <tromey@redhat.com>
8459
8460 PR gdb/12538:
8461 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8462 DW_STRING is NULL.
8463
58397cb7
MS
84642011-03-03 Michael Snyder <msnyder@vmware.com>
8465
2e3fd767
MS
8466 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8467 fields of struct 'st' to zero.
8468
58397cb7
MS
8469 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8470 sal.pspace before calling set_current_source_symtab_and_line.
8471
ced54c8f
YQ
84722011-03-03 Yao Qi <yao@codesourcery.com>
8473
8474 * Makefile.in (configure-common): Remove. Let Makefile
8475 in dir common to rebuild itself.
8476 (common/Makefile): Likewise.
8477
3351ea09
JB
84782011-03-03 Joel Brobecker <brobecker@adacore.com>
8479
8480 * utils.c (parse_escape): Add i18n markup in error message.
8481
bf9f652a
YQ
84822011-03-03 Yao Qi <yao@codesourcery.com>
8483
8484 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8485 ARM_PC_REGNUM.
8486 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8487 (displaced_write_reg, displaced_read_reg): Likewise.
8488 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8489 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8490 (cleanup_branch): Replace magic number 14 and 15 with
8491 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8492
d42de051
MS
84932011-03-02 Michael Snyder <msnyder@vmware.com>
8494
240f9570
MS
8495 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8496
10dd8b54
MS
8497 * cli/cli-script.c (script_from_file): Add break for lint.
8498
b98bd911
MS
8499 * mdebugread.c (parse_partial_symbols): Fix indent.
8500
3494b66d
MS
8501 * target-descriptions.c (tdesc_gdb_type): No need to call
8502 xstrdup, callee saves a copy.
8503
daac021a
MS
8504 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8505
c38d16a7
MS
8506 * infcall.c (call_function_by_hand): Add break statements for lint.
8507
905b671b
MS
8508 * utils.c (parse_escape): Escape the escape char.
8509
f2eb0bc8 8510 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8511 PyList_Append fails.
8512 (gdbpy_inferiors): Error out if build_inferior_list fails.
8513
8c6a60d1
MS
8514 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8515 a function call.
8516
d42de051
MS
8517 * record.c (record_restore): Move printf to before error return.
8518
4db71c0b
YQ
85192011-03-02 Yao Qi <yao@codesourcery.com>
8520
8521 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8522 is_thumb and insn_size.
8523 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8524 on both ARM and Thumb mode.
8525 (arm_process_displaced_insn): Set is_thumb and insn_size.
8526 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8527 (arm_displaced_step_fixup): Likewise.
8528
a9dc8dcc
MS
85292011-03-01 Michael Snyder <msnyder@vmware.com>
8530
53624a93
MS
8531 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8532
77766669
MS
8533 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8534
62d5b8da
MS
8535 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8536
5e9e105f
MS
8537 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8538
dc19db01
MS
8539 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8540 with xmalloc.
8541
5ce64950
MS
8542 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8543 which shadows function parameter.
8544
a0aa2878
MS
8545 * tracepoint.c (create_tsv_from_upload): Superfluous call
8546 to xstrdup. Callee already calls xstrdup.
8547
e325fb69
MS
8548 * linespec.c (decode_line_1): Remove unnecessary null check.
8549
21cbba77
MS
8550 * tracepoint.c (scope_info): Fix mem leak, remove underused
8551 variable.
8552
63360adc
MS
8553 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8554 superfluous null check.
8555
18ea20ac 8556 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8557 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8558
d014929c
MS
8559 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8560
6e9130cf
MS
8561 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8562 be null.
8563
5f01dbc0
MS
8564 * linespec.c (decode_line_1): Check for null before dereference.
8565
d684ab85
MS
8566 * reverse.c (record_restore): Move null-check to before pointer
8567 dereference.
8568
bfffb7e3
MS
8569 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8570
a9dc8dcc
MS
8571 * objc-lang.c (selectors_info): Add explanitory comment.
8572 (classes_info): Ditto.
8573
478fd957
UW
85742011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8575
8576 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8577 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8578 versions of the trampoline. Handle Thumb vs. ARM addresses.
8579 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8580 (arm_linux_init_abi): Install it.
8581 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8582 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8583
0480cefa
MS
85842011-02-28 Michael Snyder <msnyder@vmware.com>
8585
ac50ab3b
MS
8586 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8587 a little bigger, to avoid possibility of an overflow.
8588
f63fbe86
MS
8589 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8590 buffers a little bigger, to avoid possibility of an overflow.
8591
9e91a352
MS
8592 * coffread.c (coff_getfilename): Add check to avoid overflow.
8593
f2eb0bc8 8594 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8595 avoid overflow.
8596 (classes_info): Error out on too long REGEXP.
8597
098ab512
MS
8598 * infrun.c (handle_inferior_event): Remove unused function call.
8599
bcbd1de9
MS
8600 * fork-child.c (fork_inferior): Remove ifdef'd code and
8601 unused variable.
8602
2e456570
MS
8603 * linux-thread-db.c (attach_thread): Discard unused value.
8604
14571dad
MS
8605 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8606
a9cbf802
MS
8607 * remote.c (remote_get_noisy_reply): Discard unused value.
8608 (remote_vcont_resume): Ditto.
8609 (remote_stop_ns): Ditto.
8610
5715d26e
MS
8611 * linespec.c (decode_objc): Delete unused variable.
8612
4a9bca80
MS
8613 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8614
f47fb265
MS
8615 * dwarf2read.c (add_partial_symbol): Discard unused values.
8616 (read_base_type): Delete unused variable.
8617
e81cff30
MS
8618 * dbxread.c (read_dbx_symtab): Discard unused value.
8619
262acaeb
MS
8620 * eval.c (evaluate_subexp_standard): Delete unused variable,
8621 and discard unused values.
8622
df983543
MS
8623 * infcmd.c (_initialize_infcmd): Discard unused values.
8624
89acf84d
MS
8625 * stabsread.c (rs6000_builtin_type): Missing break statement.
8626
ab8b8aca
MS
8627 * dbxread.c (process_one_symbol): Discard unused value.
8628
6b4511ab
MS
8629 * coffread.c (coff_end_symtab): Delete unused variable.
8630
e8e80198
MS
8631 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8632 (dwarf2_add_typedef): Delete unused variable.
8633 (read_namespace): Ditto.
8634 (dwarf_decode_macros): Ditto.
8635
976aa66e
MS
8636 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8637
5b92b49f
MS
8638 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8639
91e8df85
MS
8640 * p-valprint.c (pascal_val_print): Discard unused value.
8641
899500d6
MS
8642 * utils.c (nquery): Call va_end before return;
8643 (yquery): Ditto.
8644 (query): Ditto.
8645
0480cefa
MS
8646 * proc-service.c (ps_plog): Call va_end before return.
8647
fb6a3ed3
TT
86482011-02-28 Tom Tromey <tromey@redhat.com>
8649
8650 * python/python.c (gdbpy_value_cst): New global.
8651 (_initialize_python): Initialize it.
8652 * python/python-internal.h (gdbpy_value_cst): Declare.
8653 * python/py-value.c (convert_value_from_python): Use
8654 gdbpy_value_cst.
8655
c05202a1
MS
86562011-02-28 Michael Snyder <msnyder@vmware.com>
8657
e463f587
MS
8658 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8659
c38eea1a
MS
8660 * breakpoint.c (catch_syscall_completer): Free malloced list.
8661
3ef09ab5
MS
8662 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8663
8f9a01ee
MS
8664 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8665 (lval_func_check_synthetic_pointer): Ditto.
8666 (lval_func_free_closure): Fix use-after-free.
c05202a1 8667
477d0d57
TT
86682011-02-28 Tom Tromey <tromey@redhat.com>
8669
8670 * psymtab.c (expand_partial_symbol_tables): Use
8671 ALL_OBJFILE_PSYMTABS.
8672
20937029
JK
86732011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8674
8675 * objc-lang.c (selectors_info): Error on too long REGEXP.
8676
907b7f4f
MS
86772011-02-28 Michael Snyder <msnyder@vmware.com>
8678
92e96192
MS
8679 * python/py-param.c (set_parameter_value): Add missing
8680 break statement.
8681
907b7f4f
MS
8682 * linux-record.c (record_linux_system_call): Add missing
8683 break statement.
8684
12c5a436
UW
86852011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8686
8687 * breakpoint.c (print_one_breakpoint_location): Remove unused
8688 argument PRINT_ADDRESS_BITS. Update callers.
8689 (print_one_breakpoint): Likewise.
8690
170b53b2
UW
86912011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8692
8693 * breakpoint.c (wrap_indent_at_field): New function.
8694 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8695 Allocate ui_stream locally instead of using STB argument.
8696 (print_one_breakpoint_location): Update call.
8697 * ui-out.c (ui_out_query_field): New function.
8698 * ui-out.h (ui_out_query_field): Add prototype.
8699
8ab1f94d
JB
87002011-02-28 Joel Brobecker <brobecker@adacore.com>
8701
8702 From Michael Snyder <msnyder@vmware.com>
8703 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8704
7d488639
MS
87052011-02-27 Michael Snyder <msnyder@vmware.com>
8706
ae179fba
MS
8707 * objc-lang.c (selectors_info): Prevent string overrun.
8708
086dbf66
MS
8709 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8710 error in strncpy.
8711
f2eb0bc8 8712 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8713 outer scope.
8714
7d488639
MS
8715 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8716 param with a local variable of the same name.
8717
3bd0f5ef
MS
87182011-02-27 Michael Snyder <msnyder@vmware.com>
8719
8720 * value.c (value_from_history_ref): New function.
8721 * value.h (value_from_history_ref): Export.
8722 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8723 to parse value history references.
8724 * cli/cli-utils.h (get_number_trailer): Update comment.
8725
87262011-02-27 Michael Snyder <msnyder@vmware.com>
8727
8728 * inferior.c (detach_inferior_command): Use get_number_or_range.
8729 (kill_inferior_command): Ditto.
8730 (remove_inferior_command): Ditto.
8731 (initialize_inferiors): Make command names plural.
8732 Update help strings.
8733
766062f6
MS
87342011-02-27 Michael Snyder <msnyder@vmware.com>
8735
8736 * darwin-nat-info.c: Fix comment typo.
8737 * dwarf2expr.h: Ditto.
8738 * fbsd-nat.c: Ditto.
8739 * fbsd-nat.h: Ditto.
8740 * frame-unwind.h: Ditto.
8741 * frame.h: Ditto.
8742 * hppa-hpux-tdep.c: Ditto.
8743 * i386-linux-nat.c: Ditto.
8744 * linux-nat.c: Ditto.
8745 * nbsd-nat.c: Ditto.
8746 * nbsd-nat.h: Ditto.
8747 * ppc-linux-tdep.c: Ditto.
8748 * serial.c: Ditto.
8749 * ui-file.h: Ditto.
8750 * tui/tui-winsource.c: Ditto.
8751
f2c4ead5
MS
87522011-02-26 Michael Snyder <msnyder@vmware.com>
8753
86b887df
MS
8754 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8755
66fd3b1e
MS
8756 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8757
8c814cdd
MS
8758 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8759 with a local variable of the same name.
8760
6d5e094a 8761 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8762 param with a local variable of the same name.
6d5e094a 8763 (i387_supply_xsave): Ditto.
e5b3d7d6 8764
5eee517d
MS
8765 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8766 that it does not shadow a function parameter.
8767
8fbf6b93
MS
8768 * i386-nat.c (i386_length_and_rw_bits): Document that case
8769 statement is meant to fall through.
8770
cb969d61
MS
8771 * expprint.c (dump_subexp_body_standard): Document that case
8772 statement is meant to fall through.
8773
f2c4ead5
MS
8774 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8775 dead if statement. Condition can't be false.
8776
b021a221
MS
87772011-02-25 Michael Snyder <msnyder@vmware.com>
8778
8779 * arm-tdep.c: Fix typos in comments.
8780 * bsd-uthread.c: Ditto.
8781 * completer.c: Ditto.
8782 * corelow.c: Ditto.
8783 * cp-namespace.c: Ditto.
8784 * cp-support.c: Ditto.
8785 * cris-tdep.c: Ditto.
8786 * dbxread.c: Ditto.
8787 * dwarf2read.c: Ditto.
8788 * frame.h: Ditto.
8789 * gdbtypes.h: Ditto.
8790 * inferior.h: Ditto.
8791 * mdebugread.c: Ditto.
8792 * mips-tdep.c: Ditto.
8793 * ppc-linux-nat.c: Ditto.
8794 * ppc-linux-tdep.c: Ditto.
8795 * printcmd.c: Ditto.
8796 * sol-thread.c: Ditto.
8797 * solib-frv.c: Ditto.
8798 * solist.h: Ditto.
8799 * sparc64-tdep.c: Ditto.
8800 * spu-tdep.c: Ditto.
8801 * stabsread.c: Ditto.
8802 * symfile.c: Ditto.
8803 * valops.c: Ditto.
8804 * varobj.c: Ditto.
8805 * vax-nat.c: Ditto.
8806 * python/py-block.c: Ditto.
8807 * python/py-symbol.c: Ditto.
8808 * python/py-symtab.c: Ditto.
8809 * python/py-value.c: Ditto.
8810 * tui/tui-win.c: Ditto.
8811
c82c0b55
MS
88122011-02-25 Michael Snyder <msnyder@vmware.com>
8813
8814 * inferior.c (print_inferior): Accept a string instead of an int
8815 for requested_inferiors, and use get_number_or_range to parse it.
8816 (info_inferiors_command): Pass args string to print_inferior.
8817 (initialize_inferiors): Change help string for info inferiors.
8818 * inferior.h (print_inferior): Export prototype change.
8819
ee00cd23
TT
88202011-02-25 Tom Tromey <tromey@redhat.com>
8821
8822 * common/ax.def (invalid2): Set to 0x31.
8823
0502ed8c
JK
88242011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8825
8826 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8827 L and plongest.
8828 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8829 use L and plongest.
8830 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8831
2c9de912
MS
88322011-02-24 Michael Snyder <msnyder@vmware.com>
8833
8834 * Makefile.in (clean): Make clean should remove generated files
8835 observer.h and observer.inc.
8836
a04b0428
JB
88372011-02-24 Joel Brobecker <brobecker@adacore.com>
8838
8839 Revert the following patch (not approved yet):
8840 2011-02-21 Hui Zhu <teawater@gmail.com>
8841 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8842 * ax-gdb.c (gen_printf_expr_callback): New function.
8843 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8844 * ax-general.c (ax_memcpy): New function.
8845 (ax_print): Handle "printf".
8846 (ax_reqs): Ditto.
8847 * ax.h (ax_memcpy): Forward declare.
8848 * common/ax.def (invalid2): Removed.
8849 (printf): New entry.
8850 * printcmd.c (printcmd.h): New include.
8851 (string_printf): New function.
8852 (ui_printf): Removed.
8853 (printf_command): Remove static. Call string_printf.
8854 (eval_command): Call string_printf.
8855 * printcmd.h: New file.
8856 * tracepoint.c (validate_actionline,
8857 encode_actions_1): handle printf_command.
8858
2b52013f
TT
88592011-02-23 Tom Tromey <tromey@redhat.com>
8860
8861 * ax-general.c (ax_pick): Add missing newline.
8862
e5a67952
MS
88632011-02-23 Michael Snyder <msnyder@vmware.com>
8864
8865 * breakpoint.c (breakpoint_1): Change first argument from an int
8866 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8867 breakpoints rather than just one. Use new function
e5a67952
MS
8868 'number_is_in_list' to implement.
8869 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8870 (watchpoints_info): Ditto.
8871 (tracepoints_info): Ditto.
8872 (maintenance_info_breakpoints): Ditto.
8873 (_initialize_breakpoint): Update help strings to reflect the fact
8874 that these functions can now take more than one argument.
8875 * cli/cli-utils.c (number_is_in_list): New function.
8876 * cli/cli-utils.h (number_is_in_list): Export.
8877
88782011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8879
8880 * memattr.c (mem_enable_command): Use get_number_or_range.
8881 (mem_disable_command): Ditto.
8882 (mem_delete_command): Ditto.
8883 (_initialize_mem): Tweak usage message to reflect multiple
8884 arguments.
8885
6e6fbe60
DE
88862011-02-22 Doug Evans <dje@google.com>
8887
8888 Add gdb.lookup_global_symbol python function.
8889 * NEWS: Add entry.
8890 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8891 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8892 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8893
79b97fa8
TT
88942011-02-22 Tom Tromey <tromey@redhat.com>
8895
8896 * language.c (language_class_name_from_physname): Rename
8897 'curr_language' argument to 'lang'; use in body.
8898
298f437a
MS
88992011-02-22 Michael Snyder <msnyder@vmware.com>
8900
8901 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8902
b7ea3126
PA
89032011-02-22 Pedro Alves <pedro@codesourcery.com>
8904
8905 * frame-unwind.h: Fix comment to mention the this frame, not the
8906 next.
8907
58ee6d60
TT
89082011-02-22 Tom Tromey <tromey@redhat.com>
8909
8910 * symfile.c (auto_solib_limit): Remove.
8911 * symfile.h (auto_solib_limit): Remove.
8912
36238dbc
JB
89132011-02-22 Joel Brobecker <brobecker@adacore.com>
8914
8915 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8916
aea5b279
MS
89172011-02-21 Michael Snyder <msnyder@vmware.com>
8918
8919 * gdbthread.h (print_thread_info): Change prototype.
8920 * thread.c (print_thread_info): Accept char* instead of int for
8921 requested_threads argument. Use new function number_is_in_list
8922 to determine which threads to list.
8923 (info_threads_command): Pass char* to print_thread_info.
8924 * cli/cli-utils.c (number_is_in_list): New function.
8925 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8926 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8927 print_thread_info.
8928 (print_one_inferior): Ditto.
8929 (mi_cmd_list_thread_groups): Ditto.
8930
8caa75ee
JK
89312011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 * common/Makefile.in (CFLAGS): New.
8934 (COMPILE): Add $(CFLAGS).
8935
ea666128
TT
89362011-02-21 Tom Tromey <tromey@redhat.com>
8937
8938 * breakpoint.c (catch_syscall_command_1): Fix typo.
8939
e9cafbcc
TT
89402011-02-21 Tom Tromey <tromey@redhat.com>
8941
8942 * reverse.c: Include cli-utils.h.
8943 * printcmd.c: Include cli-utils.h.
8944 (string_printf): Use skip_spaces.
8945 * cli/cli-utils.h: New file.
8946 * cli/cli-utils.c: New file.
8947 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8948 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8949 * breakpoint.h (get_number, get_number_or_range): Move to
8950 cli-utils.h.
8951 * breakpoint.c: Include cli-utils.h.
8952 (get_number_trailer, get_number, get_number_or_range)
8953 (ep_skip_leading_whitespace): Move to cli-utils.c.
8954 (create_breakpoint_sal, find_condition_and_thread)
8955 (decode_static_tracepoint_spec, watch_command_1)
8956 (watch_maybe_just_location, ep_parse_optional_if_clause)
8957 (catch_fork_command_1, catch_exec_command_1)
8958 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8959 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8960 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8961 (HFILES_NO_SRCDIR): Add cli-utils.h.
8962 (cli-utils.o): New target.
8963
f67fd822
PM
89642011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8965
8966 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8967 before calling discard_all_inferiors.
8968
c9def01d
UW
89692011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8970
8971 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8972 (struct builtin_opencl_type): Remove.
8973 (builtin_opencl_type): Change return type to "struct type **".
8974 (lookup_opencl_vector_type): Update caller.
8975 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8976 (build_opencl_types): Install plain array of "struct type *"
8977 instead of "struct builtin_opencl_type".
8978
e3039479
UW
89792011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8980 Ulrich Weigand <uweigand@de.ibm.com>
8981
8982 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8983 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8984 (struct arm_linux_hwbp_cap): New type.
8985 (arm_linux_get_hwbp_cap): New function.
8986 (arm_linux_get_hw_breakpoint_count): Likewise.
8987 (arm_linux_get_hw_watchpoint_count): Likewise.
8988 (arm_linux_can_use_hw_breakpoint): Likewise.
8989 (arm_hwbp_type): New type.
8990 (arm_hwbp_control_t): Likewise.
8991 (struct arm_linux_hw_breakpoint): Likewise.
8992 (struct arm_linux_thread_points): Likewise.
8993 (arm_threads): New global variable.
8994 (arm_linux_find_breakpoints_by_tid): New function.
8995 (arm_hwbp_control_initialize): Likewise.
8996 (arm_hwbp_control_is_enabled): Likewise.
8997 (arm_hwbp_control_disable): Likewise.
8998 (arm_linux_hw_breakpoint_initialize): Likewise.
8999 (arm_linux_get_hwbp_type): Likewise.
9000 (arm_linux_hw_watchpoint_initialize): Likewise.
9001 (arm_linux_hw_breakpoint_equal): Likewise.
9002 (arm_linux_insert_hw_breakpoint1): Likewise.
9003 (arm_linux_remove_hw_breakpoint1): Likewise.
9004 (arm_linux_insert_hw_breakpoint): Likewise.
9005 (arm_linux_remove_hw_breakpoint): Likewise.
9006 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9007 (arm_linux_insert_watchpoint): Likewise.
9008 (arm_linux_remove_watchpoint): Likewise.
9009 (arm_linux_stopped_data_address): Likewise.
9010 (arm_linux_stopped_by_watchpoint): Likewise.
9011 (arm_linux_watchpoint_addr_within_range): Likewise.
9012 (arm_linux_new_thread): Likewise.
9013 (arm_linux_thread_exit): Likewise.
9014 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9015 related target callbacks. Register arm_linux_new_thread and
9016 arm_linux_thread_exit.
9017 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9018 * arm-tdep.c (arm_pc_is_thumb): Make global.
9019 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9020
b5db5dfc
UW
90212011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9022
9023 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9024 per-frame locations while within a function epilogue.
9025
e25b2cfa
PM
90262011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9027
9028 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9029 to GNU coding standards.
9030
4af53f97
PM
90312011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9032
9033 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9034 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9035 (ser_windows_close): Only call CancelIo if function exists.
9036 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9037 to check for existence of CancelIo function in kernel32 DLL.
9038
d0e92d82
HZ
90392011-02-21 Hui Zhu <teawater@gmail.com>
9040
9041 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9042 * ax-gdb.c (gen_printf_expr_callback): New function.
9043 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9044 * ax-general.c (ax_memcpy): New function.
9045 (ax_print): Handle "printf".
9046 (ax_reqs): Ditto.
9047 * ax.h (ax_memcpy): Forward declare.
9048 * common/ax.def (invalid2): Removed.
9049 (printf): New entry.
9050 * printcmd.c (printcmd.h): New include.
9051 (string_printf): New function.
9052 (ui_printf): Removed.
9053 (printf_command): Remove static. Call string_printf.
9054 (eval_command): Call string_printf.
9055 * printcmd.h: New file.
9056 * tracepoint.c (validate_actionline,
9057 encode_actions_1): handle printf_command.
9058
7d357efd
MS
90592011-02-19 Michael Snyder <msnyder@vmware.com>
9060
9061 * reverse.c (delete_one_bookmark): Argument is now bookmark
9062 id rather than pointer to bookmark struct.
9063 (delete_bookmark_command): Use get_number_or_range.
9064 (goto_bookmark_command): Parse with get_number instead of strtoul.
9065 (bookmark_1): New function. Print info for one bookmark.
9066 (bookmarks_info): Use get_number_or_range and bookmark_1.
9067
7a45ebd7
MS
90682011-02-18 Michael Snyder <msnyder@vmware.com>
9069
f2eb0bc8 9070 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9071 get_number_or_range.
65ebfb52 9072 (thread_apply_command): Ditto.
7a45ebd7 9073
94d5e490
TT
90742011-02-18 Tom Tromey <tromey@redhat.com>
9075
9076 * common/ax.def: New file.
9077 * ax.h (enum agent_op): Use ax.def.
9078 * ax-general.c (aop_map): Use ax.def.
9079
c7f96d2b
TT
90802011-02-18 Tom Tromey <tromey@redhat.com>
9081
9082 * ax-general.c (aop_map): Add pick and rot.
9083 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9084 <DW_OP_rot>: Implement.
9085 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9086 (ax_pick): Declare.
9087 * ax-general.c (ax_pick): New function.
9088
66694b75
TT
90892011-02-18 Tom Tromey <tromey@redhat.com>
9090
9091 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9092
eeaafae2
JK
90932011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9094 Tom Tromey <tromey@redhat.com>
9095
9096 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9097 make_symbol_overload_list_block with NULL BLOCK.
9098 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9099
3c3fe74c
PA
91002011-02-18 Pedro Alves <pedro@codesourcery.com>
9101
9102 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9103 * breakpoint.h (get_number_or_range): Declare.
9104 * printcmd.c (ALL_DISPLAYS): Declare.
9105 (delete_display): Reimplement taking a display pointer.
9106 (undisplay_command): Accept a range of displays to delete, using
9107 get_number_or_range.
9108
13163d80
PM
91092011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9110
9111 * c-valprint.c (c_val_print): Add embedded_offset to address
9112 for arrays of unspecified length.
9113 * p-valprint.c (pascal_val_print): Likewise.
9114
b434a28f
YQ
91152011-02-18 Yao Qi <yao@codesourcery.com>
9116
9117 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9118 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9119 (thumb_process_displaced_insn): New.
9120 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9121 call to arm_process_displaced_insn.
9122 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9123
9f6f94ff
TT
91242011-02-17 Tom Tromey <tromey@redhat.com>
9125
9126 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9127 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9128 compile_dwarf_to_ax. No longer static. Call
9129 dwarf2_compile_cfa_to_ax.
9130 (locexpr_tracepoint_var_ref): Update.
9131 (loclist_tracepoint_var_ref): Update.
9132 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9133 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9134 argument; add 'gdbarch' and 'pc'.
9135 (dwarf2_compile_cfa_to_ax): New function.
9136 (dwarf2_frame_cache): Update.
9137
e67ad678
JB
91382011-02-17 Joel Brobecker <brobecker@adacore.com>
9139
9140 * ada-lang.c (ada_type_of_array): Fix the size of the array
9141 in the case of an unconstrained packed array.
9142
946ebb0d
YQ
91432011-02-17 Yao Qi <yao@codesourcery.com>
9144
9145 * common/Makefile.in: Add more targets for make.
9146
1ba1b353
TT
91472011-02-16 Tom Tromey <tromey@redhat.com>
9148
9149 * dwarf2loc.c (unimplemented): Fix typo.
9150
b1bfef65
TT
91512011-02-16 Tom Tromey <tromey@redhat.com>
9152
9153 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9154 (compile_dwarf_to_ax) <default>: Use unimplemented.
9155 <DW_OP_deref>: Update.
9156 (disassemble_dwarf_expression): Update.
9157 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9158 (decode_locdesc): Update.
9159 * dwarf2expr.h (dwarf_stack_op_name): Update.
9160
5f1e6f19
TT
91612011-02-16 Tom Tromey <tromey@redhat.com>
9162
9163 * ax.h (struct aop_map) <name>: Now const.
9164
a0c78a73
PA
91652011-02-16 Tom Tromey <tromey@redhat.com>
9166
9167 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9168 than axs_rvalue.
9169
946ebb0d 91702011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9171
9172 * infrun.c (get_displaced_step_closure_by_addr): New.
9173 * inferior.h: Declare it.
9174 * arm-tdep.c: (arm_pc_is_thumb): Call
9175 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9176 returns non-NULL.
9177
08807d5a
PA
91782011-02-16 Pedro Alves <pedro@codesourcery.com>
9179 Jan Kratochvil <jan.kratochvil@redhat.com>
9180
9181 gdb/
9182 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9183
29976f3f
PA
91842011-02-16 Pedro Alves <pedro@codesourcery.com>
9185 Jan Kratochvil <jan.kratochvil@redhat.com>
9186
9187 * value.c (value_contents_copy_raw): Extend describing comment.
9188 Assert that the destination contents we're overwriting are wholly
9189 available.
fb68ae73 9190 (value_contents_copy): Extend describing comment.
29976f3f 9191
cd24cfaa
PA
91922011-02-16 Pedro Alves <pedro@codesourcery.com>
9193 Jan Kratochvil <jan.kratochvil@redhat.com>
9194
9195 * value.c (value_available_contents_eq): Remove redundant local
9196 variables. Fix available contents comparision.
9197 * value.h (value_available_contents_eq): Extend describing
9198 comment.
9199
60bbf338
YQ
92002011-02-16 Yao Qi <yao@codesourcery.com>
9201
9202 * thread.c (info_threads_command): Add missing i18n markup and remove
9203 trailing newline.
9204
17450429
PP
92052011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9206
9207 * breakpoint.c (longjmp_names): New variable.
9208 (struct breakpoint_objfile_data): New type.
9209 (breakpoint_objfile_key): New variable.
9210 (msym_not_found): New variable.
9211 (msym_not_found_p): New predicate.
9212 (get_breakpoint_objfile_data): New function.
9213 (create_overlay_event_breakpoint): Check per-objfile cache for
9214 symbols first.
9215 (create_longjmp_master_breakpoint): Likewise.
9216 (create_std_terminate_master_breakpoint): Likewise.
9217 (create_exception_master_breakpoint): Likewise.
9218 (_initialize_breakpoint): Register per-objfile data key.
9219
af02033e
PP
92202011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9221
9222 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9223 parameter value.
9224 (create_longjmp_master_breakpoint): Loop over longjmp names.
9225 (create_std_terminate_master_breakpoint): Const-propagate parameter
9226 value.
9227 (update_breakpoints_after_exec): Adjust.
9228 (breakpoint_re_set): Adjust.
9229
60f98dde
MS
92302011-02-15 Michael Snyder <msnyder@vmware.com>
9231
cdf99611
MS
9232 * thread.c (info_threads_command): Process arg as thread id,
9233 or list of thread ids.
9234 (thread_find_command): New command.
9235 (_initialize_thread): Document argument for info threads.
9236 Document 'thread find' command.
9237 * NEWS: Document new command "thread find".
60f98dde 9238
0feedb2c
JK
92392011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9240
9241 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9242 * aclocal.m4: Regenerated with aclocal-1.11.1.
9243 * common/configure: Regenerate with autoconf-2.64.
9244
648cd113
KW
92452011-02-15 Ken Werner <ken.werner@de.ibm.com>
9246
9247 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9248 bool data type to a size of one byte.
9249
5657161f
PA
92502011-02-15 Pedro Alves <pedro@codesourcery.com>
9251 Jan Kratochvil <jan.kratochvil@redhat.com>
9252
9253 * target.c (memory_xfer_live_readonly_partial): Document where to
9254 look for interface description.
9255
494e194e
YQ
92562011-02-15 Yao Qi <yao@codesourcery.com>
9257
9258 PR tdep/12352
9259 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9260 order to store PC value on stack instead of text section.
9261
d9492458
TJB
92622011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9263
9264 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9265 the EFP register set size.
9266 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9267 data from the VMX register.
9268 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9269 and write data from/to the VMX register.
9270
cdf99611
MS
92712011-02-14 Michael Snyder <msnyder@vmware.com>
9272
9273 * command.h (enum command_class): New class 'no_set_class', for
9274 "show" commands without a corresponding "set" command.
9275 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9276 * copying.c (_initialize_copying): Ditto for "show copying" and
9277 "show warranty".
9278 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9279 "show version".
9280 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9281 which there is no corresponding "set" command (eg. "show copying").
9282
424447ee
PA
92832011-02-14 Pedro Alves <pedro@codesourcery.com>
9284 Jan Kratochvil <jan.kratochvil@redhat.com>
9285
9286 * exec.c (section_table_available_memory): Change `len' parameter
9287 type to ULONGEST.
9288 * exec.h (section_table_available_memory): Ditto.
9289 * value.h (read_value_memory): Rename the `offset' parameter to
9290 `embedded_offset'.
9291
c0f61f9c 92922011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9293 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9294
9295 * memrange.c (compare_mem_ranges): Mention sort order in
9296 describing comment.
9297 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9298 * tracepoint.c (traceframe_available_memory): Extend comment to
9299 mention what happens to RESULT when the target does not support
9300 the query.
9301
6bfc80c7
PA
93022011-02-14 Pedro Alves <pedro@codesourcery.com>
9303 Jan Kratochvil <jan.kratochvil@redhat.com>
9304
9305 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9306 range.
9307
e7303042
PA
93082011-02-14 Pedro Alves <pedro@codesourcery.com>
9309
9310 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9311 No longer handle NULL values.
9312
8af8e3bc
PA
93132011-02-14 Pedro Alves <pedro@codesourcery.com>
9314
9315 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9316 * value.c: Include "exceptions.h".
9317 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9318 generic error.
9319 * cp-abi.c: Include gdb_assert.h.
9320 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9321 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9322 errors.
9323 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9324 parameters. No longer returns -1 on error.
9325 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9326 `val' parameters.
9327 * cp-valprint.c: Include exceptions.h.
9328 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9329 the baseclass_offset. Handle unavailable base classes. Use
9330 val_print_invalid_address.
9331 * p-valprint.c: Include exceptions.h.
9332 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9333 when fetching the baseclass_offset. No longer expect
9334 baseclass_offset returning -1. Handle unavailable base classes.
9335 Use val_print_invalid_address.
9336 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9337 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9338 `embedded_offset' and `val' parameters. Adjust.
9339 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9340 parameter, and change its type to gdb_byte pointer. Add
9341 `embedded_offset' and `val' parameters. Adjust. No longer expect
9342 baseclass_offset returning -1.
9343 (value_dynamic_cast): Use value_contents_for_printing rather than
9344 value_contents. Adjust.
9345 (search_struct_field): No longer expect baseclass_offset returning
9346 -1.
9347 (search_struct_method): If reading memory from the target is
9348 necessary, wrap it in a new value to pass to baseclass_offset. No
9349 longer expect baseclass_offset returning -1.
9350 (find_method_list): No longer expect baseclass_offset returning
9351 -1. Use value_contents_for_printing rather than value_contents.
9352 * valprint.c (val_print_invalid_address): New function.
9353 * valprint.h (val_print_invalid_address): Declare.
9354 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9355 and `val' parameters. No longer expect baseclass_offset returning
9356 -1. Adjust.
9357 * gnu-v2-abi.c: Include "exceptions.h".
9358 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9359 parameters. Handle unavailable memory. Recurse through
9360 gnuv2_baseclass_offset directly, rather than through
9361 baseclass_offset. No longer returns -1 on not found, instead
9362 throw an error.
9363 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9364 `val' parameters. Adjust.
9365
1b28d0b3
PA
93662011-02-14 Pedro Alves <pedro@codesourcery.com>
9367
9368 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9369 almost but not quite adjacent.
9370
ec0a52e1
PA
93712011-02-14 Pedro Alves <pedro@codesourcery.com>
9372
9373 * value.h (value_entirely_available): Declare.
9374 * value.c (value_entirely_available): New function.
9375 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9376 real type if the pointer is unavailable.
9377
24e6bcee
PA
93782011-02-14 Pedro Alves <pedro@codesourcery.com>
9379
9380 * valops.c (value_repeat): Use read_value_memory instead of
9381 read_memory.
9382
39d37385
PA
93832011-02-14 Pedro Alves <pedro@codesourcery.com>
9384
9385 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9386 * value.c (value_contents_copy_raw, value_contents_copy): New
9387 functions.
9388 (value_primitive_field): Use value_contents_copy_raw instead of
9389 memcpy.
9390 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9391 memcpy.
9392 (value_array, value_slice): Ditto.
9393 * valarith.c (value_subscripted_rvalue): Use
9394 value_contents_copy_raw instead of memcpy.
9395
a3d34bf4
PA
93962011-02-14 Pedro Alves <pedro@codesourcery.com>
9397
9398 <unavailable> references.
9399
9400 * valops.c (get_value_at): Use value_from_contents_and_address,
9401 avoiding read_memory.
9402
9fc6d940
PA
94032011-02-14 Pedro Alves <pedro@codesourcery.com>
9404
9405 * c-valprint.c (c_val_print): Print a string with unavailable
9406 contents as an array.
9407
5467c6c8
PA
94082011-02-14 Pedro Alves <pedro@codesourcery.com>
9409
9410 * value.h (unpack_bits_as_long): Delete declaration.
9411 (unpack_value_bits_as_long): Declare.
9412 (unpack_value_field_as_long): Declare.
9413 (value_field_bitfield): Declare.
9414 * value.c (unpack_bits_as_long): Rename to...
9415 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9416 value parameters. Return the extracted result in a new output
9417 parameter. If the value contents are unavailable, return false,
9418 otherwise return true.
9419 (unpack_value_bits_as_long): New.
9420 (unpack_field_as_long): Rename to...
9421 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9422 Add embedded_offset and value parameters. Return the extracted
9423 result in a new output parameter. If the value contents are
9424 unavailable, return false, otherwise return true.
9425 (unpack_value_field_as_long): New.
9426 (unpack_field_as_long_1): New.
9427 (unpack_field_as_long): Reimplement as wrapper around
9428 unpack_value_field_as_long_1.
9429 (value_field_bitfield): New function.
9430 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9431 unpack_value_bits_as_long. Mark the value as unavailable, if it
9432 is unavailable.
9433 * jv-valprint.c (java_print_value_fields): Use
9434 value_field_bitfield.
9435 * p-valprint.c (pascal_object_print_value_fields): Use
9436 value_field_bitfield.
9437 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9438
3158c6ed
PA
94392011-02-14 Pedro Alves <pedro@codesourcery.com>
9440
9441 * value.c (get_internalvar_integer): Also return the int value of
9442 TYPE_CODE_INT INTERNALVAR_VALUE values.
9443 (set_internalvar): Don't special case TYPE_CODE_INT.
9444
9fbdca0d
PA
94452011-02-14 Pedro Alves <pedro@codesourcery.com>
9446
9447 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9448 INTERNALVAR_POINTER.
9449 <pointer>: Delete.
9450 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9451 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9452 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9453
c8c1c22f
PA
94542011-02-14 Pedro Alves <pedro@codesourcery.com>
9455
9456 * value.h (value_available_contents_eq): Declare.
9457 * value.c (find_first_range_overlap): New function.
9458 (value_available_contents_eq): New function.
9459 * valprint.c (val_print_array_elements): Use
9460 value_available_contents_eq.
9461 * ada-valprint.c (val_print_packed_array_elements): Use
9462 value_available_contents_eq.
9463 * jv-valprint.c (java_value_print): Use
9464 value_available_contents_eq.
9465
e6e4e701
PA
94662011-02-14 Pedro Alves <pedro@codesourcery.com>
9467
9468 * target.c (target_read_live_memory): New function.
9469 (memory_xfer_live_readonly_partial): New.
9470 (memory_xfer_partial): If reading from a traceframe, fallback to
9471 reading unavailable read-only memory from read-only regions of
9472 live target memory.
9473 * tracepoint.c (disconnect_tracing): Adjust.
9474 (set_current_traceframe): New, factored out from
9475 set_traceframe_number.
9476 (set_traceframe_number): Reimplement to only change the traceframe
9477 number on the GDB side.
9478 (do_restore_current_traceframe_cleanup): Adjust.
9479 (make_cleanup_restore_traceframe_number): New.
9480 (cur_traceframe_number): New global.
9481 (tfile_open): Set cur_traceframe_number to no traceframe.
9482 (set_tfile_traceframe): New function.
9483 (tfile_trace_find): If looking up a traceframe using any method
9484 other than by number, make sure the current tfile traceframe
9485 matches gdb's current traceframe. Update the current tfile
9486 traceframe if the lookup succeeded.
9487 (tfile_fetch_registers, tfile_xfer_partial)
9488 (tfile_get_trace_state_variable_value): Make sure the remote
9489 traceframe matches gdb's current traceframe.
9490 * remote.c (remote_traceframe_number): New global.
9491 (remote_open_1): Set it to -1.
9492 (set_remote_traceframe): New function.
9493 (remote_fetch_registers, remote_store_registers)
9494 (remote_xfer_memory, remote_xfer_partial)
9495 (remote_get_trace_state_variable_value): Make sure the remote
9496 traceframe matches gdb's current traceframe.
9497 (remote_trace_find): If looking up a traceframe using any method
9498 other than by number, make sure the current remote traceframe
9499 matches gdb's current traceframe. Update the current remote
9500 traceframe if the lookup succeeded.
9501 * infrun.c (fetch_inferior_event): Adjust.
9502 * tracepoint.h (set_current_traceframe): Declare.
9503 (get_traceframe_number, set_traceframe_number): Add describing
9504 comments.
9505
e6ca34fc
PA
95062011-02-14 Pedro Alves <pedro@codesourcery.com>
9507
9508 Mark pieces of values as unavailable if the corresponding memory
9509 is unavailable.
9510
9511 * valops.c: Include tracepoint.h.
9512 (value_fetch_lazy): Use read_value_memory.
9513 (read_value_memory): New.
9514 * value.h (read_value_memory): Declare.
9515 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9516 * exec.c (section_table_available_memory): New function.
9517 * exec.h (section_table_available_memory): Declare.
9518
2a7498d8
PA
95192011-02-14 Pedro Alves <pedro@codesourcery.com>
9520
9521 * Makefile.in (SFILES): Add memrange.c.
9522 (HFILES_NO_SRCDIR): Add memrange.h.
9523 (COMMON_OBS): Add memrange.o.
9524 * memrange.c: New file.
9525 * memrange.h: New file.
9526 * tracepoint.c: Include memrange.h.
9527 (struct mem_range): Delete.
9528 (mem_range_s): Delete.
9529 (traceframe_available_memory): New function.
9530 * tracepoint.h (traceframe_available_memory): Declare.
9531
b3b9301e
PA
95322011-02-14 Pedro Alves <pedro@codesourcery.com>
9533
9534 * target.h (struct traceframe_info): Forward declare.
9535 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9536 (struct target_ops) <to_traceframe_info>: New field.
9537 (target_traceframe_info): New.
9538 * target.c (update_current_target): Inherit and default
9539 to_traceframe_info.
9540 * remote.c (PACKET_qXfer_traceframe_info): New.
9541 (remote_protocol_features): Register qXfer:traceframe-info:read.
9542 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9543 (remote_traceframe_info): New.
9544 (init_remote_ops): Install it.
9545 (_initialize_remote): Install "set/show remote traceframe-info"
9546 commands.
9547 * tracepoint.h (parse_traceframe_info): Declare.
9548 * tracepoint.c (struct mem_range): New.
9549 (mem_range_s): New typedef.
9550 (struct traceframe_info): New.
9551 (traceframe_info): New global.
9552 (free_traceframe_info): New function.
9553 (clear_traceframe_info): New function.
9554 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9555 info.
9556 (build_traceframe_info): New function.
9557 (tfile_traceframe_info): New function.
9558 (init_tfile_ops): Install tfile_traceframe_info.
9559 (traceframe_info_start_memory, free_result): New functions.
9560 (memory_attributes, traceframe_info_elements): New globals.
9561 (parse_traceframe_info, get_traceframe_info): New functions.
9562 * features/traceframe-info.dtd: New file.
9563 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9564
4e07d55f
PA
95652011-02-14 Pedro Alves <pedro@codesourcery.com>
9566
9567 Base support for <unavailable> value contents.
9568
4e07d55f
PA
9569 * value.h (value_bytes_available): Declare.
9570 (mark_value_bytes_unavailable): Declare.
9571 * value.c (struct range): New struct.
9572 (range_s): New typedef.
9573 (ranges_overlap): New function.
9574 (range_lessthan): New function.
9575 (ranges_contain_p): New function.
9576 (struct value) <unavailable>: New field.
9577 (value_bytes_available): New function.
9578 (mark_value_bytes_unavailable): New function.
9579 (require_not_optimized_out): Constify parameter.
9580 (require_available): New function.
9581 (value_contents_all, value_contents): Require all bytes be
9582 available.
9583 (value_free): Free `unavailable'.
9584 (value_copy): Copy `unavailable'.
9585 * valprint.h (val_print_unavailable): Declare.
9586 * valprint.c (valprint_check_validity): Rename `offset' parameter
9587 to `embedded_offset'. If printing a scalar, check whether the
9588 value chunk is available.
9589 (val_print_unavailable): New.
9590 (val_print_scalar_formatted): Check whether the value is
9591 available.
9592 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9593 pretty-printing unavailable values.
9594
bc9a5551
JK
95952011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9596
9597 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9598 * c-typeprint.c (c_type_print_args): Update the function comment. New
9599 variable param_type, initialize it. Remove const/volatile qualifiers
9600 for language_cplus and !show_artificial. Use param_type.
9601
93b55aa1
JK
96022011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9603
9604 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9605 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9606 * symtab.h (struct symtab) <next>: Comment extension.
9607
181d9476
YQ
96082011-02-12 Yao Qi <yao@codesourcery.com>
9609
9610 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9611
b708a5c7
JK
96122011-02-11 Yao Qi <yao@codesourcery.com>
9613
9614 * common/Makefile.in: Add copyright header.
9615
c5187ac6
PA
96162011-02-11 Pedro Alves <pedro@codesourcery.com>
9617
9618 * infrun.c (proceed): Move switching out and in of tfind mode from
9619 here ...
9620 (fetch_inferior_event): ... to here.
9621
4f3e6fb7
YQ
96222011-02-11 Yao Qi <yao@codesourcery.com>
9623
9624 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9625 libcommon.a.
9626 * configure.ac: Add common to sub dir.
9627 * configure: Regenerate.
9628
b708a5c7
JK
96292011-02-11 Yao Qi <yao@codesourcery.com>
9630
9631 Build libcommon.a.
9632
9633 * common/Makefile.in: New.
9634 * common/configure.ac: New.
9635 * common/aclocal.m4: New.
9636 * common/configure: Generate.
9637
2287cc7e
PA
96382011-02-10 Pedro Alves <pedro@codesourcery.com>
9639
9640 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9641 side of the parenthesis.
9642
9643 Merge from GCC:
9644 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9645 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9646
fd62cb89
MS
96472011-02-08 Michael Snyder <msnyder@vmware.com>
9648
9649 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9650
56d2815c
JK
96512011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9652
9653 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9654 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9655 psubd and paddd.
9656
4f7d61a8
JK
96572011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9658
9659 PR 12361.
9660 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9661 phsubsw.
9662 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9663 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9664
54fcddd0
UW
96652011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9666
9667 * dwarf2read.c (read_subroutine_type): Set special calling
9668 convention flag for functions compiled by IBM XL C for OpenCL.
9669 * ppc-sysv-tdep.c: Include "dwarf2.h"
9670 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9671 calling convention.
9672 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9673 IBM OpenCL vector types calling convention.
9674 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9675 (ppc_sysv_abi_broken_return_value): Likewise.
9676 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9677 types calling convention.
9678 (ppc64_sysv_abi_return_value): Likewise.
9679 * spu-tdep.c: Include "dwarf2.h"
9680 (spu_return_value): Implement IBM OpenCL vector types calling
9681 convention.
9682
d6dafb7c
UW
96832011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9684
9685 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9686 correct ABI for AltiVec vector arguments.
9687
32b72a42
PA
96882011-02-07 Pedro Alves <pedro@codesourcery.com>
9689
9690 * valprint.c (val_print): Extend comment.
9691 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9692 interface explanation to val_print.
9693 (ada_val_print_array): Adjust comment to current interface.
9694 (print_field_values): Adjust comment to current interface.
9695 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9696 explanation to val_print.
9697 * f-valprint.c (f_val_print): Ditto.
9698 * jv-valprint.c (java_val_print): Ditto.
9699 * m2-valprint.c (m2_val_print): Ditto.
9700 * p-valprint.c (pascal_val_print): Ditto.
9701
9998af43
TJB
97022011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9703
9704 * breakpoint.c (parse_breakpoint_sals): Fix description.
9705
505500db 97062011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9707 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9708
9709 * python/py-inferior.c (python_on_normal_stop): New function.
9710 (python_on_resume): New function.
9711 (python_inferior_exit): New function.
9712 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9713 inferior_exit observers.
9714 * python/py-evtregistry.c: New file.
9715 * python/py-threadevent.c : New file.
9716 * python/py-event.c: New file.
9717 * python/py-evts.c: New file.
9718 * python/py-continueevent.c: New file.
9719 * python/py-bpevent.c: New file.
9720 * python/py-signalevent.c: New file.
9721 * python/py-exetiedevent.c: New file.
9722 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9723 Move struct breakpoint_object from here...
9724 * python/python-internal.h: ... to here.
9725 * python/py-event.h: New file.
9726 * python/py-events.h: New file.
9727 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9728 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9729 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9730 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9731 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9732 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9733 Add build rules for all the above.
9734
9e0ac564
TT
97352011-02-04 Tom Tromey <tromey@redhat.com>
9736
9737 * dwarf2read.c (dwarf2_section_empty_p): New function.
9738 (dwarf2_read_section): Use dwarf2_section_empty_p.
9739 (dwarf2_section_size): New function.
9740 (dwarf2_get_section_info): Unconditionally read section.
9741 (dwarf2_read_index): Use dwarf2_section_empty_p.
9742 (partial_read_comp_unit_head): Use dwarf2_section_size.
9743 (dwarf2_symbol_mark_computed): Likewise.
9744
eee5b35e
DD
97452011-02-04 David Daney <ddaney@caviumnetworks.com>
9746
9747 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9748
385203ed
DD
97492011-02-04 David Daney <ddaney@caviumnetworks.com>
9750
9751 * mips-linux-tdep.c: Include xml-syscall.h.
9752 (mips_linux_get_syscall_number): New function.
9753 (mips_linux_init_abi): Add calls to
9754 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9755 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9756 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9757 * syscalls/mips-n32-linux.xml: New file.
9758 * syscalls/mips-n64-linux.xml: New file.
9759 * syscalls/mips-o32-linux.xml: New file.
9760
9277c30c
UW
97612011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9762
9763 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9764 Complain about inverted range entries.
9765 (dwarf2_record_block_ranges): Likewise.
9766
a3be7890
TJB
97672011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9768
9769 Fix some typos.
9770 * breakpoint.c (update_watchpoint): Fix name of the
9771 update_global_location_list function.
9772 (print_one_breakpoint): Fix typo.
9773 (_initialize_breakpoint): Remove extra space in hbreak help
9774 string.
9775 * breakpoint.h (struct bp_location) <length>: Fix field
9776 description.
9777
041274d8
PA
97782011-02-04 Pedro Alves <pedro@codesourcery.com>
9779
9780 * regcache.c (registers_changed_ptid): Don't explictly always
9781 clear `current_regcache'. Only clear current_thread_ptid and
9782 current_thread_arch when PTID matches. Only reinit the frame
9783 cache if PTID matches the current inferior_ptid. Move alloca(0)
9784 call to ...
9785 (registers_changed): ... here.
9786
c1c2ab58
UW
97872011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9788
9789 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9790 starts with __stack_chk_guard as stack guard symbol.
9791
9011945e
AB
97922011-02-03 Andrew Burgess <aburgess@broadcom.com>
9793
9794 * disasm.c (compare_lines): Handle the end of sequence markers
9795 within the line table to better support disassembling over
9796 compilation unit boundaries.
9797
e0634ccf
UW
97982011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9799
9800 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9801 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9802 implementation even if no symbols are available.
9803 (thumb_analyze_prologue): Update call to skip_prologue_function.
9804 (arm_analyze_prologue): Likewise.
9805
0e9e9abd
UW
98062011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9807
9808 * arm-tdep.c: Include "observer.h".
9809 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9810 (arm_exidx_data_key): New static variable.
9811 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9812 (struct arm_exidx_data): Likewise.
9813 (arm_exidx_data_free): New function.
9814 (arm_compare_exidx_entries): Likewise.
9815 (arm_obj_section_from_vma): Likewise.
9816 (arm_exidx_new_objfile): Likewise.
9817 (arm_find_exidx_entry): Likewise.
9818 (arm_exidx_fill_cache): Likewise.
9819 (arm_exidx_unwind_sniffer): Likewise.
9820 (arm_exidx_unwind): New global variable.
9821 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9822 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9823 observer. Register arm_exidx_data_key as objfile data.
9824
2e9e421f
UW
98252011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9826
9827 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9828 due to accessing uninitialized variable. Fix indentation.
9829
580688f3
PA
98302011-02-02 Pedro Alves <pedro@codesourcery.com>
9831
9832 * c-valprint.c (c_value_print): When doing virtual base pointer
9833 adjustment, create a new value with adjusted contents rather than
9834 changing the contents of the value being printed (and getting it
9835 wrong).
9836
3d2c1d41
PA
98372011-02-02 Pedro Alves <pedro@codesourcery.com>
9838
9839 * xml-support.c (xml_find_attribute): New.
9840 (xinclude_start_include): Use it.
9841 * xml-support.h (xml_find_attribute): Declare.
9842 * memory-map.c (memory_map_start_memory)
9843 (memory_map_start_property): Use xml_find_attribute.
9844 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9845 xml_find_attribute.
9846 * remote.c (start_thread): Use xml_find_attribute.
9847 * solib-target.c (library_list_start_segment)
9848 (library_list_start_section, library_list_start_library)
9849 (library_list_start_list): Use xml_find_attribute.
9850 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9851 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9852 (tdesc_start_field): Use xml_find_attribute.
9853
0af3e2db
UW
98542011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9855
9856 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9857 (BUILD_OCL_VTYPES): Update.
9858
c1039e3c
JB
98592011-02-02 Joel Brobecker <brobecker@adacore.com>
9860
9861 * configure.ac: Work around non-GNU sed limitation when computing
9862 python version number.
9863 * configure: Regenerate.
9864
600ea1be
JK
98652011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9866
9867 Fix debug printing of TYPE_INSTANCE.
9868 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9869 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9870
56c12414
JK
98712011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9872
9873 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9874 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9875 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9876 * ada-operator.inc: Rename the file to ...
9877 * ada-operator.def: ... here, wrap all the entries by macro OP.
9878 * expprint.c (op_name_standard): Remove all the entries. Include
9879 "std-operator.def" instead.
9880 * expression.h (enum exp_opcode): Include "std-operator.def" and
9881 "ada-operator.def". Move all the entries ...
9882 * std-operator.def: ... here, wrap all the entries by macro OP.
9883
c52b559d
PP
98842011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9885
9886 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9887 * breakpoint.c (remove_jit_event_breakpoints): New function.
9888 * jit.c (jit_descriptor_addr): Delete.
9889 (registering_code): Delete.
9890 (clear_int): Delete.
9891 (jit_inferior_data): New variable.
9892 (struct jit_inferior_data): New type.
9893 (get_jit_inferior_data): New function.
9894 (jit_inferior_data_cleanup): New function.
9895 (jit_read_descriptor): Adjust.
9896 (jit_register_code): Adjust.
9897 (jit_breakpoint_re_set_internal): New function; move code here ...
9898 (jit_inferior_init): ... from here.
9899 (jit_breakpoint_re_set): Adjust.
9900 (jit_reset_inferior_data_and_breakpoints): New function.
9901 (jit_inferior_created_observer): Adjust.
9902 (jit_inferior_exit_hook): Adjust.
9903 (jit_executable_changed_observer): New function.
9904 (jit_event_handler): Adjust.
9905 (_initialize_jit): Adjust.
9906
e839132d
MS
99072011-01-31 Michael Snyder <msnyder@vmware.com>
9908
9909 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9910 line.
9911
47a80e90
TT
99122011-01-31 Tom Tromey <tromey@redhat.com>
9913
9914 PR python/12216:
9915 * python/python.c (execute_gdb_command): Call
9916 prevent_dont_repeat.
9917 * top.c (suppress_dont_repeat): New global.
9918 (dont_repeat): Use it.
9919 (prevent_dont_repeat): New function.
9920 * command.h (prevent_dont_repeat): Declare.
9921
45a43567
TT
99222011-01-31 Tom Tromey <tromey@redhat.com>
9923
9924 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9925 * python/py-breakpoint.c (bppy_set_silent): Use
9926 breakpoint_set_silent.
9927 (bppy_set_thread): Use breakpoint_set_thread.
9928 (bppy_set_task): Use breakpoint_set_task.
9929 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9930 (breakpoint_set_task): Declare.
9931 (make_breakpoint_silent): Remove.
9932 * breakpoint.c (breakpoint_set_silent): New function.
9933 (breakpoint_set_thread): Likewise.
9934 (breakpoint_set_task): Likewise.
9935 (make_breakpoint_silent): Remove.
9936
09d682a4
TT
99372011-01-31 Tom Tromey <tromey@redhat.com>
9938
9939 * breakpoint.h (user_breakpoint_p): Declare.
9940 * breakpoint.c (user_breakpoint_p): New function.
9941 (breakpoint_1): Use it.
9942 (save_breakpoints): Likewise.
9943
9c4ea6c5
JB
99442011-01-31 Joel Brobecker <brobecker@adacore.com>
9945
9946 * configure.ac: Add handling of Python distribution on Windows.
9947 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9948 sysconfig variables are not defined, then do not use them.
9949 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9950 instead. On Windows, return all paths using forward-slashes
9951 rather than backslashes.
9952
ac534cba
JB
99532011-01-31 Joel Brobecker <brobecker@adacore.com>
9954
9955 * configure.ac: Remove fallback behavior for building
9956 against Python. Remove tweaking of Python include path.
9957 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9958 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9959 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9960 Always restore CPPFLAGS and LIBS after linking test.
9961 * configure: Regenerated.
9962 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9963 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9964 * python/python-internal.h: Adjust includes of Python .h files.
9965
c2f0d045
JB
99662011-01-31 Joel Brobecker <brobecker@adacore.com>
9967
9968 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9969 in error message.
9970
6b0c4c1f
JB
99712011-01-31 Joel Brobecker <brobecker@adacore.com>
9972
9973 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9974 value test.
9975
672c9795
YQ
99762011-01-31 Yao Qi <yao@codesourcery.com>
9977
9978 * arm-linux-nat.c: Update calls to regcache_register_status
9979 instead of regcache_valid_p.
9980 * aix-thread.c: Likewise.
9981 * i386gnu-nat.c: Likewise.
9982
80b23b6a
JK
99832011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9984
9985 Fix crash.
9986 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9987 touching TYPE_FIELD_ARTIFICIAL.
9988
4cd712bd
RE
99892011-01-28 Richard Earnshaw <rearnsha@arm.com>
9990
9991 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9992 Committers.
9993
ffd5ec24
PA
99942011-01-28 Pedro Alves <pedro@codesourcery.com>
9995
9996 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9997 selected, don't try iterating over the traceframe's blocks.
9998 (tfile_has_stack): If there's no traceframe selected, then there's
9999 no stack.
10000 (tfile_has_registers): If there's no traceframe selected, then
10001 there's no registers.
10002
e8c9e0a1
PA
100032011-01-28 Pedro Alves <pedro@codesourcery.com>
10004
10005 * target.c (memory_xfer_partial): No need to restore shadows if we
10006 haven't read anything.
10007
de15c4ab
PA
100082011-01-28 Pedro Alves <pedro@codesourcery.com>
10009
10010 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10011 and val_print_scalar_formatted.
10012
9f41c731
PA
100132011-01-27 Pedro Alves <pedro@codesourcery.com>
10014
10015 * tracepoint.c (tfile_read): New.
10016 (tfile_open): Use it.
10017 (tfile_get_traceframe_address): Use it.
10018 (tfile_trace_find): Use it.
10019 (walk_blocks_callback_func): New typedef.
10020 (match_blocktype): New function.
10021 (traceframe_walk_blocks): New function.
10022 (traceframe_find_block_type): New function.
10023 (tfile_fetch_registers, tfile_xfer_partial)
10024 (tfile_get_trace_state_variable_value): Use
10025 traceframe_find_block_type and tfile_read.
10026
cdefc55d
KB
100272011-01-26 Kevin Buettner <kevinb@redhat.com>
10028
10029 * remote-mips.c: Add internationalization mark ups. Remove
10030 trailing \n from already marked up strings.
10031
a81766d8
TT
100322011-01-26 Tom Tromey <tromey@redhat.com>
10033
10034 * python/py-prettyprint.c (print_string_repr): Clear
10035 'addressprint' option when calling val_print_string.
10036 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10037 option when calling val_print_string.
10038
74aedc46
TT
100392011-01-26 Tom Tromey <tromey@redhat.com>
10040
10041 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10042 GDB_PY_LL_ARG.
10043 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10044 macros.
10045 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10046 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10047 (gdb_py_long_as_ulongest): New defines.
10048 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10049 (gdb_py_int_as_long): Declare.
10050 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10051 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10052 (valpy_long): Add comment.
10053 * python/py-utils.c (get_addr_from_python): Use
10054 gdb_py_long_as_ulongest. Handle overflow properly.
10055 (gdb_py_object_from_longest): New function.
10056 (gdb_py_object_from_ulongest): Likewise.
10057 (gdb_py_int_as_long): Likewise.
10058 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10059 * python/py-symtab.c (salpy_get_pc): Use
10060 gdb_py_long_from_ulongest.
10061 (salpy_get_line): Use PyInt_FromLong.
10062 * python/py-param.c (set_parameter_value): Use
10063 gdb_py_int_as_long.
10064 * python/py-lazy-string.c (stpy_get_address): Use
10065 gdb_py_long_from_ulongest.
10066 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10067 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10068 * python/py-breakpoint.c (bppy_set_thread): Use
10069 gdb_py_int_as_long.
10070 (bppy_set_task): Likewise.
10071 (bppy_set_ignore_count): Likewise.
10072 (bppy_set_hit_count): Likewise.
10073 * python/py-block.c (blpy_get_start): Use
10074 gdb_py_object_from_ulongest.
10075 (blpy_get_end): Likewise.
10076 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10077
e4f6d2ec
TJB
100782011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10079
10080 PR/symtab 11766:
10081 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10082 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10083 equality test for objfile, initialize addr_low if needed.
10084
b30aa278
PA
100852011-01-25 Pedro Alves <pedro@codesourcery.com>
10086
10087 * tui/tui-regs.c (tui_register_format): Remove dead code.
10088
ab2188aa
PA
100892011-01-25 Pedro Alves <pedro@codesourcery.com>
10090
10091 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10092 instead of print_scalar_formatted.
10093 (print_scalar_formatted): Don't handle 's' format strings here,
10094 and add an assertion that we never see such format here.
10095 * valprint.h (val_print_scalar_formatted): Declare.
10096 * valprint.c (val_print_scalar_formatted): New.
10097 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10098 instead of print_scalar_formatted.
10099 * jv-valprint.c (java_val_print): Ditto.
10100 * p-valprint.c (pascal_val_print): Ditto.
10101 * ada-valprint.c (ada_val_print_1): Ditto.
10102 * f-valprint.c (f_val_print): Ditto.
10103 * infcmd.c (registers_info): Ditto.
10104 * m2-valprint.c (m2_val_print): Ditto.
10105
66d61a4c
PA
101062011-01-25 Pedro Alves <pedro@codesourcery.com>
10107
10108 * m2-valprint.c (print_unbounded_array): Pass
10109 value_contents_for_printing rather than value_contents, to
10110 m2_print_array_contents. Also pass in the value.
10111
831adc1f
JK
101122011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10113
10114 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10115 (save_gdb_index_command): Switch to .gdb_index version 4.
10116
20622269
PA
101172011-01-25 Pedro Alves <pedro@codesourcery.com>
10118
10119 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10120 than frame_register, and always pass a valid value to val_print.
10121
585fdaa1
PA
101222011-01-25 Pedro Alves <pedro@codesourcery.com>
10123
10124 Centralize printing "<optimized out>".
10125
10126 * valprint.h (val_print_optimized_out): Declare.
10127 * cp-valprint.c (cp_print_value_fields): Use
10128 val_print_optimized_out.
10129 * jv-valprint.c (java_print_value_fields): Ditto.
10130 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10131 * printcmd.c (print_formatted): Ditto.
10132 * valprint.c (valprint_check_validity): Ditto.
10133 (value_check_printable): Ditto.
10134 (val_print_optimized_out): New.
10135
29ec5263
PA
101362011-01-25 Pedro Alves <pedro@codesourcery.com>
10137
10138 * infcmd.c (default_print_registers_info): Allocate values so to
10139 never pass a NULL value to val_print.
10140
de4127a3
PA
101412011-01-25 Pedro Alves <pedro@codesourcery.com>
10142
10143 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10144 boolean. Make sure to always pass a value that matches the
10145 contents buffer to callees. Preserve `address' for following
10146 iterations.
10147 * value.c (value_contents_for_printing_const): New.
10148 (value_address): Constify value argument.
10149 * value.h (value_contents_for_printing_const): Declare.
10150 (value_address): Constify value argument.
10151
ee99023e
PA
101522011-01-25 Pedro Alves <pedro@codesourcery.com>
10153
10154 * regcache.c (struct regcache_descr): Rename
10155 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10156 and sizeof_cooked_register_valid_p to
10157 sizeof_cooked_register_status.
10158 (init_regcache_descr): Adjust.
10159 (struct regcache): Rename register_valid_p field to
10160 register_status.
10161 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10162 (do_cooked_read): Adjust.
10163 (regcache_valid_p): Rename to ...
10164 (regcache_register_status): ... this. Adjust.
10165 (regcache_invalidate): Adjust.
10166 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10167 Adjust.
10168 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10169 as unavailable, not valid.
10170 (regcache_dump): Adjust.
10171 * regcache.h (enum register_status): New.
10172 (regcache_register_status): Declare.
10173 (regcache_invalidate): Delete declaration.
10174 * corelow.c (get_core_registers): Adjust.
10175 * tracepoint.c (tfile_fetch_registers): Adjust.
10176 * trad-frame.c (REG_VALUE): Rename to ...
10177 (TF_REG_VALUE): ... this.
10178 (REG_UNKNOWN): Rename to ...
10179 (TF_REG_UNKNOWN): ... this.
10180 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10181 * mi/mi-main.c (register_changed_p): Adjust.
10182
99e42fd8
PA
101832011-01-25 Pedro Alves <pedro@codesourcery.com>
10184
10185 * regcache.c (struct regcache_descr): Remove outdated comment.
10186 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10187 overallocate hack.
10188 (regcache_xmalloc): Rename to ...
10189 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10190 Allocate the regcache type accordingly.
10191 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10192 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10193 cooked registers, not raw.
10194 (regcache_dup_no_passthrough): Delete.
10195 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10196 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10197 mention obsolete write_register_bytes.
10198 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10199
f7605bc2
PA
102002011-01-25 Pedro Alves <pedro@codesourcery.com>
10201
10202 Stop remote_read_bytes from handling partial reads itself.
10203
10204 * remote-fileio.c: Include target.h.
10205 (remote_fileio_write_bytes): Delete.
10206 (remote_fileio_func_open, remote_fileio_func_write)
10207 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10208 target_read_memory.
10209 (remote_fileio_func_stat): Use target_read_memory and
10210 target_write_memory.
10211 (remote_fileio_func_gettimeofday): Use target_write_memory.
10212 (remote_fileio_func_system): Use target_read_memory.
10213 * remote.c (remote_write_bytes): Make it static.
10214 (remote_read_bytes): Don't handle partial reads here.
10215 * remote.h (remote_read_bytes): Delete declaration.
10216
efc0eabd
PA
102172011-01-25 Pedro Alves <pedro@codesourcery.com>
10218
10219 Simplify XML parsing a bit.
10220
10221 * xml-support.h (gdb_xml_parse_quick): Declare.
10222 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10223 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10224 parameter.
10225 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10226 gdb_xml_create_parser_and_cleanup_1.
10227 (gdb_xml_parse_quick): New.
10228 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10229 * osdata.c (osdata_parse): Ditto.
10230 * remote.c (remote_threads_info): Ditto.
10231 * solib-target.c (solib_target_parse_libraries): Ditto.
10232 * xml-syscall.c (syscall_parse_xml): Ditto.
10233 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10234
314d366a
KB
102352011-01-24 Kevin Buettner <kevinb@redhat.com>
10236
10237 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10238 with remote-mips.o added to gdb_target_obs.
10239 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10240
a491d753
PA
102412011-01-24 Pedro Alves <pedro@codesourcery.com>
10242
10243 * ada-valprint.c (val_print_packed_array_elements): Pass the
10244 correct struct value to val_print.
10245 (ada_val_print_1): Ditto.
10246
490f124f
PA
102472011-01-24 Pedro Alves <pedro@codesourcery.com>
10248
10249 Don't lose embedded_offset in printing routines throughout.
10250
10251 * valprint.h (val_print_array_elements): Change prototype.
10252 * valprint.c (val_print_array_elements): Add `embedded_offset'
10253 parameter, and adjust to pass it down to val_print, while passing
10254 `valaddr' or `address' unmodified. Take embedded_offset into
10255 account when checking repetitions.
10256 * c-valprint.c (c_val_print): Pass embedded_offset to
10257 val_print_array_elements instead of adjusting `valaddr' and
10258 `address'.
10259 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10260 embedded_offset to val_print_array_elements instead of adjusting
10261 `valaddr'.
10262 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10263 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10264 val_print_array_elements and pascal_object_print_value_fields
10265 instead of adjusting `valaddr'.
10266 (pascal_object_print_value_fields): Add `offset' parameter, and
10267 adjust to use it.
10268 (pascal_object_print_value): Add `offset' parameter, and adjust to
10269 use it.
10270 (pascal_object_print_static_field): Use
10271 value_contents_for_printing/value_embedded_offset, rather than
10272 value_contents.
10273 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10274 parameter, and adjust to use it. Use
10275 value_contents_for_printing/value_embedded_offset, rather than
10276 value_contents.
10277 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10278 (ada_val_print_array): Add `offset' parameter, and adjust to use
10279 it.
10280 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10281 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10282 Instead work with offsets. Use
10283 value_contents_for_printing/value_embedded_offset, rather than
10284 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10285 and use value_from_pointer to extract a target pointer, rather
10286 than value_from_longest.
10287 (print_variant_part): Add `offset' parameter. Replace
10288 `outer_valaddr' parameter by a new `outer_offset' parameter.
10289 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10290 (ada_value_print): Use
10291 value_contents_for_printing/value_embedded_offset, rather than
10292 value_contents.
10293 (print_record): Add `offset' parameter, and adjust to pass it
10294 down.
10295 (print_field_values): Add `offset' parameter. Replace
10296 `outer_valaddr' parameter by a new `outer_offset' parameter.
10297 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10298 Use value_contents_for_printing/value_embedded_offset, rather than
10299 value_contents.
10300 * d-valprint.c (dynamic_array_type): Use
10301 value_contents_for_printing/value_embedded_offset, rather than
10302 value_contents.
10303 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10304 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10305 (java_print_value_fields): Take `offset' into account. Don't
10306 re-adjust `valaddr'. Instead pass down adjusted offsets.
10307 (java_val_print): Take `embedded_offset' into account. Pass it to
10308 java_print_value_fields.
10309 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10310 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10311 down adjusted offsets.
10312 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10313 (f_val_print): Take `embedded_offset' into account.
10314
7bfc9434
JB
103152011-01-21 Joel Brobecker <brobecker@adacore.com>
10316
10317 * inflow.c: Include "gdbcmd.h".
10318 (interactive_mode): New static global, moved here from top.c.
10319 (show_interactive_mode): New function, moved here from top.c.
10320 use gdb_has_a_terminal instead of input_from_terminal_p to
10321 determine the current mode.
10322 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10323 setting.
10324 (_initialize_inflow): Add the "set/show interactive-mode"
10325 commands. Moved here from top.c, after having adjusted slightly
10326 the help text.
10327 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10328 to inflow.c.
10329 (input_from_terminal_p): Remove handling of "interactive-mode"
10330 setting, moved to infow.c.
10331 (init_main): Remove creation of the "set/show interactive-mode"
10332 commands, moved to inflow.c.
10333
44603653
JB
103342011-01-19 Joel Brobecker <brobecker@adacore.com>
10335
10336 * NEWS: Add entry for native ia64-hpux support.
10337
4694da01
TT
103382011-01-19 Tom Tromey <tromey@redhat.com>
10339
10340 PR mi/8618:
10341 * thread.c (free_thread): Free 'name'.
10342 (print_thread_info): Emit thread name. Change CLI output.
10343 (thread_name_command): New function.
10344 (do_captured_thread_select): Emit newline.
10345 (_initialize_thread): Register 'thread name' command.
10346 * target.h (struct target_ops) <to_thread_name>: New field.
10347 (target_thread_name): New macro.
10348 * target.c (update_current_target): Handle to_thread_name.
10349 * python/py-infthread.c (thpy_get_name): New function.
10350 (thpy_set_name): Likewise.
10351 (thread_object_getset): Add "name".
10352 * linux-nat.c (linux_nat_thread_name): New function.
10353 (linux_nat_add_target): Set to_thread_name.
10354 * gdbthread.h (struct thread_info) <name>: New field.
10355
10d44370
JB
103562011-01-18 Joel Brobecker <brobecker@adacore.com>
10357
10358 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10359 (ada_val_print_1): Likewise.
10360
e3acb115
JB
103612011-01-18 Joel Brobecker <brobecker@adacore.com>
10362
10363 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10364 upper limit address is not greater than the function end address
10365 when the upper limit could not be computed using the debugging
10366 info.
10367
dc92e161
TT
103682011-01-17 Tom Tromey <tromey@redhat.com>
10369
10370 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10371 get_regcomp_error.
10372 * utils.c: Include gdb_regex.h.
10373 (do_regfree_cleanup): New function.
10374 (make_regfree_cleanup): Likewise.
10375 (get_regcomp_error): Likewise.
10376 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10377
f55af66d
TT
103782011-01-17 Tom Tromey <tromey@redhat.com>
10379
10380 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10381 re_compile_fastmap.
10382
a5a44b53
PM
103832011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10384
10385 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10386 for internal variables.
10387 (last_was_structop): New static variable.
10388 (COMPLETE): New token.
10389 (field_exp): New rule to group all '.' suffix handling.
10390 Add mark_struct_expression calls when approriate to be able
10391 to correctly find fields for completion.
10392 (yylex): Adapt to handle field completion and set INTVAR when
10393 required.
10394
2c291032
YQ
103952011-01-14 Yao Qi <yao@codesourcery.com>
10396
10397 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10398 save_reggroup, restore_reggroup and all_reggroup.
10399
447b483c
JB
104002011-01-14 Joel Brobecker <brobecker@adacore.com>
10401
10402 * ada-valprint. (ada_printchar): Use the correct type length
10403 in call to ada_emit_char.
10404 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10405
7b64a93b
PM
104062011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10407
10408 * solib-som.h (hpux_major_release): Declare variable here.
10409 * solib-som.c: Remove <sys/utsname.h> header.
10410 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10411 (hpux_major_release): Make global, change default value to
10412 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10413 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10414 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10415 Add "solib-som.h" header.
10416 (set_hpux_major_release): New function.
10417 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10418
4e18c053
MF
104192011-01-14 Mike Frysinger <vapier@gentoo.org>
10420
10421 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10422
a9df6b22
JB
104232011-01-14 Joel Brobecker <brobecker@adacore.com>
10424
10425 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10426 new-line at end of warning message.
10427 (ia64_hpux_store_register): Remove trailing new-line at end of
10428 error message.
10429 * ia64-hpux-tdep.c: Rephrase comment.
10430 * solib-ia64-hpux.c (struct dld_info): Change type of field
10431 dld_flags from "long long" to ULONGEST.
10432
ecb956dd
PA
104332011-01-14 Pedro Alves <pedro@codesourcery.com>
10434
10435 * target.h (deprecated_child_ops): Delete declaration.
10436 * target.c (deprecated_child_ops): Delete definition.
10437
76adfcae
PA
104382011-01-14 Pedro Alves <pedro@codesourcery.com>
10439
10440 * Makefile.in (hpux-thread.o): Delete rule.
10441 * configure.ac: Don't check for HPUX DCE threads support.
10442 * configure, config.in: Regenerate.
10443 * hppa-hpux-nat.c (child_suppress_run): Delete.
10444 (hppa_hpux_child_can_run): Delete.
10445 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10446 * hpux-thread.c: Delete.
10447
042e866e
JB
104482011-01-13 Joel Brobecker <brobecker@adacore.com>
10449
10450 * hpux-thread.c (hpux_pid_to_str): Delete.
10451
4ffa5a33
JB
104522011-01-13 Joel Brobecker <brobecker@adacore.com>
10453
10454 * ada-valprint.c (ada_emit_char): Remove strange code.
10455 Check that c is <= UCHAR_MAX before passing it to isascii.
10456 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10457
de8fa76c
JB
104582011-01-13 Joel Brobecker <brobecker@adacore.com>
10459
10460 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10461 to the case where instream is stdin.
10462
c4de7027
JB
104632011-01-13 Joel Brobecker <brobecker@adacore.com>
10464
10465 * ia64-tdep.h (struct regcache): Forward declare.
10466 (struct ia64_infcall_ops): New struct type.
10467 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10468 and "infcall_ops".
10469 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10470 Renames ia64_find_global_pointer.
10471 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10472 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10473 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10474 methods.
10475 (ia64_infcall_ops): New static global constant.
10476 (ia64_gdbarch_init): Set tdep->infcall_ops.
10477 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10478 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10479 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10480 (ia64_hpux_dummy_code): New static global constant.
10481 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10482 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10483 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10484 New function.
10485 (ia64_hpux_infcall_ops): New static global constant.
10486 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10487 for inferior function calls to work properly on ia64-hpux.
10488
77ca787b
JB
104892011-01-13 Joel Brobecker <brobecker@adacore.com>
10490
10491 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10492 * ia64-tdep.h (struct frame_info): forward declaration.
10493 (struct gdbarch_tdep): Add field size_of_register_frame.
10494 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10495 to determine the size of the register frame.
10496 (ia64_size_of_register_frame): New function.
10497 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10498 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10499 (IA64_HPUX_UREG_REASON): New macro.
10500 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10501 New functions.
10502 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10503 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10504 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10505 objects.
10506
92c9a463
JB
105072011-01-13 Joel Brobecker <brobecker@adacore.com>
10508
10509 Add support for ia64-hpux.
10510 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10511 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10512
10513 * configure.host: Add handling for ia64-hpux hosts. Add associated
10514 floatformats.
10515 * configure.tgt: Add handling for ia64-hpux targets.
10516 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10517 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10518 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10519
f688d93f
JB
105202011-01-13 Joel Brobecker <brobecker@adacore.com>
10521
10522 [ttrace] Compute thread list immediately after attach.
10523 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10524 New subprogram.
10525 (inf_ttrace_attach): Use it.
10526
1b89e62f
JB
105272011-01-13 Joel Brobecker <brobecker@adacore.com>
10528
10529 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10530 if we could not determine the frame's function address. Instead,
10531 use the frame's PC, and then continue.
10532
3e5e6e2a
JB
105332011-01-13 Joel Brobecker <brobecker@adacore.com>
10534
10535 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10536 not already defined.
10537
825d6d8a
JB
105382011-01-13 Joel Brobecker <brobecker@adacore.com>
10539
10540 * ia64-tdep.c (ia64_struct_type_p): New function.
10541 (ia64_extract_return_value): Handle integral values that are
10542 less than 8 bytes long.
10543 (ia64_push_dummy_call): Likewise.
10544
7458e667
JB
105452011-01-13 Joel Brobecker <brobecker@adacore.com>
10546
10547 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10548 floatformat_ia64_ext.
10549 (floatformat_ia64_ext_big): New static const.
10550 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10551
1b05df00
TT
105522011-01-12 Tom Tromey <tromey@redhat.com>
10553
10554 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10555 messages.
10556 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10557 (mi_cmd_thread_list_ids): Likewise.
10558 (mi_cmd_data_list_changed_registers): Likewise.
10559 (mi_cmd_data_list_register_values): Likewise.
10560 (mi_cmd_data_write_register_values): Likewise.
10561 (mi_cmd_data_evaluate_expression): Likewise.
10562 (mi_cmd_data_read_memory): Likewise.
10563 (mi_cmd_data_read_memory_bytes): Likewise.
10564 (mi_cmd_data_write_memory): Likewise.
10565 (mi_cmd_enable_timings): Likewise.
10566 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10567 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10568 (mi_cmd_var_delete): Likewise.
10569 (mi_cmd_var_set_format): Likewise.
10570 (mi_cmd_var_show_format): Likewise.
10571 (mi_cmd_var_info_num_children): Likewise.
10572 (mi_cmd_var_list_children): Likewise.
10573 (mi_cmd_var_info_type): Likewise.
10574 (mi_cmd_var_info_expression): Likewise.
10575 (mi_cmd_var_show_attributes): Likewise.
10576 (mi_cmd_var_assign): Likewise.
10577 (mi_cmd_var_update): Likewise.
10578 (mi_cmd_enable_pretty_printing): Likewise.
10579 (mi_cmd_var_set_update_range): Likewise.
10580 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10581 messages.
10582 (mi_cmd_target_file_put): Likewise.
10583 (mi_cmd_target_file_delete): Likewise.
10584 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10585 messages.
10586 (mi_cmd_stack_info_depth): Likewise.
10587 (mi_cmd_stack_list_locals): Likewise.
10588 (mi_cmd_stack_list_args): Likewise.
10589 (mi_cmd_stack_select_frame): Likewise.
10590 (mi_cmd_stack_select_frame): Likewise.
10591 (mi_cmd_stack_info_frame): Likewise.
10592 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10593 messages.
10594 (mi_cmd_file_list_exec_source_files): Likewise.
10595 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10596 (mi_cmd_env_cd): Likewise.
10597 (mi_cmd_env_path): Likewise.
10598 (mi_cmd_env_dir): Likewise.
10599 (mi_cmd_inferior_tty_show): Likewise.
10600 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10601 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10602 (mi_cmd_break_watch): Likewise.
10603
ad422571
TJB
106042011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10605
10606 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10607 (ppc_linux_insert_hw_breakpoint): Likewise.
10608 (ppc_linux_remove_hw_breakpoint): Likewise.
10609 (ppc_linux_insert_watchpoint): Likewise.
10610
c2ff108b
JK
106112011-01-12 Andrew Burgess <aburgess@broadcom.com>
10612 Jan Kratochvil <jan.kratochvil@redhat.com>
10613
10614 PR fortran/11104 and DWARF unbound arrays detection.
10615 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10616 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10617 unspecified upper bound.
10618 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10619 variables array_size_array, tmp_type and offset_item. New variable
10620 array. Remove call to f77_get_upperbound. New variables array_type
10621 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10622 the final call to deprecated_set_value_type.
10623
41e8491f
JK
106242011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10625
10626 Make value allocations more lazy.
10627 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10628 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10629 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10630 instead of allocate_value and set_value_lazy.
10631 * findvar.c (value_of_register_lazy): Likewise.
10632 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10633 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10634 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10635 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10636 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10637 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10638 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10639 the end, remove set_value_lazy there.
10640 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10641 instead of allocate_value and set_value_lazy when possible.
10642 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10643 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10644 of allocate_value and set_value_lazy.
10645 (value_from_contents_and_address): Use allocate_value_lazy instead of
10646 allocate_value and set_value_lazy when possible.
10647
b716877b
AB
106482011-01-12 Andrew Burgess <aburgess@broadcom.com>
10649
10650 * disasm.c (dump_insns): Support dumping opcodes for MI.
10651 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10652 dumping of instruction opcodes.
10653
d5ae309f
JB
106542011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10655
10656 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10657 appropiately.
10658
98871305
TT
106592011-01-11 Tom Tromey <tromey@redhat.com>
10660
10661 * thread.c (do_captured_thread_select): Emit newline before
10662 printing frame.
10663
c378eb4e
MS
106642011-01-11 Michael Snyder <msnyder@vmware.com>
10665
10666 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10667 * score-tdep.c: Ditto.
10668 * score-tdep.h: Ditto.
10669 * ser-base.c: Ditto.
10670 * ser-go32.c: Ditto.
10671 * serial.c: Ditto.
10672 * serial.h: Ditto.
10673 * ser-mingw.c: Ditto.
10674 * ser-pipe.c: Ditto.
10675 * ser-tcp.c: Ditto.
10676 * ser-unix.c: Ditto.
10677 * sh64-tdep.c: Ditto.
10678 * shnbsd-nat.c: Ditto.
10679 * sh-tdep.c: Ditto.
10680 * sh-tdep.h: Ditto.
10681 * solib.c: Ditto.
10682 * solib-darwin.c: Ditto.
10683 * solib-frv.c: Ditto.
10684 * solib.h: Ditto.
10685 * solib-irix.c: Ditto.
10686 * solib-osf.c: Ditto.
10687 * solib-pa64.c: Ditto.
10688 * solib-som.c: Ditto.
10689 * solib-spu.c: Ditto.
10690 * solib-sunos.c: Ditto.
10691 * solib-svr4.c: Ditto.
10692 * solist.h: Ditto.
10693 * sol-thread.c: Ditto.
10694 * somread.c: Ditto.
10695 * source.c: Ditto.
10696 * source.h: Ditto.
10697 * sparc64-linux-tdep.c: Ditto.
10698 * sparc64-tdep.c: Ditto.
10699 * sparc-linux-nat.c: Ditto.
10700 * sparc-linux-tdep.c: Ditto.
10701 * sparc-sol2-nat.c: Ditto.
10702 * sparc-sol2-tdep.c: Ditto.
10703 * sparc-tdep.c: Ditto.
10704 * sparc-tdep.h: Ditto.
10705 * spu-tdep.c: Ditto.
10706 * stabsread.c: Ditto.
10707 * stabsread.h: Ditto.
10708 * stack.c: Ditto.
10709 * symfile.c: Ditto.
10710 * symfile.h: Ditto.
10711 * symmisc.c: Ditto.
10712 * symtab.c: Ditto.
10713 * symtab.h: Ditto.
10714 * target.c: Ditto.
10715 * target-descriptions.c: Ditto.
10716 * target-descriptions.h: Ditto.
10717 * target.h: Ditto.
10718 * target-memory.c: Ditto.
10719 * terminal.h: Ditto.
10720 * thread.c: Ditto.
10721 * top.c: Ditto.
10722 * tracepoint.c: Ditto.
10723 * tracepoint.h: Ditto.
10724 * trad-frame.h: Ditto.
10725 * typeprint.c: Ditto.
10726
581e13c1
MS
107272011-01-11 Michael Snyder <msnyder@vmware.com>
10728
10729 * ui-file.c: Comment cleanup, mostly periods and spaces.
10730 * ui-file.h: Ditto.
10731 * ui-out.c: Ditto.
10732 * ui-out.h: Ditto.
10733 * utils.c: Ditto.
10734 * v850-tdep.c: Ditto.
10735 * valarith.c: Ditto.
10736 * valops.c: Ditto.
10737 * valprint.c: Ditto.
10738 * valprint.h: Ditto.
10739 * value.c: Ditto.
10740 * value.h: Ditto.
10741 * varobj.c: Ditto.
10742 * varobj.h: Ditto.
10743 * vax-tdep.c: Ditto.
10744 * vec.c: Ditto.
10745 * vec.h: Ditto.
10746 * version.h: Ditto.
10747 * windows-nat.c: Ditto.
10748 * windows-tdep.c: Ditto.
10749 * xcoffread.c: Ditto.
10750 * xcoffsolib.c: Ditto.
10751 * xml-support.c: Ditto.
10752 * xstormy16-tdep.c: Ditto.
10753 * xtensa-tdep.c: Ditto.
10754 * xtensa-tdep.h: Ditto.
10755
90e4670f
TJB
107562011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10757
10758 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10759 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10760
e09342b5
TJB
107612011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10762 Thiago Jung Bauermann <bauerman@br.ibm.com>
10763
10764 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10765 * breakpoint.h
e09342b5
TJB
10766 (struct breakpoint_ops) <resources_needed>: New method.
10767 Initialize to NULL in all existing breakpoint_ops instances.
10768 (struct breakpoint) <exact>: New field.
10769 (target_exact_watchpoints): Declare external global.
10770 * breakpoint.c (target_exact_watchpoints): New global flag.
10771 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10772 b->enable_state to bp_enabled before calling
10773 hw_watchpoint_used_count.
10774 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10775 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10776 if available.
10777 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10778 if the watchpoint is exact.
10779 (resources_needed_watchpoint): New function.
10780 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10781 (watch_command_1): Set b->exact if the user asked for an exact
10782 watchpoint and one can be set.
10783 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10784 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10785 the user asks for an exact watchpoint and one can be set. Return
10786 number of needed debug registers to watch the expression.
10787 * gdbtypes.c (is_scalar_type): New function, based on
10788 valprint.c:scalar_type_p.
10789 (is_scalar_type_recursive): New function.
10790 * gdbtypes.h (is_scalar_type_recursive): Declare.
10791 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10792 handle regions when ranged watchpoints are available.
10793 (create_watchpoint_request): New function.
10794 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10795 create_watchpoint_request.
10796 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10797 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10798 `set powerpc' and `show powerpc' commands.
10799 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10800 Mention documentation comment in the target macro.
10801 (target_region_ok_for_hw_watchpoint): Document return value.
10802
9fa40276
TJB
108032011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10804
10805 * breakpoint.c (update_watchpoint): Decide on using a software or
10806 hardware watchpoint after the bp_locations are created.
10807
77b06cd7
TJB
108082010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10809
10810 Convert hardware watchpoints to use breakpoint_ops.
10811 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10812 <insert_location>: ... this. Return int instead of void.
10813 Accept pointer to struct bp_location instead of pointer to
10814 struct breakpoint. Adapt all implementations.
f2eb0bc8 10815 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10816 <remove_location>: ... this. Accept pointer to struct bp_location
10817 instead of pointer to struct breakpoint. Adapt all implementations.
10818 * breakpoint.c (insert_catchpoint): Delete function.
10819 (insert_bp_location): Call the watchpoint or catchpoint's
10820 breakpoint_ops.insert method.
10821 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10822 breakpoint_ops.remove method.
10823 (insert_watchpoint, remove_watchpoint): New functions.
10824 (watchpoint_breakpoint_ops): New structure.
10825 (watch_command_1): Initialize the OPS field.
10826 * inf-child.c (inf_child_insert_fork_catchpoint)
10827 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10828 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10829 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10830 Delete functions.
10831 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10832 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10833 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10834 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10835 * target.c (update_current_target): Change default implementation of
10836 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10837 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10838 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10839 to_set_syscall_catchpoint to return_one.
10840 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10841 (debug_to_insert_exec_catchpoint): Report return value.
10842 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10843 (to_insert_exec_catchpoint): Change declaration to return int instead
10844 of void.
10845
9b20d036
MS
108462011-01-11 Michael Snyder <msnyder@vmware.com>
10847
10848 * arm-tdep.c: Internationalization.
10849 * c-lang.c: Ditto.
10850 * charset.c: Ditto.
10851 * fork-child.c: Ditto.
10852 * nto-procfs.c: Ditto.
10853 * ppc-sysv-tdep.c: Ditto.
10854 * procfs.c: Ditto.
10855 * remote-mips.c: Ditto.
10856 * remote.c: Ditto.
10857 * rs6000-nat.c: Ditto.
10858 * rs6000-tdep.c: Ditto.
10859 * target.c: Ditto.
10860 * valops.c: Ditto.
10861 * value.c: Ditto.
10862 * xml-support.c: Ditto.
10863 * mi/mi-cmd-break.c: Ditto.
10864 * mi/mi-cmd-var.c: Ditto.
10865 * mi/mi-interp.c: Ditto.
10866 * mi/mi-main.c: Ditto.
10867
dae477fe
AB
108682011-01-11 Andrew Burgess <aburgess@broadcom.com>
10869
10870 * remote-sim.c (gdbsim_store_register): Update API to
10871 sim_store_register to check more error conditions.
10872
0df8b418
MS
108732011-01-10 Michael Snyder <msnyder@vmware.com>
10874
10875 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10876 * nto-tdep.c: Ditto.
10877 * nto-tdep.h: Ditto.
10878 * objc-exp.y: Ditto.
10879 * objc-lang.c: Ditto.
10880 * objfiles.c: Ditto.
10881 * objfiles.h: Ditto.
10882 * observer.c: Ditto.
10883 * opencl-lang.c: Ditto.
10884 * osabi.c: Ditto.
10885 * parse.c: Ditto.
10886 * parser-defs.h: Ditto.
10887 * p-exp.y: Ditto.
10888 * p-lang.c: Ditto.
10889 * posix-hdep.c: Ditto.
10890 * ppcbug-rom.c: Ditto.
10891 * ppc-linux-nat.c: Ditto.
10892 * ppc-linux-tdep.c: Ditto.
10893 * ppc-linux-tdep.h: Ditto.
10894 * ppcnbsd-tdep.c: Ditto.
10895 * ppcobsd-tdep.c: Ditto.
10896 * ppcobsd-tdep.h: Ditto.
10897 * ppc-sysv-tdep.c: Ditto.
10898 * ppc-tdep.h: Ditto.
10899 * printcmd.c: Ditto.
10900 * proc-abi.c: Ditto.
10901 * proc-flags.c: Ditto.
10902 * procfs.c: Ditto.
10903 * proc-utils.h: Ditto.
10904 * progspace.h: Ditto.
10905 * prologue-value.c: Ditto.
10906 * prologue-value.h: Ditto.
10907 * psympriv.h: Ditto.
10908 * psymtab.c: Ditto.
10909 * p-typeprint.c: Ditto.
10910 * p-valprint.c: Ditto.
10911 * ravenscar-sparc-thread.c: Ditto.
10912 * ravenscar-thread.c: Ditto.
10913 * ravenscar-thread.h: Ditto.
10914 * record.c: Ditto.
10915 * regcache.c: Ditto.
10916 * regcache.h: Ditto.
10917 * remote.c: Ditto.
10918 * remote-fileio.c: Ditto.
10919 * remote-fileio.h: Ditto.
10920 * remote.h: Ditto.
10921 * remote-m32r-sdi.c: Ditto.
10922 * remote-mips.c: Ditto.
10923 * remote-sim.c: Ditto.
10924 * rs6000-aix-tdep.c: Ditto.
10925 * rs6000-nat.c: Ditto.
10926 * rs6000-tdep.c: Ditto.
10927
0d7a18f7
MS
109282011-01-10 Michael Snyder <msnyder@vmware.com>
10929
10930 * charset.c (validate): Internationalization.
10931 * coffread.c (read_one_sym): Ditto.
10932 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10933 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10934 * inflow.c (new_tty): Ditto.
10935 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10936 * m32c-tdep.c (m32c_return_value): Ditto.
10937 * mep-tdep.c (mep_store_return_value): Ditto.
10938 * score-tdep.c (score7_fetch_insn): Ditto.
10939 * ser-mingw.c (pipe_windows_open): Ditto.
10940 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10941 * spu-tdep.c (spu_register_type): Ditto.
10942 * tracepoint.c (trace_find_command): Ditto.
10943 * valarith.c (value_pos): Ditto.
10944
9a153e0b
JB
109452011-01-10 Joel Brobecker <brobecker@adacore.com>
10946
10947 * ada-valprint.c (printstr): Minor comment reformatting.
10948
35ecd2d6
MS
109492011-01-08 Michael Snyder <msnyder@vmware.com>
10950
10951 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10952 markup.
10953
1777feb0
MS
109542011-01-08 Michael Snyder <msnyder@vmware.com>
10955
10956 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10957 * hppa-hpux-tdep.c: Ditto.
10958 * hppa-linux-nat.c: Ditto.
10959 * hppa-linux-tdep.c: Ditto.
10960 * hppanbsd-tdep.c: Ditto.
10961 * hppa-tdep.c: Ditto.
10962 * hppa-tdep.h: Ditto.
10963 * hpux-thread.c: Ditto.
10964 * i386-cygwin-tdep.c: Ditto.
10965 * i386-darwin-nat.c: Ditto.
10966 * i386gnu-nat.c: Ditto.
10967 * i386-linux-nat.c: Ditto.
10968 * i386-linux-tdep.c: Ditto.
10969 * i386-nat.c: Ditto.
10970 * i386-nat.h: Ditto.
10971 * i386nbsd-tdep.c: Ditto.
10972 * i386-sol2-nat.c: Ditto.
10973 * i386-stub.c: Ditto.
10974 * i386-tdep.c: Ditto.
10975 * i386-tdep.h: Ditto.
10976 * i387-tdep.c: Ditto.
10977 * ia64-linux-nat.c: Ditto.
10978 * ia64-linux-tdep.c: Ditto.
10979 * ia64-tdep.c: Ditto.
10980 * infcall.c: Ditto.
10981 * infcall.h: Ditto.
10982 * infcmd.c: Ditto.
10983 * inferior.c: Ditto.
10984 * inferior.h: Ditto.
10985 * infloop.c: Ditto.
10986 * inflow.c: Ditto.
10987 * infrun.c: Ditto.
10988 * interps.c: Ditto.
10989 * interps.h: Ditto.
10990 * iq2000-tdep.c: Ditto.
10991 * irix5-nat.c: Ditto.
10992 * jit.c: Ditto.
10993 * jit.h: Ditto.
10994 * jv-exp.y: Ditto.
10995 * jv-lang.c: Ditto.
10996 * jv-lang.h: Ditto.
10997 * jv-typeprint.c: Ditto.
10998 * jv-valprint.c: Ditto.
10999 * language.c: Ditto.
11000 * language.h: Ditto.
11001 * linespec.c: Ditto.
11002 * linux-fork.c: Ditto.
11003 * linux-nat.c: Ditto.
11004 * linux-thread-db.c: Ditto.
11005 * lm32-tdep.c: Ditto.
11006
025bb325
MS
110072011-01-08 Michael Snyder <msnyder@vmware.com>
11008
11009 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11010 * m2-lang.c: Ditto.
11011 * m2-typeprint.c: Ditto.
11012 * m2-valprint.c: Ditto.
11013 * m32c-tdep.c: Ditto.
11014 * m32r-linux-nat.c: Ditto.
11015 * m32r-rom.c: Ditto.
11016 * m32r-tdep.c: Ditto.
11017 * m32r-tdep.h: Ditto.
11018 * m68hc11-tdep.c: Ditto.
11019 * m58klinux-nat.c: Ditto.
11020 * m68k-tdep.c: Ditto.
11021 * m88k-tdep.c: Ditto.
11022 * m88k-tdep.h: Ditto.
11023 * machoread.c: Ditto.
11024 * macrocmd.c: Ditto.
11025 * macroexp.c: Ditto.
11026 * macrotab.c: Ditto.
11027 * main.c: Ditto.
11028 * maint.c: Ditto.
11029 * mdebugread.c: Ditto.
11030 * mdebugread.h: Ditto.
11031 * memattr.c: Ditto.
11032 * memattr.h: Ditto.
11033 * memory-map.h: Ditto.
11034 * mep-tdep.c: Ditto.
11035 * microblaze-rom.c: Ditto.
11036 * microblaze-tdep.c: Ditto.
11037 * minsyms.c: Ditto.
11038 * mips-irix-tdep.c: Ditto.
11039 * mips-linux-nat.c: Ditto.
11040 * mips-linux-tdep.c: Ditto.
11041 * mips-linux-tdep.h: Ditto.
11042 * mipsnbsd-nat.c: Ditto.
11043 * mipsnbsd-tdep.c: Ditto.
11044 * mipsread.c: Ditto.
11045 * mips-tdep.c: Ditto.
11046 * mips-tdep.h: Ditto.
11047 * mn10300-linux-tdep.c: Ditto.
11048 * mn10300-tdep.c: Ditto.
11049 * mn10300-tdep.h: Ditto.
11050 * monitor.c: Ditto.
11051 * monitor.h: Ditto.
11052 * moxie-tdep.c: Ditto.
11053 * moxie-tdep.h: Ditto.
11054 * mt-tdep.c: Ditto.
11055
1642781b
MF
110562011-01-08 Mike Frysinger <vapier@gentoo.org>
11057
11058 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11059
394b0adb
JB
110602011-01-08 Robert Millan <rmh@gnu.org>
11061
11062 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11063
b670013c
MS
110642011-01-07 Michael Snyder <msnyder@vmware.com>
11065
11066 * charset.c (_initialize_charset): Fix typo in string.
11067
a743e542
MS
110682011-01-07 Michael Snyder <msnyder@vmware.com>
11069
11070 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11071 for i18n.
f2eb0bc8 11072 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11073 Split line so that operator goes to beginning of line.
11074 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11075 assignment out of if statement.
11076
0963b4bd
MS
110772011-01-07 Michael Snyder <msnyder@vmware.com>
11078
11079 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11080 * ada-lang.h: Ditto.
11081 * ada-tasks.c: Ditto.
11082 * ada-valprint.c: Ditto.
11083 * aix-threads.c: Ditto.
11084 * alpha-linux-nat.c: Ditto.
11085 * alpha-linux-tdep.c: Ditto.
11086 * alpha-mdebug-tdep.c: Ditto.
11087 * alpha-nat.c: Ditto.
11088 * alpha-osf1-tdep.c: Ditto.
11089 * alpha-tdep.c: Ditto.
11090 * alphabsd-nat.c: Ditto.
11091 * alphabsd-tdep.c: Ditto.
11092 * amd64-darwin-tdep.c: Ditto.
11093 * amd64-linux-nat.c: Ditto.
11094 * amd64-linux-tdep.c: Ditto.
11095 * amd64-sol2-tdep.c: Ditto.
11096 * amd64-tdep.c: Ditto.
11097 * amd64-fbsd-tdep.c: Ditto.
11098 * amd64-nbsd-tdep.c: Ditto.
11099 * amd64-obsd-tdep.c: Ditto.
11100 * amd64-linux-nat.c: Ditto.
11101 * amd64-linux-tdep.c: Ditto.
11102 * arm-tdep.c: Ditto.
11103 * arm-tdep.h: Ditto.
11104 * armnbsd-nat.c: Ditto.
11105 * avr-tdep.c: Ditto.
11106 * bfin-tdep.c: Ditto.
11107 * bsd-kvm.c: Ditto.
11108 * c-typeprintc: Ditto.
11109 * c-valprint.c: Ditto.
11110 * coff-pe-read.h: Ditto.
11111 * coffreead.c: Ditto.
11112 * cris-tdep.c: Ditto.
11113 * d-lang.c: Ditto.
11114 * darwin-nat-info.c: Ditto.
11115 * darwin-nat.c: Ditto.
11116 * dbug-rom.c: Ditto.
11117 * dbxread.c: Ditto.
11118 * dcache.c: Ditto.
11119 * dcache.h: Ditto.
11120 * dec-thread.c: Ditto.
11121 * defs.h: Ditto.
11122 * demangle.c: Ditto.
11123 * dicos-tdep.c: Ditto.
11124 * dictionary.c: Ditto.
11125 * dictionary.h: Ditto.
11126 * dink32-rom.c: Ditto.
11127 * disasm.c: Ditto.
11128 * doublest.c: Ditto.
11129 * dsrec.c: Ditto.
11130 * dummy-frame.c: Ditto.
11131 * dwarf2-frame.c: Ditto.
11132 * dwarf2expr.c: Ditto.
11133 * dwarf2loc.c: Ditto.
11134 * dwarf2read.c: Ditto.
11135 * elfread.c: Ditto.
11136 * environ.c: Ditto.
11137 * eval.c: Ditto.
11138 * event-top.h: Ditto.
11139 * exceptions.c: Ditto.
11140 * exceptions.h: Ditto.
11141 * exec.c: Ditto.
11142 * expprint.c: Ditto.
11143 * expression.h: Ditto.
11144 * f-exp.y: Ditto.
11145 * f-lang.c: Ditto.
11146 * f-lang.h: Ditto.
11147 * f-typeprint.c: Ditto.
11148 * f-valprint.c: Ditto.
11149 * fbsd-nat.c: Ditto.
11150 * findvar.c: Ditto.
11151 * fork-child.c: Ditto.
11152 * frame.c: Ditto.
11153 * frame.h: Ditto.
11154 * frv-linux-tdep.c: Ditto.
11155 * frv-tdep.c: Ditto.
11156 * gcore.c: Ditto.
11157 * gdb-stabs.h: Ditto.
11158 * gdb_assert.h: Ditto.
11159 * gdb_string.h: Ditto.
11160 * gdb_thread_db.h: Ditto.
11161 * gdb_wait.h: Ditto.
11162 * gdbarch.sh: Ditto.
11163 * gdbcore.h: Ditto.
11164 * gdbthread.h: Ditto.
11165 * gdbtypes.c: Ditto.
11166 * gdbtypes.h: Ditto.
11167 * gnu-nat.c: Ditto.
11168 * gnu-nat.h: Ditto.
11169 * gnu-v2-abi.c: Ditto.
11170 * gnu-v3-abi.c: Ditto.
11171 * go32-nat.c: Ditto.
11172 * gdbarch.c: Regenerate.
11173 * gdbarch.h: Regenerate.
11174
ac74f770
MS
111752011-01-07 Michael Snyder <msnyder@vmware.com>
11176
11177 * ax-gdb.c: Adjust some long output strings.
11178 * breakpoint.c: Ditto.
11179 * charset.c: Ditto.
11180 * cp-abi.c: Ditto.
11181 * infcall.c: Ditto.
11182 * infrun.c: Ditto.
11183 * linux-nat.c: Ditto.
11184 * solib-pa64.c: Ditto.
11185 * solib-som.c: Ditto.
11186
d8e22779
TT
111872011-01-06 Tom Tromey <tromey@redhat.com>
11188
11189 PR python/12367:
11190 * NEWS: Add item.
11191 * python/python.c (GdbMethods): Add "newest_frame" method.
11192 * python/python-internal.h (gdbpy_newest_frame): Declare.
11193 * python/py-frame.c (gdbpy_newest_frame): New function.
11194
a255712f
PP
111952010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11196
11197 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11198 * jit.c (jit_debug): New variable.
11199 (show_jit_debug): New function.
11200 (struct target_buffer): Use ULONGEST.
11201 (bfd_open_from_target_memory): Likewise.
11202 (jit_register_code, jit_inferior_init): Add debug output.
11203 (_initialize_jit): Register "debug jit" command.
11204
ccfc3d6e
TT
112052011-01-06 Tom Tromey <tromey@redhat.com>
11206
11207 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11208 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11209 and ARCH_FRAME.
11210
57126e4a
TT
112112011-01-06 Tom Tromey <tromey@redhat.com>
11212
11213 * python/py-frame.c (frapy_block): Use get_frame_block.
11214
16dfc9ce
JB
112152011-01-06 Joel Brobecker <brobecker@adacore.com>
11216
11217 Do not stop on SIGPRIO signals by default
11218 * infrun.c (_initialize_infrun): Unset signal_stop and
11219 signal_print for TARGET_SIGNAL_PRIO.
11220
b1ce2347
JB
112212011-01-06 Joel Brobecker <brobecker@adacore.com>
11222
11223 * ada-tasks.c: Fix style violation in comment.
11224
8f7e195f
JB
112252011-01-06 Joel Brobecker <brobecker@adacore.com>
11226
11227 * linespec.c (decode_compound, find_method): Remove trailing \n
11228 at end of error string.
11229 * solib-irix.c (irix_current_sos): Likewise.
11230 * varobj.c (uninstall_variable): Likewise.
11231
e9bdf92c
JB
112322011-01-06 Joel Brobecker <brobecker@adacore.com>
11233
11234 * copyright.py: New script.
11235 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11236 Launch emacs without exec'ing. Call copyright.py afterwards.
11237
3e43a32a
MS
112382011-01-05 Michael Snyder <msnyder@vmware.com>
11239
11240 * addrmap.c: Shorten lines of >= 80 columns.
11241 * arch-utils.c: Ditto.
11242 * arch-utils.h: Ditto.
11243 * ax-gdb.c: Ditto.
11244 * ax-general.c: Ditto.
11245 * bcache.c: Ditto.
11246 * blockframe.c: Ditto.
11247 * breakpoint.c: Ditto.
11248 * buildsym.c: Ditto.
11249 * c-lang.c: Ditto.
11250 * c-typeprint.c: Ditto.
11251 * charset.c: Ditto.
11252 * coffread.c: Ditto.
11253 * command.h: Ditto.
11254 * corelow.c: Ditto.
11255 * cp-abi.c: Ditto.
11256 * cp-namespace.c: Ditto.
11257 * cp-support.c: Ditto.
11258 * dbug-rom.c: Ditto.
11259 * dbxread.c: Ditto.
11260 * defs.h: Ditto.
11261 * dfp.c: Ditto.
11262 * dfp.h: Ditto.
11263 * dictionary.c: Ditto.
11264 * disasm.c: Ditto.
11265 * doublest.c: Ditto.
11266 * dwarf2-frame.c: Ditto.
11267 * dwarf2expr.c: Ditto.
11268 * dwarf2loc.c: Ditto.
11269 * dwarf2read.c: Ditto.
11270 * elfread.c: Ditto.
11271 * eval.c: Ditto.
11272 * event-loop.c: Ditto.
11273 * event-loop.h: Ditto.
11274 * exceptions.h: Ditto.
11275 * exec.c: Ditto.
11276 * expprint.c: Ditto.
11277 * expression.h: Ditto.
11278 * f-lang.c: Ditto.
11279 * f-valprint.c: Ditto.
11280 * findcmd.c: Ditto.
11281 * frame-base.c: Ditto.
11282 * frame-unwind.c: Ditto.
11283 * frame-unwind.h: Ditto.
11284 * frame.c: Ditto.
11285 * frame.h: Ditto.
11286 * gcore.c: Ditto.
11287 * gdb-stabs.h: Ditto.
11288 * gdb_assert.h: Ditto.
11289 * gdb_dirent.h: Ditto.
11290 * gdb_obstack.h: Ditto.
11291 * gdbcore.h: Ditto.
11292 * gdbtypes.c: Ditto.
11293 * gdbtypes.h: Ditto.
11294 * inf-ttrace.c: Ditto.
11295 * infcall.c: Ditto.
11296 * infcmd.c: Ditto.
11297 * inflow.c: Ditto.
11298 * infrun.c: Ditto.
11299 * inline-frame.h: Ditto.
11300 * language.c: Ditto.
11301 * language.h: Ditto.
11302 * libunwind-frame.c: Ditto.
11303 * libunwind-frame.h: Ditto.
11304 * linespec.c: Ditto.
11305 * linux-nat.c: Ditto.
11306 * linux-nat.h: Ditto.
11307 * linux-thread-db.c: Ditto.
11308 * machoread.c: Ditto.
11309 * macroexp.c: Ditto.
11310 * macrotab.c: Ditto.
11311 * main.c: Ditto.
11312 * maint.c: Ditto.
11313 * mdebugread.c: Ditto.
11314 * memattr.c: Ditto.
11315 * minsyms.c: Ditto.
11316 * monitor.c: Ditto.
11317 * monitor.h: Ditto.
11318 * objfiles.c: Ditto.
11319 * objfiles.h: Ditto.
11320 * osabi.c: Ditto.
11321 * p-typeprint.c: Ditto.
11322 * p-valprint.c: Ditto.
11323 * parse.c: Ditto.
11324 * printcmd.c: Ditto.
11325 * proc-events.c: Ditto.
11326 * procfs.c: Ditto.
11327 * progspace.c: Ditto.
11328 * progspace.h: Ditto.
11329 * psympriv.h: Ditto.
11330 * psymtab.c: Ditto.
11331 * record.c: Ditto.
11332 * regcache.c: Ditto.
11333 * regcache.h: Ditto.
11334 * remote-fileio.c: Ditto.
11335 * remote.c: Ditto.
11336 * ser-mingw.c: Ditto.
11337 * ser-tcp.c: Ditto.
11338 * ser-unix.c: Ditto.
11339 * serial.c: Ditto.
11340 * serial.h: Ditto.
11341 * solib-frv.c: Ditto.
11342 * solib-irix.c: Ditto.
11343 * solib-osf.c: Ditto.
11344 * solib-pa64.c: Ditto.
11345 * solib-som.c: Ditto.
11346 * solib-sunos.c: Ditto.
11347 * solib-svr4.c: Ditto.
11348 * solib-target.c: Ditto.
11349 * solib.c: Ditto.
11350 * somread.c: Ditto.
11351 * source.c: Ditto.
11352 * stabsread.c: Ditto.
11353 * stabsread.c: Ditto.
11354 * stack.c: Ditto.
11355 * stack.h: Ditto.
11356 * symfile-mem.c: Ditto.
11357 * symfile.c: Ditto.
11358 * symfile.h: Ditto.
11359 * symmisc.c: Ditto.
11360 * symtab.c: Ditto.
11361 * symtab.h: Ditto.
11362 * target-descriptions.c: Ditto.
11363 * target-memory.c: Ditto.
11364 * target.c: Ditto.
11365 * target.h: Ditto.
11366 * terminal.h: Ditto.
11367 * thread.c: Ditto.
11368 * top.c: Ditto.
11369 * tracepoint.c: Ditto.
11370 * tracepoint.h: Ditto.
11371 * ui-file.c: Ditto.
11372 * ui-file.h: Ditto.
11373 * ui-out.h: Ditto.
11374 * user-regs.c: Ditto.
11375 * user-regs.h: Ditto.
11376 * utils.c: Ditto.
11377 * valarith.c: Ditto.
11378 * valops.c: Ditto.
11379 * valprint.c: Ditto.
11380 * valprint.h: Ditto.
11381 * value.c: Ditto.
11382 * varobj.c: Ditto.
11383 * varobj.h: Ditto.
11384 * vec.h: Ditto.
11385 * xcoffread.c: Ditto.
11386 * xcoffsolib.c: Ditto.
11387 * xcoffsolib.h: Ditto.
11388 * xml-syscall.c: Ditto.
11389 * xml-tdesc.c: Ditto.
11390
9a2b4c1b
MS
113912011-01-05 Michael Snyder <msnyder@vmware.com>
11392
11393 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11394 * cli/cli-decode.c: Ditto.
11395 * cli/cli-dump.c: Ditto.
11396 * cli/cli-logging.c: Ditto.
11397 * cli/cli-script.c: Ditto.
11398 * cli/cli-setshow.c: Ditto.
11399 * common/signals.c: Ditto.
11400 * mi/mi-cmd-break.c: Ditto.
11401 * mi/mi-cmd-disas.c: Ditto.
11402 * mi/mi-cmd-stack.c: Ditto.
11403 * mi/mi-cmd-var.c: Ditto.
11404 * mi/mi-cmds.c: Ditto.
11405 * mi/mi-common.h: Ditto.
11406 * mi/mi-console.c: Ditto.
11407 * mi/mi-interp.c: Ditto.
11408 * mi/mi-main.c: Ditto.
11409 * osf-share/cma_attr.c: Ditto.
11410 * osf-share/cma_deb_core.h: Ditto.
11411 * osf-share/cma_debug_client.h: Ditto.
11412 * osf-share/cma_handle.h: Ditto.
11413 * osf-share/cma_mutex.h: Ditto.
11414 * osf-share/cma_stack_int.h: Ditto.
11415 * osf-share/cma_tcb_defs.h: Ditto.
11416 * python/py-auto-load.c: Ditto.
11417 * python/py-breakpoint.c: Ditto.
11418 * python/py-cmd.c: Ditto.
11419 * python/py-frame.c: Ditto.
11420 * python/py-objfile.c: Ditto.
11421 * python/py-param.c: Ditto.
11422 * python/py-progspace.c: Ditto.
11423 * python/py-symbol.c: Ditto.
11424 * python/py-value.c: Ditto.
11425 * python/python-internal.h: Ditto.
11426 * python/python.c: Ditto.
11427 * tui/tui-data.c: Ditto.
11428 * tui/tui-disasm.c: Ditto.
11429 * tui/tui-hooks.c: Ditto.
11430 * tui/tui-io.c: Ditto.
11431 * tui/tui-layout.c: Ditto.
11432 * tui/tui-regs.c: Ditto.
11433 * tui/tui-source.c: Ditto.
11434 * tui/tui-stack.c: Ditto.
11435 * tui/tui-win.c: Ditto.
11436 * tui/tui-windata.c: Ditto.
11437 * tui/tui-winsource.c: Ditto.
11438
44944448
JB
114392011-01-05 Joel Brobecker <brobecker@adacore.com>
11440
11441 * configure.ac, gdb.1: Copyright year update.
11442
ebedcab5
JK
114432011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11444
11445 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11446 this_pc_in_block, morestack_msym and morestack_name. Check for
11447 "__morestack" minimal symbol there.
11448
e5cc9f32
JB
114492011-01-03 Joel Brobecker <brobecker@adacore.com>
11450
11451 * symfile.c (find_sym_fns): Add call to dont_repeat.
11452
7b6bb8da
JB
114532011-01-01 Joel Brobecker <brobecker@adacore.com>
11454
11455 Copyright year update in most files (performed by copyright.sh).
11456
71ce852c
JB
114572011-01-01 Joel Brobecker <brobecker@adacore.com>
11458
11459 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11460
c3c1ebe8 11461For older changes see ChangeLog-2010.
c906108c
SS
11462\f
11463Local Variables:
11464mode: change-log
11465left-margin: 8
11466fill-column: 74
11467version-control: never
57da7796 11468coding: utf-8
c906108c 11469End: