2011-12-05 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
336060f3
PA
12011-12-05 Pedro Alves <pedro@codesourcery.com>
2
3 * linux-nat.c (resume_stopped_resumed_lwps): Call
4 registers_changed.
5
049e32d3
PA
62011-12-05 Pedro Alves <pedro@codesourcery.com>
7
8 * breakpoint.c: Include record.h.
9 (breakpoints_always_inserted_mode): Return false when the record
10 target is in use.
11
5c03c7f9 122011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
13
14 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
15 Reinstate perror_with_name call on ptrace error. Remove #if 0.
16 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
17 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
18
fbbd034e
AS
192011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
20
21 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
22 `i'(-Wshadow).
23
a5ff8356 242011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
25
26 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
27
282011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
29
a5ff8356
AS
30 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
31 of `tdep'(-Wshadow).
32
93f2a35e
JK
332011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
34
35 Fix compilation --without-expat.
36 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
37 from ...
38 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
39
2268b414
JK
402011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
41 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
44 * features/library-list-svr4.dtd: New file.
45 * remote.c (PACKET_qXfer_libraries_svr4): New.
46 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
47 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
48 * solib-svr4.c (struct svr4_library_list): New.
49 [HAVE_LIBEXPAT]: Include xml-support.h.
50 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
51 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
52 [HAVE_LIBEXPAT] (svr4_library_list_children)
53 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
54 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
55 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
56 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
57 (svr4_read_so_list): Extend the corruption message by addresses.
58 (svr4_current_sos): New variable library_list, call
59 svr4_current_sos_via_xfer_libraries.
60 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
61
585861ea
JK
622011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
63
64 PR threads/13448
65 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
66 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
67
9750bca9
JK
682011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
69
70 PR breakpoints/13346
71 * dwarf2read.c (process_psymtab_comp_unit): Set
72 PSYMTABS_ADDRMAP_SUPPORTED.
73 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
74 validity. New field psymtabs_addrmap_supported.
75 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
76 psymtabs_addrmap_supported.
77 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
78 !PSYMTABS_ADDRMAP_SUPPORTED.
79 (dump_psymtab, maintenance_info_psymtabs): Print also
80 psymtabs_addrmap_supported.
81
f28c316a
DE
822011-12-01 Doug Evans <dje@google.com>
83
84 * python/py-type.c (type_object_methods): Fix "array" doc string.
85
fc0ae648
AB
862011-12-01 Andrew Burgess <aburgess@broadcom.com>
87
88 * source.c (print_source_lines_base): Fix missing braces on else
89 clause leading to additional output.
90
d6db1fab
UW
912011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
92
93 * s390-nat.c (SUBOFF): Remove.
94 (s390_native_supply, s390_native_collect): New functions.
95 (supply_gregset, supply_fpregset): Use s390_native_supply.
96 (fill_gregset, fill_fpregset): Use s390_native_collect.
97
98 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
99 (s390_unwind_pseudo_register): New function.
100 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
101 registers instead of PC and CC.
102 (s390_backchain_frame_unwind_cache): Likewise.
103 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
104 full GPR pseudos.
105 (s390_trad_frame_prev_register): New function.
106 (s390_frame_prev_register): Use it.
107 (s390_sigtramp_frame_prev_register): Likewise.
108 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
109 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
110 special callback to unwind any pseudo.
111
112 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
113 * features/s390-core64.xml: Likewise.
114 * features/s390x-core64.xml: Likewise.
115 * features/s390-linux32.c: Regenerate.
116 * features/s390-linux64.c: Likewise.
117 * features/s390x-linux64.c: Likewise.
118
1dd635ac
UW
1192011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
120
121 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
122
0161e4b9
UW
1232011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
124
125 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
126 instruction. Add more diagnostic output.
127
0c36327f
AS
1282011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
129
130 * MAINTAINERS (Write After Approval): Add myself to the list.
131
b4264740
SD
1322011-11-29 Sanjoy Das <sdas@igalia.com>
133
134 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
135 (jit_bfd_try_read_symtab): Fix comments.
136
87326c78
DD
1372011-11-28 DJ Delorie <dj@redhat.com>
138
139 * NEWS: Mention RL78 simulator.
140
1e3a8f45
JB
1412011-11-28 Joel Brobecker <brobecker@adacore.com>
142
143 * symfile.h (struct quick_symbol_functions): Fix the documentation
144 of field map_matching_symbols, as symbols are sorted using
145 strcmp_iw_ordered, not strcmp_iw.
146
265e52c3
JB
1472011-11-28 Paul Hilfinger <hilfinger@adacore.com>
148
149 * symfile.h (struct quick_symbol_functions): Update the
150 documentation for field map_matching_symbols.
151
1a1d5513
JB
1522011-11-28 Joel Brobecker <brobecker@adacore.com>
153
154 * ada-lang.c (compare_names): Fix wrong return value in case
155 string1 starts with the same contents as string2, followed
156 by an underscore that do not start a symbol name suffix.
157
5d9c5995
PM
1582011-11-28 Phil Muldoon <pmuldoon@redhat.com>
159
160 PR python/13369
161 PR python/13374
162
163 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
164 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
165 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
166 exceptions.
167 * python/py-type.c (typy_strip_typedefs): Ditto.
168 (typy_legacy_template_argument): Ditto.
169 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
170 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
171
2bf50f6f
JB
1722011-11-27 Joel Brobecker <brobecker@acacore.com>
173
174 * remote.c (remote_get_tracepoint_status): Delete addrbuf
175 local variable. Avoid use of sprintf_vma.
176
744ab88c
SD
1772011-11-27 Sanjoy Das <sdas@igalia.com>
178
179 Fix regression in jit.exp.
180 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
181 (jit_register_code): Set the jit_objfile_data field to the correct
182 value.
183
46ad3598
UW
1842011-11-25  Uros Bizjak  <ubizjak@gmail.com>
185
186 * alpha-tdep.c (br_opcode): New.
187 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
188 (alpha_deal_with_atomic_sequence): New function.
189 (alpha_gdbarch_init): Handle single stepping of atomic sequences
190 with alpha_deal_with_atomic_sequence.
191
e4c5f296
TG
1922011-11-24 Tristan Gingold <gingold@adacore.com>
193
194 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
195 fields. Add oso_sym, end_sym and nbr_syms.
196 (macho_register_oso): Change interface.
197 (macho_symtab_add_minsym): New function.
198 (macho_symtab_read): Rewritten.
199 (get_archive_prefix_len): Remove trailing blanks.
200 (oso_el_compare_name): Add comment.
201 (struct macho_sym_hash_entry): New structure.
202 (macho_relocate_common_syms): Remove.
203 (macho_sym_hash_newfunc): New function.
204 (macho_resolve_oso_sym_with_minsym): Likewise.
205 (macho_add_oso_symfile): Rewritten.
206 (macho_symfile_read_all_oso): Remove trailing blanks.
207 Adjust code to free oso vector.
208 (macho_symfile_read): Likewise.
209 Move code to initialize minimal symbol
210
130854df
MR
2112011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
212
213 * mips-tdep.c (extended_offset): Fix formatting.
214
3d7bb9d9
DE
2152011-11-23 Doug Evans <dje@google.com>
216
217 * dwarf2read.c (dw2_lookup_symtab): Add comment.
218 (dw2_expand_symtabs_with_filename): Ditto.
219 (dw2_expand_symtabs_matching): Ditto.
220 (dw2_map_symbol_filenames): Ditto.
221
1fbf5ada
JB
2222011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
223
224 * ada-lang.c (assign_aggregate): Minor reformatting.
225
d984108d
JB
2262011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
227
228 * ada-lang.c (assign_aggregate): Remove declaration of local
229 variable `i' which is shadowing another variable with the same
230 name declared in the outer scope.
231
18af8284
JB
2322011-11-23 Joel Brobecker <brobecker@adacore.com>
233
234 * ada-lang.c (get_base_type): Renames base_type. Adjust all
235 calls throughout this file.
236
1fc7b5d7
JB
2372011-11-23 Joel Brobecker <brobecker@adacore.com>
238
239 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
240 FormatMessage.
241
36dfb11c
TT
2422011-11-22 Tom Tromey <tromey@redhat.com>
243
244 PR mi/8444:
245 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
246 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
247 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
248 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
249 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
250 (print_it_catch_syscall, print_it_catch_exec)
251 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
252 (bpstat_print): Add 'kind' argument. Handle
253 TARGET_WAITKIND_LOADED.
254 * infrun.c (normal_stop): Update for bpstat_print change. Don't
255 handle TARGET_WAITKIND_LOADED here.
256 * breakpoint.h (bpstat_print): Update.
257
5bd6aa83
TT
2582011-11-22 Tom Tromey <tromey@redhat.com>
259
260 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
261
f5afdc18
TT
2622011-11-22 Tom Tromey <tromey@redhat.com>
263
264 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
265 Use static_assert to check the size of
266 async_reason_string_lookup.
267 * common/gdb_assert.h (static_assert): New macro.
268
a3769e0c
AM
2692011-11-22 Alan Modra <amodra@gmail.com>
270
271 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
272 destination calculation. Don't expect >> to sign extend. Don't
273 add a break if branch lands inside the sequence anywhere.
274
56767571
KS
2752011-11-21 Keith Seitz <keiths@redhat.com>
276
277 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
278 -var-evaluate-expression of an enumeration and fix expected result.
279 * gdb.mi/mi2-varvdisplay.exp: Likewise.
280
8443c207
KY
2812011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
282
283 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
284 the case where osdata->items is empty. Rename column names to a
285 canonical form to avoid problems with unusual column names.
286
97643830
YQ
2872011-11-21 Yao Qi <yao@codesourcery.com>
288
289 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
290
f196051f
SS
2912011-11-20 Stan Shebs <stan@codesourcery.com>
292
293 * NEWS: Mention tracepoint additions.
294 * breakpoint.h (struct tracepoint): New field traceframe_usage.
295 * breakpoint.c (print_one_breakpoint_location): Identify
296 tracepoints as such when reporting hit counts, report
297 trace buffer usage.
298 (create_tracepoint_from_upload): Copy status info.
299 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
300 add fields user_name, notes, start_time, stop_time.
301 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
302 * tracepoint.c (trace_user): New global.
303 (trace_notes): New global.
304 (trace_stop_notes): New global.
305 (start_tracing): Add argument and trace note handling.
306 (stop_tracing): Ditto.
307 (trace_start_command): Add notes argument.
308 (trace_stop_command): Ditto.
309 (trace_status_command): Report additional status info.
310 (trace_status_mi): Similarly.
311 (trace_save): Update, record tracepoint status.
312 (set_disconnected_tracing): Call target method directly.
313 (send_disconnected_tracing_value): Remove.
314 (set_trace_user): New function.
315 (set_trace_notes): New function.
316 (set_trace_stop_notes): New function.
317 (parse_trace_status): Handle additional status.
318 (parse_tracepoint_status): New function.
319 (parse_tracepoint_definition): Call it.
320 (tfile_get_tracepoint_status): New function.
321 (init_tfile_ops): Use it.
322 (_initialize_tracepoint): Add new setshows.
323 * target.h (struct target_ops): New methods to_get_tracepoint_status
324 and to_set_trace_notes.
325 (target_get_tracepoint_status): New macro.
326 (target_set_trace_notes): New macro.
327 * target.c (update_current_target): Add new methods.
328 * remote.c (remote_get_tracepoint_status): New function.
329 (remote_set_trace_notes): New function.
330 (init_remote_ops): Add them.
331 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
332 (mi_cmd_trace_stop): Ditto.
333
3623dc3a
SD
3342011-11-20 Sanjoy Das <sdas@igalia.com>
335
336 * jit.c: Include regcache.h.
337 (jit_gdbarch_data, jit_frame_unwind): New static variables.
338 (jit_unwind_reg_set_impl, free_reg_value_impl)
339 (jit_unwind_reg_get_impl, jit_frame_sniffer)
340 (jit_frame_unwind_stop_reason, jit_frame_this_id)
341 (jit_frame_prev_register, jit_dealloc_cache)
342 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
343 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
344 jit_prepend_unwinder.
345 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
346
1825a88d
SD
3472011-11-20 Sanjoy Das <sdas@igalia.com>
348
349 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
350 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
351 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
352 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
353 (finalize_symtab, jit_object_close_impl)
354 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
355 (free_objfile_data): New functions.
356 (_initialize_jit): Register jit_objfile_data with a proper cleanup
357 function.
358
784c47ee
SD
3592011-11-20 Sanjoy Das <sdas@igalia.com>
360
361 * jit.c: Include gdb-dlfcn.h.
362 (loaded_jit_reader, reader_init_fn_sym): New static variables.
363 (jit_reader_load, jit_reader_load_command)
364 (jit_reader_unload_command): New functions.
365 (_initialize_jit): Add commands "jit-reader-load" and
366 "jit-reader-unload".
367
a2d08b9e
SD
3682011-11-20 Sanjoy Das <sdas@igalia.com>
369
370 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
371 * config.in: Add new #define HAVE_LIBDL.
372 * configure.ac: Add check for -ldl.
373 * configure: Re-generated by autoconf.
374 * gdb-dlfcn.c: New file.
375 * gdb-dlfcn.h: New file.
376
b8e0a31c
SD
3772011-11-20 Sanjoy Das <sdas@igalia.com>
378
379 * config.in: Add new #defines: JIT_READER_DIR and
380 JIT_READER_DIR_RELOCATABLE.
381 * configure.ac: New GDB directory entry for jit-reader-dir.
382 * configure: Re-generated by autoconf.
383 * jit.c: New static variable: const char *jit_reader_dir.
384 (_initialize_jit): Relocate jit_reader_dir.
385
f997c383
SD
3862011-11-20 Sanjoy Das <sdas@igalia.com>
387
388 * Makefile.in: Add jit-reader.h as a header. Have it installed in
389 $(includedir)/gdb.
390 * configure.ac: Generate a correct value for TARGET_PTR for
391 jit-reader.h. Tell configure to generate jit-reader.h from
392 jit-reader.in.
393 * configure: Re-generated by autoconf.
394 * jit-reader.in: New file.
395 * jit.c: Include jit-reader.h.
396
dc8c0494
SD
3972011-11-20 Sanjoy Das <sdas@igalia.com>
398
399 * MAINTAINERS (Write After Approval): Add myself to the list.
400
01efb936
UW
4012011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
402
403 * findvar.c (read_frame_register_value): Respect value_offset
404 of the register value. Remove big-endian special case.
405
732f3f12
TT
4062011-11-18 Tom Tromey <tromey@redhat.com>
407
408 PR build/7196:
409 * remote.c (putpkt_for_catch_errors): New function.
410 (remote_kill): Use it.
411
bfccc43c
YQ
4122011-11-18 Yao Qi <yao@codesourcery.com>
413
414 * breakpoint.c (create_breakpoint): Produce query message according to
415 breakpoint's type.
416 Allocate tracepoint per correct type.
417 Don't check SALs for pending fast tracepoints.
418 * tracepoint.c (process_tracepoint_on_disconnect): New.
419 (disconnect_tracing): Call process_tracepoint_on_disconnect.
420
3ea46bff
YQ
4212011-11-18 Yao Qi <yao@codesourcery.com>
422
423 * breakpoint.c (install_breakpoint): Add one more parameter so that
424 update_global_location_list is called conditionally.
425 (create_fork_vfork_event_catchpoint): Update.
426 (create_syscall_event_catchpoint): Update.
427 (create_breakpoint_sal): Update.
428 (create_breakpoint_sal): Update. Call do_cleanups before
429 install_breakpoint.
430 * ada-lang.c (create_ada_exception_catchpoint): Update.
431 * breakpoint.h (install_breakpoint): Update declaration.
432
598cfb71
UW
4332011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
434
435 * spu-tdep.c (spu_return_value): Fix handling of
436 TYPE_CALLING_CONVENTION annotation.
437
caf4328c
UW
4382011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
439
440 * skip.c (skip_function_command): Work around uninitialized
441 variable warning.
442
2b54dda2
DM
4432011-11-16 David S. Miller <davem@davemloft.net>
444
445 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
446 'tv_usec' to long for printf since these fields have a type which
447 varies.
448
93bf33fd
DE
4492011-11-15 Doug Evans <dje@google.com>
450
451 * buildsym.c (add_symbol_to_list): Delete outdated comment.
452
9cc10fd1
PK
4532011-11-15 Paul Koning <paul_koning@dell.com>
454
455 * python/py-type.c (typy_get_composite): New function.
456 (typy_nonzero): New function.
457 (typy_values): Rename from typy_fields.
458 (typy_fields): New function.
459 (typy_length): Raise exception if not struct, union, or enum type.
460 (typy_getitem): Ditto.
461 (typy_has_key): Ditto.
462 (typy_make_iter): Ditto.
463
c011a4f4
DE
4642011-11-15 Doug Evans <dje@google.com>
465
466 * NEWS: Mention new parameter basenames-may-differ.
467 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
468 ! basenames_may_differ.
469 * psymtab.c (lookup_partial_symtab): Ditto.
470 * symtab.c (lookup_symtab): Ditto.
471 (basenames_may_differ): New global.
472 (_initialize_symtab): New parameter basenames-may-differ.
473 * symtab.h (basenames_may_differ): Declare.
474
865ecab4
LM
4752011-11-15 Pedro Alves <pedro@codesourcery.com>
476 Luis Machado <lgustavo@codesourcery.com>
477
478 * auxv.c: Include observer.h.
479 (auxv_inferior_data_cleanup): New.
480 (invalidate_auxv_cache_inf): New.
481 (invalidate_auxv_cache): New.
482 (get_auxv_inferior_data): New.
483 (auxv_inferior_data): New static global.
484 (auxv_info): New structure.
485 (target_auxv_search): Use get_auxv_inferior_data instead of
486 target_read_alloc and don't free cached buffers.
487 (fprint_target_auxv): Likewise
488 (_initialize_auxv): Register per-inferior auxv cache and register
489 observers to invalidate auxv cache when needed.
490
ed59ded5
DE
4912011-11-14 Doug Evans <dje@google.com>
492
493 Make "!" an alias for "shell".
494 * NEWS: Add mention.
495 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
496 adding "!" command, always add it.
497 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
498 command of length one.
499
405f8e94
SS
5002011-11-14 Stan Shebs <stan@codesourcery.com>
501 Kwok Cheung Yeung <kcy@codesourcery.com>
502
503 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
504 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
505 the minimum instruction size for fast tracepoints.
506 * target.h (struct target_ops): Add new method
507 to_get_min_fast_tracepoint_insn_len.
508 (target_get_min_fast_tracepoint_insn_len): New.
509 * target.c (update_current_target): Set up new target operation.
510 * remote.c (remote_write_bytes_aux): Fix typo.
511 (remote_get_min_fast_tracepoint_insn_len): New.
512 (init_remote_ops): Initialize new field.
513
3e05895e
TT
5142011-11-14 Tom Tromey <tromey@redhat.com>
515
516 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
517 (encode_actions): Likewise.
518
1e4d1764
YQ
5192011-11-14 Yao Qi <yao@codesourcery.com>
520
521 * remote.c (struct remote_state): <install_in_trace> new field.
522 (PACKET_InstallInTrace): New enum value.
523 (remote_install_in_trace_feature): Support InstallInTrace.
524 (remote_supports_install_in_trace): Likewise.
525 (remote_protocol_features): Likewise.
526 (_initialize_remote): Likewise.
527 (remote_can_download_tracepoint): New.
528 * target.h (struct target): New field
529 `to_can_download_tracepoint'.
530 (target_can_download_tracepoint): New macro.
531 * target.c (update_current_target): Update.
532 * breakpoint.h (struct bp_location): Add comment on field
533 `duplicate'.
3ccd4ac6
YQ
534 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
535 and tracepoint.
1e4d1764
YQ
536 (remove_breakpoints): Don't remove tracepoints.
537 (tracepoint_locations_match ): New.
538 (breakpoint_locations_match): Call it.
539 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
540 (download_tracepoint_locations): New.
541 (update_global_location_list): Call it.
542 * tracepoint.c (find_matching_tracepoint): Delete.
543 (find_matching_tracepoint_location): Renamed from
544 find_matching_tracepoint. Return bp_location rather than
545 tracepoint.
546 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
547 tracepoint is found.
548
e8ba3115
YQ
5492011-11-14 Yao Qi <yao@codesourcery.com>
550
551 * target.h (struct target): <to_download_tracepoint> Change type
552 of parameter from tracepoint to bp_location.
553 * target.c (update_current_target): Update.
554 * tracepoint.c (start_tracing): Update.
555 * remote.c (remote_download_tracepoint): Remove loop for each location
556 of a tracepoint.
557
edcc485a
MR
5582011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
559
560 * i386-nat.c (i386_insert_hw_breakpoint): Call
561 i386_update_inferior_debug_regs.
562 (i386_remove_hw_breakpoint): Likewise.
563
3742cc8b
YQ
5642011-11-14 Yao Qi <yao@codesourcery.com>
565
566 * breakpoint.c (init_raw_breakpoint): Call
567 add_location_to_breakpoint to replace duplicated code.
568 (add_location_to_breakpoint): Adjust the breakpoint's
569 address prior to allocating a location.
570
71eba9c2 5712011-11-12 Matt Rice <ratmice@gmail.com>
572
573 * macrocmd.c (macro_no_macro_info): New function.
574 (macro_expand_command): Use macro_no_macro_info.
575 (macro_expand_once_command): Ditto.
576 (info_macro_command): Add argument processing,
577 move info_definitions_command here.
578 (_initialize_macrocmd): Remove info definitions command.
579 Add arguments to info macro help text.
580 * NEWS: Replace info definitions command with new info macro options.
581
731971ed
KS
5822011-11-11 Keith Seitz <keiths@redhat.com>
583
584 PR gdb/12843
585 * linespec.c (locate_first_half): Keep ':' if it looks
586 like it could be part of a Windows path starting with
587 a drive letter.
588
6953d224
PA
5892011-11-10 Pedro Alves <pedro@codesourcery.com>
590
591 * linux-nat.c (linux_nat_wait): Don't force waking up the event
592 loop when returning a TARGET_WAITKIND_NO_RESUMED.
593
0c94aa73
PA
5942011-11-10 Pedro Alves <pedro@codesourcery.com>
595
596 * target.c (target_waitstatus_to_string): Handle
597 TARGET_WAITKIND_NO_RESUMED.
598
f6b47be4
DE
5992011-11-10 Doug Evans <dje@google.com>
600
74e2f255
DE
601 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
602 `need_fullname'.
603 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
604 (map_partial_symbol_filenames): Ditto. All callers updated.
605 * psymtab.h (map_partial_symbol_filenames): Update prototype.
606 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
607 parameter need_fullname.
608
256f06f3
DE
609 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
610 * source.c (symtab_to_fullname): Ditto.
611
50f182aa
DE
612 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
613 * gdb-demangle.h: ... here. New file.
614 * demangle.c: #include "gdb-demangle.h".
615 (_initialize_demangler): Use initialize_file_ftype for prototype.
616 Move "set demangle" and "set asm-demangle" parameters here from utils.c
617 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
618 from utils.c
619 * utils.c: Update. #include "gdb-demangle.h".
620 * symtab.h (asm_demangle): Delete.
621 (demangle): Move declaration next to use.
622 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
623 * dwarf2read.c: #include "gdb-demangle.h".
624 * gnu-v2-abi.c: Ditto.
625 * jv-typeprint.c: Ditto.
626 * mdebugread.c: Ditto.
627 * p-typeprint.c: Ditto.
628 * stabsread.c: Ditto.
629 * printcmd.c: Ditto.
630 (asm_demangle): Delete declaration.
631 * tui/tui-stack.c: #include "gdb-demangle.h".
632
f6b47be4
DE
633 * python/py-type.c (typy_fields_items): Call check_typedef.
634
22355c90
JB
6352011-11-10 Joel Brobecker <brobecker@adacore.com>
636
637 * findvar.c (read_frame_register_value): Read the correct bytes
638 from registers on big-endian architectures.
639
bd119cf1 6402011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
641
642 * procfs.c (load_syscalls): Make a cleanup.
643 (open_procinfo_files): fd==0 is ok.
644
0a86f364
JB
6452011-11-10 Joel Brobecker <brobecker@adacore.com>
646
647 * procfs.c (iterate_over_mappings): Call do_cleanups before
648 returning.
649
9bc118a5
DE
6502011-11-09 Doug Evans <dje@google.com>
651
652 * gdbtypes.c (check_typedef): Document that this function can
653 throw an exception.
654
a7860e76
TT
6552011-11-09 Tom Tromey <tromey@redhat.com>
656
657 PR c++/13342:
658 * valops.c (value_full_object): Return early if real type is
659 smaller than the enclosing type.
660
60965737
YQ
6612011-11-08 Yao Qi <yao@codesourcery.com>
662
663 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
664
72a2e3dc
MI
6652011-11-08 Meador Inge <meadori@codesourcery.com>
666
667 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
668 register when the frame can't be determined.
669 * arm-tdep.c (arm_analyze_prologue): Ditto.
670
ce3b0ff7
SS
6712011-11-07 Stan Shebs <stan@codesourcery.com>
672
673 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
674
2b914b52
JB
6752011-11-07 Joel Brobecker <brobecker@adacore.com>
676
677 * infrun.c (handle_inferior_event): Minor reformatting.
678
6f809020
DE
6792011-11-05 Doug Evans <dje@google.com>
680
681 * source.c (forget_cached_source_info_for_objfile): Move call to
682 objfile->sf->qf->forget_cached_source_info outside of
683 ALL_OBJFILE_SYMTABS loop.
684 (forget_cached_source_info): Delete unused variable `s'.
685
75d12218
JK
6862011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
687
688 * i386-nat.c (dr_ref_count): Remove unused variable.
689
e565b837
DE
6902011-11-05 Doug Evans <dje@google.com>
691
692 * main.c (captured_main): Set lim_at_start before calling
693 make_command_stats_cleanup.
694
0a1c4d10
DE
6952011-11-04 Doug Evans <dje@google.com>
696
697 * utils.c: #include "timeval-utils.h".
698 (cmd_stats): Rename start_time to start_cpu_time.
699 New member start_wall_time.
700 (report_command_stats): Report wall time.
701 (make_command_stats_cleanup): Record start wall time.
702
a1d705ee
TT
7032011-11-04 Tom Tromey <tromey@redhat.com>
704
705 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
706
81de56be
RO
7072011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
708
709 * coff-pe-read.c: Include defs.h before bfd.h.
710
3ab1ec27
PM
7112011-11-04 Phil Muldoon <pmuldoon@redhat.com>
712
713 PR Python/13345
714
715 * python/python.c (python_run_simple_file): Expand tilde in path.
716
cd829959
PM
7172011-11-04 Phil Muldoon <pmuldoon@redhat.com>
718
719 PR Python/13363
720
721 * python/py-type.c (typy_lookup_type): Do not return a type in
722 an exception handler.
723
080ad648
JK
7242011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
725 Eli Zaretskii <eliz@gnu.org>
726
727 * linux-nat.c (_initialize_linux_nat): Improve help
728 for `info proc stat', `info proc status', `info proc cwd',
729 `info proc cmdline' and `info proc exe'.
730
3065dfb6
SS
7312011-11-02 Stan Shebs <stan@codesourcery.com>
732
733 String collection for tracepoints.
734 * NEWS: Mention string collection.
735 * common/ax.def (tracenz): New bytecode.
736 * ax-gdb.h (trace_string_kludge): Declare.
737 * ax-gdb.c: Include valprint.h and c-lang.h.
738 (trace_string_kludge): New global.
739 (gen_traced_pop): Add string case.
740 (agent_command): Add string case.
741 * tracepoint.h (decode_agent_options): Declare.
742 * tracepoint.c: Include cli-utils.h.
743 (decode_agent_options): New function.
744 (validate_actionline): Call it.
745 (encode_actions_1): Ditto.
746 * target.h (struct target_ops): New method to_supports_string_tracing.
747 (target_supports_string_tracing): New macro.
748 * target.c (update_current_target): Add to_supports_string_tracing.
749 * remote.c (struct remote_state): New field string_tracing.
750 (remote_string_tracing_feature): New function.
751 (remote_protocol_features): New feature tracenz.
752 (remote_supports_string_tracing): New function.
753 (init_remote_ops): Set to_supports_string_tracing.
754
f179e162
JK
7552011-11-02 Pedro Alves <pedro@codesourcery.com>
756 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 * linux-nat.c: Include cli/cli-utils.h.
759 (enum info_proc_what): New.
760 (linux_nat_info_proc_cmd): Rename to ...
761 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
762 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
763 status_f and stat_f from WHAT. Throw error on extra parameters.
764 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
765 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
766 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
767 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
768 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
769 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
770 `info proc cmdline', `info proc exe' and `info proc all' as real
771 subcommands of `info proc'.
772
7b35ec7f 7732011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
774
775 * Makefile.in: (SFILES): Add skip.c.
776 (HFILES_NO_SRCDIR): Add skip.h.
777 (COMMON_OBS): Add skip.o.
778 * skip.h, skip.c: New.
779 * breakpoint.h (set_default_breakpoint): Remove.
780 (get_sal_arch): Declare.
781 * breakpoint.c: Remove default_breakpoint_valid,
782 default_breakpoint_address, default_breakpoint_symtab,
783 default_breakpoint_line, default_breakpoint_pspace variables.
784 (get_sal_arch): Make public.
785 (set_default_breakpoint): Remove.
786 (parse_breakpoint_sals, create_breakpoint, clear_command,
787 decode_line_spec_1): Remove uses of default_breakpoint variables;
788 replaced with function calls into stack.c.
789 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
790 * cli/cli-cmds.c: Add skiplist.
791 (init_cmd_lists): Initialize skiplist.
792 (init_cli_cmds): Fix comment (classes of commands appear in
793 alphabetical order).
794 * infrun.c (handle_inferior_event): Add check that we don't step into
795 a function whose pc is marked for skip.
796 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
797 last_displayed_addr, last_displayed_symtab, last_displayed_line
798 variables.
799 (set_last_displayed_sal): New static function.
800 (print_frame_info): Switch call to set_default_breakpoint to call to
801 set_last_displayed_sal.
802 (clear_last_displayed_sal, last_displayed_sal_is_valid,
803 get_last_displayed_pspace, get_last_displayed_addr,
804 get_last_displayed_symtab, get_last_displayed_line,
805 get_last_displayed_sal): New public functions.
806 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
807 get_last_displayed_pspace, get_last_displayed_addr,
808 get_last_displayed_symtab, get_last_displayed_line,
809 get_last_displayed_sal): Declare.
810
b60e1588
JL
8112011-11-01 Justin Lebar <justin.lebar@gmail.com>
812
813 * MAINTAINERS (Write After Approval): Add myself to the list.
814
d31647d2
YQ
8152011-10-29 Yao Qi <yao@codesourcery.com>
816
817 * infcmd.c (disconnect_command): Call disconnect_tracing.
818
b1d96efd
JK
8192011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 Code cleanup.
822 * symtab.c (skip_prologue_sal): Code reformatting.
823
4dfb2365
JK
8242011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 PR symtab/13208
827 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
828 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
829 SAI.
830
0e5bf2a8
PA
8312011-10-28 Pedro Alves <pedro@codesourcery.com>
832
833 * linux-nat.c (linux_nat_filter_event): Remove `options'
834 parameter, and dead code that used it. If we're handling a
835 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
836 in our lwp list, re-add it.
837 (check_zombie_leaders): New.
838 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
839 wait for children with WNOHANG, and always wait for all children.
840 Don't check for no resumed children upfront. Simplify wait loop.
841 Check for zombie thread group leaders after handling all wait
842 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
843 unwaited-for children left.
844 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
845 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
846 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
847 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
848
821296b7
SA
8492011-10-28 Sterling Augustine <saugustine@google.com>
850
851 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
852 * symtab.c (free_completion_list): New function.
853 (do_free_completion_list): Likewise.
854 (default_make_symbol_completion_list_break_on): New variable
855 back_to. Call make_cleanup and discard_cleanups.
856 (make_source_files_completion_list): Likewise.
857
03c3051a
PK
8582011-10-28 Paul Koning <paul_koning@dell.com>
859
860 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
861 * NEWS: Mention deep_items.
862
8e7ebaf5
PA
8632011-10-28 Alen Skondro <askondro@gmail.com>
864
8de33dc2 865 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
866 defined.
867
e0c6ef61
MI
8682011-10-27 Meador Inge <meadori@codesourcery.com>
869
870 * MAINTAINERS (Write After Approval): Add myself to the list.
871
b56d6f31
JB
8722011-10-27 Joel Brobecker <brobecker@adacore.com>
873
874 * value.h (read_frame_register_value): Add declaration.
875 * findvar.c (read_frame_register_value): New function.
876 (value_from_register): Use read_frame_register_value
877 instead of get_frame_register_value + value_contents_copy
878 to get value contents.
879
d234ef5c
DE
8802011-10-27 Doug Evans <dje@google.com>
881
882 * cli/cli-cmds.c (source_script_with_search): Pass full path to
883 source_script_from_stream if it may have been found on the search path.
884 * python/py-auto-load.c (source_section_scripts): Pass full path to
885 source_python_script_for_objfile.
886 * python/python.c (source_python_script): Delete stream parameter.
887 All callers updated.
888 (source_python_script_for_objfile): Ditto.
889 * python/python-internal.h (source_python_script_for_objfile): Update.
890 * python/python.h (source_python_script): Update.
891
d849d44f
TT
8922011-10-27 Tom Tromey <tromey@redhat.com>
893
894 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
895 (ada_sals_for_line): Remove declarations.
896
2231f1fb
KP
8972011-10-27 Kevin Pouget <kevin.pouget@st.com>
898
899 Move unwind reasons to an external .def file
900 * frame.c (frame_stop_reason_string): Rewrite using
901 unwind_stop_reasons.def.
902 * frame.h (enum unwind_stop_reason): Likewise.
903 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
904 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
905 constants for bound-checking.
906 * unwind_stop_reasons.def: New file.
907 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
908 instead of a distinct value.
909
f77b9a5d
PM
9102011-10-27 Phil Muldoon <pmuldoon@redhat.com>
911
912 PR python/13331
913
914 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
915 (convert_values_to_python): Return on Python tuple allocation
916 failure. Return NULL on value conversion error.
917
76dce0be
PM
9182011-10-27 Phil Muldoon <pmuldoon@redhat.com>
919
920 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
921 (bppy_set_task): Ditto.
922 (bppy_delete_breakpoint): Ditto.
923 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
924 (gdbpy_lookup_global_symbol): Ditto.
925 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
926 * python/py-frame.c (frapy_is_valid): Ditto.
927 (frame_info_to_frame_object): Ditto.
928 * python/py-type.c (typy_lookup_type): Ditto.
929 (typy_getitem): Ditto.
930 (typy_has_key): Ditto.
931 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
932
f17b6955
JB
9332011-10-26 Joel Brobecker <brobecker@adacore.com>
934
935 * gdbarch.h: Regenerate.
936
86ba1042
JB
9372011-10-26 Meador Inge <meadori@codesourcery.com>
938
939 * gdbarch.sh (function_list): Use 'pstring' when printing
940 'gcore_bfd_target'.
941 * gdbarch.c: Regenerate.
942
c34fd852
UW
9432011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
944
945 * regcache.c (registers_changed_ptid): Invalidate thread architecture
946 and frame caches if PTID refers to all threads of a process.
947
931bb47f
UW
9482011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
949
950 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
951 to create_breakpoint.
952
88aed45e
UW
9532011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
954
955 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
956 (ppc_sysv_abi_push_dummy_call): Use it.
957 (do_ppc_sysv_return_value): Likewise.
958 (ppc64_sysv_abi_push_dummy_call): Likewise.
959 (ppc64_sysv_abi_return_value): Likewise.
960
3eaf3fa2
PK
9612011-10-26 Paul Koning <paul_koning@dell.com>
962
963 * python/lib/gdb/types.py (deepitems): New function.
964
913460fc
PK
9652011-10-25 Paul Koning <paul_koning@dell.com>
966
967 PR python/13327
968
969 * python/py-value.c (value_to_value_object): Remove fetching of
970 the value if it was lazy.
971 (valpy_get_is_lazy): New function.
972 (valpy_fetch_lazy): New function.
973
2b5b9d09
JB
9742011-10-24 Joel Brobecker <brobecker@adacore.com>
975
976 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
977 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
978
e21ffe51
PA
9792011-10-24 Pedro Alves <pedro@codesourcery.com>
980
981 * linux-nat.c (linux_handle_extended_wait): When handling a clone
982 event, in non-stop, if not stopping, make sure the new lwp has
983 last_resume_kind set to resume_continue. Assert that when we're
984 resuming the new lwp, its last_resume_kind is resume_continue.
985
7aee8dc2
PA
9862011-10-24 Pedro Alves <pedro@codesourcery.com>
987
988 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
989 already set when marking the event thread as not executing in
990 non-stop mode.
991
4b4e080e
PA
9922011-10-24 Pedro Alves <pedro@codesourcery.com>
993
994 * infrun.c (handle_inferior_event): Add debug output for
995 TARGET_WAITKIND_NO_HISTORY.
996
baacfb07
PM
9972011-10-24 Phil Muldoon <pmuldoon@redhat.com>
998
999 * NEWS: Move set/show extended-prompt to "New Options". Expand
1000 description. Fix typos.
1001
8432bc41
PM
10022011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1003
1004 PR python/13310
1005
1006 * python/py-param.c (call_doc_function): Correctly deference on
1007 function exit.
1008
6cda5a20
JB
10092011-10-21 Joel Brobecker <brobecker@adacore.com>
1010
1011 * ada-tasks.c (print_ada_task_info): Fix computation of
1012 number of tasks displayed in command output.
1013
13294f7d
JK
10142011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1015 Ulrich Weigand <uweigand@de.ibm.com>
1016
1017 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1018 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1019 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1020 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1021 gdbarch_unwind_pc.
1022
460c1c54
CC
10232011-10-20 Cary Coutant <ccoutant@google.com>
1024
1025 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1026 section to...
1027 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1028 flag. Adjust all callers.
1029 (process_psymtab_comp_unit): Remove adjustment for type section.
1030
a10964d1
AR
10312011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1032
1033 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1034 arguments by adding OBJFILE. Instead of getting objfile from
1035 symbol's symtab, use new argument OBJFILE.
1036 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1037 arguments by adding OBJFILE.
1038 * gdb/dwarf2read.c (new_symbol_full): Change call to
1039 cp_scan_for_anonymous_namespaces to match new signature.
1040 * gdb/stabsread.c (define_symbol): Change call to
1041 cp_scan_for_anonymous_namespaces to match new signature.
1042
27ca1a5b
PM
10432011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1044
1045 PR python/13308
1046 PR python/13309
1047
1048 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1049 leak.
1050 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1051 leak. Delete unused variables.
1052
9df2fbc4
PM
10532011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1054
1055 PR python/12656
1056
1057 * python/py-frame.c (frapy_read_var): Use const struct *block.
1058 * python/py-type.c (typy_lookup_typename): Likewise.
1059 (typy_lookup_type): Likewise.
1060 (typy_legacy_template_argument): Likewise.
1061 (typy_template_argument): Likewise.
1062 (gdbpy_lookup_type): Likewise.
1063 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1064 * python/py-block.c (blpy_block_object): Likewise.
1065 (blpy_iter): Likewise.
1066 (blpy_get_start): Likewise.
1067 (blpy_get_end): Likewise.
1068 (blpy_get_function): Likewise.
1069 (blpy_get_superblock): Likewise.
1070 (set_block): Likewise.
1071 (block_to_block_object): Likewise.
1072 (block_object_to_block): Likewise.
1073 (blpy_is_valid): Likewise.
1074 (blpy_get_global_block): New function.
1075 (blpy_get_static_block): New function.
1076 (blpy_is_global): New function.
1077 (blpy_is_static): New function.
1078 * blockframe.c (block_innermost_frame): Likewise.
1079 * valops.c (value_of_variable): Likewise.
1080 * frame.h: Update prototypes.
1081 * python/python-internal.h: Likewise.
1082 * value.h: Likewise.
1083
4743b735
CC
10842011-10-19 Cary Coutant <ccoutant@google.com>
1085
1086 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1087 type_offset field.
1088
6caca83c
CC
10892011-10-19 Cary Coutant <ccoutant@google.com>
1090
1091 * dwarf2read.c (peek_abbrev_code): New function.
1092 (dw2_get_file_names): Check for dummy compilation units.
1093 (create_debug_types_hash_table): Likewise.
1094 (process_psymtab_comp_unit): Likewise.
1095 (load_partial_comp_unit): Likewise.
1096 (load_full_comp_unit): Likewise.
1097
43136979
AR
10982011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1099
1100 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1101 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1102 pt_phdr if PT_PHDR was found.
1103
0a07729b
TT
11042011-10-17 Joost van der Sluis <joost@cnoc.nl>
1105
1106 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1107 type or "<unnamed type"> when there is no name assigned.
1108 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1109 avoid a sigint when no name is assigned.
1110
21ae7a4d
JK
11112011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1112
1113 Revert:
1114 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1115 * dwarf2expr.c (ctx_no_read_reg): New function.
1116 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1117 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1118 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1119 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1120
32d1c362
DE
11212011-10-16 Doug Evans <dje@google.com>
1122
1123 * NEWS: Document python gdb.printing.register_pretty_printer's new
1124 `replace' parameter.
1125
da096638
KS
11262011-10-14 Keith Seitz <keiths@redhat.com>
1127
1128 PR c++/13225
1129 * eval.c (evaluate_subexp_standard): Do not construct
1130 an array of types; pass the value array directly to
1131 find_overload_match.
1132 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1133 (rank_function): Take an array of values instead of types.
1134 (rank_one_type): Add struct value * parameter.
1135 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1136 (rank_function): For each argument, pass the argument's
1137 value to rank_one_type.
1138 (rank_one_type): Add VALUE parameter.
1139 If the parameter type is a pointer and the argument type
1140 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1141 VALUE is zero.
1142 Update all calls to rank_one_type, passing NULL for new
1143 VALUE parameter.
1144 * valarith.c (value_user_defined_cpp_op): Do not construct
1145 an array of types; pass the value array directly to
1146 find_overload_match.
1147 * valops.c (find_overload_method_list): Take an array of
1148 values instead of types.
1149 Save the type of OBJP for later use.
1150 Update calls to find_oload_champ, and find_oload_champ_namespace.
1151 (find_oload_champ_namespace): Take an array of values instead
1152 of types.
1153 (find_oload_champ_namespace_loop): Likewise.
1154 (find_oload_champ): Likewise.
1155 (classify_oload_match): Inspect all arguments
1156 until INCOMPATIBLE is found. Return the worst badness found
1157 otherwise.
1158 (compare_parameters): Update call to rank_one_type.
1159 * value.h (find_overload_match): Take an array of values instead
1160 of types.
1161
3957565a
JK
11622011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1163
1164 Drop lazy lm_info reading.
1165 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1166 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1167 (lm_info_read): New function.
1168 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1169 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1170 lm_dynamic_from_link_map.
1171 (lm_next, lm_prev, lm_name): Remove.
1172 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1173 initialization incl. read_memory. No longer use lm_name.
1174 (svr4_free_so): Drop lm_info->lm freeing.
1175 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1176 explicit lm_addr and lm initialization.
1177 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1178 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1179 lm_name.
1180
cb08cc53
JK
11812011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1182 Paul Pluzhnikov <ppluzhnikov@google.com>
1183
1184 * defs.h (struct so_list): New forward declaration.
1185 (make_cleanup_free_so): New declaration.
1186 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1187 (svr4_free_so): Move the function here from downwards. Handle NULL
1188 so->lm_info.
1189 (svr4_free_library_list): New.
1190 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1191 Use more cleanups. Use new parameter ignore_first instead of
1192 ignore_first_link_map_entry.
1193 (svr4_current_sos): New variable ignore_first, initialize it. New
1194 variable back_to, use it for svr4_free_library_list protection.
1195 (svr4_free_so): Remove - move upwards.
1196 * utils.c: Include solist.h.
1197 (do_free_so, make_cleanup_free_so): New functions.
1198
22c05d8a
JK
11992011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1200
1201 Fix internal error regression.
1202 * value.c (value_primitive_field): Handle value_optimized_out. Move
1203 packed bitfields comment.
1204
d930d06e
TT
12052011-10-13 Tom Tromey <tromey@redhat.com>
1206
1207 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1208 always released.
1209
2ff6b080
TT
12102011-10-13 Tom Tromey <tromey@redhat.com>
1211
1212 * python/py-type.c (typy_has_key): Make 'field' const.
1213
d6c5869f
LM
12142011-10-13 Luis Machado <lgustavo@codesourcery.com>
1215
1216 * remote.c (remote_save_trace_data): Invert comparison.
1217
a70633a2
LM
12182011-10-13 Luis Machado <lgustavo@codesourcery.com>
1219
1220 * tracepoint.c (trace_save_command): Use filename instead of
1221 args when printing.
1222
e103e986
JK
12232011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1224
1225 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1226 if .size is 0.
1227
db24da6d
YQ
12282011-10-13 Yao Qi <yao@codesourcery.com>
1229
1230 PR gdb/12703
1231 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1232 whether insn is a 32-bit Thumb-2 instruction.
1233 (thumb_in_function_epilogue_p): Likewise.
1234 (thumb_get_next_pc_raw): Likewise.
1235 (arm_breakpoint_from_pc): Likewise.
1236
1d6edc3c
JK
12372011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1238
1239 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1240 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1241 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1242 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1243 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1244 zero DATA.
1245 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1246 validity.
1247 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1248 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1249 clear DATA on zero SIZE.
1250
adabb602
DE
12512011-10-12 Doug Evans <dje@google.com>
1252
1253 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1254 header->first_die_offset here. All callers updated.
1255
5048e516
JK
12562011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1257
1258 Fix compatibility with texinfo versions older than 4.12.
1259 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1260 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1261 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1262 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1263 * configure: Regenerate.
1264 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1265 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1266 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1267
0574c78f
GB
12682011-10-12 Gary Benson <gbenson@redhat.com>
1269
1270 * breakpoint.h (pc_at_non_inline_function): Declare.
1271 * breakpoint.c (is_non_inline_function,
1272 pc_at_non_inline_function): New functions.
1273 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1274 if the stop is at a location where functions cannot be inlined.
1275
12d9289a
PA
12762011-10-12 Pedro Alves <pedro@codesourcery.com>
1277
1278 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1279 the core wanted them stopped, or if they now have a pending event
1280 to report.
ecf8e7f5
PA
1281 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1282 down to stop_and_resume_callback.
1283 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1284 having new pending events after calling linux_nat_filter_event.
12d9289a 1285
96408a79
SA
12862011-10-11 Sterling Augustine <saugustine@google.com>
1287
1288 * dwarf2read.c: Undo inadvertent changes in previous commit.
1289
9c6c53f7
SA
12902011-10-11 Sterling Augustine <saugustine@google.com>
1291
1292 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1293 logic.
1294
0e8aefe7
UW
12952011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1296
1297 * symfile.c (separate_debug_file_exists): Fix condition.
1298
349d1385
DM
12992011-10-11 David S. Miller <davem@davemloft.net>
1300
1301 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1302 static.
1303 * regcache.h (regcache_restore): Remove declaration.
1304
205c306f
DM
1305 * gdbarch.sh: New field 'long_long_align_bit'.
1306 * gdbarch.c, gdbarch.h: Regenerate.
1307 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1308 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1309
941b2081
JK
13102011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1311
1312 Revert this part of:
1313 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 Support @entry in input expressions.
1315 * c-exp.y (ENTRY, unknown_cpp_name): New.
1316 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1317 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1318 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1319 (name_not_typename: ENTRY): New.
1320 (yylex): Recognize ENTRY.
1321
1322 Reimplement @entry in input expressions.
1323 * c-exp.y (ENTRY): New.
1324 (variable: name_not_typename ENTRY): New.
1325 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1326
3c4d7e12
PA
13272011-10-11 Pedro Alves <pedro@codesourcery.com>
1328
1329 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1330 parent and child's pids as soon as we detect a clone event.
1331 Adjust another debug message.
1332
ea23808b
PA
13332011-10-11 Pedro Alves <pedro@codesourcery.com>
1334
1335 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1336 not zombie instead of reading the whole file.
1337
904578ed
JK
13382011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1339
1340 Fix separate debuginfo warning with "remote:" access.
1341 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1342 * symfile.c (get_file_crc): New function with the code moved from ...
1343 (separate_debug_file_exists): ... this function, specifically variables
1344 buffer and count. New variable verified_as_different, set it. Remove
1345 file_crc initialization. Verify also if both files are not the same
1346 manually, if needed.
1347
51370a33
YQ
13482011-10-11 Yao Qi <yao@codesourcery.com>
1349
1350 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1351 to get address.
1352
0838fb57
DE
13532011-10-10 Doug Evans <dje@google.com>
1354
1355 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1356 libthread_db when we load libpthread or the main symbol file.
1357 (thread_db_inferior_created): New function.
1358 (_initialize_thread_db): Attach inferior_created observer.
1359 * linux-nat.c (linux_child_post_attach): Remove call to
1360 check_for_thread_db.
1361 (linux_child_post_startup_inferior): Ditto.
1362 * objfiles.h (OBJF_MAINLINE): Define.
1363 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1364 allocate_objfile when appropriate.
1365
623bd5b7
UW
13662011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1367
1368 PR gdb/13218
1369 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1370 Remove unused variables.
1371 (get_linux_version): Remove function.
1372 (_initialize_arm_linux_nat): Do not call it.
1373
79395f92
PA
13742011-10-10 Pedro Alves <pedro@codesourcery.com>
1375
1376 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1377 new clone lwp if the core asked it to stop. Don't pass on
1378 unexpected signals to the new clone; leave them pending instead.
1379
eff3df78
PA
13802011-10-10 Pedro Alves <pedro@codesourcery.com>
1381
1382 * linux-nat.c (resume_lwp): Remove redundant debug output.
1383
4b60df3d
PA
13842011-10-10 Pedro Alves <pedro@codesourcery.com>
1385
1386 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1387 last_resume_kind before clearing it, and use the copy instead to
1388 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1389 resume_clear_callback in the non-stop path too.
1390
6501578c
YQ
13912011-10-09 Yao Qi <yao@codesourcery.com>
1392
1393 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1394 Honor OPTIONS and VAL's type.
1395 (common_val_print, value_print): Update to pass one more parameter.
1396
5a56e9c5
DE
13972011-10-09 Doug Evans <dje@google.com>
1398
1399 Add new "alias" command.
1400 * NEWS: Mention new command.
1401 * command.h (valid_user_defined_cmd_name_p): Declare.
1402 * defs.h (make_cleanup_dyn_string_delete): Declare.
1403 * utils.c: #include "dyn-string.h".
1404 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1405 * cli/cli-cmds.c: #include "dyn-string.h".
1406 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1407 (init_cli_cmds): Add new command.
1408 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1409
509f0fd9
JK
14102011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Fix compatibility with older GCCs.
1413 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1414 * stack.c (read_frame_arg): Initialize val_deref.
1415
2bda9cc5
JK
14162011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1417
1418 Entry values NEWS entries, DWARF disassembly support.
1419 * NEWS: New entry values entry.
1420 (set print entry-values, show print entry-values)
1421 (set debug entry-values, show debug entry-values): New entries.
1422 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1423 indent. Remove variable start. Move header printing out. Respect
1424 INDENT. Support DW_OP_GNU_entry_value.
1425 (locexpr_describe_location_1): Move the header printing here, extend
1426 the disassemble_dwarf_expression passed parameters.
1427
a471c594
JK
14282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 Display @entry parameter values even for references.
1431 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1432 coerce_ref_if_computed.
1433 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1434 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1435 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1436 existing push_dwarf_reg_entry_value call. Add new detection calling
1437 dwarf_block_to_dwarf_reg_deref. Update the error message.
1438 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1439 * dwarf2expr.h
1440 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1441 parameter deref_size, describe it in the comment.
1442 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1443 (dwarf_block_to_dwarf_reg_deref): New declaration.
1444 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1445 deref_size, describe it in the function comment. New variables
1446 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1447 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1448 describe it in the function comment. Fetch the alternative block
1449 accoring to DEREF_SIZE.
1450 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1451 (entry_data_value_free_closure, entry_data_value_funcs): New.
1452 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1453 outer_val, target_val, val and addr. Try to fetch and create also
1454 referenced value content.
1455 (pieced_value_funcs): NULL value for coerce_ref.
1456 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1457 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1458 coerce_ref_if_computed.
1459 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1460 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1461 * stack.c (read_frame_arg): Compare also dereferenced values.
1462 * value.c (value_computed_funcs): Make the parameter v const, use
1463 value_lval_const for it.
1464 (value_lval_const, coerce_ref_if_computed): New function.
1465 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1466 * value.h (struct lval_funcs): New field coerce_ref.
1467 (value_computed_funcs): Make the parameter v const.
1468 (value_lval_const, coerce_ref_if_computed): New declarations.
1469
36b11add
JK
14702011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1471
1472 Support @entry in input expressions.
1473 * c-exp.y (ENTRY, unknown_cpp_name): New.
1474 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1475 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1476 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1477 (name_not_typename: ENTRY): New.
1478 (yylex): Recognize ENTRY.
1479 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1480 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1481 Likewise.
1482 * parse.c (operator_length_standard): Likewise.
1483 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1484
3343315b
JK
14852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1486
1487 Display referenced values in backtraces.
1488 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1489 * stack.c (print_frame_arg): Likewise.
1490
ac71a68c
JK
14912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 Make some lval_funcs methods to default on NULL.
1494 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1495 NULL.
1496 (value_assign): Check if lval_computed write method is NULL.
1497 * value.h (struct lval_funcs): Comment NULL values for read and write
1498 methods.
1499
e18b2753
JK
15002011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1501
1502 Display @entry parameter values (without references).
1503 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1504 New functions.
1505 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1506 New declarations.
1507 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1508 entry record.
1509 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1510 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1511 functions.
1512 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1513 (loclist_read_variable_at_entry): New function.
1514 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1515 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1516 DW_AT_location, call dwarf_block_to_sp_offset for it.
1517 * frame.h (print_entry_values_no, print_entry_values_only)
1518 (print_entry_values_preferred, print_entry_values_if_needed)
1519 (print_entry_values_both, print_entry_values_compact)
1520 (print_entry_values_default, print_entry_values): New declarations.
1521 (struct frame_arg): New field entry_kind.
1522 (read_frame_arg): New parameter entryargp.
1523 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1524 arg->entry_kind. Optionally print the `@entry' suffix.
1525 (list_args_or_locals): New variable entryarg, initialize it.
1526 Initialize also entry_kind of arg and entryarg. Conditionalize
1527 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1528 xfree for entryarg.error.
1529 * stack.c (print_entry_values_no, print_entry_values_only)
1530 (print_entry_values_preferred, print_entry_values_if_needed)
1531 (print_entry_values_both, print_entry_values_compact)
1532 (print_entry_values_default, print_entry_values_choices)
1533 (print_entry_values): New variables.
1534 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1535 print the `@entry' suffix, possibly in combination for
1536 print_entry_values_compact.
1537 (read_frame_arg): New parameter entryargp, new variables entryval,
1538 entryval_error and val_equal. Read in also entryargp, respect
1539 print_entry_values, compare the values using val_equal, fill in also
1540 argp->entry_kind (together with entryargp->entry_kind).
1541 (print_frame_args): New variable entryarg, initialize it.
1542 Conditionalize print_frame_arg for arg, add print_frame_arg for
1543 entryarg. Call xfree for entryarg.error.
1544 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1545 * symtab.h (struct symbol_computed_ops): New field
1546 read_variable_at_entry.
1547
93d86cef
JK
15482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 Code reshuffle.
1551 * frame.h (struct frame_arg): New definition.
1552 (read_frame_arg): New declaration.
1553 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1554 (list_args_or_locals): ... the code here. New variable arg, call
1555 read_frame_arg and list_arg_or_local with it. Unify the
1556 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1557 arg.error.
1558 * stack.c (print_frame_arg): New functiom from the code of
1559 print_frame_args.
1560 (read_frame_arg): New function.
1561 (print_frame_args): Remove variable val. New variable arg, call
1562 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1563
2d6c5dc2
JK
15642011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1565
1566 Protect entry values against self tail calls.
1567 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1568 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1569
111c6489
JK
15702011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1571
1572 Recognize virtual tail call frames.
1573 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1574 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1575 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1576 * dwarf2-frame-tailcall.c: New file.
1577 * dwarf2-frame-tailcall.h: New file.
1578 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1579 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1580 REGS.PREV only after CIE execution.
1581 (struct dwarf2_frame_cache): New field tailcall_cache.
1582 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1583 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1584 parts, try to find entry_cfa_sp_offset. Call
1585 dwarf2_tailcall_sniffer_first.
1586 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1587 when appropriate.
1588 (dwarf2_frame_dealloc_cache): New function.
1589 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1590 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1591 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1592 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1593 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1594 * dwarf2loc.c (func_addr_to_tail_call_list)
1595 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1596 (call_site_find_chain_1, call_site_find_chain): New.
1597 * dwarf2loc.h (struct call_site_chain): New.
1598 (call_site_find_chain): New declaration.
1599 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1600 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1601 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1602 * stack.c (frame_info): Support also TAILCALL_FRAME.
1603
bb984ff1
JK
16042011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1605
1606 Tail call sites reader implementation.
1607 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1608 fill in TYPE_TAIL_CALL_LIST.
1609 * gdbtypes.h (struct func_type): New field tail_call_list.
1610 (struct call_site): New field tail_call_next.
1611 (TYPE_TAIL_CALL_LIST): New definition.
1612
8e3b41a9
JK
16132011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1614
1615 Implement basic support for DW_TAG_GNU_call_site.
1616 * block.c: Include gdbtypes.h and exceptions.h.
1617 (call_site_for_pc): New function.
1618 * block.h (call_site_for_pc): New declaration.
1619 * defs.h: Include hashtab.h.
1620 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1621 declarations.
1622 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1623 ctx_no_push_dwarf_reg_entry_value.
1624 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1625 (dwarf_block_to_dwarf_reg): New function.
1626 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1627 (ctx_no_push_dwarf_reg_entry_value): New function.
1628 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1629 push_dwarf_reg_entry_value.
1630 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1631 declarations.
1632 * dwarf2loc.c: Include gdbcmd.h.
1633 (dwarf_expr_ctx_funcs): New forward declaration.
1634 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1635 (dwarf_expr_reg_to_entry_parameter)
1636 (dwarf_expr_push_dwarf_reg_entry_value): New.
1637 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1638 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1639 (needs_dwarf_reg_entry_value): New function.
1640 (needs_frame_ctx_funcs): Install it.
1641 (_initialize_dwarf2loc): New function.
1642 * dwarf2loc.h (entry_values_debug): New declaration.
1643 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1644 (read_call_site_scope): New forward declaration.
1645 (process_full_comp_unit): Copy call_site_htab.
1646 (process_die): Support DW_TAG_GNU_call_site.
1647 (read_call_site_scope): New function.
1648 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1649 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1650 (cleanup_htab): Delete.
1651 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1652 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1653 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1654 FIELD_LOC_KIND_DWARF_BLOCK.
1655 * gdbtypes.h (enum field_loc_kind): New entry
1656 FIELD_LOC_KIND_DWARF_BLOCK.
1657 (struct main_type): New loc entry dwarf_block.
1658 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1659 (TYPE_FIELD_DWARF_BLOCK): New.
1660 * python/py-type.c: Include dwarf2loc.h.
1661 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1662 internal_error call on unknown FIELD_LOC_KIND.
1663 * symtab.h (struct symtab): New field call_site_htab.
1664 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1665 (core_addr_hash, core_addr_eq): New functions.
1666
b6cdc2c1
JK
16672011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1668
1669 Code reshuffle.
1670 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1671 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1672 calling_convention under func_stuff there.
1673 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1674 (init_type) <TYPE_CODE_FUNC>: Likewise.
1675 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1676 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1677 * gdbtypes.h (enum type_specific_kind): Change
1678 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1679 (struct main_type) <type_specific>: Change calling_convention to
1680 func_stuff. Move calling_convention to ...
1681 (struct func_type): ... this new struct.
1682 (INIT_FUNC_SPECIFIC): New #define.
1683 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1684
181cebd4
JK
16852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1686
1687 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1688 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1689 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1690 ctx->ref_addr_size. Handle its invalid value.
1691 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1692 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1693 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1694 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1695 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1696 (dwarf2_per_cu_ref_addr_size): New function.
1697
c471e790
JK
16982011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1699
1700 Code cleanup.
1701 * dwarf2read.c (per_cu_header_read_in): New function.
1702 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1703 variables cu_header_local and cu_headerp.
1704
741f5e3c
JK
17052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1706
1707 Fix initial language detection with -readnow.
1708 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1709 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1710 searches only for global symbols.
1711
a73d2258
JK
17122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1713
1714 Fix printed anonymous struct name.
1715 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1716 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1717 (anonymous_struct_prefix): New function.
1718 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1719 (dwarf2_name): Strip for anonymous structs any prefixes.
1720
749fd4ea
DE
17212011-10-07 Doug Evans <dje@google.com>
1722
1fa57852
DE
1723 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1724 `replace'.
1725
690a4937
DE
1726 * python/lib/gdb/printing.py: Whitespace cleanup.
1727
749fd4ea
DE
1728 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1729 warning.
1730
4c38200f
PA
17312011-10-07 Pedro Alves <pedro@codesourcery.com>
1732
1733 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1734 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1735 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1736 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1737 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1738 (arm_linux_remove_watchpoint): Adjust.
1739 * i386-linux-nat.c (i386_linux_dr_set_control)
1740 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1741 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1742 (ia64_linux_remove_watchpoint): Adjust.
1743 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1744 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1745 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1746 (ppc_linux_insert_mask_watchpoint)
1747 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1748 (ppc_linux_remove_watchpoint): Adjust.
1749 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1750 Adjust.
1751
b7ff339d
CV
17522011-10-07 Corinna Vinschen <vinschen@redhat.com>
1753
1754 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1755 (clear_win32_environment): New function for Cygwin to clear out
1756 Win32 environment.
1757 (windows_create_inferior): Prepare new environment from in_env
1758 for Cygwin, too.
1759
f287c1f3
PM
17602011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1761
5631e596 1762 PR python/13264
f287c1f3
PM
1763 * python/py-value.c (valpy_call): Check that arguments are
1764 a tuple.
1765 (is_intlike): Remove call to CHECK_TYPEDEF.
1766 (valpy_nonzero): Catch GDB exceptions.
1767 (valpy_absolute): Ditto.
1768 (valpy_lazy_string): Ditto.
1769 (valpy_call): Ditto.
1770 (valpy_get_is_optimized_out): Ditto.
1771 (valpy_long): Ditto.
1772 (valpy_float): Ditto.
1773 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1774 (valpy_richcompare): Ditto.
1775
03583c20
UW
17762011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1777
1778 * inferior.h (disable_randomization): Declare.
1779 * infrun.c (disable_randomization): New global variable.
1780 (show_disable_randomization): New function.
1781 (set_disable_randomization): Likewise.
1782 (_initialize_infrun): Install set/show disable-randomization
1783 commands.
1784 * linux-nat.c (disable_randomization): Remove.
1785 (show_disable_randomization): Likewise.
1786 (set_disable_randomization): Likewise.
1787 (_initialize_linux_nat): No longer install set/show
1788 disable-randomization commands here.
1789 (linux_nat_supports_disable_randomization): New function.
1790 (linux_nat_add_target): Install it.
1791 * remote.c (PACKET_QDisableRandomization): New enum value.
1792 (remote_protocol_packets): Support QDisableRandomization.
1793 (_initialize_remote): Likewise.
1794 (remote_supports_disable_randomization): New function.
1795 (init_remote_ops): Install it.
1796 (extended_remote_supports_disable_randomization): New function.
1797 (init_extended_remote_ops): Install it.
1798 (extended_remote_disable_randomization): New function.
1799 (extended_remote_create_inferior_1): Call it.
1800 * target.h (struct target_ops): Add to_supports_disable_randomization.
1801 (target_supports_disable_randomization): Add prototype.
1802 * target.c (target_supports_disable_randomization): New function.
1803 (find_default_supports_disable_randomization): Likewise.
1804 (init_dummy_target): Install it.
1805
20c168b5
KP
18062011-10-07 Kevin Pouget <kevin.pouget@st.com>
1807
1808 Allow Python notification of new object-file loadings.
1809 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1810 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1811 Add build rule for this file.
1812 * python/py-event.h (emit_new_objfile_event): New prototype.
1813 (newobjfile): New Python event emitter.
1814 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1815 Python event registry.
1816 * python/py-inferior.c: Include objfiles.h
1817 (python_new_objfile): New function.
1818 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1819 observers.
1820 * python/py-newobjfileevent.c: New file.
1821 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1822 prototype.
1823 * python/python.c (_initialize_python): Add
1824 gdbpy_initialize_new_objfile_event call.
1825 * NEWS: Add item for new Python event "gdb.newobjfile"
1826
b1c8db38
TG
18272011-10-05 Tristan Gingold <gingold@adacore.com>
1828
1829 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1830 Extract the ravenscar task name from the symbol for the atcb.
1831
0dab82e9
PK
18322011-10-04 Paul Koning <paul_koning@dell.com>
1833
1834 * python/py-type.c (typy_make_iter): Add forward declaration.
1835 (typy_fields_items): Use the gdb.Type iterator.
1836
84ad80e6
PK
18372011-10-04 Paul Koning <paul_koning@dell.com>
1838
1839 * NEWS: Add entry for Python gdb.Type mapping methods.
1840
cb6be26b
KP
18412011-10-04 Kevin Pouget <kevin.pouget@st.com>
1842
1843 PR python/12691: Add the inferior to Python exited event
1844 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1845 to exited_event.
1846 * python/py-event.h (emit_exited_event): Likewise
1847 * python/-inferior.c (python_inferior_exit): Likewise
1848
6005b210
JB
18492011-10-03 Joel Brobecker <brobecker@adacore.com>
1850
1851 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1852 in output of -ada-task-info GDB/MI command.
1853
75082e8c
JB
18542011-10-03 Joel Brobecker <brobecker@adacore.com>
1855
1856 * ada-lang.h (struct inferior): Declare.
1857 (print_ada_task_info): Add declaration.
1858 * ada-tasks.c (print_ada_task_info): Make non-static.
1859 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1860 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1861 * mi/mi-main.c: #include "ada-lang.h".
1862 (mi_cmd_list_features): Add "ada-task-info" to the list
1863 of supported features.
1864 (mi_cmd_ada_task_info): New function.
1865
7ed7d719
JB
18662011-10-03 Joel Brobecker <brobecker@adacore.com>
1867
1868 * python/python.c (python_run_simple_file): New function.
1869 (source_python_script, source_python_script_for_objfile):
1870 Replace call to PyRun_SimpleFile by call to
1871 python_run_simple_file.
1872
3fcaed38
PK
18732011-10-03 Paul Koning <paul_koning@dell.com>
1874
1875 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1876 (value_to_value_object): Fetch value if it was lazy.
1877
8e5c319d
JK
18782011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1879
1880 Code cleanup.
1881 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1882 Rearrange the code for it.
1883
dd11a36c
JB
18842011-10-02 Joel Brobecker <brobecker@adacore.com>
1885
1886 * breakpoint.c (bkpt_print_recreate): Add call to
1887 print_recreate_thread.
1888
723b724b
MF
18892011-09-29 Mike Frysinger <vapier@gentoo.org>
1890
1891 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1892 PTRACE_GETFDPIC_INTERP): Define.
1893
412946b6
YQ
18942011-09-28 Yao Qi <yao@codesourcery.com>
1895
1896 * symfile.c (add_symbol_file_command): Update message on usage.
1897
a73bb892
PK
18982011-09-28 Paul Koning <paul_koning@dell.com>
1899
1900 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1901 (typy_length, typy_get, typy_has_key, typy_make_iter)
1902 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1903 (typy_iterator_iter, typy_iterator_iternext)
1904 (typy_iterator_dealloc): New functions to implement standard
1905 Python mapping methods on gdb.Type object.
1906 (gdb.TypeIterator): New Python type.
1907 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1908
fe10a582
DM
19092011-09-28 David S. Miller <davem@davemloft.net>
1910
1911 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1912 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1913 * sparc-tdep.c (sparc_complex_floating_p): New function.
1914 (sparc32_store_arguments): Handle complex floats.
1915 (sparc32_extract_return_value): Likewise.
1916 (sparc32_store_return_value): Likewise.
1917 (sparc32_stabs_argument_has_addr): Likewise.
1918 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1919 (sparc64_store_floating_fields): Handle complex floats.
1920 (sparc64_store_arguments): Likewise.
1921 (sparc64_store_return_value): Likewise.
1922
c93dbcba
EZ
19232011-09-28 Eli Zaretskii <eliz@gnu.org>
1924
1925 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1926 before the change on 2006-12-09.
1927 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1928 generates the environment block for CreateProcessA, modulo the
1929 Cygwin-specific parts that are not needed here.
1930
f00c55f8
TG
19312011-09-27 Tristan Gingold <gingold@adacore.com>
1932
1933 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1934 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1935 (darwin_solib_get_all_image_info_addr_at_init): New function.
1936 (darwin_solib_read_all_image_info_addr): Likewise.
1937 (darwin_solib_create_inferior_hook): Use the above two functions.
1938 * darwin-nat.c (darwin_execvp): Renames retval to res.
1939 (darwin_read_write_inferior): Update comment.
1940 (darwin_read_dyld_info): New function.
1941 (darwin_xfer_partial): Handle DYLD_INFO.
1942
6710bf39
SS
19432011-09-27 Stan Shebs <stan@codesourcery.com>
1944
1945 Add return address collection for tracepoints.
1946 * tracepoint.c (encode_actions_1): Add case for $_ret.
1947 (validate_actionline): Check for $_ret.
1948 (trace_dump_actions): Ditto.
1949 * ax-gdb.h (gen_trace_for_return_address): Declare.
1950 * ax-gdb.c: Include arch-utils.h.
1951 (gen_trace_for_return_address): New function.
1952 (agent_command): Add return address special case.
1953 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1954 (amd64_gen_return_address): New function.
1955 (amd64_init_abi): Call it.
1956 * i386-tdep.c: Include ax.h and ax-gdb.h.
1957 (i386_gen_return_address): New function.
1958 (i386_init_abi): Call it.
1959 * arch-utils.h (default_gen_return_address): Declare.
1960 * arch-utils.c (default_gen_return_address): New function.
1961 * gdbarch.sh (gen_return_address): New method.
1962 * gdbarch.h, gdbarch.c: Regenerate.
1963
e04e5beb
JM
19642011-09-23 Joseph Myers <joseph@codesourcery.com>
1965
1966 PR gdb/13079
1967 * i386-tdep.c (i386_frame_align): New.
1968 (i386_gdbarch_init): Use i386_frame_align.
1969
f3d6df6d
YQ
19702011-09-23 Yao Qi <yao@codesourcery.com>
1971
1972 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1973 to get address.
1974
e69860f1
TG
19752011-09-22 Tristan Gingold <gingold@adacore.com>
1976
1977 * fork-child.c (fork_inferior): Add exec_fun parameter.
1978 Call exec_fun or execvp.
1979 * inferior.h: Adjust prototype.
1980 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1981 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1982 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1983 * procfs.c (procfs_create_inferior): Ditto.
1984 * darwin-nat.c (darwin_execvp): New function.
1985 (darwin_create_inferior): Use it.
1986
4b51d87b
YQ
19872011-09-22 Yao Qi <yao@codesourcery.com>
1988
1989 * infrun.c (context_switch): Print debug message when switching to
1990 a different thread.
1991
56b9d9ac
UW
19922011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1993
1994 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1995 complex and vector types.
1996 (s390_return_value_convention): Likewise.
1997
1998 (s390_value_from_register): Call check_typedef.
1999 (extend_simple_arg): Likewise.
2000 (alignment_of): Likewise.
2001 (s390_push_dummy_call): Likewise.
2002 (s390_return_value): Likewise.
2003
b2cd6b29
JM
20042011-09-21 Joseph Myers <joseph@codesourcery.com>
2005
2006 * event-top.c (async_disconnect): If an exception is thrown from
2007 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2008 catch_errors.
2009 * top.c (quit_cover): Return void and take no arguments.
2010 * top.h (quit_cover): Update prototype.
2011
67ba4e42
JM
20122011-09-20 Joseph Myers <joseph@codesourcery.com>
2013
2014 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2015 current_uiout, not uiout.
2016
562f943b
DE
20172011-09-19 Doug Evans <dje@google.com>
2018
2019 * python/py-auto-load.c (source_section_scripts): Fix file
2020 descriptor leak.
2021 * python/python.c (source_python_script_for_objfile): Tweak comments.
2022
34518530
YQ
20232011-09-18 Yao Qi <yao@codesourcery.com>
2024 Ulrich Weigand <ulrich.weigand@linaro.org>
2025
2026 Support displaced stepping for Thumb 16-bit insns.
2027 * arm-tdep.c (THUMB_NOP) Define.
2028 (thumb_copy_unmodified_16bit): New.
2029 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2030 (thumb_copy_alu_reg): New.
2031 (arm_copy_svc): Move some common code to ...
2032 (install_svc): ... here. New.
2033 (thumb_copy_svc): New.
2034 (install_pc_relative): New.
2035 (thumb_copy_pc_relative_16bit): New.
2036 (thumb_decode_pc_relative_16bit): New.
2037 (thumb_copy_16bit_ldr_literal): New.
2038 (thumb_copy_cbnz_cbz): New.
2039 (cleanup_pop_pc_16bit_all): New.
2040 (thumb_copy_pop_pc_16bit): New.
2041 (thumb_process_displaced_16bit_insn): New.
2042 (thumb_process_displaced_32bit_insn): New.
2043 (thumb_process_displaced_insn): process thumb instruction.
2044
2045 Support displaced stepping for Thumb 32-bit insns.
2046 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2047 (thumb2_copy_preload): New.
2048 (thumb2_copy_copro_load_store): New.
2049 (thumb2_copy_b_bl_blx): New.
2050 (thumb2_copy_alu_imm): New.
2051 (thumb2_copy_load_reg_imm): New.
2052 (thumb2_copy_load_literal): New
2053 (thumb2_copy_block_xfer): New.
2054 (thumb_32bit_copy_undef): New.
2055 (thumb_32bit_copy_unpred): New.
2056 (thumb2_decode_ext_reg_ld_st): New.
2057 (thumb2_decode_svc_copro): New.
2058 (decode_thumb_32bit_store_single_data_item): New.
2059 (thumb_copy_pc_relative_32bit): New.
2060 (thumb_decode_pc_relative_32bit): New.
2061 (decode_thumb_32bit_ld_mem_hints): New.
2062 (thumb2_copy_table_branch): New
2063 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2064 instructions.
2065
2b16b2e3
YQ
20662011-09-18 Yao Qi <yao@codesourcery.com>
2067
2068 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2069 (install_b_bl_blx): Likewise.
2070
0f6f04ba
YQ
20712011-09-17 Yao Qi <yao@codesourcery.com>
2072
2073 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2074 (install_load_store): ... this. New.
2075 Change parameter BYTE to SIZE.
2076 (arm_copy_ldr_str_ldrb_strb): Update caller.
2077 (arm_decode_ld_st_word_ubyte): Update caller.
2078
e2d96639
YQ
20792011-09-17 Yao Qi <yao@codesourcery.com>
2080
2081 * infrun.c (displaced_step_fixup): Move some code ...
2082 (displaced_step_restore): ... here. New function.
2083 (handle_inferior_event): Cleanup displaced stepping state for both
2084 child and parent when get forked or vforked event.
2085 * regcache.c (get_thread_arch_aspace_regcache): New function.
2086 get_thread_arch_regcache (): Call it.
2087
a8123151
JB
20882011-09-16 Joel Brobecker <brobecker@adacore.com>
2089
2090 * ada-tasks.c (print_ada_task_info): New function, merging
2091 short_task_info and info_tasks together. Reimplement using
2092 ui-out instead of printing to stdout directly. Move the code
2093 building and checking the task list here, instead of leaving it
2094 in info_tasks_command.
2095 (info_task): Move the code building and checking the task
2096 list here, instead of leaving it in info_tasks_command.
2097 (info_tasks_command): Delete code building and checking
2098 the task list - moved elsewhere. Update calls to info_tasks
2099 and info_task.
2100
fbf06824
JB
21012011-09-16 Joel Brobecker <brobecker@adacore.com>
2102
2103 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2104
34a0bc90
JB
21052011-09-16 Joel Brobecker <brobecker@adacore.com>
2106
2107 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2108
79779fa9
JB
21092011-09-16 Joel Brobecker <brobecker@adacore.com>
2110
2111 * ada-lang.h (ada_build_task_list): Remove parameter
2112 `warn_if_null'.
2113 * ada-tasks.c (ada_build_task_list): Remove parameter
2114 `warn_if_null'. Adjust implementation and documentation.
2115 (valid_task_id, ada_get_environment_task)
2116 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2117 (info_tasks_command): Adjust implementation.
2118 (task_command): Likewise.
2119 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2120 to ada_build_task_list.
2121
e225eb91
JB
21222011-09-16 Joel Brobecker <brobecker@adacore.com>
2123
2124 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2125 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2126 (ada_tasks_inferior_data_handle): New static global.
2127 (get_ada_tasks_inferior_data): New function.
2128 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2129 (ada_get_environment_task, iterate_over_live_ada_tasks)
2130 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2131 Adjust.
2132 (ada_set_current_inferior_known_tasks_addr): New function.
2133 (read_known_tasks, ada_build_task_list, short_task_info)
2134 (info_tasks, info_task, info_tasks_command, task_command_1)
2135 (task_command, ada_task_list_changed): Adjust.
2136 (ada_tasks_invalidate_inferior_data): New function.
2137 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2138 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2139 * ada-lang.h (struct inferior): Add declaration.
2140 (ada_task_list_changed): Update profile.
2141 * remote-wtx-pd.c: #include "inferior.h".
2142 (switch_to_pd_internal): Update call to ada_task_list_changed.
2143
6da9ca05
JB
21442011-09-16 Joel Brobecker <brobecker@adacore.com>
2145
2146 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2147 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2148 (atcb_fieldno): Delete these static globals.
2149 (struct ada_tasks_pspace_data): New struct.
2150 (ada_tasks_pspace_data_handle): New static global.
2151 (get_ada_tasks_pspace_data): New function.
2152 (ada_tasks_invalidate_pspace_data): New function.
2153 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2154 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2155 (_initialize_tasks): Create this module's per-progspace
2156 data handle.
2157
dccd3cbd
JB
21582011-09-16 Joel Brobecker <brobecker@adacore.com>
2159
2160 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2161
f877b031
TG
21622011-09-16 Tristan Gingold <gingold@adacore.com>
2163
2164 * fork-child.c (fork_inferior): Update comment. Use alloca
2165 instead of xmalloc for argv. Move len and shell_command
2166 declarations in the block where they are used.
2167 Only call execvp. Factorize failure code.
2168
ae0c443d
JK
21692011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2170
2171 Code cleanup.
2172 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2173 `exp_element' instead of an element of the same and make the function
2174 static.
2175 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2176 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2177 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2178 Change argument of `write_exp_elt' function call.
2179 Remove extra spaces from comments.
2180 * parser-defs.h (write_exp_elt): Remove prototype.
2181
5af65ec0
PK
21822011-09-15 Paul Koning <paul_koning@dell.com>
2183
2184 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2185 count of item appended to list.
2186 * python/py-type.c (typy_fields): Likewise.
2187
72be8ccc
PK
21882011-09-15 Paul Koning <paul_koning@dell.com>
2189
883640a8 2190 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2191
92f6badc
KP
21922011-09-15 Kevin Pouget <kevin.pouget@st.com>
2193
2194 PR threads/12628
2195 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2196 processes with multiple threads.
2197 (inf_has_multiple_thread_cb): New function.
2198 (inf_has_multiple_threads): New function.
2199
0672bf41 22002011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2201
2202 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2203 * python/py-inferior.c (GdbMethods): New Python method definition.
2204
6839b47f
KP
22052011-09-15 Kevin Pouget <kevin.pouget@st.com>
2206
2207 Handle multiple breakpoint hits in Python interface:
2208 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2209 variable to breakpoints.
2210 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2211 bps instead of single breakpoint. Fix some space typos.
2212 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2213 variable to breakpoints.
2214
672f9b60
KP
22152011-09-15 Kevin Pouget <kevin.pouget@st.com>
2216
2217 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2218 note if the breakpoint is internal.
2219
43675ae4
KP
22202011-09-15 Kevin Pouget <kevin.pouget@st.com>
2221
0672bf41 2222 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2223
15148d6a
PA
22242011-09-14 Pedro Alves <pedro@codesourcery.com>
2225
2226 * infrun.c (prepare_for_detach, wait_for_inferior)
2227 (fetch_inferior_event): Don't flush the register cache.
2228 * remote.c (struct stop_reply) <regcache>: Add comment.
2229
d83e736b
JK
22302011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2231
2232 Remove excessive DWARF expressions memory duplication.
2233 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2234 for block.data.
2235 (indirect_pieced_value): Remove variable result. Remove variable
2236 back_to and its use for baton.data.
2237 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2238 block.data.
2239 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2240 Update the function comment.
2241
c65b3e0d
PA
22422011-09-13 Pedro Alves <pedro@codesourcery.com>
2243
2244 * inferior.h (ALL_INFERIORS): New.
2245 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2246 for a stopped thread.
2247 (thread_db_find_new_threads): Look for threads in all inferiors.
2248
a1398e0c
PA
22492011-09-13 Pedro Alves <pedro@codesourcery.com>
2250
2251 * breakpoint.c (update_watchpoint): Handle the case of the
2252 watchpoint to update not being in the breakpoint list yet.
2253 (hw_watchpoint_use_count): New, factored out from
2254 hw_watchpoint_used_count.
2255 (hw_watchpoint_used_count): Rename to ...
2256 (hw_watchpoint_used_count_others): ... this. Add `except'
2257 parameter. Don't count resources of `except'. Use
2258 hw_watchpoint_use_count.
2259
30596231
PA
22602011-09-13 Pedro Alves <pedro@codesourcery.com>
2261
2262 * gdbthread.h (enum thread_state): Moved here.
2263 (struct thread_info): Rename `executing_' field to `executing' and
2264 `state_' to `state'.
2265 * thread.c (enum thread_state): Moved to gdbthread.h.
2266 (new_thread, add_thread_silent, delete_thread_1)
2267 (any_live_thread_of_process, thread_alive, set_running)
2268 (set_running, is_thread_state, any_running, is_executing)
2269 (set_executing, finish_thread_state, print_thread_info)
2270 (do_captured_thread_select): Adjust.
2271
bede5f5f
JK
22722011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2273
2274 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2275 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2276
4801a9a3
PA
22772011-09-12 Pedro Alves <pedro@codesourcery.com>
2278 Matt Rice <ratmice@gmail.com>
2279
2280 PR gdb/13175
2281
2282 * interps.c (struct interp) <interpreter_out>: Delete field.
2283 (interp_new): Remove the data and uiout parameters and adjust.
2284 (interp_set): Only set the current_uiout from the interpreter's
2285 uiout after initializing the interpreter. Adjust call to
2286 init_proc.
2287 (interp_ui_out): Adjust to call procs->ui_out_proc.
2288 (interp_data, interp_name): New.
2289 * interps.h (interp_init_ftype): Add `self' parameter.
2290 (interp_ui_out_ftype): New typedef.
2291 (struct interp_procs) <ui_out_proc>: New method pointer.
2292 (interp_new): Remove the data and uiout parameters.
2293 (interp_data, interp_name): Declare.
2294 * tui/tui-interp.c (tui_init): Adjust prototype.
2295 (tui_ui_out): New.
2296 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2297 tui_out here. Adjust call to interp_new.
2298 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2299 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2300 (cli_ui_out): New.
2301 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2302 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2303 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2304 Initialize mi->uiout depending on the mi_version as extracted from
2305 the interpreter's name.
2306 (mi_ui_out): New.
2307 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2308 interp_new. Don't allocate the ui_out's of the interpreters here.
2309
d0afda03 23102011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2311
d0afda03 2312 * solib.c (solib_used): New function.
59145f8c
AR
2313 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2314 by another so_list object before freeing it.
2315
bdaf8d4a
JK
23162011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2317
2318 Code cleanup.
2319 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2320 values.
2321
df15bd07
JK
23222011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 Code cleanup.
2325 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2326 (amd64_skip_xmm_prologue): ... this new function. Describe its
2327 parameters. No longer use amd64_prologue_line_bug.
2328 * defs.h (producer_is_gcc_ge_4): New declaration.
2329 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2330 (process_full_comp_unit): Update its caller. Remove
2331 amd64_prologue_line_bug initialization.
2332 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2333 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2334
25289eb2
PA
23352011-09-09 Pedro Alves <pedro@codesourcery.com>
2336
2337 * linux-nat.h (enum resume_kind): New.
2338 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2339 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2340 resume_stop on the new lwp.
25289eb2
PA
2341 (add_lwp): Set last_resume_kind as resume_continue by default.
2342 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2343 (resume_lwp): New, factored out from resume_callback. Also check
2344 for pending status in lp->waitstatus.
2345 (resume_callback): Reimplement.
2346 (resume_clear_callback): Set last_resume_kind as resume_stop.
2347 (resume_set_callback): Set last_resume_kind as resume_continue.
2348 (linux_nat_resume, linux_handle_extended_wait): Set
2349 last_resume_kind.
2350 (running_callback): Also check lp->waitstatus for pending events.
2351 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2352 is resume_step.
2353 (stop_and_resume_callback): Don't re-resume if the core wanted the
2354 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2355 using an invalidated pointer.
2356 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2357 SIGSTOPs if the core wanted the LWP to stop.
2358 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2359 wanted the lwp to stop. If the core wanted the lwp to stop, and
2360 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2361 of TARGET_SIGNAL_STOP.
2362 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2363 here. Instead, signal the lwp, and set the last_resume_kind to
2364 resume_stop.
2365
f687d035
PA
23662011-09-09 Pedro Alves <pedro@codesourcery.com>
2367
2368 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2369 -1 (error), if the lwp exits right after attaching.
2370
bc587a6b
DE
23712011-09-08 Doug Evans <dje@google.com>
2372
63d97a20
DE
2373 * py-cmd.c: Some minor formatting fixes.
2374 (gdbpy_parse_command_name): Rename text arg to name, make const.
2375 All callers updated.
2376 * python-internal.h (gdbpy_parse_command_name): Update.
2377
bc587a6b
DE
2378 * cli/cli-decode.c (add_cmd): Add comment.
2379
08711b9a
JK
23802011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2381
2382 PR breakpoints/12435
2383 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2384 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2385 * dwarf2read.c (process_full_comp_unit): Initialize
2386 amd64_prologue_line_bug.
2387 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2388
b2e7f004
JK
23892011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2390
2391 Fix TUI screen corruption.
2392 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2393 batch_flag.
2394
8afd712c
JK
23952011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 * findvar.c (read_var_value): Never return NULL, throw an error
2398 instead. Update the function comment. State symbol name in the error
2399 messages.
2400 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2401 read_var_value.
2402 * stack.c (print_frame_args): Likewise.
2403 * valops.c (value_of_variable): Likewise.
2404
b99b5f66
JK
24052011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 * stack.c (print_frame_args): New variable except. Wrap
2408 read_var_value and common_val_print into TRY_CATCH.
2409
85bc8cb7
JK
24102011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2413 caller to value_of_this.
2414 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2415 Twice.
2416 * valops.c (value_of_this): Remove parameter complain and variable ret.
2417 Update function comment. Never return NULL by this code.
2418 (value_of_this_silent): New function.
2419 * value.h (value_of_this): Remove parameter complain.
2420 (value_of_this_silent): New declaration.
2421
ede1849f
YQ
24222011-09-07 Yao Qi <yao@codesourcery.com>
2423
2424 * gdbthread.h (struct thread_info): Remove fields
2425 `stepping_through_solib_after_catch' and
2426 `stepping_through_solib_catchpoints'.
2427 * infrun.c (init_thread_stepping_state): Update.
2428 (process_event_stop_test, currently_stepping): Update.
2429 (currently_stepping_or_nexting_callback): Update.
2430
6aa27652
YQ
24312011-09-07 Yao Qi <yao@codesourcery.com>
2432
2433 * gdbthread.h (struct thread_info): Comment on field
2434 `step_after_step_resume_breakpoint'.
2435
00db5b94
PA
24362011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2437
2438 * remote.c (remote_console_output): Reindent.
2439
861152be
LM
24402011-09-06 Luis Machado <lgustavo@codesourcery.com>
2441
2442 * frame.c (has_stack_frames): Check for currently selected
2443 traceframe.
2444
ab821bc6
PA
24452011-09-06 Pedro Alves <pedro@codesourcery.com>
2446
2447 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2448 (set_async_annotation_level, set_async_prompt, pop_prompt)
2449 (push_prompt, new_async_prompt): Delete declarations.
2450 * top.h (get_prompt, set_prompt): Change prototype.
2451 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2452 declarations.
2453 * top.c (command_loop):
2454 (top_prompt): New global.
2455 (get_prefix, set_prefix, get_suffix, ): Delete.
2456 (get_prompt, set_prompt): Rewrite.
2457 (show_new_async_prompt): Rename to ...
2458 (show_prompt): ... this.
2459 (init_main): Adjust. Don't handle --annotate=2 here.
2460 * event-top.c (new_async_prompt): Delete.
2461 (the_prompts): Delete.
2462 (more_to_come): Make static.
2463 (display_gdb_prompt): Use top_level_prompt() to compute the top
2464 level prompt, and don't notify the before_prompt observers
2465 directly here. Always trick readline into not trying to display
2466 the prompt if sync_execution and displaying the primary prompt.
2467 If displaying a local/secondary prompt, always show it, even if
2468 sync_execution is set.
2469 (change_annotation_level): Delete.
2470 (top_level_prompt): New, based on change_annotation_level.
2471 (push_prompt, pop_prompt): Delete.
2472 (async_disable_stdin): No longer pushes prompt.
2473 (command_line_handler): No longer pushes or pops prompt. If more
2474 input is expected, call display_gdb_prompt with an explicit empty
2475 prompt.
2476 (async_stop_sig): Adjust.
2477 (set_async_annotation_level, set_async_prompt): Delete.
2478 * python/python.c (before_prompt_hook): Adjust.
2479
f1d90504
PA
24802011-09-05 Pedro Alves <pedro@codesourcery.com>
2481
2482 PR cli/13110
2483
2484 * infrun.c (fetch_inferior_event): Check if there's a selected
2485 thread before checking if the selected thread is executing.
2486
0f641c01
PA
24872011-09-05 Pedro Alves <pedro@codesourcery.com>
2488
2489 * inf-loop.c (execute_command): Don't check if the current thread
2490 if running before synchronously waiting for command completion.
2491 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2492 here.
2493 (normal_stop): Call async_enable_stdin here.
2494 * inf-loop.c (inferior_event_handler): Don't call
2495 async_enable_stdin, nor handle "set exec-done-display" here.
2496
30368258 24972011-09-04 Joel Brobecker <brobecker@adacore.com>
2498
2499 GDB 7.3.1 released.
2500
31916278
JB
25012011-09-04 Joel Brobecker <brobecker@adacore.com>
2502
2503 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2504
e8d56f18
JB
25052011-09-04 Joel Brobecker <brobecker@adacore.com>
2506
2507 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2508
5dd05d8c
JK
25092011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2510
2511 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2512
7d8e6458 25132011-09-02 Matt Rice <ratmice@gmail.com>
2514
2515 PR gdb/10720
2516 * event-top.c (cli_command_loop): Replace readline setup with
2517 direct call to display_gdb_prompt.
2518 (display_gdb_prompt): Do not call observer mechanism during
2519 synchronous execution.
2520
84636d28
PA
25212011-09-02 Pedro Alves <pedro@codesourcery.com>
2522
2523 * linux-nat.c (in_pid_list_p): New.
2524 (linux_record_stopped_pid): Delete.
2525 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2526 already attached to the LWP. Return an indication if so.
2527 (linux_nat_filter_event): Adjust.
2528 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2529 returning an indication to ignore this thread.
2530
b4a14fd0
PA
25312011-09-02 Pedro Alves <pedro@codesourcery.com>
2532
2533 * top.c: Include interps.h.
2534 (execute_command): If the target can async, but the interpreter is
2535 in sync mode, synchronously wait for the command to finish before
2536 returning.
2537 (execute_command_to_string): Force the interpreter to sync mode.
2538 * infrun.c: Include interps.h.
2539 (fetch_inferior_event): Don't restore the prompt yet if the
2540 interpreter is in sync mode.
2541 * interps.c (interpreter_async): New global.
2542 * interps.h (interpreter_async): Declare.
2543 * inf-loop.c: Include interps.h.
2544 (inferior_event_handler): Don't print the language change or run
2545 breakpoint commands yet if the interpreter in is sync mode.
2546 * main.c (captured_command_loop): Flip the interpreter to async
2547 mode.
2548 * cli/cli-script.c: Include interps.h.
2549 (execute_user_command, while_command, if_command): Force the
2550 interpreter to sync mode.
2551 * python/python.c: Include interps.h.
2552 (python_command, execute_gdb_command): Force the interpreter to
2553 sync mode.
2554
c709acd1
PA
25552011-09-02 Pedro Alves <pedro@codesourcery.com>
2556
2557 * value.c (show_convenience): Catch errors thrown while printing
2558 each internal variable.
2559 * infrun.c (validate_siginfo_access): New function.
2560 (siginfo_value_read, siginfo_value_write): Call it.
2561
9655e943
JK
25622011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 Revert:
2565 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2566 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2567 attribute.
2568
cb457ae2
YQ
25692011-08-29 Yao Qi <yao@codesourcery.com>
2570
2571 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2572 (cmp_name): New.
2573 (enable_break2): Update caller.
2574 * solib-frv.c (bfd_lookup_symbol): Removed.
2575 (cmp_name): New.
2576 (enable_break2): Update caller.
2577 * solib-pa64.c (bfd_lookup_symbol): Removed.
2578 (cmp_name): New.
2579 * solib-svr4.c (bfd_lookup_symbol): Removed.
2580 (cmp_name_and_sec_flags): New.
2581 (enable_break): Update caller.
2582 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2583 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2584 (gdb_bfd_lookup_symbol): New.
2585 * solib.h: Functions declarations.
2586
83d1a36a
YQ
25872011-08-29 Yao Qi <yao@codesourcery.com>
2588
2589 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2590 and solib-dsbt.o.
2591
c04b3e8f
JK
25922011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2593
2594 Fix TUI stepi on code without symbols.
2595 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2596 current PC instead.
2597
cb0fd152
JK
25982011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 Code cleanup.
2601 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2602 and the static keyword.
2603 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2604 Make prefix an array.
2605 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2606 * mi/mi-main.c (get_register): Remove stb initialization and the static
2607 keyword.
2608
91174723
JK
26092011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2610
2611 Code cleanup - make mi_opt const.
2612 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2613 opts const.
2614 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2615 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2616 (mi_cmd_env_dir): Likewise.
2617 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2618 (mi_cmd_target_file_put): Likewise.
2619 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2620 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2621 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2622 (mi_valid_noargs): Make opts const.
2623 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2624 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2625 (mi_cmd_data_read_memory): Likewise.
2626 (mi_cmd_data_read_memory_bytes): Likewise.
2627 (mi_cmd_data_write_memory): Likewise.
2628
5068b8e8 26292011-08-26 Matt Rice <ratmice@gmail.com>
2630
2631 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2632 bcache_xmalloc, replace bcache_xmalloc with call to
2633 psymbol_bcache_init for psymbol_cache.
2634 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2635
a4f2ce05
JK
26362011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2637
2638 * inf-loop.c (inferior_event_handler): Add exception_print in
2639 INF_EXEC_COMPLETE.
2640
353d1d73
JK
26412011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2642
2643 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2644 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2645 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2646 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2647 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2648 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2649 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2650 * infrun.c (fetch_inferior_event): Call
2651 make_bpstat_clear_actions_cleanup.
2652 * top.c (execute_command): New variable cleanup_if_error, call
2653 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2654 * utils.c (do_bpstat_clear_actions_cleanup)
2655 (make_bpstat_clear_actions_cleanup): New functions.
2656
3ced3da4
PA
26572011-08-26 Pedro Alves <pedro@codesourcery.com>
2658
2659 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2660 either the parent or the child forks. Rename a couple locals.
2661
a9f4bb21
PA
26622011-08-26 Pedro Alves <pedro@codesourcery.com>
2663
2664 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2665 library call. Avoid reading the `status' local if all waitpid
2666 calls failed.
2667
e5798bef
PA
26682011-08-26 Pedro Alves <pedro@codesourcery.com>
2669
2670 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2671 opening /proc/PID/task always succeeds.
2672
edb2aadf
AR
26732011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2674
2675 * linespec.c (symtab_from_filename): Check for the end of string.
2676
0d932b2f
MK
26772011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2678
2679 PR mi/11912
2680 * varobj.c (cplus_describe_child): Add the keyword
2681 'class' to the output of the method when dealing
2682 with a cast to a base class.
2683
e93ca019
JK
26842011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2685
2686 No functionality change.
2687 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2688 function comment a reference, new variables tp and bs, move here code
2689 from throw_exception.
2690 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2691 describe it in the comment.
2692 * exceptions.c (throw_exception): Remove variable tp, move the code for
2693 bpstat_clear_actions to bpstat_clear_actions.
2694
13da1c97
LM
26952011-08-24 Luis Machado <lgustavo@codesourcery.com>
2696
2697 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2698 * linux-nat.c: Include linux-procfs.h.
2699 (linux_proc_get_tgid): Move to ...
2700 * common/linux-procfs.c: ... here. New file.
2701 * common/linux-procfs.h: New file.
2702 * linux-thread-db.c: Include linux-procfs.h.
2703 * Makefile.in: Update dependencies.
2704 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2705 * config/arm/linux.mh: Likewise.
2706 * config/i386/linux.mh: Likewise.
2707 * config/i386/linux64.mh: Likewise.
2708 * config/ia64/linux.mh: Likewise.
2709 * config/m32r/linux.mh: Likewise.
2710 * config/m68k/linux.mh: Likewise.
2711 * config/mips/linux.mh: Likewise.
2712 * config/pa/linux.mh: Likewise.
2713 * config/pa/linux.mh: Likewise.
2714 * config/powerpc/linux.mh: Likewise.
2715 * config/powerpc/ppc64-linux.mh: Likewise.
2716 * config/powerpc/spu-linux.mh: Likewise.
2717 * config/sparc/linux.mh: Likewise.
2718 * config/sparc/linux64.mh: Likewise.
2719 * config/xtensa/linux.mh: Likewise.
2720
4e5c165d
HZ
27212011-08-24 Hui Zhu <teawater@gmail.com>
2722
2723 * tracepoint.c (cond_string_is_same): New function.
2724 (find_matching_tracepoint): Add condition check
2725 by cond_string_is_same.
2726
6e2f5b22
JK
27272011-08-23 Josh Matthews <josh@joshmatthews.net>
2728
2729 Fix build error in Darwin port.
2730 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2731
abf85f46
JK
27322011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2733
2734 Code cleanup.
2735 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2736 (command_line_is_silent): New function.
2737 (bpstat_do_actions_1): No longer use commands_left, use
2738 command_line_is_silent for commands.
2739 (bpstat_alloc): Remove clearing of commands_left.
2740 (bpstat_stop_status): Remove initialization of commands_left, use
2741 command_line_is_silent.
2742 * breakpoint.h (struct bpstats): Remove commands_left.
2743
3a93a0c2
KS
27442011-08-18 Keith Seitz <keiths@redhat.com>
2745
2746 PR c++/12266
2747 * cp-name-parser.y (struct demangle_info): Remove unused
2748 member PREV.
2749 (d_grab): Likewise.
2750 (allocate_info): Change return type to struct demangle_info *.
2751 Always allocate a new demangle_info.
2752 Remove unused PREV pointer.
2753 (cp_new_demangle_parse_info): New function.
2754 (cp_demangled_name_parse_free): New function.
2755 (do_demangled_name_parse_free_cleanup): New function.
2756 (make_cleanup_cp_demangled_name_parse_free): New function.
2757 (cp_demangled_name_to_comp): Change return type to
2758 struct demangle_parse_info *.
2759 Allocate a new storage for each call.
2760 (main): Update usage for cp_demangled_name_to_comp
2761 API change.
2762 * cp-support.h (struct demangle_parse_info): New structure.
2763 (cp_demangled_name_to_comp): Update API change for
2764 return type.
2765 (cp_new_demangle_parse_info): Declare.
2766 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2767 (cp_demangled_name_parse_free): Declare.
2768 * cp-support.c (cp_canonicalize_string): Update API
2769 change for cp_demangled_name_to_comp.
2770 (mangled_name_to_comp): Likewise.
2771 Return struct demangle_parse_info, too.
2772 (cp_class_name_from_physname): Update mangled_name_to_comp
2773 API change.
2774 (method_name_from_physname): Likewise.
2775 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2776 (cp_remove_params): Likewise.
2777 * python/py-type.c (typy_legacy_template_argument): Likewise.
2778
2779 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2780 (cp_merge_demangle_parse_infos): Declare.
2781 * cp-support.c (ignore_typedefs): New file global.
2782 (copy_string_to_obstack): New function.
2783 (inspect_type): New function.
2784 (replace_typedefs): New function.
2785 (replace_typedefs_qualified_name): New function.
2786 (cp_canonicalize_string_no_typedefs): New function.
2787 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2788 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2789 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2790 instead of cp_canonicalize_string.
2791 (find_method): Likewise.
2792 (decode_compound): Before looking up the name, call
2793 cp_canonicalize_string_no_typedefs.
2794 (decode_variable): Likewise.
2795
fa3a4f15
PM
27962011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2797 Tom Tromey <tromey@redhat.com>
2798 Matt Rice <ratmice@gmail.com>
2799
2800 * python/lib/gdb/prompt.py: New file.
2801 * python/lib/gdb/command/prompt.py: New file.
2802 * NEWS: Document set extended-prompt and gdb.prompt library
2803
85661b1e
YQ
28042011-08-16 Yao Qi <yao@codesourcery.com>
2805
2806 * tic6x-linux-tdep.c: Move const arrays definition from here...
2807 * tic6x-tdep.c: to here ...
2808
11315641
YQ
28092011-08-14 Yao Qi <yao@codesourcery.com>
2810
2811 * NEWS: New port to Texas Instruments TMS320C6x.
2812
8cd64e00
YQ
28132011-08-14 Andrew Jenner <andrew@codesourcery.com>
2814 Bernd Schmidt <bernds@codesourcery.com>
2815 Yao Qi <yao@codesourcery.com>
2816
2817 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2818 * solib-dsbt.c: New file. Support DSBT shared object.
2819 * tic6x-linux-tdep.c: New file.
2820 * tic6x-tdep.c: New file.
2821 * tic6x-tdep.h: New file.
2822
78d85199
YQ
28232011-08-14 Andrew Stubbs <ams@codesourcery.com>
2824 Yao Qi <yao@codesourcery.com>
2825
2826 * remote.c (PACKET_qXfer_fdpic): New enum value.
2827 (remote_protocol_features): Add qXfer:fdpic:read packet.
2828 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2829 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2830 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2831
224bbe49
YQ
28322011-08-14 Yao Qi <yao@codesourcery.com>
2833
2834 Target description for tic6x.
2835 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2836 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2837 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2838 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2839 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2840 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2841 * features/tic6x-c64xp-linux.xml: New.
2842 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2843 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2844 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2845 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2846 * regformats/tic6x-c64xp.dat,
2847 regformats/tic6x-c62x-linux.dat: Generated.
2848 * regformats/tic6x-c64x-linux.dat,
2849 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2850 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2851 features/tic6x-*.c files.
2852 Add regformats/tic6x-*.dat files.
2853
457e09f0
DE
28542011-08-12 Doug Evans <dje@google.com>
2855
2856 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2857 * python/py-symbol.c (sympy_get_type): New function.
2858 (symbol_object_getset): Add "type".
2859
d20c1c3f
PA
28602011-08-12 Pedro Alves <pedro@codesourcery.com>
2861
2862 PR tui/13073
2863
2864 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2865 empty name.
2866 (tui_show_register_group): Don't store a byte buffer in the data
2867 element's value.
2868 (tui_register_format): Skip registers with an empty name.
2869 (tui_get_register): Store a struct value in the data element's
2870 value field instead of a byte buffer holding the raw register
2871 contents. Account for optimized-out and unavailable registers
2872 when comparing register contents.
2873
9d8fa392
PA
28742011-08-09 Pedro Alves <pedro@codesourcery.com>
2875
2876 * printcmd.c (current_display_number): Update comment.
2877 (disable_current_display_cleanup): Delete.
2878 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2879 catch errors thrown while evaluating and printing the display.
2880
401a70b8
TT
28812011-08-09 Tom Tromey <tromey@redhat.com>
2882
2883 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2884
7f86f058
PA
28852011-08-09 Pedro Alves <pedro@codesourcery.com>
2886
94b71cca 2887 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2888 * maint.c (maintenance_command): Ditto.
2889 * somread.c (som_symtab_read): Ditto.
2890 * solib.c (solib_find, solib_map_sections, update_solib_list)
2891 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2892 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2893 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2894 * solib-irix.c (locate_base, disable_break, enable_break)
2895 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2896 (irix_current_sos, irix_open_symbol_file_object)
2897 (irix_special_symbol_handling): Ditto.
2898 * solib-sunos.c (locate_base, first_link_map_member)
2899 (sunos_current_sos, disable_break, enable_break)
2900 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2901 Ditto.
2902 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2903 (open_symbol_file_object, svr4_current_sos, enable_break)
2904 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2905 Ditto.
2906 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2907 (frv_current_sos, enable_break, frv_special_symbol_handling)
2908 (frv_solib_create_inferior_hook): Ditto.
2909 * solist.h (struct target_so_ops): Extend the comments of the
2910 special_symbol_handling, current_sos and open_symbol_file_object
2911 methods.
2912
5e239b84
PM
29132011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2914
2915 * python/lib/gdb/__init__.py: Auto-load files in command and
2916 function directories.
2917 * python/python.c (finish_python_initialization): Use
2918 os.path.join.
2919 * python/lib/gdb/command/pretty_printers.py: Self register
2920 command.
2921 * NEWS: Document auto-loading.
2922
b6cede78
JK
29232011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2924
2925 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2926 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2927 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2928
29d0bb3d
TT
29292011-08-08 Tom Tromey <tromey@redhat.com>
2930
2931 * breakpoint.c (clean_up_filters): Remove.
2932 (catch_syscall_split_args): Use VEC_cleanup.
2933
2f7fb8e4
JK
29342011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2935
2936 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2937 (main): Uncomment "Demangling error\n".
2938
d6c10e95
PP
29392011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2940
2941 * solib-target.c (segment_attributes): Make them static.
2942 (section_attributes, library_children, library_attributes): Likewise.
2943 (library_list_children, library_list_attributes): Likesise.
2944 (library_list_elements): Likewise.
2945
af6e93b2
PA
29462011-08-05 Pedro Alves <pedro@codesourcery.com>
2947
2948 * exceptions.c (throw_exception): Don't disable the current
2949 display.
2950 * printcmd.c (disable_current_display_cleanup): New function.
2951 (do_one_display): Install a cleanup to disable the current display
2952 if doing the display throws.
2953
6a1b1664
EZ
29542011-08-05 Eli Zaretskii <eliz@gnu.org>
2955
2956 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2957 initialization of the tp_new member to the corresponding
2958 gdbpy_initialize_* function.
2959 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2960 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2961 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2962 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2963 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2964
31a0ae49
JK
29652011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2966
2967 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2968 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2969 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2970 references to current_uiout.
2971
e0dd0826
PA
29722011-08-04 Pedro Alves <pedro@codesourcery.com>
2973
2974 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2975 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2976 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2977 * top.c (gdb_readline_wrapper): Adjust.
2978 * tui/tui-interp.c (tui_command_loop):
2979 (_initialize_tui_interp): Don't install it.
2980
79a45e25
PA
29812011-08-04 Pedro Alves <pedro@codesourcery.com>
2982
2983 * ui-out.h (uiout): Rename to ...
2984 (current_uiout): ... this.
2985 * ui-out.c (uiout): Rename to ...
2986 (current_uiout): ... this.
2987 * ada-lang.c (print_it_exception, print_one_exception)
2988 (print_mention_exception): Adjust.
2989 * breakpoint.c (watchpoint_check): Adjust.
2990 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2991 (default_collect_info, watchpoints_info, print_one_catch_fork)
2992 (print_one_catch_vfork, print_one_catch_syscall)
2993 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2994 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2995 (print_it_watchpoint, print_mention_watchpoint)
2996 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2997 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2998 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2999 (bkpt_print_mention, momentary_bkpt_print_it)
3000 (tracepoint_print_mention, update_static_tracepoint)
3001 (tracepoints_info, save_breakpoints): Adjust.
3002 * cli-out.c (field_separator): Adjust.
3003 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3004 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3005 * frame.c (get_current_frame): Adjust.
3006 * infcmd.c (run_command_1, print_return_value): Adjust.
3007 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3008 * infrun.c (print_end_stepping_range_reason): Adjust.
3009 (print_signal_exited_reason, print_exited_reason): Adjust.
3010 (print_signal_received_reason, print_no_history_reason): Adjust.
3011 * interps.c (interp_set): Adjust.
3012 * osdata.c (info_osdata_command): Adjust.
3013 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3014 * remote-fileio.c (remote_fileio_request): Adjust.
3015 * remote.c (show_remote_cmd): Adjust.
3016 * solib.c (info_sharedlibrary_command): Adjust.
3017 * source.c (print_source_lines_base): Adjust.
3018 * stack.c (print_stack_frame): Adjust.
3019 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3020 * symfile-mem.c (add_vsyscall_page): Adjust.
3021 * symfile.c (load_progress, generic_load)
3022 (print_transfer_performance): Adjust.
3023 * thread.c (info_threads_command, restore_selected_frame)
3024 (thread_command): Adjust.
3025 * top.c (make_cleanup_restore_ui_file): Adjust.
3026 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3027 (print_one_static_tracepoint_marker): Adjust.
3028 * cli/cli-cmds.c (print_disassembly): Adjust.
3029 * cli/cli-decode.c (print_doc_line): Adjust.
3030 * cli/cli-interp.c (safe_execute_command): Adjust.
3031 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3032 (handle_redirections): Adjust.
3033 * cli/cli-script.c (show_user_1): Adjust.
3034 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3035 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3036 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3037 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3038 (mi_cmd_env_dir): Adjust.
3039 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3040 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3041 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3042 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3043 (list_args_or_locals): Adjust.
3044 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3045 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3046 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3047 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3048 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3049 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3050 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3051 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3052 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3053 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3054 (list_available_thread_groups, mi_cmd_list_thread_groups)
3055 (mi_cmd_data_list_register_names)
3056 (mi_cmd_data_list_changed_registers)
3057 (mi_cmd_data_list_register_values, get_register)
3058 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3059 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3060 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3061 (mi_execute_command, mi_load_progress): Adjust.
3062 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3063 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3064 Adjust.
3065 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3066 * tui/tui-interp.c (tui_command_loop): Adjust.
3067 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3068
f9679975
PA
30692011-08-04 Pedro Alves <pedro@codesourcery.com>
3070
3071 * exceptions.c (struct catcher): Remove saved_uiout field.
3072 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3073 no longer save/resvore the global ui_out builder.
3074 (catch_exceptions_with_msg): Save/override/restore the global
3075 ui_out builder manually instead of relying on TRY_CATCH to do it.
3076 (catch_errors): Save/restore the global ui_out builder manually
3077 instead of relying on TRY_CATCH to do it.
3078 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3079 parameter.
3080 (TRY_CATCH): Adjust.
3081 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3082 the global ui_out builder manually instead of relying on TRY_CATCH
3083 to do it.
3084
934709f0
PW
30852011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3086
3087 * breakpoint.c (update_global_location_list): Ensure
3088 invariant 'first loc marked not duplicated and inserted,
3089 following locs marked duplicated/not inserted' is respected
3090 for multiple locations at the same address.
3091 (unduplicated_should_be_inserted) New function.
3092 (swap_insertion) New function.
3093
2421fe6f
JK
30942011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3095
3096 * stack.c (print_frame_arguments_choices): Comment typo fix.
3097
3fbb6ffa
TJB
30982011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3099
3100 Revert:
3101 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3102 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3103 argument. Update callers.
3104
fbe12357
PP
31052011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3106
3107 PR gdb/13045
3108 * doublest.c (convert_doublest_to_floatformat): Pass correct
3109 mantissa length to put_field.
3110
b1d288d3
JK
31112011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3112
3113 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3114 exception_print code path.
3115 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3116 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3117 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3118
311b5970
JK
31192011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 Code cleanup.
3122 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3123 Remove, merge them into ...
3124 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3125 variable args and its initialization.
3126 (struct print_args_args, print_args_stub): Remove, merge them into
3127 print_frame.
3128 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3129 them into ...
3130 (do_gdb_disassembly): ... here. Remove variable args and its
3131 initialization.
3132 (print_frame): Remove variable args and its initialization, new
3133 variable gdbarch and numargs (from print_args_stub), inline here
3134 print_args_stub with a TRY_CATCH.
3135 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3136 them into ...
3137 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3138 New variable e, remove variable btargs and its initialization.
311b5970 3139
484a26a8
TG
31402011-08-01 Tristan Gingold <gingold@adacore.com>
3141
3142 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3143
c30eee59
TJB
31442011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3145
3146 * breakpoint.c (insert_bp_location): Document return value.
3147 (insert_breakpoint_locations): Fix documentation.
3148 (remove_breakpoints): Add documentation.
3149
f116073b
TJB
31502011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3151
3152 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3153 argument. Update callers.
3154
65aa373f
JK
31552011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3156
3157 * stack.c (print_frame_info): Comment typo fix.
3158
a50242fb
SA
31592011-07-29 Sterling Augustine <saugustine@google.com>
3160
3161 * MAINTAINERS (Write After Approval): Add myself to the list.
3162
267f6504
TT
31632011-07-29 Tom Tromey <tromey@redhat.com>
3164
3165 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3166 (library_list_start_segment): Update.
3167 (library_list_start_section): Update.
3168
00bd41d6
PM
31692011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3170
3171 * varobj.c (value_get_print_value): Move hint check later into the
3172 function. Comment function. Free thevalue before reusing it.
3173
18a46dbe
JK
31742011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3175 Pedro Alves <pedro@codesourcery.com>
3176
3177 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3178 value_one.
3179 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3180 Assert the result kind.
3181 * value.h (value_one): Remove parameter lv.
3182
bb7da2bf
JK
31832011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3184
3185 Fix crash on lval_computed values.
3186 * valops.c (value_zero): Use not_lval for lval_computed.
3187
2d5213f8
TT
31882011-07-27 Tom Tromey <tromey@redhat.com>
3189
3190 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3191 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3192
11081198
JK
31932011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3194
3195 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3196 "ptype" by their typedefs difference.
3197
3c6e0cb3
JK
31982011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 * dwarf2expr.c (ctx_no_read_reg): New function.
3201 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3202 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3203 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3204 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3205
523f3620
JK
32062011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3207
3208 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3209 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3210 file.
3211 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3212 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3213 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3214 (ctx_no_get_base_type): Move the functions here.
3215 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3216 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3217 (ctx_no_get_base_type): New declarations.
3218
24d3216f
TT
32192011-07-27 Tom Tromey <tromey@redhat.com>
3220
3221 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3222 entries.
3223 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3224 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3225
5005c8a9
PP
32262011-07-26 Sterling Augustine <saugustine@google.com>
3227
3228 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3229 ULONGEST.
3230 (dump_bfd_file): Likewise.
3231
480a3f21
PW
32322011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3233
3234 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3235 (remote_hw_watchpoint_length_limit): New variable.
3236 (_initialize_remote) add set,show cmds for this new variable.
3237 * gdb.texinfo: document these new commands.
3238 * NEWS: Mention these new commands.
3239
efa80663
PA
32402011-07-26 Pedro Alves <pedro@codesourcery.com>
3241
3242 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3243 true for software watchpoints.
3244
dbdaa232 32452011-07-26 Joel Brobecker <brobecker@adacore.com>
3246
3247 GDB 7.3 released.
3248
cf2c3c16
TT
32492011-07-26 Tom Tromey <tromey@redhat.com>
3250
3251 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3252 * dwarf2read.c (read_indirect_string_at_offset): New function.
3253 (read_indirect_string): Use it.
3254 (dwarf_decode_macro_bytes): New function, taken from
3255 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3256 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3257 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3258 New functions.
3259 (struct dwarf2_per_objfile) <macro>: New field.
3260 (dwarf2_elf_names): Add .debug_macro.
3261 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3262 (dwarf2_locate_sections): Handle new section.
3263 (read_file_scope): Handle DW_AT_GNU_macros.
3264 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3265
1a532630
PP
32662011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3267
3268 * NEWS: Mention dcache configuration.
3269 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3270 (dcache_size, dcache_line_size): New variables.
3271 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3272 (struct dcache_block): Make it expandable.
3273 (struct dcache_struct): New field.
3274 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3275 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3276 (dcache_poke_byte, dcache_print_line): Adjust.
3277 (set_dcache_size, set_dcache_line_size): New functions.
3278 (set_dcache_command, show_dcache_command): New functions.
3279 (_initialize_dcache): Add new commands.
3280
2eff07b3
PP
32812011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3282
3283 * progspace.h (struct program_space): Add solib_add_generation.
3284 * infcmd.c (post_create_inferior): Only call solib_add if not
3285 already done.
3286 * solib.c (solib_add): Increment solib_add_generation.
3287
543305c9
JK
32882011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3289
3290 Fix implicit pointer offsets.
3291 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3292 ptr.OFFSET.
3293
c0a91b2b
TT
32942011-07-25 Tom Tromey <tromey@redhat.com>
3295
3296 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3297 const.
3298 (ada_exception_sal): Make 'ops' const.
3299 (ada_decode_exception_location): Likewise.
3300 (ada_decode_assert_location): Likewise.
3301 (catch_assert_command): Update.
3302 (catch_ada_exception_command): Update.
3303 (create_ada_exception_catchpoint): Make 'ops' const.
3304 * breakpoint.c (set_raw_breakpoint_without_location)
3305 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3306 const.
3307 (create_internal_breakpoint): Update.
3308 (init_raw_breakpoint_without_location): Make 'ops' const.
3309 (init_raw_breakpoint, init_catchpoint)
3310 (create_fork_vfork_event_catchpoint)
3311 (create_syscall_event_catchpoint, init_breakpoint_sal)
3312 (create_breakpoint_sal, create_breakpoints_sal)
3313 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3314 * breakpoint.h (struct breakpoint) <ops>: Now const.
3315 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3316 const.
3317
6cb9b55b
PP
33182011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3319
3320 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3321
d9b3f62e
PA
33222011-07-25 Pedro Alves <pedro@codesourcery.com>
3323
3324 * breakpoint.h (print_recreate_thread): Declare.
3325 (struct breakpoint): Move step_count, pass_count,
3326 number_on_target, static_trace_marker_id,
3327 static_trace_marker_id_idx ...
3328 (struct tracepoint): ... to this new struct.
3329 (get_tracepoint, get_tracepoint_by_number_on_target)
3330 (get_tracepoint_by_number): Change return type to struct
3331 tracepoint pointer.
3332 * breakpoint.c (is_tracepoint_type): New, factored out from
3333 is_tracepoint.
3334 (is_tracepoint): Adjust.
3335 (print_one_breakpoint_location): Cast to struct tracepoint as
3336 necessary, and adjust.
3337 (print_recreate_catch_fork, print_recreate_catch_vfork)
3338 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3339 print_recreate_thread.
3340 (init_breakpoint_sal): New, factored out from
3341 create_breakpoint_sal.
3342 (create_breakpoint_sal): Reimplement.
3343 (create_breakpoint): Allocate a struct tracecepoint if the caller
3344 wanted a tracepoint. Use init_breakpoint_sal and
3345 install_breakpoint.
3346 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3347 (print_recreate_masked_watchpoint)
3348 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3349 (tracepoint_print_one_detail): Adjust.
3350 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3351 Dump the pass count here.
3352 (update_static_tracepoint): Adjust.
3353 (addr_string_to_sals): Adjust.
3354 (create_tracepoint_from_upload): Adjust. Change return type to
3355 struct tracepoint pointer.
3356 (trace_pass_set_count): Change parameter type to struct tracepoint
3357 pointer, and adjust.
3358 (trace_pass_command): Adjust.
3359 (get_tracepoint, get_tracepoint_by_number_on_target)
3360 (get_tracepoint_by_number): Change return type to struct
3361 tracepoint pointer, and adjust.
3362 (print_recreate_thread): New, factored out from save_breakpoints.
3363 (save_breakpoints): Don't print thread and task and passcount
3364 recreation here.
3365 * remote.c (remote_download_tracepoint): Adjust.
3366 * tracepoint.c (trace_actions_command, validate_actionline)
3367 (start_tracing, tfind_1, trace_find_tracepoint_command)
3368 (trace_dump_command): Adjust.
3369 (find_matching_tracepoint): Change return type to struct
3370 tracepoint pointer, and adjust.
3371 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3372 (tfile_trace_find, tfile_fetch_registers): Adjust.
3373 * tracepoint.h (create_tracepoint_from_upload): Change return type
3374 to struct tracepoint pointer.
3375 * ada-lang.c (print_recreate_exception): Call
3376 print_recreate_thread.
3377 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3378
3a5c3e22
PA
33792011-07-25 Pedro Alves <pedro@codesourcery.com>
3380
3381 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3382 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3383 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3384 watchpoint_thread, watchpoint_triggered ...
3385 (struct watchpoint): ... to this new struct.
3386 (is_watchpoint): Declare.
3387 (install_breakpoint): Add new `internal' parameter.
3388 * breakpoint.c (is_watchpoint): Delete declaration.
3389 (set_breakpoint_condition): Handle watchpoints.
3390 (is_watchpoint): Make public.
3391 (watchpoint_in_thread_scope): Change parameter type to struct
3392 watchpoint.
3393 (watchpoint_del_at_next_stop): Change parameter type to struct
3394 watchpoint. Remove assertion. Adjust.
3395 (update_watchpoint): Ditto.
3396 (insert_breakpoints, breakpoint_init_inferior)
3397 (watchpoints_triggered, watchpoint_check)
3398 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3399 (bpstat_stop_status, print_one_breakpoint_location)
3400 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3401 to struct watchpoint as necessary, and adjust.
3402 (install_breakpoint): Add `internal' argument. If true, don't
3403 mention the new breakpoint. Use set_breakpoint_number.
3404 (create_fork_vfork_event_catchpoint)
3405 (create_syscall_event_catchpoint): Adjust.
3406 (dtor_watchpoint): New.
3407 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3408 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3409 (print_it_watchpoint, print_mention_watchpoint)
3410 (print_recreate_watchpoint, insert_masked_watchpoint)
3411 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3412 (print_one_detail_masked_watchpoint)
3413 (print_mention_masked_watchpoint)
3414 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3415 necessary, and adjust.
3416 (watch_command_1): Allocate and initialize a struct watchpoint
3417 instead of a struct breakpoint. Use install_breakpoint.
3418 (catch_exec_command_1): Adjust.
3419 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3420 fields.
3421 (delete_breakpoint, enable_breakpoint_disp)
3422 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3423 as necessary, and adjust.
3424 (initialize_breakpoint_ops): Install dtor_watchpoint as
3425 watchpoints' dtor method.
3426 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3427 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3428 to struct watchpoint as necessary, and adjust.
3429
2060206e
PA
34302011-07-25 Pedro Alves <pedro@codesourcery.com>
3431
3432 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3433 the the base class ops table.
3434 (catch_exception_breakpoint_ops)
3435 (catch_exception_unhandled_breakpoint_ops)
3436 (catch_assert_breakpoint_ops): Don't statically initialize.
3437 (initialize_ada_catchpoint_ops): New.
3438 (_initialize_ada_language): Call it.
3439 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3440 (bkpt_breakpoint_ops): Forward declare.
3441 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3442 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3443 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3444 (masked_watchpoint_breakpoint_ops)
3445 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3446 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3447 base class ops table.
3448 (null_re_set, null_check_status, null_works_in_software_mode)
3449 (null_resources_needed, null_print_one_detail): Delete.
3450 (bkpt_dtor): Rename to ...
3451 (base_breakpoint_dtor): ... this. Make static.
3452 (bkpt_allocate_location): Rename to ...
3453 (base_breakpoint_allocate_location): ... this. Make static.
3454 (base_breakpoint_re_set): New.
3455 (internal_error_pure_virtual_called): New.
3456 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3457 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3458 (base_breakpoint_works_in_software_mode)
3459 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3460 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3461 (base_breakpoint_print_recreate): New functions.
3462 (base_breakpoint_ops): New global.
3463 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3464 (bkpt_breakpoint_hit): Make static.
3465 (bkpt_check_status): Delete.
3466 (bkpt_resources_needed): Make static.
3467 (bkpt_works_in_software_mode): Delete.
3468 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3469 static.
3470 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3471 (momentary_breakpoint_ops): Don't statically initialize.
3472 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3473 Delete.
3474 (tracepoint_insert_location, tracepoint_remove_location)
3475 (tracepoint_check_status, tracepoint_works_in_software_mode)
3476 (tracepoint_print_it): Delete.
3477 (tracepoint_breakpoint_ops): Don't statically initialize.
3478 (initialize_breakpoint_ops): New.
3479 (_initialize_breakpoint): Call it.
3480 * breakpoint.h (null_re_set, null_works_in_software_mode)
3481 (null_resources_needed, null_check_status, null_print_one_detail):
3482 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3483 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3484 (bkpt_check_status, bkpt_resources_needed)
3485 (bkpt_works_in_software_mode, bkpt_print_it)
3486 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3487 Delete declarations.
3488 (initialize_breakpoint_ops): Declare.
3489
001c8c33
PA
34902011-07-25 Pedro Alves <pedro@codesourcery.com>
3491
3492 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3493 (momentary_bkpt_print_it): Simplify.
3494
06edf0c0
PA
34952011-07-25 Pedro Alves <pedro@codesourcery.com>
3496
3497 Split internal, momentary and user breakpoints breakpoint_ops
3498 tables.
3499
3500 * breakpoint.c (internal_breakpoint_ops)
3501 (momentary_breakpoint_ops): Forward declare.
3502 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3503 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3504 (create_overlay_event_breakpoint)
3505 (create_std_terminate_master_breakpoint)
3506 (create_exception_master_breakpoint): Create breakpoints with
3507 internal_breakpoint_ops vtable.
3508 (set_longjmp_breakpoint): Create momentary breakpoints with
3509 momentary_breakpoint_ops vtable, using
3510 momentary_breakpoint_from_master.
3511 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3512 (create_solib_event_breakpoint): Create breakpoints with
3513 internal_breakpoint_ops vtable.
3514 (set_momentary_breakpoint): Create breakpoints with
3515 momentary_breakpoint_ops vtable.
3516 (momentary_breakpoint_from_master): New, factored out from
3517 clone_momentary_breakpoint.
3518 (clone_momentary_breakpoint): Adjust.
3519 (watch_command_1): Create scope breakpoints with
3520 momentary_breakpoint_ops vtable.
3521 (bkpt_re_set): Remove handling of internal and momentary
3522 breakpoints.
3523 (bkpt_print_mention, bkpt_print_recreate): New.
3524 (bkpt_breakpoint_ops): Adjust.
3525 (internal_bkpt_re_set, internal_bkpt_check_status)
3526 (internal_bkpt_print_it, internal_bkpt_print_mention)
3527 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3528 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3529 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3530 (momentary_bkpt_print_recreate): New.
3531 (momentary_breakpoint_ops): New.
3532
348d480f
PA
35332011-07-25 Pedro Alves <pedro@codesourcery.com>
3534
3535 Implement most breakpoint_ops methods for all breakpoint types,
3536 and move the default handlings to the proper callbacks.
3537
3538 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3539 works_in_software_mode method.
3540 (insert_bp_location): Go through breakpoint_ops->insert_location
3541 for software and hardware watchpoints.
3542 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3543 breakpoint_ops.
3544 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3545 for software and hardware watchpoints.
3546 (print_it_typical): Delete.
3547 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3548 method.
3549 (watchpoint_check): Adjust comment.
3550 (bpstat_check_location): Simply always call the breakpoint's
3551 breakpoint_hit method.
3552 (bpstat_stop_status): Always call the breakpoint's check_status
3553 method. Remove special cases for watchpoints and internal event
3554 breakpoints from here (moved to the check_status implementations).
3555 (print_one_breakpoint_location): Assume b->ops is never NULL.
3556 Remove static tracepoint marker id printing from here (moved to
3557 the print_one_detail callback implementation of tracepoints).
3558 (init_bp_location): Assert OPS is never NULL.
3559 (allocate_bp_location): Always call the breakpoint's
3560 allocate_location method, and remove the default code from here.
3561 (free_bp_location): Always call the location's dtor method, and
3562 remove the default code from here.
3563 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3564 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3565 parameter. Pass it down.
3566 (set_raw_breakpoint): Ditto.
3567 (print_it_catch_fork): Adjust to take a bpstat as argument.
3568 (catch_fork_breakpoint_ops): Install methods.
3569 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3570 (catch_vfork_breakpoint_ops): Install methods.
3571 (dtor_catch_syscall): Call the base dtor.
3572 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3573 (catch_syscall_breakpoint_ops): Install methods.
3574 (dtor_catch_exec): Call the base dtor.
3575 (print_it_catch_exec): Adjust to take a bpstat as argument.
3576 (catch_exec_breakpoint_ops): Install methods.
3577 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3578 the breakpoint's resources_needed method, and remove the default
3579 code from here.
3580 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3581 breakpoint_ops.
3582 (clone_momentary_breakpoint): Clone the original's ops.
3583 (mention): Always call the breakpoint's print_mention method, and
3584 remove the default code from here.
3585 (create_breakpoint_sal): Adjust to pass the ops to
3586 set_raw_breakpoint rather than setting it manually.
3587 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3588 ops to set_raw_breakpoint_without_location rather than setting it
3589 manually.
3590 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3591 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3592 (ranged_breakpoint_ops): Install methods.
3593 (break_range_command): Adjust to pass the ops to
3594 set_raw_breakpoint rather than setting it manually.
3595 (re_set_watchpoint, breakpoint_hit_watchpoint)
3596 (check_status_watchpoint, resources_needed_watchpoint)
3597 (works_in_software_mode_watchpoint, print_it_watchpoint)
3598 (print_mention_watchpoint, print_recreate_watchpoint): New
3599 functions.
3600 (watchpoint_breakpoint_ops): Install new methods.
3601 (print_it_masked_watchpoint): New function.
3602 (masked_watchpoint_breakpoint_ops): Install new methods.
3603 (watch_command_1): Adjust to pass the right breakpoint_ops to
3604 set_raw_breakpoint_without_location rather than setting it
3605 manually later. Record the current pspace.
3606 (print_it_exception_catchpoint): Adjust to take a bpstat as
3607 argument.
3608 (gnu_v3_exception_catchpoint_ops): Install new methods.
3609 (say_where): New function.
3610 (null_re_set, null_check_status, null_works_in_software_mode)
3611 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3612 New functions.
3613 (bp_location_ops): New global.
3614 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3615 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3616 (bkpt_check_status, bkpt_resources_needed)
3617 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3618 (bkpt_print_recreate): New functions.
3619 (bkpt_breakpoint_ops): New global.
3620 (tracepoint_re_set, tracepoint_insert_location)
3621 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3622 (tracepoint_check_status, tracepoint_works_in_software_mode)
3623 (tracepoint_print_it, tracepoint_print_one_detail)
3624 (tracepoint_print_mention, tracepoint_print_recreate): New
3625 functions.
3626 (tracepoint_breakpoint_ops): New global.
3627 (delete_breakpoint): Always call the breakpoint's dtor method, and
3628 remove the default handling from here.
3629 (breakpoint_re_set_default): Make static.
3630 (breakpoint_re_set_one): Always call the breakpoints re_set
3631 method, and remove the default handling from here.
3632 (trace_command, ftrace_command, strace_command)
3633 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3634 to create_breakpoint.
3635 (save_breakpoints): Always call the breakpoint's print_recreate
3636 method, and remove the default handling from here.
3637
3638 * ada-lang.c (dtor_exception): Call the base dtor.
3639 (re_set_exception): Call the base method.
3640 (print_it_exception, print_it_catch_exception): Adjust to take a
3641 bpstat as argument.
3642 (catch_exception_breakpoint_ops): Install methods.
3643 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3644 argument.
3645 (catch_exception_unhandled_breakpoint_ops): Install methods.
3646 (print_it_catch_assert): Adjust to take a bpstat as argument.
3647 (catch_assert_breakpoint_ops): Install methods.
3648
3649 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3650 to take a bpstat as argument.
3651 (enum print_stop_action): Add describing comments to each enum
3652 value.
3653 (breakpoint_re_set_default): Delete declaration.
3654 (null_re_set, null_works_in_software_mode, null_resources_needed)
3655 (null_check_status, null_print_one_detail): Declare.
3656 (bkpt_breakpoint_ops): Declare.
3657 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3658 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3659 (bkpt_check_status, bkpt_resources_needed)
3660 (bkpt_works_in_software_mode, bkpt_print_it)
3661 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3662 Declare.
3663
3664 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3665 bkpt_breakpoint_ops.
3666 * python/py-breakpoint.c (bppy_init): Ditto.
3667
be8f8133
PW
36682011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3669
3670 * MAINTAINERS (Write After Approval): Add myself to the list.
3671
3807f613
PP
36722011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3673
3674 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3675
1ced966e
PA
36762011-07-22 Pedro Alves <pedro@codesourcery.com>
3677
3678 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3679 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3680 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3681 adjust.
3682 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3683 (struct i386_debug_reg_state): New.
3684 (i386_init_dregs): New.
3685 (dr_mirror): New.
3686 (i386_cleanup_dregs): Use i386_init_dregs.
3687 (i386_show_dr): Add state parameter and adjust.
3688 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3689 the inferior here.
3690 (i386_remove_aligned_watchpoint): Likewise.
3691 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3692 (i386_update_inferior_debug_regs): New.
3693 (i386_insert_watchpoint): Work on a local mirror of the debug
3694 registers, and only update the inferior on success.
3695 (i386_remove_watchpoint): Ditto.
3696 (i386_region_ok_for_watchpoint): Adjust.
3697 (i386_stopped_data_address): Adjust.
3698 (i386_insert_hw_breakpoint): Adjust.
3699 (i386_remove_hw_breakpoint): Adjust.
3700
3543a589
TT
37012011-07-22 Tom Tromey <tromey@redhat.com>
3702
3703 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3704 from amd64_pseudo_register_read. Change arguments. Call
3705 mark_value_bytes_unavailable when needed.
3706 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3707 set_gdbarch_pseudo_register_read.
3708 * sentinel-frame.c (sentinel_frame_prev_register): Use
3709 regcache_cooked_read_value.
3710 * regcache.h (regcache_cooked_read_value): Declare.
3711 * regcache.c (regcache_cooked_read_value): New function.
3712 (regcache_cooked_read): Call
3713 gdbarch_pseudo_register_read_value if available.
3714 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3715 (i386_pseudo_register_read): Remove.
3716 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3717 i386_pseudo_register_read. Change arguments. Call
3718 mark_value_bytes_unavailable when needed.
3719 (i386_pseudo_register_read_value): New function.
3720 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3721 not set_gdbarch_pseudo_register_read.
3722 * gdbarch.sh (pseudo_register_read_value): New method.
3723 * gdbarch.c, gdbarch.h: Rebuild.
3724 * findvar.c (value_from_register): Call get_frame_register_value.
3725
95298e72
PM
37262011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3727
3728 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3729 get_prefix.
3730 (display_gdb_prompt): Likewise.
3731 (change_annotation_level): Likewise.
3732 (push_prompt): Likewise.
3733 (pop_prompt): Likewise.
3734 (handle_stop_sig): Use get_prompt with a level.
3735 * top.c (command_loop): Use get_prompt with a level.
3736 (set_async_annotation_level): Use set_prompt with a level.
3737 (get_prefix): New function.
3738 (set_prefix): Ditto.
3739 (set_suffix): Ditto.
3740 (get_suffix): Ditto.
3741 (get_prompt): Accept a level argument.
3742 (set_prompt): Accept a level argument. Free old prompts. Set
3743 new_async_prompt if level is 0.
3744 (init_main): Use set_prompt with a level. Do not set
3745 new_async_prompt.
3746 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3747 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3748 Modify set_prompt, get_prompt to account for levels.
3749 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3750 level.
3751 * python/python.c (before_prompt_hook): Use set_prompt.
3752
d26e3629
KY
37532011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3754
3755 * defs.h: Add guard against inclusion in gdbserver.
3756 (struct ptid, ptid_t): Move to common/ptid.h.
3757 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3758 xsnprintf, internal_error): Move to common/common-utils.h.
3759 (nomem): Delete.
3760 * gdb_assert.h: Move into common/ sub-directory.
3761 * gdb_locale.h: Ditto.
3762 * gdb_dirent.h: Ditto.
3763 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3764 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3765 Move into common/ptid.h.
3766 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3767 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3768 Change nomem to malloc_failure.
3769 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3770 * utils.c (nomem): Rename to malloc_failure.
3771 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3772 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3773 (gdb_buildargv): Change nomem to malloc_failure.
3774 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3775 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3776 ptid_is_pid): Move into common/ptid.c.
3777 (initialize_infrun): Delete initialization of null_ptid and
3778 minus_one_ptid.
3779 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3780 linux_common_xfer_osdata.
3781 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3782 common/ptid.c and common/buffer.c.
3783 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3784 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3785 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3786 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3787 rules.
3788 * common/gdb_assert.h: New.
3789 * common/gdb_dirent.h: New.
3790 * common/gdb_locale.h: New.
3791 * common/buffer.c: New.
3792 * common/buffer.h: New.
3793 * common/ptid.c: New.
3794 * common/ptid.h: New.
3795 * common/xml-utils.c: New.
3796 * common/xml-utils.h: New.
3797 * common/common-utils.c: New.
3798 * common/common-utils.h: New.
3799 * common/linux-osdata.c: New.
3800 * common/linux-osdata.h: New.
3801 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3802 * config/arm/linux.mh (NATDEPFILES): Ditto.
3803 * config/i386/linux.mh (NATDEPFILES): Ditto.
3804 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3805 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3806 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3807 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3808 * config/mips/linux.mh (NATDEPFILES): Ditto.
3809 * config/pa/linux.mh (NATDEPFILES): Ditto.
3810 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3811 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3812 * config/s390/s390.mh (NATDEPFILES): Ditto.
3813 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3814 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3815 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3816
edc84990 38172011-07-21 Matt Rice <ratmice@gmail.com>
3818
3819 * NEWS: Add info macros and info definitions commands.
3820
3a7bf607
PM
38212011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3822
3823 * NEWS: Document Python prompt substitution hook.
3824
9b158ba0 38252011-07-18 Matt Rice <ratmice@gmail.com>
3826
3827 PR macros/12999
3828 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3829 * macrotab.c (foreach_macro): Ditto.
3830 (foreach_macro_in_scope): Ditto.
3831 * macrocmd.c (print_macro_callback): New function.
3832 (info_macro_command): Move some code to print_macro_definition.
3833 (print_macro_definition): New function.
3834 (print_one_macro): Add new arguments to callback.
3835 (info_definitions_command): New function.
3836 (info_macros_command): Ditto.
3837 (_initialize_macrocmd): Add info macros and info definitions commands.
3838 * symtab.c (add_macro_name): Add new arguments to callback.
3839
d17b6f81
PM
38402011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3841 Tom Tromey <tromey@redhat.com>
3842
3843 * top.c (set_prompt): Rewrite to free previous prompt, free
3844 asynch_new_prompt and set both on new prompts.
3845 * event-top.c (display_gdb_prompt): Add prompt substitution
3846 logic.
3847 * python/python.c (before_prompt_hook): New function.
3848
1364323a 38492011-07-20 Matt Rice <ratmice@gmail.com>
3850
3851 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3852 arguments to store_unsigned_integer.
3853
8b70b953
TT
38542011-07-20 Tom Tromey <tromey@redhat.com>
3855
6c83ed52
TT
3856 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3857 in some declaration-only cases.
3858
38592011-07-18 Tom Tromey <tromey@redhat.com>
3860
8b70b953
TT
3861 PR symtab/12984:
3862 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3863 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3864 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3865 <debug_type_section>: New field.
3866 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3867 (load_cu): Use appropriate section.
3868 (create_signatured_type_table_from_index): Add 'section'
3869 argument.
3870 (dwarf2_read_index): Only allow a single .debug_types section.
3871 (dw2_get_file_names): Use appropriate section.
3872 (read_type_comp_unit_head): Add 'section' argument.
3873 (create_debug_types_hash_table): Loop over all .debug_types
3874 sections.
3875 (init_cu_die_reader): Use appropriate section.
3876 (process_psymtab_comp_unit, load_partial_comp_unit)
3877 (load_full_comp_unit, read_die_and_children, find_partial_die)
3878 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3879 (lookup_signatured_type_at_offset): Add 'section' argument.
3880 (read_signatured_type_at_offset): Add 'sect' argument.
3881 (read_signatured_type): Use appropriate section.
3882 (set_die_type, get_die_type_at_offset): Update.
3883 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3884 VEC.
3885 (write_psymtabs_to_index): Don't allow index with more than one
3886 .debug_types section.
3887
918dd910
JK
38882011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3889
3890 Fix crash if referenced CU is aged out.
3891 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3892 xfree of block.data.
3893 (indirect_pieced_value): New variable back_to, use to for xfree of
3894 baton.data.
3895 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3896 block.data.
3897 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3898 (load_cu): New function from ...
3899 (dw2_do_instantiate_symtab): ... the code here ...
3900 (process_full_comp_unit): ... and here.
3901 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3902 retval.data.
3903
0e37a63c
JK
39042011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3905
3906 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3907 type.
3908
7e324e48
GB
39092011-07-19 Gary Benson <gbenson@redhat.com>
3910
3911 * infrun.c (struct execution_control_state): New member
3912 stop_func_filled_in.
3913 (clear_stop_func, fill_in_stop_func): New functions.
3914 (handle_inferior_event): Call clear_stop_func rather than
3915 manipulating the execution control state directly.
3916 Call fill_in_stop_func lazily as required rather than
3917 directly calling find_pc_partial_function in all cases.
3918
d48323d8
TT
39192011-07-18 Tom Tromey <tromey@redhat.com>
3920
3921 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3922 checking for variable-sized array.
3923
40591b7d
JCD
39242011-07-18 Jean-Charles Delay <delay@adacore.com>
3925
3926 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3927 of supported languages.
3928 * varobj.c: Add top definitions and basic implementation of the
3929 following callbacks: ada_number_of_children, ada_name_of_variable,
3930 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3931 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3932 (languages): Register Ada-specific callbacks.
3933 (variable_language): Add the Ada case in the language setter switch.
3934
2e424e08
JK
39352011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3936
3937 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3938
9e8b7a03
JK
39392011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3940
3941 Code cleanup.
3942 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3943 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3944 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3945 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3946 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3947 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3948 (struct dwarf_expr_context_funcs): New, move here methods from ...
3949 (struct dwarf_expr_context): ... here. New fields funcs.
3950 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3951 (dwarf_expr_ctx_funcs): New.
3952 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3953 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3954 (needs_frame_ctx_funcs): New.
3955 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3956
2b1260ab
FM
39572011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3958
3959 * MAINTAINERS (Write After Approval): Add myself to the list.
3960
8bd90839
FM
39612011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3962
3963 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3964 that CIE pointer of an FDE really points to a CIE .
3965
953b98d1
HZ
39662011-07-15 Hui Zhu <teawater@gmail.com>
3967
3968 * remote.c (remote_get_trace_status): Add comments.
3969
c8f2448a
JK
39702011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3971
3972 Code cleanup - constify struct lval_funcs.
3973 * dwarf2loc.c (pieced_value_funcs): Make it const.
3974 * infrun.c (siginfo_value_funcs): Likewise.
3975 * opencl-lang.c (opencl_value_funcs): Likewise.
3976 * valops.c (value_assign, value_ind): Make the funcs variable const.
3977 * value.c (struct value): Make location.computed.funcs target const.
3978 Rearrange the comments.
3979 (allocate_computed_value): Make the funcs parameter target const.
3980 (value_computed_funcs): Return the funcs target const.
3981 (value_free, value_copy, set_value_component_location): Make the funcs
3982 variable const.
3983 * value.h (allocate_computed_value): Make the funcs parameter target
3984 const.
3985 (value_computed_funcs): Return the funcs target const.
3986 * windows-tdep.c (tlb_value_funcs): Make it const.
3987
f652de6f
HZ
39882011-07-14 Hui Zhu <teawater@gmail.com>
3989
3990 * remote.c (remote_get_trace_status): Initialize p.
3991
67f41397
JK
39922011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3993
3994 Work around kgdb.
3995 * remote.c (remote_get_trace_status): New variable ex. Put
3996 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3997
d1b66e6d
TT
39982011-07-13 Tom Tromey <tromey@redhat.com>
3999
4000 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4001 value_from_contents for final conversion.
4002
1632a688
JK
40032011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4004
4005 Code cleanup.
4006 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4007 Indent prototypes so they do not get into tags.
4008
a7035dbb
JK
40092011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4010
4011 Code cleanup making also optimized out values lazy.
4012 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4013 allocate_optimized_out_value. Twice.
4014 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4015 * findvar.c (read_var_value): Likewise.
4016 * value.c (allocate_optimized_out_value): New function.
4017 * value.h (allocate_optimized_out_value): New declaration.
4018
d07ed419
JK
40192011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4020
4021 Fix occasional crash of CTRL-C during DWARF read in.
4022 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4023
86d31898
TT
40242011-07-11 Tom Tromey <tromey@redhat.com>
4025
4026 * regcache.c (struct regcache_descr): Fix typo.
4027 * i387-tdep.c (i387_supply_xsave): Fix typo.
4028
2ab95328
TT
40292011-07-11 Tom Tromey <tromey@redhat.com>
4030
4031 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4032 (read_file_scope, read_type_unit_scope): Use it.
4033
04ad99e6
JK
40342011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4035
4036 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4037 `int'.
4038
713389e0
PM
40392011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4040
4041 PR python/12438
4042 * python/python.c: Set gdbpy_should_print_stack default to off.
4043 (set_python): Deprecate maint set python print-stack to
4044 class_deprecate.
4045 (_initialize_python): Deprecate maint set/show python print-stack.
4046 Add new prefix command, python. Add new setting, print-backtrace.
4047 * NEWS: Document set python print-stack. Document default change.
4048
754eadd1
PM
40492011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4050
4051 * python/py-inferior.c (infpy_dealloc): New function.
4052 (inferior_to_inferior_object): Return a new object, or a
4053 new reference to the existing object.
4054 (find_thread_object): Cleanup references to inferior.
4055 (delete_thread_object): Ditto.
4056 * python/py-infthread.c (create_thread_object): Do not increment
4057 inferior reference count.
4058
5e44ecb3
TT
40592011-07-08 Tom Tromey <tromey@redhat.com>
4060
4061 * dwarf2loc.c (locexpr_regname): New function.
4062 (locexpr_describe_location_piece): Use it.
4063 (disassemble_dwarf_expression): Add per_cu argument. Use
4064 locexpr_regname.
4065 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4066 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4067 New cases.
4068 (locexpr_describe_location_1): Add per_cu argument.
4069 (locexpr_describe_location): Update.
4070 (loclist_describe_location): Update.
4071
e0e9434c
TT
40722011-07-08 Tom Tromey <tromey@redhat.com>
4073
4074 * dwarf2expr.c (execute_stack_op): Add QUIT.
4075
26afc0d7
HZ
40762011-07-07 Hui Zhu <teawater@gmail.com>
4077
4078 Revert:
4079 2011-07-06 Hui Zhu <teawater@gmail.com>
4080 * remote.c (remote_start_remote): Add TRY_CATCH for
4081 remote_get_trace_status.
4082 * tracepoint.c (disconnect_tracing): Ditto.
4083
a40a111f
AB
40842011-07-07 Andrew Burgess <aburgess@broadcom.com>
4085
4086 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4087 variables as signed, not unsigned.
4088
e2bd3b15
JB
40892011-07-06 Joel Brobecker <brobecker@adacore.com>
4090
4091 * jit.c (jit_inferior_init): Reformat forward declaration.
4092
e3d961fe 40932011-07-06 Matt Rice <ratmice@gmail.com>
4094
4095 * MAINTAINERS (Write After Approval): Add myself to the list.
4096
0f3428f0
HZ
40972011-07-06 Hui Zhu <teawater@gmail.com>
4098
4099 * remote.c (remote_start_remote): Add TRY_CATCH for
4100 remote_get_trace_status.
4101 * tracepoint.c (disconnect_tracing): Ditto.
4102
fc9f3a69
TT
41032011-07-05 Tom Tromey <tromey@redhat.com>
4104
4105 * symtab.c (operator_chars): Now static.
4106 * linespec.c (operator_chars): Don't declare.
4107
26e519b9
TJB
41082011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4109
4110 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4111
eb2a6f42
TT
41122011-07-05 Tom Tromey <tromey@redhat.com>
4113
4114 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4115 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4116 (TYPE_CPLUS_REALLY_JAVA): New macro.
4117 * dwarf2read.c (process_structure_scope): Set
4118 TYPE_CPLUS_REALLY_JAVA.
4119
21083d0f 41202011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4121
4122 * ada-lang.c: Fix typos.
4123 * amd64-tdep.c: Likewise.
4124 * breakpoint.c: Likewise.
4125 * cli/cli-decode.c: Likewise.
4126 * findcmd.c: Likewise.
4127 * inline-frame.c: Likewise.
4128 * mi/mi-main.c: Likewise.
4129 * minsyms.c: Likewise.
4130 * monitor.c: Likewise.
4131 * monitor.h: Likewise.
4132 * prologue-value.c: Likewise.
4133 * reverse.c: Likewise.
4134 * s390-tdep.c: Likewise.
4135
3b2a0cf2
JB
41362011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4137
4138 * jit.c (jit_inferior_init): Forward declare.
4139 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4140
efae1d92
JB
41412011-07-04 Joel Brobecker <brobecker@adacore.com>
4142
4143 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4144
6040a59d
JB
41452011-07-04 Tristan Gingold <gingold@adacore.com>
4146
4147 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4148 (tcb_fieldno): Add activation_link field.
4149 (get_known_tasks_addr): Moved and rewritten.
4150 (get_tcb_types_info): Set activation_link field.
4151 (read_known_tasks_array): Add parameter. Rewritten.
4152 (read_known_tasks_list): New function.
4153 (read_known_tasks): New function.
4154 (ada_build_task_list): Call read_known_tasks instead of
4155 read_known_tasks_array.
4156 * ravenscar-thread.c: Add first_task_name constant.
4157 (has_ravenscar_runtime): Check for task list too.
4158
cb741e45
JB
41592011-07-04 Tristan Gingold <gingold@adacore.com>
4160
4161 * ada-tasks.c: Renames fieldno to actb_fieldno.
4162 (ada_get_task_number): Indentation.
4163 (get_tcb_types_info): Remove all parameters. Write directly
4164 the globals.
4165 (ptid_from_atcb_common): Adjust.
4166 (read_atcb): Adjust.
4167
7475b06c
TJB
41682011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4169
4170 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4171
15230f37
TJB
41722011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4173
4174 * ui-out.c (ui_out_field_core_addr): Mention that the function
4175 description is in the header file.
4176 * ui-out.h (ui_out_field_core_addr): Document function.
4177
65743aba
TJB
41782011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4179
4180 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4181 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4182
c37a5aab
TJB
41832011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4184
4185 * symtab.c (expand_line_sal): Remove empty line.
4186
59adf69e
TS
41872011-07-04 Thomas Schwinge <thomas@schwinge.name>
4188
4189 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4190 same way as ELFOSABI_NONE.
4191 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4192
e5dd4106
TJB
41932011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4194
4195 * breakpoint.c: Fix typos in comments.
4196 * linespec.c: Likewise.
4197 * symtab.c: Likewise.
4198
d40102a1
JB
41992011-07-04 Joel Brobecker <brobecker@adacore.com>
4200
4201 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4202 section in separate object files.
4203
2f741504
JK
42042011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4205
4206 Fix false GCC warning.
4207 * linespec.c (decode_line_1): Initialize values.
4208
418c7cf7
JK
42092011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4210
4211 * linespec.c (find_method): Accept the function type automatically only
4212 if it was specified with parameter types.
4213
3d50dd94
JK
42142011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4215
4216 Stop on first linespec terminator instead of eating what we can.
4217 * linespec.c (is_linespec_boundary): New function.
4218 (name_end): Remove function.
4219 (keep_name_info): New parameter on_boundary, replace the body.
4220 (decode_line_1): Provide the parameter to keep_name_info.
4221 (decode_compound): Likewise. Drop the trailing java return type
4222 handling. Twice.
4223
dcf9f4ab
JK
42242011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4225
4226 Fall back linespec to minimal symbols.
4227 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4228 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4229 (find_method, symbol_found): Change error to cplusplus_error.
4230
3f542ed1
JK
42312011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
bc68c4e5 4233 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4234
900e11f9
JK
42352011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4236 Tom Tromey <tromey@redhat.com>
4237
4238 * dwarf2read.c (check_physname): New variable.
4239 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4240 (show_check_physname): New function.
4241 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4242
2301925d
JB
42432011-07-01 Joel Brobecker <brobecker@adacore.com>
4244
4245 * machoread.c (macho_symfile_read): Delete OBE comment.
4246
38947cca
JB
42472011-07-01 Joel Brobecker <brobecker@adacore.com>
4248
4249 * machoread.c (struct macho_oso_data): Delete.
4250 (current_oso): Delete.
4251 (macho_relocate_common_syms): New function, mostly extracted
4252 out of
4253 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4254 Remove code that sets and unset current_oso.
4255 (macho_symfile_relocate): Delete handling of common symbols,
4256 now moved to macho_relocate_common_syms.
4257
a7aa0d73
JB
42582011-07-01 Joel Brobecker <brobecker@adacore.com>
4259
4260 * darwin-nat.c (darwin_ptrace): Add documentation.
4261 Set errno to zero before calling ptrace. If ptrace returns
4262 -1 and errno is zero, then change then return zero.
4263 (darwin_kill_inferior): Issue a warning instead of triggering
4264 a failed assertion when the PT_KILL ptrace operations returned
4265 nonzero.
4266
5e9bc145
JB
42672011-07-01 Joel Brobecker <brobecker@adacore.com>
4268
4269 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4270 only when inf->private->no_ptrace.
4271
00eb2c4a
JB
42722011-07-01 Joel Brobecker <brobecker@adacore.com>
4273
4274 * ada-lang.c (print_it_exception): Print temporary catchpoints
4275 as "Temporary catchpoint".
4276 (print_mention_exception): Likewise.
4277
127c81bc
TT
42782011-07-01 Tom Tromey <tromey@redhat.com>
4279
4280 * jv-lang.c (java_language_defn): Use java_printchar,
4281 java_printstr.
4282 (java_get_encoding): New function.
4283 (java_emit_char): Use generic_emit_char.
4284 (java_printchar): New function.
4285 (java_printstr): Likewise.
4286
25552254
JB
42872011-07-01 Joel Brobecker <brobecker@adacore.com>
4288
4289 * ada-typeprint.c (print_record_type): If unable to decode
4290 the name of the parent type, use the encoded name.
4291
d2d43431
JB
42922011-07-01 Jean-Charles Delay <delay@adacore.com>
4293
4294 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4295 pointer to constrained packed array type output.
4296 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4297 packed array output.
4298
54ae186f
JB
42992011-07-01 Jean-Charles Delay <delay@adacore.com>
4300
4301 * ada-typeprint.c (print_array_type): removed if condition on show
4302 being negative for bounds printing.
4303
8f17729f
JB
43042011-07-01 Joel Brobecker <brobecker@adacore.com>
4305
4306 * ada-lang.c (ada_identical_enum_types_p): New function.
4307 (symbols_are_identical_enums): New function.
4308 (remove_extra_symbols): Do nothing if NSYMS < 2.
4309 Use symbols_are_identical_enums.
4310
f5aa6869
JB
43112011-07-01 Joel Brobecker <brobecker@adacore.com>
4312
4313 * ada-valprint.c (ada_value_print): Handle typedefs.
4314
8f465ea7
JB
43152011-07-01 Joel Brobecker <brobecker@adacore.com>
4316
4317 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4318
828292f2
JB
43192011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4320
4321 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4322 (decode_constrained_packed_array): Likewise.
4323 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4324
18920c42
JB
43252011-07-01 Joel Brobecker <brobecker@adacore.com>
4326
4327 * ada-exp.y (convert_char_literal): Handle typedef types.
4328
c90092fe
JB
43292011-07-01 Joel Brobecker <brobecker@adacore.com>
4330
4331 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4332
f748fb40
TT
43332011-06-30 Tom Tromey <tromey@redhat.com>
4334
4335 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4336 * valops.c (find_overload_match): Call do_cleanups on early exit
4337 path.
4338 * solib.c (solib_find): Call do_cleanups on early exit path.
4339
3bb47e8b
TT
43402011-06-30 Tom Tromey <tromey@redhat.com>
4341
4342 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4343 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4344 return paths. Defer final do_cleanups until last return.
4345 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4346 early return.
4347
4727bad3
TT
43482011-06-30 Tom Tromey <tromey@redhat.com>
4349
4350 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4351
bb361dbf
AB
43522011-06-30 Andrew Burgess <aburgess@broadcom.com>
4353
4354 * MAINTAINERS (Write After Approval): Add myself to the list.
4355
e0d00bc7
JK
43562011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4357
4358 Disable epilogue unwinders on recent GCCs.
4359 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4360 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4361 * dwarf2read.c (process_full_comp_unit): Initialize
4362 EPILOGUE_UNWIND_VALID.
4363 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4364 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4365 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4366
4632c0d0
JK
43672011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4368
4369 Code cleanup - reformatting.
4370 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4371 (producer_is_gcc_ge_4): ... here, change the return value.
4372 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4373 interpretation.
4374
32019081
JK
43752011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4376
4377 Fix non-only rename list for Fortran modules import.
4378 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4379 cp_add_using_directive caller.
4380 (cp_add_using_directive): New parameter excludes, describe it. New
4381 variables ix and param. Compare if also excludes match. Allocate NEW
4382 with variable size, initialize EXCLUDES there.
4383 (cp_lookup_symbol_imports): New variable excludep, test
4384 current->EXCLUDES with it.
4385 * cp-support.h: Include vec.h.
4386 (struct using_direct): New field excludes, describe it.
4387 (DEF_VEC_P (const_char_ptr)): New.
4388 (cp_add_using_directive): New parameter excludes.
4389 * defs.h (const_char_ptr): New typedef.
4390 * dwarf2read.c (read_import_statement): New variables child_die,
4391 excludes and cleanups, read in excludes.
4392 (read_namespace): Adjust the cp_add_using_directive caller.
4393
70c622a3
JK
43942011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4395
4396 Code cleanup.
4397 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4398 negative comparisons.
4399
39c4d40a
TT
44002011-06-29 André Pönitz <andre.poenitz@nokia.com>
4401
4402 * mi/mi-main.c (mi_cmd_list_features): Emit
4403 breakpoint-notifications.
4404
3b2b8fea
TT
44052011-06-29 Tom Tromey <tromey@redhat.com>
4406
4407 PR fortran/10036:
4408 * valprint.h (generic_emit_char, generic_printstr): Declare.
4409 * valprint.c (wchar_printable, append_string_as_wide)
4410 (print_wchar): Move from c-lang.c.
4411 (generic_emit_char): New function; mostly taken from c_emit_char.
4412 (generic_printstr): New function; mostly taken from c_printstr.
4413 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4414 represented as arrays.
4415 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4416 type.
4417 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4418 identically to TYPE_CODE_INT.
4419 * f-lang.c (f_get_encoding): New function.
4420 (f_emit_char): Use generic_emit_char.
4421 (f_printchar): Replace comment.
4422 (f_printstr): Use generic_printstr.
4423 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4424 "character" types specially.
4425 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4426 for Fortran.
4427 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4428 Move to valprint.c
4429 (c_emit_char): Call generic_emit_char.
4430 (c_printstr): Call generic_printstr.
4431
168e6d44
GB
44322011-06-29 Gary Benson <gbenson@redhat.com>
4433
4434 * breakpoint.c (bpstat_what): Removed duplicated case.
4435
1c033f8c
TT
44362011-06-28 Tom Tromey <tromey@redhat.com>
4437
4438 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4439
5fe41fbf
TT
44402011-06-27 Tom Tromey <tromey@redhat.com>
4441
4442 * valops.c (find_overload_match): Call do_cleanups before early
4443 return.
4444 * top.c (execute_command): Call do_cleanups before early return.
4445 (command_loop): Likewise.
4446 * stack.c (backtrace_command): Make a null cleanup early. Don't
4447 conditionally call do_cleanups.
4448 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4449 TRY_CATCH.
4450 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4451 so cleanups are always run.
4452 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4453 * findcmd.c (parse_find_args): Call do_cleanups on early return
4454 path.
4455 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4456 Don't conditionally call do_cleanups.
4457 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4458 later.
4459
e26bd57d
EB
44602011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4461
4462 * MAINTAINERS (Write After Approval): Use default email address.
4463
6c3097fc
JB
44642011-06-27 Joel Brobecker <brobecker@adacore.com>
4465
4466 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4467
369c397b
JB
44682011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4469
4470 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4471 saved_regs_mask and copied_regs_mask fields.
4472 (sparc_record_save_insn): New prototype.
4473 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4474 (sparc_record_save_insn): New function.
4475 (sparc_analyze_prologue): Add head comment. Recognize store insns
4476 of call-saved registers. Use OFFSET consistently. Recognize flat
4477 frames and cache their settings.
4478 (sparc32_skip_prologue): Handle flat frames.
4479 (sparc_frame_cache): Add frame_offset to the base address.
4480 (sparc32_frame_cache): Adjust to new frame description.
4481 (sparc32_frame_prev_register): Likewise.
4482 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4483 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4484 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4485 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4486 frame by calling sparc_record_save_insn.
4487 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4488 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4489 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4490
b315ab21
TG
44912011-06-27 Tristan Gingold <gingold@adacore.com>
4492
4493 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4494 field by map_addr and map_len.
4495 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4496 (munmap_section_buffer): Likewise.
4497
ddd49eee
TT
44982011-06-24 Tom Tromey <tromey@redhat.com>
4499
4500 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4501 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4502 * python/python.c (gdbpy_parameter): Make 'arg' const.
4503 (execute_gdb_command): Likewise.
4504 (gdbpy_decode_line): Likewise. Copy it.
4505 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4506 (gdbpy_write): Make 'arg' const.
4507 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4508 const.
4509 (gdbpy_lookup_type): Likewise.
4510 * python/py-prettyprint.c (print_children): Make 'name' const.
4511 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4512 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4513 Py_ssize_t.
4514 * python/py-function.c (fnpy_init): Make 'name' const.
4515 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4516 (gdbpy_string_to_argv): Make 'input' const.
4517 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4518 it.
4519 * gdbtypes.h (lookup_typename): Update.
4520 * gdbtypes.c (lookup_typename): Make 'name' const.
4521 (lookup_struct): Likewise.
4522 (lookup_union): Likewise.
4523 (lookup_enum): Likewise.
4524
5998129b
TT
45252011-06-24 Tom Tromey <tromey@redhat.com>
4526
4527 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4528 gdb_thread_db.h. Move all common/ entries to be together.
4529 (TAGS): Don't depend on DEPFILES.
4530
6e586cc5
YQ
45312011-06-23 Yao Qi <yao@codesourcery.com>
4532
4533 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4534 * remote.c (remote_start_remote): ... here.
4535 * monitor.c (monitor_open): ... here.
4536
86c3c1fc
AB
45372011-06-23 Andrew Burgess <aburgess@broadcom.com>
4538
4539 * gdbtypes.c (append_composite_type_field_aligned): Fix
4540 calculation of bit position based on alignment.
4541
28010a5d
PA
45422011-06-22 Pedro Alves <pedro@codesourcery.com>
4543
4544 * breakpoint.c (bpstat_stop_status): Call the check_status
4545 breakpoint_ops method.
4546 (print_one_breakpoint_location): Also print the condition for Ada
4547 exception catchpoints.
4548 (allocate_bp_location): New, factored out from
4549 allocate_bp_location.
4550 (allocate_bp_location): Adjust. Call the owner breakpoint's
4551 allocate_location method, if there is one.
4552 (free_bp_location): Call the locations's dtor method, if there is
4553 one.
4554 (init_raw_breakpoint_without_location): New breakpoint_ops
4555 parameter. Use it.
4556 (set_raw_breakpoint_without_location): Adjust.
4557 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4558 (set_raw_breakpoint): Adjust.
4559 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4560 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4561 re_set and check_status methods.
4562 (init_catchpoint): Don't memset, initialize thread, addr_string
4563 and enable_state. Pass the ops down to init_raw_breakpoint.
4564 (install_catchpoint): Rename to ...
4565 (install_breakpoint): ... this, and make extern.
4566 (create_fork_vfork_event_catchpoint): Adjust.
4567 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4568 re_set and check_status methods.
4569 (create_syscall_event_catchpoint): Adjust.
4570 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4571 (masked_watchpoint_breakpoint_ops): Install NULL
4572 allocate_location, re_set and check_status methods.
4573 (catch_exec_command_1): Adjust.
4574 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4575 re_set and check_status methods.
4576 (create_ada_exception_breakpoint): Rename to ...
4577 (init_ada_exception_breakpoint): ... this. Add a struct
4578 breakpoint parameter, and delete the exp_string, cond_string and
4579 cond parameters. Use init_raw_breakpoint, and don't install or
4580 mention the breakpoint yet. Don't clear breakpoint fields that
4581 init_raw_breakpoint already clears.
4582 (re_set_breakpoint): Delete, split into ...
4583 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4584 functions.
4585 (breakpoint_re_set_one): Call the breakpoint's
4586 breakpoint_ops->re_set implementation, if there's one. Adjust.
4587 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4588 (struct bp_location_ops): New type.
4589 (struct bp_location): New field `ops'.
4590 (struct breakpoint_ops): New `allocate_location', `re_set' and
4591 `check_status' fields. Make `breakpoint_hit''s description match
4592 reality.
4593 (init_bp_location): Declare.
4594 (breakpoint_re_set_default): Declare.
4595 (create_ada_exception_breakpoint): Rename to ...
4596 (init_ada_exception_breakpoint): ... this. Add a struct
4597 breakpoint parameter, and delete the exp_string, cond_string and
4598 cond parameters.
4599 (install_breakpoint): Declare.
4600 * ada-lang.c: Include exceptions.h.
4601 <Ada exceptions description>: Update.
4602 (struct ada_catchpoint_location): New type.
4603 (ada_catchpoint_location_dtor): New function.
4604 (ada_catchpoint_location_ops): New global.
4605 (ada_catchpoint): New type.
4606 (create_excep_cond_exprs): New function.
4607 (dtor_exception, allocate_location_exception, re_set_exception)
4608 (should_stop_exception, check_status_exception): New functions.
4609 (print_one_exception, print_mention_exception)
4610 (print_recreate_exception): Adjust.
4611 (dtor_catch_exception, allocate_location_catch_exception)
4612 (re_set_catch_exception, check_status_catch_exception): New
4613 functions.
4614 (catch_exception_breakpoint_ops): Install them.
4615 (dtor_catch_exception_unhandled)
4616 (allocate_location_catch_exception_unhandled)
4617 (re_set_catch_exception_unhandled)
4618 (check_status_catch_exception_unhandled): New functions.
4619 (catch_exception_unhandled_breakpoint_ops): Install them.
4620 (dtor_catch_assert, allocate_location_catch_assert)
4621 (re_set_catch_assert, check_status_catch_assert): New functions.
4622 (catch_assert_breakpoint_ops): Install them.
4623 (ada_exception_catchpoint_p): Delete.
4624 (catch_ada_exception_command_split)
4625 (ada_exception_catchpoint_cond_string): Rename exp_string
4626 parameter to excep_string. Adjust.
4627 (ada_parse_catchpoint_condition): Delete.
4628 (ada_exception_sal): Rename the exp_string parameter to
4629 excep_string. Delete the cond_string and cond parameters.
4630 Adjust.
4631 (ada_decode_exception_location): Rename the exp_string parameter
4632 to excep_string. Delete the cond_string and cond parameters.
4633 Adjust.
4634 (create_ada_exception_catchpoint): New function.
4635 (catch_ada_exception_command, ada_decode_assert_location)
4636 (catch_assert_command): Adjust.
4637 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4638
9ac4176b
PA
46392011-06-22 Pedro Alves <pedro@codesourcery.com>
4640
4641 * ada-lang.c: Include arch-utils.h.
4642 (ada_decode_exception_location): Make static.
4643 (catch_ada_exception_command): Moved here from breakpoint.c.
4644 (ada_decode_assert_location): Make static.
4645 (catch_assert_command): Moved here from breakpoint.c.
4646 (_initialize_ada_lang): Install the exception and assert
4647 catchpoint commands here.
4648 * ada-lang.h (ada_decode_exception_location)
4649 (ada_decode_assert_location): Delete declarations.
4650 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4651 breakpoint.h.
4652 (create_ada_exception_breakpoint): Make extern.
4653 (catch_ada_exception_command, catch_assert_command): Moved to
4654 ada-lang.c.
4655 (add_catch_command): Make extern.
4656 (_initilize_breakpoint): Don't install the exception and assert
4657 catchpoint commands here.
4658 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4659 breakpoint.c
4660 (add_catch_command, create_ada_exception_breakpoint): Declare.
4661
c56053d2
PA
46622011-06-22 Pedro Alves <pedro@codesourcery.com>
4663
4664 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4665 the breakpoint to the breakpoint chain here.
4666 (set_raw_breakpoint_without_location): Add the breakpoint to the
4667 breakpoint chain here.
4668 (init_raw_breakpoint): Adjust comments.
4669 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4670 here.
4671 (init_catchpoint): Don't set the catchpoint's breakpoint number
4672 here.
4673 (install_catchpoint): New function.
4674 (create_fork_vfork_event_catchpoint)
4675 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4676 use install_catchpoint.
4677
d2f3fc74
PA
46782011-06-22 Pedro Alves <pedro@codesourcery.com>
4679
4680 * breakpoint.c (create_catchpoint_without_mention)
4681 (create_catchpoint): Delete.
4682
b4d90040
PA
46832011-06-22 Pedro Alves <pedro@codesourcery.com>
4684
4685 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4686 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4687 reference to exec_pathname.
4688 (struct exec_catchpoint): New type.
4689 (dtor_catch_exec): New function.
4690 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4691 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4692 (catch_exec_command_1): Adjust to use init_catchpoint.
4693 (delete_breakpoint): Remove reference to exec_pathname.
4694
be5c67c1
PA
46952011-06-22 Pedro Alves <pedro@codesourcery.com>
4696
4697 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4698 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4699 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4700 reference to syscalls_to_be_caught.
4701 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4702 NULL `dtor'.
4703 (struct syscall_catchpoint): New type.
4704 (dtor_catch_syscall): New function.
4705 (insert_catch_syscall, remove_catch_syscall)
4706 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4707 (print_recreate_catch_syscall): Adjust.
4708 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4709 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4710 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4711 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4712 (masked_watchpoint_breakpoint_ops)
4713 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4714 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4715 there is one. Remove references to syscalls_to_be_caught.
4716 (catching_syscall_number): Adjust.
4717 * ada-lang.c (catch_exception_breakpoint_ops)
4718 (catch_exception_unhandled_breakpoint_ops)
4719 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4720
e29a4733
PA
47212011-06-22 Pedro Alves <pedro@codesourcery.com>
4722
4723 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4724 field.
4725 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4726 reference to forked_inferior_pid.
4727 (struct fork_catchpoint): New type.
4728 (breakpoint_hit_catch_fork, print_it_catch_fork)
4729 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4730 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4731 (create_fork_vfork_event_catchpoint): Adjust to use
4732 init_catchpoint.
4733
346774a9
PA
47342011-06-22 Pedro Alves <pedro@codesourcery.com>
4735
4736 * breakpoint.c (add_to_breakpoint_chain)
4737 (init_raw_breakpoint_without_location): New functions, factored
4738 out from ...
4739 (set_raw_breakpoint_without_location): ... this one.
4740 (init_raw_breakpoint): New function, factored out from
4741 set_raw_breakpoint and adjusted to use
4742 init_raw_breakpoint_without_location.
4743 (set_raw_breakpoint): Adjust.
4744 (init_catchpoint): New function, factored out from
4745 create_catchpoint_without_mention and adjusted to use
4746 init_raw_breakpoint.
4747 (create_catchpoint_without_mention): Adjust.
4748
c38c4bc5
TT
47492011-06-22 Tom Tromey <tromey@redhat.com>
4750
4751 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4752 argument of 0 specially.
4753
b138ce37
YQ
47542011-06-22 Yao Qi <yao@codesourcery.com>
4755
4756 * infrun.c (handle_inferior_event): Remove write-only local variable
4757 `sw_single_step_trap_p'.
4758
03de6823
TT
47592011-06-20 Tom Tromey <tromey@redhat.com>
4760
4761 * symtab.c (lookup_language_this): End loop if block is NULL.
4762
66a17cb6
TT
47632011-06-17 Tom Tromey <tromey@redhat.com>
4764
4765 * valops.c (value_of_this): Use lookup_language_this.
4766 * symtab.h (lookup_language_this): Declare.
4767 * symtab.c (lookup_language_this): New function.
4768 (lookup_symbol_aux): Use lookup_language_this.
4769 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4770
7518bff5
TT
47712011-06-17 Tom Tromey <tromey@redhat.com>
4772
4773 * value.h (value_of_this): Update.
4774 (value_of_local): Remove.
4775 * valops.c (value_of_this): Rename from value_of_local. Change
4776 parameters.
4777 * p-exp.y (exp): Update.
4778 (variable): Likewise.
4779 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4780
aee28ec6
TT
47812011-06-17 Tom Tromey <tromey@redhat.com>
4782
4783 * valops.c (value_of_local): Complain if NAME is NULL.
4784 * std-operator.def (OP_OBJC_SELF): Remove.
4785 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4786 * objc-exp.y (name_not_typename): Use OP_THIS.
4787 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4788 name for "this".
4789 <OP_OBJC_SELF>: Remove.
4790 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4791
eed8f803
TG
47922011-06-16 Tristan Gingold <gingold@adacore.com>
4793
4794 * python/py-events.h (gdb_py_events): Make it extern.
4795 * python/py-evtregistry.c (gdb_py_events): Declare.
4796
864ac8a7
HZ
47972011-06-16 Hui Zhu <teawater@gmail.com>
4798
4799 * remote.c (remote_trace_set_readonly_regions): Add check for
4800 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4801 output warning.
4802
ef7e8358
UW
48032011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4804
4805 * arm-linux-tdep.c: Include "auxv.h".
4806 (AT_HWCAP): Define.
4807 (ARM_LINUX_SIZEOF_VFP): Define.
4808 (arm_linux_supply_vfp): New function.
4809 (arm_linux_collect_vfp): Likewise.
4810 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4811 (arm_linux_fpa_regset_sections): New variable.
4812 (arm_linux_vfp_regset_sections): Likewise.
4813 (arm_linux_core_read_description): New function.
4814 (arm_linux_init_abi): Install arm_linux_core_read_description and
4815 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4816 appropriate for the architecture.
4817 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4818 (tdesc_arm_with_m): Declare.
4819 (tdesc_arm_with_iwmmxt): Likewise.
4820 (tdesc_arm_with_vfpv2): Likewise.
4821 (tdesc_arm_with_vfpv3): Likewise.
4822 (tdesc_arm_with_neon): Likewise.
4823 * arm-linux-nat.c: Move features/*.c includes ...
4824 * arm-tdep.c: ... here.
4825 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4826 target description data structures ...
4827 * arm-tdep.c (_initialize_arm_tdep): ... here.
4828 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4829 HWCAP_VFPv3D16): Move definitions ...
4830 * arm-linux-tdep.h: ... here.
4831
c2fa21f1
HZ
48322011-06-15 Hui Zhu <teawater@gmail.com>
4833
4834 * remote.c (remote_trace_set_readonly_regions): Add a check for
4835 target_buf_size.
4836
dd707e8e
TT
48372011-06-14 Tom Tromey <tromey@redhat.com>
4838
4839 * coffread.c (coffread_objfile): Rename from current_objfile.
4840 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4841 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4842
86cc0029
TT
48432011-06-14 Tom Tromey <tromey@redhat.com>
4844
4845 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4846 (class_symtab): Remove.
4847 (jv_dynamics_progspace_key): New global.
4848 (jv_per_objfile_free): Reset program space data. Update assert.
4849 Don't clear globals.
4850 (get_dynamics_objfile): Use and set program space data.
4851 (get_java_class_symtab): Use get_dynamics_objfile.
4852 (add_class_symbol): Likewise.
4853 (java_link_class_type): Likewise.
4854 (java_object_type, jv_clear_object_type, set_java_object_type):
4855 Remove.
4856 (get_java_object_type): Update. Don't cache result.
4857 (is_object_type): Don't call set_java_object_type.
4858 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4859 initialize jv_dynamics_progspace_key.
4860
91a81f69
TT
48612011-06-14 Tom Tromey <tromey@redhat.com>
4862
4863 * symtab.h (current_objfile): Don't declare.
4864 * objfiles.h (current_objfile): Don't declare.
4865 * objfiles.c (current_objfile): Remove.
4866 * mdebugread.c (current_objfile): New file-scope global.
4867 * dbxread.c (current_objfile): New file-scope global.
4868 * coffread.c (current_objfile): New file-scope global.
4869
dc7eb48e
PA
48702011-06-13 Pedro Alves <pedro@codesourcery.com>
4871
4872 * top.h (line): Rename to ...
4873 (saved_command_line): ... this.
4874 (linesize): Rename to ...
4875 (saved_command_line_size): ... this.
4876 * top.c (line): Rename to ...
4877 (saved_command_line): ... this.
4878 (linesize): Rename to ...
4879 (saved_command_line_size): ... this.
4880 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4881 * event-top.c (command_line_handler): Adjust.
4882 * main.c (captured_main): Adjust.
4883
0d6c2135
MK
48842011-06-12 Mark Kettenis <kettenis@gnu.org>
4885
4886 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4887 get_frame_func instead of get_frame_pc to determine the code
4888 address used to construct the frame ID.
4889 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4890 (i386_epilogue_frame_this_id): Likewise.
4891 (i386_epilogue_frame_prev_register): New function.
4892 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4893 (i386_stack_tramp_frame_sniffer): Fix coding style.
4894 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4895 (i386_gdbarch_init): Fix comments.
4896
8bbdd3f4
MK
48972011-06-12 Mark Kettenis <kettenis@gnu.org>
4898
4899 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4900 instruction when walking back through the instruction stream.
4901
533a737e
JK
49022011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4903
4904 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4905 fullname parameters order.
4906
44b13c5a
JK
49072011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4908
4909 Code cleanup.
4910 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4911 for fun.
4912 * psymtab.c (map_symbol_filenames_psymtab)
4913 (map_partial_symbol_filenames): Likewise.
4914 * psymtab.h: Include symfile.h.
4915 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4916 * symfile.h (symbol_filename_ftype): New.
4917 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4918 map_symbol_filenames, clarify more the naming in comment.
4919
0b5574da
DE
49202011-06-07 Doug Evans <dje@google.com>
4921
4922 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4923 Look for ../../gdb, for fullname.exp.
0b5574da 4924
5be4dfca
JK
49252011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4926 Pedro Alves <pedro@codesourcery.com>
4927
4928 * cli/cli-cmds.c (shell_escape): Use waitpid.
4929 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4930
316a8b21
TG
49312011-06-07 Tristan Gingold <gingold@adacore.com>
4932
4933 * xcoffread.c (dwarf2_xcoff_names): New variable.
4934 (aix_process_linenos): Add a guard.
4935 (xcoff_symfile_finish): Free dwarf2.
4936 (xcoff_initial_scan): Add dwarf2 support.
4937
3dd5b83d
PA
49382011-06-06 Pedro Alves <pedro@codesourcery.com>
4939
4940 * infcall.c (run_inferior_call): Don't mask async. Instead force
4941 a synchronous wait, if the target can async.
4942
4943 * target.h (struct target_ops): Delete to_async_mask.
4944 (target_async_mask): Delete.
4945 * target.c (update_current_target): Delete references to to_async_mask.
4946 * linux-nat.c (linux_nat_async_mask_value): Delete.
4947 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4948 to linux_nat_async_mask_value.
4949 (linux_nat_async_mask): Delete.
4950 (linux_nat_async, linux_nat_close): Remove references to
4951 linux_nat_async_mask_value.
4952 * record.c (record_async_mask_value): Delete.
4953 (record_async): Remove references to record_async_mask_value.
4954 (record_async_mask): Delete.
4955 (record_can_async_p, record_is_async_p): Remove references to
4956 record_async_mask_value.
4957 (init_record_ops, init_record_core_ops): Remove references to
4958 record_async_mask.
4959 * remote.c (remote_async_mask_value): Delete.
4960 (init_remote_ops): Remove reference to remote_async_mask.
4961 (remote_can_async_p, remote_is_async_p): Remove references to
4962 remote_async_mask_value.
4963 (remote_async): Remove references to remote_async_mask_value.
4964 (remote_async_mask): Delete.
4965
4966 * infrun.c (fetch_inferior_event): Don't claim registers changed
4967 if the current thread is already not executing.
4968
64b9b334
JB
49692011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4970
4971 From Stephen Kitt <steve@sk2.org>
4972 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4973 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4974
325663dc
JB
49752011-06-03 Joel Brobecker <brobecker@adacore.com>
4976
4977 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4978 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4979
8cf64490
TT
49802011-06-03 Tom Tromey <tromey@redhat.com>
4981
4982 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4983 code fields.
4984 * python/py-exitedevent.c (create_exited_event_object): Change
4985 type of 'exit_code'. Optionally add exit_code attribute.
4986 (emit_exited_event): Change type of 'exit_code'.
4987 * python/py-event.h (emit_exited_event): Update.
4988 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4989 * infrun.c (handle_inferior_event): Set exit code fields on
4990 inferior.
4991 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4992 fields.
4993 * inferior.c (exit_inferior_1): Initialize new fields.
4994
8ddd9a20
TT
49952011-06-03 Tom Tromey <tromey@redhat.com>
4996
4997 * dwarf2expr.c (get_signed_type): New function.
4998 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4999
8dfd1e6d
KS
50002011-06-02 Keith Seitz <keiths@redhat.com>
5001
5002 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5003
65fdb766
PA
50042011-06-02 Pedro Alves <pedro@codesourcery.com>
5005
5006 * top.h (simplified_command_loop): Delete declaration.
5007
f4b8c29b
MF
50082011-06-01 Mike Frysinger <vapier@gentoo.org>
5009
5010 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5011 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5012
1706c199
YQ
50132011-06-01 Yao Qi <yao@codesourcery.com>
5014
5015 * objfiles.h (obj_section_addr): Update reference to objfile from
5016 `abfd' to `obfd'.
5017 (obj_section_endaddr): Likewise.
5018
d19cd713 50192011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5020
5021 * MAINTAINERS: Update my email address and affiliation. Also
5022 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5023
e8eb7bc5
KS
50242010-05-31 Keith Seitz <keiths@redhat.com>
5025
5026 PR c++/12750
5027 * linespec.c (get_search_block): New function.
5028 (find_methods): Add FILE_SYMTATB parameter and use it and
5029 get_search_block to pass an appropriate block to
5030 lookup_symbol_in_namespace.
5031 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5032 Check if *ARGPTR starts with a filename first.
5033 If it does, call locate_first_half again to locate the next
5034 "first half" of the linespec.
5035 Pass FILE_SYMTATB to decode_objc and decode_compound.
5036 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5037 (locate_first_half): Stop on the first colon seen.
5038 (decode_compound): Add FILE_SYMTAB parameter.
5039 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5040 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5041 get_search_block with lookup_symbol.
5042 (find_method): Add FILE_SYMTAB parameter and pass it to
5043 find_methods.
5044 (decode_objc): Use get_search_block.
5045
2b1dbab0
KS
50462010-05-31 Keith Seitz <keiths@redhat.com>
5047
5048 PR symtab/12704
5049 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5050 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5051 and CP_ANONYMOUS_NAMESPACE_LEN.
5052 (cp_is_anonymous): Likewise.
5053 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5054 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5055 * dwarf2read.c (namespace_name): Likewise.
5056 (fixup_partial_die): Likewise.
5057 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5058 seen in the input, keep it.
5059
6d549500
PA
50602011-05-30 Pedro Alves <pedro@codesourcery.com>
5061
5062 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5063 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5064 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5065 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5066 * remote.c (_initialize_remote): Register
5067 async_remote_interrupt_twice directly as
5068 sigint_remote_twice_token event.
5069
395bff70
PA
50702011-05-30 Pedro Alves <pedro@codesourcery.com>
5071
5072 * target.h (enum inferior_event_type): Delete INF_ERROR.
5073 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5074
97224164
PA
50752011-05-30 Pedro Alves <pedro@codesourcery.com>
5076
5077 * interps.c (interp_set): Don't cancel continuations.
5078
07e78767
JK
50792011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5080
5081 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5082
fa4cd53f
PA
50832011-05-30 Pedro Alves <pedro@codesourcery.com>
5084
5085 * continuations.h (continuation_ftype): Add `err' parameter.
5086 Document parameters.
5087 (do_all_continuations, do_all_continuations_thread)
5088 (do_all_intermediate_continuations)
5089 (do_all_intermediate_continuations_thread)
5090 (do_all_inferior_continuations): Add `err' parameter.
5091 * continuations.c (do_my_continuations_1, do_my_continuations)
5092 (do_all_inferior_continuations, do_all_continuations_ptid)
5093 (do_all_continuations_thread_callback)
5094 (do_all_continuations_thread, do_all_continuations)
5095 (do_all_intermediate_continuations_thread_callback)
5096 (do_all_intermediate_continuations_thread)
5097 (do_all_intermediate_continuations): Add `err' parameter, and pass
5098 it down all the way to the continuations proper.
5099 * inf-loop.c (inferior_event_handler): If fetching an inferior
5100 event throws an error, don't pop the target, and still call the
5101 continuations, but with `err' set. Adjust all other continuation
5102 calls.
5103 * breakpoint.c (until_break_command_continuation): Add `err'
5104 parameter.
5105 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5106 issue another step if `err' is set.
5107 (struct until_next_continuation_args): New.
5108 (until_next_continuation): Add `err' parameter. Adjust.
5109 (until_next_command): Adjust.
5110 (struct finish_command_continuation_args): Add `thread' field.
5111 (finish_command_continuation): Add `err' parameter. Handle it.
5112 (finish_forward): Adjust.
5113 (attach_command_continuation): Add `err' parameter. Handle it.
5114 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5115 cancel the continuations.
5116 * interps.c (interp_set): Adjust to cancel the continuations.
5117 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5118 continuations rather than discarding.
5119 (free_thread): Don't clear thread inferior resources here.
5120 (delete_thread_1): Do it here instead. And do it before removing
5121 the thread from the threads list. Tag the thread as exited before
5122 clearing thread inferior resources.
5123
c2949be0
JB
51242011-05-30 Joel Brobecker <brobecker@adacore.com>
5125
5126 * infcall.c (call_function_by_hand): Rephrase error message.
5127
619cebe8
PA
51282011-05-27 Pedro Alves <pedro@codesourcery.com>
5129
5130 * defs.h (struct thread_info, struct inferior): Delete forward
5131 declarations.
5132 * breakpoint.h (struct thread_info): New forward declaration.
5133 * observer.sh (struct inferior): New forward declaration.
5134 * python/python-internal.h (struct inferior): New forward
5135 declaration.
5136
be34f849
PA
51372011-05-27 Pedro Alves <pedro@codesourcery.com>
5138
5139 * defs.h (struct continuation, continuation_ftype)
5140 (continuation_free_arg_ftype, add_continuation)
5141 (do_all_continuations, do_all_continuations_thread)
5142 (discard_all_continuations, discard_all_continuations_thread)
5143 (add_intermediate_continuation, do_all_intermediate_continuations)
5144 (do_all_intermediate_continuations_thread)
5145 (discard_all_intermediate_continuations)
5146 (discard_all_intermediate_continuations_thread)
5147 (add_inferior_continuation, do_all_inferior_continuations)
5148 (discard_all_inferior_continuations): Move to ...
5149 * continuations.h: ... this new file.
5150 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5151 infcmd.c, inferior.c, infrun.c, interps.c: Include
5152 continuations.h.
5153
432b4d03
JK
51542011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5155 Doug Evans <dje@google.com>
5156
5157 Fix PR 10970, PR 12702.
5158 * linux-nat.c (linux_lwp_is_zombie): New function.
5159 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5160 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5161
b0f260d6
PA
51622011-05-27 Pedro Alves <pedro@codesourcery.com>
5163
5164 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5165 typedefs.
5166 (add_continuation, add_intermediate_continuation)
5167 (add_inferior_continuation): Use them.
5168 * continuations.c (struct continuation): Use them.
5169 (make_continuation_ftype): Delete.
5170 (make_continuation, add_inferior_continuation, add_continuation)
5171 (add_intermediate_continuation): Use continuation_ftype and
5172 continuation_free_arg_ftype. Rename parameters to shorter names.
5173
af1e9a32
PA
51742011-05-27 Pedro Alves <pedro@codesourcery.com>
5175
5176 * continuations.c (make_continuation): Make it return void.
5177 (do_my_continuations): Rename to ...
5178 (do_my_continuations_1): ... this. Remove old_chain parameter and
5179 adjust.
5180 (do_my_continuations): New.
5181 (discard_my_continuations): Rename to ...
5182 (discard_my_continuations_1): ... this. Remove old_chain
5183 parameter and adjust.
5184 (discard_my_continuations): New.
5185 (add_inferior_continuation): Simplify.
5186 (do_all_inferior_continuations): Reimplement on top
5187 do_my_continuations.
5188 (discard_all_inferior_continuations): Simplify.
5189 (add_continuation): Simplify.
5190 (do_all_continuations_ptid): Simplify.
5191 (discard_all_continuations_thread_callback): Simplify.
5192 (add_intermediate_continuation): Simplify.
5193 (discard_all_intermediate_continuations_thread_callback):
5194 Simplify.
5195
50c0c017
PA
51962011-05-27 Pedro Alves <pedro@codesourcery.com>
5197
5198 * utils.c (struct continuation, add_continuation)
5199 (add_inferior_continuation)
5200 (do_all_inferior_continuations, discard_all_inferior_continuations)
5201 (restore_thread_cleanup, do_all_continuations_ptid)
5202 (do_all_continuations_thread_callback)
5203 (do_all_continuations_thread, do_all_continuations)
5204 (discard_all_continuations_thread_callback)
5205 (discard_all_continuations_thread, discard_all_continuations)
5206 (add_intermediate_continuation)
5207 (do_all_intermediate_continuations_thread_callback)
5208 (do_all_intermediate_continuations_thread)
5209 (do_all_intermediate_continuations)
5210 (discard_all_intermediate_continuations_thread_callback)
5211 (discard_all_intermediate_continuations_thread)
5212 (discard_all_intermediate_continuations): Move to ...
5213 * continuations.c: ... this new file, and adjust to no longer
5214 implement continuations on top of cleanups.
5215 * Makefile.in (SFILES): Add continuations.c.
5216 (COMMON_OBS): Add continuations.o.
5217
d8b34453
PA
52182011-05-26 Pedro Alves <pedro@codesourcery.com>
5219
5220 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5221 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5222 Internal error on invalid values.
5223 * reverse.c: Don't handle EXEC_ERROR.
5224 * mi/mi-main.c: Don't handle EXEC_ERROR.
5225
32231432
PA
52262011-05-26 Pedro Alves <pedro@codesourcery.com>
5227
5228 * record.c: Include event-loop.h, inf-loop.h.
5229 (record_beneath_to_async): New global.
5230 (tmp_to_async): New global.
5231 (record_async_inferior_event_token): New global.
5232 (record_open_1): Don't error out if async is enabled.
5233 (record_open): Handle to_async. Create an async event source in
5234 the event loop.
5235 (record_close): Delete the async event source.
5236 (record_resumed): New global.
5237 (record_execution_dir): New global.
5238 (record_resume, record_core_resume): Set them. Register the
5239 target on the event loop.
5240 (record_wait): Rename to ...
5241 (record_wait_1): ... this. Add more debug output. Handle
5242 TARGET_WNOHANG, and the target beneath returning
5243 TARGET_WAITKIND_IGNORE.
5244 (record_wait): Reimplement on top of record_wait_1.
5245 (record_async_mask_value): New global.
5246 (record_async, record_async_mask, record_can_async_p)
5247 (record_is_async_p, record_execution_direction): New functions.
5248 (init_record_ops, init_record_core_ops): Install new methods.
5249 * infrun.c (fetch_inferior_event): Temporarily switch the global
5250 execution direction to the direction the target was going.
5251 (execution_direction): Change type to int.
5252 * target.c (default_execution_direction): New function.
5253 (update_current_target): Inherit and de_fault
5254 to_execution_direction.
5255 * target.h (struct target_ops) <to_execution_direction>: New
5256 field.
5257 (target_execution_direction): New macro.
5258 * inferior.h (execution_direction): Change type to int.
5259
949dc678
PA
52602011-05-26 Pedro Alves <pedro@codesourcery.com>
5261
5262 * infcall.c (call_function_by_hand): Don't allow calling functions
5263 in reverse execution mode.
5264
c13bd2b5
PA
52652011-05-26 Pedro Alves <pedro@codesourcery.com>
5266
5267 * infcmd.c (finish_command): Allow async finish in reverse.
5268
6938fd34
YQ
52692011-05-26 Yao Qi <yao@codesourcery.com>
5270
5271 * gdb_thread_db.h: Delete. Move to ...
5272 * common/gdb_thread_db.h: ... here.
5273
9da8c2a0
PA
52742011-05-26 Pedro Alves <pedro@codesourcery.com>
5275
5276 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5277 function's entry point instead of a manually managed momentary
5278 breakpoint, and only ever issue one proceed call.
5279 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5280 doing a reverse-finish, switch to stepi mode, to do another step.
5281 (insert_step_resume_breakpoint_at_sal): Make public.
5282 (normal_stop): No need to save function value return registers if
5283 going reverse.
5284 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5285
2c03e5be
PA
52862011-05-26 Pedro Alves <pedro@codesourcery.com>
5287
5288 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5289 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5290 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5291 at the end.
5292 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5293 step-resume breakpoints.
5294 (print_it_typical): Handle bp_hp_step_resume.
5295 (bpstat_what): Ditto.
5296 (bptype_string): Ditto.
5297 (print_one_breakpoint_location): Ditto.
5298 (allocate_bp_location): Ditto.
5299 (mention): Ditto.
5300 (breakpoint_re_set_one): Ditto.
5301 * infrun.c (handle_inferior_event): Adjust. Split
5302 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5303 BPSTAT_WHAT_HP_STEP_RESUME.
5304 (insert_step_resume_breakpoint_at_sal): Rename to ...
5305 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5306 parameter. Handle it.
5307 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5308 insert_step_resume_breakpoint_at_sal_1.
5309 (insert_step_resume_breakpoint_at_frame): Rename to ...
5310 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5311 set a high-priority step-resume breakpoint.
5312 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5313 (insert_step_resume_breakpoint_at_caller): Ditto.
5314
51be5b68
PA
53152011-05-26 Pedro Alves <pedro@codesourcery.com>
5316
5317 * breakpoint.c (iterate_over_related_breakpoints): New.
5318 (do_map_delete_breakpoint): New.
5319 (delete_command): Pass do_map_delete_breakpoint to
5320 map_breakpoint_numbers.
5321 (do_disable_breakpoint): New.
5322 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5323 breakpoints.
5324 (do_enable_breakpoint): Rename to ...
5325 (enable_breakpoint_disp): ... this.
5326 (enable_breakpoint): Adjust.
5327 (do_enable_breakpoint): New.
5328 (enable_once_breakpoint): Delete.
5329 (do_map_enable_breakpoint): New.
5330 (do_map_enable_once_breakpoint): New.
5331 (enable_once_command, enable_delete_command)
5332 (delete_trace_command): Iterate over the breakpoint's related
5333 breakpoints.
5334
4a1be8d2
PA
53352011-05-26 Pedro Alves <pedro@codesourcery.com>
5336
5337 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5338 for ALPHA_ZERO_REGNUM.
5339 (alpha_supply_int_regs): Explicitly supply zero as the value for
5340 ALPHA_ZERO_REGNUM in the register cache.
5341 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5342
59d70315
YQ
53432011-05-26 Yao Qi <yao@codesourcery.com>
5344
5345 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5346
251d32d9
TG
53472011-05-26 Tristan Gingold <gingold@adacore.com>
5348
5349 * symfile.h (struct dwarf2_section_names): New type.
5350 (struct dwarf2_debug_sections): New type.
5351 (dwarf2_has_info): Add parameter.
5352 * dwarf2read.c (dwarf2_elf_names): New variable.
5353 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5354 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5355 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5356 (dwarf2_has_info): Add names parameter. Pass names
5357 to dwarf2_locate_sections.
5358 (section_is_p): Rewrite using the names parameter.
5359 (dwarf2_locate_sections): Use section names from the names parameter.
5360 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5361 * elfread.c (read_psyms): Ditto.
5362 * machoread.c (macho_symfile_read): Ditto.
5363
652c71b4
AS
53642011-05-25 Andreas Schwab <schwab@redhat.com>
5365
5366 PR gdb/8677
5367 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5368
f17170e5
KS
53692011-05-24 Keith Seitz <keiths@redhat.com>
5370
5371 PR breakpoint/12803
5372 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5373 (decode_compound): Unconditionally call keep_name_info.
5374
cdac0397
PA
53752011-05-24 Pedro Alves <pedro@codesourcery.com>
5376
5377 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5378 scope, clear its command list.
5379 (map_breakpoint_numbers): Don't walk the related breakpoints list
5380 of each breakpoint.
5381
91d4fe3f
TT
53822011-05-24 Tom Tromey <tromey@redhat.com>
5383
5384 * MAINTAINERS: Move Jim Blandy to past maintainers.
5385
3017a003
TG
53862011-05-24 Tristan Gingold <gingold@adacore.com>
5387
5388 * symfile.h (enum dwarf2_section_enum): New type.
5389 (dwarf2_get_section_info): New prototype.
5390 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5391 section_name by sect. Use a switch to select the info.
5392 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5393 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5394
c91c8c16
PA
53952011-05-24 Pedro Alves <pedro@codesourcery.com>
5396
5397 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5398 shared library event breakpoint if there's no execution.
5399
77bc418a
TJB
54002011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5401
5402 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5403 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5404
c50491a7
TT
54052011-05-23 Tom Tromey <tromey@redhat.com>
5406
5407 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5408 NULL.
5409
6d64e6d4
DE
54102011-05-23 Doug Evans <dje@google.com>
5411
5412 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5413 entry for RuntimeError to doc string.
5414
2067c8d4
JG
54152011-05-23 Jerome Guitton <guitton@adacore.com>
5416
5417 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5418 sequence for probing loops.
5419
b136cd05
PA
54202011-05-23 Pedro Alves <pedro@codesourcery.com>
5421
5422 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5423 comment.
5424
22e74ef9
MK
54252011-05-21 Mark Kettenis <kettenis@gnu.org>
5426
5427 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5428 zero as the value for %g0 in the register cache.
5429 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5430 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5431
842951eb
PA
54322011-05-20 Pedro Alves <pedro@codesourcery.com>
5433
5434 * infrun.c (proceed): Set previous_inferior_ptid here.
5435 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5436 inferior_ptid, not null_ptid.
5437 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5438 (fetch_inferior_event): Nor here.
5439
46cf51e6
PA
54402011-05-20 Pedro Alves <pedro@codesourcery.com>
5441
5442 * inf-loop.c (inferior_event_handler): Only output a message if
5443 verbose.
5444
29ef4c46
LM
54452011-05-20 Luis Machado <lgustavo@codesourcery.com>
5446
5447 * MAINTAINERS: Update my e-mail address.
5448
f148b27e
PA
54492011-05-20 Pedro Alves <pedro@codesourcery.com>
5450
5451 * infrun.c (proceed): Switch the inferior event loop to
5452 INF_EXEC_COMPLETE if the target refused to resume from a
5453 vfork/fork.
5454
09cee04b
PA
54552011-05-20 Pedro Alves <pedro@codesourcery.com>
5456
5457 * infcmd.c: Include "inf-loop.h".
5458 (step_once): When stepping into an inline subroutine, pretend the
5459 target has run. If the target can async, switch the inferior
5460 event loop to INF_EXEC_COMPLETE.
5461 * inferior.h (user_visible_resume_ptid): Declare.
5462 * infrun.c (user_visible_resume_ptid): New function, factored out
5463 from `resume'.
5464 (resume): Use it.
5465 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5466 that the current thread is running. Merge async and sync
5467 branches.
5468
751b8ce1
PA
54692011-05-20 Pedro Alves <pedro@codesourcery.com>
5470
5471 * infcmd.c (step_1): Simplify synchronous case.
5472
e93a69ed
PA
54732011-05-20 Pedro Alves <pedro@codesourcery.com>
5474
5475 * tracepoint.c: Include exceptions.h.
5476 (TFILE_PID): Move higher in file.
5477 (tfile_open): Delay pushing the tfile target until we're assured
5478 the tfile header is present in the file. Wrap reading the initial
5479 newline-terminated lines in TRY_CATCH. Pop the target if the
5480 initial setup failed. Add the tfile's thread immediately
5481 aftwards, before any non-essential setup. Don't skip
5482 post_create_inferior if there are no traceframes present in the
5483 file.
5484 (tfile_close): Remove redundant check for null before xfree call.
5485 (tfile_thread_alive): New function.
5486 (init_tfile_ops): Register it as to_thread_alive callback.
5487
6823e2b1
PA
54882011-05-20 Pedro Alves <pedro@codesourcery.com>
5489
5490 * tracepoint.c (tfile_open): Delete #if 0'd code.
5491
b3c8eb43
JK
54922011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5493
5494 Fix -readnow for -gdwarf-4 unused type units.
5495 * dwarf2read.c (struct signatured_type): Remove the field offset.
5496 (create_signatured_type_table_from_index): Remove its initialization.
5497 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5498 instead. Add a complaint call.
5499 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5500 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5501 (lookup_signatured_type_at_offset, read_signatured_type)
5502 (write_one_signatured_type): Update the field for per_cu.
5503
310afc76
TT
55042011-05-19 Tom Tromey <tromey@redhat.com>
5505
5506 * python/py-inferior.c (python_inferior_exit): Use
5507 target_gdbarch.
5508 (python_on_resume): Likewise.
5509
cf6c5ffb
TT
55102011-05-19 Matt Rice <ratmice@gmail.com>
5511
5512 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5513
fb80a3c5
HZ
55142011-05-19 Hui Zhu <teawater@gmail.com>
5515
5516 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5517
3672b1be
HZ
55182011-05-19 Hui Zhu <teawater@gmail.com>
5519
5520 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5521
ff355380
TT
55222011-05-18 Tom Tromey <tromey@redhat.com>
5523
5524 * dwarf2read.c (dwarf2_add_field): Constify.
5525 * value.c (value_static_field): Constify.
5526 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5527 Now const.
5528 * ax-gdb.c (gen_static_field): Constify
5529
ed731959
JK
55302011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5531
5532 * linux-nat.c (kill_callback): Use SIGKILL first.
5533
967cff16
JB
55342011-05-18 Joel Brobecker <brobecker@adacore.com>
5535
5536 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5537
1d06ead6
TT
55382011-05-18 Tom Tromey <tromey@redhat.com>
5539
5540 * value.c (value_fn_field): Constify.
5541 * symtab.c (gdb_mangle_name): Constify.
5542 * stabsread.c (update_method_name_from_physname): Make 'physname'
5543 argument const.
5544 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5545 const. Use explicit fputc_filtered loop.
5546 (pascal_type_print_base): Constify.
5547 * p-lang.h (pascal_type_print_method_args): Update.
5548 * linespec.c (add_matching_methods): Constify.
5549 (add_constructors): Likewise.
5550 * jv-typeprint.c (java_type_print_base): Constify.
5551 * gdbtypes.h (struct cplus_struct_type)
5552 <fn_fieldlist.fn_field.physname>: Now const.
5553 * dwarf2read.c (compute_delayed_physnames): Constify.
5554 (dwarf2_add_member_fn): Likewise.
5555 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5556
0d9a9a5f
PA
55572011-05-18 Pedro Alves <pedro@codesourcery.com>
5558
5559 * infrun.c (resume): Mention which is the current thread, and its
5560 current PC in debug output.
5561 (prepare_to_proceed): Mention the thread switching in debug
5562 output.
5563
05386e9e
TT
55642011-05-18 Tom Tromey <tromey@redhat.com>
5565
5566 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5567 path check. Use xmalloc and cleanups.
5568 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5569
ee86786c
TT
55702011-05-17 Tom Tromey <tromey@redhat.com>
5571
5572 * cp-valprint.c (cp_print_value_fields): Catch errors from
5573 value_static_field.
5574
9ff3b74f
TT
55752011-05-17 Tom Tromey <tromey@redhat.com>
5576
5577 * dwarf2read.c (dwarf2_get_die_type): Call
5578 get_die_type_at_offset.
5579 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5580 get_base_type function.
5581
cd3da28e
PA
55822011-05-17 Tomas Martinec <fyzmat@gmail.com>
5583
5584 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5585 trap_expected.
5586
fd20d931
DE
55872011-05-16 Doug Evans <dje@google.com>
5588
5589 * python/py-auto-load.c (source_section_scripts): Mention objfile
5590 name in warning.
5591
75fc9810
DE
55922011-05-15 Doug Evans <dje@google.com>
5593
290351b8
DE
5594 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5595 (try_thread_db_load_from_pdir): Call it. If unable to find
5596 libthread_db in directory of libpthread, see if we're looking at
5597 the separate-debug-info copy.
5598
75fc9810
DE
5599 * python/py-autoload.c (print_script): Print "Missing" instead of
5600 "No" for missing scripts.
5601 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5602
9f7bc587
DE
56032011-05-13 Doug Evans <dje@google.com>
5604
5605 * ui-file.c (stdio_file_write_async_safe): Add comment.
5606
093cee7d
HZ
56072011-05-14 Hui Zhu <teawater@gmail.com>
5608
5609 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5610
dbaefcf7
DE
56112011-05-13 Doug Evans <dje@google.com>
5612
98a5dd13
DE
5613 Support $pdir and $sdir in libthread-db-search-path.
5614 * NEWS: Mention $sdir,$pdir.
5615 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5616 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5617 (try_thread_db_load_from_sdir): New function.
5618 (try_thread_db_load_from_dir): New function.
5619 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5620 system directories if search of libthread-db-search-path fails,
5621 that is now done via $sdir.
5622 (has_libpthread): New function.
5623 (thread_db_load): Remove search for libthread_db in directory of
5624 libpthread, that is now done via $pdir.
5625
dbaefcf7
DE
5626 * NEWS: Mention "info auto-load-scripts".
5627 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5628 script_not_found_warning_printed.
5629 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5630 all callers updated. Initialize script_not_found_warning_printed.
5631 (get_auto_load_pspace_data_for_loading): New function.
5632 (maybe_add_script): New function.
5633 (source_section_scripts): Simplify. Only print one warning regardless
5634 of the number of auto-load scripts not found.
5635 (clear_section_scripts): Clear script_not_found_warning_printed.
5636 (auto_load_objfile_script): Record script in hash table.
5637 (count_matching_scripts): New function.
5638 (maybe_print_script): Renamed from maybe_print_section_script, all
5639 callers updated. Rewrite to use ui_out_*.
5640 (info_auto_load_scripts): Renamed from
5641 maintenance_print_section_scripts, all callers updated.
5642 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5643 renamed as "info auto-load-scripts".
5644
9930639c
TT
56452011-05-13 Tom Tromey <tromey@redhat.com>
5646
5647 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5648 (read_sleb128): Likewise.
5649
06826322
TT
56502011-05-13 Tom Tromey <tromey@redhat.com>
5651
5652 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5653 offset display.
5654
01124a23
DE
56552011-05-13 Doug Evans <dje@google.com>
5656
5657 * linux-nat.c (debug_linux_nat_async): Delete.
5658 Replace all references to use debug_linux_nat instead.
5659 (show_debug_linux_nat_async): Delete.
5660 (sigchld_handler): Call ui_file_write_async_safe instead of
5661 fprintf_unfiltered.
5662 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5663 * ui-file.c (struct ui_file): New member to_write_async_safe.
5664 (null_file_write_async_safe): New function.
5665 (ui_file_write_async_safe): New function.
5666 (set_ui_file_write_async_safe): New function.
5667 (ui_file_new): Initialize to_write_async_safe.
5668 (stdio_file_write_async_safe): New function.
5669 (struct stdio_file): New member fd.
5670 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5671 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5672 fileno.
01124a23
DE
5673 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5674 (set_ui_file_write_async_safe): Declare.
5675 (ui_file_write_async_safe): Declare.
5676
72fc29ff
TT
56772011-05-13 Tom Tromey <tromey@redhat.com>
5678
5679 * utils.c (do_value_free): New function.
5680 (make_cleanup_value_free): Likewise.
5681 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5682 freeing correctly.
5683 (dwarf2_loc_desc_needs_frame): Call
5684 make_cleanup_value_free_to_mark.
5685 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5686 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5687 value_free_to_mark.
5688 (new_dwarf_expr_context): Don't call value_mark.
5689 * dwarf2-frame.c (execute_stack_op): Call
5690 make_cleanup_value_free_to_mark.
5691 * defs.h (make_cleanup_value_free): Declare.
5692
028d0ed5
TJB
56932011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5694
5695 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5696 prepare_execute_command.
5697 * top.c (prepare_execute_command): Return cleanup.
5698 (execute_command): Use cleanup from prepare_execute_command.
5699 * top.h (prepare_execute_command): Change prototype to return
5700 cleanup.
5701 * defs.h (struct value): Add opaque declaration.
5702 (make_cleanup_value_free_to_mark): Add prototype.
5703 * utils.c (do_value_free_to_mark): New function.
5704 (make_cleanup_value_free_to_mark): Likewise.
5705
b087e0ed
TT
57062011-05-12 Tom Tromey <tromey@redhat.com>
5707
5708 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5709 cast left-hand-side to unsigned.
5710
8a9b8146
TT
57112011-05-12 Tom Tromey <tromey@redhat.com>
5712
5713 PR gdb/12617:
5714 * value.h (value_from_contents): Declare.
5715 * value.c (value_from_contents): New function.
5716 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5717 (dwarf2_get_die_type): New function.
5718 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5719 (allocate_piece_closure): Acquire reference to values.
5720 (read_pieced_value): Update for value-based expressions.
5721 (write_pieced_value): Likewise.
5722 (free_pieced_value_closure): Call value_free as needed.
5723 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5724 Update for value-based expressions.
5725 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5726 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5727 <get_base_type>: New field.
5728 (struct dwarf_expr_piece) <v.value>: Change type.
5729 <v.regno>: New field.
5730 (struct dwarf_expr_context) <mark>: New field.
5731 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5732 (dwarf_expr_pop, dwarf_expr_push): Remove.
5733 (dwarf_expr_push_address): Declare.
5734 * dwarf2expr.c (dwarf_arch_cookie): New global.
5735 (struct dwarf_gdbarch_types): New.
5736 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5737 functions.
5738 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5739 static.
5740 (dwarf_expr_push_address): New function.
5741 (dwarf_expr_pop): Now static.
5742 (dwarf_expr_fetch): Change return type.
5743 (dwarf_require_integral): New function.
5744 (dwarf_expr_fetch): Simplify.
5745 (add_piece): Update.
5746 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5747 functions.
5748 (execute_stack_op) <sign_ext>: Remove.
5749 Use values for DWARF stack.
5750 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5751 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5752 New cases.
5753 (_initialize_dwarf2expr): New function.
5754 (add_piece): Update.
5755 (new_dwarf_expr_context): Set new field.
5756 (free_dwarf_expr_context): Call value_free_to_mark.
5757 * dwarf2-frame.c (no_base_type): New function.
5758 (execute_stack_op): Set get_base_type field. Update.
5759
e8d28ef4
TT
57602011-05-12 Tom Tromey <tromey@redhat.com>
5761
5762 * dwarf2read.c (read_common_block): Fix formatting.
5763
d248b706
KY
57642011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5765
5766 * breakpoint.c (disable_breakpoint): Disable all locations
5767 associated with a tracepoint on target if a trace experiment is
5768 running.
5769 (disable_command): Disable a specific tracepoint location on target if
5770 a trace experiment is running.
5771 (do_enable_breakpoint): Enable all locations associated with a
5772 tracepoint on target if a trace experiment is running.
5773 (enable_command) Enable a specific tracepoint location on target if a
5774 trace experiment is running.
5775 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5776 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5777 to_disable_tracepoint.
5778 * target.h: Add declaration of struct bp_location.
5779 (struct target_ops): Add new functions
5780 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5781 to_disable_tracepoint to target operations.
5782 (target_supports_enable_disable_tracepoint): New macro.
5783 (target_enable_tracepoint): New macro.
5784 (target_disable_tracepoint): New macro.
5785 * remote.c (struct remote_state): Add new field.
5786 (remote_enable_disable_tracepoint_feature): New.
5787 (remote_protocol_features): Add new entry.
5788 (remote_supports_enable_disable_tracepoint): New.
5789 (remote_enable_tracepoint): New.
5790 (remote_disable_tracepoint): New.
5791 (init_remote_ops): Add remote_enable_tracepoint,
5792 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5793 to remote operations.
5794 * tracepoint.c (start_tracing): Allow tracing to start without any
5795 tracepoints enabled with just a warning if they can be re-enabled
5796 later.
5797 * NEWS: Add news item for the new behaviour of the enable and disable
5798 GDB commands when applied to tracepoints.
5799 Add news items for the new remote packets QTEnable and QTDisable.
5800
cc88a640
JK
58012011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5802
5803 * config.in: Regenerate.
5804 * configure: Regenerate.
5805 * configure.ac <--with-system-readline> (for readline_echoing_p):
5806 Remove the test.
5807 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5808 (tui_old_rl_echoing_p): ... here.
5809 (tui_setup_io): Rename extern declaration readline_echoing_p to
5810 _rl_echoing_p. Adjust assignments for the both renames.
5811
1f84b619
TJB
58122011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5813
5814 * symtab.c (lookup_symtab): Run cleanup before returning.
5815
74ac6d43
TT
58162011-05-11 Tom Tromey <tromey@redhat.com>
5817
5818 * dwarf2read.c (handle_data_member_location): New function.
5819 (dwarf2_add_field): Use it.
5820 (read_common_block): Likewise.
5821
5488dafb
JK
58222011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 Make addrs->SECTINDEX always defined.
5825 * symfile.c (relative_addr_info_to_section_offsets): Check for
5826 SECTINDEX -1, not for zero ADDR.
5827 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5828 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5829 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5830 on its validity.
5831
84e578fb
DE
58322011-05-10 Doug Evans <dje@google.com>
5833
2471d008
DE
5834 * linux-thread-db.c: Whitespace cleanup.
5835 (try_thread_db_load_1): Fix comment.
5836
84e578fb
DE
5837 * linux-thread-db.c (set_libthread_db_search_path): New function.
5838 (_initialize_thread_db): Add setter for libthread-db-search-path.
5839
673c2bbe
DE
58402011-05-09 Doug Evans <dje@google.com>
5841
478aac75
DE
5842 * NEWS: Mention --with-iconv-bin.
5843 * configure.ac: New option --with-iconv-bin.
5844 * configure: Regenerate.
5845 * config.in: Regenerate.
5846 * defs.h (relocate_gdb_directory): Declare.
5847 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5848 removed progname parameter, and exported. All callers updated.
5849 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5850
673c2bbe
DE
5851 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5852 adding missing call to restore_child_signals_mask.
5853
e4c8541f
PA
58542011-05-09 Pedro Alves <pedro@codesourcery.com>
5855
5856 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5857 parameter.
5858 * infrun.c (proceed, start_remote): Adjust.
5859 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5860 and adjust to not handle it.
5861 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5862 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5863 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5864 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5865 * windows-nat.c (do_initial_windows_stuff): Adjust.
5866 * infcmd.c (attach_command): Adjust.
5867 (notice_new_inferior): Adjust.
5868
a536c6d7
UW
58692011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5870
5871 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5872 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5873 * spu-tdep.c (op_selb): Use correct value.
5874
7845b013
UW
58752011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5876
5877 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5878 "parent" parameter to symbol_file_add_from_bfd call.
5879
9c06b0b4
TJB
58802011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5881 Thiago Jung Bauermann <bauerman@br.ibm.com>
5882
5883 Implement support for PowerPC BookE masked watchpoints.
5884 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5885 section.
5886 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5887 method. Initialize to NULL in all existing breakpoint_ops instances.
5888 (struct breakpoint) <hw_wp_mask>: New field.
5889 * breakpoint.c (is_masked_watchpoint): Add prototype.
5890 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5891 breakpoint's breakpoint_ops.works_in_software_mode if available.
5892 (watchpoints_triggered): Handle the case of a hardware masked
5893 watchpoint trigger.
5894 (watchpoint_check): Likewise.
5895 (works_in_software_mode_watchpoint): New function.
5896 (insert_masked_watchpoint, remove_masked_watchpoint)
5897 (resources_needed_masked_watchpoint)
5898 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5899 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5900 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5901 functions.
5902 (masked_watchpoint_breakpoint_ops): New structure.
5903 (watch_command_1): Check for the existence of the `mask' parameter.
5904 Set b->ops according to the type of hardware watchpoint being created.
5905 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5906 (ppc_linux_remove_mask_watchpoint)
5907 (ppc_linux_masked_watch_num_registers): New functions.
5908 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5909 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5910 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5911 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5912 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5913 (target_masked_watch_num_registers): New functions.
5914 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5915 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5916 methods.
5917 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5918 (target_masked_watch_num_registers): Add prototypes.
5919
8be455d7
JK
59202011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5921
5922 PR 12573
5923 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5924 (producer_is_gcc_ge_4_0): New function.
5925 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5926 symtab->language code.
5927 (var_decode_location): Set cu->has_loclist.
5928 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5929 skip. Intialize force_skip from locations_valid. Move the prologue
5930 skipping code into two passes.
5931 * symtab.h (struct symtab): Make the primary field a bitfield. New
5932 field locations_valid.
5933
d8228535
JK
59342011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5935
5936 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5937 (classify_inner_name): Call cp_lookup_nested_type with
5938 yylval.tsym.type.
5939 * cp-namespace.c (cp_lookup_nested_type): New variable
5940 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5941 type_name_no_tag_or_error with saved_parent_type.
5942 * dwarf2read.c (load_partial_dies): Read in any children of
5943 DW_TAG_typedef with complaint in such case.
5944 * gdbtypes.c (type_name_no_tag_or_error): New function.
5945 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5946 * valops.c (destructor_name_p): New comment for parameter type. Remove
5947 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5948 * value.h (destructor_name_p): Remove type const.
5949
1976171a
JK
59502011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5951
5952 * symtab.c (compare_symbol_name): New function.
5953 (completion_list_add_name, expand_partial_symbol_name): Call it,
5954 remove the variable ncmp.
5955 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5956 gdb_assert it.
5957
a9634178
TJB
59582011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5959
5960 Demote to sw watchpoint only in update_watchpoint.
5961 * breakpoint.c (update_watchpoint): Change between software and
5962 hardware watchpoint for all kinds of watchpoints, not just
5963 read/write ones. Determine b->exact value here instead of
5964 in watch_command_1. Error out if there are not enough resources
5965 for a read or access hardware watchpoint.
5966 (watch_command_1): Remove logic of checking whether there are
5967 enough resources available, since update_watchpoint will do that
5968 work now. Don't set b->exact here. Catch exceptions thrown by
5969 update_watchpoint and delete the watchpoint.
5970 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5971 Use target_exact_watchpoints instead.
5972 (delete_breakpoint): Notify observers only if deleted watchpoint
5973 has a breakpoint number assigned to it.
5974
4c67c798
JJ
59752011-05-05 Janis Johnson <janisjo@codesourcery.com>
5976
5977 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5978
a3fcb948
JG
59792011-05-05 Jerome Guitton <guitton@adacore.com>
5980
5981 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5982 New functions.
5983 (i386_stack_tramp_frame_unwind): New static global.
5984 (i386_match_pattern): New function, extracted from i386_match_insn.
5985 (i386_match_insn): Use i386_match_pattern.
5986 (i386_match_insn_block): New function.
5987 (i386_tramp_chain_in_reg_insns)
5988 (i386_tramp_chain_on_stack_insns): New static variables.
5989 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5990 of unwinders.
5991
4d393d60
JM
59922011-05-04 Joseph Myers <joseph@codesourcery.com>
5993
5994 * configure.host (xscale*): Don't handle target.
5995 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5996 handle targets.
5997
f70bd40b
YQ
59982011-05-04 Yao Qi <yao@codesourcery.com>
5999
6000 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6001
dd3295ee
JB
60022011-05-03 Joel Brobecker <brobecker@adacore.com>
6003
6004 Revert:
6005 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6006 | * elfread.c (elf_symtab_read): Stop memory leak.
6007
90375a0e
PM
60082011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6009
6010 * nto-tdep.c (nto_target): Replace deprecated call to
6011 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6012
d07205c2
JK
60132011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6014
6015 Fix false GCC warning.
6016 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6017
1e718ff1
TJB
60182011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6019
6020 * breakpoint.c (update_watchpoint): Move code to change
6021 the enable state of breakpoint from here ...
6022 (do_enable_breakpoint): ... to here.
6023
35bef4fd
TT
60242011-04-26 Andrew Gontarek <andrewg@cray.com>
6025
78290264
PP
6026 * valprint.c (val_print_array_elements): Fixed poor performance
6027 of printing very large arrays with repeat_count_threshold set
6028 to unlimited. New comment.
35bef4fd 6029
38a714bb
TT
60302011-04-29 Tom Tromey <tromey@redhat.com>
6031
6032 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6033 (mi_parse): Likewise.
6034 * breakpoint.c (break_range_command): Use sizeof char*, not
6035 char**.
6036 (create_breakpoint): Likewise.
6037 (parse_breakpoint_sals): Likewise.
6038
eb73ad13
PA
60392011-04-29 Pedro Alves <pedro@codesourcery.com>
6040
6041 * linux-nat.c (linux_child_remove_fork_catchpoint)
6042 (linux_child_remove_vfork_catchpoint)
6043 (linux_child_remove_exec_catchpoint): New functions.
6044 (linux_target_install_ops): Install them.
6045
d65aec65
PM
60462011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6047
6048 PR mi/12531
6049
6050 * varobj.c (install_default_visualizer): Do not install a
6051 visualizer if the varobj is CPLUS_FAKE_CHILD.
6052 (construct_visualizer): Likewise.
6053
165195f4
JK
60542011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6055
6056 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6057 case insensitive comparison.
6058
30852783
UW
60592011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6060
6061 * infrun.c (proceed): Revert previous change.
6062 (resume): Instead, handle the case of signal delivery while stepping
6063 off a breakpoint location here, and only if software single-stepping
6064 is used. Handle nested signals.
6065
7ff120b4
YQ
60662011-04-28 Yao Qi <yao@codesourcery.com>
6067
6068 * arm-tdep.c (copy_unmodified): Rename to ...
6069 (arm_copy_unmodified): .. this. New.
6070 (copy_preload): Move common part to ...
6071 (install_preload): .. this. New.
6072 (arm_copy_preload): New.
6073 (copy_preload_reg): Move common part to ...
6074 (install_preload_reg): ... this. New.
6075 (arm_copy_preload_reg): New.
6076 (copy_b_bl_blx): Move common part to ...
6077 (install_b_bl_blx): .. this. New.
6078 (arm_copy_b_bl_blx): New.
6079 (copy_bx_blx_reg): Move common part to ...
6080 (install_bx_blx_reg): ... this. New.
6081 (arm_copy_bx_blx_reg): New.
6082 (copy_alu_reg): Move common part to ...
6083 (install_alu_reg): ... this. New.
6084 (arm_copy_alu_reg): New.
6085 (copy_alu_shifted_reg): Move common part to ...
6086 (install_alu_shifted_reg): ... this. New.
6087 (copy_ldr_str_ldrb_strb): Move common part to ...
6088 (install_ldr_str_ldrb_strb): ... this. New.
6089 (arm_copy_ldr_str_ldrb_strb): New.
6090 (copy_copro_load_store): Move some common part to ...
6091 (install_copy_copro_load_store): ... this. New.
6092 (arm_copy_copro_load_store): New.
6093 (copy_svc): Delete.
6094 (arm_copy_svc): Renamed from copy_svc.
6095 (copy_undef): Delete.
6096 (arm_copy_undef): Renamed from copy_undef.
6097 (decode_ext_reg_ld_st): Delete.
6098 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6099 (decode_svc_copro): Delete.
6100 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6101 (copy_copro_load_store, copy_alu_imm): update callers.
6102 (copy_extra_ld_st, copy_block_xfer): Likewise.
6103 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6104 (decode_miscellaneous, decode_dp_misc): Likewise.
6105 (decode_ld_st_word_ubyte, decode_media): Likewise.
6106 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6107 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6108 (decode_unconditional, decode_miscellaneous): Likewise.
6109 (decode_media, decode_b_bl_ldmstm): Likewise.
6110 (arm_process_displaced_insn): Likewise..
6111 (decode_misc_memhint_neon): Delete.
6112 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6113 (decode_miscellaneous): Delete.
6114 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6115 (decode_dp_misc): Delete.
6116 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6117 (decode_ld_st_word_ubyte): Delete.
6118 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6119 (decode_media): Delete.
6120 (arm_decode_media): Renamed from decode_media.
6121 (decode_b_bl_ldmstm): Delete.
6122 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6123 (decode_ext_reg_ld_st): Delete.
6124 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6125 (decode_unconditional): Delete.
6126 (arm_decode_unconditional): Renamed from decode_unconditional.
6127
559a7a62
JK
61282011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6129
6130 Case insensitive lookups implementation.
6131 * dwarf2read.c: Include ctype.h.
6132 (struct mapped_index): New field version.
6133 (mapped_index_string_hash): New parameter index_version. New comment
6134 for it. Call tolower appropriately.
6135 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6136 Choose the right index version for mapped_index_string_hash.
6137 (dwarf2_read_index): Support also the index version 5. Initialize the
6138 new struct mapped_index field version.
6139 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6140 (find_slot): Explain the version needs. Pass INT_MAX for the new
6141 parameter.
6142 (write_psymtabs_to_index): Produce version 5.
6143 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6144 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6145 * psymtab.c (lookup_partial_symbol): Find the
6146 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6147 entries.
6148 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6149 NAME lowercasing.
6150 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6151 (completion_list_add_name): New variable ncmp, initialize it, use it.
6152 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6153 * utils.c (strcmp_iw): Support case_sensitive_off.
6154 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6155 New function comment part. New variables saved_string1,
6156 saved_string2 and case_pass. Add a proper second pass.
6157
681bf369
JK
61582011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6159
6160 Replace re_comp/re_exec by regcomp/regexec.
6161 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6162 (search_symbols_name_matches): Use them, use regexec.
6163 (search_symbols): New variable retval_chain, adjust the use of
6164 old_chain against it. Replace re_comp by regcomp. Use the new struct
6165 search_symbols_data fields, use regexec instead of re_exec.
6166
b11b1f88
JK
61672011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6168
6169 Format the code for the next patch.
6170 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6171 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6172 New variables c1 and c2.
6173
2484c66b
UW
61742011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6175
6176 * infrun.c (proceed): Do not single-step into signal delivery
6177 when stepping off a breakpoint location.
6178 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6179 (insert_step_resume_breakpoint_at_caller): Likewise.
6180 (insert_step_resume_breakpoint_at_sal): Likewise.
6181 (insert_longjmp_resume_breakpoint): Likewise.
6182
47423772
YQ
61832011-04-27 Yao Qi <yao@codesourcery.com>
6184
6185 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6186
13bdd2e7
JB
61872011-04-27 Joel Brobecker <brobecker@adacore.com>
6188
6189 * procfs.c (procfs_pass_signals): Fix advance declaration.
6190
2455069d
UW
61912011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6192
6193 * target.h (struct target_ops): Remove to_notice_signals;
6194 add to_pass_signals.
6195 (target_notice_signals): Remove.
6196 (target_pass_signals): Add prototype.
6197 * target.c (update_current_target): Remove to_notice_signals;
6198 mention to_pass_signals.
6199 (target_pass_signals): New function.
6200 (debug_to_notice_signals): Remove.
6201 (setup_target_debug): Do not install debug_to_notice_signals.
6202
6203 * infrun.c (signal_pass): New global.
6204 (resume): Call target_pass_signals.
6205 (handle_inferior_event): Report all signals while stepping over
6206 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6207 are re-inserted when stepping over a signal handler.
6208 (signal_cache_update): New function.
6209 (signal_stop_update): Call it.
6210 (signal_print_update): Likewise.
6211 (signal_pass_update): Likewise.
6212 (handle_command): Call signal_cache_update and target_pass_signals
6213 instead of target_notice_signals.
6214 (_initialize_infrun): Initialize signal_pass.
6215
6216 * linux-nat.c (pass_mask): New global.
6217 (linux_nat_pass_signals): New function.
6218 (linux_nat_create_inferior): Report all signals initially.
6219 (linux_nat_attach): Likewise.
6220 (linux_nat_resume): Use pass_mask to decide whether to directly
6221 handle an inferior signal.
6222 (linux_nat_wait_1): Likewise.
6223 (linux_nat_add_target): Install to_pass_signals callback.
6224
6225 * nto-procfs.c (notice_signals): Remove.
6226 (procfs_resume): Do not call notice_signals.
6227 (procfs_notice_signals): Remove.
6228 (procfs_pass_signals): New function.
6229 (init_procfs_ops): Install to_pass_signals callback instead of
6230 to_notice_signals callback.
6231 (_initialize_procfs): Report all signals initially.
6232
6233 * procfs.c (procfs_notice_signals): Remove.
6234 (procfs_pass_signals): New function.
6235 (procfs_target): Install to_pass_signals callback instead of
6236 to_notice_signals callback.
6237 (register_gdb_signals): Remove.
6238 (procfs_debug_inferior): Report all signals initially.
6239 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6240
6241 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6242 parameters; use them instead of calling signal_..._state routines.
6243 (remote_notice_signals): Remove.
6244 (remote_start_remote): Report all signals initially.
6245 (remote_resume): Do not call remote_pass_signals.
6246 (_initialize_remote): Install to_pass_signals callback instead of
6247 to_notice_signals callback.
6248
46c6471b
PA
62492011-04-27 Pedro Alves <pedro@codesourcery.com>
6250
6251 * breakpoint.c (user_settable_breakpoint): Delete.
6252 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6253 (delete_command): Check user_breakpoint_p instead of looking at
6254 the breakpoint's type.
6255 (disable_command): Ditto.
6256 (enable_command): Ditto.
6257 (delete_trace_command): Use user_breakpoint_p instead of looking
6258 at the breakpoint number directly. When checking if there are
6259 user visible tracepoints, in order to know whether to ask the user
6260 for confirmation, check whether the breakpoint is actually a
6261 tracepoint.
6262
f6d90398
VP
62632011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6264
6265 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6266 compilation.
6267
8d3788bd
VP
62682011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6269
6270 MI breakpoint notifications.
6271
f33edef8
PP
6272 * annotate.c (breakpoint_changed): Adjust parameter type.
6273 * breakpoint.c (set_breakpoint_condition): Adjust to change
6274 in breakpoint_modified type.
6275 (breakpoint_set_commands): Likewise.
6276 (do_map_commands_command): Likewise.
6277 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6278 changed after bumping hit count.
6279 (bpstat_stop_status): Likewise.
6280 (print_one_breakpoint_location): Don't wrap in tuple here.
6281 (print_one_breakpoint): Always print individual locations.
6282 For locations, use unnamed tuple.
6283 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6284 has changed.
6285 (create_catchpoint, create_syscall_event_catchpoint): Call
6286 breakpoint_created obsever.
6287 (mention): Don't call breakpoint_created observer.
6288 (create_breakpoint_sal): Call breakpoint_created observer.
6289 (create_breakpoint, watch_command_1): Likewise.
6290 (create_ada_exception_breakpoint): Likewise.
6291 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6292 (locations_are_equal): New.
6293 (update_breakpoint_locations): If locations were changed, notify.
6294 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6295 Call breakpoint_modified observer.
6296
6297 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6298 (mi_cmd_break_insert): Don't set observers for modify and delete.
6299 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6300 (mi_breakpoint_created, mi_breakpoint_deleted)
6301 (mi_breakpoint_modified): New.
6302 (mi_interpreter_init): Hook the above.
6303 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6304 while -break-* commands are executing.
6305 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6306 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6307 (mi_redirect): New.
6308 (mi_ui_out_impl): Hook in mi_redirect.
6309 (mi_field_skip): True to the name, skip the field, don't output
6310 a field with an empty value.
6311
6312 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6313 (gdbpy_breakpoint_deleted): Adjust.
6314 * tui/tui-hooks.c (tui_event_create_breakpoint)
6315 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6316
a8f42b45
UW
63172011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6318
6319 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6320 (procfs_remove_hw_watchpoint): Likewise.
6321
57e12211
TT
63222011-04-26 Michael Walle <michael@walle.cc>
6323
6324 * remote.c (remote_start_remote): Ack packet after sending the
6325 interrupt sequence.
6326
af96c192
YQ
63272011-04-26 Yao Qi <yao@codesourcery.com>
6328
f33edef8
PP
6329 * linux-nat.c: Move common macros to ...
6330 Include linux-ptrace.h.
6331 * common/linux-ptrace.h: ... here. New.
af96c192 6332
3e03848b
JK
63332011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6334
6335 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6336 !objfile_has_partial_symbols. New comment.
6337 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6338 SYM_READ_PSYMBOLS is not present. Extend the comment.
6339 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6340
1ae0d051
JK
63412011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 * defs.h (ENUM_BITFIELD): Remove.
6344
03f2bd59
JK
63452011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6346 Eli Zaretskii <eliz@gnu.org>
6347
6348 * NEWS: Document the new gdbserver --once option.
6349
4161fbb0
JZ
63502011-04-21 Jie Zhang <jzhang918@gmail.com>
6351
6352 * MAINTAINERS: Update my email address.
6353
bcb28afc
PM
63542011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6355
6356 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6357 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6358 function call if __STDC_ISO_10646__ macro is defined.
6359 (intermediate_encoding): New prototype.
6360 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6361 to generate compile time error for unsupported gdb_wchar_t size.
6362 (ENDIAN_SUFFIX): New macro.
6363 (intermediate_encoding): New function.
6364
7b08b9eb
JK
63652011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6366
6367 * ada-lang.c (struct add_partial_datum): Update the comment for
6368 expand_partial_symbol_name.
6369 (ada_add_partial_symbol_completions): Rename to ...
6370 (ada_expand_partial_symbol_name): ... here, change return type, update
6371 function comment, call symbol_completion_match instead of
6372 symbol_completion_add.
6373 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6374 and ada_expand_partial_symbol_name.
6375 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6376 FILE_MATCHER.
6377 (dw2_map_symbol_names): Remove.
6378 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6379 * psymtab.c (map_symbol_names_psymtab): Remove.
6380 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6381 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6382 order.
6383 (psym_functions): Unlist map_symbol_names_psymtab.
6384 (map_partial_symbol_names): Rename to ...
6385 (expand_partial_symbol_names): ... here, change the FUN type, call
6386 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6387 * psymtab.h (map_partial_symbol_names): Rename to ...
6388 (expand_partial_symbol_names): ... here, change the FUN type.
6389 * symfile.h (struct quick_symbol_functions): Update the description of
6390 expand_symtabs_matching. Remove map_symbol_names.
6391 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6392 (struct add_name_data): Update the comment for
6393 expand_partial_symbol_name.
6394 (add_partial_symbol_name): Rename to ...
6395 (expand_partial_symbol_name): ... here. Replace
6396 completion_list_add_name call by strncmp.
6397 (default_make_symbol_completion_list_break_on): Use now
6398 expand_partial_symbol_names and expand_partial_symbol_name.
6399 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6400
90476074
TT
64012011-04-20 Tom Tromey <tromey@redhat.com>
6402
6403 * dwarf2read.c (save_gdb_index_command): Replace format
6404 documentation with a pointer to the manual.
6405
c21236dc
PA
64062011-04-20 Pedro Alves <pedro@codesourcery.com>
6407
6408 * regcache.c: Include remote.h.
6409 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6410 (regcache_dump): Handle regcache_dump_remote.
6411 (maintenance_print_remote_registers): New function.
6412 (_initialize_regcache): Install "maint print remote-registers"
6413 command.
6414 * remote.c (map_regcache_remote_table): New function, factored out
6415 from ...
6416 (init_remote_state): ... here.
6417 (remote_register_number_and_offset): New.
6418 * remote.h (remote_register_number_and_offset): Declare.
6419
b78974c3
PA
64202011-04-20 Pedro Alves <pedro@codesourcery.com>
6421
6422 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6423 null_ptid, assume and allow a NULL address space, instead of
6424 asking the target for the ptid's address space.
6425 * infrun.c (ptid_is_pid): Remove assertion.
6426
7a9dd1b2
TT
64272011-04-19 Tom Tromey <tromey@redhat.com>
6428
6429 * windows-tdep.c (windows_xfer_shared_library):
6430 * windows-nat.c (get_module_name, windows_make_so):
6431 * v850-tdep.c (v850_handle_pushm):
6432 * utils.c (null_cleanup, gdb_realpath):
6433 * ui-out.c (get_next_header):
6434 * tracepoint.c (clear_traceframe_info):
6435 * symtab.c (lookup_symtab):
6436 * serial.h (struct serial_ops):
6437 * mipsread.c (read_alphacoff_dynamic_symtab):
6438 * infcmd.c (print_return_value):
6439 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6440 * f-exp.y (parse_number):
6441 * exceptions.c (catch_exceptions):
6442 * dummy-frame.c (dummy_frame_this_id):
6443 * defs.h (struct cleanup):
6444 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6445 * arm-tdep.c (arm_push_dummy_call):
6446 * amd64-tdep.h (amd64_collect_xsave):
6447 * amd64-tdep.c (amd64_collect_xsave):
6448 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6449 * README (typing): Remove duplicate words.
6450 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6451 * infrun.c (siginfo_value_read): Fix typo.
6452 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6453 * top.c (source_line_number): Add comma.
6454
9941e0c5
MK
64552011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6456
6457 * thread.c (any_live_thread_of_process): Prioritize threads
6458 that are not executing.
6459 * gdbthread.h (any_live_thread_of_process): Update comment
6460 as per above change.
6461
ed4b0e6a
AS
64622011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6463
6464 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6465 (scan_xcoff_symtab): Likewise.
6466
9b13a2db
PM
64672011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6468
6469 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6470 inside if clause.
6471
1c6e1b0d
PM
64722011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6473 Pedro Alves <pedro@codesourcery.com>
6474
6475 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6476 variables to simplify code and avoid == operator at end of
6477 line as this is against GNU coding standards.
6478
74de0234
PM
64792011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6480
6481 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6482 lm_name to name_lm to avoid conflict with lm_name function.
6483
b23518f0
PM
64842011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6485
6486 ARI fixes: Use only lowercase function name for static functions.
6487 * nto-tdep.c (LM_ADDR): Rename to...
6488 (lm_addr): New function name.
6489 (nto_relocate_section_addresses): Adapt to change above.
6490 * solib-sunos.c (LM_ADDR): Rename to...
6491 (lm_addr): New function name.
6492 (LM_NEXT): Rename to...
6493 (lm_next): New function name.
6494 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6495 function name changes above.
6496 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6497 (lm_addr_from_link_map): New function name.
6498 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6499 (has_lm_dynamic_from_link_map): New function name.
6500 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6501 (lm_dynamic_from_link_map): New function name.
6502 (LM_ADDR_CHECK): Rename to...
6503 (lm_addr_check): New function name.
6504 (LM_NEXT): Rename to...
6505 (lm_next): New function name.
6506 (LM_PREV): Rename to...
6507 (lm_prev): New function name.
6508 (LM_NAME): Rename to...
6509 (lm_name): New function name.
6510 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6511 (ignore_first_link_map_entry): New function name.
6512 (svr4_keep_data_in_core): Adapt to function name changes above.
6513 (svr4_current_sos): Likewise.
6514 (enable_break): Likewise.
6515 (svr4_relocate_section_addresses): Likewise.
6516
1448a0a2
PM
65172011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6518
6519 ARI cleanup.
6520 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6521 sprintf. Simplify code and avoid loosing memory.
6522 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6523 (call0_frame_cache): Remove && operator from end of line.
6524
02835898
JK
65252011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6526
6527 Fix libraries displacement if they change whether they were prelinked.
6528 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6529 does not match. Comment why.
6530
9a845ea2
JK
65312011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6532
6533 * corelow.c: Include wrapper.h.
6534 (core_open): Call now gdb_target_find_new_threads.
6535 * wrapper.c: Include target.h.
6536 (gdb_target_find_new_threads): New.
6537 * wrapper.h (gdb_target_find_new_threads): New declaration.
6538
254f582e
JK
65392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6542 even if !TARGET_HAS_EXECUTION.
6543
63524580
JK
65442011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6545
6546 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6547 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6548 bfd_get_synthetic_symtab.
6549 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6550 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6551 parameter parent, remove the call to add_separate_debug_objfile.
6552 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6553 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6554 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6555 parent, new comment for it, call add_separate_debug_objfile for it.
6556 (symbol_file_add_separate): Pass objfile as the parameter parent,
6557 remove the call to add_separate_debug_objfile.
6558 (symbol_file_add_from_bfd): New parameter parent, pass it.
6559 (symbol_file_add): Pass NULL to the new parameter parent.
6560 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6561
90359a16
JK
65622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6563
6564 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6565 BSF_SYNTHETIC.
6566
626e7282
JK
65672011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6568
6569 Fix Python access to inlined frames.
6570 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6571 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6572
cf31e6f9
TT
65732011-04-15 Tom Tromey <tromey@redhat.com>
6574
6575 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6576
c8d895f1
GB
65772011-04-15 Gary Benson <gbenson@redhat.com>
6578
6579 * MAINTAINERS: Add myself to write-after-approval section.
6580
56a9aa1d
MF
65812011-04-14 Mike Frysinger <vapier@gentoo.org>
6582
6583 * remote-sim.c (sim_command_completer): New function.
6584 (_initialize_remote_sim): Set completer to sim_command_completer.
6585
ba770c9c
TJB
65862011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6587
6588 * breakpoint.c (print_exception_catchpoint): Rename to ...
6589 (print_it_exception_catchpoint): ... this.
6590 (gnu_v3_exception_catchpoint_ops): Update with new name
6591 for print_it_exception_catchpoint.
6592
51bf2553
EBM
65932011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6594
6595 * MAINTAINERS: Add myself for write after approval privileges.
6596
d242658c
MP
65972011-04-13 Marek Polacek <mpolacek@redhat.com>
6598
6599 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6600
4a4106ca
TJB
66012011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6602
6603 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6604
26063d49
TJB
66052011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6606
6607 * breakpoint.c (save_breakpoints): Verify whether
6608 breakpoint_ops.print_recreate is defined before calling it.
6609
7782b183
GB
66102011-04-11 Gary Benson <gbenson@redhat.com>
6611
6612 Fix failure with --enable-maintainer-mode.
6613 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6614
e8930875
JK
66152011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6616
6617 Code cleanup.
6618 * symtab.c (search_symbols): Reorder the KIND description in the
6619 function comment. Remove the unused 4th element of types, types2,
6620 types3 and types4. New gdb_assert on KIND.
6621 (symtab_symbol_info): Remove the unused 4th element of classnames.
6622 New gdb_assert on KIND.
6623 * symtab.h (enum search_domain): New warning in the enum comment.
6624 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6625 TYPES_DOMAIN.
6626
b4f2f049
JK
66272011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6628
6629 Fix crash of gdb save-index on a STABS file.
6630 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6631 PSYMTABS_ADDRMAP.
6632
60d5a603
JK
66332011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6634
6635 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6636 * dwarf2read.c: Include ctype.h.
6637 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6638 functions.
6639 (dwarf2_add_field): Fix new_field->accessibility by calling
6640 dwarf2_default_access_attribute. Restructure setting accessibility
6641 vs. virtuality.
6642 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6643 is_private and is_protected by calling
6644 dwarf2_default_access_attribute.
6645
e0f68161
KB
66462011-04-08 Kevin Buettner <kevinb@redhat.com>
6647
6648 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6649 to the initialization.
6650
2e1aae43
SE
66512011-04-08 Steve Ellcey <sje@cup.hp.com>
6652
6653 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6654 initalization.
6655
c6ca3dab
PM
66562011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6657
6658 Remove support for old Cygwin 1.5 versions.
6659 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6660 function on old Cygwin version.
6661 * windows-nat.c: Remove cygwin version check and always define
6662 __USEWIDE for Cygwin compilation.
6663
bd18283a
YQ
66642011-04-07 Yao Qi <yao@codesourcery.com>
6665
6666 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6667 and TO.
6668 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6669 (arm_copy_svc): Remove parameters INSN and TO.
6670 (decode_svc_copro): Update caller.
6671 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6672 from function pointer `copy_svc_os'.
6673
8c8dba6d
YQ
66742011-04-07 Yao Qi <yao@codesourcery.com>
6675
6676 * arm-tdep.c (cleanup_branch): Set a correct return address in
6677 LR for ARM and Thumb.
6678
59d7bcaf
JK
66792011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6680
6681 Code cleanup.
6682 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6683 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6684 in the function comment, a new note on values compatibility.
6685 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6686 * symtab.h (SYMBOL_HASH_NEXT): New.
6687
e7db58ea
TJB
66882011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6689
6690 * ppc-linux-nat.c (check_condition): Add len output parameter.
6691 Set it based on the memory region referenced in the condition
6692 expression. Update all callers.
6693
9f743ef6
JK
66942011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6695
6696 Fix crash regression on systems featuring .gdb_index.
6697 * objfiles.c (free_objfile): Move the
6698 forget_cached_source_info_for_objfile call earlier. Comment it.
6699 Extend the comment for objfile_free_data.
6700
9182c5bc
JK
67012011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6702
6703 Fix regression of displaying the debug format.
6704 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6705 subfile.
6706
04bd08de
TT
67072011-04-04 Tom Tromey <tromey@redhat.com>
6708
6709 * cli/cli-interp.c (struct captured_execute_command_args):
6710 Remove.
6711 (do_captured_execute_command): Remove.
6712 (safe_execute_command): Use TRY_CATCH.
6713 * cli/cli-script.c (struct wrapped_read_command_file_args):
6714 Remove.
6715 (wrapped_read_command_file): Remove.
6716 (script_from_file): Use TRY_CATCH.
6717 * exceptions.c (catch_exception): Remove.
6718 * exceptions.h (catch_exception): Remove.
6719 (deprecated_throw_reason): Update comment.
6720 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6721 argument to 'context'.
6722 (mi_execute_command): Use TRY_CATCH.
6723 * remote.c (struct start_remote_args): Remove.
6724 (remote_start_remote): Update; change arguments.
6725 (remote_open_1): Use TRY_CATCH.
6726
58438ac1
TT
67272011-04-04 Tom Tromey <tromey@redhat.com>
6728
6729 * tracepoint.c (scope_info): Update.
6730 * symtab.c (decode_line_spec): Update.
6731 * python/python.c (gdbpy_decode_line): Update.
6732 * linespec.h (decode_line_1): Update.
6733 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6734 (decode_compound, find_method, symtab_from_filename)
6735 (decode_variable): Likewise.
6736 * cli/cli-cmds.c (edit_command): Update.
6737 (list_command): Update.
6738 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6739 argument.
6740 (create_breakpoint): Update.
6741 (until_break_command): Update.
6742 (addr_string_to_sals): Update.
6743 (decode_line_spec_1): Update.
6744
b78a6381
TT
67452011-04-04 Tom Tromey <tromey@redhat.com>
6746
6747 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6748 (do_captured_parse_breakpoint): Remove.
6749 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6750 Use TRY_CATCH directly.
6751
00174a86
TT
67522011-04-04 Tom Tromey <tromey@redhat.com>
6753
6754 * symtab.h (free_symtab): Remove.
6755 (forget_cached_source_info_for_objfile): Declare.
6756 * symmisc.c (free_symtab): Remove.
6757 * source.c (forget_cached_source_info_for_objfile): New function.
6758 (forget_cached_source_info): Use it.
6759 * objfiles.c (free_objfile): Simplify check before calling
6760 clear_current_source_symtab_and_line. Call
6761 forget_cached_source_info_for_objfile.
6762
30cc903e
TT
67632011-04-04 Tom Tromey <tromey@redhat.com>
6764
6765 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6766 (new_symtab): Don't set `free_code' on symtab.
6767 (new_linetable): Properly handle size==0.
6768 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6769 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6770 free_func.
6771 * jv-lang.c (struct jv_per_objfile_data): New.
6772 (jv_per_objfile_free): Free the data.
6773 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6774 (get_java_class_symtab): Set the `dict' field on the
6775 jv_per_objfile_data.
6776 (free_class_block): Remove.
6777 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6778 the symtab.
6779
0c2e6019
TT
67802011-04-04 Tom Tromey <tromey@redhat.com>
6781
6782 * symfile.c (reread_symbols): Update.
6783 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6784 field.
6785 * objfiles.c (allocate_objfile): Update.
6786 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6787 declare.
6788 * cp-namespace.c (lookup_symbol_file): Don't call
6789 lookup_possible_namespace_symbol.
6790 (initialize_namespace_symtab, get_possible_namespace_block)
6791 (free_namespace_block, cp_check_possible_namespace_symbols)
6792 (check_possible_namespace_symbols_loop)
6793 (check_one_possible_namespace_symbol)
6794 (lookup_possible_namespace_symbol): Remove.
6795 (maintenance_cplus_namespace): Replace with notice.
6796 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6797
554d387d
TT
67982011-04-04 Tom Tromey <tromey@redhat.com>
6799
6800 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6801 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6802 * symmisc.c (free_symtab): Don't free debugformat.
6803 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6804 (record_debugformat, record_producer): Document.
6805 * buildsym.c (end_symtab): Don't save debugformat and producer
6806 names on obstack.
6807 (end_symtab): Don't free debugformat and producer fields.
6808 (record_debugformat): Don't call xstrdup.
6809 (record_producer): Likewise.
6810
d4d4db8a
TT
68112011-04-04 Tom Tromey <tromey@redhat.com>
6812
6813 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6814 (source_line_charpos, source_charpos_line): Remove.
6815
8903c50d
TT
68162011-04-04 Tom Tromey <tromey@redhat.com>
6817
6818 * symtab.h (domain_enum): Split in two...
6819 (enum search_domain): New.
6820 (search_symbols): Update.
6821 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6822 redundant declarations.
6823 (search_symbols): Change 'kind' argument to search_domain.
6824 Update.
6825 (print_symbol_info): Likewise.
6826 (symtab_symbol_info): Likewise.
6827 * symfile.h (struct quick_symbol_functions)
6828 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6829 <expand_symtabs_matching>: Likewise.
6830 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6831 (expand_symtabs_matching_via_partial): Update.
6832 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6833 (dw2_expand_symtabs_for_function): Update.
6834 * block.h: Moved anonymous enum...
6835 * defs.h (enum block_enum): ... here. Now named.
6836
d9351f5f 68372011-04-03 Joel Brobecker <brobecker@adacore.com>
6838
6839 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6840 * version.in: Bump version to 7.3.50.20110403-cvs.
6841
d6e00af6
JB
68422011-04-03 Joel Brobecker <brobecker@adacore.com>
6843
6844 * NEWS: Create a new section for the next release branch.
6845 Rename the section of the current branch, now that it has
6846 been cut.
6847
2b9e5ea6
UW
68482011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6849
6850 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6851 for "fpscr" in target description.
6852
0cf03b49
JK
68532011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6854
6855 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6856 initialize it. Delay HASH initialization. Strip the part after open
6857 parenthesis for languages with qualifiers. Call do_cleanups.
6858
5d901a73
TT
68592011-04-01 Tom Tromey <tromey@redhat.com>
6860
6861 * utils.c (report_command_stats): Don't print `-' for negative
6862 number.
6863
b0dd7688
JB
68642011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6865
6866 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6867 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6868 typedefs.
6869
956a9fb9
JB
68702011-04-01 Joel Brobecker <brobecker@adacore.com>
6871
6872 * breakpoint.h (bpdisp_text): Add declaration.
6873 * breakpoint.c (bpdisp_text): Make non-static.
6874 * ada-lang.c: #include "mi/mi-common.h".
6875 (print_it_exception): Rewrite to improve GDB/MI output.
6876
3352110b
PA
68772011-04-01 Pedro Alves <pedro@codesourcery.com>
6878
6879 * arm-tdep.h (struct address_space): Add forward declaration.
6880
18819fa6
UW
68812011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6882
6883 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6884 * arm-tdep.c (arm_override_mode): New global.
6885 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6886 execution mode heuristics.
6887 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6888 second single-step breakpoint if needed, using
6889 arm_insert_single_step_breakpoint.
6890 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6891 ARM execution mode, do not call thumb_get_next_pc_raw.
6892 (arm_get_next_pc): Encode execution mode in return value. Call
6893 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6894 (arm_insert_single_step_breakpoint): New function.
6895 (arm_software_single_step): Call it.
6896 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6897 argument to return execution mode of sigreturn target.
6898 (arm_linux_syscall_next_pc): Use it.
6899 (arm_linux_copy_svc): Update call.
6900 (arm_linux_software_single_step): Call
6901 arm_insert_single_step_breakpoint.
6902
a6e293d1
JK
69032011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6904
6905 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6906 the comment.
6907
a4c8e806
TT
69082011-03-31 Tom Tromey <tromey@redhat.com>
6909
6910 * varobj.c (update_dynamic_varobj_children): Properly handle
6911 errors from iterator.
6912
df5c6c50
JK
69132011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6916 struct linkage name twice.
6917
1dae3efc
TT
69182011-03-31 Tom Tromey <tromey@redhat.com>
6919
6920 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6921 missing ">" to message.
6922
f4f7ab05
TT
69232011-03-31 Tom Tromey <tromey@redhat.com>
6924
6925 * varobj.c (instantiate_pretty_printer): Remove duplicate
6926 'return'.
6927
fcf250e2
UW
69282011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6929
6930 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6931 if neither saved value nor register available (e.g. signal frame).
6932
ee6436e3
TJB
69332011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6934
6935 * macroexp.c (expand): Avoid uninitialized variable
6936 compiler warning.
6937
423f41a5
TJB
69382011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6939
6940 * breakpoint.c (break_range_command): Fix typo in comment.
6941
f1310107
TJB
69422011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6943 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6944
6945 Implement support for PowerPC BookE ranged breakpoints.
6946 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6947 * breakpoint.h (struct bp_target_info) <length>: New member
6948 variable.
6949 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6950 instead of struct breakpoint as argument, and also add ASPACE
6951 and BP_ADDR arguments. Update all callers.
6952 (struct breakpoint_ops) <print_one_detail>: New method.
6953 (struct breakpoint) <addr_string_range_end>: New member variable.
6954 * breakpoint.c (breakpoint_location_address_match): Add function
6955 prototype.
6956 (insert_bp_location): Set bl->target_info.length.
6957 (breakpoint_here_p): Call breakpoint_location_address_match.
6958 (moribund_breakpoint_here_p): Likewise.
6959 (regular_breakpoint_inserted_here_p): Likewise.
6960 (breakpoint_thread_match): Likewise.
6961 (bpstat_stop_status): Likewise.
6962 (bpstat_check_location): Move call to
6963 breakpoint_ops.breakpoint_hit to the top.
6964 (print_one_breakpoint_location): Call
6965 breakpoint_ops.print_one_detail if available.
6966 (breakpoint_address_match_range): New function.
6967 (breakpoint_location_address_match): Likewise.
6968 (breakpoint_locations_match): Compare the length field of the
6969 locations too.
6970 (hw_breakpoint_used_count): Count resources used by all locations
6971 in a breakpoint, and use breakpoint_ops.resources_needed if
6972 available.
6973 (breakpoint_hit_ranged_breakpoint): New function.
6974 (resources_needed_ranged_breakpoint): Likewise.
6975 (print_it_ranged_breakpoint): Likewise.
6976 (print_one_ranged_breakpoint): Likewise.
6977 (print_one_detail_ranged_breakpoint): Likewise.
6978 (print_mention_ranged_breakpoint): Likewise.
6979 (print_recreate_ranged_breakpoint): Likewise.
6980 (ranged_breakpoint_ops): New structure.
6981 (find_breakpoint_range_end): New function.
6982 (break_range_command): Likewise.
6983 (delete_breakpoint): Free addr_string_range_end.
6984 (update_breakpoint_locations): Add SALS_END argument. Update
6985 all callers. Calculate breakpoint length if a non-zero SALS_END
6986 is given. Call breakpoint_locations_match instead of
6987 breakpoint_address_match.
6988 (reset_breakpoint): Find SaL of the end of the range if B is a
6989 ranged breakpoint.
6990 (_initialize_breakpoint): Register break-range command.
6991 * defs.h (print_core_address): Add function prototype.
6992 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6993 function.
6994 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6995 (ppc_linux_remove_hw_breakpoint): Likewise.
6996 (_initialize_ppc_linux_nat): Initialize
6997 to_ranged_break_num_registers.
6998 * target.c (update_current_target): Add comment about
6999 to_ranged_break_num_registers.
7000 (target_ranged_break_num_registers): New function.
7001 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7002 New method.
7003 (target_ranged_break_num_registers): Add function prototype.
7004 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7005 * utils.c (print_core_address): ... here.
7006
02d20e4a
UW
70072011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7008
7009 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7010 variable compiler warning.
7011
ef23e705
TJB
70122011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7013
7014 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7015 code from here ...
7016 (re_set_breakpoint): ... to here ...
7017 (addr_string_to_sals): ... and here.
7018
311e6ab3
PM
70192011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7020
7021 * Makefile.in (SFILES): Add missing C sources.
7022 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7023 Add missing headers.
7024
acd1d99c
MF
70252011-03-29 Mike Frysinger <vapier@gentoo.org>
7026
7027 * .gitignore: New file.
7028
66ee2731
MF
70292011-03-29 Mike Frysinger <vapier@gentoo.org>
7030
7031 * NEWS: Mention new cfi device simulation.
7032
53832f31
TT
70332011-03-29 Tom Tromey <tromey@redhat.com>
7034
7035 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7036 otherwise anonymous types.
7037 (dwarf2_name): Likewise.
7038 * valops.c (value_struct_elt_for_reference): Refine artificial
7039 type logic. Call error if j==-1.
7040
09b58708
JK
70412011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7042
7043 Fix false GCC warning.
7044 * infcall.c (find_function_addr): Initialize funaddr.
7045
6023c606
PM
70462011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7047
7048 Fix mingw compilation with --enable-targets=all.
7049 * remote-mips.c (gdb_usleep.h): Include header.
7050 (mips_enter_debug): Use gdb_usleep instead of sleep.
7051
0e30163f
JK
70522011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7053
7054 Support resolution of STT_GNU_IFUNC via breakpoints.
7055 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7056 bp_gnu_ifunc_resolver_return.
7057 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7058 the loop. Support bp_gnu_ifunc_resolver and
7059 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7060 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7061 breakpoints.
7062 (bptype_string, print_one_breakpoint_location): Support
7063 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7064 (user_settable_breakpoint): Return true also for
7065 bp_gnu_ifunc_resolver.
7066 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7067 bp_gnu_ifunc_resolver_return.
7068 (set_breakpoint_location_function): New parameter explicit_loc,
7069 describe it. Call find_pc_partial_function_gnu_ifunc with new
7070 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7071 EXPLICIT_LOC is not set.
7072 (set_raw_breakpoint): Set EXPLICIT_LOC for
7073 set_breakpoint_location_function.
7074 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7075 set_breakpoint_location_function.
7076 (mention): Support bp_gnu_ifunc_resolver and
7077 bp_gnu_ifunc_resolver_return.
7078 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7079 set_breakpoint_location_function.
7080 (update_breakpoint_locations): Remove static.
7081 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7082 bp_gnu_ifunc_resolver_return.
7083 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7084 bp_gnu_ifunc_resolver_return.
7085 (update_breakpoint_locations): New declaration.
7086 * elfread.c: Include gdbthread.h and regcache.h.
7087 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7088 functions.
7089 (elf_gnu_ifunc_fns): Install them.
7090 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7091 (stub_gnu_ifunc_resolver_return_stop): New functions.
7092 (stub_gnu_ifunc_fns): Install them.
7093 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7094 and gnu_ifunc_resolver_return_stop.
7095 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7096
07be84bf
JK
70972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7098
7099 STT_GNU_IFUNC reader implementation.
7100 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7101 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7102 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7103 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7104 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7105 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7106 (elf_gnu_ifunc_resolve_addr): New.
7107 (elf_symfile_read): Call elf_rel_plt_read.
7108 (elf_gnu_ifunc_fns): New.
7109 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7110 Install elf_gnu_ifunc_fns.
7111 * infcall.c (find_function_return_type): New function.
7112 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7113 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7114 (stub_gnu_ifunc_resolve_name): New functions.
7115 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7116 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7117 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7118
300f8e10
JK
71192011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 Code cleanup for later STT_GNU_IFUNC support.
7122 * infcall.c (find_function_addr): Remove variable code, use explicit
7123 dereferences for it. Move VALUE_TYPE initialization later.
7124
11c81455
JK
71252011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7126
7127 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7128 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7129 (clear_pc_function_cache): Clear it.
7130 (find_pc_partial_function): Rename to ...
7131 (find_pc_partial_function_gnu_ifunc): ... this function. New
7132 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7133 (find_pc_partial_function): New wrapper for this function.
7134 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7135
0875794a
JK
71362011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7137
7138 GDB internal type support for STT_GNU_IFUNC.
7139 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7140 (elf_symtab_read): Set mst_text_gnu_ifunc for
7141 BSF_GNU_INDIRECT_FUNCTION.
7142 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7143 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7144 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7145 nodebug_got_plt_symbol.
7146 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7147 (TYPE_GNU_IFUNC): New.
7148 (struct main_type): New field flag_gnu_ifunc.
7149 (struct builtin_type): New field builtin_func_func.
7150 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7151 nodebug_got_plt_symbol.
7152 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7153 (in_gnu_ifunc_stub): New.
7154 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7155 mst_text_gnu_ifunc.
7156 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7157 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7158 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7159 in_gnu_ifunc_stub.
7160 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7161 * symtab.c (search_symbols): Likewise.
7162 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7163 and mst_slot_got_plt.
7164 (in_gnu_ifunc_stub): New declaration.
7165
d0fb5eae
JK
71662011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7167
7168 Support a ring of related breakpoints.
7169 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7170 other functions, add gdb_assert.
7171 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7172 watchpoint_del_at_next_stop.
7173 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7174 (bpstat_stop_status): Handle ring in related_breakpoint.
7175 (set_raw_breakpoint_without_location): Initialize ring in
7176 related_breakpoint.
7177 (delete_breakpoint): Handle ring in related_breakpoint, use
7178 watchpoint_del_at_next_stop.
7179 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7180
9cded63f
TT
71812011-03-28 Tom Tromey <tromey@redhat.com>
7182
7183 PR symtab/12441:
7184 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7185 with `language_minimal'.
7186
467d42c4
UW
71872011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7188
7189 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7190 instead of checking for STT_ARM_TFUNC symbol type.
7191
62853458
TT
71922011-03-25 Tom Tromey <tromey@redhat.com>
7193
7194 * linespec.c (symbol_found): Restore line-based result for
7195 non-LOC_LABEL symbols.
7196
a7417d46
KT
71972011-03-25 Kai Tietz <ktietz@redhat.com>
7198
7199 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7200 instead of strcmp for comparison.
7201 (tui_source_is_displayed): Likewise.
7202 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7203
55f1336d
TT
72042011-03-24 Mark Wielaard <mjw@redhat.com>
7205
f33edef8
PP
7206 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7207 complaint.
7208 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7209 (find_partial_die_in_comp_unit): Likewise in comment.
7210 (read_attribute_value): Likewise.
7211 (lookup_die_type): Likewise.
7212 (dwarf_form_name): Likewise.
7213 (dump_die_shallow): Likewise.
7214 (follow_die_ref_or_sig): Likewise.
55f1336d 7215
9ef07c8c
TT
72162011-03-24 Tom Tromey <tromey@redhat.com>
7217
7218 PR breakpoints/11816:
7219 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7220 (decode_compound): Update.
7221 (find_function_symbol): New function.
7222 (decode_dollar): Update.
7223 (decode_label): Add 'function_symbol' parameter. Handle
7224 function-relative labels.
7225 (decode_variable): Update.
7226 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7227 not its line. Set `special_display' and canonical name for
7228 labels.
7229
56435ebe
TT
72302011-03-24 Tom Tromey <tromey@redhat.com>
7231
7232 * linespec.h (struct linespec_result) <special_display>: New
7233 field.
7234 * breakpoint.h (struct breakpoint) <display_canonical>: New
7235 field.
7236 * breakpoint.c (print_breakpoint_location): Respect
7237 display_canonical.
7238 (create_breakpoint_sal): Add 'display_canonical' parameter.
7239 (create_breakpoints_sal): Update.
7240 (create_breakpoint): Update.
7241
7efd8fc2
TT
72422011-03-24 Tom Tromey <tromey@redhat.com>
7243
7244 * symtab.c (decode_line_spec): Update.
7245 * linespec.c (build_canonical_line_spec): Change type of
7246 'canonical'.
7247 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7248 (find_method, decode_all_digits, decode_dollar, decode_label)
7249 (symbol_found): Likewise.
7250 (init_linespec_result): New function.
7251 * breakpoint.c (struct captured_parse_breakpoint_args)
7252 <canonical_p>: New field, replaces addr_string_p.
7253 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7254 'addr_string'.
7255 (parse_breakpoint_sals): Likewise.
7256 (do_captured_parse_breakpoint): Update.
7257 (create_breakpoint): Use struct linespec_result.
7258 (until_break_command): Update.
7259 (breakpoint_re_set_one): Update.
7260 (decode_line_spec_1): Update.
7261 * linespec.h (struct linespec_result): New.
7262 (init_linespec_result): Declare.
7263
788c8b10
PA
72642011-03-23 Pedro Alves <pedro@codesourcery.com>
7265
7266 * regcache.c (regcache_raw_read): If the target didn't supply a
7267 given raw register, mark it as unavailable.
7268
0ba1096a
KT
72692011-03-23 Kai Tietz <ktietz@redhat.com>
7270
7271 * breakpoint.c (clear_command): Use filename_cmp
7272 instead of strcmp for comparison.
7273 * buildsym.c (watch_main_source_file_lossage): Likewise.
7274 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7275 checking just for slash.
7276 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7277 strrchr and filename_cmp instead of strcmp for filenames.
7278 (add_old_header_file): Use filename_cmp
7279 instead of strcmp for comparison.
7280 * exec.c (exec_set_section_address): Likewise.
7281 * macrotab.c (macro_lookup_inclusion): Likewise.
7282 (macro_lookup_inclusion): Likewise.
7283 * elfread.c (_initialize_elfread): Likewise.
7284 (elfstab_offset_sections): Likewise.
7285 (elfstab_offset_sections): Use lbasename instead of
7286 strrchr.
7287 * mdebugread.c (parse_partial_symbols): Likewise.
7288 (arse_partial_symbols): Use filename_(n)cmp instead of
7289 str(n)cmp for comparison.
7290 * minsyms.c (lookup_minimal_symbol): Likewise.
7291 * psymtab.c (read_psymtabs_with_filename): Likewise.
7292 * solib.c (solib_read_symbols): Likewise.
7293 (reload_shared_libraries_1): Likewise.
7294 * symmisc.c (maintenance_print_symbols): Likewise.
7295 * symfile.c (separate_debug_file_exists): Likewise.
7296 (reread_symbols): Likewise.
7297 (find_separate_debug_file_by_debuglink): Likewise.
7298 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7299 * source.c (add_path): Likewise.
7300 * symtab.c (filename_seen): Likewise.
7301 (file_matches): Likewise.
7302 (print_symbol_info): Likewise.
7303 (maybe_add_partial_symtab_filename): Likewise.
7304 (make_source_files_completion_list): Likewise.
7305 * xml-syscall.c (init_sysinfo): Likewise.
7306 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7307 IS_DIR_SEPARATOR for checking for trailing path separator.
7308
dd90784c
JK
73092011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7310
7311 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7312 label abort_expression.
7313 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7314 DWARF_VALUE_OPTIMIZED_OUT.
7315
3167638f
JK
73162011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7317
7318 Code cleanup.
7319 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7320 to linkage_name. Invert its value. Update the function comment.
7321 (c_type_print_varspec_suffix): Invert it at the caller.
7322 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7323
ce406537
PA
73242011-03-22 Pedro Alves <pedro@codesourcery.com>
7325
7326 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7327 errors when reading the `stop_pc'.
7328 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7329 get_frame_pc.
7330
da5d4055
PM
73312011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7332
7333 * NEWS: Document gdb.Write stream keyword.
7334
29e0eb9c
JK
73352011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7336
7337 Revert:
7338 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7339 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7340 (dwarf2_add_field): Fix new_field->accessibility for
7341 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7342
05775840
PM
73432011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7344
f33edef8 7345 PR python/12183
05775840
PM
7346
7347 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7348 other error classes. Do not print stack trace.
7349
a0cb7835
JK
73502011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7351
7352 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7353 (dwarf2_add_field): Fix new_field->accessibility for
7354 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7355
d19f7eee
UW
73562011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7357
7358 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7359 encountering a load via a non-SP register.
7360
4a2fbb50
UW
73612011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7362
7363 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7364 field in returned unwinder.
7365
3489610d
JB
73662012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7367
7368 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7369
8c1a34e7
JB
73702012-03-21 Joel Brobecker <brobecker@adacore.com>
7371
7372 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7373 of xmalloc.
7374
8fbca658
PA
73752012-03-18 Pedro Alves <pedro@codesourcery.com>
7376
7377 * frame.c (frame_unwind_register): Throw an error if unwinding the
7378 register failed.
7379 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7380 an unwind stop reason.
7381 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7382 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7383 UNWIND_UNAVAILABLE>: New.
7384 * inline-frame.c (inline_frame_unwind): Install
7385 default_frame_unwind_stop_reason.
7386 * frame-unwind.c: Include "exceptions.h".
7387 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7388 (default_frame_unwind_stop_reason): New.
7389 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7390 (default_frame_unwind_stop_reason): Declare.
7391 (struct frame_unwind) <stop_reason>: New function pointer.
7392
7393 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7394 * dwarf2-frame.c: Include exceptions.h.
7395 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7396 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7397 computing the CFA. If such an error was thrown, set
7398 unavailable_retaddr.
7399 (dwarf2_frame_unwind_stop_reason): New.
7400 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7401 unavailable.
7402 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7403 (dwarf2_signal_frame_unwind): Ditto.
7404
7405 * amd64-tdep.c: Include "exceptions.h".
7406 (struct amd64_frame_cache): New field "base_p".
7407 (amd64_init_frame_cache): Clear it.
7408 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7409 Avoid reading registers with functions that throw if the register
7410 is not necessary to compute the frame base.
7411 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7412 swallowing NOT_AVAILABLE_ERROR.
7413 (amd64_frame_unwind_stop_reason): New.
7414 (amd64_frame_this_id): Don't build a frame id if the frame base
7415 was unavailable.
7416 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7417 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7418 base_p if the frame base was computable.
7419 (amd64_sigtramp_frame_unwind_stop_reason): New.
7420 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7421 frame base was unavailable.
7422 (amd64_sigtramp_frame_unwind): Install
7423 amd64_sigtramp_frame_unwind_stop_reason.
7424 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7425 base_p if the frame base was computable.
7426 (amd64_epilogue_frame_unwind_stop_reason): New.
7427 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7428 frame base was unavailable.
7429 (amd64_epilogue_frame_unwind): Install
7430 amd64_epilogue_frame_unwind_stop_reason.
7431 * i386-tdep.c: Include "exceptions.h".
7432 (struct i386_frame_cache): New field "base_p".
7433 (i386_init_frame_cache): Clear it.
7434 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7435 Avoid reading registers with functions that throw if the register
7436 is not necessary to compute the frame base.
7437 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7438 swallowing NOT_AVAILABLE_ERROR.
7439 (i386_frame_unwind_stop_reason): New.
7440 (i386_frame_this_id): Don't build a frame id if the frame base was
7441 unavailable.
7442 (i386_frame_prev_register): Handle unavailable SP.
7443 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7444 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7445 base_p if the frame base was computable.
7446 (i386_epilogue_frame_unwind_stop_reason): New.
7447 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7448 base was unavailable.
7449 (i386_epilogue_frame_unwind): Install
7450 i386_epilogue_frame_unwind_stop_reason.
7451 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7452 base_p if the frame base was computable.
7453 (i386_sigtramp_frame_unwind_stop_reason): New.
7454 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7455 base was unavailable.
7456 (i386_sigtramp_frame_unwind): Install
7457 i386_sigtramp_frame_unwind_stop_reason.
7458 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7459 type's size, not the register's.
7460 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7461
7462 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7463 default_frame_unwind_stop_reason.
7464 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7465 (alpha_heuristic_frame_unwind): Ditto.
7466 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7467 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7468 * avr-tdep.c (avr_frame_unwind): Ditto.
7469 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7470 Ditto.
7471 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7472 * frv-tdep.c (frv_frame_unwind): Ditto.
7473 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7474 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7475 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7476 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7477 (hppa_stub_frame_unwind): Ditto.
7478 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7479 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7480 (ia64_libunwind_frame_unwind)
7481 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7482 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7483 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7484 * m32c-tdep.c (m32c_unwind): Ditto.
7485 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7486 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7487 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7488 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7489 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7490 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7491 * mep-tdep.c (mep_frame_unwind): Ditto.
7492 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7493 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7494 (mips_stub_frame_unwind): Ditto.
7495 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7496 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7497 * mt-tdep.c (mt_frame_unwind): Ditto.
7498 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7499 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7500 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7501 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7502 (s390_sigtramp_frame_unwind): Ditto.
7503 * score-tdep.c (score_prologue_unwind): Ditto.
7504 * sh-tdep.c (sh_frame_unwind): Ditto.
7505 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7506 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7507 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7508 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7509 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7510 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7511 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7512 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7513 (sparc64obsd_trapframe_unwind): Ditto.
7514 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7515 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7516 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7517 * v850-tdep.c (v850_frame_unwind): Ditto.
7518 * vax-tdep.c (vax_frame_unwind): Ditto.
7519 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7520 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7521 * xtensa-tdep.c (xtensa_unwind): Ditto.
7522
f23d1b92
PA
75232011-03-18 Pedro Alves <pedro@codesourcery.com>
7524
7525 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7526 there's always a frame. Use get_frame_pc_if_available instead of
7527 get_frame_pc, and if there's no PC available, don't look up a
7528 symtab.
7529
1d4f5741
PA
75302011-03-18 Pedro Alves <pedro@codesourcery.com>
7531
7532 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7533 unavailable PC.
7534
dba09041
PA
75352011-03-18 Pedro Alves <pedro@codesourcery.com>
7536
7537 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7538 gracefully.
7539
9a26e44c
PA
75402011-03-18 Pedro Alves <pedro@codesourcery.com>
7541
7542 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7543 * frame.c (frame_unwind_caller_pc_if_available): New.
7544 * stack.c (frame_info): Handle unavailable PC.
7545
75462011-03-18 Pedro Alves <pedro@codesourcery.com>
7547
7548 * frame.c (frame_unwind_pc): Rename to ...
7549 (frame_unwind_pc_if_available): ... this. New `pc' output
7550 parameter. Change return type to int. Gracefully handle
7551 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7552 happened, or 1 otherwise.
7553 (frame_unwind_pc): Reimplement on top of
7554 frame_unwind_pc_if_available.
7555 (get_frame_func): Rename to ...
7556 (get_frame_func_if_available): New `pc' output parameter. Change
7557 return type to int. Gracefully handle the PC not being available.
7558 (get_frame_func): Reimplement on top of
7559 get_frame_func_if_available.
7560 (select_frame): Handle the PC being unavailable.
7561 (get_prev_frame): Handle the PC being unavailable.
7562 (get_frame_pc_if_available): New.
7563 (get_frame_address_in_block_if_available): New.
7564 (find_frame_sal): Handle the frame PC not being available.
7565 * frame.h (get_frame_pc_if_available): Declare.
7566 (get_frame_address_in_block_if_available): Declare.
7567 (get_frame_func_if_available): Declare.
7568 * stack.c (print_frame_info): Handle the PC being unavailable.
7569 (find_frame_funname): Ditto.
7570 (print_frame): Handle the PC being unavailable.
7571 (get_frame_language): Ditto.
7572 * blockframe.c (get_frame_block): Ditto.
7573 * macroscope.c (default_macro_scope): Ditto.
7574 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7575
75762011-03-18 Pedro Alves <pedro@codesourcery.com>
7577
7578 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7579 NOT_AVAILABLE_ERROR when evaluating the location expression.
7580
75812011-03-18 Pedro Alves <pedro@codesourcery.com>
7582
7583 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7584 returning that the register piece is unavailable/optimized out.
7585 (write_pieced_value): Handle get_frame_register_bytes returning
7586 that the register piece is unavailable/optimized out when doing a
7587 read-modify write of a bitfield.
7588 * findvar.c (value_from_register): Handle get_frame_register_bytes
7589 returning that the register piece is unavailable/optimized out.
7590 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7591 and `unavailablep'. Throw error on bad debug info. Use
7592 frame_register instead of frame_register_read, to fill in the new
7593 arguments.
7594 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7595 and `unavailablep'.
7596 * valops.c: (value_assign): Adjust, and handle
7597 get_frame_register_bytes failing.
7598 * spu-tdep.c: Include exceptions.h.
7599 (spu_software_single_step): Adjust, and handle
7600 get_frame_register_bytes failing.
7601 (spu_get_longjmp_target): Ditto.
7602 * gdbarch.sh (register_to_value): Change to return int. New
7603 parameters `optimizedp' and `unavailablep'.
7604 * gdbarch.h, gdbarch.c: Regenerate.
7605 * i386-tdep.c (i386_register_to_value): Adjust to new
7606 gdbarch_register_to_value interface.
7607 * i387-tdep.c (i387_register_to_value): Ditto.
7608 * i387-tdep.h (i387_register_to_value): Ditto.
7609 * alpha-tdep.c (alpha_register_to_value): Ditto.
7610 * ia64-tdep.c (ia64_register_to_value): Ditto.
7611 * m68k-tdep.c (m68k_register_to_value): Ditto.
7612 * mips-tdep.c (mips_register_to_value): Ditto.
7613 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7614
0fdb4f18
PA
76152011-03-18 Pedro Alves <pedro@codesourcery.com>
7616
7617 * findvar.c (value_of_register): Mark the value as unavailable, if
7618 the register is unavailable.
7619 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7620 (frame_register): New `unavailablep' parameter.
7621 (frame_register_read): Update comment.
7622 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7623 Set it if the register is unavailable. If the register is
7624 unavailable, clear the output buffer.
7625 (frame_register): New `unavailablep' parameter. Pass it down.
7626 (frame_unwind_register): Adjust.
7627 (put_frame_register): Adjust.
7628 (frame_register_read): Adjust. Also return false if the register
7629 is not available.
7630 (frame_register_unwind_location): Adjust.
7631 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7632 is unavailable, mark the value accordingly.
7633 * stack.c (frame_info): Handle unavailable registers.
7634
e69aa73e
PA
76352011-03-18 Pedro Alves <pedro@codesourcery.com>
7636
7637 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7638 simplify, using regcache_cooked_read.
7639
05d1431c
PA
76402011-03-18 Pedro Alves <pedro@codesourcery.com>
7641
7642 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7643 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7644 (regcache_raw_read_unsigned, regcache_raw_read_part)
7645 (regcache_cooked_read, regcache_cooked_read_signed)
7646 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7647 (regcache_cooked_read_ftype): Change return to enum
7648 register_status.
7649 * regcache.c: Include exceptions.h
7650 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7651 (do_cooked_read): Change return to enum register_status. Always
7652 forward to regcache_cooked_read.
7653 (regcache_raw_read): Change return to enum register_status. If
7654 the register is not REG_VALID, memset the buffer. Return the
7655 register's status.
7656 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7657 return the register's status.
7658 (regcache_raw_read_unsigned): Ditto.
7659 (regcache_cooked_read): Change return to enum register_status.
7660 Assert that with read-only regcaches, the register's status must
7661 be known. If the regcache is read-only, and the register is not
7662 REG_VALID, memset the buffer. Return the register's status.
7663 (regcache_cooked_read_signed): Change return to enum
7664 register_status. Handle non-REG_VALID registers and return the
7665 register's status.
7666 (regcache_cooked_read_unsigned): Change return to enum
7667 register_status. Handle non-REG_VALID registers and return the
7668 register's status.
7669 (regcache_xfer_part, regcache_raw_read_part)
7670 (regcache_cooked_read_part): Change return to enum
7671 register_status. Return the register's status.
7672 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7673 unavailable.
7674 (regcache_dump): Handle unavailable cooked registers.
7675 * frame.c (do_frame_register_read): Adjust interface to match
7676 regcache_cooked_read_ftype.
7677 * gdbarch.sh (pseudo_register_read): Change return to enum
7678 register_status.
7679 * gdbarch.h, gdbarch.c: Regenerate.
7680
7681 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7682 register_status.
7683 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7684 register_status. If reading a raw register indicates the raw
7685 register is not valid, return the raw register's status,
7686 otherwise, return REG_VALID.
7687 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7688 register_status. Handle non-REG_VALID raw registers and return
7689 the register's status.
7690 * arm-tdep.c (arm_neon_quad_read)
7691 (arm_pseudo_read): Change return to enum register_status. Handle
7692 non-REG_VALID raw registers and return the register's status.
7693 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7694 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7695 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7696 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7697 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7698 register_status.
7699 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7700 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7701 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7702 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7703 (m32c_pseudo_register_read): Change return to enum
7704 register_status. Adjust.
7705 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7706 enum register_status. Return the register's status.
7707 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7708 register_status. Return the register's status.
7709 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7710 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7711 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7712 * rs6000-tdep.c (move_ev_register_func): New typedef.
7713 (e500_move_ev_register): Use it. Change return to enum
7714 register_status. Return the register's status.
7715 (do_regcache_raw_read): New function.
7716 (do_regcache_raw_write): New function.
7717 (e500_pseudo_register_read): Change return to enum
7718 register_status. Return the register's status. Use
7719 do_regcache_raw_read.
7720 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7721 (dfp_pseudo_register_read): Change return to enum register_status.
7722 Return the register's status.
7723 (vsx_pseudo_register_read): Ditto.
7724 (efpr_pseudo_register_read): Ditto.
7725 (rs6000_pseudo_register_read): Ditto.
7726 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7727 register_status. Return the register's status.
7728 * sh64-tdep.c (pseudo_register_read_portions): New function.
7729 (sh64_pseudo_register_read): Change return to enum
7730 register_status. Use pseudo_register_read_portions. Return the
7731 register's status.
7732 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7733 register_status. Return the register's status.
7734 * sh-tdep.c (pseudo_register_read_portions): New function.
7735 (sh_pseudo_register_read): Change return to enum register_status.
7736 Use pseudo_register_read_portions. Return the register's status.
7737 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7738 enum register_status. Return the register's status.
7739 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7740 * spu-tdep.c (spu_pseudo_register_read_spu)
7741 (spu_pseudo_register_read): Ditto.
7742 * xtensa-tdep.c (xtensa_register_read_masked)
7743 (xtensa_pseudo_register_read): Ditto.
7744 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7745
e10abd8f
PM
77462011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7747
7748 * python/py-value.c (valpy_getitem): Fix formatting of error function
7749 call.
7750
7ea6d463
PM
77512011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7752
7753 ARI fixes: Add missing internationalization markups throughout
7754 C source files.
7755 * darwin-nat-info.c: Ditto.
7756 * record.c: Ditto.
7757 * remote.c: Ditto.
7758 * mi/mi-main.c: Ditto.
7759
001083c6
PM
77602011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7761
7762 ARI fixes: Add missing internationalization markups throughout
7763 yacc files.
7764 * c-exp.y: Ditto.
7765 * cp-name-parser.y: Ditto.
7766 * f-exp.y: Ditto.
7767 * m2-exp.y: Ditto.
7768 * objc-exp.y: Ditto.
7769 * p-exp.y: Ditto.
7770
4f1cdeec
PM
77712011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7772
7773 ARI fixes: Messages should have no trailing new lines.
7774 * darwin-nat.c (mach_check_error): Remove trailing new line from
7775 warning function call message.
7776 * record.c (bfdcore_read): Idem for error call.
7777
28e698f1
PM
77782011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7779
7780 * common/signals.c (target_signal_from_host): Add _ markup to error
7781 function call message.
7782 (target_signal_to_host): Add _ markup and remove trailing new line
7783 from warning call message.
7784 (target_signal_from_command): Add _ markup to error function call
7785 message.
7786
99c3dc11
PM
77872011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7788
f33edef8 7789 PR python/12149
99c3dc11
PM
7790
7791 * python/python.c (gdbpy_write): Accept a stream argument and
7792 operate to the appropriate stream.
7793 (gdbpy_flush): Likewise.
7794 (_initialize_python): Add stream constants.
7795 (finish_python_initialization): Add GdbOutputErrorFile class.
7796
c20800be
KY
77972011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7798
7799 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7800
f4a1794a
KY
78012011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7802
7803 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7804 to store_signed_integer. Add debug message when relocating CALL
7805 instructions. Fix formatting of debug message.
7806 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7807
d4862372
JB
78082011-03-17 Joel Brobecker <brobecker@gnat.com>
7809
7810 * target.h (struct target_ops): Remove to_lookup_symbol field.
7811 (target_lookup_symbol): Delete macro.
7812 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7813 (update_current_target, setup_target_debug): Remove handling
7814 of to_lookup_symbol target_ops field.
7815 * ada-tasks.c (get_known_tasks_addr): Remove use of
7816 target_lookup_symbol.
7817 * coffread.c (coff_symtab_read): Likewise.
7818 * dbxread.c (read_dbx_symtab): Ditto.
7819
d645e32e
JB
78202011-03-17 Joel Brobecker <brobecker@gnat.com>
7821
7822 PR gdb/12116:
7823 * configure.ac: Add getthrds declaration check.
7824 * configure, config.in: Regenerate.
7825 * aix-thread.c (getthrds): Declare only if not already declared
7826 in procinfo.h. More declaration out of get_signaled_thread to
7827 global scope.
7828
29703da4
PM
78292011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7830
7831 * python/py-symtab.c: Populate symtab_object_methods,
7832 sal_object_methods.
7833 (stpy_is_valid): New function.
7834 (salpy_is_valid): Ditto.
7835 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7836 (sympy_is_valid): New function.
7837 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7838 (objfpy_is_valid): New function.
7839 * python/py-inferior.c: Populate inferior_object_methods.
7840 (infpy_is_valid): New function.
7841 * python/py-infthread.c: Populate thread_object_methods.
7842 (thpy_is_valid): New function.
7843 * python/py-block.c: Declare block_object_methods. Populate. Declare
7844 block_iterator_object_methods. Populate.
7845 (blpy_is_valid): New function.
7846 (blpy_iter_is_valid): Ditto.
7847
c00f8484
KS
78482011-03-16 Keith Seitz <keiths@redhat.com>
7849
7850 * linespec.c (find_methods): Canonicalize NAME before looking
7851 up the symbol.
7852 (name_end): New function.
7853 (keep_name_info): New function.
7854 (decode_line_1): Use keep_name_info.
7855 (decode_compound): Likewise.
7856 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7857 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7858
7859 PR c++/12273
7860 * linespec.c (locate_first_half): Keep overload information, too.
7861 (decode_compound): Use a string to represent break characters
7862 to escape the loop.
7863 If P points to a break character, do not increment it.
7864 For C++ and Java, keep overload information and relevant keywords.
7865 If we cannot find a symbol, search the minimal symbols.
7866
7867 PR c++/11734
7868 * linespec.c (decode_compound): Rename SAVED_ARG to
7869 THE_REAL_SAVED_ARG.
7870 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7871 single-quotes.
7872 Pass a valid block to lookup_symbol.
7873 (lookup_prefix_sym): Likewise.
7874 (find_method): Construct search name based on SYM_CLASS instead
7875 of SAVED_ARG.
7876 * psymtab.c (lookup_partial_symbol): Add language parameter.
7877 (lookup_symbol_aux_psymtabs): Likewise.
7878 Don't assume that the psymtab we found was the right one. Search
7879 for the desired symbol in the symtab to be certain.
7880 (psymtab_search_name): New function.
7881 (lookup_partial_symbol): Use psymtab_search_name.
7882 Add language parameter.
7883 (read_symtabs_for_function): Add language parameter and pass to
7884 lookup_partial_symbol.
7885 (find_symbol_file_from_partial): Likewise.
7886
c91513d8
PP
78872011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7888
7889 PR gdb/12528
7890 * dwarf2read.c (noop_record_line): New function.
7891 (dwarf_decode_lines): Ignore line tables for GCd functions.
7892
b37520b6
PM
78932011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7894
7895 Fix ARI warnings about new lines at the end of messages, which
7896 are unneeded as there is a new line added at the end of the message
7897 automatically.
7898 * darwin-nat.c (darwin_stop_inferior): Ditto.
7899 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7900 * dfp.c (decimal_to_number): Ditto.
7901 * exec.c (print_section_info): Ditto.
7902 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7903 * osdata.c (get_osdata): Ditto.
7904 * record.c (bfdcore_write): Ditto.
7905 * remote-mips.c (mips_readchar): Ditto.
7906 * remote.c (read_ptid): Ditto.
7907 * ser-mingw.c (ser_windows_raw): Ditto.
7908 * tracepoint.c (add_local_symbols): Ditto.
7909 * windows-nat.c (fake_create_process): Ditto.
7910
b08ee6a2
TT
79112011-03-16 Tom Tromey <tromey@redhat.com>
7912
7913 * tracepoint.c (stop_tracing): Don't declare.
7914 * event-top.c (after_char_processing_hook): Add `(void)'.
7915
9a6f1302
PM
79162011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7917
7918 * NEWS: Add Parameter sub-classing description.
7919
7ceb86b1
KT
79202011-03-16 Kai Tietz <ktietz@redhat.com>
7921
7922 * MAINTAINERS: Update my e-mail address.
7923
efeff6cf
AT
79242011-03-15 Andreas Tobler <andreast@fgznet.ch>
7925
7926 * MAINTAINERS: Add myself for write after approval privileges.
7927
681c238c
MS
79282011-03-15 Michael Snyder <msnyder@vmware.com>
7929
f3df5b08
MS
7930 * frame.c (find_frame_sal): Assert sym is not null.
7931
13f6513c
MS
7932 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7933
50412521
MS
7934 * objc-lang.c (selectors_info): Check strchr for null result.
7935
681c238c
MS
7936 * stabsread.c (define_symbol): Guard against bad stabstring input.
7937
6ced1581
PM
79382011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7939
7940 Remove trailing spaces and tabulations from pascal language
7941 support sources.
7942 p-exp.y: Ditto.
7943 p-lang.c: Ditto.
7944 p-lang.h: Ditto.
7945 p-valprint.c: Ditto.
7946
9373cf26
JK
79472011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7948
7949 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7950 than LOW. Comment it.
7951 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7952 HIGHPC not strictly higher than LOWPC.
7953
9a1edae6
PM
79542011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7955
7956 Fix formatting of function declarations returning a pointer in
7957 previous commit.
7958 * varobj.c (varobj_add_child): Ditto.
7959 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7960 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7961
24e9cda0
UW
79622011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7963
7964 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7965 for the "generic" vector ABI used with GCC 4.3 and later.
7966 (ppc64_sysv_abi_return_value): Likewise.
7967
79682011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7969
7970 * infcall.c (call_function_by_hand): Function return value is
7971 always a non_lval, even when using struct_return.
7972
c9174737
PA
79732011-03-15 Pedro Alves <pedro@codesourcery.com>
7974
7975 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7976 (map_display_numbers): New.
7977 (do_delete_display): New.
7978 (undisplay_command): Use map_display_numbers.
7979 (do_enable_disable_display): New.
7980 (enable_disable_display_command): New function.
7981 (enable_display): Delete.
7982 (enable_display_command): New.
7983 (disable_display_command): Reimplement.
7984 (_initialize_printcmd): Adjust "enable display" command to use
7985 `enable_display_command' as callback.
7986
350c6c65
PM
79872011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7988
7989 * NEWS: Add Python breakpoint 'stop' operation.
7990
824446ad
PM
79912011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7992
7993 * NEWS: Delete duplicate entry. Fix typo.
7994
2021ad3a
PM
79952011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7996
7997 Fix ARI warning about function names in first column.
7998 Put prototype declaration on same line as return type.
7999 * objc-exp.y: Ditto.
8000 * p-exp.y: Ditto.
8001 * python/py-stopevent.h: Ditto.
8002 For long function names, split parameters to
8003 allow function name on same line as return type.
8004 * solib-pa64.c: Ditto.
8005 * varobj.c: Ditto.
8006 * varobj.h: Ditto.
8007 For long function declaration, use single line.
8008 * hppa-tdep.h: Ditto.
8009 * inferior.h: Ditto.
8010
7371cf6d
PM
80112011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8012
8013 * python/python.h: Declare gdbpy_should_stop and
8014 gdbpy_breakpoint_has_py_cond.
8015 * python/python.c: Add python.h to includes. Remove python.h from
8016 HAVE_PYTHON definition
8017 (gdbpy_should_stop): New dummy function.
8018 (gdbpy_breakpoint_has_py_cond): New dummy function.
8019 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8020 sub-classing capabilities.
8021 (gdbpy_should_stop): New function.
8022 (gdbpy_breakpoint_has_py_cond): New function.
8023 (local_setattro): New function.
8024 * breakpoint.c (condition_command): Add check for Python 'stop'
8025 operation.
8026 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8027 operation function as part of stop/continue tests.
8028
37b50a69
TT
80292011-03-14 Tom Tromey <tromey@redhat.com>
8030
8031 PR gdb/12576:
8032 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8033 (needs_frame_dwarf_call): Likewise.
8034
eeae04df
PM
80352011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8036
8037 Fix ARI warning about functions without parameters that do not
8038 use (void).
8039 * breakpoint.c (all_tracepoints): Replace () by (void).
8040 * f-exp.y (match_string_literal): Ditto.
8041 (yylex): Ditto.
8042 * m2-exp.y (yylex): Ditto.
8043 * mep-tdep.c (current_me_module): Ditto.
8044 (current_options): Ditto.
8045 (current_cop_data_bus_width): Ditto.
8046 (current_cr_names): Ditto.
8047 (current_cr_is_float): Ditto.
8048 (current_ccr_names): Ditto.
8049 * objc-exp.y (yylex): Ditto.
8050 * p-exp.y (yylex): Ditto.
8051 * remote.c (send_interrupt_sequence): Ditto.
8052 * tracepoint.c (current_trace_status): Ditto.
8053 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8054 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8055
6dc3565d
MS
80562011-03-11 Michael Snyder <msnyder@vmware.com>
8057
1427fe5e
MS
8058 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8059 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8060 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8061 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8062 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8063
60bc018f
MS
8064 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8065 (delete_async_event_handler): Ditto.
8066
f3be5b64
MS
8067 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8068
4c2d5724
MS
8069 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8070
6dc3565d
MS
8071 * top.c (set_verbose): Assert showcmd was found.
8072
4e6ca6d5
MG
80732011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8074
8075 * xtensa-tdep.c (warning_once): Correct style issues.
8076
815a83e4
YQ
80772011-03-11 Yao Qi <yao@codesourcery.com>
8078
8079 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8080
f2eb0bc8
AS
80812011-03-11 Andreas Schwab <schwab@redhat.com>
8082
8083 * common/aclocal.m4: Remove.
8084
b801de47
MG
80852011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8086
8087 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8088 (xtensa_write_register, xtensa_read_register): Likewise.
8089 (xtensa_hextochar): Removed.
8090 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8091
dbab50de
MG
80922011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8093
8094 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8095 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8096 (xtensa_alloc_frame_cache): Add initialization for new fields.
8097 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8098 (warning_once): New function.
8099 (xtensa_insn_kind): New item c0opc_and.
8100 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8101 (call0_track_op): Change arguments. New local variable litbase.
8102 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8103 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8104 in the prologue.
dbab50de 8105 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8106 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8107 Add the variety of updates to handle extended prologues, which now can
8108 conduct dynamic stack adjustments.
8109 (call0_frame_cache): Likewise.
8110 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8111 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8112
b2c04452
MS
81132011-03-10 Michael Snyder <msnyder@vmware.com>
8114
f8f67713
MS
8115 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8116 (cmd_qtframe): Ditto.
8117 (cmd_qtbuffer): Ditto.
8118 (cmd_bigqtbuffer): Ditto.
8119
197f0a60
TT
81202011-03-10 Tom Tromey <tromey@redhat.com>
8121
8122 * tracepoint.c (trace_actions_command): Update.
8123 * thread.c (thread_apply_command): Update.
8124 * reverse.c (delete_bookmark_command): Update.
8125 (bookmarks_info): Update.
8126 * printcmd.c (undisplay_command): Update.
8127 * memattr.c (mem_enable_command): Update.
8128 (mem_disable_command): Update.
8129 (mem_delete_command): Update.
8130 * inferior.c (detach_inferior_command): Update.
8131 (kill_inferior_command): Update.
8132 (remove_inferior_command): Update.
8133 * cli/cli-utils.h (struct get_number_or_range_state): New.
8134 (init_number_or_range): Declare.
8135 (get_number_or_range): Update.
8136 * cli/cli-utils.c (init_number_or_range): New function.
8137 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8138 static variables.
8139 (number_is_in_list): Update.
8140 * breakpoint.h (get_tracepoint_by_number): Update.
8141 * breakpoint.c (map_breakpoint_numbers): Update for change to
8142 get_number_or_range.
8143 (find_location_by_number): Use get_number, not
8144 get_number_or_range.
8145 (trace_pass_set_count): New function.
8146 (trace_pass_command): Update for change to get_number_or_range.
8147 Rework loop logic.
8148 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8149 'state' parameter.
8150
ecec24e6
PM
81512011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8152
8153 * python/py-param.c (add_setshow_generic): Add set/show callback
8154 parameters. Register Python object context.
8155 (get_show_value): New function.
8156 (get_set_value): New function.
8157 (call_doc_function): New function.
8158 (get_doc_string): Move behind get_show_value/get_set_value.
8159
6d6c6b1f
JK
81602011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8161
8162 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8163
68d6df83
MG
81642011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8165
dbab50de 8166 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8167 (xtensa_write_register): Likewise.
8168 (xtensa_hextochar): Add comment and update to match coding conventions.
8169 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8170 (execute_l32e, execute_s32e, execute_code): Update comments.
8171 (xtensa_exception_handler_t): Update to match coding conventions.
8172 (xtensa_insn_kind): Likewise.
8173
85c9d6a6
MS
81742011-03-09 Michael Snyder <msnyder@vmware.com>
8175
8176 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8177
91495617
PA
81782011-03-09 Pedro Alves <pedro@codesourcery.com>
8179
8180 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8181
eb8c0621
TT
81822011-03-09 Tom Tromey <tromey@redhat.com>
8183
8184 * thread.c (restore_selected_frame): Handle frame_level == -1.
8185 (make_cleanup_restore_current_thread): Use
8186 get_selected_frame_if_set.
8187 * frame.h (get_selected_frame_if_set): Declare.
8188 * frame.c (get_selected_frame_if_set): New function.
8189
9f37bbcc
PA
81902011-03-09 Pedro Alves <pedro@codesourcery.com>
8191
8192 * cli/cli-cmds.c (shell_escape): Use lbasename.
8193 * coffread.c (coff_start_symtab): Constify parameter.
8194 (complete_symtab): Constify `name' parameter.
8195 (coff_symtab_read): Constify `filestring' local.
8196 (coff_getfilename): Constify return and `result' local.
8197 Use lbasename.
8198 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8199 * linux-fork.c (info_checkpoints_command): Use lbasename.
8200 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8201 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8202 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8203 * procfs.c (procfs_make_note_section): Use lbasename.
8204 * tui/tui-io.c (printable_part): Constity return and parameter.
8205 Use lbasename.
8206 (print_filename): Constify parameters, and local `s'.
8207 (tui_rl_display_match_list): Constify local `temp'.
8208
f8de3c55
JK
82092011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8210
8211 Revert:
8212 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8213 Fix DWARF-3+ DW_AT_accessibility default assumption.
8214 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8215 cu->header.version >= 3.
8216
d9837b00
YQ
82172011-03-09 Yao Qi <yao@codesourcery.com>
8218
8219 * common/Makefile.in: Remove.
8220 * common/configure: Remove.
8221 * common/configure.ac: Remove.
8222
e637a4f5
YQ
82232011-03-09 Yao Qi <yao@codesourcery.com>
8224
8225 Revert:
8226 2011-02-11 Yao Qi <yao@codesourcery.com>
8227
8228 * common/Makefile.in: Add copyright header.
8229
8230 2011-02-11 Yao Qi <yao@codesourcery.com>
8231
8232 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8233 libcommon.a.
8234 * configure.ac: Add common to sub dir.
8235 * configure: Regenerate.
8236
f976a05d
MG
82372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8238
8239 * xtensa-tdep.c (call0_ret): New function.
8240 (xtensa_skip_prologue): Speed up analysis.
8241
57041825
MG
82422011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8243
8244 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8245 while executing MI command -data-list-changed-registers.
8246
08b9c608
MG
82472011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8248
8249 * xtensa-tdep.c (xtensa_read_register): New function.
8250 (xtensa_write_register): New function.
8251 (xtensa_find_register_by_name): New function.
8252 (xtensa_windowed_frame_cache): Update comments in type description.
8253 (xtensa_frame_cache): Likewise.
8254 (xtensa_window_interrupt_insn): New function.
8255 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8256 (xtensa_insn_kind): Add new instructions.
8257 (rwx_special_register): New function.
8258 (call0_classify_opcode): Add new instructions to the analysis.
8259 (a0_saved, a7_saved, a11_saved): New variables.
8260 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8261 (execute_l32e): New function.
8262 (execute_s32e): New function.
8263 (xtensa_exception_handler_t): New type.
8264 (execute_code): New function.
8265 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8266 analysis for Xtensa Window Exception handlers.
8267
4d1acb11
MG
82682011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8269
98689b25
MG
8270 * xtensa-tdep.c (TX_PS): New.
8271 (windowing_enabled): Update to count for Call0 ABI.
8272 (xtensa_hextochar): New.
8273 (xtensa_init_reggroups): Make algorithm generic.
8274 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8275
82762011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8277
8278 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8279
d3f323f3
MS
82802011-03-08 Michael Snyder <msnyder@vmware.com>
8281
3dcabaa8
MS
8282 * i386-tdep.c (i386_follow_jump): Check return value of
8283 target_read_memory.
8284 (i386_analyze_struct_return): Ditto.
8285 (i386_skip_probe): Ditto.
8286 (i386_match_insn): Ditto.
8287 (i386_skip_noop): Ditto.
8288 (i386_analyze_frame_setup): Ditto.
8289 (i386_analyze_register_saves): Ditto.
8290 (i386_skip_prologue): Ditto.
8291 (i386_skip_main_prologue): Ditto.
8292
13b3fd9b
MS
8293 * target.c (read_whatever_is_readable): Fix memory leak.
8294
d3f323f3
MS
8295 * i386-tdep.c (i386_process_record): Document fall through.
8296
421d5c74
JK
82972011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8298
8299 Fix DWARF-3+ DW_AT_accessibility default assumption.
8300 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8301 cu->header.version >= 3.
8302
63154eca
PA
83032011-03-08 Pedro Alves <pedro@codesourcery.com>
8304
8305 * remote.c (remote_check_symbols): Skip if the target has no
8306 execution.
8307
f1a507a1
JB
83082011-03-08 Joel Brobecker <brobecker@adacore.com>
8309
8310 * target.c (read_whatever_is_readable): Reformat comment,
8311 with a minor typo fix. Minor reformatting of the code.
8312
36073a92
YQ
83132011-03-08 Yao Qi <yao@codesourcery.com>
8314
8315 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8316 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8317 Use cached result instead of calling displaced_in_arm_mode again.
8318 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8319 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8320 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8321 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8322 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8323 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8324 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8325 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8326 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8327 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8328 (arm_catch_kernel_helper_return): Likewise.
8329 * gdb/arm-tdep.h : Update function declarations.
8330
d3f323f3 83312011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8332
e0e40094
MS
8333 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8334
0b2381f5
MS
8335 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8336
0350914a
MS
8337 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8338
69feea6f
MS
8339 * elfread.c (elf_symtab_read): Stop memory leak.
8340
e6040cbd
MS
8341 * main.c (captured_main): Fix memory leak.
8342
052874e8
AS
83432011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8344
8345 * ada-lang.c (compare_names): Call is_name_suffix with string1
8346 instead of string2.
8347
b11896a5
TT
83482011-03-07 Tom Tromey <tromey@redhat.com>
8349
8350 * xcoffread.c (xcoff_sym_fns): Update.
8351 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8352 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8353 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8354 (symbol_file_add_with_addrs_or_offsets): Likewise.
8355 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8356 * somread.c (som_sym_fns): Update.
8357 * psymtab.h (require_partial_symbols): Declare.
8358 * psymtab.c (require_partial_symbols): New function.
8359 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8360 (ALL_OBJFILE_PSYMTABS): Undef.
8361 (ALL_PSYMTABS): Move from psympriv.h.
8362 (lookup_partial_symtab, find_pc_sect_psymtab)
8363 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8364 (find_last_source_symtab_from_partial)
8365 (forget_cached_source_info_partial)
8366 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8367 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8368 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8369 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8370 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8371 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8372 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8373 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8374 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8375 psymtabs.
8376 * mipsread.c (ecoff_sym_fns): Update.
8377 * machoread.c (macho_sym_fns): Update.
8378 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8379 (read_psyms): New function.
8380 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8381 (elf_sym_fns_lazy_psyms): New global.
8382 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8383 dwarf2_build_psymtabs.
8384 * dbxread.c (aout_sym_fns): Update.
8385 * coffread.c (coff_sym_fns): Update.
8386
fda326dd
TT
83872011-03-07 Tom Tromey <tromey@redhat.com>
8388
8389 * infrun.c (print_exited_reason): Include inferior id and pid in
8390 message.
8391
aeaec162
TT
83922011-03-07 Tom Tromey <tromey@redhat.com>
8393
8394 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8395 parameter.
8396 (target_has_execution_1): Update.
8397 (target_has_execution_current): Declare.
8398 (target_has_execution): Call target_has_execution_current.
8399 (default_child_has_execution): Update.
8400 * target.c (default_child_has_execution): Add 'the_ptid'
8401 parameter.
8402 (target_has_execution_1): Likewise.
8403 (target_has_execution_current): New function.
8404 (add_target): Update.
8405 (init_dummy_target): Update.
8406 * remote-m32r-sdi.c (m32r_has_execution): New function.
8407 (init_m32r_ops): Use it.
8408 * record.c (record_core_has_execution): Now static. Add
8409 'the_ptid' parameter.
8410 * inferior.c (have_live_inferiors): Don't save current thread.
8411 Use target_has_execution_1.
8412
08e14083
YQ
84132011-03-07 Yao Qi <yao@codesourcery.com>
8414
8415 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8416
c05d19c5
JB
84172011-03-07 Joel Brobecker <brobecker@adacore.com>
8418
8419 * elfread.c (elf_symtab_read): Minor reformatting.
8420
3e6ef9e4
JB
84212011-03-07 Joel Brobecker <brobecker@adacore.com>
8422
8423 * objc-lang.c (selectors_info): Minor reformatting.
8424
dbb8534f
JB
84252011-03-07 Joel Brobecker <brobecker@adacore.com>
8426
8427 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8428
dd70cc93
JB
84292011-03-07 Joel Brobecker <brobecker@adacore.com>
8430 Michael Snyder <msnyder@vmware.com>
8431
8432 * ada-valprint.c (ada_val_print_array): Move the declaration of
8433 "byte_order" and "elttype" inside the block where these variables
8434 are actually used. Remove some special handling for the case
8435 where "elttype" and "eltlen" are null. Replace by a comment
8436 and a couple of assertion checks.
8437
b27cf2b3
MS
84382011-03-05 Michael Snyder <msnyder@vmware.com>
8439
8440 * source.c (add_path): Replace semicolon at end of block.
8441 * dwarf2expr.c (execute_stack_op): Ditto.
8442
5387a0c6
MF
84432011-03-05 Mike Frysinger <vapier@gentoo.org>
8444
8445 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8446 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8447 (bfin-*-*): Likewise.
8448
e3aa49af
MS
84492011-03-05 Michael Snyder <msnyder@vmware.com>
8450
82ae4854
MS
8451 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8452 * mdebugread.c (parse_symbol): Ditto.
8453 * parse.c (parse_exp_in_context): Ditto.
8454 * source.c (add_path): Ditto.
8455 * utils.c (gnu_debuglink_crc32): Ditto.
8456 * varobj.c (variable_language): Ditto.
8457
e3aa49af
MS
8458 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8459
154f592e
MS
84602011-03-04 Michael Snyder <msnyder@vmware.com>
8461
da3ecdc6
MS
8462 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8463
9cc89665
MS
8464 * symfile.c (simple_overlay_update): Check for null return value
8465 from lookup_minimal_symbol.
8466
154f592e
MS
8467 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8468
63ffa6ee
TJB
84692011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8470
8471 * eval.c (parse_and_eval_address_1): Remove function.
8472 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8473 instead of parse_and_eval_address_1.
8474 * value.h (parse_and_eval_address_1): Remove prototype.
8475
a17d146e
MS
84762011-03-04 Michael Snyder <msnyder@vmware.com>
8477
8478 * remote.c (putpkt_binary): Document that case stmt falls through.
8479
1a6a67de
TJB
84802011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8481
8482 * breakpointc (print_it_typical): Move NULL check from here...
8483 (print_bp_stop_message): ... to here.
8484
488919c4
MS
84852011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8486
8487 * breakpoint.c (enable_command): Use break instead of continue,
8488 and fill in a missing break.
8489 (disable_command): Ditto.
8490
1e182ce8
UW
84912011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8492
8493 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8494 (terminal_save_ours): Remove misleading comment.
8495 (inflow_inferior_data_cleanup): Free ttystate.
8496 (inflow_inferior_exit): Likewise.
8497 (copy_terminal_info): Copy ttystate.
8498
8499 * serial.c (serial_copy_tty_state): New function.
8500 * serial.h (serial_copy_tty_state): Add prototype.
8501 (struct serial_ops): Add copy_tty_state callback.
8502 * ser-base.c (ser_base_copy_tty_state): New function.
8503 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8504 * ser-go32.c (dos_copy_tty_state): New function.
8505 (dos_ops): Install copy_tty_state callback.
8506 * ser-mingw.c (_initialize_ser_windows): Likewise.
8507 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8508 * ser-unix.c (hardwire_copy_tty_state): New function.
8509 (_initialize_ser_hardwire): Install it.
8510
b2c5f112
MS
85112011-03-04 Michael Snyder <msnyder@vmware.com>
8512
2abae994
MS
8513 * breakpoint.c (create_breakpoint): Add missing break statement.
8514
7f5936f9
MS
8515 Reverting this patch:
8516 * infcall.c (call_function_by_hand): Add break statements for lint.
8517
b2c5f112
MS
8518 Reverting this patch:
8519 * cli/cli-script.c (script_from_file): Add break for lint.
8520
42b1321c
MS
85212011-03-04 Michael Snyder <msnyder@vmware.com>
8522
8523 * solib.c (reload_shared_libraries_1): Close memory leak.
8524
3e2a0cee
TT
85252011-03-03 Tom Tromey <tromey@redhat.com>
8526
8527 PR gdb/12538:
8528 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8529 DW_STRING is NULL.
8530
58397cb7
MS
85312011-03-03 Michael Snyder <msnyder@vmware.com>
8532
2e3fd767
MS
8533 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8534 fields of struct 'st' to zero.
8535
58397cb7
MS
8536 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8537 sal.pspace before calling set_current_source_symtab_and_line.
8538
ced54c8f
YQ
85392011-03-03 Yao Qi <yao@codesourcery.com>
8540
8541 * Makefile.in (configure-common): Remove. Let Makefile
8542 in dir common to rebuild itself.
8543 (common/Makefile): Likewise.
8544
3351ea09
JB
85452011-03-03 Joel Brobecker <brobecker@adacore.com>
8546
8547 * utils.c (parse_escape): Add i18n markup in error message.
8548
bf9f652a
YQ
85492011-03-03 Yao Qi <yao@codesourcery.com>
8550
8551 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8552 ARM_PC_REGNUM.
8553 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8554 (displaced_write_reg, displaced_read_reg): Likewise.
8555 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8556 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8557 (cleanup_branch): Replace magic number 14 and 15 with
8558 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8559
d42de051
MS
85602011-03-02 Michael Snyder <msnyder@vmware.com>
8561
240f9570
MS
8562 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8563
10dd8b54
MS
8564 * cli/cli-script.c (script_from_file): Add break for lint.
8565
b98bd911
MS
8566 * mdebugread.c (parse_partial_symbols): Fix indent.
8567
3494b66d
MS
8568 * target-descriptions.c (tdesc_gdb_type): No need to call
8569 xstrdup, callee saves a copy.
8570
daac021a
MS
8571 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8572
c38d16a7
MS
8573 * infcall.c (call_function_by_hand): Add break statements for lint.
8574
905b671b
MS
8575 * utils.c (parse_escape): Escape the escape char.
8576
f2eb0bc8 8577 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8578 PyList_Append fails.
8579 (gdbpy_inferiors): Error out if build_inferior_list fails.
8580
8c6a60d1
MS
8581 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8582 a function call.
8583
d42de051
MS
8584 * record.c (record_restore): Move printf to before error return.
8585
4db71c0b
YQ
85862011-03-02 Yao Qi <yao@codesourcery.com>
8587
8588 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8589 is_thumb and insn_size.
8590 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8591 on both ARM and Thumb mode.
8592 (arm_process_displaced_insn): Set is_thumb and insn_size.
8593 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8594 (arm_displaced_step_fixup): Likewise.
8595
a9dc8dcc
MS
85962011-03-01 Michael Snyder <msnyder@vmware.com>
8597
53624a93
MS
8598 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8599
77766669
MS
8600 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8601
62d5b8da
MS
8602 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8603
5e9e105f
MS
8604 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8605
dc19db01
MS
8606 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8607 with xmalloc.
8608
5ce64950
MS
8609 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8610 which shadows function parameter.
8611
a0aa2878
MS
8612 * tracepoint.c (create_tsv_from_upload): Superfluous call
8613 to xstrdup. Callee already calls xstrdup.
8614
e325fb69
MS
8615 * linespec.c (decode_line_1): Remove unnecessary null check.
8616
21cbba77
MS
8617 * tracepoint.c (scope_info): Fix mem leak, remove underused
8618 variable.
8619
63360adc
MS
8620 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8621 superfluous null check.
8622
18ea20ac 8623 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8624 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8625
d014929c
MS
8626 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8627
6e9130cf
MS
8628 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8629 be null.
8630
5f01dbc0
MS
8631 * linespec.c (decode_line_1): Check for null before dereference.
8632
d684ab85
MS
8633 * reverse.c (record_restore): Move null-check to before pointer
8634 dereference.
8635
bfffb7e3
MS
8636 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8637
a9dc8dcc
MS
8638 * objc-lang.c (selectors_info): Add explanitory comment.
8639 (classes_info): Ditto.
8640
478fd957
UW
86412011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8642
8643 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8644 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8645 versions of the trampoline. Handle Thumb vs. ARM addresses.
8646 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8647 (arm_linux_init_abi): Install it.
8648 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8649 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8650
0480cefa
MS
86512011-02-28 Michael Snyder <msnyder@vmware.com>
8652
ac50ab3b
MS
8653 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8654 a little bigger, to avoid possibility of an overflow.
8655
f63fbe86
MS
8656 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8657 buffers a little bigger, to avoid possibility of an overflow.
8658
9e91a352
MS
8659 * coffread.c (coff_getfilename): Add check to avoid overflow.
8660
f2eb0bc8 8661 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8662 avoid overflow.
8663 (classes_info): Error out on too long REGEXP.
8664
098ab512
MS
8665 * infrun.c (handle_inferior_event): Remove unused function call.
8666
bcbd1de9
MS
8667 * fork-child.c (fork_inferior): Remove ifdef'd code and
8668 unused variable.
8669
2e456570
MS
8670 * linux-thread-db.c (attach_thread): Discard unused value.
8671
14571dad
MS
8672 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8673
a9cbf802
MS
8674 * remote.c (remote_get_noisy_reply): Discard unused value.
8675 (remote_vcont_resume): Ditto.
8676 (remote_stop_ns): Ditto.
8677
5715d26e
MS
8678 * linespec.c (decode_objc): Delete unused variable.
8679
4a9bca80
MS
8680 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8681
f47fb265
MS
8682 * dwarf2read.c (add_partial_symbol): Discard unused values.
8683 (read_base_type): Delete unused variable.
8684
e81cff30
MS
8685 * dbxread.c (read_dbx_symtab): Discard unused value.
8686
262acaeb
MS
8687 * eval.c (evaluate_subexp_standard): Delete unused variable,
8688 and discard unused values.
8689
df983543
MS
8690 * infcmd.c (_initialize_infcmd): Discard unused values.
8691
89acf84d
MS
8692 * stabsread.c (rs6000_builtin_type): Missing break statement.
8693
ab8b8aca
MS
8694 * dbxread.c (process_one_symbol): Discard unused value.
8695
6b4511ab
MS
8696 * coffread.c (coff_end_symtab): Delete unused variable.
8697
e8e80198
MS
8698 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8699 (dwarf2_add_typedef): Delete unused variable.
8700 (read_namespace): Ditto.
8701 (dwarf_decode_macros): Ditto.
8702
976aa66e
MS
8703 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8704
5b92b49f
MS
8705 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8706
91e8df85
MS
8707 * p-valprint.c (pascal_val_print): Discard unused value.
8708
899500d6
MS
8709 * utils.c (nquery): Call va_end before return;
8710 (yquery): Ditto.
8711 (query): Ditto.
8712
0480cefa
MS
8713 * proc-service.c (ps_plog): Call va_end before return.
8714
fb6a3ed3
TT
87152011-02-28 Tom Tromey <tromey@redhat.com>
8716
8717 * python/python.c (gdbpy_value_cst): New global.
8718 (_initialize_python): Initialize it.
8719 * python/python-internal.h (gdbpy_value_cst): Declare.
8720 * python/py-value.c (convert_value_from_python): Use
8721 gdbpy_value_cst.
8722
c05202a1
MS
87232011-02-28 Michael Snyder <msnyder@vmware.com>
8724
e463f587
MS
8725 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8726
c38eea1a
MS
8727 * breakpoint.c (catch_syscall_completer): Free malloced list.
8728
3ef09ab5
MS
8729 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8730
8f9a01ee
MS
8731 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8732 (lval_func_check_synthetic_pointer): Ditto.
8733 (lval_func_free_closure): Fix use-after-free.
c05202a1 8734
477d0d57
TT
87352011-02-28 Tom Tromey <tromey@redhat.com>
8736
8737 * psymtab.c (expand_partial_symbol_tables): Use
8738 ALL_OBJFILE_PSYMTABS.
8739
20937029
JK
87402011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8741
8742 * objc-lang.c (selectors_info): Error on too long REGEXP.
8743
907b7f4f
MS
87442011-02-28 Michael Snyder <msnyder@vmware.com>
8745
92e96192
MS
8746 * python/py-param.c (set_parameter_value): Add missing
8747 break statement.
8748
907b7f4f
MS
8749 * linux-record.c (record_linux_system_call): Add missing
8750 break statement.
8751
12c5a436
UW
87522011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8753
8754 * breakpoint.c (print_one_breakpoint_location): Remove unused
8755 argument PRINT_ADDRESS_BITS. Update callers.
8756 (print_one_breakpoint): Likewise.
8757
170b53b2
UW
87582011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8759
8760 * breakpoint.c (wrap_indent_at_field): New function.
8761 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8762 Allocate ui_stream locally instead of using STB argument.
8763 (print_one_breakpoint_location): Update call.
8764 * ui-out.c (ui_out_query_field): New function.
8765 * ui-out.h (ui_out_query_field): Add prototype.
8766
8ab1f94d
JB
87672011-02-28 Joel Brobecker <brobecker@adacore.com>
8768
8769 From Michael Snyder <msnyder@vmware.com>
8770 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8771
7d488639
MS
87722011-02-27 Michael Snyder <msnyder@vmware.com>
8773
ae179fba
MS
8774 * objc-lang.c (selectors_info): Prevent string overrun.
8775
086dbf66
MS
8776 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8777 error in strncpy.
8778
f2eb0bc8 8779 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8780 outer scope.
8781
7d488639
MS
8782 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8783 param with a local variable of the same name.
8784
3bd0f5ef
MS
87852011-02-27 Michael Snyder <msnyder@vmware.com>
8786
8787 * value.c (value_from_history_ref): New function.
8788 * value.h (value_from_history_ref): Export.
8789 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8790 to parse value history references.
8791 * cli/cli-utils.h (get_number_trailer): Update comment.
8792
87932011-02-27 Michael Snyder <msnyder@vmware.com>
8794
8795 * inferior.c (detach_inferior_command): Use get_number_or_range.
8796 (kill_inferior_command): Ditto.
8797 (remove_inferior_command): Ditto.
8798 (initialize_inferiors): Make command names plural.
8799 Update help strings.
8800
766062f6
MS
88012011-02-27 Michael Snyder <msnyder@vmware.com>
8802
8803 * darwin-nat-info.c: Fix comment typo.
8804 * dwarf2expr.h: Ditto.
8805 * fbsd-nat.c: Ditto.
8806 * fbsd-nat.h: Ditto.
8807 * frame-unwind.h: Ditto.
8808 * frame.h: Ditto.
8809 * hppa-hpux-tdep.c: Ditto.
8810 * i386-linux-nat.c: Ditto.
8811 * linux-nat.c: Ditto.
8812 * nbsd-nat.c: Ditto.
8813 * nbsd-nat.h: Ditto.
8814 * ppc-linux-tdep.c: Ditto.
8815 * serial.c: Ditto.
8816 * ui-file.h: Ditto.
8817 * tui/tui-winsource.c: Ditto.
8818
f2c4ead5
MS
88192011-02-26 Michael Snyder <msnyder@vmware.com>
8820
86b887df
MS
8821 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8822
66fd3b1e
MS
8823 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8824
8c814cdd
MS
8825 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8826 with a local variable of the same name.
8827
6d5e094a 8828 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8829 param with a local variable of the same name.
6d5e094a 8830 (i387_supply_xsave): Ditto.
e5b3d7d6 8831
5eee517d
MS
8832 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8833 that it does not shadow a function parameter.
8834
8fbf6b93
MS
8835 * i386-nat.c (i386_length_and_rw_bits): Document that case
8836 statement is meant to fall through.
8837
cb969d61
MS
8838 * expprint.c (dump_subexp_body_standard): Document that case
8839 statement is meant to fall through.
8840
f2c4ead5
MS
8841 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8842 dead if statement. Condition can't be false.
8843
b021a221
MS
88442011-02-25 Michael Snyder <msnyder@vmware.com>
8845
8846 * arm-tdep.c: Fix typos in comments.
8847 * bsd-uthread.c: Ditto.
8848 * completer.c: Ditto.
8849 * corelow.c: Ditto.
8850 * cp-namespace.c: Ditto.
8851 * cp-support.c: Ditto.
8852 * cris-tdep.c: Ditto.
8853 * dbxread.c: Ditto.
8854 * dwarf2read.c: Ditto.
8855 * frame.h: Ditto.
8856 * gdbtypes.h: Ditto.
8857 * inferior.h: Ditto.
8858 * mdebugread.c: Ditto.
8859 * mips-tdep.c: Ditto.
8860 * ppc-linux-nat.c: Ditto.
8861 * ppc-linux-tdep.c: Ditto.
8862 * printcmd.c: Ditto.
8863 * sol-thread.c: Ditto.
8864 * solib-frv.c: Ditto.
8865 * solist.h: Ditto.
8866 * sparc64-tdep.c: Ditto.
8867 * spu-tdep.c: Ditto.
8868 * stabsread.c: Ditto.
8869 * symfile.c: Ditto.
8870 * valops.c: Ditto.
8871 * varobj.c: Ditto.
8872 * vax-nat.c: Ditto.
8873 * python/py-block.c: Ditto.
8874 * python/py-symbol.c: Ditto.
8875 * python/py-symtab.c: Ditto.
8876 * python/py-value.c: Ditto.
8877 * tui/tui-win.c: Ditto.
8878
c82c0b55
MS
88792011-02-25 Michael Snyder <msnyder@vmware.com>
8880
8881 * inferior.c (print_inferior): Accept a string instead of an int
8882 for requested_inferiors, and use get_number_or_range to parse it.
8883 (info_inferiors_command): Pass args string to print_inferior.
8884 (initialize_inferiors): Change help string for info inferiors.
8885 * inferior.h (print_inferior): Export prototype change.
8886
ee00cd23
TT
88872011-02-25 Tom Tromey <tromey@redhat.com>
8888
8889 * common/ax.def (invalid2): Set to 0x31.
8890
0502ed8c
JK
88912011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8892
8893 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8894 L and plongest.
8895 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8896 use L and plongest.
8897 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8898
2c9de912
MS
88992011-02-24 Michael Snyder <msnyder@vmware.com>
8900
8901 * Makefile.in (clean): Make clean should remove generated files
8902 observer.h and observer.inc.
8903
a04b0428
JB
89042011-02-24 Joel Brobecker <brobecker@adacore.com>
8905
8906 Revert the following patch (not approved yet):
8907 2011-02-21 Hui Zhu <teawater@gmail.com>
8908 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8909 * ax-gdb.c (gen_printf_expr_callback): New function.
8910 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8911 * ax-general.c (ax_memcpy): New function.
8912 (ax_print): Handle "printf".
8913 (ax_reqs): Ditto.
8914 * ax.h (ax_memcpy): Forward declare.
8915 * common/ax.def (invalid2): Removed.
8916 (printf): New entry.
8917 * printcmd.c (printcmd.h): New include.
8918 (string_printf): New function.
8919 (ui_printf): Removed.
8920 (printf_command): Remove static. Call string_printf.
8921 (eval_command): Call string_printf.
8922 * printcmd.h: New file.
8923 * tracepoint.c (validate_actionline,
8924 encode_actions_1): handle printf_command.
8925
2b52013f
TT
89262011-02-23 Tom Tromey <tromey@redhat.com>
8927
8928 * ax-general.c (ax_pick): Add missing newline.
8929
e5a67952
MS
89302011-02-23 Michael Snyder <msnyder@vmware.com>
8931
8932 * breakpoint.c (breakpoint_1): Change first argument from an int
8933 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8934 breakpoints rather than just one. Use new function
e5a67952
MS
8935 'number_is_in_list' to implement.
8936 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8937 (watchpoints_info): Ditto.
8938 (tracepoints_info): Ditto.
8939 (maintenance_info_breakpoints): Ditto.
8940 (_initialize_breakpoint): Update help strings to reflect the fact
8941 that these functions can now take more than one argument.
8942 * cli/cli-utils.c (number_is_in_list): New function.
8943 * cli/cli-utils.h (number_is_in_list): Export.
8944
89452011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8946
8947 * memattr.c (mem_enable_command): Use get_number_or_range.
8948 (mem_disable_command): Ditto.
8949 (mem_delete_command): Ditto.
8950 (_initialize_mem): Tweak usage message to reflect multiple
8951 arguments.
8952
6e6fbe60
DE
89532011-02-22 Doug Evans <dje@google.com>
8954
8955 Add gdb.lookup_global_symbol python function.
8956 * NEWS: Add entry.
8957 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8958 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8959 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8960
79b97fa8
TT
89612011-02-22 Tom Tromey <tromey@redhat.com>
8962
8963 * language.c (language_class_name_from_physname): Rename
8964 'curr_language' argument to 'lang'; use in body.
8965
298f437a
MS
89662011-02-22 Michael Snyder <msnyder@vmware.com>
8967
8968 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8969
b7ea3126
PA
89702011-02-22 Pedro Alves <pedro@codesourcery.com>
8971
8972 * frame-unwind.h: Fix comment to mention the this frame, not the
8973 next.
8974
58ee6d60
TT
89752011-02-22 Tom Tromey <tromey@redhat.com>
8976
8977 * symfile.c (auto_solib_limit): Remove.
8978 * symfile.h (auto_solib_limit): Remove.
8979
36238dbc
JB
89802011-02-22 Joel Brobecker <brobecker@adacore.com>
8981
8982 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8983
aea5b279
MS
89842011-02-21 Michael Snyder <msnyder@vmware.com>
8985
8986 * gdbthread.h (print_thread_info): Change prototype.
8987 * thread.c (print_thread_info): Accept char* instead of int for
8988 requested_threads argument. Use new function number_is_in_list
8989 to determine which threads to list.
8990 (info_threads_command): Pass char* to print_thread_info.
8991 * cli/cli-utils.c (number_is_in_list): New function.
8992 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8993 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8994 print_thread_info.
8995 (print_one_inferior): Ditto.
8996 (mi_cmd_list_thread_groups): Ditto.
8997
8caa75ee
JK
89982011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8999
9000 * common/Makefile.in (CFLAGS): New.
9001 (COMPILE): Add $(CFLAGS).
9002
ea666128
TT
90032011-02-21 Tom Tromey <tromey@redhat.com>
9004
9005 * breakpoint.c (catch_syscall_command_1): Fix typo.
9006
e9cafbcc
TT
90072011-02-21 Tom Tromey <tromey@redhat.com>
9008
9009 * reverse.c: Include cli-utils.h.
9010 * printcmd.c: Include cli-utils.h.
9011 (string_printf): Use skip_spaces.
9012 * cli/cli-utils.h: New file.
9013 * cli/cli-utils.c: New file.
9014 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9015 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9016 * breakpoint.h (get_number, get_number_or_range): Move to
9017 cli-utils.h.
9018 * breakpoint.c: Include cli-utils.h.
9019 (get_number_trailer, get_number, get_number_or_range)
9020 (ep_skip_leading_whitespace): Move to cli-utils.c.
9021 (create_breakpoint_sal, find_condition_and_thread)
9022 (decode_static_tracepoint_spec, watch_command_1)
9023 (watch_maybe_just_location, ep_parse_optional_if_clause)
9024 (catch_fork_command_1, catch_exec_command_1)
9025 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9026 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9027 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9028 (HFILES_NO_SRCDIR): Add cli-utils.h.
9029 (cli-utils.o): New target.
9030
f67fd822
PM
90312011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9032
9033 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9034 before calling discard_all_inferiors.
9035
c9def01d
UW
90362011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9037
9038 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9039 (struct builtin_opencl_type): Remove.
9040 (builtin_opencl_type): Change return type to "struct type **".
9041 (lookup_opencl_vector_type): Update caller.
9042 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9043 (build_opencl_types): Install plain array of "struct type *"
9044 instead of "struct builtin_opencl_type".
9045
e3039479
UW
90462011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9047 Ulrich Weigand <uweigand@de.ibm.com>
9048
9049 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9050 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9051 (struct arm_linux_hwbp_cap): New type.
9052 (arm_linux_get_hwbp_cap): New function.
9053 (arm_linux_get_hw_breakpoint_count): Likewise.
9054 (arm_linux_get_hw_watchpoint_count): Likewise.
9055 (arm_linux_can_use_hw_breakpoint): Likewise.
9056 (arm_hwbp_type): New type.
9057 (arm_hwbp_control_t): Likewise.
9058 (struct arm_linux_hw_breakpoint): Likewise.
9059 (struct arm_linux_thread_points): Likewise.
9060 (arm_threads): New global variable.
9061 (arm_linux_find_breakpoints_by_tid): New function.
9062 (arm_hwbp_control_initialize): Likewise.
9063 (arm_hwbp_control_is_enabled): Likewise.
9064 (arm_hwbp_control_disable): Likewise.
9065 (arm_linux_hw_breakpoint_initialize): Likewise.
9066 (arm_linux_get_hwbp_type): Likewise.
9067 (arm_linux_hw_watchpoint_initialize): Likewise.
9068 (arm_linux_hw_breakpoint_equal): Likewise.
9069 (arm_linux_insert_hw_breakpoint1): Likewise.
9070 (arm_linux_remove_hw_breakpoint1): Likewise.
9071 (arm_linux_insert_hw_breakpoint): Likewise.
9072 (arm_linux_remove_hw_breakpoint): Likewise.
9073 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9074 (arm_linux_insert_watchpoint): Likewise.
9075 (arm_linux_remove_watchpoint): Likewise.
9076 (arm_linux_stopped_data_address): Likewise.
9077 (arm_linux_stopped_by_watchpoint): Likewise.
9078 (arm_linux_watchpoint_addr_within_range): Likewise.
9079 (arm_linux_new_thread): Likewise.
9080 (arm_linux_thread_exit): Likewise.
9081 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9082 related target callbacks. Register arm_linux_new_thread and
9083 arm_linux_thread_exit.
9084 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9085 * arm-tdep.c (arm_pc_is_thumb): Make global.
9086 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9087
b5db5dfc
UW
90882011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9089
9090 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9091 per-frame locations while within a function epilogue.
9092
e25b2cfa
PM
90932011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9094
9095 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9096 to GNU coding standards.
9097
4af53f97
PM
90982011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9099
9100 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9101 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9102 (ser_windows_close): Only call CancelIo if function exists.
9103 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9104 to check for existence of CancelIo function in kernel32 DLL.
9105
d0e92d82
HZ
91062011-02-21 Hui Zhu <teawater@gmail.com>
9107
9108 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9109 * ax-gdb.c (gen_printf_expr_callback): New function.
9110 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9111 * ax-general.c (ax_memcpy): New function.
9112 (ax_print): Handle "printf".
9113 (ax_reqs): Ditto.
9114 * ax.h (ax_memcpy): Forward declare.
9115 * common/ax.def (invalid2): Removed.
9116 (printf): New entry.
9117 * printcmd.c (printcmd.h): New include.
9118 (string_printf): New function.
9119 (ui_printf): Removed.
9120 (printf_command): Remove static. Call string_printf.
9121 (eval_command): Call string_printf.
9122 * printcmd.h: New file.
9123 * tracepoint.c (validate_actionline,
9124 encode_actions_1): handle printf_command.
9125
7d357efd
MS
91262011-02-19 Michael Snyder <msnyder@vmware.com>
9127
9128 * reverse.c (delete_one_bookmark): Argument is now bookmark
9129 id rather than pointer to bookmark struct.
9130 (delete_bookmark_command): Use get_number_or_range.
9131 (goto_bookmark_command): Parse with get_number instead of strtoul.
9132 (bookmark_1): New function. Print info for one bookmark.
9133 (bookmarks_info): Use get_number_or_range and bookmark_1.
9134
7a45ebd7
MS
91352011-02-18 Michael Snyder <msnyder@vmware.com>
9136
f2eb0bc8 9137 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9138 get_number_or_range.
65ebfb52 9139 (thread_apply_command): Ditto.
7a45ebd7 9140
94d5e490
TT
91412011-02-18 Tom Tromey <tromey@redhat.com>
9142
9143 * common/ax.def: New file.
9144 * ax.h (enum agent_op): Use ax.def.
9145 * ax-general.c (aop_map): Use ax.def.
9146
c7f96d2b
TT
91472011-02-18 Tom Tromey <tromey@redhat.com>
9148
9149 * ax-general.c (aop_map): Add pick and rot.
9150 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9151 <DW_OP_rot>: Implement.
9152 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9153 (ax_pick): Declare.
9154 * ax-general.c (ax_pick): New function.
9155
66694b75
TT
91562011-02-18 Tom Tromey <tromey@redhat.com>
9157
9158 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9159
eeaafae2
JK
91602011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9161 Tom Tromey <tromey@redhat.com>
9162
9163 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9164 make_symbol_overload_list_block with NULL BLOCK.
9165 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9166
3c3fe74c
PA
91672011-02-18 Pedro Alves <pedro@codesourcery.com>
9168
9169 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9170 * breakpoint.h (get_number_or_range): Declare.
9171 * printcmd.c (ALL_DISPLAYS): Declare.
9172 (delete_display): Reimplement taking a display pointer.
9173 (undisplay_command): Accept a range of displays to delete, using
9174 get_number_or_range.
9175
13163d80
PM
91762011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9177
9178 * c-valprint.c (c_val_print): Add embedded_offset to address
9179 for arrays of unspecified length.
9180 * p-valprint.c (pascal_val_print): Likewise.
9181
b434a28f
YQ
91822011-02-18 Yao Qi <yao@codesourcery.com>
9183
9184 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9185 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9186 (thumb_process_displaced_insn): New.
9187 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9188 call to arm_process_displaced_insn.
9189 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9190
9f6f94ff
TT
91912011-02-17 Tom Tromey <tromey@redhat.com>
9192
9193 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9194 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9195 compile_dwarf_to_ax. No longer static. Call
9196 dwarf2_compile_cfa_to_ax.
9197 (locexpr_tracepoint_var_ref): Update.
9198 (loclist_tracepoint_var_ref): Update.
9199 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9200 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9201 argument; add 'gdbarch' and 'pc'.
9202 (dwarf2_compile_cfa_to_ax): New function.
9203 (dwarf2_frame_cache): Update.
9204
e67ad678
JB
92052011-02-17 Joel Brobecker <brobecker@adacore.com>
9206
9207 * ada-lang.c (ada_type_of_array): Fix the size of the array
9208 in the case of an unconstrained packed array.
9209
946ebb0d
YQ
92102011-02-17 Yao Qi <yao@codesourcery.com>
9211
9212 * common/Makefile.in: Add more targets for make.
9213
1ba1b353
TT
92142011-02-16 Tom Tromey <tromey@redhat.com>
9215
9216 * dwarf2loc.c (unimplemented): Fix typo.
9217
b1bfef65
TT
92182011-02-16 Tom Tromey <tromey@redhat.com>
9219
9220 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9221 (compile_dwarf_to_ax) <default>: Use unimplemented.
9222 <DW_OP_deref>: Update.
9223 (disassemble_dwarf_expression): Update.
9224 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9225 (decode_locdesc): Update.
9226 * dwarf2expr.h (dwarf_stack_op_name): Update.
9227
5f1e6f19
TT
92282011-02-16 Tom Tromey <tromey@redhat.com>
9229
9230 * ax.h (struct aop_map) <name>: Now const.
9231
a0c78a73
PA
92322011-02-16 Tom Tromey <tromey@redhat.com>
9233
9234 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9235 than axs_rvalue.
9236
946ebb0d 92372011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9238
9239 * infrun.c (get_displaced_step_closure_by_addr): New.
9240 * inferior.h: Declare it.
9241 * arm-tdep.c: (arm_pc_is_thumb): Call
9242 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9243 returns non-NULL.
9244
08807d5a
PA
92452011-02-16 Pedro Alves <pedro@codesourcery.com>
9246 Jan Kratochvil <jan.kratochvil@redhat.com>
9247
9248 gdb/
9249 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9250
29976f3f
PA
92512011-02-16 Pedro Alves <pedro@codesourcery.com>
9252 Jan Kratochvil <jan.kratochvil@redhat.com>
9253
9254 * value.c (value_contents_copy_raw): Extend describing comment.
9255 Assert that the destination contents we're overwriting are wholly
9256 available.
fb68ae73 9257 (value_contents_copy): Extend describing comment.
29976f3f 9258
cd24cfaa
PA
92592011-02-16 Pedro Alves <pedro@codesourcery.com>
9260 Jan Kratochvil <jan.kratochvil@redhat.com>
9261
9262 * value.c (value_available_contents_eq): Remove redundant local
9263 variables. Fix available contents comparision.
9264 * value.h (value_available_contents_eq): Extend describing
9265 comment.
9266
60bbf338
YQ
92672011-02-16 Yao Qi <yao@codesourcery.com>
9268
9269 * thread.c (info_threads_command): Add missing i18n markup and remove
9270 trailing newline.
9271
17450429
PP
92722011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9273
9274 * breakpoint.c (longjmp_names): New variable.
9275 (struct breakpoint_objfile_data): New type.
9276 (breakpoint_objfile_key): New variable.
9277 (msym_not_found): New variable.
9278 (msym_not_found_p): New predicate.
9279 (get_breakpoint_objfile_data): New function.
9280 (create_overlay_event_breakpoint): Check per-objfile cache for
9281 symbols first.
9282 (create_longjmp_master_breakpoint): Likewise.
9283 (create_std_terminate_master_breakpoint): Likewise.
9284 (create_exception_master_breakpoint): Likewise.
9285 (_initialize_breakpoint): Register per-objfile data key.
9286
af02033e
PP
92872011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9288
9289 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9290 parameter value.
9291 (create_longjmp_master_breakpoint): Loop over longjmp names.
9292 (create_std_terminate_master_breakpoint): Const-propagate parameter
9293 value.
9294 (update_breakpoints_after_exec): Adjust.
9295 (breakpoint_re_set): Adjust.
9296
60f98dde
MS
92972011-02-15 Michael Snyder <msnyder@vmware.com>
9298
cdf99611
MS
9299 * thread.c (info_threads_command): Process arg as thread id,
9300 or list of thread ids.
9301 (thread_find_command): New command.
9302 (_initialize_thread): Document argument for info threads.
9303 Document 'thread find' command.
9304 * NEWS: Document new command "thread find".
60f98dde 9305
0feedb2c
JK
93062011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9307
9308 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9309 * aclocal.m4: Regenerated with aclocal-1.11.1.
9310 * common/configure: Regenerate with autoconf-2.64.
9311
648cd113
KW
93122011-02-15 Ken Werner <ken.werner@de.ibm.com>
9313
9314 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9315 bool data type to a size of one byte.
9316
5657161f
PA
93172011-02-15 Pedro Alves <pedro@codesourcery.com>
9318 Jan Kratochvil <jan.kratochvil@redhat.com>
9319
9320 * target.c (memory_xfer_live_readonly_partial): Document where to
9321 look for interface description.
9322
494e194e
YQ
93232011-02-15 Yao Qi <yao@codesourcery.com>
9324
9325 PR tdep/12352
9326 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9327 order to store PC value on stack instead of text section.
9328
d9492458
TJB
93292011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9330
9331 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9332 the EFP register set size.
9333 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9334 data from the VMX register.
9335 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9336 and write data from/to the VMX register.
9337
cdf99611
MS
93382011-02-14 Michael Snyder <msnyder@vmware.com>
9339
9340 * command.h (enum command_class): New class 'no_set_class', for
9341 "show" commands without a corresponding "set" command.
9342 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9343 * copying.c (_initialize_copying): Ditto for "show copying" and
9344 "show warranty".
9345 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9346 "show version".
9347 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9348 which there is no corresponding "set" command (eg. "show copying").
9349
424447ee
PA
93502011-02-14 Pedro Alves <pedro@codesourcery.com>
9351 Jan Kratochvil <jan.kratochvil@redhat.com>
9352
9353 * exec.c (section_table_available_memory): Change `len' parameter
9354 type to ULONGEST.
9355 * exec.h (section_table_available_memory): Ditto.
9356 * value.h (read_value_memory): Rename the `offset' parameter to
9357 `embedded_offset'.
9358
c0f61f9c 93592011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9360 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9361
9362 * memrange.c (compare_mem_ranges): Mention sort order in
9363 describing comment.
9364 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9365 * tracepoint.c (traceframe_available_memory): Extend comment to
9366 mention what happens to RESULT when the target does not support
9367 the query.
9368
6bfc80c7
PA
93692011-02-14 Pedro Alves <pedro@codesourcery.com>
9370 Jan Kratochvil <jan.kratochvil@redhat.com>
9371
9372 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9373 range.
9374
e7303042
PA
93752011-02-14 Pedro Alves <pedro@codesourcery.com>
9376
9377 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9378 No longer handle NULL values.
9379
8af8e3bc
PA
93802011-02-14 Pedro Alves <pedro@codesourcery.com>
9381
9382 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9383 * value.c: Include "exceptions.h".
9384 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9385 generic error.
9386 * cp-abi.c: Include gdb_assert.h.
9387 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9388 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9389 errors.
9390 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9391 parameters. No longer returns -1 on error.
9392 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9393 `val' parameters.
9394 * cp-valprint.c: Include exceptions.h.
9395 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9396 the baseclass_offset. Handle unavailable base classes. Use
9397 val_print_invalid_address.
9398 * p-valprint.c: Include exceptions.h.
9399 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9400 when fetching the baseclass_offset. No longer expect
9401 baseclass_offset returning -1. Handle unavailable base classes.
9402 Use val_print_invalid_address.
9403 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9404 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9405 `embedded_offset' and `val' parameters. Adjust.
9406 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9407 parameter, and change its type to gdb_byte pointer. Add
9408 `embedded_offset' and `val' parameters. Adjust. No longer expect
9409 baseclass_offset returning -1.
9410 (value_dynamic_cast): Use value_contents_for_printing rather than
9411 value_contents. Adjust.
9412 (search_struct_field): No longer expect baseclass_offset returning
9413 -1.
9414 (search_struct_method): If reading memory from the target is
9415 necessary, wrap it in a new value to pass to baseclass_offset. No
9416 longer expect baseclass_offset returning -1.
9417 (find_method_list): No longer expect baseclass_offset returning
9418 -1. Use value_contents_for_printing rather than value_contents.
9419 * valprint.c (val_print_invalid_address): New function.
9420 * valprint.h (val_print_invalid_address): Declare.
9421 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9422 and `val' parameters. No longer expect baseclass_offset returning
9423 -1. Adjust.
9424 * gnu-v2-abi.c: Include "exceptions.h".
9425 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9426 parameters. Handle unavailable memory. Recurse through
9427 gnuv2_baseclass_offset directly, rather than through
9428 baseclass_offset. No longer returns -1 on not found, instead
9429 throw an error.
9430 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9431 `val' parameters. Adjust.
9432
1b28d0b3
PA
94332011-02-14 Pedro Alves <pedro@codesourcery.com>
9434
9435 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9436 almost but not quite adjacent.
9437
ec0a52e1
PA
94382011-02-14 Pedro Alves <pedro@codesourcery.com>
9439
9440 * value.h (value_entirely_available): Declare.
9441 * value.c (value_entirely_available): New function.
9442 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9443 real type if the pointer is unavailable.
9444
24e6bcee
PA
94452011-02-14 Pedro Alves <pedro@codesourcery.com>
9446
9447 * valops.c (value_repeat): Use read_value_memory instead of
9448 read_memory.
9449
39d37385
PA
94502011-02-14 Pedro Alves <pedro@codesourcery.com>
9451
9452 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9453 * value.c (value_contents_copy_raw, value_contents_copy): New
9454 functions.
9455 (value_primitive_field): Use value_contents_copy_raw instead of
9456 memcpy.
9457 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9458 memcpy.
9459 (value_array, value_slice): Ditto.
9460 * valarith.c (value_subscripted_rvalue): Use
9461 value_contents_copy_raw instead of memcpy.
9462
a3d34bf4
PA
94632011-02-14 Pedro Alves <pedro@codesourcery.com>
9464
9465 <unavailable> references.
9466
9467 * valops.c (get_value_at): Use value_from_contents_and_address,
9468 avoiding read_memory.
9469
9fc6d940
PA
94702011-02-14 Pedro Alves <pedro@codesourcery.com>
9471
9472 * c-valprint.c (c_val_print): Print a string with unavailable
9473 contents as an array.
9474
5467c6c8
PA
94752011-02-14 Pedro Alves <pedro@codesourcery.com>
9476
9477 * value.h (unpack_bits_as_long): Delete declaration.
9478 (unpack_value_bits_as_long): Declare.
9479 (unpack_value_field_as_long): Declare.
9480 (value_field_bitfield): Declare.
9481 * value.c (unpack_bits_as_long): Rename to...
9482 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9483 value parameters. Return the extracted result in a new output
9484 parameter. If the value contents are unavailable, return false,
9485 otherwise return true.
9486 (unpack_value_bits_as_long): New.
9487 (unpack_field_as_long): Rename to...
9488 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9489 Add embedded_offset and value parameters. Return the extracted
9490 result in a new output parameter. If the value contents are
9491 unavailable, return false, otherwise return true.
9492 (unpack_value_field_as_long): New.
9493 (unpack_field_as_long_1): New.
9494 (unpack_field_as_long): Reimplement as wrapper around
9495 unpack_value_field_as_long_1.
9496 (value_field_bitfield): New function.
9497 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9498 unpack_value_bits_as_long. Mark the value as unavailable, if it
9499 is unavailable.
9500 * jv-valprint.c (java_print_value_fields): Use
9501 value_field_bitfield.
9502 * p-valprint.c (pascal_object_print_value_fields): Use
9503 value_field_bitfield.
9504 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9505
3158c6ed
PA
95062011-02-14 Pedro Alves <pedro@codesourcery.com>
9507
9508 * value.c (get_internalvar_integer): Also return the int value of
9509 TYPE_CODE_INT INTERNALVAR_VALUE values.
9510 (set_internalvar): Don't special case TYPE_CODE_INT.
9511
9fbdca0d
PA
95122011-02-14 Pedro Alves <pedro@codesourcery.com>
9513
9514 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9515 INTERNALVAR_POINTER.
9516 <pointer>: Delete.
9517 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9518 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9519 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9520
c8c1c22f
PA
95212011-02-14 Pedro Alves <pedro@codesourcery.com>
9522
9523 * value.h (value_available_contents_eq): Declare.
9524 * value.c (find_first_range_overlap): New function.
9525 (value_available_contents_eq): New function.
9526 * valprint.c (val_print_array_elements): Use
9527 value_available_contents_eq.
9528 * ada-valprint.c (val_print_packed_array_elements): Use
9529 value_available_contents_eq.
9530 * jv-valprint.c (java_value_print): Use
9531 value_available_contents_eq.
9532
e6e4e701
PA
95332011-02-14 Pedro Alves <pedro@codesourcery.com>
9534
9535 * target.c (target_read_live_memory): New function.
9536 (memory_xfer_live_readonly_partial): New.
9537 (memory_xfer_partial): If reading from a traceframe, fallback to
9538 reading unavailable read-only memory from read-only regions of
9539 live target memory.
9540 * tracepoint.c (disconnect_tracing): Adjust.
9541 (set_current_traceframe): New, factored out from
9542 set_traceframe_number.
9543 (set_traceframe_number): Reimplement to only change the traceframe
9544 number on the GDB side.
9545 (do_restore_current_traceframe_cleanup): Adjust.
9546 (make_cleanup_restore_traceframe_number): New.
9547 (cur_traceframe_number): New global.
9548 (tfile_open): Set cur_traceframe_number to no traceframe.
9549 (set_tfile_traceframe): New function.
9550 (tfile_trace_find): If looking up a traceframe using any method
9551 other than by number, make sure the current tfile traceframe
9552 matches gdb's current traceframe. Update the current tfile
9553 traceframe if the lookup succeeded.
9554 (tfile_fetch_registers, tfile_xfer_partial)
9555 (tfile_get_trace_state_variable_value): Make sure the remote
9556 traceframe matches gdb's current traceframe.
9557 * remote.c (remote_traceframe_number): New global.
9558 (remote_open_1): Set it to -1.
9559 (set_remote_traceframe): New function.
9560 (remote_fetch_registers, remote_store_registers)
9561 (remote_xfer_memory, remote_xfer_partial)
9562 (remote_get_trace_state_variable_value): Make sure the remote
9563 traceframe matches gdb's current traceframe.
9564 (remote_trace_find): If looking up a traceframe using any method
9565 other than by number, make sure the current remote traceframe
9566 matches gdb's current traceframe. Update the current remote
9567 traceframe if the lookup succeeded.
9568 * infrun.c (fetch_inferior_event): Adjust.
9569 * tracepoint.h (set_current_traceframe): Declare.
9570 (get_traceframe_number, set_traceframe_number): Add describing
9571 comments.
9572
e6ca34fc
PA
95732011-02-14 Pedro Alves <pedro@codesourcery.com>
9574
9575 Mark pieces of values as unavailable if the corresponding memory
9576 is unavailable.
9577
9578 * valops.c: Include tracepoint.h.
9579 (value_fetch_lazy): Use read_value_memory.
9580 (read_value_memory): New.
9581 * value.h (read_value_memory): Declare.
9582 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9583 * exec.c (section_table_available_memory): New function.
9584 * exec.h (section_table_available_memory): Declare.
9585
2a7498d8
PA
95862011-02-14 Pedro Alves <pedro@codesourcery.com>
9587
9588 * Makefile.in (SFILES): Add memrange.c.
9589 (HFILES_NO_SRCDIR): Add memrange.h.
9590 (COMMON_OBS): Add memrange.o.
9591 * memrange.c: New file.
9592 * memrange.h: New file.
9593 * tracepoint.c: Include memrange.h.
9594 (struct mem_range): Delete.
9595 (mem_range_s): Delete.
9596 (traceframe_available_memory): New function.
9597 * tracepoint.h (traceframe_available_memory): Declare.
9598
b3b9301e
PA
95992011-02-14 Pedro Alves <pedro@codesourcery.com>
9600
9601 * target.h (struct traceframe_info): Forward declare.
9602 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9603 (struct target_ops) <to_traceframe_info>: New field.
9604 (target_traceframe_info): New.
9605 * target.c (update_current_target): Inherit and default
9606 to_traceframe_info.
9607 * remote.c (PACKET_qXfer_traceframe_info): New.
9608 (remote_protocol_features): Register qXfer:traceframe-info:read.
9609 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9610 (remote_traceframe_info): New.
9611 (init_remote_ops): Install it.
9612 (_initialize_remote): Install "set/show remote traceframe-info"
9613 commands.
9614 * tracepoint.h (parse_traceframe_info): Declare.
9615 * tracepoint.c (struct mem_range): New.
9616 (mem_range_s): New typedef.
9617 (struct traceframe_info): New.
9618 (traceframe_info): New global.
9619 (free_traceframe_info): New function.
9620 (clear_traceframe_info): New function.
9621 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9622 info.
9623 (build_traceframe_info): New function.
9624 (tfile_traceframe_info): New function.
9625 (init_tfile_ops): Install tfile_traceframe_info.
9626 (traceframe_info_start_memory, free_result): New functions.
9627 (memory_attributes, traceframe_info_elements): New globals.
9628 (parse_traceframe_info, get_traceframe_info): New functions.
9629 * features/traceframe-info.dtd: New file.
9630 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9631
4e07d55f
PA
96322011-02-14 Pedro Alves <pedro@codesourcery.com>
9633
9634 Base support for <unavailable> value contents.
9635
4e07d55f
PA
9636 * value.h (value_bytes_available): Declare.
9637 (mark_value_bytes_unavailable): Declare.
9638 * value.c (struct range): New struct.
9639 (range_s): New typedef.
9640 (ranges_overlap): New function.
9641 (range_lessthan): New function.
9642 (ranges_contain_p): New function.
9643 (struct value) <unavailable>: New field.
9644 (value_bytes_available): New function.
9645 (mark_value_bytes_unavailable): New function.
9646 (require_not_optimized_out): Constify parameter.
9647 (require_available): New function.
9648 (value_contents_all, value_contents): Require all bytes be
9649 available.
9650 (value_free): Free `unavailable'.
9651 (value_copy): Copy `unavailable'.
9652 * valprint.h (val_print_unavailable): Declare.
9653 * valprint.c (valprint_check_validity): Rename `offset' parameter
9654 to `embedded_offset'. If printing a scalar, check whether the
9655 value chunk is available.
9656 (val_print_unavailable): New.
9657 (val_print_scalar_formatted): Check whether the value is
9658 available.
9659 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9660 pretty-printing unavailable values.
9661
bc9a5551
JK
96622011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9663
9664 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9665 * c-typeprint.c (c_type_print_args): Update the function comment. New
9666 variable param_type, initialize it. Remove const/volatile qualifiers
9667 for language_cplus and !show_artificial. Use param_type.
9668
93b55aa1
JK
96692011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9670
9671 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9672 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9673 * symtab.h (struct symtab) <next>: Comment extension.
9674
181d9476
YQ
96752011-02-12 Yao Qi <yao@codesourcery.com>
9676
9677 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9678
b708a5c7
JK
96792011-02-11 Yao Qi <yao@codesourcery.com>
9680
9681 * common/Makefile.in: Add copyright header.
9682
c5187ac6
PA
96832011-02-11 Pedro Alves <pedro@codesourcery.com>
9684
9685 * infrun.c (proceed): Move switching out and in of tfind mode from
9686 here ...
9687 (fetch_inferior_event): ... to here.
9688
4f3e6fb7
YQ
96892011-02-11 Yao Qi <yao@codesourcery.com>
9690
9691 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9692 libcommon.a.
9693 * configure.ac: Add common to sub dir.
9694 * configure: Regenerate.
9695
b708a5c7
JK
96962011-02-11 Yao Qi <yao@codesourcery.com>
9697
9698 Build libcommon.a.
9699
9700 * common/Makefile.in: New.
9701 * common/configure.ac: New.
9702 * common/aclocal.m4: New.
9703 * common/configure: Generate.
9704
2287cc7e
PA
97052011-02-10 Pedro Alves <pedro@codesourcery.com>
9706
9707 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9708 side of the parenthesis.
9709
9710 Merge from GCC:
9711 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9712 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9713
fd62cb89
MS
97142011-02-08 Michael Snyder <msnyder@vmware.com>
9715
9716 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9717
56d2815c
JK
97182011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9721 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9722 psubd and paddd.
9723
4f7d61a8
JK
97242011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 PR 12361.
9727 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9728 phsubsw.
9729 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9730 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9731
54fcddd0
UW
97322011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9733
9734 * dwarf2read.c (read_subroutine_type): Set special calling
9735 convention flag for functions compiled by IBM XL C for OpenCL.
9736 * ppc-sysv-tdep.c: Include "dwarf2.h"
9737 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9738 calling convention.
9739 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9740 IBM OpenCL vector types calling convention.
9741 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9742 (ppc_sysv_abi_broken_return_value): Likewise.
9743 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9744 types calling convention.
9745 (ppc64_sysv_abi_return_value): Likewise.
9746 * spu-tdep.c: Include "dwarf2.h"
9747 (spu_return_value): Implement IBM OpenCL vector types calling
9748 convention.
9749
d6dafb7c
UW
97502011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9751
9752 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9753 correct ABI for AltiVec vector arguments.
9754
32b72a42
PA
97552011-02-07 Pedro Alves <pedro@codesourcery.com>
9756
9757 * valprint.c (val_print): Extend comment.
9758 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9759 interface explanation to val_print.
9760 (ada_val_print_array): Adjust comment to current interface.
9761 (print_field_values): Adjust comment to current interface.
9762 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9763 explanation to val_print.
9764 * f-valprint.c (f_val_print): Ditto.
9765 * jv-valprint.c (java_val_print): Ditto.
9766 * m2-valprint.c (m2_val_print): Ditto.
9767 * p-valprint.c (pascal_val_print): Ditto.
9768
9998af43
TJB
97692011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9770
9771 * breakpoint.c (parse_breakpoint_sals): Fix description.
9772
505500db 97732011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9774 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9775
9776 * python/py-inferior.c (python_on_normal_stop): New function.
9777 (python_on_resume): New function.
9778 (python_inferior_exit): New function.
9779 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9780 inferior_exit observers.
9781 * python/py-evtregistry.c: New file.
9782 * python/py-threadevent.c : New file.
9783 * python/py-event.c: New file.
9784 * python/py-evts.c: New file.
9785 * python/py-continueevent.c: New file.
9786 * python/py-bpevent.c: New file.
9787 * python/py-signalevent.c: New file.
9788 * python/py-exetiedevent.c: New file.
9789 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9790 Move struct breakpoint_object from here...
9791 * python/python-internal.h: ... to here.
9792 * python/py-event.h: New file.
9793 * python/py-events.h: New file.
9794 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9795 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9796 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9797 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9798 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9799 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9800 Add build rules for all the above.
9801
9e0ac564
TT
98022011-02-04 Tom Tromey <tromey@redhat.com>
9803
9804 * dwarf2read.c (dwarf2_section_empty_p): New function.
9805 (dwarf2_read_section): Use dwarf2_section_empty_p.
9806 (dwarf2_section_size): New function.
9807 (dwarf2_get_section_info): Unconditionally read section.
9808 (dwarf2_read_index): Use dwarf2_section_empty_p.
9809 (partial_read_comp_unit_head): Use dwarf2_section_size.
9810 (dwarf2_symbol_mark_computed): Likewise.
9811
eee5b35e
DD
98122011-02-04 David Daney <ddaney@caviumnetworks.com>
9813
9814 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9815
385203ed
DD
98162011-02-04 David Daney <ddaney@caviumnetworks.com>
9817
9818 * mips-linux-tdep.c: Include xml-syscall.h.
9819 (mips_linux_get_syscall_number): New function.
9820 (mips_linux_init_abi): Add calls to
9821 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9822 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9823 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9824 * syscalls/mips-n32-linux.xml: New file.
9825 * syscalls/mips-n64-linux.xml: New file.
9826 * syscalls/mips-o32-linux.xml: New file.
9827
9277c30c
UW
98282011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9829
9830 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9831 Complain about inverted range entries.
9832 (dwarf2_record_block_ranges): Likewise.
9833
a3be7890
TJB
98342011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9835
9836 Fix some typos.
9837 * breakpoint.c (update_watchpoint): Fix name of the
9838 update_global_location_list function.
9839 (print_one_breakpoint): Fix typo.
9840 (_initialize_breakpoint): Remove extra space in hbreak help
9841 string.
9842 * breakpoint.h (struct bp_location) <length>: Fix field
9843 description.
9844
041274d8
PA
98452011-02-04 Pedro Alves <pedro@codesourcery.com>
9846
9847 * regcache.c (registers_changed_ptid): Don't explictly always
9848 clear `current_regcache'. Only clear current_thread_ptid and
9849 current_thread_arch when PTID matches. Only reinit the frame
9850 cache if PTID matches the current inferior_ptid. Move alloca(0)
9851 call to ...
9852 (registers_changed): ... here.
9853
c1c2ab58
UW
98542011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9855
9856 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9857 starts with __stack_chk_guard as stack guard symbol.
9858
9011945e
AB
98592011-02-03 Andrew Burgess <aburgess@broadcom.com>
9860
9861 * disasm.c (compare_lines): Handle the end of sequence markers
9862 within the line table to better support disassembling over
9863 compilation unit boundaries.
9864
e0634ccf
UW
98652011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9866
9867 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9868 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9869 implementation even if no symbols are available.
9870 (thumb_analyze_prologue): Update call to skip_prologue_function.
9871 (arm_analyze_prologue): Likewise.
9872
0e9e9abd
UW
98732011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9874
9875 * arm-tdep.c: Include "observer.h".
9876 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9877 (arm_exidx_data_key): New static variable.
9878 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9879 (struct arm_exidx_data): Likewise.
9880 (arm_exidx_data_free): New function.
9881 (arm_compare_exidx_entries): Likewise.
9882 (arm_obj_section_from_vma): Likewise.
9883 (arm_exidx_new_objfile): Likewise.
9884 (arm_find_exidx_entry): Likewise.
9885 (arm_exidx_fill_cache): Likewise.
9886 (arm_exidx_unwind_sniffer): Likewise.
9887 (arm_exidx_unwind): New global variable.
9888 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9889 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9890 observer. Register arm_exidx_data_key as objfile data.
9891
2e9e421f
UW
98922011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9893
9894 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9895 due to accessing uninitialized variable. Fix indentation.
9896
580688f3
PA
98972011-02-02 Pedro Alves <pedro@codesourcery.com>
9898
9899 * c-valprint.c (c_value_print): When doing virtual base pointer
9900 adjustment, create a new value with adjusted contents rather than
9901 changing the contents of the value being printed (and getting it
9902 wrong).
9903
3d2c1d41
PA
99042011-02-02 Pedro Alves <pedro@codesourcery.com>
9905
9906 * xml-support.c (xml_find_attribute): New.
9907 (xinclude_start_include): Use it.
9908 * xml-support.h (xml_find_attribute): Declare.
9909 * memory-map.c (memory_map_start_memory)
9910 (memory_map_start_property): Use xml_find_attribute.
9911 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9912 xml_find_attribute.
9913 * remote.c (start_thread): Use xml_find_attribute.
9914 * solib-target.c (library_list_start_segment)
9915 (library_list_start_section, library_list_start_library)
9916 (library_list_start_list): Use xml_find_attribute.
9917 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9918 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9919 (tdesc_start_field): Use xml_find_attribute.
9920
0af3e2db
UW
99212011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9922
9923 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9924 (BUILD_OCL_VTYPES): Update.
9925
c1039e3c
JB
99262011-02-02 Joel Brobecker <brobecker@adacore.com>
9927
9928 * configure.ac: Work around non-GNU sed limitation when computing
9929 python version number.
9930 * configure: Regenerate.
9931
600ea1be
JK
99322011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9933
9934 Fix debug printing of TYPE_INSTANCE.
9935 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9936 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9937
56c12414
JK
99382011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9939
9940 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9941 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9942 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9943 * ada-operator.inc: Rename the file to ...
9944 * ada-operator.def: ... here, wrap all the entries by macro OP.
9945 * expprint.c (op_name_standard): Remove all the entries. Include
9946 "std-operator.def" instead.
9947 * expression.h (enum exp_opcode): Include "std-operator.def" and
9948 "ada-operator.def". Move all the entries ...
9949 * std-operator.def: ... here, wrap all the entries by macro OP.
9950
c52b559d
PP
99512011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9952
9953 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9954 * breakpoint.c (remove_jit_event_breakpoints): New function.
9955 * jit.c (jit_descriptor_addr): Delete.
9956 (registering_code): Delete.
9957 (clear_int): Delete.
9958 (jit_inferior_data): New variable.
9959 (struct jit_inferior_data): New type.
9960 (get_jit_inferior_data): New function.
9961 (jit_inferior_data_cleanup): New function.
9962 (jit_read_descriptor): Adjust.
9963 (jit_register_code): Adjust.
9964 (jit_breakpoint_re_set_internal): New function; move code here ...
9965 (jit_inferior_init): ... from here.
9966 (jit_breakpoint_re_set): Adjust.
9967 (jit_reset_inferior_data_and_breakpoints): New function.
9968 (jit_inferior_created_observer): Adjust.
9969 (jit_inferior_exit_hook): Adjust.
9970 (jit_executable_changed_observer): New function.
9971 (jit_event_handler): Adjust.
9972 (_initialize_jit): Adjust.
9973
e839132d
MS
99742011-01-31 Michael Snyder <msnyder@vmware.com>
9975
9976 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9977 line.
9978
47a80e90
TT
99792011-01-31 Tom Tromey <tromey@redhat.com>
9980
9981 PR python/12216:
9982 * python/python.c (execute_gdb_command): Call
9983 prevent_dont_repeat.
9984 * top.c (suppress_dont_repeat): New global.
9985 (dont_repeat): Use it.
9986 (prevent_dont_repeat): New function.
9987 * command.h (prevent_dont_repeat): Declare.
9988
45a43567
TT
99892011-01-31 Tom Tromey <tromey@redhat.com>
9990
9991 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9992 * python/py-breakpoint.c (bppy_set_silent): Use
9993 breakpoint_set_silent.
9994 (bppy_set_thread): Use breakpoint_set_thread.
9995 (bppy_set_task): Use breakpoint_set_task.
9996 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9997 (breakpoint_set_task): Declare.
9998 (make_breakpoint_silent): Remove.
9999 * breakpoint.c (breakpoint_set_silent): New function.
10000 (breakpoint_set_thread): Likewise.
10001 (breakpoint_set_task): Likewise.
10002 (make_breakpoint_silent): Remove.
10003
09d682a4
TT
100042011-01-31 Tom Tromey <tromey@redhat.com>
10005
10006 * breakpoint.h (user_breakpoint_p): Declare.
10007 * breakpoint.c (user_breakpoint_p): New function.
10008 (breakpoint_1): Use it.
10009 (save_breakpoints): Likewise.
10010
9c4ea6c5
JB
100112011-01-31 Joel Brobecker <brobecker@adacore.com>
10012
10013 * configure.ac: Add handling of Python distribution on Windows.
10014 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10015 sysconfig variables are not defined, then do not use them.
10016 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10017 instead. On Windows, return all paths using forward-slashes
10018 rather than backslashes.
10019
ac534cba
JB
100202011-01-31 Joel Brobecker <brobecker@adacore.com>
10021
10022 * configure.ac: Remove fallback behavior for building
10023 against Python. Remove tweaking of Python include path.
10024 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10025 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10026 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10027 Always restore CPPFLAGS and LIBS after linking test.
10028 * configure: Regenerated.
10029 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10030 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10031 * python/python-internal.h: Adjust includes of Python .h files.
10032
c2f0d045
JB
100332011-01-31 Joel Brobecker <brobecker@adacore.com>
10034
10035 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10036 in error message.
10037
6b0c4c1f
JB
100382011-01-31 Joel Brobecker <brobecker@adacore.com>
10039
10040 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10041 value test.
10042
672c9795
YQ
100432011-01-31 Yao Qi <yao@codesourcery.com>
10044
10045 * arm-linux-nat.c: Update calls to regcache_register_status
10046 instead of regcache_valid_p.
10047 * aix-thread.c: Likewise.
10048 * i386gnu-nat.c: Likewise.
10049
80b23b6a
JK
100502011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10051
10052 Fix crash.
10053 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10054 touching TYPE_FIELD_ARTIFICIAL.
10055
4cd712bd
RE
100562011-01-28 Richard Earnshaw <rearnsha@arm.com>
10057
10058 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10059 Committers.
10060
ffd5ec24
PA
100612011-01-28 Pedro Alves <pedro@codesourcery.com>
10062
10063 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10064 selected, don't try iterating over the traceframe's blocks.
10065 (tfile_has_stack): If there's no traceframe selected, then there's
10066 no stack.
10067 (tfile_has_registers): If there's no traceframe selected, then
10068 there's no registers.
10069
e8c9e0a1
PA
100702011-01-28 Pedro Alves <pedro@codesourcery.com>
10071
10072 * target.c (memory_xfer_partial): No need to restore shadows if we
10073 haven't read anything.
10074
de15c4ab
PA
100752011-01-28 Pedro Alves <pedro@codesourcery.com>
10076
10077 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10078 and val_print_scalar_formatted.
10079
9f41c731
PA
100802011-01-27 Pedro Alves <pedro@codesourcery.com>
10081
10082 * tracepoint.c (tfile_read): New.
10083 (tfile_open): Use it.
10084 (tfile_get_traceframe_address): Use it.
10085 (tfile_trace_find): Use it.
10086 (walk_blocks_callback_func): New typedef.
10087 (match_blocktype): New function.
10088 (traceframe_walk_blocks): New function.
10089 (traceframe_find_block_type): New function.
10090 (tfile_fetch_registers, tfile_xfer_partial)
10091 (tfile_get_trace_state_variable_value): Use
10092 traceframe_find_block_type and tfile_read.
10093
cdefc55d
KB
100942011-01-26 Kevin Buettner <kevinb@redhat.com>
10095
10096 * remote-mips.c: Add internationalization mark ups. Remove
10097 trailing \n from already marked up strings.
10098
a81766d8
TT
100992011-01-26 Tom Tromey <tromey@redhat.com>
10100
10101 * python/py-prettyprint.c (print_string_repr): Clear
10102 'addressprint' option when calling val_print_string.
10103 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10104 option when calling val_print_string.
10105
74aedc46
TT
101062011-01-26 Tom Tromey <tromey@redhat.com>
10107
10108 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10109 GDB_PY_LL_ARG.
10110 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10111 macros.
10112 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10113 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10114 (gdb_py_long_as_ulongest): New defines.
10115 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10116 (gdb_py_int_as_long): Declare.
10117 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10118 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10119 (valpy_long): Add comment.
10120 * python/py-utils.c (get_addr_from_python): Use
10121 gdb_py_long_as_ulongest. Handle overflow properly.
10122 (gdb_py_object_from_longest): New function.
10123 (gdb_py_object_from_ulongest): Likewise.
10124 (gdb_py_int_as_long): Likewise.
10125 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10126 * python/py-symtab.c (salpy_get_pc): Use
10127 gdb_py_long_from_ulongest.
10128 (salpy_get_line): Use PyInt_FromLong.
10129 * python/py-param.c (set_parameter_value): Use
10130 gdb_py_int_as_long.
10131 * python/py-lazy-string.c (stpy_get_address): Use
10132 gdb_py_long_from_ulongest.
10133 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10134 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10135 * python/py-breakpoint.c (bppy_set_thread): Use
10136 gdb_py_int_as_long.
10137 (bppy_set_task): Likewise.
10138 (bppy_set_ignore_count): Likewise.
10139 (bppy_set_hit_count): Likewise.
10140 * python/py-block.c (blpy_get_start): Use
10141 gdb_py_object_from_ulongest.
10142 (blpy_get_end): Likewise.
10143 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10144
e4f6d2ec
TJB
101452011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10146
10147 PR/symtab 11766:
10148 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10149 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10150 equality test for objfile, initialize addr_low if needed.
10151
b30aa278
PA
101522011-01-25 Pedro Alves <pedro@codesourcery.com>
10153
10154 * tui/tui-regs.c (tui_register_format): Remove dead code.
10155
ab2188aa
PA
101562011-01-25 Pedro Alves <pedro@codesourcery.com>
10157
10158 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10159 instead of print_scalar_formatted.
10160 (print_scalar_formatted): Don't handle 's' format strings here,
10161 and add an assertion that we never see such format here.
10162 * valprint.h (val_print_scalar_formatted): Declare.
10163 * valprint.c (val_print_scalar_formatted): New.
10164 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10165 instead of print_scalar_formatted.
10166 * jv-valprint.c (java_val_print): Ditto.
10167 * p-valprint.c (pascal_val_print): Ditto.
10168 * ada-valprint.c (ada_val_print_1): Ditto.
10169 * f-valprint.c (f_val_print): Ditto.
10170 * infcmd.c (registers_info): Ditto.
10171 * m2-valprint.c (m2_val_print): Ditto.
10172
66d61a4c
PA
101732011-01-25 Pedro Alves <pedro@codesourcery.com>
10174
10175 * m2-valprint.c (print_unbounded_array): Pass
10176 value_contents_for_printing rather than value_contents, to
10177 m2_print_array_contents. Also pass in the value.
10178
831adc1f
JK
101792011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10180
10181 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10182 (save_gdb_index_command): Switch to .gdb_index version 4.
10183
20622269
PA
101842011-01-25 Pedro Alves <pedro@codesourcery.com>
10185
10186 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10187 than frame_register, and always pass a valid value to val_print.
10188
585fdaa1
PA
101892011-01-25 Pedro Alves <pedro@codesourcery.com>
10190
10191 Centralize printing "<optimized out>".
10192
10193 * valprint.h (val_print_optimized_out): Declare.
10194 * cp-valprint.c (cp_print_value_fields): Use
10195 val_print_optimized_out.
10196 * jv-valprint.c (java_print_value_fields): Ditto.
10197 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10198 * printcmd.c (print_formatted): Ditto.
10199 * valprint.c (valprint_check_validity): Ditto.
10200 (value_check_printable): Ditto.
10201 (val_print_optimized_out): New.
10202
29ec5263
PA
102032011-01-25 Pedro Alves <pedro@codesourcery.com>
10204
10205 * infcmd.c (default_print_registers_info): Allocate values so to
10206 never pass a NULL value to val_print.
10207
de4127a3
PA
102082011-01-25 Pedro Alves <pedro@codesourcery.com>
10209
10210 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10211 boolean. Make sure to always pass a value that matches the
10212 contents buffer to callees. Preserve `address' for following
10213 iterations.
10214 * value.c (value_contents_for_printing_const): New.
10215 (value_address): Constify value argument.
10216 * value.h (value_contents_for_printing_const): Declare.
10217 (value_address): Constify value argument.
10218
ee99023e
PA
102192011-01-25 Pedro Alves <pedro@codesourcery.com>
10220
10221 * regcache.c (struct regcache_descr): Rename
10222 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10223 and sizeof_cooked_register_valid_p to
10224 sizeof_cooked_register_status.
10225 (init_regcache_descr): Adjust.
10226 (struct regcache): Rename register_valid_p field to
10227 register_status.
10228 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10229 (do_cooked_read): Adjust.
10230 (regcache_valid_p): Rename to ...
10231 (regcache_register_status): ... this. Adjust.
10232 (regcache_invalidate): Adjust.
10233 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10234 Adjust.
10235 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10236 as unavailable, not valid.
10237 (regcache_dump): Adjust.
10238 * regcache.h (enum register_status): New.
10239 (regcache_register_status): Declare.
10240 (regcache_invalidate): Delete declaration.
10241 * corelow.c (get_core_registers): Adjust.
10242 * tracepoint.c (tfile_fetch_registers): Adjust.
10243 * trad-frame.c (REG_VALUE): Rename to ...
10244 (TF_REG_VALUE): ... this.
10245 (REG_UNKNOWN): Rename to ...
10246 (TF_REG_UNKNOWN): ... this.
10247 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10248 * mi/mi-main.c (register_changed_p): Adjust.
10249
99e42fd8
PA
102502011-01-25 Pedro Alves <pedro@codesourcery.com>
10251
10252 * regcache.c (struct regcache_descr): Remove outdated comment.
10253 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10254 overallocate hack.
10255 (regcache_xmalloc): Rename to ...
10256 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10257 Allocate the regcache type accordingly.
10258 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10259 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10260 cooked registers, not raw.
10261 (regcache_dup_no_passthrough): Delete.
10262 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10263 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10264 mention obsolete write_register_bytes.
10265 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10266
f7605bc2
PA
102672011-01-25 Pedro Alves <pedro@codesourcery.com>
10268
10269 Stop remote_read_bytes from handling partial reads itself.
10270
10271 * remote-fileio.c: Include target.h.
10272 (remote_fileio_write_bytes): Delete.
10273 (remote_fileio_func_open, remote_fileio_func_write)
10274 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10275 target_read_memory.
10276 (remote_fileio_func_stat): Use target_read_memory and
10277 target_write_memory.
10278 (remote_fileio_func_gettimeofday): Use target_write_memory.
10279 (remote_fileio_func_system): Use target_read_memory.
10280 * remote.c (remote_write_bytes): Make it static.
10281 (remote_read_bytes): Don't handle partial reads here.
10282 * remote.h (remote_read_bytes): Delete declaration.
10283
efc0eabd
PA
102842011-01-25 Pedro Alves <pedro@codesourcery.com>
10285
10286 Simplify XML parsing a bit.
10287
10288 * xml-support.h (gdb_xml_parse_quick): Declare.
10289 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10290 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10291 parameter.
10292 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10293 gdb_xml_create_parser_and_cleanup_1.
10294 (gdb_xml_parse_quick): New.
10295 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10296 * osdata.c (osdata_parse): Ditto.
10297 * remote.c (remote_threads_info): Ditto.
10298 * solib-target.c (solib_target_parse_libraries): Ditto.
10299 * xml-syscall.c (syscall_parse_xml): Ditto.
10300 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10301
314d366a
KB
103022011-01-24 Kevin Buettner <kevinb@redhat.com>
10303
10304 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10305 with remote-mips.o added to gdb_target_obs.
10306 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10307
a491d753
PA
103082011-01-24 Pedro Alves <pedro@codesourcery.com>
10309
10310 * ada-valprint.c (val_print_packed_array_elements): Pass the
10311 correct struct value to val_print.
10312 (ada_val_print_1): Ditto.
10313
490f124f
PA
103142011-01-24 Pedro Alves <pedro@codesourcery.com>
10315
10316 Don't lose embedded_offset in printing routines throughout.
10317
10318 * valprint.h (val_print_array_elements): Change prototype.
10319 * valprint.c (val_print_array_elements): Add `embedded_offset'
10320 parameter, and adjust to pass it down to val_print, while passing
10321 `valaddr' or `address' unmodified. Take embedded_offset into
10322 account when checking repetitions.
10323 * c-valprint.c (c_val_print): Pass embedded_offset to
10324 val_print_array_elements instead of adjusting `valaddr' and
10325 `address'.
10326 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10327 embedded_offset to val_print_array_elements instead of adjusting
10328 `valaddr'.
10329 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10330 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10331 val_print_array_elements and pascal_object_print_value_fields
10332 instead of adjusting `valaddr'.
10333 (pascal_object_print_value_fields): Add `offset' parameter, and
10334 adjust to use it.
10335 (pascal_object_print_value): Add `offset' parameter, and adjust to
10336 use it.
10337 (pascal_object_print_static_field): Use
10338 value_contents_for_printing/value_embedded_offset, rather than
10339 value_contents.
10340 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10341 parameter, and adjust to use it. Use
10342 value_contents_for_printing/value_embedded_offset, rather than
10343 value_contents.
10344 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10345 (ada_val_print_array): Add `offset' parameter, and adjust to use
10346 it.
10347 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10348 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10349 Instead work with offsets. Use
10350 value_contents_for_printing/value_embedded_offset, rather than
10351 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10352 and use value_from_pointer to extract a target pointer, rather
10353 than value_from_longest.
10354 (print_variant_part): Add `offset' parameter. Replace
10355 `outer_valaddr' parameter by a new `outer_offset' parameter.
10356 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10357 (ada_value_print): Use
10358 value_contents_for_printing/value_embedded_offset, rather than
10359 value_contents.
10360 (print_record): Add `offset' parameter, and adjust to pass it
10361 down.
10362 (print_field_values): Add `offset' parameter. Replace
10363 `outer_valaddr' parameter by a new `outer_offset' parameter.
10364 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10365 Use value_contents_for_printing/value_embedded_offset, rather than
10366 value_contents.
10367 * d-valprint.c (dynamic_array_type): Use
10368 value_contents_for_printing/value_embedded_offset, rather than
10369 value_contents.
10370 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10371 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10372 (java_print_value_fields): Take `offset' into account. Don't
10373 re-adjust `valaddr'. Instead pass down adjusted offsets.
10374 (java_val_print): Take `embedded_offset' into account. Pass it to
10375 java_print_value_fields.
10376 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10377 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10378 down adjusted offsets.
10379 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10380 (f_val_print): Take `embedded_offset' into account.
10381
7bfc9434
JB
103822011-01-21 Joel Brobecker <brobecker@adacore.com>
10383
10384 * inflow.c: Include "gdbcmd.h".
10385 (interactive_mode): New static global, moved here from top.c.
10386 (show_interactive_mode): New function, moved here from top.c.
10387 use gdb_has_a_terminal instead of input_from_terminal_p to
10388 determine the current mode.
10389 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10390 setting.
10391 (_initialize_inflow): Add the "set/show interactive-mode"
10392 commands. Moved here from top.c, after having adjusted slightly
10393 the help text.
10394 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10395 to inflow.c.
10396 (input_from_terminal_p): Remove handling of "interactive-mode"
10397 setting, moved to infow.c.
10398 (init_main): Remove creation of the "set/show interactive-mode"
10399 commands, moved to inflow.c.
10400
44603653
JB
104012011-01-19 Joel Brobecker <brobecker@adacore.com>
10402
10403 * NEWS: Add entry for native ia64-hpux support.
10404
4694da01
TT
104052011-01-19 Tom Tromey <tromey@redhat.com>
10406
10407 PR mi/8618:
10408 * thread.c (free_thread): Free 'name'.
10409 (print_thread_info): Emit thread name. Change CLI output.
10410 (thread_name_command): New function.
10411 (do_captured_thread_select): Emit newline.
10412 (_initialize_thread): Register 'thread name' command.
10413 * target.h (struct target_ops) <to_thread_name>: New field.
10414 (target_thread_name): New macro.
10415 * target.c (update_current_target): Handle to_thread_name.
10416 * python/py-infthread.c (thpy_get_name): New function.
10417 (thpy_set_name): Likewise.
10418 (thread_object_getset): Add "name".
10419 * linux-nat.c (linux_nat_thread_name): New function.
10420 (linux_nat_add_target): Set to_thread_name.
10421 * gdbthread.h (struct thread_info) <name>: New field.
10422
10d44370
JB
104232011-01-18 Joel Brobecker <brobecker@adacore.com>
10424
10425 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10426 (ada_val_print_1): Likewise.
10427
e3acb115
JB
104282011-01-18 Joel Brobecker <brobecker@adacore.com>
10429
10430 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10431 upper limit address is not greater than the function end address
10432 when the upper limit could not be computed using the debugging
10433 info.
10434
dc92e161
TT
104352011-01-17 Tom Tromey <tromey@redhat.com>
10436
10437 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10438 get_regcomp_error.
10439 * utils.c: Include gdb_regex.h.
10440 (do_regfree_cleanup): New function.
10441 (make_regfree_cleanup): Likewise.
10442 (get_regcomp_error): Likewise.
10443 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10444
f55af66d
TT
104452011-01-17 Tom Tromey <tromey@redhat.com>
10446
10447 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10448 re_compile_fastmap.
10449
a5a44b53
PM
104502011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10451
10452 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10453 for internal variables.
10454 (last_was_structop): New static variable.
10455 (COMPLETE): New token.
10456 (field_exp): New rule to group all '.' suffix handling.
10457 Add mark_struct_expression calls when approriate to be able
10458 to correctly find fields for completion.
10459 (yylex): Adapt to handle field completion and set INTVAR when
10460 required.
10461
2c291032
YQ
104622011-01-14 Yao Qi <yao@codesourcery.com>
10463
10464 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10465 save_reggroup, restore_reggroup and all_reggroup.
10466
447b483c
JB
104672011-01-14 Joel Brobecker <brobecker@adacore.com>
10468
10469 * ada-valprint. (ada_printchar): Use the correct type length
10470 in call to ada_emit_char.
10471 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10472
7b64a93b
PM
104732011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10474
10475 * solib-som.h (hpux_major_release): Declare variable here.
10476 * solib-som.c: Remove <sys/utsname.h> header.
10477 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10478 (hpux_major_release): Make global, change default value to
10479 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10480 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10481 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10482 Add "solib-som.h" header.
10483 (set_hpux_major_release): New function.
10484 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10485
4e18c053
MF
104862011-01-14 Mike Frysinger <vapier@gentoo.org>
10487
10488 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10489
a9df6b22
JB
104902011-01-14 Joel Brobecker <brobecker@adacore.com>
10491
10492 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10493 new-line at end of warning message.
10494 (ia64_hpux_store_register): Remove trailing new-line at end of
10495 error message.
10496 * ia64-hpux-tdep.c: Rephrase comment.
10497 * solib-ia64-hpux.c (struct dld_info): Change type of field
10498 dld_flags from "long long" to ULONGEST.
10499
ecb956dd
PA
105002011-01-14 Pedro Alves <pedro@codesourcery.com>
10501
10502 * target.h (deprecated_child_ops): Delete declaration.
10503 * target.c (deprecated_child_ops): Delete definition.
10504
76adfcae
PA
105052011-01-14 Pedro Alves <pedro@codesourcery.com>
10506
10507 * Makefile.in (hpux-thread.o): Delete rule.
10508 * configure.ac: Don't check for HPUX DCE threads support.
10509 * configure, config.in: Regenerate.
10510 * hppa-hpux-nat.c (child_suppress_run): Delete.
10511 (hppa_hpux_child_can_run): Delete.
10512 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10513 * hpux-thread.c: Delete.
10514
042e866e
JB
105152011-01-13 Joel Brobecker <brobecker@adacore.com>
10516
10517 * hpux-thread.c (hpux_pid_to_str): Delete.
10518
4ffa5a33
JB
105192011-01-13 Joel Brobecker <brobecker@adacore.com>
10520
10521 * ada-valprint.c (ada_emit_char): Remove strange code.
10522 Check that c is <= UCHAR_MAX before passing it to isascii.
10523 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10524
de8fa76c
JB
105252011-01-13 Joel Brobecker <brobecker@adacore.com>
10526
10527 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10528 to the case where instream is stdin.
10529
c4de7027
JB
105302011-01-13 Joel Brobecker <brobecker@adacore.com>
10531
10532 * ia64-tdep.h (struct regcache): Forward declare.
10533 (struct ia64_infcall_ops): New struct type.
10534 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10535 and "infcall_ops".
10536 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10537 Renames ia64_find_global_pointer.
10538 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10539 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10540 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10541 methods.
10542 (ia64_infcall_ops): New static global constant.
10543 (ia64_gdbarch_init): Set tdep->infcall_ops.
10544 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10545 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10546 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10547 (ia64_hpux_dummy_code): New static global constant.
10548 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10549 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10550 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10551 New function.
10552 (ia64_hpux_infcall_ops): New static global constant.
10553 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10554 for inferior function calls to work properly on ia64-hpux.
10555
77ca787b
JB
105562011-01-13 Joel Brobecker <brobecker@adacore.com>
10557
10558 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10559 * ia64-tdep.h (struct frame_info): forward declaration.
10560 (struct gdbarch_tdep): Add field size_of_register_frame.
10561 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10562 to determine the size of the register frame.
10563 (ia64_size_of_register_frame): New function.
10564 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10565 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10566 (IA64_HPUX_UREG_REASON): New macro.
10567 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10568 New functions.
10569 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10570 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10571 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10572 objects.
10573
92c9a463
JB
105742011-01-13 Joel Brobecker <brobecker@adacore.com>
10575
10576 Add support for ia64-hpux.
10577 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10578 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10579
10580 * configure.host: Add handling for ia64-hpux hosts. Add associated
10581 floatformats.
10582 * configure.tgt: Add handling for ia64-hpux targets.
10583 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10584 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10585 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10586
f688d93f
JB
105872011-01-13 Joel Brobecker <brobecker@adacore.com>
10588
10589 [ttrace] Compute thread list immediately after attach.
10590 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10591 New subprogram.
10592 (inf_ttrace_attach): Use it.
10593
1b89e62f
JB
105942011-01-13 Joel Brobecker <brobecker@adacore.com>
10595
10596 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10597 if we could not determine the frame's function address. Instead,
10598 use the frame's PC, and then continue.
10599
3e5e6e2a
JB
106002011-01-13 Joel Brobecker <brobecker@adacore.com>
10601
10602 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10603 not already defined.
10604
825d6d8a
JB
106052011-01-13 Joel Brobecker <brobecker@adacore.com>
10606
10607 * ia64-tdep.c (ia64_struct_type_p): New function.
10608 (ia64_extract_return_value): Handle integral values that are
10609 less than 8 bytes long.
10610 (ia64_push_dummy_call): Likewise.
10611
7458e667
JB
106122011-01-13 Joel Brobecker <brobecker@adacore.com>
10613
10614 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10615 floatformat_ia64_ext.
10616 (floatformat_ia64_ext_big): New static const.
10617 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10618
1b05df00
TT
106192011-01-12 Tom Tromey <tromey@redhat.com>
10620
10621 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10622 messages.
10623 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10624 (mi_cmd_thread_list_ids): Likewise.
10625 (mi_cmd_data_list_changed_registers): Likewise.
10626 (mi_cmd_data_list_register_values): Likewise.
10627 (mi_cmd_data_write_register_values): Likewise.
10628 (mi_cmd_data_evaluate_expression): Likewise.
10629 (mi_cmd_data_read_memory): Likewise.
10630 (mi_cmd_data_read_memory_bytes): Likewise.
10631 (mi_cmd_data_write_memory): Likewise.
10632 (mi_cmd_enable_timings): Likewise.
10633 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10634 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10635 (mi_cmd_var_delete): Likewise.
10636 (mi_cmd_var_set_format): Likewise.
10637 (mi_cmd_var_show_format): Likewise.
10638 (mi_cmd_var_info_num_children): Likewise.
10639 (mi_cmd_var_list_children): Likewise.
10640 (mi_cmd_var_info_type): Likewise.
10641 (mi_cmd_var_info_expression): Likewise.
10642 (mi_cmd_var_show_attributes): Likewise.
10643 (mi_cmd_var_assign): Likewise.
10644 (mi_cmd_var_update): Likewise.
10645 (mi_cmd_enable_pretty_printing): Likewise.
10646 (mi_cmd_var_set_update_range): Likewise.
10647 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10648 messages.
10649 (mi_cmd_target_file_put): Likewise.
10650 (mi_cmd_target_file_delete): Likewise.
10651 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10652 messages.
10653 (mi_cmd_stack_info_depth): Likewise.
10654 (mi_cmd_stack_list_locals): Likewise.
10655 (mi_cmd_stack_list_args): Likewise.
10656 (mi_cmd_stack_select_frame): Likewise.
10657 (mi_cmd_stack_select_frame): Likewise.
10658 (mi_cmd_stack_info_frame): Likewise.
10659 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10660 messages.
10661 (mi_cmd_file_list_exec_source_files): Likewise.
10662 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10663 (mi_cmd_env_cd): Likewise.
10664 (mi_cmd_env_path): Likewise.
10665 (mi_cmd_env_dir): Likewise.
10666 (mi_cmd_inferior_tty_show): Likewise.
10667 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10668 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10669 (mi_cmd_break_watch): Likewise.
10670
ad422571
TJB
106712011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10672
10673 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10674 (ppc_linux_insert_hw_breakpoint): Likewise.
10675 (ppc_linux_remove_hw_breakpoint): Likewise.
10676 (ppc_linux_insert_watchpoint): Likewise.
10677
c2ff108b
JK
106782011-01-12 Andrew Burgess <aburgess@broadcom.com>
10679 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 PR fortran/11104 and DWARF unbound arrays detection.
10682 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10683 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10684 unspecified upper bound.
10685 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10686 variables array_size_array, tmp_type and offset_item. New variable
10687 array. Remove call to f77_get_upperbound. New variables array_type
10688 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10689 the final call to deprecated_set_value_type.
10690
41e8491f
JK
106912011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10692
10693 Make value allocations more lazy.
10694 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10695 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10696 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10697 instead of allocate_value and set_value_lazy.
10698 * findvar.c (value_of_register_lazy): Likewise.
10699 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10700 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10701 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10702 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10703 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10704 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10705 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10706 the end, remove set_value_lazy there.
10707 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10708 instead of allocate_value and set_value_lazy when possible.
10709 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10710 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10711 of allocate_value and set_value_lazy.
10712 (value_from_contents_and_address): Use allocate_value_lazy instead of
10713 allocate_value and set_value_lazy when possible.
10714
b716877b
AB
107152011-01-12 Andrew Burgess <aburgess@broadcom.com>
10716
10717 * disasm.c (dump_insns): Support dumping opcodes for MI.
10718 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10719 dumping of instruction opcodes.
10720
d5ae309f
JB
107212011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10722
10723 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10724 appropiately.
10725
98871305
TT
107262011-01-11 Tom Tromey <tromey@redhat.com>
10727
10728 * thread.c (do_captured_thread_select): Emit newline before
10729 printing frame.
10730
c378eb4e
MS
107312011-01-11 Michael Snyder <msnyder@vmware.com>
10732
10733 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10734 * score-tdep.c: Ditto.
10735 * score-tdep.h: Ditto.
10736 * ser-base.c: Ditto.
10737 * ser-go32.c: Ditto.
10738 * serial.c: Ditto.
10739 * serial.h: Ditto.
10740 * ser-mingw.c: Ditto.
10741 * ser-pipe.c: Ditto.
10742 * ser-tcp.c: Ditto.
10743 * ser-unix.c: Ditto.
10744 * sh64-tdep.c: Ditto.
10745 * shnbsd-nat.c: Ditto.
10746 * sh-tdep.c: Ditto.
10747 * sh-tdep.h: Ditto.
10748 * solib.c: Ditto.
10749 * solib-darwin.c: Ditto.
10750 * solib-frv.c: Ditto.
10751 * solib.h: Ditto.
10752 * solib-irix.c: Ditto.
10753 * solib-osf.c: Ditto.
10754 * solib-pa64.c: Ditto.
10755 * solib-som.c: Ditto.
10756 * solib-spu.c: Ditto.
10757 * solib-sunos.c: Ditto.
10758 * solib-svr4.c: Ditto.
10759 * solist.h: Ditto.
10760 * sol-thread.c: Ditto.
10761 * somread.c: Ditto.
10762 * source.c: Ditto.
10763 * source.h: Ditto.
10764 * sparc64-linux-tdep.c: Ditto.
10765 * sparc64-tdep.c: Ditto.
10766 * sparc-linux-nat.c: Ditto.
10767 * sparc-linux-tdep.c: Ditto.
10768 * sparc-sol2-nat.c: Ditto.
10769 * sparc-sol2-tdep.c: Ditto.
10770 * sparc-tdep.c: Ditto.
10771 * sparc-tdep.h: Ditto.
10772 * spu-tdep.c: Ditto.
10773 * stabsread.c: Ditto.
10774 * stabsread.h: Ditto.
10775 * stack.c: Ditto.
10776 * symfile.c: Ditto.
10777 * symfile.h: Ditto.
10778 * symmisc.c: Ditto.
10779 * symtab.c: Ditto.
10780 * symtab.h: Ditto.
10781 * target.c: Ditto.
10782 * target-descriptions.c: Ditto.
10783 * target-descriptions.h: Ditto.
10784 * target.h: Ditto.
10785 * target-memory.c: Ditto.
10786 * terminal.h: Ditto.
10787 * thread.c: Ditto.
10788 * top.c: Ditto.
10789 * tracepoint.c: Ditto.
10790 * tracepoint.h: Ditto.
10791 * trad-frame.h: Ditto.
10792 * typeprint.c: Ditto.
10793
581e13c1
MS
107942011-01-11 Michael Snyder <msnyder@vmware.com>
10795
10796 * ui-file.c: Comment cleanup, mostly periods and spaces.
10797 * ui-file.h: Ditto.
10798 * ui-out.c: Ditto.
10799 * ui-out.h: Ditto.
10800 * utils.c: Ditto.
10801 * v850-tdep.c: Ditto.
10802 * valarith.c: Ditto.
10803 * valops.c: Ditto.
10804 * valprint.c: Ditto.
10805 * valprint.h: Ditto.
10806 * value.c: Ditto.
10807 * value.h: Ditto.
10808 * varobj.c: Ditto.
10809 * varobj.h: Ditto.
10810 * vax-tdep.c: Ditto.
10811 * vec.c: Ditto.
10812 * vec.h: Ditto.
10813 * version.h: Ditto.
10814 * windows-nat.c: Ditto.
10815 * windows-tdep.c: Ditto.
10816 * xcoffread.c: Ditto.
10817 * xcoffsolib.c: Ditto.
10818 * xml-support.c: Ditto.
10819 * xstormy16-tdep.c: Ditto.
10820 * xtensa-tdep.c: Ditto.
10821 * xtensa-tdep.h: Ditto.
10822
90e4670f
TJB
108232011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10824
10825 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10826 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10827
e09342b5
TJB
108282011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10829 Thiago Jung Bauermann <bauerman@br.ibm.com>
10830
10831 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10832 * breakpoint.h
e09342b5
TJB
10833 (struct breakpoint_ops) <resources_needed>: New method.
10834 Initialize to NULL in all existing breakpoint_ops instances.
10835 (struct breakpoint) <exact>: New field.
10836 (target_exact_watchpoints): Declare external global.
10837 * breakpoint.c (target_exact_watchpoints): New global flag.
10838 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10839 b->enable_state to bp_enabled before calling
10840 hw_watchpoint_used_count.
10841 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10842 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10843 if available.
10844 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10845 if the watchpoint is exact.
10846 (resources_needed_watchpoint): New function.
10847 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10848 (watch_command_1): Set b->exact if the user asked for an exact
10849 watchpoint and one can be set.
10850 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10851 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10852 the user asks for an exact watchpoint and one can be set. Return
10853 number of needed debug registers to watch the expression.
10854 * gdbtypes.c (is_scalar_type): New function, based on
10855 valprint.c:scalar_type_p.
10856 (is_scalar_type_recursive): New function.
10857 * gdbtypes.h (is_scalar_type_recursive): Declare.
10858 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10859 handle regions when ranged watchpoints are available.
10860 (create_watchpoint_request): New function.
10861 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10862 create_watchpoint_request.
10863 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10864 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10865 `set powerpc' and `show powerpc' commands.
10866 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10867 Mention documentation comment in the target macro.
10868 (target_region_ok_for_hw_watchpoint): Document return value.
10869
9fa40276
TJB
108702011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10871
10872 * breakpoint.c (update_watchpoint): Decide on using a software or
10873 hardware watchpoint after the bp_locations are created.
10874
77b06cd7
TJB
108752010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10876
10877 Convert hardware watchpoints to use breakpoint_ops.
10878 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10879 <insert_location>: ... this. Return int instead of void.
10880 Accept pointer to struct bp_location instead of pointer to
10881 struct breakpoint. Adapt all implementations.
f2eb0bc8 10882 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10883 <remove_location>: ... this. Accept pointer to struct bp_location
10884 instead of pointer to struct breakpoint. Adapt all implementations.
10885 * breakpoint.c (insert_catchpoint): Delete function.
10886 (insert_bp_location): Call the watchpoint or catchpoint's
10887 breakpoint_ops.insert method.
10888 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10889 breakpoint_ops.remove method.
10890 (insert_watchpoint, remove_watchpoint): New functions.
10891 (watchpoint_breakpoint_ops): New structure.
10892 (watch_command_1): Initialize the OPS field.
10893 * inf-child.c (inf_child_insert_fork_catchpoint)
10894 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10895 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10896 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10897 Delete functions.
10898 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10899 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10900 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10901 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10902 * target.c (update_current_target): Change default implementation of
10903 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10904 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10905 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10906 to_set_syscall_catchpoint to return_one.
10907 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10908 (debug_to_insert_exec_catchpoint): Report return value.
10909 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10910 (to_insert_exec_catchpoint): Change declaration to return int instead
10911 of void.
10912
9b20d036
MS
109132011-01-11 Michael Snyder <msnyder@vmware.com>
10914
10915 * arm-tdep.c: Internationalization.
10916 * c-lang.c: Ditto.
10917 * charset.c: Ditto.
10918 * fork-child.c: Ditto.
10919 * nto-procfs.c: Ditto.
10920 * ppc-sysv-tdep.c: Ditto.
10921 * procfs.c: Ditto.
10922 * remote-mips.c: Ditto.
10923 * remote.c: Ditto.
10924 * rs6000-nat.c: Ditto.
10925 * rs6000-tdep.c: Ditto.
10926 * target.c: Ditto.
10927 * valops.c: Ditto.
10928 * value.c: Ditto.
10929 * xml-support.c: Ditto.
10930 * mi/mi-cmd-break.c: Ditto.
10931 * mi/mi-cmd-var.c: Ditto.
10932 * mi/mi-interp.c: Ditto.
10933 * mi/mi-main.c: Ditto.
10934
dae477fe
AB
109352011-01-11 Andrew Burgess <aburgess@broadcom.com>
10936
10937 * remote-sim.c (gdbsim_store_register): Update API to
10938 sim_store_register to check more error conditions.
10939
0df8b418
MS
109402011-01-10 Michael Snyder <msnyder@vmware.com>
10941
10942 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10943 * nto-tdep.c: Ditto.
10944 * nto-tdep.h: Ditto.
10945 * objc-exp.y: Ditto.
10946 * objc-lang.c: Ditto.
10947 * objfiles.c: Ditto.
10948 * objfiles.h: Ditto.
10949 * observer.c: Ditto.
10950 * opencl-lang.c: Ditto.
10951 * osabi.c: Ditto.
10952 * parse.c: Ditto.
10953 * parser-defs.h: Ditto.
10954 * p-exp.y: Ditto.
10955 * p-lang.c: Ditto.
10956 * posix-hdep.c: Ditto.
10957 * ppcbug-rom.c: Ditto.
10958 * ppc-linux-nat.c: Ditto.
10959 * ppc-linux-tdep.c: Ditto.
10960 * ppc-linux-tdep.h: Ditto.
10961 * ppcnbsd-tdep.c: Ditto.
10962 * ppcobsd-tdep.c: Ditto.
10963 * ppcobsd-tdep.h: Ditto.
10964 * ppc-sysv-tdep.c: Ditto.
10965 * ppc-tdep.h: Ditto.
10966 * printcmd.c: Ditto.
10967 * proc-abi.c: Ditto.
10968 * proc-flags.c: Ditto.
10969 * procfs.c: Ditto.
10970 * proc-utils.h: Ditto.
10971 * progspace.h: Ditto.
10972 * prologue-value.c: Ditto.
10973 * prologue-value.h: Ditto.
10974 * psympriv.h: Ditto.
10975 * psymtab.c: Ditto.
10976 * p-typeprint.c: Ditto.
10977 * p-valprint.c: Ditto.
10978 * ravenscar-sparc-thread.c: Ditto.
10979 * ravenscar-thread.c: Ditto.
10980 * ravenscar-thread.h: Ditto.
10981 * record.c: Ditto.
10982 * regcache.c: Ditto.
10983 * regcache.h: Ditto.
10984 * remote.c: Ditto.
10985 * remote-fileio.c: Ditto.
10986 * remote-fileio.h: Ditto.
10987 * remote.h: Ditto.
10988 * remote-m32r-sdi.c: Ditto.
10989 * remote-mips.c: Ditto.
10990 * remote-sim.c: Ditto.
10991 * rs6000-aix-tdep.c: Ditto.
10992 * rs6000-nat.c: Ditto.
10993 * rs6000-tdep.c: Ditto.
10994
0d7a18f7
MS
109952011-01-10 Michael Snyder <msnyder@vmware.com>
10996
10997 * charset.c (validate): Internationalization.
10998 * coffread.c (read_one_sym): Ditto.
10999 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11000 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11001 * inflow.c (new_tty): Ditto.
11002 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11003 * m32c-tdep.c (m32c_return_value): Ditto.
11004 * mep-tdep.c (mep_store_return_value): Ditto.
11005 * score-tdep.c (score7_fetch_insn): Ditto.
11006 * ser-mingw.c (pipe_windows_open): Ditto.
11007 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11008 * spu-tdep.c (spu_register_type): Ditto.
11009 * tracepoint.c (trace_find_command): Ditto.
11010 * valarith.c (value_pos): Ditto.
11011
9a153e0b
JB
110122011-01-10 Joel Brobecker <brobecker@adacore.com>
11013
11014 * ada-valprint.c (printstr): Minor comment reformatting.
11015
35ecd2d6
MS
110162011-01-08 Michael Snyder <msnyder@vmware.com>
11017
11018 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11019 markup.
11020
1777feb0
MS
110212011-01-08 Michael Snyder <msnyder@vmware.com>
11022
11023 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11024 * hppa-hpux-tdep.c: Ditto.
11025 * hppa-linux-nat.c: Ditto.
11026 * hppa-linux-tdep.c: Ditto.
11027 * hppanbsd-tdep.c: Ditto.
11028 * hppa-tdep.c: Ditto.
11029 * hppa-tdep.h: Ditto.
11030 * hpux-thread.c: Ditto.
11031 * i386-cygwin-tdep.c: Ditto.
11032 * i386-darwin-nat.c: Ditto.
11033 * i386gnu-nat.c: Ditto.
11034 * i386-linux-nat.c: Ditto.
11035 * i386-linux-tdep.c: Ditto.
11036 * i386-nat.c: Ditto.
11037 * i386-nat.h: Ditto.
11038 * i386nbsd-tdep.c: Ditto.
11039 * i386-sol2-nat.c: Ditto.
11040 * i386-stub.c: Ditto.
11041 * i386-tdep.c: Ditto.
11042 * i386-tdep.h: Ditto.
11043 * i387-tdep.c: Ditto.
11044 * ia64-linux-nat.c: Ditto.
11045 * ia64-linux-tdep.c: Ditto.
11046 * ia64-tdep.c: Ditto.
11047 * infcall.c: Ditto.
11048 * infcall.h: Ditto.
11049 * infcmd.c: Ditto.
11050 * inferior.c: Ditto.
11051 * inferior.h: Ditto.
11052 * infloop.c: Ditto.
11053 * inflow.c: Ditto.
11054 * infrun.c: Ditto.
11055 * interps.c: Ditto.
11056 * interps.h: Ditto.
11057 * iq2000-tdep.c: Ditto.
11058 * irix5-nat.c: Ditto.
11059 * jit.c: Ditto.
11060 * jit.h: Ditto.
11061 * jv-exp.y: Ditto.
11062 * jv-lang.c: Ditto.
11063 * jv-lang.h: Ditto.
11064 * jv-typeprint.c: Ditto.
11065 * jv-valprint.c: Ditto.
11066 * language.c: Ditto.
11067 * language.h: Ditto.
11068 * linespec.c: Ditto.
11069 * linux-fork.c: Ditto.
11070 * linux-nat.c: Ditto.
11071 * linux-thread-db.c: Ditto.
11072 * lm32-tdep.c: Ditto.
11073
025bb325
MS
110742011-01-08 Michael Snyder <msnyder@vmware.com>
11075
11076 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11077 * m2-lang.c: Ditto.
11078 * m2-typeprint.c: Ditto.
11079 * m2-valprint.c: Ditto.
11080 * m32c-tdep.c: Ditto.
11081 * m32r-linux-nat.c: Ditto.
11082 * m32r-rom.c: Ditto.
11083 * m32r-tdep.c: Ditto.
11084 * m32r-tdep.h: Ditto.
11085 * m68hc11-tdep.c: Ditto.
11086 * m58klinux-nat.c: Ditto.
11087 * m68k-tdep.c: Ditto.
11088 * m88k-tdep.c: Ditto.
11089 * m88k-tdep.h: Ditto.
11090 * machoread.c: Ditto.
11091 * macrocmd.c: Ditto.
11092 * macroexp.c: Ditto.
11093 * macrotab.c: Ditto.
11094 * main.c: Ditto.
11095 * maint.c: Ditto.
11096 * mdebugread.c: Ditto.
11097 * mdebugread.h: Ditto.
11098 * memattr.c: Ditto.
11099 * memattr.h: Ditto.
11100 * memory-map.h: Ditto.
11101 * mep-tdep.c: Ditto.
11102 * microblaze-rom.c: Ditto.
11103 * microblaze-tdep.c: Ditto.
11104 * minsyms.c: Ditto.
11105 * mips-irix-tdep.c: Ditto.
11106 * mips-linux-nat.c: Ditto.
11107 * mips-linux-tdep.c: Ditto.
11108 * mips-linux-tdep.h: Ditto.
11109 * mipsnbsd-nat.c: Ditto.
11110 * mipsnbsd-tdep.c: Ditto.
11111 * mipsread.c: Ditto.
11112 * mips-tdep.c: Ditto.
11113 * mips-tdep.h: Ditto.
11114 * mn10300-linux-tdep.c: Ditto.
11115 * mn10300-tdep.c: Ditto.
11116 * mn10300-tdep.h: Ditto.
11117 * monitor.c: Ditto.
11118 * monitor.h: Ditto.
11119 * moxie-tdep.c: Ditto.
11120 * moxie-tdep.h: Ditto.
11121 * mt-tdep.c: Ditto.
11122
1642781b
MF
111232011-01-08 Mike Frysinger <vapier@gentoo.org>
11124
11125 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11126
394b0adb
JB
111272011-01-08 Robert Millan <rmh@gnu.org>
11128
11129 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11130
b670013c
MS
111312011-01-07 Michael Snyder <msnyder@vmware.com>
11132
11133 * charset.c (_initialize_charset): Fix typo in string.
11134
a743e542
MS
111352011-01-07 Michael Snyder <msnyder@vmware.com>
11136
11137 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11138 for i18n.
f2eb0bc8 11139 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11140 Split line so that operator goes to beginning of line.
11141 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11142 assignment out of if statement.
11143
0963b4bd
MS
111442011-01-07 Michael Snyder <msnyder@vmware.com>
11145
11146 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11147 * ada-lang.h: Ditto.
11148 * ada-tasks.c: Ditto.
11149 * ada-valprint.c: Ditto.
11150 * aix-threads.c: Ditto.
11151 * alpha-linux-nat.c: Ditto.
11152 * alpha-linux-tdep.c: Ditto.
11153 * alpha-mdebug-tdep.c: Ditto.
11154 * alpha-nat.c: Ditto.
11155 * alpha-osf1-tdep.c: Ditto.
11156 * alpha-tdep.c: Ditto.
11157 * alphabsd-nat.c: Ditto.
11158 * alphabsd-tdep.c: Ditto.
11159 * amd64-darwin-tdep.c: Ditto.
11160 * amd64-linux-nat.c: Ditto.
11161 * amd64-linux-tdep.c: Ditto.
11162 * amd64-sol2-tdep.c: Ditto.
11163 * amd64-tdep.c: Ditto.
11164 * amd64-fbsd-tdep.c: Ditto.
11165 * amd64-nbsd-tdep.c: Ditto.
11166 * amd64-obsd-tdep.c: Ditto.
11167 * amd64-linux-nat.c: Ditto.
11168 * amd64-linux-tdep.c: Ditto.
11169 * arm-tdep.c: Ditto.
11170 * arm-tdep.h: Ditto.
11171 * armnbsd-nat.c: Ditto.
11172 * avr-tdep.c: Ditto.
11173 * bfin-tdep.c: Ditto.
11174 * bsd-kvm.c: Ditto.
11175 * c-typeprintc: Ditto.
11176 * c-valprint.c: Ditto.
11177 * coff-pe-read.h: Ditto.
11178 * coffreead.c: Ditto.
11179 * cris-tdep.c: Ditto.
11180 * d-lang.c: Ditto.
11181 * darwin-nat-info.c: Ditto.
11182 * darwin-nat.c: Ditto.
11183 * dbug-rom.c: Ditto.
11184 * dbxread.c: Ditto.
11185 * dcache.c: Ditto.
11186 * dcache.h: Ditto.
11187 * dec-thread.c: Ditto.
11188 * defs.h: Ditto.
11189 * demangle.c: Ditto.
11190 * dicos-tdep.c: Ditto.
11191 * dictionary.c: Ditto.
11192 * dictionary.h: Ditto.
11193 * dink32-rom.c: Ditto.
11194 * disasm.c: Ditto.
11195 * doublest.c: Ditto.
11196 * dsrec.c: Ditto.
11197 * dummy-frame.c: Ditto.
11198 * dwarf2-frame.c: Ditto.
11199 * dwarf2expr.c: Ditto.
11200 * dwarf2loc.c: Ditto.
11201 * dwarf2read.c: Ditto.
11202 * elfread.c: Ditto.
11203 * environ.c: Ditto.
11204 * eval.c: Ditto.
11205 * event-top.h: Ditto.
11206 * exceptions.c: Ditto.
11207 * exceptions.h: Ditto.
11208 * exec.c: Ditto.
11209 * expprint.c: Ditto.
11210 * expression.h: Ditto.
11211 * f-exp.y: Ditto.
11212 * f-lang.c: Ditto.
11213 * f-lang.h: Ditto.
11214 * f-typeprint.c: Ditto.
11215 * f-valprint.c: Ditto.
11216 * fbsd-nat.c: Ditto.
11217 * findvar.c: Ditto.
11218 * fork-child.c: Ditto.
11219 * frame.c: Ditto.
11220 * frame.h: Ditto.
11221 * frv-linux-tdep.c: Ditto.
11222 * frv-tdep.c: Ditto.
11223 * gcore.c: Ditto.
11224 * gdb-stabs.h: Ditto.
11225 * gdb_assert.h: Ditto.
11226 * gdb_string.h: Ditto.
11227 * gdb_thread_db.h: Ditto.
11228 * gdb_wait.h: Ditto.
11229 * gdbarch.sh: Ditto.
11230 * gdbcore.h: Ditto.
11231 * gdbthread.h: Ditto.
11232 * gdbtypes.c: Ditto.
11233 * gdbtypes.h: Ditto.
11234 * gnu-nat.c: Ditto.
11235 * gnu-nat.h: Ditto.
11236 * gnu-v2-abi.c: Ditto.
11237 * gnu-v3-abi.c: Ditto.
11238 * go32-nat.c: Ditto.
11239 * gdbarch.c: Regenerate.
11240 * gdbarch.h: Regenerate.
11241
ac74f770
MS
112422011-01-07 Michael Snyder <msnyder@vmware.com>
11243
11244 * ax-gdb.c: Adjust some long output strings.
11245 * breakpoint.c: Ditto.
11246 * charset.c: Ditto.
11247 * cp-abi.c: Ditto.
11248 * infcall.c: Ditto.
11249 * infrun.c: Ditto.
11250 * linux-nat.c: Ditto.
11251 * solib-pa64.c: Ditto.
11252 * solib-som.c: Ditto.
11253
d8e22779
TT
112542011-01-06 Tom Tromey <tromey@redhat.com>
11255
11256 PR python/12367:
11257 * NEWS: Add item.
11258 * python/python.c (GdbMethods): Add "newest_frame" method.
11259 * python/python-internal.h (gdbpy_newest_frame): Declare.
11260 * python/py-frame.c (gdbpy_newest_frame): New function.
11261
a255712f
PP
112622010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11263
11264 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11265 * jit.c (jit_debug): New variable.
11266 (show_jit_debug): New function.
11267 (struct target_buffer): Use ULONGEST.
11268 (bfd_open_from_target_memory): Likewise.
11269 (jit_register_code, jit_inferior_init): Add debug output.
11270 (_initialize_jit): Register "debug jit" command.
11271
ccfc3d6e
TT
112722011-01-06 Tom Tromey <tromey@redhat.com>
11273
11274 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11275 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11276 and ARCH_FRAME.
11277
57126e4a
TT
112782011-01-06 Tom Tromey <tromey@redhat.com>
11279
11280 * python/py-frame.c (frapy_block): Use get_frame_block.
11281
16dfc9ce
JB
112822011-01-06 Joel Brobecker <brobecker@adacore.com>
11283
11284 Do not stop on SIGPRIO signals by default
11285 * infrun.c (_initialize_infrun): Unset signal_stop and
11286 signal_print for TARGET_SIGNAL_PRIO.
11287
b1ce2347
JB
112882011-01-06 Joel Brobecker <brobecker@adacore.com>
11289
11290 * ada-tasks.c: Fix style violation in comment.
11291
8f7e195f
JB
112922011-01-06 Joel Brobecker <brobecker@adacore.com>
11293
11294 * linespec.c (decode_compound, find_method): Remove trailing \n
11295 at end of error string.
11296 * solib-irix.c (irix_current_sos): Likewise.
11297 * varobj.c (uninstall_variable): Likewise.
11298
e9bdf92c
JB
112992011-01-06 Joel Brobecker <brobecker@adacore.com>
11300
11301 * copyright.py: New script.
11302 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11303 Launch emacs without exec'ing. Call copyright.py afterwards.
11304
3e43a32a
MS
113052011-01-05 Michael Snyder <msnyder@vmware.com>
11306
11307 * addrmap.c: Shorten lines of >= 80 columns.
11308 * arch-utils.c: Ditto.
11309 * arch-utils.h: Ditto.
11310 * ax-gdb.c: Ditto.
11311 * ax-general.c: Ditto.
11312 * bcache.c: Ditto.
11313 * blockframe.c: Ditto.
11314 * breakpoint.c: Ditto.
11315 * buildsym.c: Ditto.
11316 * c-lang.c: Ditto.
11317 * c-typeprint.c: Ditto.
11318 * charset.c: Ditto.
11319 * coffread.c: Ditto.
11320 * command.h: Ditto.
11321 * corelow.c: Ditto.
11322 * cp-abi.c: Ditto.
11323 * cp-namespace.c: Ditto.
11324 * cp-support.c: Ditto.
11325 * dbug-rom.c: Ditto.
11326 * dbxread.c: Ditto.
11327 * defs.h: Ditto.
11328 * dfp.c: Ditto.
11329 * dfp.h: Ditto.
11330 * dictionary.c: Ditto.
11331 * disasm.c: Ditto.
11332 * doublest.c: Ditto.
11333 * dwarf2-frame.c: Ditto.
11334 * dwarf2expr.c: Ditto.
11335 * dwarf2loc.c: Ditto.
11336 * dwarf2read.c: Ditto.
11337 * elfread.c: Ditto.
11338 * eval.c: Ditto.
11339 * event-loop.c: Ditto.
11340 * event-loop.h: Ditto.
11341 * exceptions.h: Ditto.
11342 * exec.c: Ditto.
11343 * expprint.c: Ditto.
11344 * expression.h: Ditto.
11345 * f-lang.c: Ditto.
11346 * f-valprint.c: Ditto.
11347 * findcmd.c: Ditto.
11348 * frame-base.c: Ditto.
11349 * frame-unwind.c: Ditto.
11350 * frame-unwind.h: Ditto.
11351 * frame.c: Ditto.
11352 * frame.h: Ditto.
11353 * gcore.c: Ditto.
11354 * gdb-stabs.h: Ditto.
11355 * gdb_assert.h: Ditto.
11356 * gdb_dirent.h: Ditto.
11357 * gdb_obstack.h: Ditto.
11358 * gdbcore.h: Ditto.
11359 * gdbtypes.c: Ditto.
11360 * gdbtypes.h: Ditto.
11361 * inf-ttrace.c: Ditto.
11362 * infcall.c: Ditto.
11363 * infcmd.c: Ditto.
11364 * inflow.c: Ditto.
11365 * infrun.c: Ditto.
11366 * inline-frame.h: Ditto.
11367 * language.c: Ditto.
11368 * language.h: Ditto.
11369 * libunwind-frame.c: Ditto.
11370 * libunwind-frame.h: Ditto.
11371 * linespec.c: Ditto.
11372 * linux-nat.c: Ditto.
11373 * linux-nat.h: Ditto.
11374 * linux-thread-db.c: Ditto.
11375 * machoread.c: Ditto.
11376 * macroexp.c: Ditto.
11377 * macrotab.c: Ditto.
11378 * main.c: Ditto.
11379 * maint.c: Ditto.
11380 * mdebugread.c: Ditto.
11381 * memattr.c: Ditto.
11382 * minsyms.c: Ditto.
11383 * monitor.c: Ditto.
11384 * monitor.h: Ditto.
11385 * objfiles.c: Ditto.
11386 * objfiles.h: Ditto.
11387 * osabi.c: Ditto.
11388 * p-typeprint.c: Ditto.
11389 * p-valprint.c: Ditto.
11390 * parse.c: Ditto.
11391 * printcmd.c: Ditto.
11392 * proc-events.c: Ditto.
11393 * procfs.c: Ditto.
11394 * progspace.c: Ditto.
11395 * progspace.h: Ditto.
11396 * psympriv.h: Ditto.
11397 * psymtab.c: Ditto.
11398 * record.c: Ditto.
11399 * regcache.c: Ditto.
11400 * regcache.h: Ditto.
11401 * remote-fileio.c: Ditto.
11402 * remote.c: Ditto.
11403 * ser-mingw.c: Ditto.
11404 * ser-tcp.c: Ditto.
11405 * ser-unix.c: Ditto.
11406 * serial.c: Ditto.
11407 * serial.h: Ditto.
11408 * solib-frv.c: Ditto.
11409 * solib-irix.c: Ditto.
11410 * solib-osf.c: Ditto.
11411 * solib-pa64.c: Ditto.
11412 * solib-som.c: Ditto.
11413 * solib-sunos.c: Ditto.
11414 * solib-svr4.c: Ditto.
11415 * solib-target.c: Ditto.
11416 * solib.c: Ditto.
11417 * somread.c: Ditto.
11418 * source.c: Ditto.
11419 * stabsread.c: Ditto.
11420 * stabsread.c: Ditto.
11421 * stack.c: Ditto.
11422 * stack.h: Ditto.
11423 * symfile-mem.c: Ditto.
11424 * symfile.c: Ditto.
11425 * symfile.h: Ditto.
11426 * symmisc.c: Ditto.
11427 * symtab.c: Ditto.
11428 * symtab.h: Ditto.
11429 * target-descriptions.c: Ditto.
11430 * target-memory.c: Ditto.
11431 * target.c: Ditto.
11432 * target.h: Ditto.
11433 * terminal.h: Ditto.
11434 * thread.c: Ditto.
11435 * top.c: Ditto.
11436 * tracepoint.c: Ditto.
11437 * tracepoint.h: Ditto.
11438 * ui-file.c: Ditto.
11439 * ui-file.h: Ditto.
11440 * ui-out.h: Ditto.
11441 * user-regs.c: Ditto.
11442 * user-regs.h: Ditto.
11443 * utils.c: Ditto.
11444 * valarith.c: Ditto.
11445 * valops.c: Ditto.
11446 * valprint.c: Ditto.
11447 * valprint.h: Ditto.
11448 * value.c: Ditto.
11449 * varobj.c: Ditto.
11450 * varobj.h: Ditto.
11451 * vec.h: Ditto.
11452 * xcoffread.c: Ditto.
11453 * xcoffsolib.c: Ditto.
11454 * xcoffsolib.h: Ditto.
11455 * xml-syscall.c: Ditto.
11456 * xml-tdesc.c: Ditto.
11457
9a2b4c1b
MS
114582011-01-05 Michael Snyder <msnyder@vmware.com>
11459
11460 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11461 * cli/cli-decode.c: Ditto.
11462 * cli/cli-dump.c: Ditto.
11463 * cli/cli-logging.c: Ditto.
11464 * cli/cli-script.c: Ditto.
11465 * cli/cli-setshow.c: Ditto.
11466 * common/signals.c: Ditto.
11467 * mi/mi-cmd-break.c: Ditto.
11468 * mi/mi-cmd-disas.c: Ditto.
11469 * mi/mi-cmd-stack.c: Ditto.
11470 * mi/mi-cmd-var.c: Ditto.
11471 * mi/mi-cmds.c: Ditto.
11472 * mi/mi-common.h: Ditto.
11473 * mi/mi-console.c: Ditto.
11474 * mi/mi-interp.c: Ditto.
11475 * mi/mi-main.c: Ditto.
11476 * osf-share/cma_attr.c: Ditto.
11477 * osf-share/cma_deb_core.h: Ditto.
11478 * osf-share/cma_debug_client.h: Ditto.
11479 * osf-share/cma_handle.h: Ditto.
11480 * osf-share/cma_mutex.h: Ditto.
11481 * osf-share/cma_stack_int.h: Ditto.
11482 * osf-share/cma_tcb_defs.h: Ditto.
11483 * python/py-auto-load.c: Ditto.
11484 * python/py-breakpoint.c: Ditto.
11485 * python/py-cmd.c: Ditto.
11486 * python/py-frame.c: Ditto.
11487 * python/py-objfile.c: Ditto.
11488 * python/py-param.c: Ditto.
11489 * python/py-progspace.c: Ditto.
11490 * python/py-symbol.c: Ditto.
11491 * python/py-value.c: Ditto.
11492 * python/python-internal.h: Ditto.
11493 * python/python.c: Ditto.
11494 * tui/tui-data.c: Ditto.
11495 * tui/tui-disasm.c: Ditto.
11496 * tui/tui-hooks.c: Ditto.
11497 * tui/tui-io.c: Ditto.
11498 * tui/tui-layout.c: Ditto.
11499 * tui/tui-regs.c: Ditto.
11500 * tui/tui-source.c: Ditto.
11501 * tui/tui-stack.c: Ditto.
11502 * tui/tui-win.c: Ditto.
11503 * tui/tui-windata.c: Ditto.
11504 * tui/tui-winsource.c: Ditto.
11505
44944448
JB
115062011-01-05 Joel Brobecker <brobecker@adacore.com>
11507
11508 * configure.ac, gdb.1: Copyright year update.
11509
ebedcab5
JK
115102011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11511
11512 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11513 this_pc_in_block, morestack_msym and morestack_name. Check for
11514 "__morestack" minimal symbol there.
11515
e5cc9f32
JB
115162011-01-03 Joel Brobecker <brobecker@adacore.com>
11517
11518 * symfile.c (find_sym_fns): Add call to dont_repeat.
11519
7b6bb8da
JB
115202011-01-01 Joel Brobecker <brobecker@adacore.com>
11521
11522 Copyright year update in most files (performed by copyright.sh).
11523
71ce852c
JB
115242011-01-01 Joel Brobecker <brobecker@adacore.com>
11525
11526 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11527
c3c1ebe8 11528For older changes see ChangeLog-2010.
c906108c
SS
11529\f
11530Local Variables:
11531mode: change-log
11532left-margin: 8
11533fill-column: 74
11534version-control: never
57da7796 11535coding: utf-8
c906108c 11536End:
This page took 1.88733 seconds and 4 git commands to generate.