2011-12-05 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fbbd034e
AS
12011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
4 `i'(-Wshadow).
5
a5ff8356 62011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
7
8 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
9
102011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
11
a5ff8356
AS
12 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
13 of `tdep'(-Wshadow).
14
93f2a35e
JK
152011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
16
17 Fix compilation --without-expat.
18 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
19 from ...
20 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
21
2268b414
JK
222011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
23 Jan Kratochvil <jan.kratochvil@redhat.com>
24
25 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
26 * features/library-list-svr4.dtd: New file.
27 * remote.c (PACKET_qXfer_libraries_svr4): New.
28 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
29 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
30 * solib-svr4.c (struct svr4_library_list): New.
31 [HAVE_LIBEXPAT]: Include xml-support.h.
32 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
33 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
34 [HAVE_LIBEXPAT] (svr4_library_list_children)
35 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
36 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
37 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
38 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
39 (svr4_read_so_list): Extend the corruption message by addresses.
40 (svr4_current_sos): New variable library_list, call
41 svr4_current_sos_via_xfer_libraries.
42 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
43
585861ea
JK
442011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
45
46 PR threads/13448
47 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
48 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
49
9750bca9
JK
502011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
51
52 PR breakpoints/13346
53 * dwarf2read.c (process_psymtab_comp_unit): Set
54 PSYMTABS_ADDRMAP_SUPPORTED.
55 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
56 validity. New field psymtabs_addrmap_supported.
57 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
58 psymtabs_addrmap_supported.
59 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
60 !PSYMTABS_ADDRMAP_SUPPORTED.
61 (dump_psymtab, maintenance_info_psymtabs): Print also
62 psymtabs_addrmap_supported.
63
f28c316a
DE
642011-12-01 Doug Evans <dje@google.com>
65
66 * python/py-type.c (type_object_methods): Fix "array" doc string.
67
fc0ae648
AB
682011-12-01 Andrew Burgess <aburgess@broadcom.com>
69
70 * source.c (print_source_lines_base): Fix missing braces on else
71 clause leading to additional output.
72
d6db1fab
UW
732011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
74
75 * s390-nat.c (SUBOFF): Remove.
76 (s390_native_supply, s390_native_collect): New functions.
77 (supply_gregset, supply_fpregset): Use s390_native_supply.
78 (fill_gregset, fill_fpregset): Use s390_native_collect.
79
80 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
81 (s390_unwind_pseudo_register): New function.
82 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
83 registers instead of PC and CC.
84 (s390_backchain_frame_unwind_cache): Likewise.
85 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
86 full GPR pseudos.
87 (s390_trad_frame_prev_register): New function.
88 (s390_frame_prev_register): Use it.
89 (s390_sigtramp_frame_prev_register): Likewise.
90 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
91 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
92 special callback to unwind any pseudo.
93
94 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
95 * features/s390-core64.xml: Likewise.
96 * features/s390x-core64.xml: Likewise.
97 * features/s390-linux32.c: Regenerate.
98 * features/s390-linux64.c: Likewise.
99 * features/s390x-linux64.c: Likewise.
100
1dd635ac
UW
1012011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
102
103 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
104
0161e4b9
UW
1052011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
106
107 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
108 instruction. Add more diagnostic output.
109
0c36327f
AS
1102011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
111
112 * MAINTAINERS (Write After Approval): Add myself to the list.
113
b4264740
SD
1142011-11-29 Sanjoy Das <sdas@igalia.com>
115
116 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
117 (jit_bfd_try_read_symtab): Fix comments.
118
87326c78
DD
1192011-11-28 DJ Delorie <dj@redhat.com>
120
121 * NEWS: Mention RL78 simulator.
122
1e3a8f45
JB
1232011-11-28 Joel Brobecker <brobecker@adacore.com>
124
125 * symfile.h (struct quick_symbol_functions): Fix the documentation
126 of field map_matching_symbols, as symbols are sorted using
127 strcmp_iw_ordered, not strcmp_iw.
128
265e52c3
JB
1292011-11-28 Paul Hilfinger <hilfinger@adacore.com>
130
131 * symfile.h (struct quick_symbol_functions): Update the
132 documentation for field map_matching_symbols.
133
1a1d5513
JB
1342011-11-28 Joel Brobecker <brobecker@adacore.com>
135
136 * ada-lang.c (compare_names): Fix wrong return value in case
137 string1 starts with the same contents as string2, followed
138 by an underscore that do not start a symbol name suffix.
139
5d9c5995
PM
1402011-11-28 Phil Muldoon <pmuldoon@redhat.com>
141
142 PR python/13369
143 PR python/13374
144
145 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
146 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
147 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
148 exceptions.
149 * python/py-type.c (typy_strip_typedefs): Ditto.
150 (typy_legacy_template_argument): Ditto.
151 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
152 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
153
2bf50f6f
JB
1542011-11-27 Joel Brobecker <brobecker@acacore.com>
155
156 * remote.c (remote_get_tracepoint_status): Delete addrbuf
157 local variable. Avoid use of sprintf_vma.
158
744ab88c
SD
1592011-11-27 Sanjoy Das <sdas@igalia.com>
160
161 Fix regression in jit.exp.
162 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
163 (jit_register_code): Set the jit_objfile_data field to the correct
164 value.
165
46ad3598
UW
1662011-11-25  Uros Bizjak  <ubizjak@gmail.com>
167
168 * alpha-tdep.c (br_opcode): New.
169 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
170 (alpha_deal_with_atomic_sequence): New function.
171 (alpha_gdbarch_init): Handle single stepping of atomic sequences
172 with alpha_deal_with_atomic_sequence.
173
e4c5f296
TG
1742011-11-24 Tristan Gingold <gingold@adacore.com>
175
176 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
177 fields. Add oso_sym, end_sym and nbr_syms.
178 (macho_register_oso): Change interface.
179 (macho_symtab_add_minsym): New function.
180 (macho_symtab_read): Rewritten.
181 (get_archive_prefix_len): Remove trailing blanks.
182 (oso_el_compare_name): Add comment.
183 (struct macho_sym_hash_entry): New structure.
184 (macho_relocate_common_syms): Remove.
185 (macho_sym_hash_newfunc): New function.
186 (macho_resolve_oso_sym_with_minsym): Likewise.
187 (macho_add_oso_symfile): Rewritten.
188 (macho_symfile_read_all_oso): Remove trailing blanks.
189 Adjust code to free oso vector.
190 (macho_symfile_read): Likewise.
191 Move code to initialize minimal symbol
192
130854df
MR
1932011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
194
195 * mips-tdep.c (extended_offset): Fix formatting.
196
3d7bb9d9
DE
1972011-11-23 Doug Evans <dje@google.com>
198
199 * dwarf2read.c (dw2_lookup_symtab): Add comment.
200 (dw2_expand_symtabs_with_filename): Ditto.
201 (dw2_expand_symtabs_matching): Ditto.
202 (dw2_map_symbol_filenames): Ditto.
203
1fbf5ada
JB
2042011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
205
206 * ada-lang.c (assign_aggregate): Minor reformatting.
207
d984108d
JB
2082011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
209
210 * ada-lang.c (assign_aggregate): Remove declaration of local
211 variable `i' which is shadowing another variable with the same
212 name declared in the outer scope.
213
18af8284
JB
2142011-11-23 Joel Brobecker <brobecker@adacore.com>
215
216 * ada-lang.c (get_base_type): Renames base_type. Adjust all
217 calls throughout this file.
218
1fc7b5d7
JB
2192011-11-23 Joel Brobecker <brobecker@adacore.com>
220
221 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
222 FormatMessage.
223
36dfb11c
TT
2242011-11-22 Tom Tromey <tromey@redhat.com>
225
226 PR mi/8444:
227 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
228 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
229 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
230 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
231 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
232 (print_it_catch_syscall, print_it_catch_exec)
233 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
234 (bpstat_print): Add 'kind' argument. Handle
235 TARGET_WAITKIND_LOADED.
236 * infrun.c (normal_stop): Update for bpstat_print change. Don't
237 handle TARGET_WAITKIND_LOADED here.
238 * breakpoint.h (bpstat_print): Update.
239
5bd6aa83
TT
2402011-11-22 Tom Tromey <tromey@redhat.com>
241
242 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
243
f5afdc18
TT
2442011-11-22 Tom Tromey <tromey@redhat.com>
245
246 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
247 Use static_assert to check the size of
248 async_reason_string_lookup.
249 * common/gdb_assert.h (static_assert): New macro.
250
a3769e0c
AM
2512011-11-22 Alan Modra <amodra@gmail.com>
252
253 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
254 destination calculation. Don't expect >> to sign extend. Don't
255 add a break if branch lands inside the sequence anywhere.
256
56767571
KS
2572011-11-21 Keith Seitz <keiths@redhat.com>
258
259 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
260 -var-evaluate-expression of an enumeration and fix expected result.
261 * gdb.mi/mi2-varvdisplay.exp: Likewise.
262
8443c207
KY
2632011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
264
265 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
266 the case where osdata->items is empty. Rename column names to a
267 canonical form to avoid problems with unusual column names.
268
97643830
YQ
2692011-11-21 Yao Qi <yao@codesourcery.com>
270
271 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
272
f196051f
SS
2732011-11-20 Stan Shebs <stan@codesourcery.com>
274
275 * NEWS: Mention tracepoint additions.
276 * breakpoint.h (struct tracepoint): New field traceframe_usage.
277 * breakpoint.c (print_one_breakpoint_location): Identify
278 tracepoints as such when reporting hit counts, report
279 trace buffer usage.
280 (create_tracepoint_from_upload): Copy status info.
281 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
282 add fields user_name, notes, start_time, stop_time.
283 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
284 * tracepoint.c (trace_user): New global.
285 (trace_notes): New global.
286 (trace_stop_notes): New global.
287 (start_tracing): Add argument and trace note handling.
288 (stop_tracing): Ditto.
289 (trace_start_command): Add notes argument.
290 (trace_stop_command): Ditto.
291 (trace_status_command): Report additional status info.
292 (trace_status_mi): Similarly.
293 (trace_save): Update, record tracepoint status.
294 (set_disconnected_tracing): Call target method directly.
295 (send_disconnected_tracing_value): Remove.
296 (set_trace_user): New function.
297 (set_trace_notes): New function.
298 (set_trace_stop_notes): New function.
299 (parse_trace_status): Handle additional status.
300 (parse_tracepoint_status): New function.
301 (parse_tracepoint_definition): Call it.
302 (tfile_get_tracepoint_status): New function.
303 (init_tfile_ops): Use it.
304 (_initialize_tracepoint): Add new setshows.
305 * target.h (struct target_ops): New methods to_get_tracepoint_status
306 and to_set_trace_notes.
307 (target_get_tracepoint_status): New macro.
308 (target_set_trace_notes): New macro.
309 * target.c (update_current_target): Add new methods.
310 * remote.c (remote_get_tracepoint_status): New function.
311 (remote_set_trace_notes): New function.
312 (init_remote_ops): Add them.
313 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
314 (mi_cmd_trace_stop): Ditto.
315
3623dc3a
SD
3162011-11-20 Sanjoy Das <sdas@igalia.com>
317
318 * jit.c: Include regcache.h.
319 (jit_gdbarch_data, jit_frame_unwind): New static variables.
320 (jit_unwind_reg_set_impl, free_reg_value_impl)
321 (jit_unwind_reg_get_impl, jit_frame_sniffer)
322 (jit_frame_unwind_stop_reason, jit_frame_this_id)
323 (jit_frame_prev_register, jit_dealloc_cache)
324 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
325 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
326 jit_prepend_unwinder.
327 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
328
1825a88d
SD
3292011-11-20 Sanjoy Das <sdas@igalia.com>
330
331 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
332 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
333 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
334 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
335 (finalize_symtab, jit_object_close_impl)
336 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
337 (free_objfile_data): New functions.
338 (_initialize_jit): Register jit_objfile_data with a proper cleanup
339 function.
340
784c47ee
SD
3412011-11-20 Sanjoy Das <sdas@igalia.com>
342
343 * jit.c: Include gdb-dlfcn.h.
344 (loaded_jit_reader, reader_init_fn_sym): New static variables.
345 (jit_reader_load, jit_reader_load_command)
346 (jit_reader_unload_command): New functions.
347 (_initialize_jit): Add commands "jit-reader-load" and
348 "jit-reader-unload".
349
a2d08b9e
SD
3502011-11-20 Sanjoy Das <sdas@igalia.com>
351
352 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
353 * config.in: Add new #define HAVE_LIBDL.
354 * configure.ac: Add check for -ldl.
355 * configure: Re-generated by autoconf.
356 * gdb-dlfcn.c: New file.
357 * gdb-dlfcn.h: New file.
358
b8e0a31c
SD
3592011-11-20 Sanjoy Das <sdas@igalia.com>
360
361 * config.in: Add new #defines: JIT_READER_DIR and
362 JIT_READER_DIR_RELOCATABLE.
363 * configure.ac: New GDB directory entry for jit-reader-dir.
364 * configure: Re-generated by autoconf.
365 * jit.c: New static variable: const char *jit_reader_dir.
366 (_initialize_jit): Relocate jit_reader_dir.
367
f997c383
SD
3682011-11-20 Sanjoy Das <sdas@igalia.com>
369
370 * Makefile.in: Add jit-reader.h as a header. Have it installed in
371 $(includedir)/gdb.
372 * configure.ac: Generate a correct value for TARGET_PTR for
373 jit-reader.h. Tell configure to generate jit-reader.h from
374 jit-reader.in.
375 * configure: Re-generated by autoconf.
376 * jit-reader.in: New file.
377 * jit.c: Include jit-reader.h.
378
dc8c0494
SD
3792011-11-20 Sanjoy Das <sdas@igalia.com>
380
381 * MAINTAINERS (Write After Approval): Add myself to the list.
382
01efb936
UW
3832011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
384
385 * findvar.c (read_frame_register_value): Respect value_offset
386 of the register value. Remove big-endian special case.
387
732f3f12
TT
3882011-11-18 Tom Tromey <tromey@redhat.com>
389
390 PR build/7196:
391 * remote.c (putpkt_for_catch_errors): New function.
392 (remote_kill): Use it.
393
bfccc43c
YQ
3942011-11-18 Yao Qi <yao@codesourcery.com>
395
396 * breakpoint.c (create_breakpoint): Produce query message according to
397 breakpoint's type.
398 Allocate tracepoint per correct type.
399 Don't check SALs for pending fast tracepoints.
400 * tracepoint.c (process_tracepoint_on_disconnect): New.
401 (disconnect_tracing): Call process_tracepoint_on_disconnect.
402
3ea46bff
YQ
4032011-11-18 Yao Qi <yao@codesourcery.com>
404
405 * breakpoint.c (install_breakpoint): Add one more parameter so that
406 update_global_location_list is called conditionally.
407 (create_fork_vfork_event_catchpoint): Update.
408 (create_syscall_event_catchpoint): Update.
409 (create_breakpoint_sal): Update.
410 (create_breakpoint_sal): Update. Call do_cleanups before
411 install_breakpoint.
412 * ada-lang.c (create_ada_exception_catchpoint): Update.
413 * breakpoint.h (install_breakpoint): Update declaration.
414
598cfb71
UW
4152011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
416
417 * spu-tdep.c (spu_return_value): Fix handling of
418 TYPE_CALLING_CONVENTION annotation.
419
caf4328c
UW
4202011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
421
422 * skip.c (skip_function_command): Work around uninitialized
423 variable warning.
424
2b54dda2
DM
4252011-11-16 David S. Miller <davem@davemloft.net>
426
427 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
428 'tv_usec' to long for printf since these fields have a type which
429 varies.
430
93bf33fd
DE
4312011-11-15 Doug Evans <dje@google.com>
432
433 * buildsym.c (add_symbol_to_list): Delete outdated comment.
434
9cc10fd1
PK
4352011-11-15 Paul Koning <paul_koning@dell.com>
436
437 * python/py-type.c (typy_get_composite): New function.
438 (typy_nonzero): New function.
439 (typy_values): Rename from typy_fields.
440 (typy_fields): New function.
441 (typy_length): Raise exception if not struct, union, or enum type.
442 (typy_getitem): Ditto.
443 (typy_has_key): Ditto.
444 (typy_make_iter): Ditto.
445
c011a4f4
DE
4462011-11-15 Doug Evans <dje@google.com>
447
448 * NEWS: Mention new parameter basenames-may-differ.
449 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
450 ! basenames_may_differ.
451 * psymtab.c (lookup_partial_symtab): Ditto.
452 * symtab.c (lookup_symtab): Ditto.
453 (basenames_may_differ): New global.
454 (_initialize_symtab): New parameter basenames-may-differ.
455 * symtab.h (basenames_may_differ): Declare.
456
865ecab4
LM
4572011-11-15 Pedro Alves <pedro@codesourcery.com>
458 Luis Machado <lgustavo@codesourcery.com>
459
460 * auxv.c: Include observer.h.
461 (auxv_inferior_data_cleanup): New.
462 (invalidate_auxv_cache_inf): New.
463 (invalidate_auxv_cache): New.
464 (get_auxv_inferior_data): New.
465 (auxv_inferior_data): New static global.
466 (auxv_info): New structure.
467 (target_auxv_search): Use get_auxv_inferior_data instead of
468 target_read_alloc and don't free cached buffers.
469 (fprint_target_auxv): Likewise
470 (_initialize_auxv): Register per-inferior auxv cache and register
471 observers to invalidate auxv cache when needed.
472
ed59ded5
DE
4732011-11-14 Doug Evans <dje@google.com>
474
475 Make "!" an alias for "shell".
476 * NEWS: Add mention.
477 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
478 adding "!" command, always add it.
479 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
480 command of length one.
481
405f8e94
SS
4822011-11-14 Stan Shebs <stan@codesourcery.com>
483 Kwok Cheung Yeung <kcy@codesourcery.com>
484
485 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
486 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
487 the minimum instruction size for fast tracepoints.
488 * target.h (struct target_ops): Add new method
489 to_get_min_fast_tracepoint_insn_len.
490 (target_get_min_fast_tracepoint_insn_len): New.
491 * target.c (update_current_target): Set up new target operation.
492 * remote.c (remote_write_bytes_aux): Fix typo.
493 (remote_get_min_fast_tracepoint_insn_len): New.
494 (init_remote_ops): Initialize new field.
495
3e05895e
TT
4962011-11-14 Tom Tromey <tromey@redhat.com>
497
498 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
499 (encode_actions): Likewise.
500
1e4d1764
YQ
5012011-11-14 Yao Qi <yao@codesourcery.com>
502
503 * remote.c (struct remote_state): <install_in_trace> new field.
504 (PACKET_InstallInTrace): New enum value.
505 (remote_install_in_trace_feature): Support InstallInTrace.
506 (remote_supports_install_in_trace): Likewise.
507 (remote_protocol_features): Likewise.
508 (_initialize_remote): Likewise.
509 (remote_can_download_tracepoint): New.
510 * target.h (struct target): New field
511 `to_can_download_tracepoint'.
512 (target_can_download_tracepoint): New macro.
513 * target.c (update_current_target): Update.
514 * breakpoint.h (struct bp_location): Add comment on field
515 `duplicate'.
3ccd4ac6
YQ
516 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
517 and tracepoint.
1e4d1764
YQ
518 (remove_breakpoints): Don't remove tracepoints.
519 (tracepoint_locations_match ): New.
520 (breakpoint_locations_match): Call it.
521 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
522 (download_tracepoint_locations): New.
523 (update_global_location_list): Call it.
524 * tracepoint.c (find_matching_tracepoint): Delete.
525 (find_matching_tracepoint_location): Renamed from
526 find_matching_tracepoint. Return bp_location rather than
527 tracepoint.
528 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
529 tracepoint is found.
530
e8ba3115
YQ
5312011-11-14 Yao Qi <yao@codesourcery.com>
532
533 * target.h (struct target): <to_download_tracepoint> Change type
534 of parameter from tracepoint to bp_location.
535 * target.c (update_current_target): Update.
536 * tracepoint.c (start_tracing): Update.
537 * remote.c (remote_download_tracepoint): Remove loop for each location
538 of a tracepoint.
539
edcc485a
MR
5402011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
541
542 * i386-nat.c (i386_insert_hw_breakpoint): Call
543 i386_update_inferior_debug_regs.
544 (i386_remove_hw_breakpoint): Likewise.
545
3742cc8b
YQ
5462011-11-14 Yao Qi <yao@codesourcery.com>
547
548 * breakpoint.c (init_raw_breakpoint): Call
549 add_location_to_breakpoint to replace duplicated code.
550 (add_location_to_breakpoint): Adjust the breakpoint's
551 address prior to allocating a location.
552
71eba9c2 5532011-11-12 Matt Rice <ratmice@gmail.com>
554
555 * macrocmd.c (macro_no_macro_info): New function.
556 (macro_expand_command): Use macro_no_macro_info.
557 (macro_expand_once_command): Ditto.
558 (info_macro_command): Add argument processing,
559 move info_definitions_command here.
560 (_initialize_macrocmd): Remove info definitions command.
561 Add arguments to info macro help text.
562 * NEWS: Replace info definitions command with new info macro options.
563
731971ed
KS
5642011-11-11 Keith Seitz <keiths@redhat.com>
565
566 PR gdb/12843
567 * linespec.c (locate_first_half): Keep ':' if it looks
568 like it could be part of a Windows path starting with
569 a drive letter.
570
6953d224
PA
5712011-11-10 Pedro Alves <pedro@codesourcery.com>
572
573 * linux-nat.c (linux_nat_wait): Don't force waking up the event
574 loop when returning a TARGET_WAITKIND_NO_RESUMED.
575
0c94aa73
PA
5762011-11-10 Pedro Alves <pedro@codesourcery.com>
577
578 * target.c (target_waitstatus_to_string): Handle
579 TARGET_WAITKIND_NO_RESUMED.
580
f6b47be4
DE
5812011-11-10 Doug Evans <dje@google.com>
582
74e2f255
DE
583 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
584 `need_fullname'.
585 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
586 (map_partial_symbol_filenames): Ditto. All callers updated.
587 * psymtab.h (map_partial_symbol_filenames): Update prototype.
588 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
589 parameter need_fullname.
590
256f06f3
DE
591 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
592 * source.c (symtab_to_fullname): Ditto.
593
50f182aa
DE
594 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
595 * gdb-demangle.h: ... here. New file.
596 * demangle.c: #include "gdb-demangle.h".
597 (_initialize_demangler): Use initialize_file_ftype for prototype.
598 Move "set demangle" and "set asm-demangle" parameters here from utils.c
599 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
600 from utils.c
601 * utils.c: Update. #include "gdb-demangle.h".
602 * symtab.h (asm_demangle): Delete.
603 (demangle): Move declaration next to use.
604 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
605 * dwarf2read.c: #include "gdb-demangle.h".
606 * gnu-v2-abi.c: Ditto.
607 * jv-typeprint.c: Ditto.
608 * mdebugread.c: Ditto.
609 * p-typeprint.c: Ditto.
610 * stabsread.c: Ditto.
611 * printcmd.c: Ditto.
612 (asm_demangle): Delete declaration.
613 * tui/tui-stack.c: #include "gdb-demangle.h".
614
f6b47be4
DE
615 * python/py-type.c (typy_fields_items): Call check_typedef.
616
22355c90
JB
6172011-11-10 Joel Brobecker <brobecker@adacore.com>
618
619 * findvar.c (read_frame_register_value): Read the correct bytes
620 from registers on big-endian architectures.
621
bd119cf1 6222011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
623
624 * procfs.c (load_syscalls): Make a cleanup.
625 (open_procinfo_files): fd==0 is ok.
626
0a86f364
JB
6272011-11-10 Joel Brobecker <brobecker@adacore.com>
628
629 * procfs.c (iterate_over_mappings): Call do_cleanups before
630 returning.
631
9bc118a5
DE
6322011-11-09 Doug Evans <dje@google.com>
633
634 * gdbtypes.c (check_typedef): Document that this function can
635 throw an exception.
636
a7860e76
TT
6372011-11-09 Tom Tromey <tromey@redhat.com>
638
639 PR c++/13342:
640 * valops.c (value_full_object): Return early if real type is
641 smaller than the enclosing type.
642
60965737
YQ
6432011-11-08 Yao Qi <yao@codesourcery.com>
644
645 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
646
72a2e3dc
MI
6472011-11-08 Meador Inge <meadori@codesourcery.com>
648
649 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
650 register when the frame can't be determined.
651 * arm-tdep.c (arm_analyze_prologue): Ditto.
652
ce3b0ff7
SS
6532011-11-07 Stan Shebs <stan@codesourcery.com>
654
655 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
656
2b914b52
JB
6572011-11-07 Joel Brobecker <brobecker@adacore.com>
658
659 * infrun.c (handle_inferior_event): Minor reformatting.
660
6f809020
DE
6612011-11-05 Doug Evans <dje@google.com>
662
663 * source.c (forget_cached_source_info_for_objfile): Move call to
664 objfile->sf->qf->forget_cached_source_info outside of
665 ALL_OBJFILE_SYMTABS loop.
666 (forget_cached_source_info): Delete unused variable `s'.
667
75d12218
JK
6682011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
669
670 * i386-nat.c (dr_ref_count): Remove unused variable.
671
e565b837
DE
6722011-11-05 Doug Evans <dje@google.com>
673
674 * main.c (captured_main): Set lim_at_start before calling
675 make_command_stats_cleanup.
676
0a1c4d10
DE
6772011-11-04 Doug Evans <dje@google.com>
678
679 * utils.c: #include "timeval-utils.h".
680 (cmd_stats): Rename start_time to start_cpu_time.
681 New member start_wall_time.
682 (report_command_stats): Report wall time.
683 (make_command_stats_cleanup): Record start wall time.
684
a1d705ee
TT
6852011-11-04 Tom Tromey <tromey@redhat.com>
686
687 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
688
81de56be
RO
6892011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
690
691 * coff-pe-read.c: Include defs.h before bfd.h.
692
3ab1ec27
PM
6932011-11-04 Phil Muldoon <pmuldoon@redhat.com>
694
695 PR Python/13345
696
697 * python/python.c (python_run_simple_file): Expand tilde in path.
698
cd829959
PM
6992011-11-04 Phil Muldoon <pmuldoon@redhat.com>
700
701 PR Python/13363
702
703 * python/py-type.c (typy_lookup_type): Do not return a type in
704 an exception handler.
705
080ad648
JK
7062011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
707 Eli Zaretskii <eliz@gnu.org>
708
709 * linux-nat.c (_initialize_linux_nat): Improve help
710 for `info proc stat', `info proc status', `info proc cwd',
711 `info proc cmdline' and `info proc exe'.
712
3065dfb6
SS
7132011-11-02 Stan Shebs <stan@codesourcery.com>
714
715 String collection for tracepoints.
716 * NEWS: Mention string collection.
717 * common/ax.def (tracenz): New bytecode.
718 * ax-gdb.h (trace_string_kludge): Declare.
719 * ax-gdb.c: Include valprint.h and c-lang.h.
720 (trace_string_kludge): New global.
721 (gen_traced_pop): Add string case.
722 (agent_command): Add string case.
723 * tracepoint.h (decode_agent_options): Declare.
724 * tracepoint.c: Include cli-utils.h.
725 (decode_agent_options): New function.
726 (validate_actionline): Call it.
727 (encode_actions_1): Ditto.
728 * target.h (struct target_ops): New method to_supports_string_tracing.
729 (target_supports_string_tracing): New macro.
730 * target.c (update_current_target): Add to_supports_string_tracing.
731 * remote.c (struct remote_state): New field string_tracing.
732 (remote_string_tracing_feature): New function.
733 (remote_protocol_features): New feature tracenz.
734 (remote_supports_string_tracing): New function.
735 (init_remote_ops): Set to_supports_string_tracing.
736
f179e162
JK
7372011-11-02 Pedro Alves <pedro@codesourcery.com>
738 Jan Kratochvil <jan.kratochvil@redhat.com>
739
740 * linux-nat.c: Include cli/cli-utils.h.
741 (enum info_proc_what): New.
742 (linux_nat_info_proc_cmd): Rename to ...
743 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
744 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
745 status_f and stat_f from WHAT. Throw error on extra parameters.
746 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
747 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
748 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
749 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
750 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
751 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
752 `info proc cmdline', `info proc exe' and `info proc all' as real
753 subcommands of `info proc'.
754
7b35ec7f 7552011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
756
757 * Makefile.in: (SFILES): Add skip.c.
758 (HFILES_NO_SRCDIR): Add skip.h.
759 (COMMON_OBS): Add skip.o.
760 * skip.h, skip.c: New.
761 * breakpoint.h (set_default_breakpoint): Remove.
762 (get_sal_arch): Declare.
763 * breakpoint.c: Remove default_breakpoint_valid,
764 default_breakpoint_address, default_breakpoint_symtab,
765 default_breakpoint_line, default_breakpoint_pspace variables.
766 (get_sal_arch): Make public.
767 (set_default_breakpoint): Remove.
768 (parse_breakpoint_sals, create_breakpoint, clear_command,
769 decode_line_spec_1): Remove uses of default_breakpoint variables;
770 replaced with function calls into stack.c.
771 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
772 * cli/cli-cmds.c: Add skiplist.
773 (init_cmd_lists): Initialize skiplist.
774 (init_cli_cmds): Fix comment (classes of commands appear in
775 alphabetical order).
776 * infrun.c (handle_inferior_event): Add check that we don't step into
777 a function whose pc is marked for skip.
778 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
779 last_displayed_addr, last_displayed_symtab, last_displayed_line
780 variables.
781 (set_last_displayed_sal): New static function.
782 (print_frame_info): Switch call to set_default_breakpoint to call to
783 set_last_displayed_sal.
784 (clear_last_displayed_sal, last_displayed_sal_is_valid,
785 get_last_displayed_pspace, get_last_displayed_addr,
786 get_last_displayed_symtab, get_last_displayed_line,
787 get_last_displayed_sal): New public functions.
788 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
789 get_last_displayed_pspace, get_last_displayed_addr,
790 get_last_displayed_symtab, get_last_displayed_line,
791 get_last_displayed_sal): Declare.
792
b60e1588
JL
7932011-11-01 Justin Lebar <justin.lebar@gmail.com>
794
795 * MAINTAINERS (Write After Approval): Add myself to the list.
796
d31647d2
YQ
7972011-10-29 Yao Qi <yao@codesourcery.com>
798
799 * infcmd.c (disconnect_command): Call disconnect_tracing.
800
b1d96efd
JK
8012011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
802
803 Code cleanup.
804 * symtab.c (skip_prologue_sal): Code reformatting.
805
4dfb2365
JK
8062011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
807
808 PR symtab/13208
809 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
810 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
811 SAI.
812
0e5bf2a8
PA
8132011-10-28 Pedro Alves <pedro@codesourcery.com>
814
815 * linux-nat.c (linux_nat_filter_event): Remove `options'
816 parameter, and dead code that used it. If we're handling a
817 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
818 in our lwp list, re-add it.
819 (check_zombie_leaders): New.
820 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
821 wait for children with WNOHANG, and always wait for all children.
822 Don't check for no resumed children upfront. Simplify wait loop.
823 Check for zombie thread group leaders after handling all wait
824 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
825 unwaited-for children left.
826 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
827 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
828 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
829 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
830
821296b7
SA
8312011-10-28 Sterling Augustine <saugustine@google.com>
832
833 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
834 * symtab.c (free_completion_list): New function.
835 (do_free_completion_list): Likewise.
836 (default_make_symbol_completion_list_break_on): New variable
837 back_to. Call make_cleanup and discard_cleanups.
838 (make_source_files_completion_list): Likewise.
839
03c3051a
PK
8402011-10-28 Paul Koning <paul_koning@dell.com>
841
842 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
843 * NEWS: Mention deep_items.
844
8e7ebaf5
PA
8452011-10-28 Alen Skondro <askondro@gmail.com>
846
8de33dc2 847 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
848 defined.
849
e0c6ef61
MI
8502011-10-27 Meador Inge <meadori@codesourcery.com>
851
852 * MAINTAINERS (Write After Approval): Add myself to the list.
853
b56d6f31
JB
8542011-10-27 Joel Brobecker <brobecker@adacore.com>
855
856 * value.h (read_frame_register_value): Add declaration.
857 * findvar.c (read_frame_register_value): New function.
858 (value_from_register): Use read_frame_register_value
859 instead of get_frame_register_value + value_contents_copy
860 to get value contents.
861
d234ef5c
DE
8622011-10-27 Doug Evans <dje@google.com>
863
864 * cli/cli-cmds.c (source_script_with_search): Pass full path to
865 source_script_from_stream if it may have been found on the search path.
866 * python/py-auto-load.c (source_section_scripts): Pass full path to
867 source_python_script_for_objfile.
868 * python/python.c (source_python_script): Delete stream parameter.
869 All callers updated.
870 (source_python_script_for_objfile): Ditto.
871 * python/python-internal.h (source_python_script_for_objfile): Update.
872 * python/python.h (source_python_script): Update.
873
d849d44f
TT
8742011-10-27 Tom Tromey <tromey@redhat.com>
875
876 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
877 (ada_sals_for_line): Remove declarations.
878
2231f1fb
KP
8792011-10-27 Kevin Pouget <kevin.pouget@st.com>
880
881 Move unwind reasons to an external .def file
882 * frame.c (frame_stop_reason_string): Rewrite using
883 unwind_stop_reasons.def.
884 * frame.h (enum unwind_stop_reason): Likewise.
885 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
886 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
887 constants for bound-checking.
888 * unwind_stop_reasons.def: New file.
889 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
890 instead of a distinct value.
891
f77b9a5d
PM
8922011-10-27 Phil Muldoon <pmuldoon@redhat.com>
893
894 PR python/13331
895
896 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
897 (convert_values_to_python): Return on Python tuple allocation
898 failure. Return NULL on value conversion error.
899
76dce0be
PM
9002011-10-27 Phil Muldoon <pmuldoon@redhat.com>
901
902 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
903 (bppy_set_task): Ditto.
904 (bppy_delete_breakpoint): Ditto.
905 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
906 (gdbpy_lookup_global_symbol): Ditto.
907 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
908 * python/py-frame.c (frapy_is_valid): Ditto.
909 (frame_info_to_frame_object): Ditto.
910 * python/py-type.c (typy_lookup_type): Ditto.
911 (typy_getitem): Ditto.
912 (typy_has_key): Ditto.
913 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
914
f17b6955
JB
9152011-10-26 Joel Brobecker <brobecker@adacore.com>
916
917 * gdbarch.h: Regenerate.
918
86ba1042
JB
9192011-10-26 Meador Inge <meadori@codesourcery.com>
920
921 * gdbarch.sh (function_list): Use 'pstring' when printing
922 'gcore_bfd_target'.
923 * gdbarch.c: Regenerate.
924
c34fd852
UW
9252011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
926
927 * regcache.c (registers_changed_ptid): Invalidate thread architecture
928 and frame caches if PTID refers to all threads of a process.
929
931bb47f
UW
9302011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
931
932 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
933 to create_breakpoint.
934
88aed45e
UW
9352011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
936
937 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
938 (ppc_sysv_abi_push_dummy_call): Use it.
939 (do_ppc_sysv_return_value): Likewise.
940 (ppc64_sysv_abi_push_dummy_call): Likewise.
941 (ppc64_sysv_abi_return_value): Likewise.
942
3eaf3fa2
PK
9432011-10-26 Paul Koning <paul_koning@dell.com>
944
945 * python/lib/gdb/types.py (deepitems): New function.
946
913460fc
PK
9472011-10-25 Paul Koning <paul_koning@dell.com>
948
949 PR python/13327
950
951 * python/py-value.c (value_to_value_object): Remove fetching of
952 the value if it was lazy.
953 (valpy_get_is_lazy): New function.
954 (valpy_fetch_lazy): New function.
955
2b5b9d09
JB
9562011-10-24 Joel Brobecker <brobecker@adacore.com>
957
958 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
959 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
960
e21ffe51
PA
9612011-10-24 Pedro Alves <pedro@codesourcery.com>
962
963 * linux-nat.c (linux_handle_extended_wait): When handling a clone
964 event, in non-stop, if not stopping, make sure the new lwp has
965 last_resume_kind set to resume_continue. Assert that when we're
966 resuming the new lwp, its last_resume_kind is resume_continue.
967
7aee8dc2
PA
9682011-10-24 Pedro Alves <pedro@codesourcery.com>
969
970 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
971 already set when marking the event thread as not executing in
972 non-stop mode.
973
4b4e080e
PA
9742011-10-24 Pedro Alves <pedro@codesourcery.com>
975
976 * infrun.c (handle_inferior_event): Add debug output for
977 TARGET_WAITKIND_NO_HISTORY.
978
baacfb07
PM
9792011-10-24 Phil Muldoon <pmuldoon@redhat.com>
980
981 * NEWS: Move set/show extended-prompt to "New Options". Expand
982 description. Fix typos.
983
8432bc41
PM
9842011-10-24 Phil Muldoon <pmuldoon@redhat.com>
985
986 PR python/13310
987
988 * python/py-param.c (call_doc_function): Correctly deference on
989 function exit.
990
6cda5a20
JB
9912011-10-21 Joel Brobecker <brobecker@adacore.com>
992
993 * ada-tasks.c (print_ada_task_info): Fix computation of
994 number of tasks displayed in command output.
995
13294f7d
JK
9962011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
997 Ulrich Weigand <uweigand@de.ibm.com>
998
999 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1000 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1001 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1002 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1003 gdbarch_unwind_pc.
1004
460c1c54
CC
10052011-10-20 Cary Coutant <ccoutant@google.com>
1006
1007 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1008 section to...
1009 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1010 flag. Adjust all callers.
1011 (process_psymtab_comp_unit): Remove adjustment for type section.
1012
a10964d1
AR
10132011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1014
1015 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1016 arguments by adding OBJFILE. Instead of getting objfile from
1017 symbol's symtab, use new argument OBJFILE.
1018 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1019 arguments by adding OBJFILE.
1020 * gdb/dwarf2read.c (new_symbol_full): Change call to
1021 cp_scan_for_anonymous_namespaces to match new signature.
1022 * gdb/stabsread.c (define_symbol): Change call to
1023 cp_scan_for_anonymous_namespaces to match new signature.
1024
27ca1a5b
PM
10252011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1026
1027 PR python/13308
1028 PR python/13309
1029
1030 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1031 leak.
1032 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1033 leak. Delete unused variables.
1034
9df2fbc4
PM
10352011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1036
1037 PR python/12656
1038
1039 * python/py-frame.c (frapy_read_var): Use const struct *block.
1040 * python/py-type.c (typy_lookup_typename): Likewise.
1041 (typy_lookup_type): Likewise.
1042 (typy_legacy_template_argument): Likewise.
1043 (typy_template_argument): Likewise.
1044 (gdbpy_lookup_type): Likewise.
1045 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1046 * python/py-block.c (blpy_block_object): Likewise.
1047 (blpy_iter): Likewise.
1048 (blpy_get_start): Likewise.
1049 (blpy_get_end): Likewise.
1050 (blpy_get_function): Likewise.
1051 (blpy_get_superblock): Likewise.
1052 (set_block): Likewise.
1053 (block_to_block_object): Likewise.
1054 (block_object_to_block): Likewise.
1055 (blpy_is_valid): Likewise.
1056 (blpy_get_global_block): New function.
1057 (blpy_get_static_block): New function.
1058 (blpy_is_global): New function.
1059 (blpy_is_static): New function.
1060 * blockframe.c (block_innermost_frame): Likewise.
1061 * valops.c (value_of_variable): Likewise.
1062 * frame.h: Update prototypes.
1063 * python/python-internal.h: Likewise.
1064 * value.h: Likewise.
1065
4743b735
CC
10662011-10-19 Cary Coutant <ccoutant@google.com>
1067
1068 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1069 type_offset field.
1070
6caca83c
CC
10712011-10-19 Cary Coutant <ccoutant@google.com>
1072
1073 * dwarf2read.c (peek_abbrev_code): New function.
1074 (dw2_get_file_names): Check for dummy compilation units.
1075 (create_debug_types_hash_table): Likewise.
1076 (process_psymtab_comp_unit): Likewise.
1077 (load_partial_comp_unit): Likewise.
1078 (load_full_comp_unit): Likewise.
1079
43136979
AR
10802011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1081
1082 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1083 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1084 pt_phdr if PT_PHDR was found.
1085
0a07729b
TT
10862011-10-17 Joost van der Sluis <joost@cnoc.nl>
1087
1088 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1089 type or "<unnamed type"> when there is no name assigned.
1090 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1091 avoid a sigint when no name is assigned.
1092
21ae7a4d
JK
10932011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 Revert:
1096 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 * dwarf2expr.c (ctx_no_read_reg): New function.
1098 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1099 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1100 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1101 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1102
32d1c362
DE
11032011-10-16 Doug Evans <dje@google.com>
1104
1105 * NEWS: Document python gdb.printing.register_pretty_printer's new
1106 `replace' parameter.
1107
da096638
KS
11082011-10-14 Keith Seitz <keiths@redhat.com>
1109
1110 PR c++/13225
1111 * eval.c (evaluate_subexp_standard): Do not construct
1112 an array of types; pass the value array directly to
1113 find_overload_match.
1114 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1115 (rank_function): Take an array of values instead of types.
1116 (rank_one_type): Add struct value * parameter.
1117 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1118 (rank_function): For each argument, pass the argument's
1119 value to rank_one_type.
1120 (rank_one_type): Add VALUE parameter.
1121 If the parameter type is a pointer and the argument type
1122 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1123 VALUE is zero.
1124 Update all calls to rank_one_type, passing NULL for new
1125 VALUE parameter.
1126 * valarith.c (value_user_defined_cpp_op): Do not construct
1127 an array of types; pass the value array directly to
1128 find_overload_match.
1129 * valops.c (find_overload_method_list): Take an array of
1130 values instead of types.
1131 Save the type of OBJP for later use.
1132 Update calls to find_oload_champ, and find_oload_champ_namespace.
1133 (find_oload_champ_namespace): Take an array of values instead
1134 of types.
1135 (find_oload_champ_namespace_loop): Likewise.
1136 (find_oload_champ): Likewise.
1137 (classify_oload_match): Inspect all arguments
1138 until INCOMPATIBLE is found. Return the worst badness found
1139 otherwise.
1140 (compare_parameters): Update call to rank_one_type.
1141 * value.h (find_overload_match): Take an array of values instead
1142 of types.
1143
3957565a
JK
11442011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1145
1146 Drop lazy lm_info reading.
1147 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1148 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1149 (lm_info_read): New function.
1150 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1151 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1152 lm_dynamic_from_link_map.
1153 (lm_next, lm_prev, lm_name): Remove.
1154 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1155 initialization incl. read_memory. No longer use lm_name.
1156 (svr4_free_so): Drop lm_info->lm freeing.
1157 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1158 explicit lm_addr and lm initialization.
1159 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1160 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1161 lm_name.
1162
cb08cc53
JK
11632011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1164 Paul Pluzhnikov <ppluzhnikov@google.com>
1165
1166 * defs.h (struct so_list): New forward declaration.
1167 (make_cleanup_free_so): New declaration.
1168 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1169 (svr4_free_so): Move the function here from downwards. Handle NULL
1170 so->lm_info.
1171 (svr4_free_library_list): New.
1172 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1173 Use more cleanups. Use new parameter ignore_first instead of
1174 ignore_first_link_map_entry.
1175 (svr4_current_sos): New variable ignore_first, initialize it. New
1176 variable back_to, use it for svr4_free_library_list protection.
1177 (svr4_free_so): Remove - move upwards.
1178 * utils.c: Include solist.h.
1179 (do_free_so, make_cleanup_free_so): New functions.
1180
22c05d8a
JK
11812011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1182
1183 Fix internal error regression.
1184 * value.c (value_primitive_field): Handle value_optimized_out. Move
1185 packed bitfields comment.
1186
d930d06e
TT
11872011-10-13 Tom Tromey <tromey@redhat.com>
1188
1189 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1190 always released.
1191
2ff6b080
TT
11922011-10-13 Tom Tromey <tromey@redhat.com>
1193
1194 * python/py-type.c (typy_has_key): Make 'field' const.
1195
d6c5869f
LM
11962011-10-13 Luis Machado <lgustavo@codesourcery.com>
1197
1198 * remote.c (remote_save_trace_data): Invert comparison.
1199
a70633a2
LM
12002011-10-13 Luis Machado <lgustavo@codesourcery.com>
1201
1202 * tracepoint.c (trace_save_command): Use filename instead of
1203 args when printing.
1204
e103e986
JK
12052011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1206
1207 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1208 if .size is 0.
1209
db24da6d
YQ
12102011-10-13 Yao Qi <yao@codesourcery.com>
1211
1212 PR gdb/12703
1213 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1214 whether insn is a 32-bit Thumb-2 instruction.
1215 (thumb_in_function_epilogue_p): Likewise.
1216 (thumb_get_next_pc_raw): Likewise.
1217 (arm_breakpoint_from_pc): Likewise.
1218
1d6edc3c
JK
12192011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1220
1221 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1222 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1223 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1224 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1225 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1226 zero DATA.
1227 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1228 validity.
1229 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1230 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1231 clear DATA on zero SIZE.
1232
adabb602
DE
12332011-10-12 Doug Evans <dje@google.com>
1234
1235 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1236 header->first_die_offset here. All callers updated.
1237
5048e516
JK
12382011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1239
1240 Fix compatibility with texinfo versions older than 4.12.
1241 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1242 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1243 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1244 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1245 * configure: Regenerate.
1246 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1247 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1248 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1249
0574c78f
GB
12502011-10-12 Gary Benson <gbenson@redhat.com>
1251
1252 * breakpoint.h (pc_at_non_inline_function): Declare.
1253 * breakpoint.c (is_non_inline_function,
1254 pc_at_non_inline_function): New functions.
1255 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1256 if the stop is at a location where functions cannot be inlined.
1257
12d9289a
PA
12582011-10-12 Pedro Alves <pedro@codesourcery.com>
1259
1260 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1261 the core wanted them stopped, or if they now have a pending event
1262 to report.
ecf8e7f5
PA
1263 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1264 down to stop_and_resume_callback.
1265 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1266 having new pending events after calling linux_nat_filter_event.
12d9289a 1267
96408a79
SA
12682011-10-11 Sterling Augustine <saugustine@google.com>
1269
1270 * dwarf2read.c: Undo inadvertent changes in previous commit.
1271
9c6c53f7
SA
12722011-10-11 Sterling Augustine <saugustine@google.com>
1273
1274 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1275 logic.
1276
0e8aefe7
UW
12772011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1278
1279 * symfile.c (separate_debug_file_exists): Fix condition.
1280
349d1385
DM
12812011-10-11 David S. Miller <davem@davemloft.net>
1282
1283 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1284 static.
1285 * regcache.h (regcache_restore): Remove declaration.
1286
205c306f
DM
1287 * gdbarch.sh: New field 'long_long_align_bit'.
1288 * gdbarch.c, gdbarch.h: Regenerate.
1289 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1290 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1291
941b2081
JK
12922011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1293
1294 Revert this part of:
1295 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1296 Support @entry in input expressions.
1297 * c-exp.y (ENTRY, unknown_cpp_name): New.
1298 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1299 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1300 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1301 (name_not_typename: ENTRY): New.
1302 (yylex): Recognize ENTRY.
1303
1304 Reimplement @entry in input expressions.
1305 * c-exp.y (ENTRY): New.
1306 (variable: name_not_typename ENTRY): New.
1307 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1308
3c4d7e12
PA
13092011-10-11 Pedro Alves <pedro@codesourcery.com>
1310
1311 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1312 parent and child's pids as soon as we detect a clone event.
1313 Adjust another debug message.
1314
ea23808b
PA
13152011-10-11 Pedro Alves <pedro@codesourcery.com>
1316
1317 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1318 not zombie instead of reading the whole file.
1319
904578ed
JK
13202011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1321
1322 Fix separate debuginfo warning with "remote:" access.
1323 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1324 * symfile.c (get_file_crc): New function with the code moved from ...
1325 (separate_debug_file_exists): ... this function, specifically variables
1326 buffer and count. New variable verified_as_different, set it. Remove
1327 file_crc initialization. Verify also if both files are not the same
1328 manually, if needed.
1329
51370a33
YQ
13302011-10-11 Yao Qi <yao@codesourcery.com>
1331
1332 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1333 to get address.
1334
0838fb57
DE
13352011-10-10 Doug Evans <dje@google.com>
1336
1337 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1338 libthread_db when we load libpthread or the main symbol file.
1339 (thread_db_inferior_created): New function.
1340 (_initialize_thread_db): Attach inferior_created observer.
1341 * linux-nat.c (linux_child_post_attach): Remove call to
1342 check_for_thread_db.
1343 (linux_child_post_startup_inferior): Ditto.
1344 * objfiles.h (OBJF_MAINLINE): Define.
1345 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1346 allocate_objfile when appropriate.
1347
623bd5b7
UW
13482011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1349
1350 PR gdb/13218
1351 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1352 Remove unused variables.
1353 (get_linux_version): Remove function.
1354 (_initialize_arm_linux_nat): Do not call it.
1355
79395f92
PA
13562011-10-10 Pedro Alves <pedro@codesourcery.com>
1357
1358 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1359 new clone lwp if the core asked it to stop. Don't pass on
1360 unexpected signals to the new clone; leave them pending instead.
1361
eff3df78
PA
13622011-10-10 Pedro Alves <pedro@codesourcery.com>
1363
1364 * linux-nat.c (resume_lwp): Remove redundant debug output.
1365
4b60df3d
PA
13662011-10-10 Pedro Alves <pedro@codesourcery.com>
1367
1368 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1369 last_resume_kind before clearing it, and use the copy instead to
1370 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1371 resume_clear_callback in the non-stop path too.
1372
6501578c
YQ
13732011-10-09 Yao Qi <yao@codesourcery.com>
1374
1375 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1376 Honor OPTIONS and VAL's type.
1377 (common_val_print, value_print): Update to pass one more parameter.
1378
5a56e9c5
DE
13792011-10-09 Doug Evans <dje@google.com>
1380
1381 Add new "alias" command.
1382 * NEWS: Mention new command.
1383 * command.h (valid_user_defined_cmd_name_p): Declare.
1384 * defs.h (make_cleanup_dyn_string_delete): Declare.
1385 * utils.c: #include "dyn-string.h".
1386 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1387 * cli/cli-cmds.c: #include "dyn-string.h".
1388 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1389 (init_cli_cmds): Add new command.
1390 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1391
509f0fd9
JK
13922011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1393
1394 Fix compatibility with older GCCs.
1395 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1396 * stack.c (read_frame_arg): Initialize val_deref.
1397
2bda9cc5
JK
13982011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1399
1400 Entry values NEWS entries, DWARF disassembly support.
1401 * NEWS: New entry values entry.
1402 (set print entry-values, show print entry-values)
1403 (set debug entry-values, show debug entry-values): New entries.
1404 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1405 indent. Remove variable start. Move header printing out. Respect
1406 INDENT. Support DW_OP_GNU_entry_value.
1407 (locexpr_describe_location_1): Move the header printing here, extend
1408 the disassemble_dwarf_expression passed parameters.
1409
a471c594
JK
14102011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Display @entry parameter values even for references.
1413 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1414 coerce_ref_if_computed.
1415 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1416 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1417 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1418 existing push_dwarf_reg_entry_value call. Add new detection calling
1419 dwarf_block_to_dwarf_reg_deref. Update the error message.
1420 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1421 * dwarf2expr.h
1422 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1423 parameter deref_size, describe it in the comment.
1424 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1425 (dwarf_block_to_dwarf_reg_deref): New declaration.
1426 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1427 deref_size, describe it in the function comment. New variables
1428 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1429 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1430 describe it in the function comment. Fetch the alternative block
1431 accoring to DEREF_SIZE.
1432 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1433 (entry_data_value_free_closure, entry_data_value_funcs): New.
1434 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1435 outer_val, target_val, val and addr. Try to fetch and create also
1436 referenced value content.
1437 (pieced_value_funcs): NULL value for coerce_ref.
1438 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1439 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1440 coerce_ref_if_computed.
1441 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1442 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1443 * stack.c (read_frame_arg): Compare also dereferenced values.
1444 * value.c (value_computed_funcs): Make the parameter v const, use
1445 value_lval_const for it.
1446 (value_lval_const, coerce_ref_if_computed): New function.
1447 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1448 * value.h (struct lval_funcs): New field coerce_ref.
1449 (value_computed_funcs): Make the parameter v const.
1450 (value_lval_const, coerce_ref_if_computed): New declarations.
1451
36b11add
JK
14522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1453
1454 Support @entry in input expressions.
1455 * c-exp.y (ENTRY, unknown_cpp_name): New.
1456 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1457 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1458 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1459 (name_not_typename: ENTRY): New.
1460 (yylex): Recognize ENTRY.
1461 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1462 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1463 Likewise.
1464 * parse.c (operator_length_standard): Likewise.
1465 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1466
3343315b
JK
14672011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1468
1469 Display referenced values in backtraces.
1470 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1471 * stack.c (print_frame_arg): Likewise.
1472
ac71a68c
JK
14732011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1474
1475 Make some lval_funcs methods to default on NULL.
1476 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1477 NULL.
1478 (value_assign): Check if lval_computed write method is NULL.
1479 * value.h (struct lval_funcs): Comment NULL values for read and write
1480 methods.
1481
e18b2753
JK
14822011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1483
1484 Display @entry parameter values (without references).
1485 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1486 New functions.
1487 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1488 New declarations.
1489 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1490 entry record.
1491 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1492 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1493 functions.
1494 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1495 (loclist_read_variable_at_entry): New function.
1496 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1497 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1498 DW_AT_location, call dwarf_block_to_sp_offset for it.
1499 * frame.h (print_entry_values_no, print_entry_values_only)
1500 (print_entry_values_preferred, print_entry_values_if_needed)
1501 (print_entry_values_both, print_entry_values_compact)
1502 (print_entry_values_default, print_entry_values): New declarations.
1503 (struct frame_arg): New field entry_kind.
1504 (read_frame_arg): New parameter entryargp.
1505 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1506 arg->entry_kind. Optionally print the `@entry' suffix.
1507 (list_args_or_locals): New variable entryarg, initialize it.
1508 Initialize also entry_kind of arg and entryarg. Conditionalize
1509 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1510 xfree for entryarg.error.
1511 * stack.c (print_entry_values_no, print_entry_values_only)
1512 (print_entry_values_preferred, print_entry_values_if_needed)
1513 (print_entry_values_both, print_entry_values_compact)
1514 (print_entry_values_default, print_entry_values_choices)
1515 (print_entry_values): New variables.
1516 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1517 print the `@entry' suffix, possibly in combination for
1518 print_entry_values_compact.
1519 (read_frame_arg): New parameter entryargp, new variables entryval,
1520 entryval_error and val_equal. Read in also entryargp, respect
1521 print_entry_values, compare the values using val_equal, fill in also
1522 argp->entry_kind (together with entryargp->entry_kind).
1523 (print_frame_args): New variable entryarg, initialize it.
1524 Conditionalize print_frame_arg for arg, add print_frame_arg for
1525 entryarg. Call xfree for entryarg.error.
1526 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1527 * symtab.h (struct symbol_computed_ops): New field
1528 read_variable_at_entry.
1529
93d86cef
JK
15302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1531
1532 Code reshuffle.
1533 * frame.h (struct frame_arg): New definition.
1534 (read_frame_arg): New declaration.
1535 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1536 (list_args_or_locals): ... the code here. New variable arg, call
1537 read_frame_arg and list_arg_or_local with it. Unify the
1538 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1539 arg.error.
1540 * stack.c (print_frame_arg): New functiom from the code of
1541 print_frame_args.
1542 (read_frame_arg): New function.
1543 (print_frame_args): Remove variable val. New variable arg, call
1544 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1545
2d6c5dc2
JK
15462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1547
1548 Protect entry values against self tail calls.
1549 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1550 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1551
111c6489
JK
15522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1553
1554 Recognize virtual tail call frames.
1555 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1556 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1557 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1558 * dwarf2-frame-tailcall.c: New file.
1559 * dwarf2-frame-tailcall.h: New file.
1560 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1561 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1562 REGS.PREV only after CIE execution.
1563 (struct dwarf2_frame_cache): New field tailcall_cache.
1564 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1565 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1566 parts, try to find entry_cfa_sp_offset. Call
1567 dwarf2_tailcall_sniffer_first.
1568 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1569 when appropriate.
1570 (dwarf2_frame_dealloc_cache): New function.
1571 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1572 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1573 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1574 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1575 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1576 * dwarf2loc.c (func_addr_to_tail_call_list)
1577 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1578 (call_site_find_chain_1, call_site_find_chain): New.
1579 * dwarf2loc.h (struct call_site_chain): New.
1580 (call_site_find_chain): New declaration.
1581 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1582 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1583 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1584 * stack.c (frame_info): Support also TAILCALL_FRAME.
1585
bb984ff1
JK
15862011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1587
1588 Tail call sites reader implementation.
1589 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1590 fill in TYPE_TAIL_CALL_LIST.
1591 * gdbtypes.h (struct func_type): New field tail_call_list.
1592 (struct call_site): New field tail_call_next.
1593 (TYPE_TAIL_CALL_LIST): New definition.
1594
8e3b41a9
JK
15952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 Implement basic support for DW_TAG_GNU_call_site.
1598 * block.c: Include gdbtypes.h and exceptions.h.
1599 (call_site_for_pc): New function.
1600 * block.h (call_site_for_pc): New declaration.
1601 * defs.h: Include hashtab.h.
1602 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1603 declarations.
1604 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1605 ctx_no_push_dwarf_reg_entry_value.
1606 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1607 (dwarf_block_to_dwarf_reg): New function.
1608 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1609 (ctx_no_push_dwarf_reg_entry_value): New function.
1610 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1611 push_dwarf_reg_entry_value.
1612 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1613 declarations.
1614 * dwarf2loc.c: Include gdbcmd.h.
1615 (dwarf_expr_ctx_funcs): New forward declaration.
1616 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1617 (dwarf_expr_reg_to_entry_parameter)
1618 (dwarf_expr_push_dwarf_reg_entry_value): New.
1619 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1620 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1621 (needs_dwarf_reg_entry_value): New function.
1622 (needs_frame_ctx_funcs): Install it.
1623 (_initialize_dwarf2loc): New function.
1624 * dwarf2loc.h (entry_values_debug): New declaration.
1625 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1626 (read_call_site_scope): New forward declaration.
1627 (process_full_comp_unit): Copy call_site_htab.
1628 (process_die): Support DW_TAG_GNU_call_site.
1629 (read_call_site_scope): New function.
1630 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1631 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1632 (cleanup_htab): Delete.
1633 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1634 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1635 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1636 FIELD_LOC_KIND_DWARF_BLOCK.
1637 * gdbtypes.h (enum field_loc_kind): New entry
1638 FIELD_LOC_KIND_DWARF_BLOCK.
1639 (struct main_type): New loc entry dwarf_block.
1640 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1641 (TYPE_FIELD_DWARF_BLOCK): New.
1642 * python/py-type.c: Include dwarf2loc.h.
1643 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1644 internal_error call on unknown FIELD_LOC_KIND.
1645 * symtab.h (struct symtab): New field call_site_htab.
1646 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1647 (core_addr_hash, core_addr_eq): New functions.
1648
b6cdc2c1
JK
16492011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1650
1651 Code reshuffle.
1652 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1653 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1654 calling_convention under func_stuff there.
1655 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1656 (init_type) <TYPE_CODE_FUNC>: Likewise.
1657 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1658 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1659 * gdbtypes.h (enum type_specific_kind): Change
1660 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1661 (struct main_type) <type_specific>: Change calling_convention to
1662 func_stuff. Move calling_convention to ...
1663 (struct func_type): ... this new struct.
1664 (INIT_FUNC_SPECIFIC): New #define.
1665 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1666
181cebd4
JK
16672011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1668
1669 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1670 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1671 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1672 ctx->ref_addr_size. Handle its invalid value.
1673 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1674 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1675 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1676 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1677 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1678 (dwarf2_per_cu_ref_addr_size): New function.
1679
c471e790
JK
16802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1681
1682 Code cleanup.
1683 * dwarf2read.c (per_cu_header_read_in): New function.
1684 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1685 variables cu_header_local and cu_headerp.
1686
741f5e3c
JK
16872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1688
1689 Fix initial language detection with -readnow.
1690 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1691 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1692 searches only for global symbols.
1693
a73d2258
JK
16942011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 Fix printed anonymous struct name.
1697 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1698 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1699 (anonymous_struct_prefix): New function.
1700 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1701 (dwarf2_name): Strip for anonymous structs any prefixes.
1702
749fd4ea
DE
17032011-10-07 Doug Evans <dje@google.com>
1704
1fa57852
DE
1705 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1706 `replace'.
1707
690a4937
DE
1708 * python/lib/gdb/printing.py: Whitespace cleanup.
1709
749fd4ea
DE
1710 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1711 warning.
1712
4c38200f
PA
17132011-10-07 Pedro Alves <pedro@codesourcery.com>
1714
1715 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1716 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1717 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1718 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1719 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1720 (arm_linux_remove_watchpoint): Adjust.
1721 * i386-linux-nat.c (i386_linux_dr_set_control)
1722 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1723 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1724 (ia64_linux_remove_watchpoint): Adjust.
1725 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1726 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1727 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1728 (ppc_linux_insert_mask_watchpoint)
1729 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1730 (ppc_linux_remove_watchpoint): Adjust.
1731 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1732 Adjust.
1733
b7ff339d
CV
17342011-10-07 Corinna Vinschen <vinschen@redhat.com>
1735
1736 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1737 (clear_win32_environment): New function for Cygwin to clear out
1738 Win32 environment.
1739 (windows_create_inferior): Prepare new environment from in_env
1740 for Cygwin, too.
1741
f287c1f3
PM
17422011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1743
5631e596 1744 PR python/13264
f287c1f3
PM
1745 * python/py-value.c (valpy_call): Check that arguments are
1746 a tuple.
1747 (is_intlike): Remove call to CHECK_TYPEDEF.
1748 (valpy_nonzero): Catch GDB exceptions.
1749 (valpy_absolute): Ditto.
1750 (valpy_lazy_string): Ditto.
1751 (valpy_call): Ditto.
1752 (valpy_get_is_optimized_out): Ditto.
1753 (valpy_long): Ditto.
1754 (valpy_float): Ditto.
1755 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1756 (valpy_richcompare): Ditto.
1757
03583c20
UW
17582011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1759
1760 * inferior.h (disable_randomization): Declare.
1761 * infrun.c (disable_randomization): New global variable.
1762 (show_disable_randomization): New function.
1763 (set_disable_randomization): Likewise.
1764 (_initialize_infrun): Install set/show disable-randomization
1765 commands.
1766 * linux-nat.c (disable_randomization): Remove.
1767 (show_disable_randomization): Likewise.
1768 (set_disable_randomization): Likewise.
1769 (_initialize_linux_nat): No longer install set/show
1770 disable-randomization commands here.
1771 (linux_nat_supports_disable_randomization): New function.
1772 (linux_nat_add_target): Install it.
1773 * remote.c (PACKET_QDisableRandomization): New enum value.
1774 (remote_protocol_packets): Support QDisableRandomization.
1775 (_initialize_remote): Likewise.
1776 (remote_supports_disable_randomization): New function.
1777 (init_remote_ops): Install it.
1778 (extended_remote_supports_disable_randomization): New function.
1779 (init_extended_remote_ops): Install it.
1780 (extended_remote_disable_randomization): New function.
1781 (extended_remote_create_inferior_1): Call it.
1782 * target.h (struct target_ops): Add to_supports_disable_randomization.
1783 (target_supports_disable_randomization): Add prototype.
1784 * target.c (target_supports_disable_randomization): New function.
1785 (find_default_supports_disable_randomization): Likewise.
1786 (init_dummy_target): Install it.
1787
20c168b5
KP
17882011-10-07 Kevin Pouget <kevin.pouget@st.com>
1789
1790 Allow Python notification of new object-file loadings.
1791 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1792 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1793 Add build rule for this file.
1794 * python/py-event.h (emit_new_objfile_event): New prototype.
1795 (newobjfile): New Python event emitter.
1796 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1797 Python event registry.
1798 * python/py-inferior.c: Include objfiles.h
1799 (python_new_objfile): New function.
1800 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1801 observers.
1802 * python/py-newobjfileevent.c: New file.
1803 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1804 prototype.
1805 * python/python.c (_initialize_python): Add
1806 gdbpy_initialize_new_objfile_event call.
1807 * NEWS: Add item for new Python event "gdb.newobjfile"
1808
b1c8db38
TG
18092011-10-05 Tristan Gingold <gingold@adacore.com>
1810
1811 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1812 Extract the ravenscar task name from the symbol for the atcb.
1813
0dab82e9
PK
18142011-10-04 Paul Koning <paul_koning@dell.com>
1815
1816 * python/py-type.c (typy_make_iter): Add forward declaration.
1817 (typy_fields_items): Use the gdb.Type iterator.
1818
84ad80e6
PK
18192011-10-04 Paul Koning <paul_koning@dell.com>
1820
1821 * NEWS: Add entry for Python gdb.Type mapping methods.
1822
cb6be26b
KP
18232011-10-04 Kevin Pouget <kevin.pouget@st.com>
1824
1825 PR python/12691: Add the inferior to Python exited event
1826 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1827 to exited_event.
1828 * python/py-event.h (emit_exited_event): Likewise
1829 * python/-inferior.c (python_inferior_exit): Likewise
1830
6005b210
JB
18312011-10-03 Joel Brobecker <brobecker@adacore.com>
1832
1833 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1834 in output of -ada-task-info GDB/MI command.
1835
75082e8c
JB
18362011-10-03 Joel Brobecker <brobecker@adacore.com>
1837
1838 * ada-lang.h (struct inferior): Declare.
1839 (print_ada_task_info): Add declaration.
1840 * ada-tasks.c (print_ada_task_info): Make non-static.
1841 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1842 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1843 * mi/mi-main.c: #include "ada-lang.h".
1844 (mi_cmd_list_features): Add "ada-task-info" to the list
1845 of supported features.
1846 (mi_cmd_ada_task_info): New function.
1847
7ed7d719
JB
18482011-10-03 Joel Brobecker <brobecker@adacore.com>
1849
1850 * python/python.c (python_run_simple_file): New function.
1851 (source_python_script, source_python_script_for_objfile):
1852 Replace call to PyRun_SimpleFile by call to
1853 python_run_simple_file.
1854
3fcaed38
PK
18552011-10-03 Paul Koning <paul_koning@dell.com>
1856
1857 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1858 (value_to_value_object): Fetch value if it was lazy.
1859
8e5c319d
JK
18602011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1861
1862 Code cleanup.
1863 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1864 Rearrange the code for it.
1865
dd11a36c
JB
18662011-10-02 Joel Brobecker <brobecker@adacore.com>
1867
1868 * breakpoint.c (bkpt_print_recreate): Add call to
1869 print_recreate_thread.
1870
723b724b
MF
18712011-09-29 Mike Frysinger <vapier@gentoo.org>
1872
1873 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1874 PTRACE_GETFDPIC_INTERP): Define.
1875
412946b6
YQ
18762011-09-28 Yao Qi <yao@codesourcery.com>
1877
1878 * symfile.c (add_symbol_file_command): Update message on usage.
1879
a73bb892
PK
18802011-09-28 Paul Koning <paul_koning@dell.com>
1881
1882 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1883 (typy_length, typy_get, typy_has_key, typy_make_iter)
1884 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1885 (typy_iterator_iter, typy_iterator_iternext)
1886 (typy_iterator_dealloc): New functions to implement standard
1887 Python mapping methods on gdb.Type object.
1888 (gdb.TypeIterator): New Python type.
1889 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1890
fe10a582
DM
18912011-09-28 David S. Miller <davem@davemloft.net>
1892
1893 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1894 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1895 * sparc-tdep.c (sparc_complex_floating_p): New function.
1896 (sparc32_store_arguments): Handle complex floats.
1897 (sparc32_extract_return_value): Likewise.
1898 (sparc32_store_return_value): Likewise.
1899 (sparc32_stabs_argument_has_addr): Likewise.
1900 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1901 (sparc64_store_floating_fields): Handle complex floats.
1902 (sparc64_store_arguments): Likewise.
1903 (sparc64_store_return_value): Likewise.
1904
c93dbcba
EZ
19052011-09-28 Eli Zaretskii <eliz@gnu.org>
1906
1907 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1908 before the change on 2006-12-09.
1909 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1910 generates the environment block for CreateProcessA, modulo the
1911 Cygwin-specific parts that are not needed here.
1912
f00c55f8
TG
19132011-09-27 Tristan Gingold <gingold@adacore.com>
1914
1915 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1916 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1917 (darwin_solib_get_all_image_info_addr_at_init): New function.
1918 (darwin_solib_read_all_image_info_addr): Likewise.
1919 (darwin_solib_create_inferior_hook): Use the above two functions.
1920 * darwin-nat.c (darwin_execvp): Renames retval to res.
1921 (darwin_read_write_inferior): Update comment.
1922 (darwin_read_dyld_info): New function.
1923 (darwin_xfer_partial): Handle DYLD_INFO.
1924
6710bf39
SS
19252011-09-27 Stan Shebs <stan@codesourcery.com>
1926
1927 Add return address collection for tracepoints.
1928 * tracepoint.c (encode_actions_1): Add case for $_ret.
1929 (validate_actionline): Check for $_ret.
1930 (trace_dump_actions): Ditto.
1931 * ax-gdb.h (gen_trace_for_return_address): Declare.
1932 * ax-gdb.c: Include arch-utils.h.
1933 (gen_trace_for_return_address): New function.
1934 (agent_command): Add return address special case.
1935 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1936 (amd64_gen_return_address): New function.
1937 (amd64_init_abi): Call it.
1938 * i386-tdep.c: Include ax.h and ax-gdb.h.
1939 (i386_gen_return_address): New function.
1940 (i386_init_abi): Call it.
1941 * arch-utils.h (default_gen_return_address): Declare.
1942 * arch-utils.c (default_gen_return_address): New function.
1943 * gdbarch.sh (gen_return_address): New method.
1944 * gdbarch.h, gdbarch.c: Regenerate.
1945
e04e5beb
JM
19462011-09-23 Joseph Myers <joseph@codesourcery.com>
1947
1948 PR gdb/13079
1949 * i386-tdep.c (i386_frame_align): New.
1950 (i386_gdbarch_init): Use i386_frame_align.
1951
f3d6df6d
YQ
19522011-09-23 Yao Qi <yao@codesourcery.com>
1953
1954 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1955 to get address.
1956
e69860f1
TG
19572011-09-22 Tristan Gingold <gingold@adacore.com>
1958
1959 * fork-child.c (fork_inferior): Add exec_fun parameter.
1960 Call exec_fun or execvp.
1961 * inferior.h: Adjust prototype.
1962 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1963 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1964 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1965 * procfs.c (procfs_create_inferior): Ditto.
1966 * darwin-nat.c (darwin_execvp): New function.
1967 (darwin_create_inferior): Use it.
1968
4b51d87b
YQ
19692011-09-22 Yao Qi <yao@codesourcery.com>
1970
1971 * infrun.c (context_switch): Print debug message when switching to
1972 a different thread.
1973
56b9d9ac
UW
19742011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1975
1976 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1977 complex and vector types.
1978 (s390_return_value_convention): Likewise.
1979
1980 (s390_value_from_register): Call check_typedef.
1981 (extend_simple_arg): Likewise.
1982 (alignment_of): Likewise.
1983 (s390_push_dummy_call): Likewise.
1984 (s390_return_value): Likewise.
1985
b2cd6b29
JM
19862011-09-21 Joseph Myers <joseph@codesourcery.com>
1987
1988 * event-top.c (async_disconnect): If an exception is thrown from
1989 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1990 catch_errors.
1991 * top.c (quit_cover): Return void and take no arguments.
1992 * top.h (quit_cover): Update prototype.
1993
67ba4e42
JM
19942011-09-20 Joseph Myers <joseph@codesourcery.com>
1995
1996 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1997 current_uiout, not uiout.
1998
562f943b
DE
19992011-09-19 Doug Evans <dje@google.com>
2000
2001 * python/py-auto-load.c (source_section_scripts): Fix file
2002 descriptor leak.
2003 * python/python.c (source_python_script_for_objfile): Tweak comments.
2004
34518530
YQ
20052011-09-18 Yao Qi <yao@codesourcery.com>
2006 Ulrich Weigand <ulrich.weigand@linaro.org>
2007
2008 Support displaced stepping for Thumb 16-bit insns.
2009 * arm-tdep.c (THUMB_NOP) Define.
2010 (thumb_copy_unmodified_16bit): New.
2011 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2012 (thumb_copy_alu_reg): New.
2013 (arm_copy_svc): Move some common code to ...
2014 (install_svc): ... here. New.
2015 (thumb_copy_svc): New.
2016 (install_pc_relative): New.
2017 (thumb_copy_pc_relative_16bit): New.
2018 (thumb_decode_pc_relative_16bit): New.
2019 (thumb_copy_16bit_ldr_literal): New.
2020 (thumb_copy_cbnz_cbz): New.
2021 (cleanup_pop_pc_16bit_all): New.
2022 (thumb_copy_pop_pc_16bit): New.
2023 (thumb_process_displaced_16bit_insn): New.
2024 (thumb_process_displaced_32bit_insn): New.
2025 (thumb_process_displaced_insn): process thumb instruction.
2026
2027 Support displaced stepping for Thumb 32-bit insns.
2028 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2029 (thumb2_copy_preload): New.
2030 (thumb2_copy_copro_load_store): New.
2031 (thumb2_copy_b_bl_blx): New.
2032 (thumb2_copy_alu_imm): New.
2033 (thumb2_copy_load_reg_imm): New.
2034 (thumb2_copy_load_literal): New
2035 (thumb2_copy_block_xfer): New.
2036 (thumb_32bit_copy_undef): New.
2037 (thumb_32bit_copy_unpred): New.
2038 (thumb2_decode_ext_reg_ld_st): New.
2039 (thumb2_decode_svc_copro): New.
2040 (decode_thumb_32bit_store_single_data_item): New.
2041 (thumb_copy_pc_relative_32bit): New.
2042 (thumb_decode_pc_relative_32bit): New.
2043 (decode_thumb_32bit_ld_mem_hints): New.
2044 (thumb2_copy_table_branch): New
2045 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2046 instructions.
2047
2b16b2e3
YQ
20482011-09-18 Yao Qi <yao@codesourcery.com>
2049
2050 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2051 (install_b_bl_blx): Likewise.
2052
0f6f04ba
YQ
20532011-09-17 Yao Qi <yao@codesourcery.com>
2054
2055 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2056 (install_load_store): ... this. New.
2057 Change parameter BYTE to SIZE.
2058 (arm_copy_ldr_str_ldrb_strb): Update caller.
2059 (arm_decode_ld_st_word_ubyte): Update caller.
2060
e2d96639
YQ
20612011-09-17 Yao Qi <yao@codesourcery.com>
2062
2063 * infrun.c (displaced_step_fixup): Move some code ...
2064 (displaced_step_restore): ... here. New function.
2065 (handle_inferior_event): Cleanup displaced stepping state for both
2066 child and parent when get forked or vforked event.
2067 * regcache.c (get_thread_arch_aspace_regcache): New function.
2068 get_thread_arch_regcache (): Call it.
2069
a8123151
JB
20702011-09-16 Joel Brobecker <brobecker@adacore.com>
2071
2072 * ada-tasks.c (print_ada_task_info): New function, merging
2073 short_task_info and info_tasks together. Reimplement using
2074 ui-out instead of printing to stdout directly. Move the code
2075 building and checking the task list here, instead of leaving it
2076 in info_tasks_command.
2077 (info_task): Move the code building and checking the task
2078 list here, instead of leaving it in info_tasks_command.
2079 (info_tasks_command): Delete code building and checking
2080 the task list - moved elsewhere. Update calls to info_tasks
2081 and info_task.
2082
fbf06824
JB
20832011-09-16 Joel Brobecker <brobecker@adacore.com>
2084
2085 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2086
34a0bc90
JB
20872011-09-16 Joel Brobecker <brobecker@adacore.com>
2088
2089 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2090
79779fa9
JB
20912011-09-16 Joel Brobecker <brobecker@adacore.com>
2092
2093 * ada-lang.h (ada_build_task_list): Remove parameter
2094 `warn_if_null'.
2095 * ada-tasks.c (ada_build_task_list): Remove parameter
2096 `warn_if_null'. Adjust implementation and documentation.
2097 (valid_task_id, ada_get_environment_task)
2098 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2099 (info_tasks_command): Adjust implementation.
2100 (task_command): Likewise.
2101 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2102 to ada_build_task_list.
2103
e225eb91
JB
21042011-09-16 Joel Brobecker <brobecker@adacore.com>
2105
2106 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2107 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2108 (ada_tasks_inferior_data_handle): New static global.
2109 (get_ada_tasks_inferior_data): New function.
2110 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2111 (ada_get_environment_task, iterate_over_live_ada_tasks)
2112 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2113 Adjust.
2114 (ada_set_current_inferior_known_tasks_addr): New function.
2115 (read_known_tasks, ada_build_task_list, short_task_info)
2116 (info_tasks, info_task, info_tasks_command, task_command_1)
2117 (task_command, ada_task_list_changed): Adjust.
2118 (ada_tasks_invalidate_inferior_data): New function.
2119 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2120 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2121 * ada-lang.h (struct inferior): Add declaration.
2122 (ada_task_list_changed): Update profile.
2123 * remote-wtx-pd.c: #include "inferior.h".
2124 (switch_to_pd_internal): Update call to ada_task_list_changed.
2125
6da9ca05
JB
21262011-09-16 Joel Brobecker <brobecker@adacore.com>
2127
2128 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2129 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2130 (atcb_fieldno): Delete these static globals.
2131 (struct ada_tasks_pspace_data): New struct.
2132 (ada_tasks_pspace_data_handle): New static global.
2133 (get_ada_tasks_pspace_data): New function.
2134 (ada_tasks_invalidate_pspace_data): New function.
2135 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2136 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2137 (_initialize_tasks): Create this module's per-progspace
2138 data handle.
2139
dccd3cbd
JB
21402011-09-16 Joel Brobecker <brobecker@adacore.com>
2141
2142 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2143
f877b031
TG
21442011-09-16 Tristan Gingold <gingold@adacore.com>
2145
2146 * fork-child.c (fork_inferior): Update comment. Use alloca
2147 instead of xmalloc for argv. Move len and shell_command
2148 declarations in the block where they are used.
2149 Only call execvp. Factorize failure code.
2150
ae0c443d
JK
21512011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2152
2153 Code cleanup.
2154 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2155 `exp_element' instead of an element of the same and make the function
2156 static.
2157 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2158 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2159 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2160 Change argument of `write_exp_elt' function call.
2161 Remove extra spaces from comments.
2162 * parser-defs.h (write_exp_elt): Remove prototype.
2163
5af65ec0
PK
21642011-09-15 Paul Koning <paul_koning@dell.com>
2165
2166 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2167 count of item appended to list.
2168 * python/py-type.c (typy_fields): Likewise.
2169
72be8ccc
PK
21702011-09-15 Paul Koning <paul_koning@dell.com>
2171
883640a8 2172 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2173
92f6badc
KP
21742011-09-15 Kevin Pouget <kevin.pouget@st.com>
2175
2176 PR threads/12628
2177 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2178 processes with multiple threads.
2179 (inf_has_multiple_thread_cb): New function.
2180 (inf_has_multiple_threads): New function.
2181
0672bf41 21822011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2183
2184 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2185 * python/py-inferior.c (GdbMethods): New Python method definition.
2186
6839b47f
KP
21872011-09-15 Kevin Pouget <kevin.pouget@st.com>
2188
2189 Handle multiple breakpoint hits in Python interface:
2190 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2191 variable to breakpoints.
2192 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2193 bps instead of single breakpoint. Fix some space typos.
2194 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2195 variable to breakpoints.
2196
672f9b60
KP
21972011-09-15 Kevin Pouget <kevin.pouget@st.com>
2198
2199 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2200 note if the breakpoint is internal.
2201
43675ae4
KP
22022011-09-15 Kevin Pouget <kevin.pouget@st.com>
2203
0672bf41 2204 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2205
15148d6a
PA
22062011-09-14 Pedro Alves <pedro@codesourcery.com>
2207
2208 * infrun.c (prepare_for_detach, wait_for_inferior)
2209 (fetch_inferior_event): Don't flush the register cache.
2210 * remote.c (struct stop_reply) <regcache>: Add comment.
2211
d83e736b
JK
22122011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2213
2214 Remove excessive DWARF expressions memory duplication.
2215 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2216 for block.data.
2217 (indirect_pieced_value): Remove variable result. Remove variable
2218 back_to and its use for baton.data.
2219 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2220 block.data.
2221 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2222 Update the function comment.
2223
c65b3e0d
PA
22242011-09-13 Pedro Alves <pedro@codesourcery.com>
2225
2226 * inferior.h (ALL_INFERIORS): New.
2227 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2228 for a stopped thread.
2229 (thread_db_find_new_threads): Look for threads in all inferiors.
2230
a1398e0c
PA
22312011-09-13 Pedro Alves <pedro@codesourcery.com>
2232
2233 * breakpoint.c (update_watchpoint): Handle the case of the
2234 watchpoint to update not being in the breakpoint list yet.
2235 (hw_watchpoint_use_count): New, factored out from
2236 hw_watchpoint_used_count.
2237 (hw_watchpoint_used_count): Rename to ...
2238 (hw_watchpoint_used_count_others): ... this. Add `except'
2239 parameter. Don't count resources of `except'. Use
2240 hw_watchpoint_use_count.
2241
30596231
PA
22422011-09-13 Pedro Alves <pedro@codesourcery.com>
2243
2244 * gdbthread.h (enum thread_state): Moved here.
2245 (struct thread_info): Rename `executing_' field to `executing' and
2246 `state_' to `state'.
2247 * thread.c (enum thread_state): Moved to gdbthread.h.
2248 (new_thread, add_thread_silent, delete_thread_1)
2249 (any_live_thread_of_process, thread_alive, set_running)
2250 (set_running, is_thread_state, any_running, is_executing)
2251 (set_executing, finish_thread_state, print_thread_info)
2252 (do_captured_thread_select): Adjust.
2253
bede5f5f
JK
22542011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2255
2256 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2257 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2258
4801a9a3
PA
22592011-09-12 Pedro Alves <pedro@codesourcery.com>
2260 Matt Rice <ratmice@gmail.com>
2261
2262 PR gdb/13175
2263
2264 * interps.c (struct interp) <interpreter_out>: Delete field.
2265 (interp_new): Remove the data and uiout parameters and adjust.
2266 (interp_set): Only set the current_uiout from the interpreter's
2267 uiout after initializing the interpreter. Adjust call to
2268 init_proc.
2269 (interp_ui_out): Adjust to call procs->ui_out_proc.
2270 (interp_data, interp_name): New.
2271 * interps.h (interp_init_ftype): Add `self' parameter.
2272 (interp_ui_out_ftype): New typedef.
2273 (struct interp_procs) <ui_out_proc>: New method pointer.
2274 (interp_new): Remove the data and uiout parameters.
2275 (interp_data, interp_name): Declare.
2276 * tui/tui-interp.c (tui_init): Adjust prototype.
2277 (tui_ui_out): New.
2278 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2279 tui_out here. Adjust call to interp_new.
2280 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2281 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2282 (cli_ui_out): New.
2283 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2284 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2285 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2286 Initialize mi->uiout depending on the mi_version as extracted from
2287 the interpreter's name.
2288 (mi_ui_out): New.
2289 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2290 interp_new. Don't allocate the ui_out's of the interpreters here.
2291
d0afda03 22922011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2293
d0afda03 2294 * solib.c (solib_used): New function.
59145f8c
AR
2295 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2296 by another so_list object before freeing it.
2297
bdaf8d4a
JK
22982011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 Code cleanup.
2301 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2302 values.
2303
df15bd07
JK
23042011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2305
2306 Code cleanup.
2307 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2308 (amd64_skip_xmm_prologue): ... this new function. Describe its
2309 parameters. No longer use amd64_prologue_line_bug.
2310 * defs.h (producer_is_gcc_ge_4): New declaration.
2311 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2312 (process_full_comp_unit): Update its caller. Remove
2313 amd64_prologue_line_bug initialization.
2314 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2315 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2316
25289eb2
PA
23172011-09-09 Pedro Alves <pedro@codesourcery.com>
2318
2319 * linux-nat.h (enum resume_kind): New.
2320 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2321 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2322 resume_stop on the new lwp.
25289eb2
PA
2323 (add_lwp): Set last_resume_kind as resume_continue by default.
2324 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2325 (resume_lwp): New, factored out from resume_callback. Also check
2326 for pending status in lp->waitstatus.
2327 (resume_callback): Reimplement.
2328 (resume_clear_callback): Set last_resume_kind as resume_stop.
2329 (resume_set_callback): Set last_resume_kind as resume_continue.
2330 (linux_nat_resume, linux_handle_extended_wait): Set
2331 last_resume_kind.
2332 (running_callback): Also check lp->waitstatus for pending events.
2333 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2334 is resume_step.
2335 (stop_and_resume_callback): Don't re-resume if the core wanted the
2336 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2337 using an invalidated pointer.
2338 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2339 SIGSTOPs if the core wanted the LWP to stop.
2340 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2341 wanted the lwp to stop. If the core wanted the lwp to stop, and
2342 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2343 of TARGET_SIGNAL_STOP.
2344 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2345 here. Instead, signal the lwp, and set the last_resume_kind to
2346 resume_stop.
2347
f687d035
PA
23482011-09-09 Pedro Alves <pedro@codesourcery.com>
2349
2350 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2351 -1 (error), if the lwp exits right after attaching.
2352
bc587a6b
DE
23532011-09-08 Doug Evans <dje@google.com>
2354
63d97a20
DE
2355 * py-cmd.c: Some minor formatting fixes.
2356 (gdbpy_parse_command_name): Rename text arg to name, make const.
2357 All callers updated.
2358 * python-internal.h (gdbpy_parse_command_name): Update.
2359
bc587a6b
DE
2360 * cli/cli-decode.c (add_cmd): Add comment.
2361
08711b9a
JK
23622011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2363
2364 PR breakpoints/12435
2365 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2366 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2367 * dwarf2read.c (process_full_comp_unit): Initialize
2368 amd64_prologue_line_bug.
2369 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2370
b2e7f004
JK
23712011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2372
2373 Fix TUI screen corruption.
2374 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2375 batch_flag.
2376
8afd712c
JK
23772011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2378
2379 * findvar.c (read_var_value): Never return NULL, throw an error
2380 instead. Update the function comment. State symbol name in the error
2381 messages.
2382 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2383 read_var_value.
2384 * stack.c (print_frame_args): Likewise.
2385 * valops.c (value_of_variable): Likewise.
2386
b99b5f66
JK
23872011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 * stack.c (print_frame_args): New variable except. Wrap
2390 read_var_value and common_val_print into TRY_CATCH.
2391
85bc8cb7
JK
23922011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2395 caller to value_of_this.
2396 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2397 Twice.
2398 * valops.c (value_of_this): Remove parameter complain and variable ret.
2399 Update function comment. Never return NULL by this code.
2400 (value_of_this_silent): New function.
2401 * value.h (value_of_this): Remove parameter complain.
2402 (value_of_this_silent): New declaration.
2403
ede1849f
YQ
24042011-09-07 Yao Qi <yao@codesourcery.com>
2405
2406 * gdbthread.h (struct thread_info): Remove fields
2407 `stepping_through_solib_after_catch' and
2408 `stepping_through_solib_catchpoints'.
2409 * infrun.c (init_thread_stepping_state): Update.
2410 (process_event_stop_test, currently_stepping): Update.
2411 (currently_stepping_or_nexting_callback): Update.
2412
6aa27652
YQ
24132011-09-07 Yao Qi <yao@codesourcery.com>
2414
2415 * gdbthread.h (struct thread_info): Comment on field
2416 `step_after_step_resume_breakpoint'.
2417
00db5b94
PA
24182011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2419
2420 * remote.c (remote_console_output): Reindent.
2421
861152be
LM
24222011-09-06 Luis Machado <lgustavo@codesourcery.com>
2423
2424 * frame.c (has_stack_frames): Check for currently selected
2425 traceframe.
2426
ab821bc6
PA
24272011-09-06 Pedro Alves <pedro@codesourcery.com>
2428
2429 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2430 (set_async_annotation_level, set_async_prompt, pop_prompt)
2431 (push_prompt, new_async_prompt): Delete declarations.
2432 * top.h (get_prompt, set_prompt): Change prototype.
2433 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2434 declarations.
2435 * top.c (command_loop):
2436 (top_prompt): New global.
2437 (get_prefix, set_prefix, get_suffix, ): Delete.
2438 (get_prompt, set_prompt): Rewrite.
2439 (show_new_async_prompt): Rename to ...
2440 (show_prompt): ... this.
2441 (init_main): Adjust. Don't handle --annotate=2 here.
2442 * event-top.c (new_async_prompt): Delete.
2443 (the_prompts): Delete.
2444 (more_to_come): Make static.
2445 (display_gdb_prompt): Use top_level_prompt() to compute the top
2446 level prompt, and don't notify the before_prompt observers
2447 directly here. Always trick readline into not trying to display
2448 the prompt if sync_execution and displaying the primary prompt.
2449 If displaying a local/secondary prompt, always show it, even if
2450 sync_execution is set.
2451 (change_annotation_level): Delete.
2452 (top_level_prompt): New, based on change_annotation_level.
2453 (push_prompt, pop_prompt): Delete.
2454 (async_disable_stdin): No longer pushes prompt.
2455 (command_line_handler): No longer pushes or pops prompt. If more
2456 input is expected, call display_gdb_prompt with an explicit empty
2457 prompt.
2458 (async_stop_sig): Adjust.
2459 (set_async_annotation_level, set_async_prompt): Delete.
2460 * python/python.c (before_prompt_hook): Adjust.
2461
f1d90504
PA
24622011-09-05 Pedro Alves <pedro@codesourcery.com>
2463
2464 PR cli/13110
2465
2466 * infrun.c (fetch_inferior_event): Check if there's a selected
2467 thread before checking if the selected thread is executing.
2468
0f641c01
PA
24692011-09-05 Pedro Alves <pedro@codesourcery.com>
2470
2471 * inf-loop.c (execute_command): Don't check if the current thread
2472 if running before synchronously waiting for command completion.
2473 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2474 here.
2475 (normal_stop): Call async_enable_stdin here.
2476 * inf-loop.c (inferior_event_handler): Don't call
2477 async_enable_stdin, nor handle "set exec-done-display" here.
2478
30368258 24792011-09-04 Joel Brobecker <brobecker@adacore.com>
2480
2481 GDB 7.3.1 released.
2482
31916278
JB
24832011-09-04 Joel Brobecker <brobecker@adacore.com>
2484
2485 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2486
e8d56f18
JB
24872011-09-04 Joel Brobecker <brobecker@adacore.com>
2488
2489 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2490
5dd05d8c
JK
24912011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2494
7d8e6458 24952011-09-02 Matt Rice <ratmice@gmail.com>
2496
2497 PR gdb/10720
2498 * event-top.c (cli_command_loop): Replace readline setup with
2499 direct call to display_gdb_prompt.
2500 (display_gdb_prompt): Do not call observer mechanism during
2501 synchronous execution.
2502
84636d28
PA
25032011-09-02 Pedro Alves <pedro@codesourcery.com>
2504
2505 * linux-nat.c (in_pid_list_p): New.
2506 (linux_record_stopped_pid): Delete.
2507 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2508 already attached to the LWP. Return an indication if so.
2509 (linux_nat_filter_event): Adjust.
2510 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2511 returning an indication to ignore this thread.
2512
b4a14fd0
PA
25132011-09-02 Pedro Alves <pedro@codesourcery.com>
2514
2515 * top.c: Include interps.h.
2516 (execute_command): If the target can async, but the interpreter is
2517 in sync mode, synchronously wait for the command to finish before
2518 returning.
2519 (execute_command_to_string): Force the interpreter to sync mode.
2520 * infrun.c: Include interps.h.
2521 (fetch_inferior_event): Don't restore the prompt yet if the
2522 interpreter is in sync mode.
2523 * interps.c (interpreter_async): New global.
2524 * interps.h (interpreter_async): Declare.
2525 * inf-loop.c: Include interps.h.
2526 (inferior_event_handler): Don't print the language change or run
2527 breakpoint commands yet if the interpreter in is sync mode.
2528 * main.c (captured_command_loop): Flip the interpreter to async
2529 mode.
2530 * cli/cli-script.c: Include interps.h.
2531 (execute_user_command, while_command, if_command): Force the
2532 interpreter to sync mode.
2533 * python/python.c: Include interps.h.
2534 (python_command, execute_gdb_command): Force the interpreter to
2535 sync mode.
2536
c709acd1
PA
25372011-09-02 Pedro Alves <pedro@codesourcery.com>
2538
2539 * value.c (show_convenience): Catch errors thrown while printing
2540 each internal variable.
2541 * infrun.c (validate_siginfo_access): New function.
2542 (siginfo_value_read, siginfo_value_write): Call it.
2543
9655e943
JK
25442011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 Revert:
2547 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2548 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2549 attribute.
2550
cb457ae2
YQ
25512011-08-29 Yao Qi <yao@codesourcery.com>
2552
2553 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2554 (cmp_name): New.
2555 (enable_break2): Update caller.
2556 * solib-frv.c (bfd_lookup_symbol): Removed.
2557 (cmp_name): New.
2558 (enable_break2): Update caller.
2559 * solib-pa64.c (bfd_lookup_symbol): Removed.
2560 (cmp_name): New.
2561 * solib-svr4.c (bfd_lookup_symbol): Removed.
2562 (cmp_name_and_sec_flags): New.
2563 (enable_break): Update caller.
2564 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2565 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2566 (gdb_bfd_lookup_symbol): New.
2567 * solib.h: Functions declarations.
2568
83d1a36a
YQ
25692011-08-29 Yao Qi <yao@codesourcery.com>
2570
2571 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2572 and solib-dsbt.o.
2573
c04b3e8f
JK
25742011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2575
2576 Fix TUI stepi on code without symbols.
2577 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2578 current PC instead.
2579
cb0fd152
JK
25802011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2581
2582 Code cleanup.
2583 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2584 and the static keyword.
2585 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2586 Make prefix an array.
2587 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2588 * mi/mi-main.c (get_register): Remove stb initialization and the static
2589 keyword.
2590
91174723
JK
25912011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2592
2593 Code cleanup - make mi_opt const.
2594 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2595 opts const.
2596 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2597 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2598 (mi_cmd_env_dir): Likewise.
2599 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2600 (mi_cmd_target_file_put): Likewise.
2601 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2602 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2603 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2604 (mi_valid_noargs): Make opts const.
2605 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2606 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2607 (mi_cmd_data_read_memory): Likewise.
2608 (mi_cmd_data_read_memory_bytes): Likewise.
2609 (mi_cmd_data_write_memory): Likewise.
2610
5068b8e8 26112011-08-26 Matt Rice <ratmice@gmail.com>
2612
2613 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2614 bcache_xmalloc, replace bcache_xmalloc with call to
2615 psymbol_bcache_init for psymbol_cache.
2616 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2617
a4f2ce05
JK
26182011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2619
2620 * inf-loop.c (inferior_event_handler): Add exception_print in
2621 INF_EXEC_COMPLETE.
2622
353d1d73
JK
26232011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2626 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2627 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2628 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2629 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2630 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2631 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2632 * infrun.c (fetch_inferior_event): Call
2633 make_bpstat_clear_actions_cleanup.
2634 * top.c (execute_command): New variable cleanup_if_error, call
2635 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2636 * utils.c (do_bpstat_clear_actions_cleanup)
2637 (make_bpstat_clear_actions_cleanup): New functions.
2638
3ced3da4
PA
26392011-08-26 Pedro Alves <pedro@codesourcery.com>
2640
2641 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2642 either the parent or the child forks. Rename a couple locals.
2643
a9f4bb21
PA
26442011-08-26 Pedro Alves <pedro@codesourcery.com>
2645
2646 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2647 library call. Avoid reading the `status' local if all waitpid
2648 calls failed.
2649
e5798bef
PA
26502011-08-26 Pedro Alves <pedro@codesourcery.com>
2651
2652 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2653 opening /proc/PID/task always succeeds.
2654
edb2aadf
AR
26552011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2656
2657 * linespec.c (symtab_from_filename): Check for the end of string.
2658
0d932b2f
MK
26592011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2660
2661 PR mi/11912
2662 * varobj.c (cplus_describe_child): Add the keyword
2663 'class' to the output of the method when dealing
2664 with a cast to a base class.
2665
e93ca019
JK
26662011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2667
2668 No functionality change.
2669 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2670 function comment a reference, new variables tp and bs, move here code
2671 from throw_exception.
2672 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2673 describe it in the comment.
2674 * exceptions.c (throw_exception): Remove variable tp, move the code for
2675 bpstat_clear_actions to bpstat_clear_actions.
2676
13da1c97
LM
26772011-08-24 Luis Machado <lgustavo@codesourcery.com>
2678
2679 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2680 * linux-nat.c: Include linux-procfs.h.
2681 (linux_proc_get_tgid): Move to ...
2682 * common/linux-procfs.c: ... here. New file.
2683 * common/linux-procfs.h: New file.
2684 * linux-thread-db.c: Include linux-procfs.h.
2685 * Makefile.in: Update dependencies.
2686 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2687 * config/arm/linux.mh: Likewise.
2688 * config/i386/linux.mh: Likewise.
2689 * config/i386/linux64.mh: Likewise.
2690 * config/ia64/linux.mh: Likewise.
2691 * config/m32r/linux.mh: Likewise.
2692 * config/m68k/linux.mh: Likewise.
2693 * config/mips/linux.mh: Likewise.
2694 * config/pa/linux.mh: Likewise.
2695 * config/pa/linux.mh: Likewise.
2696 * config/powerpc/linux.mh: Likewise.
2697 * config/powerpc/ppc64-linux.mh: Likewise.
2698 * config/powerpc/spu-linux.mh: Likewise.
2699 * config/sparc/linux.mh: Likewise.
2700 * config/sparc/linux64.mh: Likewise.
2701 * config/xtensa/linux.mh: Likewise.
2702
4e5c165d
HZ
27032011-08-24 Hui Zhu <teawater@gmail.com>
2704
2705 * tracepoint.c (cond_string_is_same): New function.
2706 (find_matching_tracepoint): Add condition check
2707 by cond_string_is_same.
2708
6e2f5b22
JK
27092011-08-23 Josh Matthews <josh@joshmatthews.net>
2710
2711 Fix build error in Darwin port.
2712 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2713
abf85f46
JK
27142011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 Code cleanup.
2717 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2718 (command_line_is_silent): New function.
2719 (bpstat_do_actions_1): No longer use commands_left, use
2720 command_line_is_silent for commands.
2721 (bpstat_alloc): Remove clearing of commands_left.
2722 (bpstat_stop_status): Remove initialization of commands_left, use
2723 command_line_is_silent.
2724 * breakpoint.h (struct bpstats): Remove commands_left.
2725
3a93a0c2
KS
27262011-08-18 Keith Seitz <keiths@redhat.com>
2727
2728 PR c++/12266
2729 * cp-name-parser.y (struct demangle_info): Remove unused
2730 member PREV.
2731 (d_grab): Likewise.
2732 (allocate_info): Change return type to struct demangle_info *.
2733 Always allocate a new demangle_info.
2734 Remove unused PREV pointer.
2735 (cp_new_demangle_parse_info): New function.
2736 (cp_demangled_name_parse_free): New function.
2737 (do_demangled_name_parse_free_cleanup): New function.
2738 (make_cleanup_cp_demangled_name_parse_free): New function.
2739 (cp_demangled_name_to_comp): Change return type to
2740 struct demangle_parse_info *.
2741 Allocate a new storage for each call.
2742 (main): Update usage for cp_demangled_name_to_comp
2743 API change.
2744 * cp-support.h (struct demangle_parse_info): New structure.
2745 (cp_demangled_name_to_comp): Update API change for
2746 return type.
2747 (cp_new_demangle_parse_info): Declare.
2748 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2749 (cp_demangled_name_parse_free): Declare.
2750 * cp-support.c (cp_canonicalize_string): Update API
2751 change for cp_demangled_name_to_comp.
2752 (mangled_name_to_comp): Likewise.
2753 Return struct demangle_parse_info, too.
2754 (cp_class_name_from_physname): Update mangled_name_to_comp
2755 API change.
2756 (method_name_from_physname): Likewise.
2757 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2758 (cp_remove_params): Likewise.
2759 * python/py-type.c (typy_legacy_template_argument): Likewise.
2760
2761 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2762 (cp_merge_demangle_parse_infos): Declare.
2763 * cp-support.c (ignore_typedefs): New file global.
2764 (copy_string_to_obstack): New function.
2765 (inspect_type): New function.
2766 (replace_typedefs): New function.
2767 (replace_typedefs_qualified_name): New function.
2768 (cp_canonicalize_string_no_typedefs): New function.
2769 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2770 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2771 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2772 instead of cp_canonicalize_string.
2773 (find_method): Likewise.
2774 (decode_compound): Before looking up the name, call
2775 cp_canonicalize_string_no_typedefs.
2776 (decode_variable): Likewise.
2777
fa3a4f15
PM
27782011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2779 Tom Tromey <tromey@redhat.com>
2780 Matt Rice <ratmice@gmail.com>
2781
2782 * python/lib/gdb/prompt.py: New file.
2783 * python/lib/gdb/command/prompt.py: New file.
2784 * NEWS: Document set extended-prompt and gdb.prompt library
2785
85661b1e
YQ
27862011-08-16 Yao Qi <yao@codesourcery.com>
2787
2788 * tic6x-linux-tdep.c: Move const arrays definition from here...
2789 * tic6x-tdep.c: to here ...
2790
11315641
YQ
27912011-08-14 Yao Qi <yao@codesourcery.com>
2792
2793 * NEWS: New port to Texas Instruments TMS320C6x.
2794
8cd64e00
YQ
27952011-08-14 Andrew Jenner <andrew@codesourcery.com>
2796 Bernd Schmidt <bernds@codesourcery.com>
2797 Yao Qi <yao@codesourcery.com>
2798
2799 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2800 * solib-dsbt.c: New file. Support DSBT shared object.
2801 * tic6x-linux-tdep.c: New file.
2802 * tic6x-tdep.c: New file.
2803 * tic6x-tdep.h: New file.
2804
78d85199
YQ
28052011-08-14 Andrew Stubbs <ams@codesourcery.com>
2806 Yao Qi <yao@codesourcery.com>
2807
2808 * remote.c (PACKET_qXfer_fdpic): New enum value.
2809 (remote_protocol_features): Add qXfer:fdpic:read packet.
2810 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2811 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2812 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2813
224bbe49
YQ
28142011-08-14 Yao Qi <yao@codesourcery.com>
2815
2816 Target description for tic6x.
2817 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2818 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2819 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2820 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2821 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2822 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2823 * features/tic6x-c64xp-linux.xml: New.
2824 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2825 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2826 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2827 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2828 * regformats/tic6x-c64xp.dat,
2829 regformats/tic6x-c62x-linux.dat: Generated.
2830 * regformats/tic6x-c64x-linux.dat,
2831 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2832 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2833 features/tic6x-*.c files.
2834 Add regformats/tic6x-*.dat files.
2835
457e09f0
DE
28362011-08-12 Doug Evans <dje@google.com>
2837
2838 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2839 * python/py-symbol.c (sympy_get_type): New function.
2840 (symbol_object_getset): Add "type".
2841
d20c1c3f
PA
28422011-08-12 Pedro Alves <pedro@codesourcery.com>
2843
2844 PR tui/13073
2845
2846 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2847 empty name.
2848 (tui_show_register_group): Don't store a byte buffer in the data
2849 element's value.
2850 (tui_register_format): Skip registers with an empty name.
2851 (tui_get_register): Store a struct value in the data element's
2852 value field instead of a byte buffer holding the raw register
2853 contents. Account for optimized-out and unavailable registers
2854 when comparing register contents.
2855
9d8fa392
PA
28562011-08-09 Pedro Alves <pedro@codesourcery.com>
2857
2858 * printcmd.c (current_display_number): Update comment.
2859 (disable_current_display_cleanup): Delete.
2860 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2861 catch errors thrown while evaluating and printing the display.
2862
401a70b8
TT
28632011-08-09 Tom Tromey <tromey@redhat.com>
2864
2865 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2866
7f86f058
PA
28672011-08-09 Pedro Alves <pedro@codesourcery.com>
2868
94b71cca 2869 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2870 * maint.c (maintenance_command): Ditto.
2871 * somread.c (som_symtab_read): Ditto.
2872 * solib.c (solib_find, solib_map_sections, update_solib_list)
2873 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2874 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2875 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2876 * solib-irix.c (locate_base, disable_break, enable_break)
2877 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2878 (irix_current_sos, irix_open_symbol_file_object)
2879 (irix_special_symbol_handling): Ditto.
2880 * solib-sunos.c (locate_base, first_link_map_member)
2881 (sunos_current_sos, disable_break, enable_break)
2882 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2883 Ditto.
2884 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2885 (open_symbol_file_object, svr4_current_sos, enable_break)
2886 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2887 Ditto.
2888 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2889 (frv_current_sos, enable_break, frv_special_symbol_handling)
2890 (frv_solib_create_inferior_hook): Ditto.
2891 * solist.h (struct target_so_ops): Extend the comments of the
2892 special_symbol_handling, current_sos and open_symbol_file_object
2893 methods.
2894
5e239b84
PM
28952011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2896
2897 * python/lib/gdb/__init__.py: Auto-load files in command and
2898 function directories.
2899 * python/python.c (finish_python_initialization): Use
2900 os.path.join.
2901 * python/lib/gdb/command/pretty_printers.py: Self register
2902 command.
2903 * NEWS: Document auto-loading.
2904
b6cede78
JK
29052011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2906
2907 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2908 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2909 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2910
29d0bb3d
TT
29112011-08-08 Tom Tromey <tromey@redhat.com>
2912
2913 * breakpoint.c (clean_up_filters): Remove.
2914 (catch_syscall_split_args): Use VEC_cleanup.
2915
2f7fb8e4
JK
29162011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2917
2918 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2919 (main): Uncomment "Demangling error\n".
2920
d6c10e95
PP
29212011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2922
2923 * solib-target.c (segment_attributes): Make them static.
2924 (section_attributes, library_children, library_attributes): Likewise.
2925 (library_list_children, library_list_attributes): Likesise.
2926 (library_list_elements): Likewise.
2927
af6e93b2
PA
29282011-08-05 Pedro Alves <pedro@codesourcery.com>
2929
2930 * exceptions.c (throw_exception): Don't disable the current
2931 display.
2932 * printcmd.c (disable_current_display_cleanup): New function.
2933 (do_one_display): Install a cleanup to disable the current display
2934 if doing the display throws.
2935
6a1b1664
EZ
29362011-08-05 Eli Zaretskii <eliz@gnu.org>
2937
2938 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2939 initialization of the tp_new member to the corresponding
2940 gdbpy_initialize_* function.
2941 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2942 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2943 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2944 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2945 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2946
31a0ae49
JK
29472011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2948
2949 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2950 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2951 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2952 references to current_uiout.
2953
e0dd0826
PA
29542011-08-04 Pedro Alves <pedro@codesourcery.com>
2955
2956 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2957 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2958 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2959 * top.c (gdb_readline_wrapper): Adjust.
2960 * tui/tui-interp.c (tui_command_loop):
2961 (_initialize_tui_interp): Don't install it.
2962
79a45e25
PA
29632011-08-04 Pedro Alves <pedro@codesourcery.com>
2964
2965 * ui-out.h (uiout): Rename to ...
2966 (current_uiout): ... this.
2967 * ui-out.c (uiout): Rename to ...
2968 (current_uiout): ... this.
2969 * ada-lang.c (print_it_exception, print_one_exception)
2970 (print_mention_exception): Adjust.
2971 * breakpoint.c (watchpoint_check): Adjust.
2972 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2973 (default_collect_info, watchpoints_info, print_one_catch_fork)
2974 (print_one_catch_vfork, print_one_catch_syscall)
2975 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2976 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2977 (print_it_watchpoint, print_mention_watchpoint)
2978 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2979 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2980 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2981 (bkpt_print_mention, momentary_bkpt_print_it)
2982 (tracepoint_print_mention, update_static_tracepoint)
2983 (tracepoints_info, save_breakpoints): Adjust.
2984 * cli-out.c (field_separator): Adjust.
2985 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2986 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2987 * frame.c (get_current_frame): Adjust.
2988 * infcmd.c (run_command_1, print_return_value): Adjust.
2989 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2990 * infrun.c (print_end_stepping_range_reason): Adjust.
2991 (print_signal_exited_reason, print_exited_reason): Adjust.
2992 (print_signal_received_reason, print_no_history_reason): Adjust.
2993 * interps.c (interp_set): Adjust.
2994 * osdata.c (info_osdata_command): Adjust.
2995 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2996 * remote-fileio.c (remote_fileio_request): Adjust.
2997 * remote.c (show_remote_cmd): Adjust.
2998 * solib.c (info_sharedlibrary_command): Adjust.
2999 * source.c (print_source_lines_base): Adjust.
3000 * stack.c (print_stack_frame): Adjust.
3001 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3002 * symfile-mem.c (add_vsyscall_page): Adjust.
3003 * symfile.c (load_progress, generic_load)
3004 (print_transfer_performance): Adjust.
3005 * thread.c (info_threads_command, restore_selected_frame)
3006 (thread_command): Adjust.
3007 * top.c (make_cleanup_restore_ui_file): Adjust.
3008 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3009 (print_one_static_tracepoint_marker): Adjust.
3010 * cli/cli-cmds.c (print_disassembly): Adjust.
3011 * cli/cli-decode.c (print_doc_line): Adjust.
3012 * cli/cli-interp.c (safe_execute_command): Adjust.
3013 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3014 (handle_redirections): Adjust.
3015 * cli/cli-script.c (show_user_1): Adjust.
3016 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3017 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3018 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3019 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3020 (mi_cmd_env_dir): Adjust.
3021 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3022 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3023 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3024 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3025 (list_args_or_locals): Adjust.
3026 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3027 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3028 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3029 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3030 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3031 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3032 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3033 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3034 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3035 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3036 (list_available_thread_groups, mi_cmd_list_thread_groups)
3037 (mi_cmd_data_list_register_names)
3038 (mi_cmd_data_list_changed_registers)
3039 (mi_cmd_data_list_register_values, get_register)
3040 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3041 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3042 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3043 (mi_execute_command, mi_load_progress): Adjust.
3044 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3045 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3046 Adjust.
3047 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3048 * tui/tui-interp.c (tui_command_loop): Adjust.
3049 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3050
f9679975
PA
30512011-08-04 Pedro Alves <pedro@codesourcery.com>
3052
3053 * exceptions.c (struct catcher): Remove saved_uiout field.
3054 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3055 no longer save/resvore the global ui_out builder.
3056 (catch_exceptions_with_msg): Save/override/restore the global
3057 ui_out builder manually instead of relying on TRY_CATCH to do it.
3058 (catch_errors): Save/restore the global ui_out builder manually
3059 instead of relying on TRY_CATCH to do it.
3060 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3061 parameter.
3062 (TRY_CATCH): Adjust.
3063 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3064 the global ui_out builder manually instead of relying on TRY_CATCH
3065 to do it.
3066
934709f0
PW
30672011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3068
3069 * breakpoint.c (update_global_location_list): Ensure
3070 invariant 'first loc marked not duplicated and inserted,
3071 following locs marked duplicated/not inserted' is respected
3072 for multiple locations at the same address.
3073 (unduplicated_should_be_inserted) New function.
3074 (swap_insertion) New function.
3075
2421fe6f
JK
30762011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3077
3078 * stack.c (print_frame_arguments_choices): Comment typo fix.
3079
3fbb6ffa
TJB
30802011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3081
3082 Revert:
3083 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3084 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3085 argument. Update callers.
3086
fbe12357
PP
30872011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3088
3089 PR gdb/13045
3090 * doublest.c (convert_doublest_to_floatformat): Pass correct
3091 mantissa length to put_field.
3092
b1d288d3
JK
30932011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3096 exception_print code path.
3097 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3098 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3099 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3100
311b5970
JK
31012011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3102
3103 Code cleanup.
3104 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3105 Remove, merge them into ...
3106 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3107 variable args and its initialization.
3108 (struct print_args_args, print_args_stub): Remove, merge them into
3109 print_frame.
3110 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3111 them into ...
3112 (do_gdb_disassembly): ... here. Remove variable args and its
3113 initialization.
3114 (print_frame): Remove variable args and its initialization, new
3115 variable gdbarch and numargs (from print_args_stub), inline here
3116 print_args_stub with a TRY_CATCH.
3117 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3118 them into ...
3119 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3120 New variable e, remove variable btargs and its initialization.
311b5970 3121
484a26a8
TG
31222011-08-01 Tristan Gingold <gingold@adacore.com>
3123
3124 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3125
c30eee59
TJB
31262011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3127
3128 * breakpoint.c (insert_bp_location): Document return value.
3129 (insert_breakpoint_locations): Fix documentation.
3130 (remove_breakpoints): Add documentation.
3131
f116073b
TJB
31322011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3133
3134 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3135 argument. Update callers.
3136
65aa373f
JK
31372011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3138
3139 * stack.c (print_frame_info): Comment typo fix.
3140
a50242fb
SA
31412011-07-29 Sterling Augustine <saugustine@google.com>
3142
3143 * MAINTAINERS (Write After Approval): Add myself to the list.
3144
267f6504
TT
31452011-07-29 Tom Tromey <tromey@redhat.com>
3146
3147 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3148 (library_list_start_segment): Update.
3149 (library_list_start_section): Update.
3150
00bd41d6
PM
31512011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3152
3153 * varobj.c (value_get_print_value): Move hint check later into the
3154 function. Comment function. Free thevalue before reusing it.
3155
18a46dbe
JK
31562011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3157 Pedro Alves <pedro@codesourcery.com>
3158
3159 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3160 value_one.
3161 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3162 Assert the result kind.
3163 * value.h (value_one): Remove parameter lv.
3164
bb7da2bf
JK
31652011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3166
3167 Fix crash on lval_computed values.
3168 * valops.c (value_zero): Use not_lval for lval_computed.
3169
2d5213f8
TT
31702011-07-27 Tom Tromey <tromey@redhat.com>
3171
3172 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3173 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3174
11081198
JK
31752011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3178 "ptype" by their typedefs difference.
3179
3c6e0cb3
JK
31802011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3181
3182 * dwarf2expr.c (ctx_no_read_reg): New function.
3183 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3184 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3185 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3186 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3187
523f3620
JK
31882011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3189
3190 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3191 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3192 file.
3193 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3194 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3195 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3196 (ctx_no_get_base_type): Move the functions here.
3197 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3198 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3199 (ctx_no_get_base_type): New declarations.
3200
24d3216f
TT
32012011-07-27 Tom Tromey <tromey@redhat.com>
3202
3203 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3204 entries.
3205 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3206 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3207
5005c8a9
PP
32082011-07-26 Sterling Augustine <saugustine@google.com>
3209
3210 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3211 ULONGEST.
3212 (dump_bfd_file): Likewise.
3213
480a3f21
PW
32142011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3215
3216 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3217 (remote_hw_watchpoint_length_limit): New variable.
3218 (_initialize_remote) add set,show cmds for this new variable.
3219 * gdb.texinfo: document these new commands.
3220 * NEWS: Mention these new commands.
3221
efa80663
PA
32222011-07-26 Pedro Alves <pedro@codesourcery.com>
3223
3224 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3225 true for software watchpoints.
3226
dbdaa232 32272011-07-26 Joel Brobecker <brobecker@adacore.com>
3228
3229 GDB 7.3 released.
3230
cf2c3c16
TT
32312011-07-26 Tom Tromey <tromey@redhat.com>
3232
3233 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3234 * dwarf2read.c (read_indirect_string_at_offset): New function.
3235 (read_indirect_string): Use it.
3236 (dwarf_decode_macro_bytes): New function, taken from
3237 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3238 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3239 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3240 New functions.
3241 (struct dwarf2_per_objfile) <macro>: New field.
3242 (dwarf2_elf_names): Add .debug_macro.
3243 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3244 (dwarf2_locate_sections): Handle new section.
3245 (read_file_scope): Handle DW_AT_GNU_macros.
3246 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3247
1a532630
PP
32482011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3249
3250 * NEWS: Mention dcache configuration.
3251 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3252 (dcache_size, dcache_line_size): New variables.
3253 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3254 (struct dcache_block): Make it expandable.
3255 (struct dcache_struct): New field.
3256 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3257 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3258 (dcache_poke_byte, dcache_print_line): Adjust.
3259 (set_dcache_size, set_dcache_line_size): New functions.
3260 (set_dcache_command, show_dcache_command): New functions.
3261 (_initialize_dcache): Add new commands.
3262
2eff07b3
PP
32632011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3264
3265 * progspace.h (struct program_space): Add solib_add_generation.
3266 * infcmd.c (post_create_inferior): Only call solib_add if not
3267 already done.
3268 * solib.c (solib_add): Increment solib_add_generation.
3269
543305c9
JK
32702011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3271
3272 Fix implicit pointer offsets.
3273 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3274 ptr.OFFSET.
3275
c0a91b2b
TT
32762011-07-25 Tom Tromey <tromey@redhat.com>
3277
3278 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3279 const.
3280 (ada_exception_sal): Make 'ops' const.
3281 (ada_decode_exception_location): Likewise.
3282 (ada_decode_assert_location): Likewise.
3283 (catch_assert_command): Update.
3284 (catch_ada_exception_command): Update.
3285 (create_ada_exception_catchpoint): Make 'ops' const.
3286 * breakpoint.c (set_raw_breakpoint_without_location)
3287 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3288 const.
3289 (create_internal_breakpoint): Update.
3290 (init_raw_breakpoint_without_location): Make 'ops' const.
3291 (init_raw_breakpoint, init_catchpoint)
3292 (create_fork_vfork_event_catchpoint)
3293 (create_syscall_event_catchpoint, init_breakpoint_sal)
3294 (create_breakpoint_sal, create_breakpoints_sal)
3295 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3296 * breakpoint.h (struct breakpoint) <ops>: Now const.
3297 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3298 const.
3299
6cb9b55b
PP
33002011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3301
3302 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3303
d9b3f62e
PA
33042011-07-25 Pedro Alves <pedro@codesourcery.com>
3305
3306 * breakpoint.h (print_recreate_thread): Declare.
3307 (struct breakpoint): Move step_count, pass_count,
3308 number_on_target, static_trace_marker_id,
3309 static_trace_marker_id_idx ...
3310 (struct tracepoint): ... to this new struct.
3311 (get_tracepoint, get_tracepoint_by_number_on_target)
3312 (get_tracepoint_by_number): Change return type to struct
3313 tracepoint pointer.
3314 * breakpoint.c (is_tracepoint_type): New, factored out from
3315 is_tracepoint.
3316 (is_tracepoint): Adjust.
3317 (print_one_breakpoint_location): Cast to struct tracepoint as
3318 necessary, and adjust.
3319 (print_recreate_catch_fork, print_recreate_catch_vfork)
3320 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3321 print_recreate_thread.
3322 (init_breakpoint_sal): New, factored out from
3323 create_breakpoint_sal.
3324 (create_breakpoint_sal): Reimplement.
3325 (create_breakpoint): Allocate a struct tracecepoint if the caller
3326 wanted a tracepoint. Use init_breakpoint_sal and
3327 install_breakpoint.
3328 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3329 (print_recreate_masked_watchpoint)
3330 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3331 (tracepoint_print_one_detail): Adjust.
3332 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3333 Dump the pass count here.
3334 (update_static_tracepoint): Adjust.
3335 (addr_string_to_sals): Adjust.
3336 (create_tracepoint_from_upload): Adjust. Change return type to
3337 struct tracepoint pointer.
3338 (trace_pass_set_count): Change parameter type to struct tracepoint
3339 pointer, and adjust.
3340 (trace_pass_command): Adjust.
3341 (get_tracepoint, get_tracepoint_by_number_on_target)
3342 (get_tracepoint_by_number): Change return type to struct
3343 tracepoint pointer, and adjust.
3344 (print_recreate_thread): New, factored out from save_breakpoints.
3345 (save_breakpoints): Don't print thread and task and passcount
3346 recreation here.
3347 * remote.c (remote_download_tracepoint): Adjust.
3348 * tracepoint.c (trace_actions_command, validate_actionline)
3349 (start_tracing, tfind_1, trace_find_tracepoint_command)
3350 (trace_dump_command): Adjust.
3351 (find_matching_tracepoint): Change return type to struct
3352 tracepoint pointer, and adjust.
3353 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3354 (tfile_trace_find, tfile_fetch_registers): Adjust.
3355 * tracepoint.h (create_tracepoint_from_upload): Change return type
3356 to struct tracepoint pointer.
3357 * ada-lang.c (print_recreate_exception): Call
3358 print_recreate_thread.
3359 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3360
3a5c3e22
PA
33612011-07-25 Pedro Alves <pedro@codesourcery.com>
3362
3363 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3364 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3365 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3366 watchpoint_thread, watchpoint_triggered ...
3367 (struct watchpoint): ... to this new struct.
3368 (is_watchpoint): Declare.
3369 (install_breakpoint): Add new `internal' parameter.
3370 * breakpoint.c (is_watchpoint): Delete declaration.
3371 (set_breakpoint_condition): Handle watchpoints.
3372 (is_watchpoint): Make public.
3373 (watchpoint_in_thread_scope): Change parameter type to struct
3374 watchpoint.
3375 (watchpoint_del_at_next_stop): Change parameter type to struct
3376 watchpoint. Remove assertion. Adjust.
3377 (update_watchpoint): Ditto.
3378 (insert_breakpoints, breakpoint_init_inferior)
3379 (watchpoints_triggered, watchpoint_check)
3380 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3381 (bpstat_stop_status, print_one_breakpoint_location)
3382 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3383 to struct watchpoint as necessary, and adjust.
3384 (install_breakpoint): Add `internal' argument. If true, don't
3385 mention the new breakpoint. Use set_breakpoint_number.
3386 (create_fork_vfork_event_catchpoint)
3387 (create_syscall_event_catchpoint): Adjust.
3388 (dtor_watchpoint): New.
3389 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3390 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3391 (print_it_watchpoint, print_mention_watchpoint)
3392 (print_recreate_watchpoint, insert_masked_watchpoint)
3393 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3394 (print_one_detail_masked_watchpoint)
3395 (print_mention_masked_watchpoint)
3396 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3397 necessary, and adjust.
3398 (watch_command_1): Allocate and initialize a struct watchpoint
3399 instead of a struct breakpoint. Use install_breakpoint.
3400 (catch_exec_command_1): Adjust.
3401 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3402 fields.
3403 (delete_breakpoint, enable_breakpoint_disp)
3404 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3405 as necessary, and adjust.
3406 (initialize_breakpoint_ops): Install dtor_watchpoint as
3407 watchpoints' dtor method.
3408 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3409 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3410 to struct watchpoint as necessary, and adjust.
3411
2060206e
PA
34122011-07-25 Pedro Alves <pedro@codesourcery.com>
3413
3414 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3415 the the base class ops table.
3416 (catch_exception_breakpoint_ops)
3417 (catch_exception_unhandled_breakpoint_ops)
3418 (catch_assert_breakpoint_ops): Don't statically initialize.
3419 (initialize_ada_catchpoint_ops): New.
3420 (_initialize_ada_language): Call it.
3421 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3422 (bkpt_breakpoint_ops): Forward declare.
3423 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3424 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3425 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3426 (masked_watchpoint_breakpoint_ops)
3427 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3428 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3429 base class ops table.
3430 (null_re_set, null_check_status, null_works_in_software_mode)
3431 (null_resources_needed, null_print_one_detail): Delete.
3432 (bkpt_dtor): Rename to ...
3433 (base_breakpoint_dtor): ... this. Make static.
3434 (bkpt_allocate_location): Rename to ...
3435 (base_breakpoint_allocate_location): ... this. Make static.
3436 (base_breakpoint_re_set): New.
3437 (internal_error_pure_virtual_called): New.
3438 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3439 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3440 (base_breakpoint_works_in_software_mode)
3441 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3442 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3443 (base_breakpoint_print_recreate): New functions.
3444 (base_breakpoint_ops): New global.
3445 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3446 (bkpt_breakpoint_hit): Make static.
3447 (bkpt_check_status): Delete.
3448 (bkpt_resources_needed): Make static.
3449 (bkpt_works_in_software_mode): Delete.
3450 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3451 static.
3452 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3453 (momentary_breakpoint_ops): Don't statically initialize.
3454 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3455 Delete.
3456 (tracepoint_insert_location, tracepoint_remove_location)
3457 (tracepoint_check_status, tracepoint_works_in_software_mode)
3458 (tracepoint_print_it): Delete.
3459 (tracepoint_breakpoint_ops): Don't statically initialize.
3460 (initialize_breakpoint_ops): New.
3461 (_initialize_breakpoint): Call it.
3462 * breakpoint.h (null_re_set, null_works_in_software_mode)
3463 (null_resources_needed, null_check_status, null_print_one_detail):
3464 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3465 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3466 (bkpt_check_status, bkpt_resources_needed)
3467 (bkpt_works_in_software_mode, bkpt_print_it)
3468 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3469 Delete declarations.
3470 (initialize_breakpoint_ops): Declare.
3471
001c8c33
PA
34722011-07-25 Pedro Alves <pedro@codesourcery.com>
3473
3474 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3475 (momentary_bkpt_print_it): Simplify.
3476
06edf0c0
PA
34772011-07-25 Pedro Alves <pedro@codesourcery.com>
3478
3479 Split internal, momentary and user breakpoints breakpoint_ops
3480 tables.
3481
3482 * breakpoint.c (internal_breakpoint_ops)
3483 (momentary_breakpoint_ops): Forward declare.
3484 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3485 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3486 (create_overlay_event_breakpoint)
3487 (create_std_terminate_master_breakpoint)
3488 (create_exception_master_breakpoint): Create breakpoints with
3489 internal_breakpoint_ops vtable.
3490 (set_longjmp_breakpoint): Create momentary breakpoints with
3491 momentary_breakpoint_ops vtable, using
3492 momentary_breakpoint_from_master.
3493 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3494 (create_solib_event_breakpoint): Create breakpoints with
3495 internal_breakpoint_ops vtable.
3496 (set_momentary_breakpoint): Create breakpoints with
3497 momentary_breakpoint_ops vtable.
3498 (momentary_breakpoint_from_master): New, factored out from
3499 clone_momentary_breakpoint.
3500 (clone_momentary_breakpoint): Adjust.
3501 (watch_command_1): Create scope breakpoints with
3502 momentary_breakpoint_ops vtable.
3503 (bkpt_re_set): Remove handling of internal and momentary
3504 breakpoints.
3505 (bkpt_print_mention, bkpt_print_recreate): New.
3506 (bkpt_breakpoint_ops): Adjust.
3507 (internal_bkpt_re_set, internal_bkpt_check_status)
3508 (internal_bkpt_print_it, internal_bkpt_print_mention)
3509 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3510 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3511 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3512 (momentary_bkpt_print_recreate): New.
3513 (momentary_breakpoint_ops): New.
3514
348d480f
PA
35152011-07-25 Pedro Alves <pedro@codesourcery.com>
3516
3517 Implement most breakpoint_ops methods for all breakpoint types,
3518 and move the default handlings to the proper callbacks.
3519
3520 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3521 works_in_software_mode method.
3522 (insert_bp_location): Go through breakpoint_ops->insert_location
3523 for software and hardware watchpoints.
3524 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3525 breakpoint_ops.
3526 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3527 for software and hardware watchpoints.
3528 (print_it_typical): Delete.
3529 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3530 method.
3531 (watchpoint_check): Adjust comment.
3532 (bpstat_check_location): Simply always call the breakpoint's
3533 breakpoint_hit method.
3534 (bpstat_stop_status): Always call the breakpoint's check_status
3535 method. Remove special cases for watchpoints and internal event
3536 breakpoints from here (moved to the check_status implementations).
3537 (print_one_breakpoint_location): Assume b->ops is never NULL.
3538 Remove static tracepoint marker id printing from here (moved to
3539 the print_one_detail callback implementation of tracepoints).
3540 (init_bp_location): Assert OPS is never NULL.
3541 (allocate_bp_location): Always call the breakpoint's
3542 allocate_location method, and remove the default code from here.
3543 (free_bp_location): Always call the location's dtor method, and
3544 remove the default code from here.
3545 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3546 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3547 parameter. Pass it down.
3548 (set_raw_breakpoint): Ditto.
3549 (print_it_catch_fork): Adjust to take a bpstat as argument.
3550 (catch_fork_breakpoint_ops): Install methods.
3551 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3552 (catch_vfork_breakpoint_ops): Install methods.
3553 (dtor_catch_syscall): Call the base dtor.
3554 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3555 (catch_syscall_breakpoint_ops): Install methods.
3556 (dtor_catch_exec): Call the base dtor.
3557 (print_it_catch_exec): Adjust to take a bpstat as argument.
3558 (catch_exec_breakpoint_ops): Install methods.
3559 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3560 the breakpoint's resources_needed method, and remove the default
3561 code from here.
3562 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3563 breakpoint_ops.
3564 (clone_momentary_breakpoint): Clone the original's ops.
3565 (mention): Always call the breakpoint's print_mention method, and
3566 remove the default code from here.
3567 (create_breakpoint_sal): Adjust to pass the ops to
3568 set_raw_breakpoint rather than setting it manually.
3569 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3570 ops to set_raw_breakpoint_without_location rather than setting it
3571 manually.
3572 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3573 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3574 (ranged_breakpoint_ops): Install methods.
3575 (break_range_command): Adjust to pass the ops to
3576 set_raw_breakpoint rather than setting it manually.
3577 (re_set_watchpoint, breakpoint_hit_watchpoint)
3578 (check_status_watchpoint, resources_needed_watchpoint)
3579 (works_in_software_mode_watchpoint, print_it_watchpoint)
3580 (print_mention_watchpoint, print_recreate_watchpoint): New
3581 functions.
3582 (watchpoint_breakpoint_ops): Install new methods.
3583 (print_it_masked_watchpoint): New function.
3584 (masked_watchpoint_breakpoint_ops): Install new methods.
3585 (watch_command_1): Adjust to pass the right breakpoint_ops to
3586 set_raw_breakpoint_without_location rather than setting it
3587 manually later. Record the current pspace.
3588 (print_it_exception_catchpoint): Adjust to take a bpstat as
3589 argument.
3590 (gnu_v3_exception_catchpoint_ops): Install new methods.
3591 (say_where): New function.
3592 (null_re_set, null_check_status, null_works_in_software_mode)
3593 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3594 New functions.
3595 (bp_location_ops): New global.
3596 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3597 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3598 (bkpt_check_status, bkpt_resources_needed)
3599 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3600 (bkpt_print_recreate): New functions.
3601 (bkpt_breakpoint_ops): New global.
3602 (tracepoint_re_set, tracepoint_insert_location)
3603 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3604 (tracepoint_check_status, tracepoint_works_in_software_mode)
3605 (tracepoint_print_it, tracepoint_print_one_detail)
3606 (tracepoint_print_mention, tracepoint_print_recreate): New
3607 functions.
3608 (tracepoint_breakpoint_ops): New global.
3609 (delete_breakpoint): Always call the breakpoint's dtor method, and
3610 remove the default handling from here.
3611 (breakpoint_re_set_default): Make static.
3612 (breakpoint_re_set_one): Always call the breakpoints re_set
3613 method, and remove the default handling from here.
3614 (trace_command, ftrace_command, strace_command)
3615 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3616 to create_breakpoint.
3617 (save_breakpoints): Always call the breakpoint's print_recreate
3618 method, and remove the default handling from here.
3619
3620 * ada-lang.c (dtor_exception): Call the base dtor.
3621 (re_set_exception): Call the base method.
3622 (print_it_exception, print_it_catch_exception): Adjust to take a
3623 bpstat as argument.
3624 (catch_exception_breakpoint_ops): Install methods.
3625 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3626 argument.
3627 (catch_exception_unhandled_breakpoint_ops): Install methods.
3628 (print_it_catch_assert): Adjust to take a bpstat as argument.
3629 (catch_assert_breakpoint_ops): Install methods.
3630
3631 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3632 to take a bpstat as argument.
3633 (enum print_stop_action): Add describing comments to each enum
3634 value.
3635 (breakpoint_re_set_default): Delete declaration.
3636 (null_re_set, null_works_in_software_mode, null_resources_needed)
3637 (null_check_status, null_print_one_detail): Declare.
3638 (bkpt_breakpoint_ops): Declare.
3639 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3640 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3641 (bkpt_check_status, bkpt_resources_needed)
3642 (bkpt_works_in_software_mode, bkpt_print_it)
3643 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3644 Declare.
3645
3646 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3647 bkpt_breakpoint_ops.
3648 * python/py-breakpoint.c (bppy_init): Ditto.
3649
be8f8133
PW
36502011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3651
3652 * MAINTAINERS (Write After Approval): Add myself to the list.
3653
3807f613
PP
36542011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3655
3656 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3657
1ced966e
PA
36582011-07-22 Pedro Alves <pedro@codesourcery.com>
3659
3660 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3661 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3662 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3663 adjust.
3664 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3665 (struct i386_debug_reg_state): New.
3666 (i386_init_dregs): New.
3667 (dr_mirror): New.
3668 (i386_cleanup_dregs): Use i386_init_dregs.
3669 (i386_show_dr): Add state parameter and adjust.
3670 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3671 the inferior here.
3672 (i386_remove_aligned_watchpoint): Likewise.
3673 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3674 (i386_update_inferior_debug_regs): New.
3675 (i386_insert_watchpoint): Work on a local mirror of the debug
3676 registers, and only update the inferior on success.
3677 (i386_remove_watchpoint): Ditto.
3678 (i386_region_ok_for_watchpoint): Adjust.
3679 (i386_stopped_data_address): Adjust.
3680 (i386_insert_hw_breakpoint): Adjust.
3681 (i386_remove_hw_breakpoint): Adjust.
3682
3543a589
TT
36832011-07-22 Tom Tromey <tromey@redhat.com>
3684
3685 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3686 from amd64_pseudo_register_read. Change arguments. Call
3687 mark_value_bytes_unavailable when needed.
3688 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3689 set_gdbarch_pseudo_register_read.
3690 * sentinel-frame.c (sentinel_frame_prev_register): Use
3691 regcache_cooked_read_value.
3692 * regcache.h (regcache_cooked_read_value): Declare.
3693 * regcache.c (regcache_cooked_read_value): New function.
3694 (regcache_cooked_read): Call
3695 gdbarch_pseudo_register_read_value if available.
3696 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3697 (i386_pseudo_register_read): Remove.
3698 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3699 i386_pseudo_register_read. Change arguments. Call
3700 mark_value_bytes_unavailable when needed.
3701 (i386_pseudo_register_read_value): New function.
3702 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3703 not set_gdbarch_pseudo_register_read.
3704 * gdbarch.sh (pseudo_register_read_value): New method.
3705 * gdbarch.c, gdbarch.h: Rebuild.
3706 * findvar.c (value_from_register): Call get_frame_register_value.
3707
95298e72
PM
37082011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3709
3710 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3711 get_prefix.
3712 (display_gdb_prompt): Likewise.
3713 (change_annotation_level): Likewise.
3714 (push_prompt): Likewise.
3715 (pop_prompt): Likewise.
3716 (handle_stop_sig): Use get_prompt with a level.
3717 * top.c (command_loop): Use get_prompt with a level.
3718 (set_async_annotation_level): Use set_prompt with a level.
3719 (get_prefix): New function.
3720 (set_prefix): Ditto.
3721 (set_suffix): Ditto.
3722 (get_suffix): Ditto.
3723 (get_prompt): Accept a level argument.
3724 (set_prompt): Accept a level argument. Free old prompts. Set
3725 new_async_prompt if level is 0.
3726 (init_main): Use set_prompt with a level. Do not set
3727 new_async_prompt.
3728 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3729 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3730 Modify set_prompt, get_prompt to account for levels.
3731 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3732 level.
3733 * python/python.c (before_prompt_hook): Use set_prompt.
3734
d26e3629
KY
37352011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3736
3737 * defs.h: Add guard against inclusion in gdbserver.
3738 (struct ptid, ptid_t): Move to common/ptid.h.
3739 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3740 xsnprintf, internal_error): Move to common/common-utils.h.
3741 (nomem): Delete.
3742 * gdb_assert.h: Move into common/ sub-directory.
3743 * gdb_locale.h: Ditto.
3744 * gdb_dirent.h: Ditto.
3745 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3746 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3747 Move into common/ptid.h.
3748 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3749 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3750 Change nomem to malloc_failure.
3751 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3752 * utils.c (nomem): Rename to malloc_failure.
3753 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3754 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3755 (gdb_buildargv): Change nomem to malloc_failure.
3756 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3757 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3758 ptid_is_pid): Move into common/ptid.c.
3759 (initialize_infrun): Delete initialization of null_ptid and
3760 minus_one_ptid.
3761 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3762 linux_common_xfer_osdata.
3763 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3764 common/ptid.c and common/buffer.c.
3765 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3766 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3767 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3768 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3769 rules.
3770 * common/gdb_assert.h: New.
3771 * common/gdb_dirent.h: New.
3772 * common/gdb_locale.h: New.
3773 * common/buffer.c: New.
3774 * common/buffer.h: New.
3775 * common/ptid.c: New.
3776 * common/ptid.h: New.
3777 * common/xml-utils.c: New.
3778 * common/xml-utils.h: New.
3779 * common/common-utils.c: New.
3780 * common/common-utils.h: New.
3781 * common/linux-osdata.c: New.
3782 * common/linux-osdata.h: New.
3783 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3784 * config/arm/linux.mh (NATDEPFILES): Ditto.
3785 * config/i386/linux.mh (NATDEPFILES): Ditto.
3786 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3787 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3788 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3789 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3790 * config/mips/linux.mh (NATDEPFILES): Ditto.
3791 * config/pa/linux.mh (NATDEPFILES): Ditto.
3792 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3793 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3794 * config/s390/s390.mh (NATDEPFILES): Ditto.
3795 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3796 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3797 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3798
edc84990 37992011-07-21 Matt Rice <ratmice@gmail.com>
3800
3801 * NEWS: Add info macros and info definitions commands.
3802
3a7bf607
PM
38032011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3804
3805 * NEWS: Document Python prompt substitution hook.
3806
9b158ba0 38072011-07-18 Matt Rice <ratmice@gmail.com>
3808
3809 PR macros/12999
3810 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3811 * macrotab.c (foreach_macro): Ditto.
3812 (foreach_macro_in_scope): Ditto.
3813 * macrocmd.c (print_macro_callback): New function.
3814 (info_macro_command): Move some code to print_macro_definition.
3815 (print_macro_definition): New function.
3816 (print_one_macro): Add new arguments to callback.
3817 (info_definitions_command): New function.
3818 (info_macros_command): Ditto.
3819 (_initialize_macrocmd): Add info macros and info definitions commands.
3820 * symtab.c (add_macro_name): Add new arguments to callback.
3821
d17b6f81
PM
38222011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3823 Tom Tromey <tromey@redhat.com>
3824
3825 * top.c (set_prompt): Rewrite to free previous prompt, free
3826 asynch_new_prompt and set both on new prompts.
3827 * event-top.c (display_gdb_prompt): Add prompt substitution
3828 logic.
3829 * python/python.c (before_prompt_hook): New function.
3830
1364323a 38312011-07-20 Matt Rice <ratmice@gmail.com>
3832
3833 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3834 arguments to store_unsigned_integer.
3835
8b70b953
TT
38362011-07-20 Tom Tromey <tromey@redhat.com>
3837
6c83ed52
TT
3838 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3839 in some declaration-only cases.
3840
38412011-07-18 Tom Tromey <tromey@redhat.com>
3842
8b70b953
TT
3843 PR symtab/12984:
3844 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3845 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3846 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3847 <debug_type_section>: New field.
3848 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3849 (load_cu): Use appropriate section.
3850 (create_signatured_type_table_from_index): Add 'section'
3851 argument.
3852 (dwarf2_read_index): Only allow a single .debug_types section.
3853 (dw2_get_file_names): Use appropriate section.
3854 (read_type_comp_unit_head): Add 'section' argument.
3855 (create_debug_types_hash_table): Loop over all .debug_types
3856 sections.
3857 (init_cu_die_reader): Use appropriate section.
3858 (process_psymtab_comp_unit, load_partial_comp_unit)
3859 (load_full_comp_unit, read_die_and_children, find_partial_die)
3860 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3861 (lookup_signatured_type_at_offset): Add 'section' argument.
3862 (read_signatured_type_at_offset): Add 'sect' argument.
3863 (read_signatured_type): Use appropriate section.
3864 (set_die_type, get_die_type_at_offset): Update.
3865 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3866 VEC.
3867 (write_psymtabs_to_index): Don't allow index with more than one
3868 .debug_types section.
3869
918dd910
JK
38702011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3871
3872 Fix crash if referenced CU is aged out.
3873 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3874 xfree of block.data.
3875 (indirect_pieced_value): New variable back_to, use to for xfree of
3876 baton.data.
3877 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3878 block.data.
3879 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3880 (load_cu): New function from ...
3881 (dw2_do_instantiate_symtab): ... the code here ...
3882 (process_full_comp_unit): ... and here.
3883 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3884 retval.data.
3885
0e37a63c
JK
38862011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3887
3888 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3889 type.
3890
7e324e48
GB
38912011-07-19 Gary Benson <gbenson@redhat.com>
3892
3893 * infrun.c (struct execution_control_state): New member
3894 stop_func_filled_in.
3895 (clear_stop_func, fill_in_stop_func): New functions.
3896 (handle_inferior_event): Call clear_stop_func rather than
3897 manipulating the execution control state directly.
3898 Call fill_in_stop_func lazily as required rather than
3899 directly calling find_pc_partial_function in all cases.
3900
d48323d8
TT
39012011-07-18 Tom Tromey <tromey@redhat.com>
3902
3903 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3904 checking for variable-sized array.
3905
40591b7d
JCD
39062011-07-18 Jean-Charles Delay <delay@adacore.com>
3907
3908 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3909 of supported languages.
3910 * varobj.c: Add top definitions and basic implementation of the
3911 following callbacks: ada_number_of_children, ada_name_of_variable,
3912 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3913 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3914 (languages): Register Ada-specific callbacks.
3915 (variable_language): Add the Ada case in the language setter switch.
3916
2e424e08
JK
39172011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3918
3919 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3920
9e8b7a03
JK
39212011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3922
3923 Code cleanup.
3924 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3925 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3926 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3927 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3928 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3929 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3930 (struct dwarf_expr_context_funcs): New, move here methods from ...
3931 (struct dwarf_expr_context): ... here. New fields funcs.
3932 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3933 (dwarf_expr_ctx_funcs): New.
3934 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3935 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3936 (needs_frame_ctx_funcs): New.
3937 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3938
2b1260ab
FM
39392011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3940
3941 * MAINTAINERS (Write After Approval): Add myself to the list.
3942
8bd90839
FM
39432011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3944
3945 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3946 that CIE pointer of an FDE really points to a CIE .
3947
953b98d1
HZ
39482011-07-15 Hui Zhu <teawater@gmail.com>
3949
3950 * remote.c (remote_get_trace_status): Add comments.
3951
c8f2448a
JK
39522011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3953
3954 Code cleanup - constify struct lval_funcs.
3955 * dwarf2loc.c (pieced_value_funcs): Make it const.
3956 * infrun.c (siginfo_value_funcs): Likewise.
3957 * opencl-lang.c (opencl_value_funcs): Likewise.
3958 * valops.c (value_assign, value_ind): Make the funcs variable const.
3959 * value.c (struct value): Make location.computed.funcs target const.
3960 Rearrange the comments.
3961 (allocate_computed_value): Make the funcs parameter target const.
3962 (value_computed_funcs): Return the funcs target const.
3963 (value_free, value_copy, set_value_component_location): Make the funcs
3964 variable const.
3965 * value.h (allocate_computed_value): Make the funcs parameter target
3966 const.
3967 (value_computed_funcs): Return the funcs target const.
3968 * windows-tdep.c (tlb_value_funcs): Make it const.
3969
f652de6f
HZ
39702011-07-14 Hui Zhu <teawater@gmail.com>
3971
3972 * remote.c (remote_get_trace_status): Initialize p.
3973
67f41397
JK
39742011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3975
3976 Work around kgdb.
3977 * remote.c (remote_get_trace_status): New variable ex. Put
3978 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3979
d1b66e6d
TT
39802011-07-13 Tom Tromey <tromey@redhat.com>
3981
3982 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3983 value_from_contents for final conversion.
3984
1632a688
JK
39852011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3986
3987 Code cleanup.
3988 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3989 Indent prototypes so they do not get into tags.
3990
a7035dbb
JK
39912011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3992
3993 Code cleanup making also optimized out values lazy.
3994 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3995 allocate_optimized_out_value. Twice.
3996 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3997 * findvar.c (read_var_value): Likewise.
3998 * value.c (allocate_optimized_out_value): New function.
3999 * value.h (allocate_optimized_out_value): New declaration.
4000
d07ed419
JK
40012011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4002
4003 Fix occasional crash of CTRL-C during DWARF read in.
4004 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4005
86d31898
TT
40062011-07-11 Tom Tromey <tromey@redhat.com>
4007
4008 * regcache.c (struct regcache_descr): Fix typo.
4009 * i387-tdep.c (i387_supply_xsave): Fix typo.
4010
2ab95328
TT
40112011-07-11 Tom Tromey <tromey@redhat.com>
4012
4013 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4014 (read_file_scope, read_type_unit_scope): Use it.
4015
04ad99e6
JK
40162011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4017
4018 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4019 `int'.
4020
713389e0
PM
40212011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4022
4023 PR python/12438
4024 * python/python.c: Set gdbpy_should_print_stack default to off.
4025 (set_python): Deprecate maint set python print-stack to
4026 class_deprecate.
4027 (_initialize_python): Deprecate maint set/show python print-stack.
4028 Add new prefix command, python. Add new setting, print-backtrace.
4029 * NEWS: Document set python print-stack. Document default change.
4030
754eadd1
PM
40312011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4032
4033 * python/py-inferior.c (infpy_dealloc): New function.
4034 (inferior_to_inferior_object): Return a new object, or a
4035 new reference to the existing object.
4036 (find_thread_object): Cleanup references to inferior.
4037 (delete_thread_object): Ditto.
4038 * python/py-infthread.c (create_thread_object): Do not increment
4039 inferior reference count.
4040
5e44ecb3
TT
40412011-07-08 Tom Tromey <tromey@redhat.com>
4042
4043 * dwarf2loc.c (locexpr_regname): New function.
4044 (locexpr_describe_location_piece): Use it.
4045 (disassemble_dwarf_expression): Add per_cu argument. Use
4046 locexpr_regname.
4047 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4048 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4049 New cases.
4050 (locexpr_describe_location_1): Add per_cu argument.
4051 (locexpr_describe_location): Update.
4052 (loclist_describe_location): Update.
4053
e0e9434c
TT
40542011-07-08 Tom Tromey <tromey@redhat.com>
4055
4056 * dwarf2expr.c (execute_stack_op): Add QUIT.
4057
26afc0d7
HZ
40582011-07-07 Hui Zhu <teawater@gmail.com>
4059
4060 Revert:
4061 2011-07-06 Hui Zhu <teawater@gmail.com>
4062 * remote.c (remote_start_remote): Add TRY_CATCH for
4063 remote_get_trace_status.
4064 * tracepoint.c (disconnect_tracing): Ditto.
4065
a40a111f
AB
40662011-07-07 Andrew Burgess <aburgess@broadcom.com>
4067
4068 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4069 variables as signed, not unsigned.
4070
e2bd3b15
JB
40712011-07-06 Joel Brobecker <brobecker@adacore.com>
4072
4073 * jit.c (jit_inferior_init): Reformat forward declaration.
4074
e3d961fe 40752011-07-06 Matt Rice <ratmice@gmail.com>
4076
4077 * MAINTAINERS (Write After Approval): Add myself to the list.
4078
0f3428f0
HZ
40792011-07-06 Hui Zhu <teawater@gmail.com>
4080
4081 * remote.c (remote_start_remote): Add TRY_CATCH for
4082 remote_get_trace_status.
4083 * tracepoint.c (disconnect_tracing): Ditto.
4084
fc9f3a69
TT
40852011-07-05 Tom Tromey <tromey@redhat.com>
4086
4087 * symtab.c (operator_chars): Now static.
4088 * linespec.c (operator_chars): Don't declare.
4089
26e519b9
TJB
40902011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4091
4092 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4093
eb2a6f42
TT
40942011-07-05 Tom Tromey <tromey@redhat.com>
4095
4096 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4097 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4098 (TYPE_CPLUS_REALLY_JAVA): New macro.
4099 * dwarf2read.c (process_structure_scope): Set
4100 TYPE_CPLUS_REALLY_JAVA.
4101
21083d0f 41022011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4103
4104 * ada-lang.c: Fix typos.
4105 * amd64-tdep.c: Likewise.
4106 * breakpoint.c: Likewise.
4107 * cli/cli-decode.c: Likewise.
4108 * findcmd.c: Likewise.
4109 * inline-frame.c: Likewise.
4110 * mi/mi-main.c: Likewise.
4111 * minsyms.c: Likewise.
4112 * monitor.c: Likewise.
4113 * monitor.h: Likewise.
4114 * prologue-value.c: Likewise.
4115 * reverse.c: Likewise.
4116 * s390-tdep.c: Likewise.
4117
3b2a0cf2
JB
41182011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4119
4120 * jit.c (jit_inferior_init): Forward declare.
4121 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4122
efae1d92
JB
41232011-07-04 Joel Brobecker <brobecker@adacore.com>
4124
4125 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4126
6040a59d
JB
41272011-07-04 Tristan Gingold <gingold@adacore.com>
4128
4129 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4130 (tcb_fieldno): Add activation_link field.
4131 (get_known_tasks_addr): Moved and rewritten.
4132 (get_tcb_types_info): Set activation_link field.
4133 (read_known_tasks_array): Add parameter. Rewritten.
4134 (read_known_tasks_list): New function.
4135 (read_known_tasks): New function.
4136 (ada_build_task_list): Call read_known_tasks instead of
4137 read_known_tasks_array.
4138 * ravenscar-thread.c: Add first_task_name constant.
4139 (has_ravenscar_runtime): Check for task list too.
4140
cb741e45
JB
41412011-07-04 Tristan Gingold <gingold@adacore.com>
4142
4143 * ada-tasks.c: Renames fieldno to actb_fieldno.
4144 (ada_get_task_number): Indentation.
4145 (get_tcb_types_info): Remove all parameters. Write directly
4146 the globals.
4147 (ptid_from_atcb_common): Adjust.
4148 (read_atcb): Adjust.
4149
7475b06c
TJB
41502011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4151
4152 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4153
15230f37
TJB
41542011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4155
4156 * ui-out.c (ui_out_field_core_addr): Mention that the function
4157 description is in the header file.
4158 * ui-out.h (ui_out_field_core_addr): Document function.
4159
65743aba
TJB
41602011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4161
4162 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4163 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4164
c37a5aab
TJB
41652011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4166
4167 * symtab.c (expand_line_sal): Remove empty line.
4168
59adf69e
TS
41692011-07-04 Thomas Schwinge <thomas@schwinge.name>
4170
4171 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4172 same way as ELFOSABI_NONE.
4173 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4174
e5dd4106
TJB
41752011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4176
4177 * breakpoint.c: Fix typos in comments.
4178 * linespec.c: Likewise.
4179 * symtab.c: Likewise.
4180
d40102a1
JB
41812011-07-04 Joel Brobecker <brobecker@adacore.com>
4182
4183 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4184 section in separate object files.
4185
2f741504
JK
41862011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 Fix false GCC warning.
4189 * linespec.c (decode_line_1): Initialize values.
4190
418c7cf7
JK
41912011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4192
4193 * linespec.c (find_method): Accept the function type automatically only
4194 if it was specified with parameter types.
4195
3d50dd94
JK
41962011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4197
4198 Stop on first linespec terminator instead of eating what we can.
4199 * linespec.c (is_linespec_boundary): New function.
4200 (name_end): Remove function.
4201 (keep_name_info): New parameter on_boundary, replace the body.
4202 (decode_line_1): Provide the parameter to keep_name_info.
4203 (decode_compound): Likewise. Drop the trailing java return type
4204 handling. Twice.
4205
dcf9f4ab
JK
42062011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4207
4208 Fall back linespec to minimal symbols.
4209 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4210 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4211 (find_method, symbol_found): Change error to cplusplus_error.
4212
3f542ed1
JK
42132011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4214
bc68c4e5 4215 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4216
900e11f9
JK
42172011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4218 Tom Tromey <tromey@redhat.com>
4219
4220 * dwarf2read.c (check_physname): New variable.
4221 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4222 (show_check_physname): New function.
4223 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4224
2301925d
JB
42252011-07-01 Joel Brobecker <brobecker@adacore.com>
4226
4227 * machoread.c (macho_symfile_read): Delete OBE comment.
4228
38947cca
JB
42292011-07-01 Joel Brobecker <brobecker@adacore.com>
4230
4231 * machoread.c (struct macho_oso_data): Delete.
4232 (current_oso): Delete.
4233 (macho_relocate_common_syms): New function, mostly extracted
4234 out of
4235 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4236 Remove code that sets and unset current_oso.
4237 (macho_symfile_relocate): Delete handling of common symbols,
4238 now moved to macho_relocate_common_syms.
4239
a7aa0d73
JB
42402011-07-01 Joel Brobecker <brobecker@adacore.com>
4241
4242 * darwin-nat.c (darwin_ptrace): Add documentation.
4243 Set errno to zero before calling ptrace. If ptrace returns
4244 -1 and errno is zero, then change then return zero.
4245 (darwin_kill_inferior): Issue a warning instead of triggering
4246 a failed assertion when the PT_KILL ptrace operations returned
4247 nonzero.
4248
5e9bc145
JB
42492011-07-01 Joel Brobecker <brobecker@adacore.com>
4250
4251 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4252 only when inf->private->no_ptrace.
4253
00eb2c4a
JB
42542011-07-01 Joel Brobecker <brobecker@adacore.com>
4255
4256 * ada-lang.c (print_it_exception): Print temporary catchpoints
4257 as "Temporary catchpoint".
4258 (print_mention_exception): Likewise.
4259
127c81bc
TT
42602011-07-01 Tom Tromey <tromey@redhat.com>
4261
4262 * jv-lang.c (java_language_defn): Use java_printchar,
4263 java_printstr.
4264 (java_get_encoding): New function.
4265 (java_emit_char): Use generic_emit_char.
4266 (java_printchar): New function.
4267 (java_printstr): Likewise.
4268
25552254
JB
42692011-07-01 Joel Brobecker <brobecker@adacore.com>
4270
4271 * ada-typeprint.c (print_record_type): If unable to decode
4272 the name of the parent type, use the encoded name.
4273
d2d43431
JB
42742011-07-01 Jean-Charles Delay <delay@adacore.com>
4275
4276 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4277 pointer to constrained packed array type output.
4278 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4279 packed array output.
4280
54ae186f
JB
42812011-07-01 Jean-Charles Delay <delay@adacore.com>
4282
4283 * ada-typeprint.c (print_array_type): removed if condition on show
4284 being negative for bounds printing.
4285
8f17729f
JB
42862011-07-01 Joel Brobecker <brobecker@adacore.com>
4287
4288 * ada-lang.c (ada_identical_enum_types_p): New function.
4289 (symbols_are_identical_enums): New function.
4290 (remove_extra_symbols): Do nothing if NSYMS < 2.
4291 Use symbols_are_identical_enums.
4292
f5aa6869
JB
42932011-07-01 Joel Brobecker <brobecker@adacore.com>
4294
4295 * ada-valprint.c (ada_value_print): Handle typedefs.
4296
8f465ea7
JB
42972011-07-01 Joel Brobecker <brobecker@adacore.com>
4298
4299 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4300
828292f2
JB
43012011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4302
4303 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4304 (decode_constrained_packed_array): Likewise.
4305 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4306
18920c42
JB
43072011-07-01 Joel Brobecker <brobecker@adacore.com>
4308
4309 * ada-exp.y (convert_char_literal): Handle typedef types.
4310
c90092fe
JB
43112011-07-01 Joel Brobecker <brobecker@adacore.com>
4312
4313 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4314
f748fb40
TT
43152011-06-30 Tom Tromey <tromey@redhat.com>
4316
4317 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4318 * valops.c (find_overload_match): Call do_cleanups on early exit
4319 path.
4320 * solib.c (solib_find): Call do_cleanups on early exit path.
4321
3bb47e8b
TT
43222011-06-30 Tom Tromey <tromey@redhat.com>
4323
4324 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4325 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4326 return paths. Defer final do_cleanups until last return.
4327 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4328 early return.
4329
4727bad3
TT
43302011-06-30 Tom Tromey <tromey@redhat.com>
4331
4332 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4333
bb361dbf
AB
43342011-06-30 Andrew Burgess <aburgess@broadcom.com>
4335
4336 * MAINTAINERS (Write After Approval): Add myself to the list.
4337
e0d00bc7
JK
43382011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4339
4340 Disable epilogue unwinders on recent GCCs.
4341 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4342 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4343 * dwarf2read.c (process_full_comp_unit): Initialize
4344 EPILOGUE_UNWIND_VALID.
4345 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4346 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4347 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4348
4632c0d0
JK
43492011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4350
4351 Code cleanup - reformatting.
4352 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4353 (producer_is_gcc_ge_4): ... here, change the return value.
4354 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4355 interpretation.
4356
32019081
JK
43572011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4358
4359 Fix non-only rename list for Fortran modules import.
4360 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4361 cp_add_using_directive caller.
4362 (cp_add_using_directive): New parameter excludes, describe it. New
4363 variables ix and param. Compare if also excludes match. Allocate NEW
4364 with variable size, initialize EXCLUDES there.
4365 (cp_lookup_symbol_imports): New variable excludep, test
4366 current->EXCLUDES with it.
4367 * cp-support.h: Include vec.h.
4368 (struct using_direct): New field excludes, describe it.
4369 (DEF_VEC_P (const_char_ptr)): New.
4370 (cp_add_using_directive): New parameter excludes.
4371 * defs.h (const_char_ptr): New typedef.
4372 * dwarf2read.c (read_import_statement): New variables child_die,
4373 excludes and cleanups, read in excludes.
4374 (read_namespace): Adjust the cp_add_using_directive caller.
4375
70c622a3
JK
43762011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4377
4378 Code cleanup.
4379 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4380 negative comparisons.
4381
39c4d40a
TT
43822011-06-29 André Pönitz <andre.poenitz@nokia.com>
4383
4384 * mi/mi-main.c (mi_cmd_list_features): Emit
4385 breakpoint-notifications.
4386
3b2b8fea
TT
43872011-06-29 Tom Tromey <tromey@redhat.com>
4388
4389 PR fortran/10036:
4390 * valprint.h (generic_emit_char, generic_printstr): Declare.
4391 * valprint.c (wchar_printable, append_string_as_wide)
4392 (print_wchar): Move from c-lang.c.
4393 (generic_emit_char): New function; mostly taken from c_emit_char.
4394 (generic_printstr): New function; mostly taken from c_printstr.
4395 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4396 represented as arrays.
4397 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4398 type.
4399 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4400 identically to TYPE_CODE_INT.
4401 * f-lang.c (f_get_encoding): New function.
4402 (f_emit_char): Use generic_emit_char.
4403 (f_printchar): Replace comment.
4404 (f_printstr): Use generic_printstr.
4405 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4406 "character" types specially.
4407 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4408 for Fortran.
4409 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4410 Move to valprint.c
4411 (c_emit_char): Call generic_emit_char.
4412 (c_printstr): Call generic_printstr.
4413
168e6d44
GB
44142011-06-29 Gary Benson <gbenson@redhat.com>
4415
4416 * breakpoint.c (bpstat_what): Removed duplicated case.
4417
1c033f8c
TT
44182011-06-28 Tom Tromey <tromey@redhat.com>
4419
4420 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4421
5fe41fbf
TT
44222011-06-27 Tom Tromey <tromey@redhat.com>
4423
4424 * valops.c (find_overload_match): Call do_cleanups before early
4425 return.
4426 * top.c (execute_command): Call do_cleanups before early return.
4427 (command_loop): Likewise.
4428 * stack.c (backtrace_command): Make a null cleanup early. Don't
4429 conditionally call do_cleanups.
4430 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4431 TRY_CATCH.
4432 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4433 so cleanups are always run.
4434 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4435 * findcmd.c (parse_find_args): Call do_cleanups on early return
4436 path.
4437 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4438 Don't conditionally call do_cleanups.
4439 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4440 later.
4441
e26bd57d
EB
44422011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4443
4444 * MAINTAINERS (Write After Approval): Use default email address.
4445
6c3097fc
JB
44462011-06-27 Joel Brobecker <brobecker@adacore.com>
4447
4448 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4449
369c397b
JB
44502011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4451
4452 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4453 saved_regs_mask and copied_regs_mask fields.
4454 (sparc_record_save_insn): New prototype.
4455 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4456 (sparc_record_save_insn): New function.
4457 (sparc_analyze_prologue): Add head comment. Recognize store insns
4458 of call-saved registers. Use OFFSET consistently. Recognize flat
4459 frames and cache their settings.
4460 (sparc32_skip_prologue): Handle flat frames.
4461 (sparc_frame_cache): Add frame_offset to the base address.
4462 (sparc32_frame_cache): Adjust to new frame description.
4463 (sparc32_frame_prev_register): Likewise.
4464 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4465 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4466 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4467 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4468 frame by calling sparc_record_save_insn.
4469 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4470 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4471 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4472
b315ab21
TG
44732011-06-27 Tristan Gingold <gingold@adacore.com>
4474
4475 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4476 field by map_addr and map_len.
4477 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4478 (munmap_section_buffer): Likewise.
4479
ddd49eee
TT
44802011-06-24 Tom Tromey <tromey@redhat.com>
4481
4482 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4483 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4484 * python/python.c (gdbpy_parameter): Make 'arg' const.
4485 (execute_gdb_command): Likewise.
4486 (gdbpy_decode_line): Likewise. Copy it.
4487 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4488 (gdbpy_write): Make 'arg' const.
4489 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4490 const.
4491 (gdbpy_lookup_type): Likewise.
4492 * python/py-prettyprint.c (print_children): Make 'name' const.
4493 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4494 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4495 Py_ssize_t.
4496 * python/py-function.c (fnpy_init): Make 'name' const.
4497 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4498 (gdbpy_string_to_argv): Make 'input' const.
4499 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4500 it.
4501 * gdbtypes.h (lookup_typename): Update.
4502 * gdbtypes.c (lookup_typename): Make 'name' const.
4503 (lookup_struct): Likewise.
4504 (lookup_union): Likewise.
4505 (lookup_enum): Likewise.
4506
5998129b
TT
45072011-06-24 Tom Tromey <tromey@redhat.com>
4508
4509 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4510 gdb_thread_db.h. Move all common/ entries to be together.
4511 (TAGS): Don't depend on DEPFILES.
4512
6e586cc5
YQ
45132011-06-23 Yao Qi <yao@codesourcery.com>
4514
4515 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4516 * remote.c (remote_start_remote): ... here.
4517 * monitor.c (monitor_open): ... here.
4518
86c3c1fc
AB
45192011-06-23 Andrew Burgess <aburgess@broadcom.com>
4520
4521 * gdbtypes.c (append_composite_type_field_aligned): Fix
4522 calculation of bit position based on alignment.
4523
28010a5d
PA
45242011-06-22 Pedro Alves <pedro@codesourcery.com>
4525
4526 * breakpoint.c (bpstat_stop_status): Call the check_status
4527 breakpoint_ops method.
4528 (print_one_breakpoint_location): Also print the condition for Ada
4529 exception catchpoints.
4530 (allocate_bp_location): New, factored out from
4531 allocate_bp_location.
4532 (allocate_bp_location): Adjust. Call the owner breakpoint's
4533 allocate_location method, if there is one.
4534 (free_bp_location): Call the locations's dtor method, if there is
4535 one.
4536 (init_raw_breakpoint_without_location): New breakpoint_ops
4537 parameter. Use it.
4538 (set_raw_breakpoint_without_location): Adjust.
4539 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4540 (set_raw_breakpoint): Adjust.
4541 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4542 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4543 re_set and check_status methods.
4544 (init_catchpoint): Don't memset, initialize thread, addr_string
4545 and enable_state. Pass the ops down to init_raw_breakpoint.
4546 (install_catchpoint): Rename to ...
4547 (install_breakpoint): ... this, and make extern.
4548 (create_fork_vfork_event_catchpoint): Adjust.
4549 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4550 re_set and check_status methods.
4551 (create_syscall_event_catchpoint): Adjust.
4552 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4553 (masked_watchpoint_breakpoint_ops): Install NULL
4554 allocate_location, re_set and check_status methods.
4555 (catch_exec_command_1): Adjust.
4556 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4557 re_set and check_status methods.
4558 (create_ada_exception_breakpoint): Rename to ...
4559 (init_ada_exception_breakpoint): ... this. Add a struct
4560 breakpoint parameter, and delete the exp_string, cond_string and
4561 cond parameters. Use init_raw_breakpoint, and don't install or
4562 mention the breakpoint yet. Don't clear breakpoint fields that
4563 init_raw_breakpoint already clears.
4564 (re_set_breakpoint): Delete, split into ...
4565 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4566 functions.
4567 (breakpoint_re_set_one): Call the breakpoint's
4568 breakpoint_ops->re_set implementation, if there's one. Adjust.
4569 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4570 (struct bp_location_ops): New type.
4571 (struct bp_location): New field `ops'.
4572 (struct breakpoint_ops): New `allocate_location', `re_set' and
4573 `check_status' fields. Make `breakpoint_hit''s description match
4574 reality.
4575 (init_bp_location): Declare.
4576 (breakpoint_re_set_default): Declare.
4577 (create_ada_exception_breakpoint): Rename to ...
4578 (init_ada_exception_breakpoint): ... this. Add a struct
4579 breakpoint parameter, and delete the exp_string, cond_string and
4580 cond parameters.
4581 (install_breakpoint): Declare.
4582 * ada-lang.c: Include exceptions.h.
4583 <Ada exceptions description>: Update.
4584 (struct ada_catchpoint_location): New type.
4585 (ada_catchpoint_location_dtor): New function.
4586 (ada_catchpoint_location_ops): New global.
4587 (ada_catchpoint): New type.
4588 (create_excep_cond_exprs): New function.
4589 (dtor_exception, allocate_location_exception, re_set_exception)
4590 (should_stop_exception, check_status_exception): New functions.
4591 (print_one_exception, print_mention_exception)
4592 (print_recreate_exception): Adjust.
4593 (dtor_catch_exception, allocate_location_catch_exception)
4594 (re_set_catch_exception, check_status_catch_exception): New
4595 functions.
4596 (catch_exception_breakpoint_ops): Install them.
4597 (dtor_catch_exception_unhandled)
4598 (allocate_location_catch_exception_unhandled)
4599 (re_set_catch_exception_unhandled)
4600 (check_status_catch_exception_unhandled): New functions.
4601 (catch_exception_unhandled_breakpoint_ops): Install them.
4602 (dtor_catch_assert, allocate_location_catch_assert)
4603 (re_set_catch_assert, check_status_catch_assert): New functions.
4604 (catch_assert_breakpoint_ops): Install them.
4605 (ada_exception_catchpoint_p): Delete.
4606 (catch_ada_exception_command_split)
4607 (ada_exception_catchpoint_cond_string): Rename exp_string
4608 parameter to excep_string. Adjust.
4609 (ada_parse_catchpoint_condition): Delete.
4610 (ada_exception_sal): Rename the exp_string parameter to
4611 excep_string. Delete the cond_string and cond parameters.
4612 Adjust.
4613 (ada_decode_exception_location): Rename the exp_string parameter
4614 to excep_string. Delete the cond_string and cond parameters.
4615 Adjust.
4616 (create_ada_exception_catchpoint): New function.
4617 (catch_ada_exception_command, ada_decode_assert_location)
4618 (catch_assert_command): Adjust.
4619 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4620
9ac4176b
PA
46212011-06-22 Pedro Alves <pedro@codesourcery.com>
4622
4623 * ada-lang.c: Include arch-utils.h.
4624 (ada_decode_exception_location): Make static.
4625 (catch_ada_exception_command): Moved here from breakpoint.c.
4626 (ada_decode_assert_location): Make static.
4627 (catch_assert_command): Moved here from breakpoint.c.
4628 (_initialize_ada_lang): Install the exception and assert
4629 catchpoint commands here.
4630 * ada-lang.h (ada_decode_exception_location)
4631 (ada_decode_assert_location): Delete declarations.
4632 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4633 breakpoint.h.
4634 (create_ada_exception_breakpoint): Make extern.
4635 (catch_ada_exception_command, catch_assert_command): Moved to
4636 ada-lang.c.
4637 (add_catch_command): Make extern.
4638 (_initilize_breakpoint): Don't install the exception and assert
4639 catchpoint commands here.
4640 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4641 breakpoint.c
4642 (add_catch_command, create_ada_exception_breakpoint): Declare.
4643
c56053d2
PA
46442011-06-22 Pedro Alves <pedro@codesourcery.com>
4645
4646 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4647 the breakpoint to the breakpoint chain here.
4648 (set_raw_breakpoint_without_location): Add the breakpoint to the
4649 breakpoint chain here.
4650 (init_raw_breakpoint): Adjust comments.
4651 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4652 here.
4653 (init_catchpoint): Don't set the catchpoint's breakpoint number
4654 here.
4655 (install_catchpoint): New function.
4656 (create_fork_vfork_event_catchpoint)
4657 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4658 use install_catchpoint.
4659
d2f3fc74
PA
46602011-06-22 Pedro Alves <pedro@codesourcery.com>
4661
4662 * breakpoint.c (create_catchpoint_without_mention)
4663 (create_catchpoint): Delete.
4664
b4d90040
PA
46652011-06-22 Pedro Alves <pedro@codesourcery.com>
4666
4667 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4668 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4669 reference to exec_pathname.
4670 (struct exec_catchpoint): New type.
4671 (dtor_catch_exec): New function.
4672 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4673 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4674 (catch_exec_command_1): Adjust to use init_catchpoint.
4675 (delete_breakpoint): Remove reference to exec_pathname.
4676
be5c67c1
PA
46772011-06-22 Pedro Alves <pedro@codesourcery.com>
4678
4679 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4680 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4681 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4682 reference to syscalls_to_be_caught.
4683 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4684 NULL `dtor'.
4685 (struct syscall_catchpoint): New type.
4686 (dtor_catch_syscall): New function.
4687 (insert_catch_syscall, remove_catch_syscall)
4688 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4689 (print_recreate_catch_syscall): Adjust.
4690 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4691 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4692 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4693 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4694 (masked_watchpoint_breakpoint_ops)
4695 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4696 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4697 there is one. Remove references to syscalls_to_be_caught.
4698 (catching_syscall_number): Adjust.
4699 * ada-lang.c (catch_exception_breakpoint_ops)
4700 (catch_exception_unhandled_breakpoint_ops)
4701 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4702
e29a4733
PA
47032011-06-22 Pedro Alves <pedro@codesourcery.com>
4704
4705 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4706 field.
4707 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4708 reference to forked_inferior_pid.
4709 (struct fork_catchpoint): New type.
4710 (breakpoint_hit_catch_fork, print_it_catch_fork)
4711 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4712 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4713 (create_fork_vfork_event_catchpoint): Adjust to use
4714 init_catchpoint.
4715
346774a9
PA
47162011-06-22 Pedro Alves <pedro@codesourcery.com>
4717
4718 * breakpoint.c (add_to_breakpoint_chain)
4719 (init_raw_breakpoint_without_location): New functions, factored
4720 out from ...
4721 (set_raw_breakpoint_without_location): ... this one.
4722 (init_raw_breakpoint): New function, factored out from
4723 set_raw_breakpoint and adjusted to use
4724 init_raw_breakpoint_without_location.
4725 (set_raw_breakpoint): Adjust.
4726 (init_catchpoint): New function, factored out from
4727 create_catchpoint_without_mention and adjusted to use
4728 init_raw_breakpoint.
4729 (create_catchpoint_without_mention): Adjust.
4730
c38c4bc5
TT
47312011-06-22 Tom Tromey <tromey@redhat.com>
4732
4733 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4734 argument of 0 specially.
4735
b138ce37
YQ
47362011-06-22 Yao Qi <yao@codesourcery.com>
4737
4738 * infrun.c (handle_inferior_event): Remove write-only local variable
4739 `sw_single_step_trap_p'.
4740
03de6823
TT
47412011-06-20 Tom Tromey <tromey@redhat.com>
4742
4743 * symtab.c (lookup_language_this): End loop if block is NULL.
4744
66a17cb6
TT
47452011-06-17 Tom Tromey <tromey@redhat.com>
4746
4747 * valops.c (value_of_this): Use lookup_language_this.
4748 * symtab.h (lookup_language_this): Declare.
4749 * symtab.c (lookup_language_this): New function.
4750 (lookup_symbol_aux): Use lookup_language_this.
4751 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4752
7518bff5
TT
47532011-06-17 Tom Tromey <tromey@redhat.com>
4754
4755 * value.h (value_of_this): Update.
4756 (value_of_local): Remove.
4757 * valops.c (value_of_this): Rename from value_of_local. Change
4758 parameters.
4759 * p-exp.y (exp): Update.
4760 (variable): Likewise.
4761 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4762
aee28ec6
TT
47632011-06-17 Tom Tromey <tromey@redhat.com>
4764
4765 * valops.c (value_of_local): Complain if NAME is NULL.
4766 * std-operator.def (OP_OBJC_SELF): Remove.
4767 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4768 * objc-exp.y (name_not_typename): Use OP_THIS.
4769 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4770 name for "this".
4771 <OP_OBJC_SELF>: Remove.
4772 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4773
eed8f803
TG
47742011-06-16 Tristan Gingold <gingold@adacore.com>
4775
4776 * python/py-events.h (gdb_py_events): Make it extern.
4777 * python/py-evtregistry.c (gdb_py_events): Declare.
4778
864ac8a7
HZ
47792011-06-16 Hui Zhu <teawater@gmail.com>
4780
4781 * remote.c (remote_trace_set_readonly_regions): Add check for
4782 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4783 output warning.
4784
ef7e8358
UW
47852011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4786
4787 * arm-linux-tdep.c: Include "auxv.h".
4788 (AT_HWCAP): Define.
4789 (ARM_LINUX_SIZEOF_VFP): Define.
4790 (arm_linux_supply_vfp): New function.
4791 (arm_linux_collect_vfp): Likewise.
4792 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4793 (arm_linux_fpa_regset_sections): New variable.
4794 (arm_linux_vfp_regset_sections): Likewise.
4795 (arm_linux_core_read_description): New function.
4796 (arm_linux_init_abi): Install arm_linux_core_read_description and
4797 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4798 appropriate for the architecture.
4799 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4800 (tdesc_arm_with_m): Declare.
4801 (tdesc_arm_with_iwmmxt): Likewise.
4802 (tdesc_arm_with_vfpv2): Likewise.
4803 (tdesc_arm_with_vfpv3): Likewise.
4804 (tdesc_arm_with_neon): Likewise.
4805 * arm-linux-nat.c: Move features/*.c includes ...
4806 * arm-tdep.c: ... here.
4807 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4808 target description data structures ...
4809 * arm-tdep.c (_initialize_arm_tdep): ... here.
4810 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4811 HWCAP_VFPv3D16): Move definitions ...
4812 * arm-linux-tdep.h: ... here.
4813
c2fa21f1
HZ
48142011-06-15 Hui Zhu <teawater@gmail.com>
4815
4816 * remote.c (remote_trace_set_readonly_regions): Add a check for
4817 target_buf_size.
4818
dd707e8e
TT
48192011-06-14 Tom Tromey <tromey@redhat.com>
4820
4821 * coffread.c (coffread_objfile): Rename from current_objfile.
4822 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4823 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4824
86cc0029
TT
48252011-06-14 Tom Tromey <tromey@redhat.com>
4826
4827 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4828 (class_symtab): Remove.
4829 (jv_dynamics_progspace_key): New global.
4830 (jv_per_objfile_free): Reset program space data. Update assert.
4831 Don't clear globals.
4832 (get_dynamics_objfile): Use and set program space data.
4833 (get_java_class_symtab): Use get_dynamics_objfile.
4834 (add_class_symbol): Likewise.
4835 (java_link_class_type): Likewise.
4836 (java_object_type, jv_clear_object_type, set_java_object_type):
4837 Remove.
4838 (get_java_object_type): Update. Don't cache result.
4839 (is_object_type): Don't call set_java_object_type.
4840 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4841 initialize jv_dynamics_progspace_key.
4842
91a81f69
TT
48432011-06-14 Tom Tromey <tromey@redhat.com>
4844
4845 * symtab.h (current_objfile): Don't declare.
4846 * objfiles.h (current_objfile): Don't declare.
4847 * objfiles.c (current_objfile): Remove.
4848 * mdebugread.c (current_objfile): New file-scope global.
4849 * dbxread.c (current_objfile): New file-scope global.
4850 * coffread.c (current_objfile): New file-scope global.
4851
dc7eb48e
PA
48522011-06-13 Pedro Alves <pedro@codesourcery.com>
4853
4854 * top.h (line): Rename to ...
4855 (saved_command_line): ... this.
4856 (linesize): Rename to ...
4857 (saved_command_line_size): ... this.
4858 * top.c (line): Rename to ...
4859 (saved_command_line): ... this.
4860 (linesize): Rename to ...
4861 (saved_command_line_size): ... this.
4862 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4863 * event-top.c (command_line_handler): Adjust.
4864 * main.c (captured_main): Adjust.
4865
0d6c2135
MK
48662011-06-12 Mark Kettenis <kettenis@gnu.org>
4867
4868 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4869 get_frame_func instead of get_frame_pc to determine the code
4870 address used to construct the frame ID.
4871 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4872 (i386_epilogue_frame_this_id): Likewise.
4873 (i386_epilogue_frame_prev_register): New function.
4874 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4875 (i386_stack_tramp_frame_sniffer): Fix coding style.
4876 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4877 (i386_gdbarch_init): Fix comments.
4878
8bbdd3f4
MK
48792011-06-12 Mark Kettenis <kettenis@gnu.org>
4880
4881 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4882 instruction when walking back through the instruction stream.
4883
533a737e
JK
48842011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4885
4886 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4887 fullname parameters order.
4888
44b13c5a
JK
48892011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4890
4891 Code cleanup.
4892 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4893 for fun.
4894 * psymtab.c (map_symbol_filenames_psymtab)
4895 (map_partial_symbol_filenames): Likewise.
4896 * psymtab.h: Include symfile.h.
4897 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4898 * symfile.h (symbol_filename_ftype): New.
4899 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4900 map_symbol_filenames, clarify more the naming in comment.
4901
0b5574da
DE
49022011-06-07 Doug Evans <dje@google.com>
4903
4904 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4905 Look for ../../gdb, for fullname.exp.
0b5574da 4906
5be4dfca
JK
49072011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4908 Pedro Alves <pedro@codesourcery.com>
4909
4910 * cli/cli-cmds.c (shell_escape): Use waitpid.
4911 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4912
316a8b21
TG
49132011-06-07 Tristan Gingold <gingold@adacore.com>
4914
4915 * xcoffread.c (dwarf2_xcoff_names): New variable.
4916 (aix_process_linenos): Add a guard.
4917 (xcoff_symfile_finish): Free dwarf2.
4918 (xcoff_initial_scan): Add dwarf2 support.
4919
3dd5b83d
PA
49202011-06-06 Pedro Alves <pedro@codesourcery.com>
4921
4922 * infcall.c (run_inferior_call): Don't mask async. Instead force
4923 a synchronous wait, if the target can async.
4924
4925 * target.h (struct target_ops): Delete to_async_mask.
4926 (target_async_mask): Delete.
4927 * target.c (update_current_target): Delete references to to_async_mask.
4928 * linux-nat.c (linux_nat_async_mask_value): Delete.
4929 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4930 to linux_nat_async_mask_value.
4931 (linux_nat_async_mask): Delete.
4932 (linux_nat_async, linux_nat_close): Remove references to
4933 linux_nat_async_mask_value.
4934 * record.c (record_async_mask_value): Delete.
4935 (record_async): Remove references to record_async_mask_value.
4936 (record_async_mask): Delete.
4937 (record_can_async_p, record_is_async_p): Remove references to
4938 record_async_mask_value.
4939 (init_record_ops, init_record_core_ops): Remove references to
4940 record_async_mask.
4941 * remote.c (remote_async_mask_value): Delete.
4942 (init_remote_ops): Remove reference to remote_async_mask.
4943 (remote_can_async_p, remote_is_async_p): Remove references to
4944 remote_async_mask_value.
4945 (remote_async): Remove references to remote_async_mask_value.
4946 (remote_async_mask): Delete.
4947
4948 * infrun.c (fetch_inferior_event): Don't claim registers changed
4949 if the current thread is already not executing.
4950
64b9b334
JB
49512011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4952
4953 From Stephen Kitt <steve@sk2.org>
4954 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4955 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4956
325663dc
JB
49572011-06-03 Joel Brobecker <brobecker@adacore.com>
4958
4959 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4960 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4961
8cf64490
TT
49622011-06-03 Tom Tromey <tromey@redhat.com>
4963
4964 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4965 code fields.
4966 * python/py-exitedevent.c (create_exited_event_object): Change
4967 type of 'exit_code'. Optionally add exit_code attribute.
4968 (emit_exited_event): Change type of 'exit_code'.
4969 * python/py-event.h (emit_exited_event): Update.
4970 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4971 * infrun.c (handle_inferior_event): Set exit code fields on
4972 inferior.
4973 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4974 fields.
4975 * inferior.c (exit_inferior_1): Initialize new fields.
4976
8ddd9a20
TT
49772011-06-03 Tom Tromey <tromey@redhat.com>
4978
4979 * dwarf2expr.c (get_signed_type): New function.
4980 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4981
8dfd1e6d
KS
49822011-06-02 Keith Seitz <keiths@redhat.com>
4983
4984 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4985
65fdb766
PA
49862011-06-02 Pedro Alves <pedro@codesourcery.com>
4987
4988 * top.h (simplified_command_loop): Delete declaration.
4989
f4b8c29b
MF
49902011-06-01 Mike Frysinger <vapier@gentoo.org>
4991
4992 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4993 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4994
1706c199
YQ
49952011-06-01 Yao Qi <yao@codesourcery.com>
4996
4997 * objfiles.h (obj_section_addr): Update reference to objfile from
4998 `abfd' to `obfd'.
4999 (obj_section_endaddr): Likewise.
5000
d19cd713 50012011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5002
5003 * MAINTAINERS: Update my email address and affiliation. Also
5004 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5005
e8eb7bc5
KS
50062010-05-31 Keith Seitz <keiths@redhat.com>
5007
5008 PR c++/12750
5009 * linespec.c (get_search_block): New function.
5010 (find_methods): Add FILE_SYMTATB parameter and use it and
5011 get_search_block to pass an appropriate block to
5012 lookup_symbol_in_namespace.
5013 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5014 Check if *ARGPTR starts with a filename first.
5015 If it does, call locate_first_half again to locate the next
5016 "first half" of the linespec.
5017 Pass FILE_SYMTATB to decode_objc and decode_compound.
5018 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5019 (locate_first_half): Stop on the first colon seen.
5020 (decode_compound): Add FILE_SYMTAB parameter.
5021 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5022 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5023 get_search_block with lookup_symbol.
5024 (find_method): Add FILE_SYMTAB parameter and pass it to
5025 find_methods.
5026 (decode_objc): Use get_search_block.
5027
2b1dbab0
KS
50282010-05-31 Keith Seitz <keiths@redhat.com>
5029
5030 PR symtab/12704
5031 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5032 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5033 and CP_ANONYMOUS_NAMESPACE_LEN.
5034 (cp_is_anonymous): Likewise.
5035 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5036 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5037 * dwarf2read.c (namespace_name): Likewise.
5038 (fixup_partial_die): Likewise.
5039 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5040 seen in the input, keep it.
5041
6d549500
PA
50422011-05-30 Pedro Alves <pedro@codesourcery.com>
5043
5044 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5045 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5046 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5047 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5048 * remote.c (_initialize_remote): Register
5049 async_remote_interrupt_twice directly as
5050 sigint_remote_twice_token event.
5051
395bff70
PA
50522011-05-30 Pedro Alves <pedro@codesourcery.com>
5053
5054 * target.h (enum inferior_event_type): Delete INF_ERROR.
5055 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5056
97224164
PA
50572011-05-30 Pedro Alves <pedro@codesourcery.com>
5058
5059 * interps.c (interp_set): Don't cancel continuations.
5060
07e78767
JK
50612011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5062
5063 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5064
fa4cd53f
PA
50652011-05-30 Pedro Alves <pedro@codesourcery.com>
5066
5067 * continuations.h (continuation_ftype): Add `err' parameter.
5068 Document parameters.
5069 (do_all_continuations, do_all_continuations_thread)
5070 (do_all_intermediate_continuations)
5071 (do_all_intermediate_continuations_thread)
5072 (do_all_inferior_continuations): Add `err' parameter.
5073 * continuations.c (do_my_continuations_1, do_my_continuations)
5074 (do_all_inferior_continuations, do_all_continuations_ptid)
5075 (do_all_continuations_thread_callback)
5076 (do_all_continuations_thread, do_all_continuations)
5077 (do_all_intermediate_continuations_thread_callback)
5078 (do_all_intermediate_continuations_thread)
5079 (do_all_intermediate_continuations): Add `err' parameter, and pass
5080 it down all the way to the continuations proper.
5081 * inf-loop.c (inferior_event_handler): If fetching an inferior
5082 event throws an error, don't pop the target, and still call the
5083 continuations, but with `err' set. Adjust all other continuation
5084 calls.
5085 * breakpoint.c (until_break_command_continuation): Add `err'
5086 parameter.
5087 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5088 issue another step if `err' is set.
5089 (struct until_next_continuation_args): New.
5090 (until_next_continuation): Add `err' parameter. Adjust.
5091 (until_next_command): Adjust.
5092 (struct finish_command_continuation_args): Add `thread' field.
5093 (finish_command_continuation): Add `err' parameter. Handle it.
5094 (finish_forward): Adjust.
5095 (attach_command_continuation): Add `err' parameter. Handle it.
5096 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5097 cancel the continuations.
5098 * interps.c (interp_set): Adjust to cancel the continuations.
5099 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5100 continuations rather than discarding.
5101 (free_thread): Don't clear thread inferior resources here.
5102 (delete_thread_1): Do it here instead. And do it before removing
5103 the thread from the threads list. Tag the thread as exited before
5104 clearing thread inferior resources.
5105
c2949be0
JB
51062011-05-30 Joel Brobecker <brobecker@adacore.com>
5107
5108 * infcall.c (call_function_by_hand): Rephrase error message.
5109
619cebe8
PA
51102011-05-27 Pedro Alves <pedro@codesourcery.com>
5111
5112 * defs.h (struct thread_info, struct inferior): Delete forward
5113 declarations.
5114 * breakpoint.h (struct thread_info): New forward declaration.
5115 * observer.sh (struct inferior): New forward declaration.
5116 * python/python-internal.h (struct inferior): New forward
5117 declaration.
5118
be34f849
PA
51192011-05-27 Pedro Alves <pedro@codesourcery.com>
5120
5121 * defs.h (struct continuation, continuation_ftype)
5122 (continuation_free_arg_ftype, add_continuation)
5123 (do_all_continuations, do_all_continuations_thread)
5124 (discard_all_continuations, discard_all_continuations_thread)
5125 (add_intermediate_continuation, do_all_intermediate_continuations)
5126 (do_all_intermediate_continuations_thread)
5127 (discard_all_intermediate_continuations)
5128 (discard_all_intermediate_continuations_thread)
5129 (add_inferior_continuation, do_all_inferior_continuations)
5130 (discard_all_inferior_continuations): Move to ...
5131 * continuations.h: ... this new file.
5132 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5133 infcmd.c, inferior.c, infrun.c, interps.c: Include
5134 continuations.h.
5135
432b4d03
JK
51362011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5137 Doug Evans <dje@google.com>
5138
5139 Fix PR 10970, PR 12702.
5140 * linux-nat.c (linux_lwp_is_zombie): New function.
5141 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5142 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5143
b0f260d6
PA
51442011-05-27 Pedro Alves <pedro@codesourcery.com>
5145
5146 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5147 typedefs.
5148 (add_continuation, add_intermediate_continuation)
5149 (add_inferior_continuation): Use them.
5150 * continuations.c (struct continuation): Use them.
5151 (make_continuation_ftype): Delete.
5152 (make_continuation, add_inferior_continuation, add_continuation)
5153 (add_intermediate_continuation): Use continuation_ftype and
5154 continuation_free_arg_ftype. Rename parameters to shorter names.
5155
af1e9a32
PA
51562011-05-27 Pedro Alves <pedro@codesourcery.com>
5157
5158 * continuations.c (make_continuation): Make it return void.
5159 (do_my_continuations): Rename to ...
5160 (do_my_continuations_1): ... this. Remove old_chain parameter and
5161 adjust.
5162 (do_my_continuations): New.
5163 (discard_my_continuations): Rename to ...
5164 (discard_my_continuations_1): ... this. Remove old_chain
5165 parameter and adjust.
5166 (discard_my_continuations): New.
5167 (add_inferior_continuation): Simplify.
5168 (do_all_inferior_continuations): Reimplement on top
5169 do_my_continuations.
5170 (discard_all_inferior_continuations): Simplify.
5171 (add_continuation): Simplify.
5172 (do_all_continuations_ptid): Simplify.
5173 (discard_all_continuations_thread_callback): Simplify.
5174 (add_intermediate_continuation): Simplify.
5175 (discard_all_intermediate_continuations_thread_callback):
5176 Simplify.
5177
50c0c017
PA
51782011-05-27 Pedro Alves <pedro@codesourcery.com>
5179
5180 * utils.c (struct continuation, add_continuation)
5181 (add_inferior_continuation)
5182 (do_all_inferior_continuations, discard_all_inferior_continuations)
5183 (restore_thread_cleanup, do_all_continuations_ptid)
5184 (do_all_continuations_thread_callback)
5185 (do_all_continuations_thread, do_all_continuations)
5186 (discard_all_continuations_thread_callback)
5187 (discard_all_continuations_thread, discard_all_continuations)
5188 (add_intermediate_continuation)
5189 (do_all_intermediate_continuations_thread_callback)
5190 (do_all_intermediate_continuations_thread)
5191 (do_all_intermediate_continuations)
5192 (discard_all_intermediate_continuations_thread_callback)
5193 (discard_all_intermediate_continuations_thread)
5194 (discard_all_intermediate_continuations): Move to ...
5195 * continuations.c: ... this new file, and adjust to no longer
5196 implement continuations on top of cleanups.
5197 * Makefile.in (SFILES): Add continuations.c.
5198 (COMMON_OBS): Add continuations.o.
5199
d8b34453
PA
52002011-05-26 Pedro Alves <pedro@codesourcery.com>
5201
5202 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5203 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5204 Internal error on invalid values.
5205 * reverse.c: Don't handle EXEC_ERROR.
5206 * mi/mi-main.c: Don't handle EXEC_ERROR.
5207
32231432
PA
52082011-05-26 Pedro Alves <pedro@codesourcery.com>
5209
5210 * record.c: Include event-loop.h, inf-loop.h.
5211 (record_beneath_to_async): New global.
5212 (tmp_to_async): New global.
5213 (record_async_inferior_event_token): New global.
5214 (record_open_1): Don't error out if async is enabled.
5215 (record_open): Handle to_async. Create an async event source in
5216 the event loop.
5217 (record_close): Delete the async event source.
5218 (record_resumed): New global.
5219 (record_execution_dir): New global.
5220 (record_resume, record_core_resume): Set them. Register the
5221 target on the event loop.
5222 (record_wait): Rename to ...
5223 (record_wait_1): ... this. Add more debug output. Handle
5224 TARGET_WNOHANG, and the target beneath returning
5225 TARGET_WAITKIND_IGNORE.
5226 (record_wait): Reimplement on top of record_wait_1.
5227 (record_async_mask_value): New global.
5228 (record_async, record_async_mask, record_can_async_p)
5229 (record_is_async_p, record_execution_direction): New functions.
5230 (init_record_ops, init_record_core_ops): Install new methods.
5231 * infrun.c (fetch_inferior_event): Temporarily switch the global
5232 execution direction to the direction the target was going.
5233 (execution_direction): Change type to int.
5234 * target.c (default_execution_direction): New function.
5235 (update_current_target): Inherit and de_fault
5236 to_execution_direction.
5237 * target.h (struct target_ops) <to_execution_direction>: New
5238 field.
5239 (target_execution_direction): New macro.
5240 * inferior.h (execution_direction): Change type to int.
5241
949dc678
PA
52422011-05-26 Pedro Alves <pedro@codesourcery.com>
5243
5244 * infcall.c (call_function_by_hand): Don't allow calling functions
5245 in reverse execution mode.
5246
c13bd2b5
PA
52472011-05-26 Pedro Alves <pedro@codesourcery.com>
5248
5249 * infcmd.c (finish_command): Allow async finish in reverse.
5250
6938fd34
YQ
52512011-05-26 Yao Qi <yao@codesourcery.com>
5252
5253 * gdb_thread_db.h: Delete. Move to ...
5254 * common/gdb_thread_db.h: ... here.
5255
9da8c2a0
PA
52562011-05-26 Pedro Alves <pedro@codesourcery.com>
5257
5258 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5259 function's entry point instead of a manually managed momentary
5260 breakpoint, and only ever issue one proceed call.
5261 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5262 doing a reverse-finish, switch to stepi mode, to do another step.
5263 (insert_step_resume_breakpoint_at_sal): Make public.
5264 (normal_stop): No need to save function value return registers if
5265 going reverse.
5266 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5267
2c03e5be
PA
52682011-05-26 Pedro Alves <pedro@codesourcery.com>
5269
5270 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5271 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5272 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5273 at the end.
5274 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5275 step-resume breakpoints.
5276 (print_it_typical): Handle bp_hp_step_resume.
5277 (bpstat_what): Ditto.
5278 (bptype_string): Ditto.
5279 (print_one_breakpoint_location): Ditto.
5280 (allocate_bp_location): Ditto.
5281 (mention): Ditto.
5282 (breakpoint_re_set_one): Ditto.
5283 * infrun.c (handle_inferior_event): Adjust. Split
5284 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5285 BPSTAT_WHAT_HP_STEP_RESUME.
5286 (insert_step_resume_breakpoint_at_sal): Rename to ...
5287 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5288 parameter. Handle it.
5289 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5290 insert_step_resume_breakpoint_at_sal_1.
5291 (insert_step_resume_breakpoint_at_frame): Rename to ...
5292 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5293 set a high-priority step-resume breakpoint.
5294 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5295 (insert_step_resume_breakpoint_at_caller): Ditto.
5296
51be5b68
PA
52972011-05-26 Pedro Alves <pedro@codesourcery.com>
5298
5299 * breakpoint.c (iterate_over_related_breakpoints): New.
5300 (do_map_delete_breakpoint): New.
5301 (delete_command): Pass do_map_delete_breakpoint to
5302 map_breakpoint_numbers.
5303 (do_disable_breakpoint): New.
5304 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5305 breakpoints.
5306 (do_enable_breakpoint): Rename to ...
5307 (enable_breakpoint_disp): ... this.
5308 (enable_breakpoint): Adjust.
5309 (do_enable_breakpoint): New.
5310 (enable_once_breakpoint): Delete.
5311 (do_map_enable_breakpoint): New.
5312 (do_map_enable_once_breakpoint): New.
5313 (enable_once_command, enable_delete_command)
5314 (delete_trace_command): Iterate over the breakpoint's related
5315 breakpoints.
5316
4a1be8d2
PA
53172011-05-26 Pedro Alves <pedro@codesourcery.com>
5318
5319 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5320 for ALPHA_ZERO_REGNUM.
5321 (alpha_supply_int_regs): Explicitly supply zero as the value for
5322 ALPHA_ZERO_REGNUM in the register cache.
5323 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5324
59d70315
YQ
53252011-05-26 Yao Qi <yao@codesourcery.com>
5326
5327 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5328
251d32d9
TG
53292011-05-26 Tristan Gingold <gingold@adacore.com>
5330
5331 * symfile.h (struct dwarf2_section_names): New type.
5332 (struct dwarf2_debug_sections): New type.
5333 (dwarf2_has_info): Add parameter.
5334 * dwarf2read.c (dwarf2_elf_names): New variable.
5335 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5336 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5337 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5338 (dwarf2_has_info): Add names parameter. Pass names
5339 to dwarf2_locate_sections.
5340 (section_is_p): Rewrite using the names parameter.
5341 (dwarf2_locate_sections): Use section names from the names parameter.
5342 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5343 * elfread.c (read_psyms): Ditto.
5344 * machoread.c (macho_symfile_read): Ditto.
5345
652c71b4
AS
53462011-05-25 Andreas Schwab <schwab@redhat.com>
5347
5348 PR gdb/8677
5349 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5350
f17170e5
KS
53512011-05-24 Keith Seitz <keiths@redhat.com>
5352
5353 PR breakpoint/12803
5354 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5355 (decode_compound): Unconditionally call keep_name_info.
5356
cdac0397
PA
53572011-05-24 Pedro Alves <pedro@codesourcery.com>
5358
5359 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5360 scope, clear its command list.
5361 (map_breakpoint_numbers): Don't walk the related breakpoints list
5362 of each breakpoint.
5363
91d4fe3f
TT
53642011-05-24 Tom Tromey <tromey@redhat.com>
5365
5366 * MAINTAINERS: Move Jim Blandy to past maintainers.
5367
3017a003
TG
53682011-05-24 Tristan Gingold <gingold@adacore.com>
5369
5370 * symfile.h (enum dwarf2_section_enum): New type.
5371 (dwarf2_get_section_info): New prototype.
5372 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5373 section_name by sect. Use a switch to select the info.
5374 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5375 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5376
c91c8c16
PA
53772011-05-24 Pedro Alves <pedro@codesourcery.com>
5378
5379 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5380 shared library event breakpoint if there's no execution.
5381
77bc418a
TJB
53822011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5383
5384 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5385 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5386
c50491a7
TT
53872011-05-23 Tom Tromey <tromey@redhat.com>
5388
5389 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5390 NULL.
5391
6d64e6d4
DE
53922011-05-23 Doug Evans <dje@google.com>
5393
5394 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5395 entry for RuntimeError to doc string.
5396
2067c8d4
JG
53972011-05-23 Jerome Guitton <guitton@adacore.com>
5398
5399 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5400 sequence for probing loops.
5401
b136cd05
PA
54022011-05-23 Pedro Alves <pedro@codesourcery.com>
5403
5404 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5405 comment.
5406
22e74ef9
MK
54072011-05-21 Mark Kettenis <kettenis@gnu.org>
5408
5409 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5410 zero as the value for %g0 in the register cache.
5411 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5412 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5413
842951eb
PA
54142011-05-20 Pedro Alves <pedro@codesourcery.com>
5415
5416 * infrun.c (proceed): Set previous_inferior_ptid here.
5417 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5418 inferior_ptid, not null_ptid.
5419 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5420 (fetch_inferior_event): Nor here.
5421
46cf51e6
PA
54222011-05-20 Pedro Alves <pedro@codesourcery.com>
5423
5424 * inf-loop.c (inferior_event_handler): Only output a message if
5425 verbose.
5426
29ef4c46
LM
54272011-05-20 Luis Machado <lgustavo@codesourcery.com>
5428
5429 * MAINTAINERS: Update my e-mail address.
5430
f148b27e
PA
54312011-05-20 Pedro Alves <pedro@codesourcery.com>
5432
5433 * infrun.c (proceed): Switch the inferior event loop to
5434 INF_EXEC_COMPLETE if the target refused to resume from a
5435 vfork/fork.
5436
09cee04b
PA
54372011-05-20 Pedro Alves <pedro@codesourcery.com>
5438
5439 * infcmd.c: Include "inf-loop.h".
5440 (step_once): When stepping into an inline subroutine, pretend the
5441 target has run. If the target can async, switch the inferior
5442 event loop to INF_EXEC_COMPLETE.
5443 * inferior.h (user_visible_resume_ptid): Declare.
5444 * infrun.c (user_visible_resume_ptid): New function, factored out
5445 from `resume'.
5446 (resume): Use it.
5447 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5448 that the current thread is running. Merge async and sync
5449 branches.
5450
751b8ce1
PA
54512011-05-20 Pedro Alves <pedro@codesourcery.com>
5452
5453 * infcmd.c (step_1): Simplify synchronous case.
5454
e93a69ed
PA
54552011-05-20 Pedro Alves <pedro@codesourcery.com>
5456
5457 * tracepoint.c: Include exceptions.h.
5458 (TFILE_PID): Move higher in file.
5459 (tfile_open): Delay pushing the tfile target until we're assured
5460 the tfile header is present in the file. Wrap reading the initial
5461 newline-terminated lines in TRY_CATCH. Pop the target if the
5462 initial setup failed. Add the tfile's thread immediately
5463 aftwards, before any non-essential setup. Don't skip
5464 post_create_inferior if there are no traceframes present in the
5465 file.
5466 (tfile_close): Remove redundant check for null before xfree call.
5467 (tfile_thread_alive): New function.
5468 (init_tfile_ops): Register it as to_thread_alive callback.
5469
6823e2b1
PA
54702011-05-20 Pedro Alves <pedro@codesourcery.com>
5471
5472 * tracepoint.c (tfile_open): Delete #if 0'd code.
5473
b3c8eb43
JK
54742011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5475
5476 Fix -readnow for -gdwarf-4 unused type units.
5477 * dwarf2read.c (struct signatured_type): Remove the field offset.
5478 (create_signatured_type_table_from_index): Remove its initialization.
5479 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5480 instead. Add a complaint call.
5481 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5482 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5483 (lookup_signatured_type_at_offset, read_signatured_type)
5484 (write_one_signatured_type): Update the field for per_cu.
5485
310afc76
TT
54862011-05-19 Tom Tromey <tromey@redhat.com>
5487
5488 * python/py-inferior.c (python_inferior_exit): Use
5489 target_gdbarch.
5490 (python_on_resume): Likewise.
5491
cf6c5ffb
TT
54922011-05-19 Matt Rice <ratmice@gmail.com>
5493
5494 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5495
fb80a3c5
HZ
54962011-05-19 Hui Zhu <teawater@gmail.com>
5497
5498 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5499
3672b1be
HZ
55002011-05-19 Hui Zhu <teawater@gmail.com>
5501
5502 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5503
ff355380
TT
55042011-05-18 Tom Tromey <tromey@redhat.com>
5505
5506 * dwarf2read.c (dwarf2_add_field): Constify.
5507 * value.c (value_static_field): Constify.
5508 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5509 Now const.
5510 * ax-gdb.c (gen_static_field): Constify
5511
ed731959
JK
55122011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5513
5514 * linux-nat.c (kill_callback): Use SIGKILL first.
5515
967cff16
JB
55162011-05-18 Joel Brobecker <brobecker@adacore.com>
5517
5518 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5519
1d06ead6
TT
55202011-05-18 Tom Tromey <tromey@redhat.com>
5521
5522 * value.c (value_fn_field): Constify.
5523 * symtab.c (gdb_mangle_name): Constify.
5524 * stabsread.c (update_method_name_from_physname): Make 'physname'
5525 argument const.
5526 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5527 const. Use explicit fputc_filtered loop.
5528 (pascal_type_print_base): Constify.
5529 * p-lang.h (pascal_type_print_method_args): Update.
5530 * linespec.c (add_matching_methods): Constify.
5531 (add_constructors): Likewise.
5532 * jv-typeprint.c (java_type_print_base): Constify.
5533 * gdbtypes.h (struct cplus_struct_type)
5534 <fn_fieldlist.fn_field.physname>: Now const.
5535 * dwarf2read.c (compute_delayed_physnames): Constify.
5536 (dwarf2_add_member_fn): Likewise.
5537 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5538
0d9a9a5f
PA
55392011-05-18 Pedro Alves <pedro@codesourcery.com>
5540
5541 * infrun.c (resume): Mention which is the current thread, and its
5542 current PC in debug output.
5543 (prepare_to_proceed): Mention the thread switching in debug
5544 output.
5545
05386e9e
TT
55462011-05-18 Tom Tromey <tromey@redhat.com>
5547
5548 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5549 path check. Use xmalloc and cleanups.
5550 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5551
ee86786c
TT
55522011-05-17 Tom Tromey <tromey@redhat.com>
5553
5554 * cp-valprint.c (cp_print_value_fields): Catch errors from
5555 value_static_field.
5556
9ff3b74f
TT
55572011-05-17 Tom Tromey <tromey@redhat.com>
5558
5559 * dwarf2read.c (dwarf2_get_die_type): Call
5560 get_die_type_at_offset.
5561 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5562 get_base_type function.
5563
cd3da28e
PA
55642011-05-17 Tomas Martinec <fyzmat@gmail.com>
5565
5566 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5567 trap_expected.
5568
fd20d931
DE
55692011-05-16 Doug Evans <dje@google.com>
5570
5571 * python/py-auto-load.c (source_section_scripts): Mention objfile
5572 name in warning.
5573
75fc9810
DE
55742011-05-15 Doug Evans <dje@google.com>
5575
290351b8
DE
5576 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5577 (try_thread_db_load_from_pdir): Call it. If unable to find
5578 libthread_db in directory of libpthread, see if we're looking at
5579 the separate-debug-info copy.
5580
75fc9810
DE
5581 * python/py-autoload.c (print_script): Print "Missing" instead of
5582 "No" for missing scripts.
5583 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5584
9f7bc587
DE
55852011-05-13 Doug Evans <dje@google.com>
5586
5587 * ui-file.c (stdio_file_write_async_safe): Add comment.
5588
093cee7d
HZ
55892011-05-14 Hui Zhu <teawater@gmail.com>
5590
5591 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5592
dbaefcf7
DE
55932011-05-13 Doug Evans <dje@google.com>
5594
98a5dd13
DE
5595 Support $pdir and $sdir in libthread-db-search-path.
5596 * NEWS: Mention $sdir,$pdir.
5597 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5598 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5599 (try_thread_db_load_from_sdir): New function.
5600 (try_thread_db_load_from_dir): New function.
5601 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5602 system directories if search of libthread-db-search-path fails,
5603 that is now done via $sdir.
5604 (has_libpthread): New function.
5605 (thread_db_load): Remove search for libthread_db in directory of
5606 libpthread, that is now done via $pdir.
5607
dbaefcf7
DE
5608 * NEWS: Mention "info auto-load-scripts".
5609 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5610 script_not_found_warning_printed.
5611 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5612 all callers updated. Initialize script_not_found_warning_printed.
5613 (get_auto_load_pspace_data_for_loading): New function.
5614 (maybe_add_script): New function.
5615 (source_section_scripts): Simplify. Only print one warning regardless
5616 of the number of auto-load scripts not found.
5617 (clear_section_scripts): Clear script_not_found_warning_printed.
5618 (auto_load_objfile_script): Record script in hash table.
5619 (count_matching_scripts): New function.
5620 (maybe_print_script): Renamed from maybe_print_section_script, all
5621 callers updated. Rewrite to use ui_out_*.
5622 (info_auto_load_scripts): Renamed from
5623 maintenance_print_section_scripts, all callers updated.
5624 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5625 renamed as "info auto-load-scripts".
5626
9930639c
TT
56272011-05-13 Tom Tromey <tromey@redhat.com>
5628
5629 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5630 (read_sleb128): Likewise.
5631
06826322
TT
56322011-05-13 Tom Tromey <tromey@redhat.com>
5633
5634 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5635 offset display.
5636
01124a23
DE
56372011-05-13 Doug Evans <dje@google.com>
5638
5639 * linux-nat.c (debug_linux_nat_async): Delete.
5640 Replace all references to use debug_linux_nat instead.
5641 (show_debug_linux_nat_async): Delete.
5642 (sigchld_handler): Call ui_file_write_async_safe instead of
5643 fprintf_unfiltered.
5644 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5645 * ui-file.c (struct ui_file): New member to_write_async_safe.
5646 (null_file_write_async_safe): New function.
5647 (ui_file_write_async_safe): New function.
5648 (set_ui_file_write_async_safe): New function.
5649 (ui_file_new): Initialize to_write_async_safe.
5650 (stdio_file_write_async_safe): New function.
5651 (struct stdio_file): New member fd.
5652 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5653 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5654 fileno.
01124a23
DE
5655 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5656 (set_ui_file_write_async_safe): Declare.
5657 (ui_file_write_async_safe): Declare.
5658
72fc29ff
TT
56592011-05-13 Tom Tromey <tromey@redhat.com>
5660
5661 * utils.c (do_value_free): New function.
5662 (make_cleanup_value_free): Likewise.
5663 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5664 freeing correctly.
5665 (dwarf2_loc_desc_needs_frame): Call
5666 make_cleanup_value_free_to_mark.
5667 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5668 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5669 value_free_to_mark.
5670 (new_dwarf_expr_context): Don't call value_mark.
5671 * dwarf2-frame.c (execute_stack_op): Call
5672 make_cleanup_value_free_to_mark.
5673 * defs.h (make_cleanup_value_free): Declare.
5674
028d0ed5
TJB
56752011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5676
5677 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5678 prepare_execute_command.
5679 * top.c (prepare_execute_command): Return cleanup.
5680 (execute_command): Use cleanup from prepare_execute_command.
5681 * top.h (prepare_execute_command): Change prototype to return
5682 cleanup.
5683 * defs.h (struct value): Add opaque declaration.
5684 (make_cleanup_value_free_to_mark): Add prototype.
5685 * utils.c (do_value_free_to_mark): New function.
5686 (make_cleanup_value_free_to_mark): Likewise.
5687
b087e0ed
TT
56882011-05-12 Tom Tromey <tromey@redhat.com>
5689
5690 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5691 cast left-hand-side to unsigned.
5692
8a9b8146
TT
56932011-05-12 Tom Tromey <tromey@redhat.com>
5694
5695 PR gdb/12617:
5696 * value.h (value_from_contents): Declare.
5697 * value.c (value_from_contents): New function.
5698 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5699 (dwarf2_get_die_type): New function.
5700 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5701 (allocate_piece_closure): Acquire reference to values.
5702 (read_pieced_value): Update for value-based expressions.
5703 (write_pieced_value): Likewise.
5704 (free_pieced_value_closure): Call value_free as needed.
5705 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5706 Update for value-based expressions.
5707 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5708 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5709 <get_base_type>: New field.
5710 (struct dwarf_expr_piece) <v.value>: Change type.
5711 <v.regno>: New field.
5712 (struct dwarf_expr_context) <mark>: New field.
5713 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5714 (dwarf_expr_pop, dwarf_expr_push): Remove.
5715 (dwarf_expr_push_address): Declare.
5716 * dwarf2expr.c (dwarf_arch_cookie): New global.
5717 (struct dwarf_gdbarch_types): New.
5718 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5719 functions.
5720 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5721 static.
5722 (dwarf_expr_push_address): New function.
5723 (dwarf_expr_pop): Now static.
5724 (dwarf_expr_fetch): Change return type.
5725 (dwarf_require_integral): New function.
5726 (dwarf_expr_fetch): Simplify.
5727 (add_piece): Update.
5728 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5729 functions.
5730 (execute_stack_op) <sign_ext>: Remove.
5731 Use values for DWARF stack.
5732 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5733 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5734 New cases.
5735 (_initialize_dwarf2expr): New function.
5736 (add_piece): Update.
5737 (new_dwarf_expr_context): Set new field.
5738 (free_dwarf_expr_context): Call value_free_to_mark.
5739 * dwarf2-frame.c (no_base_type): New function.
5740 (execute_stack_op): Set get_base_type field. Update.
5741
e8d28ef4
TT
57422011-05-12 Tom Tromey <tromey@redhat.com>
5743
5744 * dwarf2read.c (read_common_block): Fix formatting.
5745
d248b706
KY
57462011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5747
5748 * breakpoint.c (disable_breakpoint): Disable all locations
5749 associated with a tracepoint on target if a trace experiment is
5750 running.
5751 (disable_command): Disable a specific tracepoint location on target if
5752 a trace experiment is running.
5753 (do_enable_breakpoint): Enable all locations associated with a
5754 tracepoint on target if a trace experiment is running.
5755 (enable_command) Enable a specific tracepoint location on target if a
5756 trace experiment is running.
5757 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5758 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5759 to_disable_tracepoint.
5760 * target.h: Add declaration of struct bp_location.
5761 (struct target_ops): Add new functions
5762 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5763 to_disable_tracepoint to target operations.
5764 (target_supports_enable_disable_tracepoint): New macro.
5765 (target_enable_tracepoint): New macro.
5766 (target_disable_tracepoint): New macro.
5767 * remote.c (struct remote_state): Add new field.
5768 (remote_enable_disable_tracepoint_feature): New.
5769 (remote_protocol_features): Add new entry.
5770 (remote_supports_enable_disable_tracepoint): New.
5771 (remote_enable_tracepoint): New.
5772 (remote_disable_tracepoint): New.
5773 (init_remote_ops): Add remote_enable_tracepoint,
5774 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5775 to remote operations.
5776 * tracepoint.c (start_tracing): Allow tracing to start without any
5777 tracepoints enabled with just a warning if they can be re-enabled
5778 later.
5779 * NEWS: Add news item for the new behaviour of the enable and disable
5780 GDB commands when applied to tracepoints.
5781 Add news items for the new remote packets QTEnable and QTDisable.
5782
cc88a640
JK
57832011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5784
5785 * config.in: Regenerate.
5786 * configure: Regenerate.
5787 * configure.ac <--with-system-readline> (for readline_echoing_p):
5788 Remove the test.
5789 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5790 (tui_old_rl_echoing_p): ... here.
5791 (tui_setup_io): Rename extern declaration readline_echoing_p to
5792 _rl_echoing_p. Adjust assignments for the both renames.
5793
1f84b619
TJB
57942011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5795
5796 * symtab.c (lookup_symtab): Run cleanup before returning.
5797
74ac6d43
TT
57982011-05-11 Tom Tromey <tromey@redhat.com>
5799
5800 * dwarf2read.c (handle_data_member_location): New function.
5801 (dwarf2_add_field): Use it.
5802 (read_common_block): Likewise.
5803
5488dafb
JK
58042011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5805
5806 Make addrs->SECTINDEX always defined.
5807 * symfile.c (relative_addr_info_to_section_offsets): Check for
5808 SECTINDEX -1, not for zero ADDR.
5809 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5810 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5811 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5812 on its validity.
5813
84e578fb
DE
58142011-05-10 Doug Evans <dje@google.com>
5815
2471d008
DE
5816 * linux-thread-db.c: Whitespace cleanup.
5817 (try_thread_db_load_1): Fix comment.
5818
84e578fb
DE
5819 * linux-thread-db.c (set_libthread_db_search_path): New function.
5820 (_initialize_thread_db): Add setter for libthread-db-search-path.
5821
673c2bbe
DE
58222011-05-09 Doug Evans <dje@google.com>
5823
478aac75
DE
5824 * NEWS: Mention --with-iconv-bin.
5825 * configure.ac: New option --with-iconv-bin.
5826 * configure: Regenerate.
5827 * config.in: Regenerate.
5828 * defs.h (relocate_gdb_directory): Declare.
5829 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5830 removed progname parameter, and exported. All callers updated.
5831 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5832
673c2bbe
DE
5833 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5834 adding missing call to restore_child_signals_mask.
5835
e4c8541f
PA
58362011-05-09 Pedro Alves <pedro@codesourcery.com>
5837
5838 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5839 parameter.
5840 * infrun.c (proceed, start_remote): Adjust.
5841 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5842 and adjust to not handle it.
5843 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5844 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5845 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5846 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5847 * windows-nat.c (do_initial_windows_stuff): Adjust.
5848 * infcmd.c (attach_command): Adjust.
5849 (notice_new_inferior): Adjust.
5850
a536c6d7
UW
58512011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5852
5853 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5854 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5855 * spu-tdep.c (op_selb): Use correct value.
5856
7845b013
UW
58572011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5858
5859 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5860 "parent" parameter to symbol_file_add_from_bfd call.
5861
9c06b0b4
TJB
58622011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5863 Thiago Jung Bauermann <bauerman@br.ibm.com>
5864
5865 Implement support for PowerPC BookE masked watchpoints.
5866 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5867 section.
5868 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5869 method. Initialize to NULL in all existing breakpoint_ops instances.
5870 (struct breakpoint) <hw_wp_mask>: New field.
5871 * breakpoint.c (is_masked_watchpoint): Add prototype.
5872 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5873 breakpoint's breakpoint_ops.works_in_software_mode if available.
5874 (watchpoints_triggered): Handle the case of a hardware masked
5875 watchpoint trigger.
5876 (watchpoint_check): Likewise.
5877 (works_in_software_mode_watchpoint): New function.
5878 (insert_masked_watchpoint, remove_masked_watchpoint)
5879 (resources_needed_masked_watchpoint)
5880 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5881 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5882 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5883 functions.
5884 (masked_watchpoint_breakpoint_ops): New structure.
5885 (watch_command_1): Check for the existence of the `mask' parameter.
5886 Set b->ops according to the type of hardware watchpoint being created.
5887 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5888 (ppc_linux_remove_mask_watchpoint)
5889 (ppc_linux_masked_watch_num_registers): New functions.
5890 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5891 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5892 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5893 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5894 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5895 (target_masked_watch_num_registers): New functions.
5896 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5897 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5898 methods.
5899 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5900 (target_masked_watch_num_registers): Add prototypes.
5901
8be455d7
JK
59022011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5903
5904 PR 12573
5905 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5906 (producer_is_gcc_ge_4_0): New function.
5907 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5908 symtab->language code.
5909 (var_decode_location): Set cu->has_loclist.
5910 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5911 skip. Intialize force_skip from locations_valid. Move the prologue
5912 skipping code into two passes.
5913 * symtab.h (struct symtab): Make the primary field a bitfield. New
5914 field locations_valid.
5915
d8228535
JK
59162011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5917
5918 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5919 (classify_inner_name): Call cp_lookup_nested_type with
5920 yylval.tsym.type.
5921 * cp-namespace.c (cp_lookup_nested_type): New variable
5922 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5923 type_name_no_tag_or_error with saved_parent_type.
5924 * dwarf2read.c (load_partial_dies): Read in any children of
5925 DW_TAG_typedef with complaint in such case.
5926 * gdbtypes.c (type_name_no_tag_or_error): New function.
5927 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5928 * valops.c (destructor_name_p): New comment for parameter type. Remove
5929 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5930 * value.h (destructor_name_p): Remove type const.
5931
1976171a
JK
59322011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5933
5934 * symtab.c (compare_symbol_name): New function.
5935 (completion_list_add_name, expand_partial_symbol_name): Call it,
5936 remove the variable ncmp.
5937 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5938 gdb_assert it.
5939
a9634178
TJB
59402011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5941
5942 Demote to sw watchpoint only in update_watchpoint.
5943 * breakpoint.c (update_watchpoint): Change between software and
5944 hardware watchpoint for all kinds of watchpoints, not just
5945 read/write ones. Determine b->exact value here instead of
5946 in watch_command_1. Error out if there are not enough resources
5947 for a read or access hardware watchpoint.
5948 (watch_command_1): Remove logic of checking whether there are
5949 enough resources available, since update_watchpoint will do that
5950 work now. Don't set b->exact here. Catch exceptions thrown by
5951 update_watchpoint and delete the watchpoint.
5952 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5953 Use target_exact_watchpoints instead.
5954 (delete_breakpoint): Notify observers only if deleted watchpoint
5955 has a breakpoint number assigned to it.
5956
4c67c798
JJ
59572011-05-05 Janis Johnson <janisjo@codesourcery.com>
5958
5959 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5960
a3fcb948
JG
59612011-05-05 Jerome Guitton <guitton@adacore.com>
5962
5963 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5964 New functions.
5965 (i386_stack_tramp_frame_unwind): New static global.
5966 (i386_match_pattern): New function, extracted from i386_match_insn.
5967 (i386_match_insn): Use i386_match_pattern.
5968 (i386_match_insn_block): New function.
5969 (i386_tramp_chain_in_reg_insns)
5970 (i386_tramp_chain_on_stack_insns): New static variables.
5971 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5972 of unwinders.
5973
4d393d60
JM
59742011-05-04 Joseph Myers <joseph@codesourcery.com>
5975
5976 * configure.host (xscale*): Don't handle target.
5977 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5978 handle targets.
5979
f70bd40b
YQ
59802011-05-04 Yao Qi <yao@codesourcery.com>
5981
5982 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5983
dd3295ee
JB
59842011-05-03 Joel Brobecker <brobecker@adacore.com>
5985
5986 Revert:
5987 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5988 | * elfread.c (elf_symtab_read): Stop memory leak.
5989
90375a0e
PM
59902011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5991
5992 * nto-tdep.c (nto_target): Replace deprecated call to
5993 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5994
d07205c2
JK
59952011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5996
5997 Fix false GCC warning.
5998 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5999
1e718ff1
TJB
60002011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6001
6002 * breakpoint.c (update_watchpoint): Move code to change
6003 the enable state of breakpoint from here ...
6004 (do_enable_breakpoint): ... to here.
6005
35bef4fd
TT
60062011-04-26 Andrew Gontarek <andrewg@cray.com>
6007
78290264
PP
6008 * valprint.c (val_print_array_elements): Fixed poor performance
6009 of printing very large arrays with repeat_count_threshold set
6010 to unlimited. New comment.
35bef4fd 6011
38a714bb
TT
60122011-04-29 Tom Tromey <tromey@redhat.com>
6013
6014 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6015 (mi_parse): Likewise.
6016 * breakpoint.c (break_range_command): Use sizeof char*, not
6017 char**.
6018 (create_breakpoint): Likewise.
6019 (parse_breakpoint_sals): Likewise.
6020
eb73ad13
PA
60212011-04-29 Pedro Alves <pedro@codesourcery.com>
6022
6023 * linux-nat.c (linux_child_remove_fork_catchpoint)
6024 (linux_child_remove_vfork_catchpoint)
6025 (linux_child_remove_exec_catchpoint): New functions.
6026 (linux_target_install_ops): Install them.
6027
d65aec65
PM
60282011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6029
6030 PR mi/12531
6031
6032 * varobj.c (install_default_visualizer): Do not install a
6033 visualizer if the varobj is CPLUS_FAKE_CHILD.
6034 (construct_visualizer): Likewise.
6035
165195f4
JK
60362011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6037
6038 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6039 case insensitive comparison.
6040
30852783
UW
60412011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6042
6043 * infrun.c (proceed): Revert previous change.
6044 (resume): Instead, handle the case of signal delivery while stepping
6045 off a breakpoint location here, and only if software single-stepping
6046 is used. Handle nested signals.
6047
7ff120b4
YQ
60482011-04-28 Yao Qi <yao@codesourcery.com>
6049
6050 * arm-tdep.c (copy_unmodified): Rename to ...
6051 (arm_copy_unmodified): .. this. New.
6052 (copy_preload): Move common part to ...
6053 (install_preload): .. this. New.
6054 (arm_copy_preload): New.
6055 (copy_preload_reg): Move common part to ...
6056 (install_preload_reg): ... this. New.
6057 (arm_copy_preload_reg): New.
6058 (copy_b_bl_blx): Move common part to ...
6059 (install_b_bl_blx): .. this. New.
6060 (arm_copy_b_bl_blx): New.
6061 (copy_bx_blx_reg): Move common part to ...
6062 (install_bx_blx_reg): ... this. New.
6063 (arm_copy_bx_blx_reg): New.
6064 (copy_alu_reg): Move common part to ...
6065 (install_alu_reg): ... this. New.
6066 (arm_copy_alu_reg): New.
6067 (copy_alu_shifted_reg): Move common part to ...
6068 (install_alu_shifted_reg): ... this. New.
6069 (copy_ldr_str_ldrb_strb): Move common part to ...
6070 (install_ldr_str_ldrb_strb): ... this. New.
6071 (arm_copy_ldr_str_ldrb_strb): New.
6072 (copy_copro_load_store): Move some common part to ...
6073 (install_copy_copro_load_store): ... this. New.
6074 (arm_copy_copro_load_store): New.
6075 (copy_svc): Delete.
6076 (arm_copy_svc): Renamed from copy_svc.
6077 (copy_undef): Delete.
6078 (arm_copy_undef): Renamed from copy_undef.
6079 (decode_ext_reg_ld_st): Delete.
6080 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6081 (decode_svc_copro): Delete.
6082 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6083 (copy_copro_load_store, copy_alu_imm): update callers.
6084 (copy_extra_ld_st, copy_block_xfer): Likewise.
6085 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6086 (decode_miscellaneous, decode_dp_misc): Likewise.
6087 (decode_ld_st_word_ubyte, decode_media): Likewise.
6088 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6089 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6090 (decode_unconditional, decode_miscellaneous): Likewise.
6091 (decode_media, decode_b_bl_ldmstm): Likewise.
6092 (arm_process_displaced_insn): Likewise..
6093 (decode_misc_memhint_neon): Delete.
6094 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6095 (decode_miscellaneous): Delete.
6096 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6097 (decode_dp_misc): Delete.
6098 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6099 (decode_ld_st_word_ubyte): Delete.
6100 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6101 (decode_media): Delete.
6102 (arm_decode_media): Renamed from decode_media.
6103 (decode_b_bl_ldmstm): Delete.
6104 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6105 (decode_ext_reg_ld_st): Delete.
6106 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6107 (decode_unconditional): Delete.
6108 (arm_decode_unconditional): Renamed from decode_unconditional.
6109
559a7a62
JK
61102011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6111
6112 Case insensitive lookups implementation.
6113 * dwarf2read.c: Include ctype.h.
6114 (struct mapped_index): New field version.
6115 (mapped_index_string_hash): New parameter index_version. New comment
6116 for it. Call tolower appropriately.
6117 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6118 Choose the right index version for mapped_index_string_hash.
6119 (dwarf2_read_index): Support also the index version 5. Initialize the
6120 new struct mapped_index field version.
6121 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6122 (find_slot): Explain the version needs. Pass INT_MAX for the new
6123 parameter.
6124 (write_psymtabs_to_index): Produce version 5.
6125 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6126 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6127 * psymtab.c (lookup_partial_symbol): Find the
6128 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6129 entries.
6130 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6131 NAME lowercasing.
6132 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6133 (completion_list_add_name): New variable ncmp, initialize it, use it.
6134 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6135 * utils.c (strcmp_iw): Support case_sensitive_off.
6136 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6137 New function comment part. New variables saved_string1,
6138 saved_string2 and case_pass. Add a proper second pass.
6139
681bf369
JK
61402011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6141
6142 Replace re_comp/re_exec by regcomp/regexec.
6143 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6144 (search_symbols_name_matches): Use them, use regexec.
6145 (search_symbols): New variable retval_chain, adjust the use of
6146 old_chain against it. Replace re_comp by regcomp. Use the new struct
6147 search_symbols_data fields, use regexec instead of re_exec.
6148
b11b1f88
JK
61492011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6150
6151 Format the code for the next patch.
6152 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6153 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6154 New variables c1 and c2.
6155
2484c66b
UW
61562011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6157
6158 * infrun.c (proceed): Do not single-step into signal delivery
6159 when stepping off a breakpoint location.
6160 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6161 (insert_step_resume_breakpoint_at_caller): Likewise.
6162 (insert_step_resume_breakpoint_at_sal): Likewise.
6163 (insert_longjmp_resume_breakpoint): Likewise.
6164
47423772
YQ
61652011-04-27 Yao Qi <yao@codesourcery.com>
6166
6167 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6168
13bdd2e7
JB
61692011-04-27 Joel Brobecker <brobecker@adacore.com>
6170
6171 * procfs.c (procfs_pass_signals): Fix advance declaration.
6172
2455069d
UW
61732011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6174
6175 * target.h (struct target_ops): Remove to_notice_signals;
6176 add to_pass_signals.
6177 (target_notice_signals): Remove.
6178 (target_pass_signals): Add prototype.
6179 * target.c (update_current_target): Remove to_notice_signals;
6180 mention to_pass_signals.
6181 (target_pass_signals): New function.
6182 (debug_to_notice_signals): Remove.
6183 (setup_target_debug): Do not install debug_to_notice_signals.
6184
6185 * infrun.c (signal_pass): New global.
6186 (resume): Call target_pass_signals.
6187 (handle_inferior_event): Report all signals while stepping over
6188 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6189 are re-inserted when stepping over a signal handler.
6190 (signal_cache_update): New function.
6191 (signal_stop_update): Call it.
6192 (signal_print_update): Likewise.
6193 (signal_pass_update): Likewise.
6194 (handle_command): Call signal_cache_update and target_pass_signals
6195 instead of target_notice_signals.
6196 (_initialize_infrun): Initialize signal_pass.
6197
6198 * linux-nat.c (pass_mask): New global.
6199 (linux_nat_pass_signals): New function.
6200 (linux_nat_create_inferior): Report all signals initially.
6201 (linux_nat_attach): Likewise.
6202 (linux_nat_resume): Use pass_mask to decide whether to directly
6203 handle an inferior signal.
6204 (linux_nat_wait_1): Likewise.
6205 (linux_nat_add_target): Install to_pass_signals callback.
6206
6207 * nto-procfs.c (notice_signals): Remove.
6208 (procfs_resume): Do not call notice_signals.
6209 (procfs_notice_signals): Remove.
6210 (procfs_pass_signals): New function.
6211 (init_procfs_ops): Install to_pass_signals callback instead of
6212 to_notice_signals callback.
6213 (_initialize_procfs): Report all signals initially.
6214
6215 * procfs.c (procfs_notice_signals): Remove.
6216 (procfs_pass_signals): New function.
6217 (procfs_target): Install to_pass_signals callback instead of
6218 to_notice_signals callback.
6219 (register_gdb_signals): Remove.
6220 (procfs_debug_inferior): Report all signals initially.
6221 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6222
6223 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6224 parameters; use them instead of calling signal_..._state routines.
6225 (remote_notice_signals): Remove.
6226 (remote_start_remote): Report all signals initially.
6227 (remote_resume): Do not call remote_pass_signals.
6228 (_initialize_remote): Install to_pass_signals callback instead of
6229 to_notice_signals callback.
6230
46c6471b
PA
62312011-04-27 Pedro Alves <pedro@codesourcery.com>
6232
6233 * breakpoint.c (user_settable_breakpoint): Delete.
6234 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6235 (delete_command): Check user_breakpoint_p instead of looking at
6236 the breakpoint's type.
6237 (disable_command): Ditto.
6238 (enable_command): Ditto.
6239 (delete_trace_command): Use user_breakpoint_p instead of looking
6240 at the breakpoint number directly. When checking if there are
6241 user visible tracepoints, in order to know whether to ask the user
6242 for confirmation, check whether the breakpoint is actually a
6243 tracepoint.
6244
f6d90398
VP
62452011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6246
6247 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6248 compilation.
6249
8d3788bd
VP
62502011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6251
6252 MI breakpoint notifications.
6253
f33edef8
PP
6254 * annotate.c (breakpoint_changed): Adjust parameter type.
6255 * breakpoint.c (set_breakpoint_condition): Adjust to change
6256 in breakpoint_modified type.
6257 (breakpoint_set_commands): Likewise.
6258 (do_map_commands_command): Likewise.
6259 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6260 changed after bumping hit count.
6261 (bpstat_stop_status): Likewise.
6262 (print_one_breakpoint_location): Don't wrap in tuple here.
6263 (print_one_breakpoint): Always print individual locations.
6264 For locations, use unnamed tuple.
6265 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6266 has changed.
6267 (create_catchpoint, create_syscall_event_catchpoint): Call
6268 breakpoint_created obsever.
6269 (mention): Don't call breakpoint_created observer.
6270 (create_breakpoint_sal): Call breakpoint_created observer.
6271 (create_breakpoint, watch_command_1): Likewise.
6272 (create_ada_exception_breakpoint): Likewise.
6273 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6274 (locations_are_equal): New.
6275 (update_breakpoint_locations): If locations were changed, notify.
6276 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6277 Call breakpoint_modified observer.
6278
6279 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6280 (mi_cmd_break_insert): Don't set observers for modify and delete.
6281 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6282 (mi_breakpoint_created, mi_breakpoint_deleted)
6283 (mi_breakpoint_modified): New.
6284 (mi_interpreter_init): Hook the above.
6285 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6286 while -break-* commands are executing.
6287 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6288 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6289 (mi_redirect): New.
6290 (mi_ui_out_impl): Hook in mi_redirect.
6291 (mi_field_skip): True to the name, skip the field, don't output
6292 a field with an empty value.
6293
6294 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6295 (gdbpy_breakpoint_deleted): Adjust.
6296 * tui/tui-hooks.c (tui_event_create_breakpoint)
6297 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6298
a8f42b45
UW
62992011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6300
6301 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6302 (procfs_remove_hw_watchpoint): Likewise.
6303
57e12211
TT
63042011-04-26 Michael Walle <michael@walle.cc>
6305
6306 * remote.c (remote_start_remote): Ack packet after sending the
6307 interrupt sequence.
6308
af96c192
YQ
63092011-04-26 Yao Qi <yao@codesourcery.com>
6310
f33edef8
PP
6311 * linux-nat.c: Move common macros to ...
6312 Include linux-ptrace.h.
6313 * common/linux-ptrace.h: ... here. New.
af96c192 6314
3e03848b
JK
63152011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6316
6317 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6318 !objfile_has_partial_symbols. New comment.
6319 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6320 SYM_READ_PSYMBOLS is not present. Extend the comment.
6321 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6322
1ae0d051
JK
63232011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6324
6325 * defs.h (ENUM_BITFIELD): Remove.
6326
03f2bd59
JK
63272011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 Eli Zaretskii <eliz@gnu.org>
6329
6330 * NEWS: Document the new gdbserver --once option.
6331
4161fbb0
JZ
63322011-04-21 Jie Zhang <jzhang918@gmail.com>
6333
6334 * MAINTAINERS: Update my email address.
6335
bcb28afc
PM
63362011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6337
6338 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6339 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6340 function call if __STDC_ISO_10646__ macro is defined.
6341 (intermediate_encoding): New prototype.
6342 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6343 to generate compile time error for unsupported gdb_wchar_t size.
6344 (ENDIAN_SUFFIX): New macro.
6345 (intermediate_encoding): New function.
6346
7b08b9eb
JK
63472011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6348
6349 * ada-lang.c (struct add_partial_datum): Update the comment for
6350 expand_partial_symbol_name.
6351 (ada_add_partial_symbol_completions): Rename to ...
6352 (ada_expand_partial_symbol_name): ... here, change return type, update
6353 function comment, call symbol_completion_match instead of
6354 symbol_completion_add.
6355 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6356 and ada_expand_partial_symbol_name.
6357 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6358 FILE_MATCHER.
6359 (dw2_map_symbol_names): Remove.
6360 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6361 * psymtab.c (map_symbol_names_psymtab): Remove.
6362 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6363 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6364 order.
6365 (psym_functions): Unlist map_symbol_names_psymtab.
6366 (map_partial_symbol_names): Rename to ...
6367 (expand_partial_symbol_names): ... here, change the FUN type, call
6368 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6369 * psymtab.h (map_partial_symbol_names): Rename to ...
6370 (expand_partial_symbol_names): ... here, change the FUN type.
6371 * symfile.h (struct quick_symbol_functions): Update the description of
6372 expand_symtabs_matching. Remove map_symbol_names.
6373 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6374 (struct add_name_data): Update the comment for
6375 expand_partial_symbol_name.
6376 (add_partial_symbol_name): Rename to ...
6377 (expand_partial_symbol_name): ... here. Replace
6378 completion_list_add_name call by strncmp.
6379 (default_make_symbol_completion_list_break_on): Use now
6380 expand_partial_symbol_names and expand_partial_symbol_name.
6381 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6382
90476074
TT
63832011-04-20 Tom Tromey <tromey@redhat.com>
6384
6385 * dwarf2read.c (save_gdb_index_command): Replace format
6386 documentation with a pointer to the manual.
6387
c21236dc
PA
63882011-04-20 Pedro Alves <pedro@codesourcery.com>
6389
6390 * regcache.c: Include remote.h.
6391 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6392 (regcache_dump): Handle regcache_dump_remote.
6393 (maintenance_print_remote_registers): New function.
6394 (_initialize_regcache): Install "maint print remote-registers"
6395 command.
6396 * remote.c (map_regcache_remote_table): New function, factored out
6397 from ...
6398 (init_remote_state): ... here.
6399 (remote_register_number_and_offset): New.
6400 * remote.h (remote_register_number_and_offset): Declare.
6401
b78974c3
PA
64022011-04-20 Pedro Alves <pedro@codesourcery.com>
6403
6404 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6405 null_ptid, assume and allow a NULL address space, instead of
6406 asking the target for the ptid's address space.
6407 * infrun.c (ptid_is_pid): Remove assertion.
6408
7a9dd1b2
TT
64092011-04-19 Tom Tromey <tromey@redhat.com>
6410
6411 * windows-tdep.c (windows_xfer_shared_library):
6412 * windows-nat.c (get_module_name, windows_make_so):
6413 * v850-tdep.c (v850_handle_pushm):
6414 * utils.c (null_cleanup, gdb_realpath):
6415 * ui-out.c (get_next_header):
6416 * tracepoint.c (clear_traceframe_info):
6417 * symtab.c (lookup_symtab):
6418 * serial.h (struct serial_ops):
6419 * mipsread.c (read_alphacoff_dynamic_symtab):
6420 * infcmd.c (print_return_value):
6421 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6422 * f-exp.y (parse_number):
6423 * exceptions.c (catch_exceptions):
6424 * dummy-frame.c (dummy_frame_this_id):
6425 * defs.h (struct cleanup):
6426 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6427 * arm-tdep.c (arm_push_dummy_call):
6428 * amd64-tdep.h (amd64_collect_xsave):
6429 * amd64-tdep.c (amd64_collect_xsave):
6430 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6431 * README (typing): Remove duplicate words.
6432 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6433 * infrun.c (siginfo_value_read): Fix typo.
6434 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6435 * top.c (source_line_number): Add comma.
6436
9941e0c5
MK
64372011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6438
6439 * thread.c (any_live_thread_of_process): Prioritize threads
6440 that are not executing.
6441 * gdbthread.h (any_live_thread_of_process): Update comment
6442 as per above change.
6443
ed4b0e6a
AS
64442011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6445
6446 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6447 (scan_xcoff_symtab): Likewise.
6448
9b13a2db
PM
64492011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6450
6451 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6452 inside if clause.
6453
1c6e1b0d
PM
64542011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6455 Pedro Alves <pedro@codesourcery.com>
6456
6457 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6458 variables to simplify code and avoid == operator at end of
6459 line as this is against GNU coding standards.
6460
74de0234
PM
64612011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6462
6463 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6464 lm_name to name_lm to avoid conflict with lm_name function.
6465
b23518f0
PM
64662011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6467
6468 ARI fixes: Use only lowercase function name for static functions.
6469 * nto-tdep.c (LM_ADDR): Rename to...
6470 (lm_addr): New function name.
6471 (nto_relocate_section_addresses): Adapt to change above.
6472 * solib-sunos.c (LM_ADDR): Rename to...
6473 (lm_addr): New function name.
6474 (LM_NEXT): Rename to...
6475 (lm_next): New function name.
6476 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6477 function name changes above.
6478 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6479 (lm_addr_from_link_map): New function name.
6480 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6481 (has_lm_dynamic_from_link_map): New function name.
6482 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6483 (lm_dynamic_from_link_map): New function name.
6484 (LM_ADDR_CHECK): Rename to...
6485 (lm_addr_check): New function name.
6486 (LM_NEXT): Rename to...
6487 (lm_next): New function name.
6488 (LM_PREV): Rename to...
6489 (lm_prev): New function name.
6490 (LM_NAME): Rename to...
6491 (lm_name): New function name.
6492 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6493 (ignore_first_link_map_entry): New function name.
6494 (svr4_keep_data_in_core): Adapt to function name changes above.
6495 (svr4_current_sos): Likewise.
6496 (enable_break): Likewise.
6497 (svr4_relocate_section_addresses): Likewise.
6498
1448a0a2
PM
64992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6500
6501 ARI cleanup.
6502 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6503 sprintf. Simplify code and avoid loosing memory.
6504 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6505 (call0_frame_cache): Remove && operator from end of line.
6506
02835898
JK
65072011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6508
6509 Fix libraries displacement if they change whether they were prelinked.
6510 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6511 does not match. Comment why.
6512
9a845ea2
JK
65132011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6514
6515 * corelow.c: Include wrapper.h.
6516 (core_open): Call now gdb_target_find_new_threads.
6517 * wrapper.c: Include target.h.
6518 (gdb_target_find_new_threads): New.
6519 * wrapper.h (gdb_target_find_new_threads): New declaration.
6520
254f582e
JK
65212011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6522
6523 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6524 even if !TARGET_HAS_EXECUTION.
6525
63524580
JK
65262011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6527
6528 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6529 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6530 bfd_get_synthetic_symtab.
6531 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6532 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6533 parameter parent, remove the call to add_separate_debug_objfile.
6534 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6535 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6536 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6537 parent, new comment for it, call add_separate_debug_objfile for it.
6538 (symbol_file_add_separate): Pass objfile as the parameter parent,
6539 remove the call to add_separate_debug_objfile.
6540 (symbol_file_add_from_bfd): New parameter parent, pass it.
6541 (symbol_file_add): Pass NULL to the new parameter parent.
6542 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6543
90359a16
JK
65442011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6545
6546 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6547 BSF_SYNTHETIC.
6548
626e7282
JK
65492011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6550
6551 Fix Python access to inlined frames.
6552 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6553 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6554
cf31e6f9
TT
65552011-04-15 Tom Tromey <tromey@redhat.com>
6556
6557 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6558
c8d895f1
GB
65592011-04-15 Gary Benson <gbenson@redhat.com>
6560
6561 * MAINTAINERS: Add myself to write-after-approval section.
6562
56a9aa1d
MF
65632011-04-14 Mike Frysinger <vapier@gentoo.org>
6564
6565 * remote-sim.c (sim_command_completer): New function.
6566 (_initialize_remote_sim): Set completer to sim_command_completer.
6567
ba770c9c
TJB
65682011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6569
6570 * breakpoint.c (print_exception_catchpoint): Rename to ...
6571 (print_it_exception_catchpoint): ... this.
6572 (gnu_v3_exception_catchpoint_ops): Update with new name
6573 for print_it_exception_catchpoint.
6574
51bf2553
EBM
65752011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6576
6577 * MAINTAINERS: Add myself for write after approval privileges.
6578
d242658c
MP
65792011-04-13 Marek Polacek <mpolacek@redhat.com>
6580
6581 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6582
4a4106ca
TJB
65832011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6584
6585 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6586
26063d49
TJB
65872011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6588
6589 * breakpoint.c (save_breakpoints): Verify whether
6590 breakpoint_ops.print_recreate is defined before calling it.
6591
7782b183
GB
65922011-04-11 Gary Benson <gbenson@redhat.com>
6593
6594 Fix failure with --enable-maintainer-mode.
6595 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6596
e8930875
JK
65972011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6598
6599 Code cleanup.
6600 * symtab.c (search_symbols): Reorder the KIND description in the
6601 function comment. Remove the unused 4th element of types, types2,
6602 types3 and types4. New gdb_assert on KIND.
6603 (symtab_symbol_info): Remove the unused 4th element of classnames.
6604 New gdb_assert on KIND.
6605 * symtab.h (enum search_domain): New warning in the enum comment.
6606 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6607 TYPES_DOMAIN.
6608
b4f2f049
JK
66092011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6610
6611 Fix crash of gdb save-index on a STABS file.
6612 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6613 PSYMTABS_ADDRMAP.
6614
60d5a603
JK
66152011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6616
6617 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6618 * dwarf2read.c: Include ctype.h.
6619 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6620 functions.
6621 (dwarf2_add_field): Fix new_field->accessibility by calling
6622 dwarf2_default_access_attribute. Restructure setting accessibility
6623 vs. virtuality.
6624 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6625 is_private and is_protected by calling
6626 dwarf2_default_access_attribute.
6627
e0f68161
KB
66282011-04-08 Kevin Buettner <kevinb@redhat.com>
6629
6630 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6631 to the initialization.
6632
2e1aae43
SE
66332011-04-08 Steve Ellcey <sje@cup.hp.com>
6634
6635 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6636 initalization.
6637
c6ca3dab
PM
66382011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6639
6640 Remove support for old Cygwin 1.5 versions.
6641 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6642 function on old Cygwin version.
6643 * windows-nat.c: Remove cygwin version check and always define
6644 __USEWIDE for Cygwin compilation.
6645
bd18283a
YQ
66462011-04-07 Yao Qi <yao@codesourcery.com>
6647
6648 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6649 and TO.
6650 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6651 (arm_copy_svc): Remove parameters INSN and TO.
6652 (decode_svc_copro): Update caller.
6653 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6654 from function pointer `copy_svc_os'.
6655
8c8dba6d
YQ
66562011-04-07 Yao Qi <yao@codesourcery.com>
6657
6658 * arm-tdep.c (cleanup_branch): Set a correct return address in
6659 LR for ARM and Thumb.
6660
59d7bcaf
JK
66612011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6662
6663 Code cleanup.
6664 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6665 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6666 in the function comment, a new note on values compatibility.
6667 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6668 * symtab.h (SYMBOL_HASH_NEXT): New.
6669
e7db58ea
TJB
66702011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6671
6672 * ppc-linux-nat.c (check_condition): Add len output parameter.
6673 Set it based on the memory region referenced in the condition
6674 expression. Update all callers.
6675
9f743ef6
JK
66762011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6677
6678 Fix crash regression on systems featuring .gdb_index.
6679 * objfiles.c (free_objfile): Move the
6680 forget_cached_source_info_for_objfile call earlier. Comment it.
6681 Extend the comment for objfile_free_data.
6682
9182c5bc
JK
66832011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6684
6685 Fix regression of displaying the debug format.
6686 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6687 subfile.
6688
04bd08de
TT
66892011-04-04 Tom Tromey <tromey@redhat.com>
6690
6691 * cli/cli-interp.c (struct captured_execute_command_args):
6692 Remove.
6693 (do_captured_execute_command): Remove.
6694 (safe_execute_command): Use TRY_CATCH.
6695 * cli/cli-script.c (struct wrapped_read_command_file_args):
6696 Remove.
6697 (wrapped_read_command_file): Remove.
6698 (script_from_file): Use TRY_CATCH.
6699 * exceptions.c (catch_exception): Remove.
6700 * exceptions.h (catch_exception): Remove.
6701 (deprecated_throw_reason): Update comment.
6702 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6703 argument to 'context'.
6704 (mi_execute_command): Use TRY_CATCH.
6705 * remote.c (struct start_remote_args): Remove.
6706 (remote_start_remote): Update; change arguments.
6707 (remote_open_1): Use TRY_CATCH.
6708
58438ac1
TT
67092011-04-04 Tom Tromey <tromey@redhat.com>
6710
6711 * tracepoint.c (scope_info): Update.
6712 * symtab.c (decode_line_spec): Update.
6713 * python/python.c (gdbpy_decode_line): Update.
6714 * linespec.h (decode_line_1): Update.
6715 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6716 (decode_compound, find_method, symtab_from_filename)
6717 (decode_variable): Likewise.
6718 * cli/cli-cmds.c (edit_command): Update.
6719 (list_command): Update.
6720 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6721 argument.
6722 (create_breakpoint): Update.
6723 (until_break_command): Update.
6724 (addr_string_to_sals): Update.
6725 (decode_line_spec_1): Update.
6726
b78a6381
TT
67272011-04-04 Tom Tromey <tromey@redhat.com>
6728
6729 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6730 (do_captured_parse_breakpoint): Remove.
6731 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6732 Use TRY_CATCH directly.
6733
00174a86
TT
67342011-04-04 Tom Tromey <tromey@redhat.com>
6735
6736 * symtab.h (free_symtab): Remove.
6737 (forget_cached_source_info_for_objfile): Declare.
6738 * symmisc.c (free_symtab): Remove.
6739 * source.c (forget_cached_source_info_for_objfile): New function.
6740 (forget_cached_source_info): Use it.
6741 * objfiles.c (free_objfile): Simplify check before calling
6742 clear_current_source_symtab_and_line. Call
6743 forget_cached_source_info_for_objfile.
6744
30cc903e
TT
67452011-04-04 Tom Tromey <tromey@redhat.com>
6746
6747 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6748 (new_symtab): Don't set `free_code' on symtab.
6749 (new_linetable): Properly handle size==0.
6750 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6751 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6752 free_func.
6753 * jv-lang.c (struct jv_per_objfile_data): New.
6754 (jv_per_objfile_free): Free the data.
6755 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6756 (get_java_class_symtab): Set the `dict' field on the
6757 jv_per_objfile_data.
6758 (free_class_block): Remove.
6759 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6760 the symtab.
6761
0c2e6019
TT
67622011-04-04 Tom Tromey <tromey@redhat.com>
6763
6764 * symfile.c (reread_symbols): Update.
6765 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6766 field.
6767 * objfiles.c (allocate_objfile): Update.
6768 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6769 declare.
6770 * cp-namespace.c (lookup_symbol_file): Don't call
6771 lookup_possible_namespace_symbol.
6772 (initialize_namespace_symtab, get_possible_namespace_block)
6773 (free_namespace_block, cp_check_possible_namespace_symbols)
6774 (check_possible_namespace_symbols_loop)
6775 (check_one_possible_namespace_symbol)
6776 (lookup_possible_namespace_symbol): Remove.
6777 (maintenance_cplus_namespace): Replace with notice.
6778 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6779
554d387d
TT
67802011-04-04 Tom Tromey <tromey@redhat.com>
6781
6782 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6783 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6784 * symmisc.c (free_symtab): Don't free debugformat.
6785 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6786 (record_debugformat, record_producer): Document.
6787 * buildsym.c (end_symtab): Don't save debugformat and producer
6788 names on obstack.
6789 (end_symtab): Don't free debugformat and producer fields.
6790 (record_debugformat): Don't call xstrdup.
6791 (record_producer): Likewise.
6792
d4d4db8a
TT
67932011-04-04 Tom Tromey <tromey@redhat.com>
6794
6795 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6796 (source_line_charpos, source_charpos_line): Remove.
6797
8903c50d
TT
67982011-04-04 Tom Tromey <tromey@redhat.com>
6799
6800 * symtab.h (domain_enum): Split in two...
6801 (enum search_domain): New.
6802 (search_symbols): Update.
6803 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6804 redundant declarations.
6805 (search_symbols): Change 'kind' argument to search_domain.
6806 Update.
6807 (print_symbol_info): Likewise.
6808 (symtab_symbol_info): Likewise.
6809 * symfile.h (struct quick_symbol_functions)
6810 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6811 <expand_symtabs_matching>: Likewise.
6812 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6813 (expand_symtabs_matching_via_partial): Update.
6814 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6815 (dw2_expand_symtabs_for_function): Update.
6816 * block.h: Moved anonymous enum...
6817 * defs.h (enum block_enum): ... here. Now named.
6818
d9351f5f 68192011-04-03 Joel Brobecker <brobecker@adacore.com>
6820
6821 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6822 * version.in: Bump version to 7.3.50.20110403-cvs.
6823
d6e00af6
JB
68242011-04-03 Joel Brobecker <brobecker@adacore.com>
6825
6826 * NEWS: Create a new section for the next release branch.
6827 Rename the section of the current branch, now that it has
6828 been cut.
6829
2b9e5ea6
UW
68302011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6831
6832 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6833 for "fpscr" in target description.
6834
0cf03b49
JK
68352011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6836
6837 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6838 initialize it. Delay HASH initialization. Strip the part after open
6839 parenthesis for languages with qualifiers. Call do_cleanups.
6840
5d901a73
TT
68412011-04-01 Tom Tromey <tromey@redhat.com>
6842
6843 * utils.c (report_command_stats): Don't print `-' for negative
6844 number.
6845
b0dd7688
JB
68462011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6847
6848 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6849 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6850 typedefs.
6851
956a9fb9
JB
68522011-04-01 Joel Brobecker <brobecker@adacore.com>
6853
6854 * breakpoint.h (bpdisp_text): Add declaration.
6855 * breakpoint.c (bpdisp_text): Make non-static.
6856 * ada-lang.c: #include "mi/mi-common.h".
6857 (print_it_exception): Rewrite to improve GDB/MI output.
6858
3352110b
PA
68592011-04-01 Pedro Alves <pedro@codesourcery.com>
6860
6861 * arm-tdep.h (struct address_space): Add forward declaration.
6862
18819fa6
UW
68632011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6864
6865 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6866 * arm-tdep.c (arm_override_mode): New global.
6867 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6868 execution mode heuristics.
6869 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6870 second single-step breakpoint if needed, using
6871 arm_insert_single_step_breakpoint.
6872 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6873 ARM execution mode, do not call thumb_get_next_pc_raw.
6874 (arm_get_next_pc): Encode execution mode in return value. Call
6875 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6876 (arm_insert_single_step_breakpoint): New function.
6877 (arm_software_single_step): Call it.
6878 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6879 argument to return execution mode of sigreturn target.
6880 (arm_linux_syscall_next_pc): Use it.
6881 (arm_linux_copy_svc): Update call.
6882 (arm_linux_software_single_step): Call
6883 arm_insert_single_step_breakpoint.
6884
a6e293d1
JK
68852011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6886
6887 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6888 the comment.
6889
a4c8e806
TT
68902011-03-31 Tom Tromey <tromey@redhat.com>
6891
6892 * varobj.c (update_dynamic_varobj_children): Properly handle
6893 errors from iterator.
6894
df5c6c50
JK
68952011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6896
6897 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6898 struct linkage name twice.
6899
1dae3efc
TT
69002011-03-31 Tom Tromey <tromey@redhat.com>
6901
6902 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6903 missing ">" to message.
6904
f4f7ab05
TT
69052011-03-31 Tom Tromey <tromey@redhat.com>
6906
6907 * varobj.c (instantiate_pretty_printer): Remove duplicate
6908 'return'.
6909
fcf250e2
UW
69102011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6911
6912 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6913 if neither saved value nor register available (e.g. signal frame).
6914
ee6436e3
TJB
69152011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6916
6917 * macroexp.c (expand): Avoid uninitialized variable
6918 compiler warning.
6919
423f41a5
TJB
69202011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6921
6922 * breakpoint.c (break_range_command): Fix typo in comment.
6923
f1310107
TJB
69242011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6925 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6926
6927 Implement support for PowerPC BookE ranged breakpoints.
6928 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6929 * breakpoint.h (struct bp_target_info) <length>: New member
6930 variable.
6931 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6932 instead of struct breakpoint as argument, and also add ASPACE
6933 and BP_ADDR arguments. Update all callers.
6934 (struct breakpoint_ops) <print_one_detail>: New method.
6935 (struct breakpoint) <addr_string_range_end>: New member variable.
6936 * breakpoint.c (breakpoint_location_address_match): Add function
6937 prototype.
6938 (insert_bp_location): Set bl->target_info.length.
6939 (breakpoint_here_p): Call breakpoint_location_address_match.
6940 (moribund_breakpoint_here_p): Likewise.
6941 (regular_breakpoint_inserted_here_p): Likewise.
6942 (breakpoint_thread_match): Likewise.
6943 (bpstat_stop_status): Likewise.
6944 (bpstat_check_location): Move call to
6945 breakpoint_ops.breakpoint_hit to the top.
6946 (print_one_breakpoint_location): Call
6947 breakpoint_ops.print_one_detail if available.
6948 (breakpoint_address_match_range): New function.
6949 (breakpoint_location_address_match): Likewise.
6950 (breakpoint_locations_match): Compare the length field of the
6951 locations too.
6952 (hw_breakpoint_used_count): Count resources used by all locations
6953 in a breakpoint, and use breakpoint_ops.resources_needed if
6954 available.
6955 (breakpoint_hit_ranged_breakpoint): New function.
6956 (resources_needed_ranged_breakpoint): Likewise.
6957 (print_it_ranged_breakpoint): Likewise.
6958 (print_one_ranged_breakpoint): Likewise.
6959 (print_one_detail_ranged_breakpoint): Likewise.
6960 (print_mention_ranged_breakpoint): Likewise.
6961 (print_recreate_ranged_breakpoint): Likewise.
6962 (ranged_breakpoint_ops): New structure.
6963 (find_breakpoint_range_end): New function.
6964 (break_range_command): Likewise.
6965 (delete_breakpoint): Free addr_string_range_end.
6966 (update_breakpoint_locations): Add SALS_END argument. Update
6967 all callers. Calculate breakpoint length if a non-zero SALS_END
6968 is given. Call breakpoint_locations_match instead of
6969 breakpoint_address_match.
6970 (reset_breakpoint): Find SaL of the end of the range if B is a
6971 ranged breakpoint.
6972 (_initialize_breakpoint): Register break-range command.
6973 * defs.h (print_core_address): Add function prototype.
6974 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6975 function.
6976 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6977 (ppc_linux_remove_hw_breakpoint): Likewise.
6978 (_initialize_ppc_linux_nat): Initialize
6979 to_ranged_break_num_registers.
6980 * target.c (update_current_target): Add comment about
6981 to_ranged_break_num_registers.
6982 (target_ranged_break_num_registers): New function.
6983 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6984 New method.
6985 (target_ranged_break_num_registers): Add function prototype.
6986 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6987 * utils.c (print_core_address): ... here.
6988
02d20e4a
UW
69892011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6990
6991 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6992 variable compiler warning.
6993
ef23e705
TJB
69942011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6995
6996 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6997 code from here ...
6998 (re_set_breakpoint): ... to here ...
6999 (addr_string_to_sals): ... and here.
7000
311e6ab3
PM
70012011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7002
7003 * Makefile.in (SFILES): Add missing C sources.
7004 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7005 Add missing headers.
7006
acd1d99c
MF
70072011-03-29 Mike Frysinger <vapier@gentoo.org>
7008
7009 * .gitignore: New file.
7010
66ee2731
MF
70112011-03-29 Mike Frysinger <vapier@gentoo.org>
7012
7013 * NEWS: Mention new cfi device simulation.
7014
53832f31
TT
70152011-03-29 Tom Tromey <tromey@redhat.com>
7016
7017 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7018 otherwise anonymous types.
7019 (dwarf2_name): Likewise.
7020 * valops.c (value_struct_elt_for_reference): Refine artificial
7021 type logic. Call error if j==-1.
7022
09b58708
JK
70232011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7024
7025 Fix false GCC warning.
7026 * infcall.c (find_function_addr): Initialize funaddr.
7027
6023c606
PM
70282011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7029
7030 Fix mingw compilation with --enable-targets=all.
7031 * remote-mips.c (gdb_usleep.h): Include header.
7032 (mips_enter_debug): Use gdb_usleep instead of sleep.
7033
0e30163f
JK
70342011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7035
7036 Support resolution of STT_GNU_IFUNC via breakpoints.
7037 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7038 bp_gnu_ifunc_resolver_return.
7039 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7040 the loop. Support bp_gnu_ifunc_resolver and
7041 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7042 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7043 breakpoints.
7044 (bptype_string, print_one_breakpoint_location): Support
7045 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7046 (user_settable_breakpoint): Return true also for
7047 bp_gnu_ifunc_resolver.
7048 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7049 bp_gnu_ifunc_resolver_return.
7050 (set_breakpoint_location_function): New parameter explicit_loc,
7051 describe it. Call find_pc_partial_function_gnu_ifunc with new
7052 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7053 EXPLICIT_LOC is not set.
7054 (set_raw_breakpoint): Set EXPLICIT_LOC for
7055 set_breakpoint_location_function.
7056 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7057 set_breakpoint_location_function.
7058 (mention): Support bp_gnu_ifunc_resolver and
7059 bp_gnu_ifunc_resolver_return.
7060 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7061 set_breakpoint_location_function.
7062 (update_breakpoint_locations): Remove static.
7063 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7064 bp_gnu_ifunc_resolver_return.
7065 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7066 bp_gnu_ifunc_resolver_return.
7067 (update_breakpoint_locations): New declaration.
7068 * elfread.c: Include gdbthread.h and regcache.h.
7069 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7070 functions.
7071 (elf_gnu_ifunc_fns): Install them.
7072 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7073 (stub_gnu_ifunc_resolver_return_stop): New functions.
7074 (stub_gnu_ifunc_fns): Install them.
7075 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7076 and gnu_ifunc_resolver_return_stop.
7077 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7078
07be84bf
JK
70792011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7080
7081 STT_GNU_IFUNC reader implementation.
7082 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7083 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7084 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7085 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7086 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7087 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7088 (elf_gnu_ifunc_resolve_addr): New.
7089 (elf_symfile_read): Call elf_rel_plt_read.
7090 (elf_gnu_ifunc_fns): New.
7091 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7092 Install elf_gnu_ifunc_fns.
7093 * infcall.c (find_function_return_type): New function.
7094 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7095 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7096 (stub_gnu_ifunc_resolve_name): New functions.
7097 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7098 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7099 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7100
300f8e10
JK
71012011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7102
7103 Code cleanup for later STT_GNU_IFUNC support.
7104 * infcall.c (find_function_addr): Remove variable code, use explicit
7105 dereferences for it. Move VALUE_TYPE initialization later.
7106
11c81455
JK
71072011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7108
7109 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7110 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7111 (clear_pc_function_cache): Clear it.
7112 (find_pc_partial_function): Rename to ...
7113 (find_pc_partial_function_gnu_ifunc): ... this function. New
7114 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7115 (find_pc_partial_function): New wrapper for this function.
7116 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7117
0875794a
JK
71182011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7119
7120 GDB internal type support for STT_GNU_IFUNC.
7121 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7122 (elf_symtab_read): Set mst_text_gnu_ifunc for
7123 BSF_GNU_INDIRECT_FUNCTION.
7124 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7125 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7126 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7127 nodebug_got_plt_symbol.
7128 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7129 (TYPE_GNU_IFUNC): New.
7130 (struct main_type): New field flag_gnu_ifunc.
7131 (struct builtin_type): New field builtin_func_func.
7132 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7133 nodebug_got_plt_symbol.
7134 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7135 (in_gnu_ifunc_stub): New.
7136 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7137 mst_text_gnu_ifunc.
7138 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7139 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7140 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7141 in_gnu_ifunc_stub.
7142 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7143 * symtab.c (search_symbols): Likewise.
7144 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7145 and mst_slot_got_plt.
7146 (in_gnu_ifunc_stub): New declaration.
7147
d0fb5eae
JK
71482011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7149
7150 Support a ring of related breakpoints.
7151 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7152 other functions, add gdb_assert.
7153 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7154 watchpoint_del_at_next_stop.
7155 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7156 (bpstat_stop_status): Handle ring in related_breakpoint.
7157 (set_raw_breakpoint_without_location): Initialize ring in
7158 related_breakpoint.
7159 (delete_breakpoint): Handle ring in related_breakpoint, use
7160 watchpoint_del_at_next_stop.
7161 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7162
9cded63f
TT
71632011-03-28 Tom Tromey <tromey@redhat.com>
7164
7165 PR symtab/12441:
7166 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7167 with `language_minimal'.
7168
467d42c4
UW
71692011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7170
7171 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7172 instead of checking for STT_ARM_TFUNC symbol type.
7173
62853458
TT
71742011-03-25 Tom Tromey <tromey@redhat.com>
7175
7176 * linespec.c (symbol_found): Restore line-based result for
7177 non-LOC_LABEL symbols.
7178
a7417d46
KT
71792011-03-25 Kai Tietz <ktietz@redhat.com>
7180
7181 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7182 instead of strcmp for comparison.
7183 (tui_source_is_displayed): Likewise.
7184 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7185
55f1336d
TT
71862011-03-24 Mark Wielaard <mjw@redhat.com>
7187
f33edef8
PP
7188 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7189 complaint.
7190 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7191 (find_partial_die_in_comp_unit): Likewise in comment.
7192 (read_attribute_value): Likewise.
7193 (lookup_die_type): Likewise.
7194 (dwarf_form_name): Likewise.
7195 (dump_die_shallow): Likewise.
7196 (follow_die_ref_or_sig): Likewise.
55f1336d 7197
9ef07c8c
TT
71982011-03-24 Tom Tromey <tromey@redhat.com>
7199
7200 PR breakpoints/11816:
7201 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7202 (decode_compound): Update.
7203 (find_function_symbol): New function.
7204 (decode_dollar): Update.
7205 (decode_label): Add 'function_symbol' parameter. Handle
7206 function-relative labels.
7207 (decode_variable): Update.
7208 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7209 not its line. Set `special_display' and canonical name for
7210 labels.
7211
56435ebe
TT
72122011-03-24 Tom Tromey <tromey@redhat.com>
7213
7214 * linespec.h (struct linespec_result) <special_display>: New
7215 field.
7216 * breakpoint.h (struct breakpoint) <display_canonical>: New
7217 field.
7218 * breakpoint.c (print_breakpoint_location): Respect
7219 display_canonical.
7220 (create_breakpoint_sal): Add 'display_canonical' parameter.
7221 (create_breakpoints_sal): Update.
7222 (create_breakpoint): Update.
7223
7efd8fc2
TT
72242011-03-24 Tom Tromey <tromey@redhat.com>
7225
7226 * symtab.c (decode_line_spec): Update.
7227 * linespec.c (build_canonical_line_spec): Change type of
7228 'canonical'.
7229 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7230 (find_method, decode_all_digits, decode_dollar, decode_label)
7231 (symbol_found): Likewise.
7232 (init_linespec_result): New function.
7233 * breakpoint.c (struct captured_parse_breakpoint_args)
7234 <canonical_p>: New field, replaces addr_string_p.
7235 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7236 'addr_string'.
7237 (parse_breakpoint_sals): Likewise.
7238 (do_captured_parse_breakpoint): Update.
7239 (create_breakpoint): Use struct linespec_result.
7240 (until_break_command): Update.
7241 (breakpoint_re_set_one): Update.
7242 (decode_line_spec_1): Update.
7243 * linespec.h (struct linespec_result): New.
7244 (init_linespec_result): Declare.
7245
788c8b10
PA
72462011-03-23 Pedro Alves <pedro@codesourcery.com>
7247
7248 * regcache.c (regcache_raw_read): If the target didn't supply a
7249 given raw register, mark it as unavailable.
7250
0ba1096a
KT
72512011-03-23 Kai Tietz <ktietz@redhat.com>
7252
7253 * breakpoint.c (clear_command): Use filename_cmp
7254 instead of strcmp for comparison.
7255 * buildsym.c (watch_main_source_file_lossage): Likewise.
7256 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7257 checking just for slash.
7258 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7259 strrchr and filename_cmp instead of strcmp for filenames.
7260 (add_old_header_file): Use filename_cmp
7261 instead of strcmp for comparison.
7262 * exec.c (exec_set_section_address): Likewise.
7263 * macrotab.c (macro_lookup_inclusion): Likewise.
7264 (macro_lookup_inclusion): Likewise.
7265 * elfread.c (_initialize_elfread): Likewise.
7266 (elfstab_offset_sections): Likewise.
7267 (elfstab_offset_sections): Use lbasename instead of
7268 strrchr.
7269 * mdebugread.c (parse_partial_symbols): Likewise.
7270 (arse_partial_symbols): Use filename_(n)cmp instead of
7271 str(n)cmp for comparison.
7272 * minsyms.c (lookup_minimal_symbol): Likewise.
7273 * psymtab.c (read_psymtabs_with_filename): Likewise.
7274 * solib.c (solib_read_symbols): Likewise.
7275 (reload_shared_libraries_1): Likewise.
7276 * symmisc.c (maintenance_print_symbols): Likewise.
7277 * symfile.c (separate_debug_file_exists): Likewise.
7278 (reread_symbols): Likewise.
7279 (find_separate_debug_file_by_debuglink): Likewise.
7280 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7281 * source.c (add_path): Likewise.
7282 * symtab.c (filename_seen): Likewise.
7283 (file_matches): Likewise.
7284 (print_symbol_info): Likewise.
7285 (maybe_add_partial_symtab_filename): Likewise.
7286 (make_source_files_completion_list): Likewise.
7287 * xml-syscall.c (init_sysinfo): Likewise.
7288 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7289 IS_DIR_SEPARATOR for checking for trailing path separator.
7290
dd90784c
JK
72912011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7292
7293 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7294 label abort_expression.
7295 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7296 DWARF_VALUE_OPTIMIZED_OUT.
7297
3167638f
JK
72982011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7299
7300 Code cleanup.
7301 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7302 to linkage_name. Invert its value. Update the function comment.
7303 (c_type_print_varspec_suffix): Invert it at the caller.
7304 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7305
ce406537
PA
73062011-03-22 Pedro Alves <pedro@codesourcery.com>
7307
7308 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7309 errors when reading the `stop_pc'.
7310 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7311 get_frame_pc.
7312
da5d4055
PM
73132011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7314
7315 * NEWS: Document gdb.Write stream keyword.
7316
29e0eb9c
JK
73172011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7318
7319 Revert:
7320 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7321 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7322 (dwarf2_add_field): Fix new_field->accessibility for
7323 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7324
05775840
PM
73252011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7326
f33edef8 7327 PR python/12183
05775840
PM
7328
7329 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7330 other error classes. Do not print stack trace.
7331
a0cb7835
JK
73322011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7333
7334 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7335 (dwarf2_add_field): Fix new_field->accessibility for
7336 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7337
d19f7eee
UW
73382011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7339
7340 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7341 encountering a load via a non-SP register.
7342
4a2fbb50
UW
73432011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7344
7345 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7346 field in returned unwinder.
7347
3489610d
JB
73482012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7349
7350 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7351
8c1a34e7
JB
73522012-03-21 Joel Brobecker <brobecker@adacore.com>
7353
7354 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7355 of xmalloc.
7356
8fbca658
PA
73572012-03-18 Pedro Alves <pedro@codesourcery.com>
7358
7359 * frame.c (frame_unwind_register): Throw an error if unwinding the
7360 register failed.
7361 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7362 an unwind stop reason.
7363 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7364 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7365 UNWIND_UNAVAILABLE>: New.
7366 * inline-frame.c (inline_frame_unwind): Install
7367 default_frame_unwind_stop_reason.
7368 * frame-unwind.c: Include "exceptions.h".
7369 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7370 (default_frame_unwind_stop_reason): New.
7371 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7372 (default_frame_unwind_stop_reason): Declare.
7373 (struct frame_unwind) <stop_reason>: New function pointer.
7374
7375 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7376 * dwarf2-frame.c: Include exceptions.h.
7377 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7378 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7379 computing the CFA. If such an error was thrown, set
7380 unavailable_retaddr.
7381 (dwarf2_frame_unwind_stop_reason): New.
7382 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7383 unavailable.
7384 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7385 (dwarf2_signal_frame_unwind): Ditto.
7386
7387 * amd64-tdep.c: Include "exceptions.h".
7388 (struct amd64_frame_cache): New field "base_p".
7389 (amd64_init_frame_cache): Clear it.
7390 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7391 Avoid reading registers with functions that throw if the register
7392 is not necessary to compute the frame base.
7393 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7394 swallowing NOT_AVAILABLE_ERROR.
7395 (amd64_frame_unwind_stop_reason): New.
7396 (amd64_frame_this_id): Don't build a frame id if the frame base
7397 was unavailable.
7398 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7399 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7400 base_p if the frame base was computable.
7401 (amd64_sigtramp_frame_unwind_stop_reason): New.
7402 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7403 frame base was unavailable.
7404 (amd64_sigtramp_frame_unwind): Install
7405 amd64_sigtramp_frame_unwind_stop_reason.
7406 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7407 base_p if the frame base was computable.
7408 (amd64_epilogue_frame_unwind_stop_reason): New.
7409 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7410 frame base was unavailable.
7411 (amd64_epilogue_frame_unwind): Install
7412 amd64_epilogue_frame_unwind_stop_reason.
7413 * i386-tdep.c: Include "exceptions.h".
7414 (struct i386_frame_cache): New field "base_p".
7415 (i386_init_frame_cache): Clear it.
7416 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7417 Avoid reading registers with functions that throw if the register
7418 is not necessary to compute the frame base.
7419 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7420 swallowing NOT_AVAILABLE_ERROR.
7421 (i386_frame_unwind_stop_reason): New.
7422 (i386_frame_this_id): Don't build a frame id if the frame base was
7423 unavailable.
7424 (i386_frame_prev_register): Handle unavailable SP.
7425 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7426 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7427 base_p if the frame base was computable.
7428 (i386_epilogue_frame_unwind_stop_reason): New.
7429 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7430 base was unavailable.
7431 (i386_epilogue_frame_unwind): Install
7432 i386_epilogue_frame_unwind_stop_reason.
7433 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7434 base_p if the frame base was computable.
7435 (i386_sigtramp_frame_unwind_stop_reason): New.
7436 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7437 base was unavailable.
7438 (i386_sigtramp_frame_unwind): Install
7439 i386_sigtramp_frame_unwind_stop_reason.
7440 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7441 type's size, not the register's.
7442 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7443
7444 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7445 default_frame_unwind_stop_reason.
7446 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7447 (alpha_heuristic_frame_unwind): Ditto.
7448 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7449 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7450 * avr-tdep.c (avr_frame_unwind): Ditto.
7451 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7452 Ditto.
7453 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7454 * frv-tdep.c (frv_frame_unwind): Ditto.
7455 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7456 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7457 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7458 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7459 (hppa_stub_frame_unwind): Ditto.
7460 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7461 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7462 (ia64_libunwind_frame_unwind)
7463 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7464 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7465 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7466 * m32c-tdep.c (m32c_unwind): Ditto.
7467 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7468 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7469 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7470 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7471 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7472 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7473 * mep-tdep.c (mep_frame_unwind): Ditto.
7474 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7475 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7476 (mips_stub_frame_unwind): Ditto.
7477 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7478 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7479 * mt-tdep.c (mt_frame_unwind): Ditto.
7480 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7481 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7482 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7483 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7484 (s390_sigtramp_frame_unwind): Ditto.
7485 * score-tdep.c (score_prologue_unwind): Ditto.
7486 * sh-tdep.c (sh_frame_unwind): Ditto.
7487 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7488 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7489 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7490 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7491 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7492 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7493 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7494 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7495 (sparc64obsd_trapframe_unwind): Ditto.
7496 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7497 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7498 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7499 * v850-tdep.c (v850_frame_unwind): Ditto.
7500 * vax-tdep.c (vax_frame_unwind): Ditto.
7501 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7502 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7503 * xtensa-tdep.c (xtensa_unwind): Ditto.
7504
f23d1b92
PA
75052011-03-18 Pedro Alves <pedro@codesourcery.com>
7506
7507 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7508 there's always a frame. Use get_frame_pc_if_available instead of
7509 get_frame_pc, and if there's no PC available, don't look up a
7510 symtab.
7511
1d4f5741
PA
75122011-03-18 Pedro Alves <pedro@codesourcery.com>
7513
7514 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7515 unavailable PC.
7516
dba09041
PA
75172011-03-18 Pedro Alves <pedro@codesourcery.com>
7518
7519 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7520 gracefully.
7521
9a26e44c
PA
75222011-03-18 Pedro Alves <pedro@codesourcery.com>
7523
7524 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7525 * frame.c (frame_unwind_caller_pc_if_available): New.
7526 * stack.c (frame_info): Handle unavailable PC.
7527
75282011-03-18 Pedro Alves <pedro@codesourcery.com>
7529
7530 * frame.c (frame_unwind_pc): Rename to ...
7531 (frame_unwind_pc_if_available): ... this. New `pc' output
7532 parameter. Change return type to int. Gracefully handle
7533 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7534 happened, or 1 otherwise.
7535 (frame_unwind_pc): Reimplement on top of
7536 frame_unwind_pc_if_available.
7537 (get_frame_func): Rename to ...
7538 (get_frame_func_if_available): New `pc' output parameter. Change
7539 return type to int. Gracefully handle the PC not being available.
7540 (get_frame_func): Reimplement on top of
7541 get_frame_func_if_available.
7542 (select_frame): Handle the PC being unavailable.
7543 (get_prev_frame): Handle the PC being unavailable.
7544 (get_frame_pc_if_available): New.
7545 (get_frame_address_in_block_if_available): New.
7546 (find_frame_sal): Handle the frame PC not being available.
7547 * frame.h (get_frame_pc_if_available): Declare.
7548 (get_frame_address_in_block_if_available): Declare.
7549 (get_frame_func_if_available): Declare.
7550 * stack.c (print_frame_info): Handle the PC being unavailable.
7551 (find_frame_funname): Ditto.
7552 (print_frame): Handle the PC being unavailable.
7553 (get_frame_language): Ditto.
7554 * blockframe.c (get_frame_block): Ditto.
7555 * macroscope.c (default_macro_scope): Ditto.
7556 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7557
75582011-03-18 Pedro Alves <pedro@codesourcery.com>
7559
7560 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7561 NOT_AVAILABLE_ERROR when evaluating the location expression.
7562
75632011-03-18 Pedro Alves <pedro@codesourcery.com>
7564
7565 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7566 returning that the register piece is unavailable/optimized out.
7567 (write_pieced_value): Handle get_frame_register_bytes returning
7568 that the register piece is unavailable/optimized out when doing a
7569 read-modify write of a bitfield.
7570 * findvar.c (value_from_register): Handle get_frame_register_bytes
7571 returning that the register piece is unavailable/optimized out.
7572 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7573 and `unavailablep'. Throw error on bad debug info. Use
7574 frame_register instead of frame_register_read, to fill in the new
7575 arguments.
7576 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7577 and `unavailablep'.
7578 * valops.c: (value_assign): Adjust, and handle
7579 get_frame_register_bytes failing.
7580 * spu-tdep.c: Include exceptions.h.
7581 (spu_software_single_step): Adjust, and handle
7582 get_frame_register_bytes failing.
7583 (spu_get_longjmp_target): Ditto.
7584 * gdbarch.sh (register_to_value): Change to return int. New
7585 parameters `optimizedp' and `unavailablep'.
7586 * gdbarch.h, gdbarch.c: Regenerate.
7587 * i386-tdep.c (i386_register_to_value): Adjust to new
7588 gdbarch_register_to_value interface.
7589 * i387-tdep.c (i387_register_to_value): Ditto.
7590 * i387-tdep.h (i387_register_to_value): Ditto.
7591 * alpha-tdep.c (alpha_register_to_value): Ditto.
7592 * ia64-tdep.c (ia64_register_to_value): Ditto.
7593 * m68k-tdep.c (m68k_register_to_value): Ditto.
7594 * mips-tdep.c (mips_register_to_value): Ditto.
7595 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7596
0fdb4f18
PA
75972011-03-18 Pedro Alves <pedro@codesourcery.com>
7598
7599 * findvar.c (value_of_register): Mark the value as unavailable, if
7600 the register is unavailable.
7601 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7602 (frame_register): New `unavailablep' parameter.
7603 (frame_register_read): Update comment.
7604 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7605 Set it if the register is unavailable. If the register is
7606 unavailable, clear the output buffer.
7607 (frame_register): New `unavailablep' parameter. Pass it down.
7608 (frame_unwind_register): Adjust.
7609 (put_frame_register): Adjust.
7610 (frame_register_read): Adjust. Also return false if the register
7611 is not available.
7612 (frame_register_unwind_location): Adjust.
7613 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7614 is unavailable, mark the value accordingly.
7615 * stack.c (frame_info): Handle unavailable registers.
7616
e69aa73e
PA
76172011-03-18 Pedro Alves <pedro@codesourcery.com>
7618
7619 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7620 simplify, using regcache_cooked_read.
7621
05d1431c
PA
76222011-03-18 Pedro Alves <pedro@codesourcery.com>
7623
7624 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7625 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7626 (regcache_raw_read_unsigned, regcache_raw_read_part)
7627 (regcache_cooked_read, regcache_cooked_read_signed)
7628 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7629 (regcache_cooked_read_ftype): Change return to enum
7630 register_status.
7631 * regcache.c: Include exceptions.h
7632 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7633 (do_cooked_read): Change return to enum register_status. Always
7634 forward to regcache_cooked_read.
7635 (regcache_raw_read): Change return to enum register_status. If
7636 the register is not REG_VALID, memset the buffer. Return the
7637 register's status.
7638 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7639 return the register's status.
7640 (regcache_raw_read_unsigned): Ditto.
7641 (regcache_cooked_read): Change return to enum register_status.
7642 Assert that with read-only regcaches, the register's status must
7643 be known. If the regcache is read-only, and the register is not
7644 REG_VALID, memset the buffer. Return the register's status.
7645 (regcache_cooked_read_signed): Change return to enum
7646 register_status. Handle non-REG_VALID registers and return the
7647 register's status.
7648 (regcache_cooked_read_unsigned): Change return to enum
7649 register_status. Handle non-REG_VALID registers and return the
7650 register's status.
7651 (regcache_xfer_part, regcache_raw_read_part)
7652 (regcache_cooked_read_part): Change return to enum
7653 register_status. Return the register's status.
7654 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7655 unavailable.
7656 (regcache_dump): Handle unavailable cooked registers.
7657 * frame.c (do_frame_register_read): Adjust interface to match
7658 regcache_cooked_read_ftype.
7659 * gdbarch.sh (pseudo_register_read): Change return to enum
7660 register_status.
7661 * gdbarch.h, gdbarch.c: Regenerate.
7662
7663 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7664 register_status.
7665 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7666 register_status. If reading a raw register indicates the raw
7667 register is not valid, return the raw register's status,
7668 otherwise, return REG_VALID.
7669 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7670 register_status. Handle non-REG_VALID raw registers and return
7671 the register's status.
7672 * arm-tdep.c (arm_neon_quad_read)
7673 (arm_pseudo_read): Change return to enum register_status. Handle
7674 non-REG_VALID raw registers and return the register's status.
7675 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7676 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7677 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7678 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7679 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7680 register_status.
7681 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7682 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7683 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7684 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7685 (m32c_pseudo_register_read): Change return to enum
7686 register_status. Adjust.
7687 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7688 enum register_status. Return the register's status.
7689 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7690 register_status. Return the register's status.
7691 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7692 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7693 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7694 * rs6000-tdep.c (move_ev_register_func): New typedef.
7695 (e500_move_ev_register): Use it. Change return to enum
7696 register_status. Return the register's status.
7697 (do_regcache_raw_read): New function.
7698 (do_regcache_raw_write): New function.
7699 (e500_pseudo_register_read): Change return to enum
7700 register_status. Return the register's status. Use
7701 do_regcache_raw_read.
7702 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7703 (dfp_pseudo_register_read): Change return to enum register_status.
7704 Return the register's status.
7705 (vsx_pseudo_register_read): Ditto.
7706 (efpr_pseudo_register_read): Ditto.
7707 (rs6000_pseudo_register_read): Ditto.
7708 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7709 register_status. Return the register's status.
7710 * sh64-tdep.c (pseudo_register_read_portions): New function.
7711 (sh64_pseudo_register_read): Change return to enum
7712 register_status. Use pseudo_register_read_portions. Return the
7713 register's status.
7714 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7715 register_status. Return the register's status.
7716 * sh-tdep.c (pseudo_register_read_portions): New function.
7717 (sh_pseudo_register_read): Change return to enum register_status.
7718 Use pseudo_register_read_portions. Return the register's status.
7719 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7720 enum register_status. Return the register's status.
7721 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7722 * spu-tdep.c (spu_pseudo_register_read_spu)
7723 (spu_pseudo_register_read): Ditto.
7724 * xtensa-tdep.c (xtensa_register_read_masked)
7725 (xtensa_pseudo_register_read): Ditto.
7726 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7727
e10abd8f
PM
77282011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7729
7730 * python/py-value.c (valpy_getitem): Fix formatting of error function
7731 call.
7732
7ea6d463
PM
77332011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7734
7735 ARI fixes: Add missing internationalization markups throughout
7736 C source files.
7737 * darwin-nat-info.c: Ditto.
7738 * record.c: Ditto.
7739 * remote.c: Ditto.
7740 * mi/mi-main.c: Ditto.
7741
001083c6
PM
77422011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7743
7744 ARI fixes: Add missing internationalization markups throughout
7745 yacc files.
7746 * c-exp.y: Ditto.
7747 * cp-name-parser.y: Ditto.
7748 * f-exp.y: Ditto.
7749 * m2-exp.y: Ditto.
7750 * objc-exp.y: Ditto.
7751 * p-exp.y: Ditto.
7752
4f1cdeec
PM
77532011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7754
7755 ARI fixes: Messages should have no trailing new lines.
7756 * darwin-nat.c (mach_check_error): Remove trailing new line from
7757 warning function call message.
7758 * record.c (bfdcore_read): Idem for error call.
7759
28e698f1
PM
77602011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7761
7762 * common/signals.c (target_signal_from_host): Add _ markup to error
7763 function call message.
7764 (target_signal_to_host): Add _ markup and remove trailing new line
7765 from warning call message.
7766 (target_signal_from_command): Add _ markup to error function call
7767 message.
7768
99c3dc11
PM
77692011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7770
f33edef8 7771 PR python/12149
99c3dc11
PM
7772
7773 * python/python.c (gdbpy_write): Accept a stream argument and
7774 operate to the appropriate stream.
7775 (gdbpy_flush): Likewise.
7776 (_initialize_python): Add stream constants.
7777 (finish_python_initialization): Add GdbOutputErrorFile class.
7778
c20800be
KY
77792011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7780
7781 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7782
f4a1794a
KY
77832011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7784
7785 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7786 to store_signed_integer. Add debug message when relocating CALL
7787 instructions. Fix formatting of debug message.
7788 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7789
d4862372
JB
77902011-03-17 Joel Brobecker <brobecker@gnat.com>
7791
7792 * target.h (struct target_ops): Remove to_lookup_symbol field.
7793 (target_lookup_symbol): Delete macro.
7794 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7795 (update_current_target, setup_target_debug): Remove handling
7796 of to_lookup_symbol target_ops field.
7797 * ada-tasks.c (get_known_tasks_addr): Remove use of
7798 target_lookup_symbol.
7799 * coffread.c (coff_symtab_read): Likewise.
7800 * dbxread.c (read_dbx_symtab): Ditto.
7801
d645e32e
JB
78022011-03-17 Joel Brobecker <brobecker@gnat.com>
7803
7804 PR gdb/12116:
7805 * configure.ac: Add getthrds declaration check.
7806 * configure, config.in: Regenerate.
7807 * aix-thread.c (getthrds): Declare only if not already declared
7808 in procinfo.h. More declaration out of get_signaled_thread to
7809 global scope.
7810
29703da4
PM
78112011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7812
7813 * python/py-symtab.c: Populate symtab_object_methods,
7814 sal_object_methods.
7815 (stpy_is_valid): New function.
7816 (salpy_is_valid): Ditto.
7817 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7818 (sympy_is_valid): New function.
7819 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7820 (objfpy_is_valid): New function.
7821 * python/py-inferior.c: Populate inferior_object_methods.
7822 (infpy_is_valid): New function.
7823 * python/py-infthread.c: Populate thread_object_methods.
7824 (thpy_is_valid): New function.
7825 * python/py-block.c: Declare block_object_methods. Populate. Declare
7826 block_iterator_object_methods. Populate.
7827 (blpy_is_valid): New function.
7828 (blpy_iter_is_valid): Ditto.
7829
c00f8484
KS
78302011-03-16 Keith Seitz <keiths@redhat.com>
7831
7832 * linespec.c (find_methods): Canonicalize NAME before looking
7833 up the symbol.
7834 (name_end): New function.
7835 (keep_name_info): New function.
7836 (decode_line_1): Use keep_name_info.
7837 (decode_compound): Likewise.
7838 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7839 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7840
7841 PR c++/12273
7842 * linespec.c (locate_first_half): Keep overload information, too.
7843 (decode_compound): Use a string to represent break characters
7844 to escape the loop.
7845 If P points to a break character, do not increment it.
7846 For C++ and Java, keep overload information and relevant keywords.
7847 If we cannot find a symbol, search the minimal symbols.
7848
7849 PR c++/11734
7850 * linespec.c (decode_compound): Rename SAVED_ARG to
7851 THE_REAL_SAVED_ARG.
7852 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7853 single-quotes.
7854 Pass a valid block to lookup_symbol.
7855 (lookup_prefix_sym): Likewise.
7856 (find_method): Construct search name based on SYM_CLASS instead
7857 of SAVED_ARG.
7858 * psymtab.c (lookup_partial_symbol): Add language parameter.
7859 (lookup_symbol_aux_psymtabs): Likewise.
7860 Don't assume that the psymtab we found was the right one. Search
7861 for the desired symbol in the symtab to be certain.
7862 (psymtab_search_name): New function.
7863 (lookup_partial_symbol): Use psymtab_search_name.
7864 Add language parameter.
7865 (read_symtabs_for_function): Add language parameter and pass to
7866 lookup_partial_symbol.
7867 (find_symbol_file_from_partial): Likewise.
7868
c91513d8
PP
78692011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7870
7871 PR gdb/12528
7872 * dwarf2read.c (noop_record_line): New function.
7873 (dwarf_decode_lines): Ignore line tables for GCd functions.
7874
b37520b6
PM
78752011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7876
7877 Fix ARI warnings about new lines at the end of messages, which
7878 are unneeded as there is a new line added at the end of the message
7879 automatically.
7880 * darwin-nat.c (darwin_stop_inferior): Ditto.
7881 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7882 * dfp.c (decimal_to_number): Ditto.
7883 * exec.c (print_section_info): Ditto.
7884 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7885 * osdata.c (get_osdata): Ditto.
7886 * record.c (bfdcore_write): Ditto.
7887 * remote-mips.c (mips_readchar): Ditto.
7888 * remote.c (read_ptid): Ditto.
7889 * ser-mingw.c (ser_windows_raw): Ditto.
7890 * tracepoint.c (add_local_symbols): Ditto.
7891 * windows-nat.c (fake_create_process): Ditto.
7892
b08ee6a2
TT
78932011-03-16 Tom Tromey <tromey@redhat.com>
7894
7895 * tracepoint.c (stop_tracing): Don't declare.
7896 * event-top.c (after_char_processing_hook): Add `(void)'.
7897
9a6f1302
PM
78982011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7899
7900 * NEWS: Add Parameter sub-classing description.
7901
7ceb86b1
KT
79022011-03-16 Kai Tietz <ktietz@redhat.com>
7903
7904 * MAINTAINERS: Update my e-mail address.
7905
efeff6cf
AT
79062011-03-15 Andreas Tobler <andreast@fgznet.ch>
7907
7908 * MAINTAINERS: Add myself for write after approval privileges.
7909
681c238c
MS
79102011-03-15 Michael Snyder <msnyder@vmware.com>
7911
f3df5b08
MS
7912 * frame.c (find_frame_sal): Assert sym is not null.
7913
13f6513c
MS
7914 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7915
50412521
MS
7916 * objc-lang.c (selectors_info): Check strchr for null result.
7917
681c238c
MS
7918 * stabsread.c (define_symbol): Guard against bad stabstring input.
7919
6ced1581
PM
79202011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7921
7922 Remove trailing spaces and tabulations from pascal language
7923 support sources.
7924 p-exp.y: Ditto.
7925 p-lang.c: Ditto.
7926 p-lang.h: Ditto.
7927 p-valprint.c: Ditto.
7928
9373cf26
JK
79292011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7930
7931 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7932 than LOW. Comment it.
7933 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7934 HIGHPC not strictly higher than LOWPC.
7935
9a1edae6
PM
79362011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7937
7938 Fix formatting of function declarations returning a pointer in
7939 previous commit.
7940 * varobj.c (varobj_add_child): Ditto.
7941 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7942 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7943
24e9cda0
UW
79442011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7945
7946 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7947 for the "generic" vector ABI used with GCC 4.3 and later.
7948 (ppc64_sysv_abi_return_value): Likewise.
7949
79502011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7951
7952 * infcall.c (call_function_by_hand): Function return value is
7953 always a non_lval, even when using struct_return.
7954
c9174737
PA
79552011-03-15 Pedro Alves <pedro@codesourcery.com>
7956
7957 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7958 (map_display_numbers): New.
7959 (do_delete_display): New.
7960 (undisplay_command): Use map_display_numbers.
7961 (do_enable_disable_display): New.
7962 (enable_disable_display_command): New function.
7963 (enable_display): Delete.
7964 (enable_display_command): New.
7965 (disable_display_command): Reimplement.
7966 (_initialize_printcmd): Adjust "enable display" command to use
7967 `enable_display_command' as callback.
7968
350c6c65
PM
79692011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7970
7971 * NEWS: Add Python breakpoint 'stop' operation.
7972
824446ad
PM
79732011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7974
7975 * NEWS: Delete duplicate entry. Fix typo.
7976
2021ad3a
PM
79772011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7978
7979 Fix ARI warning about function names in first column.
7980 Put prototype declaration on same line as return type.
7981 * objc-exp.y: Ditto.
7982 * p-exp.y: Ditto.
7983 * python/py-stopevent.h: Ditto.
7984 For long function names, split parameters to
7985 allow function name on same line as return type.
7986 * solib-pa64.c: Ditto.
7987 * varobj.c: Ditto.
7988 * varobj.h: Ditto.
7989 For long function declaration, use single line.
7990 * hppa-tdep.h: Ditto.
7991 * inferior.h: Ditto.
7992
7371cf6d
PM
79932011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7994
7995 * python/python.h: Declare gdbpy_should_stop and
7996 gdbpy_breakpoint_has_py_cond.
7997 * python/python.c: Add python.h to includes. Remove python.h from
7998 HAVE_PYTHON definition
7999 (gdbpy_should_stop): New dummy function.
8000 (gdbpy_breakpoint_has_py_cond): New dummy function.
8001 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8002 sub-classing capabilities.
8003 (gdbpy_should_stop): New function.
8004 (gdbpy_breakpoint_has_py_cond): New function.
8005 (local_setattro): New function.
8006 * breakpoint.c (condition_command): Add check for Python 'stop'
8007 operation.
8008 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8009 operation function as part of stop/continue tests.
8010
37b50a69
TT
80112011-03-14 Tom Tromey <tromey@redhat.com>
8012
8013 PR gdb/12576:
8014 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8015 (needs_frame_dwarf_call): Likewise.
8016
eeae04df
PM
80172011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8018
8019 Fix ARI warning about functions without parameters that do not
8020 use (void).
8021 * breakpoint.c (all_tracepoints): Replace () by (void).
8022 * f-exp.y (match_string_literal): Ditto.
8023 (yylex): Ditto.
8024 * m2-exp.y (yylex): Ditto.
8025 * mep-tdep.c (current_me_module): Ditto.
8026 (current_options): Ditto.
8027 (current_cop_data_bus_width): Ditto.
8028 (current_cr_names): Ditto.
8029 (current_cr_is_float): Ditto.
8030 (current_ccr_names): Ditto.
8031 * objc-exp.y (yylex): Ditto.
8032 * p-exp.y (yylex): Ditto.
8033 * remote.c (send_interrupt_sequence): Ditto.
8034 * tracepoint.c (current_trace_status): Ditto.
8035 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8036 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8037
6dc3565d
MS
80382011-03-11 Michael Snyder <msnyder@vmware.com>
8039
1427fe5e
MS
8040 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8041 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8042 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8043 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8044 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8045
60bc018f
MS
8046 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8047 (delete_async_event_handler): Ditto.
8048
f3be5b64
MS
8049 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8050
4c2d5724
MS
8051 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8052
6dc3565d
MS
8053 * top.c (set_verbose): Assert showcmd was found.
8054
4e6ca6d5
MG
80552011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8056
8057 * xtensa-tdep.c (warning_once): Correct style issues.
8058
815a83e4
YQ
80592011-03-11 Yao Qi <yao@codesourcery.com>
8060
8061 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8062
f2eb0bc8
AS
80632011-03-11 Andreas Schwab <schwab@redhat.com>
8064
8065 * common/aclocal.m4: Remove.
8066
b801de47
MG
80672011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8068
8069 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8070 (xtensa_write_register, xtensa_read_register): Likewise.
8071 (xtensa_hextochar): Removed.
8072 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8073
dbab50de
MG
80742011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8075
8076 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8077 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8078 (xtensa_alloc_frame_cache): Add initialization for new fields.
8079 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8080 (warning_once): New function.
8081 (xtensa_insn_kind): New item c0opc_and.
8082 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8083 (call0_track_op): Change arguments. New local variable litbase.
8084 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8085 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8086 in the prologue.
dbab50de 8087 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8088 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8089 Add the variety of updates to handle extended prologues, which now can
8090 conduct dynamic stack adjustments.
8091 (call0_frame_cache): Likewise.
8092 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8093 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8094
b2c04452
MS
80952011-03-10 Michael Snyder <msnyder@vmware.com>
8096
f8f67713
MS
8097 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8098 (cmd_qtframe): Ditto.
8099 (cmd_qtbuffer): Ditto.
8100 (cmd_bigqtbuffer): Ditto.
8101
197f0a60
TT
81022011-03-10 Tom Tromey <tromey@redhat.com>
8103
8104 * tracepoint.c (trace_actions_command): Update.
8105 * thread.c (thread_apply_command): Update.
8106 * reverse.c (delete_bookmark_command): Update.
8107 (bookmarks_info): Update.
8108 * printcmd.c (undisplay_command): Update.
8109 * memattr.c (mem_enable_command): Update.
8110 (mem_disable_command): Update.
8111 (mem_delete_command): Update.
8112 * inferior.c (detach_inferior_command): Update.
8113 (kill_inferior_command): Update.
8114 (remove_inferior_command): Update.
8115 * cli/cli-utils.h (struct get_number_or_range_state): New.
8116 (init_number_or_range): Declare.
8117 (get_number_or_range): Update.
8118 * cli/cli-utils.c (init_number_or_range): New function.
8119 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8120 static variables.
8121 (number_is_in_list): Update.
8122 * breakpoint.h (get_tracepoint_by_number): Update.
8123 * breakpoint.c (map_breakpoint_numbers): Update for change to
8124 get_number_or_range.
8125 (find_location_by_number): Use get_number, not
8126 get_number_or_range.
8127 (trace_pass_set_count): New function.
8128 (trace_pass_command): Update for change to get_number_or_range.
8129 Rework loop logic.
8130 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8131 'state' parameter.
8132
ecec24e6
PM
81332011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8134
8135 * python/py-param.c (add_setshow_generic): Add set/show callback
8136 parameters. Register Python object context.
8137 (get_show_value): New function.
8138 (get_set_value): New function.
8139 (call_doc_function): New function.
8140 (get_doc_string): Move behind get_show_value/get_set_value.
8141
6d6c6b1f
JK
81422011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8143
8144 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8145
68d6df83
MG
81462011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8147
dbab50de 8148 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8149 (xtensa_write_register): Likewise.
8150 (xtensa_hextochar): Add comment and update to match coding conventions.
8151 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8152 (execute_l32e, execute_s32e, execute_code): Update comments.
8153 (xtensa_exception_handler_t): Update to match coding conventions.
8154 (xtensa_insn_kind): Likewise.
8155
85c9d6a6
MS
81562011-03-09 Michael Snyder <msnyder@vmware.com>
8157
8158 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8159
91495617
PA
81602011-03-09 Pedro Alves <pedro@codesourcery.com>
8161
8162 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8163
eb8c0621
TT
81642011-03-09 Tom Tromey <tromey@redhat.com>
8165
8166 * thread.c (restore_selected_frame): Handle frame_level == -1.
8167 (make_cleanup_restore_current_thread): Use
8168 get_selected_frame_if_set.
8169 * frame.h (get_selected_frame_if_set): Declare.
8170 * frame.c (get_selected_frame_if_set): New function.
8171
9f37bbcc
PA
81722011-03-09 Pedro Alves <pedro@codesourcery.com>
8173
8174 * cli/cli-cmds.c (shell_escape): Use lbasename.
8175 * coffread.c (coff_start_symtab): Constify parameter.
8176 (complete_symtab): Constify `name' parameter.
8177 (coff_symtab_read): Constify `filestring' local.
8178 (coff_getfilename): Constify return and `result' local.
8179 Use lbasename.
8180 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8181 * linux-fork.c (info_checkpoints_command): Use lbasename.
8182 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8183 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8184 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8185 * procfs.c (procfs_make_note_section): Use lbasename.
8186 * tui/tui-io.c (printable_part): Constity return and parameter.
8187 Use lbasename.
8188 (print_filename): Constify parameters, and local `s'.
8189 (tui_rl_display_match_list): Constify local `temp'.
8190
f8de3c55
JK
81912011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8192
8193 Revert:
8194 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8195 Fix DWARF-3+ DW_AT_accessibility default assumption.
8196 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8197 cu->header.version >= 3.
8198
d9837b00
YQ
81992011-03-09 Yao Qi <yao@codesourcery.com>
8200
8201 * common/Makefile.in: Remove.
8202 * common/configure: Remove.
8203 * common/configure.ac: Remove.
8204
e637a4f5
YQ
82052011-03-09 Yao Qi <yao@codesourcery.com>
8206
8207 Revert:
8208 2011-02-11 Yao Qi <yao@codesourcery.com>
8209
8210 * common/Makefile.in: Add copyright header.
8211
8212 2011-02-11 Yao Qi <yao@codesourcery.com>
8213
8214 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8215 libcommon.a.
8216 * configure.ac: Add common to sub dir.
8217 * configure: Regenerate.
8218
f976a05d
MG
82192011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8220
8221 * xtensa-tdep.c (call0_ret): New function.
8222 (xtensa_skip_prologue): Speed up analysis.
8223
57041825
MG
82242011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8225
8226 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8227 while executing MI command -data-list-changed-registers.
8228
08b9c608
MG
82292011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8230
8231 * xtensa-tdep.c (xtensa_read_register): New function.
8232 (xtensa_write_register): New function.
8233 (xtensa_find_register_by_name): New function.
8234 (xtensa_windowed_frame_cache): Update comments in type description.
8235 (xtensa_frame_cache): Likewise.
8236 (xtensa_window_interrupt_insn): New function.
8237 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8238 (xtensa_insn_kind): Add new instructions.
8239 (rwx_special_register): New function.
8240 (call0_classify_opcode): Add new instructions to the analysis.
8241 (a0_saved, a7_saved, a11_saved): New variables.
8242 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8243 (execute_l32e): New function.
8244 (execute_s32e): New function.
8245 (xtensa_exception_handler_t): New type.
8246 (execute_code): New function.
8247 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8248 analysis for Xtensa Window Exception handlers.
8249
4d1acb11
MG
82502011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8251
98689b25
MG
8252 * xtensa-tdep.c (TX_PS): New.
8253 (windowing_enabled): Update to count for Call0 ABI.
8254 (xtensa_hextochar): New.
8255 (xtensa_init_reggroups): Make algorithm generic.
8256 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8257
82582011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8259
8260 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8261
d3f323f3
MS
82622011-03-08 Michael Snyder <msnyder@vmware.com>
8263
3dcabaa8
MS
8264 * i386-tdep.c (i386_follow_jump): Check return value of
8265 target_read_memory.
8266 (i386_analyze_struct_return): Ditto.
8267 (i386_skip_probe): Ditto.
8268 (i386_match_insn): Ditto.
8269 (i386_skip_noop): Ditto.
8270 (i386_analyze_frame_setup): Ditto.
8271 (i386_analyze_register_saves): Ditto.
8272 (i386_skip_prologue): Ditto.
8273 (i386_skip_main_prologue): Ditto.
8274
13b3fd9b
MS
8275 * target.c (read_whatever_is_readable): Fix memory leak.
8276
d3f323f3
MS
8277 * i386-tdep.c (i386_process_record): Document fall through.
8278
421d5c74
JK
82792011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8280
8281 Fix DWARF-3+ DW_AT_accessibility default assumption.
8282 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8283 cu->header.version >= 3.
8284
63154eca
PA
82852011-03-08 Pedro Alves <pedro@codesourcery.com>
8286
8287 * remote.c (remote_check_symbols): Skip if the target has no
8288 execution.
8289
f1a507a1
JB
82902011-03-08 Joel Brobecker <brobecker@adacore.com>
8291
8292 * target.c (read_whatever_is_readable): Reformat comment,
8293 with a minor typo fix. Minor reformatting of the code.
8294
36073a92
YQ
82952011-03-08 Yao Qi <yao@codesourcery.com>
8296
8297 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8298 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8299 Use cached result instead of calling displaced_in_arm_mode again.
8300 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8301 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8302 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8303 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8304 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8305 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8306 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8307 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8308 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8309 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8310 (arm_catch_kernel_helper_return): Likewise.
8311 * gdb/arm-tdep.h : Update function declarations.
8312
d3f323f3 83132011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8314
e0e40094
MS
8315 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8316
0b2381f5
MS
8317 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8318
0350914a
MS
8319 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8320
69feea6f
MS
8321 * elfread.c (elf_symtab_read): Stop memory leak.
8322
e6040cbd
MS
8323 * main.c (captured_main): Fix memory leak.
8324
052874e8
AS
83252011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8326
8327 * ada-lang.c (compare_names): Call is_name_suffix with string1
8328 instead of string2.
8329
b11896a5
TT
83302011-03-07 Tom Tromey <tromey@redhat.com>
8331
8332 * xcoffread.c (xcoff_sym_fns): Update.
8333 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8334 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8335 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8336 (symbol_file_add_with_addrs_or_offsets): Likewise.
8337 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8338 * somread.c (som_sym_fns): Update.
8339 * psymtab.h (require_partial_symbols): Declare.
8340 * psymtab.c (require_partial_symbols): New function.
8341 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8342 (ALL_OBJFILE_PSYMTABS): Undef.
8343 (ALL_PSYMTABS): Move from psympriv.h.
8344 (lookup_partial_symtab, find_pc_sect_psymtab)
8345 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8346 (find_last_source_symtab_from_partial)
8347 (forget_cached_source_info_partial)
8348 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8349 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8350 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8351 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8352 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8353 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8354 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8355 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8356 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8357 psymtabs.
8358 * mipsread.c (ecoff_sym_fns): Update.
8359 * machoread.c (macho_sym_fns): Update.
8360 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8361 (read_psyms): New function.
8362 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8363 (elf_sym_fns_lazy_psyms): New global.
8364 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8365 dwarf2_build_psymtabs.
8366 * dbxread.c (aout_sym_fns): Update.
8367 * coffread.c (coff_sym_fns): Update.
8368
fda326dd
TT
83692011-03-07 Tom Tromey <tromey@redhat.com>
8370
8371 * infrun.c (print_exited_reason): Include inferior id and pid in
8372 message.
8373
aeaec162
TT
83742011-03-07 Tom Tromey <tromey@redhat.com>
8375
8376 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8377 parameter.
8378 (target_has_execution_1): Update.
8379 (target_has_execution_current): Declare.
8380 (target_has_execution): Call target_has_execution_current.
8381 (default_child_has_execution): Update.
8382 * target.c (default_child_has_execution): Add 'the_ptid'
8383 parameter.
8384 (target_has_execution_1): Likewise.
8385 (target_has_execution_current): New function.
8386 (add_target): Update.
8387 (init_dummy_target): Update.
8388 * remote-m32r-sdi.c (m32r_has_execution): New function.
8389 (init_m32r_ops): Use it.
8390 * record.c (record_core_has_execution): Now static. Add
8391 'the_ptid' parameter.
8392 * inferior.c (have_live_inferiors): Don't save current thread.
8393 Use target_has_execution_1.
8394
08e14083
YQ
83952011-03-07 Yao Qi <yao@codesourcery.com>
8396
8397 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8398
c05d19c5
JB
83992011-03-07 Joel Brobecker <brobecker@adacore.com>
8400
8401 * elfread.c (elf_symtab_read): Minor reformatting.
8402
3e6ef9e4
JB
84032011-03-07 Joel Brobecker <brobecker@adacore.com>
8404
8405 * objc-lang.c (selectors_info): Minor reformatting.
8406
dbb8534f
JB
84072011-03-07 Joel Brobecker <brobecker@adacore.com>
8408
8409 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8410
dd70cc93
JB
84112011-03-07 Joel Brobecker <brobecker@adacore.com>
8412 Michael Snyder <msnyder@vmware.com>
8413
8414 * ada-valprint.c (ada_val_print_array): Move the declaration of
8415 "byte_order" and "elttype" inside the block where these variables
8416 are actually used. Remove some special handling for the case
8417 where "elttype" and "eltlen" are null. Replace by a comment
8418 and a couple of assertion checks.
8419
b27cf2b3
MS
84202011-03-05 Michael Snyder <msnyder@vmware.com>
8421
8422 * source.c (add_path): Replace semicolon at end of block.
8423 * dwarf2expr.c (execute_stack_op): Ditto.
8424
5387a0c6
MF
84252011-03-05 Mike Frysinger <vapier@gentoo.org>
8426
8427 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8428 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8429 (bfin-*-*): Likewise.
8430
e3aa49af
MS
84312011-03-05 Michael Snyder <msnyder@vmware.com>
8432
82ae4854
MS
8433 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8434 * mdebugread.c (parse_symbol): Ditto.
8435 * parse.c (parse_exp_in_context): Ditto.
8436 * source.c (add_path): Ditto.
8437 * utils.c (gnu_debuglink_crc32): Ditto.
8438 * varobj.c (variable_language): Ditto.
8439
e3aa49af
MS
8440 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8441
154f592e
MS
84422011-03-04 Michael Snyder <msnyder@vmware.com>
8443
da3ecdc6
MS
8444 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8445
9cc89665
MS
8446 * symfile.c (simple_overlay_update): Check for null return value
8447 from lookup_minimal_symbol.
8448
154f592e
MS
8449 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8450
63ffa6ee
TJB
84512011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8452
8453 * eval.c (parse_and_eval_address_1): Remove function.
8454 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8455 instead of parse_and_eval_address_1.
8456 * value.h (parse_and_eval_address_1): Remove prototype.
8457
a17d146e
MS
84582011-03-04 Michael Snyder <msnyder@vmware.com>
8459
8460 * remote.c (putpkt_binary): Document that case stmt falls through.
8461
1a6a67de
TJB
84622011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8463
8464 * breakpointc (print_it_typical): Move NULL check from here...
8465 (print_bp_stop_message): ... to here.
8466
488919c4
MS
84672011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8468
8469 * breakpoint.c (enable_command): Use break instead of continue,
8470 and fill in a missing break.
8471 (disable_command): Ditto.
8472
1e182ce8
UW
84732011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8474
8475 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8476 (terminal_save_ours): Remove misleading comment.
8477 (inflow_inferior_data_cleanup): Free ttystate.
8478 (inflow_inferior_exit): Likewise.
8479 (copy_terminal_info): Copy ttystate.
8480
8481 * serial.c (serial_copy_tty_state): New function.
8482 * serial.h (serial_copy_tty_state): Add prototype.
8483 (struct serial_ops): Add copy_tty_state callback.
8484 * ser-base.c (ser_base_copy_tty_state): New function.
8485 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8486 * ser-go32.c (dos_copy_tty_state): New function.
8487 (dos_ops): Install copy_tty_state callback.
8488 * ser-mingw.c (_initialize_ser_windows): Likewise.
8489 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8490 * ser-unix.c (hardwire_copy_tty_state): New function.
8491 (_initialize_ser_hardwire): Install it.
8492
b2c5f112
MS
84932011-03-04 Michael Snyder <msnyder@vmware.com>
8494
2abae994
MS
8495 * breakpoint.c (create_breakpoint): Add missing break statement.
8496
7f5936f9
MS
8497 Reverting this patch:
8498 * infcall.c (call_function_by_hand): Add break statements for lint.
8499
b2c5f112
MS
8500 Reverting this patch:
8501 * cli/cli-script.c (script_from_file): Add break for lint.
8502
42b1321c
MS
85032011-03-04 Michael Snyder <msnyder@vmware.com>
8504
8505 * solib.c (reload_shared_libraries_1): Close memory leak.
8506
3e2a0cee
TT
85072011-03-03 Tom Tromey <tromey@redhat.com>
8508
8509 PR gdb/12538:
8510 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8511 DW_STRING is NULL.
8512
58397cb7
MS
85132011-03-03 Michael Snyder <msnyder@vmware.com>
8514
2e3fd767
MS
8515 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8516 fields of struct 'st' to zero.
8517
58397cb7
MS
8518 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8519 sal.pspace before calling set_current_source_symtab_and_line.
8520
ced54c8f
YQ
85212011-03-03 Yao Qi <yao@codesourcery.com>
8522
8523 * Makefile.in (configure-common): Remove. Let Makefile
8524 in dir common to rebuild itself.
8525 (common/Makefile): Likewise.
8526
3351ea09
JB
85272011-03-03 Joel Brobecker <brobecker@adacore.com>
8528
8529 * utils.c (parse_escape): Add i18n markup in error message.
8530
bf9f652a
YQ
85312011-03-03 Yao Qi <yao@codesourcery.com>
8532
8533 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8534 ARM_PC_REGNUM.
8535 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8536 (displaced_write_reg, displaced_read_reg): Likewise.
8537 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8538 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8539 (cleanup_branch): Replace magic number 14 and 15 with
8540 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8541
d42de051
MS
85422011-03-02 Michael Snyder <msnyder@vmware.com>
8543
240f9570
MS
8544 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8545
10dd8b54
MS
8546 * cli/cli-script.c (script_from_file): Add break for lint.
8547
b98bd911
MS
8548 * mdebugread.c (parse_partial_symbols): Fix indent.
8549
3494b66d
MS
8550 * target-descriptions.c (tdesc_gdb_type): No need to call
8551 xstrdup, callee saves a copy.
8552
daac021a
MS
8553 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8554
c38d16a7
MS
8555 * infcall.c (call_function_by_hand): Add break statements for lint.
8556
905b671b
MS
8557 * utils.c (parse_escape): Escape the escape char.
8558
f2eb0bc8 8559 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8560 PyList_Append fails.
8561 (gdbpy_inferiors): Error out if build_inferior_list fails.
8562
8c6a60d1
MS
8563 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8564 a function call.
8565
d42de051
MS
8566 * record.c (record_restore): Move printf to before error return.
8567
4db71c0b
YQ
85682011-03-02 Yao Qi <yao@codesourcery.com>
8569
8570 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8571 is_thumb and insn_size.
8572 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8573 on both ARM and Thumb mode.
8574 (arm_process_displaced_insn): Set is_thumb and insn_size.
8575 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8576 (arm_displaced_step_fixup): Likewise.
8577
a9dc8dcc
MS
85782011-03-01 Michael Snyder <msnyder@vmware.com>
8579
53624a93
MS
8580 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8581
77766669
MS
8582 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8583
62d5b8da
MS
8584 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8585
5e9e105f
MS
8586 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8587
dc19db01
MS
8588 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8589 with xmalloc.
8590
5ce64950
MS
8591 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8592 which shadows function parameter.
8593
a0aa2878
MS
8594 * tracepoint.c (create_tsv_from_upload): Superfluous call
8595 to xstrdup. Callee already calls xstrdup.
8596
e325fb69
MS
8597 * linespec.c (decode_line_1): Remove unnecessary null check.
8598
21cbba77
MS
8599 * tracepoint.c (scope_info): Fix mem leak, remove underused
8600 variable.
8601
63360adc
MS
8602 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8603 superfluous null check.
8604
18ea20ac 8605 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8606 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8607
d014929c
MS
8608 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8609
6e9130cf
MS
8610 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8611 be null.
8612
5f01dbc0
MS
8613 * linespec.c (decode_line_1): Check for null before dereference.
8614
d684ab85
MS
8615 * reverse.c (record_restore): Move null-check to before pointer
8616 dereference.
8617
bfffb7e3
MS
8618 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8619
a9dc8dcc
MS
8620 * objc-lang.c (selectors_info): Add explanitory comment.
8621 (classes_info): Ditto.
8622
478fd957
UW
86232011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8624
8625 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8626 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8627 versions of the trampoline. Handle Thumb vs. ARM addresses.
8628 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8629 (arm_linux_init_abi): Install it.
8630 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8631 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8632
0480cefa
MS
86332011-02-28 Michael Snyder <msnyder@vmware.com>
8634
ac50ab3b
MS
8635 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8636 a little bigger, to avoid possibility of an overflow.
8637
f63fbe86
MS
8638 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8639 buffers a little bigger, to avoid possibility of an overflow.
8640
9e91a352
MS
8641 * coffread.c (coff_getfilename): Add check to avoid overflow.
8642
f2eb0bc8 8643 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8644 avoid overflow.
8645 (classes_info): Error out on too long REGEXP.
8646
098ab512
MS
8647 * infrun.c (handle_inferior_event): Remove unused function call.
8648
bcbd1de9
MS
8649 * fork-child.c (fork_inferior): Remove ifdef'd code and
8650 unused variable.
8651
2e456570
MS
8652 * linux-thread-db.c (attach_thread): Discard unused value.
8653
14571dad
MS
8654 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8655
a9cbf802
MS
8656 * remote.c (remote_get_noisy_reply): Discard unused value.
8657 (remote_vcont_resume): Ditto.
8658 (remote_stop_ns): Ditto.
8659
5715d26e
MS
8660 * linespec.c (decode_objc): Delete unused variable.
8661
4a9bca80
MS
8662 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8663
f47fb265
MS
8664 * dwarf2read.c (add_partial_symbol): Discard unused values.
8665 (read_base_type): Delete unused variable.
8666
e81cff30
MS
8667 * dbxread.c (read_dbx_symtab): Discard unused value.
8668
262acaeb
MS
8669 * eval.c (evaluate_subexp_standard): Delete unused variable,
8670 and discard unused values.
8671
df983543
MS
8672 * infcmd.c (_initialize_infcmd): Discard unused values.
8673
89acf84d
MS
8674 * stabsread.c (rs6000_builtin_type): Missing break statement.
8675
ab8b8aca
MS
8676 * dbxread.c (process_one_symbol): Discard unused value.
8677
6b4511ab
MS
8678 * coffread.c (coff_end_symtab): Delete unused variable.
8679
e8e80198
MS
8680 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8681 (dwarf2_add_typedef): Delete unused variable.
8682 (read_namespace): Ditto.
8683 (dwarf_decode_macros): Ditto.
8684
976aa66e
MS
8685 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8686
5b92b49f
MS
8687 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8688
91e8df85
MS
8689 * p-valprint.c (pascal_val_print): Discard unused value.
8690
899500d6
MS
8691 * utils.c (nquery): Call va_end before return;
8692 (yquery): Ditto.
8693 (query): Ditto.
8694
0480cefa
MS
8695 * proc-service.c (ps_plog): Call va_end before return.
8696
fb6a3ed3
TT
86972011-02-28 Tom Tromey <tromey@redhat.com>
8698
8699 * python/python.c (gdbpy_value_cst): New global.
8700 (_initialize_python): Initialize it.
8701 * python/python-internal.h (gdbpy_value_cst): Declare.
8702 * python/py-value.c (convert_value_from_python): Use
8703 gdbpy_value_cst.
8704
c05202a1
MS
87052011-02-28 Michael Snyder <msnyder@vmware.com>
8706
e463f587
MS
8707 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8708
c38eea1a
MS
8709 * breakpoint.c (catch_syscall_completer): Free malloced list.
8710
3ef09ab5
MS
8711 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8712
8f9a01ee
MS
8713 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8714 (lval_func_check_synthetic_pointer): Ditto.
8715 (lval_func_free_closure): Fix use-after-free.
c05202a1 8716
477d0d57
TT
87172011-02-28 Tom Tromey <tromey@redhat.com>
8718
8719 * psymtab.c (expand_partial_symbol_tables): Use
8720 ALL_OBJFILE_PSYMTABS.
8721
20937029
JK
87222011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8723
8724 * objc-lang.c (selectors_info): Error on too long REGEXP.
8725
907b7f4f
MS
87262011-02-28 Michael Snyder <msnyder@vmware.com>
8727
92e96192
MS
8728 * python/py-param.c (set_parameter_value): Add missing
8729 break statement.
8730
907b7f4f
MS
8731 * linux-record.c (record_linux_system_call): Add missing
8732 break statement.
8733
12c5a436
UW
87342011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8735
8736 * breakpoint.c (print_one_breakpoint_location): Remove unused
8737 argument PRINT_ADDRESS_BITS. Update callers.
8738 (print_one_breakpoint): Likewise.
8739
170b53b2
UW
87402011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8741
8742 * breakpoint.c (wrap_indent_at_field): New function.
8743 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8744 Allocate ui_stream locally instead of using STB argument.
8745 (print_one_breakpoint_location): Update call.
8746 * ui-out.c (ui_out_query_field): New function.
8747 * ui-out.h (ui_out_query_field): Add prototype.
8748
8ab1f94d
JB
87492011-02-28 Joel Brobecker <brobecker@adacore.com>
8750
8751 From Michael Snyder <msnyder@vmware.com>
8752 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8753
7d488639
MS
87542011-02-27 Michael Snyder <msnyder@vmware.com>
8755
ae179fba
MS
8756 * objc-lang.c (selectors_info): Prevent string overrun.
8757
086dbf66
MS
8758 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8759 error in strncpy.
8760
f2eb0bc8 8761 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8762 outer scope.
8763
7d488639
MS
8764 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8765 param with a local variable of the same name.
8766
3bd0f5ef
MS
87672011-02-27 Michael Snyder <msnyder@vmware.com>
8768
8769 * value.c (value_from_history_ref): New function.
8770 * value.h (value_from_history_ref): Export.
8771 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8772 to parse value history references.
8773 * cli/cli-utils.h (get_number_trailer): Update comment.
8774
87752011-02-27 Michael Snyder <msnyder@vmware.com>
8776
8777 * inferior.c (detach_inferior_command): Use get_number_or_range.
8778 (kill_inferior_command): Ditto.
8779 (remove_inferior_command): Ditto.
8780 (initialize_inferiors): Make command names plural.
8781 Update help strings.
8782
766062f6
MS
87832011-02-27 Michael Snyder <msnyder@vmware.com>
8784
8785 * darwin-nat-info.c: Fix comment typo.
8786 * dwarf2expr.h: Ditto.
8787 * fbsd-nat.c: Ditto.
8788 * fbsd-nat.h: Ditto.
8789 * frame-unwind.h: Ditto.
8790 * frame.h: Ditto.
8791 * hppa-hpux-tdep.c: Ditto.
8792 * i386-linux-nat.c: Ditto.
8793 * linux-nat.c: Ditto.
8794 * nbsd-nat.c: Ditto.
8795 * nbsd-nat.h: Ditto.
8796 * ppc-linux-tdep.c: Ditto.
8797 * serial.c: Ditto.
8798 * ui-file.h: Ditto.
8799 * tui/tui-winsource.c: Ditto.
8800
f2c4ead5
MS
88012011-02-26 Michael Snyder <msnyder@vmware.com>
8802
86b887df
MS
8803 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8804
66fd3b1e
MS
8805 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8806
8c814cdd
MS
8807 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8808 with a local variable of the same name.
8809
6d5e094a 8810 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8811 param with a local variable of the same name.
6d5e094a 8812 (i387_supply_xsave): Ditto.
e5b3d7d6 8813
5eee517d
MS
8814 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8815 that it does not shadow a function parameter.
8816
8fbf6b93
MS
8817 * i386-nat.c (i386_length_and_rw_bits): Document that case
8818 statement is meant to fall through.
8819
cb969d61
MS
8820 * expprint.c (dump_subexp_body_standard): Document that case
8821 statement is meant to fall through.
8822
f2c4ead5
MS
8823 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8824 dead if statement. Condition can't be false.
8825
b021a221
MS
88262011-02-25 Michael Snyder <msnyder@vmware.com>
8827
8828 * arm-tdep.c: Fix typos in comments.
8829 * bsd-uthread.c: Ditto.
8830 * completer.c: Ditto.
8831 * corelow.c: Ditto.
8832 * cp-namespace.c: Ditto.
8833 * cp-support.c: Ditto.
8834 * cris-tdep.c: Ditto.
8835 * dbxread.c: Ditto.
8836 * dwarf2read.c: Ditto.
8837 * frame.h: Ditto.
8838 * gdbtypes.h: Ditto.
8839 * inferior.h: Ditto.
8840 * mdebugread.c: Ditto.
8841 * mips-tdep.c: Ditto.
8842 * ppc-linux-nat.c: Ditto.
8843 * ppc-linux-tdep.c: Ditto.
8844 * printcmd.c: Ditto.
8845 * sol-thread.c: Ditto.
8846 * solib-frv.c: Ditto.
8847 * solist.h: Ditto.
8848 * sparc64-tdep.c: Ditto.
8849 * spu-tdep.c: Ditto.
8850 * stabsread.c: Ditto.
8851 * symfile.c: Ditto.
8852 * valops.c: Ditto.
8853 * varobj.c: Ditto.
8854 * vax-nat.c: Ditto.
8855 * python/py-block.c: Ditto.
8856 * python/py-symbol.c: Ditto.
8857 * python/py-symtab.c: Ditto.
8858 * python/py-value.c: Ditto.
8859 * tui/tui-win.c: Ditto.
8860
c82c0b55
MS
88612011-02-25 Michael Snyder <msnyder@vmware.com>
8862
8863 * inferior.c (print_inferior): Accept a string instead of an int
8864 for requested_inferiors, and use get_number_or_range to parse it.
8865 (info_inferiors_command): Pass args string to print_inferior.
8866 (initialize_inferiors): Change help string for info inferiors.
8867 * inferior.h (print_inferior): Export prototype change.
8868
ee00cd23
TT
88692011-02-25 Tom Tromey <tromey@redhat.com>
8870
8871 * common/ax.def (invalid2): Set to 0x31.
8872
0502ed8c
JK
88732011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8874
8875 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8876 L and plongest.
8877 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8878 use L and plongest.
8879 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8880
2c9de912
MS
88812011-02-24 Michael Snyder <msnyder@vmware.com>
8882
8883 * Makefile.in (clean): Make clean should remove generated files
8884 observer.h and observer.inc.
8885
a04b0428
JB
88862011-02-24 Joel Brobecker <brobecker@adacore.com>
8887
8888 Revert the following patch (not approved yet):
8889 2011-02-21 Hui Zhu <teawater@gmail.com>
8890 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8891 * ax-gdb.c (gen_printf_expr_callback): New function.
8892 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8893 * ax-general.c (ax_memcpy): New function.
8894 (ax_print): Handle "printf".
8895 (ax_reqs): Ditto.
8896 * ax.h (ax_memcpy): Forward declare.
8897 * common/ax.def (invalid2): Removed.
8898 (printf): New entry.
8899 * printcmd.c (printcmd.h): New include.
8900 (string_printf): New function.
8901 (ui_printf): Removed.
8902 (printf_command): Remove static. Call string_printf.
8903 (eval_command): Call string_printf.
8904 * printcmd.h: New file.
8905 * tracepoint.c (validate_actionline,
8906 encode_actions_1): handle printf_command.
8907
2b52013f
TT
89082011-02-23 Tom Tromey <tromey@redhat.com>
8909
8910 * ax-general.c (ax_pick): Add missing newline.
8911
e5a67952
MS
89122011-02-23 Michael Snyder <msnyder@vmware.com>
8913
8914 * breakpoint.c (breakpoint_1): Change first argument from an int
8915 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8916 breakpoints rather than just one. Use new function
e5a67952
MS
8917 'number_is_in_list' to implement.
8918 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8919 (watchpoints_info): Ditto.
8920 (tracepoints_info): Ditto.
8921 (maintenance_info_breakpoints): Ditto.
8922 (_initialize_breakpoint): Update help strings to reflect the fact
8923 that these functions can now take more than one argument.
8924 * cli/cli-utils.c (number_is_in_list): New function.
8925 * cli/cli-utils.h (number_is_in_list): Export.
8926
89272011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8928
8929 * memattr.c (mem_enable_command): Use get_number_or_range.
8930 (mem_disable_command): Ditto.
8931 (mem_delete_command): Ditto.
8932 (_initialize_mem): Tweak usage message to reflect multiple
8933 arguments.
8934
6e6fbe60
DE
89352011-02-22 Doug Evans <dje@google.com>
8936
8937 Add gdb.lookup_global_symbol python function.
8938 * NEWS: Add entry.
8939 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8940 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8941 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8942
79b97fa8
TT
89432011-02-22 Tom Tromey <tromey@redhat.com>
8944
8945 * language.c (language_class_name_from_physname): Rename
8946 'curr_language' argument to 'lang'; use in body.
8947
298f437a
MS
89482011-02-22 Michael Snyder <msnyder@vmware.com>
8949
8950 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8951
b7ea3126
PA
89522011-02-22 Pedro Alves <pedro@codesourcery.com>
8953
8954 * frame-unwind.h: Fix comment to mention the this frame, not the
8955 next.
8956
58ee6d60
TT
89572011-02-22 Tom Tromey <tromey@redhat.com>
8958
8959 * symfile.c (auto_solib_limit): Remove.
8960 * symfile.h (auto_solib_limit): Remove.
8961
36238dbc
JB
89622011-02-22 Joel Brobecker <brobecker@adacore.com>
8963
8964 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8965
aea5b279
MS
89662011-02-21 Michael Snyder <msnyder@vmware.com>
8967
8968 * gdbthread.h (print_thread_info): Change prototype.
8969 * thread.c (print_thread_info): Accept char* instead of int for
8970 requested_threads argument. Use new function number_is_in_list
8971 to determine which threads to list.
8972 (info_threads_command): Pass char* to print_thread_info.
8973 * cli/cli-utils.c (number_is_in_list): New function.
8974 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8975 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8976 print_thread_info.
8977 (print_one_inferior): Ditto.
8978 (mi_cmd_list_thread_groups): Ditto.
8979
8caa75ee
JK
89802011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8981
8982 * common/Makefile.in (CFLAGS): New.
8983 (COMPILE): Add $(CFLAGS).
8984
ea666128
TT
89852011-02-21 Tom Tromey <tromey@redhat.com>
8986
8987 * breakpoint.c (catch_syscall_command_1): Fix typo.
8988
e9cafbcc
TT
89892011-02-21 Tom Tromey <tromey@redhat.com>
8990
8991 * reverse.c: Include cli-utils.h.
8992 * printcmd.c: Include cli-utils.h.
8993 (string_printf): Use skip_spaces.
8994 * cli/cli-utils.h: New file.
8995 * cli/cli-utils.c: New file.
8996 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8997 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8998 * breakpoint.h (get_number, get_number_or_range): Move to
8999 cli-utils.h.
9000 * breakpoint.c: Include cli-utils.h.
9001 (get_number_trailer, get_number, get_number_or_range)
9002 (ep_skip_leading_whitespace): Move to cli-utils.c.
9003 (create_breakpoint_sal, find_condition_and_thread)
9004 (decode_static_tracepoint_spec, watch_command_1)
9005 (watch_maybe_just_location, ep_parse_optional_if_clause)
9006 (catch_fork_command_1, catch_exec_command_1)
9007 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9008 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9009 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9010 (HFILES_NO_SRCDIR): Add cli-utils.h.
9011 (cli-utils.o): New target.
9012
f67fd822
PM
90132011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9014
9015 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9016 before calling discard_all_inferiors.
9017
c9def01d
UW
90182011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9019
9020 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9021 (struct builtin_opencl_type): Remove.
9022 (builtin_opencl_type): Change return type to "struct type **".
9023 (lookup_opencl_vector_type): Update caller.
9024 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9025 (build_opencl_types): Install plain array of "struct type *"
9026 instead of "struct builtin_opencl_type".
9027
e3039479
UW
90282011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9029 Ulrich Weigand <uweigand@de.ibm.com>
9030
9031 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9032 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9033 (struct arm_linux_hwbp_cap): New type.
9034 (arm_linux_get_hwbp_cap): New function.
9035 (arm_linux_get_hw_breakpoint_count): Likewise.
9036 (arm_linux_get_hw_watchpoint_count): Likewise.
9037 (arm_linux_can_use_hw_breakpoint): Likewise.
9038 (arm_hwbp_type): New type.
9039 (arm_hwbp_control_t): Likewise.
9040 (struct arm_linux_hw_breakpoint): Likewise.
9041 (struct arm_linux_thread_points): Likewise.
9042 (arm_threads): New global variable.
9043 (arm_linux_find_breakpoints_by_tid): New function.
9044 (arm_hwbp_control_initialize): Likewise.
9045 (arm_hwbp_control_is_enabled): Likewise.
9046 (arm_hwbp_control_disable): Likewise.
9047 (arm_linux_hw_breakpoint_initialize): Likewise.
9048 (arm_linux_get_hwbp_type): Likewise.
9049 (arm_linux_hw_watchpoint_initialize): Likewise.
9050 (arm_linux_hw_breakpoint_equal): Likewise.
9051 (arm_linux_insert_hw_breakpoint1): Likewise.
9052 (arm_linux_remove_hw_breakpoint1): Likewise.
9053 (arm_linux_insert_hw_breakpoint): Likewise.
9054 (arm_linux_remove_hw_breakpoint): Likewise.
9055 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9056 (arm_linux_insert_watchpoint): Likewise.
9057 (arm_linux_remove_watchpoint): Likewise.
9058 (arm_linux_stopped_data_address): Likewise.
9059 (arm_linux_stopped_by_watchpoint): Likewise.
9060 (arm_linux_watchpoint_addr_within_range): Likewise.
9061 (arm_linux_new_thread): Likewise.
9062 (arm_linux_thread_exit): Likewise.
9063 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9064 related target callbacks. Register arm_linux_new_thread and
9065 arm_linux_thread_exit.
9066 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9067 * arm-tdep.c (arm_pc_is_thumb): Make global.
9068 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9069
b5db5dfc
UW
90702011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9071
9072 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9073 per-frame locations while within a function epilogue.
9074
e25b2cfa
PM
90752011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9076
9077 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9078 to GNU coding standards.
9079
4af53f97
PM
90802011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9081
9082 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9083 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9084 (ser_windows_close): Only call CancelIo if function exists.
9085 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9086 to check for existence of CancelIo function in kernel32 DLL.
9087
d0e92d82
HZ
90882011-02-21 Hui Zhu <teawater@gmail.com>
9089
9090 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9091 * ax-gdb.c (gen_printf_expr_callback): New function.
9092 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9093 * ax-general.c (ax_memcpy): New function.
9094 (ax_print): Handle "printf".
9095 (ax_reqs): Ditto.
9096 * ax.h (ax_memcpy): Forward declare.
9097 * common/ax.def (invalid2): Removed.
9098 (printf): New entry.
9099 * printcmd.c (printcmd.h): New include.
9100 (string_printf): New function.
9101 (ui_printf): Removed.
9102 (printf_command): Remove static. Call string_printf.
9103 (eval_command): Call string_printf.
9104 * printcmd.h: New file.
9105 * tracepoint.c (validate_actionline,
9106 encode_actions_1): handle printf_command.
9107
7d357efd
MS
91082011-02-19 Michael Snyder <msnyder@vmware.com>
9109
9110 * reverse.c (delete_one_bookmark): Argument is now bookmark
9111 id rather than pointer to bookmark struct.
9112 (delete_bookmark_command): Use get_number_or_range.
9113 (goto_bookmark_command): Parse with get_number instead of strtoul.
9114 (bookmark_1): New function. Print info for one bookmark.
9115 (bookmarks_info): Use get_number_or_range and bookmark_1.
9116
7a45ebd7
MS
91172011-02-18 Michael Snyder <msnyder@vmware.com>
9118
f2eb0bc8 9119 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9120 get_number_or_range.
65ebfb52 9121 (thread_apply_command): Ditto.
7a45ebd7 9122
94d5e490
TT
91232011-02-18 Tom Tromey <tromey@redhat.com>
9124
9125 * common/ax.def: New file.
9126 * ax.h (enum agent_op): Use ax.def.
9127 * ax-general.c (aop_map): Use ax.def.
9128
c7f96d2b
TT
91292011-02-18 Tom Tromey <tromey@redhat.com>
9130
9131 * ax-general.c (aop_map): Add pick and rot.
9132 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9133 <DW_OP_rot>: Implement.
9134 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9135 (ax_pick): Declare.
9136 * ax-general.c (ax_pick): New function.
9137
66694b75
TT
91382011-02-18 Tom Tromey <tromey@redhat.com>
9139
9140 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9141
eeaafae2
JK
91422011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9143 Tom Tromey <tromey@redhat.com>
9144
9145 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9146 make_symbol_overload_list_block with NULL BLOCK.
9147 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9148
3c3fe74c
PA
91492011-02-18 Pedro Alves <pedro@codesourcery.com>
9150
9151 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9152 * breakpoint.h (get_number_or_range): Declare.
9153 * printcmd.c (ALL_DISPLAYS): Declare.
9154 (delete_display): Reimplement taking a display pointer.
9155 (undisplay_command): Accept a range of displays to delete, using
9156 get_number_or_range.
9157
13163d80
PM
91582011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9159
9160 * c-valprint.c (c_val_print): Add embedded_offset to address
9161 for arrays of unspecified length.
9162 * p-valprint.c (pascal_val_print): Likewise.
9163
b434a28f
YQ
91642011-02-18 Yao Qi <yao@codesourcery.com>
9165
9166 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9167 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9168 (thumb_process_displaced_insn): New.
9169 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9170 call to arm_process_displaced_insn.
9171 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9172
9f6f94ff
TT
91732011-02-17 Tom Tromey <tromey@redhat.com>
9174
9175 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9176 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9177 compile_dwarf_to_ax. No longer static. Call
9178 dwarf2_compile_cfa_to_ax.
9179 (locexpr_tracepoint_var_ref): Update.
9180 (loclist_tracepoint_var_ref): Update.
9181 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9182 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9183 argument; add 'gdbarch' and 'pc'.
9184 (dwarf2_compile_cfa_to_ax): New function.
9185 (dwarf2_frame_cache): Update.
9186
e67ad678
JB
91872011-02-17 Joel Brobecker <brobecker@adacore.com>
9188
9189 * ada-lang.c (ada_type_of_array): Fix the size of the array
9190 in the case of an unconstrained packed array.
9191
946ebb0d
YQ
91922011-02-17 Yao Qi <yao@codesourcery.com>
9193
9194 * common/Makefile.in: Add more targets for make.
9195
1ba1b353
TT
91962011-02-16 Tom Tromey <tromey@redhat.com>
9197
9198 * dwarf2loc.c (unimplemented): Fix typo.
9199
b1bfef65
TT
92002011-02-16 Tom Tromey <tromey@redhat.com>
9201
9202 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9203 (compile_dwarf_to_ax) <default>: Use unimplemented.
9204 <DW_OP_deref>: Update.
9205 (disassemble_dwarf_expression): Update.
9206 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9207 (decode_locdesc): Update.
9208 * dwarf2expr.h (dwarf_stack_op_name): Update.
9209
5f1e6f19
TT
92102011-02-16 Tom Tromey <tromey@redhat.com>
9211
9212 * ax.h (struct aop_map) <name>: Now const.
9213
a0c78a73
PA
92142011-02-16 Tom Tromey <tromey@redhat.com>
9215
9216 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9217 than axs_rvalue.
9218
946ebb0d 92192011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9220
9221 * infrun.c (get_displaced_step_closure_by_addr): New.
9222 * inferior.h: Declare it.
9223 * arm-tdep.c: (arm_pc_is_thumb): Call
9224 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9225 returns non-NULL.
9226
08807d5a
PA
92272011-02-16 Pedro Alves <pedro@codesourcery.com>
9228 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 gdb/
9231 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9232
29976f3f
PA
92332011-02-16 Pedro Alves <pedro@codesourcery.com>
9234 Jan Kratochvil <jan.kratochvil@redhat.com>
9235
9236 * value.c (value_contents_copy_raw): Extend describing comment.
9237 Assert that the destination contents we're overwriting are wholly
9238 available.
fb68ae73 9239 (value_contents_copy): Extend describing comment.
29976f3f 9240
cd24cfaa
PA
92412011-02-16 Pedro Alves <pedro@codesourcery.com>
9242 Jan Kratochvil <jan.kratochvil@redhat.com>
9243
9244 * value.c (value_available_contents_eq): Remove redundant local
9245 variables. Fix available contents comparision.
9246 * value.h (value_available_contents_eq): Extend describing
9247 comment.
9248
60bbf338
YQ
92492011-02-16 Yao Qi <yao@codesourcery.com>
9250
9251 * thread.c (info_threads_command): Add missing i18n markup and remove
9252 trailing newline.
9253
17450429
PP
92542011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9255
9256 * breakpoint.c (longjmp_names): New variable.
9257 (struct breakpoint_objfile_data): New type.
9258 (breakpoint_objfile_key): New variable.
9259 (msym_not_found): New variable.
9260 (msym_not_found_p): New predicate.
9261 (get_breakpoint_objfile_data): New function.
9262 (create_overlay_event_breakpoint): Check per-objfile cache for
9263 symbols first.
9264 (create_longjmp_master_breakpoint): Likewise.
9265 (create_std_terminate_master_breakpoint): Likewise.
9266 (create_exception_master_breakpoint): Likewise.
9267 (_initialize_breakpoint): Register per-objfile data key.
9268
af02033e
PP
92692011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9270
9271 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9272 parameter value.
9273 (create_longjmp_master_breakpoint): Loop over longjmp names.
9274 (create_std_terminate_master_breakpoint): Const-propagate parameter
9275 value.
9276 (update_breakpoints_after_exec): Adjust.
9277 (breakpoint_re_set): Adjust.
9278
60f98dde
MS
92792011-02-15 Michael Snyder <msnyder@vmware.com>
9280
cdf99611
MS
9281 * thread.c (info_threads_command): Process arg as thread id,
9282 or list of thread ids.
9283 (thread_find_command): New command.
9284 (_initialize_thread): Document argument for info threads.
9285 Document 'thread find' command.
9286 * NEWS: Document new command "thread find".
60f98dde 9287
0feedb2c
JK
92882011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9289
9290 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9291 * aclocal.m4: Regenerated with aclocal-1.11.1.
9292 * common/configure: Regenerate with autoconf-2.64.
9293
648cd113
KW
92942011-02-15 Ken Werner <ken.werner@de.ibm.com>
9295
9296 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9297 bool data type to a size of one byte.
9298
5657161f
PA
92992011-02-15 Pedro Alves <pedro@codesourcery.com>
9300 Jan Kratochvil <jan.kratochvil@redhat.com>
9301
9302 * target.c (memory_xfer_live_readonly_partial): Document where to
9303 look for interface description.
9304
494e194e
YQ
93052011-02-15 Yao Qi <yao@codesourcery.com>
9306
9307 PR tdep/12352
9308 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9309 order to store PC value on stack instead of text section.
9310
d9492458
TJB
93112011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9312
9313 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9314 the EFP register set size.
9315 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9316 data from the VMX register.
9317 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9318 and write data from/to the VMX register.
9319
cdf99611
MS
93202011-02-14 Michael Snyder <msnyder@vmware.com>
9321
9322 * command.h (enum command_class): New class 'no_set_class', for
9323 "show" commands without a corresponding "set" command.
9324 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9325 * copying.c (_initialize_copying): Ditto for "show copying" and
9326 "show warranty".
9327 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9328 "show version".
9329 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9330 which there is no corresponding "set" command (eg. "show copying").
9331
424447ee
PA
93322011-02-14 Pedro Alves <pedro@codesourcery.com>
9333 Jan Kratochvil <jan.kratochvil@redhat.com>
9334
9335 * exec.c (section_table_available_memory): Change `len' parameter
9336 type to ULONGEST.
9337 * exec.h (section_table_available_memory): Ditto.
9338 * value.h (read_value_memory): Rename the `offset' parameter to
9339 `embedded_offset'.
9340
c0f61f9c 93412011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9342 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9343
9344 * memrange.c (compare_mem_ranges): Mention sort order in
9345 describing comment.
9346 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9347 * tracepoint.c (traceframe_available_memory): Extend comment to
9348 mention what happens to RESULT when the target does not support
9349 the query.
9350
6bfc80c7
PA
93512011-02-14 Pedro Alves <pedro@codesourcery.com>
9352 Jan Kratochvil <jan.kratochvil@redhat.com>
9353
9354 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9355 range.
9356
e7303042
PA
93572011-02-14 Pedro Alves <pedro@codesourcery.com>
9358
9359 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9360 No longer handle NULL values.
9361
8af8e3bc
PA
93622011-02-14 Pedro Alves <pedro@codesourcery.com>
9363
9364 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9365 * value.c: Include "exceptions.h".
9366 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9367 generic error.
9368 * cp-abi.c: Include gdb_assert.h.
9369 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9370 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9371 errors.
9372 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9373 parameters. No longer returns -1 on error.
9374 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9375 `val' parameters.
9376 * cp-valprint.c: Include exceptions.h.
9377 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9378 the baseclass_offset. Handle unavailable base classes. Use
9379 val_print_invalid_address.
9380 * p-valprint.c: Include exceptions.h.
9381 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9382 when fetching the baseclass_offset. No longer expect
9383 baseclass_offset returning -1. Handle unavailable base classes.
9384 Use val_print_invalid_address.
9385 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9386 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9387 `embedded_offset' and `val' parameters. Adjust.
9388 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9389 parameter, and change its type to gdb_byte pointer. Add
9390 `embedded_offset' and `val' parameters. Adjust. No longer expect
9391 baseclass_offset returning -1.
9392 (value_dynamic_cast): Use value_contents_for_printing rather than
9393 value_contents. Adjust.
9394 (search_struct_field): No longer expect baseclass_offset returning
9395 -1.
9396 (search_struct_method): If reading memory from the target is
9397 necessary, wrap it in a new value to pass to baseclass_offset. No
9398 longer expect baseclass_offset returning -1.
9399 (find_method_list): No longer expect baseclass_offset returning
9400 -1. Use value_contents_for_printing rather than value_contents.
9401 * valprint.c (val_print_invalid_address): New function.
9402 * valprint.h (val_print_invalid_address): Declare.
9403 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9404 and `val' parameters. No longer expect baseclass_offset returning
9405 -1. Adjust.
9406 * gnu-v2-abi.c: Include "exceptions.h".
9407 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9408 parameters. Handle unavailable memory. Recurse through
9409 gnuv2_baseclass_offset directly, rather than through
9410 baseclass_offset. No longer returns -1 on not found, instead
9411 throw an error.
9412 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9413 `val' parameters. Adjust.
9414
1b28d0b3
PA
94152011-02-14 Pedro Alves <pedro@codesourcery.com>
9416
9417 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9418 almost but not quite adjacent.
9419
ec0a52e1
PA
94202011-02-14 Pedro Alves <pedro@codesourcery.com>
9421
9422 * value.h (value_entirely_available): Declare.
9423 * value.c (value_entirely_available): New function.
9424 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9425 real type if the pointer is unavailable.
9426
24e6bcee
PA
94272011-02-14 Pedro Alves <pedro@codesourcery.com>
9428
9429 * valops.c (value_repeat): Use read_value_memory instead of
9430 read_memory.
9431
39d37385
PA
94322011-02-14 Pedro Alves <pedro@codesourcery.com>
9433
9434 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9435 * value.c (value_contents_copy_raw, value_contents_copy): New
9436 functions.
9437 (value_primitive_field): Use value_contents_copy_raw instead of
9438 memcpy.
9439 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9440 memcpy.
9441 (value_array, value_slice): Ditto.
9442 * valarith.c (value_subscripted_rvalue): Use
9443 value_contents_copy_raw instead of memcpy.
9444
a3d34bf4
PA
94452011-02-14 Pedro Alves <pedro@codesourcery.com>
9446
9447 <unavailable> references.
9448
9449 * valops.c (get_value_at): Use value_from_contents_and_address,
9450 avoiding read_memory.
9451
9fc6d940
PA
94522011-02-14 Pedro Alves <pedro@codesourcery.com>
9453
9454 * c-valprint.c (c_val_print): Print a string with unavailable
9455 contents as an array.
9456
5467c6c8
PA
94572011-02-14 Pedro Alves <pedro@codesourcery.com>
9458
9459 * value.h (unpack_bits_as_long): Delete declaration.
9460 (unpack_value_bits_as_long): Declare.
9461 (unpack_value_field_as_long): Declare.
9462 (value_field_bitfield): Declare.
9463 * value.c (unpack_bits_as_long): Rename to...
9464 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9465 value parameters. Return the extracted result in a new output
9466 parameter. If the value contents are unavailable, return false,
9467 otherwise return true.
9468 (unpack_value_bits_as_long): New.
9469 (unpack_field_as_long): Rename to...
9470 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9471 Add embedded_offset and value parameters. Return the extracted
9472 result in a new output parameter. If the value contents are
9473 unavailable, return false, otherwise return true.
9474 (unpack_value_field_as_long): New.
9475 (unpack_field_as_long_1): New.
9476 (unpack_field_as_long): Reimplement as wrapper around
9477 unpack_value_field_as_long_1.
9478 (value_field_bitfield): New function.
9479 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9480 unpack_value_bits_as_long. Mark the value as unavailable, if it
9481 is unavailable.
9482 * jv-valprint.c (java_print_value_fields): Use
9483 value_field_bitfield.
9484 * p-valprint.c (pascal_object_print_value_fields): Use
9485 value_field_bitfield.
9486 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9487
3158c6ed
PA
94882011-02-14 Pedro Alves <pedro@codesourcery.com>
9489
9490 * value.c (get_internalvar_integer): Also return the int value of
9491 TYPE_CODE_INT INTERNALVAR_VALUE values.
9492 (set_internalvar): Don't special case TYPE_CODE_INT.
9493
9fbdca0d
PA
94942011-02-14 Pedro Alves <pedro@codesourcery.com>
9495
9496 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9497 INTERNALVAR_POINTER.
9498 <pointer>: Delete.
9499 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9500 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9501 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9502
c8c1c22f
PA
95032011-02-14 Pedro Alves <pedro@codesourcery.com>
9504
9505 * value.h (value_available_contents_eq): Declare.
9506 * value.c (find_first_range_overlap): New function.
9507 (value_available_contents_eq): New function.
9508 * valprint.c (val_print_array_elements): Use
9509 value_available_contents_eq.
9510 * ada-valprint.c (val_print_packed_array_elements): Use
9511 value_available_contents_eq.
9512 * jv-valprint.c (java_value_print): Use
9513 value_available_contents_eq.
9514
e6e4e701
PA
95152011-02-14 Pedro Alves <pedro@codesourcery.com>
9516
9517 * target.c (target_read_live_memory): New function.
9518 (memory_xfer_live_readonly_partial): New.
9519 (memory_xfer_partial): If reading from a traceframe, fallback to
9520 reading unavailable read-only memory from read-only regions of
9521 live target memory.
9522 * tracepoint.c (disconnect_tracing): Adjust.
9523 (set_current_traceframe): New, factored out from
9524 set_traceframe_number.
9525 (set_traceframe_number): Reimplement to only change the traceframe
9526 number on the GDB side.
9527 (do_restore_current_traceframe_cleanup): Adjust.
9528 (make_cleanup_restore_traceframe_number): New.
9529 (cur_traceframe_number): New global.
9530 (tfile_open): Set cur_traceframe_number to no traceframe.
9531 (set_tfile_traceframe): New function.
9532 (tfile_trace_find): If looking up a traceframe using any method
9533 other than by number, make sure the current tfile traceframe
9534 matches gdb's current traceframe. Update the current tfile
9535 traceframe if the lookup succeeded.
9536 (tfile_fetch_registers, tfile_xfer_partial)
9537 (tfile_get_trace_state_variable_value): Make sure the remote
9538 traceframe matches gdb's current traceframe.
9539 * remote.c (remote_traceframe_number): New global.
9540 (remote_open_1): Set it to -1.
9541 (set_remote_traceframe): New function.
9542 (remote_fetch_registers, remote_store_registers)
9543 (remote_xfer_memory, remote_xfer_partial)
9544 (remote_get_trace_state_variable_value): Make sure the remote
9545 traceframe matches gdb's current traceframe.
9546 (remote_trace_find): If looking up a traceframe using any method
9547 other than by number, make sure the current remote traceframe
9548 matches gdb's current traceframe. Update the current remote
9549 traceframe if the lookup succeeded.
9550 * infrun.c (fetch_inferior_event): Adjust.
9551 * tracepoint.h (set_current_traceframe): Declare.
9552 (get_traceframe_number, set_traceframe_number): Add describing
9553 comments.
9554
e6ca34fc
PA
95552011-02-14 Pedro Alves <pedro@codesourcery.com>
9556
9557 Mark pieces of values as unavailable if the corresponding memory
9558 is unavailable.
9559
9560 * valops.c: Include tracepoint.h.
9561 (value_fetch_lazy): Use read_value_memory.
9562 (read_value_memory): New.
9563 * value.h (read_value_memory): Declare.
9564 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9565 * exec.c (section_table_available_memory): New function.
9566 * exec.h (section_table_available_memory): Declare.
9567
2a7498d8
PA
95682011-02-14 Pedro Alves <pedro@codesourcery.com>
9569
9570 * Makefile.in (SFILES): Add memrange.c.
9571 (HFILES_NO_SRCDIR): Add memrange.h.
9572 (COMMON_OBS): Add memrange.o.
9573 * memrange.c: New file.
9574 * memrange.h: New file.
9575 * tracepoint.c: Include memrange.h.
9576 (struct mem_range): Delete.
9577 (mem_range_s): Delete.
9578 (traceframe_available_memory): New function.
9579 * tracepoint.h (traceframe_available_memory): Declare.
9580
b3b9301e
PA
95812011-02-14 Pedro Alves <pedro@codesourcery.com>
9582
9583 * target.h (struct traceframe_info): Forward declare.
9584 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9585 (struct target_ops) <to_traceframe_info>: New field.
9586 (target_traceframe_info): New.
9587 * target.c (update_current_target): Inherit and default
9588 to_traceframe_info.
9589 * remote.c (PACKET_qXfer_traceframe_info): New.
9590 (remote_protocol_features): Register qXfer:traceframe-info:read.
9591 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9592 (remote_traceframe_info): New.
9593 (init_remote_ops): Install it.
9594 (_initialize_remote): Install "set/show remote traceframe-info"
9595 commands.
9596 * tracepoint.h (parse_traceframe_info): Declare.
9597 * tracepoint.c (struct mem_range): New.
9598 (mem_range_s): New typedef.
9599 (struct traceframe_info): New.
9600 (traceframe_info): New global.
9601 (free_traceframe_info): New function.
9602 (clear_traceframe_info): New function.
9603 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9604 info.
9605 (build_traceframe_info): New function.
9606 (tfile_traceframe_info): New function.
9607 (init_tfile_ops): Install tfile_traceframe_info.
9608 (traceframe_info_start_memory, free_result): New functions.
9609 (memory_attributes, traceframe_info_elements): New globals.
9610 (parse_traceframe_info, get_traceframe_info): New functions.
9611 * features/traceframe-info.dtd: New file.
9612 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9613
4e07d55f
PA
96142011-02-14 Pedro Alves <pedro@codesourcery.com>
9615
9616 Base support for <unavailable> value contents.
9617
4e07d55f
PA
9618 * value.h (value_bytes_available): Declare.
9619 (mark_value_bytes_unavailable): Declare.
9620 * value.c (struct range): New struct.
9621 (range_s): New typedef.
9622 (ranges_overlap): New function.
9623 (range_lessthan): New function.
9624 (ranges_contain_p): New function.
9625 (struct value) <unavailable>: New field.
9626 (value_bytes_available): New function.
9627 (mark_value_bytes_unavailable): New function.
9628 (require_not_optimized_out): Constify parameter.
9629 (require_available): New function.
9630 (value_contents_all, value_contents): Require all bytes be
9631 available.
9632 (value_free): Free `unavailable'.
9633 (value_copy): Copy `unavailable'.
9634 * valprint.h (val_print_unavailable): Declare.
9635 * valprint.c (valprint_check_validity): Rename `offset' parameter
9636 to `embedded_offset'. If printing a scalar, check whether the
9637 value chunk is available.
9638 (val_print_unavailable): New.
9639 (val_print_scalar_formatted): Check whether the value is
9640 available.
9641 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9642 pretty-printing unavailable values.
9643
bc9a5551
JK
96442011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9645
9646 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9647 * c-typeprint.c (c_type_print_args): Update the function comment. New
9648 variable param_type, initialize it. Remove const/volatile qualifiers
9649 for language_cplus and !show_artificial. Use param_type.
9650
93b55aa1
JK
96512011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9652
9653 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9654 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9655 * symtab.h (struct symtab) <next>: Comment extension.
9656
181d9476
YQ
96572011-02-12 Yao Qi <yao@codesourcery.com>
9658
9659 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9660
b708a5c7
JK
96612011-02-11 Yao Qi <yao@codesourcery.com>
9662
9663 * common/Makefile.in: Add copyright header.
9664
c5187ac6
PA
96652011-02-11 Pedro Alves <pedro@codesourcery.com>
9666
9667 * infrun.c (proceed): Move switching out and in of tfind mode from
9668 here ...
9669 (fetch_inferior_event): ... to here.
9670
4f3e6fb7
YQ
96712011-02-11 Yao Qi <yao@codesourcery.com>
9672
9673 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9674 libcommon.a.
9675 * configure.ac: Add common to sub dir.
9676 * configure: Regenerate.
9677
b708a5c7
JK
96782011-02-11 Yao Qi <yao@codesourcery.com>
9679
9680 Build libcommon.a.
9681
9682 * common/Makefile.in: New.
9683 * common/configure.ac: New.
9684 * common/aclocal.m4: New.
9685 * common/configure: Generate.
9686
2287cc7e
PA
96872011-02-10 Pedro Alves <pedro@codesourcery.com>
9688
9689 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9690 side of the parenthesis.
9691
9692 Merge from GCC:
9693 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9694 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9695
fd62cb89
MS
96962011-02-08 Michael Snyder <msnyder@vmware.com>
9697
9698 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9699
56d2815c
JK
97002011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9703 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9704 psubd and paddd.
9705
4f7d61a8
JK
97062011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9707
9708 PR 12361.
9709 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9710 phsubsw.
9711 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9712 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9713
54fcddd0
UW
97142011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9715
9716 * dwarf2read.c (read_subroutine_type): Set special calling
9717 convention flag for functions compiled by IBM XL C for OpenCL.
9718 * ppc-sysv-tdep.c: Include "dwarf2.h"
9719 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9720 calling convention.
9721 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9722 IBM OpenCL vector types calling convention.
9723 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9724 (ppc_sysv_abi_broken_return_value): Likewise.
9725 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9726 types calling convention.
9727 (ppc64_sysv_abi_return_value): Likewise.
9728 * spu-tdep.c: Include "dwarf2.h"
9729 (spu_return_value): Implement IBM OpenCL vector types calling
9730 convention.
9731
d6dafb7c
UW
97322011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9733
9734 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9735 correct ABI for AltiVec vector arguments.
9736
32b72a42
PA
97372011-02-07 Pedro Alves <pedro@codesourcery.com>
9738
9739 * valprint.c (val_print): Extend comment.
9740 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9741 interface explanation to val_print.
9742 (ada_val_print_array): Adjust comment to current interface.
9743 (print_field_values): Adjust comment to current interface.
9744 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9745 explanation to val_print.
9746 * f-valprint.c (f_val_print): Ditto.
9747 * jv-valprint.c (java_val_print): Ditto.
9748 * m2-valprint.c (m2_val_print): Ditto.
9749 * p-valprint.c (pascal_val_print): Ditto.
9750
9998af43
TJB
97512011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9752
9753 * breakpoint.c (parse_breakpoint_sals): Fix description.
9754
505500db 97552011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9756 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9757
9758 * python/py-inferior.c (python_on_normal_stop): New function.
9759 (python_on_resume): New function.
9760 (python_inferior_exit): New function.
9761 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9762 inferior_exit observers.
9763 * python/py-evtregistry.c: New file.
9764 * python/py-threadevent.c : New file.
9765 * python/py-event.c: New file.
9766 * python/py-evts.c: New file.
9767 * python/py-continueevent.c: New file.
9768 * python/py-bpevent.c: New file.
9769 * python/py-signalevent.c: New file.
9770 * python/py-exetiedevent.c: New file.
9771 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9772 Move struct breakpoint_object from here...
9773 * python/python-internal.h: ... to here.
9774 * python/py-event.h: New file.
9775 * python/py-events.h: New file.
9776 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9777 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9778 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9779 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9780 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9781 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9782 Add build rules for all the above.
9783
9e0ac564
TT
97842011-02-04 Tom Tromey <tromey@redhat.com>
9785
9786 * dwarf2read.c (dwarf2_section_empty_p): New function.
9787 (dwarf2_read_section): Use dwarf2_section_empty_p.
9788 (dwarf2_section_size): New function.
9789 (dwarf2_get_section_info): Unconditionally read section.
9790 (dwarf2_read_index): Use dwarf2_section_empty_p.
9791 (partial_read_comp_unit_head): Use dwarf2_section_size.
9792 (dwarf2_symbol_mark_computed): Likewise.
9793
eee5b35e
DD
97942011-02-04 David Daney <ddaney@caviumnetworks.com>
9795
9796 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9797
385203ed
DD
97982011-02-04 David Daney <ddaney@caviumnetworks.com>
9799
9800 * mips-linux-tdep.c: Include xml-syscall.h.
9801 (mips_linux_get_syscall_number): New function.
9802 (mips_linux_init_abi): Add calls to
9803 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9804 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9805 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9806 * syscalls/mips-n32-linux.xml: New file.
9807 * syscalls/mips-n64-linux.xml: New file.
9808 * syscalls/mips-o32-linux.xml: New file.
9809
9277c30c
UW
98102011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9811
9812 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9813 Complain about inverted range entries.
9814 (dwarf2_record_block_ranges): Likewise.
9815
a3be7890
TJB
98162011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9817
9818 Fix some typos.
9819 * breakpoint.c (update_watchpoint): Fix name of the
9820 update_global_location_list function.
9821 (print_one_breakpoint): Fix typo.
9822 (_initialize_breakpoint): Remove extra space in hbreak help
9823 string.
9824 * breakpoint.h (struct bp_location) <length>: Fix field
9825 description.
9826
041274d8
PA
98272011-02-04 Pedro Alves <pedro@codesourcery.com>
9828
9829 * regcache.c (registers_changed_ptid): Don't explictly always
9830 clear `current_regcache'. Only clear current_thread_ptid and
9831 current_thread_arch when PTID matches. Only reinit the frame
9832 cache if PTID matches the current inferior_ptid. Move alloca(0)
9833 call to ...
9834 (registers_changed): ... here.
9835
c1c2ab58
UW
98362011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9837
9838 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9839 starts with __stack_chk_guard as stack guard symbol.
9840
9011945e
AB
98412011-02-03 Andrew Burgess <aburgess@broadcom.com>
9842
9843 * disasm.c (compare_lines): Handle the end of sequence markers
9844 within the line table to better support disassembling over
9845 compilation unit boundaries.
9846
e0634ccf
UW
98472011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9848
9849 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9850 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9851 implementation even if no symbols are available.
9852 (thumb_analyze_prologue): Update call to skip_prologue_function.
9853 (arm_analyze_prologue): Likewise.
9854
0e9e9abd
UW
98552011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9856
9857 * arm-tdep.c: Include "observer.h".
9858 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9859 (arm_exidx_data_key): New static variable.
9860 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9861 (struct arm_exidx_data): Likewise.
9862 (arm_exidx_data_free): New function.
9863 (arm_compare_exidx_entries): Likewise.
9864 (arm_obj_section_from_vma): Likewise.
9865 (arm_exidx_new_objfile): Likewise.
9866 (arm_find_exidx_entry): Likewise.
9867 (arm_exidx_fill_cache): Likewise.
9868 (arm_exidx_unwind_sniffer): Likewise.
9869 (arm_exidx_unwind): New global variable.
9870 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9871 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9872 observer. Register arm_exidx_data_key as objfile data.
9873
2e9e421f
UW
98742011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9875
9876 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9877 due to accessing uninitialized variable. Fix indentation.
9878
580688f3
PA
98792011-02-02 Pedro Alves <pedro@codesourcery.com>
9880
9881 * c-valprint.c (c_value_print): When doing virtual base pointer
9882 adjustment, create a new value with adjusted contents rather than
9883 changing the contents of the value being printed (and getting it
9884 wrong).
9885
3d2c1d41
PA
98862011-02-02 Pedro Alves <pedro@codesourcery.com>
9887
9888 * xml-support.c (xml_find_attribute): New.
9889 (xinclude_start_include): Use it.
9890 * xml-support.h (xml_find_attribute): Declare.
9891 * memory-map.c (memory_map_start_memory)
9892 (memory_map_start_property): Use xml_find_attribute.
9893 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9894 xml_find_attribute.
9895 * remote.c (start_thread): Use xml_find_attribute.
9896 * solib-target.c (library_list_start_segment)
9897 (library_list_start_section, library_list_start_library)
9898 (library_list_start_list): Use xml_find_attribute.
9899 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9900 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9901 (tdesc_start_field): Use xml_find_attribute.
9902
0af3e2db
UW
99032011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9904
9905 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9906 (BUILD_OCL_VTYPES): Update.
9907
c1039e3c
JB
99082011-02-02 Joel Brobecker <brobecker@adacore.com>
9909
9910 * configure.ac: Work around non-GNU sed limitation when computing
9911 python version number.
9912 * configure: Regenerate.
9913
600ea1be
JK
99142011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9915
9916 Fix debug printing of TYPE_INSTANCE.
9917 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9918 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9919
56c12414
JK
99202011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9921
9922 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9923 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9924 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9925 * ada-operator.inc: Rename the file to ...
9926 * ada-operator.def: ... here, wrap all the entries by macro OP.
9927 * expprint.c (op_name_standard): Remove all the entries. Include
9928 "std-operator.def" instead.
9929 * expression.h (enum exp_opcode): Include "std-operator.def" and
9930 "ada-operator.def". Move all the entries ...
9931 * std-operator.def: ... here, wrap all the entries by macro OP.
9932
c52b559d
PP
99332011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9934
9935 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9936 * breakpoint.c (remove_jit_event_breakpoints): New function.
9937 * jit.c (jit_descriptor_addr): Delete.
9938 (registering_code): Delete.
9939 (clear_int): Delete.
9940 (jit_inferior_data): New variable.
9941 (struct jit_inferior_data): New type.
9942 (get_jit_inferior_data): New function.
9943 (jit_inferior_data_cleanup): New function.
9944 (jit_read_descriptor): Adjust.
9945 (jit_register_code): Adjust.
9946 (jit_breakpoint_re_set_internal): New function; move code here ...
9947 (jit_inferior_init): ... from here.
9948 (jit_breakpoint_re_set): Adjust.
9949 (jit_reset_inferior_data_and_breakpoints): New function.
9950 (jit_inferior_created_observer): Adjust.
9951 (jit_inferior_exit_hook): Adjust.
9952 (jit_executable_changed_observer): New function.
9953 (jit_event_handler): Adjust.
9954 (_initialize_jit): Adjust.
9955
e839132d
MS
99562011-01-31 Michael Snyder <msnyder@vmware.com>
9957
9958 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9959 line.
9960
47a80e90
TT
99612011-01-31 Tom Tromey <tromey@redhat.com>
9962
9963 PR python/12216:
9964 * python/python.c (execute_gdb_command): Call
9965 prevent_dont_repeat.
9966 * top.c (suppress_dont_repeat): New global.
9967 (dont_repeat): Use it.
9968 (prevent_dont_repeat): New function.
9969 * command.h (prevent_dont_repeat): Declare.
9970
45a43567
TT
99712011-01-31 Tom Tromey <tromey@redhat.com>
9972
9973 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9974 * python/py-breakpoint.c (bppy_set_silent): Use
9975 breakpoint_set_silent.
9976 (bppy_set_thread): Use breakpoint_set_thread.
9977 (bppy_set_task): Use breakpoint_set_task.
9978 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9979 (breakpoint_set_task): Declare.
9980 (make_breakpoint_silent): Remove.
9981 * breakpoint.c (breakpoint_set_silent): New function.
9982 (breakpoint_set_thread): Likewise.
9983 (breakpoint_set_task): Likewise.
9984 (make_breakpoint_silent): Remove.
9985
09d682a4
TT
99862011-01-31 Tom Tromey <tromey@redhat.com>
9987
9988 * breakpoint.h (user_breakpoint_p): Declare.
9989 * breakpoint.c (user_breakpoint_p): New function.
9990 (breakpoint_1): Use it.
9991 (save_breakpoints): Likewise.
9992
9c4ea6c5
JB
99932011-01-31 Joel Brobecker <brobecker@adacore.com>
9994
9995 * configure.ac: Add handling of Python distribution on Windows.
9996 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9997 sysconfig variables are not defined, then do not use them.
9998 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9999 instead. On Windows, return all paths using forward-slashes
10000 rather than backslashes.
10001
ac534cba
JB
100022011-01-31 Joel Brobecker <brobecker@adacore.com>
10003
10004 * configure.ac: Remove fallback behavior for building
10005 against Python. Remove tweaking of Python include path.
10006 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10007 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10008 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10009 Always restore CPPFLAGS and LIBS after linking test.
10010 * configure: Regenerated.
10011 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10012 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10013 * python/python-internal.h: Adjust includes of Python .h files.
10014
c2f0d045
JB
100152011-01-31 Joel Brobecker <brobecker@adacore.com>
10016
10017 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10018 in error message.
10019
6b0c4c1f
JB
100202011-01-31 Joel Brobecker <brobecker@adacore.com>
10021
10022 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10023 value test.
10024
672c9795
YQ
100252011-01-31 Yao Qi <yao@codesourcery.com>
10026
10027 * arm-linux-nat.c: Update calls to regcache_register_status
10028 instead of regcache_valid_p.
10029 * aix-thread.c: Likewise.
10030 * i386gnu-nat.c: Likewise.
10031
80b23b6a
JK
100322011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10033
10034 Fix crash.
10035 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10036 touching TYPE_FIELD_ARTIFICIAL.
10037
4cd712bd
RE
100382011-01-28 Richard Earnshaw <rearnsha@arm.com>
10039
10040 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10041 Committers.
10042
ffd5ec24
PA
100432011-01-28 Pedro Alves <pedro@codesourcery.com>
10044
10045 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10046 selected, don't try iterating over the traceframe's blocks.
10047 (tfile_has_stack): If there's no traceframe selected, then there's
10048 no stack.
10049 (tfile_has_registers): If there's no traceframe selected, then
10050 there's no registers.
10051
e8c9e0a1
PA
100522011-01-28 Pedro Alves <pedro@codesourcery.com>
10053
10054 * target.c (memory_xfer_partial): No need to restore shadows if we
10055 haven't read anything.
10056
de15c4ab
PA
100572011-01-28 Pedro Alves <pedro@codesourcery.com>
10058
10059 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10060 and val_print_scalar_formatted.
10061
9f41c731
PA
100622011-01-27 Pedro Alves <pedro@codesourcery.com>
10063
10064 * tracepoint.c (tfile_read): New.
10065 (tfile_open): Use it.
10066 (tfile_get_traceframe_address): Use it.
10067 (tfile_trace_find): Use it.
10068 (walk_blocks_callback_func): New typedef.
10069 (match_blocktype): New function.
10070 (traceframe_walk_blocks): New function.
10071 (traceframe_find_block_type): New function.
10072 (tfile_fetch_registers, tfile_xfer_partial)
10073 (tfile_get_trace_state_variable_value): Use
10074 traceframe_find_block_type and tfile_read.
10075
cdefc55d
KB
100762011-01-26 Kevin Buettner <kevinb@redhat.com>
10077
10078 * remote-mips.c: Add internationalization mark ups. Remove
10079 trailing \n from already marked up strings.
10080
a81766d8
TT
100812011-01-26 Tom Tromey <tromey@redhat.com>
10082
10083 * python/py-prettyprint.c (print_string_repr): Clear
10084 'addressprint' option when calling val_print_string.
10085 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10086 option when calling val_print_string.
10087
74aedc46
TT
100882011-01-26 Tom Tromey <tromey@redhat.com>
10089
10090 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10091 GDB_PY_LL_ARG.
10092 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10093 macros.
10094 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10095 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10096 (gdb_py_long_as_ulongest): New defines.
10097 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10098 (gdb_py_int_as_long): Declare.
10099 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10100 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10101 (valpy_long): Add comment.
10102 * python/py-utils.c (get_addr_from_python): Use
10103 gdb_py_long_as_ulongest. Handle overflow properly.
10104 (gdb_py_object_from_longest): New function.
10105 (gdb_py_object_from_ulongest): Likewise.
10106 (gdb_py_int_as_long): Likewise.
10107 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10108 * python/py-symtab.c (salpy_get_pc): Use
10109 gdb_py_long_from_ulongest.
10110 (salpy_get_line): Use PyInt_FromLong.
10111 * python/py-param.c (set_parameter_value): Use
10112 gdb_py_int_as_long.
10113 * python/py-lazy-string.c (stpy_get_address): Use
10114 gdb_py_long_from_ulongest.
10115 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10116 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10117 * python/py-breakpoint.c (bppy_set_thread): Use
10118 gdb_py_int_as_long.
10119 (bppy_set_task): Likewise.
10120 (bppy_set_ignore_count): Likewise.
10121 (bppy_set_hit_count): Likewise.
10122 * python/py-block.c (blpy_get_start): Use
10123 gdb_py_object_from_ulongest.
10124 (blpy_get_end): Likewise.
10125 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10126
e4f6d2ec
TJB
101272011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10128
10129 PR/symtab 11766:
10130 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10131 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10132 equality test for objfile, initialize addr_low if needed.
10133
b30aa278
PA
101342011-01-25 Pedro Alves <pedro@codesourcery.com>
10135
10136 * tui/tui-regs.c (tui_register_format): Remove dead code.
10137
ab2188aa
PA
101382011-01-25 Pedro Alves <pedro@codesourcery.com>
10139
10140 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10141 instead of print_scalar_formatted.
10142 (print_scalar_formatted): Don't handle 's' format strings here,
10143 and add an assertion that we never see such format here.
10144 * valprint.h (val_print_scalar_formatted): Declare.
10145 * valprint.c (val_print_scalar_formatted): New.
10146 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10147 instead of print_scalar_formatted.
10148 * jv-valprint.c (java_val_print): Ditto.
10149 * p-valprint.c (pascal_val_print): Ditto.
10150 * ada-valprint.c (ada_val_print_1): Ditto.
10151 * f-valprint.c (f_val_print): Ditto.
10152 * infcmd.c (registers_info): Ditto.
10153 * m2-valprint.c (m2_val_print): Ditto.
10154
66d61a4c
PA
101552011-01-25 Pedro Alves <pedro@codesourcery.com>
10156
10157 * m2-valprint.c (print_unbounded_array): Pass
10158 value_contents_for_printing rather than value_contents, to
10159 m2_print_array_contents. Also pass in the value.
10160
831adc1f
JK
101612011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10162
10163 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10164 (save_gdb_index_command): Switch to .gdb_index version 4.
10165
20622269
PA
101662011-01-25 Pedro Alves <pedro@codesourcery.com>
10167
10168 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10169 than frame_register, and always pass a valid value to val_print.
10170
585fdaa1
PA
101712011-01-25 Pedro Alves <pedro@codesourcery.com>
10172
10173 Centralize printing "<optimized out>".
10174
10175 * valprint.h (val_print_optimized_out): Declare.
10176 * cp-valprint.c (cp_print_value_fields): Use
10177 val_print_optimized_out.
10178 * jv-valprint.c (java_print_value_fields): Ditto.
10179 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10180 * printcmd.c (print_formatted): Ditto.
10181 * valprint.c (valprint_check_validity): Ditto.
10182 (value_check_printable): Ditto.
10183 (val_print_optimized_out): New.
10184
29ec5263
PA
101852011-01-25 Pedro Alves <pedro@codesourcery.com>
10186
10187 * infcmd.c (default_print_registers_info): Allocate values so to
10188 never pass a NULL value to val_print.
10189
de4127a3
PA
101902011-01-25 Pedro Alves <pedro@codesourcery.com>
10191
10192 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10193 boolean. Make sure to always pass a value that matches the
10194 contents buffer to callees. Preserve `address' for following
10195 iterations.
10196 * value.c (value_contents_for_printing_const): New.
10197 (value_address): Constify value argument.
10198 * value.h (value_contents_for_printing_const): Declare.
10199 (value_address): Constify value argument.
10200
ee99023e
PA
102012011-01-25 Pedro Alves <pedro@codesourcery.com>
10202
10203 * regcache.c (struct regcache_descr): Rename
10204 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10205 and sizeof_cooked_register_valid_p to
10206 sizeof_cooked_register_status.
10207 (init_regcache_descr): Adjust.
10208 (struct regcache): Rename register_valid_p field to
10209 register_status.
10210 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10211 (do_cooked_read): Adjust.
10212 (regcache_valid_p): Rename to ...
10213 (regcache_register_status): ... this. Adjust.
10214 (regcache_invalidate): Adjust.
10215 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10216 Adjust.
10217 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10218 as unavailable, not valid.
10219 (regcache_dump): Adjust.
10220 * regcache.h (enum register_status): New.
10221 (regcache_register_status): Declare.
10222 (regcache_invalidate): Delete declaration.
10223 * corelow.c (get_core_registers): Adjust.
10224 * tracepoint.c (tfile_fetch_registers): Adjust.
10225 * trad-frame.c (REG_VALUE): Rename to ...
10226 (TF_REG_VALUE): ... this.
10227 (REG_UNKNOWN): Rename to ...
10228 (TF_REG_UNKNOWN): ... this.
10229 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10230 * mi/mi-main.c (register_changed_p): Adjust.
10231
99e42fd8
PA
102322011-01-25 Pedro Alves <pedro@codesourcery.com>
10233
10234 * regcache.c (struct regcache_descr): Remove outdated comment.
10235 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10236 overallocate hack.
10237 (regcache_xmalloc): Rename to ...
10238 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10239 Allocate the regcache type accordingly.
10240 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10241 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10242 cooked registers, not raw.
10243 (regcache_dup_no_passthrough): Delete.
10244 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10245 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10246 mention obsolete write_register_bytes.
10247 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10248
f7605bc2
PA
102492011-01-25 Pedro Alves <pedro@codesourcery.com>
10250
10251 Stop remote_read_bytes from handling partial reads itself.
10252
10253 * remote-fileio.c: Include target.h.
10254 (remote_fileio_write_bytes): Delete.
10255 (remote_fileio_func_open, remote_fileio_func_write)
10256 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10257 target_read_memory.
10258 (remote_fileio_func_stat): Use target_read_memory and
10259 target_write_memory.
10260 (remote_fileio_func_gettimeofday): Use target_write_memory.
10261 (remote_fileio_func_system): Use target_read_memory.
10262 * remote.c (remote_write_bytes): Make it static.
10263 (remote_read_bytes): Don't handle partial reads here.
10264 * remote.h (remote_read_bytes): Delete declaration.
10265
efc0eabd
PA
102662011-01-25 Pedro Alves <pedro@codesourcery.com>
10267
10268 Simplify XML parsing a bit.
10269
10270 * xml-support.h (gdb_xml_parse_quick): Declare.
10271 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10272 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10273 parameter.
10274 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10275 gdb_xml_create_parser_and_cleanup_1.
10276 (gdb_xml_parse_quick): New.
10277 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10278 * osdata.c (osdata_parse): Ditto.
10279 * remote.c (remote_threads_info): Ditto.
10280 * solib-target.c (solib_target_parse_libraries): Ditto.
10281 * xml-syscall.c (syscall_parse_xml): Ditto.
10282 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10283
314d366a
KB
102842011-01-24 Kevin Buettner <kevinb@redhat.com>
10285
10286 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10287 with remote-mips.o added to gdb_target_obs.
10288 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10289
a491d753
PA
102902011-01-24 Pedro Alves <pedro@codesourcery.com>
10291
10292 * ada-valprint.c (val_print_packed_array_elements): Pass the
10293 correct struct value to val_print.
10294 (ada_val_print_1): Ditto.
10295
490f124f
PA
102962011-01-24 Pedro Alves <pedro@codesourcery.com>
10297
10298 Don't lose embedded_offset in printing routines throughout.
10299
10300 * valprint.h (val_print_array_elements): Change prototype.
10301 * valprint.c (val_print_array_elements): Add `embedded_offset'
10302 parameter, and adjust to pass it down to val_print, while passing
10303 `valaddr' or `address' unmodified. Take embedded_offset into
10304 account when checking repetitions.
10305 * c-valprint.c (c_val_print): Pass embedded_offset to
10306 val_print_array_elements instead of adjusting `valaddr' and
10307 `address'.
10308 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10309 embedded_offset to val_print_array_elements instead of adjusting
10310 `valaddr'.
10311 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10312 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10313 val_print_array_elements and pascal_object_print_value_fields
10314 instead of adjusting `valaddr'.
10315 (pascal_object_print_value_fields): Add `offset' parameter, and
10316 adjust to use it.
10317 (pascal_object_print_value): Add `offset' parameter, and adjust to
10318 use it.
10319 (pascal_object_print_static_field): Use
10320 value_contents_for_printing/value_embedded_offset, rather than
10321 value_contents.
10322 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10323 parameter, and adjust to use it. Use
10324 value_contents_for_printing/value_embedded_offset, rather than
10325 value_contents.
10326 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10327 (ada_val_print_array): Add `offset' parameter, and adjust to use
10328 it.
10329 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10330 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10331 Instead work with offsets. Use
10332 value_contents_for_printing/value_embedded_offset, rather than
10333 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10334 and use value_from_pointer to extract a target pointer, rather
10335 than value_from_longest.
10336 (print_variant_part): Add `offset' parameter. Replace
10337 `outer_valaddr' parameter by a new `outer_offset' parameter.
10338 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10339 (ada_value_print): Use
10340 value_contents_for_printing/value_embedded_offset, rather than
10341 value_contents.
10342 (print_record): Add `offset' parameter, and adjust to pass it
10343 down.
10344 (print_field_values): Add `offset' parameter. Replace
10345 `outer_valaddr' parameter by a new `outer_offset' parameter.
10346 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10347 Use value_contents_for_printing/value_embedded_offset, rather than
10348 value_contents.
10349 * d-valprint.c (dynamic_array_type): Use
10350 value_contents_for_printing/value_embedded_offset, rather than
10351 value_contents.
10352 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10353 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10354 (java_print_value_fields): Take `offset' into account. Don't
10355 re-adjust `valaddr'. Instead pass down adjusted offsets.
10356 (java_val_print): Take `embedded_offset' into account. Pass it to
10357 java_print_value_fields.
10358 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10359 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10360 down adjusted offsets.
10361 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10362 (f_val_print): Take `embedded_offset' into account.
10363
7bfc9434
JB
103642011-01-21 Joel Brobecker <brobecker@adacore.com>
10365
10366 * inflow.c: Include "gdbcmd.h".
10367 (interactive_mode): New static global, moved here from top.c.
10368 (show_interactive_mode): New function, moved here from top.c.
10369 use gdb_has_a_terminal instead of input_from_terminal_p to
10370 determine the current mode.
10371 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10372 setting.
10373 (_initialize_inflow): Add the "set/show interactive-mode"
10374 commands. Moved here from top.c, after having adjusted slightly
10375 the help text.
10376 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10377 to inflow.c.
10378 (input_from_terminal_p): Remove handling of "interactive-mode"
10379 setting, moved to infow.c.
10380 (init_main): Remove creation of the "set/show interactive-mode"
10381 commands, moved to inflow.c.
10382
44603653
JB
103832011-01-19 Joel Brobecker <brobecker@adacore.com>
10384
10385 * NEWS: Add entry for native ia64-hpux support.
10386
4694da01
TT
103872011-01-19 Tom Tromey <tromey@redhat.com>
10388
10389 PR mi/8618:
10390 * thread.c (free_thread): Free 'name'.
10391 (print_thread_info): Emit thread name. Change CLI output.
10392 (thread_name_command): New function.
10393 (do_captured_thread_select): Emit newline.
10394 (_initialize_thread): Register 'thread name' command.
10395 * target.h (struct target_ops) <to_thread_name>: New field.
10396 (target_thread_name): New macro.
10397 * target.c (update_current_target): Handle to_thread_name.
10398 * python/py-infthread.c (thpy_get_name): New function.
10399 (thpy_set_name): Likewise.
10400 (thread_object_getset): Add "name".
10401 * linux-nat.c (linux_nat_thread_name): New function.
10402 (linux_nat_add_target): Set to_thread_name.
10403 * gdbthread.h (struct thread_info) <name>: New field.
10404
10d44370
JB
104052011-01-18 Joel Brobecker <brobecker@adacore.com>
10406
10407 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10408 (ada_val_print_1): Likewise.
10409
e3acb115
JB
104102011-01-18 Joel Brobecker <brobecker@adacore.com>
10411
10412 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10413 upper limit address is not greater than the function end address
10414 when the upper limit could not be computed using the debugging
10415 info.
10416
dc92e161
TT
104172011-01-17 Tom Tromey <tromey@redhat.com>
10418
10419 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10420 get_regcomp_error.
10421 * utils.c: Include gdb_regex.h.
10422 (do_regfree_cleanup): New function.
10423 (make_regfree_cleanup): Likewise.
10424 (get_regcomp_error): Likewise.
10425 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10426
f55af66d
TT
104272011-01-17 Tom Tromey <tromey@redhat.com>
10428
10429 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10430 re_compile_fastmap.
10431
a5a44b53
PM
104322011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10433
10434 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10435 for internal variables.
10436 (last_was_structop): New static variable.
10437 (COMPLETE): New token.
10438 (field_exp): New rule to group all '.' suffix handling.
10439 Add mark_struct_expression calls when approriate to be able
10440 to correctly find fields for completion.
10441 (yylex): Adapt to handle field completion and set INTVAR when
10442 required.
10443
2c291032
YQ
104442011-01-14 Yao Qi <yao@codesourcery.com>
10445
10446 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10447 save_reggroup, restore_reggroup and all_reggroup.
10448
447b483c
JB
104492011-01-14 Joel Brobecker <brobecker@adacore.com>
10450
10451 * ada-valprint. (ada_printchar): Use the correct type length
10452 in call to ada_emit_char.
10453 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10454
7b64a93b
PM
104552011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10456
10457 * solib-som.h (hpux_major_release): Declare variable here.
10458 * solib-som.c: Remove <sys/utsname.h> header.
10459 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10460 (hpux_major_release): Make global, change default value to
10461 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10462 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10463 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10464 Add "solib-som.h" header.
10465 (set_hpux_major_release): New function.
10466 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10467
4e18c053
MF
104682011-01-14 Mike Frysinger <vapier@gentoo.org>
10469
10470 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10471
a9df6b22
JB
104722011-01-14 Joel Brobecker <brobecker@adacore.com>
10473
10474 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10475 new-line at end of warning message.
10476 (ia64_hpux_store_register): Remove trailing new-line at end of
10477 error message.
10478 * ia64-hpux-tdep.c: Rephrase comment.
10479 * solib-ia64-hpux.c (struct dld_info): Change type of field
10480 dld_flags from "long long" to ULONGEST.
10481
ecb956dd
PA
104822011-01-14 Pedro Alves <pedro@codesourcery.com>
10483
10484 * target.h (deprecated_child_ops): Delete declaration.
10485 * target.c (deprecated_child_ops): Delete definition.
10486
76adfcae
PA
104872011-01-14 Pedro Alves <pedro@codesourcery.com>
10488
10489 * Makefile.in (hpux-thread.o): Delete rule.
10490 * configure.ac: Don't check for HPUX DCE threads support.
10491 * configure, config.in: Regenerate.
10492 * hppa-hpux-nat.c (child_suppress_run): Delete.
10493 (hppa_hpux_child_can_run): Delete.
10494 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10495 * hpux-thread.c: Delete.
10496
042e866e
JB
104972011-01-13 Joel Brobecker <brobecker@adacore.com>
10498
10499 * hpux-thread.c (hpux_pid_to_str): Delete.
10500
4ffa5a33
JB
105012011-01-13 Joel Brobecker <brobecker@adacore.com>
10502
10503 * ada-valprint.c (ada_emit_char): Remove strange code.
10504 Check that c is <= UCHAR_MAX before passing it to isascii.
10505 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10506
de8fa76c
JB
105072011-01-13 Joel Brobecker <brobecker@adacore.com>
10508
10509 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10510 to the case where instream is stdin.
10511
c4de7027
JB
105122011-01-13 Joel Brobecker <brobecker@adacore.com>
10513
10514 * ia64-tdep.h (struct regcache): Forward declare.
10515 (struct ia64_infcall_ops): New struct type.
10516 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10517 and "infcall_ops".
10518 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10519 Renames ia64_find_global_pointer.
10520 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10521 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10522 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10523 methods.
10524 (ia64_infcall_ops): New static global constant.
10525 (ia64_gdbarch_init): Set tdep->infcall_ops.
10526 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10527 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10528 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10529 (ia64_hpux_dummy_code): New static global constant.
10530 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10531 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10532 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10533 New function.
10534 (ia64_hpux_infcall_ops): New static global constant.
10535 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10536 for inferior function calls to work properly on ia64-hpux.
10537
77ca787b
JB
105382011-01-13 Joel Brobecker <brobecker@adacore.com>
10539
10540 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10541 * ia64-tdep.h (struct frame_info): forward declaration.
10542 (struct gdbarch_tdep): Add field size_of_register_frame.
10543 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10544 to determine the size of the register frame.
10545 (ia64_size_of_register_frame): New function.
10546 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10547 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10548 (IA64_HPUX_UREG_REASON): New macro.
10549 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10550 New functions.
10551 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10552 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10553 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10554 objects.
10555
92c9a463
JB
105562011-01-13 Joel Brobecker <brobecker@adacore.com>
10557
10558 Add support for ia64-hpux.
10559 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10560 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10561
10562 * configure.host: Add handling for ia64-hpux hosts. Add associated
10563 floatformats.
10564 * configure.tgt: Add handling for ia64-hpux targets.
10565 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10566 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10567 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10568
f688d93f
JB
105692011-01-13 Joel Brobecker <brobecker@adacore.com>
10570
10571 [ttrace] Compute thread list immediately after attach.
10572 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10573 New subprogram.
10574 (inf_ttrace_attach): Use it.
10575
1b89e62f
JB
105762011-01-13 Joel Brobecker <brobecker@adacore.com>
10577
10578 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10579 if we could not determine the frame's function address. Instead,
10580 use the frame's PC, and then continue.
10581
3e5e6e2a
JB
105822011-01-13 Joel Brobecker <brobecker@adacore.com>
10583
10584 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10585 not already defined.
10586
825d6d8a
JB
105872011-01-13 Joel Brobecker <brobecker@adacore.com>
10588
10589 * ia64-tdep.c (ia64_struct_type_p): New function.
10590 (ia64_extract_return_value): Handle integral values that are
10591 less than 8 bytes long.
10592 (ia64_push_dummy_call): Likewise.
10593
7458e667
JB
105942011-01-13 Joel Brobecker <brobecker@adacore.com>
10595
10596 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10597 floatformat_ia64_ext.
10598 (floatformat_ia64_ext_big): New static const.
10599 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10600
1b05df00
TT
106012011-01-12 Tom Tromey <tromey@redhat.com>
10602
10603 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10604 messages.
10605 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10606 (mi_cmd_thread_list_ids): Likewise.
10607 (mi_cmd_data_list_changed_registers): Likewise.
10608 (mi_cmd_data_list_register_values): Likewise.
10609 (mi_cmd_data_write_register_values): Likewise.
10610 (mi_cmd_data_evaluate_expression): Likewise.
10611 (mi_cmd_data_read_memory): Likewise.
10612 (mi_cmd_data_read_memory_bytes): Likewise.
10613 (mi_cmd_data_write_memory): Likewise.
10614 (mi_cmd_enable_timings): Likewise.
10615 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10616 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10617 (mi_cmd_var_delete): Likewise.
10618 (mi_cmd_var_set_format): Likewise.
10619 (mi_cmd_var_show_format): Likewise.
10620 (mi_cmd_var_info_num_children): Likewise.
10621 (mi_cmd_var_list_children): Likewise.
10622 (mi_cmd_var_info_type): Likewise.
10623 (mi_cmd_var_info_expression): Likewise.
10624 (mi_cmd_var_show_attributes): Likewise.
10625 (mi_cmd_var_assign): Likewise.
10626 (mi_cmd_var_update): Likewise.
10627 (mi_cmd_enable_pretty_printing): Likewise.
10628 (mi_cmd_var_set_update_range): Likewise.
10629 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10630 messages.
10631 (mi_cmd_target_file_put): Likewise.
10632 (mi_cmd_target_file_delete): Likewise.
10633 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10634 messages.
10635 (mi_cmd_stack_info_depth): Likewise.
10636 (mi_cmd_stack_list_locals): Likewise.
10637 (mi_cmd_stack_list_args): Likewise.
10638 (mi_cmd_stack_select_frame): Likewise.
10639 (mi_cmd_stack_select_frame): Likewise.
10640 (mi_cmd_stack_info_frame): Likewise.
10641 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10642 messages.
10643 (mi_cmd_file_list_exec_source_files): Likewise.
10644 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10645 (mi_cmd_env_cd): Likewise.
10646 (mi_cmd_env_path): Likewise.
10647 (mi_cmd_env_dir): Likewise.
10648 (mi_cmd_inferior_tty_show): Likewise.
10649 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10650 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10651 (mi_cmd_break_watch): Likewise.
10652
ad422571
TJB
106532011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10654
10655 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10656 (ppc_linux_insert_hw_breakpoint): Likewise.
10657 (ppc_linux_remove_hw_breakpoint): Likewise.
10658 (ppc_linux_insert_watchpoint): Likewise.
10659
c2ff108b
JK
106602011-01-12 Andrew Burgess <aburgess@broadcom.com>
10661 Jan Kratochvil <jan.kratochvil@redhat.com>
10662
10663 PR fortran/11104 and DWARF unbound arrays detection.
10664 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10665 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10666 unspecified upper bound.
10667 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10668 variables array_size_array, tmp_type and offset_item. New variable
10669 array. Remove call to f77_get_upperbound. New variables array_type
10670 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10671 the final call to deprecated_set_value_type.
10672
41e8491f
JK
106732011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10674
10675 Make value allocations more lazy.
10676 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10677 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10678 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10679 instead of allocate_value and set_value_lazy.
10680 * findvar.c (value_of_register_lazy): Likewise.
10681 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10682 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10683 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10684 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10685 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10686 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10687 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10688 the end, remove set_value_lazy there.
10689 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10690 instead of allocate_value and set_value_lazy when possible.
10691 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10692 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10693 of allocate_value and set_value_lazy.
10694 (value_from_contents_and_address): Use allocate_value_lazy instead of
10695 allocate_value and set_value_lazy when possible.
10696
b716877b
AB
106972011-01-12 Andrew Burgess <aburgess@broadcom.com>
10698
10699 * disasm.c (dump_insns): Support dumping opcodes for MI.
10700 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10701 dumping of instruction opcodes.
10702
d5ae309f
JB
107032011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10704
10705 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10706 appropiately.
10707
98871305
TT
107082011-01-11 Tom Tromey <tromey@redhat.com>
10709
10710 * thread.c (do_captured_thread_select): Emit newline before
10711 printing frame.
10712
c378eb4e
MS
107132011-01-11 Michael Snyder <msnyder@vmware.com>
10714
10715 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10716 * score-tdep.c: Ditto.
10717 * score-tdep.h: Ditto.
10718 * ser-base.c: Ditto.
10719 * ser-go32.c: Ditto.
10720 * serial.c: Ditto.
10721 * serial.h: Ditto.
10722 * ser-mingw.c: Ditto.
10723 * ser-pipe.c: Ditto.
10724 * ser-tcp.c: Ditto.
10725 * ser-unix.c: Ditto.
10726 * sh64-tdep.c: Ditto.
10727 * shnbsd-nat.c: Ditto.
10728 * sh-tdep.c: Ditto.
10729 * sh-tdep.h: Ditto.
10730 * solib.c: Ditto.
10731 * solib-darwin.c: Ditto.
10732 * solib-frv.c: Ditto.
10733 * solib.h: Ditto.
10734 * solib-irix.c: Ditto.
10735 * solib-osf.c: Ditto.
10736 * solib-pa64.c: Ditto.
10737 * solib-som.c: Ditto.
10738 * solib-spu.c: Ditto.
10739 * solib-sunos.c: Ditto.
10740 * solib-svr4.c: Ditto.
10741 * solist.h: Ditto.
10742 * sol-thread.c: Ditto.
10743 * somread.c: Ditto.
10744 * source.c: Ditto.
10745 * source.h: Ditto.
10746 * sparc64-linux-tdep.c: Ditto.
10747 * sparc64-tdep.c: Ditto.
10748 * sparc-linux-nat.c: Ditto.
10749 * sparc-linux-tdep.c: Ditto.
10750 * sparc-sol2-nat.c: Ditto.
10751 * sparc-sol2-tdep.c: Ditto.
10752 * sparc-tdep.c: Ditto.
10753 * sparc-tdep.h: Ditto.
10754 * spu-tdep.c: Ditto.
10755 * stabsread.c: Ditto.
10756 * stabsread.h: Ditto.
10757 * stack.c: Ditto.
10758 * symfile.c: Ditto.
10759 * symfile.h: Ditto.
10760 * symmisc.c: Ditto.
10761 * symtab.c: Ditto.
10762 * symtab.h: Ditto.
10763 * target.c: Ditto.
10764 * target-descriptions.c: Ditto.
10765 * target-descriptions.h: Ditto.
10766 * target.h: Ditto.
10767 * target-memory.c: Ditto.
10768 * terminal.h: Ditto.
10769 * thread.c: Ditto.
10770 * top.c: Ditto.
10771 * tracepoint.c: Ditto.
10772 * tracepoint.h: Ditto.
10773 * trad-frame.h: Ditto.
10774 * typeprint.c: Ditto.
10775
581e13c1
MS
107762011-01-11 Michael Snyder <msnyder@vmware.com>
10777
10778 * ui-file.c: Comment cleanup, mostly periods and spaces.
10779 * ui-file.h: Ditto.
10780 * ui-out.c: Ditto.
10781 * ui-out.h: Ditto.
10782 * utils.c: Ditto.
10783 * v850-tdep.c: Ditto.
10784 * valarith.c: Ditto.
10785 * valops.c: Ditto.
10786 * valprint.c: Ditto.
10787 * valprint.h: Ditto.
10788 * value.c: Ditto.
10789 * value.h: Ditto.
10790 * varobj.c: Ditto.
10791 * varobj.h: Ditto.
10792 * vax-tdep.c: Ditto.
10793 * vec.c: Ditto.
10794 * vec.h: Ditto.
10795 * version.h: Ditto.
10796 * windows-nat.c: Ditto.
10797 * windows-tdep.c: Ditto.
10798 * xcoffread.c: Ditto.
10799 * xcoffsolib.c: Ditto.
10800 * xml-support.c: Ditto.
10801 * xstormy16-tdep.c: Ditto.
10802 * xtensa-tdep.c: Ditto.
10803 * xtensa-tdep.h: Ditto.
10804
90e4670f
TJB
108052011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10806
10807 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10808 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10809
e09342b5
TJB
108102011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10811 Thiago Jung Bauermann <bauerman@br.ibm.com>
10812
10813 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10814 * breakpoint.h
e09342b5
TJB
10815 (struct breakpoint_ops) <resources_needed>: New method.
10816 Initialize to NULL in all existing breakpoint_ops instances.
10817 (struct breakpoint) <exact>: New field.
10818 (target_exact_watchpoints): Declare external global.
10819 * breakpoint.c (target_exact_watchpoints): New global flag.
10820 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10821 b->enable_state to bp_enabled before calling
10822 hw_watchpoint_used_count.
10823 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10824 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10825 if available.
10826 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10827 if the watchpoint is exact.
10828 (resources_needed_watchpoint): New function.
10829 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10830 (watch_command_1): Set b->exact if the user asked for an exact
10831 watchpoint and one can be set.
10832 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10833 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10834 the user asks for an exact watchpoint and one can be set. Return
10835 number of needed debug registers to watch the expression.
10836 * gdbtypes.c (is_scalar_type): New function, based on
10837 valprint.c:scalar_type_p.
10838 (is_scalar_type_recursive): New function.
10839 * gdbtypes.h (is_scalar_type_recursive): Declare.
10840 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10841 handle regions when ranged watchpoints are available.
10842 (create_watchpoint_request): New function.
10843 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10844 create_watchpoint_request.
10845 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10846 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10847 `set powerpc' and `show powerpc' commands.
10848 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10849 Mention documentation comment in the target macro.
10850 (target_region_ok_for_hw_watchpoint): Document return value.
10851
9fa40276
TJB
108522011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10853
10854 * breakpoint.c (update_watchpoint): Decide on using a software or
10855 hardware watchpoint after the bp_locations are created.
10856
77b06cd7
TJB
108572010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10858
10859 Convert hardware watchpoints to use breakpoint_ops.
10860 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10861 <insert_location>: ... this. Return int instead of void.
10862 Accept pointer to struct bp_location instead of pointer to
10863 struct breakpoint. Adapt all implementations.
f2eb0bc8 10864 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10865 <remove_location>: ... this. Accept pointer to struct bp_location
10866 instead of pointer to struct breakpoint. Adapt all implementations.
10867 * breakpoint.c (insert_catchpoint): Delete function.
10868 (insert_bp_location): Call the watchpoint or catchpoint's
10869 breakpoint_ops.insert method.
10870 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10871 breakpoint_ops.remove method.
10872 (insert_watchpoint, remove_watchpoint): New functions.
10873 (watchpoint_breakpoint_ops): New structure.
10874 (watch_command_1): Initialize the OPS field.
10875 * inf-child.c (inf_child_insert_fork_catchpoint)
10876 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10877 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10878 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10879 Delete functions.
10880 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10881 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10882 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10883 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10884 * target.c (update_current_target): Change default implementation of
10885 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10886 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10887 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10888 to_set_syscall_catchpoint to return_one.
10889 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10890 (debug_to_insert_exec_catchpoint): Report return value.
10891 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10892 (to_insert_exec_catchpoint): Change declaration to return int instead
10893 of void.
10894
9b20d036
MS
108952011-01-11 Michael Snyder <msnyder@vmware.com>
10896
10897 * arm-tdep.c: Internationalization.
10898 * c-lang.c: Ditto.
10899 * charset.c: Ditto.
10900 * fork-child.c: Ditto.
10901 * nto-procfs.c: Ditto.
10902 * ppc-sysv-tdep.c: Ditto.
10903 * procfs.c: Ditto.
10904 * remote-mips.c: Ditto.
10905 * remote.c: Ditto.
10906 * rs6000-nat.c: Ditto.
10907 * rs6000-tdep.c: Ditto.
10908 * target.c: Ditto.
10909 * valops.c: Ditto.
10910 * value.c: Ditto.
10911 * xml-support.c: Ditto.
10912 * mi/mi-cmd-break.c: Ditto.
10913 * mi/mi-cmd-var.c: Ditto.
10914 * mi/mi-interp.c: Ditto.
10915 * mi/mi-main.c: Ditto.
10916
dae477fe
AB
109172011-01-11 Andrew Burgess <aburgess@broadcom.com>
10918
10919 * remote-sim.c (gdbsim_store_register): Update API to
10920 sim_store_register to check more error conditions.
10921
0df8b418
MS
109222011-01-10 Michael Snyder <msnyder@vmware.com>
10923
10924 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10925 * nto-tdep.c: Ditto.
10926 * nto-tdep.h: Ditto.
10927 * objc-exp.y: Ditto.
10928 * objc-lang.c: Ditto.
10929 * objfiles.c: Ditto.
10930 * objfiles.h: Ditto.
10931 * observer.c: Ditto.
10932 * opencl-lang.c: Ditto.
10933 * osabi.c: Ditto.
10934 * parse.c: Ditto.
10935 * parser-defs.h: Ditto.
10936 * p-exp.y: Ditto.
10937 * p-lang.c: Ditto.
10938 * posix-hdep.c: Ditto.
10939 * ppcbug-rom.c: Ditto.
10940 * ppc-linux-nat.c: Ditto.
10941 * ppc-linux-tdep.c: Ditto.
10942 * ppc-linux-tdep.h: Ditto.
10943 * ppcnbsd-tdep.c: Ditto.
10944 * ppcobsd-tdep.c: Ditto.
10945 * ppcobsd-tdep.h: Ditto.
10946 * ppc-sysv-tdep.c: Ditto.
10947 * ppc-tdep.h: Ditto.
10948 * printcmd.c: Ditto.
10949 * proc-abi.c: Ditto.
10950 * proc-flags.c: Ditto.
10951 * procfs.c: Ditto.
10952 * proc-utils.h: Ditto.
10953 * progspace.h: Ditto.
10954 * prologue-value.c: Ditto.
10955 * prologue-value.h: Ditto.
10956 * psympriv.h: Ditto.
10957 * psymtab.c: Ditto.
10958 * p-typeprint.c: Ditto.
10959 * p-valprint.c: Ditto.
10960 * ravenscar-sparc-thread.c: Ditto.
10961 * ravenscar-thread.c: Ditto.
10962 * ravenscar-thread.h: Ditto.
10963 * record.c: Ditto.
10964 * regcache.c: Ditto.
10965 * regcache.h: Ditto.
10966 * remote.c: Ditto.
10967 * remote-fileio.c: Ditto.
10968 * remote-fileio.h: Ditto.
10969 * remote.h: Ditto.
10970 * remote-m32r-sdi.c: Ditto.
10971 * remote-mips.c: Ditto.
10972 * remote-sim.c: Ditto.
10973 * rs6000-aix-tdep.c: Ditto.
10974 * rs6000-nat.c: Ditto.
10975 * rs6000-tdep.c: Ditto.
10976
0d7a18f7
MS
109772011-01-10 Michael Snyder <msnyder@vmware.com>
10978
10979 * charset.c (validate): Internationalization.
10980 * coffread.c (read_one_sym): Ditto.
10981 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10982 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10983 * inflow.c (new_tty): Ditto.
10984 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10985 * m32c-tdep.c (m32c_return_value): Ditto.
10986 * mep-tdep.c (mep_store_return_value): Ditto.
10987 * score-tdep.c (score7_fetch_insn): Ditto.
10988 * ser-mingw.c (pipe_windows_open): Ditto.
10989 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10990 * spu-tdep.c (spu_register_type): Ditto.
10991 * tracepoint.c (trace_find_command): Ditto.
10992 * valarith.c (value_pos): Ditto.
10993
9a153e0b
JB
109942011-01-10 Joel Brobecker <brobecker@adacore.com>
10995
10996 * ada-valprint.c (printstr): Minor comment reformatting.
10997
35ecd2d6
MS
109982011-01-08 Michael Snyder <msnyder@vmware.com>
10999
11000 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11001 markup.
11002
1777feb0
MS
110032011-01-08 Michael Snyder <msnyder@vmware.com>
11004
11005 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11006 * hppa-hpux-tdep.c: Ditto.
11007 * hppa-linux-nat.c: Ditto.
11008 * hppa-linux-tdep.c: Ditto.
11009 * hppanbsd-tdep.c: Ditto.
11010 * hppa-tdep.c: Ditto.
11011 * hppa-tdep.h: Ditto.
11012 * hpux-thread.c: Ditto.
11013 * i386-cygwin-tdep.c: Ditto.
11014 * i386-darwin-nat.c: Ditto.
11015 * i386gnu-nat.c: Ditto.
11016 * i386-linux-nat.c: Ditto.
11017 * i386-linux-tdep.c: Ditto.
11018 * i386-nat.c: Ditto.
11019 * i386-nat.h: Ditto.
11020 * i386nbsd-tdep.c: Ditto.
11021 * i386-sol2-nat.c: Ditto.
11022 * i386-stub.c: Ditto.
11023 * i386-tdep.c: Ditto.
11024 * i386-tdep.h: Ditto.
11025 * i387-tdep.c: Ditto.
11026 * ia64-linux-nat.c: Ditto.
11027 * ia64-linux-tdep.c: Ditto.
11028 * ia64-tdep.c: Ditto.
11029 * infcall.c: Ditto.
11030 * infcall.h: Ditto.
11031 * infcmd.c: Ditto.
11032 * inferior.c: Ditto.
11033 * inferior.h: Ditto.
11034 * infloop.c: Ditto.
11035 * inflow.c: Ditto.
11036 * infrun.c: Ditto.
11037 * interps.c: Ditto.
11038 * interps.h: Ditto.
11039 * iq2000-tdep.c: Ditto.
11040 * irix5-nat.c: Ditto.
11041 * jit.c: Ditto.
11042 * jit.h: Ditto.
11043 * jv-exp.y: Ditto.
11044 * jv-lang.c: Ditto.
11045 * jv-lang.h: Ditto.
11046 * jv-typeprint.c: Ditto.
11047 * jv-valprint.c: Ditto.
11048 * language.c: Ditto.
11049 * language.h: Ditto.
11050 * linespec.c: Ditto.
11051 * linux-fork.c: Ditto.
11052 * linux-nat.c: Ditto.
11053 * linux-thread-db.c: Ditto.
11054 * lm32-tdep.c: Ditto.
11055
025bb325
MS
110562011-01-08 Michael Snyder <msnyder@vmware.com>
11057
11058 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11059 * m2-lang.c: Ditto.
11060 * m2-typeprint.c: Ditto.
11061 * m2-valprint.c: Ditto.
11062 * m32c-tdep.c: Ditto.
11063 * m32r-linux-nat.c: Ditto.
11064 * m32r-rom.c: Ditto.
11065 * m32r-tdep.c: Ditto.
11066 * m32r-tdep.h: Ditto.
11067 * m68hc11-tdep.c: Ditto.
11068 * m58klinux-nat.c: Ditto.
11069 * m68k-tdep.c: Ditto.
11070 * m88k-tdep.c: Ditto.
11071 * m88k-tdep.h: Ditto.
11072 * machoread.c: Ditto.
11073 * macrocmd.c: Ditto.
11074 * macroexp.c: Ditto.
11075 * macrotab.c: Ditto.
11076 * main.c: Ditto.
11077 * maint.c: Ditto.
11078 * mdebugread.c: Ditto.
11079 * mdebugread.h: Ditto.
11080 * memattr.c: Ditto.
11081 * memattr.h: Ditto.
11082 * memory-map.h: Ditto.
11083 * mep-tdep.c: Ditto.
11084 * microblaze-rom.c: Ditto.
11085 * microblaze-tdep.c: Ditto.
11086 * minsyms.c: Ditto.
11087 * mips-irix-tdep.c: Ditto.
11088 * mips-linux-nat.c: Ditto.
11089 * mips-linux-tdep.c: Ditto.
11090 * mips-linux-tdep.h: Ditto.
11091 * mipsnbsd-nat.c: Ditto.
11092 * mipsnbsd-tdep.c: Ditto.
11093 * mipsread.c: Ditto.
11094 * mips-tdep.c: Ditto.
11095 * mips-tdep.h: Ditto.
11096 * mn10300-linux-tdep.c: Ditto.
11097 * mn10300-tdep.c: Ditto.
11098 * mn10300-tdep.h: Ditto.
11099 * monitor.c: Ditto.
11100 * monitor.h: Ditto.
11101 * moxie-tdep.c: Ditto.
11102 * moxie-tdep.h: Ditto.
11103 * mt-tdep.c: Ditto.
11104
1642781b
MF
111052011-01-08 Mike Frysinger <vapier@gentoo.org>
11106
11107 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11108
394b0adb
JB
111092011-01-08 Robert Millan <rmh@gnu.org>
11110
11111 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11112
b670013c
MS
111132011-01-07 Michael Snyder <msnyder@vmware.com>
11114
11115 * charset.c (_initialize_charset): Fix typo in string.
11116
a743e542
MS
111172011-01-07 Michael Snyder <msnyder@vmware.com>
11118
11119 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11120 for i18n.
f2eb0bc8 11121 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11122 Split line so that operator goes to beginning of line.
11123 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11124 assignment out of if statement.
11125
0963b4bd
MS
111262011-01-07 Michael Snyder <msnyder@vmware.com>
11127
11128 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11129 * ada-lang.h: Ditto.
11130 * ada-tasks.c: Ditto.
11131 * ada-valprint.c: Ditto.
11132 * aix-threads.c: Ditto.
11133 * alpha-linux-nat.c: Ditto.
11134 * alpha-linux-tdep.c: Ditto.
11135 * alpha-mdebug-tdep.c: Ditto.
11136 * alpha-nat.c: Ditto.
11137 * alpha-osf1-tdep.c: Ditto.
11138 * alpha-tdep.c: Ditto.
11139 * alphabsd-nat.c: Ditto.
11140 * alphabsd-tdep.c: Ditto.
11141 * amd64-darwin-tdep.c: Ditto.
11142 * amd64-linux-nat.c: Ditto.
11143 * amd64-linux-tdep.c: Ditto.
11144 * amd64-sol2-tdep.c: Ditto.
11145 * amd64-tdep.c: Ditto.
11146 * amd64-fbsd-tdep.c: Ditto.
11147 * amd64-nbsd-tdep.c: Ditto.
11148 * amd64-obsd-tdep.c: Ditto.
11149 * amd64-linux-nat.c: Ditto.
11150 * amd64-linux-tdep.c: Ditto.
11151 * arm-tdep.c: Ditto.
11152 * arm-tdep.h: Ditto.
11153 * armnbsd-nat.c: Ditto.
11154 * avr-tdep.c: Ditto.
11155 * bfin-tdep.c: Ditto.
11156 * bsd-kvm.c: Ditto.
11157 * c-typeprintc: Ditto.
11158 * c-valprint.c: Ditto.
11159 * coff-pe-read.h: Ditto.
11160 * coffreead.c: Ditto.
11161 * cris-tdep.c: Ditto.
11162 * d-lang.c: Ditto.
11163 * darwin-nat-info.c: Ditto.
11164 * darwin-nat.c: Ditto.
11165 * dbug-rom.c: Ditto.
11166 * dbxread.c: Ditto.
11167 * dcache.c: Ditto.
11168 * dcache.h: Ditto.
11169 * dec-thread.c: Ditto.
11170 * defs.h: Ditto.
11171 * demangle.c: Ditto.
11172 * dicos-tdep.c: Ditto.
11173 * dictionary.c: Ditto.
11174 * dictionary.h: Ditto.
11175 * dink32-rom.c: Ditto.
11176 * disasm.c: Ditto.
11177 * doublest.c: Ditto.
11178 * dsrec.c: Ditto.
11179 * dummy-frame.c: Ditto.
11180 * dwarf2-frame.c: Ditto.
11181 * dwarf2expr.c: Ditto.
11182 * dwarf2loc.c: Ditto.
11183 * dwarf2read.c: Ditto.
11184 * elfread.c: Ditto.
11185 * environ.c: Ditto.
11186 * eval.c: Ditto.
11187 * event-top.h: Ditto.
11188 * exceptions.c: Ditto.
11189 * exceptions.h: Ditto.
11190 * exec.c: Ditto.
11191 * expprint.c: Ditto.
11192 * expression.h: Ditto.
11193 * f-exp.y: Ditto.
11194 * f-lang.c: Ditto.
11195 * f-lang.h: Ditto.
11196 * f-typeprint.c: Ditto.
11197 * f-valprint.c: Ditto.
11198 * fbsd-nat.c: Ditto.
11199 * findvar.c: Ditto.
11200 * fork-child.c: Ditto.
11201 * frame.c: Ditto.
11202 * frame.h: Ditto.
11203 * frv-linux-tdep.c: Ditto.
11204 * frv-tdep.c: Ditto.
11205 * gcore.c: Ditto.
11206 * gdb-stabs.h: Ditto.
11207 * gdb_assert.h: Ditto.
11208 * gdb_string.h: Ditto.
11209 * gdb_thread_db.h: Ditto.
11210 * gdb_wait.h: Ditto.
11211 * gdbarch.sh: Ditto.
11212 * gdbcore.h: Ditto.
11213 * gdbthread.h: Ditto.
11214 * gdbtypes.c: Ditto.
11215 * gdbtypes.h: Ditto.
11216 * gnu-nat.c: Ditto.
11217 * gnu-nat.h: Ditto.
11218 * gnu-v2-abi.c: Ditto.
11219 * gnu-v3-abi.c: Ditto.
11220 * go32-nat.c: Ditto.
11221 * gdbarch.c: Regenerate.
11222 * gdbarch.h: Regenerate.
11223
ac74f770
MS
112242011-01-07 Michael Snyder <msnyder@vmware.com>
11225
11226 * ax-gdb.c: Adjust some long output strings.
11227 * breakpoint.c: Ditto.
11228 * charset.c: Ditto.
11229 * cp-abi.c: Ditto.
11230 * infcall.c: Ditto.
11231 * infrun.c: Ditto.
11232 * linux-nat.c: Ditto.
11233 * solib-pa64.c: Ditto.
11234 * solib-som.c: Ditto.
11235
d8e22779
TT
112362011-01-06 Tom Tromey <tromey@redhat.com>
11237
11238 PR python/12367:
11239 * NEWS: Add item.
11240 * python/python.c (GdbMethods): Add "newest_frame" method.
11241 * python/python-internal.h (gdbpy_newest_frame): Declare.
11242 * python/py-frame.c (gdbpy_newest_frame): New function.
11243
a255712f
PP
112442010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11245
11246 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11247 * jit.c (jit_debug): New variable.
11248 (show_jit_debug): New function.
11249 (struct target_buffer): Use ULONGEST.
11250 (bfd_open_from_target_memory): Likewise.
11251 (jit_register_code, jit_inferior_init): Add debug output.
11252 (_initialize_jit): Register "debug jit" command.
11253
ccfc3d6e
TT
112542011-01-06 Tom Tromey <tromey@redhat.com>
11255
11256 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11257 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11258 and ARCH_FRAME.
11259
57126e4a
TT
112602011-01-06 Tom Tromey <tromey@redhat.com>
11261
11262 * python/py-frame.c (frapy_block): Use get_frame_block.
11263
16dfc9ce
JB
112642011-01-06 Joel Brobecker <brobecker@adacore.com>
11265
11266 Do not stop on SIGPRIO signals by default
11267 * infrun.c (_initialize_infrun): Unset signal_stop and
11268 signal_print for TARGET_SIGNAL_PRIO.
11269
b1ce2347
JB
112702011-01-06 Joel Brobecker <brobecker@adacore.com>
11271
11272 * ada-tasks.c: Fix style violation in comment.
11273
8f7e195f
JB
112742011-01-06 Joel Brobecker <brobecker@adacore.com>
11275
11276 * linespec.c (decode_compound, find_method): Remove trailing \n
11277 at end of error string.
11278 * solib-irix.c (irix_current_sos): Likewise.
11279 * varobj.c (uninstall_variable): Likewise.
11280
e9bdf92c
JB
112812011-01-06 Joel Brobecker <brobecker@adacore.com>
11282
11283 * copyright.py: New script.
11284 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11285 Launch emacs without exec'ing. Call copyright.py afterwards.
11286
3e43a32a
MS
112872011-01-05 Michael Snyder <msnyder@vmware.com>
11288
11289 * addrmap.c: Shorten lines of >= 80 columns.
11290 * arch-utils.c: Ditto.
11291 * arch-utils.h: Ditto.
11292 * ax-gdb.c: Ditto.
11293 * ax-general.c: Ditto.
11294 * bcache.c: Ditto.
11295 * blockframe.c: Ditto.
11296 * breakpoint.c: Ditto.
11297 * buildsym.c: Ditto.
11298 * c-lang.c: Ditto.
11299 * c-typeprint.c: Ditto.
11300 * charset.c: Ditto.
11301 * coffread.c: Ditto.
11302 * command.h: Ditto.
11303 * corelow.c: Ditto.
11304 * cp-abi.c: Ditto.
11305 * cp-namespace.c: Ditto.
11306 * cp-support.c: Ditto.
11307 * dbug-rom.c: Ditto.
11308 * dbxread.c: Ditto.
11309 * defs.h: Ditto.
11310 * dfp.c: Ditto.
11311 * dfp.h: Ditto.
11312 * dictionary.c: Ditto.
11313 * disasm.c: Ditto.
11314 * doublest.c: Ditto.
11315 * dwarf2-frame.c: Ditto.
11316 * dwarf2expr.c: Ditto.
11317 * dwarf2loc.c: Ditto.
11318 * dwarf2read.c: Ditto.
11319 * elfread.c: Ditto.
11320 * eval.c: Ditto.
11321 * event-loop.c: Ditto.
11322 * event-loop.h: Ditto.
11323 * exceptions.h: Ditto.
11324 * exec.c: Ditto.
11325 * expprint.c: Ditto.
11326 * expression.h: Ditto.
11327 * f-lang.c: Ditto.
11328 * f-valprint.c: Ditto.
11329 * findcmd.c: Ditto.
11330 * frame-base.c: Ditto.
11331 * frame-unwind.c: Ditto.
11332 * frame-unwind.h: Ditto.
11333 * frame.c: Ditto.
11334 * frame.h: Ditto.
11335 * gcore.c: Ditto.
11336 * gdb-stabs.h: Ditto.
11337 * gdb_assert.h: Ditto.
11338 * gdb_dirent.h: Ditto.
11339 * gdb_obstack.h: Ditto.
11340 * gdbcore.h: Ditto.
11341 * gdbtypes.c: Ditto.
11342 * gdbtypes.h: Ditto.
11343 * inf-ttrace.c: Ditto.
11344 * infcall.c: Ditto.
11345 * infcmd.c: Ditto.
11346 * inflow.c: Ditto.
11347 * infrun.c: Ditto.
11348 * inline-frame.h: Ditto.
11349 * language.c: Ditto.
11350 * language.h: Ditto.
11351 * libunwind-frame.c: Ditto.
11352 * libunwind-frame.h: Ditto.
11353 * linespec.c: Ditto.
11354 * linux-nat.c: Ditto.
11355 * linux-nat.h: Ditto.
11356 * linux-thread-db.c: Ditto.
11357 * machoread.c: Ditto.
11358 * macroexp.c: Ditto.
11359 * macrotab.c: Ditto.
11360 * main.c: Ditto.
11361 * maint.c: Ditto.
11362 * mdebugread.c: Ditto.
11363 * memattr.c: Ditto.
11364 * minsyms.c: Ditto.
11365 * monitor.c: Ditto.
11366 * monitor.h: Ditto.
11367 * objfiles.c: Ditto.
11368 * objfiles.h: Ditto.
11369 * osabi.c: Ditto.
11370 * p-typeprint.c: Ditto.
11371 * p-valprint.c: Ditto.
11372 * parse.c: Ditto.
11373 * printcmd.c: Ditto.
11374 * proc-events.c: Ditto.
11375 * procfs.c: Ditto.
11376 * progspace.c: Ditto.
11377 * progspace.h: Ditto.
11378 * psympriv.h: Ditto.
11379 * psymtab.c: Ditto.
11380 * record.c: Ditto.
11381 * regcache.c: Ditto.
11382 * regcache.h: Ditto.
11383 * remote-fileio.c: Ditto.
11384 * remote.c: Ditto.
11385 * ser-mingw.c: Ditto.
11386 * ser-tcp.c: Ditto.
11387 * ser-unix.c: Ditto.
11388 * serial.c: Ditto.
11389 * serial.h: Ditto.
11390 * solib-frv.c: Ditto.
11391 * solib-irix.c: Ditto.
11392 * solib-osf.c: Ditto.
11393 * solib-pa64.c: Ditto.
11394 * solib-som.c: Ditto.
11395 * solib-sunos.c: Ditto.
11396 * solib-svr4.c: Ditto.
11397 * solib-target.c: Ditto.
11398 * solib.c: Ditto.
11399 * somread.c: Ditto.
11400 * source.c: Ditto.
11401 * stabsread.c: Ditto.
11402 * stabsread.c: Ditto.
11403 * stack.c: Ditto.
11404 * stack.h: Ditto.
11405 * symfile-mem.c: Ditto.
11406 * symfile.c: Ditto.
11407 * symfile.h: Ditto.
11408 * symmisc.c: Ditto.
11409 * symtab.c: Ditto.
11410 * symtab.h: Ditto.
11411 * target-descriptions.c: Ditto.
11412 * target-memory.c: Ditto.
11413 * target.c: Ditto.
11414 * target.h: Ditto.
11415 * terminal.h: Ditto.
11416 * thread.c: Ditto.
11417 * top.c: Ditto.
11418 * tracepoint.c: Ditto.
11419 * tracepoint.h: Ditto.
11420 * ui-file.c: Ditto.
11421 * ui-file.h: Ditto.
11422 * ui-out.h: Ditto.
11423 * user-regs.c: Ditto.
11424 * user-regs.h: Ditto.
11425 * utils.c: Ditto.
11426 * valarith.c: Ditto.
11427 * valops.c: Ditto.
11428 * valprint.c: Ditto.
11429 * valprint.h: Ditto.
11430 * value.c: Ditto.
11431 * varobj.c: Ditto.
11432 * varobj.h: Ditto.
11433 * vec.h: Ditto.
11434 * xcoffread.c: Ditto.
11435 * xcoffsolib.c: Ditto.
11436 * xcoffsolib.h: Ditto.
11437 * xml-syscall.c: Ditto.
11438 * xml-tdesc.c: Ditto.
11439
9a2b4c1b
MS
114402011-01-05 Michael Snyder <msnyder@vmware.com>
11441
11442 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11443 * cli/cli-decode.c: Ditto.
11444 * cli/cli-dump.c: Ditto.
11445 * cli/cli-logging.c: Ditto.
11446 * cli/cli-script.c: Ditto.
11447 * cli/cli-setshow.c: Ditto.
11448 * common/signals.c: Ditto.
11449 * mi/mi-cmd-break.c: Ditto.
11450 * mi/mi-cmd-disas.c: Ditto.
11451 * mi/mi-cmd-stack.c: Ditto.
11452 * mi/mi-cmd-var.c: Ditto.
11453 * mi/mi-cmds.c: Ditto.
11454 * mi/mi-common.h: Ditto.
11455 * mi/mi-console.c: Ditto.
11456 * mi/mi-interp.c: Ditto.
11457 * mi/mi-main.c: Ditto.
11458 * osf-share/cma_attr.c: Ditto.
11459 * osf-share/cma_deb_core.h: Ditto.
11460 * osf-share/cma_debug_client.h: Ditto.
11461 * osf-share/cma_handle.h: Ditto.
11462 * osf-share/cma_mutex.h: Ditto.
11463 * osf-share/cma_stack_int.h: Ditto.
11464 * osf-share/cma_tcb_defs.h: Ditto.
11465 * python/py-auto-load.c: Ditto.
11466 * python/py-breakpoint.c: Ditto.
11467 * python/py-cmd.c: Ditto.
11468 * python/py-frame.c: Ditto.
11469 * python/py-objfile.c: Ditto.
11470 * python/py-param.c: Ditto.
11471 * python/py-progspace.c: Ditto.
11472 * python/py-symbol.c: Ditto.
11473 * python/py-value.c: Ditto.
11474 * python/python-internal.h: Ditto.
11475 * python/python.c: Ditto.
11476 * tui/tui-data.c: Ditto.
11477 * tui/tui-disasm.c: Ditto.
11478 * tui/tui-hooks.c: Ditto.
11479 * tui/tui-io.c: Ditto.
11480 * tui/tui-layout.c: Ditto.
11481 * tui/tui-regs.c: Ditto.
11482 * tui/tui-source.c: Ditto.
11483 * tui/tui-stack.c: Ditto.
11484 * tui/tui-win.c: Ditto.
11485 * tui/tui-windata.c: Ditto.
11486 * tui/tui-winsource.c: Ditto.
11487
44944448
JB
114882011-01-05 Joel Brobecker <brobecker@adacore.com>
11489
11490 * configure.ac, gdb.1: Copyright year update.
11491
ebedcab5
JK
114922011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11493
11494 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11495 this_pc_in_block, morestack_msym and morestack_name. Check for
11496 "__morestack" minimal symbol there.
11497
e5cc9f32
JB
114982011-01-03 Joel Brobecker <brobecker@adacore.com>
11499
11500 * symfile.c (find_sym_fns): Add call to dont_repeat.
11501
7b6bb8da
JB
115022011-01-01 Joel Brobecker <brobecker@adacore.com>
11503
11504 Copyright year update in most files (performed by copyright.sh).
11505
71ce852c
JB
115062011-01-01 Joel Brobecker <brobecker@adacore.com>
11507
11508 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11509
c3c1ebe8 11510For older changes see ChangeLog-2010.
c906108c
SS
11511\f
11512Local Variables:
11513mode: change-log
11514left-margin: 8
11515fill-column: 74
11516version-control: never
57da7796 11517coding: utf-8
c906108c 11518End:
This page took 1.807123 seconds and 4 git commands to generate.