ChangeLog:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c642a434
UW
12011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
4 (S390_LAST_BREAK_REGNUM): Likewise.
5 (S390_SYSTEM_CALL_REGNUM): Likewise.
6 (S390_NUM_REGS): Update.
7
8 (s390_regmap_last_break): Add declaration.
9 (s390x_regmap_last_break): Likewise.
10 (s390_regmap_system_call): Likewise.
11
12 (tdesc_s390_linux32v1): Add declaration.
13 (tdesc_s390_linux32v2): Likewise.
14 (tdesc_s390_linux64v1): Likewise.
15 (tdesc_s390_linux64v2): Likewise.
16 (tdesc_s390x_linux64v1): Likewise.
17 (tdesc_s390x_linux64v2): Likewise.
18
19 * s390-tdep.c: Include new target description files
20 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
21 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
22 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
23 (s390_cannot_store_register): New function.
24 (s390_write_pc): Likewise.
25 (s390_dwarf_regmap): Add fields for new registers.
26 (s390_regmap_gregset): Likewise.
27 (s390x_regmap_gregset): Likewise.
28 (s390_regmap_fpregset): Likewise.
29 (s390_regmap_upper): Likewise.
30 (s390_regmap_last_break): New variable.
31 (s390x_regmap_last_break): Likewise.
32 (s390_regmap_system_call): Likewise.
33 (s390_last_break_regset): Likewise.
34 (s390x_last_break_regset): Likewise.
35 (s390_system_call_regset): Likewise.
36 (s390_upper_regset_sections): Rename to ...
37 (s390_linux64_regset_sections): ... this.
38 (s390_linux32_regset_sections): New variable.
39 (s390x_linux64_regset_sections): Likewise.
40 (s390_linux32v1_regset_sections): Likewise.
41 (s390_linux32v2_regset_sections): Likewise.
42 (s390_linux64v1_regset_sections): Likewise.
43 (s390_linux64v2_regset_sections): Likewise.
44 (s390x_linux64v1_regset_sections): Likewise.
45 (s390x_linux64v2_regset_sections): Likewise.
46 (s390_regset_from_core_section): Handle .reg-s390-last-break and
47 .reg-s390-system-call core file sections.
48 (s390_core_read_description): Check for presence of
49 .reg-s390-last-break and .reg-s390-system-call core file
50 sections and return appropriate target description.
51 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
52 "last_break" and "system_call" in target description. Install
53 appropriate gdbarch_core_regset_sections array.
54 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
55 (_initialize_s390_tdep): Initialize additional target descriptions.
56
57 * s390-nat.c: Include "elf/common.h".
58 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
59 (have_regset_last_break): New static variable.
60 (have_regset_system_call): Likewise.
61 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
62 (s390_native_collect): Likewise.
63 (fetch_regset, store_regset, check_regset): New functions.
64 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
65 and S390_SYSTEM_CALL_REGNUM.
66 (s390_linux_store_inferior_registers): Likewise.
67 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
68 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
69
70 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
71 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
72 (s390-linux32v1-expedite): Define.
73 (s390-linux32v2-expedite): Likewise.
74 (s390-linux64v1-expedite): Likewise.
75 (s390-linux64v2-expedite): Likewise.
76 (s390x-linux64v1-expedite): Likewise.
77 (s390x-linux64v2-expedite): Likewise.
78
79 * features/s390-linux32.xml: Add orig_r2 register.
80 * features/s390-linux64.xml: Likewise.
81 * features/s390x-linux64.xml: Likewise.
82 * features/s390-linux32v1.xml: New file.
83 * features/s390-linux32v2.xml: Likewise.
84 * features/s390-linux64v1.xml: Likewise.
85 * features/s390-linux64v2.xml: Likewise.
86 * features/s390x-linux64v1.xml: Likewise.
87 * features/s390x-linux64v2.xml: Likewise.
88
89 * features/s390-linux32.c: Regenerate.
90 * features/s390-linux64.c: Likewise.
91 * features/s390x-linux64.c: Likewise.
92 * features/s390-linux32v1.c: New generated file.
93 * features/s390-linux32v2.c: Likewise.
94 * features/s390-linux64v1.c: Likewise.
95 * features/s390-linux64v2.c: Likewise.
96 * features/s390x-linux64v1.c: Likewise.
97 * features/s390x-linux64v2.c: Likewise.
98
99 * regformats/s390-linux32.dat: Regenerate.
100 * regformats/s390-linux64.dat: Regenerate.
101 * regformats/s390x-linux64.dat: Regenerate.
102 * regformats/s390-linux32v1.dat: New generated file.
103 * regformats/s390-linux32v2.dat: Likewise.
104 * regformats/s390-linux64v1.dat: Likewise.
105 * regformats/s390-linux64v2.dat: Likewise.
106 * regformats/s390x-linux64v1.dat: Likewise.
107 * regformats/s390x-linux64v2.dat: Likewise.
108
336060f3
PA
1092011-12-05 Pedro Alves <pedro@codesourcery.com>
110
111 * linux-nat.c (resume_stopped_resumed_lwps): Call
112 registers_changed.
113
049e32d3
PA
1142011-12-05 Pedro Alves <pedro@codesourcery.com>
115
116 * breakpoint.c: Include record.h.
117 (breakpoints_always_inserted_mode): Return false when the record
118 target is in use.
119
5c03c7f9 1202011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
121
122 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
123 Reinstate perror_with_name call on ptrace error. Remove #if 0.
124 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
125 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
126
fbbd034e
AS
1272011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
128
129 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
130 `i'(-Wshadow).
131
a5ff8356 1322011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
133
134 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
135
1362011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
137
a5ff8356
AS
138 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
139 of `tdep'(-Wshadow).
140
93f2a35e
JK
1412011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
142
143 Fix compilation --without-expat.
144 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
145 from ...
146 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
147
2268b414
JK
1482011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
149 Jan Kratochvil <jan.kratochvil@redhat.com>
150
151 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
152 * features/library-list-svr4.dtd: New file.
153 * remote.c (PACKET_qXfer_libraries_svr4): New.
154 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
155 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
156 * solib-svr4.c (struct svr4_library_list): New.
157 [HAVE_LIBEXPAT]: Include xml-support.h.
158 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
159 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
160 [HAVE_LIBEXPAT] (svr4_library_list_children)
161 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
162 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
163 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
164 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
165 (svr4_read_so_list): Extend the corruption message by addresses.
166 (svr4_current_sos): New variable library_list, call
167 svr4_current_sos_via_xfer_libraries.
168 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
169
585861ea
JK
1702011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
171
172 PR threads/13448
173 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
174 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
175
9750bca9
JK
1762011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
177
178 PR breakpoints/13346
179 * dwarf2read.c (process_psymtab_comp_unit): Set
180 PSYMTABS_ADDRMAP_SUPPORTED.
181 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
182 validity. New field psymtabs_addrmap_supported.
183 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
184 psymtabs_addrmap_supported.
185 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
186 !PSYMTABS_ADDRMAP_SUPPORTED.
187 (dump_psymtab, maintenance_info_psymtabs): Print also
188 psymtabs_addrmap_supported.
189
f28c316a
DE
1902011-12-01 Doug Evans <dje@google.com>
191
192 * python/py-type.c (type_object_methods): Fix "array" doc string.
193
fc0ae648
AB
1942011-12-01 Andrew Burgess <aburgess@broadcom.com>
195
196 * source.c (print_source_lines_base): Fix missing braces on else
197 clause leading to additional output.
198
d6db1fab
UW
1992011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
200
201 * s390-nat.c (SUBOFF): Remove.
202 (s390_native_supply, s390_native_collect): New functions.
203 (supply_gregset, supply_fpregset): Use s390_native_supply.
204 (fill_gregset, fill_fpregset): Use s390_native_collect.
205
206 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
207 (s390_unwind_pseudo_register): New function.
208 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
209 registers instead of PC and CC.
210 (s390_backchain_frame_unwind_cache): Likewise.
211 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
212 full GPR pseudos.
213 (s390_trad_frame_prev_register): New function.
214 (s390_frame_prev_register): Use it.
215 (s390_sigtramp_frame_prev_register): Likewise.
216 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
217 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
218 special callback to unwind any pseudo.
219
220 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
221 * features/s390-core64.xml: Likewise.
222 * features/s390x-core64.xml: Likewise.
223 * features/s390-linux32.c: Regenerate.
224 * features/s390-linux64.c: Likewise.
225 * features/s390x-linux64.c: Likewise.
226
1dd635ac
UW
2272011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
228
229 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
230
0161e4b9
UW
2312011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
232
233 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
234 instruction. Add more diagnostic output.
235
0c36327f
AS
2362011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
237
238 * MAINTAINERS (Write After Approval): Add myself to the list.
239
b4264740
SD
2402011-11-29 Sanjoy Das <sdas@igalia.com>
241
242 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
243 (jit_bfd_try_read_symtab): Fix comments.
244
87326c78
DD
2452011-11-28 DJ Delorie <dj@redhat.com>
246
247 * NEWS: Mention RL78 simulator.
248
1e3a8f45
JB
2492011-11-28 Joel Brobecker <brobecker@adacore.com>
250
251 * symfile.h (struct quick_symbol_functions): Fix the documentation
252 of field map_matching_symbols, as symbols are sorted using
253 strcmp_iw_ordered, not strcmp_iw.
254
265e52c3
JB
2552011-11-28 Paul Hilfinger <hilfinger@adacore.com>
256
257 * symfile.h (struct quick_symbol_functions): Update the
258 documentation for field map_matching_symbols.
259
1a1d5513
JB
2602011-11-28 Joel Brobecker <brobecker@adacore.com>
261
262 * ada-lang.c (compare_names): Fix wrong return value in case
263 string1 starts with the same contents as string2, followed
264 by an underscore that do not start a symbol name suffix.
265
5d9c5995
PM
2662011-11-28 Phil Muldoon <pmuldoon@redhat.com>
267
268 PR python/13369
269 PR python/13374
270
271 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
272 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
273 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
274 exceptions.
275 * python/py-type.c (typy_strip_typedefs): Ditto.
276 (typy_legacy_template_argument): Ditto.
277 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
278 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
279
2bf50f6f
JB
2802011-11-27 Joel Brobecker <brobecker@acacore.com>
281
282 * remote.c (remote_get_tracepoint_status): Delete addrbuf
283 local variable. Avoid use of sprintf_vma.
284
744ab88c
SD
2852011-11-27 Sanjoy Das <sdas@igalia.com>
286
287 Fix regression in jit.exp.
288 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
289 (jit_register_code): Set the jit_objfile_data field to the correct
290 value.
291
46ad3598
UW
2922011-11-25  Uros Bizjak  <ubizjak@gmail.com>
293
294 * alpha-tdep.c (br_opcode): New.
295 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
296 (alpha_deal_with_atomic_sequence): New function.
297 (alpha_gdbarch_init): Handle single stepping of atomic sequences
298 with alpha_deal_with_atomic_sequence.
299
e4c5f296
TG
3002011-11-24 Tristan Gingold <gingold@adacore.com>
301
302 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
303 fields. Add oso_sym, end_sym and nbr_syms.
304 (macho_register_oso): Change interface.
305 (macho_symtab_add_minsym): New function.
306 (macho_symtab_read): Rewritten.
307 (get_archive_prefix_len): Remove trailing blanks.
308 (oso_el_compare_name): Add comment.
309 (struct macho_sym_hash_entry): New structure.
310 (macho_relocate_common_syms): Remove.
311 (macho_sym_hash_newfunc): New function.
312 (macho_resolve_oso_sym_with_minsym): Likewise.
313 (macho_add_oso_symfile): Rewritten.
314 (macho_symfile_read_all_oso): Remove trailing blanks.
315 Adjust code to free oso vector.
316 (macho_symfile_read): Likewise.
317 Move code to initialize minimal symbol
318
130854df
MR
3192011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
320
321 * mips-tdep.c (extended_offset): Fix formatting.
322
3d7bb9d9
DE
3232011-11-23 Doug Evans <dje@google.com>
324
325 * dwarf2read.c (dw2_lookup_symtab): Add comment.
326 (dw2_expand_symtabs_with_filename): Ditto.
327 (dw2_expand_symtabs_matching): Ditto.
328 (dw2_map_symbol_filenames): Ditto.
329
1fbf5ada
JB
3302011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
331
332 * ada-lang.c (assign_aggregate): Minor reformatting.
333
d984108d
JB
3342011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
335
336 * ada-lang.c (assign_aggregate): Remove declaration of local
337 variable `i' which is shadowing another variable with the same
338 name declared in the outer scope.
339
18af8284
JB
3402011-11-23 Joel Brobecker <brobecker@adacore.com>
341
342 * ada-lang.c (get_base_type): Renames base_type. Adjust all
343 calls throughout this file.
344
1fc7b5d7
JB
3452011-11-23 Joel Brobecker <brobecker@adacore.com>
346
347 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
348 FormatMessage.
349
36dfb11c
TT
3502011-11-22 Tom Tromey <tromey@redhat.com>
351
352 PR mi/8444:
353 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
354 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
355 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
356 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
357 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
358 (print_it_catch_syscall, print_it_catch_exec)
359 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
360 (bpstat_print): Add 'kind' argument. Handle
361 TARGET_WAITKIND_LOADED.
362 * infrun.c (normal_stop): Update for bpstat_print change. Don't
363 handle TARGET_WAITKIND_LOADED here.
364 * breakpoint.h (bpstat_print): Update.
365
5bd6aa83
TT
3662011-11-22 Tom Tromey <tromey@redhat.com>
367
368 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
369
f5afdc18
TT
3702011-11-22 Tom Tromey <tromey@redhat.com>
371
372 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
373 Use static_assert to check the size of
374 async_reason_string_lookup.
375 * common/gdb_assert.h (static_assert): New macro.
376
a3769e0c
AM
3772011-11-22 Alan Modra <amodra@gmail.com>
378
379 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
380 destination calculation. Don't expect >> to sign extend. Don't
381 add a break if branch lands inside the sequence anywhere.
382
56767571
KS
3832011-11-21 Keith Seitz <keiths@redhat.com>
384
385 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
386 -var-evaluate-expression of an enumeration and fix expected result.
387 * gdb.mi/mi2-varvdisplay.exp: Likewise.
388
8443c207
KY
3892011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
390
391 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
392 the case where osdata->items is empty. Rename column names to a
393 canonical form to avoid problems with unusual column names.
394
97643830
YQ
3952011-11-21 Yao Qi <yao@codesourcery.com>
396
397 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
398
f196051f
SS
3992011-11-20 Stan Shebs <stan@codesourcery.com>
400
401 * NEWS: Mention tracepoint additions.
402 * breakpoint.h (struct tracepoint): New field traceframe_usage.
403 * breakpoint.c (print_one_breakpoint_location): Identify
404 tracepoints as such when reporting hit counts, report
405 trace buffer usage.
406 (create_tracepoint_from_upload): Copy status info.
407 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
408 add fields user_name, notes, start_time, stop_time.
409 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
410 * tracepoint.c (trace_user): New global.
411 (trace_notes): New global.
412 (trace_stop_notes): New global.
413 (start_tracing): Add argument and trace note handling.
414 (stop_tracing): Ditto.
415 (trace_start_command): Add notes argument.
416 (trace_stop_command): Ditto.
417 (trace_status_command): Report additional status info.
418 (trace_status_mi): Similarly.
419 (trace_save): Update, record tracepoint status.
420 (set_disconnected_tracing): Call target method directly.
421 (send_disconnected_tracing_value): Remove.
422 (set_trace_user): New function.
423 (set_trace_notes): New function.
424 (set_trace_stop_notes): New function.
425 (parse_trace_status): Handle additional status.
426 (parse_tracepoint_status): New function.
427 (parse_tracepoint_definition): Call it.
428 (tfile_get_tracepoint_status): New function.
429 (init_tfile_ops): Use it.
430 (_initialize_tracepoint): Add new setshows.
431 * target.h (struct target_ops): New methods to_get_tracepoint_status
432 and to_set_trace_notes.
433 (target_get_tracepoint_status): New macro.
434 (target_set_trace_notes): New macro.
435 * target.c (update_current_target): Add new methods.
436 * remote.c (remote_get_tracepoint_status): New function.
437 (remote_set_trace_notes): New function.
438 (init_remote_ops): Add them.
439 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
440 (mi_cmd_trace_stop): Ditto.
441
3623dc3a
SD
4422011-11-20 Sanjoy Das <sdas@igalia.com>
443
444 * jit.c: Include regcache.h.
445 (jit_gdbarch_data, jit_frame_unwind): New static variables.
446 (jit_unwind_reg_set_impl, free_reg_value_impl)
447 (jit_unwind_reg_get_impl, jit_frame_sniffer)
448 (jit_frame_unwind_stop_reason, jit_frame_this_id)
449 (jit_frame_prev_register, jit_dealloc_cache)
450 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
451 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
452 jit_prepend_unwinder.
453 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
454
1825a88d
SD
4552011-11-20 Sanjoy Das <sdas@igalia.com>
456
457 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
458 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
459 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
460 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
461 (finalize_symtab, jit_object_close_impl)
462 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
463 (free_objfile_data): New functions.
464 (_initialize_jit): Register jit_objfile_data with a proper cleanup
465 function.
466
784c47ee
SD
4672011-11-20 Sanjoy Das <sdas@igalia.com>
468
469 * jit.c: Include gdb-dlfcn.h.
470 (loaded_jit_reader, reader_init_fn_sym): New static variables.
471 (jit_reader_load, jit_reader_load_command)
472 (jit_reader_unload_command): New functions.
473 (_initialize_jit): Add commands "jit-reader-load" and
474 "jit-reader-unload".
475
a2d08b9e
SD
4762011-11-20 Sanjoy Das <sdas@igalia.com>
477
478 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
479 * config.in: Add new #define HAVE_LIBDL.
480 * configure.ac: Add check for -ldl.
481 * configure: Re-generated by autoconf.
482 * gdb-dlfcn.c: New file.
483 * gdb-dlfcn.h: New file.
484
b8e0a31c
SD
4852011-11-20 Sanjoy Das <sdas@igalia.com>
486
487 * config.in: Add new #defines: JIT_READER_DIR and
488 JIT_READER_DIR_RELOCATABLE.
489 * configure.ac: New GDB directory entry for jit-reader-dir.
490 * configure: Re-generated by autoconf.
491 * jit.c: New static variable: const char *jit_reader_dir.
492 (_initialize_jit): Relocate jit_reader_dir.
493
f997c383
SD
4942011-11-20 Sanjoy Das <sdas@igalia.com>
495
496 * Makefile.in: Add jit-reader.h as a header. Have it installed in
497 $(includedir)/gdb.
498 * configure.ac: Generate a correct value for TARGET_PTR for
499 jit-reader.h. Tell configure to generate jit-reader.h from
500 jit-reader.in.
501 * configure: Re-generated by autoconf.
502 * jit-reader.in: New file.
503 * jit.c: Include jit-reader.h.
504
dc8c0494
SD
5052011-11-20 Sanjoy Das <sdas@igalia.com>
506
507 * MAINTAINERS (Write After Approval): Add myself to the list.
508
01efb936
UW
5092011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
510
511 * findvar.c (read_frame_register_value): Respect value_offset
512 of the register value. Remove big-endian special case.
513
732f3f12
TT
5142011-11-18 Tom Tromey <tromey@redhat.com>
515
516 PR build/7196:
517 * remote.c (putpkt_for_catch_errors): New function.
518 (remote_kill): Use it.
519
bfccc43c
YQ
5202011-11-18 Yao Qi <yao@codesourcery.com>
521
522 * breakpoint.c (create_breakpoint): Produce query message according to
523 breakpoint's type.
524 Allocate tracepoint per correct type.
525 Don't check SALs for pending fast tracepoints.
526 * tracepoint.c (process_tracepoint_on_disconnect): New.
527 (disconnect_tracing): Call process_tracepoint_on_disconnect.
528
3ea46bff
YQ
5292011-11-18 Yao Qi <yao@codesourcery.com>
530
531 * breakpoint.c (install_breakpoint): Add one more parameter so that
532 update_global_location_list is called conditionally.
533 (create_fork_vfork_event_catchpoint): Update.
534 (create_syscall_event_catchpoint): Update.
535 (create_breakpoint_sal): Update.
536 (create_breakpoint_sal): Update. Call do_cleanups before
537 install_breakpoint.
538 * ada-lang.c (create_ada_exception_catchpoint): Update.
539 * breakpoint.h (install_breakpoint): Update declaration.
540
598cfb71
UW
5412011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
542
543 * spu-tdep.c (spu_return_value): Fix handling of
544 TYPE_CALLING_CONVENTION annotation.
545
caf4328c
UW
5462011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
547
548 * skip.c (skip_function_command): Work around uninitialized
549 variable warning.
550
2b54dda2
DM
5512011-11-16 David S. Miller <davem@davemloft.net>
552
553 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
554 'tv_usec' to long for printf since these fields have a type which
555 varies.
556
93bf33fd
DE
5572011-11-15 Doug Evans <dje@google.com>
558
559 * buildsym.c (add_symbol_to_list): Delete outdated comment.
560
9cc10fd1
PK
5612011-11-15 Paul Koning <paul_koning@dell.com>
562
563 * python/py-type.c (typy_get_composite): New function.
564 (typy_nonzero): New function.
565 (typy_values): Rename from typy_fields.
566 (typy_fields): New function.
567 (typy_length): Raise exception if not struct, union, or enum type.
568 (typy_getitem): Ditto.
569 (typy_has_key): Ditto.
570 (typy_make_iter): Ditto.
571
c011a4f4
DE
5722011-11-15 Doug Evans <dje@google.com>
573
574 * NEWS: Mention new parameter basenames-may-differ.
575 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
576 ! basenames_may_differ.
577 * psymtab.c (lookup_partial_symtab): Ditto.
578 * symtab.c (lookup_symtab): Ditto.
579 (basenames_may_differ): New global.
580 (_initialize_symtab): New parameter basenames-may-differ.
581 * symtab.h (basenames_may_differ): Declare.
582
865ecab4
LM
5832011-11-15 Pedro Alves <pedro@codesourcery.com>
584 Luis Machado <lgustavo@codesourcery.com>
585
586 * auxv.c: Include observer.h.
587 (auxv_inferior_data_cleanup): New.
588 (invalidate_auxv_cache_inf): New.
589 (invalidate_auxv_cache): New.
590 (get_auxv_inferior_data): New.
591 (auxv_inferior_data): New static global.
592 (auxv_info): New structure.
593 (target_auxv_search): Use get_auxv_inferior_data instead of
594 target_read_alloc and don't free cached buffers.
595 (fprint_target_auxv): Likewise
596 (_initialize_auxv): Register per-inferior auxv cache and register
597 observers to invalidate auxv cache when needed.
598
ed59ded5
DE
5992011-11-14 Doug Evans <dje@google.com>
600
601 Make "!" an alias for "shell".
602 * NEWS: Add mention.
603 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
604 adding "!" command, always add it.
605 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
606 command of length one.
607
405f8e94
SS
6082011-11-14 Stan Shebs <stan@codesourcery.com>
609 Kwok Cheung Yeung <kcy@codesourcery.com>
610
611 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
612 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
613 the minimum instruction size for fast tracepoints.
614 * target.h (struct target_ops): Add new method
615 to_get_min_fast_tracepoint_insn_len.
616 (target_get_min_fast_tracepoint_insn_len): New.
617 * target.c (update_current_target): Set up new target operation.
618 * remote.c (remote_write_bytes_aux): Fix typo.
619 (remote_get_min_fast_tracepoint_insn_len): New.
620 (init_remote_ops): Initialize new field.
621
3e05895e
TT
6222011-11-14 Tom Tromey <tromey@redhat.com>
623
624 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
625 (encode_actions): Likewise.
626
1e4d1764
YQ
6272011-11-14 Yao Qi <yao@codesourcery.com>
628
629 * remote.c (struct remote_state): <install_in_trace> new field.
630 (PACKET_InstallInTrace): New enum value.
631 (remote_install_in_trace_feature): Support InstallInTrace.
632 (remote_supports_install_in_trace): Likewise.
633 (remote_protocol_features): Likewise.
634 (_initialize_remote): Likewise.
635 (remote_can_download_tracepoint): New.
636 * target.h (struct target): New field
637 `to_can_download_tracepoint'.
638 (target_can_download_tracepoint): New macro.
639 * target.c (update_current_target): Update.
640 * breakpoint.h (struct bp_location): Add comment on field
641 `duplicate'.
3ccd4ac6
YQ
642 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
643 and tracepoint.
1e4d1764
YQ
644 (remove_breakpoints): Don't remove tracepoints.
645 (tracepoint_locations_match ): New.
646 (breakpoint_locations_match): Call it.
647 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
648 (download_tracepoint_locations): New.
649 (update_global_location_list): Call it.
650 * tracepoint.c (find_matching_tracepoint): Delete.
651 (find_matching_tracepoint_location): Renamed from
652 find_matching_tracepoint. Return bp_location rather than
653 tracepoint.
654 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
655 tracepoint is found.
656
e8ba3115
YQ
6572011-11-14 Yao Qi <yao@codesourcery.com>
658
659 * target.h (struct target): <to_download_tracepoint> Change type
660 of parameter from tracepoint to bp_location.
661 * target.c (update_current_target): Update.
662 * tracepoint.c (start_tracing): Update.
663 * remote.c (remote_download_tracepoint): Remove loop for each location
664 of a tracepoint.
665
edcc485a
MR
6662011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
667
668 * i386-nat.c (i386_insert_hw_breakpoint): Call
669 i386_update_inferior_debug_regs.
670 (i386_remove_hw_breakpoint): Likewise.
671
3742cc8b
YQ
6722011-11-14 Yao Qi <yao@codesourcery.com>
673
674 * breakpoint.c (init_raw_breakpoint): Call
675 add_location_to_breakpoint to replace duplicated code.
676 (add_location_to_breakpoint): Adjust the breakpoint's
677 address prior to allocating a location.
678
71eba9c2 6792011-11-12 Matt Rice <ratmice@gmail.com>
680
681 * macrocmd.c (macro_no_macro_info): New function.
682 (macro_expand_command): Use macro_no_macro_info.
683 (macro_expand_once_command): Ditto.
684 (info_macro_command): Add argument processing,
685 move info_definitions_command here.
686 (_initialize_macrocmd): Remove info definitions command.
687 Add arguments to info macro help text.
688 * NEWS: Replace info definitions command with new info macro options.
689
731971ed
KS
6902011-11-11 Keith Seitz <keiths@redhat.com>
691
692 PR gdb/12843
693 * linespec.c (locate_first_half): Keep ':' if it looks
694 like it could be part of a Windows path starting with
695 a drive letter.
696
6953d224
PA
6972011-11-10 Pedro Alves <pedro@codesourcery.com>
698
699 * linux-nat.c (linux_nat_wait): Don't force waking up the event
700 loop when returning a TARGET_WAITKIND_NO_RESUMED.
701
0c94aa73
PA
7022011-11-10 Pedro Alves <pedro@codesourcery.com>
703
704 * target.c (target_waitstatus_to_string): Handle
705 TARGET_WAITKIND_NO_RESUMED.
706
f6b47be4
DE
7072011-11-10 Doug Evans <dje@google.com>
708
74e2f255
DE
709 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
710 `need_fullname'.
711 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
712 (map_partial_symbol_filenames): Ditto. All callers updated.
713 * psymtab.h (map_partial_symbol_filenames): Update prototype.
714 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
715 parameter need_fullname.
716
256f06f3
DE
717 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
718 * source.c (symtab_to_fullname): Ditto.
719
50f182aa
DE
720 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
721 * gdb-demangle.h: ... here. New file.
722 * demangle.c: #include "gdb-demangle.h".
723 (_initialize_demangler): Use initialize_file_ftype for prototype.
724 Move "set demangle" and "set asm-demangle" parameters here from utils.c
725 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
726 from utils.c
727 * utils.c: Update. #include "gdb-demangle.h".
728 * symtab.h (asm_demangle): Delete.
729 (demangle): Move declaration next to use.
730 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
731 * dwarf2read.c: #include "gdb-demangle.h".
732 * gnu-v2-abi.c: Ditto.
733 * jv-typeprint.c: Ditto.
734 * mdebugread.c: Ditto.
735 * p-typeprint.c: Ditto.
736 * stabsread.c: Ditto.
737 * printcmd.c: Ditto.
738 (asm_demangle): Delete declaration.
739 * tui/tui-stack.c: #include "gdb-demangle.h".
740
f6b47be4
DE
741 * python/py-type.c (typy_fields_items): Call check_typedef.
742
22355c90
JB
7432011-11-10 Joel Brobecker <brobecker@adacore.com>
744
745 * findvar.c (read_frame_register_value): Read the correct bytes
746 from registers on big-endian architectures.
747
bd119cf1 7482011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
749
750 * procfs.c (load_syscalls): Make a cleanup.
751 (open_procinfo_files): fd==0 is ok.
752
0a86f364
JB
7532011-11-10 Joel Brobecker <brobecker@adacore.com>
754
755 * procfs.c (iterate_over_mappings): Call do_cleanups before
756 returning.
757
9bc118a5
DE
7582011-11-09 Doug Evans <dje@google.com>
759
760 * gdbtypes.c (check_typedef): Document that this function can
761 throw an exception.
762
a7860e76
TT
7632011-11-09 Tom Tromey <tromey@redhat.com>
764
765 PR c++/13342:
766 * valops.c (value_full_object): Return early if real type is
767 smaller than the enclosing type.
768
60965737
YQ
7692011-11-08 Yao Qi <yao@codesourcery.com>
770
771 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
772
72a2e3dc
MI
7732011-11-08 Meador Inge <meadori@codesourcery.com>
774
775 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
776 register when the frame can't be determined.
777 * arm-tdep.c (arm_analyze_prologue): Ditto.
778
ce3b0ff7
SS
7792011-11-07 Stan Shebs <stan@codesourcery.com>
780
781 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
782
2b914b52
JB
7832011-11-07 Joel Brobecker <brobecker@adacore.com>
784
785 * infrun.c (handle_inferior_event): Minor reformatting.
786
6f809020
DE
7872011-11-05 Doug Evans <dje@google.com>
788
789 * source.c (forget_cached_source_info_for_objfile): Move call to
790 objfile->sf->qf->forget_cached_source_info outside of
791 ALL_OBJFILE_SYMTABS loop.
792 (forget_cached_source_info): Delete unused variable `s'.
793
75d12218
JK
7942011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
795
796 * i386-nat.c (dr_ref_count): Remove unused variable.
797
e565b837
DE
7982011-11-05 Doug Evans <dje@google.com>
799
800 * main.c (captured_main): Set lim_at_start before calling
801 make_command_stats_cleanup.
802
0a1c4d10
DE
8032011-11-04 Doug Evans <dje@google.com>
804
805 * utils.c: #include "timeval-utils.h".
806 (cmd_stats): Rename start_time to start_cpu_time.
807 New member start_wall_time.
808 (report_command_stats): Report wall time.
809 (make_command_stats_cleanup): Record start wall time.
810
a1d705ee
TT
8112011-11-04 Tom Tromey <tromey@redhat.com>
812
813 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
814
81de56be
RO
8152011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
816
817 * coff-pe-read.c: Include defs.h before bfd.h.
818
3ab1ec27
PM
8192011-11-04 Phil Muldoon <pmuldoon@redhat.com>
820
821 PR Python/13345
822
823 * python/python.c (python_run_simple_file): Expand tilde in path.
824
cd829959
PM
8252011-11-04 Phil Muldoon <pmuldoon@redhat.com>
826
827 PR Python/13363
828
829 * python/py-type.c (typy_lookup_type): Do not return a type in
830 an exception handler.
831
080ad648
JK
8322011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
833 Eli Zaretskii <eliz@gnu.org>
834
835 * linux-nat.c (_initialize_linux_nat): Improve help
836 for `info proc stat', `info proc status', `info proc cwd',
837 `info proc cmdline' and `info proc exe'.
838
3065dfb6
SS
8392011-11-02 Stan Shebs <stan@codesourcery.com>
840
841 String collection for tracepoints.
842 * NEWS: Mention string collection.
843 * common/ax.def (tracenz): New bytecode.
844 * ax-gdb.h (trace_string_kludge): Declare.
845 * ax-gdb.c: Include valprint.h and c-lang.h.
846 (trace_string_kludge): New global.
847 (gen_traced_pop): Add string case.
848 (agent_command): Add string case.
849 * tracepoint.h (decode_agent_options): Declare.
850 * tracepoint.c: Include cli-utils.h.
851 (decode_agent_options): New function.
852 (validate_actionline): Call it.
853 (encode_actions_1): Ditto.
854 * target.h (struct target_ops): New method to_supports_string_tracing.
855 (target_supports_string_tracing): New macro.
856 * target.c (update_current_target): Add to_supports_string_tracing.
857 * remote.c (struct remote_state): New field string_tracing.
858 (remote_string_tracing_feature): New function.
859 (remote_protocol_features): New feature tracenz.
860 (remote_supports_string_tracing): New function.
861 (init_remote_ops): Set to_supports_string_tracing.
862
f179e162
JK
8632011-11-02 Pedro Alves <pedro@codesourcery.com>
864 Jan Kratochvil <jan.kratochvil@redhat.com>
865
866 * linux-nat.c: Include cli/cli-utils.h.
867 (enum info_proc_what): New.
868 (linux_nat_info_proc_cmd): Rename to ...
869 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
870 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
871 status_f and stat_f from WHAT. Throw error on extra parameters.
872 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
873 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
874 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
875 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
876 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
877 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
878 `info proc cmdline', `info proc exe' and `info proc all' as real
879 subcommands of `info proc'.
880
7b35ec7f 8812011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
882
883 * Makefile.in: (SFILES): Add skip.c.
884 (HFILES_NO_SRCDIR): Add skip.h.
885 (COMMON_OBS): Add skip.o.
886 * skip.h, skip.c: New.
887 * breakpoint.h (set_default_breakpoint): Remove.
888 (get_sal_arch): Declare.
889 * breakpoint.c: Remove default_breakpoint_valid,
890 default_breakpoint_address, default_breakpoint_symtab,
891 default_breakpoint_line, default_breakpoint_pspace variables.
892 (get_sal_arch): Make public.
893 (set_default_breakpoint): Remove.
894 (parse_breakpoint_sals, create_breakpoint, clear_command,
895 decode_line_spec_1): Remove uses of default_breakpoint variables;
896 replaced with function calls into stack.c.
897 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
898 * cli/cli-cmds.c: Add skiplist.
899 (init_cmd_lists): Initialize skiplist.
900 (init_cli_cmds): Fix comment (classes of commands appear in
901 alphabetical order).
902 * infrun.c (handle_inferior_event): Add check that we don't step into
903 a function whose pc is marked for skip.
904 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
905 last_displayed_addr, last_displayed_symtab, last_displayed_line
906 variables.
907 (set_last_displayed_sal): New static function.
908 (print_frame_info): Switch call to set_default_breakpoint to call to
909 set_last_displayed_sal.
910 (clear_last_displayed_sal, last_displayed_sal_is_valid,
911 get_last_displayed_pspace, get_last_displayed_addr,
912 get_last_displayed_symtab, get_last_displayed_line,
913 get_last_displayed_sal): New public functions.
914 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
915 get_last_displayed_pspace, get_last_displayed_addr,
916 get_last_displayed_symtab, get_last_displayed_line,
917 get_last_displayed_sal): Declare.
918
b60e1588
JL
9192011-11-01 Justin Lebar <justin.lebar@gmail.com>
920
921 * MAINTAINERS (Write After Approval): Add myself to the list.
922
d31647d2
YQ
9232011-10-29 Yao Qi <yao@codesourcery.com>
924
925 * infcmd.c (disconnect_command): Call disconnect_tracing.
926
b1d96efd
JK
9272011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
928
929 Code cleanup.
930 * symtab.c (skip_prologue_sal): Code reformatting.
931
4dfb2365
JK
9322011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
933
934 PR symtab/13208
935 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
936 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
937 SAI.
938
0e5bf2a8
PA
9392011-10-28 Pedro Alves <pedro@codesourcery.com>
940
941 * linux-nat.c (linux_nat_filter_event): Remove `options'
942 parameter, and dead code that used it. If we're handling a
943 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
944 in our lwp list, re-add it.
945 (check_zombie_leaders): New.
946 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
947 wait for children with WNOHANG, and always wait for all children.
948 Don't check for no resumed children upfront. Simplify wait loop.
949 Check for zombie thread group leaders after handling all wait
950 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
951 unwaited-for children left.
952 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
953 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
954 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
955 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
956
821296b7
SA
9572011-10-28 Sterling Augustine <saugustine@google.com>
958
959 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
960 * symtab.c (free_completion_list): New function.
961 (do_free_completion_list): Likewise.
962 (default_make_symbol_completion_list_break_on): New variable
963 back_to. Call make_cleanup and discard_cleanups.
964 (make_source_files_completion_list): Likewise.
965
03c3051a
PK
9662011-10-28 Paul Koning <paul_koning@dell.com>
967
968 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
969 * NEWS: Mention deep_items.
970
8e7ebaf5
PA
9712011-10-28 Alen Skondro <askondro@gmail.com>
972
8de33dc2 973 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
974 defined.
975
e0c6ef61
MI
9762011-10-27 Meador Inge <meadori@codesourcery.com>
977
978 * MAINTAINERS (Write After Approval): Add myself to the list.
979
b56d6f31
JB
9802011-10-27 Joel Brobecker <brobecker@adacore.com>
981
982 * value.h (read_frame_register_value): Add declaration.
983 * findvar.c (read_frame_register_value): New function.
984 (value_from_register): Use read_frame_register_value
985 instead of get_frame_register_value + value_contents_copy
986 to get value contents.
987
d234ef5c
DE
9882011-10-27 Doug Evans <dje@google.com>
989
990 * cli/cli-cmds.c (source_script_with_search): Pass full path to
991 source_script_from_stream if it may have been found on the search path.
992 * python/py-auto-load.c (source_section_scripts): Pass full path to
993 source_python_script_for_objfile.
994 * python/python.c (source_python_script): Delete stream parameter.
995 All callers updated.
996 (source_python_script_for_objfile): Ditto.
997 * python/python-internal.h (source_python_script_for_objfile): Update.
998 * python/python.h (source_python_script): Update.
999
d849d44f
TT
10002011-10-27 Tom Tromey <tromey@redhat.com>
1001
1002 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1003 (ada_sals_for_line): Remove declarations.
1004
2231f1fb
KP
10052011-10-27 Kevin Pouget <kevin.pouget@st.com>
1006
1007 Move unwind reasons to an external .def file
1008 * frame.c (frame_stop_reason_string): Rewrite using
1009 unwind_stop_reasons.def.
1010 * frame.h (enum unwind_stop_reason): Likewise.
1011 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1012 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1013 constants for bound-checking.
1014 * unwind_stop_reasons.def: New file.
1015 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1016 instead of a distinct value.
1017
f77b9a5d
PM
10182011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1019
1020 PR python/13331
1021
1022 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1023 (convert_values_to_python): Return on Python tuple allocation
1024 failure. Return NULL on value conversion error.
1025
76dce0be
PM
10262011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1027
1028 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1029 (bppy_set_task): Ditto.
1030 (bppy_delete_breakpoint): Ditto.
1031 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1032 (gdbpy_lookup_global_symbol): Ditto.
1033 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1034 * python/py-frame.c (frapy_is_valid): Ditto.
1035 (frame_info_to_frame_object): Ditto.
1036 * python/py-type.c (typy_lookup_type): Ditto.
1037 (typy_getitem): Ditto.
1038 (typy_has_key): Ditto.
1039 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1040
f17b6955
JB
10412011-10-26 Joel Brobecker <brobecker@adacore.com>
1042
1043 * gdbarch.h: Regenerate.
1044
86ba1042
JB
10452011-10-26 Meador Inge <meadori@codesourcery.com>
1046
1047 * gdbarch.sh (function_list): Use 'pstring' when printing
1048 'gcore_bfd_target'.
1049 * gdbarch.c: Regenerate.
1050
c34fd852
UW
10512011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1052
1053 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1054 and frame caches if PTID refers to all threads of a process.
1055
931bb47f
UW
10562011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1057
1058 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1059 to create_breakpoint.
1060
88aed45e
UW
10612011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1062
1063 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1064 (ppc_sysv_abi_push_dummy_call): Use it.
1065 (do_ppc_sysv_return_value): Likewise.
1066 (ppc64_sysv_abi_push_dummy_call): Likewise.
1067 (ppc64_sysv_abi_return_value): Likewise.
1068
3eaf3fa2
PK
10692011-10-26 Paul Koning <paul_koning@dell.com>
1070
1071 * python/lib/gdb/types.py (deepitems): New function.
1072
913460fc
PK
10732011-10-25 Paul Koning <paul_koning@dell.com>
1074
1075 PR python/13327
1076
1077 * python/py-value.c (value_to_value_object): Remove fetching of
1078 the value if it was lazy.
1079 (valpy_get_is_lazy): New function.
1080 (valpy_fetch_lazy): New function.
1081
2b5b9d09
JB
10822011-10-24 Joel Brobecker <brobecker@adacore.com>
1083
1084 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1085 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1086
e21ffe51
PA
10872011-10-24 Pedro Alves <pedro@codesourcery.com>
1088
1089 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1090 event, in non-stop, if not stopping, make sure the new lwp has
1091 last_resume_kind set to resume_continue. Assert that when we're
1092 resuming the new lwp, its last_resume_kind is resume_continue.
1093
7aee8dc2
PA
10942011-10-24 Pedro Alves <pedro@codesourcery.com>
1095
1096 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1097 already set when marking the event thread as not executing in
1098 non-stop mode.
1099
4b4e080e
PA
11002011-10-24 Pedro Alves <pedro@codesourcery.com>
1101
1102 * infrun.c (handle_inferior_event): Add debug output for
1103 TARGET_WAITKIND_NO_HISTORY.
1104
baacfb07
PM
11052011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1106
1107 * NEWS: Move set/show extended-prompt to "New Options". Expand
1108 description. Fix typos.
1109
8432bc41
PM
11102011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1111
1112 PR python/13310
1113
1114 * python/py-param.c (call_doc_function): Correctly deference on
1115 function exit.
1116
6cda5a20
JB
11172011-10-21 Joel Brobecker <brobecker@adacore.com>
1118
1119 * ada-tasks.c (print_ada_task_info): Fix computation of
1120 number of tasks displayed in command output.
1121
13294f7d
JK
11222011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1123 Ulrich Weigand <uweigand@de.ibm.com>
1124
1125 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1126 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1127 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1128 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1129 gdbarch_unwind_pc.
1130
460c1c54
CC
11312011-10-20 Cary Coutant <ccoutant@google.com>
1132
1133 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1134 section to...
1135 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1136 flag. Adjust all callers.
1137 (process_psymtab_comp_unit): Remove adjustment for type section.
1138
a10964d1
AR
11392011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1140
1141 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1142 arguments by adding OBJFILE. Instead of getting objfile from
1143 symbol's symtab, use new argument OBJFILE.
1144 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1145 arguments by adding OBJFILE.
1146 * gdb/dwarf2read.c (new_symbol_full): Change call to
1147 cp_scan_for_anonymous_namespaces to match new signature.
1148 * gdb/stabsread.c (define_symbol): Change call to
1149 cp_scan_for_anonymous_namespaces to match new signature.
1150
27ca1a5b
PM
11512011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1152
1153 PR python/13308
1154 PR python/13309
1155
1156 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1157 leak.
1158 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1159 leak. Delete unused variables.
1160
9df2fbc4
PM
11612011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1162
1163 PR python/12656
1164
1165 * python/py-frame.c (frapy_read_var): Use const struct *block.
1166 * python/py-type.c (typy_lookup_typename): Likewise.
1167 (typy_lookup_type): Likewise.
1168 (typy_legacy_template_argument): Likewise.
1169 (typy_template_argument): Likewise.
1170 (gdbpy_lookup_type): Likewise.
1171 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1172 * python/py-block.c (blpy_block_object): Likewise.
1173 (blpy_iter): Likewise.
1174 (blpy_get_start): Likewise.
1175 (blpy_get_end): Likewise.
1176 (blpy_get_function): Likewise.
1177 (blpy_get_superblock): Likewise.
1178 (set_block): Likewise.
1179 (block_to_block_object): Likewise.
1180 (block_object_to_block): Likewise.
1181 (blpy_is_valid): Likewise.
1182 (blpy_get_global_block): New function.
1183 (blpy_get_static_block): New function.
1184 (blpy_is_global): New function.
1185 (blpy_is_static): New function.
1186 * blockframe.c (block_innermost_frame): Likewise.
1187 * valops.c (value_of_variable): Likewise.
1188 * frame.h: Update prototypes.
1189 * python/python-internal.h: Likewise.
1190 * value.h: Likewise.
1191
4743b735
CC
11922011-10-19 Cary Coutant <ccoutant@google.com>
1193
1194 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1195 type_offset field.
1196
6caca83c
CC
11972011-10-19 Cary Coutant <ccoutant@google.com>
1198
1199 * dwarf2read.c (peek_abbrev_code): New function.
1200 (dw2_get_file_names): Check for dummy compilation units.
1201 (create_debug_types_hash_table): Likewise.
1202 (process_psymtab_comp_unit): Likewise.
1203 (load_partial_comp_unit): Likewise.
1204 (load_full_comp_unit): Likewise.
1205
43136979
AR
12062011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1207
1208 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1209 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1210 pt_phdr if PT_PHDR was found.
1211
0a07729b
TT
12122011-10-17 Joost van der Sluis <joost@cnoc.nl>
1213
1214 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1215 type or "<unnamed type"> when there is no name assigned.
1216 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1217 avoid a sigint when no name is assigned.
1218
21ae7a4d
JK
12192011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1220
1221 Revert:
1222 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1223 * dwarf2expr.c (ctx_no_read_reg): New function.
1224 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1225 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1226 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1227 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1228
32d1c362
DE
12292011-10-16 Doug Evans <dje@google.com>
1230
1231 * NEWS: Document python gdb.printing.register_pretty_printer's new
1232 `replace' parameter.
1233
da096638
KS
12342011-10-14 Keith Seitz <keiths@redhat.com>
1235
1236 PR c++/13225
1237 * eval.c (evaluate_subexp_standard): Do not construct
1238 an array of types; pass the value array directly to
1239 find_overload_match.
1240 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1241 (rank_function): Take an array of values instead of types.
1242 (rank_one_type): Add struct value * parameter.
1243 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1244 (rank_function): For each argument, pass the argument's
1245 value to rank_one_type.
1246 (rank_one_type): Add VALUE parameter.
1247 If the parameter type is a pointer and the argument type
1248 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1249 VALUE is zero.
1250 Update all calls to rank_one_type, passing NULL for new
1251 VALUE parameter.
1252 * valarith.c (value_user_defined_cpp_op): Do not construct
1253 an array of types; pass the value array directly to
1254 find_overload_match.
1255 * valops.c (find_overload_method_list): Take an array of
1256 values instead of types.
1257 Save the type of OBJP for later use.
1258 Update calls to find_oload_champ, and find_oload_champ_namespace.
1259 (find_oload_champ_namespace): Take an array of values instead
1260 of types.
1261 (find_oload_champ_namespace_loop): Likewise.
1262 (find_oload_champ): Likewise.
1263 (classify_oload_match): Inspect all arguments
1264 until INCOMPATIBLE is found. Return the worst badness found
1265 otherwise.
1266 (compare_parameters): Update call to rank_one_type.
1267 * value.h (find_overload_match): Take an array of values instead
1268 of types.
1269
3957565a
JK
12702011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1271
1272 Drop lazy lm_info reading.
1273 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1274 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1275 (lm_info_read): New function.
1276 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1277 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1278 lm_dynamic_from_link_map.
1279 (lm_next, lm_prev, lm_name): Remove.
1280 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1281 initialization incl. read_memory. No longer use lm_name.
1282 (svr4_free_so): Drop lm_info->lm freeing.
1283 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1284 explicit lm_addr and lm initialization.
1285 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1286 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1287 lm_name.
1288
cb08cc53
JK
12892011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1290 Paul Pluzhnikov <ppluzhnikov@google.com>
1291
1292 * defs.h (struct so_list): New forward declaration.
1293 (make_cleanup_free_so): New declaration.
1294 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1295 (svr4_free_so): Move the function here from downwards. Handle NULL
1296 so->lm_info.
1297 (svr4_free_library_list): New.
1298 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1299 Use more cleanups. Use new parameter ignore_first instead of
1300 ignore_first_link_map_entry.
1301 (svr4_current_sos): New variable ignore_first, initialize it. New
1302 variable back_to, use it for svr4_free_library_list protection.
1303 (svr4_free_so): Remove - move upwards.
1304 * utils.c: Include solist.h.
1305 (do_free_so, make_cleanup_free_so): New functions.
1306
22c05d8a
JK
13072011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1308
1309 Fix internal error regression.
1310 * value.c (value_primitive_field): Handle value_optimized_out. Move
1311 packed bitfields comment.
1312
d930d06e
TT
13132011-10-13 Tom Tromey <tromey@redhat.com>
1314
1315 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1316 always released.
1317
2ff6b080
TT
13182011-10-13 Tom Tromey <tromey@redhat.com>
1319
1320 * python/py-type.c (typy_has_key): Make 'field' const.
1321
d6c5869f
LM
13222011-10-13 Luis Machado <lgustavo@codesourcery.com>
1323
1324 * remote.c (remote_save_trace_data): Invert comparison.
1325
a70633a2
LM
13262011-10-13 Luis Machado <lgustavo@codesourcery.com>
1327
1328 * tracepoint.c (trace_save_command): Use filename instead of
1329 args when printing.
1330
e103e986
JK
13312011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1332
1333 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1334 if .size is 0.
1335
db24da6d
YQ
13362011-10-13 Yao Qi <yao@codesourcery.com>
1337
1338 PR gdb/12703
1339 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1340 whether insn is a 32-bit Thumb-2 instruction.
1341 (thumb_in_function_epilogue_p): Likewise.
1342 (thumb_get_next_pc_raw): Likewise.
1343 (arm_breakpoint_from_pc): Likewise.
1344
1d6edc3c
JK
13452011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1346
1347 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1348 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1349 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1350 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1351 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1352 zero DATA.
1353 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1354 validity.
1355 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1356 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1357 clear DATA on zero SIZE.
1358
adabb602
DE
13592011-10-12 Doug Evans <dje@google.com>
1360
1361 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1362 header->first_die_offset here. All callers updated.
1363
5048e516
JK
13642011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1365
1366 Fix compatibility with texinfo versions older than 4.12.
1367 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1368 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1369 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1370 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1371 * configure: Regenerate.
1372 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1373 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1374 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1375
0574c78f
GB
13762011-10-12 Gary Benson <gbenson@redhat.com>
1377
1378 * breakpoint.h (pc_at_non_inline_function): Declare.
1379 * breakpoint.c (is_non_inline_function,
1380 pc_at_non_inline_function): New functions.
1381 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1382 if the stop is at a location where functions cannot be inlined.
1383
12d9289a
PA
13842011-10-12 Pedro Alves <pedro@codesourcery.com>
1385
1386 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1387 the core wanted them stopped, or if they now have a pending event
1388 to report.
ecf8e7f5
PA
1389 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1390 down to stop_and_resume_callback.
1391 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1392 having new pending events after calling linux_nat_filter_event.
12d9289a 1393
96408a79
SA
13942011-10-11 Sterling Augustine <saugustine@google.com>
1395
1396 * dwarf2read.c: Undo inadvertent changes in previous commit.
1397
9c6c53f7
SA
13982011-10-11 Sterling Augustine <saugustine@google.com>
1399
1400 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1401 logic.
1402
0e8aefe7
UW
14032011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1404
1405 * symfile.c (separate_debug_file_exists): Fix condition.
1406
349d1385
DM
14072011-10-11 David S. Miller <davem@davemloft.net>
1408
1409 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1410 static.
1411 * regcache.h (regcache_restore): Remove declaration.
1412
205c306f
DM
1413 * gdbarch.sh: New field 'long_long_align_bit'.
1414 * gdbarch.c, gdbarch.h: Regenerate.
1415 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1416 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1417
941b2081
JK
14182011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1419
1420 Revert this part of:
1421 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 Support @entry in input expressions.
1423 * c-exp.y (ENTRY, unknown_cpp_name): New.
1424 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1425 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1426 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1427 (name_not_typename: ENTRY): New.
1428 (yylex): Recognize ENTRY.
1429
1430 Reimplement @entry in input expressions.
1431 * c-exp.y (ENTRY): New.
1432 (variable: name_not_typename ENTRY): New.
1433 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1434
3c4d7e12
PA
14352011-10-11 Pedro Alves <pedro@codesourcery.com>
1436
1437 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1438 parent and child's pids as soon as we detect a clone event.
1439 Adjust another debug message.
1440
ea23808b
PA
14412011-10-11 Pedro Alves <pedro@codesourcery.com>
1442
1443 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1444 not zombie instead of reading the whole file.
1445
904578ed
JK
14462011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1447
1448 Fix separate debuginfo warning with "remote:" access.
1449 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1450 * symfile.c (get_file_crc): New function with the code moved from ...
1451 (separate_debug_file_exists): ... this function, specifically variables
1452 buffer and count. New variable verified_as_different, set it. Remove
1453 file_crc initialization. Verify also if both files are not the same
1454 manually, if needed.
1455
51370a33
YQ
14562011-10-11 Yao Qi <yao@codesourcery.com>
1457
1458 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1459 to get address.
1460
0838fb57
DE
14612011-10-10 Doug Evans <dje@google.com>
1462
1463 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1464 libthread_db when we load libpthread or the main symbol file.
1465 (thread_db_inferior_created): New function.
1466 (_initialize_thread_db): Attach inferior_created observer.
1467 * linux-nat.c (linux_child_post_attach): Remove call to
1468 check_for_thread_db.
1469 (linux_child_post_startup_inferior): Ditto.
1470 * objfiles.h (OBJF_MAINLINE): Define.
1471 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1472 allocate_objfile when appropriate.
1473
623bd5b7
UW
14742011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1475
1476 PR gdb/13218
1477 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1478 Remove unused variables.
1479 (get_linux_version): Remove function.
1480 (_initialize_arm_linux_nat): Do not call it.
1481
79395f92
PA
14822011-10-10 Pedro Alves <pedro@codesourcery.com>
1483
1484 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1485 new clone lwp if the core asked it to stop. Don't pass on
1486 unexpected signals to the new clone; leave them pending instead.
1487
eff3df78
PA
14882011-10-10 Pedro Alves <pedro@codesourcery.com>
1489
1490 * linux-nat.c (resume_lwp): Remove redundant debug output.
1491
4b60df3d
PA
14922011-10-10 Pedro Alves <pedro@codesourcery.com>
1493
1494 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1495 last_resume_kind before clearing it, and use the copy instead to
1496 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1497 resume_clear_callback in the non-stop path too.
1498
6501578c
YQ
14992011-10-09 Yao Qi <yao@codesourcery.com>
1500
1501 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1502 Honor OPTIONS and VAL's type.
1503 (common_val_print, value_print): Update to pass one more parameter.
1504
5a56e9c5
DE
15052011-10-09 Doug Evans <dje@google.com>
1506
1507 Add new "alias" command.
1508 * NEWS: Mention new command.
1509 * command.h (valid_user_defined_cmd_name_p): Declare.
1510 * defs.h (make_cleanup_dyn_string_delete): Declare.
1511 * utils.c: #include "dyn-string.h".
1512 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1513 * cli/cli-cmds.c: #include "dyn-string.h".
1514 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1515 (init_cli_cmds): Add new command.
1516 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1517
509f0fd9
JK
15182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1519
1520 Fix compatibility with older GCCs.
1521 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1522 * stack.c (read_frame_arg): Initialize val_deref.
1523
2bda9cc5
JK
15242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1525
1526 Entry values NEWS entries, DWARF disassembly support.
1527 * NEWS: New entry values entry.
1528 (set print entry-values, show print entry-values)
1529 (set debug entry-values, show debug entry-values): New entries.
1530 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1531 indent. Remove variable start. Move header printing out. Respect
1532 INDENT. Support DW_OP_GNU_entry_value.
1533 (locexpr_describe_location_1): Move the header printing here, extend
1534 the disassemble_dwarf_expression passed parameters.
1535
a471c594
JK
15362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1537
1538 Display @entry parameter values even for references.
1539 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1540 coerce_ref_if_computed.
1541 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1542 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1543 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1544 existing push_dwarf_reg_entry_value call. Add new detection calling
1545 dwarf_block_to_dwarf_reg_deref. Update the error message.
1546 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1547 * dwarf2expr.h
1548 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1549 parameter deref_size, describe it in the comment.
1550 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1551 (dwarf_block_to_dwarf_reg_deref): New declaration.
1552 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1553 deref_size, describe it in the function comment. New variables
1554 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1555 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1556 describe it in the function comment. Fetch the alternative block
1557 accoring to DEREF_SIZE.
1558 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1559 (entry_data_value_free_closure, entry_data_value_funcs): New.
1560 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1561 outer_val, target_val, val and addr. Try to fetch and create also
1562 referenced value content.
1563 (pieced_value_funcs): NULL value for coerce_ref.
1564 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1565 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1566 coerce_ref_if_computed.
1567 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1568 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1569 * stack.c (read_frame_arg): Compare also dereferenced values.
1570 * value.c (value_computed_funcs): Make the parameter v const, use
1571 value_lval_const for it.
1572 (value_lval_const, coerce_ref_if_computed): New function.
1573 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1574 * value.h (struct lval_funcs): New field coerce_ref.
1575 (value_computed_funcs): Make the parameter v const.
1576 (value_lval_const, coerce_ref_if_computed): New declarations.
1577
36b11add
JK
15782011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1579
1580 Support @entry in input expressions.
1581 * c-exp.y (ENTRY, unknown_cpp_name): New.
1582 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1583 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1584 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1585 (name_not_typename: ENTRY): New.
1586 (yylex): Recognize ENTRY.
1587 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1588 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1589 Likewise.
1590 * parse.c (operator_length_standard): Likewise.
1591 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1592
3343315b
JK
15932011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1594
1595 Display referenced values in backtraces.
1596 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1597 * stack.c (print_frame_arg): Likewise.
1598
ac71a68c
JK
15992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1600
1601 Make some lval_funcs methods to default on NULL.
1602 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1603 NULL.
1604 (value_assign): Check if lval_computed write method is NULL.
1605 * value.h (struct lval_funcs): Comment NULL values for read and write
1606 methods.
1607
e18b2753
JK
16082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1609
1610 Display @entry parameter values (without references).
1611 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1612 New functions.
1613 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1614 New declarations.
1615 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1616 entry record.
1617 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1618 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1619 functions.
1620 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1621 (loclist_read_variable_at_entry): New function.
1622 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1623 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1624 DW_AT_location, call dwarf_block_to_sp_offset for it.
1625 * frame.h (print_entry_values_no, print_entry_values_only)
1626 (print_entry_values_preferred, print_entry_values_if_needed)
1627 (print_entry_values_both, print_entry_values_compact)
1628 (print_entry_values_default, print_entry_values): New declarations.
1629 (struct frame_arg): New field entry_kind.
1630 (read_frame_arg): New parameter entryargp.
1631 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1632 arg->entry_kind. Optionally print the `@entry' suffix.
1633 (list_args_or_locals): New variable entryarg, initialize it.
1634 Initialize also entry_kind of arg and entryarg. Conditionalize
1635 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1636 xfree for entryarg.error.
1637 * stack.c (print_entry_values_no, print_entry_values_only)
1638 (print_entry_values_preferred, print_entry_values_if_needed)
1639 (print_entry_values_both, print_entry_values_compact)
1640 (print_entry_values_default, print_entry_values_choices)
1641 (print_entry_values): New variables.
1642 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1643 print the `@entry' suffix, possibly in combination for
1644 print_entry_values_compact.
1645 (read_frame_arg): New parameter entryargp, new variables entryval,
1646 entryval_error and val_equal. Read in also entryargp, respect
1647 print_entry_values, compare the values using val_equal, fill in also
1648 argp->entry_kind (together with entryargp->entry_kind).
1649 (print_frame_args): New variable entryarg, initialize it.
1650 Conditionalize print_frame_arg for arg, add print_frame_arg for
1651 entryarg. Call xfree for entryarg.error.
1652 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1653 * symtab.h (struct symbol_computed_ops): New field
1654 read_variable_at_entry.
1655
93d86cef
JK
16562011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1657
1658 Code reshuffle.
1659 * frame.h (struct frame_arg): New definition.
1660 (read_frame_arg): New declaration.
1661 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1662 (list_args_or_locals): ... the code here. New variable arg, call
1663 read_frame_arg and list_arg_or_local with it. Unify the
1664 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1665 arg.error.
1666 * stack.c (print_frame_arg): New functiom from the code of
1667 print_frame_args.
1668 (read_frame_arg): New function.
1669 (print_frame_args): Remove variable val. New variable arg, call
1670 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1671
2d6c5dc2
JK
16722011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1673
1674 Protect entry values against self tail calls.
1675 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1676 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1677
111c6489
JK
16782011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1679
1680 Recognize virtual tail call frames.
1681 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1682 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1683 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1684 * dwarf2-frame-tailcall.c: New file.
1685 * dwarf2-frame-tailcall.h: New file.
1686 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1687 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1688 REGS.PREV only after CIE execution.
1689 (struct dwarf2_frame_cache): New field tailcall_cache.
1690 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1691 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1692 parts, try to find entry_cfa_sp_offset. Call
1693 dwarf2_tailcall_sniffer_first.
1694 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1695 when appropriate.
1696 (dwarf2_frame_dealloc_cache): New function.
1697 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1698 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1699 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1700 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1701 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1702 * dwarf2loc.c (func_addr_to_tail_call_list)
1703 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1704 (call_site_find_chain_1, call_site_find_chain): New.
1705 * dwarf2loc.h (struct call_site_chain): New.
1706 (call_site_find_chain): New declaration.
1707 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1708 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1709 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1710 * stack.c (frame_info): Support also TAILCALL_FRAME.
1711
bb984ff1
JK
17122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1713
1714 Tail call sites reader implementation.
1715 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1716 fill in TYPE_TAIL_CALL_LIST.
1717 * gdbtypes.h (struct func_type): New field tail_call_list.
1718 (struct call_site): New field tail_call_next.
1719 (TYPE_TAIL_CALL_LIST): New definition.
1720
8e3b41a9
JK
17212011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1722
1723 Implement basic support for DW_TAG_GNU_call_site.
1724 * block.c: Include gdbtypes.h and exceptions.h.
1725 (call_site_for_pc): New function.
1726 * block.h (call_site_for_pc): New declaration.
1727 * defs.h: Include hashtab.h.
1728 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1729 declarations.
1730 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1731 ctx_no_push_dwarf_reg_entry_value.
1732 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1733 (dwarf_block_to_dwarf_reg): New function.
1734 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1735 (ctx_no_push_dwarf_reg_entry_value): New function.
1736 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1737 push_dwarf_reg_entry_value.
1738 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1739 declarations.
1740 * dwarf2loc.c: Include gdbcmd.h.
1741 (dwarf_expr_ctx_funcs): New forward declaration.
1742 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1743 (dwarf_expr_reg_to_entry_parameter)
1744 (dwarf_expr_push_dwarf_reg_entry_value): New.
1745 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1746 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1747 (needs_dwarf_reg_entry_value): New function.
1748 (needs_frame_ctx_funcs): Install it.
1749 (_initialize_dwarf2loc): New function.
1750 * dwarf2loc.h (entry_values_debug): New declaration.
1751 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1752 (read_call_site_scope): New forward declaration.
1753 (process_full_comp_unit): Copy call_site_htab.
1754 (process_die): Support DW_TAG_GNU_call_site.
1755 (read_call_site_scope): New function.
1756 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1757 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1758 (cleanup_htab): Delete.
1759 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1760 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1761 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1762 FIELD_LOC_KIND_DWARF_BLOCK.
1763 * gdbtypes.h (enum field_loc_kind): New entry
1764 FIELD_LOC_KIND_DWARF_BLOCK.
1765 (struct main_type): New loc entry dwarf_block.
1766 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1767 (TYPE_FIELD_DWARF_BLOCK): New.
1768 * python/py-type.c: Include dwarf2loc.h.
1769 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1770 internal_error call on unknown FIELD_LOC_KIND.
1771 * symtab.h (struct symtab): New field call_site_htab.
1772 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1773 (core_addr_hash, core_addr_eq): New functions.
1774
b6cdc2c1
JK
17752011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1776
1777 Code reshuffle.
1778 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1779 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1780 calling_convention under func_stuff there.
1781 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1782 (init_type) <TYPE_CODE_FUNC>: Likewise.
1783 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1784 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1785 * gdbtypes.h (enum type_specific_kind): Change
1786 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1787 (struct main_type) <type_specific>: Change calling_convention to
1788 func_stuff. Move calling_convention to ...
1789 (struct func_type): ... this new struct.
1790 (INIT_FUNC_SPECIFIC): New #define.
1791 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1792
181cebd4
JK
17932011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1796 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1797 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1798 ctx->ref_addr_size. Handle its invalid value.
1799 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1800 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1801 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1802 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1803 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1804 (dwarf2_per_cu_ref_addr_size): New function.
1805
c471e790
JK
18062011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1807
1808 Code cleanup.
1809 * dwarf2read.c (per_cu_header_read_in): New function.
1810 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1811 variables cu_header_local and cu_headerp.
1812
741f5e3c
JK
18132011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1814
1815 Fix initial language detection with -readnow.
1816 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1817 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1818 searches only for global symbols.
1819
a73d2258
JK
18202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 Fix printed anonymous struct name.
1823 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1824 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1825 (anonymous_struct_prefix): New function.
1826 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1827 (dwarf2_name): Strip for anonymous structs any prefixes.
1828
749fd4ea
DE
18292011-10-07 Doug Evans <dje@google.com>
1830
1fa57852
DE
1831 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1832 `replace'.
1833
690a4937
DE
1834 * python/lib/gdb/printing.py: Whitespace cleanup.
1835
749fd4ea
DE
1836 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1837 warning.
1838
4c38200f
PA
18392011-10-07 Pedro Alves <pedro@codesourcery.com>
1840
1841 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1842 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1843 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1844 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1845 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1846 (arm_linux_remove_watchpoint): Adjust.
1847 * i386-linux-nat.c (i386_linux_dr_set_control)
1848 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1849 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1850 (ia64_linux_remove_watchpoint): Adjust.
1851 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1852 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1853 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1854 (ppc_linux_insert_mask_watchpoint)
1855 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1856 (ppc_linux_remove_watchpoint): Adjust.
1857 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1858 Adjust.
1859
b7ff339d
CV
18602011-10-07 Corinna Vinschen <vinschen@redhat.com>
1861
1862 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1863 (clear_win32_environment): New function for Cygwin to clear out
1864 Win32 environment.
1865 (windows_create_inferior): Prepare new environment from in_env
1866 for Cygwin, too.
1867
f287c1f3
PM
18682011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1869
5631e596 1870 PR python/13264
f287c1f3
PM
1871 * python/py-value.c (valpy_call): Check that arguments are
1872 a tuple.
1873 (is_intlike): Remove call to CHECK_TYPEDEF.
1874 (valpy_nonzero): Catch GDB exceptions.
1875 (valpy_absolute): Ditto.
1876 (valpy_lazy_string): Ditto.
1877 (valpy_call): Ditto.
1878 (valpy_get_is_optimized_out): Ditto.
1879 (valpy_long): Ditto.
1880 (valpy_float): Ditto.
1881 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1882 (valpy_richcompare): Ditto.
1883
03583c20
UW
18842011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1885
1886 * inferior.h (disable_randomization): Declare.
1887 * infrun.c (disable_randomization): New global variable.
1888 (show_disable_randomization): New function.
1889 (set_disable_randomization): Likewise.
1890 (_initialize_infrun): Install set/show disable-randomization
1891 commands.
1892 * linux-nat.c (disable_randomization): Remove.
1893 (show_disable_randomization): Likewise.
1894 (set_disable_randomization): Likewise.
1895 (_initialize_linux_nat): No longer install set/show
1896 disable-randomization commands here.
1897 (linux_nat_supports_disable_randomization): New function.
1898 (linux_nat_add_target): Install it.
1899 * remote.c (PACKET_QDisableRandomization): New enum value.
1900 (remote_protocol_packets): Support QDisableRandomization.
1901 (_initialize_remote): Likewise.
1902 (remote_supports_disable_randomization): New function.
1903 (init_remote_ops): Install it.
1904 (extended_remote_supports_disable_randomization): New function.
1905 (init_extended_remote_ops): Install it.
1906 (extended_remote_disable_randomization): New function.
1907 (extended_remote_create_inferior_1): Call it.
1908 * target.h (struct target_ops): Add to_supports_disable_randomization.
1909 (target_supports_disable_randomization): Add prototype.
1910 * target.c (target_supports_disable_randomization): New function.
1911 (find_default_supports_disable_randomization): Likewise.
1912 (init_dummy_target): Install it.
1913
20c168b5
KP
19142011-10-07 Kevin Pouget <kevin.pouget@st.com>
1915
1916 Allow Python notification of new object-file loadings.
1917 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1918 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1919 Add build rule for this file.
1920 * python/py-event.h (emit_new_objfile_event): New prototype.
1921 (newobjfile): New Python event emitter.
1922 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1923 Python event registry.
1924 * python/py-inferior.c: Include objfiles.h
1925 (python_new_objfile): New function.
1926 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1927 observers.
1928 * python/py-newobjfileevent.c: New file.
1929 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1930 prototype.
1931 * python/python.c (_initialize_python): Add
1932 gdbpy_initialize_new_objfile_event call.
1933 * NEWS: Add item for new Python event "gdb.newobjfile"
1934
b1c8db38
TG
19352011-10-05 Tristan Gingold <gingold@adacore.com>
1936
1937 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1938 Extract the ravenscar task name from the symbol for the atcb.
1939
0dab82e9
PK
19402011-10-04 Paul Koning <paul_koning@dell.com>
1941
1942 * python/py-type.c (typy_make_iter): Add forward declaration.
1943 (typy_fields_items): Use the gdb.Type iterator.
1944
84ad80e6
PK
19452011-10-04 Paul Koning <paul_koning@dell.com>
1946
1947 * NEWS: Add entry for Python gdb.Type mapping methods.
1948
cb6be26b
KP
19492011-10-04 Kevin Pouget <kevin.pouget@st.com>
1950
1951 PR python/12691: Add the inferior to Python exited event
1952 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1953 to exited_event.
1954 * python/py-event.h (emit_exited_event): Likewise
1955 * python/-inferior.c (python_inferior_exit): Likewise
1956
6005b210
JB
19572011-10-03 Joel Brobecker <brobecker@adacore.com>
1958
1959 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1960 in output of -ada-task-info GDB/MI command.
1961
75082e8c
JB
19622011-10-03 Joel Brobecker <brobecker@adacore.com>
1963
1964 * ada-lang.h (struct inferior): Declare.
1965 (print_ada_task_info): Add declaration.
1966 * ada-tasks.c (print_ada_task_info): Make non-static.
1967 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1968 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1969 * mi/mi-main.c: #include "ada-lang.h".
1970 (mi_cmd_list_features): Add "ada-task-info" to the list
1971 of supported features.
1972 (mi_cmd_ada_task_info): New function.
1973
7ed7d719
JB
19742011-10-03 Joel Brobecker <brobecker@adacore.com>
1975
1976 * python/python.c (python_run_simple_file): New function.
1977 (source_python_script, source_python_script_for_objfile):
1978 Replace call to PyRun_SimpleFile by call to
1979 python_run_simple_file.
1980
3fcaed38
PK
19812011-10-03 Paul Koning <paul_koning@dell.com>
1982
1983 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1984 (value_to_value_object): Fetch value if it was lazy.
1985
8e5c319d
JK
19862011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1987
1988 Code cleanup.
1989 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1990 Rearrange the code for it.
1991
dd11a36c
JB
19922011-10-02 Joel Brobecker <brobecker@adacore.com>
1993
1994 * breakpoint.c (bkpt_print_recreate): Add call to
1995 print_recreate_thread.
1996
723b724b
MF
19972011-09-29 Mike Frysinger <vapier@gentoo.org>
1998
1999 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2000 PTRACE_GETFDPIC_INTERP): Define.
2001
412946b6
YQ
20022011-09-28 Yao Qi <yao@codesourcery.com>
2003
2004 * symfile.c (add_symbol_file_command): Update message on usage.
2005
a73bb892
PK
20062011-09-28 Paul Koning <paul_koning@dell.com>
2007
2008 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2009 (typy_length, typy_get, typy_has_key, typy_make_iter)
2010 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2011 (typy_iterator_iter, typy_iterator_iternext)
2012 (typy_iterator_dealloc): New functions to implement standard
2013 Python mapping methods on gdb.Type object.
2014 (gdb.TypeIterator): New Python type.
2015 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2016
fe10a582
DM
20172011-09-28 David S. Miller <davem@davemloft.net>
2018
2019 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2020 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2021 * sparc-tdep.c (sparc_complex_floating_p): New function.
2022 (sparc32_store_arguments): Handle complex floats.
2023 (sparc32_extract_return_value): Likewise.
2024 (sparc32_store_return_value): Likewise.
2025 (sparc32_stabs_argument_has_addr): Likewise.
2026 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2027 (sparc64_store_floating_fields): Handle complex floats.
2028 (sparc64_store_arguments): Likewise.
2029 (sparc64_store_return_value): Likewise.
2030
c93dbcba
EZ
20312011-09-28 Eli Zaretskii <eliz@gnu.org>
2032
2033 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2034 before the change on 2006-12-09.
2035 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2036 generates the environment block for CreateProcessA, modulo the
2037 Cygwin-specific parts that are not needed here.
2038
f00c55f8
TG
20392011-09-27 Tristan Gingold <gingold@adacore.com>
2040
2041 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2042 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2043 (darwin_solib_get_all_image_info_addr_at_init): New function.
2044 (darwin_solib_read_all_image_info_addr): Likewise.
2045 (darwin_solib_create_inferior_hook): Use the above two functions.
2046 * darwin-nat.c (darwin_execvp): Renames retval to res.
2047 (darwin_read_write_inferior): Update comment.
2048 (darwin_read_dyld_info): New function.
2049 (darwin_xfer_partial): Handle DYLD_INFO.
2050
6710bf39
SS
20512011-09-27 Stan Shebs <stan@codesourcery.com>
2052
2053 Add return address collection for tracepoints.
2054 * tracepoint.c (encode_actions_1): Add case for $_ret.
2055 (validate_actionline): Check for $_ret.
2056 (trace_dump_actions): Ditto.
2057 * ax-gdb.h (gen_trace_for_return_address): Declare.
2058 * ax-gdb.c: Include arch-utils.h.
2059 (gen_trace_for_return_address): New function.
2060 (agent_command): Add return address special case.
2061 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2062 (amd64_gen_return_address): New function.
2063 (amd64_init_abi): Call it.
2064 * i386-tdep.c: Include ax.h and ax-gdb.h.
2065 (i386_gen_return_address): New function.
2066 (i386_init_abi): Call it.
2067 * arch-utils.h (default_gen_return_address): Declare.
2068 * arch-utils.c (default_gen_return_address): New function.
2069 * gdbarch.sh (gen_return_address): New method.
2070 * gdbarch.h, gdbarch.c: Regenerate.
2071
e04e5beb
JM
20722011-09-23 Joseph Myers <joseph@codesourcery.com>
2073
2074 PR gdb/13079
2075 * i386-tdep.c (i386_frame_align): New.
2076 (i386_gdbarch_init): Use i386_frame_align.
2077
f3d6df6d
YQ
20782011-09-23 Yao Qi <yao@codesourcery.com>
2079
2080 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2081 to get address.
2082
e69860f1
TG
20832011-09-22 Tristan Gingold <gingold@adacore.com>
2084
2085 * fork-child.c (fork_inferior): Add exec_fun parameter.
2086 Call exec_fun or execvp.
2087 * inferior.h: Adjust prototype.
2088 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2089 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2090 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2091 * procfs.c (procfs_create_inferior): Ditto.
2092 * darwin-nat.c (darwin_execvp): New function.
2093 (darwin_create_inferior): Use it.
2094
4b51d87b
YQ
20952011-09-22 Yao Qi <yao@codesourcery.com>
2096
2097 * infrun.c (context_switch): Print debug message when switching to
2098 a different thread.
2099
56b9d9ac
UW
21002011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2101
2102 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2103 complex and vector types.
2104 (s390_return_value_convention): Likewise.
2105
2106 (s390_value_from_register): Call check_typedef.
2107 (extend_simple_arg): Likewise.
2108 (alignment_of): Likewise.
2109 (s390_push_dummy_call): Likewise.
2110 (s390_return_value): Likewise.
2111
b2cd6b29
JM
21122011-09-21 Joseph Myers <joseph@codesourcery.com>
2113
2114 * event-top.c (async_disconnect): If an exception is thrown from
2115 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2116 catch_errors.
2117 * top.c (quit_cover): Return void and take no arguments.
2118 * top.h (quit_cover): Update prototype.
2119
67ba4e42
JM
21202011-09-20 Joseph Myers <joseph@codesourcery.com>
2121
2122 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2123 current_uiout, not uiout.
2124
562f943b
DE
21252011-09-19 Doug Evans <dje@google.com>
2126
2127 * python/py-auto-load.c (source_section_scripts): Fix file
2128 descriptor leak.
2129 * python/python.c (source_python_script_for_objfile): Tweak comments.
2130
34518530
YQ
21312011-09-18 Yao Qi <yao@codesourcery.com>
2132 Ulrich Weigand <ulrich.weigand@linaro.org>
2133
2134 Support displaced stepping for Thumb 16-bit insns.
2135 * arm-tdep.c (THUMB_NOP) Define.
2136 (thumb_copy_unmodified_16bit): New.
2137 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2138 (thumb_copy_alu_reg): New.
2139 (arm_copy_svc): Move some common code to ...
2140 (install_svc): ... here. New.
2141 (thumb_copy_svc): New.
2142 (install_pc_relative): New.
2143 (thumb_copy_pc_relative_16bit): New.
2144 (thumb_decode_pc_relative_16bit): New.
2145 (thumb_copy_16bit_ldr_literal): New.
2146 (thumb_copy_cbnz_cbz): New.
2147 (cleanup_pop_pc_16bit_all): New.
2148 (thumb_copy_pop_pc_16bit): New.
2149 (thumb_process_displaced_16bit_insn): New.
2150 (thumb_process_displaced_32bit_insn): New.
2151 (thumb_process_displaced_insn): process thumb instruction.
2152
2153 Support displaced stepping for Thumb 32-bit insns.
2154 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2155 (thumb2_copy_preload): New.
2156 (thumb2_copy_copro_load_store): New.
2157 (thumb2_copy_b_bl_blx): New.
2158 (thumb2_copy_alu_imm): New.
2159 (thumb2_copy_load_reg_imm): New.
2160 (thumb2_copy_load_literal): New
2161 (thumb2_copy_block_xfer): New.
2162 (thumb_32bit_copy_undef): New.
2163 (thumb_32bit_copy_unpred): New.
2164 (thumb2_decode_ext_reg_ld_st): New.
2165 (thumb2_decode_svc_copro): New.
2166 (decode_thumb_32bit_store_single_data_item): New.
2167 (thumb_copy_pc_relative_32bit): New.
2168 (thumb_decode_pc_relative_32bit): New.
2169 (decode_thumb_32bit_ld_mem_hints): New.
2170 (thumb2_copy_table_branch): New
2171 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2172 instructions.
2173
2b16b2e3
YQ
21742011-09-18 Yao Qi <yao@codesourcery.com>
2175
2176 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2177 (install_b_bl_blx): Likewise.
2178
0f6f04ba
YQ
21792011-09-17 Yao Qi <yao@codesourcery.com>
2180
2181 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2182 (install_load_store): ... this. New.
2183 Change parameter BYTE to SIZE.
2184 (arm_copy_ldr_str_ldrb_strb): Update caller.
2185 (arm_decode_ld_st_word_ubyte): Update caller.
2186
e2d96639
YQ
21872011-09-17 Yao Qi <yao@codesourcery.com>
2188
2189 * infrun.c (displaced_step_fixup): Move some code ...
2190 (displaced_step_restore): ... here. New function.
2191 (handle_inferior_event): Cleanup displaced stepping state for both
2192 child and parent when get forked or vforked event.
2193 * regcache.c (get_thread_arch_aspace_regcache): New function.
2194 get_thread_arch_regcache (): Call it.
2195
a8123151
JB
21962011-09-16 Joel Brobecker <brobecker@adacore.com>
2197
2198 * ada-tasks.c (print_ada_task_info): New function, merging
2199 short_task_info and info_tasks together. Reimplement using
2200 ui-out instead of printing to stdout directly. Move the code
2201 building and checking the task list here, instead of leaving it
2202 in info_tasks_command.
2203 (info_task): Move the code building and checking the task
2204 list here, instead of leaving it in info_tasks_command.
2205 (info_tasks_command): Delete code building and checking
2206 the task list - moved elsewhere. Update calls to info_tasks
2207 and info_task.
2208
fbf06824
JB
22092011-09-16 Joel Brobecker <brobecker@adacore.com>
2210
2211 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2212
34a0bc90
JB
22132011-09-16 Joel Brobecker <brobecker@adacore.com>
2214
2215 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2216
79779fa9
JB
22172011-09-16 Joel Brobecker <brobecker@adacore.com>
2218
2219 * ada-lang.h (ada_build_task_list): Remove parameter
2220 `warn_if_null'.
2221 * ada-tasks.c (ada_build_task_list): Remove parameter
2222 `warn_if_null'. Adjust implementation and documentation.
2223 (valid_task_id, ada_get_environment_task)
2224 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2225 (info_tasks_command): Adjust implementation.
2226 (task_command): Likewise.
2227 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2228 to ada_build_task_list.
2229
e225eb91
JB
22302011-09-16 Joel Brobecker <brobecker@adacore.com>
2231
2232 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2233 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2234 (ada_tasks_inferior_data_handle): New static global.
2235 (get_ada_tasks_inferior_data): New function.
2236 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2237 (ada_get_environment_task, iterate_over_live_ada_tasks)
2238 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2239 Adjust.
2240 (ada_set_current_inferior_known_tasks_addr): New function.
2241 (read_known_tasks, ada_build_task_list, short_task_info)
2242 (info_tasks, info_task, info_tasks_command, task_command_1)
2243 (task_command, ada_task_list_changed): Adjust.
2244 (ada_tasks_invalidate_inferior_data): New function.
2245 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2246 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2247 * ada-lang.h (struct inferior): Add declaration.
2248 (ada_task_list_changed): Update profile.
2249 * remote-wtx-pd.c: #include "inferior.h".
2250 (switch_to_pd_internal): Update call to ada_task_list_changed.
2251
6da9ca05
JB
22522011-09-16 Joel Brobecker <brobecker@adacore.com>
2253
2254 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2255 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2256 (atcb_fieldno): Delete these static globals.
2257 (struct ada_tasks_pspace_data): New struct.
2258 (ada_tasks_pspace_data_handle): New static global.
2259 (get_ada_tasks_pspace_data): New function.
2260 (ada_tasks_invalidate_pspace_data): New function.
2261 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2262 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2263 (_initialize_tasks): Create this module's per-progspace
2264 data handle.
2265
dccd3cbd
JB
22662011-09-16 Joel Brobecker <brobecker@adacore.com>
2267
2268 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2269
f877b031
TG
22702011-09-16 Tristan Gingold <gingold@adacore.com>
2271
2272 * fork-child.c (fork_inferior): Update comment. Use alloca
2273 instead of xmalloc for argv. Move len and shell_command
2274 declarations in the block where they are used.
2275 Only call execvp. Factorize failure code.
2276
ae0c443d
JK
22772011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2278
2279 Code cleanup.
2280 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2281 `exp_element' instead of an element of the same and make the function
2282 static.
2283 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2284 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2285 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2286 Change argument of `write_exp_elt' function call.
2287 Remove extra spaces from comments.
2288 * parser-defs.h (write_exp_elt): Remove prototype.
2289
5af65ec0
PK
22902011-09-15 Paul Koning <paul_koning@dell.com>
2291
2292 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2293 count of item appended to list.
2294 * python/py-type.c (typy_fields): Likewise.
2295
72be8ccc
PK
22962011-09-15 Paul Koning <paul_koning@dell.com>
2297
883640a8 2298 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2299
92f6badc
KP
23002011-09-15 Kevin Pouget <kevin.pouget@st.com>
2301
2302 PR threads/12628
2303 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2304 processes with multiple threads.
2305 (inf_has_multiple_thread_cb): New function.
2306 (inf_has_multiple_threads): New function.
2307
0672bf41 23082011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2309
2310 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2311 * python/py-inferior.c (GdbMethods): New Python method definition.
2312
6839b47f
KP
23132011-09-15 Kevin Pouget <kevin.pouget@st.com>
2314
2315 Handle multiple breakpoint hits in Python interface:
2316 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2317 variable to breakpoints.
2318 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2319 bps instead of single breakpoint. Fix some space typos.
2320 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2321 variable to breakpoints.
2322
672f9b60
KP
23232011-09-15 Kevin Pouget <kevin.pouget@st.com>
2324
2325 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2326 note if the breakpoint is internal.
2327
43675ae4
KP
23282011-09-15 Kevin Pouget <kevin.pouget@st.com>
2329
0672bf41 2330 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2331
15148d6a
PA
23322011-09-14 Pedro Alves <pedro@codesourcery.com>
2333
2334 * infrun.c (prepare_for_detach, wait_for_inferior)
2335 (fetch_inferior_event): Don't flush the register cache.
2336 * remote.c (struct stop_reply) <regcache>: Add comment.
2337
d83e736b
JK
23382011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 Remove excessive DWARF expressions memory duplication.
2341 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2342 for block.data.
2343 (indirect_pieced_value): Remove variable result. Remove variable
2344 back_to and its use for baton.data.
2345 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2346 block.data.
2347 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2348 Update the function comment.
2349
c65b3e0d
PA
23502011-09-13 Pedro Alves <pedro@codesourcery.com>
2351
2352 * inferior.h (ALL_INFERIORS): New.
2353 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2354 for a stopped thread.
2355 (thread_db_find_new_threads): Look for threads in all inferiors.
2356
a1398e0c
PA
23572011-09-13 Pedro Alves <pedro@codesourcery.com>
2358
2359 * breakpoint.c (update_watchpoint): Handle the case of the
2360 watchpoint to update not being in the breakpoint list yet.
2361 (hw_watchpoint_use_count): New, factored out from
2362 hw_watchpoint_used_count.
2363 (hw_watchpoint_used_count): Rename to ...
2364 (hw_watchpoint_used_count_others): ... this. Add `except'
2365 parameter. Don't count resources of `except'. Use
2366 hw_watchpoint_use_count.
2367
30596231
PA
23682011-09-13 Pedro Alves <pedro@codesourcery.com>
2369
2370 * gdbthread.h (enum thread_state): Moved here.
2371 (struct thread_info): Rename `executing_' field to `executing' and
2372 `state_' to `state'.
2373 * thread.c (enum thread_state): Moved to gdbthread.h.
2374 (new_thread, add_thread_silent, delete_thread_1)
2375 (any_live_thread_of_process, thread_alive, set_running)
2376 (set_running, is_thread_state, any_running, is_executing)
2377 (set_executing, finish_thread_state, print_thread_info)
2378 (do_captured_thread_select): Adjust.
2379
bede5f5f
JK
23802011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2381
2382 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2383 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2384
4801a9a3
PA
23852011-09-12 Pedro Alves <pedro@codesourcery.com>
2386 Matt Rice <ratmice@gmail.com>
2387
2388 PR gdb/13175
2389
2390 * interps.c (struct interp) <interpreter_out>: Delete field.
2391 (interp_new): Remove the data and uiout parameters and adjust.
2392 (interp_set): Only set the current_uiout from the interpreter's
2393 uiout after initializing the interpreter. Adjust call to
2394 init_proc.
2395 (interp_ui_out): Adjust to call procs->ui_out_proc.
2396 (interp_data, interp_name): New.
2397 * interps.h (interp_init_ftype): Add `self' parameter.
2398 (interp_ui_out_ftype): New typedef.
2399 (struct interp_procs) <ui_out_proc>: New method pointer.
2400 (interp_new): Remove the data and uiout parameters.
2401 (interp_data, interp_name): Declare.
2402 * tui/tui-interp.c (tui_init): Adjust prototype.
2403 (tui_ui_out): New.
2404 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2405 tui_out here. Adjust call to interp_new.
2406 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2407 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2408 (cli_ui_out): New.
2409 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2410 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2411 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2412 Initialize mi->uiout depending on the mi_version as extracted from
2413 the interpreter's name.
2414 (mi_ui_out): New.
2415 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2416 interp_new. Don't allocate the ui_out's of the interpreters here.
2417
d0afda03 24182011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2419
d0afda03 2420 * solib.c (solib_used): New function.
59145f8c
AR
2421 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2422 by another so_list object before freeing it.
2423
bdaf8d4a
JK
24242011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2425
2426 Code cleanup.
2427 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2428 values.
2429
df15bd07
JK
24302011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2431
2432 Code cleanup.
2433 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2434 (amd64_skip_xmm_prologue): ... this new function. Describe its
2435 parameters. No longer use amd64_prologue_line_bug.
2436 * defs.h (producer_is_gcc_ge_4): New declaration.
2437 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2438 (process_full_comp_unit): Update its caller. Remove
2439 amd64_prologue_line_bug initialization.
2440 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2441 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2442
25289eb2
PA
24432011-09-09 Pedro Alves <pedro@codesourcery.com>
2444
2445 * linux-nat.h (enum resume_kind): New.
2446 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2447 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2448 resume_stop on the new lwp.
25289eb2
PA
2449 (add_lwp): Set last_resume_kind as resume_continue by default.
2450 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2451 (resume_lwp): New, factored out from resume_callback. Also check
2452 for pending status in lp->waitstatus.
2453 (resume_callback): Reimplement.
2454 (resume_clear_callback): Set last_resume_kind as resume_stop.
2455 (resume_set_callback): Set last_resume_kind as resume_continue.
2456 (linux_nat_resume, linux_handle_extended_wait): Set
2457 last_resume_kind.
2458 (running_callback): Also check lp->waitstatus for pending events.
2459 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2460 is resume_step.
2461 (stop_and_resume_callback): Don't re-resume if the core wanted the
2462 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2463 using an invalidated pointer.
2464 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2465 SIGSTOPs if the core wanted the LWP to stop.
2466 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2467 wanted the lwp to stop. If the core wanted the lwp to stop, and
2468 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2469 of TARGET_SIGNAL_STOP.
2470 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2471 here. Instead, signal the lwp, and set the last_resume_kind to
2472 resume_stop.
2473
f687d035
PA
24742011-09-09 Pedro Alves <pedro@codesourcery.com>
2475
2476 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2477 -1 (error), if the lwp exits right after attaching.
2478
bc587a6b
DE
24792011-09-08 Doug Evans <dje@google.com>
2480
63d97a20
DE
2481 * py-cmd.c: Some minor formatting fixes.
2482 (gdbpy_parse_command_name): Rename text arg to name, make const.
2483 All callers updated.
2484 * python-internal.h (gdbpy_parse_command_name): Update.
2485
bc587a6b
DE
2486 * cli/cli-decode.c (add_cmd): Add comment.
2487
08711b9a
JK
24882011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2489
2490 PR breakpoints/12435
2491 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2492 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2493 * dwarf2read.c (process_full_comp_unit): Initialize
2494 amd64_prologue_line_bug.
2495 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2496
b2e7f004
JK
24972011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2498
2499 Fix TUI screen corruption.
2500 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2501 batch_flag.
2502
8afd712c
JK
25032011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2504
2505 * findvar.c (read_var_value): Never return NULL, throw an error
2506 instead. Update the function comment. State symbol name in the error
2507 messages.
2508 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2509 read_var_value.
2510 * stack.c (print_frame_args): Likewise.
2511 * valops.c (value_of_variable): Likewise.
2512
b99b5f66
JK
25132011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2514
2515 * stack.c (print_frame_args): New variable except. Wrap
2516 read_var_value and common_val_print into TRY_CATCH.
2517
85bc8cb7
JK
25182011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2521 caller to value_of_this.
2522 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2523 Twice.
2524 * valops.c (value_of_this): Remove parameter complain and variable ret.
2525 Update function comment. Never return NULL by this code.
2526 (value_of_this_silent): New function.
2527 * value.h (value_of_this): Remove parameter complain.
2528 (value_of_this_silent): New declaration.
2529
ede1849f
YQ
25302011-09-07 Yao Qi <yao@codesourcery.com>
2531
2532 * gdbthread.h (struct thread_info): Remove fields
2533 `stepping_through_solib_after_catch' and
2534 `stepping_through_solib_catchpoints'.
2535 * infrun.c (init_thread_stepping_state): Update.
2536 (process_event_stop_test, currently_stepping): Update.
2537 (currently_stepping_or_nexting_callback): Update.
2538
6aa27652
YQ
25392011-09-07 Yao Qi <yao@codesourcery.com>
2540
2541 * gdbthread.h (struct thread_info): Comment on field
2542 `step_after_step_resume_breakpoint'.
2543
00db5b94
PA
25442011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2545
2546 * remote.c (remote_console_output): Reindent.
2547
861152be
LM
25482011-09-06 Luis Machado <lgustavo@codesourcery.com>
2549
2550 * frame.c (has_stack_frames): Check for currently selected
2551 traceframe.
2552
ab821bc6
PA
25532011-09-06 Pedro Alves <pedro@codesourcery.com>
2554
2555 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2556 (set_async_annotation_level, set_async_prompt, pop_prompt)
2557 (push_prompt, new_async_prompt): Delete declarations.
2558 * top.h (get_prompt, set_prompt): Change prototype.
2559 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2560 declarations.
2561 * top.c (command_loop):
2562 (top_prompt): New global.
2563 (get_prefix, set_prefix, get_suffix, ): Delete.
2564 (get_prompt, set_prompt): Rewrite.
2565 (show_new_async_prompt): Rename to ...
2566 (show_prompt): ... this.
2567 (init_main): Adjust. Don't handle --annotate=2 here.
2568 * event-top.c (new_async_prompt): Delete.
2569 (the_prompts): Delete.
2570 (more_to_come): Make static.
2571 (display_gdb_prompt): Use top_level_prompt() to compute the top
2572 level prompt, and don't notify the before_prompt observers
2573 directly here. Always trick readline into not trying to display
2574 the prompt if sync_execution and displaying the primary prompt.
2575 If displaying a local/secondary prompt, always show it, even if
2576 sync_execution is set.
2577 (change_annotation_level): Delete.
2578 (top_level_prompt): New, based on change_annotation_level.
2579 (push_prompt, pop_prompt): Delete.
2580 (async_disable_stdin): No longer pushes prompt.
2581 (command_line_handler): No longer pushes or pops prompt. If more
2582 input is expected, call display_gdb_prompt with an explicit empty
2583 prompt.
2584 (async_stop_sig): Adjust.
2585 (set_async_annotation_level, set_async_prompt): Delete.
2586 * python/python.c (before_prompt_hook): Adjust.
2587
f1d90504
PA
25882011-09-05 Pedro Alves <pedro@codesourcery.com>
2589
2590 PR cli/13110
2591
2592 * infrun.c (fetch_inferior_event): Check if there's a selected
2593 thread before checking if the selected thread is executing.
2594
0f641c01
PA
25952011-09-05 Pedro Alves <pedro@codesourcery.com>
2596
2597 * inf-loop.c (execute_command): Don't check if the current thread
2598 if running before synchronously waiting for command completion.
2599 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2600 here.
2601 (normal_stop): Call async_enable_stdin here.
2602 * inf-loop.c (inferior_event_handler): Don't call
2603 async_enable_stdin, nor handle "set exec-done-display" here.
2604
30368258 26052011-09-04 Joel Brobecker <brobecker@adacore.com>
2606
2607 GDB 7.3.1 released.
2608
31916278
JB
26092011-09-04 Joel Brobecker <brobecker@adacore.com>
2610
2611 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2612
e8d56f18
JB
26132011-09-04 Joel Brobecker <brobecker@adacore.com>
2614
2615 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2616
5dd05d8c
JK
26172011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2618
2619 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2620
7d8e6458 26212011-09-02 Matt Rice <ratmice@gmail.com>
2622
2623 PR gdb/10720
2624 * event-top.c (cli_command_loop): Replace readline setup with
2625 direct call to display_gdb_prompt.
2626 (display_gdb_prompt): Do not call observer mechanism during
2627 synchronous execution.
2628
84636d28
PA
26292011-09-02 Pedro Alves <pedro@codesourcery.com>
2630
2631 * linux-nat.c (in_pid_list_p): New.
2632 (linux_record_stopped_pid): Delete.
2633 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2634 already attached to the LWP. Return an indication if so.
2635 (linux_nat_filter_event): Adjust.
2636 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2637 returning an indication to ignore this thread.
2638
b4a14fd0
PA
26392011-09-02 Pedro Alves <pedro@codesourcery.com>
2640
2641 * top.c: Include interps.h.
2642 (execute_command): If the target can async, but the interpreter is
2643 in sync mode, synchronously wait for the command to finish before
2644 returning.
2645 (execute_command_to_string): Force the interpreter to sync mode.
2646 * infrun.c: Include interps.h.
2647 (fetch_inferior_event): Don't restore the prompt yet if the
2648 interpreter is in sync mode.
2649 * interps.c (interpreter_async): New global.
2650 * interps.h (interpreter_async): Declare.
2651 * inf-loop.c: Include interps.h.
2652 (inferior_event_handler): Don't print the language change or run
2653 breakpoint commands yet if the interpreter in is sync mode.
2654 * main.c (captured_command_loop): Flip the interpreter to async
2655 mode.
2656 * cli/cli-script.c: Include interps.h.
2657 (execute_user_command, while_command, if_command): Force the
2658 interpreter to sync mode.
2659 * python/python.c: Include interps.h.
2660 (python_command, execute_gdb_command): Force the interpreter to
2661 sync mode.
2662
c709acd1
PA
26632011-09-02 Pedro Alves <pedro@codesourcery.com>
2664
2665 * value.c (show_convenience): Catch errors thrown while printing
2666 each internal variable.
2667 * infrun.c (validate_siginfo_access): New function.
2668 (siginfo_value_read, siginfo_value_write): Call it.
2669
9655e943
JK
26702011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2671
2672 Revert:
2673 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2674 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2675 attribute.
2676
cb457ae2
YQ
26772011-08-29 Yao Qi <yao@codesourcery.com>
2678
2679 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2680 (cmp_name): New.
2681 (enable_break2): Update caller.
2682 * solib-frv.c (bfd_lookup_symbol): Removed.
2683 (cmp_name): New.
2684 (enable_break2): Update caller.
2685 * solib-pa64.c (bfd_lookup_symbol): Removed.
2686 (cmp_name): New.
2687 * solib-svr4.c (bfd_lookup_symbol): Removed.
2688 (cmp_name_and_sec_flags): New.
2689 (enable_break): Update caller.
2690 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2691 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2692 (gdb_bfd_lookup_symbol): New.
2693 * solib.h: Functions declarations.
2694
83d1a36a
YQ
26952011-08-29 Yao Qi <yao@codesourcery.com>
2696
2697 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2698 and solib-dsbt.o.
2699
c04b3e8f
JK
27002011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2701
2702 Fix TUI stepi on code without symbols.
2703 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2704 current PC instead.
2705
cb0fd152
JK
27062011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2707
2708 Code cleanup.
2709 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2710 and the static keyword.
2711 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2712 Make prefix an array.
2713 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2714 * mi/mi-main.c (get_register): Remove stb initialization and the static
2715 keyword.
2716
91174723
JK
27172011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2718
2719 Code cleanup - make mi_opt const.
2720 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2721 opts const.
2722 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2723 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2724 (mi_cmd_env_dir): Likewise.
2725 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2726 (mi_cmd_target_file_put): Likewise.
2727 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2728 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2729 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2730 (mi_valid_noargs): Make opts const.
2731 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2732 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2733 (mi_cmd_data_read_memory): Likewise.
2734 (mi_cmd_data_read_memory_bytes): Likewise.
2735 (mi_cmd_data_write_memory): Likewise.
2736
5068b8e8 27372011-08-26 Matt Rice <ratmice@gmail.com>
2738
2739 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2740 bcache_xmalloc, replace bcache_xmalloc with call to
2741 psymbol_bcache_init for psymbol_cache.
2742 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2743
a4f2ce05
JK
27442011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2745
2746 * inf-loop.c (inferior_event_handler): Add exception_print in
2747 INF_EXEC_COMPLETE.
2748
353d1d73
JK
27492011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2752 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2753 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2754 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2755 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2756 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2757 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2758 * infrun.c (fetch_inferior_event): Call
2759 make_bpstat_clear_actions_cleanup.
2760 * top.c (execute_command): New variable cleanup_if_error, call
2761 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2762 * utils.c (do_bpstat_clear_actions_cleanup)
2763 (make_bpstat_clear_actions_cleanup): New functions.
2764
3ced3da4
PA
27652011-08-26 Pedro Alves <pedro@codesourcery.com>
2766
2767 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2768 either the parent or the child forks. Rename a couple locals.
2769
a9f4bb21
PA
27702011-08-26 Pedro Alves <pedro@codesourcery.com>
2771
2772 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2773 library call. Avoid reading the `status' local if all waitpid
2774 calls failed.
2775
e5798bef
PA
27762011-08-26 Pedro Alves <pedro@codesourcery.com>
2777
2778 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2779 opening /proc/PID/task always succeeds.
2780
edb2aadf
AR
27812011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2782
2783 * linespec.c (symtab_from_filename): Check for the end of string.
2784
0d932b2f
MK
27852011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2786
2787 PR mi/11912
2788 * varobj.c (cplus_describe_child): Add the keyword
2789 'class' to the output of the method when dealing
2790 with a cast to a base class.
2791
e93ca019
JK
27922011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2793
2794 No functionality change.
2795 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2796 function comment a reference, new variables tp and bs, move here code
2797 from throw_exception.
2798 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2799 describe it in the comment.
2800 * exceptions.c (throw_exception): Remove variable tp, move the code for
2801 bpstat_clear_actions to bpstat_clear_actions.
2802
13da1c97
LM
28032011-08-24 Luis Machado <lgustavo@codesourcery.com>
2804
2805 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2806 * linux-nat.c: Include linux-procfs.h.
2807 (linux_proc_get_tgid): Move to ...
2808 * common/linux-procfs.c: ... here. New file.
2809 * common/linux-procfs.h: New file.
2810 * linux-thread-db.c: Include linux-procfs.h.
2811 * Makefile.in: Update dependencies.
2812 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2813 * config/arm/linux.mh: Likewise.
2814 * config/i386/linux.mh: Likewise.
2815 * config/i386/linux64.mh: Likewise.
2816 * config/ia64/linux.mh: Likewise.
2817 * config/m32r/linux.mh: Likewise.
2818 * config/m68k/linux.mh: Likewise.
2819 * config/mips/linux.mh: Likewise.
2820 * config/pa/linux.mh: Likewise.
2821 * config/pa/linux.mh: Likewise.
2822 * config/powerpc/linux.mh: Likewise.
2823 * config/powerpc/ppc64-linux.mh: Likewise.
2824 * config/powerpc/spu-linux.mh: Likewise.
2825 * config/sparc/linux.mh: Likewise.
2826 * config/sparc/linux64.mh: Likewise.
2827 * config/xtensa/linux.mh: Likewise.
2828
4e5c165d
HZ
28292011-08-24 Hui Zhu <teawater@gmail.com>
2830
2831 * tracepoint.c (cond_string_is_same): New function.
2832 (find_matching_tracepoint): Add condition check
2833 by cond_string_is_same.
2834
6e2f5b22
JK
28352011-08-23 Josh Matthews <josh@joshmatthews.net>
2836
2837 Fix build error in Darwin port.
2838 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2839
abf85f46
JK
28402011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2841
2842 Code cleanup.
2843 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2844 (command_line_is_silent): New function.
2845 (bpstat_do_actions_1): No longer use commands_left, use
2846 command_line_is_silent for commands.
2847 (bpstat_alloc): Remove clearing of commands_left.
2848 (bpstat_stop_status): Remove initialization of commands_left, use
2849 command_line_is_silent.
2850 * breakpoint.h (struct bpstats): Remove commands_left.
2851
3a93a0c2
KS
28522011-08-18 Keith Seitz <keiths@redhat.com>
2853
2854 PR c++/12266
2855 * cp-name-parser.y (struct demangle_info): Remove unused
2856 member PREV.
2857 (d_grab): Likewise.
2858 (allocate_info): Change return type to struct demangle_info *.
2859 Always allocate a new demangle_info.
2860 Remove unused PREV pointer.
2861 (cp_new_demangle_parse_info): New function.
2862 (cp_demangled_name_parse_free): New function.
2863 (do_demangled_name_parse_free_cleanup): New function.
2864 (make_cleanup_cp_demangled_name_parse_free): New function.
2865 (cp_demangled_name_to_comp): Change return type to
2866 struct demangle_parse_info *.
2867 Allocate a new storage for each call.
2868 (main): Update usage for cp_demangled_name_to_comp
2869 API change.
2870 * cp-support.h (struct demangle_parse_info): New structure.
2871 (cp_demangled_name_to_comp): Update API change for
2872 return type.
2873 (cp_new_demangle_parse_info): Declare.
2874 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2875 (cp_demangled_name_parse_free): Declare.
2876 * cp-support.c (cp_canonicalize_string): Update API
2877 change for cp_demangled_name_to_comp.
2878 (mangled_name_to_comp): Likewise.
2879 Return struct demangle_parse_info, too.
2880 (cp_class_name_from_physname): Update mangled_name_to_comp
2881 API change.
2882 (method_name_from_physname): Likewise.
2883 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2884 (cp_remove_params): Likewise.
2885 * python/py-type.c (typy_legacy_template_argument): Likewise.
2886
2887 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2888 (cp_merge_demangle_parse_infos): Declare.
2889 * cp-support.c (ignore_typedefs): New file global.
2890 (copy_string_to_obstack): New function.
2891 (inspect_type): New function.
2892 (replace_typedefs): New function.
2893 (replace_typedefs_qualified_name): New function.
2894 (cp_canonicalize_string_no_typedefs): New function.
2895 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2896 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2897 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2898 instead of cp_canonicalize_string.
2899 (find_method): Likewise.
2900 (decode_compound): Before looking up the name, call
2901 cp_canonicalize_string_no_typedefs.
2902 (decode_variable): Likewise.
2903
fa3a4f15
PM
29042011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2905 Tom Tromey <tromey@redhat.com>
2906 Matt Rice <ratmice@gmail.com>
2907
2908 * python/lib/gdb/prompt.py: New file.
2909 * python/lib/gdb/command/prompt.py: New file.
2910 * NEWS: Document set extended-prompt and gdb.prompt library
2911
85661b1e
YQ
29122011-08-16 Yao Qi <yao@codesourcery.com>
2913
2914 * tic6x-linux-tdep.c: Move const arrays definition from here...
2915 * tic6x-tdep.c: to here ...
2916
11315641
YQ
29172011-08-14 Yao Qi <yao@codesourcery.com>
2918
2919 * NEWS: New port to Texas Instruments TMS320C6x.
2920
8cd64e00
YQ
29212011-08-14 Andrew Jenner <andrew@codesourcery.com>
2922 Bernd Schmidt <bernds@codesourcery.com>
2923 Yao Qi <yao@codesourcery.com>
2924
2925 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2926 * solib-dsbt.c: New file. Support DSBT shared object.
2927 * tic6x-linux-tdep.c: New file.
2928 * tic6x-tdep.c: New file.
2929 * tic6x-tdep.h: New file.
2930
78d85199
YQ
29312011-08-14 Andrew Stubbs <ams@codesourcery.com>
2932 Yao Qi <yao@codesourcery.com>
2933
2934 * remote.c (PACKET_qXfer_fdpic): New enum value.
2935 (remote_protocol_features): Add qXfer:fdpic:read packet.
2936 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2937 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2938 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2939
224bbe49
YQ
29402011-08-14 Yao Qi <yao@codesourcery.com>
2941
2942 Target description for tic6x.
2943 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2944 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2945 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2946 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2947 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2948 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2949 * features/tic6x-c64xp-linux.xml: New.
2950 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2951 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2952 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2953 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2954 * regformats/tic6x-c64xp.dat,
2955 regformats/tic6x-c62x-linux.dat: Generated.
2956 * regformats/tic6x-c64x-linux.dat,
2957 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2958 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2959 features/tic6x-*.c files.
2960 Add regformats/tic6x-*.dat files.
2961
457e09f0
DE
29622011-08-12 Doug Evans <dje@google.com>
2963
2964 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2965 * python/py-symbol.c (sympy_get_type): New function.
2966 (symbol_object_getset): Add "type".
2967
d20c1c3f
PA
29682011-08-12 Pedro Alves <pedro@codesourcery.com>
2969
2970 PR tui/13073
2971
2972 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2973 empty name.
2974 (tui_show_register_group): Don't store a byte buffer in the data
2975 element's value.
2976 (tui_register_format): Skip registers with an empty name.
2977 (tui_get_register): Store a struct value in the data element's
2978 value field instead of a byte buffer holding the raw register
2979 contents. Account for optimized-out and unavailable registers
2980 when comparing register contents.
2981
9d8fa392
PA
29822011-08-09 Pedro Alves <pedro@codesourcery.com>
2983
2984 * printcmd.c (current_display_number): Update comment.
2985 (disable_current_display_cleanup): Delete.
2986 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2987 catch errors thrown while evaluating and printing the display.
2988
401a70b8
TT
29892011-08-09 Tom Tromey <tromey@redhat.com>
2990
2991 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2992
7f86f058
PA
29932011-08-09 Pedro Alves <pedro@codesourcery.com>
2994
94b71cca 2995 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2996 * maint.c (maintenance_command): Ditto.
2997 * somread.c (som_symtab_read): Ditto.
2998 * solib.c (solib_find, solib_map_sections, update_solib_list)
2999 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3000 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3001 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3002 * solib-irix.c (locate_base, disable_break, enable_break)
3003 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3004 (irix_current_sos, irix_open_symbol_file_object)
3005 (irix_special_symbol_handling): Ditto.
3006 * solib-sunos.c (locate_base, first_link_map_member)
3007 (sunos_current_sos, disable_break, enable_break)
3008 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3009 Ditto.
3010 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3011 (open_symbol_file_object, svr4_current_sos, enable_break)
3012 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3013 Ditto.
3014 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3015 (frv_current_sos, enable_break, frv_special_symbol_handling)
3016 (frv_solib_create_inferior_hook): Ditto.
3017 * solist.h (struct target_so_ops): Extend the comments of the
3018 special_symbol_handling, current_sos and open_symbol_file_object
3019 methods.
3020
5e239b84
PM
30212011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3022
3023 * python/lib/gdb/__init__.py: Auto-load files in command and
3024 function directories.
3025 * python/python.c (finish_python_initialization): Use
3026 os.path.join.
3027 * python/lib/gdb/command/pretty_printers.py: Self register
3028 command.
3029 * NEWS: Document auto-loading.
3030
b6cede78
JK
30312011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3032
3033 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3034 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3035 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3036
29d0bb3d
TT
30372011-08-08 Tom Tromey <tromey@redhat.com>
3038
3039 * breakpoint.c (clean_up_filters): Remove.
3040 (catch_syscall_split_args): Use VEC_cleanup.
3041
2f7fb8e4
JK
30422011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3043
3044 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3045 (main): Uncomment "Demangling error\n".
3046
d6c10e95
PP
30472011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3048
3049 * solib-target.c (segment_attributes): Make them static.
3050 (section_attributes, library_children, library_attributes): Likewise.
3051 (library_list_children, library_list_attributes): Likesise.
3052 (library_list_elements): Likewise.
3053
af6e93b2
PA
30542011-08-05 Pedro Alves <pedro@codesourcery.com>
3055
3056 * exceptions.c (throw_exception): Don't disable the current
3057 display.
3058 * printcmd.c (disable_current_display_cleanup): New function.
3059 (do_one_display): Install a cleanup to disable the current display
3060 if doing the display throws.
3061
6a1b1664
EZ
30622011-08-05 Eli Zaretskii <eliz@gnu.org>
3063
3064 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3065 initialization of the tp_new member to the corresponding
3066 gdbpy_initialize_* function.
3067 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3068 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3069 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3070 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3071 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3072
31a0ae49
JK
30732011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3074
3075 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3076 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3077 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3078 references to current_uiout.
3079
e0dd0826
PA
30802011-08-04 Pedro Alves <pedro@codesourcery.com>
3081
3082 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3083 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3084 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3085 * top.c (gdb_readline_wrapper): Adjust.
3086 * tui/tui-interp.c (tui_command_loop):
3087 (_initialize_tui_interp): Don't install it.
3088
79a45e25
PA
30892011-08-04 Pedro Alves <pedro@codesourcery.com>
3090
3091 * ui-out.h (uiout): Rename to ...
3092 (current_uiout): ... this.
3093 * ui-out.c (uiout): Rename to ...
3094 (current_uiout): ... this.
3095 * ada-lang.c (print_it_exception, print_one_exception)
3096 (print_mention_exception): Adjust.
3097 * breakpoint.c (watchpoint_check): Adjust.
3098 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3099 (default_collect_info, watchpoints_info, print_one_catch_fork)
3100 (print_one_catch_vfork, print_one_catch_syscall)
3101 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3102 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3103 (print_it_watchpoint, print_mention_watchpoint)
3104 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3105 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3106 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3107 (bkpt_print_mention, momentary_bkpt_print_it)
3108 (tracepoint_print_mention, update_static_tracepoint)
3109 (tracepoints_info, save_breakpoints): Adjust.
3110 * cli-out.c (field_separator): Adjust.
3111 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3112 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3113 * frame.c (get_current_frame): Adjust.
3114 * infcmd.c (run_command_1, print_return_value): Adjust.
3115 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3116 * infrun.c (print_end_stepping_range_reason): Adjust.
3117 (print_signal_exited_reason, print_exited_reason): Adjust.
3118 (print_signal_received_reason, print_no_history_reason): Adjust.
3119 * interps.c (interp_set): Adjust.
3120 * osdata.c (info_osdata_command): Adjust.
3121 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3122 * remote-fileio.c (remote_fileio_request): Adjust.
3123 * remote.c (show_remote_cmd): Adjust.
3124 * solib.c (info_sharedlibrary_command): Adjust.
3125 * source.c (print_source_lines_base): Adjust.
3126 * stack.c (print_stack_frame): Adjust.
3127 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3128 * symfile-mem.c (add_vsyscall_page): Adjust.
3129 * symfile.c (load_progress, generic_load)
3130 (print_transfer_performance): Adjust.
3131 * thread.c (info_threads_command, restore_selected_frame)
3132 (thread_command): Adjust.
3133 * top.c (make_cleanup_restore_ui_file): Adjust.
3134 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3135 (print_one_static_tracepoint_marker): Adjust.
3136 * cli/cli-cmds.c (print_disassembly): Adjust.
3137 * cli/cli-decode.c (print_doc_line): Adjust.
3138 * cli/cli-interp.c (safe_execute_command): Adjust.
3139 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3140 (handle_redirections): Adjust.
3141 * cli/cli-script.c (show_user_1): Adjust.
3142 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3143 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3144 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3145 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3146 (mi_cmd_env_dir): Adjust.
3147 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3148 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3149 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3150 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3151 (list_args_or_locals): Adjust.
3152 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3153 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3154 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3155 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3156 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3157 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3158 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3159 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3160 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3161 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3162 (list_available_thread_groups, mi_cmd_list_thread_groups)
3163 (mi_cmd_data_list_register_names)
3164 (mi_cmd_data_list_changed_registers)
3165 (mi_cmd_data_list_register_values, get_register)
3166 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3167 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3168 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3169 (mi_execute_command, mi_load_progress): Adjust.
3170 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3171 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3172 Adjust.
3173 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3174 * tui/tui-interp.c (tui_command_loop): Adjust.
3175 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3176
f9679975
PA
31772011-08-04 Pedro Alves <pedro@codesourcery.com>
3178
3179 * exceptions.c (struct catcher): Remove saved_uiout field.
3180 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3181 no longer save/resvore the global ui_out builder.
3182 (catch_exceptions_with_msg): Save/override/restore the global
3183 ui_out builder manually instead of relying on TRY_CATCH to do it.
3184 (catch_errors): Save/restore the global ui_out builder manually
3185 instead of relying on TRY_CATCH to do it.
3186 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3187 parameter.
3188 (TRY_CATCH): Adjust.
3189 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3190 the global ui_out builder manually instead of relying on TRY_CATCH
3191 to do it.
3192
934709f0
PW
31932011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3194
3195 * breakpoint.c (update_global_location_list): Ensure
3196 invariant 'first loc marked not duplicated and inserted,
3197 following locs marked duplicated/not inserted' is respected
3198 for multiple locations at the same address.
3199 (unduplicated_should_be_inserted) New function.
3200 (swap_insertion) New function.
3201
2421fe6f
JK
32022011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3203
3204 * stack.c (print_frame_arguments_choices): Comment typo fix.
3205
3fbb6ffa
TJB
32062011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3207
3208 Revert:
3209 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3210 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3211 argument. Update callers.
3212
fbe12357
PP
32132011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3214
3215 PR gdb/13045
3216 * doublest.c (convert_doublest_to_floatformat): Pass correct
3217 mantissa length to put_field.
3218
b1d288d3
JK
32192011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3220
3221 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3222 exception_print code path.
3223 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3224 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3225 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3226
311b5970
JK
32272011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3228
3229 Code cleanup.
3230 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3231 Remove, merge them into ...
3232 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3233 variable args and its initialization.
3234 (struct print_args_args, print_args_stub): Remove, merge them into
3235 print_frame.
3236 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3237 them into ...
3238 (do_gdb_disassembly): ... here. Remove variable args and its
3239 initialization.
3240 (print_frame): Remove variable args and its initialization, new
3241 variable gdbarch and numargs (from print_args_stub), inline here
3242 print_args_stub with a TRY_CATCH.
3243 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3244 them into ...
3245 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3246 New variable e, remove variable btargs and its initialization.
311b5970 3247
484a26a8
TG
32482011-08-01 Tristan Gingold <gingold@adacore.com>
3249
3250 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3251
c30eee59
TJB
32522011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3253
3254 * breakpoint.c (insert_bp_location): Document return value.
3255 (insert_breakpoint_locations): Fix documentation.
3256 (remove_breakpoints): Add documentation.
3257
f116073b
TJB
32582011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3259
3260 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3261 argument. Update callers.
3262
65aa373f
JK
32632011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3264
3265 * stack.c (print_frame_info): Comment typo fix.
3266
a50242fb
SA
32672011-07-29 Sterling Augustine <saugustine@google.com>
3268
3269 * MAINTAINERS (Write After Approval): Add myself to the list.
3270
267f6504
TT
32712011-07-29 Tom Tromey <tromey@redhat.com>
3272
3273 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3274 (library_list_start_segment): Update.
3275 (library_list_start_section): Update.
3276
00bd41d6
PM
32772011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3278
3279 * varobj.c (value_get_print_value): Move hint check later into the
3280 function. Comment function. Free thevalue before reusing it.
3281
18a46dbe
JK
32822011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3283 Pedro Alves <pedro@codesourcery.com>
3284
3285 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3286 value_one.
3287 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3288 Assert the result kind.
3289 * value.h (value_one): Remove parameter lv.
3290
bb7da2bf
JK
32912011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3292
3293 Fix crash on lval_computed values.
3294 * valops.c (value_zero): Use not_lval for lval_computed.
3295
2d5213f8
TT
32962011-07-27 Tom Tromey <tromey@redhat.com>
3297
3298 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3299 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3300
11081198
JK
33012011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3302
3303 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3304 "ptype" by their typedefs difference.
3305
3c6e0cb3
JK
33062011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3307
3308 * dwarf2expr.c (ctx_no_read_reg): New function.
3309 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3310 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3311 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3312 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3313
523f3620
JK
33142011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3317 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3318 file.
3319 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3320 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3321 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3322 (ctx_no_get_base_type): Move the functions here.
3323 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3324 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3325 (ctx_no_get_base_type): New declarations.
3326
24d3216f
TT
33272011-07-27 Tom Tromey <tromey@redhat.com>
3328
3329 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3330 entries.
3331 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3332 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3333
5005c8a9
PP
33342011-07-26 Sterling Augustine <saugustine@google.com>
3335
3336 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3337 ULONGEST.
3338 (dump_bfd_file): Likewise.
3339
480a3f21
PW
33402011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3341
3342 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3343 (remote_hw_watchpoint_length_limit): New variable.
3344 (_initialize_remote) add set,show cmds for this new variable.
3345 * gdb.texinfo: document these new commands.
3346 * NEWS: Mention these new commands.
3347
efa80663
PA
33482011-07-26 Pedro Alves <pedro@codesourcery.com>
3349
3350 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3351 true for software watchpoints.
3352
dbdaa232 33532011-07-26 Joel Brobecker <brobecker@adacore.com>
3354
3355 GDB 7.3 released.
3356
cf2c3c16
TT
33572011-07-26 Tom Tromey <tromey@redhat.com>
3358
3359 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3360 * dwarf2read.c (read_indirect_string_at_offset): New function.
3361 (read_indirect_string): Use it.
3362 (dwarf_decode_macro_bytes): New function, taken from
3363 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3364 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3365 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3366 New functions.
3367 (struct dwarf2_per_objfile) <macro>: New field.
3368 (dwarf2_elf_names): Add .debug_macro.
3369 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3370 (dwarf2_locate_sections): Handle new section.
3371 (read_file_scope): Handle DW_AT_GNU_macros.
3372 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3373
1a532630
PP
33742011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3375
3376 * NEWS: Mention dcache configuration.
3377 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3378 (dcache_size, dcache_line_size): New variables.
3379 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3380 (struct dcache_block): Make it expandable.
3381 (struct dcache_struct): New field.
3382 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3383 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3384 (dcache_poke_byte, dcache_print_line): Adjust.
3385 (set_dcache_size, set_dcache_line_size): New functions.
3386 (set_dcache_command, show_dcache_command): New functions.
3387 (_initialize_dcache): Add new commands.
3388
2eff07b3
PP
33892011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3390
3391 * progspace.h (struct program_space): Add solib_add_generation.
3392 * infcmd.c (post_create_inferior): Only call solib_add if not
3393 already done.
3394 * solib.c (solib_add): Increment solib_add_generation.
3395
543305c9
JK
33962011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3397
3398 Fix implicit pointer offsets.
3399 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3400 ptr.OFFSET.
3401
c0a91b2b
TT
34022011-07-25 Tom Tromey <tromey@redhat.com>
3403
3404 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3405 const.
3406 (ada_exception_sal): Make 'ops' const.
3407 (ada_decode_exception_location): Likewise.
3408 (ada_decode_assert_location): Likewise.
3409 (catch_assert_command): Update.
3410 (catch_ada_exception_command): Update.
3411 (create_ada_exception_catchpoint): Make 'ops' const.
3412 * breakpoint.c (set_raw_breakpoint_without_location)
3413 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3414 const.
3415 (create_internal_breakpoint): Update.
3416 (init_raw_breakpoint_without_location): Make 'ops' const.
3417 (init_raw_breakpoint, init_catchpoint)
3418 (create_fork_vfork_event_catchpoint)
3419 (create_syscall_event_catchpoint, init_breakpoint_sal)
3420 (create_breakpoint_sal, create_breakpoints_sal)
3421 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3422 * breakpoint.h (struct breakpoint) <ops>: Now const.
3423 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3424 const.
3425
6cb9b55b
PP
34262011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3427
3428 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3429
d9b3f62e
PA
34302011-07-25 Pedro Alves <pedro@codesourcery.com>
3431
3432 * breakpoint.h (print_recreate_thread): Declare.
3433 (struct breakpoint): Move step_count, pass_count,
3434 number_on_target, static_trace_marker_id,
3435 static_trace_marker_id_idx ...
3436 (struct tracepoint): ... to this new struct.
3437 (get_tracepoint, get_tracepoint_by_number_on_target)
3438 (get_tracepoint_by_number): Change return type to struct
3439 tracepoint pointer.
3440 * breakpoint.c (is_tracepoint_type): New, factored out from
3441 is_tracepoint.
3442 (is_tracepoint): Adjust.
3443 (print_one_breakpoint_location): Cast to struct tracepoint as
3444 necessary, and adjust.
3445 (print_recreate_catch_fork, print_recreate_catch_vfork)
3446 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3447 print_recreate_thread.
3448 (init_breakpoint_sal): New, factored out from
3449 create_breakpoint_sal.
3450 (create_breakpoint_sal): Reimplement.
3451 (create_breakpoint): Allocate a struct tracecepoint if the caller
3452 wanted a tracepoint. Use init_breakpoint_sal and
3453 install_breakpoint.
3454 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3455 (print_recreate_masked_watchpoint)
3456 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3457 (tracepoint_print_one_detail): Adjust.
3458 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3459 Dump the pass count here.
3460 (update_static_tracepoint): Adjust.
3461 (addr_string_to_sals): Adjust.
3462 (create_tracepoint_from_upload): Adjust. Change return type to
3463 struct tracepoint pointer.
3464 (trace_pass_set_count): Change parameter type to struct tracepoint
3465 pointer, and adjust.
3466 (trace_pass_command): Adjust.
3467 (get_tracepoint, get_tracepoint_by_number_on_target)
3468 (get_tracepoint_by_number): Change return type to struct
3469 tracepoint pointer, and adjust.
3470 (print_recreate_thread): New, factored out from save_breakpoints.
3471 (save_breakpoints): Don't print thread and task and passcount
3472 recreation here.
3473 * remote.c (remote_download_tracepoint): Adjust.
3474 * tracepoint.c (trace_actions_command, validate_actionline)
3475 (start_tracing, tfind_1, trace_find_tracepoint_command)
3476 (trace_dump_command): Adjust.
3477 (find_matching_tracepoint): Change return type to struct
3478 tracepoint pointer, and adjust.
3479 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3480 (tfile_trace_find, tfile_fetch_registers): Adjust.
3481 * tracepoint.h (create_tracepoint_from_upload): Change return type
3482 to struct tracepoint pointer.
3483 * ada-lang.c (print_recreate_exception): Call
3484 print_recreate_thread.
3485 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3486
3a5c3e22
PA
34872011-07-25 Pedro Alves <pedro@codesourcery.com>
3488
3489 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3490 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3491 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3492 watchpoint_thread, watchpoint_triggered ...
3493 (struct watchpoint): ... to this new struct.
3494 (is_watchpoint): Declare.
3495 (install_breakpoint): Add new `internal' parameter.
3496 * breakpoint.c (is_watchpoint): Delete declaration.
3497 (set_breakpoint_condition): Handle watchpoints.
3498 (is_watchpoint): Make public.
3499 (watchpoint_in_thread_scope): Change parameter type to struct
3500 watchpoint.
3501 (watchpoint_del_at_next_stop): Change parameter type to struct
3502 watchpoint. Remove assertion. Adjust.
3503 (update_watchpoint): Ditto.
3504 (insert_breakpoints, breakpoint_init_inferior)
3505 (watchpoints_triggered, watchpoint_check)
3506 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3507 (bpstat_stop_status, print_one_breakpoint_location)
3508 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3509 to struct watchpoint as necessary, and adjust.
3510 (install_breakpoint): Add `internal' argument. If true, don't
3511 mention the new breakpoint. Use set_breakpoint_number.
3512 (create_fork_vfork_event_catchpoint)
3513 (create_syscall_event_catchpoint): Adjust.
3514 (dtor_watchpoint): New.
3515 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3516 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3517 (print_it_watchpoint, print_mention_watchpoint)
3518 (print_recreate_watchpoint, insert_masked_watchpoint)
3519 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3520 (print_one_detail_masked_watchpoint)
3521 (print_mention_masked_watchpoint)
3522 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3523 necessary, and adjust.
3524 (watch_command_1): Allocate and initialize a struct watchpoint
3525 instead of a struct breakpoint. Use install_breakpoint.
3526 (catch_exec_command_1): Adjust.
3527 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3528 fields.
3529 (delete_breakpoint, enable_breakpoint_disp)
3530 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3531 as necessary, and adjust.
3532 (initialize_breakpoint_ops): Install dtor_watchpoint as
3533 watchpoints' dtor method.
3534 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3535 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3536 to struct watchpoint as necessary, and adjust.
3537
2060206e
PA
35382011-07-25 Pedro Alves <pedro@codesourcery.com>
3539
3540 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3541 the the base class ops table.
3542 (catch_exception_breakpoint_ops)
3543 (catch_exception_unhandled_breakpoint_ops)
3544 (catch_assert_breakpoint_ops): Don't statically initialize.
3545 (initialize_ada_catchpoint_ops): New.
3546 (_initialize_ada_language): Call it.
3547 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3548 (bkpt_breakpoint_ops): Forward declare.
3549 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3550 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3551 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3552 (masked_watchpoint_breakpoint_ops)
3553 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3554 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3555 base class ops table.
3556 (null_re_set, null_check_status, null_works_in_software_mode)
3557 (null_resources_needed, null_print_one_detail): Delete.
3558 (bkpt_dtor): Rename to ...
3559 (base_breakpoint_dtor): ... this. Make static.
3560 (bkpt_allocate_location): Rename to ...
3561 (base_breakpoint_allocate_location): ... this. Make static.
3562 (base_breakpoint_re_set): New.
3563 (internal_error_pure_virtual_called): New.
3564 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3565 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3566 (base_breakpoint_works_in_software_mode)
3567 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3568 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3569 (base_breakpoint_print_recreate): New functions.
3570 (base_breakpoint_ops): New global.
3571 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3572 (bkpt_breakpoint_hit): Make static.
3573 (bkpt_check_status): Delete.
3574 (bkpt_resources_needed): Make static.
3575 (bkpt_works_in_software_mode): Delete.
3576 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3577 static.
3578 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3579 (momentary_breakpoint_ops): Don't statically initialize.
3580 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3581 Delete.
3582 (tracepoint_insert_location, tracepoint_remove_location)
3583 (tracepoint_check_status, tracepoint_works_in_software_mode)
3584 (tracepoint_print_it): Delete.
3585 (tracepoint_breakpoint_ops): Don't statically initialize.
3586 (initialize_breakpoint_ops): New.
3587 (_initialize_breakpoint): Call it.
3588 * breakpoint.h (null_re_set, null_works_in_software_mode)
3589 (null_resources_needed, null_check_status, null_print_one_detail):
3590 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3591 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3592 (bkpt_check_status, bkpt_resources_needed)
3593 (bkpt_works_in_software_mode, bkpt_print_it)
3594 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3595 Delete declarations.
3596 (initialize_breakpoint_ops): Declare.
3597
001c8c33
PA
35982011-07-25 Pedro Alves <pedro@codesourcery.com>
3599
3600 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3601 (momentary_bkpt_print_it): Simplify.
3602
06edf0c0
PA
36032011-07-25 Pedro Alves <pedro@codesourcery.com>
3604
3605 Split internal, momentary and user breakpoints breakpoint_ops
3606 tables.
3607
3608 * breakpoint.c (internal_breakpoint_ops)
3609 (momentary_breakpoint_ops): Forward declare.
3610 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3611 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3612 (create_overlay_event_breakpoint)
3613 (create_std_terminate_master_breakpoint)
3614 (create_exception_master_breakpoint): Create breakpoints with
3615 internal_breakpoint_ops vtable.
3616 (set_longjmp_breakpoint): Create momentary breakpoints with
3617 momentary_breakpoint_ops vtable, using
3618 momentary_breakpoint_from_master.
3619 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3620 (create_solib_event_breakpoint): Create breakpoints with
3621 internal_breakpoint_ops vtable.
3622 (set_momentary_breakpoint): Create breakpoints with
3623 momentary_breakpoint_ops vtable.
3624 (momentary_breakpoint_from_master): New, factored out from
3625 clone_momentary_breakpoint.
3626 (clone_momentary_breakpoint): Adjust.
3627 (watch_command_1): Create scope breakpoints with
3628 momentary_breakpoint_ops vtable.
3629 (bkpt_re_set): Remove handling of internal and momentary
3630 breakpoints.
3631 (bkpt_print_mention, bkpt_print_recreate): New.
3632 (bkpt_breakpoint_ops): Adjust.
3633 (internal_bkpt_re_set, internal_bkpt_check_status)
3634 (internal_bkpt_print_it, internal_bkpt_print_mention)
3635 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3636 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3637 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3638 (momentary_bkpt_print_recreate): New.
3639 (momentary_breakpoint_ops): New.
3640
348d480f
PA
36412011-07-25 Pedro Alves <pedro@codesourcery.com>
3642
3643 Implement most breakpoint_ops methods for all breakpoint types,
3644 and move the default handlings to the proper callbacks.
3645
3646 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3647 works_in_software_mode method.
3648 (insert_bp_location): Go through breakpoint_ops->insert_location
3649 for software and hardware watchpoints.
3650 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3651 breakpoint_ops.
3652 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3653 for software and hardware watchpoints.
3654 (print_it_typical): Delete.
3655 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3656 method.
3657 (watchpoint_check): Adjust comment.
3658 (bpstat_check_location): Simply always call the breakpoint's
3659 breakpoint_hit method.
3660 (bpstat_stop_status): Always call the breakpoint's check_status
3661 method. Remove special cases for watchpoints and internal event
3662 breakpoints from here (moved to the check_status implementations).
3663 (print_one_breakpoint_location): Assume b->ops is never NULL.
3664 Remove static tracepoint marker id printing from here (moved to
3665 the print_one_detail callback implementation of tracepoints).
3666 (init_bp_location): Assert OPS is never NULL.
3667 (allocate_bp_location): Always call the breakpoint's
3668 allocate_location method, and remove the default code from here.
3669 (free_bp_location): Always call the location's dtor method, and
3670 remove the default code from here.
3671 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3672 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3673 parameter. Pass it down.
3674 (set_raw_breakpoint): Ditto.
3675 (print_it_catch_fork): Adjust to take a bpstat as argument.
3676 (catch_fork_breakpoint_ops): Install methods.
3677 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3678 (catch_vfork_breakpoint_ops): Install methods.
3679 (dtor_catch_syscall): Call the base dtor.
3680 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3681 (catch_syscall_breakpoint_ops): Install methods.
3682 (dtor_catch_exec): Call the base dtor.
3683 (print_it_catch_exec): Adjust to take a bpstat as argument.
3684 (catch_exec_breakpoint_ops): Install methods.
3685 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3686 the breakpoint's resources_needed method, and remove the default
3687 code from here.
3688 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3689 breakpoint_ops.
3690 (clone_momentary_breakpoint): Clone the original's ops.
3691 (mention): Always call the breakpoint's print_mention method, and
3692 remove the default code from here.
3693 (create_breakpoint_sal): Adjust to pass the ops to
3694 set_raw_breakpoint rather than setting it manually.
3695 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3696 ops to set_raw_breakpoint_without_location rather than setting it
3697 manually.
3698 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3699 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3700 (ranged_breakpoint_ops): Install methods.
3701 (break_range_command): Adjust to pass the ops to
3702 set_raw_breakpoint rather than setting it manually.
3703 (re_set_watchpoint, breakpoint_hit_watchpoint)
3704 (check_status_watchpoint, resources_needed_watchpoint)
3705 (works_in_software_mode_watchpoint, print_it_watchpoint)
3706 (print_mention_watchpoint, print_recreate_watchpoint): New
3707 functions.
3708 (watchpoint_breakpoint_ops): Install new methods.
3709 (print_it_masked_watchpoint): New function.
3710 (masked_watchpoint_breakpoint_ops): Install new methods.
3711 (watch_command_1): Adjust to pass the right breakpoint_ops to
3712 set_raw_breakpoint_without_location rather than setting it
3713 manually later. Record the current pspace.
3714 (print_it_exception_catchpoint): Adjust to take a bpstat as
3715 argument.
3716 (gnu_v3_exception_catchpoint_ops): Install new methods.
3717 (say_where): New function.
3718 (null_re_set, null_check_status, null_works_in_software_mode)
3719 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3720 New functions.
3721 (bp_location_ops): New global.
3722 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3723 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3724 (bkpt_check_status, bkpt_resources_needed)
3725 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3726 (bkpt_print_recreate): New functions.
3727 (bkpt_breakpoint_ops): New global.
3728 (tracepoint_re_set, tracepoint_insert_location)
3729 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3730 (tracepoint_check_status, tracepoint_works_in_software_mode)
3731 (tracepoint_print_it, tracepoint_print_one_detail)
3732 (tracepoint_print_mention, tracepoint_print_recreate): New
3733 functions.
3734 (tracepoint_breakpoint_ops): New global.
3735 (delete_breakpoint): Always call the breakpoint's dtor method, and
3736 remove the default handling from here.
3737 (breakpoint_re_set_default): Make static.
3738 (breakpoint_re_set_one): Always call the breakpoints re_set
3739 method, and remove the default handling from here.
3740 (trace_command, ftrace_command, strace_command)
3741 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3742 to create_breakpoint.
3743 (save_breakpoints): Always call the breakpoint's print_recreate
3744 method, and remove the default handling from here.
3745
3746 * ada-lang.c (dtor_exception): Call the base dtor.
3747 (re_set_exception): Call the base method.
3748 (print_it_exception, print_it_catch_exception): Adjust to take a
3749 bpstat as argument.
3750 (catch_exception_breakpoint_ops): Install methods.
3751 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3752 argument.
3753 (catch_exception_unhandled_breakpoint_ops): Install methods.
3754 (print_it_catch_assert): Adjust to take a bpstat as argument.
3755 (catch_assert_breakpoint_ops): Install methods.
3756
3757 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3758 to take a bpstat as argument.
3759 (enum print_stop_action): Add describing comments to each enum
3760 value.
3761 (breakpoint_re_set_default): Delete declaration.
3762 (null_re_set, null_works_in_software_mode, null_resources_needed)
3763 (null_check_status, null_print_one_detail): Declare.
3764 (bkpt_breakpoint_ops): Declare.
3765 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3766 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3767 (bkpt_check_status, bkpt_resources_needed)
3768 (bkpt_works_in_software_mode, bkpt_print_it)
3769 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3770 Declare.
3771
3772 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3773 bkpt_breakpoint_ops.
3774 * python/py-breakpoint.c (bppy_init): Ditto.
3775
be8f8133
PW
37762011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3777
3778 * MAINTAINERS (Write After Approval): Add myself to the list.
3779
3807f613
PP
37802011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3781
3782 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3783
1ced966e
PA
37842011-07-22 Pedro Alves <pedro@codesourcery.com>
3785
3786 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3787 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3788 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3789 adjust.
3790 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3791 (struct i386_debug_reg_state): New.
3792 (i386_init_dregs): New.
3793 (dr_mirror): New.
3794 (i386_cleanup_dregs): Use i386_init_dregs.
3795 (i386_show_dr): Add state parameter and adjust.
3796 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3797 the inferior here.
3798 (i386_remove_aligned_watchpoint): Likewise.
3799 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3800 (i386_update_inferior_debug_regs): New.
3801 (i386_insert_watchpoint): Work on a local mirror of the debug
3802 registers, and only update the inferior on success.
3803 (i386_remove_watchpoint): Ditto.
3804 (i386_region_ok_for_watchpoint): Adjust.
3805 (i386_stopped_data_address): Adjust.
3806 (i386_insert_hw_breakpoint): Adjust.
3807 (i386_remove_hw_breakpoint): Adjust.
3808
3543a589
TT
38092011-07-22 Tom Tromey <tromey@redhat.com>
3810
3811 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3812 from amd64_pseudo_register_read. Change arguments. Call
3813 mark_value_bytes_unavailable when needed.
3814 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3815 set_gdbarch_pseudo_register_read.
3816 * sentinel-frame.c (sentinel_frame_prev_register): Use
3817 regcache_cooked_read_value.
3818 * regcache.h (regcache_cooked_read_value): Declare.
3819 * regcache.c (regcache_cooked_read_value): New function.
3820 (regcache_cooked_read): Call
3821 gdbarch_pseudo_register_read_value if available.
3822 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3823 (i386_pseudo_register_read): Remove.
3824 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3825 i386_pseudo_register_read. Change arguments. Call
3826 mark_value_bytes_unavailable when needed.
3827 (i386_pseudo_register_read_value): New function.
3828 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3829 not set_gdbarch_pseudo_register_read.
3830 * gdbarch.sh (pseudo_register_read_value): New method.
3831 * gdbarch.c, gdbarch.h: Rebuild.
3832 * findvar.c (value_from_register): Call get_frame_register_value.
3833
95298e72
PM
38342011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3835
3836 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3837 get_prefix.
3838 (display_gdb_prompt): Likewise.
3839 (change_annotation_level): Likewise.
3840 (push_prompt): Likewise.
3841 (pop_prompt): Likewise.
3842 (handle_stop_sig): Use get_prompt with a level.
3843 * top.c (command_loop): Use get_prompt with a level.
3844 (set_async_annotation_level): Use set_prompt with a level.
3845 (get_prefix): New function.
3846 (set_prefix): Ditto.
3847 (set_suffix): Ditto.
3848 (get_suffix): Ditto.
3849 (get_prompt): Accept a level argument.
3850 (set_prompt): Accept a level argument. Free old prompts. Set
3851 new_async_prompt if level is 0.
3852 (init_main): Use set_prompt with a level. Do not set
3853 new_async_prompt.
3854 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3855 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3856 Modify set_prompt, get_prompt to account for levels.
3857 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3858 level.
3859 * python/python.c (before_prompt_hook): Use set_prompt.
3860
d26e3629
KY
38612011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3862
3863 * defs.h: Add guard against inclusion in gdbserver.
3864 (struct ptid, ptid_t): Move to common/ptid.h.
3865 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3866 xsnprintf, internal_error): Move to common/common-utils.h.
3867 (nomem): Delete.
3868 * gdb_assert.h: Move into common/ sub-directory.
3869 * gdb_locale.h: Ditto.
3870 * gdb_dirent.h: Ditto.
3871 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3872 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3873 Move into common/ptid.h.
3874 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3875 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3876 Change nomem to malloc_failure.
3877 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3878 * utils.c (nomem): Rename to malloc_failure.
3879 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3880 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3881 (gdb_buildargv): Change nomem to malloc_failure.
3882 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3883 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3884 ptid_is_pid): Move into common/ptid.c.
3885 (initialize_infrun): Delete initialization of null_ptid and
3886 minus_one_ptid.
3887 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3888 linux_common_xfer_osdata.
3889 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3890 common/ptid.c and common/buffer.c.
3891 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3892 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3893 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3894 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3895 rules.
3896 * common/gdb_assert.h: New.
3897 * common/gdb_dirent.h: New.
3898 * common/gdb_locale.h: New.
3899 * common/buffer.c: New.
3900 * common/buffer.h: New.
3901 * common/ptid.c: New.
3902 * common/ptid.h: New.
3903 * common/xml-utils.c: New.
3904 * common/xml-utils.h: New.
3905 * common/common-utils.c: New.
3906 * common/common-utils.h: New.
3907 * common/linux-osdata.c: New.
3908 * common/linux-osdata.h: New.
3909 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3910 * config/arm/linux.mh (NATDEPFILES): Ditto.
3911 * config/i386/linux.mh (NATDEPFILES): Ditto.
3912 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3913 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3914 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3915 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3916 * config/mips/linux.mh (NATDEPFILES): Ditto.
3917 * config/pa/linux.mh (NATDEPFILES): Ditto.
3918 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3919 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3920 * config/s390/s390.mh (NATDEPFILES): Ditto.
3921 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3922 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3923 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3924
edc84990 39252011-07-21 Matt Rice <ratmice@gmail.com>
3926
3927 * NEWS: Add info macros and info definitions commands.
3928
3a7bf607
PM
39292011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3930
3931 * NEWS: Document Python prompt substitution hook.
3932
9b158ba0 39332011-07-18 Matt Rice <ratmice@gmail.com>
3934
3935 PR macros/12999
3936 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3937 * macrotab.c (foreach_macro): Ditto.
3938 (foreach_macro_in_scope): Ditto.
3939 * macrocmd.c (print_macro_callback): New function.
3940 (info_macro_command): Move some code to print_macro_definition.
3941 (print_macro_definition): New function.
3942 (print_one_macro): Add new arguments to callback.
3943 (info_definitions_command): New function.
3944 (info_macros_command): Ditto.
3945 (_initialize_macrocmd): Add info macros and info definitions commands.
3946 * symtab.c (add_macro_name): Add new arguments to callback.
3947
d17b6f81
PM
39482011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3949 Tom Tromey <tromey@redhat.com>
3950
3951 * top.c (set_prompt): Rewrite to free previous prompt, free
3952 asynch_new_prompt and set both on new prompts.
3953 * event-top.c (display_gdb_prompt): Add prompt substitution
3954 logic.
3955 * python/python.c (before_prompt_hook): New function.
3956
1364323a 39572011-07-20 Matt Rice <ratmice@gmail.com>
3958
3959 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3960 arguments to store_unsigned_integer.
3961
8b70b953
TT
39622011-07-20 Tom Tromey <tromey@redhat.com>
3963
6c83ed52
TT
3964 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3965 in some declaration-only cases.
3966
39672011-07-18 Tom Tromey <tromey@redhat.com>
3968
8b70b953
TT
3969 PR symtab/12984:
3970 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3971 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3972 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3973 <debug_type_section>: New field.
3974 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3975 (load_cu): Use appropriate section.
3976 (create_signatured_type_table_from_index): Add 'section'
3977 argument.
3978 (dwarf2_read_index): Only allow a single .debug_types section.
3979 (dw2_get_file_names): Use appropriate section.
3980 (read_type_comp_unit_head): Add 'section' argument.
3981 (create_debug_types_hash_table): Loop over all .debug_types
3982 sections.
3983 (init_cu_die_reader): Use appropriate section.
3984 (process_psymtab_comp_unit, load_partial_comp_unit)
3985 (load_full_comp_unit, read_die_and_children, find_partial_die)
3986 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3987 (lookup_signatured_type_at_offset): Add 'section' argument.
3988 (read_signatured_type_at_offset): Add 'sect' argument.
3989 (read_signatured_type): Use appropriate section.
3990 (set_die_type, get_die_type_at_offset): Update.
3991 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3992 VEC.
3993 (write_psymtabs_to_index): Don't allow index with more than one
3994 .debug_types section.
3995
918dd910
JK
39962011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 Fix crash if referenced CU is aged out.
3999 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4000 xfree of block.data.
4001 (indirect_pieced_value): New variable back_to, use to for xfree of
4002 baton.data.
4003 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4004 block.data.
4005 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4006 (load_cu): New function from ...
4007 (dw2_do_instantiate_symtab): ... the code here ...
4008 (process_full_comp_unit): ... and here.
4009 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4010 retval.data.
4011
0e37a63c
JK
40122011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4013
4014 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4015 type.
4016
7e324e48
GB
40172011-07-19 Gary Benson <gbenson@redhat.com>
4018
4019 * infrun.c (struct execution_control_state): New member
4020 stop_func_filled_in.
4021 (clear_stop_func, fill_in_stop_func): New functions.
4022 (handle_inferior_event): Call clear_stop_func rather than
4023 manipulating the execution control state directly.
4024 Call fill_in_stop_func lazily as required rather than
4025 directly calling find_pc_partial_function in all cases.
4026
d48323d8
TT
40272011-07-18 Tom Tromey <tromey@redhat.com>
4028
4029 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4030 checking for variable-sized array.
4031
40591b7d
JCD
40322011-07-18 Jean-Charles Delay <delay@adacore.com>
4033
4034 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4035 of supported languages.
4036 * varobj.c: Add top definitions and basic implementation of the
4037 following callbacks: ada_number_of_children, ada_name_of_variable,
4038 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4039 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4040 (languages): Register Ada-specific callbacks.
4041 (variable_language): Add the Ada case in the language setter switch.
4042
2e424e08
JK
40432011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4046
9e8b7a03
JK
40472011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4048
4049 Code cleanup.
4050 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4051 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4052 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4053 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4054 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4055 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4056 (struct dwarf_expr_context_funcs): New, move here methods from ...
4057 (struct dwarf_expr_context): ... here. New fields funcs.
4058 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4059 (dwarf_expr_ctx_funcs): New.
4060 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4061 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4062 (needs_frame_ctx_funcs): New.
4063 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4064
2b1260ab
FM
40652011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4066
4067 * MAINTAINERS (Write After Approval): Add myself to the list.
4068
8bd90839
FM
40692011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4070
4071 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4072 that CIE pointer of an FDE really points to a CIE .
4073
953b98d1
HZ
40742011-07-15 Hui Zhu <teawater@gmail.com>
4075
4076 * remote.c (remote_get_trace_status): Add comments.
4077
c8f2448a
JK
40782011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4079
4080 Code cleanup - constify struct lval_funcs.
4081 * dwarf2loc.c (pieced_value_funcs): Make it const.
4082 * infrun.c (siginfo_value_funcs): Likewise.
4083 * opencl-lang.c (opencl_value_funcs): Likewise.
4084 * valops.c (value_assign, value_ind): Make the funcs variable const.
4085 * value.c (struct value): Make location.computed.funcs target const.
4086 Rearrange the comments.
4087 (allocate_computed_value): Make the funcs parameter target const.
4088 (value_computed_funcs): Return the funcs target const.
4089 (value_free, value_copy, set_value_component_location): Make the funcs
4090 variable const.
4091 * value.h (allocate_computed_value): Make the funcs parameter target
4092 const.
4093 (value_computed_funcs): Return the funcs target const.
4094 * windows-tdep.c (tlb_value_funcs): Make it const.
4095
f652de6f
HZ
40962011-07-14 Hui Zhu <teawater@gmail.com>
4097
4098 * remote.c (remote_get_trace_status): Initialize p.
4099
67f41397
JK
41002011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4101
4102 Work around kgdb.
4103 * remote.c (remote_get_trace_status): New variable ex. Put
4104 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4105
d1b66e6d
TT
41062011-07-13 Tom Tromey <tromey@redhat.com>
4107
4108 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4109 value_from_contents for final conversion.
4110
1632a688
JK
41112011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4112
4113 Code cleanup.
4114 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4115 Indent prototypes so they do not get into tags.
4116
a7035dbb
JK
41172011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4118
4119 Code cleanup making also optimized out values lazy.
4120 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4121 allocate_optimized_out_value. Twice.
4122 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4123 * findvar.c (read_var_value): Likewise.
4124 * value.c (allocate_optimized_out_value): New function.
4125 * value.h (allocate_optimized_out_value): New declaration.
4126
d07ed419
JK
41272011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4128
4129 Fix occasional crash of CTRL-C during DWARF read in.
4130 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4131
86d31898
TT
41322011-07-11 Tom Tromey <tromey@redhat.com>
4133
4134 * regcache.c (struct regcache_descr): Fix typo.
4135 * i387-tdep.c (i387_supply_xsave): Fix typo.
4136
2ab95328
TT
41372011-07-11 Tom Tromey <tromey@redhat.com>
4138
4139 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4140 (read_file_scope, read_type_unit_scope): Use it.
4141
04ad99e6
JK
41422011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4145 `int'.
4146
713389e0
PM
41472011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4148
4149 PR python/12438
4150 * python/python.c: Set gdbpy_should_print_stack default to off.
4151 (set_python): Deprecate maint set python print-stack to
4152 class_deprecate.
4153 (_initialize_python): Deprecate maint set/show python print-stack.
4154 Add new prefix command, python. Add new setting, print-backtrace.
4155 * NEWS: Document set python print-stack. Document default change.
4156
754eadd1
PM
41572011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4158
4159 * python/py-inferior.c (infpy_dealloc): New function.
4160 (inferior_to_inferior_object): Return a new object, or a
4161 new reference to the existing object.
4162 (find_thread_object): Cleanup references to inferior.
4163 (delete_thread_object): Ditto.
4164 * python/py-infthread.c (create_thread_object): Do not increment
4165 inferior reference count.
4166
5e44ecb3
TT
41672011-07-08 Tom Tromey <tromey@redhat.com>
4168
4169 * dwarf2loc.c (locexpr_regname): New function.
4170 (locexpr_describe_location_piece): Use it.
4171 (disassemble_dwarf_expression): Add per_cu argument. Use
4172 locexpr_regname.
4173 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4174 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4175 New cases.
4176 (locexpr_describe_location_1): Add per_cu argument.
4177 (locexpr_describe_location): Update.
4178 (loclist_describe_location): Update.
4179
e0e9434c
TT
41802011-07-08 Tom Tromey <tromey@redhat.com>
4181
4182 * dwarf2expr.c (execute_stack_op): Add QUIT.
4183
26afc0d7
HZ
41842011-07-07 Hui Zhu <teawater@gmail.com>
4185
4186 Revert:
4187 2011-07-06 Hui Zhu <teawater@gmail.com>
4188 * remote.c (remote_start_remote): Add TRY_CATCH for
4189 remote_get_trace_status.
4190 * tracepoint.c (disconnect_tracing): Ditto.
4191
a40a111f
AB
41922011-07-07 Andrew Burgess <aburgess@broadcom.com>
4193
4194 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4195 variables as signed, not unsigned.
4196
e2bd3b15
JB
41972011-07-06 Joel Brobecker <brobecker@adacore.com>
4198
4199 * jit.c (jit_inferior_init): Reformat forward declaration.
4200
e3d961fe 42012011-07-06 Matt Rice <ratmice@gmail.com>
4202
4203 * MAINTAINERS (Write After Approval): Add myself to the list.
4204
0f3428f0
HZ
42052011-07-06 Hui Zhu <teawater@gmail.com>
4206
4207 * remote.c (remote_start_remote): Add TRY_CATCH for
4208 remote_get_trace_status.
4209 * tracepoint.c (disconnect_tracing): Ditto.
4210
fc9f3a69
TT
42112011-07-05 Tom Tromey <tromey@redhat.com>
4212
4213 * symtab.c (operator_chars): Now static.
4214 * linespec.c (operator_chars): Don't declare.
4215
26e519b9
TJB
42162011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4217
4218 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4219
eb2a6f42
TT
42202011-07-05 Tom Tromey <tromey@redhat.com>
4221
4222 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4223 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4224 (TYPE_CPLUS_REALLY_JAVA): New macro.
4225 * dwarf2read.c (process_structure_scope): Set
4226 TYPE_CPLUS_REALLY_JAVA.
4227
21083d0f 42282011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4229
4230 * ada-lang.c: Fix typos.
4231 * amd64-tdep.c: Likewise.
4232 * breakpoint.c: Likewise.
4233 * cli/cli-decode.c: Likewise.
4234 * findcmd.c: Likewise.
4235 * inline-frame.c: Likewise.
4236 * mi/mi-main.c: Likewise.
4237 * minsyms.c: Likewise.
4238 * monitor.c: Likewise.
4239 * monitor.h: Likewise.
4240 * prologue-value.c: Likewise.
4241 * reverse.c: Likewise.
4242 * s390-tdep.c: Likewise.
4243
3b2a0cf2
JB
42442011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4245
4246 * jit.c (jit_inferior_init): Forward declare.
4247 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4248
efae1d92
JB
42492011-07-04 Joel Brobecker <brobecker@adacore.com>
4250
4251 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4252
6040a59d
JB
42532011-07-04 Tristan Gingold <gingold@adacore.com>
4254
4255 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4256 (tcb_fieldno): Add activation_link field.
4257 (get_known_tasks_addr): Moved and rewritten.
4258 (get_tcb_types_info): Set activation_link field.
4259 (read_known_tasks_array): Add parameter. Rewritten.
4260 (read_known_tasks_list): New function.
4261 (read_known_tasks): New function.
4262 (ada_build_task_list): Call read_known_tasks instead of
4263 read_known_tasks_array.
4264 * ravenscar-thread.c: Add first_task_name constant.
4265 (has_ravenscar_runtime): Check for task list too.
4266
cb741e45
JB
42672011-07-04 Tristan Gingold <gingold@adacore.com>
4268
4269 * ada-tasks.c: Renames fieldno to actb_fieldno.
4270 (ada_get_task_number): Indentation.
4271 (get_tcb_types_info): Remove all parameters. Write directly
4272 the globals.
4273 (ptid_from_atcb_common): Adjust.
4274 (read_atcb): Adjust.
4275
7475b06c
TJB
42762011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4277
4278 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4279
15230f37
TJB
42802011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4281
4282 * ui-out.c (ui_out_field_core_addr): Mention that the function
4283 description is in the header file.
4284 * ui-out.h (ui_out_field_core_addr): Document function.
4285
65743aba
TJB
42862011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4287
4288 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4289 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4290
c37a5aab
TJB
42912011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4292
4293 * symtab.c (expand_line_sal): Remove empty line.
4294
59adf69e
TS
42952011-07-04 Thomas Schwinge <thomas@schwinge.name>
4296
4297 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4298 same way as ELFOSABI_NONE.
4299 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4300
e5dd4106
TJB
43012011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4302
4303 * breakpoint.c: Fix typos in comments.
4304 * linespec.c: Likewise.
4305 * symtab.c: Likewise.
4306
d40102a1
JB
43072011-07-04 Joel Brobecker <brobecker@adacore.com>
4308
4309 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4310 section in separate object files.
4311
2f741504
JK
43122011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4313
4314 Fix false GCC warning.
4315 * linespec.c (decode_line_1): Initialize values.
4316
418c7cf7
JK
43172011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4318
4319 * linespec.c (find_method): Accept the function type automatically only
4320 if it was specified with parameter types.
4321
3d50dd94
JK
43222011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4323
4324 Stop on first linespec terminator instead of eating what we can.
4325 * linespec.c (is_linespec_boundary): New function.
4326 (name_end): Remove function.
4327 (keep_name_info): New parameter on_boundary, replace the body.
4328 (decode_line_1): Provide the parameter to keep_name_info.
4329 (decode_compound): Likewise. Drop the trailing java return type
4330 handling. Twice.
4331
dcf9f4ab
JK
43322011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4333
4334 Fall back linespec to minimal symbols.
4335 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4336 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4337 (find_method, symbol_found): Change error to cplusplus_error.
4338
3f542ed1
JK
43392011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4340
bc68c4e5 4341 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4342
900e11f9
JK
43432011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4344 Tom Tromey <tromey@redhat.com>
4345
4346 * dwarf2read.c (check_physname): New variable.
4347 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4348 (show_check_physname): New function.
4349 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4350
2301925d
JB
43512011-07-01 Joel Brobecker <brobecker@adacore.com>
4352
4353 * machoread.c (macho_symfile_read): Delete OBE comment.
4354
38947cca
JB
43552011-07-01 Joel Brobecker <brobecker@adacore.com>
4356
4357 * machoread.c (struct macho_oso_data): Delete.
4358 (current_oso): Delete.
4359 (macho_relocate_common_syms): New function, mostly extracted
4360 out of
4361 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4362 Remove code that sets and unset current_oso.
4363 (macho_symfile_relocate): Delete handling of common symbols,
4364 now moved to macho_relocate_common_syms.
4365
a7aa0d73
JB
43662011-07-01 Joel Brobecker <brobecker@adacore.com>
4367
4368 * darwin-nat.c (darwin_ptrace): Add documentation.
4369 Set errno to zero before calling ptrace. If ptrace returns
4370 -1 and errno is zero, then change then return zero.
4371 (darwin_kill_inferior): Issue a warning instead of triggering
4372 a failed assertion when the PT_KILL ptrace operations returned
4373 nonzero.
4374
5e9bc145
JB
43752011-07-01 Joel Brobecker <brobecker@adacore.com>
4376
4377 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4378 only when inf->private->no_ptrace.
4379
00eb2c4a
JB
43802011-07-01 Joel Brobecker <brobecker@adacore.com>
4381
4382 * ada-lang.c (print_it_exception): Print temporary catchpoints
4383 as "Temporary catchpoint".
4384 (print_mention_exception): Likewise.
4385
127c81bc
TT
43862011-07-01 Tom Tromey <tromey@redhat.com>
4387
4388 * jv-lang.c (java_language_defn): Use java_printchar,
4389 java_printstr.
4390 (java_get_encoding): New function.
4391 (java_emit_char): Use generic_emit_char.
4392 (java_printchar): New function.
4393 (java_printstr): Likewise.
4394
25552254
JB
43952011-07-01 Joel Brobecker <brobecker@adacore.com>
4396
4397 * ada-typeprint.c (print_record_type): If unable to decode
4398 the name of the parent type, use the encoded name.
4399
d2d43431
JB
44002011-07-01 Jean-Charles Delay <delay@adacore.com>
4401
4402 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4403 pointer to constrained packed array type output.
4404 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4405 packed array output.
4406
54ae186f
JB
44072011-07-01 Jean-Charles Delay <delay@adacore.com>
4408
4409 * ada-typeprint.c (print_array_type): removed if condition on show
4410 being negative for bounds printing.
4411
8f17729f
JB
44122011-07-01 Joel Brobecker <brobecker@adacore.com>
4413
4414 * ada-lang.c (ada_identical_enum_types_p): New function.
4415 (symbols_are_identical_enums): New function.
4416 (remove_extra_symbols): Do nothing if NSYMS < 2.
4417 Use symbols_are_identical_enums.
4418
f5aa6869
JB
44192011-07-01 Joel Brobecker <brobecker@adacore.com>
4420
4421 * ada-valprint.c (ada_value_print): Handle typedefs.
4422
8f465ea7
JB
44232011-07-01 Joel Brobecker <brobecker@adacore.com>
4424
4425 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4426
828292f2
JB
44272011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4428
4429 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4430 (decode_constrained_packed_array): Likewise.
4431 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4432
18920c42
JB
44332011-07-01 Joel Brobecker <brobecker@adacore.com>
4434
4435 * ada-exp.y (convert_char_literal): Handle typedef types.
4436
c90092fe
JB
44372011-07-01 Joel Brobecker <brobecker@adacore.com>
4438
4439 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4440
f748fb40
TT
44412011-06-30 Tom Tromey <tromey@redhat.com>
4442
4443 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4444 * valops.c (find_overload_match): Call do_cleanups on early exit
4445 path.
4446 * solib.c (solib_find): Call do_cleanups on early exit path.
4447
3bb47e8b
TT
44482011-06-30 Tom Tromey <tromey@redhat.com>
4449
4450 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4451 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4452 return paths. Defer final do_cleanups until last return.
4453 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4454 early return.
4455
4727bad3
TT
44562011-06-30 Tom Tromey <tromey@redhat.com>
4457
4458 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4459
bb361dbf
AB
44602011-06-30 Andrew Burgess <aburgess@broadcom.com>
4461
4462 * MAINTAINERS (Write After Approval): Add myself to the list.
4463
e0d00bc7
JK
44642011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4465
4466 Disable epilogue unwinders on recent GCCs.
4467 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4468 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4469 * dwarf2read.c (process_full_comp_unit): Initialize
4470 EPILOGUE_UNWIND_VALID.
4471 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4472 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4473 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4474
4632c0d0
JK
44752011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4476
4477 Code cleanup - reformatting.
4478 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4479 (producer_is_gcc_ge_4): ... here, change the return value.
4480 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4481 interpretation.
4482
32019081
JK
44832011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4484
4485 Fix non-only rename list for Fortran modules import.
4486 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4487 cp_add_using_directive caller.
4488 (cp_add_using_directive): New parameter excludes, describe it. New
4489 variables ix and param. Compare if also excludes match. Allocate NEW
4490 with variable size, initialize EXCLUDES there.
4491 (cp_lookup_symbol_imports): New variable excludep, test
4492 current->EXCLUDES with it.
4493 * cp-support.h: Include vec.h.
4494 (struct using_direct): New field excludes, describe it.
4495 (DEF_VEC_P (const_char_ptr)): New.
4496 (cp_add_using_directive): New parameter excludes.
4497 * defs.h (const_char_ptr): New typedef.
4498 * dwarf2read.c (read_import_statement): New variables child_die,
4499 excludes and cleanups, read in excludes.
4500 (read_namespace): Adjust the cp_add_using_directive caller.
4501
70c622a3
JK
45022011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4503
4504 Code cleanup.
4505 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4506 negative comparisons.
4507
39c4d40a
TT
45082011-06-29 André Pönitz <andre.poenitz@nokia.com>
4509
4510 * mi/mi-main.c (mi_cmd_list_features): Emit
4511 breakpoint-notifications.
4512
3b2b8fea
TT
45132011-06-29 Tom Tromey <tromey@redhat.com>
4514
4515 PR fortran/10036:
4516 * valprint.h (generic_emit_char, generic_printstr): Declare.
4517 * valprint.c (wchar_printable, append_string_as_wide)
4518 (print_wchar): Move from c-lang.c.
4519 (generic_emit_char): New function; mostly taken from c_emit_char.
4520 (generic_printstr): New function; mostly taken from c_printstr.
4521 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4522 represented as arrays.
4523 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4524 type.
4525 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4526 identically to TYPE_CODE_INT.
4527 * f-lang.c (f_get_encoding): New function.
4528 (f_emit_char): Use generic_emit_char.
4529 (f_printchar): Replace comment.
4530 (f_printstr): Use generic_printstr.
4531 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4532 "character" types specially.
4533 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4534 for Fortran.
4535 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4536 Move to valprint.c
4537 (c_emit_char): Call generic_emit_char.
4538 (c_printstr): Call generic_printstr.
4539
168e6d44
GB
45402011-06-29 Gary Benson <gbenson@redhat.com>
4541
4542 * breakpoint.c (bpstat_what): Removed duplicated case.
4543
1c033f8c
TT
45442011-06-28 Tom Tromey <tromey@redhat.com>
4545
4546 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4547
5fe41fbf
TT
45482011-06-27 Tom Tromey <tromey@redhat.com>
4549
4550 * valops.c (find_overload_match): Call do_cleanups before early
4551 return.
4552 * top.c (execute_command): Call do_cleanups before early return.
4553 (command_loop): Likewise.
4554 * stack.c (backtrace_command): Make a null cleanup early. Don't
4555 conditionally call do_cleanups.
4556 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4557 TRY_CATCH.
4558 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4559 so cleanups are always run.
4560 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4561 * findcmd.c (parse_find_args): Call do_cleanups on early return
4562 path.
4563 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4564 Don't conditionally call do_cleanups.
4565 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4566 later.
4567
e26bd57d
EB
45682011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4569
4570 * MAINTAINERS (Write After Approval): Use default email address.
4571
6c3097fc
JB
45722011-06-27 Joel Brobecker <brobecker@adacore.com>
4573
4574 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4575
369c397b
JB
45762011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4577
4578 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4579 saved_regs_mask and copied_regs_mask fields.
4580 (sparc_record_save_insn): New prototype.
4581 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4582 (sparc_record_save_insn): New function.
4583 (sparc_analyze_prologue): Add head comment. Recognize store insns
4584 of call-saved registers. Use OFFSET consistently. Recognize flat
4585 frames and cache their settings.
4586 (sparc32_skip_prologue): Handle flat frames.
4587 (sparc_frame_cache): Add frame_offset to the base address.
4588 (sparc32_frame_cache): Adjust to new frame description.
4589 (sparc32_frame_prev_register): Likewise.
4590 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4591 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4592 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4593 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4594 frame by calling sparc_record_save_insn.
4595 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4596 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4597 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4598
b315ab21
TG
45992011-06-27 Tristan Gingold <gingold@adacore.com>
4600
4601 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4602 field by map_addr and map_len.
4603 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4604 (munmap_section_buffer): Likewise.
4605
ddd49eee
TT
46062011-06-24 Tom Tromey <tromey@redhat.com>
4607
4608 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4609 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4610 * python/python.c (gdbpy_parameter): Make 'arg' const.
4611 (execute_gdb_command): Likewise.
4612 (gdbpy_decode_line): Likewise. Copy it.
4613 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4614 (gdbpy_write): Make 'arg' const.
4615 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4616 const.
4617 (gdbpy_lookup_type): Likewise.
4618 * python/py-prettyprint.c (print_children): Make 'name' const.
4619 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4620 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4621 Py_ssize_t.
4622 * python/py-function.c (fnpy_init): Make 'name' const.
4623 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4624 (gdbpy_string_to_argv): Make 'input' const.
4625 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4626 it.
4627 * gdbtypes.h (lookup_typename): Update.
4628 * gdbtypes.c (lookup_typename): Make 'name' const.
4629 (lookup_struct): Likewise.
4630 (lookup_union): Likewise.
4631 (lookup_enum): Likewise.
4632
5998129b
TT
46332011-06-24 Tom Tromey <tromey@redhat.com>
4634
4635 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4636 gdb_thread_db.h. Move all common/ entries to be together.
4637 (TAGS): Don't depend on DEPFILES.
4638
6e586cc5
YQ
46392011-06-23 Yao Qi <yao@codesourcery.com>
4640
4641 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4642 * remote.c (remote_start_remote): ... here.
4643 * monitor.c (monitor_open): ... here.
4644
86c3c1fc
AB
46452011-06-23 Andrew Burgess <aburgess@broadcom.com>
4646
4647 * gdbtypes.c (append_composite_type_field_aligned): Fix
4648 calculation of bit position based on alignment.
4649
28010a5d
PA
46502011-06-22 Pedro Alves <pedro@codesourcery.com>
4651
4652 * breakpoint.c (bpstat_stop_status): Call the check_status
4653 breakpoint_ops method.
4654 (print_one_breakpoint_location): Also print the condition for Ada
4655 exception catchpoints.
4656 (allocate_bp_location): New, factored out from
4657 allocate_bp_location.
4658 (allocate_bp_location): Adjust. Call the owner breakpoint's
4659 allocate_location method, if there is one.
4660 (free_bp_location): Call the locations's dtor method, if there is
4661 one.
4662 (init_raw_breakpoint_without_location): New breakpoint_ops
4663 parameter. Use it.
4664 (set_raw_breakpoint_without_location): Adjust.
4665 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4666 (set_raw_breakpoint): Adjust.
4667 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4668 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4669 re_set and check_status methods.
4670 (init_catchpoint): Don't memset, initialize thread, addr_string
4671 and enable_state. Pass the ops down to init_raw_breakpoint.
4672 (install_catchpoint): Rename to ...
4673 (install_breakpoint): ... this, and make extern.
4674 (create_fork_vfork_event_catchpoint): Adjust.
4675 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4676 re_set and check_status methods.
4677 (create_syscall_event_catchpoint): Adjust.
4678 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4679 (masked_watchpoint_breakpoint_ops): Install NULL
4680 allocate_location, re_set and check_status methods.
4681 (catch_exec_command_1): Adjust.
4682 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4683 re_set and check_status methods.
4684 (create_ada_exception_breakpoint): Rename to ...
4685 (init_ada_exception_breakpoint): ... this. Add a struct
4686 breakpoint parameter, and delete the exp_string, cond_string and
4687 cond parameters. Use init_raw_breakpoint, and don't install or
4688 mention the breakpoint yet. Don't clear breakpoint fields that
4689 init_raw_breakpoint already clears.
4690 (re_set_breakpoint): Delete, split into ...
4691 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4692 functions.
4693 (breakpoint_re_set_one): Call the breakpoint's
4694 breakpoint_ops->re_set implementation, if there's one. Adjust.
4695 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4696 (struct bp_location_ops): New type.
4697 (struct bp_location): New field `ops'.
4698 (struct breakpoint_ops): New `allocate_location', `re_set' and
4699 `check_status' fields. Make `breakpoint_hit''s description match
4700 reality.
4701 (init_bp_location): Declare.
4702 (breakpoint_re_set_default): Declare.
4703 (create_ada_exception_breakpoint): Rename to ...
4704 (init_ada_exception_breakpoint): ... this. Add a struct
4705 breakpoint parameter, and delete the exp_string, cond_string and
4706 cond parameters.
4707 (install_breakpoint): Declare.
4708 * ada-lang.c: Include exceptions.h.
4709 <Ada exceptions description>: Update.
4710 (struct ada_catchpoint_location): New type.
4711 (ada_catchpoint_location_dtor): New function.
4712 (ada_catchpoint_location_ops): New global.
4713 (ada_catchpoint): New type.
4714 (create_excep_cond_exprs): New function.
4715 (dtor_exception, allocate_location_exception, re_set_exception)
4716 (should_stop_exception, check_status_exception): New functions.
4717 (print_one_exception, print_mention_exception)
4718 (print_recreate_exception): Adjust.
4719 (dtor_catch_exception, allocate_location_catch_exception)
4720 (re_set_catch_exception, check_status_catch_exception): New
4721 functions.
4722 (catch_exception_breakpoint_ops): Install them.
4723 (dtor_catch_exception_unhandled)
4724 (allocate_location_catch_exception_unhandled)
4725 (re_set_catch_exception_unhandled)
4726 (check_status_catch_exception_unhandled): New functions.
4727 (catch_exception_unhandled_breakpoint_ops): Install them.
4728 (dtor_catch_assert, allocate_location_catch_assert)
4729 (re_set_catch_assert, check_status_catch_assert): New functions.
4730 (catch_assert_breakpoint_ops): Install them.
4731 (ada_exception_catchpoint_p): Delete.
4732 (catch_ada_exception_command_split)
4733 (ada_exception_catchpoint_cond_string): Rename exp_string
4734 parameter to excep_string. Adjust.
4735 (ada_parse_catchpoint_condition): Delete.
4736 (ada_exception_sal): Rename the exp_string parameter to
4737 excep_string. Delete the cond_string and cond parameters.
4738 Adjust.
4739 (ada_decode_exception_location): Rename the exp_string parameter
4740 to excep_string. Delete the cond_string and cond parameters.
4741 Adjust.
4742 (create_ada_exception_catchpoint): New function.
4743 (catch_ada_exception_command, ada_decode_assert_location)
4744 (catch_assert_command): Adjust.
4745 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4746
9ac4176b
PA
47472011-06-22 Pedro Alves <pedro@codesourcery.com>
4748
4749 * ada-lang.c: Include arch-utils.h.
4750 (ada_decode_exception_location): Make static.
4751 (catch_ada_exception_command): Moved here from breakpoint.c.
4752 (ada_decode_assert_location): Make static.
4753 (catch_assert_command): Moved here from breakpoint.c.
4754 (_initialize_ada_lang): Install the exception and assert
4755 catchpoint commands here.
4756 * ada-lang.h (ada_decode_exception_location)
4757 (ada_decode_assert_location): Delete declarations.
4758 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4759 breakpoint.h.
4760 (create_ada_exception_breakpoint): Make extern.
4761 (catch_ada_exception_command, catch_assert_command): Moved to
4762 ada-lang.c.
4763 (add_catch_command): Make extern.
4764 (_initilize_breakpoint): Don't install the exception and assert
4765 catchpoint commands here.
4766 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4767 breakpoint.c
4768 (add_catch_command, create_ada_exception_breakpoint): Declare.
4769
c56053d2
PA
47702011-06-22 Pedro Alves <pedro@codesourcery.com>
4771
4772 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4773 the breakpoint to the breakpoint chain here.
4774 (set_raw_breakpoint_without_location): Add the breakpoint to the
4775 breakpoint chain here.
4776 (init_raw_breakpoint): Adjust comments.
4777 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4778 here.
4779 (init_catchpoint): Don't set the catchpoint's breakpoint number
4780 here.
4781 (install_catchpoint): New function.
4782 (create_fork_vfork_event_catchpoint)
4783 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4784 use install_catchpoint.
4785
d2f3fc74
PA
47862011-06-22 Pedro Alves <pedro@codesourcery.com>
4787
4788 * breakpoint.c (create_catchpoint_without_mention)
4789 (create_catchpoint): Delete.
4790
b4d90040
PA
47912011-06-22 Pedro Alves <pedro@codesourcery.com>
4792
4793 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4794 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4795 reference to exec_pathname.
4796 (struct exec_catchpoint): New type.
4797 (dtor_catch_exec): New function.
4798 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4799 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4800 (catch_exec_command_1): Adjust to use init_catchpoint.
4801 (delete_breakpoint): Remove reference to exec_pathname.
4802
be5c67c1
PA
48032011-06-22 Pedro Alves <pedro@codesourcery.com>
4804
4805 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4806 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4807 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4808 reference to syscalls_to_be_caught.
4809 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4810 NULL `dtor'.
4811 (struct syscall_catchpoint): New type.
4812 (dtor_catch_syscall): New function.
4813 (insert_catch_syscall, remove_catch_syscall)
4814 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4815 (print_recreate_catch_syscall): Adjust.
4816 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4817 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4818 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4819 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4820 (masked_watchpoint_breakpoint_ops)
4821 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4822 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4823 there is one. Remove references to syscalls_to_be_caught.
4824 (catching_syscall_number): Adjust.
4825 * ada-lang.c (catch_exception_breakpoint_ops)
4826 (catch_exception_unhandled_breakpoint_ops)
4827 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4828
e29a4733
PA
48292011-06-22 Pedro Alves <pedro@codesourcery.com>
4830
4831 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4832 field.
4833 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4834 reference to forked_inferior_pid.
4835 (struct fork_catchpoint): New type.
4836 (breakpoint_hit_catch_fork, print_it_catch_fork)
4837 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4838 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4839 (create_fork_vfork_event_catchpoint): Adjust to use
4840 init_catchpoint.
4841
346774a9
PA
48422011-06-22 Pedro Alves <pedro@codesourcery.com>
4843
4844 * breakpoint.c (add_to_breakpoint_chain)
4845 (init_raw_breakpoint_without_location): New functions, factored
4846 out from ...
4847 (set_raw_breakpoint_without_location): ... this one.
4848 (init_raw_breakpoint): New function, factored out from
4849 set_raw_breakpoint and adjusted to use
4850 init_raw_breakpoint_without_location.
4851 (set_raw_breakpoint): Adjust.
4852 (init_catchpoint): New function, factored out from
4853 create_catchpoint_without_mention and adjusted to use
4854 init_raw_breakpoint.
4855 (create_catchpoint_without_mention): Adjust.
4856
c38c4bc5
TT
48572011-06-22 Tom Tromey <tromey@redhat.com>
4858
4859 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4860 argument of 0 specially.
4861
b138ce37
YQ
48622011-06-22 Yao Qi <yao@codesourcery.com>
4863
4864 * infrun.c (handle_inferior_event): Remove write-only local variable
4865 `sw_single_step_trap_p'.
4866
03de6823
TT
48672011-06-20 Tom Tromey <tromey@redhat.com>
4868
4869 * symtab.c (lookup_language_this): End loop if block is NULL.
4870
66a17cb6
TT
48712011-06-17 Tom Tromey <tromey@redhat.com>
4872
4873 * valops.c (value_of_this): Use lookup_language_this.
4874 * symtab.h (lookup_language_this): Declare.
4875 * symtab.c (lookup_language_this): New function.
4876 (lookup_symbol_aux): Use lookup_language_this.
4877 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4878
7518bff5
TT
48792011-06-17 Tom Tromey <tromey@redhat.com>
4880
4881 * value.h (value_of_this): Update.
4882 (value_of_local): Remove.
4883 * valops.c (value_of_this): Rename from value_of_local. Change
4884 parameters.
4885 * p-exp.y (exp): Update.
4886 (variable): Likewise.
4887 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4888
aee28ec6
TT
48892011-06-17 Tom Tromey <tromey@redhat.com>
4890
4891 * valops.c (value_of_local): Complain if NAME is NULL.
4892 * std-operator.def (OP_OBJC_SELF): Remove.
4893 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4894 * objc-exp.y (name_not_typename): Use OP_THIS.
4895 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4896 name for "this".
4897 <OP_OBJC_SELF>: Remove.
4898 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4899
eed8f803
TG
49002011-06-16 Tristan Gingold <gingold@adacore.com>
4901
4902 * python/py-events.h (gdb_py_events): Make it extern.
4903 * python/py-evtregistry.c (gdb_py_events): Declare.
4904
864ac8a7
HZ
49052011-06-16 Hui Zhu <teawater@gmail.com>
4906
4907 * remote.c (remote_trace_set_readonly_regions): Add check for
4908 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4909 output warning.
4910
ef7e8358
UW
49112011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4912
4913 * arm-linux-tdep.c: Include "auxv.h".
4914 (AT_HWCAP): Define.
4915 (ARM_LINUX_SIZEOF_VFP): Define.
4916 (arm_linux_supply_vfp): New function.
4917 (arm_linux_collect_vfp): Likewise.
4918 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4919 (arm_linux_fpa_regset_sections): New variable.
4920 (arm_linux_vfp_regset_sections): Likewise.
4921 (arm_linux_core_read_description): New function.
4922 (arm_linux_init_abi): Install arm_linux_core_read_description and
4923 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4924 appropriate for the architecture.
4925 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4926 (tdesc_arm_with_m): Declare.
4927 (tdesc_arm_with_iwmmxt): Likewise.
4928 (tdesc_arm_with_vfpv2): Likewise.
4929 (tdesc_arm_with_vfpv3): Likewise.
4930 (tdesc_arm_with_neon): Likewise.
4931 * arm-linux-nat.c: Move features/*.c includes ...
4932 * arm-tdep.c: ... here.
4933 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4934 target description data structures ...
4935 * arm-tdep.c (_initialize_arm_tdep): ... here.
4936 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4937 HWCAP_VFPv3D16): Move definitions ...
4938 * arm-linux-tdep.h: ... here.
4939
c2fa21f1
HZ
49402011-06-15 Hui Zhu <teawater@gmail.com>
4941
4942 * remote.c (remote_trace_set_readonly_regions): Add a check for
4943 target_buf_size.
4944
dd707e8e
TT
49452011-06-14 Tom Tromey <tromey@redhat.com>
4946
4947 * coffread.c (coffread_objfile): Rename from current_objfile.
4948 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4949 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4950
86cc0029
TT
49512011-06-14 Tom Tromey <tromey@redhat.com>
4952
4953 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4954 (class_symtab): Remove.
4955 (jv_dynamics_progspace_key): New global.
4956 (jv_per_objfile_free): Reset program space data. Update assert.
4957 Don't clear globals.
4958 (get_dynamics_objfile): Use and set program space data.
4959 (get_java_class_symtab): Use get_dynamics_objfile.
4960 (add_class_symbol): Likewise.
4961 (java_link_class_type): Likewise.
4962 (java_object_type, jv_clear_object_type, set_java_object_type):
4963 Remove.
4964 (get_java_object_type): Update. Don't cache result.
4965 (is_object_type): Don't call set_java_object_type.
4966 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4967 initialize jv_dynamics_progspace_key.
4968
91a81f69
TT
49692011-06-14 Tom Tromey <tromey@redhat.com>
4970
4971 * symtab.h (current_objfile): Don't declare.
4972 * objfiles.h (current_objfile): Don't declare.
4973 * objfiles.c (current_objfile): Remove.
4974 * mdebugread.c (current_objfile): New file-scope global.
4975 * dbxread.c (current_objfile): New file-scope global.
4976 * coffread.c (current_objfile): New file-scope global.
4977
dc7eb48e
PA
49782011-06-13 Pedro Alves <pedro@codesourcery.com>
4979
4980 * top.h (line): Rename to ...
4981 (saved_command_line): ... this.
4982 (linesize): Rename to ...
4983 (saved_command_line_size): ... this.
4984 * top.c (line): Rename to ...
4985 (saved_command_line): ... this.
4986 (linesize): Rename to ...
4987 (saved_command_line_size): ... this.
4988 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4989 * event-top.c (command_line_handler): Adjust.
4990 * main.c (captured_main): Adjust.
4991
0d6c2135
MK
49922011-06-12 Mark Kettenis <kettenis@gnu.org>
4993
4994 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4995 get_frame_func instead of get_frame_pc to determine the code
4996 address used to construct the frame ID.
4997 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4998 (i386_epilogue_frame_this_id): Likewise.
4999 (i386_epilogue_frame_prev_register): New function.
5000 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5001 (i386_stack_tramp_frame_sniffer): Fix coding style.
5002 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5003 (i386_gdbarch_init): Fix comments.
5004
8bbdd3f4
MK
50052011-06-12 Mark Kettenis <kettenis@gnu.org>
5006
5007 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5008 instruction when walking back through the instruction stream.
5009
533a737e
JK
50102011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5011
5012 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5013 fullname parameters order.
5014
44b13c5a
JK
50152011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5016
5017 Code cleanup.
5018 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5019 for fun.
5020 * psymtab.c (map_symbol_filenames_psymtab)
5021 (map_partial_symbol_filenames): Likewise.
5022 * psymtab.h: Include symfile.h.
5023 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5024 * symfile.h (symbol_filename_ftype): New.
5025 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5026 map_symbol_filenames, clarify more the naming in comment.
5027
0b5574da
DE
50282011-06-07 Doug Evans <dje@google.com>
5029
5030 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5031 Look for ../../gdb, for fullname.exp.
0b5574da 5032
5be4dfca
JK
50332011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5034 Pedro Alves <pedro@codesourcery.com>
5035
5036 * cli/cli-cmds.c (shell_escape): Use waitpid.
5037 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5038
316a8b21
TG
50392011-06-07 Tristan Gingold <gingold@adacore.com>
5040
5041 * xcoffread.c (dwarf2_xcoff_names): New variable.
5042 (aix_process_linenos): Add a guard.
5043 (xcoff_symfile_finish): Free dwarf2.
5044 (xcoff_initial_scan): Add dwarf2 support.
5045
3dd5b83d
PA
50462011-06-06 Pedro Alves <pedro@codesourcery.com>
5047
5048 * infcall.c (run_inferior_call): Don't mask async. Instead force
5049 a synchronous wait, if the target can async.
5050
5051 * target.h (struct target_ops): Delete to_async_mask.
5052 (target_async_mask): Delete.
5053 * target.c (update_current_target): Delete references to to_async_mask.
5054 * linux-nat.c (linux_nat_async_mask_value): Delete.
5055 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5056 to linux_nat_async_mask_value.
5057 (linux_nat_async_mask): Delete.
5058 (linux_nat_async, linux_nat_close): Remove references to
5059 linux_nat_async_mask_value.
5060 * record.c (record_async_mask_value): Delete.
5061 (record_async): Remove references to record_async_mask_value.
5062 (record_async_mask): Delete.
5063 (record_can_async_p, record_is_async_p): Remove references to
5064 record_async_mask_value.
5065 (init_record_ops, init_record_core_ops): Remove references to
5066 record_async_mask.
5067 * remote.c (remote_async_mask_value): Delete.
5068 (init_remote_ops): Remove reference to remote_async_mask.
5069 (remote_can_async_p, remote_is_async_p): Remove references to
5070 remote_async_mask_value.
5071 (remote_async): Remove references to remote_async_mask_value.
5072 (remote_async_mask): Delete.
5073
5074 * infrun.c (fetch_inferior_event): Don't claim registers changed
5075 if the current thread is already not executing.
5076
64b9b334
JB
50772011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5078
5079 From Stephen Kitt <steve@sk2.org>
5080 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5081 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5082
325663dc
JB
50832011-06-03 Joel Brobecker <brobecker@adacore.com>
5084
5085 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5086 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5087
8cf64490
TT
50882011-06-03 Tom Tromey <tromey@redhat.com>
5089
5090 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5091 code fields.
5092 * python/py-exitedevent.c (create_exited_event_object): Change
5093 type of 'exit_code'. Optionally add exit_code attribute.
5094 (emit_exited_event): Change type of 'exit_code'.
5095 * python/py-event.h (emit_exited_event): Update.
5096 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5097 * infrun.c (handle_inferior_event): Set exit code fields on
5098 inferior.
5099 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5100 fields.
5101 * inferior.c (exit_inferior_1): Initialize new fields.
5102
8ddd9a20
TT
51032011-06-03 Tom Tromey <tromey@redhat.com>
5104
5105 * dwarf2expr.c (get_signed_type): New function.
5106 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5107
8dfd1e6d
KS
51082011-06-02 Keith Seitz <keiths@redhat.com>
5109
5110 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5111
65fdb766
PA
51122011-06-02 Pedro Alves <pedro@codesourcery.com>
5113
5114 * top.h (simplified_command_loop): Delete declaration.
5115
f4b8c29b
MF
51162011-06-01 Mike Frysinger <vapier@gentoo.org>
5117
5118 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5119 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5120
1706c199
YQ
51212011-06-01 Yao Qi <yao@codesourcery.com>
5122
5123 * objfiles.h (obj_section_addr): Update reference to objfile from
5124 `abfd' to `obfd'.
5125 (obj_section_endaddr): Likewise.
5126
d19cd713 51272011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5128
5129 * MAINTAINERS: Update my email address and affiliation. Also
5130 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5131
e8eb7bc5
KS
51322010-05-31 Keith Seitz <keiths@redhat.com>
5133
5134 PR c++/12750
5135 * linespec.c (get_search_block): New function.
5136 (find_methods): Add FILE_SYMTATB parameter and use it and
5137 get_search_block to pass an appropriate block to
5138 lookup_symbol_in_namespace.
5139 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5140 Check if *ARGPTR starts with a filename first.
5141 If it does, call locate_first_half again to locate the next
5142 "first half" of the linespec.
5143 Pass FILE_SYMTATB to decode_objc and decode_compound.
5144 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5145 (locate_first_half): Stop on the first colon seen.
5146 (decode_compound): Add FILE_SYMTAB parameter.
5147 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5148 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5149 get_search_block with lookup_symbol.
5150 (find_method): Add FILE_SYMTAB parameter and pass it to
5151 find_methods.
5152 (decode_objc): Use get_search_block.
5153
2b1dbab0
KS
51542010-05-31 Keith Seitz <keiths@redhat.com>
5155
5156 PR symtab/12704
5157 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5158 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5159 and CP_ANONYMOUS_NAMESPACE_LEN.
5160 (cp_is_anonymous): Likewise.
5161 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5162 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5163 * dwarf2read.c (namespace_name): Likewise.
5164 (fixup_partial_die): Likewise.
5165 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5166 seen in the input, keep it.
5167
6d549500
PA
51682011-05-30 Pedro Alves <pedro@codesourcery.com>
5169
5170 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5171 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5172 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5173 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5174 * remote.c (_initialize_remote): Register
5175 async_remote_interrupt_twice directly as
5176 sigint_remote_twice_token event.
5177
395bff70
PA
51782011-05-30 Pedro Alves <pedro@codesourcery.com>
5179
5180 * target.h (enum inferior_event_type): Delete INF_ERROR.
5181 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5182
97224164
PA
51832011-05-30 Pedro Alves <pedro@codesourcery.com>
5184
5185 * interps.c (interp_set): Don't cancel continuations.
5186
07e78767
JK
51872011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5188
5189 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5190
fa4cd53f
PA
51912011-05-30 Pedro Alves <pedro@codesourcery.com>
5192
5193 * continuations.h (continuation_ftype): Add `err' parameter.
5194 Document parameters.
5195 (do_all_continuations, do_all_continuations_thread)
5196 (do_all_intermediate_continuations)
5197 (do_all_intermediate_continuations_thread)
5198 (do_all_inferior_continuations): Add `err' parameter.
5199 * continuations.c (do_my_continuations_1, do_my_continuations)
5200 (do_all_inferior_continuations, do_all_continuations_ptid)
5201 (do_all_continuations_thread_callback)
5202 (do_all_continuations_thread, do_all_continuations)
5203 (do_all_intermediate_continuations_thread_callback)
5204 (do_all_intermediate_continuations_thread)
5205 (do_all_intermediate_continuations): Add `err' parameter, and pass
5206 it down all the way to the continuations proper.
5207 * inf-loop.c (inferior_event_handler): If fetching an inferior
5208 event throws an error, don't pop the target, and still call the
5209 continuations, but with `err' set. Adjust all other continuation
5210 calls.
5211 * breakpoint.c (until_break_command_continuation): Add `err'
5212 parameter.
5213 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5214 issue another step if `err' is set.
5215 (struct until_next_continuation_args): New.
5216 (until_next_continuation): Add `err' parameter. Adjust.
5217 (until_next_command): Adjust.
5218 (struct finish_command_continuation_args): Add `thread' field.
5219 (finish_command_continuation): Add `err' parameter. Handle it.
5220 (finish_forward): Adjust.
5221 (attach_command_continuation): Add `err' parameter. Handle it.
5222 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5223 cancel the continuations.
5224 * interps.c (interp_set): Adjust to cancel the continuations.
5225 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5226 continuations rather than discarding.
5227 (free_thread): Don't clear thread inferior resources here.
5228 (delete_thread_1): Do it here instead. And do it before removing
5229 the thread from the threads list. Tag the thread as exited before
5230 clearing thread inferior resources.
5231
c2949be0
JB
52322011-05-30 Joel Brobecker <brobecker@adacore.com>
5233
5234 * infcall.c (call_function_by_hand): Rephrase error message.
5235
619cebe8
PA
52362011-05-27 Pedro Alves <pedro@codesourcery.com>
5237
5238 * defs.h (struct thread_info, struct inferior): Delete forward
5239 declarations.
5240 * breakpoint.h (struct thread_info): New forward declaration.
5241 * observer.sh (struct inferior): New forward declaration.
5242 * python/python-internal.h (struct inferior): New forward
5243 declaration.
5244
be34f849
PA
52452011-05-27 Pedro Alves <pedro@codesourcery.com>
5246
5247 * defs.h (struct continuation, continuation_ftype)
5248 (continuation_free_arg_ftype, add_continuation)
5249 (do_all_continuations, do_all_continuations_thread)
5250 (discard_all_continuations, discard_all_continuations_thread)
5251 (add_intermediate_continuation, do_all_intermediate_continuations)
5252 (do_all_intermediate_continuations_thread)
5253 (discard_all_intermediate_continuations)
5254 (discard_all_intermediate_continuations_thread)
5255 (add_inferior_continuation, do_all_inferior_continuations)
5256 (discard_all_inferior_continuations): Move to ...
5257 * continuations.h: ... this new file.
5258 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5259 infcmd.c, inferior.c, infrun.c, interps.c: Include
5260 continuations.h.
5261
432b4d03
JK
52622011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5263 Doug Evans <dje@google.com>
5264
5265 Fix PR 10970, PR 12702.
5266 * linux-nat.c (linux_lwp_is_zombie): New function.
5267 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5268 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5269
b0f260d6
PA
52702011-05-27 Pedro Alves <pedro@codesourcery.com>
5271
5272 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5273 typedefs.
5274 (add_continuation, add_intermediate_continuation)
5275 (add_inferior_continuation): Use them.
5276 * continuations.c (struct continuation): Use them.
5277 (make_continuation_ftype): Delete.
5278 (make_continuation, add_inferior_continuation, add_continuation)
5279 (add_intermediate_continuation): Use continuation_ftype and
5280 continuation_free_arg_ftype. Rename parameters to shorter names.
5281
af1e9a32
PA
52822011-05-27 Pedro Alves <pedro@codesourcery.com>
5283
5284 * continuations.c (make_continuation): Make it return void.
5285 (do_my_continuations): Rename to ...
5286 (do_my_continuations_1): ... this. Remove old_chain parameter and
5287 adjust.
5288 (do_my_continuations): New.
5289 (discard_my_continuations): Rename to ...
5290 (discard_my_continuations_1): ... this. Remove old_chain
5291 parameter and adjust.
5292 (discard_my_continuations): New.
5293 (add_inferior_continuation): Simplify.
5294 (do_all_inferior_continuations): Reimplement on top
5295 do_my_continuations.
5296 (discard_all_inferior_continuations): Simplify.
5297 (add_continuation): Simplify.
5298 (do_all_continuations_ptid): Simplify.
5299 (discard_all_continuations_thread_callback): Simplify.
5300 (add_intermediate_continuation): Simplify.
5301 (discard_all_intermediate_continuations_thread_callback):
5302 Simplify.
5303
50c0c017
PA
53042011-05-27 Pedro Alves <pedro@codesourcery.com>
5305
5306 * utils.c (struct continuation, add_continuation)
5307 (add_inferior_continuation)
5308 (do_all_inferior_continuations, discard_all_inferior_continuations)
5309 (restore_thread_cleanup, do_all_continuations_ptid)
5310 (do_all_continuations_thread_callback)
5311 (do_all_continuations_thread, do_all_continuations)
5312 (discard_all_continuations_thread_callback)
5313 (discard_all_continuations_thread, discard_all_continuations)
5314 (add_intermediate_continuation)
5315 (do_all_intermediate_continuations_thread_callback)
5316 (do_all_intermediate_continuations_thread)
5317 (do_all_intermediate_continuations)
5318 (discard_all_intermediate_continuations_thread_callback)
5319 (discard_all_intermediate_continuations_thread)
5320 (discard_all_intermediate_continuations): Move to ...
5321 * continuations.c: ... this new file, and adjust to no longer
5322 implement continuations on top of cleanups.
5323 * Makefile.in (SFILES): Add continuations.c.
5324 (COMMON_OBS): Add continuations.o.
5325
d8b34453
PA
53262011-05-26 Pedro Alves <pedro@codesourcery.com>
5327
5328 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5329 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5330 Internal error on invalid values.
5331 * reverse.c: Don't handle EXEC_ERROR.
5332 * mi/mi-main.c: Don't handle EXEC_ERROR.
5333
32231432
PA
53342011-05-26 Pedro Alves <pedro@codesourcery.com>
5335
5336 * record.c: Include event-loop.h, inf-loop.h.
5337 (record_beneath_to_async): New global.
5338 (tmp_to_async): New global.
5339 (record_async_inferior_event_token): New global.
5340 (record_open_1): Don't error out if async is enabled.
5341 (record_open): Handle to_async. Create an async event source in
5342 the event loop.
5343 (record_close): Delete the async event source.
5344 (record_resumed): New global.
5345 (record_execution_dir): New global.
5346 (record_resume, record_core_resume): Set them. Register the
5347 target on the event loop.
5348 (record_wait): Rename to ...
5349 (record_wait_1): ... this. Add more debug output. Handle
5350 TARGET_WNOHANG, and the target beneath returning
5351 TARGET_WAITKIND_IGNORE.
5352 (record_wait): Reimplement on top of record_wait_1.
5353 (record_async_mask_value): New global.
5354 (record_async, record_async_mask, record_can_async_p)
5355 (record_is_async_p, record_execution_direction): New functions.
5356 (init_record_ops, init_record_core_ops): Install new methods.
5357 * infrun.c (fetch_inferior_event): Temporarily switch the global
5358 execution direction to the direction the target was going.
5359 (execution_direction): Change type to int.
5360 * target.c (default_execution_direction): New function.
5361 (update_current_target): Inherit and de_fault
5362 to_execution_direction.
5363 * target.h (struct target_ops) <to_execution_direction>: New
5364 field.
5365 (target_execution_direction): New macro.
5366 * inferior.h (execution_direction): Change type to int.
5367
949dc678
PA
53682011-05-26 Pedro Alves <pedro@codesourcery.com>
5369
5370 * infcall.c (call_function_by_hand): Don't allow calling functions
5371 in reverse execution mode.
5372
c13bd2b5
PA
53732011-05-26 Pedro Alves <pedro@codesourcery.com>
5374
5375 * infcmd.c (finish_command): Allow async finish in reverse.
5376
6938fd34
YQ
53772011-05-26 Yao Qi <yao@codesourcery.com>
5378
5379 * gdb_thread_db.h: Delete. Move to ...
5380 * common/gdb_thread_db.h: ... here.
5381
9da8c2a0
PA
53822011-05-26 Pedro Alves <pedro@codesourcery.com>
5383
5384 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5385 function's entry point instead of a manually managed momentary
5386 breakpoint, and only ever issue one proceed call.
5387 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5388 doing a reverse-finish, switch to stepi mode, to do another step.
5389 (insert_step_resume_breakpoint_at_sal): Make public.
5390 (normal_stop): No need to save function value return registers if
5391 going reverse.
5392 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5393
2c03e5be
PA
53942011-05-26 Pedro Alves <pedro@codesourcery.com>
5395
5396 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5397 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5398 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5399 at the end.
5400 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5401 step-resume breakpoints.
5402 (print_it_typical): Handle bp_hp_step_resume.
5403 (bpstat_what): Ditto.
5404 (bptype_string): Ditto.
5405 (print_one_breakpoint_location): Ditto.
5406 (allocate_bp_location): Ditto.
5407 (mention): Ditto.
5408 (breakpoint_re_set_one): Ditto.
5409 * infrun.c (handle_inferior_event): Adjust. Split
5410 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5411 BPSTAT_WHAT_HP_STEP_RESUME.
5412 (insert_step_resume_breakpoint_at_sal): Rename to ...
5413 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5414 parameter. Handle it.
5415 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5416 insert_step_resume_breakpoint_at_sal_1.
5417 (insert_step_resume_breakpoint_at_frame): Rename to ...
5418 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5419 set a high-priority step-resume breakpoint.
5420 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5421 (insert_step_resume_breakpoint_at_caller): Ditto.
5422
51be5b68
PA
54232011-05-26 Pedro Alves <pedro@codesourcery.com>
5424
5425 * breakpoint.c (iterate_over_related_breakpoints): New.
5426 (do_map_delete_breakpoint): New.
5427 (delete_command): Pass do_map_delete_breakpoint to
5428 map_breakpoint_numbers.
5429 (do_disable_breakpoint): New.
5430 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5431 breakpoints.
5432 (do_enable_breakpoint): Rename to ...
5433 (enable_breakpoint_disp): ... this.
5434 (enable_breakpoint): Adjust.
5435 (do_enable_breakpoint): New.
5436 (enable_once_breakpoint): Delete.
5437 (do_map_enable_breakpoint): New.
5438 (do_map_enable_once_breakpoint): New.
5439 (enable_once_command, enable_delete_command)
5440 (delete_trace_command): Iterate over the breakpoint's related
5441 breakpoints.
5442
4a1be8d2
PA
54432011-05-26 Pedro Alves <pedro@codesourcery.com>
5444
5445 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5446 for ALPHA_ZERO_REGNUM.
5447 (alpha_supply_int_regs): Explicitly supply zero as the value for
5448 ALPHA_ZERO_REGNUM in the register cache.
5449 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5450
59d70315
YQ
54512011-05-26 Yao Qi <yao@codesourcery.com>
5452
5453 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5454
251d32d9
TG
54552011-05-26 Tristan Gingold <gingold@adacore.com>
5456
5457 * symfile.h (struct dwarf2_section_names): New type.
5458 (struct dwarf2_debug_sections): New type.
5459 (dwarf2_has_info): Add parameter.
5460 * dwarf2read.c (dwarf2_elf_names): New variable.
5461 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5462 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5463 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5464 (dwarf2_has_info): Add names parameter. Pass names
5465 to dwarf2_locate_sections.
5466 (section_is_p): Rewrite using the names parameter.
5467 (dwarf2_locate_sections): Use section names from the names parameter.
5468 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5469 * elfread.c (read_psyms): Ditto.
5470 * machoread.c (macho_symfile_read): Ditto.
5471
652c71b4
AS
54722011-05-25 Andreas Schwab <schwab@redhat.com>
5473
5474 PR gdb/8677
5475 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5476
f17170e5
KS
54772011-05-24 Keith Seitz <keiths@redhat.com>
5478
5479 PR breakpoint/12803
5480 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5481 (decode_compound): Unconditionally call keep_name_info.
5482
cdac0397
PA
54832011-05-24 Pedro Alves <pedro@codesourcery.com>
5484
5485 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5486 scope, clear its command list.
5487 (map_breakpoint_numbers): Don't walk the related breakpoints list
5488 of each breakpoint.
5489
91d4fe3f
TT
54902011-05-24 Tom Tromey <tromey@redhat.com>
5491
5492 * MAINTAINERS: Move Jim Blandy to past maintainers.
5493
3017a003
TG
54942011-05-24 Tristan Gingold <gingold@adacore.com>
5495
5496 * symfile.h (enum dwarf2_section_enum): New type.
5497 (dwarf2_get_section_info): New prototype.
5498 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5499 section_name by sect. Use a switch to select the info.
5500 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5501 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5502
c91c8c16
PA
55032011-05-24 Pedro Alves <pedro@codesourcery.com>
5504
5505 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5506 shared library event breakpoint if there's no execution.
5507
77bc418a
TJB
55082011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5509
5510 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5511 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5512
c50491a7
TT
55132011-05-23 Tom Tromey <tromey@redhat.com>
5514
5515 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5516 NULL.
5517
6d64e6d4
DE
55182011-05-23 Doug Evans <dje@google.com>
5519
5520 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5521 entry for RuntimeError to doc string.
5522
2067c8d4
JG
55232011-05-23 Jerome Guitton <guitton@adacore.com>
5524
5525 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5526 sequence for probing loops.
5527
b136cd05
PA
55282011-05-23 Pedro Alves <pedro@codesourcery.com>
5529
5530 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5531 comment.
5532
22e74ef9
MK
55332011-05-21 Mark Kettenis <kettenis@gnu.org>
5534
5535 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5536 zero as the value for %g0 in the register cache.
5537 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5538 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5539
842951eb
PA
55402011-05-20 Pedro Alves <pedro@codesourcery.com>
5541
5542 * infrun.c (proceed): Set previous_inferior_ptid here.
5543 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5544 inferior_ptid, not null_ptid.
5545 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5546 (fetch_inferior_event): Nor here.
5547
46cf51e6
PA
55482011-05-20 Pedro Alves <pedro@codesourcery.com>
5549
5550 * inf-loop.c (inferior_event_handler): Only output a message if
5551 verbose.
5552
29ef4c46
LM
55532011-05-20 Luis Machado <lgustavo@codesourcery.com>
5554
5555 * MAINTAINERS: Update my e-mail address.
5556
f148b27e
PA
55572011-05-20 Pedro Alves <pedro@codesourcery.com>
5558
5559 * infrun.c (proceed): Switch the inferior event loop to
5560 INF_EXEC_COMPLETE if the target refused to resume from a
5561 vfork/fork.
5562
09cee04b
PA
55632011-05-20 Pedro Alves <pedro@codesourcery.com>
5564
5565 * infcmd.c: Include "inf-loop.h".
5566 (step_once): When stepping into an inline subroutine, pretend the
5567 target has run. If the target can async, switch the inferior
5568 event loop to INF_EXEC_COMPLETE.
5569 * inferior.h (user_visible_resume_ptid): Declare.
5570 * infrun.c (user_visible_resume_ptid): New function, factored out
5571 from `resume'.
5572 (resume): Use it.
5573 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5574 that the current thread is running. Merge async and sync
5575 branches.
5576
751b8ce1
PA
55772011-05-20 Pedro Alves <pedro@codesourcery.com>
5578
5579 * infcmd.c (step_1): Simplify synchronous case.
5580
e93a69ed
PA
55812011-05-20 Pedro Alves <pedro@codesourcery.com>
5582
5583 * tracepoint.c: Include exceptions.h.
5584 (TFILE_PID): Move higher in file.
5585 (tfile_open): Delay pushing the tfile target until we're assured
5586 the tfile header is present in the file. Wrap reading the initial
5587 newline-terminated lines in TRY_CATCH. Pop the target if the
5588 initial setup failed. Add the tfile's thread immediately
5589 aftwards, before any non-essential setup. Don't skip
5590 post_create_inferior if there are no traceframes present in the
5591 file.
5592 (tfile_close): Remove redundant check for null before xfree call.
5593 (tfile_thread_alive): New function.
5594 (init_tfile_ops): Register it as to_thread_alive callback.
5595
6823e2b1
PA
55962011-05-20 Pedro Alves <pedro@codesourcery.com>
5597
5598 * tracepoint.c (tfile_open): Delete #if 0'd code.
5599
b3c8eb43
JK
56002011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5601
5602 Fix -readnow for -gdwarf-4 unused type units.
5603 * dwarf2read.c (struct signatured_type): Remove the field offset.
5604 (create_signatured_type_table_from_index): Remove its initialization.
5605 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5606 instead. Add a complaint call.
5607 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5608 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5609 (lookup_signatured_type_at_offset, read_signatured_type)
5610 (write_one_signatured_type): Update the field for per_cu.
5611
310afc76
TT
56122011-05-19 Tom Tromey <tromey@redhat.com>
5613
5614 * python/py-inferior.c (python_inferior_exit): Use
5615 target_gdbarch.
5616 (python_on_resume): Likewise.
5617
cf6c5ffb
TT
56182011-05-19 Matt Rice <ratmice@gmail.com>
5619
5620 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5621
fb80a3c5
HZ
56222011-05-19 Hui Zhu <teawater@gmail.com>
5623
5624 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5625
3672b1be
HZ
56262011-05-19 Hui Zhu <teawater@gmail.com>
5627
5628 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5629
ff355380
TT
56302011-05-18 Tom Tromey <tromey@redhat.com>
5631
5632 * dwarf2read.c (dwarf2_add_field): Constify.
5633 * value.c (value_static_field): Constify.
5634 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5635 Now const.
5636 * ax-gdb.c (gen_static_field): Constify
5637
ed731959
JK
56382011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5639
5640 * linux-nat.c (kill_callback): Use SIGKILL first.
5641
967cff16
JB
56422011-05-18 Joel Brobecker <brobecker@adacore.com>
5643
5644 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5645
1d06ead6
TT
56462011-05-18 Tom Tromey <tromey@redhat.com>
5647
5648 * value.c (value_fn_field): Constify.
5649 * symtab.c (gdb_mangle_name): Constify.
5650 * stabsread.c (update_method_name_from_physname): Make 'physname'
5651 argument const.
5652 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5653 const. Use explicit fputc_filtered loop.
5654 (pascal_type_print_base): Constify.
5655 * p-lang.h (pascal_type_print_method_args): Update.
5656 * linespec.c (add_matching_methods): Constify.
5657 (add_constructors): Likewise.
5658 * jv-typeprint.c (java_type_print_base): Constify.
5659 * gdbtypes.h (struct cplus_struct_type)
5660 <fn_fieldlist.fn_field.physname>: Now const.
5661 * dwarf2read.c (compute_delayed_physnames): Constify.
5662 (dwarf2_add_member_fn): Likewise.
5663 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5664
0d9a9a5f
PA
56652011-05-18 Pedro Alves <pedro@codesourcery.com>
5666
5667 * infrun.c (resume): Mention which is the current thread, and its
5668 current PC in debug output.
5669 (prepare_to_proceed): Mention the thread switching in debug
5670 output.
5671
05386e9e
TT
56722011-05-18 Tom Tromey <tromey@redhat.com>
5673
5674 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5675 path check. Use xmalloc and cleanups.
5676 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5677
ee86786c
TT
56782011-05-17 Tom Tromey <tromey@redhat.com>
5679
5680 * cp-valprint.c (cp_print_value_fields): Catch errors from
5681 value_static_field.
5682
9ff3b74f
TT
56832011-05-17 Tom Tromey <tromey@redhat.com>
5684
5685 * dwarf2read.c (dwarf2_get_die_type): Call
5686 get_die_type_at_offset.
5687 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5688 get_base_type function.
5689
cd3da28e
PA
56902011-05-17 Tomas Martinec <fyzmat@gmail.com>
5691
5692 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5693 trap_expected.
5694
fd20d931
DE
56952011-05-16 Doug Evans <dje@google.com>
5696
5697 * python/py-auto-load.c (source_section_scripts): Mention objfile
5698 name in warning.
5699
75fc9810
DE
57002011-05-15 Doug Evans <dje@google.com>
5701
290351b8
DE
5702 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5703 (try_thread_db_load_from_pdir): Call it. If unable to find
5704 libthread_db in directory of libpthread, see if we're looking at
5705 the separate-debug-info copy.
5706
75fc9810
DE
5707 * python/py-autoload.c (print_script): Print "Missing" instead of
5708 "No" for missing scripts.
5709 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5710
9f7bc587
DE
57112011-05-13 Doug Evans <dje@google.com>
5712
5713 * ui-file.c (stdio_file_write_async_safe): Add comment.
5714
093cee7d
HZ
57152011-05-14 Hui Zhu <teawater@gmail.com>
5716
5717 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5718
dbaefcf7
DE
57192011-05-13 Doug Evans <dje@google.com>
5720
98a5dd13
DE
5721 Support $pdir and $sdir in libthread-db-search-path.
5722 * NEWS: Mention $sdir,$pdir.
5723 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5724 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5725 (try_thread_db_load_from_sdir): New function.
5726 (try_thread_db_load_from_dir): New function.
5727 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5728 system directories if search of libthread-db-search-path fails,
5729 that is now done via $sdir.
5730 (has_libpthread): New function.
5731 (thread_db_load): Remove search for libthread_db in directory of
5732 libpthread, that is now done via $pdir.
5733
dbaefcf7
DE
5734 * NEWS: Mention "info auto-load-scripts".
5735 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5736 script_not_found_warning_printed.
5737 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5738 all callers updated. Initialize script_not_found_warning_printed.
5739 (get_auto_load_pspace_data_for_loading): New function.
5740 (maybe_add_script): New function.
5741 (source_section_scripts): Simplify. Only print one warning regardless
5742 of the number of auto-load scripts not found.
5743 (clear_section_scripts): Clear script_not_found_warning_printed.
5744 (auto_load_objfile_script): Record script in hash table.
5745 (count_matching_scripts): New function.
5746 (maybe_print_script): Renamed from maybe_print_section_script, all
5747 callers updated. Rewrite to use ui_out_*.
5748 (info_auto_load_scripts): Renamed from
5749 maintenance_print_section_scripts, all callers updated.
5750 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5751 renamed as "info auto-load-scripts".
5752
9930639c
TT
57532011-05-13 Tom Tromey <tromey@redhat.com>
5754
5755 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5756 (read_sleb128): Likewise.
5757
06826322
TT
57582011-05-13 Tom Tromey <tromey@redhat.com>
5759
5760 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5761 offset display.
5762
01124a23
DE
57632011-05-13 Doug Evans <dje@google.com>
5764
5765 * linux-nat.c (debug_linux_nat_async): Delete.
5766 Replace all references to use debug_linux_nat instead.
5767 (show_debug_linux_nat_async): Delete.
5768 (sigchld_handler): Call ui_file_write_async_safe instead of
5769 fprintf_unfiltered.
5770 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5771 * ui-file.c (struct ui_file): New member to_write_async_safe.
5772 (null_file_write_async_safe): New function.
5773 (ui_file_write_async_safe): New function.
5774 (set_ui_file_write_async_safe): New function.
5775 (ui_file_new): Initialize to_write_async_safe.
5776 (stdio_file_write_async_safe): New function.
5777 (struct stdio_file): New member fd.
5778 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5779 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5780 fileno.
01124a23
DE
5781 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5782 (set_ui_file_write_async_safe): Declare.
5783 (ui_file_write_async_safe): Declare.
5784
72fc29ff
TT
57852011-05-13 Tom Tromey <tromey@redhat.com>
5786
5787 * utils.c (do_value_free): New function.
5788 (make_cleanup_value_free): Likewise.
5789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5790 freeing correctly.
5791 (dwarf2_loc_desc_needs_frame): Call
5792 make_cleanup_value_free_to_mark.
5793 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5794 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5795 value_free_to_mark.
5796 (new_dwarf_expr_context): Don't call value_mark.
5797 * dwarf2-frame.c (execute_stack_op): Call
5798 make_cleanup_value_free_to_mark.
5799 * defs.h (make_cleanup_value_free): Declare.
5800
028d0ed5
TJB
58012011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5802
5803 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5804 prepare_execute_command.
5805 * top.c (prepare_execute_command): Return cleanup.
5806 (execute_command): Use cleanup from prepare_execute_command.
5807 * top.h (prepare_execute_command): Change prototype to return
5808 cleanup.
5809 * defs.h (struct value): Add opaque declaration.
5810 (make_cleanup_value_free_to_mark): Add prototype.
5811 * utils.c (do_value_free_to_mark): New function.
5812 (make_cleanup_value_free_to_mark): Likewise.
5813
b087e0ed
TT
58142011-05-12 Tom Tromey <tromey@redhat.com>
5815
5816 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5817 cast left-hand-side to unsigned.
5818
8a9b8146
TT
58192011-05-12 Tom Tromey <tromey@redhat.com>
5820
5821 PR gdb/12617:
5822 * value.h (value_from_contents): Declare.
5823 * value.c (value_from_contents): New function.
5824 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5825 (dwarf2_get_die_type): New function.
5826 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5827 (allocate_piece_closure): Acquire reference to values.
5828 (read_pieced_value): Update for value-based expressions.
5829 (write_pieced_value): Likewise.
5830 (free_pieced_value_closure): Call value_free as needed.
5831 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5832 Update for value-based expressions.
5833 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5834 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5835 <get_base_type>: New field.
5836 (struct dwarf_expr_piece) <v.value>: Change type.
5837 <v.regno>: New field.
5838 (struct dwarf_expr_context) <mark>: New field.
5839 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5840 (dwarf_expr_pop, dwarf_expr_push): Remove.
5841 (dwarf_expr_push_address): Declare.
5842 * dwarf2expr.c (dwarf_arch_cookie): New global.
5843 (struct dwarf_gdbarch_types): New.
5844 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5845 functions.
5846 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5847 static.
5848 (dwarf_expr_push_address): New function.
5849 (dwarf_expr_pop): Now static.
5850 (dwarf_expr_fetch): Change return type.
5851 (dwarf_require_integral): New function.
5852 (dwarf_expr_fetch): Simplify.
5853 (add_piece): Update.
5854 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5855 functions.
5856 (execute_stack_op) <sign_ext>: Remove.
5857 Use values for DWARF stack.
5858 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5859 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5860 New cases.
5861 (_initialize_dwarf2expr): New function.
5862 (add_piece): Update.
5863 (new_dwarf_expr_context): Set new field.
5864 (free_dwarf_expr_context): Call value_free_to_mark.
5865 * dwarf2-frame.c (no_base_type): New function.
5866 (execute_stack_op): Set get_base_type field. Update.
5867
e8d28ef4
TT
58682011-05-12 Tom Tromey <tromey@redhat.com>
5869
5870 * dwarf2read.c (read_common_block): Fix formatting.
5871
d248b706
KY
58722011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5873
5874 * breakpoint.c (disable_breakpoint): Disable all locations
5875 associated with a tracepoint on target if a trace experiment is
5876 running.
5877 (disable_command): Disable a specific tracepoint location on target if
5878 a trace experiment is running.
5879 (do_enable_breakpoint): Enable all locations associated with a
5880 tracepoint on target if a trace experiment is running.
5881 (enable_command) Enable a specific tracepoint location on target if a
5882 trace experiment is running.
5883 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5884 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5885 to_disable_tracepoint.
5886 * target.h: Add declaration of struct bp_location.
5887 (struct target_ops): Add new functions
5888 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5889 to_disable_tracepoint to target operations.
5890 (target_supports_enable_disable_tracepoint): New macro.
5891 (target_enable_tracepoint): New macro.
5892 (target_disable_tracepoint): New macro.
5893 * remote.c (struct remote_state): Add new field.
5894 (remote_enable_disable_tracepoint_feature): New.
5895 (remote_protocol_features): Add new entry.
5896 (remote_supports_enable_disable_tracepoint): New.
5897 (remote_enable_tracepoint): New.
5898 (remote_disable_tracepoint): New.
5899 (init_remote_ops): Add remote_enable_tracepoint,
5900 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5901 to remote operations.
5902 * tracepoint.c (start_tracing): Allow tracing to start without any
5903 tracepoints enabled with just a warning if they can be re-enabled
5904 later.
5905 * NEWS: Add news item for the new behaviour of the enable and disable
5906 GDB commands when applied to tracepoints.
5907 Add news items for the new remote packets QTEnable and QTDisable.
5908
cc88a640
JK
59092011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5910
5911 * config.in: Regenerate.
5912 * configure: Regenerate.
5913 * configure.ac <--with-system-readline> (for readline_echoing_p):
5914 Remove the test.
5915 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5916 (tui_old_rl_echoing_p): ... here.
5917 (tui_setup_io): Rename extern declaration readline_echoing_p to
5918 _rl_echoing_p. Adjust assignments for the both renames.
5919
1f84b619
TJB
59202011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5921
5922 * symtab.c (lookup_symtab): Run cleanup before returning.
5923
74ac6d43
TT
59242011-05-11 Tom Tromey <tromey@redhat.com>
5925
5926 * dwarf2read.c (handle_data_member_location): New function.
5927 (dwarf2_add_field): Use it.
5928 (read_common_block): Likewise.
5929
5488dafb
JK
59302011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5931
5932 Make addrs->SECTINDEX always defined.
5933 * symfile.c (relative_addr_info_to_section_offsets): Check for
5934 SECTINDEX -1, not for zero ADDR.
5935 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5936 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5937 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5938 on its validity.
5939
84e578fb
DE
59402011-05-10 Doug Evans <dje@google.com>
5941
2471d008
DE
5942 * linux-thread-db.c: Whitespace cleanup.
5943 (try_thread_db_load_1): Fix comment.
5944
84e578fb
DE
5945 * linux-thread-db.c (set_libthread_db_search_path): New function.
5946 (_initialize_thread_db): Add setter for libthread-db-search-path.
5947
673c2bbe
DE
59482011-05-09 Doug Evans <dje@google.com>
5949
478aac75
DE
5950 * NEWS: Mention --with-iconv-bin.
5951 * configure.ac: New option --with-iconv-bin.
5952 * configure: Regenerate.
5953 * config.in: Regenerate.
5954 * defs.h (relocate_gdb_directory): Declare.
5955 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5956 removed progname parameter, and exported. All callers updated.
5957 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5958
673c2bbe
DE
5959 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5960 adding missing call to restore_child_signals_mask.
5961
e4c8541f
PA
59622011-05-09 Pedro Alves <pedro@codesourcery.com>
5963
5964 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5965 parameter.
5966 * infrun.c (proceed, start_remote): Adjust.
5967 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5968 and adjust to not handle it.
5969 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5970 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5971 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5972 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5973 * windows-nat.c (do_initial_windows_stuff): Adjust.
5974 * infcmd.c (attach_command): Adjust.
5975 (notice_new_inferior): Adjust.
5976
a536c6d7
UW
59772011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5978
5979 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5980 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5981 * spu-tdep.c (op_selb): Use correct value.
5982
7845b013
UW
59832011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5984
5985 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5986 "parent" parameter to symbol_file_add_from_bfd call.
5987
9c06b0b4
TJB
59882011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5989 Thiago Jung Bauermann <bauerman@br.ibm.com>
5990
5991 Implement support for PowerPC BookE masked watchpoints.
5992 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5993 section.
5994 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5995 method. Initialize to NULL in all existing breakpoint_ops instances.
5996 (struct breakpoint) <hw_wp_mask>: New field.
5997 * breakpoint.c (is_masked_watchpoint): Add prototype.
5998 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5999 breakpoint's breakpoint_ops.works_in_software_mode if available.
6000 (watchpoints_triggered): Handle the case of a hardware masked
6001 watchpoint trigger.
6002 (watchpoint_check): Likewise.
6003 (works_in_software_mode_watchpoint): New function.
6004 (insert_masked_watchpoint, remove_masked_watchpoint)
6005 (resources_needed_masked_watchpoint)
6006 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6007 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6008 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6009 functions.
6010 (masked_watchpoint_breakpoint_ops): New structure.
6011 (watch_command_1): Check for the existence of the `mask' parameter.
6012 Set b->ops according to the type of hardware watchpoint being created.
6013 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6014 (ppc_linux_remove_mask_watchpoint)
6015 (ppc_linux_masked_watch_num_registers): New functions.
6016 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6017 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6018 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6019 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6020 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6021 (target_masked_watch_num_registers): New functions.
6022 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6023 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6024 methods.
6025 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6026 (target_masked_watch_num_registers): Add prototypes.
6027
8be455d7
JK
60282011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6029
6030 PR 12573
6031 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6032 (producer_is_gcc_ge_4_0): New function.
6033 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6034 symtab->language code.
6035 (var_decode_location): Set cu->has_loclist.
6036 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6037 skip. Intialize force_skip from locations_valid. Move the prologue
6038 skipping code into two passes.
6039 * symtab.h (struct symtab): Make the primary field a bitfield. New
6040 field locations_valid.
6041
d8228535
JK
60422011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6043
6044 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6045 (classify_inner_name): Call cp_lookup_nested_type with
6046 yylval.tsym.type.
6047 * cp-namespace.c (cp_lookup_nested_type): New variable
6048 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6049 type_name_no_tag_or_error with saved_parent_type.
6050 * dwarf2read.c (load_partial_dies): Read in any children of
6051 DW_TAG_typedef with complaint in such case.
6052 * gdbtypes.c (type_name_no_tag_or_error): New function.
6053 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6054 * valops.c (destructor_name_p): New comment for parameter type. Remove
6055 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6056 * value.h (destructor_name_p): Remove type const.
6057
1976171a
JK
60582011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6059
6060 * symtab.c (compare_symbol_name): New function.
6061 (completion_list_add_name, expand_partial_symbol_name): Call it,
6062 remove the variable ncmp.
6063 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6064 gdb_assert it.
6065
a9634178
TJB
60662011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6067
6068 Demote to sw watchpoint only in update_watchpoint.
6069 * breakpoint.c (update_watchpoint): Change between software and
6070 hardware watchpoint for all kinds of watchpoints, not just
6071 read/write ones. Determine b->exact value here instead of
6072 in watch_command_1. Error out if there are not enough resources
6073 for a read or access hardware watchpoint.
6074 (watch_command_1): Remove logic of checking whether there are
6075 enough resources available, since update_watchpoint will do that
6076 work now. Don't set b->exact here. Catch exceptions thrown by
6077 update_watchpoint and delete the watchpoint.
6078 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6079 Use target_exact_watchpoints instead.
6080 (delete_breakpoint): Notify observers only if deleted watchpoint
6081 has a breakpoint number assigned to it.
6082
4c67c798
JJ
60832011-05-05 Janis Johnson <janisjo@codesourcery.com>
6084
6085 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6086
a3fcb948
JG
60872011-05-05 Jerome Guitton <guitton@adacore.com>
6088
6089 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6090 New functions.
6091 (i386_stack_tramp_frame_unwind): New static global.
6092 (i386_match_pattern): New function, extracted from i386_match_insn.
6093 (i386_match_insn): Use i386_match_pattern.
6094 (i386_match_insn_block): New function.
6095 (i386_tramp_chain_in_reg_insns)
6096 (i386_tramp_chain_on_stack_insns): New static variables.
6097 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6098 of unwinders.
6099
4d393d60
JM
61002011-05-04 Joseph Myers <joseph@codesourcery.com>
6101
6102 * configure.host (xscale*): Don't handle target.
6103 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6104 handle targets.
6105
f70bd40b
YQ
61062011-05-04 Yao Qi <yao@codesourcery.com>
6107
6108 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6109
dd3295ee
JB
61102011-05-03 Joel Brobecker <brobecker@adacore.com>
6111
6112 Revert:
6113 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6114 | * elfread.c (elf_symtab_read): Stop memory leak.
6115
90375a0e
PM
61162011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6117
6118 * nto-tdep.c (nto_target): Replace deprecated call to
6119 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6120
d07205c2
JK
61212011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6122
6123 Fix false GCC warning.
6124 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6125
1e718ff1
TJB
61262011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6127
6128 * breakpoint.c (update_watchpoint): Move code to change
6129 the enable state of breakpoint from here ...
6130 (do_enable_breakpoint): ... to here.
6131
35bef4fd
TT
61322011-04-26 Andrew Gontarek <andrewg@cray.com>
6133
78290264
PP
6134 * valprint.c (val_print_array_elements): Fixed poor performance
6135 of printing very large arrays with repeat_count_threshold set
6136 to unlimited. New comment.
35bef4fd 6137
38a714bb
TT
61382011-04-29 Tom Tromey <tromey@redhat.com>
6139
6140 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6141 (mi_parse): Likewise.
6142 * breakpoint.c (break_range_command): Use sizeof char*, not
6143 char**.
6144 (create_breakpoint): Likewise.
6145 (parse_breakpoint_sals): Likewise.
6146
eb73ad13
PA
61472011-04-29 Pedro Alves <pedro@codesourcery.com>
6148
6149 * linux-nat.c (linux_child_remove_fork_catchpoint)
6150 (linux_child_remove_vfork_catchpoint)
6151 (linux_child_remove_exec_catchpoint): New functions.
6152 (linux_target_install_ops): Install them.
6153
d65aec65
PM
61542011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6155
6156 PR mi/12531
6157
6158 * varobj.c (install_default_visualizer): Do not install a
6159 visualizer if the varobj is CPLUS_FAKE_CHILD.
6160 (construct_visualizer): Likewise.
6161
165195f4
JK
61622011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6163
6164 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6165 case insensitive comparison.
6166
30852783
UW
61672011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6168
6169 * infrun.c (proceed): Revert previous change.
6170 (resume): Instead, handle the case of signal delivery while stepping
6171 off a breakpoint location here, and only if software single-stepping
6172 is used. Handle nested signals.
6173
7ff120b4
YQ
61742011-04-28 Yao Qi <yao@codesourcery.com>
6175
6176 * arm-tdep.c (copy_unmodified): Rename to ...
6177 (arm_copy_unmodified): .. this. New.
6178 (copy_preload): Move common part to ...
6179 (install_preload): .. this. New.
6180 (arm_copy_preload): New.
6181 (copy_preload_reg): Move common part to ...
6182 (install_preload_reg): ... this. New.
6183 (arm_copy_preload_reg): New.
6184 (copy_b_bl_blx): Move common part to ...
6185 (install_b_bl_blx): .. this. New.
6186 (arm_copy_b_bl_blx): New.
6187 (copy_bx_blx_reg): Move common part to ...
6188 (install_bx_blx_reg): ... this. New.
6189 (arm_copy_bx_blx_reg): New.
6190 (copy_alu_reg): Move common part to ...
6191 (install_alu_reg): ... this. New.
6192 (arm_copy_alu_reg): New.
6193 (copy_alu_shifted_reg): Move common part to ...
6194 (install_alu_shifted_reg): ... this. New.
6195 (copy_ldr_str_ldrb_strb): Move common part to ...
6196 (install_ldr_str_ldrb_strb): ... this. New.
6197 (arm_copy_ldr_str_ldrb_strb): New.
6198 (copy_copro_load_store): Move some common part to ...
6199 (install_copy_copro_load_store): ... this. New.
6200 (arm_copy_copro_load_store): New.
6201 (copy_svc): Delete.
6202 (arm_copy_svc): Renamed from copy_svc.
6203 (copy_undef): Delete.
6204 (arm_copy_undef): Renamed from copy_undef.
6205 (decode_ext_reg_ld_st): Delete.
6206 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6207 (decode_svc_copro): Delete.
6208 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6209 (copy_copro_load_store, copy_alu_imm): update callers.
6210 (copy_extra_ld_st, copy_block_xfer): Likewise.
6211 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6212 (decode_miscellaneous, decode_dp_misc): Likewise.
6213 (decode_ld_st_word_ubyte, decode_media): Likewise.
6214 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6215 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6216 (decode_unconditional, decode_miscellaneous): Likewise.
6217 (decode_media, decode_b_bl_ldmstm): Likewise.
6218 (arm_process_displaced_insn): Likewise..
6219 (decode_misc_memhint_neon): Delete.
6220 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6221 (decode_miscellaneous): Delete.
6222 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6223 (decode_dp_misc): Delete.
6224 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6225 (decode_ld_st_word_ubyte): Delete.
6226 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6227 (decode_media): Delete.
6228 (arm_decode_media): Renamed from decode_media.
6229 (decode_b_bl_ldmstm): Delete.
6230 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6231 (decode_ext_reg_ld_st): Delete.
6232 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6233 (decode_unconditional): Delete.
6234 (arm_decode_unconditional): Renamed from decode_unconditional.
6235
559a7a62
JK
62362011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6237
6238 Case insensitive lookups implementation.
6239 * dwarf2read.c: Include ctype.h.
6240 (struct mapped_index): New field version.
6241 (mapped_index_string_hash): New parameter index_version. New comment
6242 for it. Call tolower appropriately.
6243 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6244 Choose the right index version for mapped_index_string_hash.
6245 (dwarf2_read_index): Support also the index version 5. Initialize the
6246 new struct mapped_index field version.
6247 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6248 (find_slot): Explain the version needs. Pass INT_MAX for the new
6249 parameter.
6250 (write_psymtabs_to_index): Produce version 5.
6251 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6252 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6253 * psymtab.c (lookup_partial_symbol): Find the
6254 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6255 entries.
6256 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6257 NAME lowercasing.
6258 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6259 (completion_list_add_name): New variable ncmp, initialize it, use it.
6260 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6261 * utils.c (strcmp_iw): Support case_sensitive_off.
6262 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6263 New function comment part. New variables saved_string1,
6264 saved_string2 and case_pass. Add a proper second pass.
6265
681bf369
JK
62662011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6267
6268 Replace re_comp/re_exec by regcomp/regexec.
6269 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6270 (search_symbols_name_matches): Use them, use regexec.
6271 (search_symbols): New variable retval_chain, adjust the use of
6272 old_chain against it. Replace re_comp by regcomp. Use the new struct
6273 search_symbols_data fields, use regexec instead of re_exec.
6274
b11b1f88
JK
62752011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6276
6277 Format the code for the next patch.
6278 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6279 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6280 New variables c1 and c2.
6281
2484c66b
UW
62822011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6283
6284 * infrun.c (proceed): Do not single-step into signal delivery
6285 when stepping off a breakpoint location.
6286 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6287 (insert_step_resume_breakpoint_at_caller): Likewise.
6288 (insert_step_resume_breakpoint_at_sal): Likewise.
6289 (insert_longjmp_resume_breakpoint): Likewise.
6290
47423772
YQ
62912011-04-27 Yao Qi <yao@codesourcery.com>
6292
6293 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6294
13bdd2e7
JB
62952011-04-27 Joel Brobecker <brobecker@adacore.com>
6296
6297 * procfs.c (procfs_pass_signals): Fix advance declaration.
6298
2455069d
UW
62992011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6300
6301 * target.h (struct target_ops): Remove to_notice_signals;
6302 add to_pass_signals.
6303 (target_notice_signals): Remove.
6304 (target_pass_signals): Add prototype.
6305 * target.c (update_current_target): Remove to_notice_signals;
6306 mention to_pass_signals.
6307 (target_pass_signals): New function.
6308 (debug_to_notice_signals): Remove.
6309 (setup_target_debug): Do not install debug_to_notice_signals.
6310
6311 * infrun.c (signal_pass): New global.
6312 (resume): Call target_pass_signals.
6313 (handle_inferior_event): Report all signals while stepping over
6314 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6315 are re-inserted when stepping over a signal handler.
6316 (signal_cache_update): New function.
6317 (signal_stop_update): Call it.
6318 (signal_print_update): Likewise.
6319 (signal_pass_update): Likewise.
6320 (handle_command): Call signal_cache_update and target_pass_signals
6321 instead of target_notice_signals.
6322 (_initialize_infrun): Initialize signal_pass.
6323
6324 * linux-nat.c (pass_mask): New global.
6325 (linux_nat_pass_signals): New function.
6326 (linux_nat_create_inferior): Report all signals initially.
6327 (linux_nat_attach): Likewise.
6328 (linux_nat_resume): Use pass_mask to decide whether to directly
6329 handle an inferior signal.
6330 (linux_nat_wait_1): Likewise.
6331 (linux_nat_add_target): Install to_pass_signals callback.
6332
6333 * nto-procfs.c (notice_signals): Remove.
6334 (procfs_resume): Do not call notice_signals.
6335 (procfs_notice_signals): Remove.
6336 (procfs_pass_signals): New function.
6337 (init_procfs_ops): Install to_pass_signals callback instead of
6338 to_notice_signals callback.
6339 (_initialize_procfs): Report all signals initially.
6340
6341 * procfs.c (procfs_notice_signals): Remove.
6342 (procfs_pass_signals): New function.
6343 (procfs_target): Install to_pass_signals callback instead of
6344 to_notice_signals callback.
6345 (register_gdb_signals): Remove.
6346 (procfs_debug_inferior): Report all signals initially.
6347 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6348
6349 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6350 parameters; use them instead of calling signal_..._state routines.
6351 (remote_notice_signals): Remove.
6352 (remote_start_remote): Report all signals initially.
6353 (remote_resume): Do not call remote_pass_signals.
6354 (_initialize_remote): Install to_pass_signals callback instead of
6355 to_notice_signals callback.
6356
46c6471b
PA
63572011-04-27 Pedro Alves <pedro@codesourcery.com>
6358
6359 * breakpoint.c (user_settable_breakpoint): Delete.
6360 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6361 (delete_command): Check user_breakpoint_p instead of looking at
6362 the breakpoint's type.
6363 (disable_command): Ditto.
6364 (enable_command): Ditto.
6365 (delete_trace_command): Use user_breakpoint_p instead of looking
6366 at the breakpoint number directly. When checking if there are
6367 user visible tracepoints, in order to know whether to ask the user
6368 for confirmation, check whether the breakpoint is actually a
6369 tracepoint.
6370
f6d90398
VP
63712011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6372
6373 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6374 compilation.
6375
8d3788bd
VP
63762011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6377
6378 MI breakpoint notifications.
6379
f33edef8
PP
6380 * annotate.c (breakpoint_changed): Adjust parameter type.
6381 * breakpoint.c (set_breakpoint_condition): Adjust to change
6382 in breakpoint_modified type.
6383 (breakpoint_set_commands): Likewise.
6384 (do_map_commands_command): Likewise.
6385 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6386 changed after bumping hit count.
6387 (bpstat_stop_status): Likewise.
6388 (print_one_breakpoint_location): Don't wrap in tuple here.
6389 (print_one_breakpoint): Always print individual locations.
6390 For locations, use unnamed tuple.
6391 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6392 has changed.
6393 (create_catchpoint, create_syscall_event_catchpoint): Call
6394 breakpoint_created obsever.
6395 (mention): Don't call breakpoint_created observer.
6396 (create_breakpoint_sal): Call breakpoint_created observer.
6397 (create_breakpoint, watch_command_1): Likewise.
6398 (create_ada_exception_breakpoint): Likewise.
6399 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6400 (locations_are_equal): New.
6401 (update_breakpoint_locations): If locations were changed, notify.
6402 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6403 Call breakpoint_modified observer.
6404
6405 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6406 (mi_cmd_break_insert): Don't set observers for modify and delete.
6407 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6408 (mi_breakpoint_created, mi_breakpoint_deleted)
6409 (mi_breakpoint_modified): New.
6410 (mi_interpreter_init): Hook the above.
6411 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6412 while -break-* commands are executing.
6413 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6414 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6415 (mi_redirect): New.
6416 (mi_ui_out_impl): Hook in mi_redirect.
6417 (mi_field_skip): True to the name, skip the field, don't output
6418 a field with an empty value.
6419
6420 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6421 (gdbpy_breakpoint_deleted): Adjust.
6422 * tui/tui-hooks.c (tui_event_create_breakpoint)
6423 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6424
a8f42b45
UW
64252011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6426
6427 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6428 (procfs_remove_hw_watchpoint): Likewise.
6429
57e12211
TT
64302011-04-26 Michael Walle <michael@walle.cc>
6431
6432 * remote.c (remote_start_remote): Ack packet after sending the
6433 interrupt sequence.
6434
af96c192
YQ
64352011-04-26 Yao Qi <yao@codesourcery.com>
6436
f33edef8
PP
6437 * linux-nat.c: Move common macros to ...
6438 Include linux-ptrace.h.
6439 * common/linux-ptrace.h: ... here. New.
af96c192 6440
3e03848b
JK
64412011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6442
6443 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6444 !objfile_has_partial_symbols. New comment.
6445 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6446 SYM_READ_PSYMBOLS is not present. Extend the comment.
6447 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6448
1ae0d051
JK
64492011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6450
6451 * defs.h (ENUM_BITFIELD): Remove.
6452
03f2bd59
JK
64532011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6454 Eli Zaretskii <eliz@gnu.org>
6455
6456 * NEWS: Document the new gdbserver --once option.
6457
4161fbb0
JZ
64582011-04-21 Jie Zhang <jzhang918@gmail.com>
6459
6460 * MAINTAINERS: Update my email address.
6461
bcb28afc
PM
64622011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6463
6464 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6465 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6466 function call if __STDC_ISO_10646__ macro is defined.
6467 (intermediate_encoding): New prototype.
6468 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6469 to generate compile time error for unsupported gdb_wchar_t size.
6470 (ENDIAN_SUFFIX): New macro.
6471 (intermediate_encoding): New function.
6472
7b08b9eb
JK
64732011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6474
6475 * ada-lang.c (struct add_partial_datum): Update the comment for
6476 expand_partial_symbol_name.
6477 (ada_add_partial_symbol_completions): Rename to ...
6478 (ada_expand_partial_symbol_name): ... here, change return type, update
6479 function comment, call symbol_completion_match instead of
6480 symbol_completion_add.
6481 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6482 and ada_expand_partial_symbol_name.
6483 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6484 FILE_MATCHER.
6485 (dw2_map_symbol_names): Remove.
6486 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6487 * psymtab.c (map_symbol_names_psymtab): Remove.
6488 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6489 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6490 order.
6491 (psym_functions): Unlist map_symbol_names_psymtab.
6492 (map_partial_symbol_names): Rename to ...
6493 (expand_partial_symbol_names): ... here, change the FUN type, call
6494 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6495 * psymtab.h (map_partial_symbol_names): Rename to ...
6496 (expand_partial_symbol_names): ... here, change the FUN type.
6497 * symfile.h (struct quick_symbol_functions): Update the description of
6498 expand_symtabs_matching. Remove map_symbol_names.
6499 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6500 (struct add_name_data): Update the comment for
6501 expand_partial_symbol_name.
6502 (add_partial_symbol_name): Rename to ...
6503 (expand_partial_symbol_name): ... here. Replace
6504 completion_list_add_name call by strncmp.
6505 (default_make_symbol_completion_list_break_on): Use now
6506 expand_partial_symbol_names and expand_partial_symbol_name.
6507 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6508
90476074
TT
65092011-04-20 Tom Tromey <tromey@redhat.com>
6510
6511 * dwarf2read.c (save_gdb_index_command): Replace format
6512 documentation with a pointer to the manual.
6513
c21236dc
PA
65142011-04-20 Pedro Alves <pedro@codesourcery.com>
6515
6516 * regcache.c: Include remote.h.
6517 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6518 (regcache_dump): Handle regcache_dump_remote.
6519 (maintenance_print_remote_registers): New function.
6520 (_initialize_regcache): Install "maint print remote-registers"
6521 command.
6522 * remote.c (map_regcache_remote_table): New function, factored out
6523 from ...
6524 (init_remote_state): ... here.
6525 (remote_register_number_and_offset): New.
6526 * remote.h (remote_register_number_and_offset): Declare.
6527
b78974c3
PA
65282011-04-20 Pedro Alves <pedro@codesourcery.com>
6529
6530 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6531 null_ptid, assume and allow a NULL address space, instead of
6532 asking the target for the ptid's address space.
6533 * infrun.c (ptid_is_pid): Remove assertion.
6534
7a9dd1b2
TT
65352011-04-19 Tom Tromey <tromey@redhat.com>
6536
6537 * windows-tdep.c (windows_xfer_shared_library):
6538 * windows-nat.c (get_module_name, windows_make_so):
6539 * v850-tdep.c (v850_handle_pushm):
6540 * utils.c (null_cleanup, gdb_realpath):
6541 * ui-out.c (get_next_header):
6542 * tracepoint.c (clear_traceframe_info):
6543 * symtab.c (lookup_symtab):
6544 * serial.h (struct serial_ops):
6545 * mipsread.c (read_alphacoff_dynamic_symtab):
6546 * infcmd.c (print_return_value):
6547 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6548 * f-exp.y (parse_number):
6549 * exceptions.c (catch_exceptions):
6550 * dummy-frame.c (dummy_frame_this_id):
6551 * defs.h (struct cleanup):
6552 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6553 * arm-tdep.c (arm_push_dummy_call):
6554 * amd64-tdep.h (amd64_collect_xsave):
6555 * amd64-tdep.c (amd64_collect_xsave):
6556 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6557 * README (typing): Remove duplicate words.
6558 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6559 * infrun.c (siginfo_value_read): Fix typo.
6560 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6561 * top.c (source_line_number): Add comma.
6562
9941e0c5
MK
65632011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6564
6565 * thread.c (any_live_thread_of_process): Prioritize threads
6566 that are not executing.
6567 * gdbthread.h (any_live_thread_of_process): Update comment
6568 as per above change.
6569
ed4b0e6a
AS
65702011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6571
6572 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6573 (scan_xcoff_symtab): Likewise.
6574
9b13a2db
PM
65752011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6576
6577 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6578 inside if clause.
6579
1c6e1b0d
PM
65802011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6581 Pedro Alves <pedro@codesourcery.com>
6582
6583 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6584 variables to simplify code and avoid == operator at end of
6585 line as this is against GNU coding standards.
6586
74de0234
PM
65872011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6588
6589 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6590 lm_name to name_lm to avoid conflict with lm_name function.
6591
b23518f0
PM
65922011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6593
6594 ARI fixes: Use only lowercase function name for static functions.
6595 * nto-tdep.c (LM_ADDR): Rename to...
6596 (lm_addr): New function name.
6597 (nto_relocate_section_addresses): Adapt to change above.
6598 * solib-sunos.c (LM_ADDR): Rename to...
6599 (lm_addr): New function name.
6600 (LM_NEXT): Rename to...
6601 (lm_next): New function name.
6602 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6603 function name changes above.
6604 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6605 (lm_addr_from_link_map): New function name.
6606 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6607 (has_lm_dynamic_from_link_map): New function name.
6608 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6609 (lm_dynamic_from_link_map): New function name.
6610 (LM_ADDR_CHECK): Rename to...
6611 (lm_addr_check): New function name.
6612 (LM_NEXT): Rename to...
6613 (lm_next): New function name.
6614 (LM_PREV): Rename to...
6615 (lm_prev): New function name.
6616 (LM_NAME): Rename to...
6617 (lm_name): New function name.
6618 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6619 (ignore_first_link_map_entry): New function name.
6620 (svr4_keep_data_in_core): Adapt to function name changes above.
6621 (svr4_current_sos): Likewise.
6622 (enable_break): Likewise.
6623 (svr4_relocate_section_addresses): Likewise.
6624
1448a0a2
PM
66252011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6626
6627 ARI cleanup.
6628 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6629 sprintf. Simplify code and avoid loosing memory.
6630 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6631 (call0_frame_cache): Remove && operator from end of line.
6632
02835898
JK
66332011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6634
6635 Fix libraries displacement if they change whether they were prelinked.
6636 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6637 does not match. Comment why.
6638
9a845ea2
JK
66392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6640
6641 * corelow.c: Include wrapper.h.
6642 (core_open): Call now gdb_target_find_new_threads.
6643 * wrapper.c: Include target.h.
6644 (gdb_target_find_new_threads): New.
6645 * wrapper.h (gdb_target_find_new_threads): New declaration.
6646
254f582e
JK
66472011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6648
6649 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6650 even if !TARGET_HAS_EXECUTION.
6651
63524580
JK
66522011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6653
6654 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6655 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6656 bfd_get_synthetic_symtab.
6657 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6658 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6659 parameter parent, remove the call to add_separate_debug_objfile.
6660 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6661 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6662 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6663 parent, new comment for it, call add_separate_debug_objfile for it.
6664 (symbol_file_add_separate): Pass objfile as the parameter parent,
6665 remove the call to add_separate_debug_objfile.
6666 (symbol_file_add_from_bfd): New parameter parent, pass it.
6667 (symbol_file_add): Pass NULL to the new parameter parent.
6668 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6669
90359a16
JK
66702011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6671
6672 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6673 BSF_SYNTHETIC.
6674
626e7282
JK
66752011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6676
6677 Fix Python access to inlined frames.
6678 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6679 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6680
cf31e6f9
TT
66812011-04-15 Tom Tromey <tromey@redhat.com>
6682
6683 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6684
c8d895f1
GB
66852011-04-15 Gary Benson <gbenson@redhat.com>
6686
6687 * MAINTAINERS: Add myself to write-after-approval section.
6688
56a9aa1d
MF
66892011-04-14 Mike Frysinger <vapier@gentoo.org>
6690
6691 * remote-sim.c (sim_command_completer): New function.
6692 (_initialize_remote_sim): Set completer to sim_command_completer.
6693
ba770c9c
TJB
66942011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6695
6696 * breakpoint.c (print_exception_catchpoint): Rename to ...
6697 (print_it_exception_catchpoint): ... this.
6698 (gnu_v3_exception_catchpoint_ops): Update with new name
6699 for print_it_exception_catchpoint.
6700
51bf2553
EBM
67012011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6702
6703 * MAINTAINERS: Add myself for write after approval privileges.
6704
d242658c
MP
67052011-04-13 Marek Polacek <mpolacek@redhat.com>
6706
6707 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6708
4a4106ca
TJB
67092011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6710
6711 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6712
26063d49
TJB
67132011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6714
6715 * breakpoint.c (save_breakpoints): Verify whether
6716 breakpoint_ops.print_recreate is defined before calling it.
6717
7782b183
GB
67182011-04-11 Gary Benson <gbenson@redhat.com>
6719
6720 Fix failure with --enable-maintainer-mode.
6721 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6722
e8930875
JK
67232011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6724
6725 Code cleanup.
6726 * symtab.c (search_symbols): Reorder the KIND description in the
6727 function comment. Remove the unused 4th element of types, types2,
6728 types3 and types4. New gdb_assert on KIND.
6729 (symtab_symbol_info): Remove the unused 4th element of classnames.
6730 New gdb_assert on KIND.
6731 * symtab.h (enum search_domain): New warning in the enum comment.
6732 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6733 TYPES_DOMAIN.
6734
b4f2f049
JK
67352011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6736
6737 Fix crash of gdb save-index on a STABS file.
6738 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6739 PSYMTABS_ADDRMAP.
6740
60d5a603
JK
67412011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6742
6743 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6744 * dwarf2read.c: Include ctype.h.
6745 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6746 functions.
6747 (dwarf2_add_field): Fix new_field->accessibility by calling
6748 dwarf2_default_access_attribute. Restructure setting accessibility
6749 vs. virtuality.
6750 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6751 is_private and is_protected by calling
6752 dwarf2_default_access_attribute.
6753
e0f68161
KB
67542011-04-08 Kevin Buettner <kevinb@redhat.com>
6755
6756 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6757 to the initialization.
6758
2e1aae43
SE
67592011-04-08 Steve Ellcey <sje@cup.hp.com>
6760
6761 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6762 initalization.
6763
c6ca3dab
PM
67642011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6765
6766 Remove support for old Cygwin 1.5 versions.
6767 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6768 function on old Cygwin version.
6769 * windows-nat.c: Remove cygwin version check and always define
6770 __USEWIDE for Cygwin compilation.
6771
bd18283a
YQ
67722011-04-07 Yao Qi <yao@codesourcery.com>
6773
6774 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6775 and TO.
6776 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6777 (arm_copy_svc): Remove parameters INSN and TO.
6778 (decode_svc_copro): Update caller.
6779 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6780 from function pointer `copy_svc_os'.
6781
8c8dba6d
YQ
67822011-04-07 Yao Qi <yao@codesourcery.com>
6783
6784 * arm-tdep.c (cleanup_branch): Set a correct return address in
6785 LR for ARM and Thumb.
6786
59d7bcaf
JK
67872011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6788
6789 Code cleanup.
6790 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6791 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6792 in the function comment, a new note on values compatibility.
6793 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6794 * symtab.h (SYMBOL_HASH_NEXT): New.
6795
e7db58ea
TJB
67962011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6797
6798 * ppc-linux-nat.c (check_condition): Add len output parameter.
6799 Set it based on the memory region referenced in the condition
6800 expression. Update all callers.
6801
9f743ef6
JK
68022011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6803
6804 Fix crash regression on systems featuring .gdb_index.
6805 * objfiles.c (free_objfile): Move the
6806 forget_cached_source_info_for_objfile call earlier. Comment it.
6807 Extend the comment for objfile_free_data.
6808
9182c5bc
JK
68092011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 Fix regression of displaying the debug format.
6812 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6813 subfile.
6814
04bd08de
TT
68152011-04-04 Tom Tromey <tromey@redhat.com>
6816
6817 * cli/cli-interp.c (struct captured_execute_command_args):
6818 Remove.
6819 (do_captured_execute_command): Remove.
6820 (safe_execute_command): Use TRY_CATCH.
6821 * cli/cli-script.c (struct wrapped_read_command_file_args):
6822 Remove.
6823 (wrapped_read_command_file): Remove.
6824 (script_from_file): Use TRY_CATCH.
6825 * exceptions.c (catch_exception): Remove.
6826 * exceptions.h (catch_exception): Remove.
6827 (deprecated_throw_reason): Update comment.
6828 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6829 argument to 'context'.
6830 (mi_execute_command): Use TRY_CATCH.
6831 * remote.c (struct start_remote_args): Remove.
6832 (remote_start_remote): Update; change arguments.
6833 (remote_open_1): Use TRY_CATCH.
6834
58438ac1
TT
68352011-04-04 Tom Tromey <tromey@redhat.com>
6836
6837 * tracepoint.c (scope_info): Update.
6838 * symtab.c (decode_line_spec): Update.
6839 * python/python.c (gdbpy_decode_line): Update.
6840 * linespec.h (decode_line_1): Update.
6841 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6842 (decode_compound, find_method, symtab_from_filename)
6843 (decode_variable): Likewise.
6844 * cli/cli-cmds.c (edit_command): Update.
6845 (list_command): Update.
6846 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6847 argument.
6848 (create_breakpoint): Update.
6849 (until_break_command): Update.
6850 (addr_string_to_sals): Update.
6851 (decode_line_spec_1): Update.
6852
b78a6381
TT
68532011-04-04 Tom Tromey <tromey@redhat.com>
6854
6855 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6856 (do_captured_parse_breakpoint): Remove.
6857 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6858 Use TRY_CATCH directly.
6859
00174a86
TT
68602011-04-04 Tom Tromey <tromey@redhat.com>
6861
6862 * symtab.h (free_symtab): Remove.
6863 (forget_cached_source_info_for_objfile): Declare.
6864 * symmisc.c (free_symtab): Remove.
6865 * source.c (forget_cached_source_info_for_objfile): New function.
6866 (forget_cached_source_info): Use it.
6867 * objfiles.c (free_objfile): Simplify check before calling
6868 clear_current_source_symtab_and_line. Call
6869 forget_cached_source_info_for_objfile.
6870
30cc903e
TT
68712011-04-04 Tom Tromey <tromey@redhat.com>
6872
6873 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6874 (new_symtab): Don't set `free_code' on symtab.
6875 (new_linetable): Properly handle size==0.
6876 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6877 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6878 free_func.
6879 * jv-lang.c (struct jv_per_objfile_data): New.
6880 (jv_per_objfile_free): Free the data.
6881 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6882 (get_java_class_symtab): Set the `dict' field on the
6883 jv_per_objfile_data.
6884 (free_class_block): Remove.
6885 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6886 the symtab.
6887
0c2e6019
TT
68882011-04-04 Tom Tromey <tromey@redhat.com>
6889
6890 * symfile.c (reread_symbols): Update.
6891 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6892 field.
6893 * objfiles.c (allocate_objfile): Update.
6894 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6895 declare.
6896 * cp-namespace.c (lookup_symbol_file): Don't call
6897 lookup_possible_namespace_symbol.
6898 (initialize_namespace_symtab, get_possible_namespace_block)
6899 (free_namespace_block, cp_check_possible_namespace_symbols)
6900 (check_possible_namespace_symbols_loop)
6901 (check_one_possible_namespace_symbol)
6902 (lookup_possible_namespace_symbol): Remove.
6903 (maintenance_cplus_namespace): Replace with notice.
6904 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6905
554d387d
TT
69062011-04-04 Tom Tromey <tromey@redhat.com>
6907
6908 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6909 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6910 * symmisc.c (free_symtab): Don't free debugformat.
6911 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6912 (record_debugformat, record_producer): Document.
6913 * buildsym.c (end_symtab): Don't save debugformat and producer
6914 names on obstack.
6915 (end_symtab): Don't free debugformat and producer fields.
6916 (record_debugformat): Don't call xstrdup.
6917 (record_producer): Likewise.
6918
d4d4db8a
TT
69192011-04-04 Tom Tromey <tromey@redhat.com>
6920
6921 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6922 (source_line_charpos, source_charpos_line): Remove.
6923
8903c50d
TT
69242011-04-04 Tom Tromey <tromey@redhat.com>
6925
6926 * symtab.h (domain_enum): Split in two...
6927 (enum search_domain): New.
6928 (search_symbols): Update.
6929 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6930 redundant declarations.
6931 (search_symbols): Change 'kind' argument to search_domain.
6932 Update.
6933 (print_symbol_info): Likewise.
6934 (symtab_symbol_info): Likewise.
6935 * symfile.h (struct quick_symbol_functions)
6936 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6937 <expand_symtabs_matching>: Likewise.
6938 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6939 (expand_symtabs_matching_via_partial): Update.
6940 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6941 (dw2_expand_symtabs_for_function): Update.
6942 * block.h: Moved anonymous enum...
6943 * defs.h (enum block_enum): ... here. Now named.
6944
d9351f5f 69452011-04-03 Joel Brobecker <brobecker@adacore.com>
6946
6947 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6948 * version.in: Bump version to 7.3.50.20110403-cvs.
6949
d6e00af6
JB
69502011-04-03 Joel Brobecker <brobecker@adacore.com>
6951
6952 * NEWS: Create a new section for the next release branch.
6953 Rename the section of the current branch, now that it has
6954 been cut.
6955
2b9e5ea6
UW
69562011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6957
6958 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6959 for "fpscr" in target description.
6960
0cf03b49
JK
69612011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6962
6963 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6964 initialize it. Delay HASH initialization. Strip the part after open
6965 parenthesis for languages with qualifiers. Call do_cleanups.
6966
5d901a73
TT
69672011-04-01 Tom Tromey <tromey@redhat.com>
6968
6969 * utils.c (report_command_stats): Don't print `-' for negative
6970 number.
6971
b0dd7688
JB
69722011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6973
6974 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6975 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6976 typedefs.
6977
956a9fb9
JB
69782011-04-01 Joel Brobecker <brobecker@adacore.com>
6979
6980 * breakpoint.h (bpdisp_text): Add declaration.
6981 * breakpoint.c (bpdisp_text): Make non-static.
6982 * ada-lang.c: #include "mi/mi-common.h".
6983 (print_it_exception): Rewrite to improve GDB/MI output.
6984
3352110b
PA
69852011-04-01 Pedro Alves <pedro@codesourcery.com>
6986
6987 * arm-tdep.h (struct address_space): Add forward declaration.
6988
18819fa6
UW
69892011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6990
6991 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6992 * arm-tdep.c (arm_override_mode): New global.
6993 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6994 execution mode heuristics.
6995 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6996 second single-step breakpoint if needed, using
6997 arm_insert_single_step_breakpoint.
6998 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6999 ARM execution mode, do not call thumb_get_next_pc_raw.
7000 (arm_get_next_pc): Encode execution mode in return value. Call
7001 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7002 (arm_insert_single_step_breakpoint): New function.
7003 (arm_software_single_step): Call it.
7004 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7005 argument to return execution mode of sigreturn target.
7006 (arm_linux_syscall_next_pc): Use it.
7007 (arm_linux_copy_svc): Update call.
7008 (arm_linux_software_single_step): Call
7009 arm_insert_single_step_breakpoint.
7010
a6e293d1
JK
70112011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7012
7013 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7014 the comment.
7015
a4c8e806
TT
70162011-03-31 Tom Tromey <tromey@redhat.com>
7017
7018 * varobj.c (update_dynamic_varobj_children): Properly handle
7019 errors from iterator.
7020
df5c6c50
JK
70212011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7022
7023 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7024 struct linkage name twice.
7025
1dae3efc
TT
70262011-03-31 Tom Tromey <tromey@redhat.com>
7027
7028 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7029 missing ">" to message.
7030
f4f7ab05
TT
70312011-03-31 Tom Tromey <tromey@redhat.com>
7032
7033 * varobj.c (instantiate_pretty_printer): Remove duplicate
7034 'return'.
7035
fcf250e2
UW
70362011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7037
7038 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7039 if neither saved value nor register available (e.g. signal frame).
7040
ee6436e3
TJB
70412011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7042
7043 * macroexp.c (expand): Avoid uninitialized variable
7044 compiler warning.
7045
423f41a5
TJB
70462011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7047
7048 * breakpoint.c (break_range_command): Fix typo in comment.
7049
f1310107
TJB
70502011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7051 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7052
7053 Implement support for PowerPC BookE ranged breakpoints.
7054 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7055 * breakpoint.h (struct bp_target_info) <length>: New member
7056 variable.
7057 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7058 instead of struct breakpoint as argument, and also add ASPACE
7059 and BP_ADDR arguments. Update all callers.
7060 (struct breakpoint_ops) <print_one_detail>: New method.
7061 (struct breakpoint) <addr_string_range_end>: New member variable.
7062 * breakpoint.c (breakpoint_location_address_match): Add function
7063 prototype.
7064 (insert_bp_location): Set bl->target_info.length.
7065 (breakpoint_here_p): Call breakpoint_location_address_match.
7066 (moribund_breakpoint_here_p): Likewise.
7067 (regular_breakpoint_inserted_here_p): Likewise.
7068 (breakpoint_thread_match): Likewise.
7069 (bpstat_stop_status): Likewise.
7070 (bpstat_check_location): Move call to
7071 breakpoint_ops.breakpoint_hit to the top.
7072 (print_one_breakpoint_location): Call
7073 breakpoint_ops.print_one_detail if available.
7074 (breakpoint_address_match_range): New function.
7075 (breakpoint_location_address_match): Likewise.
7076 (breakpoint_locations_match): Compare the length field of the
7077 locations too.
7078 (hw_breakpoint_used_count): Count resources used by all locations
7079 in a breakpoint, and use breakpoint_ops.resources_needed if
7080 available.
7081 (breakpoint_hit_ranged_breakpoint): New function.
7082 (resources_needed_ranged_breakpoint): Likewise.
7083 (print_it_ranged_breakpoint): Likewise.
7084 (print_one_ranged_breakpoint): Likewise.
7085 (print_one_detail_ranged_breakpoint): Likewise.
7086 (print_mention_ranged_breakpoint): Likewise.
7087 (print_recreate_ranged_breakpoint): Likewise.
7088 (ranged_breakpoint_ops): New structure.
7089 (find_breakpoint_range_end): New function.
7090 (break_range_command): Likewise.
7091 (delete_breakpoint): Free addr_string_range_end.
7092 (update_breakpoint_locations): Add SALS_END argument. Update
7093 all callers. Calculate breakpoint length if a non-zero SALS_END
7094 is given. Call breakpoint_locations_match instead of
7095 breakpoint_address_match.
7096 (reset_breakpoint): Find SaL of the end of the range if B is a
7097 ranged breakpoint.
7098 (_initialize_breakpoint): Register break-range command.
7099 * defs.h (print_core_address): Add function prototype.
7100 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7101 function.
7102 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7103 (ppc_linux_remove_hw_breakpoint): Likewise.
7104 (_initialize_ppc_linux_nat): Initialize
7105 to_ranged_break_num_registers.
7106 * target.c (update_current_target): Add comment about
7107 to_ranged_break_num_registers.
7108 (target_ranged_break_num_registers): New function.
7109 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7110 New method.
7111 (target_ranged_break_num_registers): Add function prototype.
7112 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7113 * utils.c (print_core_address): ... here.
7114
02d20e4a
UW
71152011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7116
7117 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7118 variable compiler warning.
7119
ef23e705
TJB
71202011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7121
7122 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7123 code from here ...
7124 (re_set_breakpoint): ... to here ...
7125 (addr_string_to_sals): ... and here.
7126
311e6ab3
PM
71272011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7128
7129 * Makefile.in (SFILES): Add missing C sources.
7130 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7131 Add missing headers.
7132
acd1d99c
MF
71332011-03-29 Mike Frysinger <vapier@gentoo.org>
7134
7135 * .gitignore: New file.
7136
66ee2731
MF
71372011-03-29 Mike Frysinger <vapier@gentoo.org>
7138
7139 * NEWS: Mention new cfi device simulation.
7140
53832f31
TT
71412011-03-29 Tom Tromey <tromey@redhat.com>
7142
7143 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7144 otherwise anonymous types.
7145 (dwarf2_name): Likewise.
7146 * valops.c (value_struct_elt_for_reference): Refine artificial
7147 type logic. Call error if j==-1.
7148
09b58708
JK
71492011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7150
7151 Fix false GCC warning.
7152 * infcall.c (find_function_addr): Initialize funaddr.
7153
6023c606
PM
71542011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7155
7156 Fix mingw compilation with --enable-targets=all.
7157 * remote-mips.c (gdb_usleep.h): Include header.
7158 (mips_enter_debug): Use gdb_usleep instead of sleep.
7159
0e30163f
JK
71602011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7161
7162 Support resolution of STT_GNU_IFUNC via breakpoints.
7163 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7164 bp_gnu_ifunc_resolver_return.
7165 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7166 the loop. Support bp_gnu_ifunc_resolver and
7167 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7168 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7169 breakpoints.
7170 (bptype_string, print_one_breakpoint_location): Support
7171 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7172 (user_settable_breakpoint): Return true also for
7173 bp_gnu_ifunc_resolver.
7174 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7175 bp_gnu_ifunc_resolver_return.
7176 (set_breakpoint_location_function): New parameter explicit_loc,
7177 describe it. Call find_pc_partial_function_gnu_ifunc with new
7178 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7179 EXPLICIT_LOC is not set.
7180 (set_raw_breakpoint): Set EXPLICIT_LOC for
7181 set_breakpoint_location_function.
7182 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7183 set_breakpoint_location_function.
7184 (mention): Support bp_gnu_ifunc_resolver and
7185 bp_gnu_ifunc_resolver_return.
7186 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7187 set_breakpoint_location_function.
7188 (update_breakpoint_locations): Remove static.
7189 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7190 bp_gnu_ifunc_resolver_return.
7191 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7192 bp_gnu_ifunc_resolver_return.
7193 (update_breakpoint_locations): New declaration.
7194 * elfread.c: Include gdbthread.h and regcache.h.
7195 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7196 functions.
7197 (elf_gnu_ifunc_fns): Install them.
7198 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7199 (stub_gnu_ifunc_resolver_return_stop): New functions.
7200 (stub_gnu_ifunc_fns): Install them.
7201 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7202 and gnu_ifunc_resolver_return_stop.
7203 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7204
07be84bf
JK
72052011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7206
7207 STT_GNU_IFUNC reader implementation.
7208 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7209 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7210 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7211 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7212 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7213 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7214 (elf_gnu_ifunc_resolve_addr): New.
7215 (elf_symfile_read): Call elf_rel_plt_read.
7216 (elf_gnu_ifunc_fns): New.
7217 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7218 Install elf_gnu_ifunc_fns.
7219 * infcall.c (find_function_return_type): New function.
7220 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7221 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7222 (stub_gnu_ifunc_resolve_name): New functions.
7223 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7224 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7225 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7226
300f8e10
JK
72272011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 Code cleanup for later STT_GNU_IFUNC support.
7230 * infcall.c (find_function_addr): Remove variable code, use explicit
7231 dereferences for it. Move VALUE_TYPE initialization later.
7232
11c81455
JK
72332011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7234
7235 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7236 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7237 (clear_pc_function_cache): Clear it.
7238 (find_pc_partial_function): Rename to ...
7239 (find_pc_partial_function_gnu_ifunc): ... this function. New
7240 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7241 (find_pc_partial_function): New wrapper for this function.
7242 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7243
0875794a
JK
72442011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7245
7246 GDB internal type support for STT_GNU_IFUNC.
7247 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7248 (elf_symtab_read): Set mst_text_gnu_ifunc for
7249 BSF_GNU_INDIRECT_FUNCTION.
7250 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7251 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7252 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7253 nodebug_got_plt_symbol.
7254 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7255 (TYPE_GNU_IFUNC): New.
7256 (struct main_type): New field flag_gnu_ifunc.
7257 (struct builtin_type): New field builtin_func_func.
7258 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7259 nodebug_got_plt_symbol.
7260 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7261 (in_gnu_ifunc_stub): New.
7262 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7263 mst_text_gnu_ifunc.
7264 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7265 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7266 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7267 in_gnu_ifunc_stub.
7268 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7269 * symtab.c (search_symbols): Likewise.
7270 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7271 and mst_slot_got_plt.
7272 (in_gnu_ifunc_stub): New declaration.
7273
d0fb5eae
JK
72742011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 Support a ring of related breakpoints.
7277 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7278 other functions, add gdb_assert.
7279 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7280 watchpoint_del_at_next_stop.
7281 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7282 (bpstat_stop_status): Handle ring in related_breakpoint.
7283 (set_raw_breakpoint_without_location): Initialize ring in
7284 related_breakpoint.
7285 (delete_breakpoint): Handle ring in related_breakpoint, use
7286 watchpoint_del_at_next_stop.
7287 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7288
9cded63f
TT
72892011-03-28 Tom Tromey <tromey@redhat.com>
7290
7291 PR symtab/12441:
7292 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7293 with `language_minimal'.
7294
467d42c4
UW
72952011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7296
7297 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7298 instead of checking for STT_ARM_TFUNC symbol type.
7299
62853458
TT
73002011-03-25 Tom Tromey <tromey@redhat.com>
7301
7302 * linespec.c (symbol_found): Restore line-based result for
7303 non-LOC_LABEL symbols.
7304
a7417d46
KT
73052011-03-25 Kai Tietz <ktietz@redhat.com>
7306
7307 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7308 instead of strcmp for comparison.
7309 (tui_source_is_displayed): Likewise.
7310 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7311
55f1336d
TT
73122011-03-24 Mark Wielaard <mjw@redhat.com>
7313
f33edef8
PP
7314 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7315 complaint.
7316 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7317 (find_partial_die_in_comp_unit): Likewise in comment.
7318 (read_attribute_value): Likewise.
7319 (lookup_die_type): Likewise.
7320 (dwarf_form_name): Likewise.
7321 (dump_die_shallow): Likewise.
7322 (follow_die_ref_or_sig): Likewise.
55f1336d 7323
9ef07c8c
TT
73242011-03-24 Tom Tromey <tromey@redhat.com>
7325
7326 PR breakpoints/11816:
7327 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7328 (decode_compound): Update.
7329 (find_function_symbol): New function.
7330 (decode_dollar): Update.
7331 (decode_label): Add 'function_symbol' parameter. Handle
7332 function-relative labels.
7333 (decode_variable): Update.
7334 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7335 not its line. Set `special_display' and canonical name for
7336 labels.
7337
56435ebe
TT
73382011-03-24 Tom Tromey <tromey@redhat.com>
7339
7340 * linespec.h (struct linespec_result) <special_display>: New
7341 field.
7342 * breakpoint.h (struct breakpoint) <display_canonical>: New
7343 field.
7344 * breakpoint.c (print_breakpoint_location): Respect
7345 display_canonical.
7346 (create_breakpoint_sal): Add 'display_canonical' parameter.
7347 (create_breakpoints_sal): Update.
7348 (create_breakpoint): Update.
7349
7efd8fc2
TT
73502011-03-24 Tom Tromey <tromey@redhat.com>
7351
7352 * symtab.c (decode_line_spec): Update.
7353 * linespec.c (build_canonical_line_spec): Change type of
7354 'canonical'.
7355 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7356 (find_method, decode_all_digits, decode_dollar, decode_label)
7357 (symbol_found): Likewise.
7358 (init_linespec_result): New function.
7359 * breakpoint.c (struct captured_parse_breakpoint_args)
7360 <canonical_p>: New field, replaces addr_string_p.
7361 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7362 'addr_string'.
7363 (parse_breakpoint_sals): Likewise.
7364 (do_captured_parse_breakpoint): Update.
7365 (create_breakpoint): Use struct linespec_result.
7366 (until_break_command): Update.
7367 (breakpoint_re_set_one): Update.
7368 (decode_line_spec_1): Update.
7369 * linespec.h (struct linespec_result): New.
7370 (init_linespec_result): Declare.
7371
788c8b10
PA
73722011-03-23 Pedro Alves <pedro@codesourcery.com>
7373
7374 * regcache.c (regcache_raw_read): If the target didn't supply a
7375 given raw register, mark it as unavailable.
7376
0ba1096a
KT
73772011-03-23 Kai Tietz <ktietz@redhat.com>
7378
7379 * breakpoint.c (clear_command): Use filename_cmp
7380 instead of strcmp for comparison.
7381 * buildsym.c (watch_main_source_file_lossage): Likewise.
7382 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7383 checking just for slash.
7384 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7385 strrchr and filename_cmp instead of strcmp for filenames.
7386 (add_old_header_file): Use filename_cmp
7387 instead of strcmp for comparison.
7388 * exec.c (exec_set_section_address): Likewise.
7389 * macrotab.c (macro_lookup_inclusion): Likewise.
7390 (macro_lookup_inclusion): Likewise.
7391 * elfread.c (_initialize_elfread): Likewise.
7392 (elfstab_offset_sections): Likewise.
7393 (elfstab_offset_sections): Use lbasename instead of
7394 strrchr.
7395 * mdebugread.c (parse_partial_symbols): Likewise.
7396 (arse_partial_symbols): Use filename_(n)cmp instead of
7397 str(n)cmp for comparison.
7398 * minsyms.c (lookup_minimal_symbol): Likewise.
7399 * psymtab.c (read_psymtabs_with_filename): Likewise.
7400 * solib.c (solib_read_symbols): Likewise.
7401 (reload_shared_libraries_1): Likewise.
7402 * symmisc.c (maintenance_print_symbols): Likewise.
7403 * symfile.c (separate_debug_file_exists): Likewise.
7404 (reread_symbols): Likewise.
7405 (find_separate_debug_file_by_debuglink): Likewise.
7406 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7407 * source.c (add_path): Likewise.
7408 * symtab.c (filename_seen): Likewise.
7409 (file_matches): Likewise.
7410 (print_symbol_info): Likewise.
7411 (maybe_add_partial_symtab_filename): Likewise.
7412 (make_source_files_completion_list): Likewise.
7413 * xml-syscall.c (init_sysinfo): Likewise.
7414 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7415 IS_DIR_SEPARATOR for checking for trailing path separator.
7416
dd90784c
JK
74172011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7418
7419 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7420 label abort_expression.
7421 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7422 DWARF_VALUE_OPTIMIZED_OUT.
7423
3167638f
JK
74242011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7425
7426 Code cleanup.
7427 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7428 to linkage_name. Invert its value. Update the function comment.
7429 (c_type_print_varspec_suffix): Invert it at the caller.
7430 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7431
ce406537
PA
74322011-03-22 Pedro Alves <pedro@codesourcery.com>
7433
7434 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7435 errors when reading the `stop_pc'.
7436 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7437 get_frame_pc.
7438
da5d4055
PM
74392011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7440
7441 * NEWS: Document gdb.Write stream keyword.
7442
29e0eb9c
JK
74432011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7444
7445 Revert:
7446 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7447 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7448 (dwarf2_add_field): Fix new_field->accessibility for
7449 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7450
05775840
PM
74512011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7452
f33edef8 7453 PR python/12183
05775840
PM
7454
7455 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7456 other error classes. Do not print stack trace.
7457
a0cb7835
JK
74582011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7461 (dwarf2_add_field): Fix new_field->accessibility for
7462 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7463
d19f7eee
UW
74642011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7465
7466 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7467 encountering a load via a non-SP register.
7468
4a2fbb50
UW
74692011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7470
7471 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7472 field in returned unwinder.
7473
3489610d
JB
74742012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7475
7476 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7477
8c1a34e7
JB
74782012-03-21 Joel Brobecker <brobecker@adacore.com>
7479
7480 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7481 of xmalloc.
7482
8fbca658
PA
74832012-03-18 Pedro Alves <pedro@codesourcery.com>
7484
7485 * frame.c (frame_unwind_register): Throw an error if unwinding the
7486 register failed.
7487 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7488 an unwind stop reason.
7489 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7490 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7491 UNWIND_UNAVAILABLE>: New.
7492 * inline-frame.c (inline_frame_unwind): Install
7493 default_frame_unwind_stop_reason.
7494 * frame-unwind.c: Include "exceptions.h".
7495 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7496 (default_frame_unwind_stop_reason): New.
7497 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7498 (default_frame_unwind_stop_reason): Declare.
7499 (struct frame_unwind) <stop_reason>: New function pointer.
7500
7501 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7502 * dwarf2-frame.c: Include exceptions.h.
7503 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7504 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7505 computing the CFA. If such an error was thrown, set
7506 unavailable_retaddr.
7507 (dwarf2_frame_unwind_stop_reason): New.
7508 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7509 unavailable.
7510 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7511 (dwarf2_signal_frame_unwind): Ditto.
7512
7513 * amd64-tdep.c: Include "exceptions.h".
7514 (struct amd64_frame_cache): New field "base_p".
7515 (amd64_init_frame_cache): Clear it.
7516 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7517 Avoid reading registers with functions that throw if the register
7518 is not necessary to compute the frame base.
7519 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7520 swallowing NOT_AVAILABLE_ERROR.
7521 (amd64_frame_unwind_stop_reason): New.
7522 (amd64_frame_this_id): Don't build a frame id if the frame base
7523 was unavailable.
7524 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7525 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7526 base_p if the frame base was computable.
7527 (amd64_sigtramp_frame_unwind_stop_reason): New.
7528 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7529 frame base was unavailable.
7530 (amd64_sigtramp_frame_unwind): Install
7531 amd64_sigtramp_frame_unwind_stop_reason.
7532 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7533 base_p if the frame base was computable.
7534 (amd64_epilogue_frame_unwind_stop_reason): New.
7535 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7536 frame base was unavailable.
7537 (amd64_epilogue_frame_unwind): Install
7538 amd64_epilogue_frame_unwind_stop_reason.
7539 * i386-tdep.c: Include "exceptions.h".
7540 (struct i386_frame_cache): New field "base_p".
7541 (i386_init_frame_cache): Clear it.
7542 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7543 Avoid reading registers with functions that throw if the register
7544 is not necessary to compute the frame base.
7545 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7546 swallowing NOT_AVAILABLE_ERROR.
7547 (i386_frame_unwind_stop_reason): New.
7548 (i386_frame_this_id): Don't build a frame id if the frame base was
7549 unavailable.
7550 (i386_frame_prev_register): Handle unavailable SP.
7551 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7552 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7553 base_p if the frame base was computable.
7554 (i386_epilogue_frame_unwind_stop_reason): New.
7555 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7556 base was unavailable.
7557 (i386_epilogue_frame_unwind): Install
7558 i386_epilogue_frame_unwind_stop_reason.
7559 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7560 base_p if the frame base was computable.
7561 (i386_sigtramp_frame_unwind_stop_reason): New.
7562 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7563 base was unavailable.
7564 (i386_sigtramp_frame_unwind): Install
7565 i386_sigtramp_frame_unwind_stop_reason.
7566 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7567 type's size, not the register's.
7568 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7569
7570 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7571 default_frame_unwind_stop_reason.
7572 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7573 (alpha_heuristic_frame_unwind): Ditto.
7574 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7575 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7576 * avr-tdep.c (avr_frame_unwind): Ditto.
7577 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7578 Ditto.
7579 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7580 * frv-tdep.c (frv_frame_unwind): Ditto.
7581 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7582 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7583 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7584 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7585 (hppa_stub_frame_unwind): Ditto.
7586 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7587 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7588 (ia64_libunwind_frame_unwind)
7589 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7590 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7591 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7592 * m32c-tdep.c (m32c_unwind): Ditto.
7593 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7594 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7595 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7596 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7597 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7598 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7599 * mep-tdep.c (mep_frame_unwind): Ditto.
7600 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7601 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7602 (mips_stub_frame_unwind): Ditto.
7603 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7604 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7605 * mt-tdep.c (mt_frame_unwind): Ditto.
7606 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7607 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7608 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7609 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7610 (s390_sigtramp_frame_unwind): Ditto.
7611 * score-tdep.c (score_prologue_unwind): Ditto.
7612 * sh-tdep.c (sh_frame_unwind): Ditto.
7613 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7614 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7615 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7616 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7617 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7618 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7619 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7620 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7621 (sparc64obsd_trapframe_unwind): Ditto.
7622 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7623 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7624 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7625 * v850-tdep.c (v850_frame_unwind): Ditto.
7626 * vax-tdep.c (vax_frame_unwind): Ditto.
7627 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7628 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7629 * xtensa-tdep.c (xtensa_unwind): Ditto.
7630
f23d1b92
PA
76312011-03-18 Pedro Alves <pedro@codesourcery.com>
7632
7633 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7634 there's always a frame. Use get_frame_pc_if_available instead of
7635 get_frame_pc, and if there's no PC available, don't look up a
7636 symtab.
7637
1d4f5741
PA
76382011-03-18 Pedro Alves <pedro@codesourcery.com>
7639
7640 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7641 unavailable PC.
7642
dba09041
PA
76432011-03-18 Pedro Alves <pedro@codesourcery.com>
7644
7645 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7646 gracefully.
7647
9a26e44c
PA
76482011-03-18 Pedro Alves <pedro@codesourcery.com>
7649
7650 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7651 * frame.c (frame_unwind_caller_pc_if_available): New.
7652 * stack.c (frame_info): Handle unavailable PC.
7653
76542011-03-18 Pedro Alves <pedro@codesourcery.com>
7655
7656 * frame.c (frame_unwind_pc): Rename to ...
7657 (frame_unwind_pc_if_available): ... this. New `pc' output
7658 parameter. Change return type to int. Gracefully handle
7659 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7660 happened, or 1 otherwise.
7661 (frame_unwind_pc): Reimplement on top of
7662 frame_unwind_pc_if_available.
7663 (get_frame_func): Rename to ...
7664 (get_frame_func_if_available): New `pc' output parameter. Change
7665 return type to int. Gracefully handle the PC not being available.
7666 (get_frame_func): Reimplement on top of
7667 get_frame_func_if_available.
7668 (select_frame): Handle the PC being unavailable.
7669 (get_prev_frame): Handle the PC being unavailable.
7670 (get_frame_pc_if_available): New.
7671 (get_frame_address_in_block_if_available): New.
7672 (find_frame_sal): Handle the frame PC not being available.
7673 * frame.h (get_frame_pc_if_available): Declare.
7674 (get_frame_address_in_block_if_available): Declare.
7675 (get_frame_func_if_available): Declare.
7676 * stack.c (print_frame_info): Handle the PC being unavailable.
7677 (find_frame_funname): Ditto.
7678 (print_frame): Handle the PC being unavailable.
7679 (get_frame_language): Ditto.
7680 * blockframe.c (get_frame_block): Ditto.
7681 * macroscope.c (default_macro_scope): Ditto.
7682 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7683
76842011-03-18 Pedro Alves <pedro@codesourcery.com>
7685
7686 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7687 NOT_AVAILABLE_ERROR when evaluating the location expression.
7688
76892011-03-18 Pedro Alves <pedro@codesourcery.com>
7690
7691 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7692 returning that the register piece is unavailable/optimized out.
7693 (write_pieced_value): Handle get_frame_register_bytes returning
7694 that the register piece is unavailable/optimized out when doing a
7695 read-modify write of a bitfield.
7696 * findvar.c (value_from_register): Handle get_frame_register_bytes
7697 returning that the register piece is unavailable/optimized out.
7698 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7699 and `unavailablep'. Throw error on bad debug info. Use
7700 frame_register instead of frame_register_read, to fill in the new
7701 arguments.
7702 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7703 and `unavailablep'.
7704 * valops.c: (value_assign): Adjust, and handle
7705 get_frame_register_bytes failing.
7706 * spu-tdep.c: Include exceptions.h.
7707 (spu_software_single_step): Adjust, and handle
7708 get_frame_register_bytes failing.
7709 (spu_get_longjmp_target): Ditto.
7710 * gdbarch.sh (register_to_value): Change to return int. New
7711 parameters `optimizedp' and `unavailablep'.
7712 * gdbarch.h, gdbarch.c: Regenerate.
7713 * i386-tdep.c (i386_register_to_value): Adjust to new
7714 gdbarch_register_to_value interface.
7715 * i387-tdep.c (i387_register_to_value): Ditto.
7716 * i387-tdep.h (i387_register_to_value): Ditto.
7717 * alpha-tdep.c (alpha_register_to_value): Ditto.
7718 * ia64-tdep.c (ia64_register_to_value): Ditto.
7719 * m68k-tdep.c (m68k_register_to_value): Ditto.
7720 * mips-tdep.c (mips_register_to_value): Ditto.
7721 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7722
0fdb4f18
PA
77232011-03-18 Pedro Alves <pedro@codesourcery.com>
7724
7725 * findvar.c (value_of_register): Mark the value as unavailable, if
7726 the register is unavailable.
7727 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7728 (frame_register): New `unavailablep' parameter.
7729 (frame_register_read): Update comment.
7730 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7731 Set it if the register is unavailable. If the register is
7732 unavailable, clear the output buffer.
7733 (frame_register): New `unavailablep' parameter. Pass it down.
7734 (frame_unwind_register): Adjust.
7735 (put_frame_register): Adjust.
7736 (frame_register_read): Adjust. Also return false if the register
7737 is not available.
7738 (frame_register_unwind_location): Adjust.
7739 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7740 is unavailable, mark the value accordingly.
7741 * stack.c (frame_info): Handle unavailable registers.
7742
e69aa73e
PA
77432011-03-18 Pedro Alves <pedro@codesourcery.com>
7744
7745 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7746 simplify, using regcache_cooked_read.
7747
05d1431c
PA
77482011-03-18 Pedro Alves <pedro@codesourcery.com>
7749
7750 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7751 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7752 (regcache_raw_read_unsigned, regcache_raw_read_part)
7753 (regcache_cooked_read, regcache_cooked_read_signed)
7754 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7755 (regcache_cooked_read_ftype): Change return to enum
7756 register_status.
7757 * regcache.c: Include exceptions.h
7758 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7759 (do_cooked_read): Change return to enum register_status. Always
7760 forward to regcache_cooked_read.
7761 (regcache_raw_read): Change return to enum register_status. If
7762 the register is not REG_VALID, memset the buffer. Return the
7763 register's status.
7764 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7765 return the register's status.
7766 (regcache_raw_read_unsigned): Ditto.
7767 (regcache_cooked_read): Change return to enum register_status.
7768 Assert that with read-only regcaches, the register's status must
7769 be known. If the regcache is read-only, and the register is not
7770 REG_VALID, memset the buffer. Return the register's status.
7771 (regcache_cooked_read_signed): Change return to enum
7772 register_status. Handle non-REG_VALID registers and return the
7773 register's status.
7774 (regcache_cooked_read_unsigned): Change return to enum
7775 register_status. Handle non-REG_VALID registers and return the
7776 register's status.
7777 (regcache_xfer_part, regcache_raw_read_part)
7778 (regcache_cooked_read_part): Change return to enum
7779 register_status. Return the register's status.
7780 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7781 unavailable.
7782 (regcache_dump): Handle unavailable cooked registers.
7783 * frame.c (do_frame_register_read): Adjust interface to match
7784 regcache_cooked_read_ftype.
7785 * gdbarch.sh (pseudo_register_read): Change return to enum
7786 register_status.
7787 * gdbarch.h, gdbarch.c: Regenerate.
7788
7789 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7790 register_status.
7791 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7792 register_status. If reading a raw register indicates the raw
7793 register is not valid, return the raw register's status,
7794 otherwise, return REG_VALID.
7795 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7796 register_status. Handle non-REG_VALID raw registers and return
7797 the register's status.
7798 * arm-tdep.c (arm_neon_quad_read)
7799 (arm_pseudo_read): Change return to enum register_status. Handle
7800 non-REG_VALID raw registers and return the register's status.
7801 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7802 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7803 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7804 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7805 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7806 register_status.
7807 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7808 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7809 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7810 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7811 (m32c_pseudo_register_read): Change return to enum
7812 register_status. Adjust.
7813 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7814 enum register_status. Return the register's status.
7815 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7816 register_status. Return the register's status.
7817 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7818 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7819 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7820 * rs6000-tdep.c (move_ev_register_func): New typedef.
7821 (e500_move_ev_register): Use it. Change return to enum
7822 register_status. Return the register's status.
7823 (do_regcache_raw_read): New function.
7824 (do_regcache_raw_write): New function.
7825 (e500_pseudo_register_read): Change return to enum
7826 register_status. Return the register's status. Use
7827 do_regcache_raw_read.
7828 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7829 (dfp_pseudo_register_read): Change return to enum register_status.
7830 Return the register's status.
7831 (vsx_pseudo_register_read): Ditto.
7832 (efpr_pseudo_register_read): Ditto.
7833 (rs6000_pseudo_register_read): Ditto.
7834 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7835 register_status. Return the register's status.
7836 * sh64-tdep.c (pseudo_register_read_portions): New function.
7837 (sh64_pseudo_register_read): Change return to enum
7838 register_status. Use pseudo_register_read_portions. Return the
7839 register's status.
7840 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7841 register_status. Return the register's status.
7842 * sh-tdep.c (pseudo_register_read_portions): New function.
7843 (sh_pseudo_register_read): Change return to enum register_status.
7844 Use pseudo_register_read_portions. Return the register's status.
7845 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7846 enum register_status. Return the register's status.
7847 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7848 * spu-tdep.c (spu_pseudo_register_read_spu)
7849 (spu_pseudo_register_read): Ditto.
7850 * xtensa-tdep.c (xtensa_register_read_masked)
7851 (xtensa_pseudo_register_read): Ditto.
7852 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7853
e10abd8f
PM
78542011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7855
7856 * python/py-value.c (valpy_getitem): Fix formatting of error function
7857 call.
7858
7ea6d463
PM
78592011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7860
7861 ARI fixes: Add missing internationalization markups throughout
7862 C source files.
7863 * darwin-nat-info.c: Ditto.
7864 * record.c: Ditto.
7865 * remote.c: Ditto.
7866 * mi/mi-main.c: Ditto.
7867
001083c6
PM
78682011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7869
7870 ARI fixes: Add missing internationalization markups throughout
7871 yacc files.
7872 * c-exp.y: Ditto.
7873 * cp-name-parser.y: Ditto.
7874 * f-exp.y: Ditto.
7875 * m2-exp.y: Ditto.
7876 * objc-exp.y: Ditto.
7877 * p-exp.y: Ditto.
7878
4f1cdeec
PM
78792011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7880
7881 ARI fixes: Messages should have no trailing new lines.
7882 * darwin-nat.c (mach_check_error): Remove trailing new line from
7883 warning function call message.
7884 * record.c (bfdcore_read): Idem for error call.
7885
28e698f1
PM
78862011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7887
7888 * common/signals.c (target_signal_from_host): Add _ markup to error
7889 function call message.
7890 (target_signal_to_host): Add _ markup and remove trailing new line
7891 from warning call message.
7892 (target_signal_from_command): Add _ markup to error function call
7893 message.
7894
99c3dc11
PM
78952011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7896
f33edef8 7897 PR python/12149
99c3dc11
PM
7898
7899 * python/python.c (gdbpy_write): Accept a stream argument and
7900 operate to the appropriate stream.
7901 (gdbpy_flush): Likewise.
7902 (_initialize_python): Add stream constants.
7903 (finish_python_initialization): Add GdbOutputErrorFile class.
7904
c20800be
KY
79052011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7906
7907 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7908
f4a1794a
KY
79092011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7910
7911 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7912 to store_signed_integer. Add debug message when relocating CALL
7913 instructions. Fix formatting of debug message.
7914 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7915
d4862372
JB
79162011-03-17 Joel Brobecker <brobecker@gnat.com>
7917
7918 * target.h (struct target_ops): Remove to_lookup_symbol field.
7919 (target_lookup_symbol): Delete macro.
7920 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7921 (update_current_target, setup_target_debug): Remove handling
7922 of to_lookup_symbol target_ops field.
7923 * ada-tasks.c (get_known_tasks_addr): Remove use of
7924 target_lookup_symbol.
7925 * coffread.c (coff_symtab_read): Likewise.
7926 * dbxread.c (read_dbx_symtab): Ditto.
7927
d645e32e
JB
79282011-03-17 Joel Brobecker <brobecker@gnat.com>
7929
7930 PR gdb/12116:
7931 * configure.ac: Add getthrds declaration check.
7932 * configure, config.in: Regenerate.
7933 * aix-thread.c (getthrds): Declare only if not already declared
7934 in procinfo.h. More declaration out of get_signaled_thread to
7935 global scope.
7936
29703da4
PM
79372011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7938
7939 * python/py-symtab.c: Populate symtab_object_methods,
7940 sal_object_methods.
7941 (stpy_is_valid): New function.
7942 (salpy_is_valid): Ditto.
7943 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7944 (sympy_is_valid): New function.
7945 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7946 (objfpy_is_valid): New function.
7947 * python/py-inferior.c: Populate inferior_object_methods.
7948 (infpy_is_valid): New function.
7949 * python/py-infthread.c: Populate thread_object_methods.
7950 (thpy_is_valid): New function.
7951 * python/py-block.c: Declare block_object_methods. Populate. Declare
7952 block_iterator_object_methods. Populate.
7953 (blpy_is_valid): New function.
7954 (blpy_iter_is_valid): Ditto.
7955
c00f8484
KS
79562011-03-16 Keith Seitz <keiths@redhat.com>
7957
7958 * linespec.c (find_methods): Canonicalize NAME before looking
7959 up the symbol.
7960 (name_end): New function.
7961 (keep_name_info): New function.
7962 (decode_line_1): Use keep_name_info.
7963 (decode_compound): Likewise.
7964 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7965 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7966
7967 PR c++/12273
7968 * linespec.c (locate_first_half): Keep overload information, too.
7969 (decode_compound): Use a string to represent break characters
7970 to escape the loop.
7971 If P points to a break character, do not increment it.
7972 For C++ and Java, keep overload information and relevant keywords.
7973 If we cannot find a symbol, search the minimal symbols.
7974
7975 PR c++/11734
7976 * linespec.c (decode_compound): Rename SAVED_ARG to
7977 THE_REAL_SAVED_ARG.
7978 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7979 single-quotes.
7980 Pass a valid block to lookup_symbol.
7981 (lookup_prefix_sym): Likewise.
7982 (find_method): Construct search name based on SYM_CLASS instead
7983 of SAVED_ARG.
7984 * psymtab.c (lookup_partial_symbol): Add language parameter.
7985 (lookup_symbol_aux_psymtabs): Likewise.
7986 Don't assume that the psymtab we found was the right one. Search
7987 for the desired symbol in the symtab to be certain.
7988 (psymtab_search_name): New function.
7989 (lookup_partial_symbol): Use psymtab_search_name.
7990 Add language parameter.
7991 (read_symtabs_for_function): Add language parameter and pass to
7992 lookup_partial_symbol.
7993 (find_symbol_file_from_partial): Likewise.
7994
c91513d8
PP
79952011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7996
7997 PR gdb/12528
7998 * dwarf2read.c (noop_record_line): New function.
7999 (dwarf_decode_lines): Ignore line tables for GCd functions.
8000
b37520b6
PM
80012011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8002
8003 Fix ARI warnings about new lines at the end of messages, which
8004 are unneeded as there is a new line added at the end of the message
8005 automatically.
8006 * darwin-nat.c (darwin_stop_inferior): Ditto.
8007 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8008 * dfp.c (decimal_to_number): Ditto.
8009 * exec.c (print_section_info): Ditto.
8010 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8011 * osdata.c (get_osdata): Ditto.
8012 * record.c (bfdcore_write): Ditto.
8013 * remote-mips.c (mips_readchar): Ditto.
8014 * remote.c (read_ptid): Ditto.
8015 * ser-mingw.c (ser_windows_raw): Ditto.
8016 * tracepoint.c (add_local_symbols): Ditto.
8017 * windows-nat.c (fake_create_process): Ditto.
8018
b08ee6a2
TT
80192011-03-16 Tom Tromey <tromey@redhat.com>
8020
8021 * tracepoint.c (stop_tracing): Don't declare.
8022 * event-top.c (after_char_processing_hook): Add `(void)'.
8023
9a6f1302
PM
80242011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8025
8026 * NEWS: Add Parameter sub-classing description.
8027
7ceb86b1
KT
80282011-03-16 Kai Tietz <ktietz@redhat.com>
8029
8030 * MAINTAINERS: Update my e-mail address.
8031
efeff6cf
AT
80322011-03-15 Andreas Tobler <andreast@fgznet.ch>
8033
8034 * MAINTAINERS: Add myself for write after approval privileges.
8035
681c238c
MS
80362011-03-15 Michael Snyder <msnyder@vmware.com>
8037
f3df5b08
MS
8038 * frame.c (find_frame_sal): Assert sym is not null.
8039
13f6513c
MS
8040 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8041
50412521
MS
8042 * objc-lang.c (selectors_info): Check strchr for null result.
8043
681c238c
MS
8044 * stabsread.c (define_symbol): Guard against bad stabstring input.
8045
6ced1581
PM
80462011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8047
8048 Remove trailing spaces and tabulations from pascal language
8049 support sources.
8050 p-exp.y: Ditto.
8051 p-lang.c: Ditto.
8052 p-lang.h: Ditto.
8053 p-valprint.c: Ditto.
8054
9373cf26
JK
80552011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8056
8057 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8058 than LOW. Comment it.
8059 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8060 HIGHPC not strictly higher than LOWPC.
8061
9a1edae6
PM
80622011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8063
8064 Fix formatting of function declarations returning a pointer in
8065 previous commit.
8066 * varobj.c (varobj_add_child): Ditto.
8067 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8068 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8069
24e9cda0
UW
80702011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8071
8072 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8073 for the "generic" vector ABI used with GCC 4.3 and later.
8074 (ppc64_sysv_abi_return_value): Likewise.
8075
80762011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8077
8078 * infcall.c (call_function_by_hand): Function return value is
8079 always a non_lval, even when using struct_return.
8080
c9174737
PA
80812011-03-15 Pedro Alves <pedro@codesourcery.com>
8082
8083 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8084 (map_display_numbers): New.
8085 (do_delete_display): New.
8086 (undisplay_command): Use map_display_numbers.
8087 (do_enable_disable_display): New.
8088 (enable_disable_display_command): New function.
8089 (enable_display): Delete.
8090 (enable_display_command): New.
8091 (disable_display_command): Reimplement.
8092 (_initialize_printcmd): Adjust "enable display" command to use
8093 `enable_display_command' as callback.
8094
350c6c65
PM
80952011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8096
8097 * NEWS: Add Python breakpoint 'stop' operation.
8098
824446ad
PM
80992011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8100
8101 * NEWS: Delete duplicate entry. Fix typo.
8102
2021ad3a
PM
81032011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8104
8105 Fix ARI warning about function names in first column.
8106 Put prototype declaration on same line as return type.
8107 * objc-exp.y: Ditto.
8108 * p-exp.y: Ditto.
8109 * python/py-stopevent.h: Ditto.
8110 For long function names, split parameters to
8111 allow function name on same line as return type.
8112 * solib-pa64.c: Ditto.
8113 * varobj.c: Ditto.
8114 * varobj.h: Ditto.
8115 For long function declaration, use single line.
8116 * hppa-tdep.h: Ditto.
8117 * inferior.h: Ditto.
8118
7371cf6d
PM
81192011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8120
8121 * python/python.h: Declare gdbpy_should_stop and
8122 gdbpy_breakpoint_has_py_cond.
8123 * python/python.c: Add python.h to includes. Remove python.h from
8124 HAVE_PYTHON definition
8125 (gdbpy_should_stop): New dummy function.
8126 (gdbpy_breakpoint_has_py_cond): New dummy function.
8127 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8128 sub-classing capabilities.
8129 (gdbpy_should_stop): New function.
8130 (gdbpy_breakpoint_has_py_cond): New function.
8131 (local_setattro): New function.
8132 * breakpoint.c (condition_command): Add check for Python 'stop'
8133 operation.
8134 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8135 operation function as part of stop/continue tests.
8136
37b50a69
TT
81372011-03-14 Tom Tromey <tromey@redhat.com>
8138
8139 PR gdb/12576:
8140 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8141 (needs_frame_dwarf_call): Likewise.
8142
eeae04df
PM
81432011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8144
8145 Fix ARI warning about functions without parameters that do not
8146 use (void).
8147 * breakpoint.c (all_tracepoints): Replace () by (void).
8148 * f-exp.y (match_string_literal): Ditto.
8149 (yylex): Ditto.
8150 * m2-exp.y (yylex): Ditto.
8151 * mep-tdep.c (current_me_module): Ditto.
8152 (current_options): Ditto.
8153 (current_cop_data_bus_width): Ditto.
8154 (current_cr_names): Ditto.
8155 (current_cr_is_float): Ditto.
8156 (current_ccr_names): Ditto.
8157 * objc-exp.y (yylex): Ditto.
8158 * p-exp.y (yylex): Ditto.
8159 * remote.c (send_interrupt_sequence): Ditto.
8160 * tracepoint.c (current_trace_status): Ditto.
8161 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8162 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8163
6dc3565d
MS
81642011-03-11 Michael Snyder <msnyder@vmware.com>
8165
1427fe5e
MS
8166 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8167 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8168 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8169 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8170 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8171
60bc018f
MS
8172 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8173 (delete_async_event_handler): Ditto.
8174
f3be5b64
MS
8175 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8176
4c2d5724
MS
8177 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8178
6dc3565d
MS
8179 * top.c (set_verbose): Assert showcmd was found.
8180
4e6ca6d5
MG
81812011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8182
8183 * xtensa-tdep.c (warning_once): Correct style issues.
8184
815a83e4
YQ
81852011-03-11 Yao Qi <yao@codesourcery.com>
8186
8187 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8188
f2eb0bc8
AS
81892011-03-11 Andreas Schwab <schwab@redhat.com>
8190
8191 * common/aclocal.m4: Remove.
8192
b801de47
MG
81932011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8194
8195 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8196 (xtensa_write_register, xtensa_read_register): Likewise.
8197 (xtensa_hextochar): Removed.
8198 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8199
dbab50de
MG
82002011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8201
8202 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8203 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8204 (xtensa_alloc_frame_cache): Add initialization for new fields.
8205 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8206 (warning_once): New function.
8207 (xtensa_insn_kind): New item c0opc_and.
8208 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8209 (call0_track_op): Change arguments. New local variable litbase.
8210 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8211 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8212 in the prologue.
dbab50de 8213 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8214 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8215 Add the variety of updates to handle extended prologues, which now can
8216 conduct dynamic stack adjustments.
8217 (call0_frame_cache): Likewise.
8218 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8219 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8220
b2c04452
MS
82212011-03-10 Michael Snyder <msnyder@vmware.com>
8222
f8f67713
MS
8223 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8224 (cmd_qtframe): Ditto.
8225 (cmd_qtbuffer): Ditto.
8226 (cmd_bigqtbuffer): Ditto.
8227
197f0a60
TT
82282011-03-10 Tom Tromey <tromey@redhat.com>
8229
8230 * tracepoint.c (trace_actions_command): Update.
8231 * thread.c (thread_apply_command): Update.
8232 * reverse.c (delete_bookmark_command): Update.
8233 (bookmarks_info): Update.
8234 * printcmd.c (undisplay_command): Update.
8235 * memattr.c (mem_enable_command): Update.
8236 (mem_disable_command): Update.
8237 (mem_delete_command): Update.
8238 * inferior.c (detach_inferior_command): Update.
8239 (kill_inferior_command): Update.
8240 (remove_inferior_command): Update.
8241 * cli/cli-utils.h (struct get_number_or_range_state): New.
8242 (init_number_or_range): Declare.
8243 (get_number_or_range): Update.
8244 * cli/cli-utils.c (init_number_or_range): New function.
8245 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8246 static variables.
8247 (number_is_in_list): Update.
8248 * breakpoint.h (get_tracepoint_by_number): Update.
8249 * breakpoint.c (map_breakpoint_numbers): Update for change to
8250 get_number_or_range.
8251 (find_location_by_number): Use get_number, not
8252 get_number_or_range.
8253 (trace_pass_set_count): New function.
8254 (trace_pass_command): Update for change to get_number_or_range.
8255 Rework loop logic.
8256 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8257 'state' parameter.
8258
ecec24e6
PM
82592011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8260
8261 * python/py-param.c (add_setshow_generic): Add set/show callback
8262 parameters. Register Python object context.
8263 (get_show_value): New function.
8264 (get_set_value): New function.
8265 (call_doc_function): New function.
8266 (get_doc_string): Move behind get_show_value/get_set_value.
8267
6d6c6b1f
JK
82682011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8269
8270 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8271
68d6df83
MG
82722011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8273
dbab50de 8274 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8275 (xtensa_write_register): Likewise.
8276 (xtensa_hextochar): Add comment and update to match coding conventions.
8277 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8278 (execute_l32e, execute_s32e, execute_code): Update comments.
8279 (xtensa_exception_handler_t): Update to match coding conventions.
8280 (xtensa_insn_kind): Likewise.
8281
85c9d6a6
MS
82822011-03-09 Michael Snyder <msnyder@vmware.com>
8283
8284 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8285
91495617
PA
82862011-03-09 Pedro Alves <pedro@codesourcery.com>
8287
8288 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8289
eb8c0621
TT
82902011-03-09 Tom Tromey <tromey@redhat.com>
8291
8292 * thread.c (restore_selected_frame): Handle frame_level == -1.
8293 (make_cleanup_restore_current_thread): Use
8294 get_selected_frame_if_set.
8295 * frame.h (get_selected_frame_if_set): Declare.
8296 * frame.c (get_selected_frame_if_set): New function.
8297
9f37bbcc
PA
82982011-03-09 Pedro Alves <pedro@codesourcery.com>
8299
8300 * cli/cli-cmds.c (shell_escape): Use lbasename.
8301 * coffread.c (coff_start_symtab): Constify parameter.
8302 (complete_symtab): Constify `name' parameter.
8303 (coff_symtab_read): Constify `filestring' local.
8304 (coff_getfilename): Constify return and `result' local.
8305 Use lbasename.
8306 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8307 * linux-fork.c (info_checkpoints_command): Use lbasename.
8308 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8309 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8310 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8311 * procfs.c (procfs_make_note_section): Use lbasename.
8312 * tui/tui-io.c (printable_part): Constity return and parameter.
8313 Use lbasename.
8314 (print_filename): Constify parameters, and local `s'.
8315 (tui_rl_display_match_list): Constify local `temp'.
8316
f8de3c55
JK
83172011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8318
8319 Revert:
8320 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8321 Fix DWARF-3+ DW_AT_accessibility default assumption.
8322 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8323 cu->header.version >= 3.
8324
d9837b00
YQ
83252011-03-09 Yao Qi <yao@codesourcery.com>
8326
8327 * common/Makefile.in: Remove.
8328 * common/configure: Remove.
8329 * common/configure.ac: Remove.
8330
e637a4f5
YQ
83312011-03-09 Yao Qi <yao@codesourcery.com>
8332
8333 Revert:
8334 2011-02-11 Yao Qi <yao@codesourcery.com>
8335
8336 * common/Makefile.in: Add copyright header.
8337
8338 2011-02-11 Yao Qi <yao@codesourcery.com>
8339
8340 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8341 libcommon.a.
8342 * configure.ac: Add common to sub dir.
8343 * configure: Regenerate.
8344
f976a05d
MG
83452011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8346
8347 * xtensa-tdep.c (call0_ret): New function.
8348 (xtensa_skip_prologue): Speed up analysis.
8349
57041825
MG
83502011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8351
8352 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8353 while executing MI command -data-list-changed-registers.
8354
08b9c608
MG
83552011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8356
8357 * xtensa-tdep.c (xtensa_read_register): New function.
8358 (xtensa_write_register): New function.
8359 (xtensa_find_register_by_name): New function.
8360 (xtensa_windowed_frame_cache): Update comments in type description.
8361 (xtensa_frame_cache): Likewise.
8362 (xtensa_window_interrupt_insn): New function.
8363 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8364 (xtensa_insn_kind): Add new instructions.
8365 (rwx_special_register): New function.
8366 (call0_classify_opcode): Add new instructions to the analysis.
8367 (a0_saved, a7_saved, a11_saved): New variables.
8368 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8369 (execute_l32e): New function.
8370 (execute_s32e): New function.
8371 (xtensa_exception_handler_t): New type.
8372 (execute_code): New function.
8373 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8374 analysis for Xtensa Window Exception handlers.
8375
4d1acb11
MG
83762011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8377
98689b25
MG
8378 * xtensa-tdep.c (TX_PS): New.
8379 (windowing_enabled): Update to count for Call0 ABI.
8380 (xtensa_hextochar): New.
8381 (xtensa_init_reggroups): Make algorithm generic.
8382 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8383
83842011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8385
8386 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8387
d3f323f3
MS
83882011-03-08 Michael Snyder <msnyder@vmware.com>
8389
3dcabaa8
MS
8390 * i386-tdep.c (i386_follow_jump): Check return value of
8391 target_read_memory.
8392 (i386_analyze_struct_return): Ditto.
8393 (i386_skip_probe): Ditto.
8394 (i386_match_insn): Ditto.
8395 (i386_skip_noop): Ditto.
8396 (i386_analyze_frame_setup): Ditto.
8397 (i386_analyze_register_saves): Ditto.
8398 (i386_skip_prologue): Ditto.
8399 (i386_skip_main_prologue): Ditto.
8400
13b3fd9b
MS
8401 * target.c (read_whatever_is_readable): Fix memory leak.
8402
d3f323f3
MS
8403 * i386-tdep.c (i386_process_record): Document fall through.
8404
421d5c74
JK
84052011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8406
8407 Fix DWARF-3+ DW_AT_accessibility default assumption.
8408 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8409 cu->header.version >= 3.
8410
63154eca
PA
84112011-03-08 Pedro Alves <pedro@codesourcery.com>
8412
8413 * remote.c (remote_check_symbols): Skip if the target has no
8414 execution.
8415
f1a507a1
JB
84162011-03-08 Joel Brobecker <brobecker@adacore.com>
8417
8418 * target.c (read_whatever_is_readable): Reformat comment,
8419 with a minor typo fix. Minor reformatting of the code.
8420
36073a92
YQ
84212011-03-08 Yao Qi <yao@codesourcery.com>
8422
8423 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8424 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8425 Use cached result instead of calling displaced_in_arm_mode again.
8426 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8427 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8428 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8429 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8430 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8431 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8432 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8433 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8434 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8435 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8436 (arm_catch_kernel_helper_return): Likewise.
8437 * gdb/arm-tdep.h : Update function declarations.
8438
d3f323f3 84392011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8440
e0e40094
MS
8441 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8442
0b2381f5
MS
8443 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8444
0350914a
MS
8445 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8446
69feea6f
MS
8447 * elfread.c (elf_symtab_read): Stop memory leak.
8448
e6040cbd
MS
8449 * main.c (captured_main): Fix memory leak.
8450
052874e8
AS
84512011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8452
8453 * ada-lang.c (compare_names): Call is_name_suffix with string1
8454 instead of string2.
8455
b11896a5
TT
84562011-03-07 Tom Tromey <tromey@redhat.com>
8457
8458 * xcoffread.c (xcoff_sym_fns): Update.
8459 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8460 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8461 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8462 (symbol_file_add_with_addrs_or_offsets): Likewise.
8463 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8464 * somread.c (som_sym_fns): Update.
8465 * psymtab.h (require_partial_symbols): Declare.
8466 * psymtab.c (require_partial_symbols): New function.
8467 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8468 (ALL_OBJFILE_PSYMTABS): Undef.
8469 (ALL_PSYMTABS): Move from psympriv.h.
8470 (lookup_partial_symtab, find_pc_sect_psymtab)
8471 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8472 (find_last_source_symtab_from_partial)
8473 (forget_cached_source_info_partial)
8474 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8475 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8476 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8477 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8478 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8479 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8480 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8481 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8482 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8483 psymtabs.
8484 * mipsread.c (ecoff_sym_fns): Update.
8485 * machoread.c (macho_sym_fns): Update.
8486 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8487 (read_psyms): New function.
8488 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8489 (elf_sym_fns_lazy_psyms): New global.
8490 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8491 dwarf2_build_psymtabs.
8492 * dbxread.c (aout_sym_fns): Update.
8493 * coffread.c (coff_sym_fns): Update.
8494
fda326dd
TT
84952011-03-07 Tom Tromey <tromey@redhat.com>
8496
8497 * infrun.c (print_exited_reason): Include inferior id and pid in
8498 message.
8499
aeaec162
TT
85002011-03-07 Tom Tromey <tromey@redhat.com>
8501
8502 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8503 parameter.
8504 (target_has_execution_1): Update.
8505 (target_has_execution_current): Declare.
8506 (target_has_execution): Call target_has_execution_current.
8507 (default_child_has_execution): Update.
8508 * target.c (default_child_has_execution): Add 'the_ptid'
8509 parameter.
8510 (target_has_execution_1): Likewise.
8511 (target_has_execution_current): New function.
8512 (add_target): Update.
8513 (init_dummy_target): Update.
8514 * remote-m32r-sdi.c (m32r_has_execution): New function.
8515 (init_m32r_ops): Use it.
8516 * record.c (record_core_has_execution): Now static. Add
8517 'the_ptid' parameter.
8518 * inferior.c (have_live_inferiors): Don't save current thread.
8519 Use target_has_execution_1.
8520
08e14083
YQ
85212011-03-07 Yao Qi <yao@codesourcery.com>
8522
8523 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8524
c05d19c5
JB
85252011-03-07 Joel Brobecker <brobecker@adacore.com>
8526
8527 * elfread.c (elf_symtab_read): Minor reformatting.
8528
3e6ef9e4
JB
85292011-03-07 Joel Brobecker <brobecker@adacore.com>
8530
8531 * objc-lang.c (selectors_info): Minor reformatting.
8532
dbb8534f
JB
85332011-03-07 Joel Brobecker <brobecker@adacore.com>
8534
8535 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8536
dd70cc93
JB
85372011-03-07 Joel Brobecker <brobecker@adacore.com>
8538 Michael Snyder <msnyder@vmware.com>
8539
8540 * ada-valprint.c (ada_val_print_array): Move the declaration of
8541 "byte_order" and "elttype" inside the block where these variables
8542 are actually used. Remove some special handling for the case
8543 where "elttype" and "eltlen" are null. Replace by a comment
8544 and a couple of assertion checks.
8545
b27cf2b3
MS
85462011-03-05 Michael Snyder <msnyder@vmware.com>
8547
8548 * source.c (add_path): Replace semicolon at end of block.
8549 * dwarf2expr.c (execute_stack_op): Ditto.
8550
5387a0c6
MF
85512011-03-05 Mike Frysinger <vapier@gentoo.org>
8552
8553 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8554 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8555 (bfin-*-*): Likewise.
8556
e3aa49af
MS
85572011-03-05 Michael Snyder <msnyder@vmware.com>
8558
82ae4854
MS
8559 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8560 * mdebugread.c (parse_symbol): Ditto.
8561 * parse.c (parse_exp_in_context): Ditto.
8562 * source.c (add_path): Ditto.
8563 * utils.c (gnu_debuglink_crc32): Ditto.
8564 * varobj.c (variable_language): Ditto.
8565
e3aa49af
MS
8566 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8567
154f592e
MS
85682011-03-04 Michael Snyder <msnyder@vmware.com>
8569
da3ecdc6
MS
8570 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8571
9cc89665
MS
8572 * symfile.c (simple_overlay_update): Check for null return value
8573 from lookup_minimal_symbol.
8574
154f592e
MS
8575 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8576
63ffa6ee
TJB
85772011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8578
8579 * eval.c (parse_and_eval_address_1): Remove function.
8580 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8581 instead of parse_and_eval_address_1.
8582 * value.h (parse_and_eval_address_1): Remove prototype.
8583
a17d146e
MS
85842011-03-04 Michael Snyder <msnyder@vmware.com>
8585
8586 * remote.c (putpkt_binary): Document that case stmt falls through.
8587
1a6a67de
TJB
85882011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8589
8590 * breakpointc (print_it_typical): Move NULL check from here...
8591 (print_bp_stop_message): ... to here.
8592
488919c4
MS
85932011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8594
8595 * breakpoint.c (enable_command): Use break instead of continue,
8596 and fill in a missing break.
8597 (disable_command): Ditto.
8598
1e182ce8
UW
85992011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8600
8601 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8602 (terminal_save_ours): Remove misleading comment.
8603 (inflow_inferior_data_cleanup): Free ttystate.
8604 (inflow_inferior_exit): Likewise.
8605 (copy_terminal_info): Copy ttystate.
8606
8607 * serial.c (serial_copy_tty_state): New function.
8608 * serial.h (serial_copy_tty_state): Add prototype.
8609 (struct serial_ops): Add copy_tty_state callback.
8610 * ser-base.c (ser_base_copy_tty_state): New function.
8611 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8612 * ser-go32.c (dos_copy_tty_state): New function.
8613 (dos_ops): Install copy_tty_state callback.
8614 * ser-mingw.c (_initialize_ser_windows): Likewise.
8615 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8616 * ser-unix.c (hardwire_copy_tty_state): New function.
8617 (_initialize_ser_hardwire): Install it.
8618
b2c5f112
MS
86192011-03-04 Michael Snyder <msnyder@vmware.com>
8620
2abae994
MS
8621 * breakpoint.c (create_breakpoint): Add missing break statement.
8622
7f5936f9
MS
8623 Reverting this patch:
8624 * infcall.c (call_function_by_hand): Add break statements for lint.
8625
b2c5f112
MS
8626 Reverting this patch:
8627 * cli/cli-script.c (script_from_file): Add break for lint.
8628
42b1321c
MS
86292011-03-04 Michael Snyder <msnyder@vmware.com>
8630
8631 * solib.c (reload_shared_libraries_1): Close memory leak.
8632
3e2a0cee
TT
86332011-03-03 Tom Tromey <tromey@redhat.com>
8634
8635 PR gdb/12538:
8636 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8637 DW_STRING is NULL.
8638
58397cb7
MS
86392011-03-03 Michael Snyder <msnyder@vmware.com>
8640
2e3fd767
MS
8641 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8642 fields of struct 'st' to zero.
8643
58397cb7
MS
8644 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8645 sal.pspace before calling set_current_source_symtab_and_line.
8646
ced54c8f
YQ
86472011-03-03 Yao Qi <yao@codesourcery.com>
8648
8649 * Makefile.in (configure-common): Remove. Let Makefile
8650 in dir common to rebuild itself.
8651 (common/Makefile): Likewise.
8652
3351ea09
JB
86532011-03-03 Joel Brobecker <brobecker@adacore.com>
8654
8655 * utils.c (parse_escape): Add i18n markup in error message.
8656
bf9f652a
YQ
86572011-03-03 Yao Qi <yao@codesourcery.com>
8658
8659 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8660 ARM_PC_REGNUM.
8661 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8662 (displaced_write_reg, displaced_read_reg): Likewise.
8663 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8664 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8665 (cleanup_branch): Replace magic number 14 and 15 with
8666 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8667
d42de051
MS
86682011-03-02 Michael Snyder <msnyder@vmware.com>
8669
240f9570
MS
8670 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8671
10dd8b54
MS
8672 * cli/cli-script.c (script_from_file): Add break for lint.
8673
b98bd911
MS
8674 * mdebugread.c (parse_partial_symbols): Fix indent.
8675
3494b66d
MS
8676 * target-descriptions.c (tdesc_gdb_type): No need to call
8677 xstrdup, callee saves a copy.
8678
daac021a
MS
8679 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8680
c38d16a7
MS
8681 * infcall.c (call_function_by_hand): Add break statements for lint.
8682
905b671b
MS
8683 * utils.c (parse_escape): Escape the escape char.
8684
f2eb0bc8 8685 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8686 PyList_Append fails.
8687 (gdbpy_inferiors): Error out if build_inferior_list fails.
8688
8c6a60d1
MS
8689 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8690 a function call.
8691
d42de051
MS
8692 * record.c (record_restore): Move printf to before error return.
8693
4db71c0b
YQ
86942011-03-02 Yao Qi <yao@codesourcery.com>
8695
8696 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8697 is_thumb and insn_size.
8698 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8699 on both ARM and Thumb mode.
8700 (arm_process_displaced_insn): Set is_thumb and insn_size.
8701 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8702 (arm_displaced_step_fixup): Likewise.
8703
a9dc8dcc
MS
87042011-03-01 Michael Snyder <msnyder@vmware.com>
8705
53624a93
MS
8706 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8707
77766669
MS
8708 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8709
62d5b8da
MS
8710 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8711
5e9e105f
MS
8712 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8713
dc19db01
MS
8714 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8715 with xmalloc.
8716
5ce64950
MS
8717 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8718 which shadows function parameter.
8719
a0aa2878
MS
8720 * tracepoint.c (create_tsv_from_upload): Superfluous call
8721 to xstrdup. Callee already calls xstrdup.
8722
e325fb69
MS
8723 * linespec.c (decode_line_1): Remove unnecessary null check.
8724
21cbba77
MS
8725 * tracepoint.c (scope_info): Fix mem leak, remove underused
8726 variable.
8727
63360adc
MS
8728 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8729 superfluous null check.
8730
18ea20ac 8731 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8732 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8733
d014929c
MS
8734 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8735
6e9130cf
MS
8736 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8737 be null.
8738
5f01dbc0
MS
8739 * linespec.c (decode_line_1): Check for null before dereference.
8740
d684ab85
MS
8741 * reverse.c (record_restore): Move null-check to before pointer
8742 dereference.
8743
bfffb7e3
MS
8744 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8745
a9dc8dcc
MS
8746 * objc-lang.c (selectors_info): Add explanitory comment.
8747 (classes_info): Ditto.
8748
478fd957
UW
87492011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8750
8751 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8752 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8753 versions of the trampoline. Handle Thumb vs. ARM addresses.
8754 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8755 (arm_linux_init_abi): Install it.
8756 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8757 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8758
0480cefa
MS
87592011-02-28 Michael Snyder <msnyder@vmware.com>
8760
ac50ab3b
MS
8761 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8762 a little bigger, to avoid possibility of an overflow.
8763
f63fbe86
MS
8764 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8765 buffers a little bigger, to avoid possibility of an overflow.
8766
9e91a352
MS
8767 * coffread.c (coff_getfilename): Add check to avoid overflow.
8768
f2eb0bc8 8769 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8770 avoid overflow.
8771 (classes_info): Error out on too long REGEXP.
8772
098ab512
MS
8773 * infrun.c (handle_inferior_event): Remove unused function call.
8774
bcbd1de9
MS
8775 * fork-child.c (fork_inferior): Remove ifdef'd code and
8776 unused variable.
8777
2e456570
MS
8778 * linux-thread-db.c (attach_thread): Discard unused value.
8779
14571dad
MS
8780 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8781
a9cbf802
MS
8782 * remote.c (remote_get_noisy_reply): Discard unused value.
8783 (remote_vcont_resume): Ditto.
8784 (remote_stop_ns): Ditto.
8785
5715d26e
MS
8786 * linespec.c (decode_objc): Delete unused variable.
8787
4a9bca80
MS
8788 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8789
f47fb265
MS
8790 * dwarf2read.c (add_partial_symbol): Discard unused values.
8791 (read_base_type): Delete unused variable.
8792
e81cff30
MS
8793 * dbxread.c (read_dbx_symtab): Discard unused value.
8794
262acaeb
MS
8795 * eval.c (evaluate_subexp_standard): Delete unused variable,
8796 and discard unused values.
8797
df983543
MS
8798 * infcmd.c (_initialize_infcmd): Discard unused values.
8799
89acf84d
MS
8800 * stabsread.c (rs6000_builtin_type): Missing break statement.
8801
ab8b8aca
MS
8802 * dbxread.c (process_one_symbol): Discard unused value.
8803
6b4511ab
MS
8804 * coffread.c (coff_end_symtab): Delete unused variable.
8805
e8e80198
MS
8806 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8807 (dwarf2_add_typedef): Delete unused variable.
8808 (read_namespace): Ditto.
8809 (dwarf_decode_macros): Ditto.
8810
976aa66e
MS
8811 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8812
5b92b49f
MS
8813 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8814
91e8df85
MS
8815 * p-valprint.c (pascal_val_print): Discard unused value.
8816
899500d6
MS
8817 * utils.c (nquery): Call va_end before return;
8818 (yquery): Ditto.
8819 (query): Ditto.
8820
0480cefa
MS
8821 * proc-service.c (ps_plog): Call va_end before return.
8822
fb6a3ed3
TT
88232011-02-28 Tom Tromey <tromey@redhat.com>
8824
8825 * python/python.c (gdbpy_value_cst): New global.
8826 (_initialize_python): Initialize it.
8827 * python/python-internal.h (gdbpy_value_cst): Declare.
8828 * python/py-value.c (convert_value_from_python): Use
8829 gdbpy_value_cst.
8830
c05202a1
MS
88312011-02-28 Michael Snyder <msnyder@vmware.com>
8832
e463f587
MS
8833 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8834
c38eea1a
MS
8835 * breakpoint.c (catch_syscall_completer): Free malloced list.
8836
3ef09ab5
MS
8837 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8838
8f9a01ee
MS
8839 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8840 (lval_func_check_synthetic_pointer): Ditto.
8841 (lval_func_free_closure): Fix use-after-free.
c05202a1 8842
477d0d57
TT
88432011-02-28 Tom Tromey <tromey@redhat.com>
8844
8845 * psymtab.c (expand_partial_symbol_tables): Use
8846 ALL_OBJFILE_PSYMTABS.
8847
20937029
JK
88482011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8849
8850 * objc-lang.c (selectors_info): Error on too long REGEXP.
8851
907b7f4f
MS
88522011-02-28 Michael Snyder <msnyder@vmware.com>
8853
92e96192
MS
8854 * python/py-param.c (set_parameter_value): Add missing
8855 break statement.
8856
907b7f4f
MS
8857 * linux-record.c (record_linux_system_call): Add missing
8858 break statement.
8859
12c5a436
UW
88602011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8861
8862 * breakpoint.c (print_one_breakpoint_location): Remove unused
8863 argument PRINT_ADDRESS_BITS. Update callers.
8864 (print_one_breakpoint): Likewise.
8865
170b53b2
UW
88662011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8867
8868 * breakpoint.c (wrap_indent_at_field): New function.
8869 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8870 Allocate ui_stream locally instead of using STB argument.
8871 (print_one_breakpoint_location): Update call.
8872 * ui-out.c (ui_out_query_field): New function.
8873 * ui-out.h (ui_out_query_field): Add prototype.
8874
8ab1f94d
JB
88752011-02-28 Joel Brobecker <brobecker@adacore.com>
8876
8877 From Michael Snyder <msnyder@vmware.com>
8878 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8879
7d488639
MS
88802011-02-27 Michael Snyder <msnyder@vmware.com>
8881
ae179fba
MS
8882 * objc-lang.c (selectors_info): Prevent string overrun.
8883
086dbf66
MS
8884 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8885 error in strncpy.
8886
f2eb0bc8 8887 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8888 outer scope.
8889
7d488639
MS
8890 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8891 param with a local variable of the same name.
8892
3bd0f5ef
MS
88932011-02-27 Michael Snyder <msnyder@vmware.com>
8894
8895 * value.c (value_from_history_ref): New function.
8896 * value.h (value_from_history_ref): Export.
8897 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8898 to parse value history references.
8899 * cli/cli-utils.h (get_number_trailer): Update comment.
8900
89012011-02-27 Michael Snyder <msnyder@vmware.com>
8902
8903 * inferior.c (detach_inferior_command): Use get_number_or_range.
8904 (kill_inferior_command): Ditto.
8905 (remove_inferior_command): Ditto.
8906 (initialize_inferiors): Make command names plural.
8907 Update help strings.
8908
766062f6
MS
89092011-02-27 Michael Snyder <msnyder@vmware.com>
8910
8911 * darwin-nat-info.c: Fix comment typo.
8912 * dwarf2expr.h: Ditto.
8913 * fbsd-nat.c: Ditto.
8914 * fbsd-nat.h: Ditto.
8915 * frame-unwind.h: Ditto.
8916 * frame.h: Ditto.
8917 * hppa-hpux-tdep.c: Ditto.
8918 * i386-linux-nat.c: Ditto.
8919 * linux-nat.c: Ditto.
8920 * nbsd-nat.c: Ditto.
8921 * nbsd-nat.h: Ditto.
8922 * ppc-linux-tdep.c: Ditto.
8923 * serial.c: Ditto.
8924 * ui-file.h: Ditto.
8925 * tui/tui-winsource.c: Ditto.
8926
f2c4ead5
MS
89272011-02-26 Michael Snyder <msnyder@vmware.com>
8928
86b887df
MS
8929 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8930
66fd3b1e
MS
8931 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8932
8c814cdd
MS
8933 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8934 with a local variable of the same name.
8935
6d5e094a 8936 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8937 param with a local variable of the same name.
6d5e094a 8938 (i387_supply_xsave): Ditto.
e5b3d7d6 8939
5eee517d
MS
8940 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8941 that it does not shadow a function parameter.
8942
8fbf6b93
MS
8943 * i386-nat.c (i386_length_and_rw_bits): Document that case
8944 statement is meant to fall through.
8945
cb969d61
MS
8946 * expprint.c (dump_subexp_body_standard): Document that case
8947 statement is meant to fall through.
8948
f2c4ead5
MS
8949 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8950 dead if statement. Condition can't be false.
8951
b021a221
MS
89522011-02-25 Michael Snyder <msnyder@vmware.com>
8953
8954 * arm-tdep.c: Fix typos in comments.
8955 * bsd-uthread.c: Ditto.
8956 * completer.c: Ditto.
8957 * corelow.c: Ditto.
8958 * cp-namespace.c: Ditto.
8959 * cp-support.c: Ditto.
8960 * cris-tdep.c: Ditto.
8961 * dbxread.c: Ditto.
8962 * dwarf2read.c: Ditto.
8963 * frame.h: Ditto.
8964 * gdbtypes.h: Ditto.
8965 * inferior.h: Ditto.
8966 * mdebugread.c: Ditto.
8967 * mips-tdep.c: Ditto.
8968 * ppc-linux-nat.c: Ditto.
8969 * ppc-linux-tdep.c: Ditto.
8970 * printcmd.c: Ditto.
8971 * sol-thread.c: Ditto.
8972 * solib-frv.c: Ditto.
8973 * solist.h: Ditto.
8974 * sparc64-tdep.c: Ditto.
8975 * spu-tdep.c: Ditto.
8976 * stabsread.c: Ditto.
8977 * symfile.c: Ditto.
8978 * valops.c: Ditto.
8979 * varobj.c: Ditto.
8980 * vax-nat.c: Ditto.
8981 * python/py-block.c: Ditto.
8982 * python/py-symbol.c: Ditto.
8983 * python/py-symtab.c: Ditto.
8984 * python/py-value.c: Ditto.
8985 * tui/tui-win.c: Ditto.
8986
c82c0b55
MS
89872011-02-25 Michael Snyder <msnyder@vmware.com>
8988
8989 * inferior.c (print_inferior): Accept a string instead of an int
8990 for requested_inferiors, and use get_number_or_range to parse it.
8991 (info_inferiors_command): Pass args string to print_inferior.
8992 (initialize_inferiors): Change help string for info inferiors.
8993 * inferior.h (print_inferior): Export prototype change.
8994
ee00cd23
TT
89952011-02-25 Tom Tromey <tromey@redhat.com>
8996
8997 * common/ax.def (invalid2): Set to 0x31.
8998
0502ed8c
JK
89992011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9000
9001 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9002 L and plongest.
9003 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9004 use L and plongest.
9005 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9006
2c9de912
MS
90072011-02-24 Michael Snyder <msnyder@vmware.com>
9008
9009 * Makefile.in (clean): Make clean should remove generated files
9010 observer.h and observer.inc.
9011
a04b0428
JB
90122011-02-24 Joel Brobecker <brobecker@adacore.com>
9013
9014 Revert the following patch (not approved yet):
9015 2011-02-21 Hui Zhu <teawater@gmail.com>
9016 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9017 * ax-gdb.c (gen_printf_expr_callback): New function.
9018 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9019 * ax-general.c (ax_memcpy): New function.
9020 (ax_print): Handle "printf".
9021 (ax_reqs): Ditto.
9022 * ax.h (ax_memcpy): Forward declare.
9023 * common/ax.def (invalid2): Removed.
9024 (printf): New entry.
9025 * printcmd.c (printcmd.h): New include.
9026 (string_printf): New function.
9027 (ui_printf): Removed.
9028 (printf_command): Remove static. Call string_printf.
9029 (eval_command): Call string_printf.
9030 * printcmd.h: New file.
9031 * tracepoint.c (validate_actionline,
9032 encode_actions_1): handle printf_command.
9033
2b52013f
TT
90342011-02-23 Tom Tromey <tromey@redhat.com>
9035
9036 * ax-general.c (ax_pick): Add missing newline.
9037
e5a67952
MS
90382011-02-23 Michael Snyder <msnyder@vmware.com>
9039
9040 * breakpoint.c (breakpoint_1): Change first argument from an int
9041 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9042 breakpoints rather than just one. Use new function
e5a67952
MS
9043 'number_is_in_list' to implement.
9044 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9045 (watchpoints_info): Ditto.
9046 (tracepoints_info): Ditto.
9047 (maintenance_info_breakpoints): Ditto.
9048 (_initialize_breakpoint): Update help strings to reflect the fact
9049 that these functions can now take more than one argument.
9050 * cli/cli-utils.c (number_is_in_list): New function.
9051 * cli/cli-utils.h (number_is_in_list): Export.
9052
90532011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9054
9055 * memattr.c (mem_enable_command): Use get_number_or_range.
9056 (mem_disable_command): Ditto.
9057 (mem_delete_command): Ditto.
9058 (_initialize_mem): Tweak usage message to reflect multiple
9059 arguments.
9060
6e6fbe60
DE
90612011-02-22 Doug Evans <dje@google.com>
9062
9063 Add gdb.lookup_global_symbol python function.
9064 * NEWS: Add entry.
9065 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9066 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9067 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9068
79b97fa8
TT
90692011-02-22 Tom Tromey <tromey@redhat.com>
9070
9071 * language.c (language_class_name_from_physname): Rename
9072 'curr_language' argument to 'lang'; use in body.
9073
298f437a
MS
90742011-02-22 Michael Snyder <msnyder@vmware.com>
9075
9076 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9077
b7ea3126
PA
90782011-02-22 Pedro Alves <pedro@codesourcery.com>
9079
9080 * frame-unwind.h: Fix comment to mention the this frame, not the
9081 next.
9082
58ee6d60
TT
90832011-02-22 Tom Tromey <tromey@redhat.com>
9084
9085 * symfile.c (auto_solib_limit): Remove.
9086 * symfile.h (auto_solib_limit): Remove.
9087
36238dbc
JB
90882011-02-22 Joel Brobecker <brobecker@adacore.com>
9089
9090 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9091
aea5b279
MS
90922011-02-21 Michael Snyder <msnyder@vmware.com>
9093
9094 * gdbthread.h (print_thread_info): Change prototype.
9095 * thread.c (print_thread_info): Accept char* instead of int for
9096 requested_threads argument. Use new function number_is_in_list
9097 to determine which threads to list.
9098 (info_threads_command): Pass char* to print_thread_info.
9099 * cli/cli-utils.c (number_is_in_list): New function.
9100 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9101 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9102 print_thread_info.
9103 (print_one_inferior): Ditto.
9104 (mi_cmd_list_thread_groups): Ditto.
9105
8caa75ee
JK
91062011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9107
9108 * common/Makefile.in (CFLAGS): New.
9109 (COMPILE): Add $(CFLAGS).
9110
ea666128
TT
91112011-02-21 Tom Tromey <tromey@redhat.com>
9112
9113 * breakpoint.c (catch_syscall_command_1): Fix typo.
9114
e9cafbcc
TT
91152011-02-21 Tom Tromey <tromey@redhat.com>
9116
9117 * reverse.c: Include cli-utils.h.
9118 * printcmd.c: Include cli-utils.h.
9119 (string_printf): Use skip_spaces.
9120 * cli/cli-utils.h: New file.
9121 * cli/cli-utils.c: New file.
9122 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9123 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9124 * breakpoint.h (get_number, get_number_or_range): Move to
9125 cli-utils.h.
9126 * breakpoint.c: Include cli-utils.h.
9127 (get_number_trailer, get_number, get_number_or_range)
9128 (ep_skip_leading_whitespace): Move to cli-utils.c.
9129 (create_breakpoint_sal, find_condition_and_thread)
9130 (decode_static_tracepoint_spec, watch_command_1)
9131 (watch_maybe_just_location, ep_parse_optional_if_clause)
9132 (catch_fork_command_1, catch_exec_command_1)
9133 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9134 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9135 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9136 (HFILES_NO_SRCDIR): Add cli-utils.h.
9137 (cli-utils.o): New target.
9138
f67fd822
PM
91392011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9140
9141 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9142 before calling discard_all_inferiors.
9143
c9def01d
UW
91442011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9145
9146 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9147 (struct builtin_opencl_type): Remove.
9148 (builtin_opencl_type): Change return type to "struct type **".
9149 (lookup_opencl_vector_type): Update caller.
9150 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9151 (build_opencl_types): Install plain array of "struct type *"
9152 instead of "struct builtin_opencl_type".
9153
e3039479
UW
91542011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9155 Ulrich Weigand <uweigand@de.ibm.com>
9156
9157 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9158 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9159 (struct arm_linux_hwbp_cap): New type.
9160 (arm_linux_get_hwbp_cap): New function.
9161 (arm_linux_get_hw_breakpoint_count): Likewise.
9162 (arm_linux_get_hw_watchpoint_count): Likewise.
9163 (arm_linux_can_use_hw_breakpoint): Likewise.
9164 (arm_hwbp_type): New type.
9165 (arm_hwbp_control_t): Likewise.
9166 (struct arm_linux_hw_breakpoint): Likewise.
9167 (struct arm_linux_thread_points): Likewise.
9168 (arm_threads): New global variable.
9169 (arm_linux_find_breakpoints_by_tid): New function.
9170 (arm_hwbp_control_initialize): Likewise.
9171 (arm_hwbp_control_is_enabled): Likewise.
9172 (arm_hwbp_control_disable): Likewise.
9173 (arm_linux_hw_breakpoint_initialize): Likewise.
9174 (arm_linux_get_hwbp_type): Likewise.
9175 (arm_linux_hw_watchpoint_initialize): Likewise.
9176 (arm_linux_hw_breakpoint_equal): Likewise.
9177 (arm_linux_insert_hw_breakpoint1): Likewise.
9178 (arm_linux_remove_hw_breakpoint1): Likewise.
9179 (arm_linux_insert_hw_breakpoint): Likewise.
9180 (arm_linux_remove_hw_breakpoint): Likewise.
9181 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9182 (arm_linux_insert_watchpoint): Likewise.
9183 (arm_linux_remove_watchpoint): Likewise.
9184 (arm_linux_stopped_data_address): Likewise.
9185 (arm_linux_stopped_by_watchpoint): Likewise.
9186 (arm_linux_watchpoint_addr_within_range): Likewise.
9187 (arm_linux_new_thread): Likewise.
9188 (arm_linux_thread_exit): Likewise.
9189 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9190 related target callbacks. Register arm_linux_new_thread and
9191 arm_linux_thread_exit.
9192 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9193 * arm-tdep.c (arm_pc_is_thumb): Make global.
9194 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9195
b5db5dfc
UW
91962011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9197
9198 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9199 per-frame locations while within a function epilogue.
9200
e25b2cfa
PM
92012011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9202
9203 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9204 to GNU coding standards.
9205
4af53f97
PM
92062011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9207
9208 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9209 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9210 (ser_windows_close): Only call CancelIo if function exists.
9211 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9212 to check for existence of CancelIo function in kernel32 DLL.
9213
d0e92d82
HZ
92142011-02-21 Hui Zhu <teawater@gmail.com>
9215
9216 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9217 * ax-gdb.c (gen_printf_expr_callback): New function.
9218 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9219 * ax-general.c (ax_memcpy): New function.
9220 (ax_print): Handle "printf".
9221 (ax_reqs): Ditto.
9222 * ax.h (ax_memcpy): Forward declare.
9223 * common/ax.def (invalid2): Removed.
9224 (printf): New entry.
9225 * printcmd.c (printcmd.h): New include.
9226 (string_printf): New function.
9227 (ui_printf): Removed.
9228 (printf_command): Remove static. Call string_printf.
9229 (eval_command): Call string_printf.
9230 * printcmd.h: New file.
9231 * tracepoint.c (validate_actionline,
9232 encode_actions_1): handle printf_command.
9233
7d357efd
MS
92342011-02-19 Michael Snyder <msnyder@vmware.com>
9235
9236 * reverse.c (delete_one_bookmark): Argument is now bookmark
9237 id rather than pointer to bookmark struct.
9238 (delete_bookmark_command): Use get_number_or_range.
9239 (goto_bookmark_command): Parse with get_number instead of strtoul.
9240 (bookmark_1): New function. Print info for one bookmark.
9241 (bookmarks_info): Use get_number_or_range and bookmark_1.
9242
7a45ebd7
MS
92432011-02-18 Michael Snyder <msnyder@vmware.com>
9244
f2eb0bc8 9245 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9246 get_number_or_range.
65ebfb52 9247 (thread_apply_command): Ditto.
7a45ebd7 9248
94d5e490
TT
92492011-02-18 Tom Tromey <tromey@redhat.com>
9250
9251 * common/ax.def: New file.
9252 * ax.h (enum agent_op): Use ax.def.
9253 * ax-general.c (aop_map): Use ax.def.
9254
c7f96d2b
TT
92552011-02-18 Tom Tromey <tromey@redhat.com>
9256
9257 * ax-general.c (aop_map): Add pick and rot.
9258 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9259 <DW_OP_rot>: Implement.
9260 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9261 (ax_pick): Declare.
9262 * ax-general.c (ax_pick): New function.
9263
66694b75
TT
92642011-02-18 Tom Tromey <tromey@redhat.com>
9265
9266 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9267
eeaafae2
JK
92682011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9269 Tom Tromey <tromey@redhat.com>
9270
9271 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9272 make_symbol_overload_list_block with NULL BLOCK.
9273 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9274
3c3fe74c
PA
92752011-02-18 Pedro Alves <pedro@codesourcery.com>
9276
9277 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9278 * breakpoint.h (get_number_or_range): Declare.
9279 * printcmd.c (ALL_DISPLAYS): Declare.
9280 (delete_display): Reimplement taking a display pointer.
9281 (undisplay_command): Accept a range of displays to delete, using
9282 get_number_or_range.
9283
13163d80
PM
92842011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9285
9286 * c-valprint.c (c_val_print): Add embedded_offset to address
9287 for arrays of unspecified length.
9288 * p-valprint.c (pascal_val_print): Likewise.
9289
b434a28f
YQ
92902011-02-18 Yao Qi <yao@codesourcery.com>
9291
9292 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9293 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9294 (thumb_process_displaced_insn): New.
9295 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9296 call to arm_process_displaced_insn.
9297 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9298
9f6f94ff
TT
92992011-02-17 Tom Tromey <tromey@redhat.com>
9300
9301 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9302 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9303 compile_dwarf_to_ax. No longer static. Call
9304 dwarf2_compile_cfa_to_ax.
9305 (locexpr_tracepoint_var_ref): Update.
9306 (loclist_tracepoint_var_ref): Update.
9307 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9308 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9309 argument; add 'gdbarch' and 'pc'.
9310 (dwarf2_compile_cfa_to_ax): New function.
9311 (dwarf2_frame_cache): Update.
9312
e67ad678
JB
93132011-02-17 Joel Brobecker <brobecker@adacore.com>
9314
9315 * ada-lang.c (ada_type_of_array): Fix the size of the array
9316 in the case of an unconstrained packed array.
9317
946ebb0d
YQ
93182011-02-17 Yao Qi <yao@codesourcery.com>
9319
9320 * common/Makefile.in: Add more targets for make.
9321
1ba1b353
TT
93222011-02-16 Tom Tromey <tromey@redhat.com>
9323
9324 * dwarf2loc.c (unimplemented): Fix typo.
9325
b1bfef65
TT
93262011-02-16 Tom Tromey <tromey@redhat.com>
9327
9328 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9329 (compile_dwarf_to_ax) <default>: Use unimplemented.
9330 <DW_OP_deref>: Update.
9331 (disassemble_dwarf_expression): Update.
9332 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9333 (decode_locdesc): Update.
9334 * dwarf2expr.h (dwarf_stack_op_name): Update.
9335
5f1e6f19
TT
93362011-02-16 Tom Tromey <tromey@redhat.com>
9337
9338 * ax.h (struct aop_map) <name>: Now const.
9339
a0c78a73
PA
93402011-02-16 Tom Tromey <tromey@redhat.com>
9341
9342 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9343 than axs_rvalue.
9344
946ebb0d 93452011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9346
9347 * infrun.c (get_displaced_step_closure_by_addr): New.
9348 * inferior.h: Declare it.
9349 * arm-tdep.c: (arm_pc_is_thumb): Call
9350 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9351 returns non-NULL.
9352
08807d5a
PA
93532011-02-16 Pedro Alves <pedro@codesourcery.com>
9354 Jan Kratochvil <jan.kratochvil@redhat.com>
9355
9356 gdb/
9357 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9358
29976f3f
PA
93592011-02-16 Pedro Alves <pedro@codesourcery.com>
9360 Jan Kratochvil <jan.kratochvil@redhat.com>
9361
9362 * value.c (value_contents_copy_raw): Extend describing comment.
9363 Assert that the destination contents we're overwriting are wholly
9364 available.
fb68ae73 9365 (value_contents_copy): Extend describing comment.
29976f3f 9366
cd24cfaa
PA
93672011-02-16 Pedro Alves <pedro@codesourcery.com>
9368 Jan Kratochvil <jan.kratochvil@redhat.com>
9369
9370 * value.c (value_available_contents_eq): Remove redundant local
9371 variables. Fix available contents comparision.
9372 * value.h (value_available_contents_eq): Extend describing
9373 comment.
9374
60bbf338
YQ
93752011-02-16 Yao Qi <yao@codesourcery.com>
9376
9377 * thread.c (info_threads_command): Add missing i18n markup and remove
9378 trailing newline.
9379
17450429
PP
93802011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9381
9382 * breakpoint.c (longjmp_names): New variable.
9383 (struct breakpoint_objfile_data): New type.
9384 (breakpoint_objfile_key): New variable.
9385 (msym_not_found): New variable.
9386 (msym_not_found_p): New predicate.
9387 (get_breakpoint_objfile_data): New function.
9388 (create_overlay_event_breakpoint): Check per-objfile cache for
9389 symbols first.
9390 (create_longjmp_master_breakpoint): Likewise.
9391 (create_std_terminate_master_breakpoint): Likewise.
9392 (create_exception_master_breakpoint): Likewise.
9393 (_initialize_breakpoint): Register per-objfile data key.
9394
af02033e
PP
93952011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9396
9397 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9398 parameter value.
9399 (create_longjmp_master_breakpoint): Loop over longjmp names.
9400 (create_std_terminate_master_breakpoint): Const-propagate parameter
9401 value.
9402 (update_breakpoints_after_exec): Adjust.
9403 (breakpoint_re_set): Adjust.
9404
60f98dde
MS
94052011-02-15 Michael Snyder <msnyder@vmware.com>
9406
cdf99611
MS
9407 * thread.c (info_threads_command): Process arg as thread id,
9408 or list of thread ids.
9409 (thread_find_command): New command.
9410 (_initialize_thread): Document argument for info threads.
9411 Document 'thread find' command.
9412 * NEWS: Document new command "thread find".
60f98dde 9413
0feedb2c
JK
94142011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9415
9416 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9417 * aclocal.m4: Regenerated with aclocal-1.11.1.
9418 * common/configure: Regenerate with autoconf-2.64.
9419
648cd113
KW
94202011-02-15 Ken Werner <ken.werner@de.ibm.com>
9421
9422 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9423 bool data type to a size of one byte.
9424
5657161f
PA
94252011-02-15 Pedro Alves <pedro@codesourcery.com>
9426 Jan Kratochvil <jan.kratochvil@redhat.com>
9427
9428 * target.c (memory_xfer_live_readonly_partial): Document where to
9429 look for interface description.
9430
494e194e
YQ
94312011-02-15 Yao Qi <yao@codesourcery.com>
9432
9433 PR tdep/12352
9434 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9435 order to store PC value on stack instead of text section.
9436
d9492458
TJB
94372011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9438
9439 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9440 the EFP register set size.
9441 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9442 data from the VMX register.
9443 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9444 and write data from/to the VMX register.
9445
cdf99611
MS
94462011-02-14 Michael Snyder <msnyder@vmware.com>
9447
9448 * command.h (enum command_class): New class 'no_set_class', for
9449 "show" commands without a corresponding "set" command.
9450 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9451 * copying.c (_initialize_copying): Ditto for "show copying" and
9452 "show warranty".
9453 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9454 "show version".
9455 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9456 which there is no corresponding "set" command (eg. "show copying").
9457
424447ee
PA
94582011-02-14 Pedro Alves <pedro@codesourcery.com>
9459 Jan Kratochvil <jan.kratochvil@redhat.com>
9460
9461 * exec.c (section_table_available_memory): Change `len' parameter
9462 type to ULONGEST.
9463 * exec.h (section_table_available_memory): Ditto.
9464 * value.h (read_value_memory): Rename the `offset' parameter to
9465 `embedded_offset'.
9466
c0f61f9c 94672011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9468 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9469
9470 * memrange.c (compare_mem_ranges): Mention sort order in
9471 describing comment.
9472 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9473 * tracepoint.c (traceframe_available_memory): Extend comment to
9474 mention what happens to RESULT when the target does not support
9475 the query.
9476
6bfc80c7
PA
94772011-02-14 Pedro Alves <pedro@codesourcery.com>
9478 Jan Kratochvil <jan.kratochvil@redhat.com>
9479
9480 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9481 range.
9482
e7303042
PA
94832011-02-14 Pedro Alves <pedro@codesourcery.com>
9484
9485 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9486 No longer handle NULL values.
9487
8af8e3bc
PA
94882011-02-14 Pedro Alves <pedro@codesourcery.com>
9489
9490 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9491 * value.c: Include "exceptions.h".
9492 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9493 generic error.
9494 * cp-abi.c: Include gdb_assert.h.
9495 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9496 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9497 errors.
9498 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9499 parameters. No longer returns -1 on error.
9500 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9501 `val' parameters.
9502 * cp-valprint.c: Include exceptions.h.
9503 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9504 the baseclass_offset. Handle unavailable base classes. Use
9505 val_print_invalid_address.
9506 * p-valprint.c: Include exceptions.h.
9507 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9508 when fetching the baseclass_offset. No longer expect
9509 baseclass_offset returning -1. Handle unavailable base classes.
9510 Use val_print_invalid_address.
9511 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9512 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9513 `embedded_offset' and `val' parameters. Adjust.
9514 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9515 parameter, and change its type to gdb_byte pointer. Add
9516 `embedded_offset' and `val' parameters. Adjust. No longer expect
9517 baseclass_offset returning -1.
9518 (value_dynamic_cast): Use value_contents_for_printing rather than
9519 value_contents. Adjust.
9520 (search_struct_field): No longer expect baseclass_offset returning
9521 -1.
9522 (search_struct_method): If reading memory from the target is
9523 necessary, wrap it in a new value to pass to baseclass_offset. No
9524 longer expect baseclass_offset returning -1.
9525 (find_method_list): No longer expect baseclass_offset returning
9526 -1. Use value_contents_for_printing rather than value_contents.
9527 * valprint.c (val_print_invalid_address): New function.
9528 * valprint.h (val_print_invalid_address): Declare.
9529 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9530 and `val' parameters. No longer expect baseclass_offset returning
9531 -1. Adjust.
9532 * gnu-v2-abi.c: Include "exceptions.h".
9533 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9534 parameters. Handle unavailable memory. Recurse through
9535 gnuv2_baseclass_offset directly, rather than through
9536 baseclass_offset. No longer returns -1 on not found, instead
9537 throw an error.
9538 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9539 `val' parameters. Adjust.
9540
1b28d0b3
PA
95412011-02-14 Pedro Alves <pedro@codesourcery.com>
9542
9543 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9544 almost but not quite adjacent.
9545
ec0a52e1
PA
95462011-02-14 Pedro Alves <pedro@codesourcery.com>
9547
9548 * value.h (value_entirely_available): Declare.
9549 * value.c (value_entirely_available): New function.
9550 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9551 real type if the pointer is unavailable.
9552
24e6bcee
PA
95532011-02-14 Pedro Alves <pedro@codesourcery.com>
9554
9555 * valops.c (value_repeat): Use read_value_memory instead of
9556 read_memory.
9557
39d37385
PA
95582011-02-14 Pedro Alves <pedro@codesourcery.com>
9559
9560 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9561 * value.c (value_contents_copy_raw, value_contents_copy): New
9562 functions.
9563 (value_primitive_field): Use value_contents_copy_raw instead of
9564 memcpy.
9565 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9566 memcpy.
9567 (value_array, value_slice): Ditto.
9568 * valarith.c (value_subscripted_rvalue): Use
9569 value_contents_copy_raw instead of memcpy.
9570
a3d34bf4
PA
95712011-02-14 Pedro Alves <pedro@codesourcery.com>
9572
9573 <unavailable> references.
9574
9575 * valops.c (get_value_at): Use value_from_contents_and_address,
9576 avoiding read_memory.
9577
9fc6d940
PA
95782011-02-14 Pedro Alves <pedro@codesourcery.com>
9579
9580 * c-valprint.c (c_val_print): Print a string with unavailable
9581 contents as an array.
9582
5467c6c8
PA
95832011-02-14 Pedro Alves <pedro@codesourcery.com>
9584
9585 * value.h (unpack_bits_as_long): Delete declaration.
9586 (unpack_value_bits_as_long): Declare.
9587 (unpack_value_field_as_long): Declare.
9588 (value_field_bitfield): Declare.
9589 * value.c (unpack_bits_as_long): Rename to...
9590 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9591 value parameters. Return the extracted result in a new output
9592 parameter. If the value contents are unavailable, return false,
9593 otherwise return true.
9594 (unpack_value_bits_as_long): New.
9595 (unpack_field_as_long): Rename to...
9596 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9597 Add embedded_offset and value parameters. Return the extracted
9598 result in a new output parameter. If the value contents are
9599 unavailable, return false, otherwise return true.
9600 (unpack_value_field_as_long): New.
9601 (unpack_field_as_long_1): New.
9602 (unpack_field_as_long): Reimplement as wrapper around
9603 unpack_value_field_as_long_1.
9604 (value_field_bitfield): New function.
9605 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9606 unpack_value_bits_as_long. Mark the value as unavailable, if it
9607 is unavailable.
9608 * jv-valprint.c (java_print_value_fields): Use
9609 value_field_bitfield.
9610 * p-valprint.c (pascal_object_print_value_fields): Use
9611 value_field_bitfield.
9612 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9613
3158c6ed
PA
96142011-02-14 Pedro Alves <pedro@codesourcery.com>
9615
9616 * value.c (get_internalvar_integer): Also return the int value of
9617 TYPE_CODE_INT INTERNALVAR_VALUE values.
9618 (set_internalvar): Don't special case TYPE_CODE_INT.
9619
9fbdca0d
PA
96202011-02-14 Pedro Alves <pedro@codesourcery.com>
9621
9622 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9623 INTERNALVAR_POINTER.
9624 <pointer>: Delete.
9625 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9626 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9627 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9628
c8c1c22f
PA
96292011-02-14 Pedro Alves <pedro@codesourcery.com>
9630
9631 * value.h (value_available_contents_eq): Declare.
9632 * value.c (find_first_range_overlap): New function.
9633 (value_available_contents_eq): New function.
9634 * valprint.c (val_print_array_elements): Use
9635 value_available_contents_eq.
9636 * ada-valprint.c (val_print_packed_array_elements): Use
9637 value_available_contents_eq.
9638 * jv-valprint.c (java_value_print): Use
9639 value_available_contents_eq.
9640
e6e4e701
PA
96412011-02-14 Pedro Alves <pedro@codesourcery.com>
9642
9643 * target.c (target_read_live_memory): New function.
9644 (memory_xfer_live_readonly_partial): New.
9645 (memory_xfer_partial): If reading from a traceframe, fallback to
9646 reading unavailable read-only memory from read-only regions of
9647 live target memory.
9648 * tracepoint.c (disconnect_tracing): Adjust.
9649 (set_current_traceframe): New, factored out from
9650 set_traceframe_number.
9651 (set_traceframe_number): Reimplement to only change the traceframe
9652 number on the GDB side.
9653 (do_restore_current_traceframe_cleanup): Adjust.
9654 (make_cleanup_restore_traceframe_number): New.
9655 (cur_traceframe_number): New global.
9656 (tfile_open): Set cur_traceframe_number to no traceframe.
9657 (set_tfile_traceframe): New function.
9658 (tfile_trace_find): If looking up a traceframe using any method
9659 other than by number, make sure the current tfile traceframe
9660 matches gdb's current traceframe. Update the current tfile
9661 traceframe if the lookup succeeded.
9662 (tfile_fetch_registers, tfile_xfer_partial)
9663 (tfile_get_trace_state_variable_value): Make sure the remote
9664 traceframe matches gdb's current traceframe.
9665 * remote.c (remote_traceframe_number): New global.
9666 (remote_open_1): Set it to -1.
9667 (set_remote_traceframe): New function.
9668 (remote_fetch_registers, remote_store_registers)
9669 (remote_xfer_memory, remote_xfer_partial)
9670 (remote_get_trace_state_variable_value): Make sure the remote
9671 traceframe matches gdb's current traceframe.
9672 (remote_trace_find): If looking up a traceframe using any method
9673 other than by number, make sure the current remote traceframe
9674 matches gdb's current traceframe. Update the current remote
9675 traceframe if the lookup succeeded.
9676 * infrun.c (fetch_inferior_event): Adjust.
9677 * tracepoint.h (set_current_traceframe): Declare.
9678 (get_traceframe_number, set_traceframe_number): Add describing
9679 comments.
9680
e6ca34fc
PA
96812011-02-14 Pedro Alves <pedro@codesourcery.com>
9682
9683 Mark pieces of values as unavailable if the corresponding memory
9684 is unavailable.
9685
9686 * valops.c: Include tracepoint.h.
9687 (value_fetch_lazy): Use read_value_memory.
9688 (read_value_memory): New.
9689 * value.h (read_value_memory): Declare.
9690 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9691 * exec.c (section_table_available_memory): New function.
9692 * exec.h (section_table_available_memory): Declare.
9693
2a7498d8
PA
96942011-02-14 Pedro Alves <pedro@codesourcery.com>
9695
9696 * Makefile.in (SFILES): Add memrange.c.
9697 (HFILES_NO_SRCDIR): Add memrange.h.
9698 (COMMON_OBS): Add memrange.o.
9699 * memrange.c: New file.
9700 * memrange.h: New file.
9701 * tracepoint.c: Include memrange.h.
9702 (struct mem_range): Delete.
9703 (mem_range_s): Delete.
9704 (traceframe_available_memory): New function.
9705 * tracepoint.h (traceframe_available_memory): Declare.
9706
b3b9301e
PA
97072011-02-14 Pedro Alves <pedro@codesourcery.com>
9708
9709 * target.h (struct traceframe_info): Forward declare.
9710 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9711 (struct target_ops) <to_traceframe_info>: New field.
9712 (target_traceframe_info): New.
9713 * target.c (update_current_target): Inherit and default
9714 to_traceframe_info.
9715 * remote.c (PACKET_qXfer_traceframe_info): New.
9716 (remote_protocol_features): Register qXfer:traceframe-info:read.
9717 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9718 (remote_traceframe_info): New.
9719 (init_remote_ops): Install it.
9720 (_initialize_remote): Install "set/show remote traceframe-info"
9721 commands.
9722 * tracepoint.h (parse_traceframe_info): Declare.
9723 * tracepoint.c (struct mem_range): New.
9724 (mem_range_s): New typedef.
9725 (struct traceframe_info): New.
9726 (traceframe_info): New global.
9727 (free_traceframe_info): New function.
9728 (clear_traceframe_info): New function.
9729 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9730 info.
9731 (build_traceframe_info): New function.
9732 (tfile_traceframe_info): New function.
9733 (init_tfile_ops): Install tfile_traceframe_info.
9734 (traceframe_info_start_memory, free_result): New functions.
9735 (memory_attributes, traceframe_info_elements): New globals.
9736 (parse_traceframe_info, get_traceframe_info): New functions.
9737 * features/traceframe-info.dtd: New file.
9738 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9739
4e07d55f
PA
97402011-02-14 Pedro Alves <pedro@codesourcery.com>
9741
9742 Base support for <unavailable> value contents.
9743
4e07d55f
PA
9744 * value.h (value_bytes_available): Declare.
9745 (mark_value_bytes_unavailable): Declare.
9746 * value.c (struct range): New struct.
9747 (range_s): New typedef.
9748 (ranges_overlap): New function.
9749 (range_lessthan): New function.
9750 (ranges_contain_p): New function.
9751 (struct value) <unavailable>: New field.
9752 (value_bytes_available): New function.
9753 (mark_value_bytes_unavailable): New function.
9754 (require_not_optimized_out): Constify parameter.
9755 (require_available): New function.
9756 (value_contents_all, value_contents): Require all bytes be
9757 available.
9758 (value_free): Free `unavailable'.
9759 (value_copy): Copy `unavailable'.
9760 * valprint.h (val_print_unavailable): Declare.
9761 * valprint.c (valprint_check_validity): Rename `offset' parameter
9762 to `embedded_offset'. If printing a scalar, check whether the
9763 value chunk is available.
9764 (val_print_unavailable): New.
9765 (val_print_scalar_formatted): Check whether the value is
9766 available.
9767 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9768 pretty-printing unavailable values.
9769
bc9a5551
JK
97702011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9771
9772 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9773 * c-typeprint.c (c_type_print_args): Update the function comment. New
9774 variable param_type, initialize it. Remove const/volatile qualifiers
9775 for language_cplus and !show_artificial. Use param_type.
9776
93b55aa1
JK
97772011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9778
9779 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9780 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9781 * symtab.h (struct symtab) <next>: Comment extension.
9782
181d9476
YQ
97832011-02-12 Yao Qi <yao@codesourcery.com>
9784
9785 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9786
b708a5c7
JK
97872011-02-11 Yao Qi <yao@codesourcery.com>
9788
9789 * common/Makefile.in: Add copyright header.
9790
c5187ac6
PA
97912011-02-11 Pedro Alves <pedro@codesourcery.com>
9792
9793 * infrun.c (proceed): Move switching out and in of tfind mode from
9794 here ...
9795 (fetch_inferior_event): ... to here.
9796
4f3e6fb7
YQ
97972011-02-11 Yao Qi <yao@codesourcery.com>
9798
9799 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9800 libcommon.a.
9801 * configure.ac: Add common to sub dir.
9802 * configure: Regenerate.
9803
b708a5c7
JK
98042011-02-11 Yao Qi <yao@codesourcery.com>
9805
9806 Build libcommon.a.
9807
9808 * common/Makefile.in: New.
9809 * common/configure.ac: New.
9810 * common/aclocal.m4: New.
9811 * common/configure: Generate.
9812
2287cc7e
PA
98132011-02-10 Pedro Alves <pedro@codesourcery.com>
9814
9815 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9816 side of the parenthesis.
9817
9818 Merge from GCC:
9819 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9820 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9821
fd62cb89
MS
98222011-02-08 Michael Snyder <msnyder@vmware.com>
9823
9824 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9825
56d2815c
JK
98262011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9827
9828 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9829 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9830 psubd and paddd.
9831
4f7d61a8
JK
98322011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9833
9834 PR 12361.
9835 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9836 phsubsw.
9837 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9838 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9839
54fcddd0
UW
98402011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9841
9842 * dwarf2read.c (read_subroutine_type): Set special calling
9843 convention flag for functions compiled by IBM XL C for OpenCL.
9844 * ppc-sysv-tdep.c: Include "dwarf2.h"
9845 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9846 calling convention.
9847 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9848 IBM OpenCL vector types calling convention.
9849 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9850 (ppc_sysv_abi_broken_return_value): Likewise.
9851 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9852 types calling convention.
9853 (ppc64_sysv_abi_return_value): Likewise.
9854 * spu-tdep.c: Include "dwarf2.h"
9855 (spu_return_value): Implement IBM OpenCL vector types calling
9856 convention.
9857
d6dafb7c
UW
98582011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9859
9860 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9861 correct ABI for AltiVec vector arguments.
9862
32b72a42
PA
98632011-02-07 Pedro Alves <pedro@codesourcery.com>
9864
9865 * valprint.c (val_print): Extend comment.
9866 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9867 interface explanation to val_print.
9868 (ada_val_print_array): Adjust comment to current interface.
9869 (print_field_values): Adjust comment to current interface.
9870 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9871 explanation to val_print.
9872 * f-valprint.c (f_val_print): Ditto.
9873 * jv-valprint.c (java_val_print): Ditto.
9874 * m2-valprint.c (m2_val_print): Ditto.
9875 * p-valprint.c (pascal_val_print): Ditto.
9876
9998af43
TJB
98772011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9878
9879 * breakpoint.c (parse_breakpoint_sals): Fix description.
9880
505500db 98812011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9882 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9883
9884 * python/py-inferior.c (python_on_normal_stop): New function.
9885 (python_on_resume): New function.
9886 (python_inferior_exit): New function.
9887 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9888 inferior_exit observers.
9889 * python/py-evtregistry.c: New file.
9890 * python/py-threadevent.c : New file.
9891 * python/py-event.c: New file.
9892 * python/py-evts.c: New file.
9893 * python/py-continueevent.c: New file.
9894 * python/py-bpevent.c: New file.
9895 * python/py-signalevent.c: New file.
9896 * python/py-exetiedevent.c: New file.
9897 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9898 Move struct breakpoint_object from here...
9899 * python/python-internal.h: ... to here.
9900 * python/py-event.h: New file.
9901 * python/py-events.h: New file.
9902 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9903 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9904 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9905 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9906 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9907 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9908 Add build rules for all the above.
9909
9e0ac564
TT
99102011-02-04 Tom Tromey <tromey@redhat.com>
9911
9912 * dwarf2read.c (dwarf2_section_empty_p): New function.
9913 (dwarf2_read_section): Use dwarf2_section_empty_p.
9914 (dwarf2_section_size): New function.
9915 (dwarf2_get_section_info): Unconditionally read section.
9916 (dwarf2_read_index): Use dwarf2_section_empty_p.
9917 (partial_read_comp_unit_head): Use dwarf2_section_size.
9918 (dwarf2_symbol_mark_computed): Likewise.
9919
eee5b35e
DD
99202011-02-04 David Daney <ddaney@caviumnetworks.com>
9921
9922 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9923
385203ed
DD
99242011-02-04 David Daney <ddaney@caviumnetworks.com>
9925
9926 * mips-linux-tdep.c: Include xml-syscall.h.
9927 (mips_linux_get_syscall_number): New function.
9928 (mips_linux_init_abi): Add calls to
9929 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9930 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9931 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9932 * syscalls/mips-n32-linux.xml: New file.
9933 * syscalls/mips-n64-linux.xml: New file.
9934 * syscalls/mips-o32-linux.xml: New file.
9935
9277c30c
UW
99362011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9937
9938 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9939 Complain about inverted range entries.
9940 (dwarf2_record_block_ranges): Likewise.
9941
a3be7890
TJB
99422011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9943
9944 Fix some typos.
9945 * breakpoint.c (update_watchpoint): Fix name of the
9946 update_global_location_list function.
9947 (print_one_breakpoint): Fix typo.
9948 (_initialize_breakpoint): Remove extra space in hbreak help
9949 string.
9950 * breakpoint.h (struct bp_location) <length>: Fix field
9951 description.
9952
041274d8
PA
99532011-02-04 Pedro Alves <pedro@codesourcery.com>
9954
9955 * regcache.c (registers_changed_ptid): Don't explictly always
9956 clear `current_regcache'. Only clear current_thread_ptid and
9957 current_thread_arch when PTID matches. Only reinit the frame
9958 cache if PTID matches the current inferior_ptid. Move alloca(0)
9959 call to ...
9960 (registers_changed): ... here.
9961
c1c2ab58
UW
99622011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9963
9964 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9965 starts with __stack_chk_guard as stack guard symbol.
9966
9011945e
AB
99672011-02-03 Andrew Burgess <aburgess@broadcom.com>
9968
9969 * disasm.c (compare_lines): Handle the end of sequence markers
9970 within the line table to better support disassembling over
9971 compilation unit boundaries.
9972
e0634ccf
UW
99732011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9974
9975 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9976 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9977 implementation even if no symbols are available.
9978 (thumb_analyze_prologue): Update call to skip_prologue_function.
9979 (arm_analyze_prologue): Likewise.
9980
0e9e9abd
UW
99812011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9982
9983 * arm-tdep.c: Include "observer.h".
9984 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9985 (arm_exidx_data_key): New static variable.
9986 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9987 (struct arm_exidx_data): Likewise.
9988 (arm_exidx_data_free): New function.
9989 (arm_compare_exidx_entries): Likewise.
9990 (arm_obj_section_from_vma): Likewise.
9991 (arm_exidx_new_objfile): Likewise.
9992 (arm_find_exidx_entry): Likewise.
9993 (arm_exidx_fill_cache): Likewise.
9994 (arm_exidx_unwind_sniffer): Likewise.
9995 (arm_exidx_unwind): New global variable.
9996 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9997 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9998 observer. Register arm_exidx_data_key as objfile data.
9999
2e9e421f
UW
100002011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10001
10002 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10003 due to accessing uninitialized variable. Fix indentation.
10004
580688f3
PA
100052011-02-02 Pedro Alves <pedro@codesourcery.com>
10006
10007 * c-valprint.c (c_value_print): When doing virtual base pointer
10008 adjustment, create a new value with adjusted contents rather than
10009 changing the contents of the value being printed (and getting it
10010 wrong).
10011
3d2c1d41
PA
100122011-02-02 Pedro Alves <pedro@codesourcery.com>
10013
10014 * xml-support.c (xml_find_attribute): New.
10015 (xinclude_start_include): Use it.
10016 * xml-support.h (xml_find_attribute): Declare.
10017 * memory-map.c (memory_map_start_memory)
10018 (memory_map_start_property): Use xml_find_attribute.
10019 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10020 xml_find_attribute.
10021 * remote.c (start_thread): Use xml_find_attribute.
10022 * solib-target.c (library_list_start_segment)
10023 (library_list_start_section, library_list_start_library)
10024 (library_list_start_list): Use xml_find_attribute.
10025 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10026 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10027 (tdesc_start_field): Use xml_find_attribute.
10028
0af3e2db
UW
100292011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10030
10031 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10032 (BUILD_OCL_VTYPES): Update.
10033
c1039e3c
JB
100342011-02-02 Joel Brobecker <brobecker@adacore.com>
10035
10036 * configure.ac: Work around non-GNU sed limitation when computing
10037 python version number.
10038 * configure: Regenerate.
10039
600ea1be
JK
100402011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 Fix debug printing of TYPE_INSTANCE.
10043 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10044 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10045
56c12414
JK
100462011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10047
10048 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10049 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10050 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10051 * ada-operator.inc: Rename the file to ...
10052 * ada-operator.def: ... here, wrap all the entries by macro OP.
10053 * expprint.c (op_name_standard): Remove all the entries. Include
10054 "std-operator.def" instead.
10055 * expression.h (enum exp_opcode): Include "std-operator.def" and
10056 "ada-operator.def". Move all the entries ...
10057 * std-operator.def: ... here, wrap all the entries by macro OP.
10058
c52b559d
PP
100592011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10060
10061 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10062 * breakpoint.c (remove_jit_event_breakpoints): New function.
10063 * jit.c (jit_descriptor_addr): Delete.
10064 (registering_code): Delete.
10065 (clear_int): Delete.
10066 (jit_inferior_data): New variable.
10067 (struct jit_inferior_data): New type.
10068 (get_jit_inferior_data): New function.
10069 (jit_inferior_data_cleanup): New function.
10070 (jit_read_descriptor): Adjust.
10071 (jit_register_code): Adjust.
10072 (jit_breakpoint_re_set_internal): New function; move code here ...
10073 (jit_inferior_init): ... from here.
10074 (jit_breakpoint_re_set): Adjust.
10075 (jit_reset_inferior_data_and_breakpoints): New function.
10076 (jit_inferior_created_observer): Adjust.
10077 (jit_inferior_exit_hook): Adjust.
10078 (jit_executable_changed_observer): New function.
10079 (jit_event_handler): Adjust.
10080 (_initialize_jit): Adjust.
10081
e839132d
MS
100822011-01-31 Michael Snyder <msnyder@vmware.com>
10083
10084 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10085 line.
10086
47a80e90
TT
100872011-01-31 Tom Tromey <tromey@redhat.com>
10088
10089 PR python/12216:
10090 * python/python.c (execute_gdb_command): Call
10091 prevent_dont_repeat.
10092 * top.c (suppress_dont_repeat): New global.
10093 (dont_repeat): Use it.
10094 (prevent_dont_repeat): New function.
10095 * command.h (prevent_dont_repeat): Declare.
10096
45a43567
TT
100972011-01-31 Tom Tromey <tromey@redhat.com>
10098
10099 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10100 * python/py-breakpoint.c (bppy_set_silent): Use
10101 breakpoint_set_silent.
10102 (bppy_set_thread): Use breakpoint_set_thread.
10103 (bppy_set_task): Use breakpoint_set_task.
10104 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10105 (breakpoint_set_task): Declare.
10106 (make_breakpoint_silent): Remove.
10107 * breakpoint.c (breakpoint_set_silent): New function.
10108 (breakpoint_set_thread): Likewise.
10109 (breakpoint_set_task): Likewise.
10110 (make_breakpoint_silent): Remove.
10111
09d682a4
TT
101122011-01-31 Tom Tromey <tromey@redhat.com>
10113
10114 * breakpoint.h (user_breakpoint_p): Declare.
10115 * breakpoint.c (user_breakpoint_p): New function.
10116 (breakpoint_1): Use it.
10117 (save_breakpoints): Likewise.
10118
9c4ea6c5
JB
101192011-01-31 Joel Brobecker <brobecker@adacore.com>
10120
10121 * configure.ac: Add handling of Python distribution on Windows.
10122 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10123 sysconfig variables are not defined, then do not use them.
10124 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10125 instead. On Windows, return all paths using forward-slashes
10126 rather than backslashes.
10127
ac534cba
JB
101282011-01-31 Joel Brobecker <brobecker@adacore.com>
10129
10130 * configure.ac: Remove fallback behavior for building
10131 against Python. Remove tweaking of Python include path.
10132 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10133 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10134 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10135 Always restore CPPFLAGS and LIBS after linking test.
10136 * configure: Regenerated.
10137 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10138 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10139 * python/python-internal.h: Adjust includes of Python .h files.
10140
c2f0d045
JB
101412011-01-31 Joel Brobecker <brobecker@adacore.com>
10142
10143 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10144 in error message.
10145
6b0c4c1f
JB
101462011-01-31 Joel Brobecker <brobecker@adacore.com>
10147
10148 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10149 value test.
10150
672c9795
YQ
101512011-01-31 Yao Qi <yao@codesourcery.com>
10152
10153 * arm-linux-nat.c: Update calls to regcache_register_status
10154 instead of regcache_valid_p.
10155 * aix-thread.c: Likewise.
10156 * i386gnu-nat.c: Likewise.
10157
80b23b6a
JK
101582011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10159
10160 Fix crash.
10161 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10162 touching TYPE_FIELD_ARTIFICIAL.
10163
4cd712bd
RE
101642011-01-28 Richard Earnshaw <rearnsha@arm.com>
10165
10166 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10167 Committers.
10168
ffd5ec24
PA
101692011-01-28 Pedro Alves <pedro@codesourcery.com>
10170
10171 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10172 selected, don't try iterating over the traceframe's blocks.
10173 (tfile_has_stack): If there's no traceframe selected, then there's
10174 no stack.
10175 (tfile_has_registers): If there's no traceframe selected, then
10176 there's no registers.
10177
e8c9e0a1
PA
101782011-01-28 Pedro Alves <pedro@codesourcery.com>
10179
10180 * target.c (memory_xfer_partial): No need to restore shadows if we
10181 haven't read anything.
10182
de15c4ab
PA
101832011-01-28 Pedro Alves <pedro@codesourcery.com>
10184
10185 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10186 and val_print_scalar_formatted.
10187
9f41c731
PA
101882011-01-27 Pedro Alves <pedro@codesourcery.com>
10189
10190 * tracepoint.c (tfile_read): New.
10191 (tfile_open): Use it.
10192 (tfile_get_traceframe_address): Use it.
10193 (tfile_trace_find): Use it.
10194 (walk_blocks_callback_func): New typedef.
10195 (match_blocktype): New function.
10196 (traceframe_walk_blocks): New function.
10197 (traceframe_find_block_type): New function.
10198 (tfile_fetch_registers, tfile_xfer_partial)
10199 (tfile_get_trace_state_variable_value): Use
10200 traceframe_find_block_type and tfile_read.
10201
cdefc55d
KB
102022011-01-26 Kevin Buettner <kevinb@redhat.com>
10203
10204 * remote-mips.c: Add internationalization mark ups. Remove
10205 trailing \n from already marked up strings.
10206
a81766d8
TT
102072011-01-26 Tom Tromey <tromey@redhat.com>
10208
10209 * python/py-prettyprint.c (print_string_repr): Clear
10210 'addressprint' option when calling val_print_string.
10211 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10212 option when calling val_print_string.
10213
74aedc46
TT
102142011-01-26 Tom Tromey <tromey@redhat.com>
10215
10216 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10217 GDB_PY_LL_ARG.
10218 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10219 macros.
10220 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10221 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10222 (gdb_py_long_as_ulongest): New defines.
10223 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10224 (gdb_py_int_as_long): Declare.
10225 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10226 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10227 (valpy_long): Add comment.
10228 * python/py-utils.c (get_addr_from_python): Use
10229 gdb_py_long_as_ulongest. Handle overflow properly.
10230 (gdb_py_object_from_longest): New function.
10231 (gdb_py_object_from_ulongest): Likewise.
10232 (gdb_py_int_as_long): Likewise.
10233 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10234 * python/py-symtab.c (salpy_get_pc): Use
10235 gdb_py_long_from_ulongest.
10236 (salpy_get_line): Use PyInt_FromLong.
10237 * python/py-param.c (set_parameter_value): Use
10238 gdb_py_int_as_long.
10239 * python/py-lazy-string.c (stpy_get_address): Use
10240 gdb_py_long_from_ulongest.
10241 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10242 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10243 * python/py-breakpoint.c (bppy_set_thread): Use
10244 gdb_py_int_as_long.
10245 (bppy_set_task): Likewise.
10246 (bppy_set_ignore_count): Likewise.
10247 (bppy_set_hit_count): Likewise.
10248 * python/py-block.c (blpy_get_start): Use
10249 gdb_py_object_from_ulongest.
10250 (blpy_get_end): Likewise.
10251 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10252
e4f6d2ec
TJB
102532011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10254
10255 PR/symtab 11766:
10256 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10257 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10258 equality test for objfile, initialize addr_low if needed.
10259
b30aa278
PA
102602011-01-25 Pedro Alves <pedro@codesourcery.com>
10261
10262 * tui/tui-regs.c (tui_register_format): Remove dead code.
10263
ab2188aa
PA
102642011-01-25 Pedro Alves <pedro@codesourcery.com>
10265
10266 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10267 instead of print_scalar_formatted.
10268 (print_scalar_formatted): Don't handle 's' format strings here,
10269 and add an assertion that we never see such format here.
10270 * valprint.h (val_print_scalar_formatted): Declare.
10271 * valprint.c (val_print_scalar_formatted): New.
10272 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10273 instead of print_scalar_formatted.
10274 * jv-valprint.c (java_val_print): Ditto.
10275 * p-valprint.c (pascal_val_print): Ditto.
10276 * ada-valprint.c (ada_val_print_1): Ditto.
10277 * f-valprint.c (f_val_print): Ditto.
10278 * infcmd.c (registers_info): Ditto.
10279 * m2-valprint.c (m2_val_print): Ditto.
10280
66d61a4c
PA
102812011-01-25 Pedro Alves <pedro@codesourcery.com>
10282
10283 * m2-valprint.c (print_unbounded_array): Pass
10284 value_contents_for_printing rather than value_contents, to
10285 m2_print_array_contents. Also pass in the value.
10286
831adc1f
JK
102872011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10288
10289 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10290 (save_gdb_index_command): Switch to .gdb_index version 4.
10291
20622269
PA
102922011-01-25 Pedro Alves <pedro@codesourcery.com>
10293
10294 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10295 than frame_register, and always pass a valid value to val_print.
10296
585fdaa1
PA
102972011-01-25 Pedro Alves <pedro@codesourcery.com>
10298
10299 Centralize printing "<optimized out>".
10300
10301 * valprint.h (val_print_optimized_out): Declare.
10302 * cp-valprint.c (cp_print_value_fields): Use
10303 val_print_optimized_out.
10304 * jv-valprint.c (java_print_value_fields): Ditto.
10305 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10306 * printcmd.c (print_formatted): Ditto.
10307 * valprint.c (valprint_check_validity): Ditto.
10308 (value_check_printable): Ditto.
10309 (val_print_optimized_out): New.
10310
29ec5263
PA
103112011-01-25 Pedro Alves <pedro@codesourcery.com>
10312
10313 * infcmd.c (default_print_registers_info): Allocate values so to
10314 never pass a NULL value to val_print.
10315
de4127a3
PA
103162011-01-25 Pedro Alves <pedro@codesourcery.com>
10317
10318 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10319 boolean. Make sure to always pass a value that matches the
10320 contents buffer to callees. Preserve `address' for following
10321 iterations.
10322 * value.c (value_contents_for_printing_const): New.
10323 (value_address): Constify value argument.
10324 * value.h (value_contents_for_printing_const): Declare.
10325 (value_address): Constify value argument.
10326
ee99023e
PA
103272011-01-25 Pedro Alves <pedro@codesourcery.com>
10328
10329 * regcache.c (struct regcache_descr): Rename
10330 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10331 and sizeof_cooked_register_valid_p to
10332 sizeof_cooked_register_status.
10333 (init_regcache_descr): Adjust.
10334 (struct regcache): Rename register_valid_p field to
10335 register_status.
10336 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10337 (do_cooked_read): Adjust.
10338 (regcache_valid_p): Rename to ...
10339 (regcache_register_status): ... this. Adjust.
10340 (regcache_invalidate): Adjust.
10341 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10342 Adjust.
10343 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10344 as unavailable, not valid.
10345 (regcache_dump): Adjust.
10346 * regcache.h (enum register_status): New.
10347 (regcache_register_status): Declare.
10348 (regcache_invalidate): Delete declaration.
10349 * corelow.c (get_core_registers): Adjust.
10350 * tracepoint.c (tfile_fetch_registers): Adjust.
10351 * trad-frame.c (REG_VALUE): Rename to ...
10352 (TF_REG_VALUE): ... this.
10353 (REG_UNKNOWN): Rename to ...
10354 (TF_REG_UNKNOWN): ... this.
10355 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10356 * mi/mi-main.c (register_changed_p): Adjust.
10357
99e42fd8
PA
103582011-01-25 Pedro Alves <pedro@codesourcery.com>
10359
10360 * regcache.c (struct regcache_descr): Remove outdated comment.
10361 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10362 overallocate hack.
10363 (regcache_xmalloc): Rename to ...
10364 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10365 Allocate the regcache type accordingly.
10366 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10367 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10368 cooked registers, not raw.
10369 (regcache_dup_no_passthrough): Delete.
10370 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10371 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10372 mention obsolete write_register_bytes.
10373 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10374
f7605bc2
PA
103752011-01-25 Pedro Alves <pedro@codesourcery.com>
10376
10377 Stop remote_read_bytes from handling partial reads itself.
10378
10379 * remote-fileio.c: Include target.h.
10380 (remote_fileio_write_bytes): Delete.
10381 (remote_fileio_func_open, remote_fileio_func_write)
10382 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10383 target_read_memory.
10384 (remote_fileio_func_stat): Use target_read_memory and
10385 target_write_memory.
10386 (remote_fileio_func_gettimeofday): Use target_write_memory.
10387 (remote_fileio_func_system): Use target_read_memory.
10388 * remote.c (remote_write_bytes): Make it static.
10389 (remote_read_bytes): Don't handle partial reads here.
10390 * remote.h (remote_read_bytes): Delete declaration.
10391
efc0eabd
PA
103922011-01-25 Pedro Alves <pedro@codesourcery.com>
10393
10394 Simplify XML parsing a bit.
10395
10396 * xml-support.h (gdb_xml_parse_quick): Declare.
10397 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10398 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10399 parameter.
10400 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10401 gdb_xml_create_parser_and_cleanup_1.
10402 (gdb_xml_parse_quick): New.
10403 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10404 * osdata.c (osdata_parse): Ditto.
10405 * remote.c (remote_threads_info): Ditto.
10406 * solib-target.c (solib_target_parse_libraries): Ditto.
10407 * xml-syscall.c (syscall_parse_xml): Ditto.
10408 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10409
314d366a
KB
104102011-01-24 Kevin Buettner <kevinb@redhat.com>
10411
10412 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10413 with remote-mips.o added to gdb_target_obs.
10414 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10415
a491d753
PA
104162011-01-24 Pedro Alves <pedro@codesourcery.com>
10417
10418 * ada-valprint.c (val_print_packed_array_elements): Pass the
10419 correct struct value to val_print.
10420 (ada_val_print_1): Ditto.
10421
490f124f
PA
104222011-01-24 Pedro Alves <pedro@codesourcery.com>
10423
10424 Don't lose embedded_offset in printing routines throughout.
10425
10426 * valprint.h (val_print_array_elements): Change prototype.
10427 * valprint.c (val_print_array_elements): Add `embedded_offset'
10428 parameter, and adjust to pass it down to val_print, while passing
10429 `valaddr' or `address' unmodified. Take embedded_offset into
10430 account when checking repetitions.
10431 * c-valprint.c (c_val_print): Pass embedded_offset to
10432 val_print_array_elements instead of adjusting `valaddr' and
10433 `address'.
10434 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10435 embedded_offset to val_print_array_elements instead of adjusting
10436 `valaddr'.
10437 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10438 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10439 val_print_array_elements and pascal_object_print_value_fields
10440 instead of adjusting `valaddr'.
10441 (pascal_object_print_value_fields): Add `offset' parameter, and
10442 adjust to use it.
10443 (pascal_object_print_value): Add `offset' parameter, and adjust to
10444 use it.
10445 (pascal_object_print_static_field): Use
10446 value_contents_for_printing/value_embedded_offset, rather than
10447 value_contents.
10448 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10449 parameter, and adjust to use it. Use
10450 value_contents_for_printing/value_embedded_offset, rather than
10451 value_contents.
10452 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10453 (ada_val_print_array): Add `offset' parameter, and adjust to use
10454 it.
10455 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10456 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10457 Instead work with offsets. Use
10458 value_contents_for_printing/value_embedded_offset, rather than
10459 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10460 and use value_from_pointer to extract a target pointer, rather
10461 than value_from_longest.
10462 (print_variant_part): Add `offset' parameter. Replace
10463 `outer_valaddr' parameter by a new `outer_offset' parameter.
10464 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10465 (ada_value_print): Use
10466 value_contents_for_printing/value_embedded_offset, rather than
10467 value_contents.
10468 (print_record): Add `offset' parameter, and adjust to pass it
10469 down.
10470 (print_field_values): Add `offset' parameter. Replace
10471 `outer_valaddr' parameter by a new `outer_offset' parameter.
10472 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10473 Use value_contents_for_printing/value_embedded_offset, rather than
10474 value_contents.
10475 * d-valprint.c (dynamic_array_type): Use
10476 value_contents_for_printing/value_embedded_offset, rather than
10477 value_contents.
10478 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10479 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10480 (java_print_value_fields): Take `offset' into account. Don't
10481 re-adjust `valaddr'. Instead pass down adjusted offsets.
10482 (java_val_print): Take `embedded_offset' into account. Pass it to
10483 java_print_value_fields.
10484 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10485 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10486 down adjusted offsets.
10487 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10488 (f_val_print): Take `embedded_offset' into account.
10489
7bfc9434
JB
104902011-01-21 Joel Brobecker <brobecker@adacore.com>
10491
10492 * inflow.c: Include "gdbcmd.h".
10493 (interactive_mode): New static global, moved here from top.c.
10494 (show_interactive_mode): New function, moved here from top.c.
10495 use gdb_has_a_terminal instead of input_from_terminal_p to
10496 determine the current mode.
10497 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10498 setting.
10499 (_initialize_inflow): Add the "set/show interactive-mode"
10500 commands. Moved here from top.c, after having adjusted slightly
10501 the help text.
10502 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10503 to inflow.c.
10504 (input_from_terminal_p): Remove handling of "interactive-mode"
10505 setting, moved to infow.c.
10506 (init_main): Remove creation of the "set/show interactive-mode"
10507 commands, moved to inflow.c.
10508
44603653
JB
105092011-01-19 Joel Brobecker <brobecker@adacore.com>
10510
10511 * NEWS: Add entry for native ia64-hpux support.
10512
4694da01
TT
105132011-01-19 Tom Tromey <tromey@redhat.com>
10514
10515 PR mi/8618:
10516 * thread.c (free_thread): Free 'name'.
10517 (print_thread_info): Emit thread name. Change CLI output.
10518 (thread_name_command): New function.
10519 (do_captured_thread_select): Emit newline.
10520 (_initialize_thread): Register 'thread name' command.
10521 * target.h (struct target_ops) <to_thread_name>: New field.
10522 (target_thread_name): New macro.
10523 * target.c (update_current_target): Handle to_thread_name.
10524 * python/py-infthread.c (thpy_get_name): New function.
10525 (thpy_set_name): Likewise.
10526 (thread_object_getset): Add "name".
10527 * linux-nat.c (linux_nat_thread_name): New function.
10528 (linux_nat_add_target): Set to_thread_name.
10529 * gdbthread.h (struct thread_info) <name>: New field.
10530
10d44370
JB
105312011-01-18 Joel Brobecker <brobecker@adacore.com>
10532
10533 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10534 (ada_val_print_1): Likewise.
10535
e3acb115
JB
105362011-01-18 Joel Brobecker <brobecker@adacore.com>
10537
10538 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10539 upper limit address is not greater than the function end address
10540 when the upper limit could not be computed using the debugging
10541 info.
10542
dc92e161
TT
105432011-01-17 Tom Tromey <tromey@redhat.com>
10544
10545 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10546 get_regcomp_error.
10547 * utils.c: Include gdb_regex.h.
10548 (do_regfree_cleanup): New function.
10549 (make_regfree_cleanup): Likewise.
10550 (get_regcomp_error): Likewise.
10551 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10552
f55af66d
TT
105532011-01-17 Tom Tromey <tromey@redhat.com>
10554
10555 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10556 re_compile_fastmap.
10557
a5a44b53
PM
105582011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10559
10560 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10561 for internal variables.
10562 (last_was_structop): New static variable.
10563 (COMPLETE): New token.
10564 (field_exp): New rule to group all '.' suffix handling.
10565 Add mark_struct_expression calls when approriate to be able
10566 to correctly find fields for completion.
10567 (yylex): Adapt to handle field completion and set INTVAR when
10568 required.
10569
2c291032
YQ
105702011-01-14 Yao Qi <yao@codesourcery.com>
10571
10572 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10573 save_reggroup, restore_reggroup and all_reggroup.
10574
447b483c
JB
105752011-01-14 Joel Brobecker <brobecker@adacore.com>
10576
10577 * ada-valprint. (ada_printchar): Use the correct type length
10578 in call to ada_emit_char.
10579 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10580
7b64a93b
PM
105812011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10582
10583 * solib-som.h (hpux_major_release): Declare variable here.
10584 * solib-som.c: Remove <sys/utsname.h> header.
10585 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10586 (hpux_major_release): Make global, change default value to
10587 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10588 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10589 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10590 Add "solib-som.h" header.
10591 (set_hpux_major_release): New function.
10592 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10593
4e18c053
MF
105942011-01-14 Mike Frysinger <vapier@gentoo.org>
10595
10596 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10597
a9df6b22
JB
105982011-01-14 Joel Brobecker <brobecker@adacore.com>
10599
10600 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10601 new-line at end of warning message.
10602 (ia64_hpux_store_register): Remove trailing new-line at end of
10603 error message.
10604 * ia64-hpux-tdep.c: Rephrase comment.
10605 * solib-ia64-hpux.c (struct dld_info): Change type of field
10606 dld_flags from "long long" to ULONGEST.
10607
ecb956dd
PA
106082011-01-14 Pedro Alves <pedro@codesourcery.com>
10609
10610 * target.h (deprecated_child_ops): Delete declaration.
10611 * target.c (deprecated_child_ops): Delete definition.
10612
76adfcae
PA
106132011-01-14 Pedro Alves <pedro@codesourcery.com>
10614
10615 * Makefile.in (hpux-thread.o): Delete rule.
10616 * configure.ac: Don't check for HPUX DCE threads support.
10617 * configure, config.in: Regenerate.
10618 * hppa-hpux-nat.c (child_suppress_run): Delete.
10619 (hppa_hpux_child_can_run): Delete.
10620 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10621 * hpux-thread.c: Delete.
10622
042e866e
JB
106232011-01-13 Joel Brobecker <brobecker@adacore.com>
10624
10625 * hpux-thread.c (hpux_pid_to_str): Delete.
10626
4ffa5a33
JB
106272011-01-13 Joel Brobecker <brobecker@adacore.com>
10628
10629 * ada-valprint.c (ada_emit_char): Remove strange code.
10630 Check that c is <= UCHAR_MAX before passing it to isascii.
10631 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10632
de8fa76c
JB
106332011-01-13 Joel Brobecker <brobecker@adacore.com>
10634
10635 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10636 to the case where instream is stdin.
10637
c4de7027
JB
106382011-01-13 Joel Brobecker <brobecker@adacore.com>
10639
10640 * ia64-tdep.h (struct regcache): Forward declare.
10641 (struct ia64_infcall_ops): New struct type.
10642 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10643 and "infcall_ops".
10644 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10645 Renames ia64_find_global_pointer.
10646 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10647 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10648 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10649 methods.
10650 (ia64_infcall_ops): New static global constant.
10651 (ia64_gdbarch_init): Set tdep->infcall_ops.
10652 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10653 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10654 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10655 (ia64_hpux_dummy_code): New static global constant.
10656 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10657 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10658 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10659 New function.
10660 (ia64_hpux_infcall_ops): New static global constant.
10661 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10662 for inferior function calls to work properly on ia64-hpux.
10663
77ca787b
JB
106642011-01-13 Joel Brobecker <brobecker@adacore.com>
10665
10666 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10667 * ia64-tdep.h (struct frame_info): forward declaration.
10668 (struct gdbarch_tdep): Add field size_of_register_frame.
10669 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10670 to determine the size of the register frame.
10671 (ia64_size_of_register_frame): New function.
10672 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10673 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10674 (IA64_HPUX_UREG_REASON): New macro.
10675 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10676 New functions.
10677 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10678 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10679 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10680 objects.
10681
92c9a463
JB
106822011-01-13 Joel Brobecker <brobecker@adacore.com>
10683
10684 Add support for ia64-hpux.
10685 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10686 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10687
10688 * configure.host: Add handling for ia64-hpux hosts. Add associated
10689 floatformats.
10690 * configure.tgt: Add handling for ia64-hpux targets.
10691 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10692 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10693 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10694
f688d93f
JB
106952011-01-13 Joel Brobecker <brobecker@adacore.com>
10696
10697 [ttrace] Compute thread list immediately after attach.
10698 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10699 New subprogram.
10700 (inf_ttrace_attach): Use it.
10701
1b89e62f
JB
107022011-01-13 Joel Brobecker <brobecker@adacore.com>
10703
10704 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10705 if we could not determine the frame's function address. Instead,
10706 use the frame's PC, and then continue.
10707
3e5e6e2a
JB
107082011-01-13 Joel Brobecker <brobecker@adacore.com>
10709
10710 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10711 not already defined.
10712
825d6d8a
JB
107132011-01-13 Joel Brobecker <brobecker@adacore.com>
10714
10715 * ia64-tdep.c (ia64_struct_type_p): New function.
10716 (ia64_extract_return_value): Handle integral values that are
10717 less than 8 bytes long.
10718 (ia64_push_dummy_call): Likewise.
10719
7458e667
JB
107202011-01-13 Joel Brobecker <brobecker@adacore.com>
10721
10722 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10723 floatformat_ia64_ext.
10724 (floatformat_ia64_ext_big): New static const.
10725 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10726
1b05df00
TT
107272011-01-12 Tom Tromey <tromey@redhat.com>
10728
10729 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10730 messages.
10731 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10732 (mi_cmd_thread_list_ids): Likewise.
10733 (mi_cmd_data_list_changed_registers): Likewise.
10734 (mi_cmd_data_list_register_values): Likewise.
10735 (mi_cmd_data_write_register_values): Likewise.
10736 (mi_cmd_data_evaluate_expression): Likewise.
10737 (mi_cmd_data_read_memory): Likewise.
10738 (mi_cmd_data_read_memory_bytes): Likewise.
10739 (mi_cmd_data_write_memory): Likewise.
10740 (mi_cmd_enable_timings): Likewise.
10741 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10742 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10743 (mi_cmd_var_delete): Likewise.
10744 (mi_cmd_var_set_format): Likewise.
10745 (mi_cmd_var_show_format): Likewise.
10746 (mi_cmd_var_info_num_children): Likewise.
10747 (mi_cmd_var_list_children): Likewise.
10748 (mi_cmd_var_info_type): Likewise.
10749 (mi_cmd_var_info_expression): Likewise.
10750 (mi_cmd_var_show_attributes): Likewise.
10751 (mi_cmd_var_assign): Likewise.
10752 (mi_cmd_var_update): Likewise.
10753 (mi_cmd_enable_pretty_printing): Likewise.
10754 (mi_cmd_var_set_update_range): Likewise.
10755 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10756 messages.
10757 (mi_cmd_target_file_put): Likewise.
10758 (mi_cmd_target_file_delete): Likewise.
10759 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10760 messages.
10761 (mi_cmd_stack_info_depth): Likewise.
10762 (mi_cmd_stack_list_locals): Likewise.
10763 (mi_cmd_stack_list_args): Likewise.
10764 (mi_cmd_stack_select_frame): Likewise.
10765 (mi_cmd_stack_select_frame): Likewise.
10766 (mi_cmd_stack_info_frame): Likewise.
10767 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10768 messages.
10769 (mi_cmd_file_list_exec_source_files): Likewise.
10770 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10771 (mi_cmd_env_cd): Likewise.
10772 (mi_cmd_env_path): Likewise.
10773 (mi_cmd_env_dir): Likewise.
10774 (mi_cmd_inferior_tty_show): Likewise.
10775 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10776 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10777 (mi_cmd_break_watch): Likewise.
10778
ad422571
TJB
107792011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10780
10781 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10782 (ppc_linux_insert_hw_breakpoint): Likewise.
10783 (ppc_linux_remove_hw_breakpoint): Likewise.
10784 (ppc_linux_insert_watchpoint): Likewise.
10785
c2ff108b
JK
107862011-01-12 Andrew Burgess <aburgess@broadcom.com>
10787 Jan Kratochvil <jan.kratochvil@redhat.com>
10788
10789 PR fortran/11104 and DWARF unbound arrays detection.
10790 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10791 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10792 unspecified upper bound.
10793 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10794 variables array_size_array, tmp_type and offset_item. New variable
10795 array. Remove call to f77_get_upperbound. New variables array_type
10796 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10797 the final call to deprecated_set_value_type.
10798
41e8491f
JK
107992011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10800
10801 Make value allocations more lazy.
10802 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10803 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10804 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10805 instead of allocate_value and set_value_lazy.
10806 * findvar.c (value_of_register_lazy): Likewise.
10807 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10808 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10809 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10810 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10811 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10812 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10813 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10814 the end, remove set_value_lazy there.
10815 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10816 instead of allocate_value and set_value_lazy when possible.
10817 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10818 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10819 of allocate_value and set_value_lazy.
10820 (value_from_contents_and_address): Use allocate_value_lazy instead of
10821 allocate_value and set_value_lazy when possible.
10822
b716877b
AB
108232011-01-12 Andrew Burgess <aburgess@broadcom.com>
10824
10825 * disasm.c (dump_insns): Support dumping opcodes for MI.
10826 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10827 dumping of instruction opcodes.
10828
d5ae309f
JB
108292011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10830
10831 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10832 appropiately.
10833
98871305
TT
108342011-01-11 Tom Tromey <tromey@redhat.com>
10835
10836 * thread.c (do_captured_thread_select): Emit newline before
10837 printing frame.
10838
c378eb4e
MS
108392011-01-11 Michael Snyder <msnyder@vmware.com>
10840
10841 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10842 * score-tdep.c: Ditto.
10843 * score-tdep.h: Ditto.
10844 * ser-base.c: Ditto.
10845 * ser-go32.c: Ditto.
10846 * serial.c: Ditto.
10847 * serial.h: Ditto.
10848 * ser-mingw.c: Ditto.
10849 * ser-pipe.c: Ditto.
10850 * ser-tcp.c: Ditto.
10851 * ser-unix.c: Ditto.
10852 * sh64-tdep.c: Ditto.
10853 * shnbsd-nat.c: Ditto.
10854 * sh-tdep.c: Ditto.
10855 * sh-tdep.h: Ditto.
10856 * solib.c: Ditto.
10857 * solib-darwin.c: Ditto.
10858 * solib-frv.c: Ditto.
10859 * solib.h: Ditto.
10860 * solib-irix.c: Ditto.
10861 * solib-osf.c: Ditto.
10862 * solib-pa64.c: Ditto.
10863 * solib-som.c: Ditto.
10864 * solib-spu.c: Ditto.
10865 * solib-sunos.c: Ditto.
10866 * solib-svr4.c: Ditto.
10867 * solist.h: Ditto.
10868 * sol-thread.c: Ditto.
10869 * somread.c: Ditto.
10870 * source.c: Ditto.
10871 * source.h: Ditto.
10872 * sparc64-linux-tdep.c: Ditto.
10873 * sparc64-tdep.c: Ditto.
10874 * sparc-linux-nat.c: Ditto.
10875 * sparc-linux-tdep.c: Ditto.
10876 * sparc-sol2-nat.c: Ditto.
10877 * sparc-sol2-tdep.c: Ditto.
10878 * sparc-tdep.c: Ditto.
10879 * sparc-tdep.h: Ditto.
10880 * spu-tdep.c: Ditto.
10881 * stabsread.c: Ditto.
10882 * stabsread.h: Ditto.
10883 * stack.c: Ditto.
10884 * symfile.c: Ditto.
10885 * symfile.h: Ditto.
10886 * symmisc.c: Ditto.
10887 * symtab.c: Ditto.
10888 * symtab.h: Ditto.
10889 * target.c: Ditto.
10890 * target-descriptions.c: Ditto.
10891 * target-descriptions.h: Ditto.
10892 * target.h: Ditto.
10893 * target-memory.c: Ditto.
10894 * terminal.h: Ditto.
10895 * thread.c: Ditto.
10896 * top.c: Ditto.
10897 * tracepoint.c: Ditto.
10898 * tracepoint.h: Ditto.
10899 * trad-frame.h: Ditto.
10900 * typeprint.c: Ditto.
10901
581e13c1
MS
109022011-01-11 Michael Snyder <msnyder@vmware.com>
10903
10904 * ui-file.c: Comment cleanup, mostly periods and spaces.
10905 * ui-file.h: Ditto.
10906 * ui-out.c: Ditto.
10907 * ui-out.h: Ditto.
10908 * utils.c: Ditto.
10909 * v850-tdep.c: Ditto.
10910 * valarith.c: Ditto.
10911 * valops.c: Ditto.
10912 * valprint.c: Ditto.
10913 * valprint.h: Ditto.
10914 * value.c: Ditto.
10915 * value.h: Ditto.
10916 * varobj.c: Ditto.
10917 * varobj.h: Ditto.
10918 * vax-tdep.c: Ditto.
10919 * vec.c: Ditto.
10920 * vec.h: Ditto.
10921 * version.h: Ditto.
10922 * windows-nat.c: Ditto.
10923 * windows-tdep.c: Ditto.
10924 * xcoffread.c: Ditto.
10925 * xcoffsolib.c: Ditto.
10926 * xml-support.c: Ditto.
10927 * xstormy16-tdep.c: Ditto.
10928 * xtensa-tdep.c: Ditto.
10929 * xtensa-tdep.h: Ditto.
10930
90e4670f
TJB
109312011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10932
10933 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10934 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10935
e09342b5
TJB
109362011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10937 Thiago Jung Bauermann <bauerman@br.ibm.com>
10938
10939 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10940 * breakpoint.h
e09342b5
TJB
10941 (struct breakpoint_ops) <resources_needed>: New method.
10942 Initialize to NULL in all existing breakpoint_ops instances.
10943 (struct breakpoint) <exact>: New field.
10944 (target_exact_watchpoints): Declare external global.
10945 * breakpoint.c (target_exact_watchpoints): New global flag.
10946 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10947 b->enable_state to bp_enabled before calling
10948 hw_watchpoint_used_count.
10949 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10950 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10951 if available.
10952 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10953 if the watchpoint is exact.
10954 (resources_needed_watchpoint): New function.
10955 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10956 (watch_command_1): Set b->exact if the user asked for an exact
10957 watchpoint and one can be set.
10958 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10959 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10960 the user asks for an exact watchpoint and one can be set. Return
10961 number of needed debug registers to watch the expression.
10962 * gdbtypes.c (is_scalar_type): New function, based on
10963 valprint.c:scalar_type_p.
10964 (is_scalar_type_recursive): New function.
10965 * gdbtypes.h (is_scalar_type_recursive): Declare.
10966 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10967 handle regions when ranged watchpoints are available.
10968 (create_watchpoint_request): New function.
10969 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10970 create_watchpoint_request.
10971 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10972 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10973 `set powerpc' and `show powerpc' commands.
10974 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10975 Mention documentation comment in the target macro.
10976 (target_region_ok_for_hw_watchpoint): Document return value.
10977
9fa40276
TJB
109782011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10979
10980 * breakpoint.c (update_watchpoint): Decide on using a software or
10981 hardware watchpoint after the bp_locations are created.
10982
77b06cd7
TJB
109832010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10984
10985 Convert hardware watchpoints to use breakpoint_ops.
10986 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10987 <insert_location>: ... this. Return int instead of void.
10988 Accept pointer to struct bp_location instead of pointer to
10989 struct breakpoint. Adapt all implementations.
f2eb0bc8 10990 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10991 <remove_location>: ... this. Accept pointer to struct bp_location
10992 instead of pointer to struct breakpoint. Adapt all implementations.
10993 * breakpoint.c (insert_catchpoint): Delete function.
10994 (insert_bp_location): Call the watchpoint or catchpoint's
10995 breakpoint_ops.insert method.
10996 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10997 breakpoint_ops.remove method.
10998 (insert_watchpoint, remove_watchpoint): New functions.
10999 (watchpoint_breakpoint_ops): New structure.
11000 (watch_command_1): Initialize the OPS field.
11001 * inf-child.c (inf_child_insert_fork_catchpoint)
11002 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11003 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11004 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11005 Delete functions.
11006 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11007 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11008 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11009 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11010 * target.c (update_current_target): Change default implementation of
11011 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11012 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11013 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11014 to_set_syscall_catchpoint to return_one.
11015 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11016 (debug_to_insert_exec_catchpoint): Report return value.
11017 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11018 (to_insert_exec_catchpoint): Change declaration to return int instead
11019 of void.
11020
9b20d036
MS
110212011-01-11 Michael Snyder <msnyder@vmware.com>
11022
11023 * arm-tdep.c: Internationalization.
11024 * c-lang.c: Ditto.
11025 * charset.c: Ditto.
11026 * fork-child.c: Ditto.
11027 * nto-procfs.c: Ditto.
11028 * ppc-sysv-tdep.c: Ditto.
11029 * procfs.c: Ditto.
11030 * remote-mips.c: Ditto.
11031 * remote.c: Ditto.
11032 * rs6000-nat.c: Ditto.
11033 * rs6000-tdep.c: Ditto.
11034 * target.c: Ditto.
11035 * valops.c: Ditto.
11036 * value.c: Ditto.
11037 * xml-support.c: Ditto.
11038 * mi/mi-cmd-break.c: Ditto.
11039 * mi/mi-cmd-var.c: Ditto.
11040 * mi/mi-interp.c: Ditto.
11041 * mi/mi-main.c: Ditto.
11042
dae477fe
AB
110432011-01-11 Andrew Burgess <aburgess@broadcom.com>
11044
11045 * remote-sim.c (gdbsim_store_register): Update API to
11046 sim_store_register to check more error conditions.
11047
0df8b418
MS
110482011-01-10 Michael Snyder <msnyder@vmware.com>
11049
11050 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11051 * nto-tdep.c: Ditto.
11052 * nto-tdep.h: Ditto.
11053 * objc-exp.y: Ditto.
11054 * objc-lang.c: Ditto.
11055 * objfiles.c: Ditto.
11056 * objfiles.h: Ditto.
11057 * observer.c: Ditto.
11058 * opencl-lang.c: Ditto.
11059 * osabi.c: Ditto.
11060 * parse.c: Ditto.
11061 * parser-defs.h: Ditto.
11062 * p-exp.y: Ditto.
11063 * p-lang.c: Ditto.
11064 * posix-hdep.c: Ditto.
11065 * ppcbug-rom.c: Ditto.
11066 * ppc-linux-nat.c: Ditto.
11067 * ppc-linux-tdep.c: Ditto.
11068 * ppc-linux-tdep.h: Ditto.
11069 * ppcnbsd-tdep.c: Ditto.
11070 * ppcobsd-tdep.c: Ditto.
11071 * ppcobsd-tdep.h: Ditto.
11072 * ppc-sysv-tdep.c: Ditto.
11073 * ppc-tdep.h: Ditto.
11074 * printcmd.c: Ditto.
11075 * proc-abi.c: Ditto.
11076 * proc-flags.c: Ditto.
11077 * procfs.c: Ditto.
11078 * proc-utils.h: Ditto.
11079 * progspace.h: Ditto.
11080 * prologue-value.c: Ditto.
11081 * prologue-value.h: Ditto.
11082 * psympriv.h: Ditto.
11083 * psymtab.c: Ditto.
11084 * p-typeprint.c: Ditto.
11085 * p-valprint.c: Ditto.
11086 * ravenscar-sparc-thread.c: Ditto.
11087 * ravenscar-thread.c: Ditto.
11088 * ravenscar-thread.h: Ditto.
11089 * record.c: Ditto.
11090 * regcache.c: Ditto.
11091 * regcache.h: Ditto.
11092 * remote.c: Ditto.
11093 * remote-fileio.c: Ditto.
11094 * remote-fileio.h: Ditto.
11095 * remote.h: Ditto.
11096 * remote-m32r-sdi.c: Ditto.
11097 * remote-mips.c: Ditto.
11098 * remote-sim.c: Ditto.
11099 * rs6000-aix-tdep.c: Ditto.
11100 * rs6000-nat.c: Ditto.
11101 * rs6000-tdep.c: Ditto.
11102
0d7a18f7
MS
111032011-01-10 Michael Snyder <msnyder@vmware.com>
11104
11105 * charset.c (validate): Internationalization.
11106 * coffread.c (read_one_sym): Ditto.
11107 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11108 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11109 * inflow.c (new_tty): Ditto.
11110 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11111 * m32c-tdep.c (m32c_return_value): Ditto.
11112 * mep-tdep.c (mep_store_return_value): Ditto.
11113 * score-tdep.c (score7_fetch_insn): Ditto.
11114 * ser-mingw.c (pipe_windows_open): Ditto.
11115 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11116 * spu-tdep.c (spu_register_type): Ditto.
11117 * tracepoint.c (trace_find_command): Ditto.
11118 * valarith.c (value_pos): Ditto.
11119
9a153e0b
JB
111202011-01-10 Joel Brobecker <brobecker@adacore.com>
11121
11122 * ada-valprint.c (printstr): Minor comment reformatting.
11123
35ecd2d6
MS
111242011-01-08 Michael Snyder <msnyder@vmware.com>
11125
11126 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11127 markup.
11128
1777feb0
MS
111292011-01-08 Michael Snyder <msnyder@vmware.com>
11130
11131 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11132 * hppa-hpux-tdep.c: Ditto.
11133 * hppa-linux-nat.c: Ditto.
11134 * hppa-linux-tdep.c: Ditto.
11135 * hppanbsd-tdep.c: Ditto.
11136 * hppa-tdep.c: Ditto.
11137 * hppa-tdep.h: Ditto.
11138 * hpux-thread.c: Ditto.
11139 * i386-cygwin-tdep.c: Ditto.
11140 * i386-darwin-nat.c: Ditto.
11141 * i386gnu-nat.c: Ditto.
11142 * i386-linux-nat.c: Ditto.
11143 * i386-linux-tdep.c: Ditto.
11144 * i386-nat.c: Ditto.
11145 * i386-nat.h: Ditto.
11146 * i386nbsd-tdep.c: Ditto.
11147 * i386-sol2-nat.c: Ditto.
11148 * i386-stub.c: Ditto.
11149 * i386-tdep.c: Ditto.
11150 * i386-tdep.h: Ditto.
11151 * i387-tdep.c: Ditto.
11152 * ia64-linux-nat.c: Ditto.
11153 * ia64-linux-tdep.c: Ditto.
11154 * ia64-tdep.c: Ditto.
11155 * infcall.c: Ditto.
11156 * infcall.h: Ditto.
11157 * infcmd.c: Ditto.
11158 * inferior.c: Ditto.
11159 * inferior.h: Ditto.
11160 * infloop.c: Ditto.
11161 * inflow.c: Ditto.
11162 * infrun.c: Ditto.
11163 * interps.c: Ditto.
11164 * interps.h: Ditto.
11165 * iq2000-tdep.c: Ditto.
11166 * irix5-nat.c: Ditto.
11167 * jit.c: Ditto.
11168 * jit.h: Ditto.
11169 * jv-exp.y: Ditto.
11170 * jv-lang.c: Ditto.
11171 * jv-lang.h: Ditto.
11172 * jv-typeprint.c: Ditto.
11173 * jv-valprint.c: Ditto.
11174 * language.c: Ditto.
11175 * language.h: Ditto.
11176 * linespec.c: Ditto.
11177 * linux-fork.c: Ditto.
11178 * linux-nat.c: Ditto.
11179 * linux-thread-db.c: Ditto.
11180 * lm32-tdep.c: Ditto.
11181
025bb325
MS
111822011-01-08 Michael Snyder <msnyder@vmware.com>
11183
11184 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11185 * m2-lang.c: Ditto.
11186 * m2-typeprint.c: Ditto.
11187 * m2-valprint.c: Ditto.
11188 * m32c-tdep.c: Ditto.
11189 * m32r-linux-nat.c: Ditto.
11190 * m32r-rom.c: Ditto.
11191 * m32r-tdep.c: Ditto.
11192 * m32r-tdep.h: Ditto.
11193 * m68hc11-tdep.c: Ditto.
11194 * m58klinux-nat.c: Ditto.
11195 * m68k-tdep.c: Ditto.
11196 * m88k-tdep.c: Ditto.
11197 * m88k-tdep.h: Ditto.
11198 * machoread.c: Ditto.
11199 * macrocmd.c: Ditto.
11200 * macroexp.c: Ditto.
11201 * macrotab.c: Ditto.
11202 * main.c: Ditto.
11203 * maint.c: Ditto.
11204 * mdebugread.c: Ditto.
11205 * mdebugread.h: Ditto.
11206 * memattr.c: Ditto.
11207 * memattr.h: Ditto.
11208 * memory-map.h: Ditto.
11209 * mep-tdep.c: Ditto.
11210 * microblaze-rom.c: Ditto.
11211 * microblaze-tdep.c: Ditto.
11212 * minsyms.c: Ditto.
11213 * mips-irix-tdep.c: Ditto.
11214 * mips-linux-nat.c: Ditto.
11215 * mips-linux-tdep.c: Ditto.
11216 * mips-linux-tdep.h: Ditto.
11217 * mipsnbsd-nat.c: Ditto.
11218 * mipsnbsd-tdep.c: Ditto.
11219 * mipsread.c: Ditto.
11220 * mips-tdep.c: Ditto.
11221 * mips-tdep.h: Ditto.
11222 * mn10300-linux-tdep.c: Ditto.
11223 * mn10300-tdep.c: Ditto.
11224 * mn10300-tdep.h: Ditto.
11225 * monitor.c: Ditto.
11226 * monitor.h: Ditto.
11227 * moxie-tdep.c: Ditto.
11228 * moxie-tdep.h: Ditto.
11229 * mt-tdep.c: Ditto.
11230
1642781b
MF
112312011-01-08 Mike Frysinger <vapier@gentoo.org>
11232
11233 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11234
394b0adb
JB
112352011-01-08 Robert Millan <rmh@gnu.org>
11236
11237 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11238
b670013c
MS
112392011-01-07 Michael Snyder <msnyder@vmware.com>
11240
11241 * charset.c (_initialize_charset): Fix typo in string.
11242
a743e542
MS
112432011-01-07 Michael Snyder <msnyder@vmware.com>
11244
11245 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11246 for i18n.
f2eb0bc8 11247 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11248 Split line so that operator goes to beginning of line.
11249 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11250 assignment out of if statement.
11251
0963b4bd
MS
112522011-01-07 Michael Snyder <msnyder@vmware.com>
11253
11254 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11255 * ada-lang.h: Ditto.
11256 * ada-tasks.c: Ditto.
11257 * ada-valprint.c: Ditto.
11258 * aix-threads.c: Ditto.
11259 * alpha-linux-nat.c: Ditto.
11260 * alpha-linux-tdep.c: Ditto.
11261 * alpha-mdebug-tdep.c: Ditto.
11262 * alpha-nat.c: Ditto.
11263 * alpha-osf1-tdep.c: Ditto.
11264 * alpha-tdep.c: Ditto.
11265 * alphabsd-nat.c: Ditto.
11266 * alphabsd-tdep.c: Ditto.
11267 * amd64-darwin-tdep.c: Ditto.
11268 * amd64-linux-nat.c: Ditto.
11269 * amd64-linux-tdep.c: Ditto.
11270 * amd64-sol2-tdep.c: Ditto.
11271 * amd64-tdep.c: Ditto.
11272 * amd64-fbsd-tdep.c: Ditto.
11273 * amd64-nbsd-tdep.c: Ditto.
11274 * amd64-obsd-tdep.c: Ditto.
11275 * amd64-linux-nat.c: Ditto.
11276 * amd64-linux-tdep.c: Ditto.
11277 * arm-tdep.c: Ditto.
11278 * arm-tdep.h: Ditto.
11279 * armnbsd-nat.c: Ditto.
11280 * avr-tdep.c: Ditto.
11281 * bfin-tdep.c: Ditto.
11282 * bsd-kvm.c: Ditto.
11283 * c-typeprintc: Ditto.
11284 * c-valprint.c: Ditto.
11285 * coff-pe-read.h: Ditto.
11286 * coffreead.c: Ditto.
11287 * cris-tdep.c: Ditto.
11288 * d-lang.c: Ditto.
11289 * darwin-nat-info.c: Ditto.
11290 * darwin-nat.c: Ditto.
11291 * dbug-rom.c: Ditto.
11292 * dbxread.c: Ditto.
11293 * dcache.c: Ditto.
11294 * dcache.h: Ditto.
11295 * dec-thread.c: Ditto.
11296 * defs.h: Ditto.
11297 * demangle.c: Ditto.
11298 * dicos-tdep.c: Ditto.
11299 * dictionary.c: Ditto.
11300 * dictionary.h: Ditto.
11301 * dink32-rom.c: Ditto.
11302 * disasm.c: Ditto.
11303 * doublest.c: Ditto.
11304 * dsrec.c: Ditto.
11305 * dummy-frame.c: Ditto.
11306 * dwarf2-frame.c: Ditto.
11307 * dwarf2expr.c: Ditto.
11308 * dwarf2loc.c: Ditto.
11309 * dwarf2read.c: Ditto.
11310 * elfread.c: Ditto.
11311 * environ.c: Ditto.
11312 * eval.c: Ditto.
11313 * event-top.h: Ditto.
11314 * exceptions.c: Ditto.
11315 * exceptions.h: Ditto.
11316 * exec.c: Ditto.
11317 * expprint.c: Ditto.
11318 * expression.h: Ditto.
11319 * f-exp.y: Ditto.
11320 * f-lang.c: Ditto.
11321 * f-lang.h: Ditto.
11322 * f-typeprint.c: Ditto.
11323 * f-valprint.c: Ditto.
11324 * fbsd-nat.c: Ditto.
11325 * findvar.c: Ditto.
11326 * fork-child.c: Ditto.
11327 * frame.c: Ditto.
11328 * frame.h: Ditto.
11329 * frv-linux-tdep.c: Ditto.
11330 * frv-tdep.c: Ditto.
11331 * gcore.c: Ditto.
11332 * gdb-stabs.h: Ditto.
11333 * gdb_assert.h: Ditto.
11334 * gdb_string.h: Ditto.
11335 * gdb_thread_db.h: Ditto.
11336 * gdb_wait.h: Ditto.
11337 * gdbarch.sh: Ditto.
11338 * gdbcore.h: Ditto.
11339 * gdbthread.h: Ditto.
11340 * gdbtypes.c: Ditto.
11341 * gdbtypes.h: Ditto.
11342 * gnu-nat.c: Ditto.
11343 * gnu-nat.h: Ditto.
11344 * gnu-v2-abi.c: Ditto.
11345 * gnu-v3-abi.c: Ditto.
11346 * go32-nat.c: Ditto.
11347 * gdbarch.c: Regenerate.
11348 * gdbarch.h: Regenerate.
11349
ac74f770
MS
113502011-01-07 Michael Snyder <msnyder@vmware.com>
11351
11352 * ax-gdb.c: Adjust some long output strings.
11353 * breakpoint.c: Ditto.
11354 * charset.c: Ditto.
11355 * cp-abi.c: Ditto.
11356 * infcall.c: Ditto.
11357 * infrun.c: Ditto.
11358 * linux-nat.c: Ditto.
11359 * solib-pa64.c: Ditto.
11360 * solib-som.c: Ditto.
11361
d8e22779
TT
113622011-01-06 Tom Tromey <tromey@redhat.com>
11363
11364 PR python/12367:
11365 * NEWS: Add item.
11366 * python/python.c (GdbMethods): Add "newest_frame" method.
11367 * python/python-internal.h (gdbpy_newest_frame): Declare.
11368 * python/py-frame.c (gdbpy_newest_frame): New function.
11369
a255712f
PP
113702010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11371
11372 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11373 * jit.c (jit_debug): New variable.
11374 (show_jit_debug): New function.
11375 (struct target_buffer): Use ULONGEST.
11376 (bfd_open_from_target_memory): Likewise.
11377 (jit_register_code, jit_inferior_init): Add debug output.
11378 (_initialize_jit): Register "debug jit" command.
11379
ccfc3d6e
TT
113802011-01-06 Tom Tromey <tromey@redhat.com>
11381
11382 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11383 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11384 and ARCH_FRAME.
11385
57126e4a
TT
113862011-01-06 Tom Tromey <tromey@redhat.com>
11387
11388 * python/py-frame.c (frapy_block): Use get_frame_block.
11389
16dfc9ce
JB
113902011-01-06 Joel Brobecker <brobecker@adacore.com>
11391
11392 Do not stop on SIGPRIO signals by default
11393 * infrun.c (_initialize_infrun): Unset signal_stop and
11394 signal_print for TARGET_SIGNAL_PRIO.
11395
b1ce2347
JB
113962011-01-06 Joel Brobecker <brobecker@adacore.com>
11397
11398 * ada-tasks.c: Fix style violation in comment.
11399
8f7e195f
JB
114002011-01-06 Joel Brobecker <brobecker@adacore.com>
11401
11402 * linespec.c (decode_compound, find_method): Remove trailing \n
11403 at end of error string.
11404 * solib-irix.c (irix_current_sos): Likewise.
11405 * varobj.c (uninstall_variable): Likewise.
11406
e9bdf92c
JB
114072011-01-06 Joel Brobecker <brobecker@adacore.com>
11408
11409 * copyright.py: New script.
11410 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11411 Launch emacs without exec'ing. Call copyright.py afterwards.
11412
3e43a32a
MS
114132011-01-05 Michael Snyder <msnyder@vmware.com>
11414
11415 * addrmap.c: Shorten lines of >= 80 columns.
11416 * arch-utils.c: Ditto.
11417 * arch-utils.h: Ditto.
11418 * ax-gdb.c: Ditto.
11419 * ax-general.c: Ditto.
11420 * bcache.c: Ditto.
11421 * blockframe.c: Ditto.
11422 * breakpoint.c: Ditto.
11423 * buildsym.c: Ditto.
11424 * c-lang.c: Ditto.
11425 * c-typeprint.c: Ditto.
11426 * charset.c: Ditto.
11427 * coffread.c: Ditto.
11428 * command.h: Ditto.
11429 * corelow.c: Ditto.
11430 * cp-abi.c: Ditto.
11431 * cp-namespace.c: Ditto.
11432 * cp-support.c: Ditto.
11433 * dbug-rom.c: Ditto.
11434 * dbxread.c: Ditto.
11435 * defs.h: Ditto.
11436 * dfp.c: Ditto.
11437 * dfp.h: Ditto.
11438 * dictionary.c: Ditto.
11439 * disasm.c: Ditto.
11440 * doublest.c: Ditto.
11441 * dwarf2-frame.c: Ditto.
11442 * dwarf2expr.c: Ditto.
11443 * dwarf2loc.c: Ditto.
11444 * dwarf2read.c: Ditto.
11445 * elfread.c: Ditto.
11446 * eval.c: Ditto.
11447 * event-loop.c: Ditto.
11448 * event-loop.h: Ditto.
11449 * exceptions.h: Ditto.
11450 * exec.c: Ditto.
11451 * expprint.c: Ditto.
11452 * expression.h: Ditto.
11453 * f-lang.c: Ditto.
11454 * f-valprint.c: Ditto.
11455 * findcmd.c: Ditto.
11456 * frame-base.c: Ditto.
11457 * frame-unwind.c: Ditto.
11458 * frame-unwind.h: Ditto.
11459 * frame.c: Ditto.
11460 * frame.h: Ditto.
11461 * gcore.c: Ditto.
11462 * gdb-stabs.h: Ditto.
11463 * gdb_assert.h: Ditto.
11464 * gdb_dirent.h: Ditto.
11465 * gdb_obstack.h: Ditto.
11466 * gdbcore.h: Ditto.
11467 * gdbtypes.c: Ditto.
11468 * gdbtypes.h: Ditto.
11469 * inf-ttrace.c: Ditto.
11470 * infcall.c: Ditto.
11471 * infcmd.c: Ditto.
11472 * inflow.c: Ditto.
11473 * infrun.c: Ditto.
11474 * inline-frame.h: Ditto.
11475 * language.c: Ditto.
11476 * language.h: Ditto.
11477 * libunwind-frame.c: Ditto.
11478 * libunwind-frame.h: Ditto.
11479 * linespec.c: Ditto.
11480 * linux-nat.c: Ditto.
11481 * linux-nat.h: Ditto.
11482 * linux-thread-db.c: Ditto.
11483 * machoread.c: Ditto.
11484 * macroexp.c: Ditto.
11485 * macrotab.c: Ditto.
11486 * main.c: Ditto.
11487 * maint.c: Ditto.
11488 * mdebugread.c: Ditto.
11489 * memattr.c: Ditto.
11490 * minsyms.c: Ditto.
11491 * monitor.c: Ditto.
11492 * monitor.h: Ditto.
11493 * objfiles.c: Ditto.
11494 * objfiles.h: Ditto.
11495 * osabi.c: Ditto.
11496 * p-typeprint.c: Ditto.
11497 * p-valprint.c: Ditto.
11498 * parse.c: Ditto.
11499 * printcmd.c: Ditto.
11500 * proc-events.c: Ditto.
11501 * procfs.c: Ditto.
11502 * progspace.c: Ditto.
11503 * progspace.h: Ditto.
11504 * psympriv.h: Ditto.
11505 * psymtab.c: Ditto.
11506 * record.c: Ditto.
11507 * regcache.c: Ditto.
11508 * regcache.h: Ditto.
11509 * remote-fileio.c: Ditto.
11510 * remote.c: Ditto.
11511 * ser-mingw.c: Ditto.
11512 * ser-tcp.c: Ditto.
11513 * ser-unix.c: Ditto.
11514 * serial.c: Ditto.
11515 * serial.h: Ditto.
11516 * solib-frv.c: Ditto.
11517 * solib-irix.c: Ditto.
11518 * solib-osf.c: Ditto.
11519 * solib-pa64.c: Ditto.
11520 * solib-som.c: Ditto.
11521 * solib-sunos.c: Ditto.
11522 * solib-svr4.c: Ditto.
11523 * solib-target.c: Ditto.
11524 * solib.c: Ditto.
11525 * somread.c: Ditto.
11526 * source.c: Ditto.
11527 * stabsread.c: Ditto.
11528 * stabsread.c: Ditto.
11529 * stack.c: Ditto.
11530 * stack.h: Ditto.
11531 * symfile-mem.c: Ditto.
11532 * symfile.c: Ditto.
11533 * symfile.h: Ditto.
11534 * symmisc.c: Ditto.
11535 * symtab.c: Ditto.
11536 * symtab.h: Ditto.
11537 * target-descriptions.c: Ditto.
11538 * target-memory.c: Ditto.
11539 * target.c: Ditto.
11540 * target.h: Ditto.
11541 * terminal.h: Ditto.
11542 * thread.c: Ditto.
11543 * top.c: Ditto.
11544 * tracepoint.c: Ditto.
11545 * tracepoint.h: Ditto.
11546 * ui-file.c: Ditto.
11547 * ui-file.h: Ditto.
11548 * ui-out.h: Ditto.
11549 * user-regs.c: Ditto.
11550 * user-regs.h: Ditto.
11551 * utils.c: Ditto.
11552 * valarith.c: Ditto.
11553 * valops.c: Ditto.
11554 * valprint.c: Ditto.
11555 * valprint.h: Ditto.
11556 * value.c: Ditto.
11557 * varobj.c: Ditto.
11558 * varobj.h: Ditto.
11559 * vec.h: Ditto.
11560 * xcoffread.c: Ditto.
11561 * xcoffsolib.c: Ditto.
11562 * xcoffsolib.h: Ditto.
11563 * xml-syscall.c: Ditto.
11564 * xml-tdesc.c: Ditto.
11565
9a2b4c1b
MS
115662011-01-05 Michael Snyder <msnyder@vmware.com>
11567
11568 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11569 * cli/cli-decode.c: Ditto.
11570 * cli/cli-dump.c: Ditto.
11571 * cli/cli-logging.c: Ditto.
11572 * cli/cli-script.c: Ditto.
11573 * cli/cli-setshow.c: Ditto.
11574 * common/signals.c: Ditto.
11575 * mi/mi-cmd-break.c: Ditto.
11576 * mi/mi-cmd-disas.c: Ditto.
11577 * mi/mi-cmd-stack.c: Ditto.
11578 * mi/mi-cmd-var.c: Ditto.
11579 * mi/mi-cmds.c: Ditto.
11580 * mi/mi-common.h: Ditto.
11581 * mi/mi-console.c: Ditto.
11582 * mi/mi-interp.c: Ditto.
11583 * mi/mi-main.c: Ditto.
11584 * osf-share/cma_attr.c: Ditto.
11585 * osf-share/cma_deb_core.h: Ditto.
11586 * osf-share/cma_debug_client.h: Ditto.
11587 * osf-share/cma_handle.h: Ditto.
11588 * osf-share/cma_mutex.h: Ditto.
11589 * osf-share/cma_stack_int.h: Ditto.
11590 * osf-share/cma_tcb_defs.h: Ditto.
11591 * python/py-auto-load.c: Ditto.
11592 * python/py-breakpoint.c: Ditto.
11593 * python/py-cmd.c: Ditto.
11594 * python/py-frame.c: Ditto.
11595 * python/py-objfile.c: Ditto.
11596 * python/py-param.c: Ditto.
11597 * python/py-progspace.c: Ditto.
11598 * python/py-symbol.c: Ditto.
11599 * python/py-value.c: Ditto.
11600 * python/python-internal.h: Ditto.
11601 * python/python.c: Ditto.
11602 * tui/tui-data.c: Ditto.
11603 * tui/tui-disasm.c: Ditto.
11604 * tui/tui-hooks.c: Ditto.
11605 * tui/tui-io.c: Ditto.
11606 * tui/tui-layout.c: Ditto.
11607 * tui/tui-regs.c: Ditto.
11608 * tui/tui-source.c: Ditto.
11609 * tui/tui-stack.c: Ditto.
11610 * tui/tui-win.c: Ditto.
11611 * tui/tui-windata.c: Ditto.
11612 * tui/tui-winsource.c: Ditto.
11613
44944448
JB
116142011-01-05 Joel Brobecker <brobecker@adacore.com>
11615
11616 * configure.ac, gdb.1: Copyright year update.
11617
ebedcab5
JK
116182011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11619
11620 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11621 this_pc_in_block, morestack_msym and morestack_name. Check for
11622 "__morestack" minimal symbol there.
11623
e5cc9f32
JB
116242011-01-03 Joel Brobecker <brobecker@adacore.com>
11625
11626 * symfile.c (find_sym_fns): Add call to dont_repeat.
11627
7b6bb8da
JB
116282011-01-01 Joel Brobecker <brobecker@adacore.com>
11629
11630 Copyright year update in most files (performed by copyright.sh).
11631
71ce852c
JB
116322011-01-01 Joel Brobecker <brobecker@adacore.com>
11633
11634 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11635
c3c1ebe8 11636For older changes see ChangeLog-2010.
c906108c
SS
11637\f
11638Local Variables:
11639mode: change-log
11640left-margin: 8
11641fill-column: 74
11642version-control: never
57da7796 11643coding: utf-8
c906108c 11644End:
This page took 2.311294 seconds and 4 git commands to generate.