* bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a5ff8356 12011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
2
3 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
4
52011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
6
a5ff8356
AS
7 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
8 of `tdep'(-Wshadow).
9
93f2a35e
JK
102011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11
12 Fix compilation --without-expat.
13 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
14 from ...
15 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
16
2268b414
JK
172011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
18 Jan Kratochvil <jan.kratochvil@redhat.com>
19
20 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
21 * features/library-list-svr4.dtd: New file.
22 * remote.c (PACKET_qXfer_libraries_svr4): New.
23 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
24 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
25 * solib-svr4.c (struct svr4_library_list): New.
26 [HAVE_LIBEXPAT]: Include xml-support.h.
27 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
28 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
29 [HAVE_LIBEXPAT] (svr4_library_list_children)
30 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
31 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
32 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
33 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
34 (svr4_read_so_list): Extend the corruption message by addresses.
35 (svr4_current_sos): New variable library_list, call
36 svr4_current_sos_via_xfer_libraries.
37 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
38
585861ea
JK
392011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 PR threads/13448
42 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
43 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
44
9750bca9
JK
452011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
46
47 PR breakpoints/13346
48 * dwarf2read.c (process_psymtab_comp_unit): Set
49 PSYMTABS_ADDRMAP_SUPPORTED.
50 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
51 validity. New field psymtabs_addrmap_supported.
52 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
53 psymtabs_addrmap_supported.
54 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
55 !PSYMTABS_ADDRMAP_SUPPORTED.
56 (dump_psymtab, maintenance_info_psymtabs): Print also
57 psymtabs_addrmap_supported.
58
f28c316a
DE
592011-12-01 Doug Evans <dje@google.com>
60
61 * python/py-type.c (type_object_methods): Fix "array" doc string.
62
fc0ae648
AB
632011-12-01 Andrew Burgess <aburgess@broadcom.com>
64
65 * source.c (print_source_lines_base): Fix missing braces on else
66 clause leading to additional output.
67
d6db1fab
UW
682011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
69
70 * s390-nat.c (SUBOFF): Remove.
71 (s390_native_supply, s390_native_collect): New functions.
72 (supply_gregset, supply_fpregset): Use s390_native_supply.
73 (fill_gregset, fill_fpregset): Use s390_native_collect.
74
75 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
76 (s390_unwind_pseudo_register): New function.
77 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
78 registers instead of PC and CC.
79 (s390_backchain_frame_unwind_cache): Likewise.
80 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
81 full GPR pseudos.
82 (s390_trad_frame_prev_register): New function.
83 (s390_frame_prev_register): Use it.
84 (s390_sigtramp_frame_prev_register): Likewise.
85 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
86 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
87 special callback to unwind any pseudo.
88
89 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
90 * features/s390-core64.xml: Likewise.
91 * features/s390x-core64.xml: Likewise.
92 * features/s390-linux32.c: Regenerate.
93 * features/s390-linux64.c: Likewise.
94 * features/s390x-linux64.c: Likewise.
95
1dd635ac
UW
962011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
97
98 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
99
0161e4b9
UW
1002011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
101
102 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
103 instruction. Add more diagnostic output.
104
0c36327f
AS
1052011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
106
107 * MAINTAINERS (Write After Approval): Add myself to the list.
108
b4264740
SD
1092011-11-29 Sanjoy Das <sdas@igalia.com>
110
111 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
112 (jit_bfd_try_read_symtab): Fix comments.
113
87326c78
DD
1142011-11-28 DJ Delorie <dj@redhat.com>
115
116 * NEWS: Mention RL78 simulator.
117
1e3a8f45
JB
1182011-11-28 Joel Brobecker <brobecker@adacore.com>
119
120 * symfile.h (struct quick_symbol_functions): Fix the documentation
121 of field map_matching_symbols, as symbols are sorted using
122 strcmp_iw_ordered, not strcmp_iw.
123
265e52c3
JB
1242011-11-28 Paul Hilfinger <hilfinger@adacore.com>
125
126 * symfile.h (struct quick_symbol_functions): Update the
127 documentation for field map_matching_symbols.
128
1a1d5513
JB
1292011-11-28 Joel Brobecker <brobecker@adacore.com>
130
131 * ada-lang.c (compare_names): Fix wrong return value in case
132 string1 starts with the same contents as string2, followed
133 by an underscore that do not start a symbol name suffix.
134
5d9c5995
PM
1352011-11-28 Phil Muldoon <pmuldoon@redhat.com>
136
137 PR python/13369
138 PR python/13374
139
140 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
141 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
142 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
143 exceptions.
144 * python/py-type.c (typy_strip_typedefs): Ditto.
145 (typy_legacy_template_argument): Ditto.
146 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
147 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
148
2bf50f6f
JB
1492011-11-27 Joel Brobecker <brobecker@acacore.com>
150
151 * remote.c (remote_get_tracepoint_status): Delete addrbuf
152 local variable. Avoid use of sprintf_vma.
153
744ab88c
SD
1542011-11-27 Sanjoy Das <sdas@igalia.com>
155
156 Fix regression in jit.exp.
157 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
158 (jit_register_code): Set the jit_objfile_data field to the correct
159 value.
160
46ad3598
UW
1612011-11-25  Uros Bizjak  <ubizjak@gmail.com>
162
163 * alpha-tdep.c (br_opcode): New.
164 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
165 (alpha_deal_with_atomic_sequence): New function.
166 (alpha_gdbarch_init): Handle single stepping of atomic sequences
167 with alpha_deal_with_atomic_sequence.
168
e4c5f296
TG
1692011-11-24 Tristan Gingold <gingold@adacore.com>
170
171 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
172 fields. Add oso_sym, end_sym and nbr_syms.
173 (macho_register_oso): Change interface.
174 (macho_symtab_add_minsym): New function.
175 (macho_symtab_read): Rewritten.
176 (get_archive_prefix_len): Remove trailing blanks.
177 (oso_el_compare_name): Add comment.
178 (struct macho_sym_hash_entry): New structure.
179 (macho_relocate_common_syms): Remove.
180 (macho_sym_hash_newfunc): New function.
181 (macho_resolve_oso_sym_with_minsym): Likewise.
182 (macho_add_oso_symfile): Rewritten.
183 (macho_symfile_read_all_oso): Remove trailing blanks.
184 Adjust code to free oso vector.
185 (macho_symfile_read): Likewise.
186 Move code to initialize minimal symbol
187
130854df
MR
1882011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
189
190 * mips-tdep.c (extended_offset): Fix formatting.
191
3d7bb9d9
DE
1922011-11-23 Doug Evans <dje@google.com>
193
194 * dwarf2read.c (dw2_lookup_symtab): Add comment.
195 (dw2_expand_symtabs_with_filename): Ditto.
196 (dw2_expand_symtabs_matching): Ditto.
197 (dw2_map_symbol_filenames): Ditto.
198
1fbf5ada
JB
1992011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
200
201 * ada-lang.c (assign_aggregate): Minor reformatting.
202
d984108d
JB
2032011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
204
205 * ada-lang.c (assign_aggregate): Remove declaration of local
206 variable `i' which is shadowing another variable with the same
207 name declared in the outer scope.
208
18af8284
JB
2092011-11-23 Joel Brobecker <brobecker@adacore.com>
210
211 * ada-lang.c (get_base_type): Renames base_type. Adjust all
212 calls throughout this file.
213
1fc7b5d7
JB
2142011-11-23 Joel Brobecker <brobecker@adacore.com>
215
216 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
217 FormatMessage.
218
36dfb11c
TT
2192011-11-22 Tom Tromey <tromey@redhat.com>
220
221 PR mi/8444:
222 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
223 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
224 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
225 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
226 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
227 (print_it_catch_syscall, print_it_catch_exec)
228 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
229 (bpstat_print): Add 'kind' argument. Handle
230 TARGET_WAITKIND_LOADED.
231 * infrun.c (normal_stop): Update for bpstat_print change. Don't
232 handle TARGET_WAITKIND_LOADED here.
233 * breakpoint.h (bpstat_print): Update.
234
5bd6aa83
TT
2352011-11-22 Tom Tromey <tromey@redhat.com>
236
237 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
238
f5afdc18
TT
2392011-11-22 Tom Tromey <tromey@redhat.com>
240
241 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
242 Use static_assert to check the size of
243 async_reason_string_lookup.
244 * common/gdb_assert.h (static_assert): New macro.
245
a3769e0c
AM
2462011-11-22 Alan Modra <amodra@gmail.com>
247
248 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
249 destination calculation. Don't expect >> to sign extend. Don't
250 add a break if branch lands inside the sequence anywhere.
251
56767571
KS
2522011-11-21 Keith Seitz <keiths@redhat.com>
253
254 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
255 -var-evaluate-expression of an enumeration and fix expected result.
256 * gdb.mi/mi2-varvdisplay.exp: Likewise.
257
8443c207
KY
2582011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
259
260 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
261 the case where osdata->items is empty. Rename column names to a
262 canonical form to avoid problems with unusual column names.
263
97643830
YQ
2642011-11-21 Yao Qi <yao@codesourcery.com>
265
266 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
267
f196051f
SS
2682011-11-20 Stan Shebs <stan@codesourcery.com>
269
270 * NEWS: Mention tracepoint additions.
271 * breakpoint.h (struct tracepoint): New field traceframe_usage.
272 * breakpoint.c (print_one_breakpoint_location): Identify
273 tracepoints as such when reporting hit counts, report
274 trace buffer usage.
275 (create_tracepoint_from_upload): Copy status info.
276 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
277 add fields user_name, notes, start_time, stop_time.
278 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
279 * tracepoint.c (trace_user): New global.
280 (trace_notes): New global.
281 (trace_stop_notes): New global.
282 (start_tracing): Add argument and trace note handling.
283 (stop_tracing): Ditto.
284 (trace_start_command): Add notes argument.
285 (trace_stop_command): Ditto.
286 (trace_status_command): Report additional status info.
287 (trace_status_mi): Similarly.
288 (trace_save): Update, record tracepoint status.
289 (set_disconnected_tracing): Call target method directly.
290 (send_disconnected_tracing_value): Remove.
291 (set_trace_user): New function.
292 (set_trace_notes): New function.
293 (set_trace_stop_notes): New function.
294 (parse_trace_status): Handle additional status.
295 (parse_tracepoint_status): New function.
296 (parse_tracepoint_definition): Call it.
297 (tfile_get_tracepoint_status): New function.
298 (init_tfile_ops): Use it.
299 (_initialize_tracepoint): Add new setshows.
300 * target.h (struct target_ops): New methods to_get_tracepoint_status
301 and to_set_trace_notes.
302 (target_get_tracepoint_status): New macro.
303 (target_set_trace_notes): New macro.
304 * target.c (update_current_target): Add new methods.
305 * remote.c (remote_get_tracepoint_status): New function.
306 (remote_set_trace_notes): New function.
307 (init_remote_ops): Add them.
308 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
309 (mi_cmd_trace_stop): Ditto.
310
3623dc3a
SD
3112011-11-20 Sanjoy Das <sdas@igalia.com>
312
313 * jit.c: Include regcache.h.
314 (jit_gdbarch_data, jit_frame_unwind): New static variables.
315 (jit_unwind_reg_set_impl, free_reg_value_impl)
316 (jit_unwind_reg_get_impl, jit_frame_sniffer)
317 (jit_frame_unwind_stop_reason, jit_frame_this_id)
318 (jit_frame_prev_register, jit_dealloc_cache)
319 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
320 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
321 jit_prepend_unwinder.
322 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
323
1825a88d
SD
3242011-11-20 Sanjoy Das <sdas@igalia.com>
325
326 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
327 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
328 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
329 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
330 (finalize_symtab, jit_object_close_impl)
331 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
332 (free_objfile_data): New functions.
333 (_initialize_jit): Register jit_objfile_data with a proper cleanup
334 function.
335
784c47ee
SD
3362011-11-20 Sanjoy Das <sdas@igalia.com>
337
338 * jit.c: Include gdb-dlfcn.h.
339 (loaded_jit_reader, reader_init_fn_sym): New static variables.
340 (jit_reader_load, jit_reader_load_command)
341 (jit_reader_unload_command): New functions.
342 (_initialize_jit): Add commands "jit-reader-load" and
343 "jit-reader-unload".
344
a2d08b9e
SD
3452011-11-20 Sanjoy Das <sdas@igalia.com>
346
347 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
348 * config.in: Add new #define HAVE_LIBDL.
349 * configure.ac: Add check for -ldl.
350 * configure: Re-generated by autoconf.
351 * gdb-dlfcn.c: New file.
352 * gdb-dlfcn.h: New file.
353
b8e0a31c
SD
3542011-11-20 Sanjoy Das <sdas@igalia.com>
355
356 * config.in: Add new #defines: JIT_READER_DIR and
357 JIT_READER_DIR_RELOCATABLE.
358 * configure.ac: New GDB directory entry for jit-reader-dir.
359 * configure: Re-generated by autoconf.
360 * jit.c: New static variable: const char *jit_reader_dir.
361 (_initialize_jit): Relocate jit_reader_dir.
362
f997c383
SD
3632011-11-20 Sanjoy Das <sdas@igalia.com>
364
365 * Makefile.in: Add jit-reader.h as a header. Have it installed in
366 $(includedir)/gdb.
367 * configure.ac: Generate a correct value for TARGET_PTR for
368 jit-reader.h. Tell configure to generate jit-reader.h from
369 jit-reader.in.
370 * configure: Re-generated by autoconf.
371 * jit-reader.in: New file.
372 * jit.c: Include jit-reader.h.
373
dc8c0494
SD
3742011-11-20 Sanjoy Das <sdas@igalia.com>
375
376 * MAINTAINERS (Write After Approval): Add myself to the list.
377
01efb936
UW
3782011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
379
380 * findvar.c (read_frame_register_value): Respect value_offset
381 of the register value. Remove big-endian special case.
382
732f3f12
TT
3832011-11-18 Tom Tromey <tromey@redhat.com>
384
385 PR build/7196:
386 * remote.c (putpkt_for_catch_errors): New function.
387 (remote_kill): Use it.
388
bfccc43c
YQ
3892011-11-18 Yao Qi <yao@codesourcery.com>
390
391 * breakpoint.c (create_breakpoint): Produce query message according to
392 breakpoint's type.
393 Allocate tracepoint per correct type.
394 Don't check SALs for pending fast tracepoints.
395 * tracepoint.c (process_tracepoint_on_disconnect): New.
396 (disconnect_tracing): Call process_tracepoint_on_disconnect.
397
3ea46bff
YQ
3982011-11-18 Yao Qi <yao@codesourcery.com>
399
400 * breakpoint.c (install_breakpoint): Add one more parameter so that
401 update_global_location_list is called conditionally.
402 (create_fork_vfork_event_catchpoint): Update.
403 (create_syscall_event_catchpoint): Update.
404 (create_breakpoint_sal): Update.
405 (create_breakpoint_sal): Update. Call do_cleanups before
406 install_breakpoint.
407 * ada-lang.c (create_ada_exception_catchpoint): Update.
408 * breakpoint.h (install_breakpoint): Update declaration.
409
598cfb71
UW
4102011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
411
412 * spu-tdep.c (spu_return_value): Fix handling of
413 TYPE_CALLING_CONVENTION annotation.
414
caf4328c
UW
4152011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
416
417 * skip.c (skip_function_command): Work around uninitialized
418 variable warning.
419
2b54dda2
DM
4202011-11-16 David S. Miller <davem@davemloft.net>
421
422 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
423 'tv_usec' to long for printf since these fields have a type which
424 varies.
425
93bf33fd
DE
4262011-11-15 Doug Evans <dje@google.com>
427
428 * buildsym.c (add_symbol_to_list): Delete outdated comment.
429
9cc10fd1
PK
4302011-11-15 Paul Koning <paul_koning@dell.com>
431
432 * python/py-type.c (typy_get_composite): New function.
433 (typy_nonzero): New function.
434 (typy_values): Rename from typy_fields.
435 (typy_fields): New function.
436 (typy_length): Raise exception if not struct, union, or enum type.
437 (typy_getitem): Ditto.
438 (typy_has_key): Ditto.
439 (typy_make_iter): Ditto.
440
c011a4f4
DE
4412011-11-15 Doug Evans <dje@google.com>
442
443 * NEWS: Mention new parameter basenames-may-differ.
444 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
445 ! basenames_may_differ.
446 * psymtab.c (lookup_partial_symtab): Ditto.
447 * symtab.c (lookup_symtab): Ditto.
448 (basenames_may_differ): New global.
449 (_initialize_symtab): New parameter basenames-may-differ.
450 * symtab.h (basenames_may_differ): Declare.
451
865ecab4
LM
4522011-11-15 Pedro Alves <pedro@codesourcery.com>
453 Luis Machado <lgustavo@codesourcery.com>
454
455 * auxv.c: Include observer.h.
456 (auxv_inferior_data_cleanup): New.
457 (invalidate_auxv_cache_inf): New.
458 (invalidate_auxv_cache): New.
459 (get_auxv_inferior_data): New.
460 (auxv_inferior_data): New static global.
461 (auxv_info): New structure.
462 (target_auxv_search): Use get_auxv_inferior_data instead of
463 target_read_alloc and don't free cached buffers.
464 (fprint_target_auxv): Likewise
465 (_initialize_auxv): Register per-inferior auxv cache and register
466 observers to invalidate auxv cache when needed.
467
ed59ded5
DE
4682011-11-14 Doug Evans <dje@google.com>
469
470 Make "!" an alias for "shell".
471 * NEWS: Add mention.
472 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
473 adding "!" command, always add it.
474 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
475 command of length one.
476
405f8e94
SS
4772011-11-14 Stan Shebs <stan@codesourcery.com>
478 Kwok Cheung Yeung <kcy@codesourcery.com>
479
480 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
481 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
482 the minimum instruction size for fast tracepoints.
483 * target.h (struct target_ops): Add new method
484 to_get_min_fast_tracepoint_insn_len.
485 (target_get_min_fast_tracepoint_insn_len): New.
486 * target.c (update_current_target): Set up new target operation.
487 * remote.c (remote_write_bytes_aux): Fix typo.
488 (remote_get_min_fast_tracepoint_insn_len): New.
489 (init_remote_ops): Initialize new field.
490
3e05895e
TT
4912011-11-14 Tom Tromey <tromey@redhat.com>
492
493 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
494 (encode_actions): Likewise.
495
1e4d1764
YQ
4962011-11-14 Yao Qi <yao@codesourcery.com>
497
498 * remote.c (struct remote_state): <install_in_trace> new field.
499 (PACKET_InstallInTrace): New enum value.
500 (remote_install_in_trace_feature): Support InstallInTrace.
501 (remote_supports_install_in_trace): Likewise.
502 (remote_protocol_features): Likewise.
503 (_initialize_remote): Likewise.
504 (remote_can_download_tracepoint): New.
505 * target.h (struct target): New field
506 `to_can_download_tracepoint'.
507 (target_can_download_tracepoint): New macro.
508 * target.c (update_current_target): Update.
509 * breakpoint.h (struct bp_location): Add comment on field
510 `duplicate'.
3ccd4ac6
YQ
511 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
512 and tracepoint.
1e4d1764
YQ
513 (remove_breakpoints): Don't remove tracepoints.
514 (tracepoint_locations_match ): New.
515 (breakpoint_locations_match): Call it.
516 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
517 (download_tracepoint_locations): New.
518 (update_global_location_list): Call it.
519 * tracepoint.c (find_matching_tracepoint): Delete.
520 (find_matching_tracepoint_location): Renamed from
521 find_matching_tracepoint. Return bp_location rather than
522 tracepoint.
523 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
524 tracepoint is found.
525
e8ba3115
YQ
5262011-11-14 Yao Qi <yao@codesourcery.com>
527
528 * target.h (struct target): <to_download_tracepoint> Change type
529 of parameter from tracepoint to bp_location.
530 * target.c (update_current_target): Update.
531 * tracepoint.c (start_tracing): Update.
532 * remote.c (remote_download_tracepoint): Remove loop for each location
533 of a tracepoint.
534
edcc485a
MR
5352011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
536
537 * i386-nat.c (i386_insert_hw_breakpoint): Call
538 i386_update_inferior_debug_regs.
539 (i386_remove_hw_breakpoint): Likewise.
540
3742cc8b
YQ
5412011-11-14 Yao Qi <yao@codesourcery.com>
542
543 * breakpoint.c (init_raw_breakpoint): Call
544 add_location_to_breakpoint to replace duplicated code.
545 (add_location_to_breakpoint): Adjust the breakpoint's
546 address prior to allocating a location.
547
71eba9c2 5482011-11-12 Matt Rice <ratmice@gmail.com>
549
550 * macrocmd.c (macro_no_macro_info): New function.
551 (macro_expand_command): Use macro_no_macro_info.
552 (macro_expand_once_command): Ditto.
553 (info_macro_command): Add argument processing,
554 move info_definitions_command here.
555 (_initialize_macrocmd): Remove info definitions command.
556 Add arguments to info macro help text.
557 * NEWS: Replace info definitions command with new info macro options.
558
731971ed
KS
5592011-11-11 Keith Seitz <keiths@redhat.com>
560
561 PR gdb/12843
562 * linespec.c (locate_first_half): Keep ':' if it looks
563 like it could be part of a Windows path starting with
564 a drive letter.
565
6953d224
PA
5662011-11-10 Pedro Alves <pedro@codesourcery.com>
567
568 * linux-nat.c (linux_nat_wait): Don't force waking up the event
569 loop when returning a TARGET_WAITKIND_NO_RESUMED.
570
0c94aa73
PA
5712011-11-10 Pedro Alves <pedro@codesourcery.com>
572
573 * target.c (target_waitstatus_to_string): Handle
574 TARGET_WAITKIND_NO_RESUMED.
575
f6b47be4
DE
5762011-11-10 Doug Evans <dje@google.com>
577
74e2f255
DE
578 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
579 `need_fullname'.
580 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
581 (map_partial_symbol_filenames): Ditto. All callers updated.
582 * psymtab.h (map_partial_symbol_filenames): Update prototype.
583 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
584 parameter need_fullname.
585
256f06f3
DE
586 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
587 * source.c (symtab_to_fullname): Ditto.
588
50f182aa
DE
589 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
590 * gdb-demangle.h: ... here. New file.
591 * demangle.c: #include "gdb-demangle.h".
592 (_initialize_demangler): Use initialize_file_ftype for prototype.
593 Move "set demangle" and "set asm-demangle" parameters here from utils.c
594 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
595 from utils.c
596 * utils.c: Update. #include "gdb-demangle.h".
597 * symtab.h (asm_demangle): Delete.
598 (demangle): Move declaration next to use.
599 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
600 * dwarf2read.c: #include "gdb-demangle.h".
601 * gnu-v2-abi.c: Ditto.
602 * jv-typeprint.c: Ditto.
603 * mdebugread.c: Ditto.
604 * p-typeprint.c: Ditto.
605 * stabsread.c: Ditto.
606 * printcmd.c: Ditto.
607 (asm_demangle): Delete declaration.
608 * tui/tui-stack.c: #include "gdb-demangle.h".
609
f6b47be4
DE
610 * python/py-type.c (typy_fields_items): Call check_typedef.
611
22355c90
JB
6122011-11-10 Joel Brobecker <brobecker@adacore.com>
613
614 * findvar.c (read_frame_register_value): Read the correct bytes
615 from registers on big-endian architectures.
616
bd119cf1 6172011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
618
619 * procfs.c (load_syscalls): Make a cleanup.
620 (open_procinfo_files): fd==0 is ok.
621
0a86f364
JB
6222011-11-10 Joel Brobecker <brobecker@adacore.com>
623
624 * procfs.c (iterate_over_mappings): Call do_cleanups before
625 returning.
626
9bc118a5
DE
6272011-11-09 Doug Evans <dje@google.com>
628
629 * gdbtypes.c (check_typedef): Document that this function can
630 throw an exception.
631
a7860e76
TT
6322011-11-09 Tom Tromey <tromey@redhat.com>
633
634 PR c++/13342:
635 * valops.c (value_full_object): Return early if real type is
636 smaller than the enclosing type.
637
60965737
YQ
6382011-11-08 Yao Qi <yao@codesourcery.com>
639
640 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
641
72a2e3dc
MI
6422011-11-08 Meador Inge <meadori@codesourcery.com>
643
644 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
645 register when the frame can't be determined.
646 * arm-tdep.c (arm_analyze_prologue): Ditto.
647
ce3b0ff7
SS
6482011-11-07 Stan Shebs <stan@codesourcery.com>
649
650 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
651
2b914b52
JB
6522011-11-07 Joel Brobecker <brobecker@adacore.com>
653
654 * infrun.c (handle_inferior_event): Minor reformatting.
655
6f809020
DE
6562011-11-05 Doug Evans <dje@google.com>
657
658 * source.c (forget_cached_source_info_for_objfile): Move call to
659 objfile->sf->qf->forget_cached_source_info outside of
660 ALL_OBJFILE_SYMTABS loop.
661 (forget_cached_source_info): Delete unused variable `s'.
662
75d12218
JK
6632011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 * i386-nat.c (dr_ref_count): Remove unused variable.
666
e565b837
DE
6672011-11-05 Doug Evans <dje@google.com>
668
669 * main.c (captured_main): Set lim_at_start before calling
670 make_command_stats_cleanup.
671
0a1c4d10
DE
6722011-11-04 Doug Evans <dje@google.com>
673
674 * utils.c: #include "timeval-utils.h".
675 (cmd_stats): Rename start_time to start_cpu_time.
676 New member start_wall_time.
677 (report_command_stats): Report wall time.
678 (make_command_stats_cleanup): Record start wall time.
679
a1d705ee
TT
6802011-11-04 Tom Tromey <tromey@redhat.com>
681
682 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
683
81de56be
RO
6842011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
685
686 * coff-pe-read.c: Include defs.h before bfd.h.
687
3ab1ec27
PM
6882011-11-04 Phil Muldoon <pmuldoon@redhat.com>
689
690 PR Python/13345
691
692 * python/python.c (python_run_simple_file): Expand tilde in path.
693
cd829959
PM
6942011-11-04 Phil Muldoon <pmuldoon@redhat.com>
695
696 PR Python/13363
697
698 * python/py-type.c (typy_lookup_type): Do not return a type in
699 an exception handler.
700
080ad648
JK
7012011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
702 Eli Zaretskii <eliz@gnu.org>
703
704 * linux-nat.c (_initialize_linux_nat): Improve help
705 for `info proc stat', `info proc status', `info proc cwd',
706 `info proc cmdline' and `info proc exe'.
707
3065dfb6
SS
7082011-11-02 Stan Shebs <stan@codesourcery.com>
709
710 String collection for tracepoints.
711 * NEWS: Mention string collection.
712 * common/ax.def (tracenz): New bytecode.
713 * ax-gdb.h (trace_string_kludge): Declare.
714 * ax-gdb.c: Include valprint.h and c-lang.h.
715 (trace_string_kludge): New global.
716 (gen_traced_pop): Add string case.
717 (agent_command): Add string case.
718 * tracepoint.h (decode_agent_options): Declare.
719 * tracepoint.c: Include cli-utils.h.
720 (decode_agent_options): New function.
721 (validate_actionline): Call it.
722 (encode_actions_1): Ditto.
723 * target.h (struct target_ops): New method to_supports_string_tracing.
724 (target_supports_string_tracing): New macro.
725 * target.c (update_current_target): Add to_supports_string_tracing.
726 * remote.c (struct remote_state): New field string_tracing.
727 (remote_string_tracing_feature): New function.
728 (remote_protocol_features): New feature tracenz.
729 (remote_supports_string_tracing): New function.
730 (init_remote_ops): Set to_supports_string_tracing.
731
f179e162
JK
7322011-11-02 Pedro Alves <pedro@codesourcery.com>
733 Jan Kratochvil <jan.kratochvil@redhat.com>
734
735 * linux-nat.c: Include cli/cli-utils.h.
736 (enum info_proc_what): New.
737 (linux_nat_info_proc_cmd): Rename to ...
738 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
739 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
740 status_f and stat_f from WHAT. Throw error on extra parameters.
741 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
742 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
743 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
744 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
745 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
746 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
747 `info proc cmdline', `info proc exe' and `info proc all' as real
748 subcommands of `info proc'.
749
7b35ec7f 7502011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
751
752 * Makefile.in: (SFILES): Add skip.c.
753 (HFILES_NO_SRCDIR): Add skip.h.
754 (COMMON_OBS): Add skip.o.
755 * skip.h, skip.c: New.
756 * breakpoint.h (set_default_breakpoint): Remove.
757 (get_sal_arch): Declare.
758 * breakpoint.c: Remove default_breakpoint_valid,
759 default_breakpoint_address, default_breakpoint_symtab,
760 default_breakpoint_line, default_breakpoint_pspace variables.
761 (get_sal_arch): Make public.
762 (set_default_breakpoint): Remove.
763 (parse_breakpoint_sals, create_breakpoint, clear_command,
764 decode_line_spec_1): Remove uses of default_breakpoint variables;
765 replaced with function calls into stack.c.
766 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
767 * cli/cli-cmds.c: Add skiplist.
768 (init_cmd_lists): Initialize skiplist.
769 (init_cli_cmds): Fix comment (classes of commands appear in
770 alphabetical order).
771 * infrun.c (handle_inferior_event): Add check that we don't step into
772 a function whose pc is marked for skip.
773 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
774 last_displayed_addr, last_displayed_symtab, last_displayed_line
775 variables.
776 (set_last_displayed_sal): New static function.
777 (print_frame_info): Switch call to set_default_breakpoint to call to
778 set_last_displayed_sal.
779 (clear_last_displayed_sal, last_displayed_sal_is_valid,
780 get_last_displayed_pspace, get_last_displayed_addr,
781 get_last_displayed_symtab, get_last_displayed_line,
782 get_last_displayed_sal): New public functions.
783 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
784 get_last_displayed_pspace, get_last_displayed_addr,
785 get_last_displayed_symtab, get_last_displayed_line,
786 get_last_displayed_sal): Declare.
787
b60e1588
JL
7882011-11-01 Justin Lebar <justin.lebar@gmail.com>
789
790 * MAINTAINERS (Write After Approval): Add myself to the list.
791
d31647d2
YQ
7922011-10-29 Yao Qi <yao@codesourcery.com>
793
794 * infcmd.c (disconnect_command): Call disconnect_tracing.
795
b1d96efd
JK
7962011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
797
798 Code cleanup.
799 * symtab.c (skip_prologue_sal): Code reformatting.
800
4dfb2365
JK
8012011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
802
803 PR symtab/13208
804 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
805 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
806 SAI.
807
0e5bf2a8
PA
8082011-10-28 Pedro Alves <pedro@codesourcery.com>
809
810 * linux-nat.c (linux_nat_filter_event): Remove `options'
811 parameter, and dead code that used it. If we're handling a
812 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
813 in our lwp list, re-add it.
814 (check_zombie_leaders): New.
815 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
816 wait for children with WNOHANG, and always wait for all children.
817 Don't check for no resumed children upfront. Simplify wait loop.
818 Check for zombie thread group leaders after handling all wait
819 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
820 unwaited-for children left.
821 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
822 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
823 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
824 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
825
821296b7
SA
8262011-10-28 Sterling Augustine <saugustine@google.com>
827
828 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
829 * symtab.c (free_completion_list): New function.
830 (do_free_completion_list): Likewise.
831 (default_make_symbol_completion_list_break_on): New variable
832 back_to. Call make_cleanup and discard_cleanups.
833 (make_source_files_completion_list): Likewise.
834
03c3051a
PK
8352011-10-28 Paul Koning <paul_koning@dell.com>
836
837 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
838 * NEWS: Mention deep_items.
839
8e7ebaf5
PA
8402011-10-28 Alen Skondro <askondro@gmail.com>
841
8de33dc2 842 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
843 defined.
844
e0c6ef61
MI
8452011-10-27 Meador Inge <meadori@codesourcery.com>
846
847 * MAINTAINERS (Write After Approval): Add myself to the list.
848
b56d6f31
JB
8492011-10-27 Joel Brobecker <brobecker@adacore.com>
850
851 * value.h (read_frame_register_value): Add declaration.
852 * findvar.c (read_frame_register_value): New function.
853 (value_from_register): Use read_frame_register_value
854 instead of get_frame_register_value + value_contents_copy
855 to get value contents.
856
d234ef5c
DE
8572011-10-27 Doug Evans <dje@google.com>
858
859 * cli/cli-cmds.c (source_script_with_search): Pass full path to
860 source_script_from_stream if it may have been found on the search path.
861 * python/py-auto-load.c (source_section_scripts): Pass full path to
862 source_python_script_for_objfile.
863 * python/python.c (source_python_script): Delete stream parameter.
864 All callers updated.
865 (source_python_script_for_objfile): Ditto.
866 * python/python-internal.h (source_python_script_for_objfile): Update.
867 * python/python.h (source_python_script): Update.
868
d849d44f
TT
8692011-10-27 Tom Tromey <tromey@redhat.com>
870
871 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
872 (ada_sals_for_line): Remove declarations.
873
2231f1fb
KP
8742011-10-27 Kevin Pouget <kevin.pouget@st.com>
875
876 Move unwind reasons to an external .def file
877 * frame.c (frame_stop_reason_string): Rewrite using
878 unwind_stop_reasons.def.
879 * frame.h (enum unwind_stop_reason): Likewise.
880 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
881 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
882 constants for bound-checking.
883 * unwind_stop_reasons.def: New file.
884 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
885 instead of a distinct value.
886
f77b9a5d
PM
8872011-10-27 Phil Muldoon <pmuldoon@redhat.com>
888
889 PR python/13331
890
891 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
892 (convert_values_to_python): Return on Python tuple allocation
893 failure. Return NULL on value conversion error.
894
76dce0be
PM
8952011-10-27 Phil Muldoon <pmuldoon@redhat.com>
896
897 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
898 (bppy_set_task): Ditto.
899 (bppy_delete_breakpoint): Ditto.
900 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
901 (gdbpy_lookup_global_symbol): Ditto.
902 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
903 * python/py-frame.c (frapy_is_valid): Ditto.
904 (frame_info_to_frame_object): Ditto.
905 * python/py-type.c (typy_lookup_type): Ditto.
906 (typy_getitem): Ditto.
907 (typy_has_key): Ditto.
908 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
909
f17b6955
JB
9102011-10-26 Joel Brobecker <brobecker@adacore.com>
911
912 * gdbarch.h: Regenerate.
913
86ba1042
JB
9142011-10-26 Meador Inge <meadori@codesourcery.com>
915
916 * gdbarch.sh (function_list): Use 'pstring' when printing
917 'gcore_bfd_target'.
918 * gdbarch.c: Regenerate.
919
c34fd852
UW
9202011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
921
922 * regcache.c (registers_changed_ptid): Invalidate thread architecture
923 and frame caches if PTID refers to all threads of a process.
924
931bb47f
UW
9252011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
926
927 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
928 to create_breakpoint.
929
88aed45e
UW
9302011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
931
932 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
933 (ppc_sysv_abi_push_dummy_call): Use it.
934 (do_ppc_sysv_return_value): Likewise.
935 (ppc64_sysv_abi_push_dummy_call): Likewise.
936 (ppc64_sysv_abi_return_value): Likewise.
937
3eaf3fa2
PK
9382011-10-26 Paul Koning <paul_koning@dell.com>
939
940 * python/lib/gdb/types.py (deepitems): New function.
941
913460fc
PK
9422011-10-25 Paul Koning <paul_koning@dell.com>
943
944 PR python/13327
945
946 * python/py-value.c (value_to_value_object): Remove fetching of
947 the value if it was lazy.
948 (valpy_get_is_lazy): New function.
949 (valpy_fetch_lazy): New function.
950
2b5b9d09
JB
9512011-10-24 Joel Brobecker <brobecker@adacore.com>
952
953 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
954 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
955
e21ffe51
PA
9562011-10-24 Pedro Alves <pedro@codesourcery.com>
957
958 * linux-nat.c (linux_handle_extended_wait): When handling a clone
959 event, in non-stop, if not stopping, make sure the new lwp has
960 last_resume_kind set to resume_continue. Assert that when we're
961 resuming the new lwp, its last_resume_kind is resume_continue.
962
7aee8dc2
PA
9632011-10-24 Pedro Alves <pedro@codesourcery.com>
964
965 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
966 already set when marking the event thread as not executing in
967 non-stop mode.
968
4b4e080e
PA
9692011-10-24 Pedro Alves <pedro@codesourcery.com>
970
971 * infrun.c (handle_inferior_event): Add debug output for
972 TARGET_WAITKIND_NO_HISTORY.
973
baacfb07
PM
9742011-10-24 Phil Muldoon <pmuldoon@redhat.com>
975
976 * NEWS: Move set/show extended-prompt to "New Options". Expand
977 description. Fix typos.
978
8432bc41
PM
9792011-10-24 Phil Muldoon <pmuldoon@redhat.com>
980
981 PR python/13310
982
983 * python/py-param.c (call_doc_function): Correctly deference on
984 function exit.
985
6cda5a20
JB
9862011-10-21 Joel Brobecker <brobecker@adacore.com>
987
988 * ada-tasks.c (print_ada_task_info): Fix computation of
989 number of tasks displayed in command output.
990
13294f7d
JK
9912011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
992 Ulrich Weigand <uweigand@de.ibm.com>
993
994 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
995 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
996 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
997 gdbarch_pc_regnum and frame_unwind_register_unsigned by
998 gdbarch_unwind_pc.
999
460c1c54
CC
10002011-10-20 Cary Coutant <ccoutant@google.com>
1001
1002 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1003 section to...
1004 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1005 flag. Adjust all callers.
1006 (process_psymtab_comp_unit): Remove adjustment for type section.
1007
a10964d1
AR
10082011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1009
1010 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1011 arguments by adding OBJFILE. Instead of getting objfile from
1012 symbol's symtab, use new argument OBJFILE.
1013 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1014 arguments by adding OBJFILE.
1015 * gdb/dwarf2read.c (new_symbol_full): Change call to
1016 cp_scan_for_anonymous_namespaces to match new signature.
1017 * gdb/stabsread.c (define_symbol): Change call to
1018 cp_scan_for_anonymous_namespaces to match new signature.
1019
27ca1a5b
PM
10202011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1021
1022 PR python/13308
1023 PR python/13309
1024
1025 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1026 leak.
1027 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1028 leak. Delete unused variables.
1029
9df2fbc4
PM
10302011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1031
1032 PR python/12656
1033
1034 * python/py-frame.c (frapy_read_var): Use const struct *block.
1035 * python/py-type.c (typy_lookup_typename): Likewise.
1036 (typy_lookup_type): Likewise.
1037 (typy_legacy_template_argument): Likewise.
1038 (typy_template_argument): Likewise.
1039 (gdbpy_lookup_type): Likewise.
1040 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1041 * python/py-block.c (blpy_block_object): Likewise.
1042 (blpy_iter): Likewise.
1043 (blpy_get_start): Likewise.
1044 (blpy_get_end): Likewise.
1045 (blpy_get_function): Likewise.
1046 (blpy_get_superblock): Likewise.
1047 (set_block): Likewise.
1048 (block_to_block_object): Likewise.
1049 (block_object_to_block): Likewise.
1050 (blpy_is_valid): Likewise.
1051 (blpy_get_global_block): New function.
1052 (blpy_get_static_block): New function.
1053 (blpy_is_global): New function.
1054 (blpy_is_static): New function.
1055 * blockframe.c (block_innermost_frame): Likewise.
1056 * valops.c (value_of_variable): Likewise.
1057 * frame.h: Update prototypes.
1058 * python/python-internal.h: Likewise.
1059 * value.h: Likewise.
1060
4743b735
CC
10612011-10-19 Cary Coutant <ccoutant@google.com>
1062
1063 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1064 type_offset field.
1065
6caca83c
CC
10662011-10-19 Cary Coutant <ccoutant@google.com>
1067
1068 * dwarf2read.c (peek_abbrev_code): New function.
1069 (dw2_get_file_names): Check for dummy compilation units.
1070 (create_debug_types_hash_table): Likewise.
1071 (process_psymtab_comp_unit): Likewise.
1072 (load_partial_comp_unit): Likewise.
1073 (load_full_comp_unit): Likewise.
1074
43136979
AR
10752011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1076
1077 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1078 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1079 pt_phdr if PT_PHDR was found.
1080
0a07729b
TT
10812011-10-17 Joost van der Sluis <joost@cnoc.nl>
1082
1083 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1084 type or "<unnamed type"> when there is no name assigned.
1085 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1086 avoid a sigint when no name is assigned.
1087
21ae7a4d
JK
10882011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1089
1090 Revert:
1091 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1092 * dwarf2expr.c (ctx_no_read_reg): New function.
1093 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1094 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1095 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1096 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1097
32d1c362
DE
10982011-10-16 Doug Evans <dje@google.com>
1099
1100 * NEWS: Document python gdb.printing.register_pretty_printer's new
1101 `replace' parameter.
1102
da096638
KS
11032011-10-14 Keith Seitz <keiths@redhat.com>
1104
1105 PR c++/13225
1106 * eval.c (evaluate_subexp_standard): Do not construct
1107 an array of types; pass the value array directly to
1108 find_overload_match.
1109 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1110 (rank_function): Take an array of values instead of types.
1111 (rank_one_type): Add struct value * parameter.
1112 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1113 (rank_function): For each argument, pass the argument's
1114 value to rank_one_type.
1115 (rank_one_type): Add VALUE parameter.
1116 If the parameter type is a pointer and the argument type
1117 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1118 VALUE is zero.
1119 Update all calls to rank_one_type, passing NULL for new
1120 VALUE parameter.
1121 * valarith.c (value_user_defined_cpp_op): Do not construct
1122 an array of types; pass the value array directly to
1123 find_overload_match.
1124 * valops.c (find_overload_method_list): Take an array of
1125 values instead of types.
1126 Save the type of OBJP for later use.
1127 Update calls to find_oload_champ, and find_oload_champ_namespace.
1128 (find_oload_champ_namespace): Take an array of values instead
1129 of types.
1130 (find_oload_champ_namespace_loop): Likewise.
1131 (find_oload_champ): Likewise.
1132 (classify_oload_match): Inspect all arguments
1133 until INCOMPATIBLE is found. Return the worst badness found
1134 otherwise.
1135 (compare_parameters): Update call to rank_one_type.
1136 * value.h (find_overload_match): Take an array of values instead
1137 of types.
1138
3957565a
JK
11392011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1140
1141 Drop lazy lm_info reading.
1142 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1143 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1144 (lm_info_read): New function.
1145 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1146 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1147 lm_dynamic_from_link_map.
1148 (lm_next, lm_prev, lm_name): Remove.
1149 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1150 initialization incl. read_memory. No longer use lm_name.
1151 (svr4_free_so): Drop lm_info->lm freeing.
1152 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1153 explicit lm_addr and lm initialization.
1154 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1155 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1156 lm_name.
1157
cb08cc53
JK
11582011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1159 Paul Pluzhnikov <ppluzhnikov@google.com>
1160
1161 * defs.h (struct so_list): New forward declaration.
1162 (make_cleanup_free_so): New declaration.
1163 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1164 (svr4_free_so): Move the function here from downwards. Handle NULL
1165 so->lm_info.
1166 (svr4_free_library_list): New.
1167 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1168 Use more cleanups. Use new parameter ignore_first instead of
1169 ignore_first_link_map_entry.
1170 (svr4_current_sos): New variable ignore_first, initialize it. New
1171 variable back_to, use it for svr4_free_library_list protection.
1172 (svr4_free_so): Remove - move upwards.
1173 * utils.c: Include solist.h.
1174 (do_free_so, make_cleanup_free_so): New functions.
1175
22c05d8a
JK
11762011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1177
1178 Fix internal error regression.
1179 * value.c (value_primitive_field): Handle value_optimized_out. Move
1180 packed bitfields comment.
1181
d930d06e
TT
11822011-10-13 Tom Tromey <tromey@redhat.com>
1183
1184 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1185 always released.
1186
2ff6b080
TT
11872011-10-13 Tom Tromey <tromey@redhat.com>
1188
1189 * python/py-type.c (typy_has_key): Make 'field' const.
1190
d6c5869f
LM
11912011-10-13 Luis Machado <lgustavo@codesourcery.com>
1192
1193 * remote.c (remote_save_trace_data): Invert comparison.
1194
a70633a2
LM
11952011-10-13 Luis Machado <lgustavo@codesourcery.com>
1196
1197 * tracepoint.c (trace_save_command): Use filename instead of
1198 args when printing.
1199
e103e986
JK
12002011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1201
1202 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1203 if .size is 0.
1204
db24da6d
YQ
12052011-10-13 Yao Qi <yao@codesourcery.com>
1206
1207 PR gdb/12703
1208 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1209 whether insn is a 32-bit Thumb-2 instruction.
1210 (thumb_in_function_epilogue_p): Likewise.
1211 (thumb_get_next_pc_raw): Likewise.
1212 (arm_breakpoint_from_pc): Likewise.
1213
1d6edc3c
JK
12142011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1215
1216 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1217 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1218 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1219 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1220 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1221 zero DATA.
1222 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1223 validity.
1224 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1225 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1226 clear DATA on zero SIZE.
1227
adabb602
DE
12282011-10-12 Doug Evans <dje@google.com>
1229
1230 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1231 header->first_die_offset here. All callers updated.
1232
5048e516
JK
12332011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1234
1235 Fix compatibility with texinfo versions older than 4.12.
1236 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1237 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1238 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1239 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1240 * configure: Regenerate.
1241 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1242 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1243 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1244
0574c78f
GB
12452011-10-12 Gary Benson <gbenson@redhat.com>
1246
1247 * breakpoint.h (pc_at_non_inline_function): Declare.
1248 * breakpoint.c (is_non_inline_function,
1249 pc_at_non_inline_function): New functions.
1250 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1251 if the stop is at a location where functions cannot be inlined.
1252
12d9289a
PA
12532011-10-12 Pedro Alves <pedro@codesourcery.com>
1254
1255 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1256 the core wanted them stopped, or if they now have a pending event
1257 to report.
ecf8e7f5
PA
1258 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1259 down to stop_and_resume_callback.
1260 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1261 having new pending events after calling linux_nat_filter_event.
12d9289a 1262
96408a79
SA
12632011-10-11 Sterling Augustine <saugustine@google.com>
1264
1265 * dwarf2read.c: Undo inadvertent changes in previous commit.
1266
9c6c53f7
SA
12672011-10-11 Sterling Augustine <saugustine@google.com>
1268
1269 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1270 logic.
1271
0e8aefe7
UW
12722011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1273
1274 * symfile.c (separate_debug_file_exists): Fix condition.
1275
349d1385
DM
12762011-10-11 David S. Miller <davem@davemloft.net>
1277
1278 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1279 static.
1280 * regcache.h (regcache_restore): Remove declaration.
1281
205c306f
DM
1282 * gdbarch.sh: New field 'long_long_align_bit'.
1283 * gdbarch.c, gdbarch.h: Regenerate.
1284 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1285 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1286
941b2081
JK
12872011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 Revert this part of:
1290 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1291 Support @entry in input expressions.
1292 * c-exp.y (ENTRY, unknown_cpp_name): New.
1293 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1294 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1295 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1296 (name_not_typename: ENTRY): New.
1297 (yylex): Recognize ENTRY.
1298
1299 Reimplement @entry in input expressions.
1300 * c-exp.y (ENTRY): New.
1301 (variable: name_not_typename ENTRY): New.
1302 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1303
3c4d7e12
PA
13042011-10-11 Pedro Alves <pedro@codesourcery.com>
1305
1306 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1307 parent and child's pids as soon as we detect a clone event.
1308 Adjust another debug message.
1309
ea23808b
PA
13102011-10-11 Pedro Alves <pedro@codesourcery.com>
1311
1312 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1313 not zombie instead of reading the whole file.
1314
904578ed
JK
13152011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1316
1317 Fix separate debuginfo warning with "remote:" access.
1318 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1319 * symfile.c (get_file_crc): New function with the code moved from ...
1320 (separate_debug_file_exists): ... this function, specifically variables
1321 buffer and count. New variable verified_as_different, set it. Remove
1322 file_crc initialization. Verify also if both files are not the same
1323 manually, if needed.
1324
51370a33
YQ
13252011-10-11 Yao Qi <yao@codesourcery.com>
1326
1327 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1328 to get address.
1329
0838fb57
DE
13302011-10-10 Doug Evans <dje@google.com>
1331
1332 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1333 libthread_db when we load libpthread or the main symbol file.
1334 (thread_db_inferior_created): New function.
1335 (_initialize_thread_db): Attach inferior_created observer.
1336 * linux-nat.c (linux_child_post_attach): Remove call to
1337 check_for_thread_db.
1338 (linux_child_post_startup_inferior): Ditto.
1339 * objfiles.h (OBJF_MAINLINE): Define.
1340 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1341 allocate_objfile when appropriate.
1342
623bd5b7
UW
13432011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1344
1345 PR gdb/13218
1346 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1347 Remove unused variables.
1348 (get_linux_version): Remove function.
1349 (_initialize_arm_linux_nat): Do not call it.
1350
79395f92
PA
13512011-10-10 Pedro Alves <pedro@codesourcery.com>
1352
1353 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1354 new clone lwp if the core asked it to stop. Don't pass on
1355 unexpected signals to the new clone; leave them pending instead.
1356
eff3df78
PA
13572011-10-10 Pedro Alves <pedro@codesourcery.com>
1358
1359 * linux-nat.c (resume_lwp): Remove redundant debug output.
1360
4b60df3d
PA
13612011-10-10 Pedro Alves <pedro@codesourcery.com>
1362
1363 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1364 last_resume_kind before clearing it, and use the copy instead to
1365 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1366 resume_clear_callback in the non-stop path too.
1367
6501578c
YQ
13682011-10-09 Yao Qi <yao@codesourcery.com>
1369
1370 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1371 Honor OPTIONS and VAL's type.
1372 (common_val_print, value_print): Update to pass one more parameter.
1373
5a56e9c5
DE
13742011-10-09 Doug Evans <dje@google.com>
1375
1376 Add new "alias" command.
1377 * NEWS: Mention new command.
1378 * command.h (valid_user_defined_cmd_name_p): Declare.
1379 * defs.h (make_cleanup_dyn_string_delete): Declare.
1380 * utils.c: #include "dyn-string.h".
1381 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1382 * cli/cli-cmds.c: #include "dyn-string.h".
1383 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1384 (init_cli_cmds): Add new command.
1385 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1386
509f0fd9
JK
13872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 Fix compatibility with older GCCs.
1390 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1391 * stack.c (read_frame_arg): Initialize val_deref.
1392
2bda9cc5
JK
13932011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1394
1395 Entry values NEWS entries, DWARF disassembly support.
1396 * NEWS: New entry values entry.
1397 (set print entry-values, show print entry-values)
1398 (set debug entry-values, show debug entry-values): New entries.
1399 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1400 indent. Remove variable start. Move header printing out. Respect
1401 INDENT. Support DW_OP_GNU_entry_value.
1402 (locexpr_describe_location_1): Move the header printing here, extend
1403 the disassemble_dwarf_expression passed parameters.
1404
a471c594
JK
14052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1406
1407 Display @entry parameter values even for references.
1408 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1409 coerce_ref_if_computed.
1410 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1411 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1412 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1413 existing push_dwarf_reg_entry_value call. Add new detection calling
1414 dwarf_block_to_dwarf_reg_deref. Update the error message.
1415 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1416 * dwarf2expr.h
1417 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1418 parameter deref_size, describe it in the comment.
1419 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1420 (dwarf_block_to_dwarf_reg_deref): New declaration.
1421 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1422 deref_size, describe it in the function comment. New variables
1423 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1424 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1425 describe it in the function comment. Fetch the alternative block
1426 accoring to DEREF_SIZE.
1427 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1428 (entry_data_value_free_closure, entry_data_value_funcs): New.
1429 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1430 outer_val, target_val, val and addr. Try to fetch and create also
1431 referenced value content.
1432 (pieced_value_funcs): NULL value for coerce_ref.
1433 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1434 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1435 coerce_ref_if_computed.
1436 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1437 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1438 * stack.c (read_frame_arg): Compare also dereferenced values.
1439 * value.c (value_computed_funcs): Make the parameter v const, use
1440 value_lval_const for it.
1441 (value_lval_const, coerce_ref_if_computed): New function.
1442 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1443 * value.h (struct lval_funcs): New field coerce_ref.
1444 (value_computed_funcs): Make the parameter v const.
1445 (value_lval_const, coerce_ref_if_computed): New declarations.
1446
36b11add
JK
14472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1448
1449 Support @entry in input expressions.
1450 * c-exp.y (ENTRY, unknown_cpp_name): New.
1451 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1452 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1453 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1454 (name_not_typename: ENTRY): New.
1455 (yylex): Recognize ENTRY.
1456 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1457 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1458 Likewise.
1459 * parse.c (operator_length_standard): Likewise.
1460 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1461
3343315b
JK
14622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1463
1464 Display referenced values in backtraces.
1465 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1466 * stack.c (print_frame_arg): Likewise.
1467
ac71a68c
JK
14682011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1469
1470 Make some lval_funcs methods to default on NULL.
1471 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1472 NULL.
1473 (value_assign): Check if lval_computed write method is NULL.
1474 * value.h (struct lval_funcs): Comment NULL values for read and write
1475 methods.
1476
e18b2753
JK
14772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1478
1479 Display @entry parameter values (without references).
1480 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1481 New functions.
1482 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1483 New declarations.
1484 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1485 entry record.
1486 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1487 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1488 functions.
1489 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1490 (loclist_read_variable_at_entry): New function.
1491 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1492 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1493 DW_AT_location, call dwarf_block_to_sp_offset for it.
1494 * frame.h (print_entry_values_no, print_entry_values_only)
1495 (print_entry_values_preferred, print_entry_values_if_needed)
1496 (print_entry_values_both, print_entry_values_compact)
1497 (print_entry_values_default, print_entry_values): New declarations.
1498 (struct frame_arg): New field entry_kind.
1499 (read_frame_arg): New parameter entryargp.
1500 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1501 arg->entry_kind. Optionally print the `@entry' suffix.
1502 (list_args_or_locals): New variable entryarg, initialize it.
1503 Initialize also entry_kind of arg and entryarg. Conditionalize
1504 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1505 xfree for entryarg.error.
1506 * stack.c (print_entry_values_no, print_entry_values_only)
1507 (print_entry_values_preferred, print_entry_values_if_needed)
1508 (print_entry_values_both, print_entry_values_compact)
1509 (print_entry_values_default, print_entry_values_choices)
1510 (print_entry_values): New variables.
1511 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1512 print the `@entry' suffix, possibly in combination for
1513 print_entry_values_compact.
1514 (read_frame_arg): New parameter entryargp, new variables entryval,
1515 entryval_error and val_equal. Read in also entryargp, respect
1516 print_entry_values, compare the values using val_equal, fill in also
1517 argp->entry_kind (together with entryargp->entry_kind).
1518 (print_frame_args): New variable entryarg, initialize it.
1519 Conditionalize print_frame_arg for arg, add print_frame_arg for
1520 entryarg. Call xfree for entryarg.error.
1521 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1522 * symtab.h (struct symbol_computed_ops): New field
1523 read_variable_at_entry.
1524
93d86cef
JK
15252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 Code reshuffle.
1528 * frame.h (struct frame_arg): New definition.
1529 (read_frame_arg): New declaration.
1530 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1531 (list_args_or_locals): ... the code here. New variable arg, call
1532 read_frame_arg and list_arg_or_local with it. Unify the
1533 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1534 arg.error.
1535 * stack.c (print_frame_arg): New functiom from the code of
1536 print_frame_args.
1537 (read_frame_arg): New function.
1538 (print_frame_args): Remove variable val. New variable arg, call
1539 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1540
2d6c5dc2
JK
15412011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1542
1543 Protect entry values against self tail calls.
1544 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1545 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1546
111c6489
JK
15472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1548
1549 Recognize virtual tail call frames.
1550 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1551 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1552 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1553 * dwarf2-frame-tailcall.c: New file.
1554 * dwarf2-frame-tailcall.h: New file.
1555 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1556 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1557 REGS.PREV only after CIE execution.
1558 (struct dwarf2_frame_cache): New field tailcall_cache.
1559 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1560 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1561 parts, try to find entry_cfa_sp_offset. Call
1562 dwarf2_tailcall_sniffer_first.
1563 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1564 when appropriate.
1565 (dwarf2_frame_dealloc_cache): New function.
1566 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1567 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1568 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1569 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1570 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1571 * dwarf2loc.c (func_addr_to_tail_call_list)
1572 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1573 (call_site_find_chain_1, call_site_find_chain): New.
1574 * dwarf2loc.h (struct call_site_chain): New.
1575 (call_site_find_chain): New declaration.
1576 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1577 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1578 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1579 * stack.c (frame_info): Support also TAILCALL_FRAME.
1580
bb984ff1
JK
15812011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1582
1583 Tail call sites reader implementation.
1584 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1585 fill in TYPE_TAIL_CALL_LIST.
1586 * gdbtypes.h (struct func_type): New field tail_call_list.
1587 (struct call_site): New field tail_call_next.
1588 (TYPE_TAIL_CALL_LIST): New definition.
1589
8e3b41a9
JK
15902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1591
1592 Implement basic support for DW_TAG_GNU_call_site.
1593 * block.c: Include gdbtypes.h and exceptions.h.
1594 (call_site_for_pc): New function.
1595 * block.h (call_site_for_pc): New declaration.
1596 * defs.h: Include hashtab.h.
1597 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1598 declarations.
1599 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1600 ctx_no_push_dwarf_reg_entry_value.
1601 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1602 (dwarf_block_to_dwarf_reg): New function.
1603 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1604 (ctx_no_push_dwarf_reg_entry_value): New function.
1605 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1606 push_dwarf_reg_entry_value.
1607 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1608 declarations.
1609 * dwarf2loc.c: Include gdbcmd.h.
1610 (dwarf_expr_ctx_funcs): New forward declaration.
1611 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1612 (dwarf_expr_reg_to_entry_parameter)
1613 (dwarf_expr_push_dwarf_reg_entry_value): New.
1614 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1615 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1616 (needs_dwarf_reg_entry_value): New function.
1617 (needs_frame_ctx_funcs): Install it.
1618 (_initialize_dwarf2loc): New function.
1619 * dwarf2loc.h (entry_values_debug): New declaration.
1620 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1621 (read_call_site_scope): New forward declaration.
1622 (process_full_comp_unit): Copy call_site_htab.
1623 (process_die): Support DW_TAG_GNU_call_site.
1624 (read_call_site_scope): New function.
1625 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1626 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1627 (cleanup_htab): Delete.
1628 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1629 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1630 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1631 FIELD_LOC_KIND_DWARF_BLOCK.
1632 * gdbtypes.h (enum field_loc_kind): New entry
1633 FIELD_LOC_KIND_DWARF_BLOCK.
1634 (struct main_type): New loc entry dwarf_block.
1635 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1636 (TYPE_FIELD_DWARF_BLOCK): New.
1637 * python/py-type.c: Include dwarf2loc.h.
1638 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1639 internal_error call on unknown FIELD_LOC_KIND.
1640 * symtab.h (struct symtab): New field call_site_htab.
1641 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1642 (core_addr_hash, core_addr_eq): New functions.
1643
b6cdc2c1
JK
16442011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1645
1646 Code reshuffle.
1647 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1648 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1649 calling_convention under func_stuff there.
1650 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1651 (init_type) <TYPE_CODE_FUNC>: Likewise.
1652 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1653 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1654 * gdbtypes.h (enum type_specific_kind): Change
1655 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1656 (struct main_type) <type_specific>: Change calling_convention to
1657 func_stuff. Move calling_convention to ...
1658 (struct func_type): ... this new struct.
1659 (INIT_FUNC_SPECIFIC): New #define.
1660 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1661
181cebd4
JK
16622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1663
1664 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1665 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1666 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1667 ctx->ref_addr_size. Handle its invalid value.
1668 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1669 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1670 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1671 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1672 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1673 (dwarf2_per_cu_ref_addr_size): New function.
1674
c471e790
JK
16752011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1676
1677 Code cleanup.
1678 * dwarf2read.c (per_cu_header_read_in): New function.
1679 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1680 variables cu_header_local and cu_headerp.
1681
741f5e3c
JK
16822011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1683
1684 Fix initial language detection with -readnow.
1685 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1686 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1687 searches only for global symbols.
1688
a73d2258
JK
16892011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1690
1691 Fix printed anonymous struct name.
1692 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1693 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1694 (anonymous_struct_prefix): New function.
1695 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1696 (dwarf2_name): Strip for anonymous structs any prefixes.
1697
749fd4ea
DE
16982011-10-07 Doug Evans <dje@google.com>
1699
1fa57852
DE
1700 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1701 `replace'.
1702
690a4937
DE
1703 * python/lib/gdb/printing.py: Whitespace cleanup.
1704
749fd4ea
DE
1705 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1706 warning.
1707
4c38200f
PA
17082011-10-07 Pedro Alves <pedro@codesourcery.com>
1709
1710 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1711 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1712 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1713 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1714 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1715 (arm_linux_remove_watchpoint): Adjust.
1716 * i386-linux-nat.c (i386_linux_dr_set_control)
1717 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1718 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1719 (ia64_linux_remove_watchpoint): Adjust.
1720 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1721 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1722 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1723 (ppc_linux_insert_mask_watchpoint)
1724 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1725 (ppc_linux_remove_watchpoint): Adjust.
1726 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1727 Adjust.
1728
b7ff339d
CV
17292011-10-07 Corinna Vinschen <vinschen@redhat.com>
1730
1731 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1732 (clear_win32_environment): New function for Cygwin to clear out
1733 Win32 environment.
1734 (windows_create_inferior): Prepare new environment from in_env
1735 for Cygwin, too.
1736
f287c1f3
PM
17372011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1738
5631e596 1739 PR python/13264
f287c1f3
PM
1740 * python/py-value.c (valpy_call): Check that arguments are
1741 a tuple.
1742 (is_intlike): Remove call to CHECK_TYPEDEF.
1743 (valpy_nonzero): Catch GDB exceptions.
1744 (valpy_absolute): Ditto.
1745 (valpy_lazy_string): Ditto.
1746 (valpy_call): Ditto.
1747 (valpy_get_is_optimized_out): Ditto.
1748 (valpy_long): Ditto.
1749 (valpy_float): Ditto.
1750 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1751 (valpy_richcompare): Ditto.
1752
03583c20
UW
17532011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1754
1755 * inferior.h (disable_randomization): Declare.
1756 * infrun.c (disable_randomization): New global variable.
1757 (show_disable_randomization): New function.
1758 (set_disable_randomization): Likewise.
1759 (_initialize_infrun): Install set/show disable-randomization
1760 commands.
1761 * linux-nat.c (disable_randomization): Remove.
1762 (show_disable_randomization): Likewise.
1763 (set_disable_randomization): Likewise.
1764 (_initialize_linux_nat): No longer install set/show
1765 disable-randomization commands here.
1766 (linux_nat_supports_disable_randomization): New function.
1767 (linux_nat_add_target): Install it.
1768 * remote.c (PACKET_QDisableRandomization): New enum value.
1769 (remote_protocol_packets): Support QDisableRandomization.
1770 (_initialize_remote): Likewise.
1771 (remote_supports_disable_randomization): New function.
1772 (init_remote_ops): Install it.
1773 (extended_remote_supports_disable_randomization): New function.
1774 (init_extended_remote_ops): Install it.
1775 (extended_remote_disable_randomization): New function.
1776 (extended_remote_create_inferior_1): Call it.
1777 * target.h (struct target_ops): Add to_supports_disable_randomization.
1778 (target_supports_disable_randomization): Add prototype.
1779 * target.c (target_supports_disable_randomization): New function.
1780 (find_default_supports_disable_randomization): Likewise.
1781 (init_dummy_target): Install it.
1782
20c168b5
KP
17832011-10-07 Kevin Pouget <kevin.pouget@st.com>
1784
1785 Allow Python notification of new object-file loadings.
1786 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1787 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1788 Add build rule for this file.
1789 * python/py-event.h (emit_new_objfile_event): New prototype.
1790 (newobjfile): New Python event emitter.
1791 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1792 Python event registry.
1793 * python/py-inferior.c: Include objfiles.h
1794 (python_new_objfile): New function.
1795 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1796 observers.
1797 * python/py-newobjfileevent.c: New file.
1798 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1799 prototype.
1800 * python/python.c (_initialize_python): Add
1801 gdbpy_initialize_new_objfile_event call.
1802 * NEWS: Add item for new Python event "gdb.newobjfile"
1803
b1c8db38
TG
18042011-10-05 Tristan Gingold <gingold@adacore.com>
1805
1806 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1807 Extract the ravenscar task name from the symbol for the atcb.
1808
0dab82e9
PK
18092011-10-04 Paul Koning <paul_koning@dell.com>
1810
1811 * python/py-type.c (typy_make_iter): Add forward declaration.
1812 (typy_fields_items): Use the gdb.Type iterator.
1813
84ad80e6
PK
18142011-10-04 Paul Koning <paul_koning@dell.com>
1815
1816 * NEWS: Add entry for Python gdb.Type mapping methods.
1817
cb6be26b
KP
18182011-10-04 Kevin Pouget <kevin.pouget@st.com>
1819
1820 PR python/12691: Add the inferior to Python exited event
1821 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1822 to exited_event.
1823 * python/py-event.h (emit_exited_event): Likewise
1824 * python/-inferior.c (python_inferior_exit): Likewise
1825
6005b210
JB
18262011-10-03 Joel Brobecker <brobecker@adacore.com>
1827
1828 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1829 in output of -ada-task-info GDB/MI command.
1830
75082e8c
JB
18312011-10-03 Joel Brobecker <brobecker@adacore.com>
1832
1833 * ada-lang.h (struct inferior): Declare.
1834 (print_ada_task_info): Add declaration.
1835 * ada-tasks.c (print_ada_task_info): Make non-static.
1836 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1837 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1838 * mi/mi-main.c: #include "ada-lang.h".
1839 (mi_cmd_list_features): Add "ada-task-info" to the list
1840 of supported features.
1841 (mi_cmd_ada_task_info): New function.
1842
7ed7d719
JB
18432011-10-03 Joel Brobecker <brobecker@adacore.com>
1844
1845 * python/python.c (python_run_simple_file): New function.
1846 (source_python_script, source_python_script_for_objfile):
1847 Replace call to PyRun_SimpleFile by call to
1848 python_run_simple_file.
1849
3fcaed38
PK
18502011-10-03 Paul Koning <paul_koning@dell.com>
1851
1852 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1853 (value_to_value_object): Fetch value if it was lazy.
1854
8e5c319d
JK
18552011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1856
1857 Code cleanup.
1858 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1859 Rearrange the code for it.
1860
dd11a36c
JB
18612011-10-02 Joel Brobecker <brobecker@adacore.com>
1862
1863 * breakpoint.c (bkpt_print_recreate): Add call to
1864 print_recreate_thread.
1865
723b724b
MF
18662011-09-29 Mike Frysinger <vapier@gentoo.org>
1867
1868 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1869 PTRACE_GETFDPIC_INTERP): Define.
1870
412946b6
YQ
18712011-09-28 Yao Qi <yao@codesourcery.com>
1872
1873 * symfile.c (add_symbol_file_command): Update message on usage.
1874
a73bb892
PK
18752011-09-28 Paul Koning <paul_koning@dell.com>
1876
1877 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1878 (typy_length, typy_get, typy_has_key, typy_make_iter)
1879 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1880 (typy_iterator_iter, typy_iterator_iternext)
1881 (typy_iterator_dealloc): New functions to implement standard
1882 Python mapping methods on gdb.Type object.
1883 (gdb.TypeIterator): New Python type.
1884 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1885
fe10a582
DM
18862011-09-28 David S. Miller <davem@davemloft.net>
1887
1888 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1889 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1890 * sparc-tdep.c (sparc_complex_floating_p): New function.
1891 (sparc32_store_arguments): Handle complex floats.
1892 (sparc32_extract_return_value): Likewise.
1893 (sparc32_store_return_value): Likewise.
1894 (sparc32_stabs_argument_has_addr): Likewise.
1895 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1896 (sparc64_store_floating_fields): Handle complex floats.
1897 (sparc64_store_arguments): Likewise.
1898 (sparc64_store_return_value): Likewise.
1899
c93dbcba
EZ
19002011-09-28 Eli Zaretskii <eliz@gnu.org>
1901
1902 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1903 before the change on 2006-12-09.
1904 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1905 generates the environment block for CreateProcessA, modulo the
1906 Cygwin-specific parts that are not needed here.
1907
f00c55f8
TG
19082011-09-27 Tristan Gingold <gingold@adacore.com>
1909
1910 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1911 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1912 (darwin_solib_get_all_image_info_addr_at_init): New function.
1913 (darwin_solib_read_all_image_info_addr): Likewise.
1914 (darwin_solib_create_inferior_hook): Use the above two functions.
1915 * darwin-nat.c (darwin_execvp): Renames retval to res.
1916 (darwin_read_write_inferior): Update comment.
1917 (darwin_read_dyld_info): New function.
1918 (darwin_xfer_partial): Handle DYLD_INFO.
1919
6710bf39
SS
19202011-09-27 Stan Shebs <stan@codesourcery.com>
1921
1922 Add return address collection for tracepoints.
1923 * tracepoint.c (encode_actions_1): Add case for $_ret.
1924 (validate_actionline): Check for $_ret.
1925 (trace_dump_actions): Ditto.
1926 * ax-gdb.h (gen_trace_for_return_address): Declare.
1927 * ax-gdb.c: Include arch-utils.h.
1928 (gen_trace_for_return_address): New function.
1929 (agent_command): Add return address special case.
1930 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1931 (amd64_gen_return_address): New function.
1932 (amd64_init_abi): Call it.
1933 * i386-tdep.c: Include ax.h and ax-gdb.h.
1934 (i386_gen_return_address): New function.
1935 (i386_init_abi): Call it.
1936 * arch-utils.h (default_gen_return_address): Declare.
1937 * arch-utils.c (default_gen_return_address): New function.
1938 * gdbarch.sh (gen_return_address): New method.
1939 * gdbarch.h, gdbarch.c: Regenerate.
1940
e04e5beb
JM
19412011-09-23 Joseph Myers <joseph@codesourcery.com>
1942
1943 PR gdb/13079
1944 * i386-tdep.c (i386_frame_align): New.
1945 (i386_gdbarch_init): Use i386_frame_align.
1946
f3d6df6d
YQ
19472011-09-23 Yao Qi <yao@codesourcery.com>
1948
1949 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1950 to get address.
1951
e69860f1
TG
19522011-09-22 Tristan Gingold <gingold@adacore.com>
1953
1954 * fork-child.c (fork_inferior): Add exec_fun parameter.
1955 Call exec_fun or execvp.
1956 * inferior.h: Adjust prototype.
1957 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1958 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1959 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1960 * procfs.c (procfs_create_inferior): Ditto.
1961 * darwin-nat.c (darwin_execvp): New function.
1962 (darwin_create_inferior): Use it.
1963
4b51d87b
YQ
19642011-09-22 Yao Qi <yao@codesourcery.com>
1965
1966 * infrun.c (context_switch): Print debug message when switching to
1967 a different thread.
1968
56b9d9ac
UW
19692011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1970
1971 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1972 complex and vector types.
1973 (s390_return_value_convention): Likewise.
1974
1975 (s390_value_from_register): Call check_typedef.
1976 (extend_simple_arg): Likewise.
1977 (alignment_of): Likewise.
1978 (s390_push_dummy_call): Likewise.
1979 (s390_return_value): Likewise.
1980
b2cd6b29
JM
19812011-09-21 Joseph Myers <joseph@codesourcery.com>
1982
1983 * event-top.c (async_disconnect): If an exception is thrown from
1984 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1985 catch_errors.
1986 * top.c (quit_cover): Return void and take no arguments.
1987 * top.h (quit_cover): Update prototype.
1988
67ba4e42
JM
19892011-09-20 Joseph Myers <joseph@codesourcery.com>
1990
1991 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1992 current_uiout, not uiout.
1993
562f943b
DE
19942011-09-19 Doug Evans <dje@google.com>
1995
1996 * python/py-auto-load.c (source_section_scripts): Fix file
1997 descriptor leak.
1998 * python/python.c (source_python_script_for_objfile): Tweak comments.
1999
34518530
YQ
20002011-09-18 Yao Qi <yao@codesourcery.com>
2001 Ulrich Weigand <ulrich.weigand@linaro.org>
2002
2003 Support displaced stepping for Thumb 16-bit insns.
2004 * arm-tdep.c (THUMB_NOP) Define.
2005 (thumb_copy_unmodified_16bit): New.
2006 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2007 (thumb_copy_alu_reg): New.
2008 (arm_copy_svc): Move some common code to ...
2009 (install_svc): ... here. New.
2010 (thumb_copy_svc): New.
2011 (install_pc_relative): New.
2012 (thumb_copy_pc_relative_16bit): New.
2013 (thumb_decode_pc_relative_16bit): New.
2014 (thumb_copy_16bit_ldr_literal): New.
2015 (thumb_copy_cbnz_cbz): New.
2016 (cleanup_pop_pc_16bit_all): New.
2017 (thumb_copy_pop_pc_16bit): New.
2018 (thumb_process_displaced_16bit_insn): New.
2019 (thumb_process_displaced_32bit_insn): New.
2020 (thumb_process_displaced_insn): process thumb instruction.
2021
2022 Support displaced stepping for Thumb 32-bit insns.
2023 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2024 (thumb2_copy_preload): New.
2025 (thumb2_copy_copro_load_store): New.
2026 (thumb2_copy_b_bl_blx): New.
2027 (thumb2_copy_alu_imm): New.
2028 (thumb2_copy_load_reg_imm): New.
2029 (thumb2_copy_load_literal): New
2030 (thumb2_copy_block_xfer): New.
2031 (thumb_32bit_copy_undef): New.
2032 (thumb_32bit_copy_unpred): New.
2033 (thumb2_decode_ext_reg_ld_st): New.
2034 (thumb2_decode_svc_copro): New.
2035 (decode_thumb_32bit_store_single_data_item): New.
2036 (thumb_copy_pc_relative_32bit): New.
2037 (thumb_decode_pc_relative_32bit): New.
2038 (decode_thumb_32bit_ld_mem_hints): New.
2039 (thumb2_copy_table_branch): New
2040 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2041 instructions.
2042
2b16b2e3
YQ
20432011-09-18 Yao Qi <yao@codesourcery.com>
2044
2045 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2046 (install_b_bl_blx): Likewise.
2047
0f6f04ba
YQ
20482011-09-17 Yao Qi <yao@codesourcery.com>
2049
2050 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2051 (install_load_store): ... this. New.
2052 Change parameter BYTE to SIZE.
2053 (arm_copy_ldr_str_ldrb_strb): Update caller.
2054 (arm_decode_ld_st_word_ubyte): Update caller.
2055
e2d96639
YQ
20562011-09-17 Yao Qi <yao@codesourcery.com>
2057
2058 * infrun.c (displaced_step_fixup): Move some code ...
2059 (displaced_step_restore): ... here. New function.
2060 (handle_inferior_event): Cleanup displaced stepping state for both
2061 child and parent when get forked or vforked event.
2062 * regcache.c (get_thread_arch_aspace_regcache): New function.
2063 get_thread_arch_regcache (): Call it.
2064
a8123151
JB
20652011-09-16 Joel Brobecker <brobecker@adacore.com>
2066
2067 * ada-tasks.c (print_ada_task_info): New function, merging
2068 short_task_info and info_tasks together. Reimplement using
2069 ui-out instead of printing to stdout directly. Move the code
2070 building and checking the task list here, instead of leaving it
2071 in info_tasks_command.
2072 (info_task): Move the code building and checking the task
2073 list here, instead of leaving it in info_tasks_command.
2074 (info_tasks_command): Delete code building and checking
2075 the task list - moved elsewhere. Update calls to info_tasks
2076 and info_task.
2077
fbf06824
JB
20782011-09-16 Joel Brobecker <brobecker@adacore.com>
2079
2080 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2081
34a0bc90
JB
20822011-09-16 Joel Brobecker <brobecker@adacore.com>
2083
2084 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2085
79779fa9
JB
20862011-09-16 Joel Brobecker <brobecker@adacore.com>
2087
2088 * ada-lang.h (ada_build_task_list): Remove parameter
2089 `warn_if_null'.
2090 * ada-tasks.c (ada_build_task_list): Remove parameter
2091 `warn_if_null'. Adjust implementation and documentation.
2092 (valid_task_id, ada_get_environment_task)
2093 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2094 (info_tasks_command): Adjust implementation.
2095 (task_command): Likewise.
2096 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2097 to ada_build_task_list.
2098
e225eb91
JB
20992011-09-16 Joel Brobecker <brobecker@adacore.com>
2100
2101 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2102 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2103 (ada_tasks_inferior_data_handle): New static global.
2104 (get_ada_tasks_inferior_data): New function.
2105 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2106 (ada_get_environment_task, iterate_over_live_ada_tasks)
2107 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2108 Adjust.
2109 (ada_set_current_inferior_known_tasks_addr): New function.
2110 (read_known_tasks, ada_build_task_list, short_task_info)
2111 (info_tasks, info_task, info_tasks_command, task_command_1)
2112 (task_command, ada_task_list_changed): Adjust.
2113 (ada_tasks_invalidate_inferior_data): New function.
2114 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2115 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2116 * ada-lang.h (struct inferior): Add declaration.
2117 (ada_task_list_changed): Update profile.
2118 * remote-wtx-pd.c: #include "inferior.h".
2119 (switch_to_pd_internal): Update call to ada_task_list_changed.
2120
6da9ca05
JB
21212011-09-16 Joel Brobecker <brobecker@adacore.com>
2122
2123 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2124 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2125 (atcb_fieldno): Delete these static globals.
2126 (struct ada_tasks_pspace_data): New struct.
2127 (ada_tasks_pspace_data_handle): New static global.
2128 (get_ada_tasks_pspace_data): New function.
2129 (ada_tasks_invalidate_pspace_data): New function.
2130 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2131 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2132 (_initialize_tasks): Create this module's per-progspace
2133 data handle.
2134
dccd3cbd
JB
21352011-09-16 Joel Brobecker <brobecker@adacore.com>
2136
2137 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2138
f877b031
TG
21392011-09-16 Tristan Gingold <gingold@adacore.com>
2140
2141 * fork-child.c (fork_inferior): Update comment. Use alloca
2142 instead of xmalloc for argv. Move len and shell_command
2143 declarations in the block where they are used.
2144 Only call execvp. Factorize failure code.
2145
ae0c443d
JK
21462011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2147
2148 Code cleanup.
2149 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2150 `exp_element' instead of an element of the same and make the function
2151 static.
2152 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2153 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2154 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2155 Change argument of `write_exp_elt' function call.
2156 Remove extra spaces from comments.
2157 * parser-defs.h (write_exp_elt): Remove prototype.
2158
5af65ec0
PK
21592011-09-15 Paul Koning <paul_koning@dell.com>
2160
2161 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2162 count of item appended to list.
2163 * python/py-type.c (typy_fields): Likewise.
2164
72be8ccc
PK
21652011-09-15 Paul Koning <paul_koning@dell.com>
2166
883640a8 2167 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2168
92f6badc
KP
21692011-09-15 Kevin Pouget <kevin.pouget@st.com>
2170
2171 PR threads/12628
2172 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2173 processes with multiple threads.
2174 (inf_has_multiple_thread_cb): New function.
2175 (inf_has_multiple_threads): New function.
2176
0672bf41 21772011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2178
2179 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2180 * python/py-inferior.c (GdbMethods): New Python method definition.
2181
6839b47f
KP
21822011-09-15 Kevin Pouget <kevin.pouget@st.com>
2183
2184 Handle multiple breakpoint hits in Python interface:
2185 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2186 variable to breakpoints.
2187 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2188 bps instead of single breakpoint. Fix some space typos.
2189 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2190 variable to breakpoints.
2191
672f9b60
KP
21922011-09-15 Kevin Pouget <kevin.pouget@st.com>
2193
2194 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2195 note if the breakpoint is internal.
2196
43675ae4
KP
21972011-09-15 Kevin Pouget <kevin.pouget@st.com>
2198
0672bf41 2199 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2200
15148d6a
PA
22012011-09-14 Pedro Alves <pedro@codesourcery.com>
2202
2203 * infrun.c (prepare_for_detach, wait_for_inferior)
2204 (fetch_inferior_event): Don't flush the register cache.
2205 * remote.c (struct stop_reply) <regcache>: Add comment.
2206
d83e736b
JK
22072011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2208
2209 Remove excessive DWARF expressions memory duplication.
2210 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2211 for block.data.
2212 (indirect_pieced_value): Remove variable result. Remove variable
2213 back_to and its use for baton.data.
2214 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2215 block.data.
2216 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2217 Update the function comment.
2218
c65b3e0d
PA
22192011-09-13 Pedro Alves <pedro@codesourcery.com>
2220
2221 * inferior.h (ALL_INFERIORS): New.
2222 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2223 for a stopped thread.
2224 (thread_db_find_new_threads): Look for threads in all inferiors.
2225
a1398e0c
PA
22262011-09-13 Pedro Alves <pedro@codesourcery.com>
2227
2228 * breakpoint.c (update_watchpoint): Handle the case of the
2229 watchpoint to update not being in the breakpoint list yet.
2230 (hw_watchpoint_use_count): New, factored out from
2231 hw_watchpoint_used_count.
2232 (hw_watchpoint_used_count): Rename to ...
2233 (hw_watchpoint_used_count_others): ... this. Add `except'
2234 parameter. Don't count resources of `except'. Use
2235 hw_watchpoint_use_count.
2236
30596231
PA
22372011-09-13 Pedro Alves <pedro@codesourcery.com>
2238
2239 * gdbthread.h (enum thread_state): Moved here.
2240 (struct thread_info): Rename `executing_' field to `executing' and
2241 `state_' to `state'.
2242 * thread.c (enum thread_state): Moved to gdbthread.h.
2243 (new_thread, add_thread_silent, delete_thread_1)
2244 (any_live_thread_of_process, thread_alive, set_running)
2245 (set_running, is_thread_state, any_running, is_executing)
2246 (set_executing, finish_thread_state, print_thread_info)
2247 (do_captured_thread_select): Adjust.
2248
bede5f5f
JK
22492011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2252 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2253
4801a9a3
PA
22542011-09-12 Pedro Alves <pedro@codesourcery.com>
2255 Matt Rice <ratmice@gmail.com>
2256
2257 PR gdb/13175
2258
2259 * interps.c (struct interp) <interpreter_out>: Delete field.
2260 (interp_new): Remove the data and uiout parameters and adjust.
2261 (interp_set): Only set the current_uiout from the interpreter's
2262 uiout after initializing the interpreter. Adjust call to
2263 init_proc.
2264 (interp_ui_out): Adjust to call procs->ui_out_proc.
2265 (interp_data, interp_name): New.
2266 * interps.h (interp_init_ftype): Add `self' parameter.
2267 (interp_ui_out_ftype): New typedef.
2268 (struct interp_procs) <ui_out_proc>: New method pointer.
2269 (interp_new): Remove the data and uiout parameters.
2270 (interp_data, interp_name): Declare.
2271 * tui/tui-interp.c (tui_init): Adjust prototype.
2272 (tui_ui_out): New.
2273 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2274 tui_out here. Adjust call to interp_new.
2275 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2276 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2277 (cli_ui_out): New.
2278 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2279 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2280 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2281 Initialize mi->uiout depending on the mi_version as extracted from
2282 the interpreter's name.
2283 (mi_ui_out): New.
2284 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2285 interp_new. Don't allocate the ui_out's of the interpreters here.
2286
d0afda03 22872011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2288
d0afda03 2289 * solib.c (solib_used): New function.
59145f8c
AR
2290 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2291 by another so_list object before freeing it.
2292
bdaf8d4a
JK
22932011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2294
2295 Code cleanup.
2296 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2297 values.
2298
df15bd07
JK
22992011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 Code cleanup.
2302 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2303 (amd64_skip_xmm_prologue): ... this new function. Describe its
2304 parameters. No longer use amd64_prologue_line_bug.
2305 * defs.h (producer_is_gcc_ge_4): New declaration.
2306 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2307 (process_full_comp_unit): Update its caller. Remove
2308 amd64_prologue_line_bug initialization.
2309 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2310 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2311
25289eb2
PA
23122011-09-09 Pedro Alves <pedro@codesourcery.com>
2313
2314 * linux-nat.h (enum resume_kind): New.
2315 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2316 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2317 resume_stop on the new lwp.
25289eb2
PA
2318 (add_lwp): Set last_resume_kind as resume_continue by default.
2319 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2320 (resume_lwp): New, factored out from resume_callback. Also check
2321 for pending status in lp->waitstatus.
2322 (resume_callback): Reimplement.
2323 (resume_clear_callback): Set last_resume_kind as resume_stop.
2324 (resume_set_callback): Set last_resume_kind as resume_continue.
2325 (linux_nat_resume, linux_handle_extended_wait): Set
2326 last_resume_kind.
2327 (running_callback): Also check lp->waitstatus for pending events.
2328 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2329 is resume_step.
2330 (stop_and_resume_callback): Don't re-resume if the core wanted the
2331 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2332 using an invalidated pointer.
2333 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2334 SIGSTOPs if the core wanted the LWP to stop.
2335 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2336 wanted the lwp to stop. If the core wanted the lwp to stop, and
2337 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2338 of TARGET_SIGNAL_STOP.
2339 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2340 here. Instead, signal the lwp, and set the last_resume_kind to
2341 resume_stop.
2342
f687d035
PA
23432011-09-09 Pedro Alves <pedro@codesourcery.com>
2344
2345 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2346 -1 (error), if the lwp exits right after attaching.
2347
bc587a6b
DE
23482011-09-08 Doug Evans <dje@google.com>
2349
63d97a20
DE
2350 * py-cmd.c: Some minor formatting fixes.
2351 (gdbpy_parse_command_name): Rename text arg to name, make const.
2352 All callers updated.
2353 * python-internal.h (gdbpy_parse_command_name): Update.
2354
bc587a6b
DE
2355 * cli/cli-decode.c (add_cmd): Add comment.
2356
08711b9a
JK
23572011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2358
2359 PR breakpoints/12435
2360 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2361 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2362 * dwarf2read.c (process_full_comp_unit): Initialize
2363 amd64_prologue_line_bug.
2364 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2365
b2e7f004
JK
23662011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2367
2368 Fix TUI screen corruption.
2369 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2370 batch_flag.
2371
8afd712c
JK
23722011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2373
2374 * findvar.c (read_var_value): Never return NULL, throw an error
2375 instead. Update the function comment. State symbol name in the error
2376 messages.
2377 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2378 read_var_value.
2379 * stack.c (print_frame_args): Likewise.
2380 * valops.c (value_of_variable): Likewise.
2381
b99b5f66
JK
23822011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2383
2384 * stack.c (print_frame_args): New variable except. Wrap
2385 read_var_value and common_val_print into TRY_CATCH.
2386
85bc8cb7
JK
23872011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2390 caller to value_of_this.
2391 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2392 Twice.
2393 * valops.c (value_of_this): Remove parameter complain and variable ret.
2394 Update function comment. Never return NULL by this code.
2395 (value_of_this_silent): New function.
2396 * value.h (value_of_this): Remove parameter complain.
2397 (value_of_this_silent): New declaration.
2398
ede1849f
YQ
23992011-09-07 Yao Qi <yao@codesourcery.com>
2400
2401 * gdbthread.h (struct thread_info): Remove fields
2402 `stepping_through_solib_after_catch' and
2403 `stepping_through_solib_catchpoints'.
2404 * infrun.c (init_thread_stepping_state): Update.
2405 (process_event_stop_test, currently_stepping): Update.
2406 (currently_stepping_or_nexting_callback): Update.
2407
6aa27652
YQ
24082011-09-07 Yao Qi <yao@codesourcery.com>
2409
2410 * gdbthread.h (struct thread_info): Comment on field
2411 `step_after_step_resume_breakpoint'.
2412
00db5b94
PA
24132011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2414
2415 * remote.c (remote_console_output): Reindent.
2416
861152be
LM
24172011-09-06 Luis Machado <lgustavo@codesourcery.com>
2418
2419 * frame.c (has_stack_frames): Check for currently selected
2420 traceframe.
2421
ab821bc6
PA
24222011-09-06 Pedro Alves <pedro@codesourcery.com>
2423
2424 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2425 (set_async_annotation_level, set_async_prompt, pop_prompt)
2426 (push_prompt, new_async_prompt): Delete declarations.
2427 * top.h (get_prompt, set_prompt): Change prototype.
2428 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2429 declarations.
2430 * top.c (command_loop):
2431 (top_prompt): New global.
2432 (get_prefix, set_prefix, get_suffix, ): Delete.
2433 (get_prompt, set_prompt): Rewrite.
2434 (show_new_async_prompt): Rename to ...
2435 (show_prompt): ... this.
2436 (init_main): Adjust. Don't handle --annotate=2 here.
2437 * event-top.c (new_async_prompt): Delete.
2438 (the_prompts): Delete.
2439 (more_to_come): Make static.
2440 (display_gdb_prompt): Use top_level_prompt() to compute the top
2441 level prompt, and don't notify the before_prompt observers
2442 directly here. Always trick readline into not trying to display
2443 the prompt if sync_execution and displaying the primary prompt.
2444 If displaying a local/secondary prompt, always show it, even if
2445 sync_execution is set.
2446 (change_annotation_level): Delete.
2447 (top_level_prompt): New, based on change_annotation_level.
2448 (push_prompt, pop_prompt): Delete.
2449 (async_disable_stdin): No longer pushes prompt.
2450 (command_line_handler): No longer pushes or pops prompt. If more
2451 input is expected, call display_gdb_prompt with an explicit empty
2452 prompt.
2453 (async_stop_sig): Adjust.
2454 (set_async_annotation_level, set_async_prompt): Delete.
2455 * python/python.c (before_prompt_hook): Adjust.
2456
f1d90504
PA
24572011-09-05 Pedro Alves <pedro@codesourcery.com>
2458
2459 PR cli/13110
2460
2461 * infrun.c (fetch_inferior_event): Check if there's a selected
2462 thread before checking if the selected thread is executing.
2463
0f641c01
PA
24642011-09-05 Pedro Alves <pedro@codesourcery.com>
2465
2466 * inf-loop.c (execute_command): Don't check if the current thread
2467 if running before synchronously waiting for command completion.
2468 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2469 here.
2470 (normal_stop): Call async_enable_stdin here.
2471 * inf-loop.c (inferior_event_handler): Don't call
2472 async_enable_stdin, nor handle "set exec-done-display" here.
2473
30368258 24742011-09-04 Joel Brobecker <brobecker@adacore.com>
2475
2476 GDB 7.3.1 released.
2477
31916278
JB
24782011-09-04 Joel Brobecker <brobecker@adacore.com>
2479
2480 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2481
e8d56f18
JB
24822011-09-04 Joel Brobecker <brobecker@adacore.com>
2483
2484 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2485
5dd05d8c
JK
24862011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2487
2488 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2489
7d8e6458 24902011-09-02 Matt Rice <ratmice@gmail.com>
2491
2492 PR gdb/10720
2493 * event-top.c (cli_command_loop): Replace readline setup with
2494 direct call to display_gdb_prompt.
2495 (display_gdb_prompt): Do not call observer mechanism during
2496 synchronous execution.
2497
84636d28
PA
24982011-09-02 Pedro Alves <pedro@codesourcery.com>
2499
2500 * linux-nat.c (in_pid_list_p): New.
2501 (linux_record_stopped_pid): Delete.
2502 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2503 already attached to the LWP. Return an indication if so.
2504 (linux_nat_filter_event): Adjust.
2505 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2506 returning an indication to ignore this thread.
2507
b4a14fd0
PA
25082011-09-02 Pedro Alves <pedro@codesourcery.com>
2509
2510 * top.c: Include interps.h.
2511 (execute_command): If the target can async, but the interpreter is
2512 in sync mode, synchronously wait for the command to finish before
2513 returning.
2514 (execute_command_to_string): Force the interpreter to sync mode.
2515 * infrun.c: Include interps.h.
2516 (fetch_inferior_event): Don't restore the prompt yet if the
2517 interpreter is in sync mode.
2518 * interps.c (interpreter_async): New global.
2519 * interps.h (interpreter_async): Declare.
2520 * inf-loop.c: Include interps.h.
2521 (inferior_event_handler): Don't print the language change or run
2522 breakpoint commands yet if the interpreter in is sync mode.
2523 * main.c (captured_command_loop): Flip the interpreter to async
2524 mode.
2525 * cli/cli-script.c: Include interps.h.
2526 (execute_user_command, while_command, if_command): Force the
2527 interpreter to sync mode.
2528 * python/python.c: Include interps.h.
2529 (python_command, execute_gdb_command): Force the interpreter to
2530 sync mode.
2531
c709acd1
PA
25322011-09-02 Pedro Alves <pedro@codesourcery.com>
2533
2534 * value.c (show_convenience): Catch errors thrown while printing
2535 each internal variable.
2536 * infrun.c (validate_siginfo_access): New function.
2537 (siginfo_value_read, siginfo_value_write): Call it.
2538
9655e943
JK
25392011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2540
2541 Revert:
2542 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2543 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2544 attribute.
2545
cb457ae2
YQ
25462011-08-29 Yao Qi <yao@codesourcery.com>
2547
2548 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2549 (cmp_name): New.
2550 (enable_break2): Update caller.
2551 * solib-frv.c (bfd_lookup_symbol): Removed.
2552 (cmp_name): New.
2553 (enable_break2): Update caller.
2554 * solib-pa64.c (bfd_lookup_symbol): Removed.
2555 (cmp_name): New.
2556 * solib-svr4.c (bfd_lookup_symbol): Removed.
2557 (cmp_name_and_sec_flags): New.
2558 (enable_break): Update caller.
2559 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2560 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2561 (gdb_bfd_lookup_symbol): New.
2562 * solib.h: Functions declarations.
2563
83d1a36a
YQ
25642011-08-29 Yao Qi <yao@codesourcery.com>
2565
2566 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2567 and solib-dsbt.o.
2568
c04b3e8f
JK
25692011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 Fix TUI stepi on code without symbols.
2572 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2573 current PC instead.
2574
cb0fd152
JK
25752011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2576
2577 Code cleanup.
2578 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2579 and the static keyword.
2580 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2581 Make prefix an array.
2582 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2583 * mi/mi-main.c (get_register): Remove stb initialization and the static
2584 keyword.
2585
91174723
JK
25862011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2587
2588 Code cleanup - make mi_opt const.
2589 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2590 opts const.
2591 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2592 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2593 (mi_cmd_env_dir): Likewise.
2594 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2595 (mi_cmd_target_file_put): Likewise.
2596 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2597 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2598 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2599 (mi_valid_noargs): Make opts const.
2600 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2601 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2602 (mi_cmd_data_read_memory): Likewise.
2603 (mi_cmd_data_read_memory_bytes): Likewise.
2604 (mi_cmd_data_write_memory): Likewise.
2605
5068b8e8 26062011-08-26 Matt Rice <ratmice@gmail.com>
2607
2608 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2609 bcache_xmalloc, replace bcache_xmalloc with call to
2610 psymbol_bcache_init for psymbol_cache.
2611 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2612
a4f2ce05
JK
26132011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2614
2615 * inf-loop.c (inferior_event_handler): Add exception_print in
2616 INF_EXEC_COMPLETE.
2617
353d1d73
JK
26182011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2619
2620 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2621 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2622 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2623 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2624 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2625 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2626 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2627 * infrun.c (fetch_inferior_event): Call
2628 make_bpstat_clear_actions_cleanup.
2629 * top.c (execute_command): New variable cleanup_if_error, call
2630 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2631 * utils.c (do_bpstat_clear_actions_cleanup)
2632 (make_bpstat_clear_actions_cleanup): New functions.
2633
3ced3da4
PA
26342011-08-26 Pedro Alves <pedro@codesourcery.com>
2635
2636 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2637 either the parent or the child forks. Rename a couple locals.
2638
a9f4bb21
PA
26392011-08-26 Pedro Alves <pedro@codesourcery.com>
2640
2641 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2642 library call. Avoid reading the `status' local if all waitpid
2643 calls failed.
2644
e5798bef
PA
26452011-08-26 Pedro Alves <pedro@codesourcery.com>
2646
2647 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2648 opening /proc/PID/task always succeeds.
2649
edb2aadf
AR
26502011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2651
2652 * linespec.c (symtab_from_filename): Check for the end of string.
2653
0d932b2f
MK
26542011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2655
2656 PR mi/11912
2657 * varobj.c (cplus_describe_child): Add the keyword
2658 'class' to the output of the method when dealing
2659 with a cast to a base class.
2660
e93ca019
JK
26612011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2662
2663 No functionality change.
2664 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2665 function comment a reference, new variables tp and bs, move here code
2666 from throw_exception.
2667 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2668 describe it in the comment.
2669 * exceptions.c (throw_exception): Remove variable tp, move the code for
2670 bpstat_clear_actions to bpstat_clear_actions.
2671
13da1c97
LM
26722011-08-24 Luis Machado <lgustavo@codesourcery.com>
2673
2674 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2675 * linux-nat.c: Include linux-procfs.h.
2676 (linux_proc_get_tgid): Move to ...
2677 * common/linux-procfs.c: ... here. New file.
2678 * common/linux-procfs.h: New file.
2679 * linux-thread-db.c: Include linux-procfs.h.
2680 * Makefile.in: Update dependencies.
2681 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2682 * config/arm/linux.mh: Likewise.
2683 * config/i386/linux.mh: Likewise.
2684 * config/i386/linux64.mh: Likewise.
2685 * config/ia64/linux.mh: Likewise.
2686 * config/m32r/linux.mh: Likewise.
2687 * config/m68k/linux.mh: Likewise.
2688 * config/mips/linux.mh: Likewise.
2689 * config/pa/linux.mh: Likewise.
2690 * config/pa/linux.mh: Likewise.
2691 * config/powerpc/linux.mh: Likewise.
2692 * config/powerpc/ppc64-linux.mh: Likewise.
2693 * config/powerpc/spu-linux.mh: Likewise.
2694 * config/sparc/linux.mh: Likewise.
2695 * config/sparc/linux64.mh: Likewise.
2696 * config/xtensa/linux.mh: Likewise.
2697
4e5c165d
HZ
26982011-08-24 Hui Zhu <teawater@gmail.com>
2699
2700 * tracepoint.c (cond_string_is_same): New function.
2701 (find_matching_tracepoint): Add condition check
2702 by cond_string_is_same.
2703
6e2f5b22
JK
27042011-08-23 Josh Matthews <josh@joshmatthews.net>
2705
2706 Fix build error in Darwin port.
2707 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2708
abf85f46
JK
27092011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2710
2711 Code cleanup.
2712 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2713 (command_line_is_silent): New function.
2714 (bpstat_do_actions_1): No longer use commands_left, use
2715 command_line_is_silent for commands.
2716 (bpstat_alloc): Remove clearing of commands_left.
2717 (bpstat_stop_status): Remove initialization of commands_left, use
2718 command_line_is_silent.
2719 * breakpoint.h (struct bpstats): Remove commands_left.
2720
3a93a0c2
KS
27212011-08-18 Keith Seitz <keiths@redhat.com>
2722
2723 PR c++/12266
2724 * cp-name-parser.y (struct demangle_info): Remove unused
2725 member PREV.
2726 (d_grab): Likewise.
2727 (allocate_info): Change return type to struct demangle_info *.
2728 Always allocate a new demangle_info.
2729 Remove unused PREV pointer.
2730 (cp_new_demangle_parse_info): New function.
2731 (cp_demangled_name_parse_free): New function.
2732 (do_demangled_name_parse_free_cleanup): New function.
2733 (make_cleanup_cp_demangled_name_parse_free): New function.
2734 (cp_demangled_name_to_comp): Change return type to
2735 struct demangle_parse_info *.
2736 Allocate a new storage for each call.
2737 (main): Update usage for cp_demangled_name_to_comp
2738 API change.
2739 * cp-support.h (struct demangle_parse_info): New structure.
2740 (cp_demangled_name_to_comp): Update API change for
2741 return type.
2742 (cp_new_demangle_parse_info): Declare.
2743 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2744 (cp_demangled_name_parse_free): Declare.
2745 * cp-support.c (cp_canonicalize_string): Update API
2746 change for cp_demangled_name_to_comp.
2747 (mangled_name_to_comp): Likewise.
2748 Return struct demangle_parse_info, too.
2749 (cp_class_name_from_physname): Update mangled_name_to_comp
2750 API change.
2751 (method_name_from_physname): Likewise.
2752 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2753 (cp_remove_params): Likewise.
2754 * python/py-type.c (typy_legacy_template_argument): Likewise.
2755
2756 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2757 (cp_merge_demangle_parse_infos): Declare.
2758 * cp-support.c (ignore_typedefs): New file global.
2759 (copy_string_to_obstack): New function.
2760 (inspect_type): New function.
2761 (replace_typedefs): New function.
2762 (replace_typedefs_qualified_name): New function.
2763 (cp_canonicalize_string_no_typedefs): New function.
2764 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2765 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2766 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2767 instead of cp_canonicalize_string.
2768 (find_method): Likewise.
2769 (decode_compound): Before looking up the name, call
2770 cp_canonicalize_string_no_typedefs.
2771 (decode_variable): Likewise.
2772
fa3a4f15
PM
27732011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2774 Tom Tromey <tromey@redhat.com>
2775 Matt Rice <ratmice@gmail.com>
2776
2777 * python/lib/gdb/prompt.py: New file.
2778 * python/lib/gdb/command/prompt.py: New file.
2779 * NEWS: Document set extended-prompt and gdb.prompt library
2780
85661b1e
YQ
27812011-08-16 Yao Qi <yao@codesourcery.com>
2782
2783 * tic6x-linux-tdep.c: Move const arrays definition from here...
2784 * tic6x-tdep.c: to here ...
2785
11315641
YQ
27862011-08-14 Yao Qi <yao@codesourcery.com>
2787
2788 * NEWS: New port to Texas Instruments TMS320C6x.
2789
8cd64e00
YQ
27902011-08-14 Andrew Jenner <andrew@codesourcery.com>
2791 Bernd Schmidt <bernds@codesourcery.com>
2792 Yao Qi <yao@codesourcery.com>
2793
2794 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2795 * solib-dsbt.c: New file. Support DSBT shared object.
2796 * tic6x-linux-tdep.c: New file.
2797 * tic6x-tdep.c: New file.
2798 * tic6x-tdep.h: New file.
2799
78d85199
YQ
28002011-08-14 Andrew Stubbs <ams@codesourcery.com>
2801 Yao Qi <yao@codesourcery.com>
2802
2803 * remote.c (PACKET_qXfer_fdpic): New enum value.
2804 (remote_protocol_features): Add qXfer:fdpic:read packet.
2805 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2806 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2807 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2808
224bbe49
YQ
28092011-08-14 Yao Qi <yao@codesourcery.com>
2810
2811 Target description for tic6x.
2812 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2813 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2814 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2815 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2816 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2817 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2818 * features/tic6x-c64xp-linux.xml: New.
2819 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2820 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2821 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2822 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2823 * regformats/tic6x-c64xp.dat,
2824 regformats/tic6x-c62x-linux.dat: Generated.
2825 * regformats/tic6x-c64x-linux.dat,
2826 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2827 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2828 features/tic6x-*.c files.
2829 Add regformats/tic6x-*.dat files.
2830
457e09f0
DE
28312011-08-12 Doug Evans <dje@google.com>
2832
2833 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2834 * python/py-symbol.c (sympy_get_type): New function.
2835 (symbol_object_getset): Add "type".
2836
d20c1c3f
PA
28372011-08-12 Pedro Alves <pedro@codesourcery.com>
2838
2839 PR tui/13073
2840
2841 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2842 empty name.
2843 (tui_show_register_group): Don't store a byte buffer in the data
2844 element's value.
2845 (tui_register_format): Skip registers with an empty name.
2846 (tui_get_register): Store a struct value in the data element's
2847 value field instead of a byte buffer holding the raw register
2848 contents. Account for optimized-out and unavailable registers
2849 when comparing register contents.
2850
9d8fa392
PA
28512011-08-09 Pedro Alves <pedro@codesourcery.com>
2852
2853 * printcmd.c (current_display_number): Update comment.
2854 (disable_current_display_cleanup): Delete.
2855 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2856 catch errors thrown while evaluating and printing the display.
2857
401a70b8
TT
28582011-08-09 Tom Tromey <tromey@redhat.com>
2859
2860 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2861
7f86f058
PA
28622011-08-09 Pedro Alves <pedro@codesourcery.com>
2863
94b71cca 2864 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2865 * maint.c (maintenance_command): Ditto.
2866 * somread.c (som_symtab_read): Ditto.
2867 * solib.c (solib_find, solib_map_sections, update_solib_list)
2868 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2869 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2870 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2871 * solib-irix.c (locate_base, disable_break, enable_break)
2872 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2873 (irix_current_sos, irix_open_symbol_file_object)
2874 (irix_special_symbol_handling): Ditto.
2875 * solib-sunos.c (locate_base, first_link_map_member)
2876 (sunos_current_sos, disable_break, enable_break)
2877 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2878 Ditto.
2879 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2880 (open_symbol_file_object, svr4_current_sos, enable_break)
2881 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2882 Ditto.
2883 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2884 (frv_current_sos, enable_break, frv_special_symbol_handling)
2885 (frv_solib_create_inferior_hook): Ditto.
2886 * solist.h (struct target_so_ops): Extend the comments of the
2887 special_symbol_handling, current_sos and open_symbol_file_object
2888 methods.
2889
5e239b84
PM
28902011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2891
2892 * python/lib/gdb/__init__.py: Auto-load files in command and
2893 function directories.
2894 * python/python.c (finish_python_initialization): Use
2895 os.path.join.
2896 * python/lib/gdb/command/pretty_printers.py: Self register
2897 command.
2898 * NEWS: Document auto-loading.
2899
b6cede78
JK
29002011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2901
2902 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2903 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2904 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2905
29d0bb3d
TT
29062011-08-08 Tom Tromey <tromey@redhat.com>
2907
2908 * breakpoint.c (clean_up_filters): Remove.
2909 (catch_syscall_split_args): Use VEC_cleanup.
2910
2f7fb8e4
JK
29112011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2912
2913 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2914 (main): Uncomment "Demangling error\n".
2915
d6c10e95
PP
29162011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2917
2918 * solib-target.c (segment_attributes): Make them static.
2919 (section_attributes, library_children, library_attributes): Likewise.
2920 (library_list_children, library_list_attributes): Likesise.
2921 (library_list_elements): Likewise.
2922
af6e93b2
PA
29232011-08-05 Pedro Alves <pedro@codesourcery.com>
2924
2925 * exceptions.c (throw_exception): Don't disable the current
2926 display.
2927 * printcmd.c (disable_current_display_cleanup): New function.
2928 (do_one_display): Install a cleanup to disable the current display
2929 if doing the display throws.
2930
6a1b1664
EZ
29312011-08-05 Eli Zaretskii <eliz@gnu.org>
2932
2933 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2934 initialization of the tp_new member to the corresponding
2935 gdbpy_initialize_* function.
2936 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2937 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2938 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2939 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2940 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2941
31a0ae49
JK
29422011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2943
2944 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2945 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2946 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2947 references to current_uiout.
2948
e0dd0826
PA
29492011-08-04 Pedro Alves <pedro@codesourcery.com>
2950
2951 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2952 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2953 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2954 * top.c (gdb_readline_wrapper): Adjust.
2955 * tui/tui-interp.c (tui_command_loop):
2956 (_initialize_tui_interp): Don't install it.
2957
79a45e25
PA
29582011-08-04 Pedro Alves <pedro@codesourcery.com>
2959
2960 * ui-out.h (uiout): Rename to ...
2961 (current_uiout): ... this.
2962 * ui-out.c (uiout): Rename to ...
2963 (current_uiout): ... this.
2964 * ada-lang.c (print_it_exception, print_one_exception)
2965 (print_mention_exception): Adjust.
2966 * breakpoint.c (watchpoint_check): Adjust.
2967 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2968 (default_collect_info, watchpoints_info, print_one_catch_fork)
2969 (print_one_catch_vfork, print_one_catch_syscall)
2970 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2971 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2972 (print_it_watchpoint, print_mention_watchpoint)
2973 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2974 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2975 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2976 (bkpt_print_mention, momentary_bkpt_print_it)
2977 (tracepoint_print_mention, update_static_tracepoint)
2978 (tracepoints_info, save_breakpoints): Adjust.
2979 * cli-out.c (field_separator): Adjust.
2980 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2981 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2982 * frame.c (get_current_frame): Adjust.
2983 * infcmd.c (run_command_1, print_return_value): Adjust.
2984 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2985 * infrun.c (print_end_stepping_range_reason): Adjust.
2986 (print_signal_exited_reason, print_exited_reason): Adjust.
2987 (print_signal_received_reason, print_no_history_reason): Adjust.
2988 * interps.c (interp_set): Adjust.
2989 * osdata.c (info_osdata_command): Adjust.
2990 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2991 * remote-fileio.c (remote_fileio_request): Adjust.
2992 * remote.c (show_remote_cmd): Adjust.
2993 * solib.c (info_sharedlibrary_command): Adjust.
2994 * source.c (print_source_lines_base): Adjust.
2995 * stack.c (print_stack_frame): Adjust.
2996 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2997 * symfile-mem.c (add_vsyscall_page): Adjust.
2998 * symfile.c (load_progress, generic_load)
2999 (print_transfer_performance): Adjust.
3000 * thread.c (info_threads_command, restore_selected_frame)
3001 (thread_command): Adjust.
3002 * top.c (make_cleanup_restore_ui_file): Adjust.
3003 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3004 (print_one_static_tracepoint_marker): Adjust.
3005 * cli/cli-cmds.c (print_disassembly): Adjust.
3006 * cli/cli-decode.c (print_doc_line): Adjust.
3007 * cli/cli-interp.c (safe_execute_command): Adjust.
3008 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3009 (handle_redirections): Adjust.
3010 * cli/cli-script.c (show_user_1): Adjust.
3011 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3012 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3013 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3014 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3015 (mi_cmd_env_dir): Adjust.
3016 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3017 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3018 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3019 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3020 (list_args_or_locals): Adjust.
3021 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3022 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3023 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3024 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3025 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3026 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3027 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3028 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3029 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3030 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3031 (list_available_thread_groups, mi_cmd_list_thread_groups)
3032 (mi_cmd_data_list_register_names)
3033 (mi_cmd_data_list_changed_registers)
3034 (mi_cmd_data_list_register_values, get_register)
3035 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3036 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3037 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3038 (mi_execute_command, mi_load_progress): Adjust.
3039 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3040 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3041 Adjust.
3042 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3043 * tui/tui-interp.c (tui_command_loop): Adjust.
3044 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3045
f9679975
PA
30462011-08-04 Pedro Alves <pedro@codesourcery.com>
3047
3048 * exceptions.c (struct catcher): Remove saved_uiout field.
3049 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3050 no longer save/resvore the global ui_out builder.
3051 (catch_exceptions_with_msg): Save/override/restore the global
3052 ui_out builder manually instead of relying on TRY_CATCH to do it.
3053 (catch_errors): Save/restore the global ui_out builder manually
3054 instead of relying on TRY_CATCH to do it.
3055 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3056 parameter.
3057 (TRY_CATCH): Adjust.
3058 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3059 the global ui_out builder manually instead of relying on TRY_CATCH
3060 to do it.
3061
934709f0
PW
30622011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3063
3064 * breakpoint.c (update_global_location_list): Ensure
3065 invariant 'first loc marked not duplicated and inserted,
3066 following locs marked duplicated/not inserted' is respected
3067 for multiple locations at the same address.
3068 (unduplicated_should_be_inserted) New function.
3069 (swap_insertion) New function.
3070
2421fe6f
JK
30712011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3072
3073 * stack.c (print_frame_arguments_choices): Comment typo fix.
3074
3fbb6ffa
TJB
30752011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3076
3077 Revert:
3078 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3079 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3080 argument. Update callers.
3081
fbe12357
PP
30822011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3083
3084 PR gdb/13045
3085 * doublest.c (convert_doublest_to_floatformat): Pass correct
3086 mantissa length to put_field.
3087
b1d288d3
JK
30882011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3089
3090 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3091 exception_print code path.
3092 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3093 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3094 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3095
311b5970
JK
30962011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3097
3098 Code cleanup.
3099 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3100 Remove, merge them into ...
3101 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3102 variable args and its initialization.
3103 (struct print_args_args, print_args_stub): Remove, merge them into
3104 print_frame.
3105 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3106 them into ...
3107 (do_gdb_disassembly): ... here. Remove variable args and its
3108 initialization.
3109 (print_frame): Remove variable args and its initialization, new
3110 variable gdbarch and numargs (from print_args_stub), inline here
3111 print_args_stub with a TRY_CATCH.
3112 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3113 them into ...
3114 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3115 New variable e, remove variable btargs and its initialization.
311b5970 3116
484a26a8
TG
31172011-08-01 Tristan Gingold <gingold@adacore.com>
3118
3119 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3120
c30eee59
TJB
31212011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3122
3123 * breakpoint.c (insert_bp_location): Document return value.
3124 (insert_breakpoint_locations): Fix documentation.
3125 (remove_breakpoints): Add documentation.
3126
f116073b
TJB
31272011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3128
3129 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3130 argument. Update callers.
3131
65aa373f
JK
31322011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3133
3134 * stack.c (print_frame_info): Comment typo fix.
3135
a50242fb
SA
31362011-07-29 Sterling Augustine <saugustine@google.com>
3137
3138 * MAINTAINERS (Write After Approval): Add myself to the list.
3139
267f6504
TT
31402011-07-29 Tom Tromey <tromey@redhat.com>
3141
3142 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3143 (library_list_start_segment): Update.
3144 (library_list_start_section): Update.
3145
00bd41d6
PM
31462011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3147
3148 * varobj.c (value_get_print_value): Move hint check later into the
3149 function. Comment function. Free thevalue before reusing it.
3150
18a46dbe
JK
31512011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3152 Pedro Alves <pedro@codesourcery.com>
3153
3154 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3155 value_one.
3156 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3157 Assert the result kind.
3158 * value.h (value_one): Remove parameter lv.
3159
bb7da2bf
JK
31602011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3161
3162 Fix crash on lval_computed values.
3163 * valops.c (value_zero): Use not_lval for lval_computed.
3164
2d5213f8
TT
31652011-07-27 Tom Tromey <tromey@redhat.com>
3166
3167 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3168 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3169
11081198
JK
31702011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3171
3172 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3173 "ptype" by their typedefs difference.
3174
3c6e0cb3
JK
31752011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * dwarf2expr.c (ctx_no_read_reg): New function.
3178 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3179 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3180 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3181 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3182
523f3620
JK
31832011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3184
3185 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3186 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3187 file.
3188 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3189 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3190 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3191 (ctx_no_get_base_type): Move the functions here.
3192 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3193 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3194 (ctx_no_get_base_type): New declarations.
3195
24d3216f
TT
31962011-07-27 Tom Tromey <tromey@redhat.com>
3197
3198 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3199 entries.
3200 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3201 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3202
5005c8a9
PP
32032011-07-26 Sterling Augustine <saugustine@google.com>
3204
3205 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3206 ULONGEST.
3207 (dump_bfd_file): Likewise.
3208
480a3f21
PW
32092011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3210
3211 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3212 (remote_hw_watchpoint_length_limit): New variable.
3213 (_initialize_remote) add set,show cmds for this new variable.
3214 * gdb.texinfo: document these new commands.
3215 * NEWS: Mention these new commands.
3216
efa80663
PA
32172011-07-26 Pedro Alves <pedro@codesourcery.com>
3218
3219 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3220 true for software watchpoints.
3221
dbdaa232 32222011-07-26 Joel Brobecker <brobecker@adacore.com>
3223
3224 GDB 7.3 released.
3225
cf2c3c16
TT
32262011-07-26 Tom Tromey <tromey@redhat.com>
3227
3228 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3229 * dwarf2read.c (read_indirect_string_at_offset): New function.
3230 (read_indirect_string): Use it.
3231 (dwarf_decode_macro_bytes): New function, taken from
3232 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3233 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3234 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3235 New functions.
3236 (struct dwarf2_per_objfile) <macro>: New field.
3237 (dwarf2_elf_names): Add .debug_macro.
3238 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3239 (dwarf2_locate_sections): Handle new section.
3240 (read_file_scope): Handle DW_AT_GNU_macros.
3241 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3242
1a532630
PP
32432011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3244
3245 * NEWS: Mention dcache configuration.
3246 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3247 (dcache_size, dcache_line_size): New variables.
3248 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3249 (struct dcache_block): Make it expandable.
3250 (struct dcache_struct): New field.
3251 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3252 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3253 (dcache_poke_byte, dcache_print_line): Adjust.
3254 (set_dcache_size, set_dcache_line_size): New functions.
3255 (set_dcache_command, show_dcache_command): New functions.
3256 (_initialize_dcache): Add new commands.
3257
2eff07b3
PP
32582011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3259
3260 * progspace.h (struct program_space): Add solib_add_generation.
3261 * infcmd.c (post_create_inferior): Only call solib_add if not
3262 already done.
3263 * solib.c (solib_add): Increment solib_add_generation.
3264
543305c9
JK
32652011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3266
3267 Fix implicit pointer offsets.
3268 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3269 ptr.OFFSET.
3270
c0a91b2b
TT
32712011-07-25 Tom Tromey <tromey@redhat.com>
3272
3273 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3274 const.
3275 (ada_exception_sal): Make 'ops' const.
3276 (ada_decode_exception_location): Likewise.
3277 (ada_decode_assert_location): Likewise.
3278 (catch_assert_command): Update.
3279 (catch_ada_exception_command): Update.
3280 (create_ada_exception_catchpoint): Make 'ops' const.
3281 * breakpoint.c (set_raw_breakpoint_without_location)
3282 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3283 const.
3284 (create_internal_breakpoint): Update.
3285 (init_raw_breakpoint_without_location): Make 'ops' const.
3286 (init_raw_breakpoint, init_catchpoint)
3287 (create_fork_vfork_event_catchpoint)
3288 (create_syscall_event_catchpoint, init_breakpoint_sal)
3289 (create_breakpoint_sal, create_breakpoints_sal)
3290 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3291 * breakpoint.h (struct breakpoint) <ops>: Now const.
3292 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3293 const.
3294
6cb9b55b
PP
32952011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3296
3297 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3298
d9b3f62e
PA
32992011-07-25 Pedro Alves <pedro@codesourcery.com>
3300
3301 * breakpoint.h (print_recreate_thread): Declare.
3302 (struct breakpoint): Move step_count, pass_count,
3303 number_on_target, static_trace_marker_id,
3304 static_trace_marker_id_idx ...
3305 (struct tracepoint): ... to this new struct.
3306 (get_tracepoint, get_tracepoint_by_number_on_target)
3307 (get_tracepoint_by_number): Change return type to struct
3308 tracepoint pointer.
3309 * breakpoint.c (is_tracepoint_type): New, factored out from
3310 is_tracepoint.
3311 (is_tracepoint): Adjust.
3312 (print_one_breakpoint_location): Cast to struct tracepoint as
3313 necessary, and adjust.
3314 (print_recreate_catch_fork, print_recreate_catch_vfork)
3315 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3316 print_recreate_thread.
3317 (init_breakpoint_sal): New, factored out from
3318 create_breakpoint_sal.
3319 (create_breakpoint_sal): Reimplement.
3320 (create_breakpoint): Allocate a struct tracecepoint if the caller
3321 wanted a tracepoint. Use init_breakpoint_sal and
3322 install_breakpoint.
3323 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3324 (print_recreate_masked_watchpoint)
3325 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3326 (tracepoint_print_one_detail): Adjust.
3327 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3328 Dump the pass count here.
3329 (update_static_tracepoint): Adjust.
3330 (addr_string_to_sals): Adjust.
3331 (create_tracepoint_from_upload): Adjust. Change return type to
3332 struct tracepoint pointer.
3333 (trace_pass_set_count): Change parameter type to struct tracepoint
3334 pointer, and adjust.
3335 (trace_pass_command): Adjust.
3336 (get_tracepoint, get_tracepoint_by_number_on_target)
3337 (get_tracepoint_by_number): Change return type to struct
3338 tracepoint pointer, and adjust.
3339 (print_recreate_thread): New, factored out from save_breakpoints.
3340 (save_breakpoints): Don't print thread and task and passcount
3341 recreation here.
3342 * remote.c (remote_download_tracepoint): Adjust.
3343 * tracepoint.c (trace_actions_command, validate_actionline)
3344 (start_tracing, tfind_1, trace_find_tracepoint_command)
3345 (trace_dump_command): Adjust.
3346 (find_matching_tracepoint): Change return type to struct
3347 tracepoint pointer, and adjust.
3348 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3349 (tfile_trace_find, tfile_fetch_registers): Adjust.
3350 * tracepoint.h (create_tracepoint_from_upload): Change return type
3351 to struct tracepoint pointer.
3352 * ada-lang.c (print_recreate_exception): Call
3353 print_recreate_thread.
3354 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3355
3a5c3e22
PA
33562011-07-25 Pedro Alves <pedro@codesourcery.com>
3357
3358 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3359 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3360 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3361 watchpoint_thread, watchpoint_triggered ...
3362 (struct watchpoint): ... to this new struct.
3363 (is_watchpoint): Declare.
3364 (install_breakpoint): Add new `internal' parameter.
3365 * breakpoint.c (is_watchpoint): Delete declaration.
3366 (set_breakpoint_condition): Handle watchpoints.
3367 (is_watchpoint): Make public.
3368 (watchpoint_in_thread_scope): Change parameter type to struct
3369 watchpoint.
3370 (watchpoint_del_at_next_stop): Change parameter type to struct
3371 watchpoint. Remove assertion. Adjust.
3372 (update_watchpoint): Ditto.
3373 (insert_breakpoints, breakpoint_init_inferior)
3374 (watchpoints_triggered, watchpoint_check)
3375 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3376 (bpstat_stop_status, print_one_breakpoint_location)
3377 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3378 to struct watchpoint as necessary, and adjust.
3379 (install_breakpoint): Add `internal' argument. If true, don't
3380 mention the new breakpoint. Use set_breakpoint_number.
3381 (create_fork_vfork_event_catchpoint)
3382 (create_syscall_event_catchpoint): Adjust.
3383 (dtor_watchpoint): New.
3384 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3385 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3386 (print_it_watchpoint, print_mention_watchpoint)
3387 (print_recreate_watchpoint, insert_masked_watchpoint)
3388 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3389 (print_one_detail_masked_watchpoint)
3390 (print_mention_masked_watchpoint)
3391 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3392 necessary, and adjust.
3393 (watch_command_1): Allocate and initialize a struct watchpoint
3394 instead of a struct breakpoint. Use install_breakpoint.
3395 (catch_exec_command_1): Adjust.
3396 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3397 fields.
3398 (delete_breakpoint, enable_breakpoint_disp)
3399 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3400 as necessary, and adjust.
3401 (initialize_breakpoint_ops): Install dtor_watchpoint as
3402 watchpoints' dtor method.
3403 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3404 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3405 to struct watchpoint as necessary, and adjust.
3406
2060206e
PA
34072011-07-25 Pedro Alves <pedro@codesourcery.com>
3408
3409 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3410 the the base class ops table.
3411 (catch_exception_breakpoint_ops)
3412 (catch_exception_unhandled_breakpoint_ops)
3413 (catch_assert_breakpoint_ops): Don't statically initialize.
3414 (initialize_ada_catchpoint_ops): New.
3415 (_initialize_ada_language): Call it.
3416 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3417 (bkpt_breakpoint_ops): Forward declare.
3418 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3419 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3420 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3421 (masked_watchpoint_breakpoint_ops)
3422 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3423 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3424 base class ops table.
3425 (null_re_set, null_check_status, null_works_in_software_mode)
3426 (null_resources_needed, null_print_one_detail): Delete.
3427 (bkpt_dtor): Rename to ...
3428 (base_breakpoint_dtor): ... this. Make static.
3429 (bkpt_allocate_location): Rename to ...
3430 (base_breakpoint_allocate_location): ... this. Make static.
3431 (base_breakpoint_re_set): New.
3432 (internal_error_pure_virtual_called): New.
3433 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3434 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3435 (base_breakpoint_works_in_software_mode)
3436 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3437 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3438 (base_breakpoint_print_recreate): New functions.
3439 (base_breakpoint_ops): New global.
3440 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3441 (bkpt_breakpoint_hit): Make static.
3442 (bkpt_check_status): Delete.
3443 (bkpt_resources_needed): Make static.
3444 (bkpt_works_in_software_mode): Delete.
3445 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3446 static.
3447 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3448 (momentary_breakpoint_ops): Don't statically initialize.
3449 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3450 Delete.
3451 (tracepoint_insert_location, tracepoint_remove_location)
3452 (tracepoint_check_status, tracepoint_works_in_software_mode)
3453 (tracepoint_print_it): Delete.
3454 (tracepoint_breakpoint_ops): Don't statically initialize.
3455 (initialize_breakpoint_ops): New.
3456 (_initialize_breakpoint): Call it.
3457 * breakpoint.h (null_re_set, null_works_in_software_mode)
3458 (null_resources_needed, null_check_status, null_print_one_detail):
3459 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3460 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3461 (bkpt_check_status, bkpt_resources_needed)
3462 (bkpt_works_in_software_mode, bkpt_print_it)
3463 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3464 Delete declarations.
3465 (initialize_breakpoint_ops): Declare.
3466
001c8c33
PA
34672011-07-25 Pedro Alves <pedro@codesourcery.com>
3468
3469 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3470 (momentary_bkpt_print_it): Simplify.
3471
06edf0c0
PA
34722011-07-25 Pedro Alves <pedro@codesourcery.com>
3473
3474 Split internal, momentary and user breakpoints breakpoint_ops
3475 tables.
3476
3477 * breakpoint.c (internal_breakpoint_ops)
3478 (momentary_breakpoint_ops): Forward declare.
3479 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3480 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3481 (create_overlay_event_breakpoint)
3482 (create_std_terminate_master_breakpoint)
3483 (create_exception_master_breakpoint): Create breakpoints with
3484 internal_breakpoint_ops vtable.
3485 (set_longjmp_breakpoint): Create momentary breakpoints with
3486 momentary_breakpoint_ops vtable, using
3487 momentary_breakpoint_from_master.
3488 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3489 (create_solib_event_breakpoint): Create breakpoints with
3490 internal_breakpoint_ops vtable.
3491 (set_momentary_breakpoint): Create breakpoints with
3492 momentary_breakpoint_ops vtable.
3493 (momentary_breakpoint_from_master): New, factored out from
3494 clone_momentary_breakpoint.
3495 (clone_momentary_breakpoint): Adjust.
3496 (watch_command_1): Create scope breakpoints with
3497 momentary_breakpoint_ops vtable.
3498 (bkpt_re_set): Remove handling of internal and momentary
3499 breakpoints.
3500 (bkpt_print_mention, bkpt_print_recreate): New.
3501 (bkpt_breakpoint_ops): Adjust.
3502 (internal_bkpt_re_set, internal_bkpt_check_status)
3503 (internal_bkpt_print_it, internal_bkpt_print_mention)
3504 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3505 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3506 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3507 (momentary_bkpt_print_recreate): New.
3508 (momentary_breakpoint_ops): New.
3509
348d480f
PA
35102011-07-25 Pedro Alves <pedro@codesourcery.com>
3511
3512 Implement most breakpoint_ops methods for all breakpoint types,
3513 and move the default handlings to the proper callbacks.
3514
3515 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3516 works_in_software_mode method.
3517 (insert_bp_location): Go through breakpoint_ops->insert_location
3518 for software and hardware watchpoints.
3519 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3520 breakpoint_ops.
3521 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3522 for software and hardware watchpoints.
3523 (print_it_typical): Delete.
3524 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3525 method.
3526 (watchpoint_check): Adjust comment.
3527 (bpstat_check_location): Simply always call the breakpoint's
3528 breakpoint_hit method.
3529 (bpstat_stop_status): Always call the breakpoint's check_status
3530 method. Remove special cases for watchpoints and internal event
3531 breakpoints from here (moved to the check_status implementations).
3532 (print_one_breakpoint_location): Assume b->ops is never NULL.
3533 Remove static tracepoint marker id printing from here (moved to
3534 the print_one_detail callback implementation of tracepoints).
3535 (init_bp_location): Assert OPS is never NULL.
3536 (allocate_bp_location): Always call the breakpoint's
3537 allocate_location method, and remove the default code from here.
3538 (free_bp_location): Always call the location's dtor method, and
3539 remove the default code from here.
3540 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3541 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3542 parameter. Pass it down.
3543 (set_raw_breakpoint): Ditto.
3544 (print_it_catch_fork): Adjust to take a bpstat as argument.
3545 (catch_fork_breakpoint_ops): Install methods.
3546 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3547 (catch_vfork_breakpoint_ops): Install methods.
3548 (dtor_catch_syscall): Call the base dtor.
3549 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3550 (catch_syscall_breakpoint_ops): Install methods.
3551 (dtor_catch_exec): Call the base dtor.
3552 (print_it_catch_exec): Adjust to take a bpstat as argument.
3553 (catch_exec_breakpoint_ops): Install methods.
3554 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3555 the breakpoint's resources_needed method, and remove the default
3556 code from here.
3557 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3558 breakpoint_ops.
3559 (clone_momentary_breakpoint): Clone the original's ops.
3560 (mention): Always call the breakpoint's print_mention method, and
3561 remove the default code from here.
3562 (create_breakpoint_sal): Adjust to pass the ops to
3563 set_raw_breakpoint rather than setting it manually.
3564 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3565 ops to set_raw_breakpoint_without_location rather than setting it
3566 manually.
3567 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3568 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3569 (ranged_breakpoint_ops): Install methods.
3570 (break_range_command): Adjust to pass the ops to
3571 set_raw_breakpoint rather than setting it manually.
3572 (re_set_watchpoint, breakpoint_hit_watchpoint)
3573 (check_status_watchpoint, resources_needed_watchpoint)
3574 (works_in_software_mode_watchpoint, print_it_watchpoint)
3575 (print_mention_watchpoint, print_recreate_watchpoint): New
3576 functions.
3577 (watchpoint_breakpoint_ops): Install new methods.
3578 (print_it_masked_watchpoint): New function.
3579 (masked_watchpoint_breakpoint_ops): Install new methods.
3580 (watch_command_1): Adjust to pass the right breakpoint_ops to
3581 set_raw_breakpoint_without_location rather than setting it
3582 manually later. Record the current pspace.
3583 (print_it_exception_catchpoint): Adjust to take a bpstat as
3584 argument.
3585 (gnu_v3_exception_catchpoint_ops): Install new methods.
3586 (say_where): New function.
3587 (null_re_set, null_check_status, null_works_in_software_mode)
3588 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3589 New functions.
3590 (bp_location_ops): New global.
3591 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3592 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3593 (bkpt_check_status, bkpt_resources_needed)
3594 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3595 (bkpt_print_recreate): New functions.
3596 (bkpt_breakpoint_ops): New global.
3597 (tracepoint_re_set, tracepoint_insert_location)
3598 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3599 (tracepoint_check_status, tracepoint_works_in_software_mode)
3600 (tracepoint_print_it, tracepoint_print_one_detail)
3601 (tracepoint_print_mention, tracepoint_print_recreate): New
3602 functions.
3603 (tracepoint_breakpoint_ops): New global.
3604 (delete_breakpoint): Always call the breakpoint's dtor method, and
3605 remove the default handling from here.
3606 (breakpoint_re_set_default): Make static.
3607 (breakpoint_re_set_one): Always call the breakpoints re_set
3608 method, and remove the default handling from here.
3609 (trace_command, ftrace_command, strace_command)
3610 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3611 to create_breakpoint.
3612 (save_breakpoints): Always call the breakpoint's print_recreate
3613 method, and remove the default handling from here.
3614
3615 * ada-lang.c (dtor_exception): Call the base dtor.
3616 (re_set_exception): Call the base method.
3617 (print_it_exception, print_it_catch_exception): Adjust to take a
3618 bpstat as argument.
3619 (catch_exception_breakpoint_ops): Install methods.
3620 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3621 argument.
3622 (catch_exception_unhandled_breakpoint_ops): Install methods.
3623 (print_it_catch_assert): Adjust to take a bpstat as argument.
3624 (catch_assert_breakpoint_ops): Install methods.
3625
3626 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3627 to take a bpstat as argument.
3628 (enum print_stop_action): Add describing comments to each enum
3629 value.
3630 (breakpoint_re_set_default): Delete declaration.
3631 (null_re_set, null_works_in_software_mode, null_resources_needed)
3632 (null_check_status, null_print_one_detail): Declare.
3633 (bkpt_breakpoint_ops): Declare.
3634 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3635 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3636 (bkpt_check_status, bkpt_resources_needed)
3637 (bkpt_works_in_software_mode, bkpt_print_it)
3638 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3639 Declare.
3640
3641 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3642 bkpt_breakpoint_ops.
3643 * python/py-breakpoint.c (bppy_init): Ditto.
3644
be8f8133
PW
36452011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3646
3647 * MAINTAINERS (Write After Approval): Add myself to the list.
3648
3807f613
PP
36492011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3650
3651 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3652
1ced966e
PA
36532011-07-22 Pedro Alves <pedro@codesourcery.com>
3654
3655 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3656 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3657 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3658 adjust.
3659 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3660 (struct i386_debug_reg_state): New.
3661 (i386_init_dregs): New.
3662 (dr_mirror): New.
3663 (i386_cleanup_dregs): Use i386_init_dregs.
3664 (i386_show_dr): Add state parameter and adjust.
3665 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3666 the inferior here.
3667 (i386_remove_aligned_watchpoint): Likewise.
3668 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3669 (i386_update_inferior_debug_regs): New.
3670 (i386_insert_watchpoint): Work on a local mirror of the debug
3671 registers, and only update the inferior on success.
3672 (i386_remove_watchpoint): Ditto.
3673 (i386_region_ok_for_watchpoint): Adjust.
3674 (i386_stopped_data_address): Adjust.
3675 (i386_insert_hw_breakpoint): Adjust.
3676 (i386_remove_hw_breakpoint): Adjust.
3677
3543a589
TT
36782011-07-22 Tom Tromey <tromey@redhat.com>
3679
3680 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3681 from amd64_pseudo_register_read. Change arguments. Call
3682 mark_value_bytes_unavailable when needed.
3683 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3684 set_gdbarch_pseudo_register_read.
3685 * sentinel-frame.c (sentinel_frame_prev_register): Use
3686 regcache_cooked_read_value.
3687 * regcache.h (regcache_cooked_read_value): Declare.
3688 * regcache.c (regcache_cooked_read_value): New function.
3689 (regcache_cooked_read): Call
3690 gdbarch_pseudo_register_read_value if available.
3691 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3692 (i386_pseudo_register_read): Remove.
3693 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3694 i386_pseudo_register_read. Change arguments. Call
3695 mark_value_bytes_unavailable when needed.
3696 (i386_pseudo_register_read_value): New function.
3697 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3698 not set_gdbarch_pseudo_register_read.
3699 * gdbarch.sh (pseudo_register_read_value): New method.
3700 * gdbarch.c, gdbarch.h: Rebuild.
3701 * findvar.c (value_from_register): Call get_frame_register_value.
3702
95298e72
PM
37032011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3704
3705 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3706 get_prefix.
3707 (display_gdb_prompt): Likewise.
3708 (change_annotation_level): Likewise.
3709 (push_prompt): Likewise.
3710 (pop_prompt): Likewise.
3711 (handle_stop_sig): Use get_prompt with a level.
3712 * top.c (command_loop): Use get_prompt with a level.
3713 (set_async_annotation_level): Use set_prompt with a level.
3714 (get_prefix): New function.
3715 (set_prefix): Ditto.
3716 (set_suffix): Ditto.
3717 (get_suffix): Ditto.
3718 (get_prompt): Accept a level argument.
3719 (set_prompt): Accept a level argument. Free old prompts. Set
3720 new_async_prompt if level is 0.
3721 (init_main): Use set_prompt with a level. Do not set
3722 new_async_prompt.
3723 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3724 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3725 Modify set_prompt, get_prompt to account for levels.
3726 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3727 level.
3728 * python/python.c (before_prompt_hook): Use set_prompt.
3729
d26e3629
KY
37302011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3731
3732 * defs.h: Add guard against inclusion in gdbserver.
3733 (struct ptid, ptid_t): Move to common/ptid.h.
3734 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3735 xsnprintf, internal_error): Move to common/common-utils.h.
3736 (nomem): Delete.
3737 * gdb_assert.h: Move into common/ sub-directory.
3738 * gdb_locale.h: Ditto.
3739 * gdb_dirent.h: Ditto.
3740 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3741 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3742 Move into common/ptid.h.
3743 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3744 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3745 Change nomem to malloc_failure.
3746 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3747 * utils.c (nomem): Rename to malloc_failure.
3748 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3749 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3750 (gdb_buildargv): Change nomem to malloc_failure.
3751 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3752 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3753 ptid_is_pid): Move into common/ptid.c.
3754 (initialize_infrun): Delete initialization of null_ptid and
3755 minus_one_ptid.
3756 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3757 linux_common_xfer_osdata.
3758 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3759 common/ptid.c and common/buffer.c.
3760 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3761 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3762 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3763 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3764 rules.
3765 * common/gdb_assert.h: New.
3766 * common/gdb_dirent.h: New.
3767 * common/gdb_locale.h: New.
3768 * common/buffer.c: New.
3769 * common/buffer.h: New.
3770 * common/ptid.c: New.
3771 * common/ptid.h: New.
3772 * common/xml-utils.c: New.
3773 * common/xml-utils.h: New.
3774 * common/common-utils.c: New.
3775 * common/common-utils.h: New.
3776 * common/linux-osdata.c: New.
3777 * common/linux-osdata.h: New.
3778 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3779 * config/arm/linux.mh (NATDEPFILES): Ditto.
3780 * config/i386/linux.mh (NATDEPFILES): Ditto.
3781 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3782 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3783 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3784 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3785 * config/mips/linux.mh (NATDEPFILES): Ditto.
3786 * config/pa/linux.mh (NATDEPFILES): Ditto.
3787 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3788 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3789 * config/s390/s390.mh (NATDEPFILES): Ditto.
3790 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3791 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3792 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3793
edc84990 37942011-07-21 Matt Rice <ratmice@gmail.com>
3795
3796 * NEWS: Add info macros and info definitions commands.
3797
3a7bf607
PM
37982011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3799
3800 * NEWS: Document Python prompt substitution hook.
3801
9b158ba0 38022011-07-18 Matt Rice <ratmice@gmail.com>
3803
3804 PR macros/12999
3805 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3806 * macrotab.c (foreach_macro): Ditto.
3807 (foreach_macro_in_scope): Ditto.
3808 * macrocmd.c (print_macro_callback): New function.
3809 (info_macro_command): Move some code to print_macro_definition.
3810 (print_macro_definition): New function.
3811 (print_one_macro): Add new arguments to callback.
3812 (info_definitions_command): New function.
3813 (info_macros_command): Ditto.
3814 (_initialize_macrocmd): Add info macros and info definitions commands.
3815 * symtab.c (add_macro_name): Add new arguments to callback.
3816
d17b6f81
PM
38172011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3818 Tom Tromey <tromey@redhat.com>
3819
3820 * top.c (set_prompt): Rewrite to free previous prompt, free
3821 asynch_new_prompt and set both on new prompts.
3822 * event-top.c (display_gdb_prompt): Add prompt substitution
3823 logic.
3824 * python/python.c (before_prompt_hook): New function.
3825
1364323a 38262011-07-20 Matt Rice <ratmice@gmail.com>
3827
3828 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3829 arguments to store_unsigned_integer.
3830
8b70b953
TT
38312011-07-20 Tom Tromey <tromey@redhat.com>
3832
6c83ed52
TT
3833 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3834 in some declaration-only cases.
3835
38362011-07-18 Tom Tromey <tromey@redhat.com>
3837
8b70b953
TT
3838 PR symtab/12984:
3839 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3840 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3841 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3842 <debug_type_section>: New field.
3843 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3844 (load_cu): Use appropriate section.
3845 (create_signatured_type_table_from_index): Add 'section'
3846 argument.
3847 (dwarf2_read_index): Only allow a single .debug_types section.
3848 (dw2_get_file_names): Use appropriate section.
3849 (read_type_comp_unit_head): Add 'section' argument.
3850 (create_debug_types_hash_table): Loop over all .debug_types
3851 sections.
3852 (init_cu_die_reader): Use appropriate section.
3853 (process_psymtab_comp_unit, load_partial_comp_unit)
3854 (load_full_comp_unit, read_die_and_children, find_partial_die)
3855 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3856 (lookup_signatured_type_at_offset): Add 'section' argument.
3857 (read_signatured_type_at_offset): Add 'sect' argument.
3858 (read_signatured_type): Use appropriate section.
3859 (set_die_type, get_die_type_at_offset): Update.
3860 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3861 VEC.
3862 (write_psymtabs_to_index): Don't allow index with more than one
3863 .debug_types section.
3864
918dd910
JK
38652011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3866
3867 Fix crash if referenced CU is aged out.
3868 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3869 xfree of block.data.
3870 (indirect_pieced_value): New variable back_to, use to for xfree of
3871 baton.data.
3872 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3873 block.data.
3874 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3875 (load_cu): New function from ...
3876 (dw2_do_instantiate_symtab): ... the code here ...
3877 (process_full_comp_unit): ... and here.
3878 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3879 retval.data.
3880
0e37a63c
JK
38812011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3882
3883 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3884 type.
3885
7e324e48
GB
38862011-07-19 Gary Benson <gbenson@redhat.com>
3887
3888 * infrun.c (struct execution_control_state): New member
3889 stop_func_filled_in.
3890 (clear_stop_func, fill_in_stop_func): New functions.
3891 (handle_inferior_event): Call clear_stop_func rather than
3892 manipulating the execution control state directly.
3893 Call fill_in_stop_func lazily as required rather than
3894 directly calling find_pc_partial_function in all cases.
3895
d48323d8
TT
38962011-07-18 Tom Tromey <tromey@redhat.com>
3897
3898 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3899 checking for variable-sized array.
3900
40591b7d
JCD
39012011-07-18 Jean-Charles Delay <delay@adacore.com>
3902
3903 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3904 of supported languages.
3905 * varobj.c: Add top definitions and basic implementation of the
3906 following callbacks: ada_number_of_children, ada_name_of_variable,
3907 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3908 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3909 (languages): Register Ada-specific callbacks.
3910 (variable_language): Add the Ada case in the language setter switch.
3911
2e424e08
JK
39122011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3913
3914 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3915
9e8b7a03
JK
39162011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3917
3918 Code cleanup.
3919 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3920 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3921 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3922 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3923 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3924 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3925 (struct dwarf_expr_context_funcs): New, move here methods from ...
3926 (struct dwarf_expr_context): ... here. New fields funcs.
3927 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3928 (dwarf_expr_ctx_funcs): New.
3929 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3930 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3931 (needs_frame_ctx_funcs): New.
3932 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3933
2b1260ab
FM
39342011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3935
3936 * MAINTAINERS (Write After Approval): Add myself to the list.
3937
8bd90839
FM
39382011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3939
3940 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3941 that CIE pointer of an FDE really points to a CIE .
3942
953b98d1
HZ
39432011-07-15 Hui Zhu <teawater@gmail.com>
3944
3945 * remote.c (remote_get_trace_status): Add comments.
3946
c8f2448a
JK
39472011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3948
3949 Code cleanup - constify struct lval_funcs.
3950 * dwarf2loc.c (pieced_value_funcs): Make it const.
3951 * infrun.c (siginfo_value_funcs): Likewise.
3952 * opencl-lang.c (opencl_value_funcs): Likewise.
3953 * valops.c (value_assign, value_ind): Make the funcs variable const.
3954 * value.c (struct value): Make location.computed.funcs target const.
3955 Rearrange the comments.
3956 (allocate_computed_value): Make the funcs parameter target const.
3957 (value_computed_funcs): Return the funcs target const.
3958 (value_free, value_copy, set_value_component_location): Make the funcs
3959 variable const.
3960 * value.h (allocate_computed_value): Make the funcs parameter target
3961 const.
3962 (value_computed_funcs): Return the funcs target const.
3963 * windows-tdep.c (tlb_value_funcs): Make it const.
3964
f652de6f
HZ
39652011-07-14 Hui Zhu <teawater@gmail.com>
3966
3967 * remote.c (remote_get_trace_status): Initialize p.
3968
67f41397
JK
39692011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3970
3971 Work around kgdb.
3972 * remote.c (remote_get_trace_status): New variable ex. Put
3973 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3974
d1b66e6d
TT
39752011-07-13 Tom Tromey <tromey@redhat.com>
3976
3977 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3978 value_from_contents for final conversion.
3979
1632a688
JK
39802011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3981
3982 Code cleanup.
3983 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3984 Indent prototypes so they do not get into tags.
3985
a7035dbb
JK
39862011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3987
3988 Code cleanup making also optimized out values lazy.
3989 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3990 allocate_optimized_out_value. Twice.
3991 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3992 * findvar.c (read_var_value): Likewise.
3993 * value.c (allocate_optimized_out_value): New function.
3994 * value.h (allocate_optimized_out_value): New declaration.
3995
d07ed419
JK
39962011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 Fix occasional crash of CTRL-C during DWARF read in.
3999 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4000
86d31898
TT
40012011-07-11 Tom Tromey <tromey@redhat.com>
4002
4003 * regcache.c (struct regcache_descr): Fix typo.
4004 * i387-tdep.c (i387_supply_xsave): Fix typo.
4005
2ab95328
TT
40062011-07-11 Tom Tromey <tromey@redhat.com>
4007
4008 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4009 (read_file_scope, read_type_unit_scope): Use it.
4010
04ad99e6
JK
40112011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4012
4013 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4014 `int'.
4015
713389e0
PM
40162011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4017
4018 PR python/12438
4019 * python/python.c: Set gdbpy_should_print_stack default to off.
4020 (set_python): Deprecate maint set python print-stack to
4021 class_deprecate.
4022 (_initialize_python): Deprecate maint set/show python print-stack.
4023 Add new prefix command, python. Add new setting, print-backtrace.
4024 * NEWS: Document set python print-stack. Document default change.
4025
754eadd1
PM
40262011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4027
4028 * python/py-inferior.c (infpy_dealloc): New function.
4029 (inferior_to_inferior_object): Return a new object, or a
4030 new reference to the existing object.
4031 (find_thread_object): Cleanup references to inferior.
4032 (delete_thread_object): Ditto.
4033 * python/py-infthread.c (create_thread_object): Do not increment
4034 inferior reference count.
4035
5e44ecb3
TT
40362011-07-08 Tom Tromey <tromey@redhat.com>
4037
4038 * dwarf2loc.c (locexpr_regname): New function.
4039 (locexpr_describe_location_piece): Use it.
4040 (disassemble_dwarf_expression): Add per_cu argument. Use
4041 locexpr_regname.
4042 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4043 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4044 New cases.
4045 (locexpr_describe_location_1): Add per_cu argument.
4046 (locexpr_describe_location): Update.
4047 (loclist_describe_location): Update.
4048
e0e9434c
TT
40492011-07-08 Tom Tromey <tromey@redhat.com>
4050
4051 * dwarf2expr.c (execute_stack_op): Add QUIT.
4052
26afc0d7
HZ
40532011-07-07 Hui Zhu <teawater@gmail.com>
4054
4055 Revert:
4056 2011-07-06 Hui Zhu <teawater@gmail.com>
4057 * remote.c (remote_start_remote): Add TRY_CATCH for
4058 remote_get_trace_status.
4059 * tracepoint.c (disconnect_tracing): Ditto.
4060
a40a111f
AB
40612011-07-07 Andrew Burgess <aburgess@broadcom.com>
4062
4063 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4064 variables as signed, not unsigned.
4065
e2bd3b15
JB
40662011-07-06 Joel Brobecker <brobecker@adacore.com>
4067
4068 * jit.c (jit_inferior_init): Reformat forward declaration.
4069
e3d961fe 40702011-07-06 Matt Rice <ratmice@gmail.com>
4071
4072 * MAINTAINERS (Write After Approval): Add myself to the list.
4073
0f3428f0
HZ
40742011-07-06 Hui Zhu <teawater@gmail.com>
4075
4076 * remote.c (remote_start_remote): Add TRY_CATCH for
4077 remote_get_trace_status.
4078 * tracepoint.c (disconnect_tracing): Ditto.
4079
fc9f3a69
TT
40802011-07-05 Tom Tromey <tromey@redhat.com>
4081
4082 * symtab.c (operator_chars): Now static.
4083 * linespec.c (operator_chars): Don't declare.
4084
26e519b9
TJB
40852011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4086
4087 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4088
eb2a6f42
TT
40892011-07-05 Tom Tromey <tromey@redhat.com>
4090
4091 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4092 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4093 (TYPE_CPLUS_REALLY_JAVA): New macro.
4094 * dwarf2read.c (process_structure_scope): Set
4095 TYPE_CPLUS_REALLY_JAVA.
4096
21083d0f 40972011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4098
4099 * ada-lang.c: Fix typos.
4100 * amd64-tdep.c: Likewise.
4101 * breakpoint.c: Likewise.
4102 * cli/cli-decode.c: Likewise.
4103 * findcmd.c: Likewise.
4104 * inline-frame.c: Likewise.
4105 * mi/mi-main.c: Likewise.
4106 * minsyms.c: Likewise.
4107 * monitor.c: Likewise.
4108 * monitor.h: Likewise.
4109 * prologue-value.c: Likewise.
4110 * reverse.c: Likewise.
4111 * s390-tdep.c: Likewise.
4112
3b2a0cf2
JB
41132011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4114
4115 * jit.c (jit_inferior_init): Forward declare.
4116 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4117
efae1d92
JB
41182011-07-04 Joel Brobecker <brobecker@adacore.com>
4119
4120 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4121
6040a59d
JB
41222011-07-04 Tristan Gingold <gingold@adacore.com>
4123
4124 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4125 (tcb_fieldno): Add activation_link field.
4126 (get_known_tasks_addr): Moved and rewritten.
4127 (get_tcb_types_info): Set activation_link field.
4128 (read_known_tasks_array): Add parameter. Rewritten.
4129 (read_known_tasks_list): New function.
4130 (read_known_tasks): New function.
4131 (ada_build_task_list): Call read_known_tasks instead of
4132 read_known_tasks_array.
4133 * ravenscar-thread.c: Add first_task_name constant.
4134 (has_ravenscar_runtime): Check for task list too.
4135
cb741e45
JB
41362011-07-04 Tristan Gingold <gingold@adacore.com>
4137
4138 * ada-tasks.c: Renames fieldno to actb_fieldno.
4139 (ada_get_task_number): Indentation.
4140 (get_tcb_types_info): Remove all parameters. Write directly
4141 the globals.
4142 (ptid_from_atcb_common): Adjust.
4143 (read_atcb): Adjust.
4144
7475b06c
TJB
41452011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4146
4147 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4148
15230f37
TJB
41492011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4150
4151 * ui-out.c (ui_out_field_core_addr): Mention that the function
4152 description is in the header file.
4153 * ui-out.h (ui_out_field_core_addr): Document function.
4154
65743aba
TJB
41552011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4156
4157 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4158 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4159
c37a5aab
TJB
41602011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4161
4162 * symtab.c (expand_line_sal): Remove empty line.
4163
59adf69e
TS
41642011-07-04 Thomas Schwinge <thomas@schwinge.name>
4165
4166 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4167 same way as ELFOSABI_NONE.
4168 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4169
e5dd4106
TJB
41702011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4171
4172 * breakpoint.c: Fix typos in comments.
4173 * linespec.c: Likewise.
4174 * symtab.c: Likewise.
4175
d40102a1
JB
41762011-07-04 Joel Brobecker <brobecker@adacore.com>
4177
4178 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4179 section in separate object files.
4180
2f741504
JK
41812011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4182
4183 Fix false GCC warning.
4184 * linespec.c (decode_line_1): Initialize values.
4185
418c7cf7
JK
41862011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 * linespec.c (find_method): Accept the function type automatically only
4189 if it was specified with parameter types.
4190
3d50dd94
JK
41912011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4192
4193 Stop on first linespec terminator instead of eating what we can.
4194 * linespec.c (is_linespec_boundary): New function.
4195 (name_end): Remove function.
4196 (keep_name_info): New parameter on_boundary, replace the body.
4197 (decode_line_1): Provide the parameter to keep_name_info.
4198 (decode_compound): Likewise. Drop the trailing java return type
4199 handling. Twice.
4200
dcf9f4ab
JK
42012011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4202
4203 Fall back linespec to minimal symbols.
4204 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4205 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4206 (find_method, symbol_found): Change error to cplusplus_error.
4207
3f542ed1
JK
42082011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4209
bc68c4e5 4210 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4211
900e11f9
JK
42122011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4213 Tom Tromey <tromey@redhat.com>
4214
4215 * dwarf2read.c (check_physname): New variable.
4216 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4217 (show_check_physname): New function.
4218 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4219
2301925d
JB
42202011-07-01 Joel Brobecker <brobecker@adacore.com>
4221
4222 * machoread.c (macho_symfile_read): Delete OBE comment.
4223
38947cca
JB
42242011-07-01 Joel Brobecker <brobecker@adacore.com>
4225
4226 * machoread.c (struct macho_oso_data): Delete.
4227 (current_oso): Delete.
4228 (macho_relocate_common_syms): New function, mostly extracted
4229 out of
4230 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4231 Remove code that sets and unset current_oso.
4232 (macho_symfile_relocate): Delete handling of common symbols,
4233 now moved to macho_relocate_common_syms.
4234
a7aa0d73
JB
42352011-07-01 Joel Brobecker <brobecker@adacore.com>
4236
4237 * darwin-nat.c (darwin_ptrace): Add documentation.
4238 Set errno to zero before calling ptrace. If ptrace returns
4239 -1 and errno is zero, then change then return zero.
4240 (darwin_kill_inferior): Issue a warning instead of triggering
4241 a failed assertion when the PT_KILL ptrace operations returned
4242 nonzero.
4243
5e9bc145
JB
42442011-07-01 Joel Brobecker <brobecker@adacore.com>
4245
4246 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4247 only when inf->private->no_ptrace.
4248
00eb2c4a
JB
42492011-07-01 Joel Brobecker <brobecker@adacore.com>
4250
4251 * ada-lang.c (print_it_exception): Print temporary catchpoints
4252 as "Temporary catchpoint".
4253 (print_mention_exception): Likewise.
4254
127c81bc
TT
42552011-07-01 Tom Tromey <tromey@redhat.com>
4256
4257 * jv-lang.c (java_language_defn): Use java_printchar,
4258 java_printstr.
4259 (java_get_encoding): New function.
4260 (java_emit_char): Use generic_emit_char.
4261 (java_printchar): New function.
4262 (java_printstr): Likewise.
4263
25552254
JB
42642011-07-01 Joel Brobecker <brobecker@adacore.com>
4265
4266 * ada-typeprint.c (print_record_type): If unable to decode
4267 the name of the parent type, use the encoded name.
4268
d2d43431
JB
42692011-07-01 Jean-Charles Delay <delay@adacore.com>
4270
4271 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4272 pointer to constrained packed array type output.
4273 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4274 packed array output.
4275
54ae186f
JB
42762011-07-01 Jean-Charles Delay <delay@adacore.com>
4277
4278 * ada-typeprint.c (print_array_type): removed if condition on show
4279 being negative for bounds printing.
4280
8f17729f
JB
42812011-07-01 Joel Brobecker <brobecker@adacore.com>
4282
4283 * ada-lang.c (ada_identical_enum_types_p): New function.
4284 (symbols_are_identical_enums): New function.
4285 (remove_extra_symbols): Do nothing if NSYMS < 2.
4286 Use symbols_are_identical_enums.
4287
f5aa6869
JB
42882011-07-01 Joel Brobecker <brobecker@adacore.com>
4289
4290 * ada-valprint.c (ada_value_print): Handle typedefs.
4291
8f465ea7
JB
42922011-07-01 Joel Brobecker <brobecker@adacore.com>
4293
4294 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4295
828292f2
JB
42962011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4297
4298 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4299 (decode_constrained_packed_array): Likewise.
4300 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4301
18920c42
JB
43022011-07-01 Joel Brobecker <brobecker@adacore.com>
4303
4304 * ada-exp.y (convert_char_literal): Handle typedef types.
4305
c90092fe
JB
43062011-07-01 Joel Brobecker <brobecker@adacore.com>
4307
4308 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4309
f748fb40
TT
43102011-06-30 Tom Tromey <tromey@redhat.com>
4311
4312 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4313 * valops.c (find_overload_match): Call do_cleanups on early exit
4314 path.
4315 * solib.c (solib_find): Call do_cleanups on early exit path.
4316
3bb47e8b
TT
43172011-06-30 Tom Tromey <tromey@redhat.com>
4318
4319 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4320 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4321 return paths. Defer final do_cleanups until last return.
4322 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4323 early return.
4324
4727bad3
TT
43252011-06-30 Tom Tromey <tromey@redhat.com>
4326
4327 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4328
bb361dbf
AB
43292011-06-30 Andrew Burgess <aburgess@broadcom.com>
4330
4331 * MAINTAINERS (Write After Approval): Add myself to the list.
4332
e0d00bc7
JK
43332011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4334
4335 Disable epilogue unwinders on recent GCCs.
4336 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4337 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4338 * dwarf2read.c (process_full_comp_unit): Initialize
4339 EPILOGUE_UNWIND_VALID.
4340 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4341 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4342 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4343
4632c0d0
JK
43442011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4345
4346 Code cleanup - reformatting.
4347 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4348 (producer_is_gcc_ge_4): ... here, change the return value.
4349 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4350 interpretation.
4351
32019081
JK
43522011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4353
4354 Fix non-only rename list for Fortran modules import.
4355 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4356 cp_add_using_directive caller.
4357 (cp_add_using_directive): New parameter excludes, describe it. New
4358 variables ix and param. Compare if also excludes match. Allocate NEW
4359 with variable size, initialize EXCLUDES there.
4360 (cp_lookup_symbol_imports): New variable excludep, test
4361 current->EXCLUDES with it.
4362 * cp-support.h: Include vec.h.
4363 (struct using_direct): New field excludes, describe it.
4364 (DEF_VEC_P (const_char_ptr)): New.
4365 (cp_add_using_directive): New parameter excludes.
4366 * defs.h (const_char_ptr): New typedef.
4367 * dwarf2read.c (read_import_statement): New variables child_die,
4368 excludes and cleanups, read in excludes.
4369 (read_namespace): Adjust the cp_add_using_directive caller.
4370
70c622a3
JK
43712011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4372
4373 Code cleanup.
4374 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4375 negative comparisons.
4376
39c4d40a
TT
43772011-06-29 André Pönitz <andre.poenitz@nokia.com>
4378
4379 * mi/mi-main.c (mi_cmd_list_features): Emit
4380 breakpoint-notifications.
4381
3b2b8fea
TT
43822011-06-29 Tom Tromey <tromey@redhat.com>
4383
4384 PR fortran/10036:
4385 * valprint.h (generic_emit_char, generic_printstr): Declare.
4386 * valprint.c (wchar_printable, append_string_as_wide)
4387 (print_wchar): Move from c-lang.c.
4388 (generic_emit_char): New function; mostly taken from c_emit_char.
4389 (generic_printstr): New function; mostly taken from c_printstr.
4390 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4391 represented as arrays.
4392 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4393 type.
4394 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4395 identically to TYPE_CODE_INT.
4396 * f-lang.c (f_get_encoding): New function.
4397 (f_emit_char): Use generic_emit_char.
4398 (f_printchar): Replace comment.
4399 (f_printstr): Use generic_printstr.
4400 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4401 "character" types specially.
4402 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4403 for Fortran.
4404 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4405 Move to valprint.c
4406 (c_emit_char): Call generic_emit_char.
4407 (c_printstr): Call generic_printstr.
4408
168e6d44
GB
44092011-06-29 Gary Benson <gbenson@redhat.com>
4410
4411 * breakpoint.c (bpstat_what): Removed duplicated case.
4412
1c033f8c
TT
44132011-06-28 Tom Tromey <tromey@redhat.com>
4414
4415 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4416
5fe41fbf
TT
44172011-06-27 Tom Tromey <tromey@redhat.com>
4418
4419 * valops.c (find_overload_match): Call do_cleanups before early
4420 return.
4421 * top.c (execute_command): Call do_cleanups before early return.
4422 (command_loop): Likewise.
4423 * stack.c (backtrace_command): Make a null cleanup early. Don't
4424 conditionally call do_cleanups.
4425 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4426 TRY_CATCH.
4427 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4428 so cleanups are always run.
4429 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4430 * findcmd.c (parse_find_args): Call do_cleanups on early return
4431 path.
4432 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4433 Don't conditionally call do_cleanups.
4434 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4435 later.
4436
e26bd57d
EB
44372011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4438
4439 * MAINTAINERS (Write After Approval): Use default email address.
4440
6c3097fc
JB
44412011-06-27 Joel Brobecker <brobecker@adacore.com>
4442
4443 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4444
369c397b
JB
44452011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4446
4447 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4448 saved_regs_mask and copied_regs_mask fields.
4449 (sparc_record_save_insn): New prototype.
4450 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4451 (sparc_record_save_insn): New function.
4452 (sparc_analyze_prologue): Add head comment. Recognize store insns
4453 of call-saved registers. Use OFFSET consistently. Recognize flat
4454 frames and cache their settings.
4455 (sparc32_skip_prologue): Handle flat frames.
4456 (sparc_frame_cache): Add frame_offset to the base address.
4457 (sparc32_frame_cache): Adjust to new frame description.
4458 (sparc32_frame_prev_register): Likewise.
4459 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4460 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4461 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4462 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4463 frame by calling sparc_record_save_insn.
4464 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4465 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4466 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4467
b315ab21
TG
44682011-06-27 Tristan Gingold <gingold@adacore.com>
4469
4470 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4471 field by map_addr and map_len.
4472 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4473 (munmap_section_buffer): Likewise.
4474
ddd49eee
TT
44752011-06-24 Tom Tromey <tromey@redhat.com>
4476
4477 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4478 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4479 * python/python.c (gdbpy_parameter): Make 'arg' const.
4480 (execute_gdb_command): Likewise.
4481 (gdbpy_decode_line): Likewise. Copy it.
4482 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4483 (gdbpy_write): Make 'arg' const.
4484 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4485 const.
4486 (gdbpy_lookup_type): Likewise.
4487 * python/py-prettyprint.c (print_children): Make 'name' const.
4488 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4489 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4490 Py_ssize_t.
4491 * python/py-function.c (fnpy_init): Make 'name' const.
4492 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4493 (gdbpy_string_to_argv): Make 'input' const.
4494 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4495 it.
4496 * gdbtypes.h (lookup_typename): Update.
4497 * gdbtypes.c (lookup_typename): Make 'name' const.
4498 (lookup_struct): Likewise.
4499 (lookup_union): Likewise.
4500 (lookup_enum): Likewise.
4501
5998129b
TT
45022011-06-24 Tom Tromey <tromey@redhat.com>
4503
4504 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4505 gdb_thread_db.h. Move all common/ entries to be together.
4506 (TAGS): Don't depend on DEPFILES.
4507
6e586cc5
YQ
45082011-06-23 Yao Qi <yao@codesourcery.com>
4509
4510 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4511 * remote.c (remote_start_remote): ... here.
4512 * monitor.c (monitor_open): ... here.
4513
86c3c1fc
AB
45142011-06-23 Andrew Burgess <aburgess@broadcom.com>
4515
4516 * gdbtypes.c (append_composite_type_field_aligned): Fix
4517 calculation of bit position based on alignment.
4518
28010a5d
PA
45192011-06-22 Pedro Alves <pedro@codesourcery.com>
4520
4521 * breakpoint.c (bpstat_stop_status): Call the check_status
4522 breakpoint_ops method.
4523 (print_one_breakpoint_location): Also print the condition for Ada
4524 exception catchpoints.
4525 (allocate_bp_location): New, factored out from
4526 allocate_bp_location.
4527 (allocate_bp_location): Adjust. Call the owner breakpoint's
4528 allocate_location method, if there is one.
4529 (free_bp_location): Call the locations's dtor method, if there is
4530 one.
4531 (init_raw_breakpoint_without_location): New breakpoint_ops
4532 parameter. Use it.
4533 (set_raw_breakpoint_without_location): Adjust.
4534 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4535 (set_raw_breakpoint): Adjust.
4536 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4537 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4538 re_set and check_status methods.
4539 (init_catchpoint): Don't memset, initialize thread, addr_string
4540 and enable_state. Pass the ops down to init_raw_breakpoint.
4541 (install_catchpoint): Rename to ...
4542 (install_breakpoint): ... this, and make extern.
4543 (create_fork_vfork_event_catchpoint): Adjust.
4544 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4545 re_set and check_status methods.
4546 (create_syscall_event_catchpoint): Adjust.
4547 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4548 (masked_watchpoint_breakpoint_ops): Install NULL
4549 allocate_location, re_set and check_status methods.
4550 (catch_exec_command_1): Adjust.
4551 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4552 re_set and check_status methods.
4553 (create_ada_exception_breakpoint): Rename to ...
4554 (init_ada_exception_breakpoint): ... this. Add a struct
4555 breakpoint parameter, and delete the exp_string, cond_string and
4556 cond parameters. Use init_raw_breakpoint, and don't install or
4557 mention the breakpoint yet. Don't clear breakpoint fields that
4558 init_raw_breakpoint already clears.
4559 (re_set_breakpoint): Delete, split into ...
4560 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4561 functions.
4562 (breakpoint_re_set_one): Call the breakpoint's
4563 breakpoint_ops->re_set implementation, if there's one. Adjust.
4564 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4565 (struct bp_location_ops): New type.
4566 (struct bp_location): New field `ops'.
4567 (struct breakpoint_ops): New `allocate_location', `re_set' and
4568 `check_status' fields. Make `breakpoint_hit''s description match
4569 reality.
4570 (init_bp_location): Declare.
4571 (breakpoint_re_set_default): Declare.
4572 (create_ada_exception_breakpoint): Rename to ...
4573 (init_ada_exception_breakpoint): ... this. Add a struct
4574 breakpoint parameter, and delete the exp_string, cond_string and
4575 cond parameters.
4576 (install_breakpoint): Declare.
4577 * ada-lang.c: Include exceptions.h.
4578 <Ada exceptions description>: Update.
4579 (struct ada_catchpoint_location): New type.
4580 (ada_catchpoint_location_dtor): New function.
4581 (ada_catchpoint_location_ops): New global.
4582 (ada_catchpoint): New type.
4583 (create_excep_cond_exprs): New function.
4584 (dtor_exception, allocate_location_exception, re_set_exception)
4585 (should_stop_exception, check_status_exception): New functions.
4586 (print_one_exception, print_mention_exception)
4587 (print_recreate_exception): Adjust.
4588 (dtor_catch_exception, allocate_location_catch_exception)
4589 (re_set_catch_exception, check_status_catch_exception): New
4590 functions.
4591 (catch_exception_breakpoint_ops): Install them.
4592 (dtor_catch_exception_unhandled)
4593 (allocate_location_catch_exception_unhandled)
4594 (re_set_catch_exception_unhandled)
4595 (check_status_catch_exception_unhandled): New functions.
4596 (catch_exception_unhandled_breakpoint_ops): Install them.
4597 (dtor_catch_assert, allocate_location_catch_assert)
4598 (re_set_catch_assert, check_status_catch_assert): New functions.
4599 (catch_assert_breakpoint_ops): Install them.
4600 (ada_exception_catchpoint_p): Delete.
4601 (catch_ada_exception_command_split)
4602 (ada_exception_catchpoint_cond_string): Rename exp_string
4603 parameter to excep_string. Adjust.
4604 (ada_parse_catchpoint_condition): Delete.
4605 (ada_exception_sal): Rename the exp_string parameter to
4606 excep_string. Delete the cond_string and cond parameters.
4607 Adjust.
4608 (ada_decode_exception_location): Rename the exp_string parameter
4609 to excep_string. Delete the cond_string and cond parameters.
4610 Adjust.
4611 (create_ada_exception_catchpoint): New function.
4612 (catch_ada_exception_command, ada_decode_assert_location)
4613 (catch_assert_command): Adjust.
4614 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4615
9ac4176b
PA
46162011-06-22 Pedro Alves <pedro@codesourcery.com>
4617
4618 * ada-lang.c: Include arch-utils.h.
4619 (ada_decode_exception_location): Make static.
4620 (catch_ada_exception_command): Moved here from breakpoint.c.
4621 (ada_decode_assert_location): Make static.
4622 (catch_assert_command): Moved here from breakpoint.c.
4623 (_initialize_ada_lang): Install the exception and assert
4624 catchpoint commands here.
4625 * ada-lang.h (ada_decode_exception_location)
4626 (ada_decode_assert_location): Delete declarations.
4627 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4628 breakpoint.h.
4629 (create_ada_exception_breakpoint): Make extern.
4630 (catch_ada_exception_command, catch_assert_command): Moved to
4631 ada-lang.c.
4632 (add_catch_command): Make extern.
4633 (_initilize_breakpoint): Don't install the exception and assert
4634 catchpoint commands here.
4635 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4636 breakpoint.c
4637 (add_catch_command, create_ada_exception_breakpoint): Declare.
4638
c56053d2
PA
46392011-06-22 Pedro Alves <pedro@codesourcery.com>
4640
4641 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4642 the breakpoint to the breakpoint chain here.
4643 (set_raw_breakpoint_without_location): Add the breakpoint to the
4644 breakpoint chain here.
4645 (init_raw_breakpoint): Adjust comments.
4646 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4647 here.
4648 (init_catchpoint): Don't set the catchpoint's breakpoint number
4649 here.
4650 (install_catchpoint): New function.
4651 (create_fork_vfork_event_catchpoint)
4652 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4653 use install_catchpoint.
4654
d2f3fc74
PA
46552011-06-22 Pedro Alves <pedro@codesourcery.com>
4656
4657 * breakpoint.c (create_catchpoint_without_mention)
4658 (create_catchpoint): Delete.
4659
b4d90040
PA
46602011-06-22 Pedro Alves <pedro@codesourcery.com>
4661
4662 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4663 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4664 reference to exec_pathname.
4665 (struct exec_catchpoint): New type.
4666 (dtor_catch_exec): New function.
4667 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4668 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4669 (catch_exec_command_1): Adjust to use init_catchpoint.
4670 (delete_breakpoint): Remove reference to exec_pathname.
4671
be5c67c1
PA
46722011-06-22 Pedro Alves <pedro@codesourcery.com>
4673
4674 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4675 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4676 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4677 reference to syscalls_to_be_caught.
4678 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4679 NULL `dtor'.
4680 (struct syscall_catchpoint): New type.
4681 (dtor_catch_syscall): New function.
4682 (insert_catch_syscall, remove_catch_syscall)
4683 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4684 (print_recreate_catch_syscall): Adjust.
4685 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4686 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4687 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4688 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4689 (masked_watchpoint_breakpoint_ops)
4690 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4691 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4692 there is one. Remove references to syscalls_to_be_caught.
4693 (catching_syscall_number): Adjust.
4694 * ada-lang.c (catch_exception_breakpoint_ops)
4695 (catch_exception_unhandled_breakpoint_ops)
4696 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4697
e29a4733
PA
46982011-06-22 Pedro Alves <pedro@codesourcery.com>
4699
4700 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4701 field.
4702 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4703 reference to forked_inferior_pid.
4704 (struct fork_catchpoint): New type.
4705 (breakpoint_hit_catch_fork, print_it_catch_fork)
4706 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4707 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4708 (create_fork_vfork_event_catchpoint): Adjust to use
4709 init_catchpoint.
4710
346774a9
PA
47112011-06-22 Pedro Alves <pedro@codesourcery.com>
4712
4713 * breakpoint.c (add_to_breakpoint_chain)
4714 (init_raw_breakpoint_without_location): New functions, factored
4715 out from ...
4716 (set_raw_breakpoint_without_location): ... this one.
4717 (init_raw_breakpoint): New function, factored out from
4718 set_raw_breakpoint and adjusted to use
4719 init_raw_breakpoint_without_location.
4720 (set_raw_breakpoint): Adjust.
4721 (init_catchpoint): New function, factored out from
4722 create_catchpoint_without_mention and adjusted to use
4723 init_raw_breakpoint.
4724 (create_catchpoint_without_mention): Adjust.
4725
c38c4bc5
TT
47262011-06-22 Tom Tromey <tromey@redhat.com>
4727
4728 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4729 argument of 0 specially.
4730
b138ce37
YQ
47312011-06-22 Yao Qi <yao@codesourcery.com>
4732
4733 * infrun.c (handle_inferior_event): Remove write-only local variable
4734 `sw_single_step_trap_p'.
4735
03de6823
TT
47362011-06-20 Tom Tromey <tromey@redhat.com>
4737
4738 * symtab.c (lookup_language_this): End loop if block is NULL.
4739
66a17cb6
TT
47402011-06-17 Tom Tromey <tromey@redhat.com>
4741
4742 * valops.c (value_of_this): Use lookup_language_this.
4743 * symtab.h (lookup_language_this): Declare.
4744 * symtab.c (lookup_language_this): New function.
4745 (lookup_symbol_aux): Use lookup_language_this.
4746 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4747
7518bff5
TT
47482011-06-17 Tom Tromey <tromey@redhat.com>
4749
4750 * value.h (value_of_this): Update.
4751 (value_of_local): Remove.
4752 * valops.c (value_of_this): Rename from value_of_local. Change
4753 parameters.
4754 * p-exp.y (exp): Update.
4755 (variable): Likewise.
4756 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4757
aee28ec6
TT
47582011-06-17 Tom Tromey <tromey@redhat.com>
4759
4760 * valops.c (value_of_local): Complain if NAME is NULL.
4761 * std-operator.def (OP_OBJC_SELF): Remove.
4762 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4763 * objc-exp.y (name_not_typename): Use OP_THIS.
4764 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4765 name for "this".
4766 <OP_OBJC_SELF>: Remove.
4767 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4768
eed8f803
TG
47692011-06-16 Tristan Gingold <gingold@adacore.com>
4770
4771 * python/py-events.h (gdb_py_events): Make it extern.
4772 * python/py-evtregistry.c (gdb_py_events): Declare.
4773
864ac8a7
HZ
47742011-06-16 Hui Zhu <teawater@gmail.com>
4775
4776 * remote.c (remote_trace_set_readonly_regions): Add check for
4777 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4778 output warning.
4779
ef7e8358
UW
47802011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4781
4782 * arm-linux-tdep.c: Include "auxv.h".
4783 (AT_HWCAP): Define.
4784 (ARM_LINUX_SIZEOF_VFP): Define.
4785 (arm_linux_supply_vfp): New function.
4786 (arm_linux_collect_vfp): Likewise.
4787 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4788 (arm_linux_fpa_regset_sections): New variable.
4789 (arm_linux_vfp_regset_sections): Likewise.
4790 (arm_linux_core_read_description): New function.
4791 (arm_linux_init_abi): Install arm_linux_core_read_description and
4792 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4793 appropriate for the architecture.
4794 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4795 (tdesc_arm_with_m): Declare.
4796 (tdesc_arm_with_iwmmxt): Likewise.
4797 (tdesc_arm_with_vfpv2): Likewise.
4798 (tdesc_arm_with_vfpv3): Likewise.
4799 (tdesc_arm_with_neon): Likewise.
4800 * arm-linux-nat.c: Move features/*.c includes ...
4801 * arm-tdep.c: ... here.
4802 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4803 target description data structures ...
4804 * arm-tdep.c (_initialize_arm_tdep): ... here.
4805 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4806 HWCAP_VFPv3D16): Move definitions ...
4807 * arm-linux-tdep.h: ... here.
4808
c2fa21f1
HZ
48092011-06-15 Hui Zhu <teawater@gmail.com>
4810
4811 * remote.c (remote_trace_set_readonly_regions): Add a check for
4812 target_buf_size.
4813
dd707e8e
TT
48142011-06-14 Tom Tromey <tromey@redhat.com>
4815
4816 * coffread.c (coffread_objfile): Rename from current_objfile.
4817 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4818 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4819
86cc0029
TT
48202011-06-14 Tom Tromey <tromey@redhat.com>
4821
4822 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4823 (class_symtab): Remove.
4824 (jv_dynamics_progspace_key): New global.
4825 (jv_per_objfile_free): Reset program space data. Update assert.
4826 Don't clear globals.
4827 (get_dynamics_objfile): Use and set program space data.
4828 (get_java_class_symtab): Use get_dynamics_objfile.
4829 (add_class_symbol): Likewise.
4830 (java_link_class_type): Likewise.
4831 (java_object_type, jv_clear_object_type, set_java_object_type):
4832 Remove.
4833 (get_java_object_type): Update. Don't cache result.
4834 (is_object_type): Don't call set_java_object_type.
4835 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4836 initialize jv_dynamics_progspace_key.
4837
91a81f69
TT
48382011-06-14 Tom Tromey <tromey@redhat.com>
4839
4840 * symtab.h (current_objfile): Don't declare.
4841 * objfiles.h (current_objfile): Don't declare.
4842 * objfiles.c (current_objfile): Remove.
4843 * mdebugread.c (current_objfile): New file-scope global.
4844 * dbxread.c (current_objfile): New file-scope global.
4845 * coffread.c (current_objfile): New file-scope global.
4846
dc7eb48e
PA
48472011-06-13 Pedro Alves <pedro@codesourcery.com>
4848
4849 * top.h (line): Rename to ...
4850 (saved_command_line): ... this.
4851 (linesize): Rename to ...
4852 (saved_command_line_size): ... this.
4853 * top.c (line): Rename to ...
4854 (saved_command_line): ... this.
4855 (linesize): Rename to ...
4856 (saved_command_line_size): ... this.
4857 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4858 * event-top.c (command_line_handler): Adjust.
4859 * main.c (captured_main): Adjust.
4860
0d6c2135
MK
48612011-06-12 Mark Kettenis <kettenis@gnu.org>
4862
4863 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4864 get_frame_func instead of get_frame_pc to determine the code
4865 address used to construct the frame ID.
4866 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4867 (i386_epilogue_frame_this_id): Likewise.
4868 (i386_epilogue_frame_prev_register): New function.
4869 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4870 (i386_stack_tramp_frame_sniffer): Fix coding style.
4871 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4872 (i386_gdbarch_init): Fix comments.
4873
8bbdd3f4
MK
48742011-06-12 Mark Kettenis <kettenis@gnu.org>
4875
4876 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4877 instruction when walking back through the instruction stream.
4878
533a737e
JK
48792011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4880
4881 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4882 fullname parameters order.
4883
44b13c5a
JK
48842011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4885
4886 Code cleanup.
4887 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4888 for fun.
4889 * psymtab.c (map_symbol_filenames_psymtab)
4890 (map_partial_symbol_filenames): Likewise.
4891 * psymtab.h: Include symfile.h.
4892 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4893 * symfile.h (symbol_filename_ftype): New.
4894 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4895 map_symbol_filenames, clarify more the naming in comment.
4896
0b5574da
DE
48972011-06-07 Doug Evans <dje@google.com>
4898
4899 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4900 Look for ../../gdb, for fullname.exp.
0b5574da 4901
5be4dfca
JK
49022011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4903 Pedro Alves <pedro@codesourcery.com>
4904
4905 * cli/cli-cmds.c (shell_escape): Use waitpid.
4906 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4907
316a8b21
TG
49082011-06-07 Tristan Gingold <gingold@adacore.com>
4909
4910 * xcoffread.c (dwarf2_xcoff_names): New variable.
4911 (aix_process_linenos): Add a guard.
4912 (xcoff_symfile_finish): Free dwarf2.
4913 (xcoff_initial_scan): Add dwarf2 support.
4914
3dd5b83d
PA
49152011-06-06 Pedro Alves <pedro@codesourcery.com>
4916
4917 * infcall.c (run_inferior_call): Don't mask async. Instead force
4918 a synchronous wait, if the target can async.
4919
4920 * target.h (struct target_ops): Delete to_async_mask.
4921 (target_async_mask): Delete.
4922 * target.c (update_current_target): Delete references to to_async_mask.
4923 * linux-nat.c (linux_nat_async_mask_value): Delete.
4924 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4925 to linux_nat_async_mask_value.
4926 (linux_nat_async_mask): Delete.
4927 (linux_nat_async, linux_nat_close): Remove references to
4928 linux_nat_async_mask_value.
4929 * record.c (record_async_mask_value): Delete.
4930 (record_async): Remove references to record_async_mask_value.
4931 (record_async_mask): Delete.
4932 (record_can_async_p, record_is_async_p): Remove references to
4933 record_async_mask_value.
4934 (init_record_ops, init_record_core_ops): Remove references to
4935 record_async_mask.
4936 * remote.c (remote_async_mask_value): Delete.
4937 (init_remote_ops): Remove reference to remote_async_mask.
4938 (remote_can_async_p, remote_is_async_p): Remove references to
4939 remote_async_mask_value.
4940 (remote_async): Remove references to remote_async_mask_value.
4941 (remote_async_mask): Delete.
4942
4943 * infrun.c (fetch_inferior_event): Don't claim registers changed
4944 if the current thread is already not executing.
4945
64b9b334
JB
49462011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4947
4948 From Stephen Kitt <steve@sk2.org>
4949 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4950 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4951
325663dc
JB
49522011-06-03 Joel Brobecker <brobecker@adacore.com>
4953
4954 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4955 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4956
8cf64490
TT
49572011-06-03 Tom Tromey <tromey@redhat.com>
4958
4959 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4960 code fields.
4961 * python/py-exitedevent.c (create_exited_event_object): Change
4962 type of 'exit_code'. Optionally add exit_code attribute.
4963 (emit_exited_event): Change type of 'exit_code'.
4964 * python/py-event.h (emit_exited_event): Update.
4965 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4966 * infrun.c (handle_inferior_event): Set exit code fields on
4967 inferior.
4968 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4969 fields.
4970 * inferior.c (exit_inferior_1): Initialize new fields.
4971
8ddd9a20
TT
49722011-06-03 Tom Tromey <tromey@redhat.com>
4973
4974 * dwarf2expr.c (get_signed_type): New function.
4975 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4976
8dfd1e6d
KS
49772011-06-02 Keith Seitz <keiths@redhat.com>
4978
4979 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4980
65fdb766
PA
49812011-06-02 Pedro Alves <pedro@codesourcery.com>
4982
4983 * top.h (simplified_command_loop): Delete declaration.
4984
f4b8c29b
MF
49852011-06-01 Mike Frysinger <vapier@gentoo.org>
4986
4987 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4988 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4989
1706c199
YQ
49902011-06-01 Yao Qi <yao@codesourcery.com>
4991
4992 * objfiles.h (obj_section_addr): Update reference to objfile from
4993 `abfd' to `obfd'.
4994 (obj_section_endaddr): Likewise.
4995
d19cd713 49962011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4997
4998 * MAINTAINERS: Update my email address and affiliation. Also
4999 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5000
e8eb7bc5
KS
50012010-05-31 Keith Seitz <keiths@redhat.com>
5002
5003 PR c++/12750
5004 * linespec.c (get_search_block): New function.
5005 (find_methods): Add FILE_SYMTATB parameter and use it and
5006 get_search_block to pass an appropriate block to
5007 lookup_symbol_in_namespace.
5008 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5009 Check if *ARGPTR starts with a filename first.
5010 If it does, call locate_first_half again to locate the next
5011 "first half" of the linespec.
5012 Pass FILE_SYMTATB to decode_objc and decode_compound.
5013 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5014 (locate_first_half): Stop on the first colon seen.
5015 (decode_compound): Add FILE_SYMTAB parameter.
5016 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5017 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5018 get_search_block with lookup_symbol.
5019 (find_method): Add FILE_SYMTAB parameter and pass it to
5020 find_methods.
5021 (decode_objc): Use get_search_block.
5022
2b1dbab0
KS
50232010-05-31 Keith Seitz <keiths@redhat.com>
5024
5025 PR symtab/12704
5026 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5027 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5028 and CP_ANONYMOUS_NAMESPACE_LEN.
5029 (cp_is_anonymous): Likewise.
5030 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5031 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5032 * dwarf2read.c (namespace_name): Likewise.
5033 (fixup_partial_die): Likewise.
5034 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5035 seen in the input, keep it.
5036
6d549500
PA
50372011-05-30 Pedro Alves <pedro@codesourcery.com>
5038
5039 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5040 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5041 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5042 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5043 * remote.c (_initialize_remote): Register
5044 async_remote_interrupt_twice directly as
5045 sigint_remote_twice_token event.
5046
395bff70
PA
50472011-05-30 Pedro Alves <pedro@codesourcery.com>
5048
5049 * target.h (enum inferior_event_type): Delete INF_ERROR.
5050 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5051
97224164
PA
50522011-05-30 Pedro Alves <pedro@codesourcery.com>
5053
5054 * interps.c (interp_set): Don't cancel continuations.
5055
07e78767
JK
50562011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5057
5058 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5059
fa4cd53f
PA
50602011-05-30 Pedro Alves <pedro@codesourcery.com>
5061
5062 * continuations.h (continuation_ftype): Add `err' parameter.
5063 Document parameters.
5064 (do_all_continuations, do_all_continuations_thread)
5065 (do_all_intermediate_continuations)
5066 (do_all_intermediate_continuations_thread)
5067 (do_all_inferior_continuations): Add `err' parameter.
5068 * continuations.c (do_my_continuations_1, do_my_continuations)
5069 (do_all_inferior_continuations, do_all_continuations_ptid)
5070 (do_all_continuations_thread_callback)
5071 (do_all_continuations_thread, do_all_continuations)
5072 (do_all_intermediate_continuations_thread_callback)
5073 (do_all_intermediate_continuations_thread)
5074 (do_all_intermediate_continuations): Add `err' parameter, and pass
5075 it down all the way to the continuations proper.
5076 * inf-loop.c (inferior_event_handler): If fetching an inferior
5077 event throws an error, don't pop the target, and still call the
5078 continuations, but with `err' set. Adjust all other continuation
5079 calls.
5080 * breakpoint.c (until_break_command_continuation): Add `err'
5081 parameter.
5082 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5083 issue another step if `err' is set.
5084 (struct until_next_continuation_args): New.
5085 (until_next_continuation): Add `err' parameter. Adjust.
5086 (until_next_command): Adjust.
5087 (struct finish_command_continuation_args): Add `thread' field.
5088 (finish_command_continuation): Add `err' parameter. Handle it.
5089 (finish_forward): Adjust.
5090 (attach_command_continuation): Add `err' parameter. Handle it.
5091 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5092 cancel the continuations.
5093 * interps.c (interp_set): Adjust to cancel the continuations.
5094 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5095 continuations rather than discarding.
5096 (free_thread): Don't clear thread inferior resources here.
5097 (delete_thread_1): Do it here instead. And do it before removing
5098 the thread from the threads list. Tag the thread as exited before
5099 clearing thread inferior resources.
5100
c2949be0
JB
51012011-05-30 Joel Brobecker <brobecker@adacore.com>
5102
5103 * infcall.c (call_function_by_hand): Rephrase error message.
5104
619cebe8
PA
51052011-05-27 Pedro Alves <pedro@codesourcery.com>
5106
5107 * defs.h (struct thread_info, struct inferior): Delete forward
5108 declarations.
5109 * breakpoint.h (struct thread_info): New forward declaration.
5110 * observer.sh (struct inferior): New forward declaration.
5111 * python/python-internal.h (struct inferior): New forward
5112 declaration.
5113
be34f849
PA
51142011-05-27 Pedro Alves <pedro@codesourcery.com>
5115
5116 * defs.h (struct continuation, continuation_ftype)
5117 (continuation_free_arg_ftype, add_continuation)
5118 (do_all_continuations, do_all_continuations_thread)
5119 (discard_all_continuations, discard_all_continuations_thread)
5120 (add_intermediate_continuation, do_all_intermediate_continuations)
5121 (do_all_intermediate_continuations_thread)
5122 (discard_all_intermediate_continuations)
5123 (discard_all_intermediate_continuations_thread)
5124 (add_inferior_continuation, do_all_inferior_continuations)
5125 (discard_all_inferior_continuations): Move to ...
5126 * continuations.h: ... this new file.
5127 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5128 infcmd.c, inferior.c, infrun.c, interps.c: Include
5129 continuations.h.
5130
432b4d03
JK
51312011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5132 Doug Evans <dje@google.com>
5133
5134 Fix PR 10970, PR 12702.
5135 * linux-nat.c (linux_lwp_is_zombie): New function.
5136 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5137 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5138
b0f260d6
PA
51392011-05-27 Pedro Alves <pedro@codesourcery.com>
5140
5141 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5142 typedefs.
5143 (add_continuation, add_intermediate_continuation)
5144 (add_inferior_continuation): Use them.
5145 * continuations.c (struct continuation): Use them.
5146 (make_continuation_ftype): Delete.
5147 (make_continuation, add_inferior_continuation, add_continuation)
5148 (add_intermediate_continuation): Use continuation_ftype and
5149 continuation_free_arg_ftype. Rename parameters to shorter names.
5150
af1e9a32
PA
51512011-05-27 Pedro Alves <pedro@codesourcery.com>
5152
5153 * continuations.c (make_continuation): Make it return void.
5154 (do_my_continuations): Rename to ...
5155 (do_my_continuations_1): ... this. Remove old_chain parameter and
5156 adjust.
5157 (do_my_continuations): New.
5158 (discard_my_continuations): Rename to ...
5159 (discard_my_continuations_1): ... this. Remove old_chain
5160 parameter and adjust.
5161 (discard_my_continuations): New.
5162 (add_inferior_continuation): Simplify.
5163 (do_all_inferior_continuations): Reimplement on top
5164 do_my_continuations.
5165 (discard_all_inferior_continuations): Simplify.
5166 (add_continuation): Simplify.
5167 (do_all_continuations_ptid): Simplify.
5168 (discard_all_continuations_thread_callback): Simplify.
5169 (add_intermediate_continuation): Simplify.
5170 (discard_all_intermediate_continuations_thread_callback):
5171 Simplify.
5172
50c0c017
PA
51732011-05-27 Pedro Alves <pedro@codesourcery.com>
5174
5175 * utils.c (struct continuation, add_continuation)
5176 (add_inferior_continuation)
5177 (do_all_inferior_continuations, discard_all_inferior_continuations)
5178 (restore_thread_cleanup, do_all_continuations_ptid)
5179 (do_all_continuations_thread_callback)
5180 (do_all_continuations_thread, do_all_continuations)
5181 (discard_all_continuations_thread_callback)
5182 (discard_all_continuations_thread, discard_all_continuations)
5183 (add_intermediate_continuation)
5184 (do_all_intermediate_continuations_thread_callback)
5185 (do_all_intermediate_continuations_thread)
5186 (do_all_intermediate_continuations)
5187 (discard_all_intermediate_continuations_thread_callback)
5188 (discard_all_intermediate_continuations_thread)
5189 (discard_all_intermediate_continuations): Move to ...
5190 * continuations.c: ... this new file, and adjust to no longer
5191 implement continuations on top of cleanups.
5192 * Makefile.in (SFILES): Add continuations.c.
5193 (COMMON_OBS): Add continuations.o.
5194
d8b34453
PA
51952011-05-26 Pedro Alves <pedro@codesourcery.com>
5196
5197 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5198 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5199 Internal error on invalid values.
5200 * reverse.c: Don't handle EXEC_ERROR.
5201 * mi/mi-main.c: Don't handle EXEC_ERROR.
5202
32231432
PA
52032011-05-26 Pedro Alves <pedro@codesourcery.com>
5204
5205 * record.c: Include event-loop.h, inf-loop.h.
5206 (record_beneath_to_async): New global.
5207 (tmp_to_async): New global.
5208 (record_async_inferior_event_token): New global.
5209 (record_open_1): Don't error out if async is enabled.
5210 (record_open): Handle to_async. Create an async event source in
5211 the event loop.
5212 (record_close): Delete the async event source.
5213 (record_resumed): New global.
5214 (record_execution_dir): New global.
5215 (record_resume, record_core_resume): Set them. Register the
5216 target on the event loop.
5217 (record_wait): Rename to ...
5218 (record_wait_1): ... this. Add more debug output. Handle
5219 TARGET_WNOHANG, and the target beneath returning
5220 TARGET_WAITKIND_IGNORE.
5221 (record_wait): Reimplement on top of record_wait_1.
5222 (record_async_mask_value): New global.
5223 (record_async, record_async_mask, record_can_async_p)
5224 (record_is_async_p, record_execution_direction): New functions.
5225 (init_record_ops, init_record_core_ops): Install new methods.
5226 * infrun.c (fetch_inferior_event): Temporarily switch the global
5227 execution direction to the direction the target was going.
5228 (execution_direction): Change type to int.
5229 * target.c (default_execution_direction): New function.
5230 (update_current_target): Inherit and de_fault
5231 to_execution_direction.
5232 * target.h (struct target_ops) <to_execution_direction>: New
5233 field.
5234 (target_execution_direction): New macro.
5235 * inferior.h (execution_direction): Change type to int.
5236
949dc678
PA
52372011-05-26 Pedro Alves <pedro@codesourcery.com>
5238
5239 * infcall.c (call_function_by_hand): Don't allow calling functions
5240 in reverse execution mode.
5241
c13bd2b5
PA
52422011-05-26 Pedro Alves <pedro@codesourcery.com>
5243
5244 * infcmd.c (finish_command): Allow async finish in reverse.
5245
6938fd34
YQ
52462011-05-26 Yao Qi <yao@codesourcery.com>
5247
5248 * gdb_thread_db.h: Delete. Move to ...
5249 * common/gdb_thread_db.h: ... here.
5250
9da8c2a0
PA
52512011-05-26 Pedro Alves <pedro@codesourcery.com>
5252
5253 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5254 function's entry point instead of a manually managed momentary
5255 breakpoint, and only ever issue one proceed call.
5256 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5257 doing a reverse-finish, switch to stepi mode, to do another step.
5258 (insert_step_resume_breakpoint_at_sal): Make public.
5259 (normal_stop): No need to save function value return registers if
5260 going reverse.
5261 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5262
2c03e5be
PA
52632011-05-26 Pedro Alves <pedro@codesourcery.com>
5264
5265 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5266 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5267 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5268 at the end.
5269 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5270 step-resume breakpoints.
5271 (print_it_typical): Handle bp_hp_step_resume.
5272 (bpstat_what): Ditto.
5273 (bptype_string): Ditto.
5274 (print_one_breakpoint_location): Ditto.
5275 (allocate_bp_location): Ditto.
5276 (mention): Ditto.
5277 (breakpoint_re_set_one): Ditto.
5278 * infrun.c (handle_inferior_event): Adjust. Split
5279 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5280 BPSTAT_WHAT_HP_STEP_RESUME.
5281 (insert_step_resume_breakpoint_at_sal): Rename to ...
5282 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5283 parameter. Handle it.
5284 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5285 insert_step_resume_breakpoint_at_sal_1.
5286 (insert_step_resume_breakpoint_at_frame): Rename to ...
5287 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5288 set a high-priority step-resume breakpoint.
5289 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5290 (insert_step_resume_breakpoint_at_caller): Ditto.
5291
51be5b68
PA
52922011-05-26 Pedro Alves <pedro@codesourcery.com>
5293
5294 * breakpoint.c (iterate_over_related_breakpoints): New.
5295 (do_map_delete_breakpoint): New.
5296 (delete_command): Pass do_map_delete_breakpoint to
5297 map_breakpoint_numbers.
5298 (do_disable_breakpoint): New.
5299 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5300 breakpoints.
5301 (do_enable_breakpoint): Rename to ...
5302 (enable_breakpoint_disp): ... this.
5303 (enable_breakpoint): Adjust.
5304 (do_enable_breakpoint): New.
5305 (enable_once_breakpoint): Delete.
5306 (do_map_enable_breakpoint): New.
5307 (do_map_enable_once_breakpoint): New.
5308 (enable_once_command, enable_delete_command)
5309 (delete_trace_command): Iterate over the breakpoint's related
5310 breakpoints.
5311
4a1be8d2
PA
53122011-05-26 Pedro Alves <pedro@codesourcery.com>
5313
5314 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5315 for ALPHA_ZERO_REGNUM.
5316 (alpha_supply_int_regs): Explicitly supply zero as the value for
5317 ALPHA_ZERO_REGNUM in the register cache.
5318 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5319
59d70315
YQ
53202011-05-26 Yao Qi <yao@codesourcery.com>
5321
5322 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5323
251d32d9
TG
53242011-05-26 Tristan Gingold <gingold@adacore.com>
5325
5326 * symfile.h (struct dwarf2_section_names): New type.
5327 (struct dwarf2_debug_sections): New type.
5328 (dwarf2_has_info): Add parameter.
5329 * dwarf2read.c (dwarf2_elf_names): New variable.
5330 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5331 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5332 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5333 (dwarf2_has_info): Add names parameter. Pass names
5334 to dwarf2_locate_sections.
5335 (section_is_p): Rewrite using the names parameter.
5336 (dwarf2_locate_sections): Use section names from the names parameter.
5337 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5338 * elfread.c (read_psyms): Ditto.
5339 * machoread.c (macho_symfile_read): Ditto.
5340
652c71b4
AS
53412011-05-25 Andreas Schwab <schwab@redhat.com>
5342
5343 PR gdb/8677
5344 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5345
f17170e5
KS
53462011-05-24 Keith Seitz <keiths@redhat.com>
5347
5348 PR breakpoint/12803
5349 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5350 (decode_compound): Unconditionally call keep_name_info.
5351
cdac0397
PA
53522011-05-24 Pedro Alves <pedro@codesourcery.com>
5353
5354 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5355 scope, clear its command list.
5356 (map_breakpoint_numbers): Don't walk the related breakpoints list
5357 of each breakpoint.
5358
91d4fe3f
TT
53592011-05-24 Tom Tromey <tromey@redhat.com>
5360
5361 * MAINTAINERS: Move Jim Blandy to past maintainers.
5362
3017a003
TG
53632011-05-24 Tristan Gingold <gingold@adacore.com>
5364
5365 * symfile.h (enum dwarf2_section_enum): New type.
5366 (dwarf2_get_section_info): New prototype.
5367 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5368 section_name by sect. Use a switch to select the info.
5369 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5370 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5371
c91c8c16
PA
53722011-05-24 Pedro Alves <pedro@codesourcery.com>
5373
5374 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5375 shared library event breakpoint if there's no execution.
5376
77bc418a
TJB
53772011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5378
5379 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5380 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5381
c50491a7
TT
53822011-05-23 Tom Tromey <tromey@redhat.com>
5383
5384 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5385 NULL.
5386
6d64e6d4
DE
53872011-05-23 Doug Evans <dje@google.com>
5388
5389 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5390 entry for RuntimeError to doc string.
5391
2067c8d4
JG
53922011-05-23 Jerome Guitton <guitton@adacore.com>
5393
5394 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5395 sequence for probing loops.
5396
b136cd05
PA
53972011-05-23 Pedro Alves <pedro@codesourcery.com>
5398
5399 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5400 comment.
5401
22e74ef9
MK
54022011-05-21 Mark Kettenis <kettenis@gnu.org>
5403
5404 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5405 zero as the value for %g0 in the register cache.
5406 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5407 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5408
842951eb
PA
54092011-05-20 Pedro Alves <pedro@codesourcery.com>
5410
5411 * infrun.c (proceed): Set previous_inferior_ptid here.
5412 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5413 inferior_ptid, not null_ptid.
5414 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5415 (fetch_inferior_event): Nor here.
5416
46cf51e6
PA
54172011-05-20 Pedro Alves <pedro@codesourcery.com>
5418
5419 * inf-loop.c (inferior_event_handler): Only output a message if
5420 verbose.
5421
29ef4c46
LM
54222011-05-20 Luis Machado <lgustavo@codesourcery.com>
5423
5424 * MAINTAINERS: Update my e-mail address.
5425
f148b27e
PA
54262011-05-20 Pedro Alves <pedro@codesourcery.com>
5427
5428 * infrun.c (proceed): Switch the inferior event loop to
5429 INF_EXEC_COMPLETE if the target refused to resume from a
5430 vfork/fork.
5431
09cee04b
PA
54322011-05-20 Pedro Alves <pedro@codesourcery.com>
5433
5434 * infcmd.c: Include "inf-loop.h".
5435 (step_once): When stepping into an inline subroutine, pretend the
5436 target has run. If the target can async, switch the inferior
5437 event loop to INF_EXEC_COMPLETE.
5438 * inferior.h (user_visible_resume_ptid): Declare.
5439 * infrun.c (user_visible_resume_ptid): New function, factored out
5440 from `resume'.
5441 (resume): Use it.
5442 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5443 that the current thread is running. Merge async and sync
5444 branches.
5445
751b8ce1
PA
54462011-05-20 Pedro Alves <pedro@codesourcery.com>
5447
5448 * infcmd.c (step_1): Simplify synchronous case.
5449
e93a69ed
PA
54502011-05-20 Pedro Alves <pedro@codesourcery.com>
5451
5452 * tracepoint.c: Include exceptions.h.
5453 (TFILE_PID): Move higher in file.
5454 (tfile_open): Delay pushing the tfile target until we're assured
5455 the tfile header is present in the file. Wrap reading the initial
5456 newline-terminated lines in TRY_CATCH. Pop the target if the
5457 initial setup failed. Add the tfile's thread immediately
5458 aftwards, before any non-essential setup. Don't skip
5459 post_create_inferior if there are no traceframes present in the
5460 file.
5461 (tfile_close): Remove redundant check for null before xfree call.
5462 (tfile_thread_alive): New function.
5463 (init_tfile_ops): Register it as to_thread_alive callback.
5464
6823e2b1
PA
54652011-05-20 Pedro Alves <pedro@codesourcery.com>
5466
5467 * tracepoint.c (tfile_open): Delete #if 0'd code.
5468
b3c8eb43
JK
54692011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5470
5471 Fix -readnow for -gdwarf-4 unused type units.
5472 * dwarf2read.c (struct signatured_type): Remove the field offset.
5473 (create_signatured_type_table_from_index): Remove its initialization.
5474 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5475 instead. Add a complaint call.
5476 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5477 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5478 (lookup_signatured_type_at_offset, read_signatured_type)
5479 (write_one_signatured_type): Update the field for per_cu.
5480
310afc76
TT
54812011-05-19 Tom Tromey <tromey@redhat.com>
5482
5483 * python/py-inferior.c (python_inferior_exit): Use
5484 target_gdbarch.
5485 (python_on_resume): Likewise.
5486
cf6c5ffb
TT
54872011-05-19 Matt Rice <ratmice@gmail.com>
5488
5489 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5490
fb80a3c5
HZ
54912011-05-19 Hui Zhu <teawater@gmail.com>
5492
5493 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5494
3672b1be
HZ
54952011-05-19 Hui Zhu <teawater@gmail.com>
5496
5497 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5498
ff355380
TT
54992011-05-18 Tom Tromey <tromey@redhat.com>
5500
5501 * dwarf2read.c (dwarf2_add_field): Constify.
5502 * value.c (value_static_field): Constify.
5503 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5504 Now const.
5505 * ax-gdb.c (gen_static_field): Constify
5506
ed731959
JK
55072011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5508
5509 * linux-nat.c (kill_callback): Use SIGKILL first.
5510
967cff16
JB
55112011-05-18 Joel Brobecker <brobecker@adacore.com>
5512
5513 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5514
1d06ead6
TT
55152011-05-18 Tom Tromey <tromey@redhat.com>
5516
5517 * value.c (value_fn_field): Constify.
5518 * symtab.c (gdb_mangle_name): Constify.
5519 * stabsread.c (update_method_name_from_physname): Make 'physname'
5520 argument const.
5521 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5522 const. Use explicit fputc_filtered loop.
5523 (pascal_type_print_base): Constify.
5524 * p-lang.h (pascal_type_print_method_args): Update.
5525 * linespec.c (add_matching_methods): Constify.
5526 (add_constructors): Likewise.
5527 * jv-typeprint.c (java_type_print_base): Constify.
5528 * gdbtypes.h (struct cplus_struct_type)
5529 <fn_fieldlist.fn_field.physname>: Now const.
5530 * dwarf2read.c (compute_delayed_physnames): Constify.
5531 (dwarf2_add_member_fn): Likewise.
5532 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5533
0d9a9a5f
PA
55342011-05-18 Pedro Alves <pedro@codesourcery.com>
5535
5536 * infrun.c (resume): Mention which is the current thread, and its
5537 current PC in debug output.
5538 (prepare_to_proceed): Mention the thread switching in debug
5539 output.
5540
05386e9e
TT
55412011-05-18 Tom Tromey <tromey@redhat.com>
5542
5543 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5544 path check. Use xmalloc and cleanups.
5545 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5546
ee86786c
TT
55472011-05-17 Tom Tromey <tromey@redhat.com>
5548
5549 * cp-valprint.c (cp_print_value_fields): Catch errors from
5550 value_static_field.
5551
9ff3b74f
TT
55522011-05-17 Tom Tromey <tromey@redhat.com>
5553
5554 * dwarf2read.c (dwarf2_get_die_type): Call
5555 get_die_type_at_offset.
5556 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5557 get_base_type function.
5558
cd3da28e
PA
55592011-05-17 Tomas Martinec <fyzmat@gmail.com>
5560
5561 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5562 trap_expected.
5563
fd20d931
DE
55642011-05-16 Doug Evans <dje@google.com>
5565
5566 * python/py-auto-load.c (source_section_scripts): Mention objfile
5567 name in warning.
5568
75fc9810
DE
55692011-05-15 Doug Evans <dje@google.com>
5570
290351b8
DE
5571 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5572 (try_thread_db_load_from_pdir): Call it. If unable to find
5573 libthread_db in directory of libpthread, see if we're looking at
5574 the separate-debug-info copy.
5575
75fc9810
DE
5576 * python/py-autoload.c (print_script): Print "Missing" instead of
5577 "No" for missing scripts.
5578 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5579
9f7bc587
DE
55802011-05-13 Doug Evans <dje@google.com>
5581
5582 * ui-file.c (stdio_file_write_async_safe): Add comment.
5583
093cee7d
HZ
55842011-05-14 Hui Zhu <teawater@gmail.com>
5585
5586 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5587
dbaefcf7
DE
55882011-05-13 Doug Evans <dje@google.com>
5589
98a5dd13
DE
5590 Support $pdir and $sdir in libthread-db-search-path.
5591 * NEWS: Mention $sdir,$pdir.
5592 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5593 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5594 (try_thread_db_load_from_sdir): New function.
5595 (try_thread_db_load_from_dir): New function.
5596 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5597 system directories if search of libthread-db-search-path fails,
5598 that is now done via $sdir.
5599 (has_libpthread): New function.
5600 (thread_db_load): Remove search for libthread_db in directory of
5601 libpthread, that is now done via $pdir.
5602
dbaefcf7
DE
5603 * NEWS: Mention "info auto-load-scripts".
5604 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5605 script_not_found_warning_printed.
5606 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5607 all callers updated. Initialize script_not_found_warning_printed.
5608 (get_auto_load_pspace_data_for_loading): New function.
5609 (maybe_add_script): New function.
5610 (source_section_scripts): Simplify. Only print one warning regardless
5611 of the number of auto-load scripts not found.
5612 (clear_section_scripts): Clear script_not_found_warning_printed.
5613 (auto_load_objfile_script): Record script in hash table.
5614 (count_matching_scripts): New function.
5615 (maybe_print_script): Renamed from maybe_print_section_script, all
5616 callers updated. Rewrite to use ui_out_*.
5617 (info_auto_load_scripts): Renamed from
5618 maintenance_print_section_scripts, all callers updated.
5619 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5620 renamed as "info auto-load-scripts".
5621
9930639c
TT
56222011-05-13 Tom Tromey <tromey@redhat.com>
5623
5624 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5625 (read_sleb128): Likewise.
5626
06826322
TT
56272011-05-13 Tom Tromey <tromey@redhat.com>
5628
5629 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5630 offset display.
5631
01124a23
DE
56322011-05-13 Doug Evans <dje@google.com>
5633
5634 * linux-nat.c (debug_linux_nat_async): Delete.
5635 Replace all references to use debug_linux_nat instead.
5636 (show_debug_linux_nat_async): Delete.
5637 (sigchld_handler): Call ui_file_write_async_safe instead of
5638 fprintf_unfiltered.
5639 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5640 * ui-file.c (struct ui_file): New member to_write_async_safe.
5641 (null_file_write_async_safe): New function.
5642 (ui_file_write_async_safe): New function.
5643 (set_ui_file_write_async_safe): New function.
5644 (ui_file_new): Initialize to_write_async_safe.
5645 (stdio_file_write_async_safe): New function.
5646 (struct stdio_file): New member fd.
5647 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5648 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5649 fileno.
01124a23
DE
5650 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5651 (set_ui_file_write_async_safe): Declare.
5652 (ui_file_write_async_safe): Declare.
5653
72fc29ff
TT
56542011-05-13 Tom Tromey <tromey@redhat.com>
5655
5656 * utils.c (do_value_free): New function.
5657 (make_cleanup_value_free): Likewise.
5658 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5659 freeing correctly.
5660 (dwarf2_loc_desc_needs_frame): Call
5661 make_cleanup_value_free_to_mark.
5662 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5663 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5664 value_free_to_mark.
5665 (new_dwarf_expr_context): Don't call value_mark.
5666 * dwarf2-frame.c (execute_stack_op): Call
5667 make_cleanup_value_free_to_mark.
5668 * defs.h (make_cleanup_value_free): Declare.
5669
028d0ed5
TJB
56702011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5671
5672 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5673 prepare_execute_command.
5674 * top.c (prepare_execute_command): Return cleanup.
5675 (execute_command): Use cleanup from prepare_execute_command.
5676 * top.h (prepare_execute_command): Change prototype to return
5677 cleanup.
5678 * defs.h (struct value): Add opaque declaration.
5679 (make_cleanup_value_free_to_mark): Add prototype.
5680 * utils.c (do_value_free_to_mark): New function.
5681 (make_cleanup_value_free_to_mark): Likewise.
5682
b087e0ed
TT
56832011-05-12 Tom Tromey <tromey@redhat.com>
5684
5685 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5686 cast left-hand-side to unsigned.
5687
8a9b8146
TT
56882011-05-12 Tom Tromey <tromey@redhat.com>
5689
5690 PR gdb/12617:
5691 * value.h (value_from_contents): Declare.
5692 * value.c (value_from_contents): New function.
5693 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5694 (dwarf2_get_die_type): New function.
5695 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5696 (allocate_piece_closure): Acquire reference to values.
5697 (read_pieced_value): Update for value-based expressions.
5698 (write_pieced_value): Likewise.
5699 (free_pieced_value_closure): Call value_free as needed.
5700 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5701 Update for value-based expressions.
5702 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5703 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5704 <get_base_type>: New field.
5705 (struct dwarf_expr_piece) <v.value>: Change type.
5706 <v.regno>: New field.
5707 (struct dwarf_expr_context) <mark>: New field.
5708 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5709 (dwarf_expr_pop, dwarf_expr_push): Remove.
5710 (dwarf_expr_push_address): Declare.
5711 * dwarf2expr.c (dwarf_arch_cookie): New global.
5712 (struct dwarf_gdbarch_types): New.
5713 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5714 functions.
5715 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5716 static.
5717 (dwarf_expr_push_address): New function.
5718 (dwarf_expr_pop): Now static.
5719 (dwarf_expr_fetch): Change return type.
5720 (dwarf_require_integral): New function.
5721 (dwarf_expr_fetch): Simplify.
5722 (add_piece): Update.
5723 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5724 functions.
5725 (execute_stack_op) <sign_ext>: Remove.
5726 Use values for DWARF stack.
5727 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5728 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5729 New cases.
5730 (_initialize_dwarf2expr): New function.
5731 (add_piece): Update.
5732 (new_dwarf_expr_context): Set new field.
5733 (free_dwarf_expr_context): Call value_free_to_mark.
5734 * dwarf2-frame.c (no_base_type): New function.
5735 (execute_stack_op): Set get_base_type field. Update.
5736
e8d28ef4
TT
57372011-05-12 Tom Tromey <tromey@redhat.com>
5738
5739 * dwarf2read.c (read_common_block): Fix formatting.
5740
d248b706
KY
57412011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5742
5743 * breakpoint.c (disable_breakpoint): Disable all locations
5744 associated with a tracepoint on target if a trace experiment is
5745 running.
5746 (disable_command): Disable a specific tracepoint location on target if
5747 a trace experiment is running.
5748 (do_enable_breakpoint): Enable all locations associated with a
5749 tracepoint on target if a trace experiment is running.
5750 (enable_command) Enable a specific tracepoint location on target if a
5751 trace experiment is running.
5752 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5753 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5754 to_disable_tracepoint.
5755 * target.h: Add declaration of struct bp_location.
5756 (struct target_ops): Add new functions
5757 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5758 to_disable_tracepoint to target operations.
5759 (target_supports_enable_disable_tracepoint): New macro.
5760 (target_enable_tracepoint): New macro.
5761 (target_disable_tracepoint): New macro.
5762 * remote.c (struct remote_state): Add new field.
5763 (remote_enable_disable_tracepoint_feature): New.
5764 (remote_protocol_features): Add new entry.
5765 (remote_supports_enable_disable_tracepoint): New.
5766 (remote_enable_tracepoint): New.
5767 (remote_disable_tracepoint): New.
5768 (init_remote_ops): Add remote_enable_tracepoint,
5769 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5770 to remote operations.
5771 * tracepoint.c (start_tracing): Allow tracing to start without any
5772 tracepoints enabled with just a warning if they can be re-enabled
5773 later.
5774 * NEWS: Add news item for the new behaviour of the enable and disable
5775 GDB commands when applied to tracepoints.
5776 Add news items for the new remote packets QTEnable and QTDisable.
5777
cc88a640
JK
57782011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5779
5780 * config.in: Regenerate.
5781 * configure: Regenerate.
5782 * configure.ac <--with-system-readline> (for readline_echoing_p):
5783 Remove the test.
5784 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5785 (tui_old_rl_echoing_p): ... here.
5786 (tui_setup_io): Rename extern declaration readline_echoing_p to
5787 _rl_echoing_p. Adjust assignments for the both renames.
5788
1f84b619
TJB
57892011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5790
5791 * symtab.c (lookup_symtab): Run cleanup before returning.
5792
74ac6d43
TT
57932011-05-11 Tom Tromey <tromey@redhat.com>
5794
5795 * dwarf2read.c (handle_data_member_location): New function.
5796 (dwarf2_add_field): Use it.
5797 (read_common_block): Likewise.
5798
5488dafb
JK
57992011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5800
5801 Make addrs->SECTINDEX always defined.
5802 * symfile.c (relative_addr_info_to_section_offsets): Check for
5803 SECTINDEX -1, not for zero ADDR.
5804 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5805 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5806 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5807 on its validity.
5808
84e578fb
DE
58092011-05-10 Doug Evans <dje@google.com>
5810
2471d008
DE
5811 * linux-thread-db.c: Whitespace cleanup.
5812 (try_thread_db_load_1): Fix comment.
5813
84e578fb
DE
5814 * linux-thread-db.c (set_libthread_db_search_path): New function.
5815 (_initialize_thread_db): Add setter for libthread-db-search-path.
5816
673c2bbe
DE
58172011-05-09 Doug Evans <dje@google.com>
5818
478aac75
DE
5819 * NEWS: Mention --with-iconv-bin.
5820 * configure.ac: New option --with-iconv-bin.
5821 * configure: Regenerate.
5822 * config.in: Regenerate.
5823 * defs.h (relocate_gdb_directory): Declare.
5824 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5825 removed progname parameter, and exported. All callers updated.
5826 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5827
673c2bbe
DE
5828 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5829 adding missing call to restore_child_signals_mask.
5830
e4c8541f
PA
58312011-05-09 Pedro Alves <pedro@codesourcery.com>
5832
5833 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5834 parameter.
5835 * infrun.c (proceed, start_remote): Adjust.
5836 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5837 and adjust to not handle it.
5838 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5839 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5840 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5841 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5842 * windows-nat.c (do_initial_windows_stuff): Adjust.
5843 * infcmd.c (attach_command): Adjust.
5844 (notice_new_inferior): Adjust.
5845
a536c6d7
UW
58462011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5847
5848 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5849 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5850 * spu-tdep.c (op_selb): Use correct value.
5851
7845b013
UW
58522011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5853
5854 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5855 "parent" parameter to symbol_file_add_from_bfd call.
5856
9c06b0b4
TJB
58572011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5858 Thiago Jung Bauermann <bauerman@br.ibm.com>
5859
5860 Implement support for PowerPC BookE masked watchpoints.
5861 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5862 section.
5863 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5864 method. Initialize to NULL in all existing breakpoint_ops instances.
5865 (struct breakpoint) <hw_wp_mask>: New field.
5866 * breakpoint.c (is_masked_watchpoint): Add prototype.
5867 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5868 breakpoint's breakpoint_ops.works_in_software_mode if available.
5869 (watchpoints_triggered): Handle the case of a hardware masked
5870 watchpoint trigger.
5871 (watchpoint_check): Likewise.
5872 (works_in_software_mode_watchpoint): New function.
5873 (insert_masked_watchpoint, remove_masked_watchpoint)
5874 (resources_needed_masked_watchpoint)
5875 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5876 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5877 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5878 functions.
5879 (masked_watchpoint_breakpoint_ops): New structure.
5880 (watch_command_1): Check for the existence of the `mask' parameter.
5881 Set b->ops according to the type of hardware watchpoint being created.
5882 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5883 (ppc_linux_remove_mask_watchpoint)
5884 (ppc_linux_masked_watch_num_registers): New functions.
5885 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5886 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5887 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5888 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5889 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5890 (target_masked_watch_num_registers): New functions.
5891 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5892 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5893 methods.
5894 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5895 (target_masked_watch_num_registers): Add prototypes.
5896
8be455d7
JK
58972011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5898
5899 PR 12573
5900 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5901 (producer_is_gcc_ge_4_0): New function.
5902 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5903 symtab->language code.
5904 (var_decode_location): Set cu->has_loclist.
5905 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5906 skip. Intialize force_skip from locations_valid. Move the prologue
5907 skipping code into two passes.
5908 * symtab.h (struct symtab): Make the primary field a bitfield. New
5909 field locations_valid.
5910
d8228535
JK
59112011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5912
5913 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5914 (classify_inner_name): Call cp_lookup_nested_type with
5915 yylval.tsym.type.
5916 * cp-namespace.c (cp_lookup_nested_type): New variable
5917 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5918 type_name_no_tag_or_error with saved_parent_type.
5919 * dwarf2read.c (load_partial_dies): Read in any children of
5920 DW_TAG_typedef with complaint in such case.
5921 * gdbtypes.c (type_name_no_tag_or_error): New function.
5922 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5923 * valops.c (destructor_name_p): New comment for parameter type. Remove
5924 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5925 * value.h (destructor_name_p): Remove type const.
5926
1976171a
JK
59272011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5928
5929 * symtab.c (compare_symbol_name): New function.
5930 (completion_list_add_name, expand_partial_symbol_name): Call it,
5931 remove the variable ncmp.
5932 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5933 gdb_assert it.
5934
a9634178
TJB
59352011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5936
5937 Demote to sw watchpoint only in update_watchpoint.
5938 * breakpoint.c (update_watchpoint): Change between software and
5939 hardware watchpoint for all kinds of watchpoints, not just
5940 read/write ones. Determine b->exact value here instead of
5941 in watch_command_1. Error out if there are not enough resources
5942 for a read or access hardware watchpoint.
5943 (watch_command_1): Remove logic of checking whether there are
5944 enough resources available, since update_watchpoint will do that
5945 work now. Don't set b->exact here. Catch exceptions thrown by
5946 update_watchpoint and delete the watchpoint.
5947 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5948 Use target_exact_watchpoints instead.
5949 (delete_breakpoint): Notify observers only if deleted watchpoint
5950 has a breakpoint number assigned to it.
5951
4c67c798
JJ
59522011-05-05 Janis Johnson <janisjo@codesourcery.com>
5953
5954 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5955
a3fcb948
JG
59562011-05-05 Jerome Guitton <guitton@adacore.com>
5957
5958 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5959 New functions.
5960 (i386_stack_tramp_frame_unwind): New static global.
5961 (i386_match_pattern): New function, extracted from i386_match_insn.
5962 (i386_match_insn): Use i386_match_pattern.
5963 (i386_match_insn_block): New function.
5964 (i386_tramp_chain_in_reg_insns)
5965 (i386_tramp_chain_on_stack_insns): New static variables.
5966 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5967 of unwinders.
5968
4d393d60
JM
59692011-05-04 Joseph Myers <joseph@codesourcery.com>
5970
5971 * configure.host (xscale*): Don't handle target.
5972 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5973 handle targets.
5974
f70bd40b
YQ
59752011-05-04 Yao Qi <yao@codesourcery.com>
5976
5977 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5978
dd3295ee
JB
59792011-05-03 Joel Brobecker <brobecker@adacore.com>
5980
5981 Revert:
5982 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5983 | * elfread.c (elf_symtab_read): Stop memory leak.
5984
90375a0e
PM
59852011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5986
5987 * nto-tdep.c (nto_target): Replace deprecated call to
5988 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5989
d07205c2
JK
59902011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5991
5992 Fix false GCC warning.
5993 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5994
1e718ff1
TJB
59952011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5996
5997 * breakpoint.c (update_watchpoint): Move code to change
5998 the enable state of breakpoint from here ...
5999 (do_enable_breakpoint): ... to here.
6000
35bef4fd
TT
60012011-04-26 Andrew Gontarek <andrewg@cray.com>
6002
78290264
PP
6003 * valprint.c (val_print_array_elements): Fixed poor performance
6004 of printing very large arrays with repeat_count_threshold set
6005 to unlimited. New comment.
35bef4fd 6006
38a714bb
TT
60072011-04-29 Tom Tromey <tromey@redhat.com>
6008
6009 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6010 (mi_parse): Likewise.
6011 * breakpoint.c (break_range_command): Use sizeof char*, not
6012 char**.
6013 (create_breakpoint): Likewise.
6014 (parse_breakpoint_sals): Likewise.
6015
eb73ad13
PA
60162011-04-29 Pedro Alves <pedro@codesourcery.com>
6017
6018 * linux-nat.c (linux_child_remove_fork_catchpoint)
6019 (linux_child_remove_vfork_catchpoint)
6020 (linux_child_remove_exec_catchpoint): New functions.
6021 (linux_target_install_ops): Install them.
6022
d65aec65
PM
60232011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6024
6025 PR mi/12531
6026
6027 * varobj.c (install_default_visualizer): Do not install a
6028 visualizer if the varobj is CPLUS_FAKE_CHILD.
6029 (construct_visualizer): Likewise.
6030
165195f4
JK
60312011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6034 case insensitive comparison.
6035
30852783
UW
60362011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6037
6038 * infrun.c (proceed): Revert previous change.
6039 (resume): Instead, handle the case of signal delivery while stepping
6040 off a breakpoint location here, and only if software single-stepping
6041 is used. Handle nested signals.
6042
7ff120b4
YQ
60432011-04-28 Yao Qi <yao@codesourcery.com>
6044
6045 * arm-tdep.c (copy_unmodified): Rename to ...
6046 (arm_copy_unmodified): .. this. New.
6047 (copy_preload): Move common part to ...
6048 (install_preload): .. this. New.
6049 (arm_copy_preload): New.
6050 (copy_preload_reg): Move common part to ...
6051 (install_preload_reg): ... this. New.
6052 (arm_copy_preload_reg): New.
6053 (copy_b_bl_blx): Move common part to ...
6054 (install_b_bl_blx): .. this. New.
6055 (arm_copy_b_bl_blx): New.
6056 (copy_bx_blx_reg): Move common part to ...
6057 (install_bx_blx_reg): ... this. New.
6058 (arm_copy_bx_blx_reg): New.
6059 (copy_alu_reg): Move common part to ...
6060 (install_alu_reg): ... this. New.
6061 (arm_copy_alu_reg): New.
6062 (copy_alu_shifted_reg): Move common part to ...
6063 (install_alu_shifted_reg): ... this. New.
6064 (copy_ldr_str_ldrb_strb): Move common part to ...
6065 (install_ldr_str_ldrb_strb): ... this. New.
6066 (arm_copy_ldr_str_ldrb_strb): New.
6067 (copy_copro_load_store): Move some common part to ...
6068 (install_copy_copro_load_store): ... this. New.
6069 (arm_copy_copro_load_store): New.
6070 (copy_svc): Delete.
6071 (arm_copy_svc): Renamed from copy_svc.
6072 (copy_undef): Delete.
6073 (arm_copy_undef): Renamed from copy_undef.
6074 (decode_ext_reg_ld_st): Delete.
6075 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6076 (decode_svc_copro): Delete.
6077 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6078 (copy_copro_load_store, copy_alu_imm): update callers.
6079 (copy_extra_ld_st, copy_block_xfer): Likewise.
6080 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6081 (decode_miscellaneous, decode_dp_misc): Likewise.
6082 (decode_ld_st_word_ubyte, decode_media): Likewise.
6083 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6084 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6085 (decode_unconditional, decode_miscellaneous): Likewise.
6086 (decode_media, decode_b_bl_ldmstm): Likewise.
6087 (arm_process_displaced_insn): Likewise..
6088 (decode_misc_memhint_neon): Delete.
6089 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6090 (decode_miscellaneous): Delete.
6091 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6092 (decode_dp_misc): Delete.
6093 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6094 (decode_ld_st_word_ubyte): Delete.
6095 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6096 (decode_media): Delete.
6097 (arm_decode_media): Renamed from decode_media.
6098 (decode_b_bl_ldmstm): Delete.
6099 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6100 (decode_ext_reg_ld_st): Delete.
6101 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6102 (decode_unconditional): Delete.
6103 (arm_decode_unconditional): Renamed from decode_unconditional.
6104
559a7a62
JK
61052011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 Case insensitive lookups implementation.
6108 * dwarf2read.c: Include ctype.h.
6109 (struct mapped_index): New field version.
6110 (mapped_index_string_hash): New parameter index_version. New comment
6111 for it. Call tolower appropriately.
6112 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6113 Choose the right index version for mapped_index_string_hash.
6114 (dwarf2_read_index): Support also the index version 5. Initialize the
6115 new struct mapped_index field version.
6116 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6117 (find_slot): Explain the version needs. Pass INT_MAX for the new
6118 parameter.
6119 (write_psymtabs_to_index): Produce version 5.
6120 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6121 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6122 * psymtab.c (lookup_partial_symbol): Find the
6123 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6124 entries.
6125 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6126 NAME lowercasing.
6127 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6128 (completion_list_add_name): New variable ncmp, initialize it, use it.
6129 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6130 * utils.c (strcmp_iw): Support case_sensitive_off.
6131 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6132 New function comment part. New variables saved_string1,
6133 saved_string2 and case_pass. Add a proper second pass.
6134
681bf369
JK
61352011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6136
6137 Replace re_comp/re_exec by regcomp/regexec.
6138 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6139 (search_symbols_name_matches): Use them, use regexec.
6140 (search_symbols): New variable retval_chain, adjust the use of
6141 old_chain against it. Replace re_comp by regcomp. Use the new struct
6142 search_symbols_data fields, use regexec instead of re_exec.
6143
b11b1f88
JK
61442011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6145
6146 Format the code for the next patch.
6147 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6148 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6149 New variables c1 and c2.
6150
2484c66b
UW
61512011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6152
6153 * infrun.c (proceed): Do not single-step into signal delivery
6154 when stepping off a breakpoint location.
6155 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6156 (insert_step_resume_breakpoint_at_caller): Likewise.
6157 (insert_step_resume_breakpoint_at_sal): Likewise.
6158 (insert_longjmp_resume_breakpoint): Likewise.
6159
47423772
YQ
61602011-04-27 Yao Qi <yao@codesourcery.com>
6161
6162 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6163
13bdd2e7
JB
61642011-04-27 Joel Brobecker <brobecker@adacore.com>
6165
6166 * procfs.c (procfs_pass_signals): Fix advance declaration.
6167
2455069d
UW
61682011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6169
6170 * target.h (struct target_ops): Remove to_notice_signals;
6171 add to_pass_signals.
6172 (target_notice_signals): Remove.
6173 (target_pass_signals): Add prototype.
6174 * target.c (update_current_target): Remove to_notice_signals;
6175 mention to_pass_signals.
6176 (target_pass_signals): New function.
6177 (debug_to_notice_signals): Remove.
6178 (setup_target_debug): Do not install debug_to_notice_signals.
6179
6180 * infrun.c (signal_pass): New global.
6181 (resume): Call target_pass_signals.
6182 (handle_inferior_event): Report all signals while stepping over
6183 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6184 are re-inserted when stepping over a signal handler.
6185 (signal_cache_update): New function.
6186 (signal_stop_update): Call it.
6187 (signal_print_update): Likewise.
6188 (signal_pass_update): Likewise.
6189 (handle_command): Call signal_cache_update and target_pass_signals
6190 instead of target_notice_signals.
6191 (_initialize_infrun): Initialize signal_pass.
6192
6193 * linux-nat.c (pass_mask): New global.
6194 (linux_nat_pass_signals): New function.
6195 (linux_nat_create_inferior): Report all signals initially.
6196 (linux_nat_attach): Likewise.
6197 (linux_nat_resume): Use pass_mask to decide whether to directly
6198 handle an inferior signal.
6199 (linux_nat_wait_1): Likewise.
6200 (linux_nat_add_target): Install to_pass_signals callback.
6201
6202 * nto-procfs.c (notice_signals): Remove.
6203 (procfs_resume): Do not call notice_signals.
6204 (procfs_notice_signals): Remove.
6205 (procfs_pass_signals): New function.
6206 (init_procfs_ops): Install to_pass_signals callback instead of
6207 to_notice_signals callback.
6208 (_initialize_procfs): Report all signals initially.
6209
6210 * procfs.c (procfs_notice_signals): Remove.
6211 (procfs_pass_signals): New function.
6212 (procfs_target): Install to_pass_signals callback instead of
6213 to_notice_signals callback.
6214 (register_gdb_signals): Remove.
6215 (procfs_debug_inferior): Report all signals initially.
6216 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6217
6218 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6219 parameters; use them instead of calling signal_..._state routines.
6220 (remote_notice_signals): Remove.
6221 (remote_start_remote): Report all signals initially.
6222 (remote_resume): Do not call remote_pass_signals.
6223 (_initialize_remote): Install to_pass_signals callback instead of
6224 to_notice_signals callback.
6225
46c6471b
PA
62262011-04-27 Pedro Alves <pedro@codesourcery.com>
6227
6228 * breakpoint.c (user_settable_breakpoint): Delete.
6229 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6230 (delete_command): Check user_breakpoint_p instead of looking at
6231 the breakpoint's type.
6232 (disable_command): Ditto.
6233 (enable_command): Ditto.
6234 (delete_trace_command): Use user_breakpoint_p instead of looking
6235 at the breakpoint number directly. When checking if there are
6236 user visible tracepoints, in order to know whether to ask the user
6237 for confirmation, check whether the breakpoint is actually a
6238 tracepoint.
6239
f6d90398
VP
62402011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6241
6242 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6243 compilation.
6244
8d3788bd
VP
62452011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6246
6247 MI breakpoint notifications.
6248
f33edef8
PP
6249 * annotate.c (breakpoint_changed): Adjust parameter type.
6250 * breakpoint.c (set_breakpoint_condition): Adjust to change
6251 in breakpoint_modified type.
6252 (breakpoint_set_commands): Likewise.
6253 (do_map_commands_command): Likewise.
6254 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6255 changed after bumping hit count.
6256 (bpstat_stop_status): Likewise.
6257 (print_one_breakpoint_location): Don't wrap in tuple here.
6258 (print_one_breakpoint): Always print individual locations.
6259 For locations, use unnamed tuple.
6260 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6261 has changed.
6262 (create_catchpoint, create_syscall_event_catchpoint): Call
6263 breakpoint_created obsever.
6264 (mention): Don't call breakpoint_created observer.
6265 (create_breakpoint_sal): Call breakpoint_created observer.
6266 (create_breakpoint, watch_command_1): Likewise.
6267 (create_ada_exception_breakpoint): Likewise.
6268 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6269 (locations_are_equal): New.
6270 (update_breakpoint_locations): If locations were changed, notify.
6271 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6272 Call breakpoint_modified observer.
6273
6274 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6275 (mi_cmd_break_insert): Don't set observers for modify and delete.
6276 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6277 (mi_breakpoint_created, mi_breakpoint_deleted)
6278 (mi_breakpoint_modified): New.
6279 (mi_interpreter_init): Hook the above.
6280 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6281 while -break-* commands are executing.
6282 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6283 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6284 (mi_redirect): New.
6285 (mi_ui_out_impl): Hook in mi_redirect.
6286 (mi_field_skip): True to the name, skip the field, don't output
6287 a field with an empty value.
6288
6289 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6290 (gdbpy_breakpoint_deleted): Adjust.
6291 * tui/tui-hooks.c (tui_event_create_breakpoint)
6292 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6293
a8f42b45
UW
62942011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6295
6296 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6297 (procfs_remove_hw_watchpoint): Likewise.
6298
57e12211
TT
62992011-04-26 Michael Walle <michael@walle.cc>
6300
6301 * remote.c (remote_start_remote): Ack packet after sending the
6302 interrupt sequence.
6303
af96c192
YQ
63042011-04-26 Yao Qi <yao@codesourcery.com>
6305
f33edef8
PP
6306 * linux-nat.c: Move common macros to ...
6307 Include linux-ptrace.h.
6308 * common/linux-ptrace.h: ... here. New.
af96c192 6309
3e03848b
JK
63102011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6311
6312 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6313 !objfile_has_partial_symbols. New comment.
6314 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6315 SYM_READ_PSYMBOLS is not present. Extend the comment.
6316 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6317
1ae0d051
JK
63182011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6319
6320 * defs.h (ENUM_BITFIELD): Remove.
6321
03f2bd59
JK
63222011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6323 Eli Zaretskii <eliz@gnu.org>
6324
6325 * NEWS: Document the new gdbserver --once option.
6326
4161fbb0
JZ
63272011-04-21 Jie Zhang <jzhang918@gmail.com>
6328
6329 * MAINTAINERS: Update my email address.
6330
bcb28afc
PM
63312011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6332
6333 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6334 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6335 function call if __STDC_ISO_10646__ macro is defined.
6336 (intermediate_encoding): New prototype.
6337 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6338 to generate compile time error for unsupported gdb_wchar_t size.
6339 (ENDIAN_SUFFIX): New macro.
6340 (intermediate_encoding): New function.
6341
7b08b9eb
JK
63422011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6343
6344 * ada-lang.c (struct add_partial_datum): Update the comment for
6345 expand_partial_symbol_name.
6346 (ada_add_partial_symbol_completions): Rename to ...
6347 (ada_expand_partial_symbol_name): ... here, change return type, update
6348 function comment, call symbol_completion_match instead of
6349 symbol_completion_add.
6350 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6351 and ada_expand_partial_symbol_name.
6352 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6353 FILE_MATCHER.
6354 (dw2_map_symbol_names): Remove.
6355 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6356 * psymtab.c (map_symbol_names_psymtab): Remove.
6357 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6358 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6359 order.
6360 (psym_functions): Unlist map_symbol_names_psymtab.
6361 (map_partial_symbol_names): Rename to ...
6362 (expand_partial_symbol_names): ... here, change the FUN type, call
6363 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6364 * psymtab.h (map_partial_symbol_names): Rename to ...
6365 (expand_partial_symbol_names): ... here, change the FUN type.
6366 * symfile.h (struct quick_symbol_functions): Update the description of
6367 expand_symtabs_matching. Remove map_symbol_names.
6368 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6369 (struct add_name_data): Update the comment for
6370 expand_partial_symbol_name.
6371 (add_partial_symbol_name): Rename to ...
6372 (expand_partial_symbol_name): ... here. Replace
6373 completion_list_add_name call by strncmp.
6374 (default_make_symbol_completion_list_break_on): Use now
6375 expand_partial_symbol_names and expand_partial_symbol_name.
6376 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6377
90476074
TT
63782011-04-20 Tom Tromey <tromey@redhat.com>
6379
6380 * dwarf2read.c (save_gdb_index_command): Replace format
6381 documentation with a pointer to the manual.
6382
c21236dc
PA
63832011-04-20 Pedro Alves <pedro@codesourcery.com>
6384
6385 * regcache.c: Include remote.h.
6386 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6387 (regcache_dump): Handle regcache_dump_remote.
6388 (maintenance_print_remote_registers): New function.
6389 (_initialize_regcache): Install "maint print remote-registers"
6390 command.
6391 * remote.c (map_regcache_remote_table): New function, factored out
6392 from ...
6393 (init_remote_state): ... here.
6394 (remote_register_number_and_offset): New.
6395 * remote.h (remote_register_number_and_offset): Declare.
6396
b78974c3
PA
63972011-04-20 Pedro Alves <pedro@codesourcery.com>
6398
6399 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6400 null_ptid, assume and allow a NULL address space, instead of
6401 asking the target for the ptid's address space.
6402 * infrun.c (ptid_is_pid): Remove assertion.
6403
7a9dd1b2
TT
64042011-04-19 Tom Tromey <tromey@redhat.com>
6405
6406 * windows-tdep.c (windows_xfer_shared_library):
6407 * windows-nat.c (get_module_name, windows_make_so):
6408 * v850-tdep.c (v850_handle_pushm):
6409 * utils.c (null_cleanup, gdb_realpath):
6410 * ui-out.c (get_next_header):
6411 * tracepoint.c (clear_traceframe_info):
6412 * symtab.c (lookup_symtab):
6413 * serial.h (struct serial_ops):
6414 * mipsread.c (read_alphacoff_dynamic_symtab):
6415 * infcmd.c (print_return_value):
6416 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6417 * f-exp.y (parse_number):
6418 * exceptions.c (catch_exceptions):
6419 * dummy-frame.c (dummy_frame_this_id):
6420 * defs.h (struct cleanup):
6421 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6422 * arm-tdep.c (arm_push_dummy_call):
6423 * amd64-tdep.h (amd64_collect_xsave):
6424 * amd64-tdep.c (amd64_collect_xsave):
6425 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6426 * README (typing): Remove duplicate words.
6427 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6428 * infrun.c (siginfo_value_read): Fix typo.
6429 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6430 * top.c (source_line_number): Add comma.
6431
9941e0c5
MK
64322011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6433
6434 * thread.c (any_live_thread_of_process): Prioritize threads
6435 that are not executing.
6436 * gdbthread.h (any_live_thread_of_process): Update comment
6437 as per above change.
6438
ed4b0e6a
AS
64392011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6440
6441 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6442 (scan_xcoff_symtab): Likewise.
6443
9b13a2db
PM
64442011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6445
6446 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6447 inside if clause.
6448
1c6e1b0d
PM
64492011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6450 Pedro Alves <pedro@codesourcery.com>
6451
6452 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6453 variables to simplify code and avoid == operator at end of
6454 line as this is against GNU coding standards.
6455
74de0234
PM
64562011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6457
6458 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6459 lm_name to name_lm to avoid conflict with lm_name function.
6460
b23518f0
PM
64612011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6462
6463 ARI fixes: Use only lowercase function name for static functions.
6464 * nto-tdep.c (LM_ADDR): Rename to...
6465 (lm_addr): New function name.
6466 (nto_relocate_section_addresses): Adapt to change above.
6467 * solib-sunos.c (LM_ADDR): Rename to...
6468 (lm_addr): New function name.
6469 (LM_NEXT): Rename to...
6470 (lm_next): New function name.
6471 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6472 function name changes above.
6473 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6474 (lm_addr_from_link_map): New function name.
6475 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6476 (has_lm_dynamic_from_link_map): New function name.
6477 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6478 (lm_dynamic_from_link_map): New function name.
6479 (LM_ADDR_CHECK): Rename to...
6480 (lm_addr_check): New function name.
6481 (LM_NEXT): Rename to...
6482 (lm_next): New function name.
6483 (LM_PREV): Rename to...
6484 (lm_prev): New function name.
6485 (LM_NAME): Rename to...
6486 (lm_name): New function name.
6487 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6488 (ignore_first_link_map_entry): New function name.
6489 (svr4_keep_data_in_core): Adapt to function name changes above.
6490 (svr4_current_sos): Likewise.
6491 (enable_break): Likewise.
6492 (svr4_relocate_section_addresses): Likewise.
6493
1448a0a2
PM
64942011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6495
6496 ARI cleanup.
6497 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6498 sprintf. Simplify code and avoid loosing memory.
6499 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6500 (call0_frame_cache): Remove && operator from end of line.
6501
02835898
JK
65022011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6503
6504 Fix libraries displacement if they change whether they were prelinked.
6505 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6506 does not match. Comment why.
6507
9a845ea2
JK
65082011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6509
6510 * corelow.c: Include wrapper.h.
6511 (core_open): Call now gdb_target_find_new_threads.
6512 * wrapper.c: Include target.h.
6513 (gdb_target_find_new_threads): New.
6514 * wrapper.h (gdb_target_find_new_threads): New declaration.
6515
254f582e
JK
65162011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6517
6518 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6519 even if !TARGET_HAS_EXECUTION.
6520
63524580
JK
65212011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6522
6523 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6524 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6525 bfd_get_synthetic_symtab.
6526 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6527 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6528 parameter parent, remove the call to add_separate_debug_objfile.
6529 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6530 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6531 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6532 parent, new comment for it, call add_separate_debug_objfile for it.
6533 (symbol_file_add_separate): Pass objfile as the parameter parent,
6534 remove the call to add_separate_debug_objfile.
6535 (symbol_file_add_from_bfd): New parameter parent, pass it.
6536 (symbol_file_add): Pass NULL to the new parameter parent.
6537 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6538
90359a16
JK
65392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6542 BSF_SYNTHETIC.
6543
626e7282
JK
65442011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6545
6546 Fix Python access to inlined frames.
6547 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6548 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6549
cf31e6f9
TT
65502011-04-15 Tom Tromey <tromey@redhat.com>
6551
6552 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6553
c8d895f1
GB
65542011-04-15 Gary Benson <gbenson@redhat.com>
6555
6556 * MAINTAINERS: Add myself to write-after-approval section.
6557
56a9aa1d
MF
65582011-04-14 Mike Frysinger <vapier@gentoo.org>
6559
6560 * remote-sim.c (sim_command_completer): New function.
6561 (_initialize_remote_sim): Set completer to sim_command_completer.
6562
ba770c9c
TJB
65632011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6564
6565 * breakpoint.c (print_exception_catchpoint): Rename to ...
6566 (print_it_exception_catchpoint): ... this.
6567 (gnu_v3_exception_catchpoint_ops): Update with new name
6568 for print_it_exception_catchpoint.
6569
51bf2553
EBM
65702011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6571
6572 * MAINTAINERS: Add myself for write after approval privileges.
6573
d242658c
MP
65742011-04-13 Marek Polacek <mpolacek@redhat.com>
6575
6576 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6577
4a4106ca
TJB
65782011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6579
6580 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6581
26063d49
TJB
65822011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6583
6584 * breakpoint.c (save_breakpoints): Verify whether
6585 breakpoint_ops.print_recreate is defined before calling it.
6586
7782b183
GB
65872011-04-11 Gary Benson <gbenson@redhat.com>
6588
6589 Fix failure with --enable-maintainer-mode.
6590 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6591
e8930875
JK
65922011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6593
6594 Code cleanup.
6595 * symtab.c (search_symbols): Reorder the KIND description in the
6596 function comment. Remove the unused 4th element of types, types2,
6597 types3 and types4. New gdb_assert on KIND.
6598 (symtab_symbol_info): Remove the unused 4th element of classnames.
6599 New gdb_assert on KIND.
6600 * symtab.h (enum search_domain): New warning in the enum comment.
6601 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6602 TYPES_DOMAIN.
6603
b4f2f049
JK
66042011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6605
6606 Fix crash of gdb save-index on a STABS file.
6607 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6608 PSYMTABS_ADDRMAP.
6609
60d5a603
JK
66102011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6611
6612 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6613 * dwarf2read.c: Include ctype.h.
6614 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6615 functions.
6616 (dwarf2_add_field): Fix new_field->accessibility by calling
6617 dwarf2_default_access_attribute. Restructure setting accessibility
6618 vs. virtuality.
6619 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6620 is_private and is_protected by calling
6621 dwarf2_default_access_attribute.
6622
e0f68161
KB
66232011-04-08 Kevin Buettner <kevinb@redhat.com>
6624
6625 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6626 to the initialization.
6627
2e1aae43
SE
66282011-04-08 Steve Ellcey <sje@cup.hp.com>
6629
6630 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6631 initalization.
6632
c6ca3dab
PM
66332011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6634
6635 Remove support for old Cygwin 1.5 versions.
6636 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6637 function on old Cygwin version.
6638 * windows-nat.c: Remove cygwin version check and always define
6639 __USEWIDE for Cygwin compilation.
6640
bd18283a
YQ
66412011-04-07 Yao Qi <yao@codesourcery.com>
6642
6643 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6644 and TO.
6645 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6646 (arm_copy_svc): Remove parameters INSN and TO.
6647 (decode_svc_copro): Update caller.
6648 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6649 from function pointer `copy_svc_os'.
6650
8c8dba6d
YQ
66512011-04-07 Yao Qi <yao@codesourcery.com>
6652
6653 * arm-tdep.c (cleanup_branch): Set a correct return address in
6654 LR for ARM and Thumb.
6655
59d7bcaf
JK
66562011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6657
6658 Code cleanup.
6659 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6660 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6661 in the function comment, a new note on values compatibility.
6662 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6663 * symtab.h (SYMBOL_HASH_NEXT): New.
6664
e7db58ea
TJB
66652011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6666
6667 * ppc-linux-nat.c (check_condition): Add len output parameter.
6668 Set it based on the memory region referenced in the condition
6669 expression. Update all callers.
6670
9f743ef6
JK
66712011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6672
6673 Fix crash regression on systems featuring .gdb_index.
6674 * objfiles.c (free_objfile): Move the
6675 forget_cached_source_info_for_objfile call earlier. Comment it.
6676 Extend the comment for objfile_free_data.
6677
9182c5bc
JK
66782011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6679
6680 Fix regression of displaying the debug format.
6681 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6682 subfile.
6683
04bd08de
TT
66842011-04-04 Tom Tromey <tromey@redhat.com>
6685
6686 * cli/cli-interp.c (struct captured_execute_command_args):
6687 Remove.
6688 (do_captured_execute_command): Remove.
6689 (safe_execute_command): Use TRY_CATCH.
6690 * cli/cli-script.c (struct wrapped_read_command_file_args):
6691 Remove.
6692 (wrapped_read_command_file): Remove.
6693 (script_from_file): Use TRY_CATCH.
6694 * exceptions.c (catch_exception): Remove.
6695 * exceptions.h (catch_exception): Remove.
6696 (deprecated_throw_reason): Update comment.
6697 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6698 argument to 'context'.
6699 (mi_execute_command): Use TRY_CATCH.
6700 * remote.c (struct start_remote_args): Remove.
6701 (remote_start_remote): Update; change arguments.
6702 (remote_open_1): Use TRY_CATCH.
6703
58438ac1
TT
67042011-04-04 Tom Tromey <tromey@redhat.com>
6705
6706 * tracepoint.c (scope_info): Update.
6707 * symtab.c (decode_line_spec): Update.
6708 * python/python.c (gdbpy_decode_line): Update.
6709 * linespec.h (decode_line_1): Update.
6710 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6711 (decode_compound, find_method, symtab_from_filename)
6712 (decode_variable): Likewise.
6713 * cli/cli-cmds.c (edit_command): Update.
6714 (list_command): Update.
6715 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6716 argument.
6717 (create_breakpoint): Update.
6718 (until_break_command): Update.
6719 (addr_string_to_sals): Update.
6720 (decode_line_spec_1): Update.
6721
b78a6381
TT
67222011-04-04 Tom Tromey <tromey@redhat.com>
6723
6724 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6725 (do_captured_parse_breakpoint): Remove.
6726 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6727 Use TRY_CATCH directly.
6728
00174a86
TT
67292011-04-04 Tom Tromey <tromey@redhat.com>
6730
6731 * symtab.h (free_symtab): Remove.
6732 (forget_cached_source_info_for_objfile): Declare.
6733 * symmisc.c (free_symtab): Remove.
6734 * source.c (forget_cached_source_info_for_objfile): New function.
6735 (forget_cached_source_info): Use it.
6736 * objfiles.c (free_objfile): Simplify check before calling
6737 clear_current_source_symtab_and_line. Call
6738 forget_cached_source_info_for_objfile.
6739
30cc903e
TT
67402011-04-04 Tom Tromey <tromey@redhat.com>
6741
6742 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6743 (new_symtab): Don't set `free_code' on symtab.
6744 (new_linetable): Properly handle size==0.
6745 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6746 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6747 free_func.
6748 * jv-lang.c (struct jv_per_objfile_data): New.
6749 (jv_per_objfile_free): Free the data.
6750 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6751 (get_java_class_symtab): Set the `dict' field on the
6752 jv_per_objfile_data.
6753 (free_class_block): Remove.
6754 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6755 the symtab.
6756
0c2e6019
TT
67572011-04-04 Tom Tromey <tromey@redhat.com>
6758
6759 * symfile.c (reread_symbols): Update.
6760 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6761 field.
6762 * objfiles.c (allocate_objfile): Update.
6763 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6764 declare.
6765 * cp-namespace.c (lookup_symbol_file): Don't call
6766 lookup_possible_namespace_symbol.
6767 (initialize_namespace_symtab, get_possible_namespace_block)
6768 (free_namespace_block, cp_check_possible_namespace_symbols)
6769 (check_possible_namespace_symbols_loop)
6770 (check_one_possible_namespace_symbol)
6771 (lookup_possible_namespace_symbol): Remove.
6772 (maintenance_cplus_namespace): Replace with notice.
6773 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6774
554d387d
TT
67752011-04-04 Tom Tromey <tromey@redhat.com>
6776
6777 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6778 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6779 * symmisc.c (free_symtab): Don't free debugformat.
6780 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6781 (record_debugformat, record_producer): Document.
6782 * buildsym.c (end_symtab): Don't save debugformat and producer
6783 names on obstack.
6784 (end_symtab): Don't free debugformat and producer fields.
6785 (record_debugformat): Don't call xstrdup.
6786 (record_producer): Likewise.
6787
d4d4db8a
TT
67882011-04-04 Tom Tromey <tromey@redhat.com>
6789
6790 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6791 (source_line_charpos, source_charpos_line): Remove.
6792
8903c50d
TT
67932011-04-04 Tom Tromey <tromey@redhat.com>
6794
6795 * symtab.h (domain_enum): Split in two...
6796 (enum search_domain): New.
6797 (search_symbols): Update.
6798 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6799 redundant declarations.
6800 (search_symbols): Change 'kind' argument to search_domain.
6801 Update.
6802 (print_symbol_info): Likewise.
6803 (symtab_symbol_info): Likewise.
6804 * symfile.h (struct quick_symbol_functions)
6805 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6806 <expand_symtabs_matching>: Likewise.
6807 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6808 (expand_symtabs_matching_via_partial): Update.
6809 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6810 (dw2_expand_symtabs_for_function): Update.
6811 * block.h: Moved anonymous enum...
6812 * defs.h (enum block_enum): ... here. Now named.
6813
d9351f5f 68142011-04-03 Joel Brobecker <brobecker@adacore.com>
6815
6816 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6817 * version.in: Bump version to 7.3.50.20110403-cvs.
6818
d6e00af6
JB
68192011-04-03 Joel Brobecker <brobecker@adacore.com>
6820
6821 * NEWS: Create a new section for the next release branch.
6822 Rename the section of the current branch, now that it has
6823 been cut.
6824
2b9e5ea6
UW
68252011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6826
6827 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6828 for "fpscr" in target description.
6829
0cf03b49
JK
68302011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6831
6832 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6833 initialize it. Delay HASH initialization. Strip the part after open
6834 parenthesis for languages with qualifiers. Call do_cleanups.
6835
5d901a73
TT
68362011-04-01 Tom Tromey <tromey@redhat.com>
6837
6838 * utils.c (report_command_stats): Don't print `-' for negative
6839 number.
6840
b0dd7688
JB
68412011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6842
6843 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6844 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6845 typedefs.
6846
956a9fb9
JB
68472011-04-01 Joel Brobecker <brobecker@adacore.com>
6848
6849 * breakpoint.h (bpdisp_text): Add declaration.
6850 * breakpoint.c (bpdisp_text): Make non-static.
6851 * ada-lang.c: #include "mi/mi-common.h".
6852 (print_it_exception): Rewrite to improve GDB/MI output.
6853
3352110b
PA
68542011-04-01 Pedro Alves <pedro@codesourcery.com>
6855
6856 * arm-tdep.h (struct address_space): Add forward declaration.
6857
18819fa6
UW
68582011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6859
6860 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6861 * arm-tdep.c (arm_override_mode): New global.
6862 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6863 execution mode heuristics.
6864 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6865 second single-step breakpoint if needed, using
6866 arm_insert_single_step_breakpoint.
6867 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6868 ARM execution mode, do not call thumb_get_next_pc_raw.
6869 (arm_get_next_pc): Encode execution mode in return value. Call
6870 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6871 (arm_insert_single_step_breakpoint): New function.
6872 (arm_software_single_step): Call it.
6873 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6874 argument to return execution mode of sigreturn target.
6875 (arm_linux_syscall_next_pc): Use it.
6876 (arm_linux_copy_svc): Update call.
6877 (arm_linux_software_single_step): Call
6878 arm_insert_single_step_breakpoint.
6879
a6e293d1
JK
68802011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6881
6882 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6883 the comment.
6884
a4c8e806
TT
68852011-03-31 Tom Tromey <tromey@redhat.com>
6886
6887 * varobj.c (update_dynamic_varobj_children): Properly handle
6888 errors from iterator.
6889
df5c6c50
JK
68902011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6891
6892 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6893 struct linkage name twice.
6894
1dae3efc
TT
68952011-03-31 Tom Tromey <tromey@redhat.com>
6896
6897 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6898 missing ">" to message.
6899
f4f7ab05
TT
69002011-03-31 Tom Tromey <tromey@redhat.com>
6901
6902 * varobj.c (instantiate_pretty_printer): Remove duplicate
6903 'return'.
6904
fcf250e2
UW
69052011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6906
6907 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6908 if neither saved value nor register available (e.g. signal frame).
6909
ee6436e3
TJB
69102011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6911
6912 * macroexp.c (expand): Avoid uninitialized variable
6913 compiler warning.
6914
423f41a5
TJB
69152011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6916
6917 * breakpoint.c (break_range_command): Fix typo in comment.
6918
f1310107
TJB
69192011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6920 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6921
6922 Implement support for PowerPC BookE ranged breakpoints.
6923 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6924 * breakpoint.h (struct bp_target_info) <length>: New member
6925 variable.
6926 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6927 instead of struct breakpoint as argument, and also add ASPACE
6928 and BP_ADDR arguments. Update all callers.
6929 (struct breakpoint_ops) <print_one_detail>: New method.
6930 (struct breakpoint) <addr_string_range_end>: New member variable.
6931 * breakpoint.c (breakpoint_location_address_match): Add function
6932 prototype.
6933 (insert_bp_location): Set bl->target_info.length.
6934 (breakpoint_here_p): Call breakpoint_location_address_match.
6935 (moribund_breakpoint_here_p): Likewise.
6936 (regular_breakpoint_inserted_here_p): Likewise.
6937 (breakpoint_thread_match): Likewise.
6938 (bpstat_stop_status): Likewise.
6939 (bpstat_check_location): Move call to
6940 breakpoint_ops.breakpoint_hit to the top.
6941 (print_one_breakpoint_location): Call
6942 breakpoint_ops.print_one_detail if available.
6943 (breakpoint_address_match_range): New function.
6944 (breakpoint_location_address_match): Likewise.
6945 (breakpoint_locations_match): Compare the length field of the
6946 locations too.
6947 (hw_breakpoint_used_count): Count resources used by all locations
6948 in a breakpoint, and use breakpoint_ops.resources_needed if
6949 available.
6950 (breakpoint_hit_ranged_breakpoint): New function.
6951 (resources_needed_ranged_breakpoint): Likewise.
6952 (print_it_ranged_breakpoint): Likewise.
6953 (print_one_ranged_breakpoint): Likewise.
6954 (print_one_detail_ranged_breakpoint): Likewise.
6955 (print_mention_ranged_breakpoint): Likewise.
6956 (print_recreate_ranged_breakpoint): Likewise.
6957 (ranged_breakpoint_ops): New structure.
6958 (find_breakpoint_range_end): New function.
6959 (break_range_command): Likewise.
6960 (delete_breakpoint): Free addr_string_range_end.
6961 (update_breakpoint_locations): Add SALS_END argument. Update
6962 all callers. Calculate breakpoint length if a non-zero SALS_END
6963 is given. Call breakpoint_locations_match instead of
6964 breakpoint_address_match.
6965 (reset_breakpoint): Find SaL of the end of the range if B is a
6966 ranged breakpoint.
6967 (_initialize_breakpoint): Register break-range command.
6968 * defs.h (print_core_address): Add function prototype.
6969 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6970 function.
6971 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6972 (ppc_linux_remove_hw_breakpoint): Likewise.
6973 (_initialize_ppc_linux_nat): Initialize
6974 to_ranged_break_num_registers.
6975 * target.c (update_current_target): Add comment about
6976 to_ranged_break_num_registers.
6977 (target_ranged_break_num_registers): New function.
6978 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6979 New method.
6980 (target_ranged_break_num_registers): Add function prototype.
6981 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6982 * utils.c (print_core_address): ... here.
6983
02d20e4a
UW
69842011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6985
6986 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6987 variable compiler warning.
6988
ef23e705
TJB
69892011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6990
6991 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6992 code from here ...
6993 (re_set_breakpoint): ... to here ...
6994 (addr_string_to_sals): ... and here.
6995
311e6ab3
PM
69962011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6997
6998 * Makefile.in (SFILES): Add missing C sources.
6999 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7000 Add missing headers.
7001
acd1d99c
MF
70022011-03-29 Mike Frysinger <vapier@gentoo.org>
7003
7004 * .gitignore: New file.
7005
66ee2731
MF
70062011-03-29 Mike Frysinger <vapier@gentoo.org>
7007
7008 * NEWS: Mention new cfi device simulation.
7009
53832f31
TT
70102011-03-29 Tom Tromey <tromey@redhat.com>
7011
7012 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7013 otherwise anonymous types.
7014 (dwarf2_name): Likewise.
7015 * valops.c (value_struct_elt_for_reference): Refine artificial
7016 type logic. Call error if j==-1.
7017
09b58708
JK
70182011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7019
7020 Fix false GCC warning.
7021 * infcall.c (find_function_addr): Initialize funaddr.
7022
6023c606
PM
70232011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7024
7025 Fix mingw compilation with --enable-targets=all.
7026 * remote-mips.c (gdb_usleep.h): Include header.
7027 (mips_enter_debug): Use gdb_usleep instead of sleep.
7028
0e30163f
JK
70292011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7030
7031 Support resolution of STT_GNU_IFUNC via breakpoints.
7032 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7033 bp_gnu_ifunc_resolver_return.
7034 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7035 the loop. Support bp_gnu_ifunc_resolver and
7036 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7037 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7038 breakpoints.
7039 (bptype_string, print_one_breakpoint_location): Support
7040 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7041 (user_settable_breakpoint): Return true also for
7042 bp_gnu_ifunc_resolver.
7043 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7044 bp_gnu_ifunc_resolver_return.
7045 (set_breakpoint_location_function): New parameter explicit_loc,
7046 describe it. Call find_pc_partial_function_gnu_ifunc with new
7047 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7048 EXPLICIT_LOC is not set.
7049 (set_raw_breakpoint): Set EXPLICIT_LOC for
7050 set_breakpoint_location_function.
7051 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7052 set_breakpoint_location_function.
7053 (mention): Support bp_gnu_ifunc_resolver and
7054 bp_gnu_ifunc_resolver_return.
7055 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7056 set_breakpoint_location_function.
7057 (update_breakpoint_locations): Remove static.
7058 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7059 bp_gnu_ifunc_resolver_return.
7060 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7061 bp_gnu_ifunc_resolver_return.
7062 (update_breakpoint_locations): New declaration.
7063 * elfread.c: Include gdbthread.h and regcache.h.
7064 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7065 functions.
7066 (elf_gnu_ifunc_fns): Install them.
7067 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7068 (stub_gnu_ifunc_resolver_return_stop): New functions.
7069 (stub_gnu_ifunc_fns): Install them.
7070 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7071 and gnu_ifunc_resolver_return_stop.
7072 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7073
07be84bf
JK
70742011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7075
7076 STT_GNU_IFUNC reader implementation.
7077 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7078 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7079 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7080 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7081 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7082 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7083 (elf_gnu_ifunc_resolve_addr): New.
7084 (elf_symfile_read): Call elf_rel_plt_read.
7085 (elf_gnu_ifunc_fns): New.
7086 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7087 Install elf_gnu_ifunc_fns.
7088 * infcall.c (find_function_return_type): New function.
7089 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7090 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7091 (stub_gnu_ifunc_resolve_name): New functions.
7092 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7093 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7094 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7095
300f8e10
JK
70962011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7097
7098 Code cleanup for later STT_GNU_IFUNC support.
7099 * infcall.c (find_function_addr): Remove variable code, use explicit
7100 dereferences for it. Move VALUE_TYPE initialization later.
7101
11c81455
JK
71022011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7103
7104 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7105 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7106 (clear_pc_function_cache): Clear it.
7107 (find_pc_partial_function): Rename to ...
7108 (find_pc_partial_function_gnu_ifunc): ... this function. New
7109 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7110 (find_pc_partial_function): New wrapper for this function.
7111 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7112
0875794a
JK
71132011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7114
7115 GDB internal type support for STT_GNU_IFUNC.
7116 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7117 (elf_symtab_read): Set mst_text_gnu_ifunc for
7118 BSF_GNU_INDIRECT_FUNCTION.
7119 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7120 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7121 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7122 nodebug_got_plt_symbol.
7123 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7124 (TYPE_GNU_IFUNC): New.
7125 (struct main_type): New field flag_gnu_ifunc.
7126 (struct builtin_type): New field builtin_func_func.
7127 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7128 nodebug_got_plt_symbol.
7129 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7130 (in_gnu_ifunc_stub): New.
7131 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7132 mst_text_gnu_ifunc.
7133 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7134 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7135 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7136 in_gnu_ifunc_stub.
7137 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7138 * symtab.c (search_symbols): Likewise.
7139 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7140 and mst_slot_got_plt.
7141 (in_gnu_ifunc_stub): New declaration.
7142
d0fb5eae
JK
71432011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7144
7145 Support a ring of related breakpoints.
7146 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7147 other functions, add gdb_assert.
7148 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7149 watchpoint_del_at_next_stop.
7150 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7151 (bpstat_stop_status): Handle ring in related_breakpoint.
7152 (set_raw_breakpoint_without_location): Initialize ring in
7153 related_breakpoint.
7154 (delete_breakpoint): Handle ring in related_breakpoint, use
7155 watchpoint_del_at_next_stop.
7156 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7157
9cded63f
TT
71582011-03-28 Tom Tromey <tromey@redhat.com>
7159
7160 PR symtab/12441:
7161 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7162 with `language_minimal'.
7163
467d42c4
UW
71642011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7165
7166 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7167 instead of checking for STT_ARM_TFUNC symbol type.
7168
62853458
TT
71692011-03-25 Tom Tromey <tromey@redhat.com>
7170
7171 * linespec.c (symbol_found): Restore line-based result for
7172 non-LOC_LABEL symbols.
7173
a7417d46
KT
71742011-03-25 Kai Tietz <ktietz@redhat.com>
7175
7176 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7177 instead of strcmp for comparison.
7178 (tui_source_is_displayed): Likewise.
7179 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7180
55f1336d
TT
71812011-03-24 Mark Wielaard <mjw@redhat.com>
7182
f33edef8
PP
7183 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7184 complaint.
7185 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7186 (find_partial_die_in_comp_unit): Likewise in comment.
7187 (read_attribute_value): Likewise.
7188 (lookup_die_type): Likewise.
7189 (dwarf_form_name): Likewise.
7190 (dump_die_shallow): Likewise.
7191 (follow_die_ref_or_sig): Likewise.
55f1336d 7192
9ef07c8c
TT
71932011-03-24 Tom Tromey <tromey@redhat.com>
7194
7195 PR breakpoints/11816:
7196 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7197 (decode_compound): Update.
7198 (find_function_symbol): New function.
7199 (decode_dollar): Update.
7200 (decode_label): Add 'function_symbol' parameter. Handle
7201 function-relative labels.
7202 (decode_variable): Update.
7203 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7204 not its line. Set `special_display' and canonical name for
7205 labels.
7206
56435ebe
TT
72072011-03-24 Tom Tromey <tromey@redhat.com>
7208
7209 * linespec.h (struct linespec_result) <special_display>: New
7210 field.
7211 * breakpoint.h (struct breakpoint) <display_canonical>: New
7212 field.
7213 * breakpoint.c (print_breakpoint_location): Respect
7214 display_canonical.
7215 (create_breakpoint_sal): Add 'display_canonical' parameter.
7216 (create_breakpoints_sal): Update.
7217 (create_breakpoint): Update.
7218
7efd8fc2
TT
72192011-03-24 Tom Tromey <tromey@redhat.com>
7220
7221 * symtab.c (decode_line_spec): Update.
7222 * linespec.c (build_canonical_line_spec): Change type of
7223 'canonical'.
7224 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7225 (find_method, decode_all_digits, decode_dollar, decode_label)
7226 (symbol_found): Likewise.
7227 (init_linespec_result): New function.
7228 * breakpoint.c (struct captured_parse_breakpoint_args)
7229 <canonical_p>: New field, replaces addr_string_p.
7230 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7231 'addr_string'.
7232 (parse_breakpoint_sals): Likewise.
7233 (do_captured_parse_breakpoint): Update.
7234 (create_breakpoint): Use struct linespec_result.
7235 (until_break_command): Update.
7236 (breakpoint_re_set_one): Update.
7237 (decode_line_spec_1): Update.
7238 * linespec.h (struct linespec_result): New.
7239 (init_linespec_result): Declare.
7240
788c8b10
PA
72412011-03-23 Pedro Alves <pedro@codesourcery.com>
7242
7243 * regcache.c (regcache_raw_read): If the target didn't supply a
7244 given raw register, mark it as unavailable.
7245
0ba1096a
KT
72462011-03-23 Kai Tietz <ktietz@redhat.com>
7247
7248 * breakpoint.c (clear_command): Use filename_cmp
7249 instead of strcmp for comparison.
7250 * buildsym.c (watch_main_source_file_lossage): Likewise.
7251 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7252 checking just for slash.
7253 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7254 strrchr and filename_cmp instead of strcmp for filenames.
7255 (add_old_header_file): Use filename_cmp
7256 instead of strcmp for comparison.
7257 * exec.c (exec_set_section_address): Likewise.
7258 * macrotab.c (macro_lookup_inclusion): Likewise.
7259 (macro_lookup_inclusion): Likewise.
7260 * elfread.c (_initialize_elfread): Likewise.
7261 (elfstab_offset_sections): Likewise.
7262 (elfstab_offset_sections): Use lbasename instead of
7263 strrchr.
7264 * mdebugread.c (parse_partial_symbols): Likewise.
7265 (arse_partial_symbols): Use filename_(n)cmp instead of
7266 str(n)cmp for comparison.
7267 * minsyms.c (lookup_minimal_symbol): Likewise.
7268 * psymtab.c (read_psymtabs_with_filename): Likewise.
7269 * solib.c (solib_read_symbols): Likewise.
7270 (reload_shared_libraries_1): Likewise.
7271 * symmisc.c (maintenance_print_symbols): Likewise.
7272 * symfile.c (separate_debug_file_exists): Likewise.
7273 (reread_symbols): Likewise.
7274 (find_separate_debug_file_by_debuglink): Likewise.
7275 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7276 * source.c (add_path): Likewise.
7277 * symtab.c (filename_seen): Likewise.
7278 (file_matches): Likewise.
7279 (print_symbol_info): Likewise.
7280 (maybe_add_partial_symtab_filename): Likewise.
7281 (make_source_files_completion_list): Likewise.
7282 * xml-syscall.c (init_sysinfo): Likewise.
7283 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7284 IS_DIR_SEPARATOR for checking for trailing path separator.
7285
dd90784c
JK
72862011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7287
7288 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7289 label abort_expression.
7290 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7291 DWARF_VALUE_OPTIMIZED_OUT.
7292
3167638f
JK
72932011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7294
7295 Code cleanup.
7296 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7297 to linkage_name. Invert its value. Update the function comment.
7298 (c_type_print_varspec_suffix): Invert it at the caller.
7299 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7300
ce406537
PA
73012011-03-22 Pedro Alves <pedro@codesourcery.com>
7302
7303 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7304 errors when reading the `stop_pc'.
7305 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7306 get_frame_pc.
7307
da5d4055
PM
73082011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7309
7310 * NEWS: Document gdb.Write stream keyword.
7311
29e0eb9c
JK
73122011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7313
7314 Revert:
7315 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7316 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7317 (dwarf2_add_field): Fix new_field->accessibility for
7318 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7319
05775840
PM
73202011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7321
f33edef8 7322 PR python/12183
05775840
PM
7323
7324 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7325 other error classes. Do not print stack trace.
7326
a0cb7835
JK
73272011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7328
7329 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7330 (dwarf2_add_field): Fix new_field->accessibility for
7331 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7332
d19f7eee
UW
73332011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7334
7335 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7336 encountering a load via a non-SP register.
7337
4a2fbb50
UW
73382011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7339
7340 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7341 field in returned unwinder.
7342
3489610d
JB
73432012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7344
7345 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7346
8c1a34e7
JB
73472012-03-21 Joel Brobecker <brobecker@adacore.com>
7348
7349 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7350 of xmalloc.
7351
8fbca658
PA
73522012-03-18 Pedro Alves <pedro@codesourcery.com>
7353
7354 * frame.c (frame_unwind_register): Throw an error if unwinding the
7355 register failed.
7356 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7357 an unwind stop reason.
7358 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7359 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7360 UNWIND_UNAVAILABLE>: New.
7361 * inline-frame.c (inline_frame_unwind): Install
7362 default_frame_unwind_stop_reason.
7363 * frame-unwind.c: Include "exceptions.h".
7364 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7365 (default_frame_unwind_stop_reason): New.
7366 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7367 (default_frame_unwind_stop_reason): Declare.
7368 (struct frame_unwind) <stop_reason>: New function pointer.
7369
7370 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7371 * dwarf2-frame.c: Include exceptions.h.
7372 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7373 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7374 computing the CFA. If such an error was thrown, set
7375 unavailable_retaddr.
7376 (dwarf2_frame_unwind_stop_reason): New.
7377 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7378 unavailable.
7379 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7380 (dwarf2_signal_frame_unwind): Ditto.
7381
7382 * amd64-tdep.c: Include "exceptions.h".
7383 (struct amd64_frame_cache): New field "base_p".
7384 (amd64_init_frame_cache): Clear it.
7385 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7386 Avoid reading registers with functions that throw if the register
7387 is not necessary to compute the frame base.
7388 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7389 swallowing NOT_AVAILABLE_ERROR.
7390 (amd64_frame_unwind_stop_reason): New.
7391 (amd64_frame_this_id): Don't build a frame id if the frame base
7392 was unavailable.
7393 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7394 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7395 base_p if the frame base was computable.
7396 (amd64_sigtramp_frame_unwind_stop_reason): New.
7397 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7398 frame base was unavailable.
7399 (amd64_sigtramp_frame_unwind): Install
7400 amd64_sigtramp_frame_unwind_stop_reason.
7401 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7402 base_p if the frame base was computable.
7403 (amd64_epilogue_frame_unwind_stop_reason): New.
7404 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7405 frame base was unavailable.
7406 (amd64_epilogue_frame_unwind): Install
7407 amd64_epilogue_frame_unwind_stop_reason.
7408 * i386-tdep.c: Include "exceptions.h".
7409 (struct i386_frame_cache): New field "base_p".
7410 (i386_init_frame_cache): Clear it.
7411 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7412 Avoid reading registers with functions that throw if the register
7413 is not necessary to compute the frame base.
7414 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7415 swallowing NOT_AVAILABLE_ERROR.
7416 (i386_frame_unwind_stop_reason): New.
7417 (i386_frame_this_id): Don't build a frame id if the frame base was
7418 unavailable.
7419 (i386_frame_prev_register): Handle unavailable SP.
7420 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7421 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7422 base_p if the frame base was computable.
7423 (i386_epilogue_frame_unwind_stop_reason): New.
7424 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7425 base was unavailable.
7426 (i386_epilogue_frame_unwind): Install
7427 i386_epilogue_frame_unwind_stop_reason.
7428 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7429 base_p if the frame base was computable.
7430 (i386_sigtramp_frame_unwind_stop_reason): New.
7431 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7432 base was unavailable.
7433 (i386_sigtramp_frame_unwind): Install
7434 i386_sigtramp_frame_unwind_stop_reason.
7435 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7436 type's size, not the register's.
7437 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7438
7439 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7440 default_frame_unwind_stop_reason.
7441 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7442 (alpha_heuristic_frame_unwind): Ditto.
7443 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7444 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7445 * avr-tdep.c (avr_frame_unwind): Ditto.
7446 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7447 Ditto.
7448 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7449 * frv-tdep.c (frv_frame_unwind): Ditto.
7450 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7451 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7452 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7453 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7454 (hppa_stub_frame_unwind): Ditto.
7455 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7456 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7457 (ia64_libunwind_frame_unwind)
7458 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7459 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7460 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7461 * m32c-tdep.c (m32c_unwind): Ditto.
7462 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7463 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7464 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7465 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7466 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7467 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7468 * mep-tdep.c (mep_frame_unwind): Ditto.
7469 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7470 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7471 (mips_stub_frame_unwind): Ditto.
7472 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7473 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7474 * mt-tdep.c (mt_frame_unwind): Ditto.
7475 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7476 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7477 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7478 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7479 (s390_sigtramp_frame_unwind): Ditto.
7480 * score-tdep.c (score_prologue_unwind): Ditto.
7481 * sh-tdep.c (sh_frame_unwind): Ditto.
7482 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7483 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7484 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7485 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7486 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7487 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7488 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7489 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7490 (sparc64obsd_trapframe_unwind): Ditto.
7491 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7492 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7493 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7494 * v850-tdep.c (v850_frame_unwind): Ditto.
7495 * vax-tdep.c (vax_frame_unwind): Ditto.
7496 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7497 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7498 * xtensa-tdep.c (xtensa_unwind): Ditto.
7499
f23d1b92
PA
75002011-03-18 Pedro Alves <pedro@codesourcery.com>
7501
7502 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7503 there's always a frame. Use get_frame_pc_if_available instead of
7504 get_frame_pc, and if there's no PC available, don't look up a
7505 symtab.
7506
1d4f5741
PA
75072011-03-18 Pedro Alves <pedro@codesourcery.com>
7508
7509 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7510 unavailable PC.
7511
dba09041
PA
75122011-03-18 Pedro Alves <pedro@codesourcery.com>
7513
7514 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7515 gracefully.
7516
9a26e44c
PA
75172011-03-18 Pedro Alves <pedro@codesourcery.com>
7518
7519 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7520 * frame.c (frame_unwind_caller_pc_if_available): New.
7521 * stack.c (frame_info): Handle unavailable PC.
7522
75232011-03-18 Pedro Alves <pedro@codesourcery.com>
7524
7525 * frame.c (frame_unwind_pc): Rename to ...
7526 (frame_unwind_pc_if_available): ... this. New `pc' output
7527 parameter. Change return type to int. Gracefully handle
7528 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7529 happened, or 1 otherwise.
7530 (frame_unwind_pc): Reimplement on top of
7531 frame_unwind_pc_if_available.
7532 (get_frame_func): Rename to ...
7533 (get_frame_func_if_available): New `pc' output parameter. Change
7534 return type to int. Gracefully handle the PC not being available.
7535 (get_frame_func): Reimplement on top of
7536 get_frame_func_if_available.
7537 (select_frame): Handle the PC being unavailable.
7538 (get_prev_frame): Handle the PC being unavailable.
7539 (get_frame_pc_if_available): New.
7540 (get_frame_address_in_block_if_available): New.
7541 (find_frame_sal): Handle the frame PC not being available.
7542 * frame.h (get_frame_pc_if_available): Declare.
7543 (get_frame_address_in_block_if_available): Declare.
7544 (get_frame_func_if_available): Declare.
7545 * stack.c (print_frame_info): Handle the PC being unavailable.
7546 (find_frame_funname): Ditto.
7547 (print_frame): Handle the PC being unavailable.
7548 (get_frame_language): Ditto.
7549 * blockframe.c (get_frame_block): Ditto.
7550 * macroscope.c (default_macro_scope): Ditto.
7551 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7552
75532011-03-18 Pedro Alves <pedro@codesourcery.com>
7554
7555 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7556 NOT_AVAILABLE_ERROR when evaluating the location expression.
7557
75582011-03-18 Pedro Alves <pedro@codesourcery.com>
7559
7560 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7561 returning that the register piece is unavailable/optimized out.
7562 (write_pieced_value): Handle get_frame_register_bytes returning
7563 that the register piece is unavailable/optimized out when doing a
7564 read-modify write of a bitfield.
7565 * findvar.c (value_from_register): Handle get_frame_register_bytes
7566 returning that the register piece is unavailable/optimized out.
7567 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7568 and `unavailablep'. Throw error on bad debug info. Use
7569 frame_register instead of frame_register_read, to fill in the new
7570 arguments.
7571 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7572 and `unavailablep'.
7573 * valops.c: (value_assign): Adjust, and handle
7574 get_frame_register_bytes failing.
7575 * spu-tdep.c: Include exceptions.h.
7576 (spu_software_single_step): Adjust, and handle
7577 get_frame_register_bytes failing.
7578 (spu_get_longjmp_target): Ditto.
7579 * gdbarch.sh (register_to_value): Change to return int. New
7580 parameters `optimizedp' and `unavailablep'.
7581 * gdbarch.h, gdbarch.c: Regenerate.
7582 * i386-tdep.c (i386_register_to_value): Adjust to new
7583 gdbarch_register_to_value interface.
7584 * i387-tdep.c (i387_register_to_value): Ditto.
7585 * i387-tdep.h (i387_register_to_value): Ditto.
7586 * alpha-tdep.c (alpha_register_to_value): Ditto.
7587 * ia64-tdep.c (ia64_register_to_value): Ditto.
7588 * m68k-tdep.c (m68k_register_to_value): Ditto.
7589 * mips-tdep.c (mips_register_to_value): Ditto.
7590 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7591
0fdb4f18
PA
75922011-03-18 Pedro Alves <pedro@codesourcery.com>
7593
7594 * findvar.c (value_of_register): Mark the value as unavailable, if
7595 the register is unavailable.
7596 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7597 (frame_register): New `unavailablep' parameter.
7598 (frame_register_read): Update comment.
7599 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7600 Set it if the register is unavailable. If the register is
7601 unavailable, clear the output buffer.
7602 (frame_register): New `unavailablep' parameter. Pass it down.
7603 (frame_unwind_register): Adjust.
7604 (put_frame_register): Adjust.
7605 (frame_register_read): Adjust. Also return false if the register
7606 is not available.
7607 (frame_register_unwind_location): Adjust.
7608 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7609 is unavailable, mark the value accordingly.
7610 * stack.c (frame_info): Handle unavailable registers.
7611
e69aa73e
PA
76122011-03-18 Pedro Alves <pedro@codesourcery.com>
7613
7614 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7615 simplify, using regcache_cooked_read.
7616
05d1431c
PA
76172011-03-18 Pedro Alves <pedro@codesourcery.com>
7618
7619 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7620 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7621 (regcache_raw_read_unsigned, regcache_raw_read_part)
7622 (regcache_cooked_read, regcache_cooked_read_signed)
7623 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7624 (regcache_cooked_read_ftype): Change return to enum
7625 register_status.
7626 * regcache.c: Include exceptions.h
7627 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7628 (do_cooked_read): Change return to enum register_status. Always
7629 forward to regcache_cooked_read.
7630 (regcache_raw_read): Change return to enum register_status. If
7631 the register is not REG_VALID, memset the buffer. Return the
7632 register's status.
7633 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7634 return the register's status.
7635 (regcache_raw_read_unsigned): Ditto.
7636 (regcache_cooked_read): Change return to enum register_status.
7637 Assert that with read-only regcaches, the register's status must
7638 be known. If the regcache is read-only, and the register is not
7639 REG_VALID, memset the buffer. Return the register's status.
7640 (regcache_cooked_read_signed): Change return to enum
7641 register_status. Handle non-REG_VALID registers and return the
7642 register's status.
7643 (regcache_cooked_read_unsigned): Change return to enum
7644 register_status. Handle non-REG_VALID registers and return the
7645 register's status.
7646 (regcache_xfer_part, regcache_raw_read_part)
7647 (regcache_cooked_read_part): Change return to enum
7648 register_status. Return the register's status.
7649 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7650 unavailable.
7651 (regcache_dump): Handle unavailable cooked registers.
7652 * frame.c (do_frame_register_read): Adjust interface to match
7653 regcache_cooked_read_ftype.
7654 * gdbarch.sh (pseudo_register_read): Change return to enum
7655 register_status.
7656 * gdbarch.h, gdbarch.c: Regenerate.
7657
7658 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7659 register_status.
7660 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7661 register_status. If reading a raw register indicates the raw
7662 register is not valid, return the raw register's status,
7663 otherwise, return REG_VALID.
7664 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7665 register_status. Handle non-REG_VALID raw registers and return
7666 the register's status.
7667 * arm-tdep.c (arm_neon_quad_read)
7668 (arm_pseudo_read): Change return to enum register_status. Handle
7669 non-REG_VALID raw registers and return the register's status.
7670 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7671 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7672 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7673 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7674 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7675 register_status.
7676 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7677 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7678 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7679 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7680 (m32c_pseudo_register_read): Change return to enum
7681 register_status. Adjust.
7682 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7683 enum register_status. Return the register's status.
7684 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7685 register_status. Return the register's status.
7686 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7687 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7688 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7689 * rs6000-tdep.c (move_ev_register_func): New typedef.
7690 (e500_move_ev_register): Use it. Change return to enum
7691 register_status. Return the register's status.
7692 (do_regcache_raw_read): New function.
7693 (do_regcache_raw_write): New function.
7694 (e500_pseudo_register_read): Change return to enum
7695 register_status. Return the register's status. Use
7696 do_regcache_raw_read.
7697 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7698 (dfp_pseudo_register_read): Change return to enum register_status.
7699 Return the register's status.
7700 (vsx_pseudo_register_read): Ditto.
7701 (efpr_pseudo_register_read): Ditto.
7702 (rs6000_pseudo_register_read): Ditto.
7703 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7704 register_status. Return the register's status.
7705 * sh64-tdep.c (pseudo_register_read_portions): New function.
7706 (sh64_pseudo_register_read): Change return to enum
7707 register_status. Use pseudo_register_read_portions. Return the
7708 register's status.
7709 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7710 register_status. Return the register's status.
7711 * sh-tdep.c (pseudo_register_read_portions): New function.
7712 (sh_pseudo_register_read): Change return to enum register_status.
7713 Use pseudo_register_read_portions. Return the register's status.
7714 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7715 enum register_status. Return the register's status.
7716 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7717 * spu-tdep.c (spu_pseudo_register_read_spu)
7718 (spu_pseudo_register_read): Ditto.
7719 * xtensa-tdep.c (xtensa_register_read_masked)
7720 (xtensa_pseudo_register_read): Ditto.
7721 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7722
e10abd8f
PM
77232011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7724
7725 * python/py-value.c (valpy_getitem): Fix formatting of error function
7726 call.
7727
7ea6d463
PM
77282011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7729
7730 ARI fixes: Add missing internationalization markups throughout
7731 C source files.
7732 * darwin-nat-info.c: Ditto.
7733 * record.c: Ditto.
7734 * remote.c: Ditto.
7735 * mi/mi-main.c: Ditto.
7736
001083c6
PM
77372011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7738
7739 ARI fixes: Add missing internationalization markups throughout
7740 yacc files.
7741 * c-exp.y: Ditto.
7742 * cp-name-parser.y: Ditto.
7743 * f-exp.y: Ditto.
7744 * m2-exp.y: Ditto.
7745 * objc-exp.y: Ditto.
7746 * p-exp.y: Ditto.
7747
4f1cdeec
PM
77482011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7749
7750 ARI fixes: Messages should have no trailing new lines.
7751 * darwin-nat.c (mach_check_error): Remove trailing new line from
7752 warning function call message.
7753 * record.c (bfdcore_read): Idem for error call.
7754
28e698f1
PM
77552011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7756
7757 * common/signals.c (target_signal_from_host): Add _ markup to error
7758 function call message.
7759 (target_signal_to_host): Add _ markup and remove trailing new line
7760 from warning call message.
7761 (target_signal_from_command): Add _ markup to error function call
7762 message.
7763
99c3dc11
PM
77642011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7765
f33edef8 7766 PR python/12149
99c3dc11
PM
7767
7768 * python/python.c (gdbpy_write): Accept a stream argument and
7769 operate to the appropriate stream.
7770 (gdbpy_flush): Likewise.
7771 (_initialize_python): Add stream constants.
7772 (finish_python_initialization): Add GdbOutputErrorFile class.
7773
c20800be
KY
77742011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7775
7776 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7777
f4a1794a
KY
77782011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7779
7780 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7781 to store_signed_integer. Add debug message when relocating CALL
7782 instructions. Fix formatting of debug message.
7783 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7784
d4862372
JB
77852011-03-17 Joel Brobecker <brobecker@gnat.com>
7786
7787 * target.h (struct target_ops): Remove to_lookup_symbol field.
7788 (target_lookup_symbol): Delete macro.
7789 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7790 (update_current_target, setup_target_debug): Remove handling
7791 of to_lookup_symbol target_ops field.
7792 * ada-tasks.c (get_known_tasks_addr): Remove use of
7793 target_lookup_symbol.
7794 * coffread.c (coff_symtab_read): Likewise.
7795 * dbxread.c (read_dbx_symtab): Ditto.
7796
d645e32e
JB
77972011-03-17 Joel Brobecker <brobecker@gnat.com>
7798
7799 PR gdb/12116:
7800 * configure.ac: Add getthrds declaration check.
7801 * configure, config.in: Regenerate.
7802 * aix-thread.c (getthrds): Declare only if not already declared
7803 in procinfo.h. More declaration out of get_signaled_thread to
7804 global scope.
7805
29703da4
PM
78062011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7807
7808 * python/py-symtab.c: Populate symtab_object_methods,
7809 sal_object_methods.
7810 (stpy_is_valid): New function.
7811 (salpy_is_valid): Ditto.
7812 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7813 (sympy_is_valid): New function.
7814 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7815 (objfpy_is_valid): New function.
7816 * python/py-inferior.c: Populate inferior_object_methods.
7817 (infpy_is_valid): New function.
7818 * python/py-infthread.c: Populate thread_object_methods.
7819 (thpy_is_valid): New function.
7820 * python/py-block.c: Declare block_object_methods. Populate. Declare
7821 block_iterator_object_methods. Populate.
7822 (blpy_is_valid): New function.
7823 (blpy_iter_is_valid): Ditto.
7824
c00f8484
KS
78252011-03-16 Keith Seitz <keiths@redhat.com>
7826
7827 * linespec.c (find_methods): Canonicalize NAME before looking
7828 up the symbol.
7829 (name_end): New function.
7830 (keep_name_info): New function.
7831 (decode_line_1): Use keep_name_info.
7832 (decode_compound): Likewise.
7833 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7834 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7835
7836 PR c++/12273
7837 * linespec.c (locate_first_half): Keep overload information, too.
7838 (decode_compound): Use a string to represent break characters
7839 to escape the loop.
7840 If P points to a break character, do not increment it.
7841 For C++ and Java, keep overload information and relevant keywords.
7842 If we cannot find a symbol, search the minimal symbols.
7843
7844 PR c++/11734
7845 * linespec.c (decode_compound): Rename SAVED_ARG to
7846 THE_REAL_SAVED_ARG.
7847 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7848 single-quotes.
7849 Pass a valid block to lookup_symbol.
7850 (lookup_prefix_sym): Likewise.
7851 (find_method): Construct search name based on SYM_CLASS instead
7852 of SAVED_ARG.
7853 * psymtab.c (lookup_partial_symbol): Add language parameter.
7854 (lookup_symbol_aux_psymtabs): Likewise.
7855 Don't assume that the psymtab we found was the right one. Search
7856 for the desired symbol in the symtab to be certain.
7857 (psymtab_search_name): New function.
7858 (lookup_partial_symbol): Use psymtab_search_name.
7859 Add language parameter.
7860 (read_symtabs_for_function): Add language parameter and pass to
7861 lookup_partial_symbol.
7862 (find_symbol_file_from_partial): Likewise.
7863
c91513d8
PP
78642011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7865
7866 PR gdb/12528
7867 * dwarf2read.c (noop_record_line): New function.
7868 (dwarf_decode_lines): Ignore line tables for GCd functions.
7869
b37520b6
PM
78702011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7871
7872 Fix ARI warnings about new lines at the end of messages, which
7873 are unneeded as there is a new line added at the end of the message
7874 automatically.
7875 * darwin-nat.c (darwin_stop_inferior): Ditto.
7876 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7877 * dfp.c (decimal_to_number): Ditto.
7878 * exec.c (print_section_info): Ditto.
7879 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7880 * osdata.c (get_osdata): Ditto.
7881 * record.c (bfdcore_write): Ditto.
7882 * remote-mips.c (mips_readchar): Ditto.
7883 * remote.c (read_ptid): Ditto.
7884 * ser-mingw.c (ser_windows_raw): Ditto.
7885 * tracepoint.c (add_local_symbols): Ditto.
7886 * windows-nat.c (fake_create_process): Ditto.
7887
b08ee6a2
TT
78882011-03-16 Tom Tromey <tromey@redhat.com>
7889
7890 * tracepoint.c (stop_tracing): Don't declare.
7891 * event-top.c (after_char_processing_hook): Add `(void)'.
7892
9a6f1302
PM
78932011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7894
7895 * NEWS: Add Parameter sub-classing description.
7896
7ceb86b1
KT
78972011-03-16 Kai Tietz <ktietz@redhat.com>
7898
7899 * MAINTAINERS: Update my e-mail address.
7900
efeff6cf
AT
79012011-03-15 Andreas Tobler <andreast@fgznet.ch>
7902
7903 * MAINTAINERS: Add myself for write after approval privileges.
7904
681c238c
MS
79052011-03-15 Michael Snyder <msnyder@vmware.com>
7906
f3df5b08
MS
7907 * frame.c (find_frame_sal): Assert sym is not null.
7908
13f6513c
MS
7909 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7910
50412521
MS
7911 * objc-lang.c (selectors_info): Check strchr for null result.
7912
681c238c
MS
7913 * stabsread.c (define_symbol): Guard against bad stabstring input.
7914
6ced1581
PM
79152011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7916
7917 Remove trailing spaces and tabulations from pascal language
7918 support sources.
7919 p-exp.y: Ditto.
7920 p-lang.c: Ditto.
7921 p-lang.h: Ditto.
7922 p-valprint.c: Ditto.
7923
9373cf26
JK
79242011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7925
7926 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7927 than LOW. Comment it.
7928 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7929 HIGHPC not strictly higher than LOWPC.
7930
9a1edae6
PM
79312011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7932
7933 Fix formatting of function declarations returning a pointer in
7934 previous commit.
7935 * varobj.c (varobj_add_child): Ditto.
7936 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7937 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7938
24e9cda0
UW
79392011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7940
7941 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7942 for the "generic" vector ABI used with GCC 4.3 and later.
7943 (ppc64_sysv_abi_return_value): Likewise.
7944
79452011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7946
7947 * infcall.c (call_function_by_hand): Function return value is
7948 always a non_lval, even when using struct_return.
7949
c9174737
PA
79502011-03-15 Pedro Alves <pedro@codesourcery.com>
7951
7952 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7953 (map_display_numbers): New.
7954 (do_delete_display): New.
7955 (undisplay_command): Use map_display_numbers.
7956 (do_enable_disable_display): New.
7957 (enable_disable_display_command): New function.
7958 (enable_display): Delete.
7959 (enable_display_command): New.
7960 (disable_display_command): Reimplement.
7961 (_initialize_printcmd): Adjust "enable display" command to use
7962 `enable_display_command' as callback.
7963
350c6c65
PM
79642011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7965
7966 * NEWS: Add Python breakpoint 'stop' operation.
7967
824446ad
PM
79682011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7969
7970 * NEWS: Delete duplicate entry. Fix typo.
7971
2021ad3a
PM
79722011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7973
7974 Fix ARI warning about function names in first column.
7975 Put prototype declaration on same line as return type.
7976 * objc-exp.y: Ditto.
7977 * p-exp.y: Ditto.
7978 * python/py-stopevent.h: Ditto.
7979 For long function names, split parameters to
7980 allow function name on same line as return type.
7981 * solib-pa64.c: Ditto.
7982 * varobj.c: Ditto.
7983 * varobj.h: Ditto.
7984 For long function declaration, use single line.
7985 * hppa-tdep.h: Ditto.
7986 * inferior.h: Ditto.
7987
7371cf6d
PM
79882011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7989
7990 * python/python.h: Declare gdbpy_should_stop and
7991 gdbpy_breakpoint_has_py_cond.
7992 * python/python.c: Add python.h to includes. Remove python.h from
7993 HAVE_PYTHON definition
7994 (gdbpy_should_stop): New dummy function.
7995 (gdbpy_breakpoint_has_py_cond): New dummy function.
7996 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7997 sub-classing capabilities.
7998 (gdbpy_should_stop): New function.
7999 (gdbpy_breakpoint_has_py_cond): New function.
8000 (local_setattro): New function.
8001 * breakpoint.c (condition_command): Add check for Python 'stop'
8002 operation.
8003 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8004 operation function as part of stop/continue tests.
8005
37b50a69
TT
80062011-03-14 Tom Tromey <tromey@redhat.com>
8007
8008 PR gdb/12576:
8009 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8010 (needs_frame_dwarf_call): Likewise.
8011
eeae04df
PM
80122011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8013
8014 Fix ARI warning about functions without parameters that do not
8015 use (void).
8016 * breakpoint.c (all_tracepoints): Replace () by (void).
8017 * f-exp.y (match_string_literal): Ditto.
8018 (yylex): Ditto.
8019 * m2-exp.y (yylex): Ditto.
8020 * mep-tdep.c (current_me_module): Ditto.
8021 (current_options): Ditto.
8022 (current_cop_data_bus_width): Ditto.
8023 (current_cr_names): Ditto.
8024 (current_cr_is_float): Ditto.
8025 (current_ccr_names): Ditto.
8026 * objc-exp.y (yylex): Ditto.
8027 * p-exp.y (yylex): Ditto.
8028 * remote.c (send_interrupt_sequence): Ditto.
8029 * tracepoint.c (current_trace_status): Ditto.
8030 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8031 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8032
6dc3565d
MS
80332011-03-11 Michael Snyder <msnyder@vmware.com>
8034
1427fe5e
MS
8035 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8036 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8037 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8038 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8039 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8040
60bc018f
MS
8041 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8042 (delete_async_event_handler): Ditto.
8043
f3be5b64
MS
8044 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8045
4c2d5724
MS
8046 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8047
6dc3565d
MS
8048 * top.c (set_verbose): Assert showcmd was found.
8049
4e6ca6d5
MG
80502011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8051
8052 * xtensa-tdep.c (warning_once): Correct style issues.
8053
815a83e4
YQ
80542011-03-11 Yao Qi <yao@codesourcery.com>
8055
8056 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8057
f2eb0bc8
AS
80582011-03-11 Andreas Schwab <schwab@redhat.com>
8059
8060 * common/aclocal.m4: Remove.
8061
b801de47
MG
80622011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8063
8064 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8065 (xtensa_write_register, xtensa_read_register): Likewise.
8066 (xtensa_hextochar): Removed.
8067 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8068
dbab50de
MG
80692011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8070
8071 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8072 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8073 (xtensa_alloc_frame_cache): Add initialization for new fields.
8074 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8075 (warning_once): New function.
8076 (xtensa_insn_kind): New item c0opc_and.
8077 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8078 (call0_track_op): Change arguments. New local variable litbase.
8079 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8080 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8081 in the prologue.
dbab50de 8082 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8083 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8084 Add the variety of updates to handle extended prologues, which now can
8085 conduct dynamic stack adjustments.
8086 (call0_frame_cache): Likewise.
8087 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8088 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8089
b2c04452
MS
80902011-03-10 Michael Snyder <msnyder@vmware.com>
8091
f8f67713
MS
8092 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8093 (cmd_qtframe): Ditto.
8094 (cmd_qtbuffer): Ditto.
8095 (cmd_bigqtbuffer): Ditto.
8096
197f0a60
TT
80972011-03-10 Tom Tromey <tromey@redhat.com>
8098
8099 * tracepoint.c (trace_actions_command): Update.
8100 * thread.c (thread_apply_command): Update.
8101 * reverse.c (delete_bookmark_command): Update.
8102 (bookmarks_info): Update.
8103 * printcmd.c (undisplay_command): Update.
8104 * memattr.c (mem_enable_command): Update.
8105 (mem_disable_command): Update.
8106 (mem_delete_command): Update.
8107 * inferior.c (detach_inferior_command): Update.
8108 (kill_inferior_command): Update.
8109 (remove_inferior_command): Update.
8110 * cli/cli-utils.h (struct get_number_or_range_state): New.
8111 (init_number_or_range): Declare.
8112 (get_number_or_range): Update.
8113 * cli/cli-utils.c (init_number_or_range): New function.
8114 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8115 static variables.
8116 (number_is_in_list): Update.
8117 * breakpoint.h (get_tracepoint_by_number): Update.
8118 * breakpoint.c (map_breakpoint_numbers): Update for change to
8119 get_number_or_range.
8120 (find_location_by_number): Use get_number, not
8121 get_number_or_range.
8122 (trace_pass_set_count): New function.
8123 (trace_pass_command): Update for change to get_number_or_range.
8124 Rework loop logic.
8125 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8126 'state' parameter.
8127
ecec24e6
PM
81282011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8129
8130 * python/py-param.c (add_setshow_generic): Add set/show callback
8131 parameters. Register Python object context.
8132 (get_show_value): New function.
8133 (get_set_value): New function.
8134 (call_doc_function): New function.
8135 (get_doc_string): Move behind get_show_value/get_set_value.
8136
6d6c6b1f
JK
81372011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8138
8139 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8140
68d6df83
MG
81412011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8142
dbab50de 8143 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8144 (xtensa_write_register): Likewise.
8145 (xtensa_hextochar): Add comment and update to match coding conventions.
8146 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8147 (execute_l32e, execute_s32e, execute_code): Update comments.
8148 (xtensa_exception_handler_t): Update to match coding conventions.
8149 (xtensa_insn_kind): Likewise.
8150
85c9d6a6
MS
81512011-03-09 Michael Snyder <msnyder@vmware.com>
8152
8153 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8154
91495617
PA
81552011-03-09 Pedro Alves <pedro@codesourcery.com>
8156
8157 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8158
eb8c0621
TT
81592011-03-09 Tom Tromey <tromey@redhat.com>
8160
8161 * thread.c (restore_selected_frame): Handle frame_level == -1.
8162 (make_cleanup_restore_current_thread): Use
8163 get_selected_frame_if_set.
8164 * frame.h (get_selected_frame_if_set): Declare.
8165 * frame.c (get_selected_frame_if_set): New function.
8166
9f37bbcc
PA
81672011-03-09 Pedro Alves <pedro@codesourcery.com>
8168
8169 * cli/cli-cmds.c (shell_escape): Use lbasename.
8170 * coffread.c (coff_start_symtab): Constify parameter.
8171 (complete_symtab): Constify `name' parameter.
8172 (coff_symtab_read): Constify `filestring' local.
8173 (coff_getfilename): Constify return and `result' local.
8174 Use lbasename.
8175 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8176 * linux-fork.c (info_checkpoints_command): Use lbasename.
8177 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8178 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8179 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8180 * procfs.c (procfs_make_note_section): Use lbasename.
8181 * tui/tui-io.c (printable_part): Constity return and parameter.
8182 Use lbasename.
8183 (print_filename): Constify parameters, and local `s'.
8184 (tui_rl_display_match_list): Constify local `temp'.
8185
f8de3c55
JK
81862011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8187
8188 Revert:
8189 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8190 Fix DWARF-3+ DW_AT_accessibility default assumption.
8191 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8192 cu->header.version >= 3.
8193
d9837b00
YQ
81942011-03-09 Yao Qi <yao@codesourcery.com>
8195
8196 * common/Makefile.in: Remove.
8197 * common/configure: Remove.
8198 * common/configure.ac: Remove.
8199
e637a4f5
YQ
82002011-03-09 Yao Qi <yao@codesourcery.com>
8201
8202 Revert:
8203 2011-02-11 Yao Qi <yao@codesourcery.com>
8204
8205 * common/Makefile.in: Add copyright header.
8206
8207 2011-02-11 Yao Qi <yao@codesourcery.com>
8208
8209 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8210 libcommon.a.
8211 * configure.ac: Add common to sub dir.
8212 * configure: Regenerate.
8213
f976a05d
MG
82142011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8215
8216 * xtensa-tdep.c (call0_ret): New function.
8217 (xtensa_skip_prologue): Speed up analysis.
8218
57041825
MG
82192011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8220
8221 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8222 while executing MI command -data-list-changed-registers.
8223
08b9c608
MG
82242011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8225
8226 * xtensa-tdep.c (xtensa_read_register): New function.
8227 (xtensa_write_register): New function.
8228 (xtensa_find_register_by_name): New function.
8229 (xtensa_windowed_frame_cache): Update comments in type description.
8230 (xtensa_frame_cache): Likewise.
8231 (xtensa_window_interrupt_insn): New function.
8232 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8233 (xtensa_insn_kind): Add new instructions.
8234 (rwx_special_register): New function.
8235 (call0_classify_opcode): Add new instructions to the analysis.
8236 (a0_saved, a7_saved, a11_saved): New variables.
8237 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8238 (execute_l32e): New function.
8239 (execute_s32e): New function.
8240 (xtensa_exception_handler_t): New type.
8241 (execute_code): New function.
8242 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8243 analysis for Xtensa Window Exception handlers.
8244
4d1acb11
MG
82452011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8246
98689b25
MG
8247 * xtensa-tdep.c (TX_PS): New.
8248 (windowing_enabled): Update to count for Call0 ABI.
8249 (xtensa_hextochar): New.
8250 (xtensa_init_reggroups): Make algorithm generic.
8251 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8252
82532011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8254
8255 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8256
d3f323f3
MS
82572011-03-08 Michael Snyder <msnyder@vmware.com>
8258
3dcabaa8
MS
8259 * i386-tdep.c (i386_follow_jump): Check return value of
8260 target_read_memory.
8261 (i386_analyze_struct_return): Ditto.
8262 (i386_skip_probe): Ditto.
8263 (i386_match_insn): Ditto.
8264 (i386_skip_noop): Ditto.
8265 (i386_analyze_frame_setup): Ditto.
8266 (i386_analyze_register_saves): Ditto.
8267 (i386_skip_prologue): Ditto.
8268 (i386_skip_main_prologue): Ditto.
8269
13b3fd9b
MS
8270 * target.c (read_whatever_is_readable): Fix memory leak.
8271
d3f323f3
MS
8272 * i386-tdep.c (i386_process_record): Document fall through.
8273
421d5c74
JK
82742011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8275
8276 Fix DWARF-3+ DW_AT_accessibility default assumption.
8277 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8278 cu->header.version >= 3.
8279
63154eca
PA
82802011-03-08 Pedro Alves <pedro@codesourcery.com>
8281
8282 * remote.c (remote_check_symbols): Skip if the target has no
8283 execution.
8284
f1a507a1
JB
82852011-03-08 Joel Brobecker <brobecker@adacore.com>
8286
8287 * target.c (read_whatever_is_readable): Reformat comment,
8288 with a minor typo fix. Minor reformatting of the code.
8289
36073a92
YQ
82902011-03-08 Yao Qi <yao@codesourcery.com>
8291
8292 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8293 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8294 Use cached result instead of calling displaced_in_arm_mode again.
8295 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8296 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8297 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8298 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8299 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8300 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8301 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8302 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8303 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8304 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8305 (arm_catch_kernel_helper_return): Likewise.
8306 * gdb/arm-tdep.h : Update function declarations.
8307
d3f323f3 83082011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8309
e0e40094
MS
8310 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8311
0b2381f5
MS
8312 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8313
0350914a
MS
8314 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8315
69feea6f
MS
8316 * elfread.c (elf_symtab_read): Stop memory leak.
8317
e6040cbd
MS
8318 * main.c (captured_main): Fix memory leak.
8319
052874e8
AS
83202011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8321
8322 * ada-lang.c (compare_names): Call is_name_suffix with string1
8323 instead of string2.
8324
b11896a5
TT
83252011-03-07 Tom Tromey <tromey@redhat.com>
8326
8327 * xcoffread.c (xcoff_sym_fns): Update.
8328 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8329 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8330 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8331 (symbol_file_add_with_addrs_or_offsets): Likewise.
8332 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8333 * somread.c (som_sym_fns): Update.
8334 * psymtab.h (require_partial_symbols): Declare.
8335 * psymtab.c (require_partial_symbols): New function.
8336 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8337 (ALL_OBJFILE_PSYMTABS): Undef.
8338 (ALL_PSYMTABS): Move from psympriv.h.
8339 (lookup_partial_symtab, find_pc_sect_psymtab)
8340 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8341 (find_last_source_symtab_from_partial)
8342 (forget_cached_source_info_partial)
8343 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8344 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8345 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8346 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8347 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8348 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8349 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8350 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8351 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8352 psymtabs.
8353 * mipsread.c (ecoff_sym_fns): Update.
8354 * machoread.c (macho_sym_fns): Update.
8355 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8356 (read_psyms): New function.
8357 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8358 (elf_sym_fns_lazy_psyms): New global.
8359 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8360 dwarf2_build_psymtabs.
8361 * dbxread.c (aout_sym_fns): Update.
8362 * coffread.c (coff_sym_fns): Update.
8363
fda326dd
TT
83642011-03-07 Tom Tromey <tromey@redhat.com>
8365
8366 * infrun.c (print_exited_reason): Include inferior id and pid in
8367 message.
8368
aeaec162
TT
83692011-03-07 Tom Tromey <tromey@redhat.com>
8370
8371 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8372 parameter.
8373 (target_has_execution_1): Update.
8374 (target_has_execution_current): Declare.
8375 (target_has_execution): Call target_has_execution_current.
8376 (default_child_has_execution): Update.
8377 * target.c (default_child_has_execution): Add 'the_ptid'
8378 parameter.
8379 (target_has_execution_1): Likewise.
8380 (target_has_execution_current): New function.
8381 (add_target): Update.
8382 (init_dummy_target): Update.
8383 * remote-m32r-sdi.c (m32r_has_execution): New function.
8384 (init_m32r_ops): Use it.
8385 * record.c (record_core_has_execution): Now static. Add
8386 'the_ptid' parameter.
8387 * inferior.c (have_live_inferiors): Don't save current thread.
8388 Use target_has_execution_1.
8389
08e14083
YQ
83902011-03-07 Yao Qi <yao@codesourcery.com>
8391
8392 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8393
c05d19c5
JB
83942011-03-07 Joel Brobecker <brobecker@adacore.com>
8395
8396 * elfread.c (elf_symtab_read): Minor reformatting.
8397
3e6ef9e4
JB
83982011-03-07 Joel Brobecker <brobecker@adacore.com>
8399
8400 * objc-lang.c (selectors_info): Minor reformatting.
8401
dbb8534f
JB
84022011-03-07 Joel Brobecker <brobecker@adacore.com>
8403
8404 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8405
dd70cc93
JB
84062011-03-07 Joel Brobecker <brobecker@adacore.com>
8407 Michael Snyder <msnyder@vmware.com>
8408
8409 * ada-valprint.c (ada_val_print_array): Move the declaration of
8410 "byte_order" and "elttype" inside the block where these variables
8411 are actually used. Remove some special handling for the case
8412 where "elttype" and "eltlen" are null. Replace by a comment
8413 and a couple of assertion checks.
8414
b27cf2b3
MS
84152011-03-05 Michael Snyder <msnyder@vmware.com>
8416
8417 * source.c (add_path): Replace semicolon at end of block.
8418 * dwarf2expr.c (execute_stack_op): Ditto.
8419
5387a0c6
MF
84202011-03-05 Mike Frysinger <vapier@gentoo.org>
8421
8422 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8423 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8424 (bfin-*-*): Likewise.
8425
e3aa49af
MS
84262011-03-05 Michael Snyder <msnyder@vmware.com>
8427
82ae4854
MS
8428 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8429 * mdebugread.c (parse_symbol): Ditto.
8430 * parse.c (parse_exp_in_context): Ditto.
8431 * source.c (add_path): Ditto.
8432 * utils.c (gnu_debuglink_crc32): Ditto.
8433 * varobj.c (variable_language): Ditto.
8434
e3aa49af
MS
8435 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8436
154f592e
MS
84372011-03-04 Michael Snyder <msnyder@vmware.com>
8438
da3ecdc6
MS
8439 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8440
9cc89665
MS
8441 * symfile.c (simple_overlay_update): Check for null return value
8442 from lookup_minimal_symbol.
8443
154f592e
MS
8444 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8445
63ffa6ee
TJB
84462011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8447
8448 * eval.c (parse_and_eval_address_1): Remove function.
8449 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8450 instead of parse_and_eval_address_1.
8451 * value.h (parse_and_eval_address_1): Remove prototype.
8452
a17d146e
MS
84532011-03-04 Michael Snyder <msnyder@vmware.com>
8454
8455 * remote.c (putpkt_binary): Document that case stmt falls through.
8456
1a6a67de
TJB
84572011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8458
8459 * breakpointc (print_it_typical): Move NULL check from here...
8460 (print_bp_stop_message): ... to here.
8461
488919c4
MS
84622011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8463
8464 * breakpoint.c (enable_command): Use break instead of continue,
8465 and fill in a missing break.
8466 (disable_command): Ditto.
8467
1e182ce8
UW
84682011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8469
8470 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8471 (terminal_save_ours): Remove misleading comment.
8472 (inflow_inferior_data_cleanup): Free ttystate.
8473 (inflow_inferior_exit): Likewise.
8474 (copy_terminal_info): Copy ttystate.
8475
8476 * serial.c (serial_copy_tty_state): New function.
8477 * serial.h (serial_copy_tty_state): Add prototype.
8478 (struct serial_ops): Add copy_tty_state callback.
8479 * ser-base.c (ser_base_copy_tty_state): New function.
8480 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8481 * ser-go32.c (dos_copy_tty_state): New function.
8482 (dos_ops): Install copy_tty_state callback.
8483 * ser-mingw.c (_initialize_ser_windows): Likewise.
8484 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8485 * ser-unix.c (hardwire_copy_tty_state): New function.
8486 (_initialize_ser_hardwire): Install it.
8487
b2c5f112
MS
84882011-03-04 Michael Snyder <msnyder@vmware.com>
8489
2abae994
MS
8490 * breakpoint.c (create_breakpoint): Add missing break statement.
8491
7f5936f9
MS
8492 Reverting this patch:
8493 * infcall.c (call_function_by_hand): Add break statements for lint.
8494
b2c5f112
MS
8495 Reverting this patch:
8496 * cli/cli-script.c (script_from_file): Add break for lint.
8497
42b1321c
MS
84982011-03-04 Michael Snyder <msnyder@vmware.com>
8499
8500 * solib.c (reload_shared_libraries_1): Close memory leak.
8501
3e2a0cee
TT
85022011-03-03 Tom Tromey <tromey@redhat.com>
8503
8504 PR gdb/12538:
8505 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8506 DW_STRING is NULL.
8507
58397cb7
MS
85082011-03-03 Michael Snyder <msnyder@vmware.com>
8509
2e3fd767
MS
8510 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8511 fields of struct 'st' to zero.
8512
58397cb7
MS
8513 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8514 sal.pspace before calling set_current_source_symtab_and_line.
8515
ced54c8f
YQ
85162011-03-03 Yao Qi <yao@codesourcery.com>
8517
8518 * Makefile.in (configure-common): Remove. Let Makefile
8519 in dir common to rebuild itself.
8520 (common/Makefile): Likewise.
8521
3351ea09
JB
85222011-03-03 Joel Brobecker <brobecker@adacore.com>
8523
8524 * utils.c (parse_escape): Add i18n markup in error message.
8525
bf9f652a
YQ
85262011-03-03 Yao Qi <yao@codesourcery.com>
8527
8528 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8529 ARM_PC_REGNUM.
8530 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8531 (displaced_write_reg, displaced_read_reg): Likewise.
8532 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8533 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8534 (cleanup_branch): Replace magic number 14 and 15 with
8535 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8536
d42de051
MS
85372011-03-02 Michael Snyder <msnyder@vmware.com>
8538
240f9570
MS
8539 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8540
10dd8b54
MS
8541 * cli/cli-script.c (script_from_file): Add break for lint.
8542
b98bd911
MS
8543 * mdebugread.c (parse_partial_symbols): Fix indent.
8544
3494b66d
MS
8545 * target-descriptions.c (tdesc_gdb_type): No need to call
8546 xstrdup, callee saves a copy.
8547
daac021a
MS
8548 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8549
c38d16a7
MS
8550 * infcall.c (call_function_by_hand): Add break statements for lint.
8551
905b671b
MS
8552 * utils.c (parse_escape): Escape the escape char.
8553
f2eb0bc8 8554 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8555 PyList_Append fails.
8556 (gdbpy_inferiors): Error out if build_inferior_list fails.
8557
8c6a60d1
MS
8558 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8559 a function call.
8560
d42de051
MS
8561 * record.c (record_restore): Move printf to before error return.
8562
4db71c0b
YQ
85632011-03-02 Yao Qi <yao@codesourcery.com>
8564
8565 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8566 is_thumb and insn_size.
8567 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8568 on both ARM and Thumb mode.
8569 (arm_process_displaced_insn): Set is_thumb and insn_size.
8570 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8571 (arm_displaced_step_fixup): Likewise.
8572
a9dc8dcc
MS
85732011-03-01 Michael Snyder <msnyder@vmware.com>
8574
53624a93
MS
8575 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8576
77766669
MS
8577 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8578
62d5b8da
MS
8579 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8580
5e9e105f
MS
8581 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8582
dc19db01
MS
8583 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8584 with xmalloc.
8585
5ce64950
MS
8586 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8587 which shadows function parameter.
8588
a0aa2878
MS
8589 * tracepoint.c (create_tsv_from_upload): Superfluous call
8590 to xstrdup. Callee already calls xstrdup.
8591
e325fb69
MS
8592 * linespec.c (decode_line_1): Remove unnecessary null check.
8593
21cbba77
MS
8594 * tracepoint.c (scope_info): Fix mem leak, remove underused
8595 variable.
8596
63360adc
MS
8597 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8598 superfluous null check.
8599
18ea20ac 8600 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8601 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8602
d014929c
MS
8603 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8604
6e9130cf
MS
8605 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8606 be null.
8607
5f01dbc0
MS
8608 * linespec.c (decode_line_1): Check for null before dereference.
8609
d684ab85
MS
8610 * reverse.c (record_restore): Move null-check to before pointer
8611 dereference.
8612
bfffb7e3
MS
8613 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8614
a9dc8dcc
MS
8615 * objc-lang.c (selectors_info): Add explanitory comment.
8616 (classes_info): Ditto.
8617
478fd957
UW
86182011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8619
8620 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8621 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8622 versions of the trampoline. Handle Thumb vs. ARM addresses.
8623 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8624 (arm_linux_init_abi): Install it.
8625 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8626 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8627
0480cefa
MS
86282011-02-28 Michael Snyder <msnyder@vmware.com>
8629
ac50ab3b
MS
8630 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8631 a little bigger, to avoid possibility of an overflow.
8632
f63fbe86
MS
8633 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8634 buffers a little bigger, to avoid possibility of an overflow.
8635
9e91a352
MS
8636 * coffread.c (coff_getfilename): Add check to avoid overflow.
8637
f2eb0bc8 8638 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8639 avoid overflow.
8640 (classes_info): Error out on too long REGEXP.
8641
098ab512
MS
8642 * infrun.c (handle_inferior_event): Remove unused function call.
8643
bcbd1de9
MS
8644 * fork-child.c (fork_inferior): Remove ifdef'd code and
8645 unused variable.
8646
2e456570
MS
8647 * linux-thread-db.c (attach_thread): Discard unused value.
8648
14571dad
MS
8649 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8650
a9cbf802
MS
8651 * remote.c (remote_get_noisy_reply): Discard unused value.
8652 (remote_vcont_resume): Ditto.
8653 (remote_stop_ns): Ditto.
8654
5715d26e
MS
8655 * linespec.c (decode_objc): Delete unused variable.
8656
4a9bca80
MS
8657 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8658
f47fb265
MS
8659 * dwarf2read.c (add_partial_symbol): Discard unused values.
8660 (read_base_type): Delete unused variable.
8661
e81cff30
MS
8662 * dbxread.c (read_dbx_symtab): Discard unused value.
8663
262acaeb
MS
8664 * eval.c (evaluate_subexp_standard): Delete unused variable,
8665 and discard unused values.
8666
df983543
MS
8667 * infcmd.c (_initialize_infcmd): Discard unused values.
8668
89acf84d
MS
8669 * stabsread.c (rs6000_builtin_type): Missing break statement.
8670
ab8b8aca
MS
8671 * dbxread.c (process_one_symbol): Discard unused value.
8672
6b4511ab
MS
8673 * coffread.c (coff_end_symtab): Delete unused variable.
8674
e8e80198
MS
8675 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8676 (dwarf2_add_typedef): Delete unused variable.
8677 (read_namespace): Ditto.
8678 (dwarf_decode_macros): Ditto.
8679
976aa66e
MS
8680 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8681
5b92b49f
MS
8682 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8683
91e8df85
MS
8684 * p-valprint.c (pascal_val_print): Discard unused value.
8685
899500d6
MS
8686 * utils.c (nquery): Call va_end before return;
8687 (yquery): Ditto.
8688 (query): Ditto.
8689
0480cefa
MS
8690 * proc-service.c (ps_plog): Call va_end before return.
8691
fb6a3ed3
TT
86922011-02-28 Tom Tromey <tromey@redhat.com>
8693
8694 * python/python.c (gdbpy_value_cst): New global.
8695 (_initialize_python): Initialize it.
8696 * python/python-internal.h (gdbpy_value_cst): Declare.
8697 * python/py-value.c (convert_value_from_python): Use
8698 gdbpy_value_cst.
8699
c05202a1
MS
87002011-02-28 Michael Snyder <msnyder@vmware.com>
8701
e463f587
MS
8702 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8703
c38eea1a
MS
8704 * breakpoint.c (catch_syscall_completer): Free malloced list.
8705
3ef09ab5
MS
8706 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8707
8f9a01ee
MS
8708 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8709 (lval_func_check_synthetic_pointer): Ditto.
8710 (lval_func_free_closure): Fix use-after-free.
c05202a1 8711
477d0d57
TT
87122011-02-28 Tom Tromey <tromey@redhat.com>
8713
8714 * psymtab.c (expand_partial_symbol_tables): Use
8715 ALL_OBJFILE_PSYMTABS.
8716
20937029
JK
87172011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8718
8719 * objc-lang.c (selectors_info): Error on too long REGEXP.
8720
907b7f4f
MS
87212011-02-28 Michael Snyder <msnyder@vmware.com>
8722
92e96192
MS
8723 * python/py-param.c (set_parameter_value): Add missing
8724 break statement.
8725
907b7f4f
MS
8726 * linux-record.c (record_linux_system_call): Add missing
8727 break statement.
8728
12c5a436
UW
87292011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8730
8731 * breakpoint.c (print_one_breakpoint_location): Remove unused
8732 argument PRINT_ADDRESS_BITS. Update callers.
8733 (print_one_breakpoint): Likewise.
8734
170b53b2
UW
87352011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8736
8737 * breakpoint.c (wrap_indent_at_field): New function.
8738 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8739 Allocate ui_stream locally instead of using STB argument.
8740 (print_one_breakpoint_location): Update call.
8741 * ui-out.c (ui_out_query_field): New function.
8742 * ui-out.h (ui_out_query_field): Add prototype.
8743
8ab1f94d
JB
87442011-02-28 Joel Brobecker <brobecker@adacore.com>
8745
8746 From Michael Snyder <msnyder@vmware.com>
8747 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8748
7d488639
MS
87492011-02-27 Michael Snyder <msnyder@vmware.com>
8750
ae179fba
MS
8751 * objc-lang.c (selectors_info): Prevent string overrun.
8752
086dbf66
MS
8753 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8754 error in strncpy.
8755
f2eb0bc8 8756 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8757 outer scope.
8758
7d488639
MS
8759 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8760 param with a local variable of the same name.
8761
3bd0f5ef
MS
87622011-02-27 Michael Snyder <msnyder@vmware.com>
8763
8764 * value.c (value_from_history_ref): New function.
8765 * value.h (value_from_history_ref): Export.
8766 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8767 to parse value history references.
8768 * cli/cli-utils.h (get_number_trailer): Update comment.
8769
87702011-02-27 Michael Snyder <msnyder@vmware.com>
8771
8772 * inferior.c (detach_inferior_command): Use get_number_or_range.
8773 (kill_inferior_command): Ditto.
8774 (remove_inferior_command): Ditto.
8775 (initialize_inferiors): Make command names plural.
8776 Update help strings.
8777
766062f6
MS
87782011-02-27 Michael Snyder <msnyder@vmware.com>
8779
8780 * darwin-nat-info.c: Fix comment typo.
8781 * dwarf2expr.h: Ditto.
8782 * fbsd-nat.c: Ditto.
8783 * fbsd-nat.h: Ditto.
8784 * frame-unwind.h: Ditto.
8785 * frame.h: Ditto.
8786 * hppa-hpux-tdep.c: Ditto.
8787 * i386-linux-nat.c: Ditto.
8788 * linux-nat.c: Ditto.
8789 * nbsd-nat.c: Ditto.
8790 * nbsd-nat.h: Ditto.
8791 * ppc-linux-tdep.c: Ditto.
8792 * serial.c: Ditto.
8793 * ui-file.h: Ditto.
8794 * tui/tui-winsource.c: Ditto.
8795
f2c4ead5
MS
87962011-02-26 Michael Snyder <msnyder@vmware.com>
8797
86b887df
MS
8798 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8799
66fd3b1e
MS
8800 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8801
8c814cdd
MS
8802 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8803 with a local variable of the same name.
8804
6d5e094a 8805 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8806 param with a local variable of the same name.
6d5e094a 8807 (i387_supply_xsave): Ditto.
e5b3d7d6 8808
5eee517d
MS
8809 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8810 that it does not shadow a function parameter.
8811
8fbf6b93
MS
8812 * i386-nat.c (i386_length_and_rw_bits): Document that case
8813 statement is meant to fall through.
8814
cb969d61
MS
8815 * expprint.c (dump_subexp_body_standard): Document that case
8816 statement is meant to fall through.
8817
f2c4ead5
MS
8818 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8819 dead if statement. Condition can't be false.
8820
b021a221
MS
88212011-02-25 Michael Snyder <msnyder@vmware.com>
8822
8823 * arm-tdep.c: Fix typos in comments.
8824 * bsd-uthread.c: Ditto.
8825 * completer.c: Ditto.
8826 * corelow.c: Ditto.
8827 * cp-namespace.c: Ditto.
8828 * cp-support.c: Ditto.
8829 * cris-tdep.c: Ditto.
8830 * dbxread.c: Ditto.
8831 * dwarf2read.c: Ditto.
8832 * frame.h: Ditto.
8833 * gdbtypes.h: Ditto.
8834 * inferior.h: Ditto.
8835 * mdebugread.c: Ditto.
8836 * mips-tdep.c: Ditto.
8837 * ppc-linux-nat.c: Ditto.
8838 * ppc-linux-tdep.c: Ditto.
8839 * printcmd.c: Ditto.
8840 * sol-thread.c: Ditto.
8841 * solib-frv.c: Ditto.
8842 * solist.h: Ditto.
8843 * sparc64-tdep.c: Ditto.
8844 * spu-tdep.c: Ditto.
8845 * stabsread.c: Ditto.
8846 * symfile.c: Ditto.
8847 * valops.c: Ditto.
8848 * varobj.c: Ditto.
8849 * vax-nat.c: Ditto.
8850 * python/py-block.c: Ditto.
8851 * python/py-symbol.c: Ditto.
8852 * python/py-symtab.c: Ditto.
8853 * python/py-value.c: Ditto.
8854 * tui/tui-win.c: Ditto.
8855
c82c0b55
MS
88562011-02-25 Michael Snyder <msnyder@vmware.com>
8857
8858 * inferior.c (print_inferior): Accept a string instead of an int
8859 for requested_inferiors, and use get_number_or_range to parse it.
8860 (info_inferiors_command): Pass args string to print_inferior.
8861 (initialize_inferiors): Change help string for info inferiors.
8862 * inferior.h (print_inferior): Export prototype change.
8863
ee00cd23
TT
88642011-02-25 Tom Tromey <tromey@redhat.com>
8865
8866 * common/ax.def (invalid2): Set to 0x31.
8867
0502ed8c
JK
88682011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8869
8870 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8871 L and plongest.
8872 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8873 use L and plongest.
8874 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8875
2c9de912
MS
88762011-02-24 Michael Snyder <msnyder@vmware.com>
8877
8878 * Makefile.in (clean): Make clean should remove generated files
8879 observer.h and observer.inc.
8880
a04b0428
JB
88812011-02-24 Joel Brobecker <brobecker@adacore.com>
8882
8883 Revert the following patch (not approved yet):
8884 2011-02-21 Hui Zhu <teawater@gmail.com>
8885 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8886 * ax-gdb.c (gen_printf_expr_callback): New function.
8887 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8888 * ax-general.c (ax_memcpy): New function.
8889 (ax_print): Handle "printf".
8890 (ax_reqs): Ditto.
8891 * ax.h (ax_memcpy): Forward declare.
8892 * common/ax.def (invalid2): Removed.
8893 (printf): New entry.
8894 * printcmd.c (printcmd.h): New include.
8895 (string_printf): New function.
8896 (ui_printf): Removed.
8897 (printf_command): Remove static. Call string_printf.
8898 (eval_command): Call string_printf.
8899 * printcmd.h: New file.
8900 * tracepoint.c (validate_actionline,
8901 encode_actions_1): handle printf_command.
8902
2b52013f
TT
89032011-02-23 Tom Tromey <tromey@redhat.com>
8904
8905 * ax-general.c (ax_pick): Add missing newline.
8906
e5a67952
MS
89072011-02-23 Michael Snyder <msnyder@vmware.com>
8908
8909 * breakpoint.c (breakpoint_1): Change first argument from an int
8910 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8911 breakpoints rather than just one. Use new function
e5a67952
MS
8912 'number_is_in_list' to implement.
8913 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8914 (watchpoints_info): Ditto.
8915 (tracepoints_info): Ditto.
8916 (maintenance_info_breakpoints): Ditto.
8917 (_initialize_breakpoint): Update help strings to reflect the fact
8918 that these functions can now take more than one argument.
8919 * cli/cli-utils.c (number_is_in_list): New function.
8920 * cli/cli-utils.h (number_is_in_list): Export.
8921
89222011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8923
8924 * memattr.c (mem_enable_command): Use get_number_or_range.
8925 (mem_disable_command): Ditto.
8926 (mem_delete_command): Ditto.
8927 (_initialize_mem): Tweak usage message to reflect multiple
8928 arguments.
8929
6e6fbe60
DE
89302011-02-22 Doug Evans <dje@google.com>
8931
8932 Add gdb.lookup_global_symbol python function.
8933 * NEWS: Add entry.
8934 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8935 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8936 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8937
79b97fa8
TT
89382011-02-22 Tom Tromey <tromey@redhat.com>
8939
8940 * language.c (language_class_name_from_physname): Rename
8941 'curr_language' argument to 'lang'; use in body.
8942
298f437a
MS
89432011-02-22 Michael Snyder <msnyder@vmware.com>
8944
8945 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8946
b7ea3126
PA
89472011-02-22 Pedro Alves <pedro@codesourcery.com>
8948
8949 * frame-unwind.h: Fix comment to mention the this frame, not the
8950 next.
8951
58ee6d60
TT
89522011-02-22 Tom Tromey <tromey@redhat.com>
8953
8954 * symfile.c (auto_solib_limit): Remove.
8955 * symfile.h (auto_solib_limit): Remove.
8956
36238dbc
JB
89572011-02-22 Joel Brobecker <brobecker@adacore.com>
8958
8959 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8960
aea5b279
MS
89612011-02-21 Michael Snyder <msnyder@vmware.com>
8962
8963 * gdbthread.h (print_thread_info): Change prototype.
8964 * thread.c (print_thread_info): Accept char* instead of int for
8965 requested_threads argument. Use new function number_is_in_list
8966 to determine which threads to list.
8967 (info_threads_command): Pass char* to print_thread_info.
8968 * cli/cli-utils.c (number_is_in_list): New function.
8969 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8970 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8971 print_thread_info.
8972 (print_one_inferior): Ditto.
8973 (mi_cmd_list_thread_groups): Ditto.
8974
8caa75ee
JK
89752011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8976
8977 * common/Makefile.in (CFLAGS): New.
8978 (COMPILE): Add $(CFLAGS).
8979
ea666128
TT
89802011-02-21 Tom Tromey <tromey@redhat.com>
8981
8982 * breakpoint.c (catch_syscall_command_1): Fix typo.
8983
e9cafbcc
TT
89842011-02-21 Tom Tromey <tromey@redhat.com>
8985
8986 * reverse.c: Include cli-utils.h.
8987 * printcmd.c: Include cli-utils.h.
8988 (string_printf): Use skip_spaces.
8989 * cli/cli-utils.h: New file.
8990 * cli/cli-utils.c: New file.
8991 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8992 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8993 * breakpoint.h (get_number, get_number_or_range): Move to
8994 cli-utils.h.
8995 * breakpoint.c: Include cli-utils.h.
8996 (get_number_trailer, get_number, get_number_or_range)
8997 (ep_skip_leading_whitespace): Move to cli-utils.c.
8998 (create_breakpoint_sal, find_condition_and_thread)
8999 (decode_static_tracepoint_spec, watch_command_1)
9000 (watch_maybe_just_location, ep_parse_optional_if_clause)
9001 (catch_fork_command_1, catch_exec_command_1)
9002 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9003 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9004 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9005 (HFILES_NO_SRCDIR): Add cli-utils.h.
9006 (cli-utils.o): New target.
9007
f67fd822
PM
90082011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9009
9010 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9011 before calling discard_all_inferiors.
9012
c9def01d
UW
90132011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9014
9015 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9016 (struct builtin_opencl_type): Remove.
9017 (builtin_opencl_type): Change return type to "struct type **".
9018 (lookup_opencl_vector_type): Update caller.
9019 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9020 (build_opencl_types): Install plain array of "struct type *"
9021 instead of "struct builtin_opencl_type".
9022
e3039479
UW
90232011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9024 Ulrich Weigand <uweigand@de.ibm.com>
9025
9026 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9027 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9028 (struct arm_linux_hwbp_cap): New type.
9029 (arm_linux_get_hwbp_cap): New function.
9030 (arm_linux_get_hw_breakpoint_count): Likewise.
9031 (arm_linux_get_hw_watchpoint_count): Likewise.
9032 (arm_linux_can_use_hw_breakpoint): Likewise.
9033 (arm_hwbp_type): New type.
9034 (arm_hwbp_control_t): Likewise.
9035 (struct arm_linux_hw_breakpoint): Likewise.
9036 (struct arm_linux_thread_points): Likewise.
9037 (arm_threads): New global variable.
9038 (arm_linux_find_breakpoints_by_tid): New function.
9039 (arm_hwbp_control_initialize): Likewise.
9040 (arm_hwbp_control_is_enabled): Likewise.
9041 (arm_hwbp_control_disable): Likewise.
9042 (arm_linux_hw_breakpoint_initialize): Likewise.
9043 (arm_linux_get_hwbp_type): Likewise.
9044 (arm_linux_hw_watchpoint_initialize): Likewise.
9045 (arm_linux_hw_breakpoint_equal): Likewise.
9046 (arm_linux_insert_hw_breakpoint1): Likewise.
9047 (arm_linux_remove_hw_breakpoint1): Likewise.
9048 (arm_linux_insert_hw_breakpoint): Likewise.
9049 (arm_linux_remove_hw_breakpoint): Likewise.
9050 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9051 (arm_linux_insert_watchpoint): Likewise.
9052 (arm_linux_remove_watchpoint): Likewise.
9053 (arm_linux_stopped_data_address): Likewise.
9054 (arm_linux_stopped_by_watchpoint): Likewise.
9055 (arm_linux_watchpoint_addr_within_range): Likewise.
9056 (arm_linux_new_thread): Likewise.
9057 (arm_linux_thread_exit): Likewise.
9058 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9059 related target callbacks. Register arm_linux_new_thread and
9060 arm_linux_thread_exit.
9061 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9062 * arm-tdep.c (arm_pc_is_thumb): Make global.
9063 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9064
b5db5dfc
UW
90652011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9066
9067 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9068 per-frame locations while within a function epilogue.
9069
e25b2cfa
PM
90702011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9071
9072 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9073 to GNU coding standards.
9074
4af53f97
PM
90752011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9076
9077 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9078 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9079 (ser_windows_close): Only call CancelIo if function exists.
9080 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9081 to check for existence of CancelIo function in kernel32 DLL.
9082
d0e92d82
HZ
90832011-02-21 Hui Zhu <teawater@gmail.com>
9084
9085 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9086 * ax-gdb.c (gen_printf_expr_callback): New function.
9087 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9088 * ax-general.c (ax_memcpy): New function.
9089 (ax_print): Handle "printf".
9090 (ax_reqs): Ditto.
9091 * ax.h (ax_memcpy): Forward declare.
9092 * common/ax.def (invalid2): Removed.
9093 (printf): New entry.
9094 * printcmd.c (printcmd.h): New include.
9095 (string_printf): New function.
9096 (ui_printf): Removed.
9097 (printf_command): Remove static. Call string_printf.
9098 (eval_command): Call string_printf.
9099 * printcmd.h: New file.
9100 * tracepoint.c (validate_actionline,
9101 encode_actions_1): handle printf_command.
9102
7d357efd
MS
91032011-02-19 Michael Snyder <msnyder@vmware.com>
9104
9105 * reverse.c (delete_one_bookmark): Argument is now bookmark
9106 id rather than pointer to bookmark struct.
9107 (delete_bookmark_command): Use get_number_or_range.
9108 (goto_bookmark_command): Parse with get_number instead of strtoul.
9109 (bookmark_1): New function. Print info for one bookmark.
9110 (bookmarks_info): Use get_number_or_range and bookmark_1.
9111
7a45ebd7
MS
91122011-02-18 Michael Snyder <msnyder@vmware.com>
9113
f2eb0bc8 9114 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9115 get_number_or_range.
65ebfb52 9116 (thread_apply_command): Ditto.
7a45ebd7 9117
94d5e490
TT
91182011-02-18 Tom Tromey <tromey@redhat.com>
9119
9120 * common/ax.def: New file.
9121 * ax.h (enum agent_op): Use ax.def.
9122 * ax-general.c (aop_map): Use ax.def.
9123
c7f96d2b
TT
91242011-02-18 Tom Tromey <tromey@redhat.com>
9125
9126 * ax-general.c (aop_map): Add pick and rot.
9127 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9128 <DW_OP_rot>: Implement.
9129 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9130 (ax_pick): Declare.
9131 * ax-general.c (ax_pick): New function.
9132
66694b75
TT
91332011-02-18 Tom Tromey <tromey@redhat.com>
9134
9135 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9136
eeaafae2
JK
91372011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 Tom Tromey <tromey@redhat.com>
9139
9140 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9141 make_symbol_overload_list_block with NULL BLOCK.
9142 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9143
3c3fe74c
PA
91442011-02-18 Pedro Alves <pedro@codesourcery.com>
9145
9146 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9147 * breakpoint.h (get_number_or_range): Declare.
9148 * printcmd.c (ALL_DISPLAYS): Declare.
9149 (delete_display): Reimplement taking a display pointer.
9150 (undisplay_command): Accept a range of displays to delete, using
9151 get_number_or_range.
9152
13163d80
PM
91532011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9154
9155 * c-valprint.c (c_val_print): Add embedded_offset to address
9156 for arrays of unspecified length.
9157 * p-valprint.c (pascal_val_print): Likewise.
9158
b434a28f
YQ
91592011-02-18 Yao Qi <yao@codesourcery.com>
9160
9161 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9162 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9163 (thumb_process_displaced_insn): New.
9164 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9165 call to arm_process_displaced_insn.
9166 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9167
9f6f94ff
TT
91682011-02-17 Tom Tromey <tromey@redhat.com>
9169
9170 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9171 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9172 compile_dwarf_to_ax. No longer static. Call
9173 dwarf2_compile_cfa_to_ax.
9174 (locexpr_tracepoint_var_ref): Update.
9175 (loclist_tracepoint_var_ref): Update.
9176 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9177 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9178 argument; add 'gdbarch' and 'pc'.
9179 (dwarf2_compile_cfa_to_ax): New function.
9180 (dwarf2_frame_cache): Update.
9181
e67ad678
JB
91822011-02-17 Joel Brobecker <brobecker@adacore.com>
9183
9184 * ada-lang.c (ada_type_of_array): Fix the size of the array
9185 in the case of an unconstrained packed array.
9186
946ebb0d
YQ
91872011-02-17 Yao Qi <yao@codesourcery.com>
9188
9189 * common/Makefile.in: Add more targets for make.
9190
1ba1b353
TT
91912011-02-16 Tom Tromey <tromey@redhat.com>
9192
9193 * dwarf2loc.c (unimplemented): Fix typo.
9194
b1bfef65
TT
91952011-02-16 Tom Tromey <tromey@redhat.com>
9196
9197 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9198 (compile_dwarf_to_ax) <default>: Use unimplemented.
9199 <DW_OP_deref>: Update.
9200 (disassemble_dwarf_expression): Update.
9201 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9202 (decode_locdesc): Update.
9203 * dwarf2expr.h (dwarf_stack_op_name): Update.
9204
5f1e6f19
TT
92052011-02-16 Tom Tromey <tromey@redhat.com>
9206
9207 * ax.h (struct aop_map) <name>: Now const.
9208
a0c78a73
PA
92092011-02-16 Tom Tromey <tromey@redhat.com>
9210
9211 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9212 than axs_rvalue.
9213
946ebb0d 92142011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9215
9216 * infrun.c (get_displaced_step_closure_by_addr): New.
9217 * inferior.h: Declare it.
9218 * arm-tdep.c: (arm_pc_is_thumb): Call
9219 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9220 returns non-NULL.
9221
08807d5a
PA
92222011-02-16 Pedro Alves <pedro@codesourcery.com>
9223 Jan Kratochvil <jan.kratochvil@redhat.com>
9224
9225 gdb/
9226 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9227
29976f3f
PA
92282011-02-16 Pedro Alves <pedro@codesourcery.com>
9229 Jan Kratochvil <jan.kratochvil@redhat.com>
9230
9231 * value.c (value_contents_copy_raw): Extend describing comment.
9232 Assert that the destination contents we're overwriting are wholly
9233 available.
fb68ae73 9234 (value_contents_copy): Extend describing comment.
29976f3f 9235
cd24cfaa
PA
92362011-02-16 Pedro Alves <pedro@codesourcery.com>
9237 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 * value.c (value_available_contents_eq): Remove redundant local
9240 variables. Fix available contents comparision.
9241 * value.h (value_available_contents_eq): Extend describing
9242 comment.
9243
60bbf338
YQ
92442011-02-16 Yao Qi <yao@codesourcery.com>
9245
9246 * thread.c (info_threads_command): Add missing i18n markup and remove
9247 trailing newline.
9248
17450429
PP
92492011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9250
9251 * breakpoint.c (longjmp_names): New variable.
9252 (struct breakpoint_objfile_data): New type.
9253 (breakpoint_objfile_key): New variable.
9254 (msym_not_found): New variable.
9255 (msym_not_found_p): New predicate.
9256 (get_breakpoint_objfile_data): New function.
9257 (create_overlay_event_breakpoint): Check per-objfile cache for
9258 symbols first.
9259 (create_longjmp_master_breakpoint): Likewise.
9260 (create_std_terminate_master_breakpoint): Likewise.
9261 (create_exception_master_breakpoint): Likewise.
9262 (_initialize_breakpoint): Register per-objfile data key.
9263
af02033e
PP
92642011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9265
9266 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9267 parameter value.
9268 (create_longjmp_master_breakpoint): Loop over longjmp names.
9269 (create_std_terminate_master_breakpoint): Const-propagate parameter
9270 value.
9271 (update_breakpoints_after_exec): Adjust.
9272 (breakpoint_re_set): Adjust.
9273
60f98dde
MS
92742011-02-15 Michael Snyder <msnyder@vmware.com>
9275
cdf99611
MS
9276 * thread.c (info_threads_command): Process arg as thread id,
9277 or list of thread ids.
9278 (thread_find_command): New command.
9279 (_initialize_thread): Document argument for info threads.
9280 Document 'thread find' command.
9281 * NEWS: Document new command "thread find".
60f98dde 9282
0feedb2c
JK
92832011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9284
9285 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9286 * aclocal.m4: Regenerated with aclocal-1.11.1.
9287 * common/configure: Regenerate with autoconf-2.64.
9288
648cd113
KW
92892011-02-15 Ken Werner <ken.werner@de.ibm.com>
9290
9291 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9292 bool data type to a size of one byte.
9293
5657161f
PA
92942011-02-15 Pedro Alves <pedro@codesourcery.com>
9295 Jan Kratochvil <jan.kratochvil@redhat.com>
9296
9297 * target.c (memory_xfer_live_readonly_partial): Document where to
9298 look for interface description.
9299
494e194e
YQ
93002011-02-15 Yao Qi <yao@codesourcery.com>
9301
9302 PR tdep/12352
9303 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9304 order to store PC value on stack instead of text section.
9305
d9492458
TJB
93062011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9307
9308 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9309 the EFP register set size.
9310 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9311 data from the VMX register.
9312 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9313 and write data from/to the VMX register.
9314
cdf99611
MS
93152011-02-14 Michael Snyder <msnyder@vmware.com>
9316
9317 * command.h (enum command_class): New class 'no_set_class', for
9318 "show" commands without a corresponding "set" command.
9319 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9320 * copying.c (_initialize_copying): Ditto for "show copying" and
9321 "show warranty".
9322 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9323 "show version".
9324 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9325 which there is no corresponding "set" command (eg. "show copying").
9326
424447ee
PA
93272011-02-14 Pedro Alves <pedro@codesourcery.com>
9328 Jan Kratochvil <jan.kratochvil@redhat.com>
9329
9330 * exec.c (section_table_available_memory): Change `len' parameter
9331 type to ULONGEST.
9332 * exec.h (section_table_available_memory): Ditto.
9333 * value.h (read_value_memory): Rename the `offset' parameter to
9334 `embedded_offset'.
9335
c0f61f9c 93362011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9337 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9338
9339 * memrange.c (compare_mem_ranges): Mention sort order in
9340 describing comment.
9341 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9342 * tracepoint.c (traceframe_available_memory): Extend comment to
9343 mention what happens to RESULT when the target does not support
9344 the query.
9345
6bfc80c7
PA
93462011-02-14 Pedro Alves <pedro@codesourcery.com>
9347 Jan Kratochvil <jan.kratochvil@redhat.com>
9348
9349 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9350 range.
9351
e7303042
PA
93522011-02-14 Pedro Alves <pedro@codesourcery.com>
9353
9354 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9355 No longer handle NULL values.
9356
8af8e3bc
PA
93572011-02-14 Pedro Alves <pedro@codesourcery.com>
9358
9359 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9360 * value.c: Include "exceptions.h".
9361 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9362 generic error.
9363 * cp-abi.c: Include gdb_assert.h.
9364 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9365 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9366 errors.
9367 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9368 parameters. No longer returns -1 on error.
9369 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9370 `val' parameters.
9371 * cp-valprint.c: Include exceptions.h.
9372 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9373 the baseclass_offset. Handle unavailable base classes. Use
9374 val_print_invalid_address.
9375 * p-valprint.c: Include exceptions.h.
9376 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9377 when fetching the baseclass_offset. No longer expect
9378 baseclass_offset returning -1. Handle unavailable base classes.
9379 Use val_print_invalid_address.
9380 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9381 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9382 `embedded_offset' and `val' parameters. Adjust.
9383 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9384 parameter, and change its type to gdb_byte pointer. Add
9385 `embedded_offset' and `val' parameters. Adjust. No longer expect
9386 baseclass_offset returning -1.
9387 (value_dynamic_cast): Use value_contents_for_printing rather than
9388 value_contents. Adjust.
9389 (search_struct_field): No longer expect baseclass_offset returning
9390 -1.
9391 (search_struct_method): If reading memory from the target is
9392 necessary, wrap it in a new value to pass to baseclass_offset. No
9393 longer expect baseclass_offset returning -1.
9394 (find_method_list): No longer expect baseclass_offset returning
9395 -1. Use value_contents_for_printing rather than value_contents.
9396 * valprint.c (val_print_invalid_address): New function.
9397 * valprint.h (val_print_invalid_address): Declare.
9398 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9399 and `val' parameters. No longer expect baseclass_offset returning
9400 -1. Adjust.
9401 * gnu-v2-abi.c: Include "exceptions.h".
9402 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9403 parameters. Handle unavailable memory. Recurse through
9404 gnuv2_baseclass_offset directly, rather than through
9405 baseclass_offset. No longer returns -1 on not found, instead
9406 throw an error.
9407 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9408 `val' parameters. Adjust.
9409
1b28d0b3
PA
94102011-02-14 Pedro Alves <pedro@codesourcery.com>
9411
9412 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9413 almost but not quite adjacent.
9414
ec0a52e1
PA
94152011-02-14 Pedro Alves <pedro@codesourcery.com>
9416
9417 * value.h (value_entirely_available): Declare.
9418 * value.c (value_entirely_available): New function.
9419 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9420 real type if the pointer is unavailable.
9421
24e6bcee
PA
94222011-02-14 Pedro Alves <pedro@codesourcery.com>
9423
9424 * valops.c (value_repeat): Use read_value_memory instead of
9425 read_memory.
9426
39d37385
PA
94272011-02-14 Pedro Alves <pedro@codesourcery.com>
9428
9429 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9430 * value.c (value_contents_copy_raw, value_contents_copy): New
9431 functions.
9432 (value_primitive_field): Use value_contents_copy_raw instead of
9433 memcpy.
9434 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9435 memcpy.
9436 (value_array, value_slice): Ditto.
9437 * valarith.c (value_subscripted_rvalue): Use
9438 value_contents_copy_raw instead of memcpy.
9439
a3d34bf4
PA
94402011-02-14 Pedro Alves <pedro@codesourcery.com>
9441
9442 <unavailable> references.
9443
9444 * valops.c (get_value_at): Use value_from_contents_and_address,
9445 avoiding read_memory.
9446
9fc6d940
PA
94472011-02-14 Pedro Alves <pedro@codesourcery.com>
9448
9449 * c-valprint.c (c_val_print): Print a string with unavailable
9450 contents as an array.
9451
5467c6c8
PA
94522011-02-14 Pedro Alves <pedro@codesourcery.com>
9453
9454 * value.h (unpack_bits_as_long): Delete declaration.
9455 (unpack_value_bits_as_long): Declare.
9456 (unpack_value_field_as_long): Declare.
9457 (value_field_bitfield): Declare.
9458 * value.c (unpack_bits_as_long): Rename to...
9459 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9460 value parameters. Return the extracted result in a new output
9461 parameter. If the value contents are unavailable, return false,
9462 otherwise return true.
9463 (unpack_value_bits_as_long): New.
9464 (unpack_field_as_long): Rename to...
9465 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9466 Add embedded_offset and value parameters. Return the extracted
9467 result in a new output parameter. If the value contents are
9468 unavailable, return false, otherwise return true.
9469 (unpack_value_field_as_long): New.
9470 (unpack_field_as_long_1): New.
9471 (unpack_field_as_long): Reimplement as wrapper around
9472 unpack_value_field_as_long_1.
9473 (value_field_bitfield): New function.
9474 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9475 unpack_value_bits_as_long. Mark the value as unavailable, if it
9476 is unavailable.
9477 * jv-valprint.c (java_print_value_fields): Use
9478 value_field_bitfield.
9479 * p-valprint.c (pascal_object_print_value_fields): Use
9480 value_field_bitfield.
9481 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9482
3158c6ed
PA
94832011-02-14 Pedro Alves <pedro@codesourcery.com>
9484
9485 * value.c (get_internalvar_integer): Also return the int value of
9486 TYPE_CODE_INT INTERNALVAR_VALUE values.
9487 (set_internalvar): Don't special case TYPE_CODE_INT.
9488
9fbdca0d
PA
94892011-02-14 Pedro Alves <pedro@codesourcery.com>
9490
9491 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9492 INTERNALVAR_POINTER.
9493 <pointer>: Delete.
9494 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9495 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9496 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9497
c8c1c22f
PA
94982011-02-14 Pedro Alves <pedro@codesourcery.com>
9499
9500 * value.h (value_available_contents_eq): Declare.
9501 * value.c (find_first_range_overlap): New function.
9502 (value_available_contents_eq): New function.
9503 * valprint.c (val_print_array_elements): Use
9504 value_available_contents_eq.
9505 * ada-valprint.c (val_print_packed_array_elements): Use
9506 value_available_contents_eq.
9507 * jv-valprint.c (java_value_print): Use
9508 value_available_contents_eq.
9509
e6e4e701
PA
95102011-02-14 Pedro Alves <pedro@codesourcery.com>
9511
9512 * target.c (target_read_live_memory): New function.
9513 (memory_xfer_live_readonly_partial): New.
9514 (memory_xfer_partial): If reading from a traceframe, fallback to
9515 reading unavailable read-only memory from read-only regions of
9516 live target memory.
9517 * tracepoint.c (disconnect_tracing): Adjust.
9518 (set_current_traceframe): New, factored out from
9519 set_traceframe_number.
9520 (set_traceframe_number): Reimplement to only change the traceframe
9521 number on the GDB side.
9522 (do_restore_current_traceframe_cleanup): Adjust.
9523 (make_cleanup_restore_traceframe_number): New.
9524 (cur_traceframe_number): New global.
9525 (tfile_open): Set cur_traceframe_number to no traceframe.
9526 (set_tfile_traceframe): New function.
9527 (tfile_trace_find): If looking up a traceframe using any method
9528 other than by number, make sure the current tfile traceframe
9529 matches gdb's current traceframe. Update the current tfile
9530 traceframe if the lookup succeeded.
9531 (tfile_fetch_registers, tfile_xfer_partial)
9532 (tfile_get_trace_state_variable_value): Make sure the remote
9533 traceframe matches gdb's current traceframe.
9534 * remote.c (remote_traceframe_number): New global.
9535 (remote_open_1): Set it to -1.
9536 (set_remote_traceframe): New function.
9537 (remote_fetch_registers, remote_store_registers)
9538 (remote_xfer_memory, remote_xfer_partial)
9539 (remote_get_trace_state_variable_value): Make sure the remote
9540 traceframe matches gdb's current traceframe.
9541 (remote_trace_find): If looking up a traceframe using any method
9542 other than by number, make sure the current remote traceframe
9543 matches gdb's current traceframe. Update the current remote
9544 traceframe if the lookup succeeded.
9545 * infrun.c (fetch_inferior_event): Adjust.
9546 * tracepoint.h (set_current_traceframe): Declare.
9547 (get_traceframe_number, set_traceframe_number): Add describing
9548 comments.
9549
e6ca34fc
PA
95502011-02-14 Pedro Alves <pedro@codesourcery.com>
9551
9552 Mark pieces of values as unavailable if the corresponding memory
9553 is unavailable.
9554
9555 * valops.c: Include tracepoint.h.
9556 (value_fetch_lazy): Use read_value_memory.
9557 (read_value_memory): New.
9558 * value.h (read_value_memory): Declare.
9559 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9560 * exec.c (section_table_available_memory): New function.
9561 * exec.h (section_table_available_memory): Declare.
9562
2a7498d8
PA
95632011-02-14 Pedro Alves <pedro@codesourcery.com>
9564
9565 * Makefile.in (SFILES): Add memrange.c.
9566 (HFILES_NO_SRCDIR): Add memrange.h.
9567 (COMMON_OBS): Add memrange.o.
9568 * memrange.c: New file.
9569 * memrange.h: New file.
9570 * tracepoint.c: Include memrange.h.
9571 (struct mem_range): Delete.
9572 (mem_range_s): Delete.
9573 (traceframe_available_memory): New function.
9574 * tracepoint.h (traceframe_available_memory): Declare.
9575
b3b9301e
PA
95762011-02-14 Pedro Alves <pedro@codesourcery.com>
9577
9578 * target.h (struct traceframe_info): Forward declare.
9579 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9580 (struct target_ops) <to_traceframe_info>: New field.
9581 (target_traceframe_info): New.
9582 * target.c (update_current_target): Inherit and default
9583 to_traceframe_info.
9584 * remote.c (PACKET_qXfer_traceframe_info): New.
9585 (remote_protocol_features): Register qXfer:traceframe-info:read.
9586 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9587 (remote_traceframe_info): New.
9588 (init_remote_ops): Install it.
9589 (_initialize_remote): Install "set/show remote traceframe-info"
9590 commands.
9591 * tracepoint.h (parse_traceframe_info): Declare.
9592 * tracepoint.c (struct mem_range): New.
9593 (mem_range_s): New typedef.
9594 (struct traceframe_info): New.
9595 (traceframe_info): New global.
9596 (free_traceframe_info): New function.
9597 (clear_traceframe_info): New function.
9598 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9599 info.
9600 (build_traceframe_info): New function.
9601 (tfile_traceframe_info): New function.
9602 (init_tfile_ops): Install tfile_traceframe_info.
9603 (traceframe_info_start_memory, free_result): New functions.
9604 (memory_attributes, traceframe_info_elements): New globals.
9605 (parse_traceframe_info, get_traceframe_info): New functions.
9606 * features/traceframe-info.dtd: New file.
9607 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9608
4e07d55f
PA
96092011-02-14 Pedro Alves <pedro@codesourcery.com>
9610
9611 Base support for <unavailable> value contents.
9612
4e07d55f
PA
9613 * value.h (value_bytes_available): Declare.
9614 (mark_value_bytes_unavailable): Declare.
9615 * value.c (struct range): New struct.
9616 (range_s): New typedef.
9617 (ranges_overlap): New function.
9618 (range_lessthan): New function.
9619 (ranges_contain_p): New function.
9620 (struct value) <unavailable>: New field.
9621 (value_bytes_available): New function.
9622 (mark_value_bytes_unavailable): New function.
9623 (require_not_optimized_out): Constify parameter.
9624 (require_available): New function.
9625 (value_contents_all, value_contents): Require all bytes be
9626 available.
9627 (value_free): Free `unavailable'.
9628 (value_copy): Copy `unavailable'.
9629 * valprint.h (val_print_unavailable): Declare.
9630 * valprint.c (valprint_check_validity): Rename `offset' parameter
9631 to `embedded_offset'. If printing a scalar, check whether the
9632 value chunk is available.
9633 (val_print_unavailable): New.
9634 (val_print_scalar_formatted): Check whether the value is
9635 available.
9636 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9637 pretty-printing unavailable values.
9638
bc9a5551
JK
96392011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9640
9641 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9642 * c-typeprint.c (c_type_print_args): Update the function comment. New
9643 variable param_type, initialize it. Remove const/volatile qualifiers
9644 for language_cplus and !show_artificial. Use param_type.
9645
93b55aa1
JK
96462011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9647
9648 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9649 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9650 * symtab.h (struct symtab) <next>: Comment extension.
9651
181d9476
YQ
96522011-02-12 Yao Qi <yao@codesourcery.com>
9653
9654 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9655
b708a5c7
JK
96562011-02-11 Yao Qi <yao@codesourcery.com>
9657
9658 * common/Makefile.in: Add copyright header.
9659
c5187ac6
PA
96602011-02-11 Pedro Alves <pedro@codesourcery.com>
9661
9662 * infrun.c (proceed): Move switching out and in of tfind mode from
9663 here ...
9664 (fetch_inferior_event): ... to here.
9665
4f3e6fb7
YQ
96662011-02-11 Yao Qi <yao@codesourcery.com>
9667
9668 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9669 libcommon.a.
9670 * configure.ac: Add common to sub dir.
9671 * configure: Regenerate.
9672
b708a5c7
JK
96732011-02-11 Yao Qi <yao@codesourcery.com>
9674
9675 Build libcommon.a.
9676
9677 * common/Makefile.in: New.
9678 * common/configure.ac: New.
9679 * common/aclocal.m4: New.
9680 * common/configure: Generate.
9681
2287cc7e
PA
96822011-02-10 Pedro Alves <pedro@codesourcery.com>
9683
9684 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9685 side of the parenthesis.
9686
9687 Merge from GCC:
9688 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9689 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9690
fd62cb89
MS
96912011-02-08 Michael Snyder <msnyder@vmware.com>
9692
9693 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9694
56d2815c
JK
96952011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9698 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9699 psubd and paddd.
9700
4f7d61a8
JK
97012011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9702
9703 PR 12361.
9704 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9705 phsubsw.
9706 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9707 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9708
54fcddd0
UW
97092011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9710
9711 * dwarf2read.c (read_subroutine_type): Set special calling
9712 convention flag for functions compiled by IBM XL C for OpenCL.
9713 * ppc-sysv-tdep.c: Include "dwarf2.h"
9714 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9715 calling convention.
9716 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9717 IBM OpenCL vector types calling convention.
9718 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9719 (ppc_sysv_abi_broken_return_value): Likewise.
9720 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9721 types calling convention.
9722 (ppc64_sysv_abi_return_value): Likewise.
9723 * spu-tdep.c: Include "dwarf2.h"
9724 (spu_return_value): Implement IBM OpenCL vector types calling
9725 convention.
9726
d6dafb7c
UW
97272011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9728
9729 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9730 correct ABI for AltiVec vector arguments.
9731
32b72a42
PA
97322011-02-07 Pedro Alves <pedro@codesourcery.com>
9733
9734 * valprint.c (val_print): Extend comment.
9735 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9736 interface explanation to val_print.
9737 (ada_val_print_array): Adjust comment to current interface.
9738 (print_field_values): Adjust comment to current interface.
9739 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9740 explanation to val_print.
9741 * f-valprint.c (f_val_print): Ditto.
9742 * jv-valprint.c (java_val_print): Ditto.
9743 * m2-valprint.c (m2_val_print): Ditto.
9744 * p-valprint.c (pascal_val_print): Ditto.
9745
9998af43
TJB
97462011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9747
9748 * breakpoint.c (parse_breakpoint_sals): Fix description.
9749
505500db 97502011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9751 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9752
9753 * python/py-inferior.c (python_on_normal_stop): New function.
9754 (python_on_resume): New function.
9755 (python_inferior_exit): New function.
9756 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9757 inferior_exit observers.
9758 * python/py-evtregistry.c: New file.
9759 * python/py-threadevent.c : New file.
9760 * python/py-event.c: New file.
9761 * python/py-evts.c: New file.
9762 * python/py-continueevent.c: New file.
9763 * python/py-bpevent.c: New file.
9764 * python/py-signalevent.c: New file.
9765 * python/py-exetiedevent.c: New file.
9766 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9767 Move struct breakpoint_object from here...
9768 * python/python-internal.h: ... to here.
9769 * python/py-event.h: New file.
9770 * python/py-events.h: New file.
9771 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9772 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9773 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9774 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9775 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9776 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9777 Add build rules for all the above.
9778
9e0ac564
TT
97792011-02-04 Tom Tromey <tromey@redhat.com>
9780
9781 * dwarf2read.c (dwarf2_section_empty_p): New function.
9782 (dwarf2_read_section): Use dwarf2_section_empty_p.
9783 (dwarf2_section_size): New function.
9784 (dwarf2_get_section_info): Unconditionally read section.
9785 (dwarf2_read_index): Use dwarf2_section_empty_p.
9786 (partial_read_comp_unit_head): Use dwarf2_section_size.
9787 (dwarf2_symbol_mark_computed): Likewise.
9788
eee5b35e
DD
97892011-02-04 David Daney <ddaney@caviumnetworks.com>
9790
9791 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9792
385203ed
DD
97932011-02-04 David Daney <ddaney@caviumnetworks.com>
9794
9795 * mips-linux-tdep.c: Include xml-syscall.h.
9796 (mips_linux_get_syscall_number): New function.
9797 (mips_linux_init_abi): Add calls to
9798 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9799 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9800 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9801 * syscalls/mips-n32-linux.xml: New file.
9802 * syscalls/mips-n64-linux.xml: New file.
9803 * syscalls/mips-o32-linux.xml: New file.
9804
9277c30c
UW
98052011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9806
9807 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9808 Complain about inverted range entries.
9809 (dwarf2_record_block_ranges): Likewise.
9810
a3be7890
TJB
98112011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9812
9813 Fix some typos.
9814 * breakpoint.c (update_watchpoint): Fix name of the
9815 update_global_location_list function.
9816 (print_one_breakpoint): Fix typo.
9817 (_initialize_breakpoint): Remove extra space in hbreak help
9818 string.
9819 * breakpoint.h (struct bp_location) <length>: Fix field
9820 description.
9821
041274d8
PA
98222011-02-04 Pedro Alves <pedro@codesourcery.com>
9823
9824 * regcache.c (registers_changed_ptid): Don't explictly always
9825 clear `current_regcache'. Only clear current_thread_ptid and
9826 current_thread_arch when PTID matches. Only reinit the frame
9827 cache if PTID matches the current inferior_ptid. Move alloca(0)
9828 call to ...
9829 (registers_changed): ... here.
9830
c1c2ab58
UW
98312011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9832
9833 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9834 starts with __stack_chk_guard as stack guard symbol.
9835
9011945e
AB
98362011-02-03 Andrew Burgess <aburgess@broadcom.com>
9837
9838 * disasm.c (compare_lines): Handle the end of sequence markers
9839 within the line table to better support disassembling over
9840 compilation unit boundaries.
9841
e0634ccf
UW
98422011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9843
9844 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9845 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9846 implementation even if no symbols are available.
9847 (thumb_analyze_prologue): Update call to skip_prologue_function.
9848 (arm_analyze_prologue): Likewise.
9849
0e9e9abd
UW
98502011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9851
9852 * arm-tdep.c: Include "observer.h".
9853 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9854 (arm_exidx_data_key): New static variable.
9855 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9856 (struct arm_exidx_data): Likewise.
9857 (arm_exidx_data_free): New function.
9858 (arm_compare_exidx_entries): Likewise.
9859 (arm_obj_section_from_vma): Likewise.
9860 (arm_exidx_new_objfile): Likewise.
9861 (arm_find_exidx_entry): Likewise.
9862 (arm_exidx_fill_cache): Likewise.
9863 (arm_exidx_unwind_sniffer): Likewise.
9864 (arm_exidx_unwind): New global variable.
9865 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9866 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9867 observer. Register arm_exidx_data_key as objfile data.
9868
2e9e421f
UW
98692011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9870
9871 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9872 due to accessing uninitialized variable. Fix indentation.
9873
580688f3
PA
98742011-02-02 Pedro Alves <pedro@codesourcery.com>
9875
9876 * c-valprint.c (c_value_print): When doing virtual base pointer
9877 adjustment, create a new value with adjusted contents rather than
9878 changing the contents of the value being printed (and getting it
9879 wrong).
9880
3d2c1d41
PA
98812011-02-02 Pedro Alves <pedro@codesourcery.com>
9882
9883 * xml-support.c (xml_find_attribute): New.
9884 (xinclude_start_include): Use it.
9885 * xml-support.h (xml_find_attribute): Declare.
9886 * memory-map.c (memory_map_start_memory)
9887 (memory_map_start_property): Use xml_find_attribute.
9888 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9889 xml_find_attribute.
9890 * remote.c (start_thread): Use xml_find_attribute.
9891 * solib-target.c (library_list_start_segment)
9892 (library_list_start_section, library_list_start_library)
9893 (library_list_start_list): Use xml_find_attribute.
9894 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9895 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9896 (tdesc_start_field): Use xml_find_attribute.
9897
0af3e2db
UW
98982011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9899
9900 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9901 (BUILD_OCL_VTYPES): Update.
9902
c1039e3c
JB
99032011-02-02 Joel Brobecker <brobecker@adacore.com>
9904
9905 * configure.ac: Work around non-GNU sed limitation when computing
9906 python version number.
9907 * configure: Regenerate.
9908
600ea1be
JK
99092011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9910
9911 Fix debug printing of TYPE_INSTANCE.
9912 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9913 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9914
56c12414
JK
99152011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9916
9917 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9918 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9919 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9920 * ada-operator.inc: Rename the file to ...
9921 * ada-operator.def: ... here, wrap all the entries by macro OP.
9922 * expprint.c (op_name_standard): Remove all the entries. Include
9923 "std-operator.def" instead.
9924 * expression.h (enum exp_opcode): Include "std-operator.def" and
9925 "ada-operator.def". Move all the entries ...
9926 * std-operator.def: ... here, wrap all the entries by macro OP.
9927
c52b559d
PP
99282011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9929
9930 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9931 * breakpoint.c (remove_jit_event_breakpoints): New function.
9932 * jit.c (jit_descriptor_addr): Delete.
9933 (registering_code): Delete.
9934 (clear_int): Delete.
9935 (jit_inferior_data): New variable.
9936 (struct jit_inferior_data): New type.
9937 (get_jit_inferior_data): New function.
9938 (jit_inferior_data_cleanup): New function.
9939 (jit_read_descriptor): Adjust.
9940 (jit_register_code): Adjust.
9941 (jit_breakpoint_re_set_internal): New function; move code here ...
9942 (jit_inferior_init): ... from here.
9943 (jit_breakpoint_re_set): Adjust.
9944 (jit_reset_inferior_data_and_breakpoints): New function.
9945 (jit_inferior_created_observer): Adjust.
9946 (jit_inferior_exit_hook): Adjust.
9947 (jit_executable_changed_observer): New function.
9948 (jit_event_handler): Adjust.
9949 (_initialize_jit): Adjust.
9950
e839132d
MS
99512011-01-31 Michael Snyder <msnyder@vmware.com>
9952
9953 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9954 line.
9955
47a80e90
TT
99562011-01-31 Tom Tromey <tromey@redhat.com>
9957
9958 PR python/12216:
9959 * python/python.c (execute_gdb_command): Call
9960 prevent_dont_repeat.
9961 * top.c (suppress_dont_repeat): New global.
9962 (dont_repeat): Use it.
9963 (prevent_dont_repeat): New function.
9964 * command.h (prevent_dont_repeat): Declare.
9965
45a43567
TT
99662011-01-31 Tom Tromey <tromey@redhat.com>
9967
9968 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9969 * python/py-breakpoint.c (bppy_set_silent): Use
9970 breakpoint_set_silent.
9971 (bppy_set_thread): Use breakpoint_set_thread.
9972 (bppy_set_task): Use breakpoint_set_task.
9973 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9974 (breakpoint_set_task): Declare.
9975 (make_breakpoint_silent): Remove.
9976 * breakpoint.c (breakpoint_set_silent): New function.
9977 (breakpoint_set_thread): Likewise.
9978 (breakpoint_set_task): Likewise.
9979 (make_breakpoint_silent): Remove.
9980
09d682a4
TT
99812011-01-31 Tom Tromey <tromey@redhat.com>
9982
9983 * breakpoint.h (user_breakpoint_p): Declare.
9984 * breakpoint.c (user_breakpoint_p): New function.
9985 (breakpoint_1): Use it.
9986 (save_breakpoints): Likewise.
9987
9c4ea6c5
JB
99882011-01-31 Joel Brobecker <brobecker@adacore.com>
9989
9990 * configure.ac: Add handling of Python distribution on Windows.
9991 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9992 sysconfig variables are not defined, then do not use them.
9993 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9994 instead. On Windows, return all paths using forward-slashes
9995 rather than backslashes.
9996
ac534cba
JB
99972011-01-31 Joel Brobecker <brobecker@adacore.com>
9998
9999 * configure.ac: Remove fallback behavior for building
10000 against Python. Remove tweaking of Python include path.
10001 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10002 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10003 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10004 Always restore CPPFLAGS and LIBS after linking test.
10005 * configure: Regenerated.
10006 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10007 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10008 * python/python-internal.h: Adjust includes of Python .h files.
10009
c2f0d045
JB
100102011-01-31 Joel Brobecker <brobecker@adacore.com>
10011
10012 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10013 in error message.
10014
6b0c4c1f
JB
100152011-01-31 Joel Brobecker <brobecker@adacore.com>
10016
10017 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10018 value test.
10019
672c9795
YQ
100202011-01-31 Yao Qi <yao@codesourcery.com>
10021
10022 * arm-linux-nat.c: Update calls to regcache_register_status
10023 instead of regcache_valid_p.
10024 * aix-thread.c: Likewise.
10025 * i386gnu-nat.c: Likewise.
10026
80b23b6a
JK
100272011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10028
10029 Fix crash.
10030 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10031 touching TYPE_FIELD_ARTIFICIAL.
10032
4cd712bd
RE
100332011-01-28 Richard Earnshaw <rearnsha@arm.com>
10034
10035 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10036 Committers.
10037
ffd5ec24
PA
100382011-01-28 Pedro Alves <pedro@codesourcery.com>
10039
10040 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10041 selected, don't try iterating over the traceframe's blocks.
10042 (tfile_has_stack): If there's no traceframe selected, then there's
10043 no stack.
10044 (tfile_has_registers): If there's no traceframe selected, then
10045 there's no registers.
10046
e8c9e0a1
PA
100472011-01-28 Pedro Alves <pedro@codesourcery.com>
10048
10049 * target.c (memory_xfer_partial): No need to restore shadows if we
10050 haven't read anything.
10051
de15c4ab
PA
100522011-01-28 Pedro Alves <pedro@codesourcery.com>
10053
10054 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10055 and val_print_scalar_formatted.
10056
9f41c731
PA
100572011-01-27 Pedro Alves <pedro@codesourcery.com>
10058
10059 * tracepoint.c (tfile_read): New.
10060 (tfile_open): Use it.
10061 (tfile_get_traceframe_address): Use it.
10062 (tfile_trace_find): Use it.
10063 (walk_blocks_callback_func): New typedef.
10064 (match_blocktype): New function.
10065 (traceframe_walk_blocks): New function.
10066 (traceframe_find_block_type): New function.
10067 (tfile_fetch_registers, tfile_xfer_partial)
10068 (tfile_get_trace_state_variable_value): Use
10069 traceframe_find_block_type and tfile_read.
10070
cdefc55d
KB
100712011-01-26 Kevin Buettner <kevinb@redhat.com>
10072
10073 * remote-mips.c: Add internationalization mark ups. Remove
10074 trailing \n from already marked up strings.
10075
a81766d8
TT
100762011-01-26 Tom Tromey <tromey@redhat.com>
10077
10078 * python/py-prettyprint.c (print_string_repr): Clear
10079 'addressprint' option when calling val_print_string.
10080 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10081 option when calling val_print_string.
10082
74aedc46
TT
100832011-01-26 Tom Tromey <tromey@redhat.com>
10084
10085 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10086 GDB_PY_LL_ARG.
10087 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10088 macros.
10089 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10090 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10091 (gdb_py_long_as_ulongest): New defines.
10092 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10093 (gdb_py_int_as_long): Declare.
10094 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10095 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10096 (valpy_long): Add comment.
10097 * python/py-utils.c (get_addr_from_python): Use
10098 gdb_py_long_as_ulongest. Handle overflow properly.
10099 (gdb_py_object_from_longest): New function.
10100 (gdb_py_object_from_ulongest): Likewise.
10101 (gdb_py_int_as_long): Likewise.
10102 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10103 * python/py-symtab.c (salpy_get_pc): Use
10104 gdb_py_long_from_ulongest.
10105 (salpy_get_line): Use PyInt_FromLong.
10106 * python/py-param.c (set_parameter_value): Use
10107 gdb_py_int_as_long.
10108 * python/py-lazy-string.c (stpy_get_address): Use
10109 gdb_py_long_from_ulongest.
10110 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10111 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10112 * python/py-breakpoint.c (bppy_set_thread): Use
10113 gdb_py_int_as_long.
10114 (bppy_set_task): Likewise.
10115 (bppy_set_ignore_count): Likewise.
10116 (bppy_set_hit_count): Likewise.
10117 * python/py-block.c (blpy_get_start): Use
10118 gdb_py_object_from_ulongest.
10119 (blpy_get_end): Likewise.
10120 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10121
e4f6d2ec
TJB
101222011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10123
10124 PR/symtab 11766:
10125 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10126 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10127 equality test for objfile, initialize addr_low if needed.
10128
b30aa278
PA
101292011-01-25 Pedro Alves <pedro@codesourcery.com>
10130
10131 * tui/tui-regs.c (tui_register_format): Remove dead code.
10132
ab2188aa
PA
101332011-01-25 Pedro Alves <pedro@codesourcery.com>
10134
10135 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10136 instead of print_scalar_formatted.
10137 (print_scalar_formatted): Don't handle 's' format strings here,
10138 and add an assertion that we never see such format here.
10139 * valprint.h (val_print_scalar_formatted): Declare.
10140 * valprint.c (val_print_scalar_formatted): New.
10141 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10142 instead of print_scalar_formatted.
10143 * jv-valprint.c (java_val_print): Ditto.
10144 * p-valprint.c (pascal_val_print): Ditto.
10145 * ada-valprint.c (ada_val_print_1): Ditto.
10146 * f-valprint.c (f_val_print): Ditto.
10147 * infcmd.c (registers_info): Ditto.
10148 * m2-valprint.c (m2_val_print): Ditto.
10149
66d61a4c
PA
101502011-01-25 Pedro Alves <pedro@codesourcery.com>
10151
10152 * m2-valprint.c (print_unbounded_array): Pass
10153 value_contents_for_printing rather than value_contents, to
10154 m2_print_array_contents. Also pass in the value.
10155
831adc1f
JK
101562011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10157
10158 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10159 (save_gdb_index_command): Switch to .gdb_index version 4.
10160
20622269
PA
101612011-01-25 Pedro Alves <pedro@codesourcery.com>
10162
10163 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10164 than frame_register, and always pass a valid value to val_print.
10165
585fdaa1
PA
101662011-01-25 Pedro Alves <pedro@codesourcery.com>
10167
10168 Centralize printing "<optimized out>".
10169
10170 * valprint.h (val_print_optimized_out): Declare.
10171 * cp-valprint.c (cp_print_value_fields): Use
10172 val_print_optimized_out.
10173 * jv-valprint.c (java_print_value_fields): Ditto.
10174 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10175 * printcmd.c (print_formatted): Ditto.
10176 * valprint.c (valprint_check_validity): Ditto.
10177 (value_check_printable): Ditto.
10178 (val_print_optimized_out): New.
10179
29ec5263
PA
101802011-01-25 Pedro Alves <pedro@codesourcery.com>
10181
10182 * infcmd.c (default_print_registers_info): Allocate values so to
10183 never pass a NULL value to val_print.
10184
de4127a3
PA
101852011-01-25 Pedro Alves <pedro@codesourcery.com>
10186
10187 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10188 boolean. Make sure to always pass a value that matches the
10189 contents buffer to callees. Preserve `address' for following
10190 iterations.
10191 * value.c (value_contents_for_printing_const): New.
10192 (value_address): Constify value argument.
10193 * value.h (value_contents_for_printing_const): Declare.
10194 (value_address): Constify value argument.
10195
ee99023e
PA
101962011-01-25 Pedro Alves <pedro@codesourcery.com>
10197
10198 * regcache.c (struct regcache_descr): Rename
10199 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10200 and sizeof_cooked_register_valid_p to
10201 sizeof_cooked_register_status.
10202 (init_regcache_descr): Adjust.
10203 (struct regcache): Rename register_valid_p field to
10204 register_status.
10205 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10206 (do_cooked_read): Adjust.
10207 (regcache_valid_p): Rename to ...
10208 (regcache_register_status): ... this. Adjust.
10209 (regcache_invalidate): Adjust.
10210 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10211 Adjust.
10212 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10213 as unavailable, not valid.
10214 (regcache_dump): Adjust.
10215 * regcache.h (enum register_status): New.
10216 (regcache_register_status): Declare.
10217 (regcache_invalidate): Delete declaration.
10218 * corelow.c (get_core_registers): Adjust.
10219 * tracepoint.c (tfile_fetch_registers): Adjust.
10220 * trad-frame.c (REG_VALUE): Rename to ...
10221 (TF_REG_VALUE): ... this.
10222 (REG_UNKNOWN): Rename to ...
10223 (TF_REG_UNKNOWN): ... this.
10224 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10225 * mi/mi-main.c (register_changed_p): Adjust.
10226
99e42fd8
PA
102272011-01-25 Pedro Alves <pedro@codesourcery.com>
10228
10229 * regcache.c (struct regcache_descr): Remove outdated comment.
10230 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10231 overallocate hack.
10232 (regcache_xmalloc): Rename to ...
10233 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10234 Allocate the regcache type accordingly.
10235 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10236 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10237 cooked registers, not raw.
10238 (regcache_dup_no_passthrough): Delete.
10239 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10240 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10241 mention obsolete write_register_bytes.
10242 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10243
f7605bc2
PA
102442011-01-25 Pedro Alves <pedro@codesourcery.com>
10245
10246 Stop remote_read_bytes from handling partial reads itself.
10247
10248 * remote-fileio.c: Include target.h.
10249 (remote_fileio_write_bytes): Delete.
10250 (remote_fileio_func_open, remote_fileio_func_write)
10251 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10252 target_read_memory.
10253 (remote_fileio_func_stat): Use target_read_memory and
10254 target_write_memory.
10255 (remote_fileio_func_gettimeofday): Use target_write_memory.
10256 (remote_fileio_func_system): Use target_read_memory.
10257 * remote.c (remote_write_bytes): Make it static.
10258 (remote_read_bytes): Don't handle partial reads here.
10259 * remote.h (remote_read_bytes): Delete declaration.
10260
efc0eabd
PA
102612011-01-25 Pedro Alves <pedro@codesourcery.com>
10262
10263 Simplify XML parsing a bit.
10264
10265 * xml-support.h (gdb_xml_parse_quick): Declare.
10266 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10267 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10268 parameter.
10269 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10270 gdb_xml_create_parser_and_cleanup_1.
10271 (gdb_xml_parse_quick): New.
10272 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10273 * osdata.c (osdata_parse): Ditto.
10274 * remote.c (remote_threads_info): Ditto.
10275 * solib-target.c (solib_target_parse_libraries): Ditto.
10276 * xml-syscall.c (syscall_parse_xml): Ditto.
10277 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10278
314d366a
KB
102792011-01-24 Kevin Buettner <kevinb@redhat.com>
10280
10281 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10282 with remote-mips.o added to gdb_target_obs.
10283 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10284
a491d753
PA
102852011-01-24 Pedro Alves <pedro@codesourcery.com>
10286
10287 * ada-valprint.c (val_print_packed_array_elements): Pass the
10288 correct struct value to val_print.
10289 (ada_val_print_1): Ditto.
10290
490f124f
PA
102912011-01-24 Pedro Alves <pedro@codesourcery.com>
10292
10293 Don't lose embedded_offset in printing routines throughout.
10294
10295 * valprint.h (val_print_array_elements): Change prototype.
10296 * valprint.c (val_print_array_elements): Add `embedded_offset'
10297 parameter, and adjust to pass it down to val_print, while passing
10298 `valaddr' or `address' unmodified. Take embedded_offset into
10299 account when checking repetitions.
10300 * c-valprint.c (c_val_print): Pass embedded_offset to
10301 val_print_array_elements instead of adjusting `valaddr' and
10302 `address'.
10303 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10304 embedded_offset to val_print_array_elements instead of adjusting
10305 `valaddr'.
10306 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10307 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10308 val_print_array_elements and pascal_object_print_value_fields
10309 instead of adjusting `valaddr'.
10310 (pascal_object_print_value_fields): Add `offset' parameter, and
10311 adjust to use it.
10312 (pascal_object_print_value): Add `offset' parameter, and adjust to
10313 use it.
10314 (pascal_object_print_static_field): Use
10315 value_contents_for_printing/value_embedded_offset, rather than
10316 value_contents.
10317 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10318 parameter, and adjust to use it. Use
10319 value_contents_for_printing/value_embedded_offset, rather than
10320 value_contents.
10321 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10322 (ada_val_print_array): Add `offset' parameter, and adjust to use
10323 it.
10324 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10325 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10326 Instead work with offsets. Use
10327 value_contents_for_printing/value_embedded_offset, rather than
10328 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10329 and use value_from_pointer to extract a target pointer, rather
10330 than value_from_longest.
10331 (print_variant_part): Add `offset' parameter. Replace
10332 `outer_valaddr' parameter by a new `outer_offset' parameter.
10333 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10334 (ada_value_print): Use
10335 value_contents_for_printing/value_embedded_offset, rather than
10336 value_contents.
10337 (print_record): Add `offset' parameter, and adjust to pass it
10338 down.
10339 (print_field_values): Add `offset' parameter. Replace
10340 `outer_valaddr' parameter by a new `outer_offset' parameter.
10341 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10342 Use value_contents_for_printing/value_embedded_offset, rather than
10343 value_contents.
10344 * d-valprint.c (dynamic_array_type): Use
10345 value_contents_for_printing/value_embedded_offset, rather than
10346 value_contents.
10347 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10348 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10349 (java_print_value_fields): Take `offset' into account. Don't
10350 re-adjust `valaddr'. Instead pass down adjusted offsets.
10351 (java_val_print): Take `embedded_offset' into account. Pass it to
10352 java_print_value_fields.
10353 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10354 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10355 down adjusted offsets.
10356 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10357 (f_val_print): Take `embedded_offset' into account.
10358
7bfc9434
JB
103592011-01-21 Joel Brobecker <brobecker@adacore.com>
10360
10361 * inflow.c: Include "gdbcmd.h".
10362 (interactive_mode): New static global, moved here from top.c.
10363 (show_interactive_mode): New function, moved here from top.c.
10364 use gdb_has_a_terminal instead of input_from_terminal_p to
10365 determine the current mode.
10366 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10367 setting.
10368 (_initialize_inflow): Add the "set/show interactive-mode"
10369 commands. Moved here from top.c, after having adjusted slightly
10370 the help text.
10371 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10372 to inflow.c.
10373 (input_from_terminal_p): Remove handling of "interactive-mode"
10374 setting, moved to infow.c.
10375 (init_main): Remove creation of the "set/show interactive-mode"
10376 commands, moved to inflow.c.
10377
44603653
JB
103782011-01-19 Joel Brobecker <brobecker@adacore.com>
10379
10380 * NEWS: Add entry for native ia64-hpux support.
10381
4694da01
TT
103822011-01-19 Tom Tromey <tromey@redhat.com>
10383
10384 PR mi/8618:
10385 * thread.c (free_thread): Free 'name'.
10386 (print_thread_info): Emit thread name. Change CLI output.
10387 (thread_name_command): New function.
10388 (do_captured_thread_select): Emit newline.
10389 (_initialize_thread): Register 'thread name' command.
10390 * target.h (struct target_ops) <to_thread_name>: New field.
10391 (target_thread_name): New macro.
10392 * target.c (update_current_target): Handle to_thread_name.
10393 * python/py-infthread.c (thpy_get_name): New function.
10394 (thpy_set_name): Likewise.
10395 (thread_object_getset): Add "name".
10396 * linux-nat.c (linux_nat_thread_name): New function.
10397 (linux_nat_add_target): Set to_thread_name.
10398 * gdbthread.h (struct thread_info) <name>: New field.
10399
10d44370
JB
104002011-01-18 Joel Brobecker <brobecker@adacore.com>
10401
10402 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10403 (ada_val_print_1): Likewise.
10404
e3acb115
JB
104052011-01-18 Joel Brobecker <brobecker@adacore.com>
10406
10407 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10408 upper limit address is not greater than the function end address
10409 when the upper limit could not be computed using the debugging
10410 info.
10411
dc92e161
TT
104122011-01-17 Tom Tromey <tromey@redhat.com>
10413
10414 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10415 get_regcomp_error.
10416 * utils.c: Include gdb_regex.h.
10417 (do_regfree_cleanup): New function.
10418 (make_regfree_cleanup): Likewise.
10419 (get_regcomp_error): Likewise.
10420 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10421
f55af66d
TT
104222011-01-17 Tom Tromey <tromey@redhat.com>
10423
10424 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10425 re_compile_fastmap.
10426
a5a44b53
PM
104272011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10428
10429 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10430 for internal variables.
10431 (last_was_structop): New static variable.
10432 (COMPLETE): New token.
10433 (field_exp): New rule to group all '.' suffix handling.
10434 Add mark_struct_expression calls when approriate to be able
10435 to correctly find fields for completion.
10436 (yylex): Adapt to handle field completion and set INTVAR when
10437 required.
10438
2c291032
YQ
104392011-01-14 Yao Qi <yao@codesourcery.com>
10440
10441 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10442 save_reggroup, restore_reggroup and all_reggroup.
10443
447b483c
JB
104442011-01-14 Joel Brobecker <brobecker@adacore.com>
10445
10446 * ada-valprint. (ada_printchar): Use the correct type length
10447 in call to ada_emit_char.
10448 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10449
7b64a93b
PM
104502011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10451
10452 * solib-som.h (hpux_major_release): Declare variable here.
10453 * solib-som.c: Remove <sys/utsname.h> header.
10454 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10455 (hpux_major_release): Make global, change default value to
10456 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10457 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10458 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10459 Add "solib-som.h" header.
10460 (set_hpux_major_release): New function.
10461 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10462
4e18c053
MF
104632011-01-14 Mike Frysinger <vapier@gentoo.org>
10464
10465 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10466
a9df6b22
JB
104672011-01-14 Joel Brobecker <brobecker@adacore.com>
10468
10469 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10470 new-line at end of warning message.
10471 (ia64_hpux_store_register): Remove trailing new-line at end of
10472 error message.
10473 * ia64-hpux-tdep.c: Rephrase comment.
10474 * solib-ia64-hpux.c (struct dld_info): Change type of field
10475 dld_flags from "long long" to ULONGEST.
10476
ecb956dd
PA
104772011-01-14 Pedro Alves <pedro@codesourcery.com>
10478
10479 * target.h (deprecated_child_ops): Delete declaration.
10480 * target.c (deprecated_child_ops): Delete definition.
10481
76adfcae
PA
104822011-01-14 Pedro Alves <pedro@codesourcery.com>
10483
10484 * Makefile.in (hpux-thread.o): Delete rule.
10485 * configure.ac: Don't check for HPUX DCE threads support.
10486 * configure, config.in: Regenerate.
10487 * hppa-hpux-nat.c (child_suppress_run): Delete.
10488 (hppa_hpux_child_can_run): Delete.
10489 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10490 * hpux-thread.c: Delete.
10491
042e866e
JB
104922011-01-13 Joel Brobecker <brobecker@adacore.com>
10493
10494 * hpux-thread.c (hpux_pid_to_str): Delete.
10495
4ffa5a33
JB
104962011-01-13 Joel Brobecker <brobecker@adacore.com>
10497
10498 * ada-valprint.c (ada_emit_char): Remove strange code.
10499 Check that c is <= UCHAR_MAX before passing it to isascii.
10500 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10501
de8fa76c
JB
105022011-01-13 Joel Brobecker <brobecker@adacore.com>
10503
10504 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10505 to the case where instream is stdin.
10506
c4de7027
JB
105072011-01-13 Joel Brobecker <brobecker@adacore.com>
10508
10509 * ia64-tdep.h (struct regcache): Forward declare.
10510 (struct ia64_infcall_ops): New struct type.
10511 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10512 and "infcall_ops".
10513 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10514 Renames ia64_find_global_pointer.
10515 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10516 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10517 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10518 methods.
10519 (ia64_infcall_ops): New static global constant.
10520 (ia64_gdbarch_init): Set tdep->infcall_ops.
10521 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10522 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10523 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10524 (ia64_hpux_dummy_code): New static global constant.
10525 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10526 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10527 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10528 New function.
10529 (ia64_hpux_infcall_ops): New static global constant.
10530 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10531 for inferior function calls to work properly on ia64-hpux.
10532
77ca787b
JB
105332011-01-13 Joel Brobecker <brobecker@adacore.com>
10534
10535 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10536 * ia64-tdep.h (struct frame_info): forward declaration.
10537 (struct gdbarch_tdep): Add field size_of_register_frame.
10538 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10539 to determine the size of the register frame.
10540 (ia64_size_of_register_frame): New function.
10541 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10542 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10543 (IA64_HPUX_UREG_REASON): New macro.
10544 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10545 New functions.
10546 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10547 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10548 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10549 objects.
10550
92c9a463
JB
105512011-01-13 Joel Brobecker <brobecker@adacore.com>
10552
10553 Add support for ia64-hpux.
10554 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10555 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10556
10557 * configure.host: Add handling for ia64-hpux hosts. Add associated
10558 floatformats.
10559 * configure.tgt: Add handling for ia64-hpux targets.
10560 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10561 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10562 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10563
f688d93f
JB
105642011-01-13 Joel Brobecker <brobecker@adacore.com>
10565
10566 [ttrace] Compute thread list immediately after attach.
10567 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10568 New subprogram.
10569 (inf_ttrace_attach): Use it.
10570
1b89e62f
JB
105712011-01-13 Joel Brobecker <brobecker@adacore.com>
10572
10573 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10574 if we could not determine the frame's function address. Instead,
10575 use the frame's PC, and then continue.
10576
3e5e6e2a
JB
105772011-01-13 Joel Brobecker <brobecker@adacore.com>
10578
10579 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10580 not already defined.
10581
825d6d8a
JB
105822011-01-13 Joel Brobecker <brobecker@adacore.com>
10583
10584 * ia64-tdep.c (ia64_struct_type_p): New function.
10585 (ia64_extract_return_value): Handle integral values that are
10586 less than 8 bytes long.
10587 (ia64_push_dummy_call): Likewise.
10588
7458e667
JB
105892011-01-13 Joel Brobecker <brobecker@adacore.com>
10590
10591 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10592 floatformat_ia64_ext.
10593 (floatformat_ia64_ext_big): New static const.
10594 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10595
1b05df00
TT
105962011-01-12 Tom Tromey <tromey@redhat.com>
10597
10598 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10599 messages.
10600 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10601 (mi_cmd_thread_list_ids): Likewise.
10602 (mi_cmd_data_list_changed_registers): Likewise.
10603 (mi_cmd_data_list_register_values): Likewise.
10604 (mi_cmd_data_write_register_values): Likewise.
10605 (mi_cmd_data_evaluate_expression): Likewise.
10606 (mi_cmd_data_read_memory): Likewise.
10607 (mi_cmd_data_read_memory_bytes): Likewise.
10608 (mi_cmd_data_write_memory): Likewise.
10609 (mi_cmd_enable_timings): Likewise.
10610 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10611 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10612 (mi_cmd_var_delete): Likewise.
10613 (mi_cmd_var_set_format): Likewise.
10614 (mi_cmd_var_show_format): Likewise.
10615 (mi_cmd_var_info_num_children): Likewise.
10616 (mi_cmd_var_list_children): Likewise.
10617 (mi_cmd_var_info_type): Likewise.
10618 (mi_cmd_var_info_expression): Likewise.
10619 (mi_cmd_var_show_attributes): Likewise.
10620 (mi_cmd_var_assign): Likewise.
10621 (mi_cmd_var_update): Likewise.
10622 (mi_cmd_enable_pretty_printing): Likewise.
10623 (mi_cmd_var_set_update_range): Likewise.
10624 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10625 messages.
10626 (mi_cmd_target_file_put): Likewise.
10627 (mi_cmd_target_file_delete): Likewise.
10628 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10629 messages.
10630 (mi_cmd_stack_info_depth): Likewise.
10631 (mi_cmd_stack_list_locals): Likewise.
10632 (mi_cmd_stack_list_args): Likewise.
10633 (mi_cmd_stack_select_frame): Likewise.
10634 (mi_cmd_stack_select_frame): Likewise.
10635 (mi_cmd_stack_info_frame): Likewise.
10636 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10637 messages.
10638 (mi_cmd_file_list_exec_source_files): Likewise.
10639 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10640 (mi_cmd_env_cd): Likewise.
10641 (mi_cmd_env_path): Likewise.
10642 (mi_cmd_env_dir): Likewise.
10643 (mi_cmd_inferior_tty_show): Likewise.
10644 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10645 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10646 (mi_cmd_break_watch): Likewise.
10647
ad422571
TJB
106482011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10649
10650 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10651 (ppc_linux_insert_hw_breakpoint): Likewise.
10652 (ppc_linux_remove_hw_breakpoint): Likewise.
10653 (ppc_linux_insert_watchpoint): Likewise.
10654
c2ff108b
JK
106552011-01-12 Andrew Burgess <aburgess@broadcom.com>
10656 Jan Kratochvil <jan.kratochvil@redhat.com>
10657
10658 PR fortran/11104 and DWARF unbound arrays detection.
10659 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10660 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10661 unspecified upper bound.
10662 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10663 variables array_size_array, tmp_type and offset_item. New variable
10664 array. Remove call to f77_get_upperbound. New variables array_type
10665 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10666 the final call to deprecated_set_value_type.
10667
41e8491f
JK
106682011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10669
10670 Make value allocations more lazy.
10671 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10672 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10673 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10674 instead of allocate_value and set_value_lazy.
10675 * findvar.c (value_of_register_lazy): Likewise.
10676 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10677 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10678 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10679 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10680 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10681 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10682 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10683 the end, remove set_value_lazy there.
10684 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10685 instead of allocate_value and set_value_lazy when possible.
10686 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10687 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10688 of allocate_value and set_value_lazy.
10689 (value_from_contents_and_address): Use allocate_value_lazy instead of
10690 allocate_value and set_value_lazy when possible.
10691
b716877b
AB
106922011-01-12 Andrew Burgess <aburgess@broadcom.com>
10693
10694 * disasm.c (dump_insns): Support dumping opcodes for MI.
10695 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10696 dumping of instruction opcodes.
10697
d5ae309f
JB
106982011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10699
10700 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10701 appropiately.
10702
98871305
TT
107032011-01-11 Tom Tromey <tromey@redhat.com>
10704
10705 * thread.c (do_captured_thread_select): Emit newline before
10706 printing frame.
10707
c378eb4e
MS
107082011-01-11 Michael Snyder <msnyder@vmware.com>
10709
10710 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10711 * score-tdep.c: Ditto.
10712 * score-tdep.h: Ditto.
10713 * ser-base.c: Ditto.
10714 * ser-go32.c: Ditto.
10715 * serial.c: Ditto.
10716 * serial.h: Ditto.
10717 * ser-mingw.c: Ditto.
10718 * ser-pipe.c: Ditto.
10719 * ser-tcp.c: Ditto.
10720 * ser-unix.c: Ditto.
10721 * sh64-tdep.c: Ditto.
10722 * shnbsd-nat.c: Ditto.
10723 * sh-tdep.c: Ditto.
10724 * sh-tdep.h: Ditto.
10725 * solib.c: Ditto.
10726 * solib-darwin.c: Ditto.
10727 * solib-frv.c: Ditto.
10728 * solib.h: Ditto.
10729 * solib-irix.c: Ditto.
10730 * solib-osf.c: Ditto.
10731 * solib-pa64.c: Ditto.
10732 * solib-som.c: Ditto.
10733 * solib-spu.c: Ditto.
10734 * solib-sunos.c: Ditto.
10735 * solib-svr4.c: Ditto.
10736 * solist.h: Ditto.
10737 * sol-thread.c: Ditto.
10738 * somread.c: Ditto.
10739 * source.c: Ditto.
10740 * source.h: Ditto.
10741 * sparc64-linux-tdep.c: Ditto.
10742 * sparc64-tdep.c: Ditto.
10743 * sparc-linux-nat.c: Ditto.
10744 * sparc-linux-tdep.c: Ditto.
10745 * sparc-sol2-nat.c: Ditto.
10746 * sparc-sol2-tdep.c: Ditto.
10747 * sparc-tdep.c: Ditto.
10748 * sparc-tdep.h: Ditto.
10749 * spu-tdep.c: Ditto.
10750 * stabsread.c: Ditto.
10751 * stabsread.h: Ditto.
10752 * stack.c: Ditto.
10753 * symfile.c: Ditto.
10754 * symfile.h: Ditto.
10755 * symmisc.c: Ditto.
10756 * symtab.c: Ditto.
10757 * symtab.h: Ditto.
10758 * target.c: Ditto.
10759 * target-descriptions.c: Ditto.
10760 * target-descriptions.h: Ditto.
10761 * target.h: Ditto.
10762 * target-memory.c: Ditto.
10763 * terminal.h: Ditto.
10764 * thread.c: Ditto.
10765 * top.c: Ditto.
10766 * tracepoint.c: Ditto.
10767 * tracepoint.h: Ditto.
10768 * trad-frame.h: Ditto.
10769 * typeprint.c: Ditto.
10770
581e13c1
MS
107712011-01-11 Michael Snyder <msnyder@vmware.com>
10772
10773 * ui-file.c: Comment cleanup, mostly periods and spaces.
10774 * ui-file.h: Ditto.
10775 * ui-out.c: Ditto.
10776 * ui-out.h: Ditto.
10777 * utils.c: Ditto.
10778 * v850-tdep.c: Ditto.
10779 * valarith.c: Ditto.
10780 * valops.c: Ditto.
10781 * valprint.c: Ditto.
10782 * valprint.h: Ditto.
10783 * value.c: Ditto.
10784 * value.h: Ditto.
10785 * varobj.c: Ditto.
10786 * varobj.h: Ditto.
10787 * vax-tdep.c: Ditto.
10788 * vec.c: Ditto.
10789 * vec.h: Ditto.
10790 * version.h: Ditto.
10791 * windows-nat.c: Ditto.
10792 * windows-tdep.c: Ditto.
10793 * xcoffread.c: Ditto.
10794 * xcoffsolib.c: Ditto.
10795 * xml-support.c: Ditto.
10796 * xstormy16-tdep.c: Ditto.
10797 * xtensa-tdep.c: Ditto.
10798 * xtensa-tdep.h: Ditto.
10799
90e4670f
TJB
108002011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10801
10802 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10803 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10804
e09342b5
TJB
108052011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10806 Thiago Jung Bauermann <bauerman@br.ibm.com>
10807
10808 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10809 * breakpoint.h
e09342b5
TJB
10810 (struct breakpoint_ops) <resources_needed>: New method.
10811 Initialize to NULL in all existing breakpoint_ops instances.
10812 (struct breakpoint) <exact>: New field.
10813 (target_exact_watchpoints): Declare external global.
10814 * breakpoint.c (target_exact_watchpoints): New global flag.
10815 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10816 b->enable_state to bp_enabled before calling
10817 hw_watchpoint_used_count.
10818 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10819 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10820 if available.
10821 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10822 if the watchpoint is exact.
10823 (resources_needed_watchpoint): New function.
10824 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10825 (watch_command_1): Set b->exact if the user asked for an exact
10826 watchpoint and one can be set.
10827 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10828 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10829 the user asks for an exact watchpoint and one can be set. Return
10830 number of needed debug registers to watch the expression.
10831 * gdbtypes.c (is_scalar_type): New function, based on
10832 valprint.c:scalar_type_p.
10833 (is_scalar_type_recursive): New function.
10834 * gdbtypes.h (is_scalar_type_recursive): Declare.
10835 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10836 handle regions when ranged watchpoints are available.
10837 (create_watchpoint_request): New function.
10838 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10839 create_watchpoint_request.
10840 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10841 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10842 `set powerpc' and `show powerpc' commands.
10843 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10844 Mention documentation comment in the target macro.
10845 (target_region_ok_for_hw_watchpoint): Document return value.
10846
9fa40276
TJB
108472011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10848
10849 * breakpoint.c (update_watchpoint): Decide on using a software or
10850 hardware watchpoint after the bp_locations are created.
10851
77b06cd7
TJB
108522010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10853
10854 Convert hardware watchpoints to use breakpoint_ops.
10855 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10856 <insert_location>: ... this. Return int instead of void.
10857 Accept pointer to struct bp_location instead of pointer to
10858 struct breakpoint. Adapt all implementations.
f2eb0bc8 10859 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10860 <remove_location>: ... this. Accept pointer to struct bp_location
10861 instead of pointer to struct breakpoint. Adapt all implementations.
10862 * breakpoint.c (insert_catchpoint): Delete function.
10863 (insert_bp_location): Call the watchpoint or catchpoint's
10864 breakpoint_ops.insert method.
10865 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10866 breakpoint_ops.remove method.
10867 (insert_watchpoint, remove_watchpoint): New functions.
10868 (watchpoint_breakpoint_ops): New structure.
10869 (watch_command_1): Initialize the OPS field.
10870 * inf-child.c (inf_child_insert_fork_catchpoint)
10871 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10872 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10873 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10874 Delete functions.
10875 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10876 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10877 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10878 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10879 * target.c (update_current_target): Change default implementation of
10880 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10881 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10882 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10883 to_set_syscall_catchpoint to return_one.
10884 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10885 (debug_to_insert_exec_catchpoint): Report return value.
10886 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10887 (to_insert_exec_catchpoint): Change declaration to return int instead
10888 of void.
10889
9b20d036
MS
108902011-01-11 Michael Snyder <msnyder@vmware.com>
10891
10892 * arm-tdep.c: Internationalization.
10893 * c-lang.c: Ditto.
10894 * charset.c: Ditto.
10895 * fork-child.c: Ditto.
10896 * nto-procfs.c: Ditto.
10897 * ppc-sysv-tdep.c: Ditto.
10898 * procfs.c: Ditto.
10899 * remote-mips.c: Ditto.
10900 * remote.c: Ditto.
10901 * rs6000-nat.c: Ditto.
10902 * rs6000-tdep.c: Ditto.
10903 * target.c: Ditto.
10904 * valops.c: Ditto.
10905 * value.c: Ditto.
10906 * xml-support.c: Ditto.
10907 * mi/mi-cmd-break.c: Ditto.
10908 * mi/mi-cmd-var.c: Ditto.
10909 * mi/mi-interp.c: Ditto.
10910 * mi/mi-main.c: Ditto.
10911
dae477fe
AB
109122011-01-11 Andrew Burgess <aburgess@broadcom.com>
10913
10914 * remote-sim.c (gdbsim_store_register): Update API to
10915 sim_store_register to check more error conditions.
10916
0df8b418
MS
109172011-01-10 Michael Snyder <msnyder@vmware.com>
10918
10919 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10920 * nto-tdep.c: Ditto.
10921 * nto-tdep.h: Ditto.
10922 * objc-exp.y: Ditto.
10923 * objc-lang.c: Ditto.
10924 * objfiles.c: Ditto.
10925 * objfiles.h: Ditto.
10926 * observer.c: Ditto.
10927 * opencl-lang.c: Ditto.
10928 * osabi.c: Ditto.
10929 * parse.c: Ditto.
10930 * parser-defs.h: Ditto.
10931 * p-exp.y: Ditto.
10932 * p-lang.c: Ditto.
10933 * posix-hdep.c: Ditto.
10934 * ppcbug-rom.c: Ditto.
10935 * ppc-linux-nat.c: Ditto.
10936 * ppc-linux-tdep.c: Ditto.
10937 * ppc-linux-tdep.h: Ditto.
10938 * ppcnbsd-tdep.c: Ditto.
10939 * ppcobsd-tdep.c: Ditto.
10940 * ppcobsd-tdep.h: Ditto.
10941 * ppc-sysv-tdep.c: Ditto.
10942 * ppc-tdep.h: Ditto.
10943 * printcmd.c: Ditto.
10944 * proc-abi.c: Ditto.
10945 * proc-flags.c: Ditto.
10946 * procfs.c: Ditto.
10947 * proc-utils.h: Ditto.
10948 * progspace.h: Ditto.
10949 * prologue-value.c: Ditto.
10950 * prologue-value.h: Ditto.
10951 * psympriv.h: Ditto.
10952 * psymtab.c: Ditto.
10953 * p-typeprint.c: Ditto.
10954 * p-valprint.c: Ditto.
10955 * ravenscar-sparc-thread.c: Ditto.
10956 * ravenscar-thread.c: Ditto.
10957 * ravenscar-thread.h: Ditto.
10958 * record.c: Ditto.
10959 * regcache.c: Ditto.
10960 * regcache.h: Ditto.
10961 * remote.c: Ditto.
10962 * remote-fileio.c: Ditto.
10963 * remote-fileio.h: Ditto.
10964 * remote.h: Ditto.
10965 * remote-m32r-sdi.c: Ditto.
10966 * remote-mips.c: Ditto.
10967 * remote-sim.c: Ditto.
10968 * rs6000-aix-tdep.c: Ditto.
10969 * rs6000-nat.c: Ditto.
10970 * rs6000-tdep.c: Ditto.
10971
0d7a18f7
MS
109722011-01-10 Michael Snyder <msnyder@vmware.com>
10973
10974 * charset.c (validate): Internationalization.
10975 * coffread.c (read_one_sym): Ditto.
10976 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10977 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10978 * inflow.c (new_tty): Ditto.
10979 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10980 * m32c-tdep.c (m32c_return_value): Ditto.
10981 * mep-tdep.c (mep_store_return_value): Ditto.
10982 * score-tdep.c (score7_fetch_insn): Ditto.
10983 * ser-mingw.c (pipe_windows_open): Ditto.
10984 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10985 * spu-tdep.c (spu_register_type): Ditto.
10986 * tracepoint.c (trace_find_command): Ditto.
10987 * valarith.c (value_pos): Ditto.
10988
9a153e0b
JB
109892011-01-10 Joel Brobecker <brobecker@adacore.com>
10990
10991 * ada-valprint.c (printstr): Minor comment reformatting.
10992
35ecd2d6
MS
109932011-01-08 Michael Snyder <msnyder@vmware.com>
10994
10995 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10996 markup.
10997
1777feb0
MS
109982011-01-08 Michael Snyder <msnyder@vmware.com>
10999
11000 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11001 * hppa-hpux-tdep.c: Ditto.
11002 * hppa-linux-nat.c: Ditto.
11003 * hppa-linux-tdep.c: Ditto.
11004 * hppanbsd-tdep.c: Ditto.
11005 * hppa-tdep.c: Ditto.
11006 * hppa-tdep.h: Ditto.
11007 * hpux-thread.c: Ditto.
11008 * i386-cygwin-tdep.c: Ditto.
11009 * i386-darwin-nat.c: Ditto.
11010 * i386gnu-nat.c: Ditto.
11011 * i386-linux-nat.c: Ditto.
11012 * i386-linux-tdep.c: Ditto.
11013 * i386-nat.c: Ditto.
11014 * i386-nat.h: Ditto.
11015 * i386nbsd-tdep.c: Ditto.
11016 * i386-sol2-nat.c: Ditto.
11017 * i386-stub.c: Ditto.
11018 * i386-tdep.c: Ditto.
11019 * i386-tdep.h: Ditto.
11020 * i387-tdep.c: Ditto.
11021 * ia64-linux-nat.c: Ditto.
11022 * ia64-linux-tdep.c: Ditto.
11023 * ia64-tdep.c: Ditto.
11024 * infcall.c: Ditto.
11025 * infcall.h: Ditto.
11026 * infcmd.c: Ditto.
11027 * inferior.c: Ditto.
11028 * inferior.h: Ditto.
11029 * infloop.c: Ditto.
11030 * inflow.c: Ditto.
11031 * infrun.c: Ditto.
11032 * interps.c: Ditto.
11033 * interps.h: Ditto.
11034 * iq2000-tdep.c: Ditto.
11035 * irix5-nat.c: Ditto.
11036 * jit.c: Ditto.
11037 * jit.h: Ditto.
11038 * jv-exp.y: Ditto.
11039 * jv-lang.c: Ditto.
11040 * jv-lang.h: Ditto.
11041 * jv-typeprint.c: Ditto.
11042 * jv-valprint.c: Ditto.
11043 * language.c: Ditto.
11044 * language.h: Ditto.
11045 * linespec.c: Ditto.
11046 * linux-fork.c: Ditto.
11047 * linux-nat.c: Ditto.
11048 * linux-thread-db.c: Ditto.
11049 * lm32-tdep.c: Ditto.
11050
025bb325
MS
110512011-01-08 Michael Snyder <msnyder@vmware.com>
11052
11053 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11054 * m2-lang.c: Ditto.
11055 * m2-typeprint.c: Ditto.
11056 * m2-valprint.c: Ditto.
11057 * m32c-tdep.c: Ditto.
11058 * m32r-linux-nat.c: Ditto.
11059 * m32r-rom.c: Ditto.
11060 * m32r-tdep.c: Ditto.
11061 * m32r-tdep.h: Ditto.
11062 * m68hc11-tdep.c: Ditto.
11063 * m58klinux-nat.c: Ditto.
11064 * m68k-tdep.c: Ditto.
11065 * m88k-tdep.c: Ditto.
11066 * m88k-tdep.h: Ditto.
11067 * machoread.c: Ditto.
11068 * macrocmd.c: Ditto.
11069 * macroexp.c: Ditto.
11070 * macrotab.c: Ditto.
11071 * main.c: Ditto.
11072 * maint.c: Ditto.
11073 * mdebugread.c: Ditto.
11074 * mdebugread.h: Ditto.
11075 * memattr.c: Ditto.
11076 * memattr.h: Ditto.
11077 * memory-map.h: Ditto.
11078 * mep-tdep.c: Ditto.
11079 * microblaze-rom.c: Ditto.
11080 * microblaze-tdep.c: Ditto.
11081 * minsyms.c: Ditto.
11082 * mips-irix-tdep.c: Ditto.
11083 * mips-linux-nat.c: Ditto.
11084 * mips-linux-tdep.c: Ditto.
11085 * mips-linux-tdep.h: Ditto.
11086 * mipsnbsd-nat.c: Ditto.
11087 * mipsnbsd-tdep.c: Ditto.
11088 * mipsread.c: Ditto.
11089 * mips-tdep.c: Ditto.
11090 * mips-tdep.h: Ditto.
11091 * mn10300-linux-tdep.c: Ditto.
11092 * mn10300-tdep.c: Ditto.
11093 * mn10300-tdep.h: Ditto.
11094 * monitor.c: Ditto.
11095 * monitor.h: Ditto.
11096 * moxie-tdep.c: Ditto.
11097 * moxie-tdep.h: Ditto.
11098 * mt-tdep.c: Ditto.
11099
1642781b
MF
111002011-01-08 Mike Frysinger <vapier@gentoo.org>
11101
11102 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11103
394b0adb
JB
111042011-01-08 Robert Millan <rmh@gnu.org>
11105
11106 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11107
b670013c
MS
111082011-01-07 Michael Snyder <msnyder@vmware.com>
11109
11110 * charset.c (_initialize_charset): Fix typo in string.
11111
a743e542
MS
111122011-01-07 Michael Snyder <msnyder@vmware.com>
11113
11114 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11115 for i18n.
f2eb0bc8 11116 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11117 Split line so that operator goes to beginning of line.
11118 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11119 assignment out of if statement.
11120
0963b4bd
MS
111212011-01-07 Michael Snyder <msnyder@vmware.com>
11122
11123 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11124 * ada-lang.h: Ditto.
11125 * ada-tasks.c: Ditto.
11126 * ada-valprint.c: Ditto.
11127 * aix-threads.c: Ditto.
11128 * alpha-linux-nat.c: Ditto.
11129 * alpha-linux-tdep.c: Ditto.
11130 * alpha-mdebug-tdep.c: Ditto.
11131 * alpha-nat.c: Ditto.
11132 * alpha-osf1-tdep.c: Ditto.
11133 * alpha-tdep.c: Ditto.
11134 * alphabsd-nat.c: Ditto.
11135 * alphabsd-tdep.c: Ditto.
11136 * amd64-darwin-tdep.c: Ditto.
11137 * amd64-linux-nat.c: Ditto.
11138 * amd64-linux-tdep.c: Ditto.
11139 * amd64-sol2-tdep.c: Ditto.
11140 * amd64-tdep.c: Ditto.
11141 * amd64-fbsd-tdep.c: Ditto.
11142 * amd64-nbsd-tdep.c: Ditto.
11143 * amd64-obsd-tdep.c: Ditto.
11144 * amd64-linux-nat.c: Ditto.
11145 * amd64-linux-tdep.c: Ditto.
11146 * arm-tdep.c: Ditto.
11147 * arm-tdep.h: Ditto.
11148 * armnbsd-nat.c: Ditto.
11149 * avr-tdep.c: Ditto.
11150 * bfin-tdep.c: Ditto.
11151 * bsd-kvm.c: Ditto.
11152 * c-typeprintc: Ditto.
11153 * c-valprint.c: Ditto.
11154 * coff-pe-read.h: Ditto.
11155 * coffreead.c: Ditto.
11156 * cris-tdep.c: Ditto.
11157 * d-lang.c: Ditto.
11158 * darwin-nat-info.c: Ditto.
11159 * darwin-nat.c: Ditto.
11160 * dbug-rom.c: Ditto.
11161 * dbxread.c: Ditto.
11162 * dcache.c: Ditto.
11163 * dcache.h: Ditto.
11164 * dec-thread.c: Ditto.
11165 * defs.h: Ditto.
11166 * demangle.c: Ditto.
11167 * dicos-tdep.c: Ditto.
11168 * dictionary.c: Ditto.
11169 * dictionary.h: Ditto.
11170 * dink32-rom.c: Ditto.
11171 * disasm.c: Ditto.
11172 * doublest.c: Ditto.
11173 * dsrec.c: Ditto.
11174 * dummy-frame.c: Ditto.
11175 * dwarf2-frame.c: Ditto.
11176 * dwarf2expr.c: Ditto.
11177 * dwarf2loc.c: Ditto.
11178 * dwarf2read.c: Ditto.
11179 * elfread.c: Ditto.
11180 * environ.c: Ditto.
11181 * eval.c: Ditto.
11182 * event-top.h: Ditto.
11183 * exceptions.c: Ditto.
11184 * exceptions.h: Ditto.
11185 * exec.c: Ditto.
11186 * expprint.c: Ditto.
11187 * expression.h: Ditto.
11188 * f-exp.y: Ditto.
11189 * f-lang.c: Ditto.
11190 * f-lang.h: Ditto.
11191 * f-typeprint.c: Ditto.
11192 * f-valprint.c: Ditto.
11193 * fbsd-nat.c: Ditto.
11194 * findvar.c: Ditto.
11195 * fork-child.c: Ditto.
11196 * frame.c: Ditto.
11197 * frame.h: Ditto.
11198 * frv-linux-tdep.c: Ditto.
11199 * frv-tdep.c: Ditto.
11200 * gcore.c: Ditto.
11201 * gdb-stabs.h: Ditto.
11202 * gdb_assert.h: Ditto.
11203 * gdb_string.h: Ditto.
11204 * gdb_thread_db.h: Ditto.
11205 * gdb_wait.h: Ditto.
11206 * gdbarch.sh: Ditto.
11207 * gdbcore.h: Ditto.
11208 * gdbthread.h: Ditto.
11209 * gdbtypes.c: Ditto.
11210 * gdbtypes.h: Ditto.
11211 * gnu-nat.c: Ditto.
11212 * gnu-nat.h: Ditto.
11213 * gnu-v2-abi.c: Ditto.
11214 * gnu-v3-abi.c: Ditto.
11215 * go32-nat.c: Ditto.
11216 * gdbarch.c: Regenerate.
11217 * gdbarch.h: Regenerate.
11218
ac74f770
MS
112192011-01-07 Michael Snyder <msnyder@vmware.com>
11220
11221 * ax-gdb.c: Adjust some long output strings.
11222 * breakpoint.c: Ditto.
11223 * charset.c: Ditto.
11224 * cp-abi.c: Ditto.
11225 * infcall.c: Ditto.
11226 * infrun.c: Ditto.
11227 * linux-nat.c: Ditto.
11228 * solib-pa64.c: Ditto.
11229 * solib-som.c: Ditto.
11230
d8e22779
TT
112312011-01-06 Tom Tromey <tromey@redhat.com>
11232
11233 PR python/12367:
11234 * NEWS: Add item.
11235 * python/python.c (GdbMethods): Add "newest_frame" method.
11236 * python/python-internal.h (gdbpy_newest_frame): Declare.
11237 * python/py-frame.c (gdbpy_newest_frame): New function.
11238
a255712f
PP
112392010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11240
11241 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11242 * jit.c (jit_debug): New variable.
11243 (show_jit_debug): New function.
11244 (struct target_buffer): Use ULONGEST.
11245 (bfd_open_from_target_memory): Likewise.
11246 (jit_register_code, jit_inferior_init): Add debug output.
11247 (_initialize_jit): Register "debug jit" command.
11248
ccfc3d6e
TT
112492011-01-06 Tom Tromey <tromey@redhat.com>
11250
11251 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11252 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11253 and ARCH_FRAME.
11254
57126e4a
TT
112552011-01-06 Tom Tromey <tromey@redhat.com>
11256
11257 * python/py-frame.c (frapy_block): Use get_frame_block.
11258
16dfc9ce
JB
112592011-01-06 Joel Brobecker <brobecker@adacore.com>
11260
11261 Do not stop on SIGPRIO signals by default
11262 * infrun.c (_initialize_infrun): Unset signal_stop and
11263 signal_print for TARGET_SIGNAL_PRIO.
11264
b1ce2347
JB
112652011-01-06 Joel Brobecker <brobecker@adacore.com>
11266
11267 * ada-tasks.c: Fix style violation in comment.
11268
8f7e195f
JB
112692011-01-06 Joel Brobecker <brobecker@adacore.com>
11270
11271 * linespec.c (decode_compound, find_method): Remove trailing \n
11272 at end of error string.
11273 * solib-irix.c (irix_current_sos): Likewise.
11274 * varobj.c (uninstall_variable): Likewise.
11275
e9bdf92c
JB
112762011-01-06 Joel Brobecker <brobecker@adacore.com>
11277
11278 * copyright.py: New script.
11279 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11280 Launch emacs without exec'ing. Call copyright.py afterwards.
11281
3e43a32a
MS
112822011-01-05 Michael Snyder <msnyder@vmware.com>
11283
11284 * addrmap.c: Shorten lines of >= 80 columns.
11285 * arch-utils.c: Ditto.
11286 * arch-utils.h: Ditto.
11287 * ax-gdb.c: Ditto.
11288 * ax-general.c: Ditto.
11289 * bcache.c: Ditto.
11290 * blockframe.c: Ditto.
11291 * breakpoint.c: Ditto.
11292 * buildsym.c: Ditto.
11293 * c-lang.c: Ditto.
11294 * c-typeprint.c: Ditto.
11295 * charset.c: Ditto.
11296 * coffread.c: Ditto.
11297 * command.h: Ditto.
11298 * corelow.c: Ditto.
11299 * cp-abi.c: Ditto.
11300 * cp-namespace.c: Ditto.
11301 * cp-support.c: Ditto.
11302 * dbug-rom.c: Ditto.
11303 * dbxread.c: Ditto.
11304 * defs.h: Ditto.
11305 * dfp.c: Ditto.
11306 * dfp.h: Ditto.
11307 * dictionary.c: Ditto.
11308 * disasm.c: Ditto.
11309 * doublest.c: Ditto.
11310 * dwarf2-frame.c: Ditto.
11311 * dwarf2expr.c: Ditto.
11312 * dwarf2loc.c: Ditto.
11313 * dwarf2read.c: Ditto.
11314 * elfread.c: Ditto.
11315 * eval.c: Ditto.
11316 * event-loop.c: Ditto.
11317 * event-loop.h: Ditto.
11318 * exceptions.h: Ditto.
11319 * exec.c: Ditto.
11320 * expprint.c: Ditto.
11321 * expression.h: Ditto.
11322 * f-lang.c: Ditto.
11323 * f-valprint.c: Ditto.
11324 * findcmd.c: Ditto.
11325 * frame-base.c: Ditto.
11326 * frame-unwind.c: Ditto.
11327 * frame-unwind.h: Ditto.
11328 * frame.c: Ditto.
11329 * frame.h: Ditto.
11330 * gcore.c: Ditto.
11331 * gdb-stabs.h: Ditto.
11332 * gdb_assert.h: Ditto.
11333 * gdb_dirent.h: Ditto.
11334 * gdb_obstack.h: Ditto.
11335 * gdbcore.h: Ditto.
11336 * gdbtypes.c: Ditto.
11337 * gdbtypes.h: Ditto.
11338 * inf-ttrace.c: Ditto.
11339 * infcall.c: Ditto.
11340 * infcmd.c: Ditto.
11341 * inflow.c: Ditto.
11342 * infrun.c: Ditto.
11343 * inline-frame.h: Ditto.
11344 * language.c: Ditto.
11345 * language.h: Ditto.
11346 * libunwind-frame.c: Ditto.
11347 * libunwind-frame.h: Ditto.
11348 * linespec.c: Ditto.
11349 * linux-nat.c: Ditto.
11350 * linux-nat.h: Ditto.
11351 * linux-thread-db.c: Ditto.
11352 * machoread.c: Ditto.
11353 * macroexp.c: Ditto.
11354 * macrotab.c: Ditto.
11355 * main.c: Ditto.
11356 * maint.c: Ditto.
11357 * mdebugread.c: Ditto.
11358 * memattr.c: Ditto.
11359 * minsyms.c: Ditto.
11360 * monitor.c: Ditto.
11361 * monitor.h: Ditto.
11362 * objfiles.c: Ditto.
11363 * objfiles.h: Ditto.
11364 * osabi.c: Ditto.
11365 * p-typeprint.c: Ditto.
11366 * p-valprint.c: Ditto.
11367 * parse.c: Ditto.
11368 * printcmd.c: Ditto.
11369 * proc-events.c: Ditto.
11370 * procfs.c: Ditto.
11371 * progspace.c: Ditto.
11372 * progspace.h: Ditto.
11373 * psympriv.h: Ditto.
11374 * psymtab.c: Ditto.
11375 * record.c: Ditto.
11376 * regcache.c: Ditto.
11377 * regcache.h: Ditto.
11378 * remote-fileio.c: Ditto.
11379 * remote.c: Ditto.
11380 * ser-mingw.c: Ditto.
11381 * ser-tcp.c: Ditto.
11382 * ser-unix.c: Ditto.
11383 * serial.c: Ditto.
11384 * serial.h: Ditto.
11385 * solib-frv.c: Ditto.
11386 * solib-irix.c: Ditto.
11387 * solib-osf.c: Ditto.
11388 * solib-pa64.c: Ditto.
11389 * solib-som.c: Ditto.
11390 * solib-sunos.c: Ditto.
11391 * solib-svr4.c: Ditto.
11392 * solib-target.c: Ditto.
11393 * solib.c: Ditto.
11394 * somread.c: Ditto.
11395 * source.c: Ditto.
11396 * stabsread.c: Ditto.
11397 * stabsread.c: Ditto.
11398 * stack.c: Ditto.
11399 * stack.h: Ditto.
11400 * symfile-mem.c: Ditto.
11401 * symfile.c: Ditto.
11402 * symfile.h: Ditto.
11403 * symmisc.c: Ditto.
11404 * symtab.c: Ditto.
11405 * symtab.h: Ditto.
11406 * target-descriptions.c: Ditto.
11407 * target-memory.c: Ditto.
11408 * target.c: Ditto.
11409 * target.h: Ditto.
11410 * terminal.h: Ditto.
11411 * thread.c: Ditto.
11412 * top.c: Ditto.
11413 * tracepoint.c: Ditto.
11414 * tracepoint.h: Ditto.
11415 * ui-file.c: Ditto.
11416 * ui-file.h: Ditto.
11417 * ui-out.h: Ditto.
11418 * user-regs.c: Ditto.
11419 * user-regs.h: Ditto.
11420 * utils.c: Ditto.
11421 * valarith.c: Ditto.
11422 * valops.c: Ditto.
11423 * valprint.c: Ditto.
11424 * valprint.h: Ditto.
11425 * value.c: Ditto.
11426 * varobj.c: Ditto.
11427 * varobj.h: Ditto.
11428 * vec.h: Ditto.
11429 * xcoffread.c: Ditto.
11430 * xcoffsolib.c: Ditto.
11431 * xcoffsolib.h: Ditto.
11432 * xml-syscall.c: Ditto.
11433 * xml-tdesc.c: Ditto.
11434
9a2b4c1b
MS
114352011-01-05 Michael Snyder <msnyder@vmware.com>
11436
11437 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11438 * cli/cli-decode.c: Ditto.
11439 * cli/cli-dump.c: Ditto.
11440 * cli/cli-logging.c: Ditto.
11441 * cli/cli-script.c: Ditto.
11442 * cli/cli-setshow.c: Ditto.
11443 * common/signals.c: Ditto.
11444 * mi/mi-cmd-break.c: Ditto.
11445 * mi/mi-cmd-disas.c: Ditto.
11446 * mi/mi-cmd-stack.c: Ditto.
11447 * mi/mi-cmd-var.c: Ditto.
11448 * mi/mi-cmds.c: Ditto.
11449 * mi/mi-common.h: Ditto.
11450 * mi/mi-console.c: Ditto.
11451 * mi/mi-interp.c: Ditto.
11452 * mi/mi-main.c: Ditto.
11453 * osf-share/cma_attr.c: Ditto.
11454 * osf-share/cma_deb_core.h: Ditto.
11455 * osf-share/cma_debug_client.h: Ditto.
11456 * osf-share/cma_handle.h: Ditto.
11457 * osf-share/cma_mutex.h: Ditto.
11458 * osf-share/cma_stack_int.h: Ditto.
11459 * osf-share/cma_tcb_defs.h: Ditto.
11460 * python/py-auto-load.c: Ditto.
11461 * python/py-breakpoint.c: Ditto.
11462 * python/py-cmd.c: Ditto.
11463 * python/py-frame.c: Ditto.
11464 * python/py-objfile.c: Ditto.
11465 * python/py-param.c: Ditto.
11466 * python/py-progspace.c: Ditto.
11467 * python/py-symbol.c: Ditto.
11468 * python/py-value.c: Ditto.
11469 * python/python-internal.h: Ditto.
11470 * python/python.c: Ditto.
11471 * tui/tui-data.c: Ditto.
11472 * tui/tui-disasm.c: Ditto.
11473 * tui/tui-hooks.c: Ditto.
11474 * tui/tui-io.c: Ditto.
11475 * tui/tui-layout.c: Ditto.
11476 * tui/tui-regs.c: Ditto.
11477 * tui/tui-source.c: Ditto.
11478 * tui/tui-stack.c: Ditto.
11479 * tui/tui-win.c: Ditto.
11480 * tui/tui-windata.c: Ditto.
11481 * tui/tui-winsource.c: Ditto.
11482
44944448
JB
114832011-01-05 Joel Brobecker <brobecker@adacore.com>
11484
11485 * configure.ac, gdb.1: Copyright year update.
11486
ebedcab5
JK
114872011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11488
11489 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11490 this_pc_in_block, morestack_msym and morestack_name. Check for
11491 "__morestack" minimal symbol there.
11492
e5cc9f32
JB
114932011-01-03 Joel Brobecker <brobecker@adacore.com>
11494
11495 * symfile.c (find_sym_fns): Add call to dont_repeat.
11496
7b6bb8da
JB
114972011-01-01 Joel Brobecker <brobecker@adacore.com>
11498
11499 Copyright year update in most files (performed by copyright.sh).
11500
71ce852c
JB
115012011-01-01 Joel Brobecker <brobecker@adacore.com>
11502
11503 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11504
c3c1ebe8 11505For older changes see ChangeLog-2010.
c906108c
SS
11506\f
11507Local Variables:
11508mode: change-log
11509left-margin: 8
11510fill-column: 74
11511version-control: never
57da7796 11512coding: utf-8
c906108c 11513End:
This page took 2.567035 seconds and 4 git commands to generate.