ChangeLog:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d6db1fab
UW
12011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * s390-nat.c (SUBOFF): Remove.
4 (s390_native_supply, s390_native_collect): New functions.
5 (supply_gregset, supply_fpregset): Use s390_native_supply.
6 (fill_gregset, fill_fpregset): Use s390_native_collect.
7
8 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
9 (s390_unwind_pseudo_register): New function.
10 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
11 registers instead of PC and CC.
12 (s390_backchain_frame_unwind_cache): Likewise.
13 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
14 full GPR pseudos.
15 (s390_trad_frame_prev_register): New function.
16 (s390_frame_prev_register): Use it.
17 (s390_sigtramp_frame_prev_register): Likewise.
18 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
19 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
20 special callback to unwind any pseudo.
21
22 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
23 * features/s390-core64.xml: Likewise.
24 * features/s390x-core64.xml: Likewise.
25 * features/s390-linux32.c: Regenerate.
26 * features/s390-linux64.c: Likewise.
27 * features/s390x-linux64.c: Likewise.
28
1dd635ac
UW
292011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
30
31 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
32
0161e4b9
UW
332011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
34
35 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
36 instruction. Add more diagnostic output.
37
0c36327f
AS
382011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
39
40 * MAINTAINERS (Write After Approval): Add myself to the list.
41
b4264740
SD
422011-11-29 Sanjoy Das <sdas@igalia.com>
43
44 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
45 (jit_bfd_try_read_symtab): Fix comments.
46
87326c78
DD
472011-11-28 DJ Delorie <dj@redhat.com>
48
49 * NEWS: Mention RL78 simulator.
50
1e3a8f45
JB
512011-11-28 Joel Brobecker <brobecker@adacore.com>
52
53 * symfile.h (struct quick_symbol_functions): Fix the documentation
54 of field map_matching_symbols, as symbols are sorted using
55 strcmp_iw_ordered, not strcmp_iw.
56
265e52c3
JB
572011-11-28 Paul Hilfinger <hilfinger@adacore.com>
58
59 * symfile.h (struct quick_symbol_functions): Update the
60 documentation for field map_matching_symbols.
61
1a1d5513
JB
622011-11-28 Joel Brobecker <brobecker@adacore.com>
63
64 * ada-lang.c (compare_names): Fix wrong return value in case
65 string1 starts with the same contents as string2, followed
66 by an underscore that do not start a symbol name suffix.
67
5d9c5995
PM
682011-11-28 Phil Muldoon <pmuldoon@redhat.com>
69
70 PR python/13369
71 PR python/13374
72
73 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
74 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
75 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
76 exceptions.
77 * python/py-type.c (typy_strip_typedefs): Ditto.
78 (typy_legacy_template_argument): Ditto.
79 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
80 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
81
2bf50f6f
JB
822011-11-27 Joel Brobecker <brobecker@acacore.com>
83
84 * remote.c (remote_get_tracepoint_status): Delete addrbuf
85 local variable. Avoid use of sprintf_vma.
86
744ab88c
SD
872011-11-27 Sanjoy Das <sdas@igalia.com>
88
89 Fix regression in jit.exp.
90 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
91 (jit_register_code): Set the jit_objfile_data field to the correct
92 value.
93
46ad3598
UW
942011-11-25  Uros Bizjak  <ubizjak@gmail.com>
95
96 * alpha-tdep.c (br_opcode): New.
97 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
98 (alpha_deal_with_atomic_sequence): New function.
99 (alpha_gdbarch_init): Handle single stepping of atomic sequences
100 with alpha_deal_with_atomic_sequence.
101
e4c5f296
TG
1022011-11-24 Tristan Gingold <gingold@adacore.com>
103
104 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
105 fields. Add oso_sym, end_sym and nbr_syms.
106 (macho_register_oso): Change interface.
107 (macho_symtab_add_minsym): New function.
108 (macho_symtab_read): Rewritten.
109 (get_archive_prefix_len): Remove trailing blanks.
110 (oso_el_compare_name): Add comment.
111 (struct macho_sym_hash_entry): New structure.
112 (macho_relocate_common_syms): Remove.
113 (macho_sym_hash_newfunc): New function.
114 (macho_resolve_oso_sym_with_minsym): Likewise.
115 (macho_add_oso_symfile): Rewritten.
116 (macho_symfile_read_all_oso): Remove trailing blanks.
117 Adjust code to free oso vector.
118 (macho_symfile_read): Likewise.
119 Move code to initialize minimal symbol
120
130854df
MR
1212011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
122
123 * mips-tdep.c (extended_offset): Fix formatting.
124
3d7bb9d9
DE
1252011-11-23 Doug Evans <dje@google.com>
126
127 * dwarf2read.c (dw2_lookup_symtab): Add comment.
128 (dw2_expand_symtabs_with_filename): Ditto.
129 (dw2_expand_symtabs_matching): Ditto.
130 (dw2_map_symbol_filenames): Ditto.
131
1fbf5ada
JB
1322011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
133
134 * ada-lang.c (assign_aggregate): Minor reformatting.
135
d984108d
JB
1362011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
137
138 * ada-lang.c (assign_aggregate): Remove declaration of local
139 variable `i' which is shadowing another variable with the same
140 name declared in the outer scope.
141
18af8284
JB
1422011-11-23 Joel Brobecker <brobecker@adacore.com>
143
144 * ada-lang.c (get_base_type): Renames base_type. Adjust all
145 calls throughout this file.
146
1fc7b5d7
JB
1472011-11-23 Joel Brobecker <brobecker@adacore.com>
148
149 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
150 FormatMessage.
151
36dfb11c
TT
1522011-11-22 Tom Tromey <tromey@redhat.com>
153
154 PR mi/8444:
155 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
156 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
157 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
158 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
159 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
160 (print_it_catch_syscall, print_it_catch_exec)
161 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
162 (bpstat_print): Add 'kind' argument. Handle
163 TARGET_WAITKIND_LOADED.
164 * infrun.c (normal_stop): Update for bpstat_print change. Don't
165 handle TARGET_WAITKIND_LOADED here.
166 * breakpoint.h (bpstat_print): Update.
167
5bd6aa83
TT
1682011-11-22 Tom Tromey <tromey@redhat.com>
169
170 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
171
f5afdc18
TT
1722011-11-22 Tom Tromey <tromey@redhat.com>
173
174 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
175 Use static_assert to check the size of
176 async_reason_string_lookup.
177 * common/gdb_assert.h (static_assert): New macro.
178
a3769e0c
AM
1792011-11-22 Alan Modra <amodra@gmail.com>
180
181 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
182 destination calculation. Don't expect >> to sign extend. Don't
183 add a break if branch lands inside the sequence anywhere.
184
56767571
KS
1852011-11-21 Keith Seitz <keiths@redhat.com>
186
187 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
188 -var-evaluate-expression of an enumeration and fix expected result.
189 * gdb.mi/mi2-varvdisplay.exp: Likewise.
190
8443c207
KY
1912011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
192
193 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
194 the case where osdata->items is empty. Rename column names to a
195 canonical form to avoid problems with unusual column names.
196
97643830
YQ
1972011-11-21 Yao Qi <yao@codesourcery.com>
198
199 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
200
f196051f
SS
2012011-11-20 Stan Shebs <stan@codesourcery.com>
202
203 * NEWS: Mention tracepoint additions.
204 * breakpoint.h (struct tracepoint): New field traceframe_usage.
205 * breakpoint.c (print_one_breakpoint_location): Identify
206 tracepoints as such when reporting hit counts, report
207 trace buffer usage.
208 (create_tracepoint_from_upload): Copy status info.
209 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
210 add fields user_name, notes, start_time, stop_time.
211 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
212 * tracepoint.c (trace_user): New global.
213 (trace_notes): New global.
214 (trace_stop_notes): New global.
215 (start_tracing): Add argument and trace note handling.
216 (stop_tracing): Ditto.
217 (trace_start_command): Add notes argument.
218 (trace_stop_command): Ditto.
219 (trace_status_command): Report additional status info.
220 (trace_status_mi): Similarly.
221 (trace_save): Update, record tracepoint status.
222 (set_disconnected_tracing): Call target method directly.
223 (send_disconnected_tracing_value): Remove.
224 (set_trace_user): New function.
225 (set_trace_notes): New function.
226 (set_trace_stop_notes): New function.
227 (parse_trace_status): Handle additional status.
228 (parse_tracepoint_status): New function.
229 (parse_tracepoint_definition): Call it.
230 (tfile_get_tracepoint_status): New function.
231 (init_tfile_ops): Use it.
232 (_initialize_tracepoint): Add new setshows.
233 * target.h (struct target_ops): New methods to_get_tracepoint_status
234 and to_set_trace_notes.
235 (target_get_tracepoint_status): New macro.
236 (target_set_trace_notes): New macro.
237 * target.c (update_current_target): Add new methods.
238 * remote.c (remote_get_tracepoint_status): New function.
239 (remote_set_trace_notes): New function.
240 (init_remote_ops): Add them.
241 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
242 (mi_cmd_trace_stop): Ditto.
243
3623dc3a
SD
2442011-11-20 Sanjoy Das <sdas@igalia.com>
245
246 * jit.c: Include regcache.h.
247 (jit_gdbarch_data, jit_frame_unwind): New static variables.
248 (jit_unwind_reg_set_impl, free_reg_value_impl)
249 (jit_unwind_reg_get_impl, jit_frame_sniffer)
250 (jit_frame_unwind_stop_reason, jit_frame_this_id)
251 (jit_frame_prev_register, jit_dealloc_cache)
252 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
253 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
254 jit_prepend_unwinder.
255 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
256
1825a88d
SD
2572011-11-20 Sanjoy Das <sdas@igalia.com>
258
259 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
260 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
261 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
262 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
263 (finalize_symtab, jit_object_close_impl)
264 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
265 (free_objfile_data): New functions.
266 (_initialize_jit): Register jit_objfile_data with a proper cleanup
267 function.
268
784c47ee
SD
2692011-11-20 Sanjoy Das <sdas@igalia.com>
270
271 * jit.c: Include gdb-dlfcn.h.
272 (loaded_jit_reader, reader_init_fn_sym): New static variables.
273 (jit_reader_load, jit_reader_load_command)
274 (jit_reader_unload_command): New functions.
275 (_initialize_jit): Add commands "jit-reader-load" and
276 "jit-reader-unload".
277
a2d08b9e
SD
2782011-11-20 Sanjoy Das <sdas@igalia.com>
279
280 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
281 * config.in: Add new #define HAVE_LIBDL.
282 * configure.ac: Add check for -ldl.
283 * configure: Re-generated by autoconf.
284 * gdb-dlfcn.c: New file.
285 * gdb-dlfcn.h: New file.
286
b8e0a31c
SD
2872011-11-20 Sanjoy Das <sdas@igalia.com>
288
289 * config.in: Add new #defines: JIT_READER_DIR and
290 JIT_READER_DIR_RELOCATABLE.
291 * configure.ac: New GDB directory entry for jit-reader-dir.
292 * configure: Re-generated by autoconf.
293 * jit.c: New static variable: const char *jit_reader_dir.
294 (_initialize_jit): Relocate jit_reader_dir.
295
f997c383
SD
2962011-11-20 Sanjoy Das <sdas@igalia.com>
297
298 * Makefile.in: Add jit-reader.h as a header. Have it installed in
299 $(includedir)/gdb.
300 * configure.ac: Generate a correct value for TARGET_PTR for
301 jit-reader.h. Tell configure to generate jit-reader.h from
302 jit-reader.in.
303 * configure: Re-generated by autoconf.
304 * jit-reader.in: New file.
305 * jit.c: Include jit-reader.h.
306
dc8c0494
SD
3072011-11-20 Sanjoy Das <sdas@igalia.com>
308
309 * MAINTAINERS (Write After Approval): Add myself to the list.
310
01efb936
UW
3112011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
312
313 * findvar.c (read_frame_register_value): Respect value_offset
314 of the register value. Remove big-endian special case.
315
732f3f12
TT
3162011-11-18 Tom Tromey <tromey@redhat.com>
317
318 PR build/7196:
319 * remote.c (putpkt_for_catch_errors): New function.
320 (remote_kill): Use it.
321
bfccc43c
YQ
3222011-11-18 Yao Qi <yao@codesourcery.com>
323
324 * breakpoint.c (create_breakpoint): Produce query message according to
325 breakpoint's type.
326 Allocate tracepoint per correct type.
327 Don't check SALs for pending fast tracepoints.
328 * tracepoint.c (process_tracepoint_on_disconnect): New.
329 (disconnect_tracing): Call process_tracepoint_on_disconnect.
330
3ea46bff
YQ
3312011-11-18 Yao Qi <yao@codesourcery.com>
332
333 * breakpoint.c (install_breakpoint): Add one more parameter so that
334 update_global_location_list is called conditionally.
335 (create_fork_vfork_event_catchpoint): Update.
336 (create_syscall_event_catchpoint): Update.
337 (create_breakpoint_sal): Update.
338 (create_breakpoint_sal): Update. Call do_cleanups before
339 install_breakpoint.
340 * ada-lang.c (create_ada_exception_catchpoint): Update.
341 * breakpoint.h (install_breakpoint): Update declaration.
342
598cfb71
UW
3432011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
344
345 * spu-tdep.c (spu_return_value): Fix handling of
346 TYPE_CALLING_CONVENTION annotation.
347
caf4328c
UW
3482011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
349
350 * skip.c (skip_function_command): Work around uninitialized
351 variable warning.
352
2b54dda2
DM
3532011-11-16 David S. Miller <davem@davemloft.net>
354
355 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
356 'tv_usec' to long for printf since these fields have a type which
357 varies.
358
93bf33fd
DE
3592011-11-15 Doug Evans <dje@google.com>
360
361 * buildsym.c (add_symbol_to_list): Delete outdated comment.
362
9cc10fd1
PK
3632011-11-15 Paul Koning <paul_koning@dell.com>
364
365 * python/py-type.c (typy_get_composite): New function.
366 (typy_nonzero): New function.
367 (typy_values): Rename from typy_fields.
368 (typy_fields): New function.
369 (typy_length): Raise exception if not struct, union, or enum type.
370 (typy_getitem): Ditto.
371 (typy_has_key): Ditto.
372 (typy_make_iter): Ditto.
373
c011a4f4
DE
3742011-11-15 Doug Evans <dje@google.com>
375
376 * NEWS: Mention new parameter basenames-may-differ.
377 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
378 ! basenames_may_differ.
379 * psymtab.c (lookup_partial_symtab): Ditto.
380 * symtab.c (lookup_symtab): Ditto.
381 (basenames_may_differ): New global.
382 (_initialize_symtab): New parameter basenames-may-differ.
383 * symtab.h (basenames_may_differ): Declare.
384
865ecab4
LM
3852011-11-15 Pedro Alves <pedro@codesourcery.com>
386 Luis Machado <lgustavo@codesourcery.com>
387
388 * auxv.c: Include observer.h.
389 (auxv_inferior_data_cleanup): New.
390 (invalidate_auxv_cache_inf): New.
391 (invalidate_auxv_cache): New.
392 (get_auxv_inferior_data): New.
393 (auxv_inferior_data): New static global.
394 (auxv_info): New structure.
395 (target_auxv_search): Use get_auxv_inferior_data instead of
396 target_read_alloc and don't free cached buffers.
397 (fprint_target_auxv): Likewise
398 (_initialize_auxv): Register per-inferior auxv cache and register
399 observers to invalidate auxv cache when needed.
400
ed59ded5
DE
4012011-11-14 Doug Evans <dje@google.com>
402
403 Make "!" an alias for "shell".
404 * NEWS: Add mention.
405 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
406 adding "!" command, always add it.
407 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
408 command of length one.
409
405f8e94
SS
4102011-11-14 Stan Shebs <stan@codesourcery.com>
411 Kwok Cheung Yeung <kcy@codesourcery.com>
412
413 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
414 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
415 the minimum instruction size for fast tracepoints.
416 * target.h (struct target_ops): Add new method
417 to_get_min_fast_tracepoint_insn_len.
418 (target_get_min_fast_tracepoint_insn_len): New.
419 * target.c (update_current_target): Set up new target operation.
420 * remote.c (remote_write_bytes_aux): Fix typo.
421 (remote_get_min_fast_tracepoint_insn_len): New.
422 (init_remote_ops): Initialize new field.
423
3e05895e
TT
4242011-11-14 Tom Tromey <tromey@redhat.com>
425
426 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
427 (encode_actions): Likewise.
428
1e4d1764
YQ
4292011-11-14 Yao Qi <yao@codesourcery.com>
430
431 * remote.c (struct remote_state): <install_in_trace> new field.
432 (PACKET_InstallInTrace): New enum value.
433 (remote_install_in_trace_feature): Support InstallInTrace.
434 (remote_supports_install_in_trace): Likewise.
435 (remote_protocol_features): Likewise.
436 (_initialize_remote): Likewise.
437 (remote_can_download_tracepoint): New.
438 * target.h (struct target): New field
439 `to_can_download_tracepoint'.
440 (target_can_download_tracepoint): New macro.
441 * target.c (update_current_target): Update.
442 * breakpoint.h (struct bp_location): Add comment on field
443 `duplicate'.
3ccd4ac6
YQ
444 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
445 and tracepoint.
1e4d1764
YQ
446 (remove_breakpoints): Don't remove tracepoints.
447 (tracepoint_locations_match ): New.
448 (breakpoint_locations_match): Call it.
449 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
450 (download_tracepoint_locations): New.
451 (update_global_location_list): Call it.
452 * tracepoint.c (find_matching_tracepoint): Delete.
453 (find_matching_tracepoint_location): Renamed from
454 find_matching_tracepoint. Return bp_location rather than
455 tracepoint.
456 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
457 tracepoint is found.
458
e8ba3115
YQ
4592011-11-14 Yao Qi <yao@codesourcery.com>
460
461 * target.h (struct target): <to_download_tracepoint> Change type
462 of parameter from tracepoint to bp_location.
463 * target.c (update_current_target): Update.
464 * tracepoint.c (start_tracing): Update.
465 * remote.c (remote_download_tracepoint): Remove loop for each location
466 of a tracepoint.
467
edcc485a
MR
4682011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
469
470 * i386-nat.c (i386_insert_hw_breakpoint): Call
471 i386_update_inferior_debug_regs.
472 (i386_remove_hw_breakpoint): Likewise.
473
3742cc8b
YQ
4742011-11-14 Yao Qi <yao@codesourcery.com>
475
476 * breakpoint.c (init_raw_breakpoint): Call
477 add_location_to_breakpoint to replace duplicated code.
478 (add_location_to_breakpoint): Adjust the breakpoint's
479 address prior to allocating a location.
480
71eba9c2 4812011-11-12 Matt Rice <ratmice@gmail.com>
482
483 * macrocmd.c (macro_no_macro_info): New function.
484 (macro_expand_command): Use macro_no_macro_info.
485 (macro_expand_once_command): Ditto.
486 (info_macro_command): Add argument processing,
487 move info_definitions_command here.
488 (_initialize_macrocmd): Remove info definitions command.
489 Add arguments to info macro help text.
490 * NEWS: Replace info definitions command with new info macro options.
491
731971ed
KS
4922011-11-11 Keith Seitz <keiths@redhat.com>
493
494 PR gdb/12843
495 * linespec.c (locate_first_half): Keep ':' if it looks
496 like it could be part of a Windows path starting with
497 a drive letter.
498
6953d224
PA
4992011-11-10 Pedro Alves <pedro@codesourcery.com>
500
501 * linux-nat.c (linux_nat_wait): Don't force waking up the event
502 loop when returning a TARGET_WAITKIND_NO_RESUMED.
503
0c94aa73
PA
5042011-11-10 Pedro Alves <pedro@codesourcery.com>
505
506 * target.c (target_waitstatus_to_string): Handle
507 TARGET_WAITKIND_NO_RESUMED.
508
f6b47be4
DE
5092011-11-10 Doug Evans <dje@google.com>
510
74e2f255
DE
511 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
512 `need_fullname'.
513 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
514 (map_partial_symbol_filenames): Ditto. All callers updated.
515 * psymtab.h (map_partial_symbol_filenames): Update prototype.
516 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
517 parameter need_fullname.
518
256f06f3
DE
519 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
520 * source.c (symtab_to_fullname): Ditto.
521
50f182aa
DE
522 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
523 * gdb-demangle.h: ... here. New file.
524 * demangle.c: #include "gdb-demangle.h".
525 (_initialize_demangler): Use initialize_file_ftype for prototype.
526 Move "set demangle" and "set asm-demangle" parameters here from utils.c
527 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
528 from utils.c
529 * utils.c: Update. #include "gdb-demangle.h".
530 * symtab.h (asm_demangle): Delete.
531 (demangle): Move declaration next to use.
532 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
533 * dwarf2read.c: #include "gdb-demangle.h".
534 * gnu-v2-abi.c: Ditto.
535 * jv-typeprint.c: Ditto.
536 * mdebugread.c: Ditto.
537 * p-typeprint.c: Ditto.
538 * stabsread.c: Ditto.
539 * printcmd.c: Ditto.
540 (asm_demangle): Delete declaration.
541 * tui/tui-stack.c: #include "gdb-demangle.h".
542
f6b47be4
DE
543 * python/py-type.c (typy_fields_items): Call check_typedef.
544
22355c90
JB
5452011-11-10 Joel Brobecker <brobecker@adacore.com>
546
547 * findvar.c (read_frame_register_value): Read the correct bytes
548 from registers on big-endian architectures.
549
bd119cf1 5502011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
551
552 * procfs.c (load_syscalls): Make a cleanup.
553 (open_procinfo_files): fd==0 is ok.
554
0a86f364
JB
5552011-11-10 Joel Brobecker <brobecker@adacore.com>
556
557 * procfs.c (iterate_over_mappings): Call do_cleanups before
558 returning.
559
9bc118a5
DE
5602011-11-09 Doug Evans <dje@google.com>
561
562 * gdbtypes.c (check_typedef): Document that this function can
563 throw an exception.
564
a7860e76
TT
5652011-11-09 Tom Tromey <tromey@redhat.com>
566
567 PR c++/13342:
568 * valops.c (value_full_object): Return early if real type is
569 smaller than the enclosing type.
570
60965737
YQ
5712011-11-08 Yao Qi <yao@codesourcery.com>
572
573 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
574
72a2e3dc
MI
5752011-11-08 Meador Inge <meadori@codesourcery.com>
576
577 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
578 register when the frame can't be determined.
579 * arm-tdep.c (arm_analyze_prologue): Ditto.
580
ce3b0ff7
SS
5812011-11-07 Stan Shebs <stan@codesourcery.com>
582
583 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
584
2b914b52
JB
5852011-11-07 Joel Brobecker <brobecker@adacore.com>
586
587 * infrun.c (handle_inferior_event): Minor reformatting.
588
6f809020
DE
5892011-11-05 Doug Evans <dje@google.com>
590
591 * source.c (forget_cached_source_info_for_objfile): Move call to
592 objfile->sf->qf->forget_cached_source_info outside of
593 ALL_OBJFILE_SYMTABS loop.
594 (forget_cached_source_info): Delete unused variable `s'.
595
75d12218
JK
5962011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
597
598 * i386-nat.c (dr_ref_count): Remove unused variable.
599
e565b837
DE
6002011-11-05 Doug Evans <dje@google.com>
601
602 * main.c (captured_main): Set lim_at_start before calling
603 make_command_stats_cleanup.
604
0a1c4d10
DE
6052011-11-04 Doug Evans <dje@google.com>
606
607 * utils.c: #include "timeval-utils.h".
608 (cmd_stats): Rename start_time to start_cpu_time.
609 New member start_wall_time.
610 (report_command_stats): Report wall time.
611 (make_command_stats_cleanup): Record start wall time.
612
a1d705ee
TT
6132011-11-04 Tom Tromey <tromey@redhat.com>
614
615 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
616
81de56be
RO
6172011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
618
619 * coff-pe-read.c: Include defs.h before bfd.h.
620
3ab1ec27
PM
6212011-11-04 Phil Muldoon <pmuldoon@redhat.com>
622
623 PR Python/13345
624
625 * python/python.c (python_run_simple_file): Expand tilde in path.
626
cd829959
PM
6272011-11-04 Phil Muldoon <pmuldoon@redhat.com>
628
629 PR Python/13363
630
631 * python/py-type.c (typy_lookup_type): Do not return a type in
632 an exception handler.
633
080ad648
JK
6342011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
635 Eli Zaretskii <eliz@gnu.org>
636
637 * linux-nat.c (_initialize_linux_nat): Improve help
638 for `info proc stat', `info proc status', `info proc cwd',
639 `info proc cmdline' and `info proc exe'.
640
3065dfb6
SS
6412011-11-02 Stan Shebs <stan@codesourcery.com>
642
643 String collection for tracepoints.
644 * NEWS: Mention string collection.
645 * common/ax.def (tracenz): New bytecode.
646 * ax-gdb.h (trace_string_kludge): Declare.
647 * ax-gdb.c: Include valprint.h and c-lang.h.
648 (trace_string_kludge): New global.
649 (gen_traced_pop): Add string case.
650 (agent_command): Add string case.
651 * tracepoint.h (decode_agent_options): Declare.
652 * tracepoint.c: Include cli-utils.h.
653 (decode_agent_options): New function.
654 (validate_actionline): Call it.
655 (encode_actions_1): Ditto.
656 * target.h (struct target_ops): New method to_supports_string_tracing.
657 (target_supports_string_tracing): New macro.
658 * target.c (update_current_target): Add to_supports_string_tracing.
659 * remote.c (struct remote_state): New field string_tracing.
660 (remote_string_tracing_feature): New function.
661 (remote_protocol_features): New feature tracenz.
662 (remote_supports_string_tracing): New function.
663 (init_remote_ops): Set to_supports_string_tracing.
664
f179e162
JK
6652011-11-02 Pedro Alves <pedro@codesourcery.com>
666 Jan Kratochvil <jan.kratochvil@redhat.com>
667
668 * linux-nat.c: Include cli/cli-utils.h.
669 (enum info_proc_what): New.
670 (linux_nat_info_proc_cmd): Rename to ...
671 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
672 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
673 status_f and stat_f from WHAT. Throw error on extra parameters.
674 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
675 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
676 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
677 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
678 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
679 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
680 `info proc cmdline', `info proc exe' and `info proc all' as real
681 subcommands of `info proc'.
682
7b35ec7f 6832011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
684
685 * Makefile.in: (SFILES): Add skip.c.
686 (HFILES_NO_SRCDIR): Add skip.h.
687 (COMMON_OBS): Add skip.o.
688 * skip.h, skip.c: New.
689 * breakpoint.h (set_default_breakpoint): Remove.
690 (get_sal_arch): Declare.
691 * breakpoint.c: Remove default_breakpoint_valid,
692 default_breakpoint_address, default_breakpoint_symtab,
693 default_breakpoint_line, default_breakpoint_pspace variables.
694 (get_sal_arch): Make public.
695 (set_default_breakpoint): Remove.
696 (parse_breakpoint_sals, create_breakpoint, clear_command,
697 decode_line_spec_1): Remove uses of default_breakpoint variables;
698 replaced with function calls into stack.c.
699 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
700 * cli/cli-cmds.c: Add skiplist.
701 (init_cmd_lists): Initialize skiplist.
702 (init_cli_cmds): Fix comment (classes of commands appear in
703 alphabetical order).
704 * infrun.c (handle_inferior_event): Add check that we don't step into
705 a function whose pc is marked for skip.
706 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
707 last_displayed_addr, last_displayed_symtab, last_displayed_line
708 variables.
709 (set_last_displayed_sal): New static function.
710 (print_frame_info): Switch call to set_default_breakpoint to call to
711 set_last_displayed_sal.
712 (clear_last_displayed_sal, last_displayed_sal_is_valid,
713 get_last_displayed_pspace, get_last_displayed_addr,
714 get_last_displayed_symtab, get_last_displayed_line,
715 get_last_displayed_sal): New public functions.
716 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
717 get_last_displayed_pspace, get_last_displayed_addr,
718 get_last_displayed_symtab, get_last_displayed_line,
719 get_last_displayed_sal): Declare.
720
b60e1588
JL
7212011-11-01 Justin Lebar <justin.lebar@gmail.com>
722
723 * MAINTAINERS (Write After Approval): Add myself to the list.
724
d31647d2
YQ
7252011-10-29 Yao Qi <yao@codesourcery.com>
726
727 * infcmd.c (disconnect_command): Call disconnect_tracing.
728
b1d96efd
JK
7292011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
730
731 Code cleanup.
732 * symtab.c (skip_prologue_sal): Code reformatting.
733
4dfb2365
JK
7342011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
735
736 PR symtab/13208
737 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
738 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
739 SAI.
740
0e5bf2a8
PA
7412011-10-28 Pedro Alves <pedro@codesourcery.com>
742
743 * linux-nat.c (linux_nat_filter_event): Remove `options'
744 parameter, and dead code that used it. If we're handling a
745 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
746 in our lwp list, re-add it.
747 (check_zombie_leaders): New.
748 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
749 wait for children with WNOHANG, and always wait for all children.
750 Don't check for no resumed children upfront. Simplify wait loop.
751 Check for zombie thread group leaders after handling all wait
752 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
753 unwaited-for children left.
754 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
755 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
756 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
757 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
758
821296b7
SA
7592011-10-28 Sterling Augustine <saugustine@google.com>
760
761 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
762 * symtab.c (free_completion_list): New function.
763 (do_free_completion_list): Likewise.
764 (default_make_symbol_completion_list_break_on): New variable
765 back_to. Call make_cleanup and discard_cleanups.
766 (make_source_files_completion_list): Likewise.
767
03c3051a
PK
7682011-10-28 Paul Koning <paul_koning@dell.com>
769
770 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
771 * NEWS: Mention deep_items.
772
8e7ebaf5
PA
7732011-10-28 Alen Skondro <askondro@gmail.com>
774
8de33dc2 775 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
776 defined.
777
e0c6ef61
MI
7782011-10-27 Meador Inge <meadori@codesourcery.com>
779
780 * MAINTAINERS (Write After Approval): Add myself to the list.
781
b56d6f31
JB
7822011-10-27 Joel Brobecker <brobecker@adacore.com>
783
784 * value.h (read_frame_register_value): Add declaration.
785 * findvar.c (read_frame_register_value): New function.
786 (value_from_register): Use read_frame_register_value
787 instead of get_frame_register_value + value_contents_copy
788 to get value contents.
789
d234ef5c
DE
7902011-10-27 Doug Evans <dje@google.com>
791
792 * cli/cli-cmds.c (source_script_with_search): Pass full path to
793 source_script_from_stream if it may have been found on the search path.
794 * python/py-auto-load.c (source_section_scripts): Pass full path to
795 source_python_script_for_objfile.
796 * python/python.c (source_python_script): Delete stream parameter.
797 All callers updated.
798 (source_python_script_for_objfile): Ditto.
799 * python/python-internal.h (source_python_script_for_objfile): Update.
800 * python/python.h (source_python_script): Update.
801
d849d44f
TT
8022011-10-27 Tom Tromey <tromey@redhat.com>
803
804 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
805 (ada_sals_for_line): Remove declarations.
806
2231f1fb
KP
8072011-10-27 Kevin Pouget <kevin.pouget@st.com>
808
809 Move unwind reasons to an external .def file
810 * frame.c (frame_stop_reason_string): Rewrite using
811 unwind_stop_reasons.def.
812 * frame.h (enum unwind_stop_reason): Likewise.
813 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
814 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
815 constants for bound-checking.
816 * unwind_stop_reasons.def: New file.
817 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
818 instead of a distinct value.
819
f77b9a5d
PM
8202011-10-27 Phil Muldoon <pmuldoon@redhat.com>
821
822 PR python/13331
823
824 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
825 (convert_values_to_python): Return on Python tuple allocation
826 failure. Return NULL on value conversion error.
827
76dce0be
PM
8282011-10-27 Phil Muldoon <pmuldoon@redhat.com>
829
830 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
831 (bppy_set_task): Ditto.
832 (bppy_delete_breakpoint): Ditto.
833 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
834 (gdbpy_lookup_global_symbol): Ditto.
835 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
836 * python/py-frame.c (frapy_is_valid): Ditto.
837 (frame_info_to_frame_object): Ditto.
838 * python/py-type.c (typy_lookup_type): Ditto.
839 (typy_getitem): Ditto.
840 (typy_has_key): Ditto.
841 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
842
f17b6955
JB
8432011-10-26 Joel Brobecker <brobecker@adacore.com>
844
845 * gdbarch.h: Regenerate.
846
86ba1042
JB
8472011-10-26 Meador Inge <meadori@codesourcery.com>
848
849 * gdbarch.sh (function_list): Use 'pstring' when printing
850 'gcore_bfd_target'.
851 * gdbarch.c: Regenerate.
852
c34fd852
UW
8532011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
854
855 * regcache.c (registers_changed_ptid): Invalidate thread architecture
856 and frame caches if PTID refers to all threads of a process.
857
931bb47f
UW
8582011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
859
860 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
861 to create_breakpoint.
862
88aed45e
UW
8632011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
864
865 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
866 (ppc_sysv_abi_push_dummy_call): Use it.
867 (do_ppc_sysv_return_value): Likewise.
868 (ppc64_sysv_abi_push_dummy_call): Likewise.
869 (ppc64_sysv_abi_return_value): Likewise.
870
3eaf3fa2
PK
8712011-10-26 Paul Koning <paul_koning@dell.com>
872
873 * python/lib/gdb/types.py (deepitems): New function.
874
913460fc
PK
8752011-10-25 Paul Koning <paul_koning@dell.com>
876
877 PR python/13327
878
879 * python/py-value.c (value_to_value_object): Remove fetching of
880 the value if it was lazy.
881 (valpy_get_is_lazy): New function.
882 (valpy_fetch_lazy): New function.
883
2b5b9d09
JB
8842011-10-24 Joel Brobecker <brobecker@adacore.com>
885
886 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
887 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
888
e21ffe51
PA
8892011-10-24 Pedro Alves <pedro@codesourcery.com>
890
891 * linux-nat.c (linux_handle_extended_wait): When handling a clone
892 event, in non-stop, if not stopping, make sure the new lwp has
893 last_resume_kind set to resume_continue. Assert that when we're
894 resuming the new lwp, its last_resume_kind is resume_continue.
895
7aee8dc2
PA
8962011-10-24 Pedro Alves <pedro@codesourcery.com>
897
898 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
899 already set when marking the event thread as not executing in
900 non-stop mode.
901
4b4e080e
PA
9022011-10-24 Pedro Alves <pedro@codesourcery.com>
903
904 * infrun.c (handle_inferior_event): Add debug output for
905 TARGET_WAITKIND_NO_HISTORY.
906
baacfb07
PM
9072011-10-24 Phil Muldoon <pmuldoon@redhat.com>
908
909 * NEWS: Move set/show extended-prompt to "New Options". Expand
910 description. Fix typos.
911
8432bc41
PM
9122011-10-24 Phil Muldoon <pmuldoon@redhat.com>
913
914 PR python/13310
915
916 * python/py-param.c (call_doc_function): Correctly deference on
917 function exit.
918
6cda5a20
JB
9192011-10-21 Joel Brobecker <brobecker@adacore.com>
920
921 * ada-tasks.c (print_ada_task_info): Fix computation of
922 number of tasks displayed in command output.
923
13294f7d
JK
9242011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
925 Ulrich Weigand <uweigand@de.ibm.com>
926
927 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
928 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
929 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
930 gdbarch_pc_regnum and frame_unwind_register_unsigned by
931 gdbarch_unwind_pc.
932
460c1c54
CC
9332011-10-20 Cary Coutant <ccoutant@google.com>
934
935 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
936 section to...
937 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
938 flag. Adjust all callers.
939 (process_psymtab_comp_unit): Remove adjustment for type section.
940
a10964d1
AR
9412011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
942
943 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
944 arguments by adding OBJFILE. Instead of getting objfile from
945 symbol's symtab, use new argument OBJFILE.
946 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
947 arguments by adding OBJFILE.
948 * gdb/dwarf2read.c (new_symbol_full): Change call to
949 cp_scan_for_anonymous_namespaces to match new signature.
950 * gdb/stabsread.c (define_symbol): Change call to
951 cp_scan_for_anonymous_namespaces to match new signature.
952
27ca1a5b
PM
9532011-10-20 Phil Muldoon <pmuldoon@redhat.com>
954
955 PR python/13308
956 PR python/13309
957
958 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
959 leak.
960 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
961 leak. Delete unused variables.
962
9df2fbc4
PM
9632011-10-20 Phil Muldoon <pmuldoon@redhat.com>
964
965 PR python/12656
966
967 * python/py-frame.c (frapy_read_var): Use const struct *block.
968 * python/py-type.c (typy_lookup_typename): Likewise.
969 (typy_lookup_type): Likewise.
970 (typy_legacy_template_argument): Likewise.
971 (typy_template_argument): Likewise.
972 (gdbpy_lookup_type): Likewise.
973 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
974 * python/py-block.c (blpy_block_object): Likewise.
975 (blpy_iter): Likewise.
976 (blpy_get_start): Likewise.
977 (blpy_get_end): Likewise.
978 (blpy_get_function): Likewise.
979 (blpy_get_superblock): Likewise.
980 (set_block): Likewise.
981 (block_to_block_object): Likewise.
982 (block_object_to_block): Likewise.
983 (blpy_is_valid): Likewise.
984 (blpy_get_global_block): New function.
985 (blpy_get_static_block): New function.
986 (blpy_is_global): New function.
987 (blpy_is_static): New function.
988 * blockframe.c (block_innermost_frame): Likewise.
989 * valops.c (value_of_variable): Likewise.
990 * frame.h: Update prototypes.
991 * python/python-internal.h: Likewise.
992 * value.h: Likewise.
993
4743b735
CC
9942011-10-19 Cary Coutant <ccoutant@google.com>
995
996 * dwarf2read.c (create_debug_types_hash_table): Fix size of
997 type_offset field.
998
6caca83c
CC
9992011-10-19 Cary Coutant <ccoutant@google.com>
1000
1001 * dwarf2read.c (peek_abbrev_code): New function.
1002 (dw2_get_file_names): Check for dummy compilation units.
1003 (create_debug_types_hash_table): Likewise.
1004 (process_psymtab_comp_unit): Likewise.
1005 (load_partial_comp_unit): Likewise.
1006 (load_full_comp_unit): Likewise.
1007
43136979
AR
10082011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1009
1010 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1011 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1012 pt_phdr if PT_PHDR was found.
1013
0a07729b
TT
10142011-10-17 Joost van der Sluis <joost@cnoc.nl>
1015
1016 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1017 type or "<unnamed type"> when there is no name assigned.
1018 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1019 avoid a sigint when no name is assigned.
1020
21ae7a4d
JK
10212011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1022
1023 Revert:
1024 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1025 * dwarf2expr.c (ctx_no_read_reg): New function.
1026 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1027 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1028 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1029 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1030
32d1c362
DE
10312011-10-16 Doug Evans <dje@google.com>
1032
1033 * NEWS: Document python gdb.printing.register_pretty_printer's new
1034 `replace' parameter.
1035
da096638
KS
10362011-10-14 Keith Seitz <keiths@redhat.com>
1037
1038 PR c++/13225
1039 * eval.c (evaluate_subexp_standard): Do not construct
1040 an array of types; pass the value array directly to
1041 find_overload_match.
1042 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1043 (rank_function): Take an array of values instead of types.
1044 (rank_one_type): Add struct value * parameter.
1045 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1046 (rank_function): For each argument, pass the argument's
1047 value to rank_one_type.
1048 (rank_one_type): Add VALUE parameter.
1049 If the parameter type is a pointer and the argument type
1050 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1051 VALUE is zero.
1052 Update all calls to rank_one_type, passing NULL for new
1053 VALUE parameter.
1054 * valarith.c (value_user_defined_cpp_op): Do not construct
1055 an array of types; pass the value array directly to
1056 find_overload_match.
1057 * valops.c (find_overload_method_list): Take an array of
1058 values instead of types.
1059 Save the type of OBJP for later use.
1060 Update calls to find_oload_champ, and find_oload_champ_namespace.
1061 (find_oload_champ_namespace): Take an array of values instead
1062 of types.
1063 (find_oload_champ_namespace_loop): Likewise.
1064 (find_oload_champ): Likewise.
1065 (classify_oload_match): Inspect all arguments
1066 until INCOMPATIBLE is found. Return the worst badness found
1067 otherwise.
1068 (compare_parameters): Update call to rank_one_type.
1069 * value.h (find_overload_match): Take an array of values instead
1070 of types.
1071
3957565a
JK
10722011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1073
1074 Drop lazy lm_info reading.
1075 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1076 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1077 (lm_info_read): New function.
1078 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1079 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1080 lm_dynamic_from_link_map.
1081 (lm_next, lm_prev, lm_name): Remove.
1082 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1083 initialization incl. read_memory. No longer use lm_name.
1084 (svr4_free_so): Drop lm_info->lm freeing.
1085 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1086 explicit lm_addr and lm initialization.
1087 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1088 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1089 lm_name.
1090
cb08cc53
JK
10912011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1092 Paul Pluzhnikov <ppluzhnikov@google.com>
1093
1094 * defs.h (struct so_list): New forward declaration.
1095 (make_cleanup_free_so): New declaration.
1096 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1097 (svr4_free_so): Move the function here from downwards. Handle NULL
1098 so->lm_info.
1099 (svr4_free_library_list): New.
1100 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1101 Use more cleanups. Use new parameter ignore_first instead of
1102 ignore_first_link_map_entry.
1103 (svr4_current_sos): New variable ignore_first, initialize it. New
1104 variable back_to, use it for svr4_free_library_list protection.
1105 (svr4_free_so): Remove - move upwards.
1106 * utils.c: Include solist.h.
1107 (do_free_so, make_cleanup_free_so): New functions.
1108
22c05d8a
JK
11092011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 Fix internal error regression.
1112 * value.c (value_primitive_field): Handle value_optimized_out. Move
1113 packed bitfields comment.
1114
d930d06e
TT
11152011-10-13 Tom Tromey <tromey@redhat.com>
1116
1117 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1118 always released.
1119
2ff6b080
TT
11202011-10-13 Tom Tromey <tromey@redhat.com>
1121
1122 * python/py-type.c (typy_has_key): Make 'field' const.
1123
d6c5869f
LM
11242011-10-13 Luis Machado <lgustavo@codesourcery.com>
1125
1126 * remote.c (remote_save_trace_data): Invert comparison.
1127
a70633a2
LM
11282011-10-13 Luis Machado <lgustavo@codesourcery.com>
1129
1130 * tracepoint.c (trace_save_command): Use filename instead of
1131 args when printing.
1132
e103e986
JK
11332011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1136 if .size is 0.
1137
db24da6d
YQ
11382011-10-13 Yao Qi <yao@codesourcery.com>
1139
1140 PR gdb/12703
1141 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1142 whether insn is a 32-bit Thumb-2 instruction.
1143 (thumb_in_function_epilogue_p): Likewise.
1144 (thumb_get_next_pc_raw): Likewise.
1145 (arm_breakpoint_from_pc): Likewise.
1146
1d6edc3c
JK
11472011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1148
1149 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1150 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1151 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1152 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1153 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1154 zero DATA.
1155 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1156 validity.
1157 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1158 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1159 clear DATA on zero SIZE.
1160
adabb602
DE
11612011-10-12 Doug Evans <dje@google.com>
1162
1163 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1164 header->first_die_offset here. All callers updated.
1165
5048e516
JK
11662011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 Fix compatibility with texinfo versions older than 4.12.
1169 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1170 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1171 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1172 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1173 * configure: Regenerate.
1174 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1175 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1176 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1177
0574c78f
GB
11782011-10-12 Gary Benson <gbenson@redhat.com>
1179
1180 * breakpoint.h (pc_at_non_inline_function): Declare.
1181 * breakpoint.c (is_non_inline_function,
1182 pc_at_non_inline_function): New functions.
1183 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1184 if the stop is at a location where functions cannot be inlined.
1185
12d9289a
PA
11862011-10-12 Pedro Alves <pedro@codesourcery.com>
1187
1188 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1189 the core wanted them stopped, or if they now have a pending event
1190 to report.
ecf8e7f5
PA
1191 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1192 down to stop_and_resume_callback.
1193 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1194 having new pending events after calling linux_nat_filter_event.
12d9289a 1195
96408a79
SA
11962011-10-11 Sterling Augustine <saugustine@google.com>
1197
1198 * dwarf2read.c: Undo inadvertent changes in previous commit.
1199
9c6c53f7
SA
12002011-10-11 Sterling Augustine <saugustine@google.com>
1201
1202 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1203 logic.
1204
0e8aefe7
UW
12052011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1206
1207 * symfile.c (separate_debug_file_exists): Fix condition.
1208
349d1385
DM
12092011-10-11 David S. Miller <davem@davemloft.net>
1210
1211 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1212 static.
1213 * regcache.h (regcache_restore): Remove declaration.
1214
205c306f
DM
1215 * gdbarch.sh: New field 'long_long_align_bit'.
1216 * gdbarch.c, gdbarch.h: Regenerate.
1217 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1218 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1219
941b2081
JK
12202011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1221
1222 Revert this part of:
1223 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1224 Support @entry in input expressions.
1225 * c-exp.y (ENTRY, unknown_cpp_name): New.
1226 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1227 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1228 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1229 (name_not_typename: ENTRY): New.
1230 (yylex): Recognize ENTRY.
1231
1232 Reimplement @entry in input expressions.
1233 * c-exp.y (ENTRY): New.
1234 (variable: name_not_typename ENTRY): New.
1235 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1236
3c4d7e12
PA
12372011-10-11 Pedro Alves <pedro@codesourcery.com>
1238
1239 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1240 parent and child's pids as soon as we detect a clone event.
1241 Adjust another debug message.
1242
ea23808b
PA
12432011-10-11 Pedro Alves <pedro@codesourcery.com>
1244
1245 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1246 not zombie instead of reading the whole file.
1247
904578ed
JK
12482011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1249
1250 Fix separate debuginfo warning with "remote:" access.
1251 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1252 * symfile.c (get_file_crc): New function with the code moved from ...
1253 (separate_debug_file_exists): ... this function, specifically variables
1254 buffer and count. New variable verified_as_different, set it. Remove
1255 file_crc initialization. Verify also if both files are not the same
1256 manually, if needed.
1257
51370a33
YQ
12582011-10-11 Yao Qi <yao@codesourcery.com>
1259
1260 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1261 to get address.
1262
0838fb57
DE
12632011-10-10 Doug Evans <dje@google.com>
1264
1265 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1266 libthread_db when we load libpthread or the main symbol file.
1267 (thread_db_inferior_created): New function.
1268 (_initialize_thread_db): Attach inferior_created observer.
1269 * linux-nat.c (linux_child_post_attach): Remove call to
1270 check_for_thread_db.
1271 (linux_child_post_startup_inferior): Ditto.
1272 * objfiles.h (OBJF_MAINLINE): Define.
1273 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1274 allocate_objfile when appropriate.
1275
623bd5b7
UW
12762011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1277
1278 PR gdb/13218
1279 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1280 Remove unused variables.
1281 (get_linux_version): Remove function.
1282 (_initialize_arm_linux_nat): Do not call it.
1283
79395f92
PA
12842011-10-10 Pedro Alves <pedro@codesourcery.com>
1285
1286 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1287 new clone lwp if the core asked it to stop. Don't pass on
1288 unexpected signals to the new clone; leave them pending instead.
1289
eff3df78
PA
12902011-10-10 Pedro Alves <pedro@codesourcery.com>
1291
1292 * linux-nat.c (resume_lwp): Remove redundant debug output.
1293
4b60df3d
PA
12942011-10-10 Pedro Alves <pedro@codesourcery.com>
1295
1296 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1297 last_resume_kind before clearing it, and use the copy instead to
1298 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1299 resume_clear_callback in the non-stop path too.
1300
6501578c
YQ
13012011-10-09 Yao Qi <yao@codesourcery.com>
1302
1303 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1304 Honor OPTIONS and VAL's type.
1305 (common_val_print, value_print): Update to pass one more parameter.
1306
5a56e9c5
DE
13072011-10-09 Doug Evans <dje@google.com>
1308
1309 Add new "alias" command.
1310 * NEWS: Mention new command.
1311 * command.h (valid_user_defined_cmd_name_p): Declare.
1312 * defs.h (make_cleanup_dyn_string_delete): Declare.
1313 * utils.c: #include "dyn-string.h".
1314 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1315 * cli/cli-cmds.c: #include "dyn-string.h".
1316 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1317 (init_cli_cmds): Add new command.
1318 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1319
509f0fd9
JK
13202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1321
1322 Fix compatibility with older GCCs.
1323 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1324 * stack.c (read_frame_arg): Initialize val_deref.
1325
2bda9cc5
JK
13262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1327
1328 Entry values NEWS entries, DWARF disassembly support.
1329 * NEWS: New entry values entry.
1330 (set print entry-values, show print entry-values)
1331 (set debug entry-values, show debug entry-values): New entries.
1332 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1333 indent. Remove variable start. Move header printing out. Respect
1334 INDENT. Support DW_OP_GNU_entry_value.
1335 (locexpr_describe_location_1): Move the header printing here, extend
1336 the disassemble_dwarf_expression passed parameters.
1337
a471c594
JK
13382011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1339
1340 Display @entry parameter values even for references.
1341 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1342 coerce_ref_if_computed.
1343 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1344 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1345 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1346 existing push_dwarf_reg_entry_value call. Add new detection calling
1347 dwarf_block_to_dwarf_reg_deref. Update the error message.
1348 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1349 * dwarf2expr.h
1350 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1351 parameter deref_size, describe it in the comment.
1352 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1353 (dwarf_block_to_dwarf_reg_deref): New declaration.
1354 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1355 deref_size, describe it in the function comment. New variables
1356 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1357 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1358 describe it in the function comment. Fetch the alternative block
1359 accoring to DEREF_SIZE.
1360 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1361 (entry_data_value_free_closure, entry_data_value_funcs): New.
1362 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1363 outer_val, target_val, val and addr. Try to fetch and create also
1364 referenced value content.
1365 (pieced_value_funcs): NULL value for coerce_ref.
1366 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1367 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1368 coerce_ref_if_computed.
1369 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1370 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1371 * stack.c (read_frame_arg): Compare also dereferenced values.
1372 * value.c (value_computed_funcs): Make the parameter v const, use
1373 value_lval_const for it.
1374 (value_lval_const, coerce_ref_if_computed): New function.
1375 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1376 * value.h (struct lval_funcs): New field coerce_ref.
1377 (value_computed_funcs): Make the parameter v const.
1378 (value_lval_const, coerce_ref_if_computed): New declarations.
1379
36b11add
JK
13802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1381
1382 Support @entry in input expressions.
1383 * c-exp.y (ENTRY, unknown_cpp_name): New.
1384 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1385 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1386 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1387 (name_not_typename: ENTRY): New.
1388 (yylex): Recognize ENTRY.
1389 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1390 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1391 Likewise.
1392 * parse.c (operator_length_standard): Likewise.
1393 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1394
3343315b
JK
13952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1396
1397 Display referenced values in backtraces.
1398 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1399 * stack.c (print_frame_arg): Likewise.
1400
ac71a68c
JK
14012011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1402
1403 Make some lval_funcs methods to default on NULL.
1404 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1405 NULL.
1406 (value_assign): Check if lval_computed write method is NULL.
1407 * value.h (struct lval_funcs): Comment NULL values for read and write
1408 methods.
1409
e18b2753
JK
14102011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Display @entry parameter values (without references).
1413 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1414 New functions.
1415 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1416 New declarations.
1417 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1418 entry record.
1419 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1420 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1421 functions.
1422 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1423 (loclist_read_variable_at_entry): New function.
1424 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1425 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1426 DW_AT_location, call dwarf_block_to_sp_offset for it.
1427 * frame.h (print_entry_values_no, print_entry_values_only)
1428 (print_entry_values_preferred, print_entry_values_if_needed)
1429 (print_entry_values_both, print_entry_values_compact)
1430 (print_entry_values_default, print_entry_values): New declarations.
1431 (struct frame_arg): New field entry_kind.
1432 (read_frame_arg): New parameter entryargp.
1433 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1434 arg->entry_kind. Optionally print the `@entry' suffix.
1435 (list_args_or_locals): New variable entryarg, initialize it.
1436 Initialize also entry_kind of arg and entryarg. Conditionalize
1437 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1438 xfree for entryarg.error.
1439 * stack.c (print_entry_values_no, print_entry_values_only)
1440 (print_entry_values_preferred, print_entry_values_if_needed)
1441 (print_entry_values_both, print_entry_values_compact)
1442 (print_entry_values_default, print_entry_values_choices)
1443 (print_entry_values): New variables.
1444 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1445 print the `@entry' suffix, possibly in combination for
1446 print_entry_values_compact.
1447 (read_frame_arg): New parameter entryargp, new variables entryval,
1448 entryval_error and val_equal. Read in also entryargp, respect
1449 print_entry_values, compare the values using val_equal, fill in also
1450 argp->entry_kind (together with entryargp->entry_kind).
1451 (print_frame_args): New variable entryarg, initialize it.
1452 Conditionalize print_frame_arg for arg, add print_frame_arg for
1453 entryarg. Call xfree for entryarg.error.
1454 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1455 * symtab.h (struct symbol_computed_ops): New field
1456 read_variable_at_entry.
1457
93d86cef
JK
14582011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1459
1460 Code reshuffle.
1461 * frame.h (struct frame_arg): New definition.
1462 (read_frame_arg): New declaration.
1463 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1464 (list_args_or_locals): ... the code here. New variable arg, call
1465 read_frame_arg and list_arg_or_local with it. Unify the
1466 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1467 arg.error.
1468 * stack.c (print_frame_arg): New functiom from the code of
1469 print_frame_args.
1470 (read_frame_arg): New function.
1471 (print_frame_args): Remove variable val. New variable arg, call
1472 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1473
2d6c5dc2
JK
14742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 Protect entry values against self tail calls.
1477 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1478 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1479
111c6489
JK
14802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 Recognize virtual tail call frames.
1483 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1484 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1485 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1486 * dwarf2-frame-tailcall.c: New file.
1487 * dwarf2-frame-tailcall.h: New file.
1488 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1489 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1490 REGS.PREV only after CIE execution.
1491 (struct dwarf2_frame_cache): New field tailcall_cache.
1492 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1493 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1494 parts, try to find entry_cfa_sp_offset. Call
1495 dwarf2_tailcall_sniffer_first.
1496 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1497 when appropriate.
1498 (dwarf2_frame_dealloc_cache): New function.
1499 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1500 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1501 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1502 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1503 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1504 * dwarf2loc.c (func_addr_to_tail_call_list)
1505 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1506 (call_site_find_chain_1, call_site_find_chain): New.
1507 * dwarf2loc.h (struct call_site_chain): New.
1508 (call_site_find_chain): New declaration.
1509 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1510 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1511 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1512 * stack.c (frame_info): Support also TAILCALL_FRAME.
1513
bb984ff1
JK
15142011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1515
1516 Tail call sites reader implementation.
1517 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1518 fill in TYPE_TAIL_CALL_LIST.
1519 * gdbtypes.h (struct func_type): New field tail_call_list.
1520 (struct call_site): New field tail_call_next.
1521 (TYPE_TAIL_CALL_LIST): New definition.
1522
8e3b41a9
JK
15232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1524
1525 Implement basic support for DW_TAG_GNU_call_site.
1526 * block.c: Include gdbtypes.h and exceptions.h.
1527 (call_site_for_pc): New function.
1528 * block.h (call_site_for_pc): New declaration.
1529 * defs.h: Include hashtab.h.
1530 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1531 declarations.
1532 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1533 ctx_no_push_dwarf_reg_entry_value.
1534 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1535 (dwarf_block_to_dwarf_reg): New function.
1536 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1537 (ctx_no_push_dwarf_reg_entry_value): New function.
1538 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1539 push_dwarf_reg_entry_value.
1540 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1541 declarations.
1542 * dwarf2loc.c: Include gdbcmd.h.
1543 (dwarf_expr_ctx_funcs): New forward declaration.
1544 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1545 (dwarf_expr_reg_to_entry_parameter)
1546 (dwarf_expr_push_dwarf_reg_entry_value): New.
1547 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1548 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1549 (needs_dwarf_reg_entry_value): New function.
1550 (needs_frame_ctx_funcs): Install it.
1551 (_initialize_dwarf2loc): New function.
1552 * dwarf2loc.h (entry_values_debug): New declaration.
1553 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1554 (read_call_site_scope): New forward declaration.
1555 (process_full_comp_unit): Copy call_site_htab.
1556 (process_die): Support DW_TAG_GNU_call_site.
1557 (read_call_site_scope): New function.
1558 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1559 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1560 (cleanup_htab): Delete.
1561 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1562 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1563 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1564 FIELD_LOC_KIND_DWARF_BLOCK.
1565 * gdbtypes.h (enum field_loc_kind): New entry
1566 FIELD_LOC_KIND_DWARF_BLOCK.
1567 (struct main_type): New loc entry dwarf_block.
1568 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1569 (TYPE_FIELD_DWARF_BLOCK): New.
1570 * python/py-type.c: Include dwarf2loc.h.
1571 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1572 internal_error call on unknown FIELD_LOC_KIND.
1573 * symtab.h (struct symtab): New field call_site_htab.
1574 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1575 (core_addr_hash, core_addr_eq): New functions.
1576
b6cdc2c1
JK
15772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1578
1579 Code reshuffle.
1580 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1581 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1582 calling_convention under func_stuff there.
1583 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1584 (init_type) <TYPE_CODE_FUNC>: Likewise.
1585 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1586 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1587 * gdbtypes.h (enum type_specific_kind): Change
1588 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1589 (struct main_type) <type_specific>: Change calling_convention to
1590 func_stuff. Move calling_convention to ...
1591 (struct func_type): ... this new struct.
1592 (INIT_FUNC_SPECIFIC): New #define.
1593 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1594
181cebd4
JK
15952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1598 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1599 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1600 ctx->ref_addr_size. Handle its invalid value.
1601 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1602 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1603 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1604 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1605 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1606 (dwarf2_per_cu_ref_addr_size): New function.
1607
c471e790
JK
16082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1609
1610 Code cleanup.
1611 * dwarf2read.c (per_cu_header_read_in): New function.
1612 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1613 variables cu_header_local and cu_headerp.
1614
741f5e3c
JK
16152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1616
1617 Fix initial language detection with -readnow.
1618 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1619 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1620 searches only for global symbols.
1621
a73d2258
JK
16222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1623
1624 Fix printed anonymous struct name.
1625 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1626 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1627 (anonymous_struct_prefix): New function.
1628 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1629 (dwarf2_name): Strip for anonymous structs any prefixes.
1630
749fd4ea
DE
16312011-10-07 Doug Evans <dje@google.com>
1632
1fa57852
DE
1633 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1634 `replace'.
1635
690a4937
DE
1636 * python/lib/gdb/printing.py: Whitespace cleanup.
1637
749fd4ea
DE
1638 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1639 warning.
1640
4c38200f
PA
16412011-10-07 Pedro Alves <pedro@codesourcery.com>
1642
1643 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1644 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1645 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1646 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1647 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1648 (arm_linux_remove_watchpoint): Adjust.
1649 * i386-linux-nat.c (i386_linux_dr_set_control)
1650 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1651 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1652 (ia64_linux_remove_watchpoint): Adjust.
1653 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1654 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1655 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1656 (ppc_linux_insert_mask_watchpoint)
1657 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1658 (ppc_linux_remove_watchpoint): Adjust.
1659 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1660 Adjust.
1661
b7ff339d
CV
16622011-10-07 Corinna Vinschen <vinschen@redhat.com>
1663
1664 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1665 (clear_win32_environment): New function for Cygwin to clear out
1666 Win32 environment.
1667 (windows_create_inferior): Prepare new environment from in_env
1668 for Cygwin, too.
1669
f287c1f3
PM
16702011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1671
5631e596 1672 PR python/13264
f287c1f3
PM
1673 * python/py-value.c (valpy_call): Check that arguments are
1674 a tuple.
1675 (is_intlike): Remove call to CHECK_TYPEDEF.
1676 (valpy_nonzero): Catch GDB exceptions.
1677 (valpy_absolute): Ditto.
1678 (valpy_lazy_string): Ditto.
1679 (valpy_call): Ditto.
1680 (valpy_get_is_optimized_out): Ditto.
1681 (valpy_long): Ditto.
1682 (valpy_float): Ditto.
1683 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1684 (valpy_richcompare): Ditto.
1685
03583c20
UW
16862011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1687
1688 * inferior.h (disable_randomization): Declare.
1689 * infrun.c (disable_randomization): New global variable.
1690 (show_disable_randomization): New function.
1691 (set_disable_randomization): Likewise.
1692 (_initialize_infrun): Install set/show disable-randomization
1693 commands.
1694 * linux-nat.c (disable_randomization): Remove.
1695 (show_disable_randomization): Likewise.
1696 (set_disable_randomization): Likewise.
1697 (_initialize_linux_nat): No longer install set/show
1698 disable-randomization commands here.
1699 (linux_nat_supports_disable_randomization): New function.
1700 (linux_nat_add_target): Install it.
1701 * remote.c (PACKET_QDisableRandomization): New enum value.
1702 (remote_protocol_packets): Support QDisableRandomization.
1703 (_initialize_remote): Likewise.
1704 (remote_supports_disable_randomization): New function.
1705 (init_remote_ops): Install it.
1706 (extended_remote_supports_disable_randomization): New function.
1707 (init_extended_remote_ops): Install it.
1708 (extended_remote_disable_randomization): New function.
1709 (extended_remote_create_inferior_1): Call it.
1710 * target.h (struct target_ops): Add to_supports_disable_randomization.
1711 (target_supports_disable_randomization): Add prototype.
1712 * target.c (target_supports_disable_randomization): New function.
1713 (find_default_supports_disable_randomization): Likewise.
1714 (init_dummy_target): Install it.
1715
20c168b5
KP
17162011-10-07 Kevin Pouget <kevin.pouget@st.com>
1717
1718 Allow Python notification of new object-file loadings.
1719 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1720 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1721 Add build rule for this file.
1722 * python/py-event.h (emit_new_objfile_event): New prototype.
1723 (newobjfile): New Python event emitter.
1724 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1725 Python event registry.
1726 * python/py-inferior.c: Include objfiles.h
1727 (python_new_objfile): New function.
1728 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1729 observers.
1730 * python/py-newobjfileevent.c: New file.
1731 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1732 prototype.
1733 * python/python.c (_initialize_python): Add
1734 gdbpy_initialize_new_objfile_event call.
1735 * NEWS: Add item for new Python event "gdb.newobjfile"
1736
b1c8db38
TG
17372011-10-05 Tristan Gingold <gingold@adacore.com>
1738
1739 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1740 Extract the ravenscar task name from the symbol for the atcb.
1741
0dab82e9
PK
17422011-10-04 Paul Koning <paul_koning@dell.com>
1743
1744 * python/py-type.c (typy_make_iter): Add forward declaration.
1745 (typy_fields_items): Use the gdb.Type iterator.
1746
84ad80e6
PK
17472011-10-04 Paul Koning <paul_koning@dell.com>
1748
1749 * NEWS: Add entry for Python gdb.Type mapping methods.
1750
cb6be26b
KP
17512011-10-04 Kevin Pouget <kevin.pouget@st.com>
1752
1753 PR python/12691: Add the inferior to Python exited event
1754 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1755 to exited_event.
1756 * python/py-event.h (emit_exited_event): Likewise
1757 * python/-inferior.c (python_inferior_exit): Likewise
1758
6005b210
JB
17592011-10-03 Joel Brobecker <brobecker@adacore.com>
1760
1761 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1762 in output of -ada-task-info GDB/MI command.
1763
75082e8c
JB
17642011-10-03 Joel Brobecker <brobecker@adacore.com>
1765
1766 * ada-lang.h (struct inferior): Declare.
1767 (print_ada_task_info): Add declaration.
1768 * ada-tasks.c (print_ada_task_info): Make non-static.
1769 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1770 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1771 * mi/mi-main.c: #include "ada-lang.h".
1772 (mi_cmd_list_features): Add "ada-task-info" to the list
1773 of supported features.
1774 (mi_cmd_ada_task_info): New function.
1775
7ed7d719
JB
17762011-10-03 Joel Brobecker <brobecker@adacore.com>
1777
1778 * python/python.c (python_run_simple_file): New function.
1779 (source_python_script, source_python_script_for_objfile):
1780 Replace call to PyRun_SimpleFile by call to
1781 python_run_simple_file.
1782
3fcaed38
PK
17832011-10-03 Paul Koning <paul_koning@dell.com>
1784
1785 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1786 (value_to_value_object): Fetch value if it was lazy.
1787
8e5c319d
JK
17882011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1789
1790 Code cleanup.
1791 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1792 Rearrange the code for it.
1793
dd11a36c
JB
17942011-10-02 Joel Brobecker <brobecker@adacore.com>
1795
1796 * breakpoint.c (bkpt_print_recreate): Add call to
1797 print_recreate_thread.
1798
723b724b
MF
17992011-09-29 Mike Frysinger <vapier@gentoo.org>
1800
1801 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1802 PTRACE_GETFDPIC_INTERP): Define.
1803
412946b6
YQ
18042011-09-28 Yao Qi <yao@codesourcery.com>
1805
1806 * symfile.c (add_symbol_file_command): Update message on usage.
1807
a73bb892
PK
18082011-09-28 Paul Koning <paul_koning@dell.com>
1809
1810 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1811 (typy_length, typy_get, typy_has_key, typy_make_iter)
1812 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1813 (typy_iterator_iter, typy_iterator_iternext)
1814 (typy_iterator_dealloc): New functions to implement standard
1815 Python mapping methods on gdb.Type object.
1816 (gdb.TypeIterator): New Python type.
1817 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1818
fe10a582
DM
18192011-09-28 David S. Miller <davem@davemloft.net>
1820
1821 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1822 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1823 * sparc-tdep.c (sparc_complex_floating_p): New function.
1824 (sparc32_store_arguments): Handle complex floats.
1825 (sparc32_extract_return_value): Likewise.
1826 (sparc32_store_return_value): Likewise.
1827 (sparc32_stabs_argument_has_addr): Likewise.
1828 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1829 (sparc64_store_floating_fields): Handle complex floats.
1830 (sparc64_store_arguments): Likewise.
1831 (sparc64_store_return_value): Likewise.
1832
c93dbcba
EZ
18332011-09-28 Eli Zaretskii <eliz@gnu.org>
1834
1835 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1836 before the change on 2006-12-09.
1837 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1838 generates the environment block for CreateProcessA, modulo the
1839 Cygwin-specific parts that are not needed here.
1840
f00c55f8
TG
18412011-09-27 Tristan Gingold <gingold@adacore.com>
1842
1843 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1844 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1845 (darwin_solib_get_all_image_info_addr_at_init): New function.
1846 (darwin_solib_read_all_image_info_addr): Likewise.
1847 (darwin_solib_create_inferior_hook): Use the above two functions.
1848 * darwin-nat.c (darwin_execvp): Renames retval to res.
1849 (darwin_read_write_inferior): Update comment.
1850 (darwin_read_dyld_info): New function.
1851 (darwin_xfer_partial): Handle DYLD_INFO.
1852
6710bf39
SS
18532011-09-27 Stan Shebs <stan@codesourcery.com>
1854
1855 Add return address collection for tracepoints.
1856 * tracepoint.c (encode_actions_1): Add case for $_ret.
1857 (validate_actionline): Check for $_ret.
1858 (trace_dump_actions): Ditto.
1859 * ax-gdb.h (gen_trace_for_return_address): Declare.
1860 * ax-gdb.c: Include arch-utils.h.
1861 (gen_trace_for_return_address): New function.
1862 (agent_command): Add return address special case.
1863 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1864 (amd64_gen_return_address): New function.
1865 (amd64_init_abi): Call it.
1866 * i386-tdep.c: Include ax.h and ax-gdb.h.
1867 (i386_gen_return_address): New function.
1868 (i386_init_abi): Call it.
1869 * arch-utils.h (default_gen_return_address): Declare.
1870 * arch-utils.c (default_gen_return_address): New function.
1871 * gdbarch.sh (gen_return_address): New method.
1872 * gdbarch.h, gdbarch.c: Regenerate.
1873
e04e5beb
JM
18742011-09-23 Joseph Myers <joseph@codesourcery.com>
1875
1876 PR gdb/13079
1877 * i386-tdep.c (i386_frame_align): New.
1878 (i386_gdbarch_init): Use i386_frame_align.
1879
f3d6df6d
YQ
18802011-09-23 Yao Qi <yao@codesourcery.com>
1881
1882 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1883 to get address.
1884
e69860f1
TG
18852011-09-22 Tristan Gingold <gingold@adacore.com>
1886
1887 * fork-child.c (fork_inferior): Add exec_fun parameter.
1888 Call exec_fun or execvp.
1889 * inferior.h: Adjust prototype.
1890 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1891 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1892 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1893 * procfs.c (procfs_create_inferior): Ditto.
1894 * darwin-nat.c (darwin_execvp): New function.
1895 (darwin_create_inferior): Use it.
1896
4b51d87b
YQ
18972011-09-22 Yao Qi <yao@codesourcery.com>
1898
1899 * infrun.c (context_switch): Print debug message when switching to
1900 a different thread.
1901
56b9d9ac
UW
19022011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1903
1904 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1905 complex and vector types.
1906 (s390_return_value_convention): Likewise.
1907
1908 (s390_value_from_register): Call check_typedef.
1909 (extend_simple_arg): Likewise.
1910 (alignment_of): Likewise.
1911 (s390_push_dummy_call): Likewise.
1912 (s390_return_value): Likewise.
1913
b2cd6b29
JM
19142011-09-21 Joseph Myers <joseph@codesourcery.com>
1915
1916 * event-top.c (async_disconnect): If an exception is thrown from
1917 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1918 catch_errors.
1919 * top.c (quit_cover): Return void and take no arguments.
1920 * top.h (quit_cover): Update prototype.
1921
67ba4e42
JM
19222011-09-20 Joseph Myers <joseph@codesourcery.com>
1923
1924 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1925 current_uiout, not uiout.
1926
562f943b
DE
19272011-09-19 Doug Evans <dje@google.com>
1928
1929 * python/py-auto-load.c (source_section_scripts): Fix file
1930 descriptor leak.
1931 * python/python.c (source_python_script_for_objfile): Tweak comments.
1932
34518530
YQ
19332011-09-18 Yao Qi <yao@codesourcery.com>
1934 Ulrich Weigand <ulrich.weigand@linaro.org>
1935
1936 Support displaced stepping for Thumb 16-bit insns.
1937 * arm-tdep.c (THUMB_NOP) Define.
1938 (thumb_copy_unmodified_16bit): New.
1939 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1940 (thumb_copy_alu_reg): New.
1941 (arm_copy_svc): Move some common code to ...
1942 (install_svc): ... here. New.
1943 (thumb_copy_svc): New.
1944 (install_pc_relative): New.
1945 (thumb_copy_pc_relative_16bit): New.
1946 (thumb_decode_pc_relative_16bit): New.
1947 (thumb_copy_16bit_ldr_literal): New.
1948 (thumb_copy_cbnz_cbz): New.
1949 (cleanup_pop_pc_16bit_all): New.
1950 (thumb_copy_pop_pc_16bit): New.
1951 (thumb_process_displaced_16bit_insn): New.
1952 (thumb_process_displaced_32bit_insn): New.
1953 (thumb_process_displaced_insn): process thumb instruction.
1954
1955 Support displaced stepping for Thumb 32-bit insns.
1956 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1957 (thumb2_copy_preload): New.
1958 (thumb2_copy_copro_load_store): New.
1959 (thumb2_copy_b_bl_blx): New.
1960 (thumb2_copy_alu_imm): New.
1961 (thumb2_copy_load_reg_imm): New.
1962 (thumb2_copy_load_literal): New
1963 (thumb2_copy_block_xfer): New.
1964 (thumb_32bit_copy_undef): New.
1965 (thumb_32bit_copy_unpred): New.
1966 (thumb2_decode_ext_reg_ld_st): New.
1967 (thumb2_decode_svc_copro): New.
1968 (decode_thumb_32bit_store_single_data_item): New.
1969 (thumb_copy_pc_relative_32bit): New.
1970 (thumb_decode_pc_relative_32bit): New.
1971 (decode_thumb_32bit_ld_mem_hints): New.
1972 (thumb2_copy_table_branch): New
1973 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1974 instructions.
1975
2b16b2e3
YQ
19762011-09-18 Yao Qi <yao@codesourcery.com>
1977
1978 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1979 (install_b_bl_blx): Likewise.
1980
0f6f04ba
YQ
19812011-09-17 Yao Qi <yao@codesourcery.com>
1982
1983 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1984 (install_load_store): ... this. New.
1985 Change parameter BYTE to SIZE.
1986 (arm_copy_ldr_str_ldrb_strb): Update caller.
1987 (arm_decode_ld_st_word_ubyte): Update caller.
1988
e2d96639
YQ
19892011-09-17 Yao Qi <yao@codesourcery.com>
1990
1991 * infrun.c (displaced_step_fixup): Move some code ...
1992 (displaced_step_restore): ... here. New function.
1993 (handle_inferior_event): Cleanup displaced stepping state for both
1994 child and parent when get forked or vforked event.
1995 * regcache.c (get_thread_arch_aspace_regcache): New function.
1996 get_thread_arch_regcache (): Call it.
1997
a8123151
JB
19982011-09-16 Joel Brobecker <brobecker@adacore.com>
1999
2000 * ada-tasks.c (print_ada_task_info): New function, merging
2001 short_task_info and info_tasks together. Reimplement using
2002 ui-out instead of printing to stdout directly. Move the code
2003 building and checking the task list here, instead of leaving it
2004 in info_tasks_command.
2005 (info_task): Move the code building and checking the task
2006 list here, instead of leaving it in info_tasks_command.
2007 (info_tasks_command): Delete code building and checking
2008 the task list - moved elsewhere. Update calls to info_tasks
2009 and info_task.
2010
fbf06824
JB
20112011-09-16 Joel Brobecker <brobecker@adacore.com>
2012
2013 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2014
34a0bc90
JB
20152011-09-16 Joel Brobecker <brobecker@adacore.com>
2016
2017 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2018
79779fa9
JB
20192011-09-16 Joel Brobecker <brobecker@adacore.com>
2020
2021 * ada-lang.h (ada_build_task_list): Remove parameter
2022 `warn_if_null'.
2023 * ada-tasks.c (ada_build_task_list): Remove parameter
2024 `warn_if_null'. Adjust implementation and documentation.
2025 (valid_task_id, ada_get_environment_task)
2026 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2027 (info_tasks_command): Adjust implementation.
2028 (task_command): Likewise.
2029 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2030 to ada_build_task_list.
2031
e225eb91
JB
20322011-09-16 Joel Brobecker <brobecker@adacore.com>
2033
2034 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2035 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2036 (ada_tasks_inferior_data_handle): New static global.
2037 (get_ada_tasks_inferior_data): New function.
2038 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2039 (ada_get_environment_task, iterate_over_live_ada_tasks)
2040 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2041 Adjust.
2042 (ada_set_current_inferior_known_tasks_addr): New function.
2043 (read_known_tasks, ada_build_task_list, short_task_info)
2044 (info_tasks, info_task, info_tasks_command, task_command_1)
2045 (task_command, ada_task_list_changed): Adjust.
2046 (ada_tasks_invalidate_inferior_data): New function.
2047 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2048 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2049 * ada-lang.h (struct inferior): Add declaration.
2050 (ada_task_list_changed): Update profile.
2051 * remote-wtx-pd.c: #include "inferior.h".
2052 (switch_to_pd_internal): Update call to ada_task_list_changed.
2053
6da9ca05
JB
20542011-09-16 Joel Brobecker <brobecker@adacore.com>
2055
2056 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2057 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2058 (atcb_fieldno): Delete these static globals.
2059 (struct ada_tasks_pspace_data): New struct.
2060 (ada_tasks_pspace_data_handle): New static global.
2061 (get_ada_tasks_pspace_data): New function.
2062 (ada_tasks_invalidate_pspace_data): New function.
2063 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2064 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2065 (_initialize_tasks): Create this module's per-progspace
2066 data handle.
2067
dccd3cbd
JB
20682011-09-16 Joel Brobecker <brobecker@adacore.com>
2069
2070 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2071
f877b031
TG
20722011-09-16 Tristan Gingold <gingold@adacore.com>
2073
2074 * fork-child.c (fork_inferior): Update comment. Use alloca
2075 instead of xmalloc for argv. Move len and shell_command
2076 declarations in the block where they are used.
2077 Only call execvp. Factorize failure code.
2078
ae0c443d
JK
20792011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2080
2081 Code cleanup.
2082 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2083 `exp_element' instead of an element of the same and make the function
2084 static.
2085 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2086 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2087 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2088 Change argument of `write_exp_elt' function call.
2089 Remove extra spaces from comments.
2090 * parser-defs.h (write_exp_elt): Remove prototype.
2091
5af65ec0
PK
20922011-09-15 Paul Koning <paul_koning@dell.com>
2093
2094 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2095 count of item appended to list.
2096 * python/py-type.c (typy_fields): Likewise.
2097
72be8ccc
PK
20982011-09-15 Paul Koning <paul_koning@dell.com>
2099
883640a8 2100 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2101
92f6badc
KP
21022011-09-15 Kevin Pouget <kevin.pouget@st.com>
2103
2104 PR threads/12628
2105 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2106 processes with multiple threads.
2107 (inf_has_multiple_thread_cb): New function.
2108 (inf_has_multiple_threads): New function.
2109
0672bf41 21102011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2111
2112 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2113 * python/py-inferior.c (GdbMethods): New Python method definition.
2114
6839b47f
KP
21152011-09-15 Kevin Pouget <kevin.pouget@st.com>
2116
2117 Handle multiple breakpoint hits in Python interface:
2118 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2119 variable to breakpoints.
2120 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2121 bps instead of single breakpoint. Fix some space typos.
2122 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2123 variable to breakpoints.
2124
672f9b60
KP
21252011-09-15 Kevin Pouget <kevin.pouget@st.com>
2126
2127 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2128 note if the breakpoint is internal.
2129
43675ae4
KP
21302011-09-15 Kevin Pouget <kevin.pouget@st.com>
2131
0672bf41 2132 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2133
15148d6a
PA
21342011-09-14 Pedro Alves <pedro@codesourcery.com>
2135
2136 * infrun.c (prepare_for_detach, wait_for_inferior)
2137 (fetch_inferior_event): Don't flush the register cache.
2138 * remote.c (struct stop_reply) <regcache>: Add comment.
2139
d83e736b
JK
21402011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2141
2142 Remove excessive DWARF expressions memory duplication.
2143 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2144 for block.data.
2145 (indirect_pieced_value): Remove variable result. Remove variable
2146 back_to and its use for baton.data.
2147 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2148 block.data.
2149 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2150 Update the function comment.
2151
c65b3e0d
PA
21522011-09-13 Pedro Alves <pedro@codesourcery.com>
2153
2154 * inferior.h (ALL_INFERIORS): New.
2155 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2156 for a stopped thread.
2157 (thread_db_find_new_threads): Look for threads in all inferiors.
2158
a1398e0c
PA
21592011-09-13 Pedro Alves <pedro@codesourcery.com>
2160
2161 * breakpoint.c (update_watchpoint): Handle the case of the
2162 watchpoint to update not being in the breakpoint list yet.
2163 (hw_watchpoint_use_count): New, factored out from
2164 hw_watchpoint_used_count.
2165 (hw_watchpoint_used_count): Rename to ...
2166 (hw_watchpoint_used_count_others): ... this. Add `except'
2167 parameter. Don't count resources of `except'. Use
2168 hw_watchpoint_use_count.
2169
30596231
PA
21702011-09-13 Pedro Alves <pedro@codesourcery.com>
2171
2172 * gdbthread.h (enum thread_state): Moved here.
2173 (struct thread_info): Rename `executing_' field to `executing' and
2174 `state_' to `state'.
2175 * thread.c (enum thread_state): Moved to gdbthread.h.
2176 (new_thread, add_thread_silent, delete_thread_1)
2177 (any_live_thread_of_process, thread_alive, set_running)
2178 (set_running, is_thread_state, any_running, is_executing)
2179 (set_executing, finish_thread_state, print_thread_info)
2180 (do_captured_thread_select): Adjust.
2181
bede5f5f
JK
21822011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2183
2184 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2185 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2186
4801a9a3
PA
21872011-09-12 Pedro Alves <pedro@codesourcery.com>
2188 Matt Rice <ratmice@gmail.com>
2189
2190 PR gdb/13175
2191
2192 * interps.c (struct interp) <interpreter_out>: Delete field.
2193 (interp_new): Remove the data and uiout parameters and adjust.
2194 (interp_set): Only set the current_uiout from the interpreter's
2195 uiout after initializing the interpreter. Adjust call to
2196 init_proc.
2197 (interp_ui_out): Adjust to call procs->ui_out_proc.
2198 (interp_data, interp_name): New.
2199 * interps.h (interp_init_ftype): Add `self' parameter.
2200 (interp_ui_out_ftype): New typedef.
2201 (struct interp_procs) <ui_out_proc>: New method pointer.
2202 (interp_new): Remove the data and uiout parameters.
2203 (interp_data, interp_name): Declare.
2204 * tui/tui-interp.c (tui_init): Adjust prototype.
2205 (tui_ui_out): New.
2206 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2207 tui_out here. Adjust call to interp_new.
2208 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2209 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2210 (cli_ui_out): New.
2211 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2212 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2213 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2214 Initialize mi->uiout depending on the mi_version as extracted from
2215 the interpreter's name.
2216 (mi_ui_out): New.
2217 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2218 interp_new. Don't allocate the ui_out's of the interpreters here.
2219
d0afda03 22202011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2221
d0afda03 2222 * solib.c (solib_used): New function.
59145f8c
AR
2223 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2224 by another so_list object before freeing it.
2225
bdaf8d4a
JK
22262011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2227
2228 Code cleanup.
2229 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2230 values.
2231
df15bd07
JK
22322011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 Code cleanup.
2235 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2236 (amd64_skip_xmm_prologue): ... this new function. Describe its
2237 parameters. No longer use amd64_prologue_line_bug.
2238 * defs.h (producer_is_gcc_ge_4): New declaration.
2239 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2240 (process_full_comp_unit): Update its caller. Remove
2241 amd64_prologue_line_bug initialization.
2242 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2243 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2244
25289eb2
PA
22452011-09-09 Pedro Alves <pedro@codesourcery.com>
2246
2247 * linux-nat.h (enum resume_kind): New.
2248 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2249 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2250 resume_stop on the new lwp.
25289eb2
PA
2251 (add_lwp): Set last_resume_kind as resume_continue by default.
2252 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2253 (resume_lwp): New, factored out from resume_callback. Also check
2254 for pending status in lp->waitstatus.
2255 (resume_callback): Reimplement.
2256 (resume_clear_callback): Set last_resume_kind as resume_stop.
2257 (resume_set_callback): Set last_resume_kind as resume_continue.
2258 (linux_nat_resume, linux_handle_extended_wait): Set
2259 last_resume_kind.
2260 (running_callback): Also check lp->waitstatus for pending events.
2261 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2262 is resume_step.
2263 (stop_and_resume_callback): Don't re-resume if the core wanted the
2264 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2265 using an invalidated pointer.
2266 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2267 SIGSTOPs if the core wanted the LWP to stop.
2268 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2269 wanted the lwp to stop. If the core wanted the lwp to stop, and
2270 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2271 of TARGET_SIGNAL_STOP.
2272 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2273 here. Instead, signal the lwp, and set the last_resume_kind to
2274 resume_stop.
2275
f687d035
PA
22762011-09-09 Pedro Alves <pedro@codesourcery.com>
2277
2278 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2279 -1 (error), if the lwp exits right after attaching.
2280
bc587a6b
DE
22812011-09-08 Doug Evans <dje@google.com>
2282
63d97a20
DE
2283 * py-cmd.c: Some minor formatting fixes.
2284 (gdbpy_parse_command_name): Rename text arg to name, make const.
2285 All callers updated.
2286 * python-internal.h (gdbpy_parse_command_name): Update.
2287
bc587a6b
DE
2288 * cli/cli-decode.c (add_cmd): Add comment.
2289
08711b9a
JK
22902011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2291
2292 PR breakpoints/12435
2293 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2294 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2295 * dwarf2read.c (process_full_comp_unit): Initialize
2296 amd64_prologue_line_bug.
2297 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2298
b2e7f004
JK
22992011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 Fix TUI screen corruption.
2302 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2303 batch_flag.
2304
8afd712c
JK
23052011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2306
2307 * findvar.c (read_var_value): Never return NULL, throw an error
2308 instead. Update the function comment. State symbol name in the error
2309 messages.
2310 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2311 read_var_value.
2312 * stack.c (print_frame_args): Likewise.
2313 * valops.c (value_of_variable): Likewise.
2314
b99b5f66
JK
23152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2316
2317 * stack.c (print_frame_args): New variable except. Wrap
2318 read_var_value and common_val_print into TRY_CATCH.
2319
85bc8cb7
JK
23202011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2321
2322 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2323 caller to value_of_this.
2324 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2325 Twice.
2326 * valops.c (value_of_this): Remove parameter complain and variable ret.
2327 Update function comment. Never return NULL by this code.
2328 (value_of_this_silent): New function.
2329 * value.h (value_of_this): Remove parameter complain.
2330 (value_of_this_silent): New declaration.
2331
ede1849f
YQ
23322011-09-07 Yao Qi <yao@codesourcery.com>
2333
2334 * gdbthread.h (struct thread_info): Remove fields
2335 `stepping_through_solib_after_catch' and
2336 `stepping_through_solib_catchpoints'.
2337 * infrun.c (init_thread_stepping_state): Update.
2338 (process_event_stop_test, currently_stepping): Update.
2339 (currently_stepping_or_nexting_callback): Update.
2340
6aa27652
YQ
23412011-09-07 Yao Qi <yao@codesourcery.com>
2342
2343 * gdbthread.h (struct thread_info): Comment on field
2344 `step_after_step_resume_breakpoint'.
2345
00db5b94
PA
23462011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2347
2348 * remote.c (remote_console_output): Reindent.
2349
861152be
LM
23502011-09-06 Luis Machado <lgustavo@codesourcery.com>
2351
2352 * frame.c (has_stack_frames): Check for currently selected
2353 traceframe.
2354
ab821bc6
PA
23552011-09-06 Pedro Alves <pedro@codesourcery.com>
2356
2357 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2358 (set_async_annotation_level, set_async_prompt, pop_prompt)
2359 (push_prompt, new_async_prompt): Delete declarations.
2360 * top.h (get_prompt, set_prompt): Change prototype.
2361 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2362 declarations.
2363 * top.c (command_loop):
2364 (top_prompt): New global.
2365 (get_prefix, set_prefix, get_suffix, ): Delete.
2366 (get_prompt, set_prompt): Rewrite.
2367 (show_new_async_prompt): Rename to ...
2368 (show_prompt): ... this.
2369 (init_main): Adjust. Don't handle --annotate=2 here.
2370 * event-top.c (new_async_prompt): Delete.
2371 (the_prompts): Delete.
2372 (more_to_come): Make static.
2373 (display_gdb_prompt): Use top_level_prompt() to compute the top
2374 level prompt, and don't notify the before_prompt observers
2375 directly here. Always trick readline into not trying to display
2376 the prompt if sync_execution and displaying the primary prompt.
2377 If displaying a local/secondary prompt, always show it, even if
2378 sync_execution is set.
2379 (change_annotation_level): Delete.
2380 (top_level_prompt): New, based on change_annotation_level.
2381 (push_prompt, pop_prompt): Delete.
2382 (async_disable_stdin): No longer pushes prompt.
2383 (command_line_handler): No longer pushes or pops prompt. If more
2384 input is expected, call display_gdb_prompt with an explicit empty
2385 prompt.
2386 (async_stop_sig): Adjust.
2387 (set_async_annotation_level, set_async_prompt): Delete.
2388 * python/python.c (before_prompt_hook): Adjust.
2389
f1d90504
PA
23902011-09-05 Pedro Alves <pedro@codesourcery.com>
2391
2392 PR cli/13110
2393
2394 * infrun.c (fetch_inferior_event): Check if there's a selected
2395 thread before checking if the selected thread is executing.
2396
0f641c01
PA
23972011-09-05 Pedro Alves <pedro@codesourcery.com>
2398
2399 * inf-loop.c (execute_command): Don't check if the current thread
2400 if running before synchronously waiting for command completion.
2401 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2402 here.
2403 (normal_stop): Call async_enable_stdin here.
2404 * inf-loop.c (inferior_event_handler): Don't call
2405 async_enable_stdin, nor handle "set exec-done-display" here.
2406
30368258 24072011-09-04 Joel Brobecker <brobecker@adacore.com>
2408
2409 GDB 7.3.1 released.
2410
31916278
JB
24112011-09-04 Joel Brobecker <brobecker@adacore.com>
2412
2413 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2414
e8d56f18
JB
24152011-09-04 Joel Brobecker <brobecker@adacore.com>
2416
2417 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2418
5dd05d8c
JK
24192011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2420
2421 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2422
7d8e6458 24232011-09-02 Matt Rice <ratmice@gmail.com>
2424
2425 PR gdb/10720
2426 * event-top.c (cli_command_loop): Replace readline setup with
2427 direct call to display_gdb_prompt.
2428 (display_gdb_prompt): Do not call observer mechanism during
2429 synchronous execution.
2430
84636d28
PA
24312011-09-02 Pedro Alves <pedro@codesourcery.com>
2432
2433 * linux-nat.c (in_pid_list_p): New.
2434 (linux_record_stopped_pid): Delete.
2435 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2436 already attached to the LWP. Return an indication if so.
2437 (linux_nat_filter_event): Adjust.
2438 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2439 returning an indication to ignore this thread.
2440
b4a14fd0
PA
24412011-09-02 Pedro Alves <pedro@codesourcery.com>
2442
2443 * top.c: Include interps.h.
2444 (execute_command): If the target can async, but the interpreter is
2445 in sync mode, synchronously wait for the command to finish before
2446 returning.
2447 (execute_command_to_string): Force the interpreter to sync mode.
2448 * infrun.c: Include interps.h.
2449 (fetch_inferior_event): Don't restore the prompt yet if the
2450 interpreter is in sync mode.
2451 * interps.c (interpreter_async): New global.
2452 * interps.h (interpreter_async): Declare.
2453 * inf-loop.c: Include interps.h.
2454 (inferior_event_handler): Don't print the language change or run
2455 breakpoint commands yet if the interpreter in is sync mode.
2456 * main.c (captured_command_loop): Flip the interpreter to async
2457 mode.
2458 * cli/cli-script.c: Include interps.h.
2459 (execute_user_command, while_command, if_command): Force the
2460 interpreter to sync mode.
2461 * python/python.c: Include interps.h.
2462 (python_command, execute_gdb_command): Force the interpreter to
2463 sync mode.
2464
c709acd1
PA
24652011-09-02 Pedro Alves <pedro@codesourcery.com>
2466
2467 * value.c (show_convenience): Catch errors thrown while printing
2468 each internal variable.
2469 * infrun.c (validate_siginfo_access): New function.
2470 (siginfo_value_read, siginfo_value_write): Call it.
2471
9655e943
JK
24722011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2473
2474 Revert:
2475 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2476 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2477 attribute.
2478
cb457ae2
YQ
24792011-08-29 Yao Qi <yao@codesourcery.com>
2480
2481 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2482 (cmp_name): New.
2483 (enable_break2): Update caller.
2484 * solib-frv.c (bfd_lookup_symbol): Removed.
2485 (cmp_name): New.
2486 (enable_break2): Update caller.
2487 * solib-pa64.c (bfd_lookup_symbol): Removed.
2488 (cmp_name): New.
2489 * solib-svr4.c (bfd_lookup_symbol): Removed.
2490 (cmp_name_and_sec_flags): New.
2491 (enable_break): Update caller.
2492 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2493 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2494 (gdb_bfd_lookup_symbol): New.
2495 * solib.h: Functions declarations.
2496
83d1a36a
YQ
24972011-08-29 Yao Qi <yao@codesourcery.com>
2498
2499 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2500 and solib-dsbt.o.
2501
c04b3e8f
JK
25022011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2503
2504 Fix TUI stepi on code without symbols.
2505 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2506 current PC instead.
2507
cb0fd152
JK
25082011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 Code cleanup.
2511 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2512 and the static keyword.
2513 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2514 Make prefix an array.
2515 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2516 * mi/mi-main.c (get_register): Remove stb initialization and the static
2517 keyword.
2518
91174723
JK
25192011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2520
2521 Code cleanup - make mi_opt const.
2522 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2523 opts const.
2524 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2525 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2526 (mi_cmd_env_dir): Likewise.
2527 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2528 (mi_cmd_target_file_put): Likewise.
2529 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2530 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2531 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2532 (mi_valid_noargs): Make opts const.
2533 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2534 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2535 (mi_cmd_data_read_memory): Likewise.
2536 (mi_cmd_data_read_memory_bytes): Likewise.
2537 (mi_cmd_data_write_memory): Likewise.
2538
5068b8e8 25392011-08-26 Matt Rice <ratmice@gmail.com>
2540
2541 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2542 bcache_xmalloc, replace bcache_xmalloc with call to
2543 psymbol_bcache_init for psymbol_cache.
2544 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2545
a4f2ce05
JK
25462011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2547
2548 * inf-loop.c (inferior_event_handler): Add exception_print in
2549 INF_EXEC_COMPLETE.
2550
353d1d73
JK
25512011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2552
2553 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2554 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2555 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2556 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2557 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2558 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2559 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2560 * infrun.c (fetch_inferior_event): Call
2561 make_bpstat_clear_actions_cleanup.
2562 * top.c (execute_command): New variable cleanup_if_error, call
2563 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2564 * utils.c (do_bpstat_clear_actions_cleanup)
2565 (make_bpstat_clear_actions_cleanup): New functions.
2566
3ced3da4
PA
25672011-08-26 Pedro Alves <pedro@codesourcery.com>
2568
2569 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2570 either the parent or the child forks. Rename a couple locals.
2571
a9f4bb21
PA
25722011-08-26 Pedro Alves <pedro@codesourcery.com>
2573
2574 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2575 library call. Avoid reading the `status' local if all waitpid
2576 calls failed.
2577
e5798bef
PA
25782011-08-26 Pedro Alves <pedro@codesourcery.com>
2579
2580 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2581 opening /proc/PID/task always succeeds.
2582
edb2aadf
AR
25832011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2584
2585 * linespec.c (symtab_from_filename): Check for the end of string.
2586
0d932b2f
MK
25872011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2588
2589 PR mi/11912
2590 * varobj.c (cplus_describe_child): Add the keyword
2591 'class' to the output of the method when dealing
2592 with a cast to a base class.
2593
e93ca019
JK
25942011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 No functionality change.
2597 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2598 function comment a reference, new variables tp and bs, move here code
2599 from throw_exception.
2600 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2601 describe it in the comment.
2602 * exceptions.c (throw_exception): Remove variable tp, move the code for
2603 bpstat_clear_actions to bpstat_clear_actions.
2604
13da1c97
LM
26052011-08-24 Luis Machado <lgustavo@codesourcery.com>
2606
2607 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2608 * linux-nat.c: Include linux-procfs.h.
2609 (linux_proc_get_tgid): Move to ...
2610 * common/linux-procfs.c: ... here. New file.
2611 * common/linux-procfs.h: New file.
2612 * linux-thread-db.c: Include linux-procfs.h.
2613 * Makefile.in: Update dependencies.
2614 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2615 * config/arm/linux.mh: Likewise.
2616 * config/i386/linux.mh: Likewise.
2617 * config/i386/linux64.mh: Likewise.
2618 * config/ia64/linux.mh: Likewise.
2619 * config/m32r/linux.mh: Likewise.
2620 * config/m68k/linux.mh: Likewise.
2621 * config/mips/linux.mh: Likewise.
2622 * config/pa/linux.mh: Likewise.
2623 * config/pa/linux.mh: Likewise.
2624 * config/powerpc/linux.mh: Likewise.
2625 * config/powerpc/ppc64-linux.mh: Likewise.
2626 * config/powerpc/spu-linux.mh: Likewise.
2627 * config/sparc/linux.mh: Likewise.
2628 * config/sparc/linux64.mh: Likewise.
2629 * config/xtensa/linux.mh: Likewise.
2630
4e5c165d
HZ
26312011-08-24 Hui Zhu <teawater@gmail.com>
2632
2633 * tracepoint.c (cond_string_is_same): New function.
2634 (find_matching_tracepoint): Add condition check
2635 by cond_string_is_same.
2636
6e2f5b22
JK
26372011-08-23 Josh Matthews <josh@joshmatthews.net>
2638
2639 Fix build error in Darwin port.
2640 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2641
abf85f46
JK
26422011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2643
2644 Code cleanup.
2645 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2646 (command_line_is_silent): New function.
2647 (bpstat_do_actions_1): No longer use commands_left, use
2648 command_line_is_silent for commands.
2649 (bpstat_alloc): Remove clearing of commands_left.
2650 (bpstat_stop_status): Remove initialization of commands_left, use
2651 command_line_is_silent.
2652 * breakpoint.h (struct bpstats): Remove commands_left.
2653
3a93a0c2
KS
26542011-08-18 Keith Seitz <keiths@redhat.com>
2655
2656 PR c++/12266
2657 * cp-name-parser.y (struct demangle_info): Remove unused
2658 member PREV.
2659 (d_grab): Likewise.
2660 (allocate_info): Change return type to struct demangle_info *.
2661 Always allocate a new demangle_info.
2662 Remove unused PREV pointer.
2663 (cp_new_demangle_parse_info): New function.
2664 (cp_demangled_name_parse_free): New function.
2665 (do_demangled_name_parse_free_cleanup): New function.
2666 (make_cleanup_cp_demangled_name_parse_free): New function.
2667 (cp_demangled_name_to_comp): Change return type to
2668 struct demangle_parse_info *.
2669 Allocate a new storage for each call.
2670 (main): Update usage for cp_demangled_name_to_comp
2671 API change.
2672 * cp-support.h (struct demangle_parse_info): New structure.
2673 (cp_demangled_name_to_comp): Update API change for
2674 return type.
2675 (cp_new_demangle_parse_info): Declare.
2676 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2677 (cp_demangled_name_parse_free): Declare.
2678 * cp-support.c (cp_canonicalize_string): Update API
2679 change for cp_demangled_name_to_comp.
2680 (mangled_name_to_comp): Likewise.
2681 Return struct demangle_parse_info, too.
2682 (cp_class_name_from_physname): Update mangled_name_to_comp
2683 API change.
2684 (method_name_from_physname): Likewise.
2685 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2686 (cp_remove_params): Likewise.
2687 * python/py-type.c (typy_legacy_template_argument): Likewise.
2688
2689 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2690 (cp_merge_demangle_parse_infos): Declare.
2691 * cp-support.c (ignore_typedefs): New file global.
2692 (copy_string_to_obstack): New function.
2693 (inspect_type): New function.
2694 (replace_typedefs): New function.
2695 (replace_typedefs_qualified_name): New function.
2696 (cp_canonicalize_string_no_typedefs): New function.
2697 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2698 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2699 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2700 instead of cp_canonicalize_string.
2701 (find_method): Likewise.
2702 (decode_compound): Before looking up the name, call
2703 cp_canonicalize_string_no_typedefs.
2704 (decode_variable): Likewise.
2705
fa3a4f15
PM
27062011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2707 Tom Tromey <tromey@redhat.com>
2708 Matt Rice <ratmice@gmail.com>
2709
2710 * python/lib/gdb/prompt.py: New file.
2711 * python/lib/gdb/command/prompt.py: New file.
2712 * NEWS: Document set extended-prompt and gdb.prompt library
2713
85661b1e
YQ
27142011-08-16 Yao Qi <yao@codesourcery.com>
2715
2716 * tic6x-linux-tdep.c: Move const arrays definition from here...
2717 * tic6x-tdep.c: to here ...
2718
11315641
YQ
27192011-08-14 Yao Qi <yao@codesourcery.com>
2720
2721 * NEWS: New port to Texas Instruments TMS320C6x.
2722
8cd64e00
YQ
27232011-08-14 Andrew Jenner <andrew@codesourcery.com>
2724 Bernd Schmidt <bernds@codesourcery.com>
2725 Yao Qi <yao@codesourcery.com>
2726
2727 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2728 * solib-dsbt.c: New file. Support DSBT shared object.
2729 * tic6x-linux-tdep.c: New file.
2730 * tic6x-tdep.c: New file.
2731 * tic6x-tdep.h: New file.
2732
78d85199
YQ
27332011-08-14 Andrew Stubbs <ams@codesourcery.com>
2734 Yao Qi <yao@codesourcery.com>
2735
2736 * remote.c (PACKET_qXfer_fdpic): New enum value.
2737 (remote_protocol_features): Add qXfer:fdpic:read packet.
2738 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2739 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2740 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2741
224bbe49
YQ
27422011-08-14 Yao Qi <yao@codesourcery.com>
2743
2744 Target description for tic6x.
2745 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2746 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2747 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2748 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2749 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2750 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2751 * features/tic6x-c64xp-linux.xml: New.
2752 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2753 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2754 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2755 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2756 * regformats/tic6x-c64xp.dat,
2757 regformats/tic6x-c62x-linux.dat: Generated.
2758 * regformats/tic6x-c64x-linux.dat,
2759 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2760 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2761 features/tic6x-*.c files.
2762 Add regformats/tic6x-*.dat files.
2763
457e09f0
DE
27642011-08-12 Doug Evans <dje@google.com>
2765
2766 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2767 * python/py-symbol.c (sympy_get_type): New function.
2768 (symbol_object_getset): Add "type".
2769
d20c1c3f
PA
27702011-08-12 Pedro Alves <pedro@codesourcery.com>
2771
2772 PR tui/13073
2773
2774 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2775 empty name.
2776 (tui_show_register_group): Don't store a byte buffer in the data
2777 element's value.
2778 (tui_register_format): Skip registers with an empty name.
2779 (tui_get_register): Store a struct value in the data element's
2780 value field instead of a byte buffer holding the raw register
2781 contents. Account for optimized-out and unavailable registers
2782 when comparing register contents.
2783
9d8fa392
PA
27842011-08-09 Pedro Alves <pedro@codesourcery.com>
2785
2786 * printcmd.c (current_display_number): Update comment.
2787 (disable_current_display_cleanup): Delete.
2788 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2789 catch errors thrown while evaluating and printing the display.
2790
401a70b8
TT
27912011-08-09 Tom Tromey <tromey@redhat.com>
2792
2793 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2794
7f86f058
PA
27952011-08-09 Pedro Alves <pedro@codesourcery.com>
2796
94b71cca 2797 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2798 * maint.c (maintenance_command): Ditto.
2799 * somread.c (som_symtab_read): Ditto.
2800 * solib.c (solib_find, solib_map_sections, update_solib_list)
2801 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2802 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2803 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2804 * solib-irix.c (locate_base, disable_break, enable_break)
2805 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2806 (irix_current_sos, irix_open_symbol_file_object)
2807 (irix_special_symbol_handling): Ditto.
2808 * solib-sunos.c (locate_base, first_link_map_member)
2809 (sunos_current_sos, disable_break, enable_break)
2810 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2811 Ditto.
2812 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2813 (open_symbol_file_object, svr4_current_sos, enable_break)
2814 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2815 Ditto.
2816 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2817 (frv_current_sos, enable_break, frv_special_symbol_handling)
2818 (frv_solib_create_inferior_hook): Ditto.
2819 * solist.h (struct target_so_ops): Extend the comments of the
2820 special_symbol_handling, current_sos and open_symbol_file_object
2821 methods.
2822
5e239b84
PM
28232011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2824
2825 * python/lib/gdb/__init__.py: Auto-load files in command and
2826 function directories.
2827 * python/python.c (finish_python_initialization): Use
2828 os.path.join.
2829 * python/lib/gdb/command/pretty_printers.py: Self register
2830 command.
2831 * NEWS: Document auto-loading.
2832
b6cede78
JK
28332011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2836 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2837 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2838
29d0bb3d
TT
28392011-08-08 Tom Tromey <tromey@redhat.com>
2840
2841 * breakpoint.c (clean_up_filters): Remove.
2842 (catch_syscall_split_args): Use VEC_cleanup.
2843
2f7fb8e4
JK
28442011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2845
2846 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2847 (main): Uncomment "Demangling error\n".
2848
d6c10e95
PP
28492011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2850
2851 * solib-target.c (segment_attributes): Make them static.
2852 (section_attributes, library_children, library_attributes): Likewise.
2853 (library_list_children, library_list_attributes): Likesise.
2854 (library_list_elements): Likewise.
2855
af6e93b2
PA
28562011-08-05 Pedro Alves <pedro@codesourcery.com>
2857
2858 * exceptions.c (throw_exception): Don't disable the current
2859 display.
2860 * printcmd.c (disable_current_display_cleanup): New function.
2861 (do_one_display): Install a cleanup to disable the current display
2862 if doing the display throws.
2863
6a1b1664
EZ
28642011-08-05 Eli Zaretskii <eliz@gnu.org>
2865
2866 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2867 initialization of the tp_new member to the corresponding
2868 gdbpy_initialize_* function.
2869 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2870 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2871 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2872 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2873 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2874
31a0ae49
JK
28752011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2876
2877 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2878 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2879 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2880 references to current_uiout.
2881
e0dd0826
PA
28822011-08-04 Pedro Alves <pedro@codesourcery.com>
2883
2884 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2885 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2886 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2887 * top.c (gdb_readline_wrapper): Adjust.
2888 * tui/tui-interp.c (tui_command_loop):
2889 (_initialize_tui_interp): Don't install it.
2890
79a45e25
PA
28912011-08-04 Pedro Alves <pedro@codesourcery.com>
2892
2893 * ui-out.h (uiout): Rename to ...
2894 (current_uiout): ... this.
2895 * ui-out.c (uiout): Rename to ...
2896 (current_uiout): ... this.
2897 * ada-lang.c (print_it_exception, print_one_exception)
2898 (print_mention_exception): Adjust.
2899 * breakpoint.c (watchpoint_check): Adjust.
2900 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2901 (default_collect_info, watchpoints_info, print_one_catch_fork)
2902 (print_one_catch_vfork, print_one_catch_syscall)
2903 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2904 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2905 (print_it_watchpoint, print_mention_watchpoint)
2906 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2907 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2908 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2909 (bkpt_print_mention, momentary_bkpt_print_it)
2910 (tracepoint_print_mention, update_static_tracepoint)
2911 (tracepoints_info, save_breakpoints): Adjust.
2912 * cli-out.c (field_separator): Adjust.
2913 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2914 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2915 * frame.c (get_current_frame): Adjust.
2916 * infcmd.c (run_command_1, print_return_value): Adjust.
2917 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2918 * infrun.c (print_end_stepping_range_reason): Adjust.
2919 (print_signal_exited_reason, print_exited_reason): Adjust.
2920 (print_signal_received_reason, print_no_history_reason): Adjust.
2921 * interps.c (interp_set): Adjust.
2922 * osdata.c (info_osdata_command): Adjust.
2923 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2924 * remote-fileio.c (remote_fileio_request): Adjust.
2925 * remote.c (show_remote_cmd): Adjust.
2926 * solib.c (info_sharedlibrary_command): Adjust.
2927 * source.c (print_source_lines_base): Adjust.
2928 * stack.c (print_stack_frame): Adjust.
2929 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2930 * symfile-mem.c (add_vsyscall_page): Adjust.
2931 * symfile.c (load_progress, generic_load)
2932 (print_transfer_performance): Adjust.
2933 * thread.c (info_threads_command, restore_selected_frame)
2934 (thread_command): Adjust.
2935 * top.c (make_cleanup_restore_ui_file): Adjust.
2936 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2937 (print_one_static_tracepoint_marker): Adjust.
2938 * cli/cli-cmds.c (print_disassembly): Adjust.
2939 * cli/cli-decode.c (print_doc_line): Adjust.
2940 * cli/cli-interp.c (safe_execute_command): Adjust.
2941 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2942 (handle_redirections): Adjust.
2943 * cli/cli-script.c (show_user_1): Adjust.
2944 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2945 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2946 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2947 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2948 (mi_cmd_env_dir): Adjust.
2949 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2950 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2952 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2953 (list_args_or_locals): Adjust.
2954 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2955 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2956 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2957 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2958 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2959 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2960 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2961 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2962 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2963 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2964 (list_available_thread_groups, mi_cmd_list_thread_groups)
2965 (mi_cmd_data_list_register_names)
2966 (mi_cmd_data_list_changed_registers)
2967 (mi_cmd_data_list_register_values, get_register)
2968 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2969 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2970 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2971 (mi_execute_command, mi_load_progress): Adjust.
2972 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2973 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2974 Adjust.
2975 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2976 * tui/tui-interp.c (tui_command_loop): Adjust.
2977 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2978
f9679975
PA
29792011-08-04 Pedro Alves <pedro@codesourcery.com>
2980
2981 * exceptions.c (struct catcher): Remove saved_uiout field.
2982 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2983 no longer save/resvore the global ui_out builder.
2984 (catch_exceptions_with_msg): Save/override/restore the global
2985 ui_out builder manually instead of relying on TRY_CATCH to do it.
2986 (catch_errors): Save/restore the global ui_out builder manually
2987 instead of relying on TRY_CATCH to do it.
2988 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2989 parameter.
2990 (TRY_CATCH): Adjust.
2991 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2992 the global ui_out builder manually instead of relying on TRY_CATCH
2993 to do it.
2994
934709f0
PW
29952011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2996
2997 * breakpoint.c (update_global_location_list): Ensure
2998 invariant 'first loc marked not duplicated and inserted,
2999 following locs marked duplicated/not inserted' is respected
3000 for multiple locations at the same address.
3001 (unduplicated_should_be_inserted) New function.
3002 (swap_insertion) New function.
3003
2421fe6f
JK
30042011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 * stack.c (print_frame_arguments_choices): Comment typo fix.
3007
3fbb6ffa
TJB
30082011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3009
3010 Revert:
3011 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3012 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3013 argument. Update callers.
3014
fbe12357
PP
30152011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3016
3017 PR gdb/13045
3018 * doublest.c (convert_doublest_to_floatformat): Pass correct
3019 mantissa length to put_field.
3020
b1d288d3
JK
30212011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3022
3023 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3024 exception_print code path.
3025 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3026 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3027 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3028
311b5970
JK
30292011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3030
3031 Code cleanup.
3032 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3033 Remove, merge them into ...
3034 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3035 variable args and its initialization.
3036 (struct print_args_args, print_args_stub): Remove, merge them into
3037 print_frame.
3038 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3039 them into ...
3040 (do_gdb_disassembly): ... here. Remove variable args and its
3041 initialization.
3042 (print_frame): Remove variable args and its initialization, new
3043 variable gdbarch and numargs (from print_args_stub), inline here
3044 print_args_stub with a TRY_CATCH.
3045 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3046 them into ...
3047 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3048 New variable e, remove variable btargs and its initialization.
311b5970 3049
484a26a8
TG
30502011-08-01 Tristan Gingold <gingold@adacore.com>
3051
3052 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3053
c30eee59
TJB
30542011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3055
3056 * breakpoint.c (insert_bp_location): Document return value.
3057 (insert_breakpoint_locations): Fix documentation.
3058 (remove_breakpoints): Add documentation.
3059
f116073b
TJB
30602011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3061
3062 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3063 argument. Update callers.
3064
65aa373f
JK
30652011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3066
3067 * stack.c (print_frame_info): Comment typo fix.
3068
a50242fb
SA
30692011-07-29 Sterling Augustine <saugustine@google.com>
3070
3071 * MAINTAINERS (Write After Approval): Add myself to the list.
3072
267f6504
TT
30732011-07-29 Tom Tromey <tromey@redhat.com>
3074
3075 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3076 (library_list_start_segment): Update.
3077 (library_list_start_section): Update.
3078
00bd41d6
PM
30792011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3080
3081 * varobj.c (value_get_print_value): Move hint check later into the
3082 function. Comment function. Free thevalue before reusing it.
3083
18a46dbe
JK
30842011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3085 Pedro Alves <pedro@codesourcery.com>
3086
3087 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3088 value_one.
3089 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3090 Assert the result kind.
3091 * value.h (value_one): Remove parameter lv.
3092
bb7da2bf
JK
30932011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 Fix crash on lval_computed values.
3096 * valops.c (value_zero): Use not_lval for lval_computed.
3097
2d5213f8
TT
30982011-07-27 Tom Tromey <tromey@redhat.com>
3099
3100 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3101 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3102
11081198
JK
31032011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3104
3105 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3106 "ptype" by their typedefs difference.
3107
3c6e0cb3
JK
31082011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3109
3110 * dwarf2expr.c (ctx_no_read_reg): New function.
3111 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3112 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3113 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3114 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3115
523f3620
JK
31162011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3119 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3120 file.
3121 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3122 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3123 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3124 (ctx_no_get_base_type): Move the functions here.
3125 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3126 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3127 (ctx_no_get_base_type): New declarations.
3128
24d3216f
TT
31292011-07-27 Tom Tromey <tromey@redhat.com>
3130
3131 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3132 entries.
3133 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3134 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3135
5005c8a9
PP
31362011-07-26 Sterling Augustine <saugustine@google.com>
3137
3138 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3139 ULONGEST.
3140 (dump_bfd_file): Likewise.
3141
480a3f21
PW
31422011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3143
3144 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3145 (remote_hw_watchpoint_length_limit): New variable.
3146 (_initialize_remote) add set,show cmds for this new variable.
3147 * gdb.texinfo: document these new commands.
3148 * NEWS: Mention these new commands.
3149
efa80663
PA
31502011-07-26 Pedro Alves <pedro@codesourcery.com>
3151
3152 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3153 true for software watchpoints.
3154
dbdaa232 31552011-07-26 Joel Brobecker <brobecker@adacore.com>
3156
3157 GDB 7.3 released.
3158
cf2c3c16
TT
31592011-07-26 Tom Tromey <tromey@redhat.com>
3160
3161 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3162 * dwarf2read.c (read_indirect_string_at_offset): New function.
3163 (read_indirect_string): Use it.
3164 (dwarf_decode_macro_bytes): New function, taken from
3165 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3166 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3167 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3168 New functions.
3169 (struct dwarf2_per_objfile) <macro>: New field.
3170 (dwarf2_elf_names): Add .debug_macro.
3171 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3172 (dwarf2_locate_sections): Handle new section.
3173 (read_file_scope): Handle DW_AT_GNU_macros.
3174 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3175
1a532630
PP
31762011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3177
3178 * NEWS: Mention dcache configuration.
3179 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3180 (dcache_size, dcache_line_size): New variables.
3181 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3182 (struct dcache_block): Make it expandable.
3183 (struct dcache_struct): New field.
3184 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3185 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3186 (dcache_poke_byte, dcache_print_line): Adjust.
3187 (set_dcache_size, set_dcache_line_size): New functions.
3188 (set_dcache_command, show_dcache_command): New functions.
3189 (_initialize_dcache): Add new commands.
3190
2eff07b3
PP
31912011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3192
3193 * progspace.h (struct program_space): Add solib_add_generation.
3194 * infcmd.c (post_create_inferior): Only call solib_add if not
3195 already done.
3196 * solib.c (solib_add): Increment solib_add_generation.
3197
543305c9
JK
31982011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 Fix implicit pointer offsets.
3201 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3202 ptr.OFFSET.
3203
c0a91b2b
TT
32042011-07-25 Tom Tromey <tromey@redhat.com>
3205
3206 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3207 const.
3208 (ada_exception_sal): Make 'ops' const.
3209 (ada_decode_exception_location): Likewise.
3210 (ada_decode_assert_location): Likewise.
3211 (catch_assert_command): Update.
3212 (catch_ada_exception_command): Update.
3213 (create_ada_exception_catchpoint): Make 'ops' const.
3214 * breakpoint.c (set_raw_breakpoint_without_location)
3215 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3216 const.
3217 (create_internal_breakpoint): Update.
3218 (init_raw_breakpoint_without_location): Make 'ops' const.
3219 (init_raw_breakpoint, init_catchpoint)
3220 (create_fork_vfork_event_catchpoint)
3221 (create_syscall_event_catchpoint, init_breakpoint_sal)
3222 (create_breakpoint_sal, create_breakpoints_sal)
3223 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3224 * breakpoint.h (struct breakpoint) <ops>: Now const.
3225 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3226 const.
3227
6cb9b55b
PP
32282011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3229
3230 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3231
d9b3f62e
PA
32322011-07-25 Pedro Alves <pedro@codesourcery.com>
3233
3234 * breakpoint.h (print_recreate_thread): Declare.
3235 (struct breakpoint): Move step_count, pass_count,
3236 number_on_target, static_trace_marker_id,
3237 static_trace_marker_id_idx ...
3238 (struct tracepoint): ... to this new struct.
3239 (get_tracepoint, get_tracepoint_by_number_on_target)
3240 (get_tracepoint_by_number): Change return type to struct
3241 tracepoint pointer.
3242 * breakpoint.c (is_tracepoint_type): New, factored out from
3243 is_tracepoint.
3244 (is_tracepoint): Adjust.
3245 (print_one_breakpoint_location): Cast to struct tracepoint as
3246 necessary, and adjust.
3247 (print_recreate_catch_fork, print_recreate_catch_vfork)
3248 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3249 print_recreate_thread.
3250 (init_breakpoint_sal): New, factored out from
3251 create_breakpoint_sal.
3252 (create_breakpoint_sal): Reimplement.
3253 (create_breakpoint): Allocate a struct tracecepoint if the caller
3254 wanted a tracepoint. Use init_breakpoint_sal and
3255 install_breakpoint.
3256 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3257 (print_recreate_masked_watchpoint)
3258 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3259 (tracepoint_print_one_detail): Adjust.
3260 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3261 Dump the pass count here.
3262 (update_static_tracepoint): Adjust.
3263 (addr_string_to_sals): Adjust.
3264 (create_tracepoint_from_upload): Adjust. Change return type to
3265 struct tracepoint pointer.
3266 (trace_pass_set_count): Change parameter type to struct tracepoint
3267 pointer, and adjust.
3268 (trace_pass_command): Adjust.
3269 (get_tracepoint, get_tracepoint_by_number_on_target)
3270 (get_tracepoint_by_number): Change return type to struct
3271 tracepoint pointer, and adjust.
3272 (print_recreate_thread): New, factored out from save_breakpoints.
3273 (save_breakpoints): Don't print thread and task and passcount
3274 recreation here.
3275 * remote.c (remote_download_tracepoint): Adjust.
3276 * tracepoint.c (trace_actions_command, validate_actionline)
3277 (start_tracing, tfind_1, trace_find_tracepoint_command)
3278 (trace_dump_command): Adjust.
3279 (find_matching_tracepoint): Change return type to struct
3280 tracepoint pointer, and adjust.
3281 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3282 (tfile_trace_find, tfile_fetch_registers): Adjust.
3283 * tracepoint.h (create_tracepoint_from_upload): Change return type
3284 to struct tracepoint pointer.
3285 * ada-lang.c (print_recreate_exception): Call
3286 print_recreate_thread.
3287 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3288
3a5c3e22
PA
32892011-07-25 Pedro Alves <pedro@codesourcery.com>
3290
3291 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3292 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3293 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3294 watchpoint_thread, watchpoint_triggered ...
3295 (struct watchpoint): ... to this new struct.
3296 (is_watchpoint): Declare.
3297 (install_breakpoint): Add new `internal' parameter.
3298 * breakpoint.c (is_watchpoint): Delete declaration.
3299 (set_breakpoint_condition): Handle watchpoints.
3300 (is_watchpoint): Make public.
3301 (watchpoint_in_thread_scope): Change parameter type to struct
3302 watchpoint.
3303 (watchpoint_del_at_next_stop): Change parameter type to struct
3304 watchpoint. Remove assertion. Adjust.
3305 (update_watchpoint): Ditto.
3306 (insert_breakpoints, breakpoint_init_inferior)
3307 (watchpoints_triggered, watchpoint_check)
3308 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3309 (bpstat_stop_status, print_one_breakpoint_location)
3310 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3311 to struct watchpoint as necessary, and adjust.
3312 (install_breakpoint): Add `internal' argument. If true, don't
3313 mention the new breakpoint. Use set_breakpoint_number.
3314 (create_fork_vfork_event_catchpoint)
3315 (create_syscall_event_catchpoint): Adjust.
3316 (dtor_watchpoint): New.
3317 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3318 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3319 (print_it_watchpoint, print_mention_watchpoint)
3320 (print_recreate_watchpoint, insert_masked_watchpoint)
3321 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3322 (print_one_detail_masked_watchpoint)
3323 (print_mention_masked_watchpoint)
3324 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3325 necessary, and adjust.
3326 (watch_command_1): Allocate and initialize a struct watchpoint
3327 instead of a struct breakpoint. Use install_breakpoint.
3328 (catch_exec_command_1): Adjust.
3329 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3330 fields.
3331 (delete_breakpoint, enable_breakpoint_disp)
3332 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3333 as necessary, and adjust.
3334 (initialize_breakpoint_ops): Install dtor_watchpoint as
3335 watchpoints' dtor method.
3336 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3337 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3338 to struct watchpoint as necessary, and adjust.
3339
2060206e
PA
33402011-07-25 Pedro Alves <pedro@codesourcery.com>
3341
3342 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3343 the the base class ops table.
3344 (catch_exception_breakpoint_ops)
3345 (catch_exception_unhandled_breakpoint_ops)
3346 (catch_assert_breakpoint_ops): Don't statically initialize.
3347 (initialize_ada_catchpoint_ops): New.
3348 (_initialize_ada_language): Call it.
3349 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3350 (bkpt_breakpoint_ops): Forward declare.
3351 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3352 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3353 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3354 (masked_watchpoint_breakpoint_ops)
3355 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3356 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3357 base class ops table.
3358 (null_re_set, null_check_status, null_works_in_software_mode)
3359 (null_resources_needed, null_print_one_detail): Delete.
3360 (bkpt_dtor): Rename to ...
3361 (base_breakpoint_dtor): ... this. Make static.
3362 (bkpt_allocate_location): Rename to ...
3363 (base_breakpoint_allocate_location): ... this. Make static.
3364 (base_breakpoint_re_set): New.
3365 (internal_error_pure_virtual_called): New.
3366 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3367 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3368 (base_breakpoint_works_in_software_mode)
3369 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3370 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3371 (base_breakpoint_print_recreate): New functions.
3372 (base_breakpoint_ops): New global.
3373 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3374 (bkpt_breakpoint_hit): Make static.
3375 (bkpt_check_status): Delete.
3376 (bkpt_resources_needed): Make static.
3377 (bkpt_works_in_software_mode): Delete.
3378 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3379 static.
3380 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3381 (momentary_breakpoint_ops): Don't statically initialize.
3382 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3383 Delete.
3384 (tracepoint_insert_location, tracepoint_remove_location)
3385 (tracepoint_check_status, tracepoint_works_in_software_mode)
3386 (tracepoint_print_it): Delete.
3387 (tracepoint_breakpoint_ops): Don't statically initialize.
3388 (initialize_breakpoint_ops): New.
3389 (_initialize_breakpoint): Call it.
3390 * breakpoint.h (null_re_set, null_works_in_software_mode)
3391 (null_resources_needed, null_check_status, null_print_one_detail):
3392 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3393 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3394 (bkpt_check_status, bkpt_resources_needed)
3395 (bkpt_works_in_software_mode, bkpt_print_it)
3396 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3397 Delete declarations.
3398 (initialize_breakpoint_ops): Declare.
3399
001c8c33
PA
34002011-07-25 Pedro Alves <pedro@codesourcery.com>
3401
3402 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3403 (momentary_bkpt_print_it): Simplify.
3404
06edf0c0
PA
34052011-07-25 Pedro Alves <pedro@codesourcery.com>
3406
3407 Split internal, momentary and user breakpoints breakpoint_ops
3408 tables.
3409
3410 * breakpoint.c (internal_breakpoint_ops)
3411 (momentary_breakpoint_ops): Forward declare.
3412 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3413 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3414 (create_overlay_event_breakpoint)
3415 (create_std_terminate_master_breakpoint)
3416 (create_exception_master_breakpoint): Create breakpoints with
3417 internal_breakpoint_ops vtable.
3418 (set_longjmp_breakpoint): Create momentary breakpoints with
3419 momentary_breakpoint_ops vtable, using
3420 momentary_breakpoint_from_master.
3421 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3422 (create_solib_event_breakpoint): Create breakpoints with
3423 internal_breakpoint_ops vtable.
3424 (set_momentary_breakpoint): Create breakpoints with
3425 momentary_breakpoint_ops vtable.
3426 (momentary_breakpoint_from_master): New, factored out from
3427 clone_momentary_breakpoint.
3428 (clone_momentary_breakpoint): Adjust.
3429 (watch_command_1): Create scope breakpoints with
3430 momentary_breakpoint_ops vtable.
3431 (bkpt_re_set): Remove handling of internal and momentary
3432 breakpoints.
3433 (bkpt_print_mention, bkpt_print_recreate): New.
3434 (bkpt_breakpoint_ops): Adjust.
3435 (internal_bkpt_re_set, internal_bkpt_check_status)
3436 (internal_bkpt_print_it, internal_bkpt_print_mention)
3437 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3438 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3439 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3440 (momentary_bkpt_print_recreate): New.
3441 (momentary_breakpoint_ops): New.
3442
348d480f
PA
34432011-07-25 Pedro Alves <pedro@codesourcery.com>
3444
3445 Implement most breakpoint_ops methods for all breakpoint types,
3446 and move the default handlings to the proper callbacks.
3447
3448 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3449 works_in_software_mode method.
3450 (insert_bp_location): Go through breakpoint_ops->insert_location
3451 for software and hardware watchpoints.
3452 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3453 breakpoint_ops.
3454 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3455 for software and hardware watchpoints.
3456 (print_it_typical): Delete.
3457 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3458 method.
3459 (watchpoint_check): Adjust comment.
3460 (bpstat_check_location): Simply always call the breakpoint's
3461 breakpoint_hit method.
3462 (bpstat_stop_status): Always call the breakpoint's check_status
3463 method. Remove special cases for watchpoints and internal event
3464 breakpoints from here (moved to the check_status implementations).
3465 (print_one_breakpoint_location): Assume b->ops is never NULL.
3466 Remove static tracepoint marker id printing from here (moved to
3467 the print_one_detail callback implementation of tracepoints).
3468 (init_bp_location): Assert OPS is never NULL.
3469 (allocate_bp_location): Always call the breakpoint's
3470 allocate_location method, and remove the default code from here.
3471 (free_bp_location): Always call the location's dtor method, and
3472 remove the default code from here.
3473 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3474 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3475 parameter. Pass it down.
3476 (set_raw_breakpoint): Ditto.
3477 (print_it_catch_fork): Adjust to take a bpstat as argument.
3478 (catch_fork_breakpoint_ops): Install methods.
3479 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3480 (catch_vfork_breakpoint_ops): Install methods.
3481 (dtor_catch_syscall): Call the base dtor.
3482 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3483 (catch_syscall_breakpoint_ops): Install methods.
3484 (dtor_catch_exec): Call the base dtor.
3485 (print_it_catch_exec): Adjust to take a bpstat as argument.
3486 (catch_exec_breakpoint_ops): Install methods.
3487 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3488 the breakpoint's resources_needed method, and remove the default
3489 code from here.
3490 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3491 breakpoint_ops.
3492 (clone_momentary_breakpoint): Clone the original's ops.
3493 (mention): Always call the breakpoint's print_mention method, and
3494 remove the default code from here.
3495 (create_breakpoint_sal): Adjust to pass the ops to
3496 set_raw_breakpoint rather than setting it manually.
3497 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3498 ops to set_raw_breakpoint_without_location rather than setting it
3499 manually.
3500 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3501 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3502 (ranged_breakpoint_ops): Install methods.
3503 (break_range_command): Adjust to pass the ops to
3504 set_raw_breakpoint rather than setting it manually.
3505 (re_set_watchpoint, breakpoint_hit_watchpoint)
3506 (check_status_watchpoint, resources_needed_watchpoint)
3507 (works_in_software_mode_watchpoint, print_it_watchpoint)
3508 (print_mention_watchpoint, print_recreate_watchpoint): New
3509 functions.
3510 (watchpoint_breakpoint_ops): Install new methods.
3511 (print_it_masked_watchpoint): New function.
3512 (masked_watchpoint_breakpoint_ops): Install new methods.
3513 (watch_command_1): Adjust to pass the right breakpoint_ops to
3514 set_raw_breakpoint_without_location rather than setting it
3515 manually later. Record the current pspace.
3516 (print_it_exception_catchpoint): Adjust to take a bpstat as
3517 argument.
3518 (gnu_v3_exception_catchpoint_ops): Install new methods.
3519 (say_where): New function.
3520 (null_re_set, null_check_status, null_works_in_software_mode)
3521 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3522 New functions.
3523 (bp_location_ops): New global.
3524 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3525 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3526 (bkpt_check_status, bkpt_resources_needed)
3527 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3528 (bkpt_print_recreate): New functions.
3529 (bkpt_breakpoint_ops): New global.
3530 (tracepoint_re_set, tracepoint_insert_location)
3531 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3532 (tracepoint_check_status, tracepoint_works_in_software_mode)
3533 (tracepoint_print_it, tracepoint_print_one_detail)
3534 (tracepoint_print_mention, tracepoint_print_recreate): New
3535 functions.
3536 (tracepoint_breakpoint_ops): New global.
3537 (delete_breakpoint): Always call the breakpoint's dtor method, and
3538 remove the default handling from here.
3539 (breakpoint_re_set_default): Make static.
3540 (breakpoint_re_set_one): Always call the breakpoints re_set
3541 method, and remove the default handling from here.
3542 (trace_command, ftrace_command, strace_command)
3543 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3544 to create_breakpoint.
3545 (save_breakpoints): Always call the breakpoint's print_recreate
3546 method, and remove the default handling from here.
3547
3548 * ada-lang.c (dtor_exception): Call the base dtor.
3549 (re_set_exception): Call the base method.
3550 (print_it_exception, print_it_catch_exception): Adjust to take a
3551 bpstat as argument.
3552 (catch_exception_breakpoint_ops): Install methods.
3553 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3554 argument.
3555 (catch_exception_unhandled_breakpoint_ops): Install methods.
3556 (print_it_catch_assert): Adjust to take a bpstat as argument.
3557 (catch_assert_breakpoint_ops): Install methods.
3558
3559 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3560 to take a bpstat as argument.
3561 (enum print_stop_action): Add describing comments to each enum
3562 value.
3563 (breakpoint_re_set_default): Delete declaration.
3564 (null_re_set, null_works_in_software_mode, null_resources_needed)
3565 (null_check_status, null_print_one_detail): Declare.
3566 (bkpt_breakpoint_ops): Declare.
3567 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3568 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3569 (bkpt_check_status, bkpt_resources_needed)
3570 (bkpt_works_in_software_mode, bkpt_print_it)
3571 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3572 Declare.
3573
3574 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3575 bkpt_breakpoint_ops.
3576 * python/py-breakpoint.c (bppy_init): Ditto.
3577
be8f8133
PW
35782011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3579
3580 * MAINTAINERS (Write After Approval): Add myself to the list.
3581
3807f613
PP
35822011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3583
3584 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3585
1ced966e
PA
35862011-07-22 Pedro Alves <pedro@codesourcery.com>
3587
3588 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3589 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3590 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3591 adjust.
3592 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3593 (struct i386_debug_reg_state): New.
3594 (i386_init_dregs): New.
3595 (dr_mirror): New.
3596 (i386_cleanup_dregs): Use i386_init_dregs.
3597 (i386_show_dr): Add state parameter and adjust.
3598 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3599 the inferior here.
3600 (i386_remove_aligned_watchpoint): Likewise.
3601 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3602 (i386_update_inferior_debug_regs): New.
3603 (i386_insert_watchpoint): Work on a local mirror of the debug
3604 registers, and only update the inferior on success.
3605 (i386_remove_watchpoint): Ditto.
3606 (i386_region_ok_for_watchpoint): Adjust.
3607 (i386_stopped_data_address): Adjust.
3608 (i386_insert_hw_breakpoint): Adjust.
3609 (i386_remove_hw_breakpoint): Adjust.
3610
3543a589
TT
36112011-07-22 Tom Tromey <tromey@redhat.com>
3612
3613 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3614 from amd64_pseudo_register_read. Change arguments. Call
3615 mark_value_bytes_unavailable when needed.
3616 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3617 set_gdbarch_pseudo_register_read.
3618 * sentinel-frame.c (sentinel_frame_prev_register): Use
3619 regcache_cooked_read_value.
3620 * regcache.h (regcache_cooked_read_value): Declare.
3621 * regcache.c (regcache_cooked_read_value): New function.
3622 (regcache_cooked_read): Call
3623 gdbarch_pseudo_register_read_value if available.
3624 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3625 (i386_pseudo_register_read): Remove.
3626 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3627 i386_pseudo_register_read. Change arguments. Call
3628 mark_value_bytes_unavailable when needed.
3629 (i386_pseudo_register_read_value): New function.
3630 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3631 not set_gdbarch_pseudo_register_read.
3632 * gdbarch.sh (pseudo_register_read_value): New method.
3633 * gdbarch.c, gdbarch.h: Rebuild.
3634 * findvar.c (value_from_register): Call get_frame_register_value.
3635
95298e72
PM
36362011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3637
3638 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3639 get_prefix.
3640 (display_gdb_prompt): Likewise.
3641 (change_annotation_level): Likewise.
3642 (push_prompt): Likewise.
3643 (pop_prompt): Likewise.
3644 (handle_stop_sig): Use get_prompt with a level.
3645 * top.c (command_loop): Use get_prompt with a level.
3646 (set_async_annotation_level): Use set_prompt with a level.
3647 (get_prefix): New function.
3648 (set_prefix): Ditto.
3649 (set_suffix): Ditto.
3650 (get_suffix): Ditto.
3651 (get_prompt): Accept a level argument.
3652 (set_prompt): Accept a level argument. Free old prompts. Set
3653 new_async_prompt if level is 0.
3654 (init_main): Use set_prompt with a level. Do not set
3655 new_async_prompt.
3656 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3657 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3658 Modify set_prompt, get_prompt to account for levels.
3659 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3660 level.
3661 * python/python.c (before_prompt_hook): Use set_prompt.
3662
d26e3629
KY
36632011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3664
3665 * defs.h: Add guard against inclusion in gdbserver.
3666 (struct ptid, ptid_t): Move to common/ptid.h.
3667 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3668 xsnprintf, internal_error): Move to common/common-utils.h.
3669 (nomem): Delete.
3670 * gdb_assert.h: Move into common/ sub-directory.
3671 * gdb_locale.h: Ditto.
3672 * gdb_dirent.h: Ditto.
3673 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3674 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3675 Move into common/ptid.h.
3676 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3677 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3678 Change nomem to malloc_failure.
3679 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3680 * utils.c (nomem): Rename to malloc_failure.
3681 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3682 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3683 (gdb_buildargv): Change nomem to malloc_failure.
3684 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3685 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3686 ptid_is_pid): Move into common/ptid.c.
3687 (initialize_infrun): Delete initialization of null_ptid and
3688 minus_one_ptid.
3689 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3690 linux_common_xfer_osdata.
3691 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3692 common/ptid.c and common/buffer.c.
3693 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3694 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3695 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3696 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3697 rules.
3698 * common/gdb_assert.h: New.
3699 * common/gdb_dirent.h: New.
3700 * common/gdb_locale.h: New.
3701 * common/buffer.c: New.
3702 * common/buffer.h: New.
3703 * common/ptid.c: New.
3704 * common/ptid.h: New.
3705 * common/xml-utils.c: New.
3706 * common/xml-utils.h: New.
3707 * common/common-utils.c: New.
3708 * common/common-utils.h: New.
3709 * common/linux-osdata.c: New.
3710 * common/linux-osdata.h: New.
3711 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3712 * config/arm/linux.mh (NATDEPFILES): Ditto.
3713 * config/i386/linux.mh (NATDEPFILES): Ditto.
3714 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3715 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3716 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3717 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3718 * config/mips/linux.mh (NATDEPFILES): Ditto.
3719 * config/pa/linux.mh (NATDEPFILES): Ditto.
3720 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3721 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3722 * config/s390/s390.mh (NATDEPFILES): Ditto.
3723 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3724 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3725 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3726
edc84990 37272011-07-21 Matt Rice <ratmice@gmail.com>
3728
3729 * NEWS: Add info macros and info definitions commands.
3730
3a7bf607
PM
37312011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3732
3733 * NEWS: Document Python prompt substitution hook.
3734
9b158ba0 37352011-07-18 Matt Rice <ratmice@gmail.com>
3736
3737 PR macros/12999
3738 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3739 * macrotab.c (foreach_macro): Ditto.
3740 (foreach_macro_in_scope): Ditto.
3741 * macrocmd.c (print_macro_callback): New function.
3742 (info_macro_command): Move some code to print_macro_definition.
3743 (print_macro_definition): New function.
3744 (print_one_macro): Add new arguments to callback.
3745 (info_definitions_command): New function.
3746 (info_macros_command): Ditto.
3747 (_initialize_macrocmd): Add info macros and info definitions commands.
3748 * symtab.c (add_macro_name): Add new arguments to callback.
3749
d17b6f81
PM
37502011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3751 Tom Tromey <tromey@redhat.com>
3752
3753 * top.c (set_prompt): Rewrite to free previous prompt, free
3754 asynch_new_prompt and set both on new prompts.
3755 * event-top.c (display_gdb_prompt): Add prompt substitution
3756 logic.
3757 * python/python.c (before_prompt_hook): New function.
3758
1364323a 37592011-07-20 Matt Rice <ratmice@gmail.com>
3760
3761 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3762 arguments to store_unsigned_integer.
3763
8b70b953
TT
37642011-07-20 Tom Tromey <tromey@redhat.com>
3765
6c83ed52
TT
3766 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3767 in some declaration-only cases.
3768
37692011-07-18 Tom Tromey <tromey@redhat.com>
3770
8b70b953
TT
3771 PR symtab/12984:
3772 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3773 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3774 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3775 <debug_type_section>: New field.
3776 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3777 (load_cu): Use appropriate section.
3778 (create_signatured_type_table_from_index): Add 'section'
3779 argument.
3780 (dwarf2_read_index): Only allow a single .debug_types section.
3781 (dw2_get_file_names): Use appropriate section.
3782 (read_type_comp_unit_head): Add 'section' argument.
3783 (create_debug_types_hash_table): Loop over all .debug_types
3784 sections.
3785 (init_cu_die_reader): Use appropriate section.
3786 (process_psymtab_comp_unit, load_partial_comp_unit)
3787 (load_full_comp_unit, read_die_and_children, find_partial_die)
3788 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3789 (lookup_signatured_type_at_offset): Add 'section' argument.
3790 (read_signatured_type_at_offset): Add 'sect' argument.
3791 (read_signatured_type): Use appropriate section.
3792 (set_die_type, get_die_type_at_offset): Update.
3793 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3794 VEC.
3795 (write_psymtabs_to_index): Don't allow index with more than one
3796 .debug_types section.
3797
918dd910
JK
37982011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3799
3800 Fix crash if referenced CU is aged out.
3801 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3802 xfree of block.data.
3803 (indirect_pieced_value): New variable back_to, use to for xfree of
3804 baton.data.
3805 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3806 block.data.
3807 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3808 (load_cu): New function from ...
3809 (dw2_do_instantiate_symtab): ... the code here ...
3810 (process_full_comp_unit): ... and here.
3811 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3812 retval.data.
3813
0e37a63c
JK
38142011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3815
3816 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3817 type.
3818
7e324e48
GB
38192011-07-19 Gary Benson <gbenson@redhat.com>
3820
3821 * infrun.c (struct execution_control_state): New member
3822 stop_func_filled_in.
3823 (clear_stop_func, fill_in_stop_func): New functions.
3824 (handle_inferior_event): Call clear_stop_func rather than
3825 manipulating the execution control state directly.
3826 Call fill_in_stop_func lazily as required rather than
3827 directly calling find_pc_partial_function in all cases.
3828
d48323d8
TT
38292011-07-18 Tom Tromey <tromey@redhat.com>
3830
3831 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3832 checking for variable-sized array.
3833
40591b7d
JCD
38342011-07-18 Jean-Charles Delay <delay@adacore.com>
3835
3836 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3837 of supported languages.
3838 * varobj.c: Add top definitions and basic implementation of the
3839 following callbacks: ada_number_of_children, ada_name_of_variable,
3840 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3841 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3842 (languages): Register Ada-specific callbacks.
3843 (variable_language): Add the Ada case in the language setter switch.
3844
2e424e08
JK
38452011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3846
3847 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3848
9e8b7a03
JK
38492011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3850
3851 Code cleanup.
3852 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3853 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3854 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3855 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3856 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3857 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3858 (struct dwarf_expr_context_funcs): New, move here methods from ...
3859 (struct dwarf_expr_context): ... here. New fields funcs.
3860 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3861 (dwarf_expr_ctx_funcs): New.
3862 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3863 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3864 (needs_frame_ctx_funcs): New.
3865 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3866
2b1260ab
FM
38672011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3868
3869 * MAINTAINERS (Write After Approval): Add myself to the list.
3870
8bd90839
FM
38712011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3872
3873 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3874 that CIE pointer of an FDE really points to a CIE .
3875
953b98d1
HZ
38762011-07-15 Hui Zhu <teawater@gmail.com>
3877
3878 * remote.c (remote_get_trace_status): Add comments.
3879
c8f2448a
JK
38802011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3881
3882 Code cleanup - constify struct lval_funcs.
3883 * dwarf2loc.c (pieced_value_funcs): Make it const.
3884 * infrun.c (siginfo_value_funcs): Likewise.
3885 * opencl-lang.c (opencl_value_funcs): Likewise.
3886 * valops.c (value_assign, value_ind): Make the funcs variable const.
3887 * value.c (struct value): Make location.computed.funcs target const.
3888 Rearrange the comments.
3889 (allocate_computed_value): Make the funcs parameter target const.
3890 (value_computed_funcs): Return the funcs target const.
3891 (value_free, value_copy, set_value_component_location): Make the funcs
3892 variable const.
3893 * value.h (allocate_computed_value): Make the funcs parameter target
3894 const.
3895 (value_computed_funcs): Return the funcs target const.
3896 * windows-tdep.c (tlb_value_funcs): Make it const.
3897
f652de6f
HZ
38982011-07-14 Hui Zhu <teawater@gmail.com>
3899
3900 * remote.c (remote_get_trace_status): Initialize p.
3901
67f41397
JK
39022011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3903
3904 Work around kgdb.
3905 * remote.c (remote_get_trace_status): New variable ex. Put
3906 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3907
d1b66e6d
TT
39082011-07-13 Tom Tromey <tromey@redhat.com>
3909
3910 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3911 value_from_contents for final conversion.
3912
1632a688
JK
39132011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 Code cleanup.
3916 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3917 Indent prototypes so they do not get into tags.
3918
a7035dbb
JK
39192011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 Code cleanup making also optimized out values lazy.
3922 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3923 allocate_optimized_out_value. Twice.
3924 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3925 * findvar.c (read_var_value): Likewise.
3926 * value.c (allocate_optimized_out_value): New function.
3927 * value.h (allocate_optimized_out_value): New declaration.
3928
d07ed419
JK
39292011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3930
3931 Fix occasional crash of CTRL-C during DWARF read in.
3932 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3933
86d31898
TT
39342011-07-11 Tom Tromey <tromey@redhat.com>
3935
3936 * regcache.c (struct regcache_descr): Fix typo.
3937 * i387-tdep.c (i387_supply_xsave): Fix typo.
3938
2ab95328
TT
39392011-07-11 Tom Tromey <tromey@redhat.com>
3940
3941 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3942 (read_file_scope, read_type_unit_scope): Use it.
3943
04ad99e6
JK
39442011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3945
3946 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3947 `int'.
3948
713389e0
PM
39492011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3950
3951 PR python/12438
3952 * python/python.c: Set gdbpy_should_print_stack default to off.
3953 (set_python): Deprecate maint set python print-stack to
3954 class_deprecate.
3955 (_initialize_python): Deprecate maint set/show python print-stack.
3956 Add new prefix command, python. Add new setting, print-backtrace.
3957 * NEWS: Document set python print-stack. Document default change.
3958
754eadd1
PM
39592011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3960
3961 * python/py-inferior.c (infpy_dealloc): New function.
3962 (inferior_to_inferior_object): Return a new object, or a
3963 new reference to the existing object.
3964 (find_thread_object): Cleanup references to inferior.
3965 (delete_thread_object): Ditto.
3966 * python/py-infthread.c (create_thread_object): Do not increment
3967 inferior reference count.
3968
5e44ecb3
TT
39692011-07-08 Tom Tromey <tromey@redhat.com>
3970
3971 * dwarf2loc.c (locexpr_regname): New function.
3972 (locexpr_describe_location_piece): Use it.
3973 (disassemble_dwarf_expression): Add per_cu argument. Use
3974 locexpr_regname.
3975 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3976 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3977 New cases.
3978 (locexpr_describe_location_1): Add per_cu argument.
3979 (locexpr_describe_location): Update.
3980 (loclist_describe_location): Update.
3981
e0e9434c
TT
39822011-07-08 Tom Tromey <tromey@redhat.com>
3983
3984 * dwarf2expr.c (execute_stack_op): Add QUIT.
3985
26afc0d7
HZ
39862011-07-07 Hui Zhu <teawater@gmail.com>
3987
3988 Revert:
3989 2011-07-06 Hui Zhu <teawater@gmail.com>
3990 * remote.c (remote_start_remote): Add TRY_CATCH for
3991 remote_get_trace_status.
3992 * tracepoint.c (disconnect_tracing): Ditto.
3993
a40a111f
AB
39942011-07-07 Andrew Burgess <aburgess@broadcom.com>
3995
3996 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3997 variables as signed, not unsigned.
3998
e2bd3b15
JB
39992011-07-06 Joel Brobecker <brobecker@adacore.com>
4000
4001 * jit.c (jit_inferior_init): Reformat forward declaration.
4002
e3d961fe 40032011-07-06 Matt Rice <ratmice@gmail.com>
4004
4005 * MAINTAINERS (Write After Approval): Add myself to the list.
4006
0f3428f0
HZ
40072011-07-06 Hui Zhu <teawater@gmail.com>
4008
4009 * remote.c (remote_start_remote): Add TRY_CATCH for
4010 remote_get_trace_status.
4011 * tracepoint.c (disconnect_tracing): Ditto.
4012
fc9f3a69
TT
40132011-07-05 Tom Tromey <tromey@redhat.com>
4014
4015 * symtab.c (operator_chars): Now static.
4016 * linespec.c (operator_chars): Don't declare.
4017
26e519b9
TJB
40182011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4019
4020 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4021
eb2a6f42
TT
40222011-07-05 Tom Tromey <tromey@redhat.com>
4023
4024 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4025 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4026 (TYPE_CPLUS_REALLY_JAVA): New macro.
4027 * dwarf2read.c (process_structure_scope): Set
4028 TYPE_CPLUS_REALLY_JAVA.
4029
21083d0f 40302011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4031
4032 * ada-lang.c: Fix typos.
4033 * amd64-tdep.c: Likewise.
4034 * breakpoint.c: Likewise.
4035 * cli/cli-decode.c: Likewise.
4036 * findcmd.c: Likewise.
4037 * inline-frame.c: Likewise.
4038 * mi/mi-main.c: Likewise.
4039 * minsyms.c: Likewise.
4040 * monitor.c: Likewise.
4041 * monitor.h: Likewise.
4042 * prologue-value.c: Likewise.
4043 * reverse.c: Likewise.
4044 * s390-tdep.c: Likewise.
4045
3b2a0cf2
JB
40462011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4047
4048 * jit.c (jit_inferior_init): Forward declare.
4049 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4050
efae1d92
JB
40512011-07-04 Joel Brobecker <brobecker@adacore.com>
4052
4053 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4054
6040a59d
JB
40552011-07-04 Tristan Gingold <gingold@adacore.com>
4056
4057 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4058 (tcb_fieldno): Add activation_link field.
4059 (get_known_tasks_addr): Moved and rewritten.
4060 (get_tcb_types_info): Set activation_link field.
4061 (read_known_tasks_array): Add parameter. Rewritten.
4062 (read_known_tasks_list): New function.
4063 (read_known_tasks): New function.
4064 (ada_build_task_list): Call read_known_tasks instead of
4065 read_known_tasks_array.
4066 * ravenscar-thread.c: Add first_task_name constant.
4067 (has_ravenscar_runtime): Check for task list too.
4068
cb741e45
JB
40692011-07-04 Tristan Gingold <gingold@adacore.com>
4070
4071 * ada-tasks.c: Renames fieldno to actb_fieldno.
4072 (ada_get_task_number): Indentation.
4073 (get_tcb_types_info): Remove all parameters. Write directly
4074 the globals.
4075 (ptid_from_atcb_common): Adjust.
4076 (read_atcb): Adjust.
4077
7475b06c
TJB
40782011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4079
4080 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4081
15230f37
TJB
40822011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4083
4084 * ui-out.c (ui_out_field_core_addr): Mention that the function
4085 description is in the header file.
4086 * ui-out.h (ui_out_field_core_addr): Document function.
4087
65743aba
TJB
40882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4089
4090 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4091 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4092
c37a5aab
TJB
40932011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4094
4095 * symtab.c (expand_line_sal): Remove empty line.
4096
59adf69e
TS
40972011-07-04 Thomas Schwinge <thomas@schwinge.name>
4098
4099 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4100 same way as ELFOSABI_NONE.
4101 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4102
e5dd4106
TJB
41032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4104
4105 * breakpoint.c: Fix typos in comments.
4106 * linespec.c: Likewise.
4107 * symtab.c: Likewise.
4108
d40102a1
JB
41092011-07-04 Joel Brobecker <brobecker@adacore.com>
4110
4111 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4112 section in separate object files.
4113
2f741504
JK
41142011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4115
4116 Fix false GCC warning.
4117 * linespec.c (decode_line_1): Initialize values.
4118
418c7cf7
JK
41192011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 * linespec.c (find_method): Accept the function type automatically only
4122 if it was specified with parameter types.
4123
3d50dd94
JK
41242011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4125
4126 Stop on first linespec terminator instead of eating what we can.
4127 * linespec.c (is_linespec_boundary): New function.
4128 (name_end): Remove function.
4129 (keep_name_info): New parameter on_boundary, replace the body.
4130 (decode_line_1): Provide the parameter to keep_name_info.
4131 (decode_compound): Likewise. Drop the trailing java return type
4132 handling. Twice.
4133
dcf9f4ab
JK
41342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 Fall back linespec to minimal symbols.
4137 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4138 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4139 (find_method, symbol_found): Change error to cplusplus_error.
4140
3f542ed1
JK
41412011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
bc68c4e5 4143 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4144
900e11f9
JK
41452011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4146 Tom Tromey <tromey@redhat.com>
4147
4148 * dwarf2read.c (check_physname): New variable.
4149 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4150 (show_check_physname): New function.
4151 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4152
2301925d
JB
41532011-07-01 Joel Brobecker <brobecker@adacore.com>
4154
4155 * machoread.c (macho_symfile_read): Delete OBE comment.
4156
38947cca
JB
41572011-07-01 Joel Brobecker <brobecker@adacore.com>
4158
4159 * machoread.c (struct macho_oso_data): Delete.
4160 (current_oso): Delete.
4161 (macho_relocate_common_syms): New function, mostly extracted
4162 out of
4163 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4164 Remove code that sets and unset current_oso.
4165 (macho_symfile_relocate): Delete handling of common symbols,
4166 now moved to macho_relocate_common_syms.
4167
a7aa0d73
JB
41682011-07-01 Joel Brobecker <brobecker@adacore.com>
4169
4170 * darwin-nat.c (darwin_ptrace): Add documentation.
4171 Set errno to zero before calling ptrace. If ptrace returns
4172 -1 and errno is zero, then change then return zero.
4173 (darwin_kill_inferior): Issue a warning instead of triggering
4174 a failed assertion when the PT_KILL ptrace operations returned
4175 nonzero.
4176
5e9bc145
JB
41772011-07-01 Joel Brobecker <brobecker@adacore.com>
4178
4179 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4180 only when inf->private->no_ptrace.
4181
00eb2c4a
JB
41822011-07-01 Joel Brobecker <brobecker@adacore.com>
4183
4184 * ada-lang.c (print_it_exception): Print temporary catchpoints
4185 as "Temporary catchpoint".
4186 (print_mention_exception): Likewise.
4187
127c81bc
TT
41882011-07-01 Tom Tromey <tromey@redhat.com>
4189
4190 * jv-lang.c (java_language_defn): Use java_printchar,
4191 java_printstr.
4192 (java_get_encoding): New function.
4193 (java_emit_char): Use generic_emit_char.
4194 (java_printchar): New function.
4195 (java_printstr): Likewise.
4196
25552254
JB
41972011-07-01 Joel Brobecker <brobecker@adacore.com>
4198
4199 * ada-typeprint.c (print_record_type): If unable to decode
4200 the name of the parent type, use the encoded name.
4201
d2d43431
JB
42022011-07-01 Jean-Charles Delay <delay@adacore.com>
4203
4204 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4205 pointer to constrained packed array type output.
4206 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4207 packed array output.
4208
54ae186f
JB
42092011-07-01 Jean-Charles Delay <delay@adacore.com>
4210
4211 * ada-typeprint.c (print_array_type): removed if condition on show
4212 being negative for bounds printing.
4213
8f17729f
JB
42142011-07-01 Joel Brobecker <brobecker@adacore.com>
4215
4216 * ada-lang.c (ada_identical_enum_types_p): New function.
4217 (symbols_are_identical_enums): New function.
4218 (remove_extra_symbols): Do nothing if NSYMS < 2.
4219 Use symbols_are_identical_enums.
4220
f5aa6869
JB
42212011-07-01 Joel Brobecker <brobecker@adacore.com>
4222
4223 * ada-valprint.c (ada_value_print): Handle typedefs.
4224
8f465ea7
JB
42252011-07-01 Joel Brobecker <brobecker@adacore.com>
4226
4227 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4228
828292f2
JB
42292011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4230
4231 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4232 (decode_constrained_packed_array): Likewise.
4233 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4234
18920c42
JB
42352011-07-01 Joel Brobecker <brobecker@adacore.com>
4236
4237 * ada-exp.y (convert_char_literal): Handle typedef types.
4238
c90092fe
JB
42392011-07-01 Joel Brobecker <brobecker@adacore.com>
4240
4241 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4242
f748fb40
TT
42432011-06-30 Tom Tromey <tromey@redhat.com>
4244
4245 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4246 * valops.c (find_overload_match): Call do_cleanups on early exit
4247 path.
4248 * solib.c (solib_find): Call do_cleanups on early exit path.
4249
3bb47e8b
TT
42502011-06-30 Tom Tromey <tromey@redhat.com>
4251
4252 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4253 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4254 return paths. Defer final do_cleanups until last return.
4255 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4256 early return.
4257
4727bad3
TT
42582011-06-30 Tom Tromey <tromey@redhat.com>
4259
4260 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4261
bb361dbf
AB
42622011-06-30 Andrew Burgess <aburgess@broadcom.com>
4263
4264 * MAINTAINERS (Write After Approval): Add myself to the list.
4265
e0d00bc7
JK
42662011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4267
4268 Disable epilogue unwinders on recent GCCs.
4269 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4270 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4271 * dwarf2read.c (process_full_comp_unit): Initialize
4272 EPILOGUE_UNWIND_VALID.
4273 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4274 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4275 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4276
4632c0d0
JK
42772011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4278
4279 Code cleanup - reformatting.
4280 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4281 (producer_is_gcc_ge_4): ... here, change the return value.
4282 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4283 interpretation.
4284
32019081
JK
42852011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4286
4287 Fix non-only rename list for Fortran modules import.
4288 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4289 cp_add_using_directive caller.
4290 (cp_add_using_directive): New parameter excludes, describe it. New
4291 variables ix and param. Compare if also excludes match. Allocate NEW
4292 with variable size, initialize EXCLUDES there.
4293 (cp_lookup_symbol_imports): New variable excludep, test
4294 current->EXCLUDES with it.
4295 * cp-support.h: Include vec.h.
4296 (struct using_direct): New field excludes, describe it.
4297 (DEF_VEC_P (const_char_ptr)): New.
4298 (cp_add_using_directive): New parameter excludes.
4299 * defs.h (const_char_ptr): New typedef.
4300 * dwarf2read.c (read_import_statement): New variables child_die,
4301 excludes and cleanups, read in excludes.
4302 (read_namespace): Adjust the cp_add_using_directive caller.
4303
70c622a3
JK
43042011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4305
4306 Code cleanup.
4307 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4308 negative comparisons.
4309
39c4d40a
TT
43102011-06-29 André Pönitz <andre.poenitz@nokia.com>
4311
4312 * mi/mi-main.c (mi_cmd_list_features): Emit
4313 breakpoint-notifications.
4314
3b2b8fea
TT
43152011-06-29 Tom Tromey <tromey@redhat.com>
4316
4317 PR fortran/10036:
4318 * valprint.h (generic_emit_char, generic_printstr): Declare.
4319 * valprint.c (wchar_printable, append_string_as_wide)
4320 (print_wchar): Move from c-lang.c.
4321 (generic_emit_char): New function; mostly taken from c_emit_char.
4322 (generic_printstr): New function; mostly taken from c_printstr.
4323 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4324 represented as arrays.
4325 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4326 type.
4327 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4328 identically to TYPE_CODE_INT.
4329 * f-lang.c (f_get_encoding): New function.
4330 (f_emit_char): Use generic_emit_char.
4331 (f_printchar): Replace comment.
4332 (f_printstr): Use generic_printstr.
4333 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4334 "character" types specially.
4335 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4336 for Fortran.
4337 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4338 Move to valprint.c
4339 (c_emit_char): Call generic_emit_char.
4340 (c_printstr): Call generic_printstr.
4341
168e6d44
GB
43422011-06-29 Gary Benson <gbenson@redhat.com>
4343
4344 * breakpoint.c (bpstat_what): Removed duplicated case.
4345
1c033f8c
TT
43462011-06-28 Tom Tromey <tromey@redhat.com>
4347
4348 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4349
5fe41fbf
TT
43502011-06-27 Tom Tromey <tromey@redhat.com>
4351
4352 * valops.c (find_overload_match): Call do_cleanups before early
4353 return.
4354 * top.c (execute_command): Call do_cleanups before early return.
4355 (command_loop): Likewise.
4356 * stack.c (backtrace_command): Make a null cleanup early. Don't
4357 conditionally call do_cleanups.
4358 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4359 TRY_CATCH.
4360 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4361 so cleanups are always run.
4362 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4363 * findcmd.c (parse_find_args): Call do_cleanups on early return
4364 path.
4365 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4366 Don't conditionally call do_cleanups.
4367 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4368 later.
4369
e26bd57d
EB
43702011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4371
4372 * MAINTAINERS (Write After Approval): Use default email address.
4373
6c3097fc
JB
43742011-06-27 Joel Brobecker <brobecker@adacore.com>
4375
4376 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4377
369c397b
JB
43782011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4379
4380 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4381 saved_regs_mask and copied_regs_mask fields.
4382 (sparc_record_save_insn): New prototype.
4383 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4384 (sparc_record_save_insn): New function.
4385 (sparc_analyze_prologue): Add head comment. Recognize store insns
4386 of call-saved registers. Use OFFSET consistently. Recognize flat
4387 frames and cache their settings.
4388 (sparc32_skip_prologue): Handle flat frames.
4389 (sparc_frame_cache): Add frame_offset to the base address.
4390 (sparc32_frame_cache): Adjust to new frame description.
4391 (sparc32_frame_prev_register): Likewise.
4392 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4393 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4394 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4395 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4396 frame by calling sparc_record_save_insn.
4397 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4398 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4399 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4400
b315ab21
TG
44012011-06-27 Tristan Gingold <gingold@adacore.com>
4402
4403 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4404 field by map_addr and map_len.
4405 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4406 (munmap_section_buffer): Likewise.
4407
ddd49eee
TT
44082011-06-24 Tom Tromey <tromey@redhat.com>
4409
4410 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4411 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4412 * python/python.c (gdbpy_parameter): Make 'arg' const.
4413 (execute_gdb_command): Likewise.
4414 (gdbpy_decode_line): Likewise. Copy it.
4415 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4416 (gdbpy_write): Make 'arg' const.
4417 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4418 const.
4419 (gdbpy_lookup_type): Likewise.
4420 * python/py-prettyprint.c (print_children): Make 'name' const.
4421 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4422 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4423 Py_ssize_t.
4424 * python/py-function.c (fnpy_init): Make 'name' const.
4425 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4426 (gdbpy_string_to_argv): Make 'input' const.
4427 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4428 it.
4429 * gdbtypes.h (lookup_typename): Update.
4430 * gdbtypes.c (lookup_typename): Make 'name' const.
4431 (lookup_struct): Likewise.
4432 (lookup_union): Likewise.
4433 (lookup_enum): Likewise.
4434
5998129b
TT
44352011-06-24 Tom Tromey <tromey@redhat.com>
4436
4437 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4438 gdb_thread_db.h. Move all common/ entries to be together.
4439 (TAGS): Don't depend on DEPFILES.
4440
6e586cc5
YQ
44412011-06-23 Yao Qi <yao@codesourcery.com>
4442
4443 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4444 * remote.c (remote_start_remote): ... here.
4445 * monitor.c (monitor_open): ... here.
4446
86c3c1fc
AB
44472011-06-23 Andrew Burgess <aburgess@broadcom.com>
4448
4449 * gdbtypes.c (append_composite_type_field_aligned): Fix
4450 calculation of bit position based on alignment.
4451
28010a5d
PA
44522011-06-22 Pedro Alves <pedro@codesourcery.com>
4453
4454 * breakpoint.c (bpstat_stop_status): Call the check_status
4455 breakpoint_ops method.
4456 (print_one_breakpoint_location): Also print the condition for Ada
4457 exception catchpoints.
4458 (allocate_bp_location): New, factored out from
4459 allocate_bp_location.
4460 (allocate_bp_location): Adjust. Call the owner breakpoint's
4461 allocate_location method, if there is one.
4462 (free_bp_location): Call the locations's dtor method, if there is
4463 one.
4464 (init_raw_breakpoint_without_location): New breakpoint_ops
4465 parameter. Use it.
4466 (set_raw_breakpoint_without_location): Adjust.
4467 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4468 (set_raw_breakpoint): Adjust.
4469 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4470 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4471 re_set and check_status methods.
4472 (init_catchpoint): Don't memset, initialize thread, addr_string
4473 and enable_state. Pass the ops down to init_raw_breakpoint.
4474 (install_catchpoint): Rename to ...
4475 (install_breakpoint): ... this, and make extern.
4476 (create_fork_vfork_event_catchpoint): Adjust.
4477 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4478 re_set and check_status methods.
4479 (create_syscall_event_catchpoint): Adjust.
4480 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4481 (masked_watchpoint_breakpoint_ops): Install NULL
4482 allocate_location, re_set and check_status methods.
4483 (catch_exec_command_1): Adjust.
4484 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4485 re_set and check_status methods.
4486 (create_ada_exception_breakpoint): Rename to ...
4487 (init_ada_exception_breakpoint): ... this. Add a struct
4488 breakpoint parameter, and delete the exp_string, cond_string and
4489 cond parameters. Use init_raw_breakpoint, and don't install or
4490 mention the breakpoint yet. Don't clear breakpoint fields that
4491 init_raw_breakpoint already clears.
4492 (re_set_breakpoint): Delete, split into ...
4493 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4494 functions.
4495 (breakpoint_re_set_one): Call the breakpoint's
4496 breakpoint_ops->re_set implementation, if there's one. Adjust.
4497 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4498 (struct bp_location_ops): New type.
4499 (struct bp_location): New field `ops'.
4500 (struct breakpoint_ops): New `allocate_location', `re_set' and
4501 `check_status' fields. Make `breakpoint_hit''s description match
4502 reality.
4503 (init_bp_location): Declare.
4504 (breakpoint_re_set_default): Declare.
4505 (create_ada_exception_breakpoint): Rename to ...
4506 (init_ada_exception_breakpoint): ... this. Add a struct
4507 breakpoint parameter, and delete the exp_string, cond_string and
4508 cond parameters.
4509 (install_breakpoint): Declare.
4510 * ada-lang.c: Include exceptions.h.
4511 <Ada exceptions description>: Update.
4512 (struct ada_catchpoint_location): New type.
4513 (ada_catchpoint_location_dtor): New function.
4514 (ada_catchpoint_location_ops): New global.
4515 (ada_catchpoint): New type.
4516 (create_excep_cond_exprs): New function.
4517 (dtor_exception, allocate_location_exception, re_set_exception)
4518 (should_stop_exception, check_status_exception): New functions.
4519 (print_one_exception, print_mention_exception)
4520 (print_recreate_exception): Adjust.
4521 (dtor_catch_exception, allocate_location_catch_exception)
4522 (re_set_catch_exception, check_status_catch_exception): New
4523 functions.
4524 (catch_exception_breakpoint_ops): Install them.
4525 (dtor_catch_exception_unhandled)
4526 (allocate_location_catch_exception_unhandled)
4527 (re_set_catch_exception_unhandled)
4528 (check_status_catch_exception_unhandled): New functions.
4529 (catch_exception_unhandled_breakpoint_ops): Install them.
4530 (dtor_catch_assert, allocate_location_catch_assert)
4531 (re_set_catch_assert, check_status_catch_assert): New functions.
4532 (catch_assert_breakpoint_ops): Install them.
4533 (ada_exception_catchpoint_p): Delete.
4534 (catch_ada_exception_command_split)
4535 (ada_exception_catchpoint_cond_string): Rename exp_string
4536 parameter to excep_string. Adjust.
4537 (ada_parse_catchpoint_condition): Delete.
4538 (ada_exception_sal): Rename the exp_string parameter to
4539 excep_string. Delete the cond_string and cond parameters.
4540 Adjust.
4541 (ada_decode_exception_location): Rename the exp_string parameter
4542 to excep_string. Delete the cond_string and cond parameters.
4543 Adjust.
4544 (create_ada_exception_catchpoint): New function.
4545 (catch_ada_exception_command, ada_decode_assert_location)
4546 (catch_assert_command): Adjust.
4547 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4548
9ac4176b
PA
45492011-06-22 Pedro Alves <pedro@codesourcery.com>
4550
4551 * ada-lang.c: Include arch-utils.h.
4552 (ada_decode_exception_location): Make static.
4553 (catch_ada_exception_command): Moved here from breakpoint.c.
4554 (ada_decode_assert_location): Make static.
4555 (catch_assert_command): Moved here from breakpoint.c.
4556 (_initialize_ada_lang): Install the exception and assert
4557 catchpoint commands here.
4558 * ada-lang.h (ada_decode_exception_location)
4559 (ada_decode_assert_location): Delete declarations.
4560 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4561 breakpoint.h.
4562 (create_ada_exception_breakpoint): Make extern.
4563 (catch_ada_exception_command, catch_assert_command): Moved to
4564 ada-lang.c.
4565 (add_catch_command): Make extern.
4566 (_initilize_breakpoint): Don't install the exception and assert
4567 catchpoint commands here.
4568 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4569 breakpoint.c
4570 (add_catch_command, create_ada_exception_breakpoint): Declare.
4571
c56053d2
PA
45722011-06-22 Pedro Alves <pedro@codesourcery.com>
4573
4574 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4575 the breakpoint to the breakpoint chain here.
4576 (set_raw_breakpoint_without_location): Add the breakpoint to the
4577 breakpoint chain here.
4578 (init_raw_breakpoint): Adjust comments.
4579 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4580 here.
4581 (init_catchpoint): Don't set the catchpoint's breakpoint number
4582 here.
4583 (install_catchpoint): New function.
4584 (create_fork_vfork_event_catchpoint)
4585 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4586 use install_catchpoint.
4587
d2f3fc74
PA
45882011-06-22 Pedro Alves <pedro@codesourcery.com>
4589
4590 * breakpoint.c (create_catchpoint_without_mention)
4591 (create_catchpoint): Delete.
4592
b4d90040
PA
45932011-06-22 Pedro Alves <pedro@codesourcery.com>
4594
4595 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4596 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4597 reference to exec_pathname.
4598 (struct exec_catchpoint): New type.
4599 (dtor_catch_exec): New function.
4600 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4601 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4602 (catch_exec_command_1): Adjust to use init_catchpoint.
4603 (delete_breakpoint): Remove reference to exec_pathname.
4604
be5c67c1
PA
46052011-06-22 Pedro Alves <pedro@codesourcery.com>
4606
4607 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4608 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4609 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4610 reference to syscalls_to_be_caught.
4611 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4612 NULL `dtor'.
4613 (struct syscall_catchpoint): New type.
4614 (dtor_catch_syscall): New function.
4615 (insert_catch_syscall, remove_catch_syscall)
4616 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4617 (print_recreate_catch_syscall): Adjust.
4618 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4619 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4620 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4621 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4622 (masked_watchpoint_breakpoint_ops)
4623 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4624 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4625 there is one. Remove references to syscalls_to_be_caught.
4626 (catching_syscall_number): Adjust.
4627 * ada-lang.c (catch_exception_breakpoint_ops)
4628 (catch_exception_unhandled_breakpoint_ops)
4629 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4630
e29a4733
PA
46312011-06-22 Pedro Alves <pedro@codesourcery.com>
4632
4633 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4634 field.
4635 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4636 reference to forked_inferior_pid.
4637 (struct fork_catchpoint): New type.
4638 (breakpoint_hit_catch_fork, print_it_catch_fork)
4639 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4640 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4641 (create_fork_vfork_event_catchpoint): Adjust to use
4642 init_catchpoint.
4643
346774a9
PA
46442011-06-22 Pedro Alves <pedro@codesourcery.com>
4645
4646 * breakpoint.c (add_to_breakpoint_chain)
4647 (init_raw_breakpoint_without_location): New functions, factored
4648 out from ...
4649 (set_raw_breakpoint_without_location): ... this one.
4650 (init_raw_breakpoint): New function, factored out from
4651 set_raw_breakpoint and adjusted to use
4652 init_raw_breakpoint_without_location.
4653 (set_raw_breakpoint): Adjust.
4654 (init_catchpoint): New function, factored out from
4655 create_catchpoint_without_mention and adjusted to use
4656 init_raw_breakpoint.
4657 (create_catchpoint_without_mention): Adjust.
4658
c38c4bc5
TT
46592011-06-22 Tom Tromey <tromey@redhat.com>
4660
4661 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4662 argument of 0 specially.
4663
b138ce37
YQ
46642011-06-22 Yao Qi <yao@codesourcery.com>
4665
4666 * infrun.c (handle_inferior_event): Remove write-only local variable
4667 `sw_single_step_trap_p'.
4668
03de6823
TT
46692011-06-20 Tom Tromey <tromey@redhat.com>
4670
4671 * symtab.c (lookup_language_this): End loop if block is NULL.
4672
66a17cb6
TT
46732011-06-17 Tom Tromey <tromey@redhat.com>
4674
4675 * valops.c (value_of_this): Use lookup_language_this.
4676 * symtab.h (lookup_language_this): Declare.
4677 * symtab.c (lookup_language_this): New function.
4678 (lookup_symbol_aux): Use lookup_language_this.
4679 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4680
7518bff5
TT
46812011-06-17 Tom Tromey <tromey@redhat.com>
4682
4683 * value.h (value_of_this): Update.
4684 (value_of_local): Remove.
4685 * valops.c (value_of_this): Rename from value_of_local. Change
4686 parameters.
4687 * p-exp.y (exp): Update.
4688 (variable): Likewise.
4689 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4690
aee28ec6
TT
46912011-06-17 Tom Tromey <tromey@redhat.com>
4692
4693 * valops.c (value_of_local): Complain if NAME is NULL.
4694 * std-operator.def (OP_OBJC_SELF): Remove.
4695 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4696 * objc-exp.y (name_not_typename): Use OP_THIS.
4697 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4698 name for "this".
4699 <OP_OBJC_SELF>: Remove.
4700 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4701
eed8f803
TG
47022011-06-16 Tristan Gingold <gingold@adacore.com>
4703
4704 * python/py-events.h (gdb_py_events): Make it extern.
4705 * python/py-evtregistry.c (gdb_py_events): Declare.
4706
864ac8a7
HZ
47072011-06-16 Hui Zhu <teawater@gmail.com>
4708
4709 * remote.c (remote_trace_set_readonly_regions): Add check for
4710 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4711 output warning.
4712
ef7e8358
UW
47132011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4714
4715 * arm-linux-tdep.c: Include "auxv.h".
4716 (AT_HWCAP): Define.
4717 (ARM_LINUX_SIZEOF_VFP): Define.
4718 (arm_linux_supply_vfp): New function.
4719 (arm_linux_collect_vfp): Likewise.
4720 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4721 (arm_linux_fpa_regset_sections): New variable.
4722 (arm_linux_vfp_regset_sections): Likewise.
4723 (arm_linux_core_read_description): New function.
4724 (arm_linux_init_abi): Install arm_linux_core_read_description and
4725 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4726 appropriate for the architecture.
4727 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4728 (tdesc_arm_with_m): Declare.
4729 (tdesc_arm_with_iwmmxt): Likewise.
4730 (tdesc_arm_with_vfpv2): Likewise.
4731 (tdesc_arm_with_vfpv3): Likewise.
4732 (tdesc_arm_with_neon): Likewise.
4733 * arm-linux-nat.c: Move features/*.c includes ...
4734 * arm-tdep.c: ... here.
4735 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4736 target description data structures ...
4737 * arm-tdep.c (_initialize_arm_tdep): ... here.
4738 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4739 HWCAP_VFPv3D16): Move definitions ...
4740 * arm-linux-tdep.h: ... here.
4741
c2fa21f1
HZ
47422011-06-15 Hui Zhu <teawater@gmail.com>
4743
4744 * remote.c (remote_trace_set_readonly_regions): Add a check for
4745 target_buf_size.
4746
dd707e8e
TT
47472011-06-14 Tom Tromey <tromey@redhat.com>
4748
4749 * coffread.c (coffread_objfile): Rename from current_objfile.
4750 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4751 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4752
86cc0029
TT
47532011-06-14 Tom Tromey <tromey@redhat.com>
4754
4755 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4756 (class_symtab): Remove.
4757 (jv_dynamics_progspace_key): New global.
4758 (jv_per_objfile_free): Reset program space data. Update assert.
4759 Don't clear globals.
4760 (get_dynamics_objfile): Use and set program space data.
4761 (get_java_class_symtab): Use get_dynamics_objfile.
4762 (add_class_symbol): Likewise.
4763 (java_link_class_type): Likewise.
4764 (java_object_type, jv_clear_object_type, set_java_object_type):
4765 Remove.
4766 (get_java_object_type): Update. Don't cache result.
4767 (is_object_type): Don't call set_java_object_type.
4768 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4769 initialize jv_dynamics_progspace_key.
4770
91a81f69
TT
47712011-06-14 Tom Tromey <tromey@redhat.com>
4772
4773 * symtab.h (current_objfile): Don't declare.
4774 * objfiles.h (current_objfile): Don't declare.
4775 * objfiles.c (current_objfile): Remove.
4776 * mdebugread.c (current_objfile): New file-scope global.
4777 * dbxread.c (current_objfile): New file-scope global.
4778 * coffread.c (current_objfile): New file-scope global.
4779
dc7eb48e
PA
47802011-06-13 Pedro Alves <pedro@codesourcery.com>
4781
4782 * top.h (line): Rename to ...
4783 (saved_command_line): ... this.
4784 (linesize): Rename to ...
4785 (saved_command_line_size): ... this.
4786 * top.c (line): Rename to ...
4787 (saved_command_line): ... this.
4788 (linesize): Rename to ...
4789 (saved_command_line_size): ... this.
4790 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4791 * event-top.c (command_line_handler): Adjust.
4792 * main.c (captured_main): Adjust.
4793
0d6c2135
MK
47942011-06-12 Mark Kettenis <kettenis@gnu.org>
4795
4796 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4797 get_frame_func instead of get_frame_pc to determine the code
4798 address used to construct the frame ID.
4799 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4800 (i386_epilogue_frame_this_id): Likewise.
4801 (i386_epilogue_frame_prev_register): New function.
4802 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4803 (i386_stack_tramp_frame_sniffer): Fix coding style.
4804 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4805 (i386_gdbarch_init): Fix comments.
4806
8bbdd3f4
MK
48072011-06-12 Mark Kettenis <kettenis@gnu.org>
4808
4809 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4810 instruction when walking back through the instruction stream.
4811
533a737e
JK
48122011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4813
4814 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4815 fullname parameters order.
4816
44b13c5a
JK
48172011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4818
4819 Code cleanup.
4820 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4821 for fun.
4822 * psymtab.c (map_symbol_filenames_psymtab)
4823 (map_partial_symbol_filenames): Likewise.
4824 * psymtab.h: Include symfile.h.
4825 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4826 * symfile.h (symbol_filename_ftype): New.
4827 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4828 map_symbol_filenames, clarify more the naming in comment.
4829
0b5574da
DE
48302011-06-07 Doug Evans <dje@google.com>
4831
4832 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4833 Look for ../../gdb, for fullname.exp.
0b5574da 4834
5be4dfca
JK
48352011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4836 Pedro Alves <pedro@codesourcery.com>
4837
4838 * cli/cli-cmds.c (shell_escape): Use waitpid.
4839 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4840
316a8b21
TG
48412011-06-07 Tristan Gingold <gingold@adacore.com>
4842
4843 * xcoffread.c (dwarf2_xcoff_names): New variable.
4844 (aix_process_linenos): Add a guard.
4845 (xcoff_symfile_finish): Free dwarf2.
4846 (xcoff_initial_scan): Add dwarf2 support.
4847
3dd5b83d
PA
48482011-06-06 Pedro Alves <pedro@codesourcery.com>
4849
4850 * infcall.c (run_inferior_call): Don't mask async. Instead force
4851 a synchronous wait, if the target can async.
4852
4853 * target.h (struct target_ops): Delete to_async_mask.
4854 (target_async_mask): Delete.
4855 * target.c (update_current_target): Delete references to to_async_mask.
4856 * linux-nat.c (linux_nat_async_mask_value): Delete.
4857 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4858 to linux_nat_async_mask_value.
4859 (linux_nat_async_mask): Delete.
4860 (linux_nat_async, linux_nat_close): Remove references to
4861 linux_nat_async_mask_value.
4862 * record.c (record_async_mask_value): Delete.
4863 (record_async): Remove references to record_async_mask_value.
4864 (record_async_mask): Delete.
4865 (record_can_async_p, record_is_async_p): Remove references to
4866 record_async_mask_value.
4867 (init_record_ops, init_record_core_ops): Remove references to
4868 record_async_mask.
4869 * remote.c (remote_async_mask_value): Delete.
4870 (init_remote_ops): Remove reference to remote_async_mask.
4871 (remote_can_async_p, remote_is_async_p): Remove references to
4872 remote_async_mask_value.
4873 (remote_async): Remove references to remote_async_mask_value.
4874 (remote_async_mask): Delete.
4875
4876 * infrun.c (fetch_inferior_event): Don't claim registers changed
4877 if the current thread is already not executing.
4878
64b9b334
JB
48792011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4880
4881 From Stephen Kitt <steve@sk2.org>
4882 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4883 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4884
325663dc
JB
48852011-06-03 Joel Brobecker <brobecker@adacore.com>
4886
4887 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4888 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4889
8cf64490
TT
48902011-06-03 Tom Tromey <tromey@redhat.com>
4891
4892 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4893 code fields.
4894 * python/py-exitedevent.c (create_exited_event_object): Change
4895 type of 'exit_code'. Optionally add exit_code attribute.
4896 (emit_exited_event): Change type of 'exit_code'.
4897 * python/py-event.h (emit_exited_event): Update.
4898 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4899 * infrun.c (handle_inferior_event): Set exit code fields on
4900 inferior.
4901 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4902 fields.
4903 * inferior.c (exit_inferior_1): Initialize new fields.
4904
8ddd9a20
TT
49052011-06-03 Tom Tromey <tromey@redhat.com>
4906
4907 * dwarf2expr.c (get_signed_type): New function.
4908 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4909
8dfd1e6d
KS
49102011-06-02 Keith Seitz <keiths@redhat.com>
4911
4912 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4913
65fdb766
PA
49142011-06-02 Pedro Alves <pedro@codesourcery.com>
4915
4916 * top.h (simplified_command_loop): Delete declaration.
4917
f4b8c29b
MF
49182011-06-01 Mike Frysinger <vapier@gentoo.org>
4919
4920 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4921 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4922
1706c199
YQ
49232011-06-01 Yao Qi <yao@codesourcery.com>
4924
4925 * objfiles.h (obj_section_addr): Update reference to objfile from
4926 `abfd' to `obfd'.
4927 (obj_section_endaddr): Likewise.
4928
d19cd713 49292011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4930
4931 * MAINTAINERS: Update my email address and affiliation. Also
4932 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4933
e8eb7bc5
KS
49342010-05-31 Keith Seitz <keiths@redhat.com>
4935
4936 PR c++/12750
4937 * linespec.c (get_search_block): New function.
4938 (find_methods): Add FILE_SYMTATB parameter and use it and
4939 get_search_block to pass an appropriate block to
4940 lookup_symbol_in_namespace.
4941 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4942 Check if *ARGPTR starts with a filename first.
4943 If it does, call locate_first_half again to locate the next
4944 "first half" of the linespec.
4945 Pass FILE_SYMTATB to decode_objc and decode_compound.
4946 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4947 (locate_first_half): Stop on the first colon seen.
4948 (decode_compound): Add FILE_SYMTAB parameter.
4949 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4950 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4951 get_search_block with lookup_symbol.
4952 (find_method): Add FILE_SYMTAB parameter and pass it to
4953 find_methods.
4954 (decode_objc): Use get_search_block.
4955
2b1dbab0
KS
49562010-05-31 Keith Seitz <keiths@redhat.com>
4957
4958 PR symtab/12704
4959 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4960 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4961 and CP_ANONYMOUS_NAMESPACE_LEN.
4962 (cp_is_anonymous): Likewise.
4963 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4964 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4965 * dwarf2read.c (namespace_name): Likewise.
4966 (fixup_partial_die): Likewise.
4967 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4968 seen in the input, keep it.
4969
6d549500
PA
49702011-05-30 Pedro Alves <pedro@codesourcery.com>
4971
4972 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4973 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4974 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4975 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4976 * remote.c (_initialize_remote): Register
4977 async_remote_interrupt_twice directly as
4978 sigint_remote_twice_token event.
4979
395bff70
PA
49802011-05-30 Pedro Alves <pedro@codesourcery.com>
4981
4982 * target.h (enum inferior_event_type): Delete INF_ERROR.
4983 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4984
97224164
PA
49852011-05-30 Pedro Alves <pedro@codesourcery.com>
4986
4987 * interps.c (interp_set): Don't cancel continuations.
4988
07e78767
JK
49892011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4990
4991 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4992
fa4cd53f
PA
49932011-05-30 Pedro Alves <pedro@codesourcery.com>
4994
4995 * continuations.h (continuation_ftype): Add `err' parameter.
4996 Document parameters.
4997 (do_all_continuations, do_all_continuations_thread)
4998 (do_all_intermediate_continuations)
4999 (do_all_intermediate_continuations_thread)
5000 (do_all_inferior_continuations): Add `err' parameter.
5001 * continuations.c (do_my_continuations_1, do_my_continuations)
5002 (do_all_inferior_continuations, do_all_continuations_ptid)
5003 (do_all_continuations_thread_callback)
5004 (do_all_continuations_thread, do_all_continuations)
5005 (do_all_intermediate_continuations_thread_callback)
5006 (do_all_intermediate_continuations_thread)
5007 (do_all_intermediate_continuations): Add `err' parameter, and pass
5008 it down all the way to the continuations proper.
5009 * inf-loop.c (inferior_event_handler): If fetching an inferior
5010 event throws an error, don't pop the target, and still call the
5011 continuations, but with `err' set. Adjust all other continuation
5012 calls.
5013 * breakpoint.c (until_break_command_continuation): Add `err'
5014 parameter.
5015 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5016 issue another step if `err' is set.
5017 (struct until_next_continuation_args): New.
5018 (until_next_continuation): Add `err' parameter. Adjust.
5019 (until_next_command): Adjust.
5020 (struct finish_command_continuation_args): Add `thread' field.
5021 (finish_command_continuation): Add `err' parameter. Handle it.
5022 (finish_forward): Adjust.
5023 (attach_command_continuation): Add `err' parameter. Handle it.
5024 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5025 cancel the continuations.
5026 * interps.c (interp_set): Adjust to cancel the continuations.
5027 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5028 continuations rather than discarding.
5029 (free_thread): Don't clear thread inferior resources here.
5030 (delete_thread_1): Do it here instead. And do it before removing
5031 the thread from the threads list. Tag the thread as exited before
5032 clearing thread inferior resources.
5033
c2949be0
JB
50342011-05-30 Joel Brobecker <brobecker@adacore.com>
5035
5036 * infcall.c (call_function_by_hand): Rephrase error message.
5037
619cebe8
PA
50382011-05-27 Pedro Alves <pedro@codesourcery.com>
5039
5040 * defs.h (struct thread_info, struct inferior): Delete forward
5041 declarations.
5042 * breakpoint.h (struct thread_info): New forward declaration.
5043 * observer.sh (struct inferior): New forward declaration.
5044 * python/python-internal.h (struct inferior): New forward
5045 declaration.
5046
be34f849
PA
50472011-05-27 Pedro Alves <pedro@codesourcery.com>
5048
5049 * defs.h (struct continuation, continuation_ftype)
5050 (continuation_free_arg_ftype, add_continuation)
5051 (do_all_continuations, do_all_continuations_thread)
5052 (discard_all_continuations, discard_all_continuations_thread)
5053 (add_intermediate_continuation, do_all_intermediate_continuations)
5054 (do_all_intermediate_continuations_thread)
5055 (discard_all_intermediate_continuations)
5056 (discard_all_intermediate_continuations_thread)
5057 (add_inferior_continuation, do_all_inferior_continuations)
5058 (discard_all_inferior_continuations): Move to ...
5059 * continuations.h: ... this new file.
5060 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5061 infcmd.c, inferior.c, infrun.c, interps.c: Include
5062 continuations.h.
5063
432b4d03
JK
50642011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5065 Doug Evans <dje@google.com>
5066
5067 Fix PR 10970, PR 12702.
5068 * linux-nat.c (linux_lwp_is_zombie): New function.
5069 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5070 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5071
b0f260d6
PA
50722011-05-27 Pedro Alves <pedro@codesourcery.com>
5073
5074 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5075 typedefs.
5076 (add_continuation, add_intermediate_continuation)
5077 (add_inferior_continuation): Use them.
5078 * continuations.c (struct continuation): Use them.
5079 (make_continuation_ftype): Delete.
5080 (make_continuation, add_inferior_continuation, add_continuation)
5081 (add_intermediate_continuation): Use continuation_ftype and
5082 continuation_free_arg_ftype. Rename parameters to shorter names.
5083
af1e9a32
PA
50842011-05-27 Pedro Alves <pedro@codesourcery.com>
5085
5086 * continuations.c (make_continuation): Make it return void.
5087 (do_my_continuations): Rename to ...
5088 (do_my_continuations_1): ... this. Remove old_chain parameter and
5089 adjust.
5090 (do_my_continuations): New.
5091 (discard_my_continuations): Rename to ...
5092 (discard_my_continuations_1): ... this. Remove old_chain
5093 parameter and adjust.
5094 (discard_my_continuations): New.
5095 (add_inferior_continuation): Simplify.
5096 (do_all_inferior_continuations): Reimplement on top
5097 do_my_continuations.
5098 (discard_all_inferior_continuations): Simplify.
5099 (add_continuation): Simplify.
5100 (do_all_continuations_ptid): Simplify.
5101 (discard_all_continuations_thread_callback): Simplify.
5102 (add_intermediate_continuation): Simplify.
5103 (discard_all_intermediate_continuations_thread_callback):
5104 Simplify.
5105
50c0c017
PA
51062011-05-27 Pedro Alves <pedro@codesourcery.com>
5107
5108 * utils.c (struct continuation, add_continuation)
5109 (add_inferior_continuation)
5110 (do_all_inferior_continuations, discard_all_inferior_continuations)
5111 (restore_thread_cleanup, do_all_continuations_ptid)
5112 (do_all_continuations_thread_callback)
5113 (do_all_continuations_thread, do_all_continuations)
5114 (discard_all_continuations_thread_callback)
5115 (discard_all_continuations_thread, discard_all_continuations)
5116 (add_intermediate_continuation)
5117 (do_all_intermediate_continuations_thread_callback)
5118 (do_all_intermediate_continuations_thread)
5119 (do_all_intermediate_continuations)
5120 (discard_all_intermediate_continuations_thread_callback)
5121 (discard_all_intermediate_continuations_thread)
5122 (discard_all_intermediate_continuations): Move to ...
5123 * continuations.c: ... this new file, and adjust to no longer
5124 implement continuations on top of cleanups.
5125 * Makefile.in (SFILES): Add continuations.c.
5126 (COMMON_OBS): Add continuations.o.
5127
d8b34453
PA
51282011-05-26 Pedro Alves <pedro@codesourcery.com>
5129
5130 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5131 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5132 Internal error on invalid values.
5133 * reverse.c: Don't handle EXEC_ERROR.
5134 * mi/mi-main.c: Don't handle EXEC_ERROR.
5135
32231432
PA
51362011-05-26 Pedro Alves <pedro@codesourcery.com>
5137
5138 * record.c: Include event-loop.h, inf-loop.h.
5139 (record_beneath_to_async): New global.
5140 (tmp_to_async): New global.
5141 (record_async_inferior_event_token): New global.
5142 (record_open_1): Don't error out if async is enabled.
5143 (record_open): Handle to_async. Create an async event source in
5144 the event loop.
5145 (record_close): Delete the async event source.
5146 (record_resumed): New global.
5147 (record_execution_dir): New global.
5148 (record_resume, record_core_resume): Set them. Register the
5149 target on the event loop.
5150 (record_wait): Rename to ...
5151 (record_wait_1): ... this. Add more debug output. Handle
5152 TARGET_WNOHANG, and the target beneath returning
5153 TARGET_WAITKIND_IGNORE.
5154 (record_wait): Reimplement on top of record_wait_1.
5155 (record_async_mask_value): New global.
5156 (record_async, record_async_mask, record_can_async_p)
5157 (record_is_async_p, record_execution_direction): New functions.
5158 (init_record_ops, init_record_core_ops): Install new methods.
5159 * infrun.c (fetch_inferior_event): Temporarily switch the global
5160 execution direction to the direction the target was going.
5161 (execution_direction): Change type to int.
5162 * target.c (default_execution_direction): New function.
5163 (update_current_target): Inherit and de_fault
5164 to_execution_direction.
5165 * target.h (struct target_ops) <to_execution_direction>: New
5166 field.
5167 (target_execution_direction): New macro.
5168 * inferior.h (execution_direction): Change type to int.
5169
949dc678
PA
51702011-05-26 Pedro Alves <pedro@codesourcery.com>
5171
5172 * infcall.c (call_function_by_hand): Don't allow calling functions
5173 in reverse execution mode.
5174
c13bd2b5
PA
51752011-05-26 Pedro Alves <pedro@codesourcery.com>
5176
5177 * infcmd.c (finish_command): Allow async finish in reverse.
5178
6938fd34
YQ
51792011-05-26 Yao Qi <yao@codesourcery.com>
5180
5181 * gdb_thread_db.h: Delete. Move to ...
5182 * common/gdb_thread_db.h: ... here.
5183
9da8c2a0
PA
51842011-05-26 Pedro Alves <pedro@codesourcery.com>
5185
5186 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5187 function's entry point instead of a manually managed momentary
5188 breakpoint, and only ever issue one proceed call.
5189 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5190 doing a reverse-finish, switch to stepi mode, to do another step.
5191 (insert_step_resume_breakpoint_at_sal): Make public.
5192 (normal_stop): No need to save function value return registers if
5193 going reverse.
5194 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5195
2c03e5be
PA
51962011-05-26 Pedro Alves <pedro@codesourcery.com>
5197
5198 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5199 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5200 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5201 at the end.
5202 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5203 step-resume breakpoints.
5204 (print_it_typical): Handle bp_hp_step_resume.
5205 (bpstat_what): Ditto.
5206 (bptype_string): Ditto.
5207 (print_one_breakpoint_location): Ditto.
5208 (allocate_bp_location): Ditto.
5209 (mention): Ditto.
5210 (breakpoint_re_set_one): Ditto.
5211 * infrun.c (handle_inferior_event): Adjust. Split
5212 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5213 BPSTAT_WHAT_HP_STEP_RESUME.
5214 (insert_step_resume_breakpoint_at_sal): Rename to ...
5215 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5216 parameter. Handle it.
5217 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5218 insert_step_resume_breakpoint_at_sal_1.
5219 (insert_step_resume_breakpoint_at_frame): Rename to ...
5220 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5221 set a high-priority step-resume breakpoint.
5222 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5223 (insert_step_resume_breakpoint_at_caller): Ditto.
5224
51be5b68
PA
52252011-05-26 Pedro Alves <pedro@codesourcery.com>
5226
5227 * breakpoint.c (iterate_over_related_breakpoints): New.
5228 (do_map_delete_breakpoint): New.
5229 (delete_command): Pass do_map_delete_breakpoint to
5230 map_breakpoint_numbers.
5231 (do_disable_breakpoint): New.
5232 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5233 breakpoints.
5234 (do_enable_breakpoint): Rename to ...
5235 (enable_breakpoint_disp): ... this.
5236 (enable_breakpoint): Adjust.
5237 (do_enable_breakpoint): New.
5238 (enable_once_breakpoint): Delete.
5239 (do_map_enable_breakpoint): New.
5240 (do_map_enable_once_breakpoint): New.
5241 (enable_once_command, enable_delete_command)
5242 (delete_trace_command): Iterate over the breakpoint's related
5243 breakpoints.
5244
4a1be8d2
PA
52452011-05-26 Pedro Alves <pedro@codesourcery.com>
5246
5247 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5248 for ALPHA_ZERO_REGNUM.
5249 (alpha_supply_int_regs): Explicitly supply zero as the value for
5250 ALPHA_ZERO_REGNUM in the register cache.
5251 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5252
59d70315
YQ
52532011-05-26 Yao Qi <yao@codesourcery.com>
5254
5255 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5256
251d32d9
TG
52572011-05-26 Tristan Gingold <gingold@adacore.com>
5258
5259 * symfile.h (struct dwarf2_section_names): New type.
5260 (struct dwarf2_debug_sections): New type.
5261 (dwarf2_has_info): Add parameter.
5262 * dwarf2read.c (dwarf2_elf_names): New variable.
5263 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5264 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5265 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5266 (dwarf2_has_info): Add names parameter. Pass names
5267 to dwarf2_locate_sections.
5268 (section_is_p): Rewrite using the names parameter.
5269 (dwarf2_locate_sections): Use section names from the names parameter.
5270 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5271 * elfread.c (read_psyms): Ditto.
5272 * machoread.c (macho_symfile_read): Ditto.
5273
652c71b4
AS
52742011-05-25 Andreas Schwab <schwab@redhat.com>
5275
5276 PR gdb/8677
5277 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5278
f17170e5
KS
52792011-05-24 Keith Seitz <keiths@redhat.com>
5280
5281 PR breakpoint/12803
5282 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5283 (decode_compound): Unconditionally call keep_name_info.
5284
cdac0397
PA
52852011-05-24 Pedro Alves <pedro@codesourcery.com>
5286
5287 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5288 scope, clear its command list.
5289 (map_breakpoint_numbers): Don't walk the related breakpoints list
5290 of each breakpoint.
5291
91d4fe3f
TT
52922011-05-24 Tom Tromey <tromey@redhat.com>
5293
5294 * MAINTAINERS: Move Jim Blandy to past maintainers.
5295
3017a003
TG
52962011-05-24 Tristan Gingold <gingold@adacore.com>
5297
5298 * symfile.h (enum dwarf2_section_enum): New type.
5299 (dwarf2_get_section_info): New prototype.
5300 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5301 section_name by sect. Use a switch to select the info.
5302 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5303 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5304
c91c8c16
PA
53052011-05-24 Pedro Alves <pedro@codesourcery.com>
5306
5307 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5308 shared library event breakpoint if there's no execution.
5309
77bc418a
TJB
53102011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5311
5312 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5313 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5314
c50491a7
TT
53152011-05-23 Tom Tromey <tromey@redhat.com>
5316
5317 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5318 NULL.
5319
6d64e6d4
DE
53202011-05-23 Doug Evans <dje@google.com>
5321
5322 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5323 entry for RuntimeError to doc string.
5324
2067c8d4
JG
53252011-05-23 Jerome Guitton <guitton@adacore.com>
5326
5327 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5328 sequence for probing loops.
5329
b136cd05
PA
53302011-05-23 Pedro Alves <pedro@codesourcery.com>
5331
5332 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5333 comment.
5334
22e74ef9
MK
53352011-05-21 Mark Kettenis <kettenis@gnu.org>
5336
5337 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5338 zero as the value for %g0 in the register cache.
5339 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5340 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5341
842951eb
PA
53422011-05-20 Pedro Alves <pedro@codesourcery.com>
5343
5344 * infrun.c (proceed): Set previous_inferior_ptid here.
5345 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5346 inferior_ptid, not null_ptid.
5347 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5348 (fetch_inferior_event): Nor here.
5349
46cf51e6
PA
53502011-05-20 Pedro Alves <pedro@codesourcery.com>
5351
5352 * inf-loop.c (inferior_event_handler): Only output a message if
5353 verbose.
5354
29ef4c46
LM
53552011-05-20 Luis Machado <lgustavo@codesourcery.com>
5356
5357 * MAINTAINERS: Update my e-mail address.
5358
f148b27e
PA
53592011-05-20 Pedro Alves <pedro@codesourcery.com>
5360
5361 * infrun.c (proceed): Switch the inferior event loop to
5362 INF_EXEC_COMPLETE if the target refused to resume from a
5363 vfork/fork.
5364
09cee04b
PA
53652011-05-20 Pedro Alves <pedro@codesourcery.com>
5366
5367 * infcmd.c: Include "inf-loop.h".
5368 (step_once): When stepping into an inline subroutine, pretend the
5369 target has run. If the target can async, switch the inferior
5370 event loop to INF_EXEC_COMPLETE.
5371 * inferior.h (user_visible_resume_ptid): Declare.
5372 * infrun.c (user_visible_resume_ptid): New function, factored out
5373 from `resume'.
5374 (resume): Use it.
5375 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5376 that the current thread is running. Merge async and sync
5377 branches.
5378
751b8ce1
PA
53792011-05-20 Pedro Alves <pedro@codesourcery.com>
5380
5381 * infcmd.c (step_1): Simplify synchronous case.
5382
e93a69ed
PA
53832011-05-20 Pedro Alves <pedro@codesourcery.com>
5384
5385 * tracepoint.c: Include exceptions.h.
5386 (TFILE_PID): Move higher in file.
5387 (tfile_open): Delay pushing the tfile target until we're assured
5388 the tfile header is present in the file. Wrap reading the initial
5389 newline-terminated lines in TRY_CATCH. Pop the target if the
5390 initial setup failed. Add the tfile's thread immediately
5391 aftwards, before any non-essential setup. Don't skip
5392 post_create_inferior if there are no traceframes present in the
5393 file.
5394 (tfile_close): Remove redundant check for null before xfree call.
5395 (tfile_thread_alive): New function.
5396 (init_tfile_ops): Register it as to_thread_alive callback.
5397
6823e2b1
PA
53982011-05-20 Pedro Alves <pedro@codesourcery.com>
5399
5400 * tracepoint.c (tfile_open): Delete #if 0'd code.
5401
b3c8eb43
JK
54022011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5403
5404 Fix -readnow for -gdwarf-4 unused type units.
5405 * dwarf2read.c (struct signatured_type): Remove the field offset.
5406 (create_signatured_type_table_from_index): Remove its initialization.
5407 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5408 instead. Add a complaint call.
5409 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5410 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5411 (lookup_signatured_type_at_offset, read_signatured_type)
5412 (write_one_signatured_type): Update the field for per_cu.
5413
310afc76
TT
54142011-05-19 Tom Tromey <tromey@redhat.com>
5415
5416 * python/py-inferior.c (python_inferior_exit): Use
5417 target_gdbarch.
5418 (python_on_resume): Likewise.
5419
cf6c5ffb
TT
54202011-05-19 Matt Rice <ratmice@gmail.com>
5421
5422 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5423
fb80a3c5
HZ
54242011-05-19 Hui Zhu <teawater@gmail.com>
5425
5426 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5427
3672b1be
HZ
54282011-05-19 Hui Zhu <teawater@gmail.com>
5429
5430 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5431
ff355380
TT
54322011-05-18 Tom Tromey <tromey@redhat.com>
5433
5434 * dwarf2read.c (dwarf2_add_field): Constify.
5435 * value.c (value_static_field): Constify.
5436 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5437 Now const.
5438 * ax-gdb.c (gen_static_field): Constify
5439
ed731959
JK
54402011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5441
5442 * linux-nat.c (kill_callback): Use SIGKILL first.
5443
967cff16
JB
54442011-05-18 Joel Brobecker <brobecker@adacore.com>
5445
5446 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5447
1d06ead6
TT
54482011-05-18 Tom Tromey <tromey@redhat.com>
5449
5450 * value.c (value_fn_field): Constify.
5451 * symtab.c (gdb_mangle_name): Constify.
5452 * stabsread.c (update_method_name_from_physname): Make 'physname'
5453 argument const.
5454 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5455 const. Use explicit fputc_filtered loop.
5456 (pascal_type_print_base): Constify.
5457 * p-lang.h (pascal_type_print_method_args): Update.
5458 * linespec.c (add_matching_methods): Constify.
5459 (add_constructors): Likewise.
5460 * jv-typeprint.c (java_type_print_base): Constify.
5461 * gdbtypes.h (struct cplus_struct_type)
5462 <fn_fieldlist.fn_field.physname>: Now const.
5463 * dwarf2read.c (compute_delayed_physnames): Constify.
5464 (dwarf2_add_member_fn): Likewise.
5465 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5466
0d9a9a5f
PA
54672011-05-18 Pedro Alves <pedro@codesourcery.com>
5468
5469 * infrun.c (resume): Mention which is the current thread, and its
5470 current PC in debug output.
5471 (prepare_to_proceed): Mention the thread switching in debug
5472 output.
5473
05386e9e
TT
54742011-05-18 Tom Tromey <tromey@redhat.com>
5475
5476 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5477 path check. Use xmalloc and cleanups.
5478 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5479
ee86786c
TT
54802011-05-17 Tom Tromey <tromey@redhat.com>
5481
5482 * cp-valprint.c (cp_print_value_fields): Catch errors from
5483 value_static_field.
5484
9ff3b74f
TT
54852011-05-17 Tom Tromey <tromey@redhat.com>
5486
5487 * dwarf2read.c (dwarf2_get_die_type): Call
5488 get_die_type_at_offset.
5489 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5490 get_base_type function.
5491
cd3da28e
PA
54922011-05-17 Tomas Martinec <fyzmat@gmail.com>
5493
5494 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5495 trap_expected.
5496
fd20d931
DE
54972011-05-16 Doug Evans <dje@google.com>
5498
5499 * python/py-auto-load.c (source_section_scripts): Mention objfile
5500 name in warning.
5501
75fc9810
DE
55022011-05-15 Doug Evans <dje@google.com>
5503
290351b8
DE
5504 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5505 (try_thread_db_load_from_pdir): Call it. If unable to find
5506 libthread_db in directory of libpthread, see if we're looking at
5507 the separate-debug-info copy.
5508
75fc9810
DE
5509 * python/py-autoload.c (print_script): Print "Missing" instead of
5510 "No" for missing scripts.
5511 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5512
9f7bc587
DE
55132011-05-13 Doug Evans <dje@google.com>
5514
5515 * ui-file.c (stdio_file_write_async_safe): Add comment.
5516
093cee7d
HZ
55172011-05-14 Hui Zhu <teawater@gmail.com>
5518
5519 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5520
dbaefcf7
DE
55212011-05-13 Doug Evans <dje@google.com>
5522
98a5dd13
DE
5523 Support $pdir and $sdir in libthread-db-search-path.
5524 * NEWS: Mention $sdir,$pdir.
5525 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5526 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5527 (try_thread_db_load_from_sdir): New function.
5528 (try_thread_db_load_from_dir): New function.
5529 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5530 system directories if search of libthread-db-search-path fails,
5531 that is now done via $sdir.
5532 (has_libpthread): New function.
5533 (thread_db_load): Remove search for libthread_db in directory of
5534 libpthread, that is now done via $pdir.
5535
dbaefcf7
DE
5536 * NEWS: Mention "info auto-load-scripts".
5537 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5538 script_not_found_warning_printed.
5539 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5540 all callers updated. Initialize script_not_found_warning_printed.
5541 (get_auto_load_pspace_data_for_loading): New function.
5542 (maybe_add_script): New function.
5543 (source_section_scripts): Simplify. Only print one warning regardless
5544 of the number of auto-load scripts not found.
5545 (clear_section_scripts): Clear script_not_found_warning_printed.
5546 (auto_load_objfile_script): Record script in hash table.
5547 (count_matching_scripts): New function.
5548 (maybe_print_script): Renamed from maybe_print_section_script, all
5549 callers updated. Rewrite to use ui_out_*.
5550 (info_auto_load_scripts): Renamed from
5551 maintenance_print_section_scripts, all callers updated.
5552 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5553 renamed as "info auto-load-scripts".
5554
9930639c
TT
55552011-05-13 Tom Tromey <tromey@redhat.com>
5556
5557 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5558 (read_sleb128): Likewise.
5559
06826322
TT
55602011-05-13 Tom Tromey <tromey@redhat.com>
5561
5562 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5563 offset display.
5564
01124a23
DE
55652011-05-13 Doug Evans <dje@google.com>
5566
5567 * linux-nat.c (debug_linux_nat_async): Delete.
5568 Replace all references to use debug_linux_nat instead.
5569 (show_debug_linux_nat_async): Delete.
5570 (sigchld_handler): Call ui_file_write_async_safe instead of
5571 fprintf_unfiltered.
5572 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5573 * ui-file.c (struct ui_file): New member to_write_async_safe.
5574 (null_file_write_async_safe): New function.
5575 (ui_file_write_async_safe): New function.
5576 (set_ui_file_write_async_safe): New function.
5577 (ui_file_new): Initialize to_write_async_safe.
5578 (stdio_file_write_async_safe): New function.
5579 (struct stdio_file): New member fd.
5580 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5581 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5582 fileno.
01124a23
DE
5583 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5584 (set_ui_file_write_async_safe): Declare.
5585 (ui_file_write_async_safe): Declare.
5586
72fc29ff
TT
55872011-05-13 Tom Tromey <tromey@redhat.com>
5588
5589 * utils.c (do_value_free): New function.
5590 (make_cleanup_value_free): Likewise.
5591 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5592 freeing correctly.
5593 (dwarf2_loc_desc_needs_frame): Call
5594 make_cleanup_value_free_to_mark.
5595 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5596 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5597 value_free_to_mark.
5598 (new_dwarf_expr_context): Don't call value_mark.
5599 * dwarf2-frame.c (execute_stack_op): Call
5600 make_cleanup_value_free_to_mark.
5601 * defs.h (make_cleanup_value_free): Declare.
5602
028d0ed5
TJB
56032011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5604
5605 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5606 prepare_execute_command.
5607 * top.c (prepare_execute_command): Return cleanup.
5608 (execute_command): Use cleanup from prepare_execute_command.
5609 * top.h (prepare_execute_command): Change prototype to return
5610 cleanup.
5611 * defs.h (struct value): Add opaque declaration.
5612 (make_cleanup_value_free_to_mark): Add prototype.
5613 * utils.c (do_value_free_to_mark): New function.
5614 (make_cleanup_value_free_to_mark): Likewise.
5615
b087e0ed
TT
56162011-05-12 Tom Tromey <tromey@redhat.com>
5617
5618 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5619 cast left-hand-side to unsigned.
5620
8a9b8146
TT
56212011-05-12 Tom Tromey <tromey@redhat.com>
5622
5623 PR gdb/12617:
5624 * value.h (value_from_contents): Declare.
5625 * value.c (value_from_contents): New function.
5626 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5627 (dwarf2_get_die_type): New function.
5628 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5629 (allocate_piece_closure): Acquire reference to values.
5630 (read_pieced_value): Update for value-based expressions.
5631 (write_pieced_value): Likewise.
5632 (free_pieced_value_closure): Call value_free as needed.
5633 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5634 Update for value-based expressions.
5635 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5636 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5637 <get_base_type>: New field.
5638 (struct dwarf_expr_piece) <v.value>: Change type.
5639 <v.regno>: New field.
5640 (struct dwarf_expr_context) <mark>: New field.
5641 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5642 (dwarf_expr_pop, dwarf_expr_push): Remove.
5643 (dwarf_expr_push_address): Declare.
5644 * dwarf2expr.c (dwarf_arch_cookie): New global.
5645 (struct dwarf_gdbarch_types): New.
5646 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5647 functions.
5648 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5649 static.
5650 (dwarf_expr_push_address): New function.
5651 (dwarf_expr_pop): Now static.
5652 (dwarf_expr_fetch): Change return type.
5653 (dwarf_require_integral): New function.
5654 (dwarf_expr_fetch): Simplify.
5655 (add_piece): Update.
5656 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5657 functions.
5658 (execute_stack_op) <sign_ext>: Remove.
5659 Use values for DWARF stack.
5660 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5661 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5662 New cases.
5663 (_initialize_dwarf2expr): New function.
5664 (add_piece): Update.
5665 (new_dwarf_expr_context): Set new field.
5666 (free_dwarf_expr_context): Call value_free_to_mark.
5667 * dwarf2-frame.c (no_base_type): New function.
5668 (execute_stack_op): Set get_base_type field. Update.
5669
e8d28ef4
TT
56702011-05-12 Tom Tromey <tromey@redhat.com>
5671
5672 * dwarf2read.c (read_common_block): Fix formatting.
5673
d248b706
KY
56742011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5675
5676 * breakpoint.c (disable_breakpoint): Disable all locations
5677 associated with a tracepoint on target if a trace experiment is
5678 running.
5679 (disable_command): Disable a specific tracepoint location on target if
5680 a trace experiment is running.
5681 (do_enable_breakpoint): Enable all locations associated with a
5682 tracepoint on target if a trace experiment is running.
5683 (enable_command) Enable a specific tracepoint location on target if a
5684 trace experiment is running.
5685 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5686 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5687 to_disable_tracepoint.
5688 * target.h: Add declaration of struct bp_location.
5689 (struct target_ops): Add new functions
5690 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5691 to_disable_tracepoint to target operations.
5692 (target_supports_enable_disable_tracepoint): New macro.
5693 (target_enable_tracepoint): New macro.
5694 (target_disable_tracepoint): New macro.
5695 * remote.c (struct remote_state): Add new field.
5696 (remote_enable_disable_tracepoint_feature): New.
5697 (remote_protocol_features): Add new entry.
5698 (remote_supports_enable_disable_tracepoint): New.
5699 (remote_enable_tracepoint): New.
5700 (remote_disable_tracepoint): New.
5701 (init_remote_ops): Add remote_enable_tracepoint,
5702 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5703 to remote operations.
5704 * tracepoint.c (start_tracing): Allow tracing to start without any
5705 tracepoints enabled with just a warning if they can be re-enabled
5706 later.
5707 * NEWS: Add news item for the new behaviour of the enable and disable
5708 GDB commands when applied to tracepoints.
5709 Add news items for the new remote packets QTEnable and QTDisable.
5710
cc88a640
JK
57112011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5712
5713 * config.in: Regenerate.
5714 * configure: Regenerate.
5715 * configure.ac <--with-system-readline> (for readline_echoing_p):
5716 Remove the test.
5717 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5718 (tui_old_rl_echoing_p): ... here.
5719 (tui_setup_io): Rename extern declaration readline_echoing_p to
5720 _rl_echoing_p. Adjust assignments for the both renames.
5721
1f84b619
TJB
57222011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5723
5724 * symtab.c (lookup_symtab): Run cleanup before returning.
5725
74ac6d43
TT
57262011-05-11 Tom Tromey <tromey@redhat.com>
5727
5728 * dwarf2read.c (handle_data_member_location): New function.
5729 (dwarf2_add_field): Use it.
5730 (read_common_block): Likewise.
5731
5488dafb
JK
57322011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5733
5734 Make addrs->SECTINDEX always defined.
5735 * symfile.c (relative_addr_info_to_section_offsets): Check for
5736 SECTINDEX -1, not for zero ADDR.
5737 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5738 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5739 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5740 on its validity.
5741
84e578fb
DE
57422011-05-10 Doug Evans <dje@google.com>
5743
2471d008
DE
5744 * linux-thread-db.c: Whitespace cleanup.
5745 (try_thread_db_load_1): Fix comment.
5746
84e578fb
DE
5747 * linux-thread-db.c (set_libthread_db_search_path): New function.
5748 (_initialize_thread_db): Add setter for libthread-db-search-path.
5749
673c2bbe
DE
57502011-05-09 Doug Evans <dje@google.com>
5751
478aac75
DE
5752 * NEWS: Mention --with-iconv-bin.
5753 * configure.ac: New option --with-iconv-bin.
5754 * configure: Regenerate.
5755 * config.in: Regenerate.
5756 * defs.h (relocate_gdb_directory): Declare.
5757 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5758 removed progname parameter, and exported. All callers updated.
5759 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5760
673c2bbe
DE
5761 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5762 adding missing call to restore_child_signals_mask.
5763
e4c8541f
PA
57642011-05-09 Pedro Alves <pedro@codesourcery.com>
5765
5766 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5767 parameter.
5768 * infrun.c (proceed, start_remote): Adjust.
5769 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5770 and adjust to not handle it.
5771 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5772 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5773 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5774 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5775 * windows-nat.c (do_initial_windows_stuff): Adjust.
5776 * infcmd.c (attach_command): Adjust.
5777 (notice_new_inferior): Adjust.
5778
a536c6d7
UW
57792011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5780
5781 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5782 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5783 * spu-tdep.c (op_selb): Use correct value.
5784
7845b013
UW
57852011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5786
5787 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5788 "parent" parameter to symbol_file_add_from_bfd call.
5789
9c06b0b4
TJB
57902011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5791 Thiago Jung Bauermann <bauerman@br.ibm.com>
5792
5793 Implement support for PowerPC BookE masked watchpoints.
5794 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5795 section.
5796 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5797 method. Initialize to NULL in all existing breakpoint_ops instances.
5798 (struct breakpoint) <hw_wp_mask>: New field.
5799 * breakpoint.c (is_masked_watchpoint): Add prototype.
5800 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5801 breakpoint's breakpoint_ops.works_in_software_mode if available.
5802 (watchpoints_triggered): Handle the case of a hardware masked
5803 watchpoint trigger.
5804 (watchpoint_check): Likewise.
5805 (works_in_software_mode_watchpoint): New function.
5806 (insert_masked_watchpoint, remove_masked_watchpoint)
5807 (resources_needed_masked_watchpoint)
5808 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5809 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5810 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5811 functions.
5812 (masked_watchpoint_breakpoint_ops): New structure.
5813 (watch_command_1): Check for the existence of the `mask' parameter.
5814 Set b->ops according to the type of hardware watchpoint being created.
5815 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5816 (ppc_linux_remove_mask_watchpoint)
5817 (ppc_linux_masked_watch_num_registers): New functions.
5818 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5819 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5820 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5821 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5822 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5823 (target_masked_watch_num_registers): New functions.
5824 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5825 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5826 methods.
5827 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5828 (target_masked_watch_num_registers): Add prototypes.
5829
8be455d7
JK
58302011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 PR 12573
5833 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5834 (producer_is_gcc_ge_4_0): New function.
5835 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5836 symtab->language code.
5837 (var_decode_location): Set cu->has_loclist.
5838 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5839 skip. Intialize force_skip from locations_valid. Move the prologue
5840 skipping code into two passes.
5841 * symtab.h (struct symtab): Make the primary field a bitfield. New
5842 field locations_valid.
5843
d8228535
JK
58442011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5845
5846 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5847 (classify_inner_name): Call cp_lookup_nested_type with
5848 yylval.tsym.type.
5849 * cp-namespace.c (cp_lookup_nested_type): New variable
5850 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5851 type_name_no_tag_or_error with saved_parent_type.
5852 * dwarf2read.c (load_partial_dies): Read in any children of
5853 DW_TAG_typedef with complaint in such case.
5854 * gdbtypes.c (type_name_no_tag_or_error): New function.
5855 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5856 * valops.c (destructor_name_p): New comment for parameter type. Remove
5857 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5858 * value.h (destructor_name_p): Remove type const.
5859
1976171a
JK
58602011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5861
5862 * symtab.c (compare_symbol_name): New function.
5863 (completion_list_add_name, expand_partial_symbol_name): Call it,
5864 remove the variable ncmp.
5865 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5866 gdb_assert it.
5867
a9634178
TJB
58682011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5869
5870 Demote to sw watchpoint only in update_watchpoint.
5871 * breakpoint.c (update_watchpoint): Change between software and
5872 hardware watchpoint for all kinds of watchpoints, not just
5873 read/write ones. Determine b->exact value here instead of
5874 in watch_command_1. Error out if there are not enough resources
5875 for a read or access hardware watchpoint.
5876 (watch_command_1): Remove logic of checking whether there are
5877 enough resources available, since update_watchpoint will do that
5878 work now. Don't set b->exact here. Catch exceptions thrown by
5879 update_watchpoint and delete the watchpoint.
5880 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5881 Use target_exact_watchpoints instead.
5882 (delete_breakpoint): Notify observers only if deleted watchpoint
5883 has a breakpoint number assigned to it.
5884
4c67c798
JJ
58852011-05-05 Janis Johnson <janisjo@codesourcery.com>
5886
5887 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5888
a3fcb948
JG
58892011-05-05 Jerome Guitton <guitton@adacore.com>
5890
5891 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5892 New functions.
5893 (i386_stack_tramp_frame_unwind): New static global.
5894 (i386_match_pattern): New function, extracted from i386_match_insn.
5895 (i386_match_insn): Use i386_match_pattern.
5896 (i386_match_insn_block): New function.
5897 (i386_tramp_chain_in_reg_insns)
5898 (i386_tramp_chain_on_stack_insns): New static variables.
5899 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5900 of unwinders.
5901
4d393d60
JM
59022011-05-04 Joseph Myers <joseph@codesourcery.com>
5903
5904 * configure.host (xscale*): Don't handle target.
5905 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5906 handle targets.
5907
f70bd40b
YQ
59082011-05-04 Yao Qi <yao@codesourcery.com>
5909
5910 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5911
dd3295ee
JB
59122011-05-03 Joel Brobecker <brobecker@adacore.com>
5913
5914 Revert:
5915 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5916 | * elfread.c (elf_symtab_read): Stop memory leak.
5917
90375a0e
PM
59182011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5919
5920 * nto-tdep.c (nto_target): Replace deprecated call to
5921 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5922
d07205c2
JK
59232011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5924
5925 Fix false GCC warning.
5926 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5927
1e718ff1
TJB
59282011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5929
5930 * breakpoint.c (update_watchpoint): Move code to change
5931 the enable state of breakpoint from here ...
5932 (do_enable_breakpoint): ... to here.
5933
35bef4fd
TT
59342011-04-26 Andrew Gontarek <andrewg@cray.com>
5935
78290264
PP
5936 * valprint.c (val_print_array_elements): Fixed poor performance
5937 of printing very large arrays with repeat_count_threshold set
5938 to unlimited. New comment.
35bef4fd 5939
38a714bb
TT
59402011-04-29 Tom Tromey <tromey@redhat.com>
5941
5942 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5943 (mi_parse): Likewise.
5944 * breakpoint.c (break_range_command): Use sizeof char*, not
5945 char**.
5946 (create_breakpoint): Likewise.
5947 (parse_breakpoint_sals): Likewise.
5948
eb73ad13
PA
59492011-04-29 Pedro Alves <pedro@codesourcery.com>
5950
5951 * linux-nat.c (linux_child_remove_fork_catchpoint)
5952 (linux_child_remove_vfork_catchpoint)
5953 (linux_child_remove_exec_catchpoint): New functions.
5954 (linux_target_install_ops): Install them.
5955
d65aec65
PM
59562011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5957
5958 PR mi/12531
5959
5960 * varobj.c (install_default_visualizer): Do not install a
5961 visualizer if the varobj is CPLUS_FAKE_CHILD.
5962 (construct_visualizer): Likewise.
5963
165195f4
JK
59642011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5965
5966 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5967 case insensitive comparison.
5968
30852783
UW
59692011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5970
5971 * infrun.c (proceed): Revert previous change.
5972 (resume): Instead, handle the case of signal delivery while stepping
5973 off a breakpoint location here, and only if software single-stepping
5974 is used. Handle nested signals.
5975
7ff120b4
YQ
59762011-04-28 Yao Qi <yao@codesourcery.com>
5977
5978 * arm-tdep.c (copy_unmodified): Rename to ...
5979 (arm_copy_unmodified): .. this. New.
5980 (copy_preload): Move common part to ...
5981 (install_preload): .. this. New.
5982 (arm_copy_preload): New.
5983 (copy_preload_reg): Move common part to ...
5984 (install_preload_reg): ... this. New.
5985 (arm_copy_preload_reg): New.
5986 (copy_b_bl_blx): Move common part to ...
5987 (install_b_bl_blx): .. this. New.
5988 (arm_copy_b_bl_blx): New.
5989 (copy_bx_blx_reg): Move common part to ...
5990 (install_bx_blx_reg): ... this. New.
5991 (arm_copy_bx_blx_reg): New.
5992 (copy_alu_reg): Move common part to ...
5993 (install_alu_reg): ... this. New.
5994 (arm_copy_alu_reg): New.
5995 (copy_alu_shifted_reg): Move common part to ...
5996 (install_alu_shifted_reg): ... this. New.
5997 (copy_ldr_str_ldrb_strb): Move common part to ...
5998 (install_ldr_str_ldrb_strb): ... this. New.
5999 (arm_copy_ldr_str_ldrb_strb): New.
6000 (copy_copro_load_store): Move some common part to ...
6001 (install_copy_copro_load_store): ... this. New.
6002 (arm_copy_copro_load_store): New.
6003 (copy_svc): Delete.
6004 (arm_copy_svc): Renamed from copy_svc.
6005 (copy_undef): Delete.
6006 (arm_copy_undef): Renamed from copy_undef.
6007 (decode_ext_reg_ld_st): Delete.
6008 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6009 (decode_svc_copro): Delete.
6010 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6011 (copy_copro_load_store, copy_alu_imm): update callers.
6012 (copy_extra_ld_st, copy_block_xfer): Likewise.
6013 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6014 (decode_miscellaneous, decode_dp_misc): Likewise.
6015 (decode_ld_st_word_ubyte, decode_media): Likewise.
6016 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6017 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6018 (decode_unconditional, decode_miscellaneous): Likewise.
6019 (decode_media, decode_b_bl_ldmstm): Likewise.
6020 (arm_process_displaced_insn): Likewise..
6021 (decode_misc_memhint_neon): Delete.
6022 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6023 (decode_miscellaneous): Delete.
6024 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6025 (decode_dp_misc): Delete.
6026 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6027 (decode_ld_st_word_ubyte): Delete.
6028 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6029 (decode_media): Delete.
6030 (arm_decode_media): Renamed from decode_media.
6031 (decode_b_bl_ldmstm): Delete.
6032 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6033 (decode_ext_reg_ld_st): Delete.
6034 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6035 (decode_unconditional): Delete.
6036 (arm_decode_unconditional): Renamed from decode_unconditional.
6037
559a7a62
JK
60382011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6039
6040 Case insensitive lookups implementation.
6041 * dwarf2read.c: Include ctype.h.
6042 (struct mapped_index): New field version.
6043 (mapped_index_string_hash): New parameter index_version. New comment
6044 for it. Call tolower appropriately.
6045 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6046 Choose the right index version for mapped_index_string_hash.
6047 (dwarf2_read_index): Support also the index version 5. Initialize the
6048 new struct mapped_index field version.
6049 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6050 (find_slot): Explain the version needs. Pass INT_MAX for the new
6051 parameter.
6052 (write_psymtabs_to_index): Produce version 5.
6053 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6054 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6055 * psymtab.c (lookup_partial_symbol): Find the
6056 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6057 entries.
6058 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6059 NAME lowercasing.
6060 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6061 (completion_list_add_name): New variable ncmp, initialize it, use it.
6062 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6063 * utils.c (strcmp_iw): Support case_sensitive_off.
6064 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6065 New function comment part. New variables saved_string1,
6066 saved_string2 and case_pass. Add a proper second pass.
6067
681bf369
JK
60682011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6069
6070 Replace re_comp/re_exec by regcomp/regexec.
6071 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6072 (search_symbols_name_matches): Use them, use regexec.
6073 (search_symbols): New variable retval_chain, adjust the use of
6074 old_chain against it. Replace re_comp by regcomp. Use the new struct
6075 search_symbols_data fields, use regexec instead of re_exec.
6076
b11b1f88
JK
60772011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6078
6079 Format the code for the next patch.
6080 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6081 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6082 New variables c1 and c2.
6083
2484c66b
UW
60842011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6085
6086 * infrun.c (proceed): Do not single-step into signal delivery
6087 when stepping off a breakpoint location.
6088 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6089 (insert_step_resume_breakpoint_at_caller): Likewise.
6090 (insert_step_resume_breakpoint_at_sal): Likewise.
6091 (insert_longjmp_resume_breakpoint): Likewise.
6092
47423772
YQ
60932011-04-27 Yao Qi <yao@codesourcery.com>
6094
6095 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6096
13bdd2e7
JB
60972011-04-27 Joel Brobecker <brobecker@adacore.com>
6098
6099 * procfs.c (procfs_pass_signals): Fix advance declaration.
6100
2455069d
UW
61012011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6102
6103 * target.h (struct target_ops): Remove to_notice_signals;
6104 add to_pass_signals.
6105 (target_notice_signals): Remove.
6106 (target_pass_signals): Add prototype.
6107 * target.c (update_current_target): Remove to_notice_signals;
6108 mention to_pass_signals.
6109 (target_pass_signals): New function.
6110 (debug_to_notice_signals): Remove.
6111 (setup_target_debug): Do not install debug_to_notice_signals.
6112
6113 * infrun.c (signal_pass): New global.
6114 (resume): Call target_pass_signals.
6115 (handle_inferior_event): Report all signals while stepping over
6116 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6117 are re-inserted when stepping over a signal handler.
6118 (signal_cache_update): New function.
6119 (signal_stop_update): Call it.
6120 (signal_print_update): Likewise.
6121 (signal_pass_update): Likewise.
6122 (handle_command): Call signal_cache_update and target_pass_signals
6123 instead of target_notice_signals.
6124 (_initialize_infrun): Initialize signal_pass.
6125
6126 * linux-nat.c (pass_mask): New global.
6127 (linux_nat_pass_signals): New function.
6128 (linux_nat_create_inferior): Report all signals initially.
6129 (linux_nat_attach): Likewise.
6130 (linux_nat_resume): Use pass_mask to decide whether to directly
6131 handle an inferior signal.
6132 (linux_nat_wait_1): Likewise.
6133 (linux_nat_add_target): Install to_pass_signals callback.
6134
6135 * nto-procfs.c (notice_signals): Remove.
6136 (procfs_resume): Do not call notice_signals.
6137 (procfs_notice_signals): Remove.
6138 (procfs_pass_signals): New function.
6139 (init_procfs_ops): Install to_pass_signals callback instead of
6140 to_notice_signals callback.
6141 (_initialize_procfs): Report all signals initially.
6142
6143 * procfs.c (procfs_notice_signals): Remove.
6144 (procfs_pass_signals): New function.
6145 (procfs_target): Install to_pass_signals callback instead of
6146 to_notice_signals callback.
6147 (register_gdb_signals): Remove.
6148 (procfs_debug_inferior): Report all signals initially.
6149 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6150
6151 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6152 parameters; use them instead of calling signal_..._state routines.
6153 (remote_notice_signals): Remove.
6154 (remote_start_remote): Report all signals initially.
6155 (remote_resume): Do not call remote_pass_signals.
6156 (_initialize_remote): Install to_pass_signals callback instead of
6157 to_notice_signals callback.
6158
46c6471b
PA
61592011-04-27 Pedro Alves <pedro@codesourcery.com>
6160
6161 * breakpoint.c (user_settable_breakpoint): Delete.
6162 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6163 (delete_command): Check user_breakpoint_p instead of looking at
6164 the breakpoint's type.
6165 (disable_command): Ditto.
6166 (enable_command): Ditto.
6167 (delete_trace_command): Use user_breakpoint_p instead of looking
6168 at the breakpoint number directly. When checking if there are
6169 user visible tracepoints, in order to know whether to ask the user
6170 for confirmation, check whether the breakpoint is actually a
6171 tracepoint.
6172
f6d90398
VP
61732011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6174
6175 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6176 compilation.
6177
8d3788bd
VP
61782011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6179
6180 MI breakpoint notifications.
6181
f33edef8
PP
6182 * annotate.c (breakpoint_changed): Adjust parameter type.
6183 * breakpoint.c (set_breakpoint_condition): Adjust to change
6184 in breakpoint_modified type.
6185 (breakpoint_set_commands): Likewise.
6186 (do_map_commands_command): Likewise.
6187 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6188 changed after bumping hit count.
6189 (bpstat_stop_status): Likewise.
6190 (print_one_breakpoint_location): Don't wrap in tuple here.
6191 (print_one_breakpoint): Always print individual locations.
6192 For locations, use unnamed tuple.
6193 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6194 has changed.
6195 (create_catchpoint, create_syscall_event_catchpoint): Call
6196 breakpoint_created obsever.
6197 (mention): Don't call breakpoint_created observer.
6198 (create_breakpoint_sal): Call breakpoint_created observer.
6199 (create_breakpoint, watch_command_1): Likewise.
6200 (create_ada_exception_breakpoint): Likewise.
6201 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6202 (locations_are_equal): New.
6203 (update_breakpoint_locations): If locations were changed, notify.
6204 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6205 Call breakpoint_modified observer.
6206
6207 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6208 (mi_cmd_break_insert): Don't set observers for modify and delete.
6209 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6210 (mi_breakpoint_created, mi_breakpoint_deleted)
6211 (mi_breakpoint_modified): New.
6212 (mi_interpreter_init): Hook the above.
6213 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6214 while -break-* commands are executing.
6215 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6216 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6217 (mi_redirect): New.
6218 (mi_ui_out_impl): Hook in mi_redirect.
6219 (mi_field_skip): True to the name, skip the field, don't output
6220 a field with an empty value.
6221
6222 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6223 (gdbpy_breakpoint_deleted): Adjust.
6224 * tui/tui-hooks.c (tui_event_create_breakpoint)
6225 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6226
a8f42b45
UW
62272011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6228
6229 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6230 (procfs_remove_hw_watchpoint): Likewise.
6231
57e12211
TT
62322011-04-26 Michael Walle <michael@walle.cc>
6233
6234 * remote.c (remote_start_remote): Ack packet after sending the
6235 interrupt sequence.
6236
af96c192
YQ
62372011-04-26 Yao Qi <yao@codesourcery.com>
6238
f33edef8
PP
6239 * linux-nat.c: Move common macros to ...
6240 Include linux-ptrace.h.
6241 * common/linux-ptrace.h: ... here. New.
af96c192 6242
3e03848b
JK
62432011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6244
6245 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6246 !objfile_has_partial_symbols. New comment.
6247 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6248 SYM_READ_PSYMBOLS is not present. Extend the comment.
6249 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6250
1ae0d051
JK
62512011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 * defs.h (ENUM_BITFIELD): Remove.
6254
03f2bd59
JK
62552011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6256 Eli Zaretskii <eliz@gnu.org>
6257
6258 * NEWS: Document the new gdbserver --once option.
6259
4161fbb0
JZ
62602011-04-21 Jie Zhang <jzhang918@gmail.com>
6261
6262 * MAINTAINERS: Update my email address.
6263
bcb28afc
PM
62642011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6265
6266 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6267 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6268 function call if __STDC_ISO_10646__ macro is defined.
6269 (intermediate_encoding): New prototype.
6270 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6271 to generate compile time error for unsupported gdb_wchar_t size.
6272 (ENDIAN_SUFFIX): New macro.
6273 (intermediate_encoding): New function.
6274
7b08b9eb
JK
62752011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6276
6277 * ada-lang.c (struct add_partial_datum): Update the comment for
6278 expand_partial_symbol_name.
6279 (ada_add_partial_symbol_completions): Rename to ...
6280 (ada_expand_partial_symbol_name): ... here, change return type, update
6281 function comment, call symbol_completion_match instead of
6282 symbol_completion_add.
6283 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6284 and ada_expand_partial_symbol_name.
6285 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6286 FILE_MATCHER.
6287 (dw2_map_symbol_names): Remove.
6288 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6289 * psymtab.c (map_symbol_names_psymtab): Remove.
6290 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6291 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6292 order.
6293 (psym_functions): Unlist map_symbol_names_psymtab.
6294 (map_partial_symbol_names): Rename to ...
6295 (expand_partial_symbol_names): ... here, change the FUN type, call
6296 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6297 * psymtab.h (map_partial_symbol_names): Rename to ...
6298 (expand_partial_symbol_names): ... here, change the FUN type.
6299 * symfile.h (struct quick_symbol_functions): Update the description of
6300 expand_symtabs_matching. Remove map_symbol_names.
6301 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6302 (struct add_name_data): Update the comment for
6303 expand_partial_symbol_name.
6304 (add_partial_symbol_name): Rename to ...
6305 (expand_partial_symbol_name): ... here. Replace
6306 completion_list_add_name call by strncmp.
6307 (default_make_symbol_completion_list_break_on): Use now
6308 expand_partial_symbol_names and expand_partial_symbol_name.
6309 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6310
90476074
TT
63112011-04-20 Tom Tromey <tromey@redhat.com>
6312
6313 * dwarf2read.c (save_gdb_index_command): Replace format
6314 documentation with a pointer to the manual.
6315
c21236dc
PA
63162011-04-20 Pedro Alves <pedro@codesourcery.com>
6317
6318 * regcache.c: Include remote.h.
6319 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6320 (regcache_dump): Handle regcache_dump_remote.
6321 (maintenance_print_remote_registers): New function.
6322 (_initialize_regcache): Install "maint print remote-registers"
6323 command.
6324 * remote.c (map_regcache_remote_table): New function, factored out
6325 from ...
6326 (init_remote_state): ... here.
6327 (remote_register_number_and_offset): New.
6328 * remote.h (remote_register_number_and_offset): Declare.
6329
b78974c3
PA
63302011-04-20 Pedro Alves <pedro@codesourcery.com>
6331
6332 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6333 null_ptid, assume and allow a NULL address space, instead of
6334 asking the target for the ptid's address space.
6335 * infrun.c (ptid_is_pid): Remove assertion.
6336
7a9dd1b2
TT
63372011-04-19 Tom Tromey <tromey@redhat.com>
6338
6339 * windows-tdep.c (windows_xfer_shared_library):
6340 * windows-nat.c (get_module_name, windows_make_so):
6341 * v850-tdep.c (v850_handle_pushm):
6342 * utils.c (null_cleanup, gdb_realpath):
6343 * ui-out.c (get_next_header):
6344 * tracepoint.c (clear_traceframe_info):
6345 * symtab.c (lookup_symtab):
6346 * serial.h (struct serial_ops):
6347 * mipsread.c (read_alphacoff_dynamic_symtab):
6348 * infcmd.c (print_return_value):
6349 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6350 * f-exp.y (parse_number):
6351 * exceptions.c (catch_exceptions):
6352 * dummy-frame.c (dummy_frame_this_id):
6353 * defs.h (struct cleanup):
6354 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6355 * arm-tdep.c (arm_push_dummy_call):
6356 * amd64-tdep.h (amd64_collect_xsave):
6357 * amd64-tdep.c (amd64_collect_xsave):
6358 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6359 * README (typing): Remove duplicate words.
6360 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6361 * infrun.c (siginfo_value_read): Fix typo.
6362 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6363 * top.c (source_line_number): Add comma.
6364
9941e0c5
MK
63652011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6366
6367 * thread.c (any_live_thread_of_process): Prioritize threads
6368 that are not executing.
6369 * gdbthread.h (any_live_thread_of_process): Update comment
6370 as per above change.
6371
ed4b0e6a
AS
63722011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6373
6374 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6375 (scan_xcoff_symtab): Likewise.
6376
9b13a2db
PM
63772011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6378
6379 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6380 inside if clause.
6381
1c6e1b0d
PM
63822011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6383 Pedro Alves <pedro@codesourcery.com>
6384
6385 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6386 variables to simplify code and avoid == operator at end of
6387 line as this is against GNU coding standards.
6388
74de0234
PM
63892011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6390
6391 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6392 lm_name to name_lm to avoid conflict with lm_name function.
6393
b23518f0
PM
63942011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6395
6396 ARI fixes: Use only lowercase function name for static functions.
6397 * nto-tdep.c (LM_ADDR): Rename to...
6398 (lm_addr): New function name.
6399 (nto_relocate_section_addresses): Adapt to change above.
6400 * solib-sunos.c (LM_ADDR): Rename to...
6401 (lm_addr): New function name.
6402 (LM_NEXT): Rename to...
6403 (lm_next): New function name.
6404 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6405 function name changes above.
6406 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6407 (lm_addr_from_link_map): New function name.
6408 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6409 (has_lm_dynamic_from_link_map): New function name.
6410 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6411 (lm_dynamic_from_link_map): New function name.
6412 (LM_ADDR_CHECK): Rename to...
6413 (lm_addr_check): New function name.
6414 (LM_NEXT): Rename to...
6415 (lm_next): New function name.
6416 (LM_PREV): Rename to...
6417 (lm_prev): New function name.
6418 (LM_NAME): Rename to...
6419 (lm_name): New function name.
6420 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6421 (ignore_first_link_map_entry): New function name.
6422 (svr4_keep_data_in_core): Adapt to function name changes above.
6423 (svr4_current_sos): Likewise.
6424 (enable_break): Likewise.
6425 (svr4_relocate_section_addresses): Likewise.
6426
1448a0a2
PM
64272011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6428
6429 ARI cleanup.
6430 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6431 sprintf. Simplify code and avoid loosing memory.
6432 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6433 (call0_frame_cache): Remove && operator from end of line.
6434
02835898
JK
64352011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6436
6437 Fix libraries displacement if they change whether they were prelinked.
6438 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6439 does not match. Comment why.
6440
9a845ea2
JK
64412011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6442
6443 * corelow.c: Include wrapper.h.
6444 (core_open): Call now gdb_target_find_new_threads.
6445 * wrapper.c: Include target.h.
6446 (gdb_target_find_new_threads): New.
6447 * wrapper.h (gdb_target_find_new_threads): New declaration.
6448
254f582e
JK
64492011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6450
6451 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6452 even if !TARGET_HAS_EXECUTION.
6453
63524580
JK
64542011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6455
6456 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6457 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6458 bfd_get_synthetic_symtab.
6459 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6460 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6461 parameter parent, remove the call to add_separate_debug_objfile.
6462 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6463 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6464 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6465 parent, new comment for it, call add_separate_debug_objfile for it.
6466 (symbol_file_add_separate): Pass objfile as the parameter parent,
6467 remove the call to add_separate_debug_objfile.
6468 (symbol_file_add_from_bfd): New parameter parent, pass it.
6469 (symbol_file_add): Pass NULL to the new parameter parent.
6470 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6471
90359a16
JK
64722011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6473
6474 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6475 BSF_SYNTHETIC.
6476
626e7282
JK
64772011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6478
6479 Fix Python access to inlined frames.
6480 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6481 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6482
cf31e6f9
TT
64832011-04-15 Tom Tromey <tromey@redhat.com>
6484
6485 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6486
c8d895f1
GB
64872011-04-15 Gary Benson <gbenson@redhat.com>
6488
6489 * MAINTAINERS: Add myself to write-after-approval section.
6490
56a9aa1d
MF
64912011-04-14 Mike Frysinger <vapier@gentoo.org>
6492
6493 * remote-sim.c (sim_command_completer): New function.
6494 (_initialize_remote_sim): Set completer to sim_command_completer.
6495
ba770c9c
TJB
64962011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6497
6498 * breakpoint.c (print_exception_catchpoint): Rename to ...
6499 (print_it_exception_catchpoint): ... this.
6500 (gnu_v3_exception_catchpoint_ops): Update with new name
6501 for print_it_exception_catchpoint.
6502
51bf2553
EBM
65032011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6504
6505 * MAINTAINERS: Add myself for write after approval privileges.
6506
d242658c
MP
65072011-04-13 Marek Polacek <mpolacek@redhat.com>
6508
6509 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6510
4a4106ca
TJB
65112011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6512
6513 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6514
26063d49
TJB
65152011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6516
6517 * breakpoint.c (save_breakpoints): Verify whether
6518 breakpoint_ops.print_recreate is defined before calling it.
6519
7782b183
GB
65202011-04-11 Gary Benson <gbenson@redhat.com>
6521
6522 Fix failure with --enable-maintainer-mode.
6523 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6524
e8930875
JK
65252011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6526
6527 Code cleanup.
6528 * symtab.c (search_symbols): Reorder the KIND description in the
6529 function comment. Remove the unused 4th element of types, types2,
6530 types3 and types4. New gdb_assert on KIND.
6531 (symtab_symbol_info): Remove the unused 4th element of classnames.
6532 New gdb_assert on KIND.
6533 * symtab.h (enum search_domain): New warning in the enum comment.
6534 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6535 TYPES_DOMAIN.
6536
b4f2f049
JK
65372011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6538
6539 Fix crash of gdb save-index on a STABS file.
6540 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6541 PSYMTABS_ADDRMAP.
6542
60d5a603
JK
65432011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6546 * dwarf2read.c: Include ctype.h.
6547 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6548 functions.
6549 (dwarf2_add_field): Fix new_field->accessibility by calling
6550 dwarf2_default_access_attribute. Restructure setting accessibility
6551 vs. virtuality.
6552 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6553 is_private and is_protected by calling
6554 dwarf2_default_access_attribute.
6555
e0f68161
KB
65562011-04-08 Kevin Buettner <kevinb@redhat.com>
6557
6558 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6559 to the initialization.
6560
2e1aae43
SE
65612011-04-08 Steve Ellcey <sje@cup.hp.com>
6562
6563 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6564 initalization.
6565
c6ca3dab
PM
65662011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6567
6568 Remove support for old Cygwin 1.5 versions.
6569 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6570 function on old Cygwin version.
6571 * windows-nat.c: Remove cygwin version check and always define
6572 __USEWIDE for Cygwin compilation.
6573
bd18283a
YQ
65742011-04-07 Yao Qi <yao@codesourcery.com>
6575
6576 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6577 and TO.
6578 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6579 (arm_copy_svc): Remove parameters INSN and TO.
6580 (decode_svc_copro): Update caller.
6581 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6582 from function pointer `copy_svc_os'.
6583
8c8dba6d
YQ
65842011-04-07 Yao Qi <yao@codesourcery.com>
6585
6586 * arm-tdep.c (cleanup_branch): Set a correct return address in
6587 LR for ARM and Thumb.
6588
59d7bcaf
JK
65892011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6590
6591 Code cleanup.
6592 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6593 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6594 in the function comment, a new note on values compatibility.
6595 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6596 * symtab.h (SYMBOL_HASH_NEXT): New.
6597
e7db58ea
TJB
65982011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6599
6600 * ppc-linux-nat.c (check_condition): Add len output parameter.
6601 Set it based on the memory region referenced in the condition
6602 expression. Update all callers.
6603
9f743ef6
JK
66042011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6605
6606 Fix crash regression on systems featuring .gdb_index.
6607 * objfiles.c (free_objfile): Move the
6608 forget_cached_source_info_for_objfile call earlier. Comment it.
6609 Extend the comment for objfile_free_data.
6610
9182c5bc
JK
66112011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6612
6613 Fix regression of displaying the debug format.
6614 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6615 subfile.
6616
04bd08de
TT
66172011-04-04 Tom Tromey <tromey@redhat.com>
6618
6619 * cli/cli-interp.c (struct captured_execute_command_args):
6620 Remove.
6621 (do_captured_execute_command): Remove.
6622 (safe_execute_command): Use TRY_CATCH.
6623 * cli/cli-script.c (struct wrapped_read_command_file_args):
6624 Remove.
6625 (wrapped_read_command_file): Remove.
6626 (script_from_file): Use TRY_CATCH.
6627 * exceptions.c (catch_exception): Remove.
6628 * exceptions.h (catch_exception): Remove.
6629 (deprecated_throw_reason): Update comment.
6630 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6631 argument to 'context'.
6632 (mi_execute_command): Use TRY_CATCH.
6633 * remote.c (struct start_remote_args): Remove.
6634 (remote_start_remote): Update; change arguments.
6635 (remote_open_1): Use TRY_CATCH.
6636
58438ac1
TT
66372011-04-04 Tom Tromey <tromey@redhat.com>
6638
6639 * tracepoint.c (scope_info): Update.
6640 * symtab.c (decode_line_spec): Update.
6641 * python/python.c (gdbpy_decode_line): Update.
6642 * linespec.h (decode_line_1): Update.
6643 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6644 (decode_compound, find_method, symtab_from_filename)
6645 (decode_variable): Likewise.
6646 * cli/cli-cmds.c (edit_command): Update.
6647 (list_command): Update.
6648 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6649 argument.
6650 (create_breakpoint): Update.
6651 (until_break_command): Update.
6652 (addr_string_to_sals): Update.
6653 (decode_line_spec_1): Update.
6654
b78a6381
TT
66552011-04-04 Tom Tromey <tromey@redhat.com>
6656
6657 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6658 (do_captured_parse_breakpoint): Remove.
6659 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6660 Use TRY_CATCH directly.
6661
00174a86
TT
66622011-04-04 Tom Tromey <tromey@redhat.com>
6663
6664 * symtab.h (free_symtab): Remove.
6665 (forget_cached_source_info_for_objfile): Declare.
6666 * symmisc.c (free_symtab): Remove.
6667 * source.c (forget_cached_source_info_for_objfile): New function.
6668 (forget_cached_source_info): Use it.
6669 * objfiles.c (free_objfile): Simplify check before calling
6670 clear_current_source_symtab_and_line. Call
6671 forget_cached_source_info_for_objfile.
6672
30cc903e
TT
66732011-04-04 Tom Tromey <tromey@redhat.com>
6674
6675 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6676 (new_symtab): Don't set `free_code' on symtab.
6677 (new_linetable): Properly handle size==0.
6678 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6679 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6680 free_func.
6681 * jv-lang.c (struct jv_per_objfile_data): New.
6682 (jv_per_objfile_free): Free the data.
6683 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6684 (get_java_class_symtab): Set the `dict' field on the
6685 jv_per_objfile_data.
6686 (free_class_block): Remove.
6687 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6688 the symtab.
6689
0c2e6019
TT
66902011-04-04 Tom Tromey <tromey@redhat.com>
6691
6692 * symfile.c (reread_symbols): Update.
6693 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6694 field.
6695 * objfiles.c (allocate_objfile): Update.
6696 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6697 declare.
6698 * cp-namespace.c (lookup_symbol_file): Don't call
6699 lookup_possible_namespace_symbol.
6700 (initialize_namespace_symtab, get_possible_namespace_block)
6701 (free_namespace_block, cp_check_possible_namespace_symbols)
6702 (check_possible_namespace_symbols_loop)
6703 (check_one_possible_namespace_symbol)
6704 (lookup_possible_namespace_symbol): Remove.
6705 (maintenance_cplus_namespace): Replace with notice.
6706 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6707
554d387d
TT
67082011-04-04 Tom Tromey <tromey@redhat.com>
6709
6710 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6711 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6712 * symmisc.c (free_symtab): Don't free debugformat.
6713 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6714 (record_debugformat, record_producer): Document.
6715 * buildsym.c (end_symtab): Don't save debugformat and producer
6716 names on obstack.
6717 (end_symtab): Don't free debugformat and producer fields.
6718 (record_debugformat): Don't call xstrdup.
6719 (record_producer): Likewise.
6720
d4d4db8a
TT
67212011-04-04 Tom Tromey <tromey@redhat.com>
6722
6723 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6724 (source_line_charpos, source_charpos_line): Remove.
6725
8903c50d
TT
67262011-04-04 Tom Tromey <tromey@redhat.com>
6727
6728 * symtab.h (domain_enum): Split in two...
6729 (enum search_domain): New.
6730 (search_symbols): Update.
6731 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6732 redundant declarations.
6733 (search_symbols): Change 'kind' argument to search_domain.
6734 Update.
6735 (print_symbol_info): Likewise.
6736 (symtab_symbol_info): Likewise.
6737 * symfile.h (struct quick_symbol_functions)
6738 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6739 <expand_symtabs_matching>: Likewise.
6740 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6741 (expand_symtabs_matching_via_partial): Update.
6742 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6743 (dw2_expand_symtabs_for_function): Update.
6744 * block.h: Moved anonymous enum...
6745 * defs.h (enum block_enum): ... here. Now named.
6746
d9351f5f 67472011-04-03 Joel Brobecker <brobecker@adacore.com>
6748
6749 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6750 * version.in: Bump version to 7.3.50.20110403-cvs.
6751
d6e00af6
JB
67522011-04-03 Joel Brobecker <brobecker@adacore.com>
6753
6754 * NEWS: Create a new section for the next release branch.
6755 Rename the section of the current branch, now that it has
6756 been cut.
6757
2b9e5ea6
UW
67582011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6759
6760 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6761 for "fpscr" in target description.
6762
0cf03b49
JK
67632011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6764
6765 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6766 initialize it. Delay HASH initialization. Strip the part after open
6767 parenthesis for languages with qualifiers. Call do_cleanups.
6768
5d901a73
TT
67692011-04-01 Tom Tromey <tromey@redhat.com>
6770
6771 * utils.c (report_command_stats): Don't print `-' for negative
6772 number.
6773
b0dd7688
JB
67742011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6775
6776 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6777 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6778 typedefs.
6779
956a9fb9
JB
67802011-04-01 Joel Brobecker <brobecker@adacore.com>
6781
6782 * breakpoint.h (bpdisp_text): Add declaration.
6783 * breakpoint.c (bpdisp_text): Make non-static.
6784 * ada-lang.c: #include "mi/mi-common.h".
6785 (print_it_exception): Rewrite to improve GDB/MI output.
6786
3352110b
PA
67872011-04-01 Pedro Alves <pedro@codesourcery.com>
6788
6789 * arm-tdep.h (struct address_space): Add forward declaration.
6790
18819fa6
UW
67912011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6792
6793 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6794 * arm-tdep.c (arm_override_mode): New global.
6795 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6796 execution mode heuristics.
6797 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6798 second single-step breakpoint if needed, using
6799 arm_insert_single_step_breakpoint.
6800 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6801 ARM execution mode, do not call thumb_get_next_pc_raw.
6802 (arm_get_next_pc): Encode execution mode in return value. Call
6803 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6804 (arm_insert_single_step_breakpoint): New function.
6805 (arm_software_single_step): Call it.
6806 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6807 argument to return execution mode of sigreturn target.
6808 (arm_linux_syscall_next_pc): Use it.
6809 (arm_linux_copy_svc): Update call.
6810 (arm_linux_software_single_step): Call
6811 arm_insert_single_step_breakpoint.
6812
a6e293d1
JK
68132011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6814
6815 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6816 the comment.
6817
a4c8e806
TT
68182011-03-31 Tom Tromey <tromey@redhat.com>
6819
6820 * varobj.c (update_dynamic_varobj_children): Properly handle
6821 errors from iterator.
6822
df5c6c50
JK
68232011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6824
6825 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6826 struct linkage name twice.
6827
1dae3efc
TT
68282011-03-31 Tom Tromey <tromey@redhat.com>
6829
6830 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6831 missing ">" to message.
6832
f4f7ab05
TT
68332011-03-31 Tom Tromey <tromey@redhat.com>
6834
6835 * varobj.c (instantiate_pretty_printer): Remove duplicate
6836 'return'.
6837
fcf250e2
UW
68382011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6839
6840 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6841 if neither saved value nor register available (e.g. signal frame).
6842
ee6436e3
TJB
68432011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6844
6845 * macroexp.c (expand): Avoid uninitialized variable
6846 compiler warning.
6847
423f41a5
TJB
68482011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6849
6850 * breakpoint.c (break_range_command): Fix typo in comment.
6851
f1310107
TJB
68522011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6853 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6854
6855 Implement support for PowerPC BookE ranged breakpoints.
6856 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6857 * breakpoint.h (struct bp_target_info) <length>: New member
6858 variable.
6859 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6860 instead of struct breakpoint as argument, and also add ASPACE
6861 and BP_ADDR arguments. Update all callers.
6862 (struct breakpoint_ops) <print_one_detail>: New method.
6863 (struct breakpoint) <addr_string_range_end>: New member variable.
6864 * breakpoint.c (breakpoint_location_address_match): Add function
6865 prototype.
6866 (insert_bp_location): Set bl->target_info.length.
6867 (breakpoint_here_p): Call breakpoint_location_address_match.
6868 (moribund_breakpoint_here_p): Likewise.
6869 (regular_breakpoint_inserted_here_p): Likewise.
6870 (breakpoint_thread_match): Likewise.
6871 (bpstat_stop_status): Likewise.
6872 (bpstat_check_location): Move call to
6873 breakpoint_ops.breakpoint_hit to the top.
6874 (print_one_breakpoint_location): Call
6875 breakpoint_ops.print_one_detail if available.
6876 (breakpoint_address_match_range): New function.
6877 (breakpoint_location_address_match): Likewise.
6878 (breakpoint_locations_match): Compare the length field of the
6879 locations too.
6880 (hw_breakpoint_used_count): Count resources used by all locations
6881 in a breakpoint, and use breakpoint_ops.resources_needed if
6882 available.
6883 (breakpoint_hit_ranged_breakpoint): New function.
6884 (resources_needed_ranged_breakpoint): Likewise.
6885 (print_it_ranged_breakpoint): Likewise.
6886 (print_one_ranged_breakpoint): Likewise.
6887 (print_one_detail_ranged_breakpoint): Likewise.
6888 (print_mention_ranged_breakpoint): Likewise.
6889 (print_recreate_ranged_breakpoint): Likewise.
6890 (ranged_breakpoint_ops): New structure.
6891 (find_breakpoint_range_end): New function.
6892 (break_range_command): Likewise.
6893 (delete_breakpoint): Free addr_string_range_end.
6894 (update_breakpoint_locations): Add SALS_END argument. Update
6895 all callers. Calculate breakpoint length if a non-zero SALS_END
6896 is given. Call breakpoint_locations_match instead of
6897 breakpoint_address_match.
6898 (reset_breakpoint): Find SaL of the end of the range if B is a
6899 ranged breakpoint.
6900 (_initialize_breakpoint): Register break-range command.
6901 * defs.h (print_core_address): Add function prototype.
6902 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6903 function.
6904 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6905 (ppc_linux_remove_hw_breakpoint): Likewise.
6906 (_initialize_ppc_linux_nat): Initialize
6907 to_ranged_break_num_registers.
6908 * target.c (update_current_target): Add comment about
6909 to_ranged_break_num_registers.
6910 (target_ranged_break_num_registers): New function.
6911 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6912 New method.
6913 (target_ranged_break_num_registers): Add function prototype.
6914 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6915 * utils.c (print_core_address): ... here.
6916
02d20e4a
UW
69172011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6918
6919 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6920 variable compiler warning.
6921
ef23e705
TJB
69222011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6923
6924 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6925 code from here ...
6926 (re_set_breakpoint): ... to here ...
6927 (addr_string_to_sals): ... and here.
6928
311e6ab3
PM
69292011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6930
6931 * Makefile.in (SFILES): Add missing C sources.
6932 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6933 Add missing headers.
6934
acd1d99c
MF
69352011-03-29 Mike Frysinger <vapier@gentoo.org>
6936
6937 * .gitignore: New file.
6938
66ee2731
MF
69392011-03-29 Mike Frysinger <vapier@gentoo.org>
6940
6941 * NEWS: Mention new cfi device simulation.
6942
53832f31
TT
69432011-03-29 Tom Tromey <tromey@redhat.com>
6944
6945 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6946 otherwise anonymous types.
6947 (dwarf2_name): Likewise.
6948 * valops.c (value_struct_elt_for_reference): Refine artificial
6949 type logic. Call error if j==-1.
6950
09b58708
JK
69512011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6952
6953 Fix false GCC warning.
6954 * infcall.c (find_function_addr): Initialize funaddr.
6955
6023c606
PM
69562011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6957
6958 Fix mingw compilation with --enable-targets=all.
6959 * remote-mips.c (gdb_usleep.h): Include header.
6960 (mips_enter_debug): Use gdb_usleep instead of sleep.
6961
0e30163f
JK
69622011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6963
6964 Support resolution of STT_GNU_IFUNC via breakpoints.
6965 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6966 bp_gnu_ifunc_resolver_return.
6967 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6968 the loop. Support bp_gnu_ifunc_resolver and
6969 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6970 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6971 breakpoints.
6972 (bptype_string, print_one_breakpoint_location): Support
6973 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6974 (user_settable_breakpoint): Return true also for
6975 bp_gnu_ifunc_resolver.
6976 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6977 bp_gnu_ifunc_resolver_return.
6978 (set_breakpoint_location_function): New parameter explicit_loc,
6979 describe it. Call find_pc_partial_function_gnu_ifunc with new
6980 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6981 EXPLICIT_LOC is not set.
6982 (set_raw_breakpoint): Set EXPLICIT_LOC for
6983 set_breakpoint_location_function.
6984 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6985 set_breakpoint_location_function.
6986 (mention): Support bp_gnu_ifunc_resolver and
6987 bp_gnu_ifunc_resolver_return.
6988 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6989 set_breakpoint_location_function.
6990 (update_breakpoint_locations): Remove static.
6991 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6992 bp_gnu_ifunc_resolver_return.
6993 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6994 bp_gnu_ifunc_resolver_return.
6995 (update_breakpoint_locations): New declaration.
6996 * elfread.c: Include gdbthread.h and regcache.h.
6997 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6998 functions.
6999 (elf_gnu_ifunc_fns): Install them.
7000 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7001 (stub_gnu_ifunc_resolver_return_stop): New functions.
7002 (stub_gnu_ifunc_fns): Install them.
7003 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7004 and gnu_ifunc_resolver_return_stop.
7005 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7006
07be84bf
JK
70072011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7008
7009 STT_GNU_IFUNC reader implementation.
7010 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7011 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7012 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7013 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7014 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7015 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7016 (elf_gnu_ifunc_resolve_addr): New.
7017 (elf_symfile_read): Call elf_rel_plt_read.
7018 (elf_gnu_ifunc_fns): New.
7019 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7020 Install elf_gnu_ifunc_fns.
7021 * infcall.c (find_function_return_type): New function.
7022 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7023 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7024 (stub_gnu_ifunc_resolve_name): New functions.
7025 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7026 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7027 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7028
300f8e10
JK
70292011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7030
7031 Code cleanup for later STT_GNU_IFUNC support.
7032 * infcall.c (find_function_addr): Remove variable code, use explicit
7033 dereferences for it. Move VALUE_TYPE initialization later.
7034
11c81455
JK
70352011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7036
7037 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7038 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7039 (clear_pc_function_cache): Clear it.
7040 (find_pc_partial_function): Rename to ...
7041 (find_pc_partial_function_gnu_ifunc): ... this function. New
7042 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7043 (find_pc_partial_function): New wrapper for this function.
7044 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7045
0875794a
JK
70462011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7047
7048 GDB internal type support for STT_GNU_IFUNC.
7049 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7050 (elf_symtab_read): Set mst_text_gnu_ifunc for
7051 BSF_GNU_INDIRECT_FUNCTION.
7052 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7053 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7054 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7055 nodebug_got_plt_symbol.
7056 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7057 (TYPE_GNU_IFUNC): New.
7058 (struct main_type): New field flag_gnu_ifunc.
7059 (struct builtin_type): New field builtin_func_func.
7060 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7061 nodebug_got_plt_symbol.
7062 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7063 (in_gnu_ifunc_stub): New.
7064 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7065 mst_text_gnu_ifunc.
7066 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7067 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7068 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7069 in_gnu_ifunc_stub.
7070 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7071 * symtab.c (search_symbols): Likewise.
7072 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7073 and mst_slot_got_plt.
7074 (in_gnu_ifunc_stub): New declaration.
7075
d0fb5eae
JK
70762011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 Support a ring of related breakpoints.
7079 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7080 other functions, add gdb_assert.
7081 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7082 watchpoint_del_at_next_stop.
7083 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7084 (bpstat_stop_status): Handle ring in related_breakpoint.
7085 (set_raw_breakpoint_without_location): Initialize ring in
7086 related_breakpoint.
7087 (delete_breakpoint): Handle ring in related_breakpoint, use
7088 watchpoint_del_at_next_stop.
7089 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7090
9cded63f
TT
70912011-03-28 Tom Tromey <tromey@redhat.com>
7092
7093 PR symtab/12441:
7094 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7095 with `language_minimal'.
7096
467d42c4
UW
70972011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7098
7099 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7100 instead of checking for STT_ARM_TFUNC symbol type.
7101
62853458
TT
71022011-03-25 Tom Tromey <tromey@redhat.com>
7103
7104 * linespec.c (symbol_found): Restore line-based result for
7105 non-LOC_LABEL symbols.
7106
a7417d46
KT
71072011-03-25 Kai Tietz <ktietz@redhat.com>
7108
7109 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7110 instead of strcmp for comparison.
7111 (tui_source_is_displayed): Likewise.
7112 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7113
55f1336d
TT
71142011-03-24 Mark Wielaard <mjw@redhat.com>
7115
f33edef8
PP
7116 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7117 complaint.
7118 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7119 (find_partial_die_in_comp_unit): Likewise in comment.
7120 (read_attribute_value): Likewise.
7121 (lookup_die_type): Likewise.
7122 (dwarf_form_name): Likewise.
7123 (dump_die_shallow): Likewise.
7124 (follow_die_ref_or_sig): Likewise.
55f1336d 7125
9ef07c8c
TT
71262011-03-24 Tom Tromey <tromey@redhat.com>
7127
7128 PR breakpoints/11816:
7129 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7130 (decode_compound): Update.
7131 (find_function_symbol): New function.
7132 (decode_dollar): Update.
7133 (decode_label): Add 'function_symbol' parameter. Handle
7134 function-relative labels.
7135 (decode_variable): Update.
7136 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7137 not its line. Set `special_display' and canonical name for
7138 labels.
7139
56435ebe
TT
71402011-03-24 Tom Tromey <tromey@redhat.com>
7141
7142 * linespec.h (struct linespec_result) <special_display>: New
7143 field.
7144 * breakpoint.h (struct breakpoint) <display_canonical>: New
7145 field.
7146 * breakpoint.c (print_breakpoint_location): Respect
7147 display_canonical.
7148 (create_breakpoint_sal): Add 'display_canonical' parameter.
7149 (create_breakpoints_sal): Update.
7150 (create_breakpoint): Update.
7151
7efd8fc2
TT
71522011-03-24 Tom Tromey <tromey@redhat.com>
7153
7154 * symtab.c (decode_line_spec): Update.
7155 * linespec.c (build_canonical_line_spec): Change type of
7156 'canonical'.
7157 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7158 (find_method, decode_all_digits, decode_dollar, decode_label)
7159 (symbol_found): Likewise.
7160 (init_linespec_result): New function.
7161 * breakpoint.c (struct captured_parse_breakpoint_args)
7162 <canonical_p>: New field, replaces addr_string_p.
7163 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7164 'addr_string'.
7165 (parse_breakpoint_sals): Likewise.
7166 (do_captured_parse_breakpoint): Update.
7167 (create_breakpoint): Use struct linespec_result.
7168 (until_break_command): Update.
7169 (breakpoint_re_set_one): Update.
7170 (decode_line_spec_1): Update.
7171 * linespec.h (struct linespec_result): New.
7172 (init_linespec_result): Declare.
7173
788c8b10
PA
71742011-03-23 Pedro Alves <pedro@codesourcery.com>
7175
7176 * regcache.c (regcache_raw_read): If the target didn't supply a
7177 given raw register, mark it as unavailable.
7178
0ba1096a
KT
71792011-03-23 Kai Tietz <ktietz@redhat.com>
7180
7181 * breakpoint.c (clear_command): Use filename_cmp
7182 instead of strcmp for comparison.
7183 * buildsym.c (watch_main_source_file_lossage): Likewise.
7184 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7185 checking just for slash.
7186 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7187 strrchr and filename_cmp instead of strcmp for filenames.
7188 (add_old_header_file): Use filename_cmp
7189 instead of strcmp for comparison.
7190 * exec.c (exec_set_section_address): Likewise.
7191 * macrotab.c (macro_lookup_inclusion): Likewise.
7192 (macro_lookup_inclusion): Likewise.
7193 * elfread.c (_initialize_elfread): Likewise.
7194 (elfstab_offset_sections): Likewise.
7195 (elfstab_offset_sections): Use lbasename instead of
7196 strrchr.
7197 * mdebugread.c (parse_partial_symbols): Likewise.
7198 (arse_partial_symbols): Use filename_(n)cmp instead of
7199 str(n)cmp for comparison.
7200 * minsyms.c (lookup_minimal_symbol): Likewise.
7201 * psymtab.c (read_psymtabs_with_filename): Likewise.
7202 * solib.c (solib_read_symbols): Likewise.
7203 (reload_shared_libraries_1): Likewise.
7204 * symmisc.c (maintenance_print_symbols): Likewise.
7205 * symfile.c (separate_debug_file_exists): Likewise.
7206 (reread_symbols): Likewise.
7207 (find_separate_debug_file_by_debuglink): Likewise.
7208 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7209 * source.c (add_path): Likewise.
7210 * symtab.c (filename_seen): Likewise.
7211 (file_matches): Likewise.
7212 (print_symbol_info): Likewise.
7213 (maybe_add_partial_symtab_filename): Likewise.
7214 (make_source_files_completion_list): Likewise.
7215 * xml-syscall.c (init_sysinfo): Likewise.
7216 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7217 IS_DIR_SEPARATOR for checking for trailing path separator.
7218
dd90784c
JK
72192011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7220
7221 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7222 label abort_expression.
7223 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7224 DWARF_VALUE_OPTIMIZED_OUT.
7225
3167638f
JK
72262011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7227
7228 Code cleanup.
7229 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7230 to linkage_name. Invert its value. Update the function comment.
7231 (c_type_print_varspec_suffix): Invert it at the caller.
7232 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7233
ce406537
PA
72342011-03-22 Pedro Alves <pedro@codesourcery.com>
7235
7236 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7237 errors when reading the `stop_pc'.
7238 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7239 get_frame_pc.
7240
da5d4055
PM
72412011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7242
7243 * NEWS: Document gdb.Write stream keyword.
7244
29e0eb9c
JK
72452011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7246
7247 Revert:
7248 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7249 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7250 (dwarf2_add_field): Fix new_field->accessibility for
7251 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7252
05775840
PM
72532011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7254
f33edef8 7255 PR python/12183
05775840
PM
7256
7257 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7258 other error classes. Do not print stack trace.
7259
a0cb7835
JK
72602011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7261
7262 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7263 (dwarf2_add_field): Fix new_field->accessibility for
7264 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7265
d19f7eee
UW
72662011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7267
7268 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7269 encountering a load via a non-SP register.
7270
4a2fbb50
UW
72712011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7272
7273 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7274 field in returned unwinder.
7275
3489610d
JB
72762012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7277
7278 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7279
8c1a34e7
JB
72802012-03-21 Joel Brobecker <brobecker@adacore.com>
7281
7282 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7283 of xmalloc.
7284
8fbca658
PA
72852012-03-18 Pedro Alves <pedro@codesourcery.com>
7286
7287 * frame.c (frame_unwind_register): Throw an error if unwinding the
7288 register failed.
7289 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7290 an unwind stop reason.
7291 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7292 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7293 UNWIND_UNAVAILABLE>: New.
7294 * inline-frame.c (inline_frame_unwind): Install
7295 default_frame_unwind_stop_reason.
7296 * frame-unwind.c: Include "exceptions.h".
7297 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7298 (default_frame_unwind_stop_reason): New.
7299 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7300 (default_frame_unwind_stop_reason): Declare.
7301 (struct frame_unwind) <stop_reason>: New function pointer.
7302
7303 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7304 * dwarf2-frame.c: Include exceptions.h.
7305 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7306 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7307 computing the CFA. If such an error was thrown, set
7308 unavailable_retaddr.
7309 (dwarf2_frame_unwind_stop_reason): New.
7310 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7311 unavailable.
7312 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7313 (dwarf2_signal_frame_unwind): Ditto.
7314
7315 * amd64-tdep.c: Include "exceptions.h".
7316 (struct amd64_frame_cache): New field "base_p".
7317 (amd64_init_frame_cache): Clear it.
7318 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7319 Avoid reading registers with functions that throw if the register
7320 is not necessary to compute the frame base.
7321 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7322 swallowing NOT_AVAILABLE_ERROR.
7323 (amd64_frame_unwind_stop_reason): New.
7324 (amd64_frame_this_id): Don't build a frame id if the frame base
7325 was unavailable.
7326 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7327 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7328 base_p if the frame base was computable.
7329 (amd64_sigtramp_frame_unwind_stop_reason): New.
7330 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7331 frame base was unavailable.
7332 (amd64_sigtramp_frame_unwind): Install
7333 amd64_sigtramp_frame_unwind_stop_reason.
7334 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7335 base_p if the frame base was computable.
7336 (amd64_epilogue_frame_unwind_stop_reason): New.
7337 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7338 frame base was unavailable.
7339 (amd64_epilogue_frame_unwind): Install
7340 amd64_epilogue_frame_unwind_stop_reason.
7341 * i386-tdep.c: Include "exceptions.h".
7342 (struct i386_frame_cache): New field "base_p".
7343 (i386_init_frame_cache): Clear it.
7344 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7345 Avoid reading registers with functions that throw if the register
7346 is not necessary to compute the frame base.
7347 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7348 swallowing NOT_AVAILABLE_ERROR.
7349 (i386_frame_unwind_stop_reason): New.
7350 (i386_frame_this_id): Don't build a frame id if the frame base was
7351 unavailable.
7352 (i386_frame_prev_register): Handle unavailable SP.
7353 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7354 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7355 base_p if the frame base was computable.
7356 (i386_epilogue_frame_unwind_stop_reason): New.
7357 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7358 base was unavailable.
7359 (i386_epilogue_frame_unwind): Install
7360 i386_epilogue_frame_unwind_stop_reason.
7361 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7362 base_p if the frame base was computable.
7363 (i386_sigtramp_frame_unwind_stop_reason): New.
7364 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7365 base was unavailable.
7366 (i386_sigtramp_frame_unwind): Install
7367 i386_sigtramp_frame_unwind_stop_reason.
7368 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7369 type's size, not the register's.
7370 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7371
7372 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7373 default_frame_unwind_stop_reason.
7374 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7375 (alpha_heuristic_frame_unwind): Ditto.
7376 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7377 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7378 * avr-tdep.c (avr_frame_unwind): Ditto.
7379 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7380 Ditto.
7381 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7382 * frv-tdep.c (frv_frame_unwind): Ditto.
7383 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7384 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7385 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7386 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7387 (hppa_stub_frame_unwind): Ditto.
7388 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7389 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7390 (ia64_libunwind_frame_unwind)
7391 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7392 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7393 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7394 * m32c-tdep.c (m32c_unwind): Ditto.
7395 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7396 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7397 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7398 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7399 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7400 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7401 * mep-tdep.c (mep_frame_unwind): Ditto.
7402 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7403 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7404 (mips_stub_frame_unwind): Ditto.
7405 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7406 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7407 * mt-tdep.c (mt_frame_unwind): Ditto.
7408 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7409 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7410 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7411 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7412 (s390_sigtramp_frame_unwind): Ditto.
7413 * score-tdep.c (score_prologue_unwind): Ditto.
7414 * sh-tdep.c (sh_frame_unwind): Ditto.
7415 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7416 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7417 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7418 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7419 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7420 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7421 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7422 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7423 (sparc64obsd_trapframe_unwind): Ditto.
7424 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7425 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7426 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7427 * v850-tdep.c (v850_frame_unwind): Ditto.
7428 * vax-tdep.c (vax_frame_unwind): Ditto.
7429 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7430 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7431 * xtensa-tdep.c (xtensa_unwind): Ditto.
7432
f23d1b92
PA
74332011-03-18 Pedro Alves <pedro@codesourcery.com>
7434
7435 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7436 there's always a frame. Use get_frame_pc_if_available instead of
7437 get_frame_pc, and if there's no PC available, don't look up a
7438 symtab.
7439
1d4f5741
PA
74402011-03-18 Pedro Alves <pedro@codesourcery.com>
7441
7442 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7443 unavailable PC.
7444
dba09041
PA
74452011-03-18 Pedro Alves <pedro@codesourcery.com>
7446
7447 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7448 gracefully.
7449
9a26e44c
PA
74502011-03-18 Pedro Alves <pedro@codesourcery.com>
7451
7452 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7453 * frame.c (frame_unwind_caller_pc_if_available): New.
7454 * stack.c (frame_info): Handle unavailable PC.
7455
74562011-03-18 Pedro Alves <pedro@codesourcery.com>
7457
7458 * frame.c (frame_unwind_pc): Rename to ...
7459 (frame_unwind_pc_if_available): ... this. New `pc' output
7460 parameter. Change return type to int. Gracefully handle
7461 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7462 happened, or 1 otherwise.
7463 (frame_unwind_pc): Reimplement on top of
7464 frame_unwind_pc_if_available.
7465 (get_frame_func): Rename to ...
7466 (get_frame_func_if_available): New `pc' output parameter. Change
7467 return type to int. Gracefully handle the PC not being available.
7468 (get_frame_func): Reimplement on top of
7469 get_frame_func_if_available.
7470 (select_frame): Handle the PC being unavailable.
7471 (get_prev_frame): Handle the PC being unavailable.
7472 (get_frame_pc_if_available): New.
7473 (get_frame_address_in_block_if_available): New.
7474 (find_frame_sal): Handle the frame PC not being available.
7475 * frame.h (get_frame_pc_if_available): Declare.
7476 (get_frame_address_in_block_if_available): Declare.
7477 (get_frame_func_if_available): Declare.
7478 * stack.c (print_frame_info): Handle the PC being unavailable.
7479 (find_frame_funname): Ditto.
7480 (print_frame): Handle the PC being unavailable.
7481 (get_frame_language): Ditto.
7482 * blockframe.c (get_frame_block): Ditto.
7483 * macroscope.c (default_macro_scope): Ditto.
7484 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7485
74862011-03-18 Pedro Alves <pedro@codesourcery.com>
7487
7488 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7489 NOT_AVAILABLE_ERROR when evaluating the location expression.
7490
74912011-03-18 Pedro Alves <pedro@codesourcery.com>
7492
7493 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7494 returning that the register piece is unavailable/optimized out.
7495 (write_pieced_value): Handle get_frame_register_bytes returning
7496 that the register piece is unavailable/optimized out when doing a
7497 read-modify write of a bitfield.
7498 * findvar.c (value_from_register): Handle get_frame_register_bytes
7499 returning that the register piece is unavailable/optimized out.
7500 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7501 and `unavailablep'. Throw error on bad debug info. Use
7502 frame_register instead of frame_register_read, to fill in the new
7503 arguments.
7504 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7505 and `unavailablep'.
7506 * valops.c: (value_assign): Adjust, and handle
7507 get_frame_register_bytes failing.
7508 * spu-tdep.c: Include exceptions.h.
7509 (spu_software_single_step): Adjust, and handle
7510 get_frame_register_bytes failing.
7511 (spu_get_longjmp_target): Ditto.
7512 * gdbarch.sh (register_to_value): Change to return int. New
7513 parameters `optimizedp' and `unavailablep'.
7514 * gdbarch.h, gdbarch.c: Regenerate.
7515 * i386-tdep.c (i386_register_to_value): Adjust to new
7516 gdbarch_register_to_value interface.
7517 * i387-tdep.c (i387_register_to_value): Ditto.
7518 * i387-tdep.h (i387_register_to_value): Ditto.
7519 * alpha-tdep.c (alpha_register_to_value): Ditto.
7520 * ia64-tdep.c (ia64_register_to_value): Ditto.
7521 * m68k-tdep.c (m68k_register_to_value): Ditto.
7522 * mips-tdep.c (mips_register_to_value): Ditto.
7523 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7524
0fdb4f18
PA
75252011-03-18 Pedro Alves <pedro@codesourcery.com>
7526
7527 * findvar.c (value_of_register): Mark the value as unavailable, if
7528 the register is unavailable.
7529 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7530 (frame_register): New `unavailablep' parameter.
7531 (frame_register_read): Update comment.
7532 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7533 Set it if the register is unavailable. If the register is
7534 unavailable, clear the output buffer.
7535 (frame_register): New `unavailablep' parameter. Pass it down.
7536 (frame_unwind_register): Adjust.
7537 (put_frame_register): Adjust.
7538 (frame_register_read): Adjust. Also return false if the register
7539 is not available.
7540 (frame_register_unwind_location): Adjust.
7541 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7542 is unavailable, mark the value accordingly.
7543 * stack.c (frame_info): Handle unavailable registers.
7544
e69aa73e
PA
75452011-03-18 Pedro Alves <pedro@codesourcery.com>
7546
7547 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7548 simplify, using regcache_cooked_read.
7549
05d1431c
PA
75502011-03-18 Pedro Alves <pedro@codesourcery.com>
7551
7552 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7553 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7554 (regcache_raw_read_unsigned, regcache_raw_read_part)
7555 (regcache_cooked_read, regcache_cooked_read_signed)
7556 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7557 (regcache_cooked_read_ftype): Change return to enum
7558 register_status.
7559 * regcache.c: Include exceptions.h
7560 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7561 (do_cooked_read): Change return to enum register_status. Always
7562 forward to regcache_cooked_read.
7563 (regcache_raw_read): Change return to enum register_status. If
7564 the register is not REG_VALID, memset the buffer. Return the
7565 register's status.
7566 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7567 return the register's status.
7568 (regcache_raw_read_unsigned): Ditto.
7569 (regcache_cooked_read): Change return to enum register_status.
7570 Assert that with read-only regcaches, the register's status must
7571 be known. If the regcache is read-only, and the register is not
7572 REG_VALID, memset the buffer. Return the register's status.
7573 (regcache_cooked_read_signed): Change return to enum
7574 register_status. Handle non-REG_VALID registers and return the
7575 register's status.
7576 (regcache_cooked_read_unsigned): Change return to enum
7577 register_status. Handle non-REG_VALID registers and return the
7578 register's status.
7579 (regcache_xfer_part, regcache_raw_read_part)
7580 (regcache_cooked_read_part): Change return to enum
7581 register_status. Return the register's status.
7582 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7583 unavailable.
7584 (regcache_dump): Handle unavailable cooked registers.
7585 * frame.c (do_frame_register_read): Adjust interface to match
7586 regcache_cooked_read_ftype.
7587 * gdbarch.sh (pseudo_register_read): Change return to enum
7588 register_status.
7589 * gdbarch.h, gdbarch.c: Regenerate.
7590
7591 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7592 register_status.
7593 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7594 register_status. If reading a raw register indicates the raw
7595 register is not valid, return the raw register's status,
7596 otherwise, return REG_VALID.
7597 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7598 register_status. Handle non-REG_VALID raw registers and return
7599 the register's status.
7600 * arm-tdep.c (arm_neon_quad_read)
7601 (arm_pseudo_read): Change return to enum register_status. Handle
7602 non-REG_VALID raw registers and return the register's status.
7603 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7604 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7605 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7606 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7607 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7608 register_status.
7609 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7610 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7611 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7612 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7613 (m32c_pseudo_register_read): Change return to enum
7614 register_status. Adjust.
7615 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7616 enum register_status. Return the register's status.
7617 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7618 register_status. Return the register's status.
7619 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7620 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7621 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7622 * rs6000-tdep.c (move_ev_register_func): New typedef.
7623 (e500_move_ev_register): Use it. Change return to enum
7624 register_status. Return the register's status.
7625 (do_regcache_raw_read): New function.
7626 (do_regcache_raw_write): New function.
7627 (e500_pseudo_register_read): Change return to enum
7628 register_status. Return the register's status. Use
7629 do_regcache_raw_read.
7630 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7631 (dfp_pseudo_register_read): Change return to enum register_status.
7632 Return the register's status.
7633 (vsx_pseudo_register_read): Ditto.
7634 (efpr_pseudo_register_read): Ditto.
7635 (rs6000_pseudo_register_read): Ditto.
7636 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7637 register_status. Return the register's status.
7638 * sh64-tdep.c (pseudo_register_read_portions): New function.
7639 (sh64_pseudo_register_read): Change return to enum
7640 register_status. Use pseudo_register_read_portions. Return the
7641 register's status.
7642 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7643 register_status. Return the register's status.
7644 * sh-tdep.c (pseudo_register_read_portions): New function.
7645 (sh_pseudo_register_read): Change return to enum register_status.
7646 Use pseudo_register_read_portions. Return the register's status.
7647 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7648 enum register_status. Return the register's status.
7649 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7650 * spu-tdep.c (spu_pseudo_register_read_spu)
7651 (spu_pseudo_register_read): Ditto.
7652 * xtensa-tdep.c (xtensa_register_read_masked)
7653 (xtensa_pseudo_register_read): Ditto.
7654 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7655
e10abd8f
PM
76562011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7657
7658 * python/py-value.c (valpy_getitem): Fix formatting of error function
7659 call.
7660
7ea6d463
PM
76612011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7662
7663 ARI fixes: Add missing internationalization markups throughout
7664 C source files.
7665 * darwin-nat-info.c: Ditto.
7666 * record.c: Ditto.
7667 * remote.c: Ditto.
7668 * mi/mi-main.c: Ditto.
7669
001083c6
PM
76702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7671
7672 ARI fixes: Add missing internationalization markups throughout
7673 yacc files.
7674 * c-exp.y: Ditto.
7675 * cp-name-parser.y: Ditto.
7676 * f-exp.y: Ditto.
7677 * m2-exp.y: Ditto.
7678 * objc-exp.y: Ditto.
7679 * p-exp.y: Ditto.
7680
4f1cdeec
PM
76812011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7682
7683 ARI fixes: Messages should have no trailing new lines.
7684 * darwin-nat.c (mach_check_error): Remove trailing new line from
7685 warning function call message.
7686 * record.c (bfdcore_read): Idem for error call.
7687
28e698f1
PM
76882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7689
7690 * common/signals.c (target_signal_from_host): Add _ markup to error
7691 function call message.
7692 (target_signal_to_host): Add _ markup and remove trailing new line
7693 from warning call message.
7694 (target_signal_from_command): Add _ markup to error function call
7695 message.
7696
99c3dc11
PM
76972011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7698
f33edef8 7699 PR python/12149
99c3dc11
PM
7700
7701 * python/python.c (gdbpy_write): Accept a stream argument and
7702 operate to the appropriate stream.
7703 (gdbpy_flush): Likewise.
7704 (_initialize_python): Add stream constants.
7705 (finish_python_initialization): Add GdbOutputErrorFile class.
7706
c20800be
KY
77072011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7708
7709 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7710
f4a1794a
KY
77112011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7712
7713 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7714 to store_signed_integer. Add debug message when relocating CALL
7715 instructions. Fix formatting of debug message.
7716 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7717
d4862372
JB
77182011-03-17 Joel Brobecker <brobecker@gnat.com>
7719
7720 * target.h (struct target_ops): Remove to_lookup_symbol field.
7721 (target_lookup_symbol): Delete macro.
7722 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7723 (update_current_target, setup_target_debug): Remove handling
7724 of to_lookup_symbol target_ops field.
7725 * ada-tasks.c (get_known_tasks_addr): Remove use of
7726 target_lookup_symbol.
7727 * coffread.c (coff_symtab_read): Likewise.
7728 * dbxread.c (read_dbx_symtab): Ditto.
7729
d645e32e
JB
77302011-03-17 Joel Brobecker <brobecker@gnat.com>
7731
7732 PR gdb/12116:
7733 * configure.ac: Add getthrds declaration check.
7734 * configure, config.in: Regenerate.
7735 * aix-thread.c (getthrds): Declare only if not already declared
7736 in procinfo.h. More declaration out of get_signaled_thread to
7737 global scope.
7738
29703da4
PM
77392011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7740
7741 * python/py-symtab.c: Populate symtab_object_methods,
7742 sal_object_methods.
7743 (stpy_is_valid): New function.
7744 (salpy_is_valid): Ditto.
7745 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7746 (sympy_is_valid): New function.
7747 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7748 (objfpy_is_valid): New function.
7749 * python/py-inferior.c: Populate inferior_object_methods.
7750 (infpy_is_valid): New function.
7751 * python/py-infthread.c: Populate thread_object_methods.
7752 (thpy_is_valid): New function.
7753 * python/py-block.c: Declare block_object_methods. Populate. Declare
7754 block_iterator_object_methods. Populate.
7755 (blpy_is_valid): New function.
7756 (blpy_iter_is_valid): Ditto.
7757
c00f8484
KS
77582011-03-16 Keith Seitz <keiths@redhat.com>
7759
7760 * linespec.c (find_methods): Canonicalize NAME before looking
7761 up the symbol.
7762 (name_end): New function.
7763 (keep_name_info): New function.
7764 (decode_line_1): Use keep_name_info.
7765 (decode_compound): Likewise.
7766 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7767 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7768
7769 PR c++/12273
7770 * linespec.c (locate_first_half): Keep overload information, too.
7771 (decode_compound): Use a string to represent break characters
7772 to escape the loop.
7773 If P points to a break character, do not increment it.
7774 For C++ and Java, keep overload information and relevant keywords.
7775 If we cannot find a symbol, search the minimal symbols.
7776
7777 PR c++/11734
7778 * linespec.c (decode_compound): Rename SAVED_ARG to
7779 THE_REAL_SAVED_ARG.
7780 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7781 single-quotes.
7782 Pass a valid block to lookup_symbol.
7783 (lookup_prefix_sym): Likewise.
7784 (find_method): Construct search name based on SYM_CLASS instead
7785 of SAVED_ARG.
7786 * psymtab.c (lookup_partial_symbol): Add language parameter.
7787 (lookup_symbol_aux_psymtabs): Likewise.
7788 Don't assume that the psymtab we found was the right one. Search
7789 for the desired symbol in the symtab to be certain.
7790 (psymtab_search_name): New function.
7791 (lookup_partial_symbol): Use psymtab_search_name.
7792 Add language parameter.
7793 (read_symtabs_for_function): Add language parameter and pass to
7794 lookup_partial_symbol.
7795 (find_symbol_file_from_partial): Likewise.
7796
c91513d8
PP
77972011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7798
7799 PR gdb/12528
7800 * dwarf2read.c (noop_record_line): New function.
7801 (dwarf_decode_lines): Ignore line tables for GCd functions.
7802
b37520b6
PM
78032011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7804
7805 Fix ARI warnings about new lines at the end of messages, which
7806 are unneeded as there is a new line added at the end of the message
7807 automatically.
7808 * darwin-nat.c (darwin_stop_inferior): Ditto.
7809 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7810 * dfp.c (decimal_to_number): Ditto.
7811 * exec.c (print_section_info): Ditto.
7812 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7813 * osdata.c (get_osdata): Ditto.
7814 * record.c (bfdcore_write): Ditto.
7815 * remote-mips.c (mips_readchar): Ditto.
7816 * remote.c (read_ptid): Ditto.
7817 * ser-mingw.c (ser_windows_raw): Ditto.
7818 * tracepoint.c (add_local_symbols): Ditto.
7819 * windows-nat.c (fake_create_process): Ditto.
7820
b08ee6a2
TT
78212011-03-16 Tom Tromey <tromey@redhat.com>
7822
7823 * tracepoint.c (stop_tracing): Don't declare.
7824 * event-top.c (after_char_processing_hook): Add `(void)'.
7825
9a6f1302
PM
78262011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7827
7828 * NEWS: Add Parameter sub-classing description.
7829
7ceb86b1
KT
78302011-03-16 Kai Tietz <ktietz@redhat.com>
7831
7832 * MAINTAINERS: Update my e-mail address.
7833
efeff6cf
AT
78342011-03-15 Andreas Tobler <andreast@fgznet.ch>
7835
7836 * MAINTAINERS: Add myself for write after approval privileges.
7837
681c238c
MS
78382011-03-15 Michael Snyder <msnyder@vmware.com>
7839
f3df5b08
MS
7840 * frame.c (find_frame_sal): Assert sym is not null.
7841
13f6513c
MS
7842 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7843
50412521
MS
7844 * objc-lang.c (selectors_info): Check strchr for null result.
7845
681c238c
MS
7846 * stabsread.c (define_symbol): Guard against bad stabstring input.
7847
6ced1581
PM
78482011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7849
7850 Remove trailing spaces and tabulations from pascal language
7851 support sources.
7852 p-exp.y: Ditto.
7853 p-lang.c: Ditto.
7854 p-lang.h: Ditto.
7855 p-valprint.c: Ditto.
7856
9373cf26
JK
78572011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7858
7859 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7860 than LOW. Comment it.
7861 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7862 HIGHPC not strictly higher than LOWPC.
7863
9a1edae6
PM
78642011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7865
7866 Fix formatting of function declarations returning a pointer in
7867 previous commit.
7868 * varobj.c (varobj_add_child): Ditto.
7869 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7870 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7871
24e9cda0
UW
78722011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7873
7874 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7875 for the "generic" vector ABI used with GCC 4.3 and later.
7876 (ppc64_sysv_abi_return_value): Likewise.
7877
78782011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7879
7880 * infcall.c (call_function_by_hand): Function return value is
7881 always a non_lval, even when using struct_return.
7882
c9174737
PA
78832011-03-15 Pedro Alves <pedro@codesourcery.com>
7884
7885 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7886 (map_display_numbers): New.
7887 (do_delete_display): New.
7888 (undisplay_command): Use map_display_numbers.
7889 (do_enable_disable_display): New.
7890 (enable_disable_display_command): New function.
7891 (enable_display): Delete.
7892 (enable_display_command): New.
7893 (disable_display_command): Reimplement.
7894 (_initialize_printcmd): Adjust "enable display" command to use
7895 `enable_display_command' as callback.
7896
350c6c65
PM
78972011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7898
7899 * NEWS: Add Python breakpoint 'stop' operation.
7900
824446ad
PM
79012011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7902
7903 * NEWS: Delete duplicate entry. Fix typo.
7904
2021ad3a
PM
79052011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7906
7907 Fix ARI warning about function names in first column.
7908 Put prototype declaration on same line as return type.
7909 * objc-exp.y: Ditto.
7910 * p-exp.y: Ditto.
7911 * python/py-stopevent.h: Ditto.
7912 For long function names, split parameters to
7913 allow function name on same line as return type.
7914 * solib-pa64.c: Ditto.
7915 * varobj.c: Ditto.
7916 * varobj.h: Ditto.
7917 For long function declaration, use single line.
7918 * hppa-tdep.h: Ditto.
7919 * inferior.h: Ditto.
7920
7371cf6d
PM
79212011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7922
7923 * python/python.h: Declare gdbpy_should_stop and
7924 gdbpy_breakpoint_has_py_cond.
7925 * python/python.c: Add python.h to includes. Remove python.h from
7926 HAVE_PYTHON definition
7927 (gdbpy_should_stop): New dummy function.
7928 (gdbpy_breakpoint_has_py_cond): New dummy function.
7929 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7930 sub-classing capabilities.
7931 (gdbpy_should_stop): New function.
7932 (gdbpy_breakpoint_has_py_cond): New function.
7933 (local_setattro): New function.
7934 * breakpoint.c (condition_command): Add check for Python 'stop'
7935 operation.
7936 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7937 operation function as part of stop/continue tests.
7938
37b50a69
TT
79392011-03-14 Tom Tromey <tromey@redhat.com>
7940
7941 PR gdb/12576:
7942 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7943 (needs_frame_dwarf_call): Likewise.
7944
eeae04df
PM
79452011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7946
7947 Fix ARI warning about functions without parameters that do not
7948 use (void).
7949 * breakpoint.c (all_tracepoints): Replace () by (void).
7950 * f-exp.y (match_string_literal): Ditto.
7951 (yylex): Ditto.
7952 * m2-exp.y (yylex): Ditto.
7953 * mep-tdep.c (current_me_module): Ditto.
7954 (current_options): Ditto.
7955 (current_cop_data_bus_width): Ditto.
7956 (current_cr_names): Ditto.
7957 (current_cr_is_float): Ditto.
7958 (current_ccr_names): Ditto.
7959 * objc-exp.y (yylex): Ditto.
7960 * p-exp.y (yylex): Ditto.
7961 * remote.c (send_interrupt_sequence): Ditto.
7962 * tracepoint.c (current_trace_status): Ditto.
7963 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7964 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7965
6dc3565d
MS
79662011-03-11 Michael Snyder <msnyder@vmware.com>
7967
1427fe5e
MS
7968 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7969 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7970 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7971 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7972 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7973
60bc018f
MS
7974 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7975 (delete_async_event_handler): Ditto.
7976
f3be5b64
MS
7977 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7978
4c2d5724
MS
7979 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7980
6dc3565d
MS
7981 * top.c (set_verbose): Assert showcmd was found.
7982
4e6ca6d5
MG
79832011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7984
7985 * xtensa-tdep.c (warning_once): Correct style issues.
7986
815a83e4
YQ
79872011-03-11 Yao Qi <yao@codesourcery.com>
7988
7989 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7990
f2eb0bc8
AS
79912011-03-11 Andreas Schwab <schwab@redhat.com>
7992
7993 * common/aclocal.m4: Remove.
7994
b801de47
MG
79952011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7996
7997 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7998 (xtensa_write_register, xtensa_read_register): Likewise.
7999 (xtensa_hextochar): Removed.
8000 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8001
dbab50de
MG
80022011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8003
8004 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8005 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8006 (xtensa_alloc_frame_cache): Add initialization for new fields.
8007 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8008 (warning_once): New function.
8009 (xtensa_insn_kind): New item c0opc_and.
8010 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8011 (call0_track_op): Change arguments. New local variable litbase.
8012 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8013 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8014 in the prologue.
dbab50de 8015 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8016 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8017 Add the variety of updates to handle extended prologues, which now can
8018 conduct dynamic stack adjustments.
8019 (call0_frame_cache): Likewise.
8020 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8021 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8022
b2c04452
MS
80232011-03-10 Michael Snyder <msnyder@vmware.com>
8024
f8f67713
MS
8025 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8026 (cmd_qtframe): Ditto.
8027 (cmd_qtbuffer): Ditto.
8028 (cmd_bigqtbuffer): Ditto.
8029
197f0a60
TT
80302011-03-10 Tom Tromey <tromey@redhat.com>
8031
8032 * tracepoint.c (trace_actions_command): Update.
8033 * thread.c (thread_apply_command): Update.
8034 * reverse.c (delete_bookmark_command): Update.
8035 (bookmarks_info): Update.
8036 * printcmd.c (undisplay_command): Update.
8037 * memattr.c (mem_enable_command): Update.
8038 (mem_disable_command): Update.
8039 (mem_delete_command): Update.
8040 * inferior.c (detach_inferior_command): Update.
8041 (kill_inferior_command): Update.
8042 (remove_inferior_command): Update.
8043 * cli/cli-utils.h (struct get_number_or_range_state): New.
8044 (init_number_or_range): Declare.
8045 (get_number_or_range): Update.
8046 * cli/cli-utils.c (init_number_or_range): New function.
8047 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8048 static variables.
8049 (number_is_in_list): Update.
8050 * breakpoint.h (get_tracepoint_by_number): Update.
8051 * breakpoint.c (map_breakpoint_numbers): Update for change to
8052 get_number_or_range.
8053 (find_location_by_number): Use get_number, not
8054 get_number_or_range.
8055 (trace_pass_set_count): New function.
8056 (trace_pass_command): Update for change to get_number_or_range.
8057 Rework loop logic.
8058 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8059 'state' parameter.
8060
ecec24e6
PM
80612011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8062
8063 * python/py-param.c (add_setshow_generic): Add set/show callback
8064 parameters. Register Python object context.
8065 (get_show_value): New function.
8066 (get_set_value): New function.
8067 (call_doc_function): New function.
8068 (get_doc_string): Move behind get_show_value/get_set_value.
8069
6d6c6b1f
JK
80702011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8071
8072 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8073
68d6df83
MG
80742011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8075
dbab50de 8076 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8077 (xtensa_write_register): Likewise.
8078 (xtensa_hextochar): Add comment and update to match coding conventions.
8079 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8080 (execute_l32e, execute_s32e, execute_code): Update comments.
8081 (xtensa_exception_handler_t): Update to match coding conventions.
8082 (xtensa_insn_kind): Likewise.
8083
85c9d6a6
MS
80842011-03-09 Michael Snyder <msnyder@vmware.com>
8085
8086 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8087
91495617
PA
80882011-03-09 Pedro Alves <pedro@codesourcery.com>
8089
8090 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8091
eb8c0621
TT
80922011-03-09 Tom Tromey <tromey@redhat.com>
8093
8094 * thread.c (restore_selected_frame): Handle frame_level == -1.
8095 (make_cleanup_restore_current_thread): Use
8096 get_selected_frame_if_set.
8097 * frame.h (get_selected_frame_if_set): Declare.
8098 * frame.c (get_selected_frame_if_set): New function.
8099
9f37bbcc
PA
81002011-03-09 Pedro Alves <pedro@codesourcery.com>
8101
8102 * cli/cli-cmds.c (shell_escape): Use lbasename.
8103 * coffread.c (coff_start_symtab): Constify parameter.
8104 (complete_symtab): Constify `name' parameter.
8105 (coff_symtab_read): Constify `filestring' local.
8106 (coff_getfilename): Constify return and `result' local.
8107 Use lbasename.
8108 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8109 * linux-fork.c (info_checkpoints_command): Use lbasename.
8110 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8111 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8112 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8113 * procfs.c (procfs_make_note_section): Use lbasename.
8114 * tui/tui-io.c (printable_part): Constity return and parameter.
8115 Use lbasename.
8116 (print_filename): Constify parameters, and local `s'.
8117 (tui_rl_display_match_list): Constify local `temp'.
8118
f8de3c55
JK
81192011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8120
8121 Revert:
8122 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8123 Fix DWARF-3+ DW_AT_accessibility default assumption.
8124 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8125 cu->header.version >= 3.
8126
d9837b00
YQ
81272011-03-09 Yao Qi <yao@codesourcery.com>
8128
8129 * common/Makefile.in: Remove.
8130 * common/configure: Remove.
8131 * common/configure.ac: Remove.
8132
e637a4f5
YQ
81332011-03-09 Yao Qi <yao@codesourcery.com>
8134
8135 Revert:
8136 2011-02-11 Yao Qi <yao@codesourcery.com>
8137
8138 * common/Makefile.in: Add copyright header.
8139
8140 2011-02-11 Yao Qi <yao@codesourcery.com>
8141
8142 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8143 libcommon.a.
8144 * configure.ac: Add common to sub dir.
8145 * configure: Regenerate.
8146
f976a05d
MG
81472011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8148
8149 * xtensa-tdep.c (call0_ret): New function.
8150 (xtensa_skip_prologue): Speed up analysis.
8151
57041825
MG
81522011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8153
8154 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8155 while executing MI command -data-list-changed-registers.
8156
08b9c608
MG
81572011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8158
8159 * xtensa-tdep.c (xtensa_read_register): New function.
8160 (xtensa_write_register): New function.
8161 (xtensa_find_register_by_name): New function.
8162 (xtensa_windowed_frame_cache): Update comments in type description.
8163 (xtensa_frame_cache): Likewise.
8164 (xtensa_window_interrupt_insn): New function.
8165 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8166 (xtensa_insn_kind): Add new instructions.
8167 (rwx_special_register): New function.
8168 (call0_classify_opcode): Add new instructions to the analysis.
8169 (a0_saved, a7_saved, a11_saved): New variables.
8170 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8171 (execute_l32e): New function.
8172 (execute_s32e): New function.
8173 (xtensa_exception_handler_t): New type.
8174 (execute_code): New function.
8175 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8176 analysis for Xtensa Window Exception handlers.
8177
4d1acb11
MG
81782011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8179
98689b25
MG
8180 * xtensa-tdep.c (TX_PS): New.
8181 (windowing_enabled): Update to count for Call0 ABI.
8182 (xtensa_hextochar): New.
8183 (xtensa_init_reggroups): Make algorithm generic.
8184 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8185
81862011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8187
8188 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8189
d3f323f3
MS
81902011-03-08 Michael Snyder <msnyder@vmware.com>
8191
3dcabaa8
MS
8192 * i386-tdep.c (i386_follow_jump): Check return value of
8193 target_read_memory.
8194 (i386_analyze_struct_return): Ditto.
8195 (i386_skip_probe): Ditto.
8196 (i386_match_insn): Ditto.
8197 (i386_skip_noop): Ditto.
8198 (i386_analyze_frame_setup): Ditto.
8199 (i386_analyze_register_saves): Ditto.
8200 (i386_skip_prologue): Ditto.
8201 (i386_skip_main_prologue): Ditto.
8202
13b3fd9b
MS
8203 * target.c (read_whatever_is_readable): Fix memory leak.
8204
d3f323f3
MS
8205 * i386-tdep.c (i386_process_record): Document fall through.
8206
421d5c74
JK
82072011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8208
8209 Fix DWARF-3+ DW_AT_accessibility default assumption.
8210 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8211 cu->header.version >= 3.
8212
63154eca
PA
82132011-03-08 Pedro Alves <pedro@codesourcery.com>
8214
8215 * remote.c (remote_check_symbols): Skip if the target has no
8216 execution.
8217
f1a507a1
JB
82182011-03-08 Joel Brobecker <brobecker@adacore.com>
8219
8220 * target.c (read_whatever_is_readable): Reformat comment,
8221 with a minor typo fix. Minor reformatting of the code.
8222
36073a92
YQ
82232011-03-08 Yao Qi <yao@codesourcery.com>
8224
8225 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8226 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8227 Use cached result instead of calling displaced_in_arm_mode again.
8228 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8229 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8230 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8231 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8232 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8233 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8234 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8235 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8236 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8237 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8238 (arm_catch_kernel_helper_return): Likewise.
8239 * gdb/arm-tdep.h : Update function declarations.
8240
d3f323f3 82412011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8242
e0e40094
MS
8243 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8244
0b2381f5
MS
8245 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8246
0350914a
MS
8247 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8248
69feea6f
MS
8249 * elfread.c (elf_symtab_read): Stop memory leak.
8250
e6040cbd
MS
8251 * main.c (captured_main): Fix memory leak.
8252
052874e8
AS
82532011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8254
8255 * ada-lang.c (compare_names): Call is_name_suffix with string1
8256 instead of string2.
8257
b11896a5
TT
82582011-03-07 Tom Tromey <tromey@redhat.com>
8259
8260 * xcoffread.c (xcoff_sym_fns): Update.
8261 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8262 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8263 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8264 (symbol_file_add_with_addrs_or_offsets): Likewise.
8265 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8266 * somread.c (som_sym_fns): Update.
8267 * psymtab.h (require_partial_symbols): Declare.
8268 * psymtab.c (require_partial_symbols): New function.
8269 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8270 (ALL_OBJFILE_PSYMTABS): Undef.
8271 (ALL_PSYMTABS): Move from psympriv.h.
8272 (lookup_partial_symtab, find_pc_sect_psymtab)
8273 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8274 (find_last_source_symtab_from_partial)
8275 (forget_cached_source_info_partial)
8276 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8277 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8278 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8279 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8280 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8281 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8282 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8283 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8284 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8285 psymtabs.
8286 * mipsread.c (ecoff_sym_fns): Update.
8287 * machoread.c (macho_sym_fns): Update.
8288 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8289 (read_psyms): New function.
8290 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8291 (elf_sym_fns_lazy_psyms): New global.
8292 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8293 dwarf2_build_psymtabs.
8294 * dbxread.c (aout_sym_fns): Update.
8295 * coffread.c (coff_sym_fns): Update.
8296
fda326dd
TT
82972011-03-07 Tom Tromey <tromey@redhat.com>
8298
8299 * infrun.c (print_exited_reason): Include inferior id and pid in
8300 message.
8301
aeaec162
TT
83022011-03-07 Tom Tromey <tromey@redhat.com>
8303
8304 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8305 parameter.
8306 (target_has_execution_1): Update.
8307 (target_has_execution_current): Declare.
8308 (target_has_execution): Call target_has_execution_current.
8309 (default_child_has_execution): Update.
8310 * target.c (default_child_has_execution): Add 'the_ptid'
8311 parameter.
8312 (target_has_execution_1): Likewise.
8313 (target_has_execution_current): New function.
8314 (add_target): Update.
8315 (init_dummy_target): Update.
8316 * remote-m32r-sdi.c (m32r_has_execution): New function.
8317 (init_m32r_ops): Use it.
8318 * record.c (record_core_has_execution): Now static. Add
8319 'the_ptid' parameter.
8320 * inferior.c (have_live_inferiors): Don't save current thread.
8321 Use target_has_execution_1.
8322
08e14083
YQ
83232011-03-07 Yao Qi <yao@codesourcery.com>
8324
8325 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8326
c05d19c5
JB
83272011-03-07 Joel Brobecker <brobecker@adacore.com>
8328
8329 * elfread.c (elf_symtab_read): Minor reformatting.
8330
3e6ef9e4
JB
83312011-03-07 Joel Brobecker <brobecker@adacore.com>
8332
8333 * objc-lang.c (selectors_info): Minor reformatting.
8334
dbb8534f
JB
83352011-03-07 Joel Brobecker <brobecker@adacore.com>
8336
8337 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8338
dd70cc93
JB
83392011-03-07 Joel Brobecker <brobecker@adacore.com>
8340 Michael Snyder <msnyder@vmware.com>
8341
8342 * ada-valprint.c (ada_val_print_array): Move the declaration of
8343 "byte_order" and "elttype" inside the block where these variables
8344 are actually used. Remove some special handling for the case
8345 where "elttype" and "eltlen" are null. Replace by a comment
8346 and a couple of assertion checks.
8347
b27cf2b3
MS
83482011-03-05 Michael Snyder <msnyder@vmware.com>
8349
8350 * source.c (add_path): Replace semicolon at end of block.
8351 * dwarf2expr.c (execute_stack_op): Ditto.
8352
5387a0c6
MF
83532011-03-05 Mike Frysinger <vapier@gentoo.org>
8354
8355 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8356 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8357 (bfin-*-*): Likewise.
8358
e3aa49af
MS
83592011-03-05 Michael Snyder <msnyder@vmware.com>
8360
82ae4854
MS
8361 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8362 * mdebugread.c (parse_symbol): Ditto.
8363 * parse.c (parse_exp_in_context): Ditto.
8364 * source.c (add_path): Ditto.
8365 * utils.c (gnu_debuglink_crc32): Ditto.
8366 * varobj.c (variable_language): Ditto.
8367
e3aa49af
MS
8368 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8369
154f592e
MS
83702011-03-04 Michael Snyder <msnyder@vmware.com>
8371
da3ecdc6
MS
8372 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8373
9cc89665
MS
8374 * symfile.c (simple_overlay_update): Check for null return value
8375 from lookup_minimal_symbol.
8376
154f592e
MS
8377 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8378
63ffa6ee
TJB
83792011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8380
8381 * eval.c (parse_and_eval_address_1): Remove function.
8382 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8383 instead of parse_and_eval_address_1.
8384 * value.h (parse_and_eval_address_1): Remove prototype.
8385
a17d146e
MS
83862011-03-04 Michael Snyder <msnyder@vmware.com>
8387
8388 * remote.c (putpkt_binary): Document that case stmt falls through.
8389
1a6a67de
TJB
83902011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8391
8392 * breakpointc (print_it_typical): Move NULL check from here...
8393 (print_bp_stop_message): ... to here.
8394
488919c4
MS
83952011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8396
8397 * breakpoint.c (enable_command): Use break instead of continue,
8398 and fill in a missing break.
8399 (disable_command): Ditto.
8400
1e182ce8
UW
84012011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8402
8403 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8404 (terminal_save_ours): Remove misleading comment.
8405 (inflow_inferior_data_cleanup): Free ttystate.
8406 (inflow_inferior_exit): Likewise.
8407 (copy_terminal_info): Copy ttystate.
8408
8409 * serial.c (serial_copy_tty_state): New function.
8410 * serial.h (serial_copy_tty_state): Add prototype.
8411 (struct serial_ops): Add copy_tty_state callback.
8412 * ser-base.c (ser_base_copy_tty_state): New function.
8413 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8414 * ser-go32.c (dos_copy_tty_state): New function.
8415 (dos_ops): Install copy_tty_state callback.
8416 * ser-mingw.c (_initialize_ser_windows): Likewise.
8417 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8418 * ser-unix.c (hardwire_copy_tty_state): New function.
8419 (_initialize_ser_hardwire): Install it.
8420
b2c5f112
MS
84212011-03-04 Michael Snyder <msnyder@vmware.com>
8422
2abae994
MS
8423 * breakpoint.c (create_breakpoint): Add missing break statement.
8424
7f5936f9
MS
8425 Reverting this patch:
8426 * infcall.c (call_function_by_hand): Add break statements for lint.
8427
b2c5f112
MS
8428 Reverting this patch:
8429 * cli/cli-script.c (script_from_file): Add break for lint.
8430
42b1321c
MS
84312011-03-04 Michael Snyder <msnyder@vmware.com>
8432
8433 * solib.c (reload_shared_libraries_1): Close memory leak.
8434
3e2a0cee
TT
84352011-03-03 Tom Tromey <tromey@redhat.com>
8436
8437 PR gdb/12538:
8438 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8439 DW_STRING is NULL.
8440
58397cb7
MS
84412011-03-03 Michael Snyder <msnyder@vmware.com>
8442
2e3fd767
MS
8443 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8444 fields of struct 'st' to zero.
8445
58397cb7
MS
8446 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8447 sal.pspace before calling set_current_source_symtab_and_line.
8448
ced54c8f
YQ
84492011-03-03 Yao Qi <yao@codesourcery.com>
8450
8451 * Makefile.in (configure-common): Remove. Let Makefile
8452 in dir common to rebuild itself.
8453 (common/Makefile): Likewise.
8454
3351ea09
JB
84552011-03-03 Joel Brobecker <brobecker@adacore.com>
8456
8457 * utils.c (parse_escape): Add i18n markup in error message.
8458
bf9f652a
YQ
84592011-03-03 Yao Qi <yao@codesourcery.com>
8460
8461 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8462 ARM_PC_REGNUM.
8463 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8464 (displaced_write_reg, displaced_read_reg): Likewise.
8465 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8466 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8467 (cleanup_branch): Replace magic number 14 and 15 with
8468 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8469
d42de051
MS
84702011-03-02 Michael Snyder <msnyder@vmware.com>
8471
240f9570
MS
8472 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8473
10dd8b54
MS
8474 * cli/cli-script.c (script_from_file): Add break for lint.
8475
b98bd911
MS
8476 * mdebugread.c (parse_partial_symbols): Fix indent.
8477
3494b66d
MS
8478 * target-descriptions.c (tdesc_gdb_type): No need to call
8479 xstrdup, callee saves a copy.
8480
daac021a
MS
8481 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8482
c38d16a7
MS
8483 * infcall.c (call_function_by_hand): Add break statements for lint.
8484
905b671b
MS
8485 * utils.c (parse_escape): Escape the escape char.
8486
f2eb0bc8 8487 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8488 PyList_Append fails.
8489 (gdbpy_inferiors): Error out if build_inferior_list fails.
8490
8c6a60d1
MS
8491 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8492 a function call.
8493
d42de051
MS
8494 * record.c (record_restore): Move printf to before error return.
8495
4db71c0b
YQ
84962011-03-02 Yao Qi <yao@codesourcery.com>
8497
8498 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8499 is_thumb and insn_size.
8500 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8501 on both ARM and Thumb mode.
8502 (arm_process_displaced_insn): Set is_thumb and insn_size.
8503 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8504 (arm_displaced_step_fixup): Likewise.
8505
a9dc8dcc
MS
85062011-03-01 Michael Snyder <msnyder@vmware.com>
8507
53624a93
MS
8508 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8509
77766669
MS
8510 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8511
62d5b8da
MS
8512 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8513
5e9e105f
MS
8514 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8515
dc19db01
MS
8516 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8517 with xmalloc.
8518
5ce64950
MS
8519 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8520 which shadows function parameter.
8521
a0aa2878
MS
8522 * tracepoint.c (create_tsv_from_upload): Superfluous call
8523 to xstrdup. Callee already calls xstrdup.
8524
e325fb69
MS
8525 * linespec.c (decode_line_1): Remove unnecessary null check.
8526
21cbba77
MS
8527 * tracepoint.c (scope_info): Fix mem leak, remove underused
8528 variable.
8529
63360adc
MS
8530 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8531 superfluous null check.
8532
18ea20ac 8533 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8534 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8535
d014929c
MS
8536 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8537
6e9130cf
MS
8538 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8539 be null.
8540
5f01dbc0
MS
8541 * linespec.c (decode_line_1): Check for null before dereference.
8542
d684ab85
MS
8543 * reverse.c (record_restore): Move null-check to before pointer
8544 dereference.
8545
bfffb7e3
MS
8546 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8547
a9dc8dcc
MS
8548 * objc-lang.c (selectors_info): Add explanitory comment.
8549 (classes_info): Ditto.
8550
478fd957
UW
85512011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8552
8553 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8554 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8555 versions of the trampoline. Handle Thumb vs. ARM addresses.
8556 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8557 (arm_linux_init_abi): Install it.
8558 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8559 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8560
0480cefa
MS
85612011-02-28 Michael Snyder <msnyder@vmware.com>
8562
ac50ab3b
MS
8563 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8564 a little bigger, to avoid possibility of an overflow.
8565
f63fbe86
MS
8566 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8567 buffers a little bigger, to avoid possibility of an overflow.
8568
9e91a352
MS
8569 * coffread.c (coff_getfilename): Add check to avoid overflow.
8570
f2eb0bc8 8571 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8572 avoid overflow.
8573 (classes_info): Error out on too long REGEXP.
8574
098ab512
MS
8575 * infrun.c (handle_inferior_event): Remove unused function call.
8576
bcbd1de9
MS
8577 * fork-child.c (fork_inferior): Remove ifdef'd code and
8578 unused variable.
8579
2e456570
MS
8580 * linux-thread-db.c (attach_thread): Discard unused value.
8581
14571dad
MS
8582 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8583
a9cbf802
MS
8584 * remote.c (remote_get_noisy_reply): Discard unused value.
8585 (remote_vcont_resume): Ditto.
8586 (remote_stop_ns): Ditto.
8587
5715d26e
MS
8588 * linespec.c (decode_objc): Delete unused variable.
8589
4a9bca80
MS
8590 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8591
f47fb265
MS
8592 * dwarf2read.c (add_partial_symbol): Discard unused values.
8593 (read_base_type): Delete unused variable.
8594
e81cff30
MS
8595 * dbxread.c (read_dbx_symtab): Discard unused value.
8596
262acaeb
MS
8597 * eval.c (evaluate_subexp_standard): Delete unused variable,
8598 and discard unused values.
8599
df983543
MS
8600 * infcmd.c (_initialize_infcmd): Discard unused values.
8601
89acf84d
MS
8602 * stabsread.c (rs6000_builtin_type): Missing break statement.
8603
ab8b8aca
MS
8604 * dbxread.c (process_one_symbol): Discard unused value.
8605
6b4511ab
MS
8606 * coffread.c (coff_end_symtab): Delete unused variable.
8607
e8e80198
MS
8608 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8609 (dwarf2_add_typedef): Delete unused variable.
8610 (read_namespace): Ditto.
8611 (dwarf_decode_macros): Ditto.
8612
976aa66e
MS
8613 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8614
5b92b49f
MS
8615 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8616
91e8df85
MS
8617 * p-valprint.c (pascal_val_print): Discard unused value.
8618
899500d6
MS
8619 * utils.c (nquery): Call va_end before return;
8620 (yquery): Ditto.
8621 (query): Ditto.
8622
0480cefa
MS
8623 * proc-service.c (ps_plog): Call va_end before return.
8624
fb6a3ed3
TT
86252011-02-28 Tom Tromey <tromey@redhat.com>
8626
8627 * python/python.c (gdbpy_value_cst): New global.
8628 (_initialize_python): Initialize it.
8629 * python/python-internal.h (gdbpy_value_cst): Declare.
8630 * python/py-value.c (convert_value_from_python): Use
8631 gdbpy_value_cst.
8632
c05202a1
MS
86332011-02-28 Michael Snyder <msnyder@vmware.com>
8634
e463f587
MS
8635 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8636
c38eea1a
MS
8637 * breakpoint.c (catch_syscall_completer): Free malloced list.
8638
3ef09ab5
MS
8639 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8640
8f9a01ee
MS
8641 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8642 (lval_func_check_synthetic_pointer): Ditto.
8643 (lval_func_free_closure): Fix use-after-free.
c05202a1 8644
477d0d57
TT
86452011-02-28 Tom Tromey <tromey@redhat.com>
8646
8647 * psymtab.c (expand_partial_symbol_tables): Use
8648 ALL_OBJFILE_PSYMTABS.
8649
20937029
JK
86502011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8651
8652 * objc-lang.c (selectors_info): Error on too long REGEXP.
8653
907b7f4f
MS
86542011-02-28 Michael Snyder <msnyder@vmware.com>
8655
92e96192
MS
8656 * python/py-param.c (set_parameter_value): Add missing
8657 break statement.
8658
907b7f4f
MS
8659 * linux-record.c (record_linux_system_call): Add missing
8660 break statement.
8661
12c5a436
UW
86622011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8663
8664 * breakpoint.c (print_one_breakpoint_location): Remove unused
8665 argument PRINT_ADDRESS_BITS. Update callers.
8666 (print_one_breakpoint): Likewise.
8667
170b53b2
UW
86682011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8669
8670 * breakpoint.c (wrap_indent_at_field): New function.
8671 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8672 Allocate ui_stream locally instead of using STB argument.
8673 (print_one_breakpoint_location): Update call.
8674 * ui-out.c (ui_out_query_field): New function.
8675 * ui-out.h (ui_out_query_field): Add prototype.
8676
8ab1f94d
JB
86772011-02-28 Joel Brobecker <brobecker@adacore.com>
8678
8679 From Michael Snyder <msnyder@vmware.com>
8680 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8681
7d488639
MS
86822011-02-27 Michael Snyder <msnyder@vmware.com>
8683
ae179fba
MS
8684 * objc-lang.c (selectors_info): Prevent string overrun.
8685
086dbf66
MS
8686 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8687 error in strncpy.
8688
f2eb0bc8 8689 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8690 outer scope.
8691
7d488639
MS
8692 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8693 param with a local variable of the same name.
8694
3bd0f5ef
MS
86952011-02-27 Michael Snyder <msnyder@vmware.com>
8696
8697 * value.c (value_from_history_ref): New function.
8698 * value.h (value_from_history_ref): Export.
8699 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8700 to parse value history references.
8701 * cli/cli-utils.h (get_number_trailer): Update comment.
8702
87032011-02-27 Michael Snyder <msnyder@vmware.com>
8704
8705 * inferior.c (detach_inferior_command): Use get_number_or_range.
8706 (kill_inferior_command): Ditto.
8707 (remove_inferior_command): Ditto.
8708 (initialize_inferiors): Make command names plural.
8709 Update help strings.
8710
766062f6
MS
87112011-02-27 Michael Snyder <msnyder@vmware.com>
8712
8713 * darwin-nat-info.c: Fix comment typo.
8714 * dwarf2expr.h: Ditto.
8715 * fbsd-nat.c: Ditto.
8716 * fbsd-nat.h: Ditto.
8717 * frame-unwind.h: Ditto.
8718 * frame.h: Ditto.
8719 * hppa-hpux-tdep.c: Ditto.
8720 * i386-linux-nat.c: Ditto.
8721 * linux-nat.c: Ditto.
8722 * nbsd-nat.c: Ditto.
8723 * nbsd-nat.h: Ditto.
8724 * ppc-linux-tdep.c: Ditto.
8725 * serial.c: Ditto.
8726 * ui-file.h: Ditto.
8727 * tui/tui-winsource.c: Ditto.
8728
f2c4ead5
MS
87292011-02-26 Michael Snyder <msnyder@vmware.com>
8730
86b887df
MS
8731 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8732
66fd3b1e
MS
8733 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8734
8c814cdd
MS
8735 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8736 with a local variable of the same name.
8737
6d5e094a 8738 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8739 param with a local variable of the same name.
6d5e094a 8740 (i387_supply_xsave): Ditto.
e5b3d7d6 8741
5eee517d
MS
8742 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8743 that it does not shadow a function parameter.
8744
8fbf6b93
MS
8745 * i386-nat.c (i386_length_and_rw_bits): Document that case
8746 statement is meant to fall through.
8747
cb969d61
MS
8748 * expprint.c (dump_subexp_body_standard): Document that case
8749 statement is meant to fall through.
8750
f2c4ead5
MS
8751 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8752 dead if statement. Condition can't be false.
8753
b021a221
MS
87542011-02-25 Michael Snyder <msnyder@vmware.com>
8755
8756 * arm-tdep.c: Fix typos in comments.
8757 * bsd-uthread.c: Ditto.
8758 * completer.c: Ditto.
8759 * corelow.c: Ditto.
8760 * cp-namespace.c: Ditto.
8761 * cp-support.c: Ditto.
8762 * cris-tdep.c: Ditto.
8763 * dbxread.c: Ditto.
8764 * dwarf2read.c: Ditto.
8765 * frame.h: Ditto.
8766 * gdbtypes.h: Ditto.
8767 * inferior.h: Ditto.
8768 * mdebugread.c: Ditto.
8769 * mips-tdep.c: Ditto.
8770 * ppc-linux-nat.c: Ditto.
8771 * ppc-linux-tdep.c: Ditto.
8772 * printcmd.c: Ditto.
8773 * sol-thread.c: Ditto.
8774 * solib-frv.c: Ditto.
8775 * solist.h: Ditto.
8776 * sparc64-tdep.c: Ditto.
8777 * spu-tdep.c: Ditto.
8778 * stabsread.c: Ditto.
8779 * symfile.c: Ditto.
8780 * valops.c: Ditto.
8781 * varobj.c: Ditto.
8782 * vax-nat.c: Ditto.
8783 * python/py-block.c: Ditto.
8784 * python/py-symbol.c: Ditto.
8785 * python/py-symtab.c: Ditto.
8786 * python/py-value.c: Ditto.
8787 * tui/tui-win.c: Ditto.
8788
c82c0b55
MS
87892011-02-25 Michael Snyder <msnyder@vmware.com>
8790
8791 * inferior.c (print_inferior): Accept a string instead of an int
8792 for requested_inferiors, and use get_number_or_range to parse it.
8793 (info_inferiors_command): Pass args string to print_inferior.
8794 (initialize_inferiors): Change help string for info inferiors.
8795 * inferior.h (print_inferior): Export prototype change.
8796
ee00cd23
TT
87972011-02-25 Tom Tromey <tromey@redhat.com>
8798
8799 * common/ax.def (invalid2): Set to 0x31.
8800
0502ed8c
JK
88012011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8802
8803 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8804 L and plongest.
8805 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8806 use L and plongest.
8807 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8808
2c9de912
MS
88092011-02-24 Michael Snyder <msnyder@vmware.com>
8810
8811 * Makefile.in (clean): Make clean should remove generated files
8812 observer.h and observer.inc.
8813
a04b0428
JB
88142011-02-24 Joel Brobecker <brobecker@adacore.com>
8815
8816 Revert the following patch (not approved yet):
8817 2011-02-21 Hui Zhu <teawater@gmail.com>
8818 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8819 * ax-gdb.c (gen_printf_expr_callback): New function.
8820 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8821 * ax-general.c (ax_memcpy): New function.
8822 (ax_print): Handle "printf".
8823 (ax_reqs): Ditto.
8824 * ax.h (ax_memcpy): Forward declare.
8825 * common/ax.def (invalid2): Removed.
8826 (printf): New entry.
8827 * printcmd.c (printcmd.h): New include.
8828 (string_printf): New function.
8829 (ui_printf): Removed.
8830 (printf_command): Remove static. Call string_printf.
8831 (eval_command): Call string_printf.
8832 * printcmd.h: New file.
8833 * tracepoint.c (validate_actionline,
8834 encode_actions_1): handle printf_command.
8835
2b52013f
TT
88362011-02-23 Tom Tromey <tromey@redhat.com>
8837
8838 * ax-general.c (ax_pick): Add missing newline.
8839
e5a67952
MS
88402011-02-23 Michael Snyder <msnyder@vmware.com>
8841
8842 * breakpoint.c (breakpoint_1): Change first argument from an int
8843 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8844 breakpoints rather than just one. Use new function
e5a67952
MS
8845 'number_is_in_list' to implement.
8846 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8847 (watchpoints_info): Ditto.
8848 (tracepoints_info): Ditto.
8849 (maintenance_info_breakpoints): Ditto.
8850 (_initialize_breakpoint): Update help strings to reflect the fact
8851 that these functions can now take more than one argument.
8852 * cli/cli-utils.c (number_is_in_list): New function.
8853 * cli/cli-utils.h (number_is_in_list): Export.
8854
88552011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8856
8857 * memattr.c (mem_enable_command): Use get_number_or_range.
8858 (mem_disable_command): Ditto.
8859 (mem_delete_command): Ditto.
8860 (_initialize_mem): Tweak usage message to reflect multiple
8861 arguments.
8862
6e6fbe60
DE
88632011-02-22 Doug Evans <dje@google.com>
8864
8865 Add gdb.lookup_global_symbol python function.
8866 * NEWS: Add entry.
8867 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8868 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8869 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8870
79b97fa8
TT
88712011-02-22 Tom Tromey <tromey@redhat.com>
8872
8873 * language.c (language_class_name_from_physname): Rename
8874 'curr_language' argument to 'lang'; use in body.
8875
298f437a
MS
88762011-02-22 Michael Snyder <msnyder@vmware.com>
8877
8878 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8879
b7ea3126
PA
88802011-02-22 Pedro Alves <pedro@codesourcery.com>
8881
8882 * frame-unwind.h: Fix comment to mention the this frame, not the
8883 next.
8884
58ee6d60
TT
88852011-02-22 Tom Tromey <tromey@redhat.com>
8886
8887 * symfile.c (auto_solib_limit): Remove.
8888 * symfile.h (auto_solib_limit): Remove.
8889
36238dbc
JB
88902011-02-22 Joel Brobecker <brobecker@adacore.com>
8891
8892 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8893
aea5b279
MS
88942011-02-21 Michael Snyder <msnyder@vmware.com>
8895
8896 * gdbthread.h (print_thread_info): Change prototype.
8897 * thread.c (print_thread_info): Accept char* instead of int for
8898 requested_threads argument. Use new function number_is_in_list
8899 to determine which threads to list.
8900 (info_threads_command): Pass char* to print_thread_info.
8901 * cli/cli-utils.c (number_is_in_list): New function.
8902 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8903 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8904 print_thread_info.
8905 (print_one_inferior): Ditto.
8906 (mi_cmd_list_thread_groups): Ditto.
8907
8caa75ee
JK
89082011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8909
8910 * common/Makefile.in (CFLAGS): New.
8911 (COMPILE): Add $(CFLAGS).
8912
ea666128
TT
89132011-02-21 Tom Tromey <tromey@redhat.com>
8914
8915 * breakpoint.c (catch_syscall_command_1): Fix typo.
8916
e9cafbcc
TT
89172011-02-21 Tom Tromey <tromey@redhat.com>
8918
8919 * reverse.c: Include cli-utils.h.
8920 * printcmd.c: Include cli-utils.h.
8921 (string_printf): Use skip_spaces.
8922 * cli/cli-utils.h: New file.
8923 * cli/cli-utils.c: New file.
8924 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8925 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8926 * breakpoint.h (get_number, get_number_or_range): Move to
8927 cli-utils.h.
8928 * breakpoint.c: Include cli-utils.h.
8929 (get_number_trailer, get_number, get_number_or_range)
8930 (ep_skip_leading_whitespace): Move to cli-utils.c.
8931 (create_breakpoint_sal, find_condition_and_thread)
8932 (decode_static_tracepoint_spec, watch_command_1)
8933 (watch_maybe_just_location, ep_parse_optional_if_clause)
8934 (catch_fork_command_1, catch_exec_command_1)
8935 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8936 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8937 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8938 (HFILES_NO_SRCDIR): Add cli-utils.h.
8939 (cli-utils.o): New target.
8940
f67fd822
PM
89412011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8942
8943 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8944 before calling discard_all_inferiors.
8945
c9def01d
UW
89462011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8947
8948 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8949 (struct builtin_opencl_type): Remove.
8950 (builtin_opencl_type): Change return type to "struct type **".
8951 (lookup_opencl_vector_type): Update caller.
8952 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8953 (build_opencl_types): Install plain array of "struct type *"
8954 instead of "struct builtin_opencl_type".
8955
e3039479
UW
89562011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8957 Ulrich Weigand <uweigand@de.ibm.com>
8958
8959 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8960 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8961 (struct arm_linux_hwbp_cap): New type.
8962 (arm_linux_get_hwbp_cap): New function.
8963 (arm_linux_get_hw_breakpoint_count): Likewise.
8964 (arm_linux_get_hw_watchpoint_count): Likewise.
8965 (arm_linux_can_use_hw_breakpoint): Likewise.
8966 (arm_hwbp_type): New type.
8967 (arm_hwbp_control_t): Likewise.
8968 (struct arm_linux_hw_breakpoint): Likewise.
8969 (struct arm_linux_thread_points): Likewise.
8970 (arm_threads): New global variable.
8971 (arm_linux_find_breakpoints_by_tid): New function.
8972 (arm_hwbp_control_initialize): Likewise.
8973 (arm_hwbp_control_is_enabled): Likewise.
8974 (arm_hwbp_control_disable): Likewise.
8975 (arm_linux_hw_breakpoint_initialize): Likewise.
8976 (arm_linux_get_hwbp_type): Likewise.
8977 (arm_linux_hw_watchpoint_initialize): Likewise.
8978 (arm_linux_hw_breakpoint_equal): Likewise.
8979 (arm_linux_insert_hw_breakpoint1): Likewise.
8980 (arm_linux_remove_hw_breakpoint1): Likewise.
8981 (arm_linux_insert_hw_breakpoint): Likewise.
8982 (arm_linux_remove_hw_breakpoint): Likewise.
8983 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8984 (arm_linux_insert_watchpoint): Likewise.
8985 (arm_linux_remove_watchpoint): Likewise.
8986 (arm_linux_stopped_data_address): Likewise.
8987 (arm_linux_stopped_by_watchpoint): Likewise.
8988 (arm_linux_watchpoint_addr_within_range): Likewise.
8989 (arm_linux_new_thread): Likewise.
8990 (arm_linux_thread_exit): Likewise.
8991 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8992 related target callbacks. Register arm_linux_new_thread and
8993 arm_linux_thread_exit.
8994 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8995 * arm-tdep.c (arm_pc_is_thumb): Make global.
8996 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8997
b5db5dfc
UW
89982011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8999
9000 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9001 per-frame locations while within a function epilogue.
9002
e25b2cfa
PM
90032011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9004
9005 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9006 to GNU coding standards.
9007
4af53f97
PM
90082011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9009
9010 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9011 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9012 (ser_windows_close): Only call CancelIo if function exists.
9013 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9014 to check for existence of CancelIo function in kernel32 DLL.
9015
d0e92d82
HZ
90162011-02-21 Hui Zhu <teawater@gmail.com>
9017
9018 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9019 * ax-gdb.c (gen_printf_expr_callback): New function.
9020 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9021 * ax-general.c (ax_memcpy): New function.
9022 (ax_print): Handle "printf".
9023 (ax_reqs): Ditto.
9024 * ax.h (ax_memcpy): Forward declare.
9025 * common/ax.def (invalid2): Removed.
9026 (printf): New entry.
9027 * printcmd.c (printcmd.h): New include.
9028 (string_printf): New function.
9029 (ui_printf): Removed.
9030 (printf_command): Remove static. Call string_printf.
9031 (eval_command): Call string_printf.
9032 * printcmd.h: New file.
9033 * tracepoint.c (validate_actionline,
9034 encode_actions_1): handle printf_command.
9035
7d357efd
MS
90362011-02-19 Michael Snyder <msnyder@vmware.com>
9037
9038 * reverse.c (delete_one_bookmark): Argument is now bookmark
9039 id rather than pointer to bookmark struct.
9040 (delete_bookmark_command): Use get_number_or_range.
9041 (goto_bookmark_command): Parse with get_number instead of strtoul.
9042 (bookmark_1): New function. Print info for one bookmark.
9043 (bookmarks_info): Use get_number_or_range and bookmark_1.
9044
7a45ebd7
MS
90452011-02-18 Michael Snyder <msnyder@vmware.com>
9046
f2eb0bc8 9047 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9048 get_number_or_range.
65ebfb52 9049 (thread_apply_command): Ditto.
7a45ebd7 9050
94d5e490
TT
90512011-02-18 Tom Tromey <tromey@redhat.com>
9052
9053 * common/ax.def: New file.
9054 * ax.h (enum agent_op): Use ax.def.
9055 * ax-general.c (aop_map): Use ax.def.
9056
c7f96d2b
TT
90572011-02-18 Tom Tromey <tromey@redhat.com>
9058
9059 * ax-general.c (aop_map): Add pick and rot.
9060 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9061 <DW_OP_rot>: Implement.
9062 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9063 (ax_pick): Declare.
9064 * ax-general.c (ax_pick): New function.
9065
66694b75
TT
90662011-02-18 Tom Tromey <tromey@redhat.com>
9067
9068 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9069
eeaafae2
JK
90702011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9071 Tom Tromey <tromey@redhat.com>
9072
9073 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9074 make_symbol_overload_list_block with NULL BLOCK.
9075 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9076
3c3fe74c
PA
90772011-02-18 Pedro Alves <pedro@codesourcery.com>
9078
9079 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9080 * breakpoint.h (get_number_or_range): Declare.
9081 * printcmd.c (ALL_DISPLAYS): Declare.
9082 (delete_display): Reimplement taking a display pointer.
9083 (undisplay_command): Accept a range of displays to delete, using
9084 get_number_or_range.
9085
13163d80
PM
90862011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9087
9088 * c-valprint.c (c_val_print): Add embedded_offset to address
9089 for arrays of unspecified length.
9090 * p-valprint.c (pascal_val_print): Likewise.
9091
b434a28f
YQ
90922011-02-18 Yao Qi <yao@codesourcery.com>
9093
9094 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9095 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9096 (thumb_process_displaced_insn): New.
9097 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9098 call to arm_process_displaced_insn.
9099 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9100
9f6f94ff
TT
91012011-02-17 Tom Tromey <tromey@redhat.com>
9102
9103 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9104 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9105 compile_dwarf_to_ax. No longer static. Call
9106 dwarf2_compile_cfa_to_ax.
9107 (locexpr_tracepoint_var_ref): Update.
9108 (loclist_tracepoint_var_ref): Update.
9109 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9110 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9111 argument; add 'gdbarch' and 'pc'.
9112 (dwarf2_compile_cfa_to_ax): New function.
9113 (dwarf2_frame_cache): Update.
9114
e67ad678
JB
91152011-02-17 Joel Brobecker <brobecker@adacore.com>
9116
9117 * ada-lang.c (ada_type_of_array): Fix the size of the array
9118 in the case of an unconstrained packed array.
9119
946ebb0d
YQ
91202011-02-17 Yao Qi <yao@codesourcery.com>
9121
9122 * common/Makefile.in: Add more targets for make.
9123
1ba1b353
TT
91242011-02-16 Tom Tromey <tromey@redhat.com>
9125
9126 * dwarf2loc.c (unimplemented): Fix typo.
9127
b1bfef65
TT
91282011-02-16 Tom Tromey <tromey@redhat.com>
9129
9130 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9131 (compile_dwarf_to_ax) <default>: Use unimplemented.
9132 <DW_OP_deref>: Update.
9133 (disassemble_dwarf_expression): Update.
9134 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9135 (decode_locdesc): Update.
9136 * dwarf2expr.h (dwarf_stack_op_name): Update.
9137
5f1e6f19
TT
91382011-02-16 Tom Tromey <tromey@redhat.com>
9139
9140 * ax.h (struct aop_map) <name>: Now const.
9141
a0c78a73
PA
91422011-02-16 Tom Tromey <tromey@redhat.com>
9143
9144 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9145 than axs_rvalue.
9146
946ebb0d 91472011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9148
9149 * infrun.c (get_displaced_step_closure_by_addr): New.
9150 * inferior.h: Declare it.
9151 * arm-tdep.c: (arm_pc_is_thumb): Call
9152 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9153 returns non-NULL.
9154
08807d5a
PA
91552011-02-16 Pedro Alves <pedro@codesourcery.com>
9156 Jan Kratochvil <jan.kratochvil@redhat.com>
9157
9158 gdb/
9159 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9160
29976f3f
PA
91612011-02-16 Pedro Alves <pedro@codesourcery.com>
9162 Jan Kratochvil <jan.kratochvil@redhat.com>
9163
9164 * value.c (value_contents_copy_raw): Extend describing comment.
9165 Assert that the destination contents we're overwriting are wholly
9166 available.
fb68ae73 9167 (value_contents_copy): Extend describing comment.
29976f3f 9168
cd24cfaa
PA
91692011-02-16 Pedro Alves <pedro@codesourcery.com>
9170 Jan Kratochvil <jan.kratochvil@redhat.com>
9171
9172 * value.c (value_available_contents_eq): Remove redundant local
9173 variables. Fix available contents comparision.
9174 * value.h (value_available_contents_eq): Extend describing
9175 comment.
9176
60bbf338
YQ
91772011-02-16 Yao Qi <yao@codesourcery.com>
9178
9179 * thread.c (info_threads_command): Add missing i18n markup and remove
9180 trailing newline.
9181
17450429
PP
91822011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9183
9184 * breakpoint.c (longjmp_names): New variable.
9185 (struct breakpoint_objfile_data): New type.
9186 (breakpoint_objfile_key): New variable.
9187 (msym_not_found): New variable.
9188 (msym_not_found_p): New predicate.
9189 (get_breakpoint_objfile_data): New function.
9190 (create_overlay_event_breakpoint): Check per-objfile cache for
9191 symbols first.
9192 (create_longjmp_master_breakpoint): Likewise.
9193 (create_std_terminate_master_breakpoint): Likewise.
9194 (create_exception_master_breakpoint): Likewise.
9195 (_initialize_breakpoint): Register per-objfile data key.
9196
af02033e
PP
91972011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9198
9199 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9200 parameter value.
9201 (create_longjmp_master_breakpoint): Loop over longjmp names.
9202 (create_std_terminate_master_breakpoint): Const-propagate parameter
9203 value.
9204 (update_breakpoints_after_exec): Adjust.
9205 (breakpoint_re_set): Adjust.
9206
60f98dde
MS
92072011-02-15 Michael Snyder <msnyder@vmware.com>
9208
cdf99611
MS
9209 * thread.c (info_threads_command): Process arg as thread id,
9210 or list of thread ids.
9211 (thread_find_command): New command.
9212 (_initialize_thread): Document argument for info threads.
9213 Document 'thread find' command.
9214 * NEWS: Document new command "thread find".
60f98dde 9215
0feedb2c
JK
92162011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9217
9218 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9219 * aclocal.m4: Regenerated with aclocal-1.11.1.
9220 * common/configure: Regenerate with autoconf-2.64.
9221
648cd113
KW
92222011-02-15 Ken Werner <ken.werner@de.ibm.com>
9223
9224 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9225 bool data type to a size of one byte.
9226
5657161f
PA
92272011-02-15 Pedro Alves <pedro@codesourcery.com>
9228 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 * target.c (memory_xfer_live_readonly_partial): Document where to
9231 look for interface description.
9232
494e194e
YQ
92332011-02-15 Yao Qi <yao@codesourcery.com>
9234
9235 PR tdep/12352
9236 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9237 order to store PC value on stack instead of text section.
9238
d9492458
TJB
92392011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9240
9241 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9242 the EFP register set size.
9243 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9244 data from the VMX register.
9245 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9246 and write data from/to the VMX register.
9247
cdf99611
MS
92482011-02-14 Michael Snyder <msnyder@vmware.com>
9249
9250 * command.h (enum command_class): New class 'no_set_class', for
9251 "show" commands without a corresponding "set" command.
9252 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9253 * copying.c (_initialize_copying): Ditto for "show copying" and
9254 "show warranty".
9255 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9256 "show version".
9257 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9258 which there is no corresponding "set" command (eg. "show copying").
9259
424447ee
PA
92602011-02-14 Pedro Alves <pedro@codesourcery.com>
9261 Jan Kratochvil <jan.kratochvil@redhat.com>
9262
9263 * exec.c (section_table_available_memory): Change `len' parameter
9264 type to ULONGEST.
9265 * exec.h (section_table_available_memory): Ditto.
9266 * value.h (read_value_memory): Rename the `offset' parameter to
9267 `embedded_offset'.
9268
c0f61f9c 92692011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9270 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9271
9272 * memrange.c (compare_mem_ranges): Mention sort order in
9273 describing comment.
9274 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9275 * tracepoint.c (traceframe_available_memory): Extend comment to
9276 mention what happens to RESULT when the target does not support
9277 the query.
9278
6bfc80c7
PA
92792011-02-14 Pedro Alves <pedro@codesourcery.com>
9280 Jan Kratochvil <jan.kratochvil@redhat.com>
9281
9282 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9283 range.
9284
e7303042
PA
92852011-02-14 Pedro Alves <pedro@codesourcery.com>
9286
9287 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9288 No longer handle NULL values.
9289
8af8e3bc
PA
92902011-02-14 Pedro Alves <pedro@codesourcery.com>
9291
9292 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9293 * value.c: Include "exceptions.h".
9294 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9295 generic error.
9296 * cp-abi.c: Include gdb_assert.h.
9297 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9298 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9299 errors.
9300 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9301 parameters. No longer returns -1 on error.
9302 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9303 `val' parameters.
9304 * cp-valprint.c: Include exceptions.h.
9305 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9306 the baseclass_offset. Handle unavailable base classes. Use
9307 val_print_invalid_address.
9308 * p-valprint.c: Include exceptions.h.
9309 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9310 when fetching the baseclass_offset. No longer expect
9311 baseclass_offset returning -1. Handle unavailable base classes.
9312 Use val_print_invalid_address.
9313 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9314 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9315 `embedded_offset' and `val' parameters. Adjust.
9316 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9317 parameter, and change its type to gdb_byte pointer. Add
9318 `embedded_offset' and `val' parameters. Adjust. No longer expect
9319 baseclass_offset returning -1.
9320 (value_dynamic_cast): Use value_contents_for_printing rather than
9321 value_contents. Adjust.
9322 (search_struct_field): No longer expect baseclass_offset returning
9323 -1.
9324 (search_struct_method): If reading memory from the target is
9325 necessary, wrap it in a new value to pass to baseclass_offset. No
9326 longer expect baseclass_offset returning -1.
9327 (find_method_list): No longer expect baseclass_offset returning
9328 -1. Use value_contents_for_printing rather than value_contents.
9329 * valprint.c (val_print_invalid_address): New function.
9330 * valprint.h (val_print_invalid_address): Declare.
9331 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9332 and `val' parameters. No longer expect baseclass_offset returning
9333 -1. Adjust.
9334 * gnu-v2-abi.c: Include "exceptions.h".
9335 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9336 parameters. Handle unavailable memory. Recurse through
9337 gnuv2_baseclass_offset directly, rather than through
9338 baseclass_offset. No longer returns -1 on not found, instead
9339 throw an error.
9340 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9341 `val' parameters. Adjust.
9342
1b28d0b3
PA
93432011-02-14 Pedro Alves <pedro@codesourcery.com>
9344
9345 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9346 almost but not quite adjacent.
9347
ec0a52e1
PA
93482011-02-14 Pedro Alves <pedro@codesourcery.com>
9349
9350 * value.h (value_entirely_available): Declare.
9351 * value.c (value_entirely_available): New function.
9352 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9353 real type if the pointer is unavailable.
9354
24e6bcee
PA
93552011-02-14 Pedro Alves <pedro@codesourcery.com>
9356
9357 * valops.c (value_repeat): Use read_value_memory instead of
9358 read_memory.
9359
39d37385
PA
93602011-02-14 Pedro Alves <pedro@codesourcery.com>
9361
9362 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9363 * value.c (value_contents_copy_raw, value_contents_copy): New
9364 functions.
9365 (value_primitive_field): Use value_contents_copy_raw instead of
9366 memcpy.
9367 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9368 memcpy.
9369 (value_array, value_slice): Ditto.
9370 * valarith.c (value_subscripted_rvalue): Use
9371 value_contents_copy_raw instead of memcpy.
9372
a3d34bf4
PA
93732011-02-14 Pedro Alves <pedro@codesourcery.com>
9374
9375 <unavailable> references.
9376
9377 * valops.c (get_value_at): Use value_from_contents_and_address,
9378 avoiding read_memory.
9379
9fc6d940
PA
93802011-02-14 Pedro Alves <pedro@codesourcery.com>
9381
9382 * c-valprint.c (c_val_print): Print a string with unavailable
9383 contents as an array.
9384
5467c6c8
PA
93852011-02-14 Pedro Alves <pedro@codesourcery.com>
9386
9387 * value.h (unpack_bits_as_long): Delete declaration.
9388 (unpack_value_bits_as_long): Declare.
9389 (unpack_value_field_as_long): Declare.
9390 (value_field_bitfield): Declare.
9391 * value.c (unpack_bits_as_long): Rename to...
9392 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9393 value parameters. Return the extracted result in a new output
9394 parameter. If the value contents are unavailable, return false,
9395 otherwise return true.
9396 (unpack_value_bits_as_long): New.
9397 (unpack_field_as_long): Rename to...
9398 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9399 Add embedded_offset and value parameters. Return the extracted
9400 result in a new output parameter. If the value contents are
9401 unavailable, return false, otherwise return true.
9402 (unpack_value_field_as_long): New.
9403 (unpack_field_as_long_1): New.
9404 (unpack_field_as_long): Reimplement as wrapper around
9405 unpack_value_field_as_long_1.
9406 (value_field_bitfield): New function.
9407 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9408 unpack_value_bits_as_long. Mark the value as unavailable, if it
9409 is unavailable.
9410 * jv-valprint.c (java_print_value_fields): Use
9411 value_field_bitfield.
9412 * p-valprint.c (pascal_object_print_value_fields): Use
9413 value_field_bitfield.
9414 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9415
3158c6ed
PA
94162011-02-14 Pedro Alves <pedro@codesourcery.com>
9417
9418 * value.c (get_internalvar_integer): Also return the int value of
9419 TYPE_CODE_INT INTERNALVAR_VALUE values.
9420 (set_internalvar): Don't special case TYPE_CODE_INT.
9421
9fbdca0d
PA
94222011-02-14 Pedro Alves <pedro@codesourcery.com>
9423
9424 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9425 INTERNALVAR_POINTER.
9426 <pointer>: Delete.
9427 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9428 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9429 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9430
c8c1c22f
PA
94312011-02-14 Pedro Alves <pedro@codesourcery.com>
9432
9433 * value.h (value_available_contents_eq): Declare.
9434 * value.c (find_first_range_overlap): New function.
9435 (value_available_contents_eq): New function.
9436 * valprint.c (val_print_array_elements): Use
9437 value_available_contents_eq.
9438 * ada-valprint.c (val_print_packed_array_elements): Use
9439 value_available_contents_eq.
9440 * jv-valprint.c (java_value_print): Use
9441 value_available_contents_eq.
9442
e6e4e701
PA
94432011-02-14 Pedro Alves <pedro@codesourcery.com>
9444
9445 * target.c (target_read_live_memory): New function.
9446 (memory_xfer_live_readonly_partial): New.
9447 (memory_xfer_partial): If reading from a traceframe, fallback to
9448 reading unavailable read-only memory from read-only regions of
9449 live target memory.
9450 * tracepoint.c (disconnect_tracing): Adjust.
9451 (set_current_traceframe): New, factored out from
9452 set_traceframe_number.
9453 (set_traceframe_number): Reimplement to only change the traceframe
9454 number on the GDB side.
9455 (do_restore_current_traceframe_cleanup): Adjust.
9456 (make_cleanup_restore_traceframe_number): New.
9457 (cur_traceframe_number): New global.
9458 (tfile_open): Set cur_traceframe_number to no traceframe.
9459 (set_tfile_traceframe): New function.
9460 (tfile_trace_find): If looking up a traceframe using any method
9461 other than by number, make sure the current tfile traceframe
9462 matches gdb's current traceframe. Update the current tfile
9463 traceframe if the lookup succeeded.
9464 (tfile_fetch_registers, tfile_xfer_partial)
9465 (tfile_get_trace_state_variable_value): Make sure the remote
9466 traceframe matches gdb's current traceframe.
9467 * remote.c (remote_traceframe_number): New global.
9468 (remote_open_1): Set it to -1.
9469 (set_remote_traceframe): New function.
9470 (remote_fetch_registers, remote_store_registers)
9471 (remote_xfer_memory, remote_xfer_partial)
9472 (remote_get_trace_state_variable_value): Make sure the remote
9473 traceframe matches gdb's current traceframe.
9474 (remote_trace_find): If looking up a traceframe using any method
9475 other than by number, make sure the current remote traceframe
9476 matches gdb's current traceframe. Update the current remote
9477 traceframe if the lookup succeeded.
9478 * infrun.c (fetch_inferior_event): Adjust.
9479 * tracepoint.h (set_current_traceframe): Declare.
9480 (get_traceframe_number, set_traceframe_number): Add describing
9481 comments.
9482
e6ca34fc
PA
94832011-02-14 Pedro Alves <pedro@codesourcery.com>
9484
9485 Mark pieces of values as unavailable if the corresponding memory
9486 is unavailable.
9487
9488 * valops.c: Include tracepoint.h.
9489 (value_fetch_lazy): Use read_value_memory.
9490 (read_value_memory): New.
9491 * value.h (read_value_memory): Declare.
9492 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9493 * exec.c (section_table_available_memory): New function.
9494 * exec.h (section_table_available_memory): Declare.
9495
2a7498d8
PA
94962011-02-14 Pedro Alves <pedro@codesourcery.com>
9497
9498 * Makefile.in (SFILES): Add memrange.c.
9499 (HFILES_NO_SRCDIR): Add memrange.h.
9500 (COMMON_OBS): Add memrange.o.
9501 * memrange.c: New file.
9502 * memrange.h: New file.
9503 * tracepoint.c: Include memrange.h.
9504 (struct mem_range): Delete.
9505 (mem_range_s): Delete.
9506 (traceframe_available_memory): New function.
9507 * tracepoint.h (traceframe_available_memory): Declare.
9508
b3b9301e
PA
95092011-02-14 Pedro Alves <pedro@codesourcery.com>
9510
9511 * target.h (struct traceframe_info): Forward declare.
9512 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9513 (struct target_ops) <to_traceframe_info>: New field.
9514 (target_traceframe_info): New.
9515 * target.c (update_current_target): Inherit and default
9516 to_traceframe_info.
9517 * remote.c (PACKET_qXfer_traceframe_info): New.
9518 (remote_protocol_features): Register qXfer:traceframe-info:read.
9519 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9520 (remote_traceframe_info): New.
9521 (init_remote_ops): Install it.
9522 (_initialize_remote): Install "set/show remote traceframe-info"
9523 commands.
9524 * tracepoint.h (parse_traceframe_info): Declare.
9525 * tracepoint.c (struct mem_range): New.
9526 (mem_range_s): New typedef.
9527 (struct traceframe_info): New.
9528 (traceframe_info): New global.
9529 (free_traceframe_info): New function.
9530 (clear_traceframe_info): New function.
9531 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9532 info.
9533 (build_traceframe_info): New function.
9534 (tfile_traceframe_info): New function.
9535 (init_tfile_ops): Install tfile_traceframe_info.
9536 (traceframe_info_start_memory, free_result): New functions.
9537 (memory_attributes, traceframe_info_elements): New globals.
9538 (parse_traceframe_info, get_traceframe_info): New functions.
9539 * features/traceframe-info.dtd: New file.
9540 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9541
4e07d55f
PA
95422011-02-14 Pedro Alves <pedro@codesourcery.com>
9543
9544 Base support for <unavailable> value contents.
9545
4e07d55f
PA
9546 * value.h (value_bytes_available): Declare.
9547 (mark_value_bytes_unavailable): Declare.
9548 * value.c (struct range): New struct.
9549 (range_s): New typedef.
9550 (ranges_overlap): New function.
9551 (range_lessthan): New function.
9552 (ranges_contain_p): New function.
9553 (struct value) <unavailable>: New field.
9554 (value_bytes_available): New function.
9555 (mark_value_bytes_unavailable): New function.
9556 (require_not_optimized_out): Constify parameter.
9557 (require_available): New function.
9558 (value_contents_all, value_contents): Require all bytes be
9559 available.
9560 (value_free): Free `unavailable'.
9561 (value_copy): Copy `unavailable'.
9562 * valprint.h (val_print_unavailable): Declare.
9563 * valprint.c (valprint_check_validity): Rename `offset' parameter
9564 to `embedded_offset'. If printing a scalar, check whether the
9565 value chunk is available.
9566 (val_print_unavailable): New.
9567 (val_print_scalar_formatted): Check whether the value is
9568 available.
9569 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9570 pretty-printing unavailable values.
9571
bc9a5551
JK
95722011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9573
9574 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9575 * c-typeprint.c (c_type_print_args): Update the function comment. New
9576 variable param_type, initialize it. Remove const/volatile qualifiers
9577 for language_cplus and !show_artificial. Use param_type.
9578
93b55aa1
JK
95792011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9580
9581 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9582 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9583 * symtab.h (struct symtab) <next>: Comment extension.
9584
181d9476
YQ
95852011-02-12 Yao Qi <yao@codesourcery.com>
9586
9587 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9588
b708a5c7
JK
95892011-02-11 Yao Qi <yao@codesourcery.com>
9590
9591 * common/Makefile.in: Add copyright header.
9592
c5187ac6
PA
95932011-02-11 Pedro Alves <pedro@codesourcery.com>
9594
9595 * infrun.c (proceed): Move switching out and in of tfind mode from
9596 here ...
9597 (fetch_inferior_event): ... to here.
9598
4f3e6fb7
YQ
95992011-02-11 Yao Qi <yao@codesourcery.com>
9600
9601 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9602 libcommon.a.
9603 * configure.ac: Add common to sub dir.
9604 * configure: Regenerate.
9605
b708a5c7
JK
96062011-02-11 Yao Qi <yao@codesourcery.com>
9607
9608 Build libcommon.a.
9609
9610 * common/Makefile.in: New.
9611 * common/configure.ac: New.
9612 * common/aclocal.m4: New.
9613 * common/configure: Generate.
9614
2287cc7e
PA
96152011-02-10 Pedro Alves <pedro@codesourcery.com>
9616
9617 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9618 side of the parenthesis.
9619
9620 Merge from GCC:
9621 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9622 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9623
fd62cb89
MS
96242011-02-08 Michael Snyder <msnyder@vmware.com>
9625
9626 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9627
56d2815c
JK
96282011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9629
9630 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9631 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9632 psubd and paddd.
9633
4f7d61a8
JK
96342011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9635
9636 PR 12361.
9637 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9638 phsubsw.
9639 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9640 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9641
54fcddd0
UW
96422011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9643
9644 * dwarf2read.c (read_subroutine_type): Set special calling
9645 convention flag for functions compiled by IBM XL C for OpenCL.
9646 * ppc-sysv-tdep.c: Include "dwarf2.h"
9647 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9648 calling convention.
9649 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9650 IBM OpenCL vector types calling convention.
9651 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9652 (ppc_sysv_abi_broken_return_value): Likewise.
9653 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9654 types calling convention.
9655 (ppc64_sysv_abi_return_value): Likewise.
9656 * spu-tdep.c: Include "dwarf2.h"
9657 (spu_return_value): Implement IBM OpenCL vector types calling
9658 convention.
9659
d6dafb7c
UW
96602011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9661
9662 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9663 correct ABI for AltiVec vector arguments.
9664
32b72a42
PA
96652011-02-07 Pedro Alves <pedro@codesourcery.com>
9666
9667 * valprint.c (val_print): Extend comment.
9668 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9669 interface explanation to val_print.
9670 (ada_val_print_array): Adjust comment to current interface.
9671 (print_field_values): Adjust comment to current interface.
9672 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9673 explanation to val_print.
9674 * f-valprint.c (f_val_print): Ditto.
9675 * jv-valprint.c (java_val_print): Ditto.
9676 * m2-valprint.c (m2_val_print): Ditto.
9677 * p-valprint.c (pascal_val_print): Ditto.
9678
9998af43
TJB
96792011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9680
9681 * breakpoint.c (parse_breakpoint_sals): Fix description.
9682
505500db 96832011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9684 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9685
9686 * python/py-inferior.c (python_on_normal_stop): New function.
9687 (python_on_resume): New function.
9688 (python_inferior_exit): New function.
9689 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9690 inferior_exit observers.
9691 * python/py-evtregistry.c: New file.
9692 * python/py-threadevent.c : New file.
9693 * python/py-event.c: New file.
9694 * python/py-evts.c: New file.
9695 * python/py-continueevent.c: New file.
9696 * python/py-bpevent.c: New file.
9697 * python/py-signalevent.c: New file.
9698 * python/py-exetiedevent.c: New file.
9699 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9700 Move struct breakpoint_object from here...
9701 * python/python-internal.h: ... to here.
9702 * python/py-event.h: New file.
9703 * python/py-events.h: New file.
9704 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9705 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9706 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9707 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9708 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9709 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9710 Add build rules for all the above.
9711
9e0ac564
TT
97122011-02-04 Tom Tromey <tromey@redhat.com>
9713
9714 * dwarf2read.c (dwarf2_section_empty_p): New function.
9715 (dwarf2_read_section): Use dwarf2_section_empty_p.
9716 (dwarf2_section_size): New function.
9717 (dwarf2_get_section_info): Unconditionally read section.
9718 (dwarf2_read_index): Use dwarf2_section_empty_p.
9719 (partial_read_comp_unit_head): Use dwarf2_section_size.
9720 (dwarf2_symbol_mark_computed): Likewise.
9721
eee5b35e
DD
97222011-02-04 David Daney <ddaney@caviumnetworks.com>
9723
9724 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9725
385203ed
DD
97262011-02-04 David Daney <ddaney@caviumnetworks.com>
9727
9728 * mips-linux-tdep.c: Include xml-syscall.h.
9729 (mips_linux_get_syscall_number): New function.
9730 (mips_linux_init_abi): Add calls to
9731 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9732 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9733 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9734 * syscalls/mips-n32-linux.xml: New file.
9735 * syscalls/mips-n64-linux.xml: New file.
9736 * syscalls/mips-o32-linux.xml: New file.
9737
9277c30c
UW
97382011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9739
9740 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9741 Complain about inverted range entries.
9742 (dwarf2_record_block_ranges): Likewise.
9743
a3be7890
TJB
97442011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9745
9746 Fix some typos.
9747 * breakpoint.c (update_watchpoint): Fix name of the
9748 update_global_location_list function.
9749 (print_one_breakpoint): Fix typo.
9750 (_initialize_breakpoint): Remove extra space in hbreak help
9751 string.
9752 * breakpoint.h (struct bp_location) <length>: Fix field
9753 description.
9754
041274d8
PA
97552011-02-04 Pedro Alves <pedro@codesourcery.com>
9756
9757 * regcache.c (registers_changed_ptid): Don't explictly always
9758 clear `current_regcache'. Only clear current_thread_ptid and
9759 current_thread_arch when PTID matches. Only reinit the frame
9760 cache if PTID matches the current inferior_ptid. Move alloca(0)
9761 call to ...
9762 (registers_changed): ... here.
9763
c1c2ab58
UW
97642011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9765
9766 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9767 starts with __stack_chk_guard as stack guard symbol.
9768
9011945e
AB
97692011-02-03 Andrew Burgess <aburgess@broadcom.com>
9770
9771 * disasm.c (compare_lines): Handle the end of sequence markers
9772 within the line table to better support disassembling over
9773 compilation unit boundaries.
9774
e0634ccf
UW
97752011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9776
9777 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9778 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9779 implementation even if no symbols are available.
9780 (thumb_analyze_prologue): Update call to skip_prologue_function.
9781 (arm_analyze_prologue): Likewise.
9782
0e9e9abd
UW
97832011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9784
9785 * arm-tdep.c: Include "observer.h".
9786 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9787 (arm_exidx_data_key): New static variable.
9788 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9789 (struct arm_exidx_data): Likewise.
9790 (arm_exidx_data_free): New function.
9791 (arm_compare_exidx_entries): Likewise.
9792 (arm_obj_section_from_vma): Likewise.
9793 (arm_exidx_new_objfile): Likewise.
9794 (arm_find_exidx_entry): Likewise.
9795 (arm_exidx_fill_cache): Likewise.
9796 (arm_exidx_unwind_sniffer): Likewise.
9797 (arm_exidx_unwind): New global variable.
9798 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9799 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9800 observer. Register arm_exidx_data_key as objfile data.
9801
2e9e421f
UW
98022011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9803
9804 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9805 due to accessing uninitialized variable. Fix indentation.
9806
580688f3
PA
98072011-02-02 Pedro Alves <pedro@codesourcery.com>
9808
9809 * c-valprint.c (c_value_print): When doing virtual base pointer
9810 adjustment, create a new value with adjusted contents rather than
9811 changing the contents of the value being printed (and getting it
9812 wrong).
9813
3d2c1d41
PA
98142011-02-02 Pedro Alves <pedro@codesourcery.com>
9815
9816 * xml-support.c (xml_find_attribute): New.
9817 (xinclude_start_include): Use it.
9818 * xml-support.h (xml_find_attribute): Declare.
9819 * memory-map.c (memory_map_start_memory)
9820 (memory_map_start_property): Use xml_find_attribute.
9821 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9822 xml_find_attribute.
9823 * remote.c (start_thread): Use xml_find_attribute.
9824 * solib-target.c (library_list_start_segment)
9825 (library_list_start_section, library_list_start_library)
9826 (library_list_start_list): Use xml_find_attribute.
9827 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9828 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9829 (tdesc_start_field): Use xml_find_attribute.
9830
0af3e2db
UW
98312011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9832
9833 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9834 (BUILD_OCL_VTYPES): Update.
9835
c1039e3c
JB
98362011-02-02 Joel Brobecker <brobecker@adacore.com>
9837
9838 * configure.ac: Work around non-GNU sed limitation when computing
9839 python version number.
9840 * configure: Regenerate.
9841
600ea1be
JK
98422011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9843
9844 Fix debug printing of TYPE_INSTANCE.
9845 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9846 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9847
56c12414
JK
98482011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9851 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9852 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9853 * ada-operator.inc: Rename the file to ...
9854 * ada-operator.def: ... here, wrap all the entries by macro OP.
9855 * expprint.c (op_name_standard): Remove all the entries. Include
9856 "std-operator.def" instead.
9857 * expression.h (enum exp_opcode): Include "std-operator.def" and
9858 "ada-operator.def". Move all the entries ...
9859 * std-operator.def: ... here, wrap all the entries by macro OP.
9860
c52b559d
PP
98612011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9862
9863 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9864 * breakpoint.c (remove_jit_event_breakpoints): New function.
9865 * jit.c (jit_descriptor_addr): Delete.
9866 (registering_code): Delete.
9867 (clear_int): Delete.
9868 (jit_inferior_data): New variable.
9869 (struct jit_inferior_data): New type.
9870 (get_jit_inferior_data): New function.
9871 (jit_inferior_data_cleanup): New function.
9872 (jit_read_descriptor): Adjust.
9873 (jit_register_code): Adjust.
9874 (jit_breakpoint_re_set_internal): New function; move code here ...
9875 (jit_inferior_init): ... from here.
9876 (jit_breakpoint_re_set): Adjust.
9877 (jit_reset_inferior_data_and_breakpoints): New function.
9878 (jit_inferior_created_observer): Adjust.
9879 (jit_inferior_exit_hook): Adjust.
9880 (jit_executable_changed_observer): New function.
9881 (jit_event_handler): Adjust.
9882 (_initialize_jit): Adjust.
9883
e839132d
MS
98842011-01-31 Michael Snyder <msnyder@vmware.com>
9885
9886 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9887 line.
9888
47a80e90
TT
98892011-01-31 Tom Tromey <tromey@redhat.com>
9890
9891 PR python/12216:
9892 * python/python.c (execute_gdb_command): Call
9893 prevent_dont_repeat.
9894 * top.c (suppress_dont_repeat): New global.
9895 (dont_repeat): Use it.
9896 (prevent_dont_repeat): New function.
9897 * command.h (prevent_dont_repeat): Declare.
9898
45a43567
TT
98992011-01-31 Tom Tromey <tromey@redhat.com>
9900
9901 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9902 * python/py-breakpoint.c (bppy_set_silent): Use
9903 breakpoint_set_silent.
9904 (bppy_set_thread): Use breakpoint_set_thread.
9905 (bppy_set_task): Use breakpoint_set_task.
9906 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9907 (breakpoint_set_task): Declare.
9908 (make_breakpoint_silent): Remove.
9909 * breakpoint.c (breakpoint_set_silent): New function.
9910 (breakpoint_set_thread): Likewise.
9911 (breakpoint_set_task): Likewise.
9912 (make_breakpoint_silent): Remove.
9913
09d682a4
TT
99142011-01-31 Tom Tromey <tromey@redhat.com>
9915
9916 * breakpoint.h (user_breakpoint_p): Declare.
9917 * breakpoint.c (user_breakpoint_p): New function.
9918 (breakpoint_1): Use it.
9919 (save_breakpoints): Likewise.
9920
9c4ea6c5
JB
99212011-01-31 Joel Brobecker <brobecker@adacore.com>
9922
9923 * configure.ac: Add handling of Python distribution on Windows.
9924 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9925 sysconfig variables are not defined, then do not use them.
9926 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9927 instead. On Windows, return all paths using forward-slashes
9928 rather than backslashes.
9929
ac534cba
JB
99302011-01-31 Joel Brobecker <brobecker@adacore.com>
9931
9932 * configure.ac: Remove fallback behavior for building
9933 against Python. Remove tweaking of Python include path.
9934 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9935 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9936 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9937 Always restore CPPFLAGS and LIBS after linking test.
9938 * configure: Regenerated.
9939 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9940 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9941 * python/python-internal.h: Adjust includes of Python .h files.
9942
c2f0d045
JB
99432011-01-31 Joel Brobecker <brobecker@adacore.com>
9944
9945 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9946 in error message.
9947
6b0c4c1f
JB
99482011-01-31 Joel Brobecker <brobecker@adacore.com>
9949
9950 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9951 value test.
9952
672c9795
YQ
99532011-01-31 Yao Qi <yao@codesourcery.com>
9954
9955 * arm-linux-nat.c: Update calls to regcache_register_status
9956 instead of regcache_valid_p.
9957 * aix-thread.c: Likewise.
9958 * i386gnu-nat.c: Likewise.
9959
80b23b6a
JK
99602011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9961
9962 Fix crash.
9963 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9964 touching TYPE_FIELD_ARTIFICIAL.
9965
4cd712bd
RE
99662011-01-28 Richard Earnshaw <rearnsha@arm.com>
9967
9968 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9969 Committers.
9970
ffd5ec24
PA
99712011-01-28 Pedro Alves <pedro@codesourcery.com>
9972
9973 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9974 selected, don't try iterating over the traceframe's blocks.
9975 (tfile_has_stack): If there's no traceframe selected, then there's
9976 no stack.
9977 (tfile_has_registers): If there's no traceframe selected, then
9978 there's no registers.
9979
e8c9e0a1
PA
99802011-01-28 Pedro Alves <pedro@codesourcery.com>
9981
9982 * target.c (memory_xfer_partial): No need to restore shadows if we
9983 haven't read anything.
9984
de15c4ab
PA
99852011-01-28 Pedro Alves <pedro@codesourcery.com>
9986
9987 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9988 and val_print_scalar_formatted.
9989
9f41c731
PA
99902011-01-27 Pedro Alves <pedro@codesourcery.com>
9991
9992 * tracepoint.c (tfile_read): New.
9993 (tfile_open): Use it.
9994 (tfile_get_traceframe_address): Use it.
9995 (tfile_trace_find): Use it.
9996 (walk_blocks_callback_func): New typedef.
9997 (match_blocktype): New function.
9998 (traceframe_walk_blocks): New function.
9999 (traceframe_find_block_type): New function.
10000 (tfile_fetch_registers, tfile_xfer_partial)
10001 (tfile_get_trace_state_variable_value): Use
10002 traceframe_find_block_type and tfile_read.
10003
cdefc55d
KB
100042011-01-26 Kevin Buettner <kevinb@redhat.com>
10005
10006 * remote-mips.c: Add internationalization mark ups. Remove
10007 trailing \n from already marked up strings.
10008
a81766d8
TT
100092011-01-26 Tom Tromey <tromey@redhat.com>
10010
10011 * python/py-prettyprint.c (print_string_repr): Clear
10012 'addressprint' option when calling val_print_string.
10013 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10014 option when calling val_print_string.
10015
74aedc46
TT
100162011-01-26 Tom Tromey <tromey@redhat.com>
10017
10018 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10019 GDB_PY_LL_ARG.
10020 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10021 macros.
10022 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10023 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10024 (gdb_py_long_as_ulongest): New defines.
10025 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10026 (gdb_py_int_as_long): Declare.
10027 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10028 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10029 (valpy_long): Add comment.
10030 * python/py-utils.c (get_addr_from_python): Use
10031 gdb_py_long_as_ulongest. Handle overflow properly.
10032 (gdb_py_object_from_longest): New function.
10033 (gdb_py_object_from_ulongest): Likewise.
10034 (gdb_py_int_as_long): Likewise.
10035 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10036 * python/py-symtab.c (salpy_get_pc): Use
10037 gdb_py_long_from_ulongest.
10038 (salpy_get_line): Use PyInt_FromLong.
10039 * python/py-param.c (set_parameter_value): Use
10040 gdb_py_int_as_long.
10041 * python/py-lazy-string.c (stpy_get_address): Use
10042 gdb_py_long_from_ulongest.
10043 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10044 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10045 * python/py-breakpoint.c (bppy_set_thread): Use
10046 gdb_py_int_as_long.
10047 (bppy_set_task): Likewise.
10048 (bppy_set_ignore_count): Likewise.
10049 (bppy_set_hit_count): Likewise.
10050 * python/py-block.c (blpy_get_start): Use
10051 gdb_py_object_from_ulongest.
10052 (blpy_get_end): Likewise.
10053 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10054
e4f6d2ec
TJB
100552011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10056
10057 PR/symtab 11766:
10058 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10059 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10060 equality test for objfile, initialize addr_low if needed.
10061
b30aa278
PA
100622011-01-25 Pedro Alves <pedro@codesourcery.com>
10063
10064 * tui/tui-regs.c (tui_register_format): Remove dead code.
10065
ab2188aa
PA
100662011-01-25 Pedro Alves <pedro@codesourcery.com>
10067
10068 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10069 instead of print_scalar_formatted.
10070 (print_scalar_formatted): Don't handle 's' format strings here,
10071 and add an assertion that we never see such format here.
10072 * valprint.h (val_print_scalar_formatted): Declare.
10073 * valprint.c (val_print_scalar_formatted): New.
10074 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10075 instead of print_scalar_formatted.
10076 * jv-valprint.c (java_val_print): Ditto.
10077 * p-valprint.c (pascal_val_print): Ditto.
10078 * ada-valprint.c (ada_val_print_1): Ditto.
10079 * f-valprint.c (f_val_print): Ditto.
10080 * infcmd.c (registers_info): Ditto.
10081 * m2-valprint.c (m2_val_print): Ditto.
10082
66d61a4c
PA
100832011-01-25 Pedro Alves <pedro@codesourcery.com>
10084
10085 * m2-valprint.c (print_unbounded_array): Pass
10086 value_contents_for_printing rather than value_contents, to
10087 m2_print_array_contents. Also pass in the value.
10088
831adc1f
JK
100892011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10090
10091 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10092 (save_gdb_index_command): Switch to .gdb_index version 4.
10093
20622269
PA
100942011-01-25 Pedro Alves <pedro@codesourcery.com>
10095
10096 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10097 than frame_register, and always pass a valid value to val_print.
10098
585fdaa1
PA
100992011-01-25 Pedro Alves <pedro@codesourcery.com>
10100
10101 Centralize printing "<optimized out>".
10102
10103 * valprint.h (val_print_optimized_out): Declare.
10104 * cp-valprint.c (cp_print_value_fields): Use
10105 val_print_optimized_out.
10106 * jv-valprint.c (java_print_value_fields): Ditto.
10107 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10108 * printcmd.c (print_formatted): Ditto.
10109 * valprint.c (valprint_check_validity): Ditto.
10110 (value_check_printable): Ditto.
10111 (val_print_optimized_out): New.
10112
29ec5263
PA
101132011-01-25 Pedro Alves <pedro@codesourcery.com>
10114
10115 * infcmd.c (default_print_registers_info): Allocate values so to
10116 never pass a NULL value to val_print.
10117
de4127a3
PA
101182011-01-25 Pedro Alves <pedro@codesourcery.com>
10119
10120 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10121 boolean. Make sure to always pass a value that matches the
10122 contents buffer to callees. Preserve `address' for following
10123 iterations.
10124 * value.c (value_contents_for_printing_const): New.
10125 (value_address): Constify value argument.
10126 * value.h (value_contents_for_printing_const): Declare.
10127 (value_address): Constify value argument.
10128
ee99023e
PA
101292011-01-25 Pedro Alves <pedro@codesourcery.com>
10130
10131 * regcache.c (struct regcache_descr): Rename
10132 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10133 and sizeof_cooked_register_valid_p to
10134 sizeof_cooked_register_status.
10135 (init_regcache_descr): Adjust.
10136 (struct regcache): Rename register_valid_p field to
10137 register_status.
10138 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10139 (do_cooked_read): Adjust.
10140 (regcache_valid_p): Rename to ...
10141 (regcache_register_status): ... this. Adjust.
10142 (regcache_invalidate): Adjust.
10143 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10144 Adjust.
10145 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10146 as unavailable, not valid.
10147 (regcache_dump): Adjust.
10148 * regcache.h (enum register_status): New.
10149 (regcache_register_status): Declare.
10150 (regcache_invalidate): Delete declaration.
10151 * corelow.c (get_core_registers): Adjust.
10152 * tracepoint.c (tfile_fetch_registers): Adjust.
10153 * trad-frame.c (REG_VALUE): Rename to ...
10154 (TF_REG_VALUE): ... this.
10155 (REG_UNKNOWN): Rename to ...
10156 (TF_REG_UNKNOWN): ... this.
10157 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10158 * mi/mi-main.c (register_changed_p): Adjust.
10159
99e42fd8
PA
101602011-01-25 Pedro Alves <pedro@codesourcery.com>
10161
10162 * regcache.c (struct regcache_descr): Remove outdated comment.
10163 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10164 overallocate hack.
10165 (regcache_xmalloc): Rename to ...
10166 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10167 Allocate the regcache type accordingly.
10168 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10169 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10170 cooked registers, not raw.
10171 (regcache_dup_no_passthrough): Delete.
10172 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10173 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10174 mention obsolete write_register_bytes.
10175 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10176
f7605bc2
PA
101772011-01-25 Pedro Alves <pedro@codesourcery.com>
10178
10179 Stop remote_read_bytes from handling partial reads itself.
10180
10181 * remote-fileio.c: Include target.h.
10182 (remote_fileio_write_bytes): Delete.
10183 (remote_fileio_func_open, remote_fileio_func_write)
10184 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10185 target_read_memory.
10186 (remote_fileio_func_stat): Use target_read_memory and
10187 target_write_memory.
10188 (remote_fileio_func_gettimeofday): Use target_write_memory.
10189 (remote_fileio_func_system): Use target_read_memory.
10190 * remote.c (remote_write_bytes): Make it static.
10191 (remote_read_bytes): Don't handle partial reads here.
10192 * remote.h (remote_read_bytes): Delete declaration.
10193
efc0eabd
PA
101942011-01-25 Pedro Alves <pedro@codesourcery.com>
10195
10196 Simplify XML parsing a bit.
10197
10198 * xml-support.h (gdb_xml_parse_quick): Declare.
10199 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10200 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10201 parameter.
10202 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10203 gdb_xml_create_parser_and_cleanup_1.
10204 (gdb_xml_parse_quick): New.
10205 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10206 * osdata.c (osdata_parse): Ditto.
10207 * remote.c (remote_threads_info): Ditto.
10208 * solib-target.c (solib_target_parse_libraries): Ditto.
10209 * xml-syscall.c (syscall_parse_xml): Ditto.
10210 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10211
314d366a
KB
102122011-01-24 Kevin Buettner <kevinb@redhat.com>
10213
10214 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10215 with remote-mips.o added to gdb_target_obs.
10216 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10217
a491d753
PA
102182011-01-24 Pedro Alves <pedro@codesourcery.com>
10219
10220 * ada-valprint.c (val_print_packed_array_elements): Pass the
10221 correct struct value to val_print.
10222 (ada_val_print_1): Ditto.
10223
490f124f
PA
102242011-01-24 Pedro Alves <pedro@codesourcery.com>
10225
10226 Don't lose embedded_offset in printing routines throughout.
10227
10228 * valprint.h (val_print_array_elements): Change prototype.
10229 * valprint.c (val_print_array_elements): Add `embedded_offset'
10230 parameter, and adjust to pass it down to val_print, while passing
10231 `valaddr' or `address' unmodified. Take embedded_offset into
10232 account when checking repetitions.
10233 * c-valprint.c (c_val_print): Pass embedded_offset to
10234 val_print_array_elements instead of adjusting `valaddr' and
10235 `address'.
10236 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10237 embedded_offset to val_print_array_elements instead of adjusting
10238 `valaddr'.
10239 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10240 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10241 val_print_array_elements and pascal_object_print_value_fields
10242 instead of adjusting `valaddr'.
10243 (pascal_object_print_value_fields): Add `offset' parameter, and
10244 adjust to use it.
10245 (pascal_object_print_value): Add `offset' parameter, and adjust to
10246 use it.
10247 (pascal_object_print_static_field): Use
10248 value_contents_for_printing/value_embedded_offset, rather than
10249 value_contents.
10250 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10251 parameter, and adjust to use it. Use
10252 value_contents_for_printing/value_embedded_offset, rather than
10253 value_contents.
10254 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10255 (ada_val_print_array): Add `offset' parameter, and adjust to use
10256 it.
10257 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10258 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10259 Instead work with offsets. Use
10260 value_contents_for_printing/value_embedded_offset, rather than
10261 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10262 and use value_from_pointer to extract a target pointer, rather
10263 than value_from_longest.
10264 (print_variant_part): Add `offset' parameter. Replace
10265 `outer_valaddr' parameter by a new `outer_offset' parameter.
10266 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10267 (ada_value_print): Use
10268 value_contents_for_printing/value_embedded_offset, rather than
10269 value_contents.
10270 (print_record): Add `offset' parameter, and adjust to pass it
10271 down.
10272 (print_field_values): Add `offset' parameter. Replace
10273 `outer_valaddr' parameter by a new `outer_offset' parameter.
10274 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10275 Use value_contents_for_printing/value_embedded_offset, rather than
10276 value_contents.
10277 * d-valprint.c (dynamic_array_type): Use
10278 value_contents_for_printing/value_embedded_offset, rather than
10279 value_contents.
10280 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10281 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10282 (java_print_value_fields): Take `offset' into account. Don't
10283 re-adjust `valaddr'. Instead pass down adjusted offsets.
10284 (java_val_print): Take `embedded_offset' into account. Pass it to
10285 java_print_value_fields.
10286 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10287 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10288 down adjusted offsets.
10289 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10290 (f_val_print): Take `embedded_offset' into account.
10291
7bfc9434
JB
102922011-01-21 Joel Brobecker <brobecker@adacore.com>
10293
10294 * inflow.c: Include "gdbcmd.h".
10295 (interactive_mode): New static global, moved here from top.c.
10296 (show_interactive_mode): New function, moved here from top.c.
10297 use gdb_has_a_terminal instead of input_from_terminal_p to
10298 determine the current mode.
10299 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10300 setting.
10301 (_initialize_inflow): Add the "set/show interactive-mode"
10302 commands. Moved here from top.c, after having adjusted slightly
10303 the help text.
10304 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10305 to inflow.c.
10306 (input_from_terminal_p): Remove handling of "interactive-mode"
10307 setting, moved to infow.c.
10308 (init_main): Remove creation of the "set/show interactive-mode"
10309 commands, moved to inflow.c.
10310
44603653
JB
103112011-01-19 Joel Brobecker <brobecker@adacore.com>
10312
10313 * NEWS: Add entry for native ia64-hpux support.
10314
4694da01
TT
103152011-01-19 Tom Tromey <tromey@redhat.com>
10316
10317 PR mi/8618:
10318 * thread.c (free_thread): Free 'name'.
10319 (print_thread_info): Emit thread name. Change CLI output.
10320 (thread_name_command): New function.
10321 (do_captured_thread_select): Emit newline.
10322 (_initialize_thread): Register 'thread name' command.
10323 * target.h (struct target_ops) <to_thread_name>: New field.
10324 (target_thread_name): New macro.
10325 * target.c (update_current_target): Handle to_thread_name.
10326 * python/py-infthread.c (thpy_get_name): New function.
10327 (thpy_set_name): Likewise.
10328 (thread_object_getset): Add "name".
10329 * linux-nat.c (linux_nat_thread_name): New function.
10330 (linux_nat_add_target): Set to_thread_name.
10331 * gdbthread.h (struct thread_info) <name>: New field.
10332
10d44370
JB
103332011-01-18 Joel Brobecker <brobecker@adacore.com>
10334
10335 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10336 (ada_val_print_1): Likewise.
10337
e3acb115
JB
103382011-01-18 Joel Brobecker <brobecker@adacore.com>
10339
10340 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10341 upper limit address is not greater than the function end address
10342 when the upper limit could not be computed using the debugging
10343 info.
10344
dc92e161
TT
103452011-01-17 Tom Tromey <tromey@redhat.com>
10346
10347 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10348 get_regcomp_error.
10349 * utils.c: Include gdb_regex.h.
10350 (do_regfree_cleanup): New function.
10351 (make_regfree_cleanup): Likewise.
10352 (get_regcomp_error): Likewise.
10353 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10354
f55af66d
TT
103552011-01-17 Tom Tromey <tromey@redhat.com>
10356
10357 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10358 re_compile_fastmap.
10359
a5a44b53
PM
103602011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10361
10362 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10363 for internal variables.
10364 (last_was_structop): New static variable.
10365 (COMPLETE): New token.
10366 (field_exp): New rule to group all '.' suffix handling.
10367 Add mark_struct_expression calls when approriate to be able
10368 to correctly find fields for completion.
10369 (yylex): Adapt to handle field completion and set INTVAR when
10370 required.
10371
2c291032
YQ
103722011-01-14 Yao Qi <yao@codesourcery.com>
10373
10374 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10375 save_reggroup, restore_reggroup and all_reggroup.
10376
447b483c
JB
103772011-01-14 Joel Brobecker <brobecker@adacore.com>
10378
10379 * ada-valprint. (ada_printchar): Use the correct type length
10380 in call to ada_emit_char.
10381 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10382
7b64a93b
PM
103832011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10384
10385 * solib-som.h (hpux_major_release): Declare variable here.
10386 * solib-som.c: Remove <sys/utsname.h> header.
10387 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10388 (hpux_major_release): Make global, change default value to
10389 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10390 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10391 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10392 Add "solib-som.h" header.
10393 (set_hpux_major_release): New function.
10394 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10395
4e18c053
MF
103962011-01-14 Mike Frysinger <vapier@gentoo.org>
10397
10398 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10399
a9df6b22
JB
104002011-01-14 Joel Brobecker <brobecker@adacore.com>
10401
10402 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10403 new-line at end of warning message.
10404 (ia64_hpux_store_register): Remove trailing new-line at end of
10405 error message.
10406 * ia64-hpux-tdep.c: Rephrase comment.
10407 * solib-ia64-hpux.c (struct dld_info): Change type of field
10408 dld_flags from "long long" to ULONGEST.
10409
ecb956dd
PA
104102011-01-14 Pedro Alves <pedro@codesourcery.com>
10411
10412 * target.h (deprecated_child_ops): Delete declaration.
10413 * target.c (deprecated_child_ops): Delete definition.
10414
76adfcae
PA
104152011-01-14 Pedro Alves <pedro@codesourcery.com>
10416
10417 * Makefile.in (hpux-thread.o): Delete rule.
10418 * configure.ac: Don't check for HPUX DCE threads support.
10419 * configure, config.in: Regenerate.
10420 * hppa-hpux-nat.c (child_suppress_run): Delete.
10421 (hppa_hpux_child_can_run): Delete.
10422 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10423 * hpux-thread.c: Delete.
10424
042e866e
JB
104252011-01-13 Joel Brobecker <brobecker@adacore.com>
10426
10427 * hpux-thread.c (hpux_pid_to_str): Delete.
10428
4ffa5a33
JB
104292011-01-13 Joel Brobecker <brobecker@adacore.com>
10430
10431 * ada-valprint.c (ada_emit_char): Remove strange code.
10432 Check that c is <= UCHAR_MAX before passing it to isascii.
10433 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10434
de8fa76c
JB
104352011-01-13 Joel Brobecker <brobecker@adacore.com>
10436
10437 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10438 to the case where instream is stdin.
10439
c4de7027
JB
104402011-01-13 Joel Brobecker <brobecker@adacore.com>
10441
10442 * ia64-tdep.h (struct regcache): Forward declare.
10443 (struct ia64_infcall_ops): New struct type.
10444 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10445 and "infcall_ops".
10446 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10447 Renames ia64_find_global_pointer.
10448 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10449 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10450 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10451 methods.
10452 (ia64_infcall_ops): New static global constant.
10453 (ia64_gdbarch_init): Set tdep->infcall_ops.
10454 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10455 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10456 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10457 (ia64_hpux_dummy_code): New static global constant.
10458 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10459 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10460 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10461 New function.
10462 (ia64_hpux_infcall_ops): New static global constant.
10463 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10464 for inferior function calls to work properly on ia64-hpux.
10465
77ca787b
JB
104662011-01-13 Joel Brobecker <brobecker@adacore.com>
10467
10468 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10469 * ia64-tdep.h (struct frame_info): forward declaration.
10470 (struct gdbarch_tdep): Add field size_of_register_frame.
10471 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10472 to determine the size of the register frame.
10473 (ia64_size_of_register_frame): New function.
10474 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10475 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10476 (IA64_HPUX_UREG_REASON): New macro.
10477 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10478 New functions.
10479 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10480 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10481 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10482 objects.
10483
92c9a463
JB
104842011-01-13 Joel Brobecker <brobecker@adacore.com>
10485
10486 Add support for ia64-hpux.
10487 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10488 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10489
10490 * configure.host: Add handling for ia64-hpux hosts. Add associated
10491 floatformats.
10492 * configure.tgt: Add handling for ia64-hpux targets.
10493 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10494 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10495 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10496
f688d93f
JB
104972011-01-13 Joel Brobecker <brobecker@adacore.com>
10498
10499 [ttrace] Compute thread list immediately after attach.
10500 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10501 New subprogram.
10502 (inf_ttrace_attach): Use it.
10503
1b89e62f
JB
105042011-01-13 Joel Brobecker <brobecker@adacore.com>
10505
10506 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10507 if we could not determine the frame's function address. Instead,
10508 use the frame's PC, and then continue.
10509
3e5e6e2a
JB
105102011-01-13 Joel Brobecker <brobecker@adacore.com>
10511
10512 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10513 not already defined.
10514
825d6d8a
JB
105152011-01-13 Joel Brobecker <brobecker@adacore.com>
10516
10517 * ia64-tdep.c (ia64_struct_type_p): New function.
10518 (ia64_extract_return_value): Handle integral values that are
10519 less than 8 bytes long.
10520 (ia64_push_dummy_call): Likewise.
10521
7458e667
JB
105222011-01-13 Joel Brobecker <brobecker@adacore.com>
10523
10524 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10525 floatformat_ia64_ext.
10526 (floatformat_ia64_ext_big): New static const.
10527 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10528
1b05df00
TT
105292011-01-12 Tom Tromey <tromey@redhat.com>
10530
10531 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10532 messages.
10533 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10534 (mi_cmd_thread_list_ids): Likewise.
10535 (mi_cmd_data_list_changed_registers): Likewise.
10536 (mi_cmd_data_list_register_values): Likewise.
10537 (mi_cmd_data_write_register_values): Likewise.
10538 (mi_cmd_data_evaluate_expression): Likewise.
10539 (mi_cmd_data_read_memory): Likewise.
10540 (mi_cmd_data_read_memory_bytes): Likewise.
10541 (mi_cmd_data_write_memory): Likewise.
10542 (mi_cmd_enable_timings): Likewise.
10543 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10544 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10545 (mi_cmd_var_delete): Likewise.
10546 (mi_cmd_var_set_format): Likewise.
10547 (mi_cmd_var_show_format): Likewise.
10548 (mi_cmd_var_info_num_children): Likewise.
10549 (mi_cmd_var_list_children): Likewise.
10550 (mi_cmd_var_info_type): Likewise.
10551 (mi_cmd_var_info_expression): Likewise.
10552 (mi_cmd_var_show_attributes): Likewise.
10553 (mi_cmd_var_assign): Likewise.
10554 (mi_cmd_var_update): Likewise.
10555 (mi_cmd_enable_pretty_printing): Likewise.
10556 (mi_cmd_var_set_update_range): Likewise.
10557 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10558 messages.
10559 (mi_cmd_target_file_put): Likewise.
10560 (mi_cmd_target_file_delete): Likewise.
10561 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10562 messages.
10563 (mi_cmd_stack_info_depth): Likewise.
10564 (mi_cmd_stack_list_locals): Likewise.
10565 (mi_cmd_stack_list_args): Likewise.
10566 (mi_cmd_stack_select_frame): Likewise.
10567 (mi_cmd_stack_select_frame): Likewise.
10568 (mi_cmd_stack_info_frame): Likewise.
10569 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10570 messages.
10571 (mi_cmd_file_list_exec_source_files): Likewise.
10572 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10573 (mi_cmd_env_cd): Likewise.
10574 (mi_cmd_env_path): Likewise.
10575 (mi_cmd_env_dir): Likewise.
10576 (mi_cmd_inferior_tty_show): Likewise.
10577 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10578 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10579 (mi_cmd_break_watch): Likewise.
10580
ad422571
TJB
105812011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10582
10583 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10584 (ppc_linux_insert_hw_breakpoint): Likewise.
10585 (ppc_linux_remove_hw_breakpoint): Likewise.
10586 (ppc_linux_insert_watchpoint): Likewise.
10587
c2ff108b
JK
105882011-01-12 Andrew Burgess <aburgess@broadcom.com>
10589 Jan Kratochvil <jan.kratochvil@redhat.com>
10590
10591 PR fortran/11104 and DWARF unbound arrays detection.
10592 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10593 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10594 unspecified upper bound.
10595 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10596 variables array_size_array, tmp_type and offset_item. New variable
10597 array. Remove call to f77_get_upperbound. New variables array_type
10598 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10599 the final call to deprecated_set_value_type.
10600
41e8491f
JK
106012011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10602
10603 Make value allocations more lazy.
10604 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10605 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10606 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10607 instead of allocate_value and set_value_lazy.
10608 * findvar.c (value_of_register_lazy): Likewise.
10609 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10610 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10611 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10612 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10613 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10614 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10615 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10616 the end, remove set_value_lazy there.
10617 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10618 instead of allocate_value and set_value_lazy when possible.
10619 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10620 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10621 of allocate_value and set_value_lazy.
10622 (value_from_contents_and_address): Use allocate_value_lazy instead of
10623 allocate_value and set_value_lazy when possible.
10624
b716877b
AB
106252011-01-12 Andrew Burgess <aburgess@broadcom.com>
10626
10627 * disasm.c (dump_insns): Support dumping opcodes for MI.
10628 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10629 dumping of instruction opcodes.
10630
d5ae309f
JB
106312011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10632
10633 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10634 appropiately.
10635
98871305
TT
106362011-01-11 Tom Tromey <tromey@redhat.com>
10637
10638 * thread.c (do_captured_thread_select): Emit newline before
10639 printing frame.
10640
c378eb4e
MS
106412011-01-11 Michael Snyder <msnyder@vmware.com>
10642
10643 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10644 * score-tdep.c: Ditto.
10645 * score-tdep.h: Ditto.
10646 * ser-base.c: Ditto.
10647 * ser-go32.c: Ditto.
10648 * serial.c: Ditto.
10649 * serial.h: Ditto.
10650 * ser-mingw.c: Ditto.
10651 * ser-pipe.c: Ditto.
10652 * ser-tcp.c: Ditto.
10653 * ser-unix.c: Ditto.
10654 * sh64-tdep.c: Ditto.
10655 * shnbsd-nat.c: Ditto.
10656 * sh-tdep.c: Ditto.
10657 * sh-tdep.h: Ditto.
10658 * solib.c: Ditto.
10659 * solib-darwin.c: Ditto.
10660 * solib-frv.c: Ditto.
10661 * solib.h: Ditto.
10662 * solib-irix.c: Ditto.
10663 * solib-osf.c: Ditto.
10664 * solib-pa64.c: Ditto.
10665 * solib-som.c: Ditto.
10666 * solib-spu.c: Ditto.
10667 * solib-sunos.c: Ditto.
10668 * solib-svr4.c: Ditto.
10669 * solist.h: Ditto.
10670 * sol-thread.c: Ditto.
10671 * somread.c: Ditto.
10672 * source.c: Ditto.
10673 * source.h: Ditto.
10674 * sparc64-linux-tdep.c: Ditto.
10675 * sparc64-tdep.c: Ditto.
10676 * sparc-linux-nat.c: Ditto.
10677 * sparc-linux-tdep.c: Ditto.
10678 * sparc-sol2-nat.c: Ditto.
10679 * sparc-sol2-tdep.c: Ditto.
10680 * sparc-tdep.c: Ditto.
10681 * sparc-tdep.h: Ditto.
10682 * spu-tdep.c: Ditto.
10683 * stabsread.c: Ditto.
10684 * stabsread.h: Ditto.
10685 * stack.c: Ditto.
10686 * symfile.c: Ditto.
10687 * symfile.h: Ditto.
10688 * symmisc.c: Ditto.
10689 * symtab.c: Ditto.
10690 * symtab.h: Ditto.
10691 * target.c: Ditto.
10692 * target-descriptions.c: Ditto.
10693 * target-descriptions.h: Ditto.
10694 * target.h: Ditto.
10695 * target-memory.c: Ditto.
10696 * terminal.h: Ditto.
10697 * thread.c: Ditto.
10698 * top.c: Ditto.
10699 * tracepoint.c: Ditto.
10700 * tracepoint.h: Ditto.
10701 * trad-frame.h: Ditto.
10702 * typeprint.c: Ditto.
10703
581e13c1
MS
107042011-01-11 Michael Snyder <msnyder@vmware.com>
10705
10706 * ui-file.c: Comment cleanup, mostly periods and spaces.
10707 * ui-file.h: Ditto.
10708 * ui-out.c: Ditto.
10709 * ui-out.h: Ditto.
10710 * utils.c: Ditto.
10711 * v850-tdep.c: Ditto.
10712 * valarith.c: Ditto.
10713 * valops.c: Ditto.
10714 * valprint.c: Ditto.
10715 * valprint.h: Ditto.
10716 * value.c: Ditto.
10717 * value.h: Ditto.
10718 * varobj.c: Ditto.
10719 * varobj.h: Ditto.
10720 * vax-tdep.c: Ditto.
10721 * vec.c: Ditto.
10722 * vec.h: Ditto.
10723 * version.h: Ditto.
10724 * windows-nat.c: Ditto.
10725 * windows-tdep.c: Ditto.
10726 * xcoffread.c: Ditto.
10727 * xcoffsolib.c: Ditto.
10728 * xml-support.c: Ditto.
10729 * xstormy16-tdep.c: Ditto.
10730 * xtensa-tdep.c: Ditto.
10731 * xtensa-tdep.h: Ditto.
10732
90e4670f
TJB
107332011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10734
10735 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10736 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10737
e09342b5
TJB
107382011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10739 Thiago Jung Bauermann <bauerman@br.ibm.com>
10740
10741 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10742 * breakpoint.h
e09342b5
TJB
10743 (struct breakpoint_ops) <resources_needed>: New method.
10744 Initialize to NULL in all existing breakpoint_ops instances.
10745 (struct breakpoint) <exact>: New field.
10746 (target_exact_watchpoints): Declare external global.
10747 * breakpoint.c (target_exact_watchpoints): New global flag.
10748 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10749 b->enable_state to bp_enabled before calling
10750 hw_watchpoint_used_count.
10751 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10752 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10753 if available.
10754 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10755 if the watchpoint is exact.
10756 (resources_needed_watchpoint): New function.
10757 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10758 (watch_command_1): Set b->exact if the user asked for an exact
10759 watchpoint and one can be set.
10760 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10761 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10762 the user asks for an exact watchpoint and one can be set. Return
10763 number of needed debug registers to watch the expression.
10764 * gdbtypes.c (is_scalar_type): New function, based on
10765 valprint.c:scalar_type_p.
10766 (is_scalar_type_recursive): New function.
10767 * gdbtypes.h (is_scalar_type_recursive): Declare.
10768 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10769 handle regions when ranged watchpoints are available.
10770 (create_watchpoint_request): New function.
10771 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10772 create_watchpoint_request.
10773 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10774 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10775 `set powerpc' and `show powerpc' commands.
10776 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10777 Mention documentation comment in the target macro.
10778 (target_region_ok_for_hw_watchpoint): Document return value.
10779
9fa40276
TJB
107802011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10781
10782 * breakpoint.c (update_watchpoint): Decide on using a software or
10783 hardware watchpoint after the bp_locations are created.
10784
77b06cd7
TJB
107852010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10786
10787 Convert hardware watchpoints to use breakpoint_ops.
10788 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10789 <insert_location>: ... this. Return int instead of void.
10790 Accept pointer to struct bp_location instead of pointer to
10791 struct breakpoint. Adapt all implementations.
f2eb0bc8 10792 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10793 <remove_location>: ... this. Accept pointer to struct bp_location
10794 instead of pointer to struct breakpoint. Adapt all implementations.
10795 * breakpoint.c (insert_catchpoint): Delete function.
10796 (insert_bp_location): Call the watchpoint or catchpoint's
10797 breakpoint_ops.insert method.
10798 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10799 breakpoint_ops.remove method.
10800 (insert_watchpoint, remove_watchpoint): New functions.
10801 (watchpoint_breakpoint_ops): New structure.
10802 (watch_command_1): Initialize the OPS field.
10803 * inf-child.c (inf_child_insert_fork_catchpoint)
10804 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10805 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10806 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10807 Delete functions.
10808 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10809 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10810 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10811 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10812 * target.c (update_current_target): Change default implementation of
10813 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10814 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10815 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10816 to_set_syscall_catchpoint to return_one.
10817 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10818 (debug_to_insert_exec_catchpoint): Report return value.
10819 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10820 (to_insert_exec_catchpoint): Change declaration to return int instead
10821 of void.
10822
9b20d036
MS
108232011-01-11 Michael Snyder <msnyder@vmware.com>
10824
10825 * arm-tdep.c: Internationalization.
10826 * c-lang.c: Ditto.
10827 * charset.c: Ditto.
10828 * fork-child.c: Ditto.
10829 * nto-procfs.c: Ditto.
10830 * ppc-sysv-tdep.c: Ditto.
10831 * procfs.c: Ditto.
10832 * remote-mips.c: Ditto.
10833 * remote.c: Ditto.
10834 * rs6000-nat.c: Ditto.
10835 * rs6000-tdep.c: Ditto.
10836 * target.c: Ditto.
10837 * valops.c: Ditto.
10838 * value.c: Ditto.
10839 * xml-support.c: Ditto.
10840 * mi/mi-cmd-break.c: Ditto.
10841 * mi/mi-cmd-var.c: Ditto.
10842 * mi/mi-interp.c: Ditto.
10843 * mi/mi-main.c: Ditto.
10844
dae477fe
AB
108452011-01-11 Andrew Burgess <aburgess@broadcom.com>
10846
10847 * remote-sim.c (gdbsim_store_register): Update API to
10848 sim_store_register to check more error conditions.
10849
0df8b418
MS
108502011-01-10 Michael Snyder <msnyder@vmware.com>
10851
10852 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10853 * nto-tdep.c: Ditto.
10854 * nto-tdep.h: Ditto.
10855 * objc-exp.y: Ditto.
10856 * objc-lang.c: Ditto.
10857 * objfiles.c: Ditto.
10858 * objfiles.h: Ditto.
10859 * observer.c: Ditto.
10860 * opencl-lang.c: Ditto.
10861 * osabi.c: Ditto.
10862 * parse.c: Ditto.
10863 * parser-defs.h: Ditto.
10864 * p-exp.y: Ditto.
10865 * p-lang.c: Ditto.
10866 * posix-hdep.c: Ditto.
10867 * ppcbug-rom.c: Ditto.
10868 * ppc-linux-nat.c: Ditto.
10869 * ppc-linux-tdep.c: Ditto.
10870 * ppc-linux-tdep.h: Ditto.
10871 * ppcnbsd-tdep.c: Ditto.
10872 * ppcobsd-tdep.c: Ditto.
10873 * ppcobsd-tdep.h: Ditto.
10874 * ppc-sysv-tdep.c: Ditto.
10875 * ppc-tdep.h: Ditto.
10876 * printcmd.c: Ditto.
10877 * proc-abi.c: Ditto.
10878 * proc-flags.c: Ditto.
10879 * procfs.c: Ditto.
10880 * proc-utils.h: Ditto.
10881 * progspace.h: Ditto.
10882 * prologue-value.c: Ditto.
10883 * prologue-value.h: Ditto.
10884 * psympriv.h: Ditto.
10885 * psymtab.c: Ditto.
10886 * p-typeprint.c: Ditto.
10887 * p-valprint.c: Ditto.
10888 * ravenscar-sparc-thread.c: Ditto.
10889 * ravenscar-thread.c: Ditto.
10890 * ravenscar-thread.h: Ditto.
10891 * record.c: Ditto.
10892 * regcache.c: Ditto.
10893 * regcache.h: Ditto.
10894 * remote.c: Ditto.
10895 * remote-fileio.c: Ditto.
10896 * remote-fileio.h: Ditto.
10897 * remote.h: Ditto.
10898 * remote-m32r-sdi.c: Ditto.
10899 * remote-mips.c: Ditto.
10900 * remote-sim.c: Ditto.
10901 * rs6000-aix-tdep.c: Ditto.
10902 * rs6000-nat.c: Ditto.
10903 * rs6000-tdep.c: Ditto.
10904
0d7a18f7
MS
109052011-01-10 Michael Snyder <msnyder@vmware.com>
10906
10907 * charset.c (validate): Internationalization.
10908 * coffread.c (read_one_sym): Ditto.
10909 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10910 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10911 * inflow.c (new_tty): Ditto.
10912 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10913 * m32c-tdep.c (m32c_return_value): Ditto.
10914 * mep-tdep.c (mep_store_return_value): Ditto.
10915 * score-tdep.c (score7_fetch_insn): Ditto.
10916 * ser-mingw.c (pipe_windows_open): Ditto.
10917 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10918 * spu-tdep.c (spu_register_type): Ditto.
10919 * tracepoint.c (trace_find_command): Ditto.
10920 * valarith.c (value_pos): Ditto.
10921
9a153e0b
JB
109222011-01-10 Joel Brobecker <brobecker@adacore.com>
10923
10924 * ada-valprint.c (printstr): Minor comment reformatting.
10925
35ecd2d6
MS
109262011-01-08 Michael Snyder <msnyder@vmware.com>
10927
10928 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10929 markup.
10930
1777feb0
MS
109312011-01-08 Michael Snyder <msnyder@vmware.com>
10932
10933 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10934 * hppa-hpux-tdep.c: Ditto.
10935 * hppa-linux-nat.c: Ditto.
10936 * hppa-linux-tdep.c: Ditto.
10937 * hppanbsd-tdep.c: Ditto.
10938 * hppa-tdep.c: Ditto.
10939 * hppa-tdep.h: Ditto.
10940 * hpux-thread.c: Ditto.
10941 * i386-cygwin-tdep.c: Ditto.
10942 * i386-darwin-nat.c: Ditto.
10943 * i386gnu-nat.c: Ditto.
10944 * i386-linux-nat.c: Ditto.
10945 * i386-linux-tdep.c: Ditto.
10946 * i386-nat.c: Ditto.
10947 * i386-nat.h: Ditto.
10948 * i386nbsd-tdep.c: Ditto.
10949 * i386-sol2-nat.c: Ditto.
10950 * i386-stub.c: Ditto.
10951 * i386-tdep.c: Ditto.
10952 * i386-tdep.h: Ditto.
10953 * i387-tdep.c: Ditto.
10954 * ia64-linux-nat.c: Ditto.
10955 * ia64-linux-tdep.c: Ditto.
10956 * ia64-tdep.c: Ditto.
10957 * infcall.c: Ditto.
10958 * infcall.h: Ditto.
10959 * infcmd.c: Ditto.
10960 * inferior.c: Ditto.
10961 * inferior.h: Ditto.
10962 * infloop.c: Ditto.
10963 * inflow.c: Ditto.
10964 * infrun.c: Ditto.
10965 * interps.c: Ditto.
10966 * interps.h: Ditto.
10967 * iq2000-tdep.c: Ditto.
10968 * irix5-nat.c: Ditto.
10969 * jit.c: Ditto.
10970 * jit.h: Ditto.
10971 * jv-exp.y: Ditto.
10972 * jv-lang.c: Ditto.
10973 * jv-lang.h: Ditto.
10974 * jv-typeprint.c: Ditto.
10975 * jv-valprint.c: Ditto.
10976 * language.c: Ditto.
10977 * language.h: Ditto.
10978 * linespec.c: Ditto.
10979 * linux-fork.c: Ditto.
10980 * linux-nat.c: Ditto.
10981 * linux-thread-db.c: Ditto.
10982 * lm32-tdep.c: Ditto.
10983
025bb325
MS
109842011-01-08 Michael Snyder <msnyder@vmware.com>
10985
10986 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10987 * m2-lang.c: Ditto.
10988 * m2-typeprint.c: Ditto.
10989 * m2-valprint.c: Ditto.
10990 * m32c-tdep.c: Ditto.
10991 * m32r-linux-nat.c: Ditto.
10992 * m32r-rom.c: Ditto.
10993 * m32r-tdep.c: Ditto.
10994 * m32r-tdep.h: Ditto.
10995 * m68hc11-tdep.c: Ditto.
10996 * m58klinux-nat.c: Ditto.
10997 * m68k-tdep.c: Ditto.
10998 * m88k-tdep.c: Ditto.
10999 * m88k-tdep.h: Ditto.
11000 * machoread.c: Ditto.
11001 * macrocmd.c: Ditto.
11002 * macroexp.c: Ditto.
11003 * macrotab.c: Ditto.
11004 * main.c: Ditto.
11005 * maint.c: Ditto.
11006 * mdebugread.c: Ditto.
11007 * mdebugread.h: Ditto.
11008 * memattr.c: Ditto.
11009 * memattr.h: Ditto.
11010 * memory-map.h: Ditto.
11011 * mep-tdep.c: Ditto.
11012 * microblaze-rom.c: Ditto.
11013 * microblaze-tdep.c: Ditto.
11014 * minsyms.c: Ditto.
11015 * mips-irix-tdep.c: Ditto.
11016 * mips-linux-nat.c: Ditto.
11017 * mips-linux-tdep.c: Ditto.
11018 * mips-linux-tdep.h: Ditto.
11019 * mipsnbsd-nat.c: Ditto.
11020 * mipsnbsd-tdep.c: Ditto.
11021 * mipsread.c: Ditto.
11022 * mips-tdep.c: Ditto.
11023 * mips-tdep.h: Ditto.
11024 * mn10300-linux-tdep.c: Ditto.
11025 * mn10300-tdep.c: Ditto.
11026 * mn10300-tdep.h: Ditto.
11027 * monitor.c: Ditto.
11028 * monitor.h: Ditto.
11029 * moxie-tdep.c: Ditto.
11030 * moxie-tdep.h: Ditto.
11031 * mt-tdep.c: Ditto.
11032
1642781b
MF
110332011-01-08 Mike Frysinger <vapier@gentoo.org>
11034
11035 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11036
394b0adb
JB
110372011-01-08 Robert Millan <rmh@gnu.org>
11038
11039 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11040
b670013c
MS
110412011-01-07 Michael Snyder <msnyder@vmware.com>
11042
11043 * charset.c (_initialize_charset): Fix typo in string.
11044
a743e542
MS
110452011-01-07 Michael Snyder <msnyder@vmware.com>
11046
11047 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11048 for i18n.
f2eb0bc8 11049 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11050 Split line so that operator goes to beginning of line.
11051 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11052 assignment out of if statement.
11053
0963b4bd
MS
110542011-01-07 Michael Snyder <msnyder@vmware.com>
11055
11056 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11057 * ada-lang.h: Ditto.
11058 * ada-tasks.c: Ditto.
11059 * ada-valprint.c: Ditto.
11060 * aix-threads.c: Ditto.
11061 * alpha-linux-nat.c: Ditto.
11062 * alpha-linux-tdep.c: Ditto.
11063 * alpha-mdebug-tdep.c: Ditto.
11064 * alpha-nat.c: Ditto.
11065 * alpha-osf1-tdep.c: Ditto.
11066 * alpha-tdep.c: Ditto.
11067 * alphabsd-nat.c: Ditto.
11068 * alphabsd-tdep.c: Ditto.
11069 * amd64-darwin-tdep.c: Ditto.
11070 * amd64-linux-nat.c: Ditto.
11071 * amd64-linux-tdep.c: Ditto.
11072 * amd64-sol2-tdep.c: Ditto.
11073 * amd64-tdep.c: Ditto.
11074 * amd64-fbsd-tdep.c: Ditto.
11075 * amd64-nbsd-tdep.c: Ditto.
11076 * amd64-obsd-tdep.c: Ditto.
11077 * amd64-linux-nat.c: Ditto.
11078 * amd64-linux-tdep.c: Ditto.
11079 * arm-tdep.c: Ditto.
11080 * arm-tdep.h: Ditto.
11081 * armnbsd-nat.c: Ditto.
11082 * avr-tdep.c: Ditto.
11083 * bfin-tdep.c: Ditto.
11084 * bsd-kvm.c: Ditto.
11085 * c-typeprintc: Ditto.
11086 * c-valprint.c: Ditto.
11087 * coff-pe-read.h: Ditto.
11088 * coffreead.c: Ditto.
11089 * cris-tdep.c: Ditto.
11090 * d-lang.c: Ditto.
11091 * darwin-nat-info.c: Ditto.
11092 * darwin-nat.c: Ditto.
11093 * dbug-rom.c: Ditto.
11094 * dbxread.c: Ditto.
11095 * dcache.c: Ditto.
11096 * dcache.h: Ditto.
11097 * dec-thread.c: Ditto.
11098 * defs.h: Ditto.
11099 * demangle.c: Ditto.
11100 * dicos-tdep.c: Ditto.
11101 * dictionary.c: Ditto.
11102 * dictionary.h: Ditto.
11103 * dink32-rom.c: Ditto.
11104 * disasm.c: Ditto.
11105 * doublest.c: Ditto.
11106 * dsrec.c: Ditto.
11107 * dummy-frame.c: Ditto.
11108 * dwarf2-frame.c: Ditto.
11109 * dwarf2expr.c: Ditto.
11110 * dwarf2loc.c: Ditto.
11111 * dwarf2read.c: Ditto.
11112 * elfread.c: Ditto.
11113 * environ.c: Ditto.
11114 * eval.c: Ditto.
11115 * event-top.h: Ditto.
11116 * exceptions.c: Ditto.
11117 * exceptions.h: Ditto.
11118 * exec.c: Ditto.
11119 * expprint.c: Ditto.
11120 * expression.h: Ditto.
11121 * f-exp.y: Ditto.
11122 * f-lang.c: Ditto.
11123 * f-lang.h: Ditto.
11124 * f-typeprint.c: Ditto.
11125 * f-valprint.c: Ditto.
11126 * fbsd-nat.c: Ditto.
11127 * findvar.c: Ditto.
11128 * fork-child.c: Ditto.
11129 * frame.c: Ditto.
11130 * frame.h: Ditto.
11131 * frv-linux-tdep.c: Ditto.
11132 * frv-tdep.c: Ditto.
11133 * gcore.c: Ditto.
11134 * gdb-stabs.h: Ditto.
11135 * gdb_assert.h: Ditto.
11136 * gdb_string.h: Ditto.
11137 * gdb_thread_db.h: Ditto.
11138 * gdb_wait.h: Ditto.
11139 * gdbarch.sh: Ditto.
11140 * gdbcore.h: Ditto.
11141 * gdbthread.h: Ditto.
11142 * gdbtypes.c: Ditto.
11143 * gdbtypes.h: Ditto.
11144 * gnu-nat.c: Ditto.
11145 * gnu-nat.h: Ditto.
11146 * gnu-v2-abi.c: Ditto.
11147 * gnu-v3-abi.c: Ditto.
11148 * go32-nat.c: Ditto.
11149 * gdbarch.c: Regenerate.
11150 * gdbarch.h: Regenerate.
11151
ac74f770
MS
111522011-01-07 Michael Snyder <msnyder@vmware.com>
11153
11154 * ax-gdb.c: Adjust some long output strings.
11155 * breakpoint.c: Ditto.
11156 * charset.c: Ditto.
11157 * cp-abi.c: Ditto.
11158 * infcall.c: Ditto.
11159 * infrun.c: Ditto.
11160 * linux-nat.c: Ditto.
11161 * solib-pa64.c: Ditto.
11162 * solib-som.c: Ditto.
11163
d8e22779
TT
111642011-01-06 Tom Tromey <tromey@redhat.com>
11165
11166 PR python/12367:
11167 * NEWS: Add item.
11168 * python/python.c (GdbMethods): Add "newest_frame" method.
11169 * python/python-internal.h (gdbpy_newest_frame): Declare.
11170 * python/py-frame.c (gdbpy_newest_frame): New function.
11171
a255712f
PP
111722010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11173
11174 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11175 * jit.c (jit_debug): New variable.
11176 (show_jit_debug): New function.
11177 (struct target_buffer): Use ULONGEST.
11178 (bfd_open_from_target_memory): Likewise.
11179 (jit_register_code, jit_inferior_init): Add debug output.
11180 (_initialize_jit): Register "debug jit" command.
11181
ccfc3d6e
TT
111822011-01-06 Tom Tromey <tromey@redhat.com>
11183
11184 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11185 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11186 and ARCH_FRAME.
11187
57126e4a
TT
111882011-01-06 Tom Tromey <tromey@redhat.com>
11189
11190 * python/py-frame.c (frapy_block): Use get_frame_block.
11191
16dfc9ce
JB
111922011-01-06 Joel Brobecker <brobecker@adacore.com>
11193
11194 Do not stop on SIGPRIO signals by default
11195 * infrun.c (_initialize_infrun): Unset signal_stop and
11196 signal_print for TARGET_SIGNAL_PRIO.
11197
b1ce2347
JB
111982011-01-06 Joel Brobecker <brobecker@adacore.com>
11199
11200 * ada-tasks.c: Fix style violation in comment.
11201
8f7e195f
JB
112022011-01-06 Joel Brobecker <brobecker@adacore.com>
11203
11204 * linespec.c (decode_compound, find_method): Remove trailing \n
11205 at end of error string.
11206 * solib-irix.c (irix_current_sos): Likewise.
11207 * varobj.c (uninstall_variable): Likewise.
11208
e9bdf92c
JB
112092011-01-06 Joel Brobecker <brobecker@adacore.com>
11210
11211 * copyright.py: New script.
11212 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11213 Launch emacs without exec'ing. Call copyright.py afterwards.
11214
3e43a32a
MS
112152011-01-05 Michael Snyder <msnyder@vmware.com>
11216
11217 * addrmap.c: Shorten lines of >= 80 columns.
11218 * arch-utils.c: Ditto.
11219 * arch-utils.h: Ditto.
11220 * ax-gdb.c: Ditto.
11221 * ax-general.c: Ditto.
11222 * bcache.c: Ditto.
11223 * blockframe.c: Ditto.
11224 * breakpoint.c: Ditto.
11225 * buildsym.c: Ditto.
11226 * c-lang.c: Ditto.
11227 * c-typeprint.c: Ditto.
11228 * charset.c: Ditto.
11229 * coffread.c: Ditto.
11230 * command.h: Ditto.
11231 * corelow.c: Ditto.
11232 * cp-abi.c: Ditto.
11233 * cp-namespace.c: Ditto.
11234 * cp-support.c: Ditto.
11235 * dbug-rom.c: Ditto.
11236 * dbxread.c: Ditto.
11237 * defs.h: Ditto.
11238 * dfp.c: Ditto.
11239 * dfp.h: Ditto.
11240 * dictionary.c: Ditto.
11241 * disasm.c: Ditto.
11242 * doublest.c: Ditto.
11243 * dwarf2-frame.c: Ditto.
11244 * dwarf2expr.c: Ditto.
11245 * dwarf2loc.c: Ditto.
11246 * dwarf2read.c: Ditto.
11247 * elfread.c: Ditto.
11248 * eval.c: Ditto.
11249 * event-loop.c: Ditto.
11250 * event-loop.h: Ditto.
11251 * exceptions.h: Ditto.
11252 * exec.c: Ditto.
11253 * expprint.c: Ditto.
11254 * expression.h: Ditto.
11255 * f-lang.c: Ditto.
11256 * f-valprint.c: Ditto.
11257 * findcmd.c: Ditto.
11258 * frame-base.c: Ditto.
11259 * frame-unwind.c: Ditto.
11260 * frame-unwind.h: Ditto.
11261 * frame.c: Ditto.
11262 * frame.h: Ditto.
11263 * gcore.c: Ditto.
11264 * gdb-stabs.h: Ditto.
11265 * gdb_assert.h: Ditto.
11266 * gdb_dirent.h: Ditto.
11267 * gdb_obstack.h: Ditto.
11268 * gdbcore.h: Ditto.
11269 * gdbtypes.c: Ditto.
11270 * gdbtypes.h: Ditto.
11271 * inf-ttrace.c: Ditto.
11272 * infcall.c: Ditto.
11273 * infcmd.c: Ditto.
11274 * inflow.c: Ditto.
11275 * infrun.c: Ditto.
11276 * inline-frame.h: Ditto.
11277 * language.c: Ditto.
11278 * language.h: Ditto.
11279 * libunwind-frame.c: Ditto.
11280 * libunwind-frame.h: Ditto.
11281 * linespec.c: Ditto.
11282 * linux-nat.c: Ditto.
11283 * linux-nat.h: Ditto.
11284 * linux-thread-db.c: Ditto.
11285 * machoread.c: Ditto.
11286 * macroexp.c: Ditto.
11287 * macrotab.c: Ditto.
11288 * main.c: Ditto.
11289 * maint.c: Ditto.
11290 * mdebugread.c: Ditto.
11291 * memattr.c: Ditto.
11292 * minsyms.c: Ditto.
11293 * monitor.c: Ditto.
11294 * monitor.h: Ditto.
11295 * objfiles.c: Ditto.
11296 * objfiles.h: Ditto.
11297 * osabi.c: Ditto.
11298 * p-typeprint.c: Ditto.
11299 * p-valprint.c: Ditto.
11300 * parse.c: Ditto.
11301 * printcmd.c: Ditto.
11302 * proc-events.c: Ditto.
11303 * procfs.c: Ditto.
11304 * progspace.c: Ditto.
11305 * progspace.h: Ditto.
11306 * psympriv.h: Ditto.
11307 * psymtab.c: Ditto.
11308 * record.c: Ditto.
11309 * regcache.c: Ditto.
11310 * regcache.h: Ditto.
11311 * remote-fileio.c: Ditto.
11312 * remote.c: Ditto.
11313 * ser-mingw.c: Ditto.
11314 * ser-tcp.c: Ditto.
11315 * ser-unix.c: Ditto.
11316 * serial.c: Ditto.
11317 * serial.h: Ditto.
11318 * solib-frv.c: Ditto.
11319 * solib-irix.c: Ditto.
11320 * solib-osf.c: Ditto.
11321 * solib-pa64.c: Ditto.
11322 * solib-som.c: Ditto.
11323 * solib-sunos.c: Ditto.
11324 * solib-svr4.c: Ditto.
11325 * solib-target.c: Ditto.
11326 * solib.c: Ditto.
11327 * somread.c: Ditto.
11328 * source.c: Ditto.
11329 * stabsread.c: Ditto.
11330 * stabsread.c: Ditto.
11331 * stack.c: Ditto.
11332 * stack.h: Ditto.
11333 * symfile-mem.c: Ditto.
11334 * symfile.c: Ditto.
11335 * symfile.h: Ditto.
11336 * symmisc.c: Ditto.
11337 * symtab.c: Ditto.
11338 * symtab.h: Ditto.
11339 * target-descriptions.c: Ditto.
11340 * target-memory.c: Ditto.
11341 * target.c: Ditto.
11342 * target.h: Ditto.
11343 * terminal.h: Ditto.
11344 * thread.c: Ditto.
11345 * top.c: Ditto.
11346 * tracepoint.c: Ditto.
11347 * tracepoint.h: Ditto.
11348 * ui-file.c: Ditto.
11349 * ui-file.h: Ditto.
11350 * ui-out.h: Ditto.
11351 * user-regs.c: Ditto.
11352 * user-regs.h: Ditto.
11353 * utils.c: Ditto.
11354 * valarith.c: Ditto.
11355 * valops.c: Ditto.
11356 * valprint.c: Ditto.
11357 * valprint.h: Ditto.
11358 * value.c: Ditto.
11359 * varobj.c: Ditto.
11360 * varobj.h: Ditto.
11361 * vec.h: Ditto.
11362 * xcoffread.c: Ditto.
11363 * xcoffsolib.c: Ditto.
11364 * xcoffsolib.h: Ditto.
11365 * xml-syscall.c: Ditto.
11366 * xml-tdesc.c: Ditto.
11367
9a2b4c1b
MS
113682011-01-05 Michael Snyder <msnyder@vmware.com>
11369
11370 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11371 * cli/cli-decode.c: Ditto.
11372 * cli/cli-dump.c: Ditto.
11373 * cli/cli-logging.c: Ditto.
11374 * cli/cli-script.c: Ditto.
11375 * cli/cli-setshow.c: Ditto.
11376 * common/signals.c: Ditto.
11377 * mi/mi-cmd-break.c: Ditto.
11378 * mi/mi-cmd-disas.c: Ditto.
11379 * mi/mi-cmd-stack.c: Ditto.
11380 * mi/mi-cmd-var.c: Ditto.
11381 * mi/mi-cmds.c: Ditto.
11382 * mi/mi-common.h: Ditto.
11383 * mi/mi-console.c: Ditto.
11384 * mi/mi-interp.c: Ditto.
11385 * mi/mi-main.c: Ditto.
11386 * osf-share/cma_attr.c: Ditto.
11387 * osf-share/cma_deb_core.h: Ditto.
11388 * osf-share/cma_debug_client.h: Ditto.
11389 * osf-share/cma_handle.h: Ditto.
11390 * osf-share/cma_mutex.h: Ditto.
11391 * osf-share/cma_stack_int.h: Ditto.
11392 * osf-share/cma_tcb_defs.h: Ditto.
11393 * python/py-auto-load.c: Ditto.
11394 * python/py-breakpoint.c: Ditto.
11395 * python/py-cmd.c: Ditto.
11396 * python/py-frame.c: Ditto.
11397 * python/py-objfile.c: Ditto.
11398 * python/py-param.c: Ditto.
11399 * python/py-progspace.c: Ditto.
11400 * python/py-symbol.c: Ditto.
11401 * python/py-value.c: Ditto.
11402 * python/python-internal.h: Ditto.
11403 * python/python.c: Ditto.
11404 * tui/tui-data.c: Ditto.
11405 * tui/tui-disasm.c: Ditto.
11406 * tui/tui-hooks.c: Ditto.
11407 * tui/tui-io.c: Ditto.
11408 * tui/tui-layout.c: Ditto.
11409 * tui/tui-regs.c: Ditto.
11410 * tui/tui-source.c: Ditto.
11411 * tui/tui-stack.c: Ditto.
11412 * tui/tui-win.c: Ditto.
11413 * tui/tui-windata.c: Ditto.
11414 * tui/tui-winsource.c: Ditto.
11415
44944448
JB
114162011-01-05 Joel Brobecker <brobecker@adacore.com>
11417
11418 * configure.ac, gdb.1: Copyright year update.
11419
ebedcab5
JK
114202011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11421
11422 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11423 this_pc_in_block, morestack_msym and morestack_name. Check for
11424 "__morestack" minimal symbol there.
11425
e5cc9f32
JB
114262011-01-03 Joel Brobecker <brobecker@adacore.com>
11427
11428 * symfile.c (find_sym_fns): Add call to dont_repeat.
11429
7b6bb8da
JB
114302011-01-01 Joel Brobecker <brobecker@adacore.com>
11431
11432 Copyright year update in most files (performed by copyright.sh).
11433
71ce852c
JB
114342011-01-01 Joel Brobecker <brobecker@adacore.com>
11435
11436 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11437
c3c1ebe8 11438For older changes see ChangeLog-2010.
c906108c
SS
11439\f
11440Local Variables:
11441mode: change-log
11442left-margin: 8
11443fill-column: 74
11444version-control: never
57da7796 11445coding: utf-8
c906108c 11446End:
This page took 2.006864 seconds and 4 git commands to generate.