gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
049e32d3
PA
12011-12-05 Pedro Alves <pedro@codesourcery.com>
2
3 * breakpoint.c: Include record.h.
4 (breakpoints_always_inserted_mode): Return false when the record
5 target is in use.
6
5c03c7f9 72011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
8
9 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
10 Reinstate perror_with_name call on ptrace error. Remove #if 0.
11 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
12 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
13
fbbd034e
AS
142011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
15
16 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
17 `i'(-Wshadow).
18
a5ff8356 192011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
20
21 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
22
232011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
24
a5ff8356
AS
25 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
26 of `tdep'(-Wshadow).
27
93f2a35e
JK
282011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
29
30 Fix compilation --without-expat.
31 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
32 from ...
33 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
34
2268b414
JK
352011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
36 Jan Kratochvil <jan.kratochvil@redhat.com>
37
38 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
39 * features/library-list-svr4.dtd: New file.
40 * remote.c (PACKET_qXfer_libraries_svr4): New.
41 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
42 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
43 * solib-svr4.c (struct svr4_library_list): New.
44 [HAVE_LIBEXPAT]: Include xml-support.h.
45 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
46 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
47 [HAVE_LIBEXPAT] (svr4_library_list_children)
48 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
49 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
50 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
51 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
52 (svr4_read_so_list): Extend the corruption message by addresses.
53 (svr4_current_sos): New variable library_list, call
54 svr4_current_sos_via_xfer_libraries.
55 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
56
585861ea
JK
572011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
58
59 PR threads/13448
60 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
61 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
62
9750bca9
JK
632011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
64
65 PR breakpoints/13346
66 * dwarf2read.c (process_psymtab_comp_unit): Set
67 PSYMTABS_ADDRMAP_SUPPORTED.
68 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
69 validity. New field psymtabs_addrmap_supported.
70 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
71 psymtabs_addrmap_supported.
72 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
73 !PSYMTABS_ADDRMAP_SUPPORTED.
74 (dump_psymtab, maintenance_info_psymtabs): Print also
75 psymtabs_addrmap_supported.
76
f28c316a
DE
772011-12-01 Doug Evans <dje@google.com>
78
79 * python/py-type.c (type_object_methods): Fix "array" doc string.
80
fc0ae648
AB
812011-12-01 Andrew Burgess <aburgess@broadcom.com>
82
83 * source.c (print_source_lines_base): Fix missing braces on else
84 clause leading to additional output.
85
d6db1fab
UW
862011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
87
88 * s390-nat.c (SUBOFF): Remove.
89 (s390_native_supply, s390_native_collect): New functions.
90 (supply_gregset, supply_fpregset): Use s390_native_supply.
91 (fill_gregset, fill_fpregset): Use s390_native_collect.
92
93 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
94 (s390_unwind_pseudo_register): New function.
95 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
96 registers instead of PC and CC.
97 (s390_backchain_frame_unwind_cache): Likewise.
98 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
99 full GPR pseudos.
100 (s390_trad_frame_prev_register): New function.
101 (s390_frame_prev_register): Use it.
102 (s390_sigtramp_frame_prev_register): Likewise.
103 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
104 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
105 special callback to unwind any pseudo.
106
107 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
108 * features/s390-core64.xml: Likewise.
109 * features/s390x-core64.xml: Likewise.
110 * features/s390-linux32.c: Regenerate.
111 * features/s390-linux64.c: Likewise.
112 * features/s390x-linux64.c: Likewise.
113
1dd635ac
UW
1142011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
115
116 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
117
0161e4b9
UW
1182011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
119
120 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
121 instruction. Add more diagnostic output.
122
0c36327f
AS
1232011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
124
125 * MAINTAINERS (Write After Approval): Add myself to the list.
126
b4264740
SD
1272011-11-29 Sanjoy Das <sdas@igalia.com>
128
129 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
130 (jit_bfd_try_read_symtab): Fix comments.
131
87326c78
DD
1322011-11-28 DJ Delorie <dj@redhat.com>
133
134 * NEWS: Mention RL78 simulator.
135
1e3a8f45
JB
1362011-11-28 Joel Brobecker <brobecker@adacore.com>
137
138 * symfile.h (struct quick_symbol_functions): Fix the documentation
139 of field map_matching_symbols, as symbols are sorted using
140 strcmp_iw_ordered, not strcmp_iw.
141
265e52c3
JB
1422011-11-28 Paul Hilfinger <hilfinger@adacore.com>
143
144 * symfile.h (struct quick_symbol_functions): Update the
145 documentation for field map_matching_symbols.
146
1a1d5513
JB
1472011-11-28 Joel Brobecker <brobecker@adacore.com>
148
149 * ada-lang.c (compare_names): Fix wrong return value in case
150 string1 starts with the same contents as string2, followed
151 by an underscore that do not start a symbol name suffix.
152
5d9c5995
PM
1532011-11-28 Phil Muldoon <pmuldoon@redhat.com>
154
155 PR python/13369
156 PR python/13374
157
158 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
159 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
160 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
161 exceptions.
162 * python/py-type.c (typy_strip_typedefs): Ditto.
163 (typy_legacy_template_argument): Ditto.
164 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
165 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
166
2bf50f6f
JB
1672011-11-27 Joel Brobecker <brobecker@acacore.com>
168
169 * remote.c (remote_get_tracepoint_status): Delete addrbuf
170 local variable. Avoid use of sprintf_vma.
171
744ab88c
SD
1722011-11-27 Sanjoy Das <sdas@igalia.com>
173
174 Fix regression in jit.exp.
175 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
176 (jit_register_code): Set the jit_objfile_data field to the correct
177 value.
178
46ad3598
UW
1792011-11-25  Uros Bizjak  <ubizjak@gmail.com>
180
181 * alpha-tdep.c (br_opcode): New.
182 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
183 (alpha_deal_with_atomic_sequence): New function.
184 (alpha_gdbarch_init): Handle single stepping of atomic sequences
185 with alpha_deal_with_atomic_sequence.
186
e4c5f296
TG
1872011-11-24 Tristan Gingold <gingold@adacore.com>
188
189 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
190 fields. Add oso_sym, end_sym and nbr_syms.
191 (macho_register_oso): Change interface.
192 (macho_symtab_add_minsym): New function.
193 (macho_symtab_read): Rewritten.
194 (get_archive_prefix_len): Remove trailing blanks.
195 (oso_el_compare_name): Add comment.
196 (struct macho_sym_hash_entry): New structure.
197 (macho_relocate_common_syms): Remove.
198 (macho_sym_hash_newfunc): New function.
199 (macho_resolve_oso_sym_with_minsym): Likewise.
200 (macho_add_oso_symfile): Rewritten.
201 (macho_symfile_read_all_oso): Remove trailing blanks.
202 Adjust code to free oso vector.
203 (macho_symfile_read): Likewise.
204 Move code to initialize minimal symbol
205
130854df
MR
2062011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
207
208 * mips-tdep.c (extended_offset): Fix formatting.
209
3d7bb9d9
DE
2102011-11-23 Doug Evans <dje@google.com>
211
212 * dwarf2read.c (dw2_lookup_symtab): Add comment.
213 (dw2_expand_symtabs_with_filename): Ditto.
214 (dw2_expand_symtabs_matching): Ditto.
215 (dw2_map_symbol_filenames): Ditto.
216
1fbf5ada
JB
2172011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
218
219 * ada-lang.c (assign_aggregate): Minor reformatting.
220
d984108d
JB
2212011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
222
223 * ada-lang.c (assign_aggregate): Remove declaration of local
224 variable `i' which is shadowing another variable with the same
225 name declared in the outer scope.
226
18af8284
JB
2272011-11-23 Joel Brobecker <brobecker@adacore.com>
228
229 * ada-lang.c (get_base_type): Renames base_type. Adjust all
230 calls throughout this file.
231
1fc7b5d7
JB
2322011-11-23 Joel Brobecker <brobecker@adacore.com>
233
234 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
235 FormatMessage.
236
36dfb11c
TT
2372011-11-22 Tom Tromey <tromey@redhat.com>
238
239 PR mi/8444:
240 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
241 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
242 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
243 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
244 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
245 (print_it_catch_syscall, print_it_catch_exec)
246 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
247 (bpstat_print): Add 'kind' argument. Handle
248 TARGET_WAITKIND_LOADED.
249 * infrun.c (normal_stop): Update for bpstat_print change. Don't
250 handle TARGET_WAITKIND_LOADED here.
251 * breakpoint.h (bpstat_print): Update.
252
5bd6aa83
TT
2532011-11-22 Tom Tromey <tromey@redhat.com>
254
255 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
256
f5afdc18
TT
2572011-11-22 Tom Tromey <tromey@redhat.com>
258
259 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
260 Use static_assert to check the size of
261 async_reason_string_lookup.
262 * common/gdb_assert.h (static_assert): New macro.
263
a3769e0c
AM
2642011-11-22 Alan Modra <amodra@gmail.com>
265
266 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
267 destination calculation. Don't expect >> to sign extend. Don't
268 add a break if branch lands inside the sequence anywhere.
269
56767571
KS
2702011-11-21 Keith Seitz <keiths@redhat.com>
271
272 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
273 -var-evaluate-expression of an enumeration and fix expected result.
274 * gdb.mi/mi2-varvdisplay.exp: Likewise.
275
8443c207
KY
2762011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
277
278 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
279 the case where osdata->items is empty. Rename column names to a
280 canonical form to avoid problems with unusual column names.
281
97643830
YQ
2822011-11-21 Yao Qi <yao@codesourcery.com>
283
284 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
285
f196051f
SS
2862011-11-20 Stan Shebs <stan@codesourcery.com>
287
288 * NEWS: Mention tracepoint additions.
289 * breakpoint.h (struct tracepoint): New field traceframe_usage.
290 * breakpoint.c (print_one_breakpoint_location): Identify
291 tracepoints as such when reporting hit counts, report
292 trace buffer usage.
293 (create_tracepoint_from_upload): Copy status info.
294 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
295 add fields user_name, notes, start_time, stop_time.
296 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
297 * tracepoint.c (trace_user): New global.
298 (trace_notes): New global.
299 (trace_stop_notes): New global.
300 (start_tracing): Add argument and trace note handling.
301 (stop_tracing): Ditto.
302 (trace_start_command): Add notes argument.
303 (trace_stop_command): Ditto.
304 (trace_status_command): Report additional status info.
305 (trace_status_mi): Similarly.
306 (trace_save): Update, record tracepoint status.
307 (set_disconnected_tracing): Call target method directly.
308 (send_disconnected_tracing_value): Remove.
309 (set_trace_user): New function.
310 (set_trace_notes): New function.
311 (set_trace_stop_notes): New function.
312 (parse_trace_status): Handle additional status.
313 (parse_tracepoint_status): New function.
314 (parse_tracepoint_definition): Call it.
315 (tfile_get_tracepoint_status): New function.
316 (init_tfile_ops): Use it.
317 (_initialize_tracepoint): Add new setshows.
318 * target.h (struct target_ops): New methods to_get_tracepoint_status
319 and to_set_trace_notes.
320 (target_get_tracepoint_status): New macro.
321 (target_set_trace_notes): New macro.
322 * target.c (update_current_target): Add new methods.
323 * remote.c (remote_get_tracepoint_status): New function.
324 (remote_set_trace_notes): New function.
325 (init_remote_ops): Add them.
326 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
327 (mi_cmd_trace_stop): Ditto.
328
3623dc3a
SD
3292011-11-20 Sanjoy Das <sdas@igalia.com>
330
331 * jit.c: Include regcache.h.
332 (jit_gdbarch_data, jit_frame_unwind): New static variables.
333 (jit_unwind_reg_set_impl, free_reg_value_impl)
334 (jit_unwind_reg_get_impl, jit_frame_sniffer)
335 (jit_frame_unwind_stop_reason, jit_frame_this_id)
336 (jit_frame_prev_register, jit_dealloc_cache)
337 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
338 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
339 jit_prepend_unwinder.
340 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
341
1825a88d
SD
3422011-11-20 Sanjoy Das <sdas@igalia.com>
343
344 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
345 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
346 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
347 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
348 (finalize_symtab, jit_object_close_impl)
349 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
350 (free_objfile_data): New functions.
351 (_initialize_jit): Register jit_objfile_data with a proper cleanup
352 function.
353
784c47ee
SD
3542011-11-20 Sanjoy Das <sdas@igalia.com>
355
356 * jit.c: Include gdb-dlfcn.h.
357 (loaded_jit_reader, reader_init_fn_sym): New static variables.
358 (jit_reader_load, jit_reader_load_command)
359 (jit_reader_unload_command): New functions.
360 (_initialize_jit): Add commands "jit-reader-load" and
361 "jit-reader-unload".
362
a2d08b9e
SD
3632011-11-20 Sanjoy Das <sdas@igalia.com>
364
365 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
366 * config.in: Add new #define HAVE_LIBDL.
367 * configure.ac: Add check for -ldl.
368 * configure: Re-generated by autoconf.
369 * gdb-dlfcn.c: New file.
370 * gdb-dlfcn.h: New file.
371
b8e0a31c
SD
3722011-11-20 Sanjoy Das <sdas@igalia.com>
373
374 * config.in: Add new #defines: JIT_READER_DIR and
375 JIT_READER_DIR_RELOCATABLE.
376 * configure.ac: New GDB directory entry for jit-reader-dir.
377 * configure: Re-generated by autoconf.
378 * jit.c: New static variable: const char *jit_reader_dir.
379 (_initialize_jit): Relocate jit_reader_dir.
380
f997c383
SD
3812011-11-20 Sanjoy Das <sdas@igalia.com>
382
383 * Makefile.in: Add jit-reader.h as a header. Have it installed in
384 $(includedir)/gdb.
385 * configure.ac: Generate a correct value for TARGET_PTR for
386 jit-reader.h. Tell configure to generate jit-reader.h from
387 jit-reader.in.
388 * configure: Re-generated by autoconf.
389 * jit-reader.in: New file.
390 * jit.c: Include jit-reader.h.
391
dc8c0494
SD
3922011-11-20 Sanjoy Das <sdas@igalia.com>
393
394 * MAINTAINERS (Write After Approval): Add myself to the list.
395
01efb936
UW
3962011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
397
398 * findvar.c (read_frame_register_value): Respect value_offset
399 of the register value. Remove big-endian special case.
400
732f3f12
TT
4012011-11-18 Tom Tromey <tromey@redhat.com>
402
403 PR build/7196:
404 * remote.c (putpkt_for_catch_errors): New function.
405 (remote_kill): Use it.
406
bfccc43c
YQ
4072011-11-18 Yao Qi <yao@codesourcery.com>
408
409 * breakpoint.c (create_breakpoint): Produce query message according to
410 breakpoint's type.
411 Allocate tracepoint per correct type.
412 Don't check SALs for pending fast tracepoints.
413 * tracepoint.c (process_tracepoint_on_disconnect): New.
414 (disconnect_tracing): Call process_tracepoint_on_disconnect.
415
3ea46bff
YQ
4162011-11-18 Yao Qi <yao@codesourcery.com>
417
418 * breakpoint.c (install_breakpoint): Add one more parameter so that
419 update_global_location_list is called conditionally.
420 (create_fork_vfork_event_catchpoint): Update.
421 (create_syscall_event_catchpoint): Update.
422 (create_breakpoint_sal): Update.
423 (create_breakpoint_sal): Update. Call do_cleanups before
424 install_breakpoint.
425 * ada-lang.c (create_ada_exception_catchpoint): Update.
426 * breakpoint.h (install_breakpoint): Update declaration.
427
598cfb71
UW
4282011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
429
430 * spu-tdep.c (spu_return_value): Fix handling of
431 TYPE_CALLING_CONVENTION annotation.
432
caf4328c
UW
4332011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
434
435 * skip.c (skip_function_command): Work around uninitialized
436 variable warning.
437
2b54dda2
DM
4382011-11-16 David S. Miller <davem@davemloft.net>
439
440 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
441 'tv_usec' to long for printf since these fields have a type which
442 varies.
443
93bf33fd
DE
4442011-11-15 Doug Evans <dje@google.com>
445
446 * buildsym.c (add_symbol_to_list): Delete outdated comment.
447
9cc10fd1
PK
4482011-11-15 Paul Koning <paul_koning@dell.com>
449
450 * python/py-type.c (typy_get_composite): New function.
451 (typy_nonzero): New function.
452 (typy_values): Rename from typy_fields.
453 (typy_fields): New function.
454 (typy_length): Raise exception if not struct, union, or enum type.
455 (typy_getitem): Ditto.
456 (typy_has_key): Ditto.
457 (typy_make_iter): Ditto.
458
c011a4f4
DE
4592011-11-15 Doug Evans <dje@google.com>
460
461 * NEWS: Mention new parameter basenames-may-differ.
462 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
463 ! basenames_may_differ.
464 * psymtab.c (lookup_partial_symtab): Ditto.
465 * symtab.c (lookup_symtab): Ditto.
466 (basenames_may_differ): New global.
467 (_initialize_symtab): New parameter basenames-may-differ.
468 * symtab.h (basenames_may_differ): Declare.
469
865ecab4
LM
4702011-11-15 Pedro Alves <pedro@codesourcery.com>
471 Luis Machado <lgustavo@codesourcery.com>
472
473 * auxv.c: Include observer.h.
474 (auxv_inferior_data_cleanup): New.
475 (invalidate_auxv_cache_inf): New.
476 (invalidate_auxv_cache): New.
477 (get_auxv_inferior_data): New.
478 (auxv_inferior_data): New static global.
479 (auxv_info): New structure.
480 (target_auxv_search): Use get_auxv_inferior_data instead of
481 target_read_alloc and don't free cached buffers.
482 (fprint_target_auxv): Likewise
483 (_initialize_auxv): Register per-inferior auxv cache and register
484 observers to invalidate auxv cache when needed.
485
ed59ded5
DE
4862011-11-14 Doug Evans <dje@google.com>
487
488 Make "!" an alias for "shell".
489 * NEWS: Add mention.
490 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
491 adding "!" command, always add it.
492 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
493 command of length one.
494
405f8e94
SS
4952011-11-14 Stan Shebs <stan@codesourcery.com>
496 Kwok Cheung Yeung <kcy@codesourcery.com>
497
498 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
499 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
500 the minimum instruction size for fast tracepoints.
501 * target.h (struct target_ops): Add new method
502 to_get_min_fast_tracepoint_insn_len.
503 (target_get_min_fast_tracepoint_insn_len): New.
504 * target.c (update_current_target): Set up new target operation.
505 * remote.c (remote_write_bytes_aux): Fix typo.
506 (remote_get_min_fast_tracepoint_insn_len): New.
507 (init_remote_ops): Initialize new field.
508
3e05895e
TT
5092011-11-14 Tom Tromey <tromey@redhat.com>
510
511 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
512 (encode_actions): Likewise.
513
1e4d1764
YQ
5142011-11-14 Yao Qi <yao@codesourcery.com>
515
516 * remote.c (struct remote_state): <install_in_trace> new field.
517 (PACKET_InstallInTrace): New enum value.
518 (remote_install_in_trace_feature): Support InstallInTrace.
519 (remote_supports_install_in_trace): Likewise.
520 (remote_protocol_features): Likewise.
521 (_initialize_remote): Likewise.
522 (remote_can_download_tracepoint): New.
523 * target.h (struct target): New field
524 `to_can_download_tracepoint'.
525 (target_can_download_tracepoint): New macro.
526 * target.c (update_current_target): Update.
527 * breakpoint.h (struct bp_location): Add comment on field
528 `duplicate'.
3ccd4ac6
YQ
529 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
530 and tracepoint.
1e4d1764
YQ
531 (remove_breakpoints): Don't remove tracepoints.
532 (tracepoint_locations_match ): New.
533 (breakpoint_locations_match): Call it.
534 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
535 (download_tracepoint_locations): New.
536 (update_global_location_list): Call it.
537 * tracepoint.c (find_matching_tracepoint): Delete.
538 (find_matching_tracepoint_location): Renamed from
539 find_matching_tracepoint. Return bp_location rather than
540 tracepoint.
541 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
542 tracepoint is found.
543
e8ba3115
YQ
5442011-11-14 Yao Qi <yao@codesourcery.com>
545
546 * target.h (struct target): <to_download_tracepoint> Change type
547 of parameter from tracepoint to bp_location.
548 * target.c (update_current_target): Update.
549 * tracepoint.c (start_tracing): Update.
550 * remote.c (remote_download_tracepoint): Remove loop for each location
551 of a tracepoint.
552
edcc485a
MR
5532011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
554
555 * i386-nat.c (i386_insert_hw_breakpoint): Call
556 i386_update_inferior_debug_regs.
557 (i386_remove_hw_breakpoint): Likewise.
558
3742cc8b
YQ
5592011-11-14 Yao Qi <yao@codesourcery.com>
560
561 * breakpoint.c (init_raw_breakpoint): Call
562 add_location_to_breakpoint to replace duplicated code.
563 (add_location_to_breakpoint): Adjust the breakpoint's
564 address prior to allocating a location.
565
71eba9c2 5662011-11-12 Matt Rice <ratmice@gmail.com>
567
568 * macrocmd.c (macro_no_macro_info): New function.
569 (macro_expand_command): Use macro_no_macro_info.
570 (macro_expand_once_command): Ditto.
571 (info_macro_command): Add argument processing,
572 move info_definitions_command here.
573 (_initialize_macrocmd): Remove info definitions command.
574 Add arguments to info macro help text.
575 * NEWS: Replace info definitions command with new info macro options.
576
731971ed
KS
5772011-11-11 Keith Seitz <keiths@redhat.com>
578
579 PR gdb/12843
580 * linespec.c (locate_first_half): Keep ':' if it looks
581 like it could be part of a Windows path starting with
582 a drive letter.
583
6953d224
PA
5842011-11-10 Pedro Alves <pedro@codesourcery.com>
585
586 * linux-nat.c (linux_nat_wait): Don't force waking up the event
587 loop when returning a TARGET_WAITKIND_NO_RESUMED.
588
0c94aa73
PA
5892011-11-10 Pedro Alves <pedro@codesourcery.com>
590
591 * target.c (target_waitstatus_to_string): Handle
592 TARGET_WAITKIND_NO_RESUMED.
593
f6b47be4
DE
5942011-11-10 Doug Evans <dje@google.com>
595
74e2f255
DE
596 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
597 `need_fullname'.
598 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
599 (map_partial_symbol_filenames): Ditto. All callers updated.
600 * psymtab.h (map_partial_symbol_filenames): Update prototype.
601 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
602 parameter need_fullname.
603
256f06f3
DE
604 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
605 * source.c (symtab_to_fullname): Ditto.
606
50f182aa
DE
607 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
608 * gdb-demangle.h: ... here. New file.
609 * demangle.c: #include "gdb-demangle.h".
610 (_initialize_demangler): Use initialize_file_ftype for prototype.
611 Move "set demangle" and "set asm-demangle" parameters here from utils.c
612 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
613 from utils.c
614 * utils.c: Update. #include "gdb-demangle.h".
615 * symtab.h (asm_demangle): Delete.
616 (demangle): Move declaration next to use.
617 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
618 * dwarf2read.c: #include "gdb-demangle.h".
619 * gnu-v2-abi.c: Ditto.
620 * jv-typeprint.c: Ditto.
621 * mdebugread.c: Ditto.
622 * p-typeprint.c: Ditto.
623 * stabsread.c: Ditto.
624 * printcmd.c: Ditto.
625 (asm_demangle): Delete declaration.
626 * tui/tui-stack.c: #include "gdb-demangle.h".
627
f6b47be4
DE
628 * python/py-type.c (typy_fields_items): Call check_typedef.
629
22355c90
JB
6302011-11-10 Joel Brobecker <brobecker@adacore.com>
631
632 * findvar.c (read_frame_register_value): Read the correct bytes
633 from registers on big-endian architectures.
634
bd119cf1 6352011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
636
637 * procfs.c (load_syscalls): Make a cleanup.
638 (open_procinfo_files): fd==0 is ok.
639
0a86f364
JB
6402011-11-10 Joel Brobecker <brobecker@adacore.com>
641
642 * procfs.c (iterate_over_mappings): Call do_cleanups before
643 returning.
644
9bc118a5
DE
6452011-11-09 Doug Evans <dje@google.com>
646
647 * gdbtypes.c (check_typedef): Document that this function can
648 throw an exception.
649
a7860e76
TT
6502011-11-09 Tom Tromey <tromey@redhat.com>
651
652 PR c++/13342:
653 * valops.c (value_full_object): Return early if real type is
654 smaller than the enclosing type.
655
60965737
YQ
6562011-11-08 Yao Qi <yao@codesourcery.com>
657
658 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
659
72a2e3dc
MI
6602011-11-08 Meador Inge <meadori@codesourcery.com>
661
662 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
663 register when the frame can't be determined.
664 * arm-tdep.c (arm_analyze_prologue): Ditto.
665
ce3b0ff7
SS
6662011-11-07 Stan Shebs <stan@codesourcery.com>
667
668 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
669
2b914b52
JB
6702011-11-07 Joel Brobecker <brobecker@adacore.com>
671
672 * infrun.c (handle_inferior_event): Minor reformatting.
673
6f809020
DE
6742011-11-05 Doug Evans <dje@google.com>
675
676 * source.c (forget_cached_source_info_for_objfile): Move call to
677 objfile->sf->qf->forget_cached_source_info outside of
678 ALL_OBJFILE_SYMTABS loop.
679 (forget_cached_source_info): Delete unused variable `s'.
680
75d12218
JK
6812011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
682
683 * i386-nat.c (dr_ref_count): Remove unused variable.
684
e565b837
DE
6852011-11-05 Doug Evans <dje@google.com>
686
687 * main.c (captured_main): Set lim_at_start before calling
688 make_command_stats_cleanup.
689
0a1c4d10
DE
6902011-11-04 Doug Evans <dje@google.com>
691
692 * utils.c: #include "timeval-utils.h".
693 (cmd_stats): Rename start_time to start_cpu_time.
694 New member start_wall_time.
695 (report_command_stats): Report wall time.
696 (make_command_stats_cleanup): Record start wall time.
697
a1d705ee
TT
6982011-11-04 Tom Tromey <tromey@redhat.com>
699
700 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
701
81de56be
RO
7022011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
703
704 * coff-pe-read.c: Include defs.h before bfd.h.
705
3ab1ec27
PM
7062011-11-04 Phil Muldoon <pmuldoon@redhat.com>
707
708 PR Python/13345
709
710 * python/python.c (python_run_simple_file): Expand tilde in path.
711
cd829959
PM
7122011-11-04 Phil Muldoon <pmuldoon@redhat.com>
713
714 PR Python/13363
715
716 * python/py-type.c (typy_lookup_type): Do not return a type in
717 an exception handler.
718
080ad648
JK
7192011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
720 Eli Zaretskii <eliz@gnu.org>
721
722 * linux-nat.c (_initialize_linux_nat): Improve help
723 for `info proc stat', `info proc status', `info proc cwd',
724 `info proc cmdline' and `info proc exe'.
725
3065dfb6
SS
7262011-11-02 Stan Shebs <stan@codesourcery.com>
727
728 String collection for tracepoints.
729 * NEWS: Mention string collection.
730 * common/ax.def (tracenz): New bytecode.
731 * ax-gdb.h (trace_string_kludge): Declare.
732 * ax-gdb.c: Include valprint.h and c-lang.h.
733 (trace_string_kludge): New global.
734 (gen_traced_pop): Add string case.
735 (agent_command): Add string case.
736 * tracepoint.h (decode_agent_options): Declare.
737 * tracepoint.c: Include cli-utils.h.
738 (decode_agent_options): New function.
739 (validate_actionline): Call it.
740 (encode_actions_1): Ditto.
741 * target.h (struct target_ops): New method to_supports_string_tracing.
742 (target_supports_string_tracing): New macro.
743 * target.c (update_current_target): Add to_supports_string_tracing.
744 * remote.c (struct remote_state): New field string_tracing.
745 (remote_string_tracing_feature): New function.
746 (remote_protocol_features): New feature tracenz.
747 (remote_supports_string_tracing): New function.
748 (init_remote_ops): Set to_supports_string_tracing.
749
f179e162
JK
7502011-11-02 Pedro Alves <pedro@codesourcery.com>
751 Jan Kratochvil <jan.kratochvil@redhat.com>
752
753 * linux-nat.c: Include cli/cli-utils.h.
754 (enum info_proc_what): New.
755 (linux_nat_info_proc_cmd): Rename to ...
756 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
757 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
758 status_f and stat_f from WHAT. Throw error on extra parameters.
759 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
760 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
761 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
762 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
763 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
764 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
765 `info proc cmdline', `info proc exe' and `info proc all' as real
766 subcommands of `info proc'.
767
7b35ec7f 7682011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
769
770 * Makefile.in: (SFILES): Add skip.c.
771 (HFILES_NO_SRCDIR): Add skip.h.
772 (COMMON_OBS): Add skip.o.
773 * skip.h, skip.c: New.
774 * breakpoint.h (set_default_breakpoint): Remove.
775 (get_sal_arch): Declare.
776 * breakpoint.c: Remove default_breakpoint_valid,
777 default_breakpoint_address, default_breakpoint_symtab,
778 default_breakpoint_line, default_breakpoint_pspace variables.
779 (get_sal_arch): Make public.
780 (set_default_breakpoint): Remove.
781 (parse_breakpoint_sals, create_breakpoint, clear_command,
782 decode_line_spec_1): Remove uses of default_breakpoint variables;
783 replaced with function calls into stack.c.
784 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
785 * cli/cli-cmds.c: Add skiplist.
786 (init_cmd_lists): Initialize skiplist.
787 (init_cli_cmds): Fix comment (classes of commands appear in
788 alphabetical order).
789 * infrun.c (handle_inferior_event): Add check that we don't step into
790 a function whose pc is marked for skip.
791 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
792 last_displayed_addr, last_displayed_symtab, last_displayed_line
793 variables.
794 (set_last_displayed_sal): New static function.
795 (print_frame_info): Switch call to set_default_breakpoint to call to
796 set_last_displayed_sal.
797 (clear_last_displayed_sal, last_displayed_sal_is_valid,
798 get_last_displayed_pspace, get_last_displayed_addr,
799 get_last_displayed_symtab, get_last_displayed_line,
800 get_last_displayed_sal): New public functions.
801 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
802 get_last_displayed_pspace, get_last_displayed_addr,
803 get_last_displayed_symtab, get_last_displayed_line,
804 get_last_displayed_sal): Declare.
805
b60e1588
JL
8062011-11-01 Justin Lebar <justin.lebar@gmail.com>
807
808 * MAINTAINERS (Write After Approval): Add myself to the list.
809
d31647d2
YQ
8102011-10-29 Yao Qi <yao@codesourcery.com>
811
812 * infcmd.c (disconnect_command): Call disconnect_tracing.
813
b1d96efd
JK
8142011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
815
816 Code cleanup.
817 * symtab.c (skip_prologue_sal): Code reformatting.
818
4dfb2365
JK
8192011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 PR symtab/13208
822 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
823 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
824 SAI.
825
0e5bf2a8
PA
8262011-10-28 Pedro Alves <pedro@codesourcery.com>
827
828 * linux-nat.c (linux_nat_filter_event): Remove `options'
829 parameter, and dead code that used it. If we're handling a
830 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
831 in our lwp list, re-add it.
832 (check_zombie_leaders): New.
833 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
834 wait for children with WNOHANG, and always wait for all children.
835 Don't check for no resumed children upfront. Simplify wait loop.
836 Check for zombie thread group leaders after handling all wait
837 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
838 unwaited-for children left.
839 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
840 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
841 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
842 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
843
821296b7
SA
8442011-10-28 Sterling Augustine <saugustine@google.com>
845
846 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
847 * symtab.c (free_completion_list): New function.
848 (do_free_completion_list): Likewise.
849 (default_make_symbol_completion_list_break_on): New variable
850 back_to. Call make_cleanup and discard_cleanups.
851 (make_source_files_completion_list): Likewise.
852
03c3051a
PK
8532011-10-28 Paul Koning <paul_koning@dell.com>
854
855 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
856 * NEWS: Mention deep_items.
857
8e7ebaf5
PA
8582011-10-28 Alen Skondro <askondro@gmail.com>
859
8de33dc2 860 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
861 defined.
862
e0c6ef61
MI
8632011-10-27 Meador Inge <meadori@codesourcery.com>
864
865 * MAINTAINERS (Write After Approval): Add myself to the list.
866
b56d6f31
JB
8672011-10-27 Joel Brobecker <brobecker@adacore.com>
868
869 * value.h (read_frame_register_value): Add declaration.
870 * findvar.c (read_frame_register_value): New function.
871 (value_from_register): Use read_frame_register_value
872 instead of get_frame_register_value + value_contents_copy
873 to get value contents.
874
d234ef5c
DE
8752011-10-27 Doug Evans <dje@google.com>
876
877 * cli/cli-cmds.c (source_script_with_search): Pass full path to
878 source_script_from_stream if it may have been found on the search path.
879 * python/py-auto-load.c (source_section_scripts): Pass full path to
880 source_python_script_for_objfile.
881 * python/python.c (source_python_script): Delete stream parameter.
882 All callers updated.
883 (source_python_script_for_objfile): Ditto.
884 * python/python-internal.h (source_python_script_for_objfile): Update.
885 * python/python.h (source_python_script): Update.
886
d849d44f
TT
8872011-10-27 Tom Tromey <tromey@redhat.com>
888
889 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
890 (ada_sals_for_line): Remove declarations.
891
2231f1fb
KP
8922011-10-27 Kevin Pouget <kevin.pouget@st.com>
893
894 Move unwind reasons to an external .def file
895 * frame.c (frame_stop_reason_string): Rewrite using
896 unwind_stop_reasons.def.
897 * frame.h (enum unwind_stop_reason): Likewise.
898 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
899 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
900 constants for bound-checking.
901 * unwind_stop_reasons.def: New file.
902 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
903 instead of a distinct value.
904
f77b9a5d
PM
9052011-10-27 Phil Muldoon <pmuldoon@redhat.com>
906
907 PR python/13331
908
909 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
910 (convert_values_to_python): Return on Python tuple allocation
911 failure. Return NULL on value conversion error.
912
76dce0be
PM
9132011-10-27 Phil Muldoon <pmuldoon@redhat.com>
914
915 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
916 (bppy_set_task): Ditto.
917 (bppy_delete_breakpoint): Ditto.
918 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
919 (gdbpy_lookup_global_symbol): Ditto.
920 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
921 * python/py-frame.c (frapy_is_valid): Ditto.
922 (frame_info_to_frame_object): Ditto.
923 * python/py-type.c (typy_lookup_type): Ditto.
924 (typy_getitem): Ditto.
925 (typy_has_key): Ditto.
926 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
927
f17b6955
JB
9282011-10-26 Joel Brobecker <brobecker@adacore.com>
929
930 * gdbarch.h: Regenerate.
931
86ba1042
JB
9322011-10-26 Meador Inge <meadori@codesourcery.com>
933
934 * gdbarch.sh (function_list): Use 'pstring' when printing
935 'gcore_bfd_target'.
936 * gdbarch.c: Regenerate.
937
c34fd852
UW
9382011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
939
940 * regcache.c (registers_changed_ptid): Invalidate thread architecture
941 and frame caches if PTID refers to all threads of a process.
942
931bb47f
UW
9432011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
944
945 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
946 to create_breakpoint.
947
88aed45e
UW
9482011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
949
950 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
951 (ppc_sysv_abi_push_dummy_call): Use it.
952 (do_ppc_sysv_return_value): Likewise.
953 (ppc64_sysv_abi_push_dummy_call): Likewise.
954 (ppc64_sysv_abi_return_value): Likewise.
955
3eaf3fa2
PK
9562011-10-26 Paul Koning <paul_koning@dell.com>
957
958 * python/lib/gdb/types.py (deepitems): New function.
959
913460fc
PK
9602011-10-25 Paul Koning <paul_koning@dell.com>
961
962 PR python/13327
963
964 * python/py-value.c (value_to_value_object): Remove fetching of
965 the value if it was lazy.
966 (valpy_get_is_lazy): New function.
967 (valpy_fetch_lazy): New function.
968
2b5b9d09
JB
9692011-10-24 Joel Brobecker <brobecker@adacore.com>
970
971 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
972 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
973
e21ffe51
PA
9742011-10-24 Pedro Alves <pedro@codesourcery.com>
975
976 * linux-nat.c (linux_handle_extended_wait): When handling a clone
977 event, in non-stop, if not stopping, make sure the new lwp has
978 last_resume_kind set to resume_continue. Assert that when we're
979 resuming the new lwp, its last_resume_kind is resume_continue.
980
7aee8dc2
PA
9812011-10-24 Pedro Alves <pedro@codesourcery.com>
982
983 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
984 already set when marking the event thread as not executing in
985 non-stop mode.
986
4b4e080e
PA
9872011-10-24 Pedro Alves <pedro@codesourcery.com>
988
989 * infrun.c (handle_inferior_event): Add debug output for
990 TARGET_WAITKIND_NO_HISTORY.
991
baacfb07
PM
9922011-10-24 Phil Muldoon <pmuldoon@redhat.com>
993
994 * NEWS: Move set/show extended-prompt to "New Options". Expand
995 description. Fix typos.
996
8432bc41
PM
9972011-10-24 Phil Muldoon <pmuldoon@redhat.com>
998
999 PR python/13310
1000
1001 * python/py-param.c (call_doc_function): Correctly deference on
1002 function exit.
1003
6cda5a20
JB
10042011-10-21 Joel Brobecker <brobecker@adacore.com>
1005
1006 * ada-tasks.c (print_ada_task_info): Fix computation of
1007 number of tasks displayed in command output.
1008
13294f7d
JK
10092011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1010 Ulrich Weigand <uweigand@de.ibm.com>
1011
1012 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1013 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1014 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1015 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1016 gdbarch_unwind_pc.
1017
460c1c54
CC
10182011-10-20 Cary Coutant <ccoutant@google.com>
1019
1020 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1021 section to...
1022 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1023 flag. Adjust all callers.
1024 (process_psymtab_comp_unit): Remove adjustment for type section.
1025
a10964d1
AR
10262011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1027
1028 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1029 arguments by adding OBJFILE. Instead of getting objfile from
1030 symbol's symtab, use new argument OBJFILE.
1031 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1032 arguments by adding OBJFILE.
1033 * gdb/dwarf2read.c (new_symbol_full): Change call to
1034 cp_scan_for_anonymous_namespaces to match new signature.
1035 * gdb/stabsread.c (define_symbol): Change call to
1036 cp_scan_for_anonymous_namespaces to match new signature.
1037
27ca1a5b
PM
10382011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1039
1040 PR python/13308
1041 PR python/13309
1042
1043 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1044 leak.
1045 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1046 leak. Delete unused variables.
1047
9df2fbc4
PM
10482011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1049
1050 PR python/12656
1051
1052 * python/py-frame.c (frapy_read_var): Use const struct *block.
1053 * python/py-type.c (typy_lookup_typename): Likewise.
1054 (typy_lookup_type): Likewise.
1055 (typy_legacy_template_argument): Likewise.
1056 (typy_template_argument): Likewise.
1057 (gdbpy_lookup_type): Likewise.
1058 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1059 * python/py-block.c (blpy_block_object): Likewise.
1060 (blpy_iter): Likewise.
1061 (blpy_get_start): Likewise.
1062 (blpy_get_end): Likewise.
1063 (blpy_get_function): Likewise.
1064 (blpy_get_superblock): Likewise.
1065 (set_block): Likewise.
1066 (block_to_block_object): Likewise.
1067 (block_object_to_block): Likewise.
1068 (blpy_is_valid): Likewise.
1069 (blpy_get_global_block): New function.
1070 (blpy_get_static_block): New function.
1071 (blpy_is_global): New function.
1072 (blpy_is_static): New function.
1073 * blockframe.c (block_innermost_frame): Likewise.
1074 * valops.c (value_of_variable): Likewise.
1075 * frame.h: Update prototypes.
1076 * python/python-internal.h: Likewise.
1077 * value.h: Likewise.
1078
4743b735
CC
10792011-10-19 Cary Coutant <ccoutant@google.com>
1080
1081 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1082 type_offset field.
1083
6caca83c
CC
10842011-10-19 Cary Coutant <ccoutant@google.com>
1085
1086 * dwarf2read.c (peek_abbrev_code): New function.
1087 (dw2_get_file_names): Check for dummy compilation units.
1088 (create_debug_types_hash_table): Likewise.
1089 (process_psymtab_comp_unit): Likewise.
1090 (load_partial_comp_unit): Likewise.
1091 (load_full_comp_unit): Likewise.
1092
43136979
AR
10932011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1094
1095 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1096 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1097 pt_phdr if PT_PHDR was found.
1098
0a07729b
TT
10992011-10-17 Joost van der Sluis <joost@cnoc.nl>
1100
1101 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1102 type or "<unnamed type"> when there is no name assigned.
1103 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1104 avoid a sigint when no name is assigned.
1105
21ae7a4d
JK
11062011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1107
1108 Revert:
1109 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1110 * dwarf2expr.c (ctx_no_read_reg): New function.
1111 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1112 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1113 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1114 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1115
32d1c362
DE
11162011-10-16 Doug Evans <dje@google.com>
1117
1118 * NEWS: Document python gdb.printing.register_pretty_printer's new
1119 `replace' parameter.
1120
da096638
KS
11212011-10-14 Keith Seitz <keiths@redhat.com>
1122
1123 PR c++/13225
1124 * eval.c (evaluate_subexp_standard): Do not construct
1125 an array of types; pass the value array directly to
1126 find_overload_match.
1127 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1128 (rank_function): Take an array of values instead of types.
1129 (rank_one_type): Add struct value * parameter.
1130 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1131 (rank_function): For each argument, pass the argument's
1132 value to rank_one_type.
1133 (rank_one_type): Add VALUE parameter.
1134 If the parameter type is a pointer and the argument type
1135 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1136 VALUE is zero.
1137 Update all calls to rank_one_type, passing NULL for new
1138 VALUE parameter.
1139 * valarith.c (value_user_defined_cpp_op): Do not construct
1140 an array of types; pass the value array directly to
1141 find_overload_match.
1142 * valops.c (find_overload_method_list): Take an array of
1143 values instead of types.
1144 Save the type of OBJP for later use.
1145 Update calls to find_oload_champ, and find_oload_champ_namespace.
1146 (find_oload_champ_namespace): Take an array of values instead
1147 of types.
1148 (find_oload_champ_namespace_loop): Likewise.
1149 (find_oload_champ): Likewise.
1150 (classify_oload_match): Inspect all arguments
1151 until INCOMPATIBLE is found. Return the worst badness found
1152 otherwise.
1153 (compare_parameters): Update call to rank_one_type.
1154 * value.h (find_overload_match): Take an array of values instead
1155 of types.
1156
3957565a
JK
11572011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1158
1159 Drop lazy lm_info reading.
1160 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1161 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1162 (lm_info_read): New function.
1163 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1164 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1165 lm_dynamic_from_link_map.
1166 (lm_next, lm_prev, lm_name): Remove.
1167 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1168 initialization incl. read_memory. No longer use lm_name.
1169 (svr4_free_so): Drop lm_info->lm freeing.
1170 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1171 explicit lm_addr and lm initialization.
1172 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1173 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1174 lm_name.
1175
cb08cc53
JK
11762011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1177 Paul Pluzhnikov <ppluzhnikov@google.com>
1178
1179 * defs.h (struct so_list): New forward declaration.
1180 (make_cleanup_free_so): New declaration.
1181 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1182 (svr4_free_so): Move the function here from downwards. Handle NULL
1183 so->lm_info.
1184 (svr4_free_library_list): New.
1185 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1186 Use more cleanups. Use new parameter ignore_first instead of
1187 ignore_first_link_map_entry.
1188 (svr4_current_sos): New variable ignore_first, initialize it. New
1189 variable back_to, use it for svr4_free_library_list protection.
1190 (svr4_free_so): Remove - move upwards.
1191 * utils.c: Include solist.h.
1192 (do_free_so, make_cleanup_free_so): New functions.
1193
22c05d8a
JK
11942011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1195
1196 Fix internal error regression.
1197 * value.c (value_primitive_field): Handle value_optimized_out. Move
1198 packed bitfields comment.
1199
d930d06e
TT
12002011-10-13 Tom Tromey <tromey@redhat.com>
1201
1202 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1203 always released.
1204
2ff6b080
TT
12052011-10-13 Tom Tromey <tromey@redhat.com>
1206
1207 * python/py-type.c (typy_has_key): Make 'field' const.
1208
d6c5869f
LM
12092011-10-13 Luis Machado <lgustavo@codesourcery.com>
1210
1211 * remote.c (remote_save_trace_data): Invert comparison.
1212
a70633a2
LM
12132011-10-13 Luis Machado <lgustavo@codesourcery.com>
1214
1215 * tracepoint.c (trace_save_command): Use filename instead of
1216 args when printing.
1217
e103e986
JK
12182011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1219
1220 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1221 if .size is 0.
1222
db24da6d
YQ
12232011-10-13 Yao Qi <yao@codesourcery.com>
1224
1225 PR gdb/12703
1226 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1227 whether insn is a 32-bit Thumb-2 instruction.
1228 (thumb_in_function_epilogue_p): Likewise.
1229 (thumb_get_next_pc_raw): Likewise.
1230 (arm_breakpoint_from_pc): Likewise.
1231
1d6edc3c
JK
12322011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1233
1234 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1235 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1236 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1237 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1238 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1239 zero DATA.
1240 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1241 validity.
1242 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1243 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1244 clear DATA on zero SIZE.
1245
adabb602
DE
12462011-10-12 Doug Evans <dje@google.com>
1247
1248 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1249 header->first_die_offset here. All callers updated.
1250
5048e516
JK
12512011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1252
1253 Fix compatibility with texinfo versions older than 4.12.
1254 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1255 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1256 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1257 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1258 * configure: Regenerate.
1259 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1260 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1261 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1262
0574c78f
GB
12632011-10-12 Gary Benson <gbenson@redhat.com>
1264
1265 * breakpoint.h (pc_at_non_inline_function): Declare.
1266 * breakpoint.c (is_non_inline_function,
1267 pc_at_non_inline_function): New functions.
1268 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1269 if the stop is at a location where functions cannot be inlined.
1270
12d9289a
PA
12712011-10-12 Pedro Alves <pedro@codesourcery.com>
1272
1273 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1274 the core wanted them stopped, or if they now have a pending event
1275 to report.
ecf8e7f5
PA
1276 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1277 down to stop_and_resume_callback.
1278 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1279 having new pending events after calling linux_nat_filter_event.
12d9289a 1280
96408a79
SA
12812011-10-11 Sterling Augustine <saugustine@google.com>
1282
1283 * dwarf2read.c: Undo inadvertent changes in previous commit.
1284
9c6c53f7
SA
12852011-10-11 Sterling Augustine <saugustine@google.com>
1286
1287 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1288 logic.
1289
0e8aefe7
UW
12902011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1291
1292 * symfile.c (separate_debug_file_exists): Fix condition.
1293
349d1385
DM
12942011-10-11 David S. Miller <davem@davemloft.net>
1295
1296 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1297 static.
1298 * regcache.h (regcache_restore): Remove declaration.
1299
205c306f
DM
1300 * gdbarch.sh: New field 'long_long_align_bit'.
1301 * gdbarch.c, gdbarch.h: Regenerate.
1302 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1303 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1304
941b2081
JK
13052011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1306
1307 Revert this part of:
1308 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1309 Support @entry in input expressions.
1310 * c-exp.y (ENTRY, unknown_cpp_name): New.
1311 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1312 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1313 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1314 (name_not_typename: ENTRY): New.
1315 (yylex): Recognize ENTRY.
1316
1317 Reimplement @entry in input expressions.
1318 * c-exp.y (ENTRY): New.
1319 (variable: name_not_typename ENTRY): New.
1320 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1321
3c4d7e12
PA
13222011-10-11 Pedro Alves <pedro@codesourcery.com>
1323
1324 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1325 parent and child's pids as soon as we detect a clone event.
1326 Adjust another debug message.
1327
ea23808b
PA
13282011-10-11 Pedro Alves <pedro@codesourcery.com>
1329
1330 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1331 not zombie instead of reading the whole file.
1332
904578ed
JK
13332011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 Fix separate debuginfo warning with "remote:" access.
1336 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1337 * symfile.c (get_file_crc): New function with the code moved from ...
1338 (separate_debug_file_exists): ... this function, specifically variables
1339 buffer and count. New variable verified_as_different, set it. Remove
1340 file_crc initialization. Verify also if both files are not the same
1341 manually, if needed.
1342
51370a33
YQ
13432011-10-11 Yao Qi <yao@codesourcery.com>
1344
1345 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1346 to get address.
1347
0838fb57
DE
13482011-10-10 Doug Evans <dje@google.com>
1349
1350 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1351 libthread_db when we load libpthread or the main symbol file.
1352 (thread_db_inferior_created): New function.
1353 (_initialize_thread_db): Attach inferior_created observer.
1354 * linux-nat.c (linux_child_post_attach): Remove call to
1355 check_for_thread_db.
1356 (linux_child_post_startup_inferior): Ditto.
1357 * objfiles.h (OBJF_MAINLINE): Define.
1358 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1359 allocate_objfile when appropriate.
1360
623bd5b7
UW
13612011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1362
1363 PR gdb/13218
1364 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1365 Remove unused variables.
1366 (get_linux_version): Remove function.
1367 (_initialize_arm_linux_nat): Do not call it.
1368
79395f92
PA
13692011-10-10 Pedro Alves <pedro@codesourcery.com>
1370
1371 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1372 new clone lwp if the core asked it to stop. Don't pass on
1373 unexpected signals to the new clone; leave them pending instead.
1374
eff3df78
PA
13752011-10-10 Pedro Alves <pedro@codesourcery.com>
1376
1377 * linux-nat.c (resume_lwp): Remove redundant debug output.
1378
4b60df3d
PA
13792011-10-10 Pedro Alves <pedro@codesourcery.com>
1380
1381 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1382 last_resume_kind before clearing it, and use the copy instead to
1383 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1384 resume_clear_callback in the non-stop path too.
1385
6501578c
YQ
13862011-10-09 Yao Qi <yao@codesourcery.com>
1387
1388 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1389 Honor OPTIONS and VAL's type.
1390 (common_val_print, value_print): Update to pass one more parameter.
1391
5a56e9c5
DE
13922011-10-09 Doug Evans <dje@google.com>
1393
1394 Add new "alias" command.
1395 * NEWS: Mention new command.
1396 * command.h (valid_user_defined_cmd_name_p): Declare.
1397 * defs.h (make_cleanup_dyn_string_delete): Declare.
1398 * utils.c: #include "dyn-string.h".
1399 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1400 * cli/cli-cmds.c: #include "dyn-string.h".
1401 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1402 (init_cli_cmds): Add new command.
1403 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1404
509f0fd9
JK
14052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1406
1407 Fix compatibility with older GCCs.
1408 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1409 * stack.c (read_frame_arg): Initialize val_deref.
1410
2bda9cc5
JK
14112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1412
1413 Entry values NEWS entries, DWARF disassembly support.
1414 * NEWS: New entry values entry.
1415 (set print entry-values, show print entry-values)
1416 (set debug entry-values, show debug entry-values): New entries.
1417 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1418 indent. Remove variable start. Move header printing out. Respect
1419 INDENT. Support DW_OP_GNU_entry_value.
1420 (locexpr_describe_location_1): Move the header printing here, extend
1421 the disassemble_dwarf_expression passed parameters.
1422
a471c594
JK
14232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1424
1425 Display @entry parameter values even for references.
1426 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1427 coerce_ref_if_computed.
1428 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1429 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1430 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1431 existing push_dwarf_reg_entry_value call. Add new detection calling
1432 dwarf_block_to_dwarf_reg_deref. Update the error message.
1433 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1434 * dwarf2expr.h
1435 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1436 parameter deref_size, describe it in the comment.
1437 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1438 (dwarf_block_to_dwarf_reg_deref): New declaration.
1439 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1440 deref_size, describe it in the function comment. New variables
1441 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1442 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1443 describe it in the function comment. Fetch the alternative block
1444 accoring to DEREF_SIZE.
1445 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1446 (entry_data_value_free_closure, entry_data_value_funcs): New.
1447 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1448 outer_val, target_val, val and addr. Try to fetch and create also
1449 referenced value content.
1450 (pieced_value_funcs): NULL value for coerce_ref.
1451 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1452 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1453 coerce_ref_if_computed.
1454 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1455 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1456 * stack.c (read_frame_arg): Compare also dereferenced values.
1457 * value.c (value_computed_funcs): Make the parameter v const, use
1458 value_lval_const for it.
1459 (value_lval_const, coerce_ref_if_computed): New function.
1460 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1461 * value.h (struct lval_funcs): New field coerce_ref.
1462 (value_computed_funcs): Make the parameter v const.
1463 (value_lval_const, coerce_ref_if_computed): New declarations.
1464
36b11add
JK
14652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1466
1467 Support @entry in input expressions.
1468 * c-exp.y (ENTRY, unknown_cpp_name): New.
1469 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1470 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1471 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1472 (name_not_typename: ENTRY): New.
1473 (yylex): Recognize ENTRY.
1474 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1475 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1476 Likewise.
1477 * parse.c (operator_length_standard): Likewise.
1478 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1479
3343315b
JK
14802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 Display referenced values in backtraces.
1483 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1484 * stack.c (print_frame_arg): Likewise.
1485
ac71a68c
JK
14862011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1487
1488 Make some lval_funcs methods to default on NULL.
1489 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1490 NULL.
1491 (value_assign): Check if lval_computed write method is NULL.
1492 * value.h (struct lval_funcs): Comment NULL values for read and write
1493 methods.
1494
e18b2753
JK
14952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1496
1497 Display @entry parameter values (without references).
1498 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1499 New functions.
1500 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1501 New declarations.
1502 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1503 entry record.
1504 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1505 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1506 functions.
1507 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1508 (loclist_read_variable_at_entry): New function.
1509 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1510 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1511 DW_AT_location, call dwarf_block_to_sp_offset for it.
1512 * frame.h (print_entry_values_no, print_entry_values_only)
1513 (print_entry_values_preferred, print_entry_values_if_needed)
1514 (print_entry_values_both, print_entry_values_compact)
1515 (print_entry_values_default, print_entry_values): New declarations.
1516 (struct frame_arg): New field entry_kind.
1517 (read_frame_arg): New parameter entryargp.
1518 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1519 arg->entry_kind. Optionally print the `@entry' suffix.
1520 (list_args_or_locals): New variable entryarg, initialize it.
1521 Initialize also entry_kind of arg and entryarg. Conditionalize
1522 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1523 xfree for entryarg.error.
1524 * stack.c (print_entry_values_no, print_entry_values_only)
1525 (print_entry_values_preferred, print_entry_values_if_needed)
1526 (print_entry_values_both, print_entry_values_compact)
1527 (print_entry_values_default, print_entry_values_choices)
1528 (print_entry_values): New variables.
1529 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1530 print the `@entry' suffix, possibly in combination for
1531 print_entry_values_compact.
1532 (read_frame_arg): New parameter entryargp, new variables entryval,
1533 entryval_error and val_equal. Read in also entryargp, respect
1534 print_entry_values, compare the values using val_equal, fill in also
1535 argp->entry_kind (together with entryargp->entry_kind).
1536 (print_frame_args): New variable entryarg, initialize it.
1537 Conditionalize print_frame_arg for arg, add print_frame_arg for
1538 entryarg. Call xfree for entryarg.error.
1539 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1540 * symtab.h (struct symbol_computed_ops): New field
1541 read_variable_at_entry.
1542
93d86cef
JK
15432011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1544
1545 Code reshuffle.
1546 * frame.h (struct frame_arg): New definition.
1547 (read_frame_arg): New declaration.
1548 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1549 (list_args_or_locals): ... the code here. New variable arg, call
1550 read_frame_arg and list_arg_or_local with it. Unify the
1551 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1552 arg.error.
1553 * stack.c (print_frame_arg): New functiom from the code of
1554 print_frame_args.
1555 (read_frame_arg): New function.
1556 (print_frame_args): Remove variable val. New variable arg, call
1557 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1558
2d6c5dc2
JK
15592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1560
1561 Protect entry values against self tail calls.
1562 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1563 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1564
111c6489
JK
15652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 Recognize virtual tail call frames.
1568 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1569 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1570 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1571 * dwarf2-frame-tailcall.c: New file.
1572 * dwarf2-frame-tailcall.h: New file.
1573 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1574 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1575 REGS.PREV only after CIE execution.
1576 (struct dwarf2_frame_cache): New field tailcall_cache.
1577 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1578 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1579 parts, try to find entry_cfa_sp_offset. Call
1580 dwarf2_tailcall_sniffer_first.
1581 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1582 when appropriate.
1583 (dwarf2_frame_dealloc_cache): New function.
1584 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1585 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1586 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1587 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1588 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1589 * dwarf2loc.c (func_addr_to_tail_call_list)
1590 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1591 (call_site_find_chain_1, call_site_find_chain): New.
1592 * dwarf2loc.h (struct call_site_chain): New.
1593 (call_site_find_chain): New declaration.
1594 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1595 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1596 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1597 * stack.c (frame_info): Support also TAILCALL_FRAME.
1598
bb984ff1
JK
15992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1600
1601 Tail call sites reader implementation.
1602 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1603 fill in TYPE_TAIL_CALL_LIST.
1604 * gdbtypes.h (struct func_type): New field tail_call_list.
1605 (struct call_site): New field tail_call_next.
1606 (TYPE_TAIL_CALL_LIST): New definition.
1607
8e3b41a9
JK
16082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1609
1610 Implement basic support for DW_TAG_GNU_call_site.
1611 * block.c: Include gdbtypes.h and exceptions.h.
1612 (call_site_for_pc): New function.
1613 * block.h (call_site_for_pc): New declaration.
1614 * defs.h: Include hashtab.h.
1615 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1616 declarations.
1617 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1618 ctx_no_push_dwarf_reg_entry_value.
1619 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1620 (dwarf_block_to_dwarf_reg): New function.
1621 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1622 (ctx_no_push_dwarf_reg_entry_value): New function.
1623 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1624 push_dwarf_reg_entry_value.
1625 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1626 declarations.
1627 * dwarf2loc.c: Include gdbcmd.h.
1628 (dwarf_expr_ctx_funcs): New forward declaration.
1629 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1630 (dwarf_expr_reg_to_entry_parameter)
1631 (dwarf_expr_push_dwarf_reg_entry_value): New.
1632 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1633 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1634 (needs_dwarf_reg_entry_value): New function.
1635 (needs_frame_ctx_funcs): Install it.
1636 (_initialize_dwarf2loc): New function.
1637 * dwarf2loc.h (entry_values_debug): New declaration.
1638 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1639 (read_call_site_scope): New forward declaration.
1640 (process_full_comp_unit): Copy call_site_htab.
1641 (process_die): Support DW_TAG_GNU_call_site.
1642 (read_call_site_scope): New function.
1643 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1644 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1645 (cleanup_htab): Delete.
1646 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1647 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1648 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1649 FIELD_LOC_KIND_DWARF_BLOCK.
1650 * gdbtypes.h (enum field_loc_kind): New entry
1651 FIELD_LOC_KIND_DWARF_BLOCK.
1652 (struct main_type): New loc entry dwarf_block.
1653 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1654 (TYPE_FIELD_DWARF_BLOCK): New.
1655 * python/py-type.c: Include dwarf2loc.h.
1656 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1657 internal_error call on unknown FIELD_LOC_KIND.
1658 * symtab.h (struct symtab): New field call_site_htab.
1659 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1660 (core_addr_hash, core_addr_eq): New functions.
1661
b6cdc2c1
JK
16622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1663
1664 Code reshuffle.
1665 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1666 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1667 calling_convention under func_stuff there.
1668 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1669 (init_type) <TYPE_CODE_FUNC>: Likewise.
1670 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1671 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1672 * gdbtypes.h (enum type_specific_kind): Change
1673 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1674 (struct main_type) <type_specific>: Change calling_convention to
1675 func_stuff. Move calling_convention to ...
1676 (struct func_type): ... this new struct.
1677 (INIT_FUNC_SPECIFIC): New #define.
1678 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1679
181cebd4
JK
16802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1681
1682 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1683 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1684 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1685 ctx->ref_addr_size. Handle its invalid value.
1686 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1687 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1688 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1689 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1690 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1691 (dwarf2_per_cu_ref_addr_size): New function.
1692
c471e790
JK
16932011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1694
1695 Code cleanup.
1696 * dwarf2read.c (per_cu_header_read_in): New function.
1697 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1698 variables cu_header_local and cu_headerp.
1699
741f5e3c
JK
17002011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 Fix initial language detection with -readnow.
1703 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1704 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1705 searches only for global symbols.
1706
a73d2258
JK
17072011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1708
1709 Fix printed anonymous struct name.
1710 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1711 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1712 (anonymous_struct_prefix): New function.
1713 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1714 (dwarf2_name): Strip for anonymous structs any prefixes.
1715
749fd4ea
DE
17162011-10-07 Doug Evans <dje@google.com>
1717
1fa57852
DE
1718 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1719 `replace'.
1720
690a4937
DE
1721 * python/lib/gdb/printing.py: Whitespace cleanup.
1722
749fd4ea
DE
1723 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1724 warning.
1725
4c38200f
PA
17262011-10-07 Pedro Alves <pedro@codesourcery.com>
1727
1728 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1729 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1730 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1731 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1732 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1733 (arm_linux_remove_watchpoint): Adjust.
1734 * i386-linux-nat.c (i386_linux_dr_set_control)
1735 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1736 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1737 (ia64_linux_remove_watchpoint): Adjust.
1738 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1739 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1740 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1741 (ppc_linux_insert_mask_watchpoint)
1742 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1743 (ppc_linux_remove_watchpoint): Adjust.
1744 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1745 Adjust.
1746
b7ff339d
CV
17472011-10-07 Corinna Vinschen <vinschen@redhat.com>
1748
1749 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1750 (clear_win32_environment): New function for Cygwin to clear out
1751 Win32 environment.
1752 (windows_create_inferior): Prepare new environment from in_env
1753 for Cygwin, too.
1754
f287c1f3
PM
17552011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1756
5631e596 1757 PR python/13264
f287c1f3
PM
1758 * python/py-value.c (valpy_call): Check that arguments are
1759 a tuple.
1760 (is_intlike): Remove call to CHECK_TYPEDEF.
1761 (valpy_nonzero): Catch GDB exceptions.
1762 (valpy_absolute): Ditto.
1763 (valpy_lazy_string): Ditto.
1764 (valpy_call): Ditto.
1765 (valpy_get_is_optimized_out): Ditto.
1766 (valpy_long): Ditto.
1767 (valpy_float): Ditto.
1768 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1769 (valpy_richcompare): Ditto.
1770
03583c20
UW
17712011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1772
1773 * inferior.h (disable_randomization): Declare.
1774 * infrun.c (disable_randomization): New global variable.
1775 (show_disable_randomization): New function.
1776 (set_disable_randomization): Likewise.
1777 (_initialize_infrun): Install set/show disable-randomization
1778 commands.
1779 * linux-nat.c (disable_randomization): Remove.
1780 (show_disable_randomization): Likewise.
1781 (set_disable_randomization): Likewise.
1782 (_initialize_linux_nat): No longer install set/show
1783 disable-randomization commands here.
1784 (linux_nat_supports_disable_randomization): New function.
1785 (linux_nat_add_target): Install it.
1786 * remote.c (PACKET_QDisableRandomization): New enum value.
1787 (remote_protocol_packets): Support QDisableRandomization.
1788 (_initialize_remote): Likewise.
1789 (remote_supports_disable_randomization): New function.
1790 (init_remote_ops): Install it.
1791 (extended_remote_supports_disable_randomization): New function.
1792 (init_extended_remote_ops): Install it.
1793 (extended_remote_disable_randomization): New function.
1794 (extended_remote_create_inferior_1): Call it.
1795 * target.h (struct target_ops): Add to_supports_disable_randomization.
1796 (target_supports_disable_randomization): Add prototype.
1797 * target.c (target_supports_disable_randomization): New function.
1798 (find_default_supports_disable_randomization): Likewise.
1799 (init_dummy_target): Install it.
1800
20c168b5
KP
18012011-10-07 Kevin Pouget <kevin.pouget@st.com>
1802
1803 Allow Python notification of new object-file loadings.
1804 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1805 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1806 Add build rule for this file.
1807 * python/py-event.h (emit_new_objfile_event): New prototype.
1808 (newobjfile): New Python event emitter.
1809 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1810 Python event registry.
1811 * python/py-inferior.c: Include objfiles.h
1812 (python_new_objfile): New function.
1813 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1814 observers.
1815 * python/py-newobjfileevent.c: New file.
1816 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1817 prototype.
1818 * python/python.c (_initialize_python): Add
1819 gdbpy_initialize_new_objfile_event call.
1820 * NEWS: Add item for new Python event "gdb.newobjfile"
1821
b1c8db38
TG
18222011-10-05 Tristan Gingold <gingold@adacore.com>
1823
1824 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1825 Extract the ravenscar task name from the symbol for the atcb.
1826
0dab82e9
PK
18272011-10-04 Paul Koning <paul_koning@dell.com>
1828
1829 * python/py-type.c (typy_make_iter): Add forward declaration.
1830 (typy_fields_items): Use the gdb.Type iterator.
1831
84ad80e6
PK
18322011-10-04 Paul Koning <paul_koning@dell.com>
1833
1834 * NEWS: Add entry for Python gdb.Type mapping methods.
1835
cb6be26b
KP
18362011-10-04 Kevin Pouget <kevin.pouget@st.com>
1837
1838 PR python/12691: Add the inferior to Python exited event
1839 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1840 to exited_event.
1841 * python/py-event.h (emit_exited_event): Likewise
1842 * python/-inferior.c (python_inferior_exit): Likewise
1843
6005b210
JB
18442011-10-03 Joel Brobecker <brobecker@adacore.com>
1845
1846 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1847 in output of -ada-task-info GDB/MI command.
1848
75082e8c
JB
18492011-10-03 Joel Brobecker <brobecker@adacore.com>
1850
1851 * ada-lang.h (struct inferior): Declare.
1852 (print_ada_task_info): Add declaration.
1853 * ada-tasks.c (print_ada_task_info): Make non-static.
1854 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1855 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1856 * mi/mi-main.c: #include "ada-lang.h".
1857 (mi_cmd_list_features): Add "ada-task-info" to the list
1858 of supported features.
1859 (mi_cmd_ada_task_info): New function.
1860
7ed7d719
JB
18612011-10-03 Joel Brobecker <brobecker@adacore.com>
1862
1863 * python/python.c (python_run_simple_file): New function.
1864 (source_python_script, source_python_script_for_objfile):
1865 Replace call to PyRun_SimpleFile by call to
1866 python_run_simple_file.
1867
3fcaed38
PK
18682011-10-03 Paul Koning <paul_koning@dell.com>
1869
1870 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1871 (value_to_value_object): Fetch value if it was lazy.
1872
8e5c319d
JK
18732011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1874
1875 Code cleanup.
1876 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1877 Rearrange the code for it.
1878
dd11a36c
JB
18792011-10-02 Joel Brobecker <brobecker@adacore.com>
1880
1881 * breakpoint.c (bkpt_print_recreate): Add call to
1882 print_recreate_thread.
1883
723b724b
MF
18842011-09-29 Mike Frysinger <vapier@gentoo.org>
1885
1886 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1887 PTRACE_GETFDPIC_INTERP): Define.
1888
412946b6
YQ
18892011-09-28 Yao Qi <yao@codesourcery.com>
1890
1891 * symfile.c (add_symbol_file_command): Update message on usage.
1892
a73bb892
PK
18932011-09-28 Paul Koning <paul_koning@dell.com>
1894
1895 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1896 (typy_length, typy_get, typy_has_key, typy_make_iter)
1897 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1898 (typy_iterator_iter, typy_iterator_iternext)
1899 (typy_iterator_dealloc): New functions to implement standard
1900 Python mapping methods on gdb.Type object.
1901 (gdb.TypeIterator): New Python type.
1902 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1903
fe10a582
DM
19042011-09-28 David S. Miller <davem@davemloft.net>
1905
1906 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1907 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1908 * sparc-tdep.c (sparc_complex_floating_p): New function.
1909 (sparc32_store_arguments): Handle complex floats.
1910 (sparc32_extract_return_value): Likewise.
1911 (sparc32_store_return_value): Likewise.
1912 (sparc32_stabs_argument_has_addr): Likewise.
1913 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1914 (sparc64_store_floating_fields): Handle complex floats.
1915 (sparc64_store_arguments): Likewise.
1916 (sparc64_store_return_value): Likewise.
1917
c93dbcba
EZ
19182011-09-28 Eli Zaretskii <eliz@gnu.org>
1919
1920 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1921 before the change on 2006-12-09.
1922 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1923 generates the environment block for CreateProcessA, modulo the
1924 Cygwin-specific parts that are not needed here.
1925
f00c55f8
TG
19262011-09-27 Tristan Gingold <gingold@adacore.com>
1927
1928 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1929 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1930 (darwin_solib_get_all_image_info_addr_at_init): New function.
1931 (darwin_solib_read_all_image_info_addr): Likewise.
1932 (darwin_solib_create_inferior_hook): Use the above two functions.
1933 * darwin-nat.c (darwin_execvp): Renames retval to res.
1934 (darwin_read_write_inferior): Update comment.
1935 (darwin_read_dyld_info): New function.
1936 (darwin_xfer_partial): Handle DYLD_INFO.
1937
6710bf39
SS
19382011-09-27 Stan Shebs <stan@codesourcery.com>
1939
1940 Add return address collection for tracepoints.
1941 * tracepoint.c (encode_actions_1): Add case for $_ret.
1942 (validate_actionline): Check for $_ret.
1943 (trace_dump_actions): Ditto.
1944 * ax-gdb.h (gen_trace_for_return_address): Declare.
1945 * ax-gdb.c: Include arch-utils.h.
1946 (gen_trace_for_return_address): New function.
1947 (agent_command): Add return address special case.
1948 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1949 (amd64_gen_return_address): New function.
1950 (amd64_init_abi): Call it.
1951 * i386-tdep.c: Include ax.h and ax-gdb.h.
1952 (i386_gen_return_address): New function.
1953 (i386_init_abi): Call it.
1954 * arch-utils.h (default_gen_return_address): Declare.
1955 * arch-utils.c (default_gen_return_address): New function.
1956 * gdbarch.sh (gen_return_address): New method.
1957 * gdbarch.h, gdbarch.c: Regenerate.
1958
e04e5beb
JM
19592011-09-23 Joseph Myers <joseph@codesourcery.com>
1960
1961 PR gdb/13079
1962 * i386-tdep.c (i386_frame_align): New.
1963 (i386_gdbarch_init): Use i386_frame_align.
1964
f3d6df6d
YQ
19652011-09-23 Yao Qi <yao@codesourcery.com>
1966
1967 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1968 to get address.
1969
e69860f1
TG
19702011-09-22 Tristan Gingold <gingold@adacore.com>
1971
1972 * fork-child.c (fork_inferior): Add exec_fun parameter.
1973 Call exec_fun or execvp.
1974 * inferior.h: Adjust prototype.
1975 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1976 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1977 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1978 * procfs.c (procfs_create_inferior): Ditto.
1979 * darwin-nat.c (darwin_execvp): New function.
1980 (darwin_create_inferior): Use it.
1981
4b51d87b
YQ
19822011-09-22 Yao Qi <yao@codesourcery.com>
1983
1984 * infrun.c (context_switch): Print debug message when switching to
1985 a different thread.
1986
56b9d9ac
UW
19872011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1988
1989 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1990 complex and vector types.
1991 (s390_return_value_convention): Likewise.
1992
1993 (s390_value_from_register): Call check_typedef.
1994 (extend_simple_arg): Likewise.
1995 (alignment_of): Likewise.
1996 (s390_push_dummy_call): Likewise.
1997 (s390_return_value): Likewise.
1998
b2cd6b29
JM
19992011-09-21 Joseph Myers <joseph@codesourcery.com>
2000
2001 * event-top.c (async_disconnect): If an exception is thrown from
2002 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2003 catch_errors.
2004 * top.c (quit_cover): Return void and take no arguments.
2005 * top.h (quit_cover): Update prototype.
2006
67ba4e42
JM
20072011-09-20 Joseph Myers <joseph@codesourcery.com>
2008
2009 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2010 current_uiout, not uiout.
2011
562f943b
DE
20122011-09-19 Doug Evans <dje@google.com>
2013
2014 * python/py-auto-load.c (source_section_scripts): Fix file
2015 descriptor leak.
2016 * python/python.c (source_python_script_for_objfile): Tweak comments.
2017
34518530
YQ
20182011-09-18 Yao Qi <yao@codesourcery.com>
2019 Ulrich Weigand <ulrich.weigand@linaro.org>
2020
2021 Support displaced stepping for Thumb 16-bit insns.
2022 * arm-tdep.c (THUMB_NOP) Define.
2023 (thumb_copy_unmodified_16bit): New.
2024 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2025 (thumb_copy_alu_reg): New.
2026 (arm_copy_svc): Move some common code to ...
2027 (install_svc): ... here. New.
2028 (thumb_copy_svc): New.
2029 (install_pc_relative): New.
2030 (thumb_copy_pc_relative_16bit): New.
2031 (thumb_decode_pc_relative_16bit): New.
2032 (thumb_copy_16bit_ldr_literal): New.
2033 (thumb_copy_cbnz_cbz): New.
2034 (cleanup_pop_pc_16bit_all): New.
2035 (thumb_copy_pop_pc_16bit): New.
2036 (thumb_process_displaced_16bit_insn): New.
2037 (thumb_process_displaced_32bit_insn): New.
2038 (thumb_process_displaced_insn): process thumb instruction.
2039
2040 Support displaced stepping for Thumb 32-bit insns.
2041 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2042 (thumb2_copy_preload): New.
2043 (thumb2_copy_copro_load_store): New.
2044 (thumb2_copy_b_bl_blx): New.
2045 (thumb2_copy_alu_imm): New.
2046 (thumb2_copy_load_reg_imm): New.
2047 (thumb2_copy_load_literal): New
2048 (thumb2_copy_block_xfer): New.
2049 (thumb_32bit_copy_undef): New.
2050 (thumb_32bit_copy_unpred): New.
2051 (thumb2_decode_ext_reg_ld_st): New.
2052 (thumb2_decode_svc_copro): New.
2053 (decode_thumb_32bit_store_single_data_item): New.
2054 (thumb_copy_pc_relative_32bit): New.
2055 (thumb_decode_pc_relative_32bit): New.
2056 (decode_thumb_32bit_ld_mem_hints): New.
2057 (thumb2_copy_table_branch): New
2058 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2059 instructions.
2060
2b16b2e3
YQ
20612011-09-18 Yao Qi <yao@codesourcery.com>
2062
2063 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2064 (install_b_bl_blx): Likewise.
2065
0f6f04ba
YQ
20662011-09-17 Yao Qi <yao@codesourcery.com>
2067
2068 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2069 (install_load_store): ... this. New.
2070 Change parameter BYTE to SIZE.
2071 (arm_copy_ldr_str_ldrb_strb): Update caller.
2072 (arm_decode_ld_st_word_ubyte): Update caller.
2073
e2d96639
YQ
20742011-09-17 Yao Qi <yao@codesourcery.com>
2075
2076 * infrun.c (displaced_step_fixup): Move some code ...
2077 (displaced_step_restore): ... here. New function.
2078 (handle_inferior_event): Cleanup displaced stepping state for both
2079 child and parent when get forked or vforked event.
2080 * regcache.c (get_thread_arch_aspace_regcache): New function.
2081 get_thread_arch_regcache (): Call it.
2082
a8123151
JB
20832011-09-16 Joel Brobecker <brobecker@adacore.com>
2084
2085 * ada-tasks.c (print_ada_task_info): New function, merging
2086 short_task_info and info_tasks together. Reimplement using
2087 ui-out instead of printing to stdout directly. Move the code
2088 building and checking the task list here, instead of leaving it
2089 in info_tasks_command.
2090 (info_task): Move the code building and checking the task
2091 list here, instead of leaving it in info_tasks_command.
2092 (info_tasks_command): Delete code building and checking
2093 the task list - moved elsewhere. Update calls to info_tasks
2094 and info_task.
2095
fbf06824
JB
20962011-09-16 Joel Brobecker <brobecker@adacore.com>
2097
2098 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2099
34a0bc90
JB
21002011-09-16 Joel Brobecker <brobecker@adacore.com>
2101
2102 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2103
79779fa9
JB
21042011-09-16 Joel Brobecker <brobecker@adacore.com>
2105
2106 * ada-lang.h (ada_build_task_list): Remove parameter
2107 `warn_if_null'.
2108 * ada-tasks.c (ada_build_task_list): Remove parameter
2109 `warn_if_null'. Adjust implementation and documentation.
2110 (valid_task_id, ada_get_environment_task)
2111 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2112 (info_tasks_command): Adjust implementation.
2113 (task_command): Likewise.
2114 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2115 to ada_build_task_list.
2116
e225eb91
JB
21172011-09-16 Joel Brobecker <brobecker@adacore.com>
2118
2119 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2120 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2121 (ada_tasks_inferior_data_handle): New static global.
2122 (get_ada_tasks_inferior_data): New function.
2123 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2124 (ada_get_environment_task, iterate_over_live_ada_tasks)
2125 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2126 Adjust.
2127 (ada_set_current_inferior_known_tasks_addr): New function.
2128 (read_known_tasks, ada_build_task_list, short_task_info)
2129 (info_tasks, info_task, info_tasks_command, task_command_1)
2130 (task_command, ada_task_list_changed): Adjust.
2131 (ada_tasks_invalidate_inferior_data): New function.
2132 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2133 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2134 * ada-lang.h (struct inferior): Add declaration.
2135 (ada_task_list_changed): Update profile.
2136 * remote-wtx-pd.c: #include "inferior.h".
2137 (switch_to_pd_internal): Update call to ada_task_list_changed.
2138
6da9ca05
JB
21392011-09-16 Joel Brobecker <brobecker@adacore.com>
2140
2141 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2142 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2143 (atcb_fieldno): Delete these static globals.
2144 (struct ada_tasks_pspace_data): New struct.
2145 (ada_tasks_pspace_data_handle): New static global.
2146 (get_ada_tasks_pspace_data): New function.
2147 (ada_tasks_invalidate_pspace_data): New function.
2148 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2149 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2150 (_initialize_tasks): Create this module's per-progspace
2151 data handle.
2152
dccd3cbd
JB
21532011-09-16 Joel Brobecker <brobecker@adacore.com>
2154
2155 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2156
f877b031
TG
21572011-09-16 Tristan Gingold <gingold@adacore.com>
2158
2159 * fork-child.c (fork_inferior): Update comment. Use alloca
2160 instead of xmalloc for argv. Move len and shell_command
2161 declarations in the block where they are used.
2162 Only call execvp. Factorize failure code.
2163
ae0c443d
JK
21642011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2165
2166 Code cleanup.
2167 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2168 `exp_element' instead of an element of the same and make the function
2169 static.
2170 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2171 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2172 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2173 Change argument of `write_exp_elt' function call.
2174 Remove extra spaces from comments.
2175 * parser-defs.h (write_exp_elt): Remove prototype.
2176
5af65ec0
PK
21772011-09-15 Paul Koning <paul_koning@dell.com>
2178
2179 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2180 count of item appended to list.
2181 * python/py-type.c (typy_fields): Likewise.
2182
72be8ccc
PK
21832011-09-15 Paul Koning <paul_koning@dell.com>
2184
883640a8 2185 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2186
92f6badc
KP
21872011-09-15 Kevin Pouget <kevin.pouget@st.com>
2188
2189 PR threads/12628
2190 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2191 processes with multiple threads.
2192 (inf_has_multiple_thread_cb): New function.
2193 (inf_has_multiple_threads): New function.
2194
0672bf41 21952011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2196
2197 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2198 * python/py-inferior.c (GdbMethods): New Python method definition.
2199
6839b47f
KP
22002011-09-15 Kevin Pouget <kevin.pouget@st.com>
2201
2202 Handle multiple breakpoint hits in Python interface:
2203 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2204 variable to breakpoints.
2205 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2206 bps instead of single breakpoint. Fix some space typos.
2207 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2208 variable to breakpoints.
2209
672f9b60
KP
22102011-09-15 Kevin Pouget <kevin.pouget@st.com>
2211
2212 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2213 note if the breakpoint is internal.
2214
43675ae4
KP
22152011-09-15 Kevin Pouget <kevin.pouget@st.com>
2216
0672bf41 2217 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2218
15148d6a
PA
22192011-09-14 Pedro Alves <pedro@codesourcery.com>
2220
2221 * infrun.c (prepare_for_detach, wait_for_inferior)
2222 (fetch_inferior_event): Don't flush the register cache.
2223 * remote.c (struct stop_reply) <regcache>: Add comment.
2224
d83e736b
JK
22252011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2226
2227 Remove excessive DWARF expressions memory duplication.
2228 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2229 for block.data.
2230 (indirect_pieced_value): Remove variable result. Remove variable
2231 back_to and its use for baton.data.
2232 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2233 block.data.
2234 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2235 Update the function comment.
2236
c65b3e0d
PA
22372011-09-13 Pedro Alves <pedro@codesourcery.com>
2238
2239 * inferior.h (ALL_INFERIORS): New.
2240 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2241 for a stopped thread.
2242 (thread_db_find_new_threads): Look for threads in all inferiors.
2243
a1398e0c
PA
22442011-09-13 Pedro Alves <pedro@codesourcery.com>
2245
2246 * breakpoint.c (update_watchpoint): Handle the case of the
2247 watchpoint to update not being in the breakpoint list yet.
2248 (hw_watchpoint_use_count): New, factored out from
2249 hw_watchpoint_used_count.
2250 (hw_watchpoint_used_count): Rename to ...
2251 (hw_watchpoint_used_count_others): ... this. Add `except'
2252 parameter. Don't count resources of `except'. Use
2253 hw_watchpoint_use_count.
2254
30596231
PA
22552011-09-13 Pedro Alves <pedro@codesourcery.com>
2256
2257 * gdbthread.h (enum thread_state): Moved here.
2258 (struct thread_info): Rename `executing_' field to `executing' and
2259 `state_' to `state'.
2260 * thread.c (enum thread_state): Moved to gdbthread.h.
2261 (new_thread, add_thread_silent, delete_thread_1)
2262 (any_live_thread_of_process, thread_alive, set_running)
2263 (set_running, is_thread_state, any_running, is_executing)
2264 (set_executing, finish_thread_state, print_thread_info)
2265 (do_captured_thread_select): Adjust.
2266
bede5f5f
JK
22672011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2268
2269 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2270 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2271
4801a9a3
PA
22722011-09-12 Pedro Alves <pedro@codesourcery.com>
2273 Matt Rice <ratmice@gmail.com>
2274
2275 PR gdb/13175
2276
2277 * interps.c (struct interp) <interpreter_out>: Delete field.
2278 (interp_new): Remove the data and uiout parameters and adjust.
2279 (interp_set): Only set the current_uiout from the interpreter's
2280 uiout after initializing the interpreter. Adjust call to
2281 init_proc.
2282 (interp_ui_out): Adjust to call procs->ui_out_proc.
2283 (interp_data, interp_name): New.
2284 * interps.h (interp_init_ftype): Add `self' parameter.
2285 (interp_ui_out_ftype): New typedef.
2286 (struct interp_procs) <ui_out_proc>: New method pointer.
2287 (interp_new): Remove the data and uiout parameters.
2288 (interp_data, interp_name): Declare.
2289 * tui/tui-interp.c (tui_init): Adjust prototype.
2290 (tui_ui_out): New.
2291 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2292 tui_out here. Adjust call to interp_new.
2293 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2294 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2295 (cli_ui_out): New.
2296 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2297 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2298 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2299 Initialize mi->uiout depending on the mi_version as extracted from
2300 the interpreter's name.
2301 (mi_ui_out): New.
2302 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2303 interp_new. Don't allocate the ui_out's of the interpreters here.
2304
d0afda03 23052011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2306
d0afda03 2307 * solib.c (solib_used): New function.
59145f8c
AR
2308 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2309 by another so_list object before freeing it.
2310
bdaf8d4a
JK
23112011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 Code cleanup.
2314 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2315 values.
2316
df15bd07
JK
23172011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2318
2319 Code cleanup.
2320 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2321 (amd64_skip_xmm_prologue): ... this new function. Describe its
2322 parameters. No longer use amd64_prologue_line_bug.
2323 * defs.h (producer_is_gcc_ge_4): New declaration.
2324 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2325 (process_full_comp_unit): Update its caller. Remove
2326 amd64_prologue_line_bug initialization.
2327 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2328 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2329
25289eb2
PA
23302011-09-09 Pedro Alves <pedro@codesourcery.com>
2331
2332 * linux-nat.h (enum resume_kind): New.
2333 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2334 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2335 resume_stop on the new lwp.
25289eb2
PA
2336 (add_lwp): Set last_resume_kind as resume_continue by default.
2337 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2338 (resume_lwp): New, factored out from resume_callback. Also check
2339 for pending status in lp->waitstatus.
2340 (resume_callback): Reimplement.
2341 (resume_clear_callback): Set last_resume_kind as resume_stop.
2342 (resume_set_callback): Set last_resume_kind as resume_continue.
2343 (linux_nat_resume, linux_handle_extended_wait): Set
2344 last_resume_kind.
2345 (running_callback): Also check lp->waitstatus for pending events.
2346 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2347 is resume_step.
2348 (stop_and_resume_callback): Don't re-resume if the core wanted the
2349 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2350 using an invalidated pointer.
2351 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2352 SIGSTOPs if the core wanted the LWP to stop.
2353 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2354 wanted the lwp to stop. If the core wanted the lwp to stop, and
2355 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2356 of TARGET_SIGNAL_STOP.
2357 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2358 here. Instead, signal the lwp, and set the last_resume_kind to
2359 resume_stop.
2360
f687d035
PA
23612011-09-09 Pedro Alves <pedro@codesourcery.com>
2362
2363 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2364 -1 (error), if the lwp exits right after attaching.
2365
bc587a6b
DE
23662011-09-08 Doug Evans <dje@google.com>
2367
63d97a20
DE
2368 * py-cmd.c: Some minor formatting fixes.
2369 (gdbpy_parse_command_name): Rename text arg to name, make const.
2370 All callers updated.
2371 * python-internal.h (gdbpy_parse_command_name): Update.
2372
bc587a6b
DE
2373 * cli/cli-decode.c (add_cmd): Add comment.
2374
08711b9a
JK
23752011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2376
2377 PR breakpoints/12435
2378 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2379 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2380 * dwarf2read.c (process_full_comp_unit): Initialize
2381 amd64_prologue_line_bug.
2382 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2383
b2e7f004
JK
23842011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2385
2386 Fix TUI screen corruption.
2387 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2388 batch_flag.
2389
8afd712c
JK
23902011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2391
2392 * findvar.c (read_var_value): Never return NULL, throw an error
2393 instead. Update the function comment. State symbol name in the error
2394 messages.
2395 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2396 read_var_value.
2397 * stack.c (print_frame_args): Likewise.
2398 * valops.c (value_of_variable): Likewise.
2399
b99b5f66
JK
24002011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 * stack.c (print_frame_args): New variable except. Wrap
2403 read_var_value and common_val_print into TRY_CATCH.
2404
85bc8cb7
JK
24052011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2408 caller to value_of_this.
2409 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2410 Twice.
2411 * valops.c (value_of_this): Remove parameter complain and variable ret.
2412 Update function comment. Never return NULL by this code.
2413 (value_of_this_silent): New function.
2414 * value.h (value_of_this): Remove parameter complain.
2415 (value_of_this_silent): New declaration.
2416
ede1849f
YQ
24172011-09-07 Yao Qi <yao@codesourcery.com>
2418
2419 * gdbthread.h (struct thread_info): Remove fields
2420 `stepping_through_solib_after_catch' and
2421 `stepping_through_solib_catchpoints'.
2422 * infrun.c (init_thread_stepping_state): Update.
2423 (process_event_stop_test, currently_stepping): Update.
2424 (currently_stepping_or_nexting_callback): Update.
2425
6aa27652
YQ
24262011-09-07 Yao Qi <yao@codesourcery.com>
2427
2428 * gdbthread.h (struct thread_info): Comment on field
2429 `step_after_step_resume_breakpoint'.
2430
00db5b94
PA
24312011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2432
2433 * remote.c (remote_console_output): Reindent.
2434
861152be
LM
24352011-09-06 Luis Machado <lgustavo@codesourcery.com>
2436
2437 * frame.c (has_stack_frames): Check for currently selected
2438 traceframe.
2439
ab821bc6
PA
24402011-09-06 Pedro Alves <pedro@codesourcery.com>
2441
2442 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2443 (set_async_annotation_level, set_async_prompt, pop_prompt)
2444 (push_prompt, new_async_prompt): Delete declarations.
2445 * top.h (get_prompt, set_prompt): Change prototype.
2446 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2447 declarations.
2448 * top.c (command_loop):
2449 (top_prompt): New global.
2450 (get_prefix, set_prefix, get_suffix, ): Delete.
2451 (get_prompt, set_prompt): Rewrite.
2452 (show_new_async_prompt): Rename to ...
2453 (show_prompt): ... this.
2454 (init_main): Adjust. Don't handle --annotate=2 here.
2455 * event-top.c (new_async_prompt): Delete.
2456 (the_prompts): Delete.
2457 (more_to_come): Make static.
2458 (display_gdb_prompt): Use top_level_prompt() to compute the top
2459 level prompt, and don't notify the before_prompt observers
2460 directly here. Always trick readline into not trying to display
2461 the prompt if sync_execution and displaying the primary prompt.
2462 If displaying a local/secondary prompt, always show it, even if
2463 sync_execution is set.
2464 (change_annotation_level): Delete.
2465 (top_level_prompt): New, based on change_annotation_level.
2466 (push_prompt, pop_prompt): Delete.
2467 (async_disable_stdin): No longer pushes prompt.
2468 (command_line_handler): No longer pushes or pops prompt. If more
2469 input is expected, call display_gdb_prompt with an explicit empty
2470 prompt.
2471 (async_stop_sig): Adjust.
2472 (set_async_annotation_level, set_async_prompt): Delete.
2473 * python/python.c (before_prompt_hook): Adjust.
2474
f1d90504
PA
24752011-09-05 Pedro Alves <pedro@codesourcery.com>
2476
2477 PR cli/13110
2478
2479 * infrun.c (fetch_inferior_event): Check if there's a selected
2480 thread before checking if the selected thread is executing.
2481
0f641c01
PA
24822011-09-05 Pedro Alves <pedro@codesourcery.com>
2483
2484 * inf-loop.c (execute_command): Don't check if the current thread
2485 if running before synchronously waiting for command completion.
2486 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2487 here.
2488 (normal_stop): Call async_enable_stdin here.
2489 * inf-loop.c (inferior_event_handler): Don't call
2490 async_enable_stdin, nor handle "set exec-done-display" here.
2491
30368258 24922011-09-04 Joel Brobecker <brobecker@adacore.com>
2493
2494 GDB 7.3.1 released.
2495
31916278
JB
24962011-09-04 Joel Brobecker <brobecker@adacore.com>
2497
2498 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2499
e8d56f18
JB
25002011-09-04 Joel Brobecker <brobecker@adacore.com>
2501
2502 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2503
5dd05d8c
JK
25042011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2505
2506 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2507
7d8e6458 25082011-09-02 Matt Rice <ratmice@gmail.com>
2509
2510 PR gdb/10720
2511 * event-top.c (cli_command_loop): Replace readline setup with
2512 direct call to display_gdb_prompt.
2513 (display_gdb_prompt): Do not call observer mechanism during
2514 synchronous execution.
2515
84636d28
PA
25162011-09-02 Pedro Alves <pedro@codesourcery.com>
2517
2518 * linux-nat.c (in_pid_list_p): New.
2519 (linux_record_stopped_pid): Delete.
2520 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2521 already attached to the LWP. Return an indication if so.
2522 (linux_nat_filter_event): Adjust.
2523 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2524 returning an indication to ignore this thread.
2525
b4a14fd0
PA
25262011-09-02 Pedro Alves <pedro@codesourcery.com>
2527
2528 * top.c: Include interps.h.
2529 (execute_command): If the target can async, but the interpreter is
2530 in sync mode, synchronously wait for the command to finish before
2531 returning.
2532 (execute_command_to_string): Force the interpreter to sync mode.
2533 * infrun.c: Include interps.h.
2534 (fetch_inferior_event): Don't restore the prompt yet if the
2535 interpreter is in sync mode.
2536 * interps.c (interpreter_async): New global.
2537 * interps.h (interpreter_async): Declare.
2538 * inf-loop.c: Include interps.h.
2539 (inferior_event_handler): Don't print the language change or run
2540 breakpoint commands yet if the interpreter in is sync mode.
2541 * main.c (captured_command_loop): Flip the interpreter to async
2542 mode.
2543 * cli/cli-script.c: Include interps.h.
2544 (execute_user_command, while_command, if_command): Force the
2545 interpreter to sync mode.
2546 * python/python.c: Include interps.h.
2547 (python_command, execute_gdb_command): Force the interpreter to
2548 sync mode.
2549
c709acd1
PA
25502011-09-02 Pedro Alves <pedro@codesourcery.com>
2551
2552 * value.c (show_convenience): Catch errors thrown while printing
2553 each internal variable.
2554 * infrun.c (validate_siginfo_access): New function.
2555 (siginfo_value_read, siginfo_value_write): Call it.
2556
9655e943
JK
25572011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2558
2559 Revert:
2560 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2561 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2562 attribute.
2563
cb457ae2
YQ
25642011-08-29 Yao Qi <yao@codesourcery.com>
2565
2566 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2567 (cmp_name): New.
2568 (enable_break2): Update caller.
2569 * solib-frv.c (bfd_lookup_symbol): Removed.
2570 (cmp_name): New.
2571 (enable_break2): Update caller.
2572 * solib-pa64.c (bfd_lookup_symbol): Removed.
2573 (cmp_name): New.
2574 * solib-svr4.c (bfd_lookup_symbol): Removed.
2575 (cmp_name_and_sec_flags): New.
2576 (enable_break): Update caller.
2577 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2578 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2579 (gdb_bfd_lookup_symbol): New.
2580 * solib.h: Functions declarations.
2581
83d1a36a
YQ
25822011-08-29 Yao Qi <yao@codesourcery.com>
2583
2584 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2585 and solib-dsbt.o.
2586
c04b3e8f
JK
25872011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2588
2589 Fix TUI stepi on code without symbols.
2590 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2591 current PC instead.
2592
cb0fd152
JK
25932011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 Code cleanup.
2596 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2597 and the static keyword.
2598 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2599 Make prefix an array.
2600 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2601 * mi/mi-main.c (get_register): Remove stb initialization and the static
2602 keyword.
2603
91174723
JK
26042011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2605
2606 Code cleanup - make mi_opt const.
2607 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2608 opts const.
2609 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2610 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2611 (mi_cmd_env_dir): Likewise.
2612 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2613 (mi_cmd_target_file_put): Likewise.
2614 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2615 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2616 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2617 (mi_valid_noargs): Make opts const.
2618 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2619 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2620 (mi_cmd_data_read_memory): Likewise.
2621 (mi_cmd_data_read_memory_bytes): Likewise.
2622 (mi_cmd_data_write_memory): Likewise.
2623
5068b8e8 26242011-08-26 Matt Rice <ratmice@gmail.com>
2625
2626 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2627 bcache_xmalloc, replace bcache_xmalloc with call to
2628 psymbol_bcache_init for psymbol_cache.
2629 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2630
a4f2ce05
JK
26312011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2632
2633 * inf-loop.c (inferior_event_handler): Add exception_print in
2634 INF_EXEC_COMPLETE.
2635
353d1d73
JK
26362011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2637
2638 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2639 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2640 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2641 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2642 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2643 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2644 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2645 * infrun.c (fetch_inferior_event): Call
2646 make_bpstat_clear_actions_cleanup.
2647 * top.c (execute_command): New variable cleanup_if_error, call
2648 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2649 * utils.c (do_bpstat_clear_actions_cleanup)
2650 (make_bpstat_clear_actions_cleanup): New functions.
2651
3ced3da4
PA
26522011-08-26 Pedro Alves <pedro@codesourcery.com>
2653
2654 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2655 either the parent or the child forks. Rename a couple locals.
2656
a9f4bb21
PA
26572011-08-26 Pedro Alves <pedro@codesourcery.com>
2658
2659 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2660 library call. Avoid reading the `status' local if all waitpid
2661 calls failed.
2662
e5798bef
PA
26632011-08-26 Pedro Alves <pedro@codesourcery.com>
2664
2665 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2666 opening /proc/PID/task always succeeds.
2667
edb2aadf
AR
26682011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2669
2670 * linespec.c (symtab_from_filename): Check for the end of string.
2671
0d932b2f
MK
26722011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2673
2674 PR mi/11912
2675 * varobj.c (cplus_describe_child): Add the keyword
2676 'class' to the output of the method when dealing
2677 with a cast to a base class.
2678
e93ca019
JK
26792011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2680
2681 No functionality change.
2682 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2683 function comment a reference, new variables tp and bs, move here code
2684 from throw_exception.
2685 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2686 describe it in the comment.
2687 * exceptions.c (throw_exception): Remove variable tp, move the code for
2688 bpstat_clear_actions to bpstat_clear_actions.
2689
13da1c97
LM
26902011-08-24 Luis Machado <lgustavo@codesourcery.com>
2691
2692 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2693 * linux-nat.c: Include linux-procfs.h.
2694 (linux_proc_get_tgid): Move to ...
2695 * common/linux-procfs.c: ... here. New file.
2696 * common/linux-procfs.h: New file.
2697 * linux-thread-db.c: Include linux-procfs.h.
2698 * Makefile.in: Update dependencies.
2699 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2700 * config/arm/linux.mh: Likewise.
2701 * config/i386/linux.mh: Likewise.
2702 * config/i386/linux64.mh: Likewise.
2703 * config/ia64/linux.mh: Likewise.
2704 * config/m32r/linux.mh: Likewise.
2705 * config/m68k/linux.mh: Likewise.
2706 * config/mips/linux.mh: Likewise.
2707 * config/pa/linux.mh: Likewise.
2708 * config/pa/linux.mh: Likewise.
2709 * config/powerpc/linux.mh: Likewise.
2710 * config/powerpc/ppc64-linux.mh: Likewise.
2711 * config/powerpc/spu-linux.mh: Likewise.
2712 * config/sparc/linux.mh: Likewise.
2713 * config/sparc/linux64.mh: Likewise.
2714 * config/xtensa/linux.mh: Likewise.
2715
4e5c165d
HZ
27162011-08-24 Hui Zhu <teawater@gmail.com>
2717
2718 * tracepoint.c (cond_string_is_same): New function.
2719 (find_matching_tracepoint): Add condition check
2720 by cond_string_is_same.
2721
6e2f5b22
JK
27222011-08-23 Josh Matthews <josh@joshmatthews.net>
2723
2724 Fix build error in Darwin port.
2725 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2726
abf85f46
JK
27272011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2728
2729 Code cleanup.
2730 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2731 (command_line_is_silent): New function.
2732 (bpstat_do_actions_1): No longer use commands_left, use
2733 command_line_is_silent for commands.
2734 (bpstat_alloc): Remove clearing of commands_left.
2735 (bpstat_stop_status): Remove initialization of commands_left, use
2736 command_line_is_silent.
2737 * breakpoint.h (struct bpstats): Remove commands_left.
2738
3a93a0c2
KS
27392011-08-18 Keith Seitz <keiths@redhat.com>
2740
2741 PR c++/12266
2742 * cp-name-parser.y (struct demangle_info): Remove unused
2743 member PREV.
2744 (d_grab): Likewise.
2745 (allocate_info): Change return type to struct demangle_info *.
2746 Always allocate a new demangle_info.
2747 Remove unused PREV pointer.
2748 (cp_new_demangle_parse_info): New function.
2749 (cp_demangled_name_parse_free): New function.
2750 (do_demangled_name_parse_free_cleanup): New function.
2751 (make_cleanup_cp_demangled_name_parse_free): New function.
2752 (cp_demangled_name_to_comp): Change return type to
2753 struct demangle_parse_info *.
2754 Allocate a new storage for each call.
2755 (main): Update usage for cp_demangled_name_to_comp
2756 API change.
2757 * cp-support.h (struct demangle_parse_info): New structure.
2758 (cp_demangled_name_to_comp): Update API change for
2759 return type.
2760 (cp_new_demangle_parse_info): Declare.
2761 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2762 (cp_demangled_name_parse_free): Declare.
2763 * cp-support.c (cp_canonicalize_string): Update API
2764 change for cp_demangled_name_to_comp.
2765 (mangled_name_to_comp): Likewise.
2766 Return struct demangle_parse_info, too.
2767 (cp_class_name_from_physname): Update mangled_name_to_comp
2768 API change.
2769 (method_name_from_physname): Likewise.
2770 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2771 (cp_remove_params): Likewise.
2772 * python/py-type.c (typy_legacy_template_argument): Likewise.
2773
2774 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2775 (cp_merge_demangle_parse_infos): Declare.
2776 * cp-support.c (ignore_typedefs): New file global.
2777 (copy_string_to_obstack): New function.
2778 (inspect_type): New function.
2779 (replace_typedefs): New function.
2780 (replace_typedefs_qualified_name): New function.
2781 (cp_canonicalize_string_no_typedefs): New function.
2782 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2783 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2784 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2785 instead of cp_canonicalize_string.
2786 (find_method): Likewise.
2787 (decode_compound): Before looking up the name, call
2788 cp_canonicalize_string_no_typedefs.
2789 (decode_variable): Likewise.
2790
fa3a4f15
PM
27912011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2792 Tom Tromey <tromey@redhat.com>
2793 Matt Rice <ratmice@gmail.com>
2794
2795 * python/lib/gdb/prompt.py: New file.
2796 * python/lib/gdb/command/prompt.py: New file.
2797 * NEWS: Document set extended-prompt and gdb.prompt library
2798
85661b1e
YQ
27992011-08-16 Yao Qi <yao@codesourcery.com>
2800
2801 * tic6x-linux-tdep.c: Move const arrays definition from here...
2802 * tic6x-tdep.c: to here ...
2803
11315641
YQ
28042011-08-14 Yao Qi <yao@codesourcery.com>
2805
2806 * NEWS: New port to Texas Instruments TMS320C6x.
2807
8cd64e00
YQ
28082011-08-14 Andrew Jenner <andrew@codesourcery.com>
2809 Bernd Schmidt <bernds@codesourcery.com>
2810 Yao Qi <yao@codesourcery.com>
2811
2812 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2813 * solib-dsbt.c: New file. Support DSBT shared object.
2814 * tic6x-linux-tdep.c: New file.
2815 * tic6x-tdep.c: New file.
2816 * tic6x-tdep.h: New file.
2817
78d85199
YQ
28182011-08-14 Andrew Stubbs <ams@codesourcery.com>
2819 Yao Qi <yao@codesourcery.com>
2820
2821 * remote.c (PACKET_qXfer_fdpic): New enum value.
2822 (remote_protocol_features): Add qXfer:fdpic:read packet.
2823 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2824 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2825 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2826
224bbe49
YQ
28272011-08-14 Yao Qi <yao@codesourcery.com>
2828
2829 Target description for tic6x.
2830 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2831 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2832 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2833 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2834 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2835 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2836 * features/tic6x-c64xp-linux.xml: New.
2837 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2838 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2839 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2840 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2841 * regformats/tic6x-c64xp.dat,
2842 regformats/tic6x-c62x-linux.dat: Generated.
2843 * regformats/tic6x-c64x-linux.dat,
2844 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2845 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2846 features/tic6x-*.c files.
2847 Add regformats/tic6x-*.dat files.
2848
457e09f0
DE
28492011-08-12 Doug Evans <dje@google.com>
2850
2851 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2852 * python/py-symbol.c (sympy_get_type): New function.
2853 (symbol_object_getset): Add "type".
2854
d20c1c3f
PA
28552011-08-12 Pedro Alves <pedro@codesourcery.com>
2856
2857 PR tui/13073
2858
2859 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2860 empty name.
2861 (tui_show_register_group): Don't store a byte buffer in the data
2862 element's value.
2863 (tui_register_format): Skip registers with an empty name.
2864 (tui_get_register): Store a struct value in the data element's
2865 value field instead of a byte buffer holding the raw register
2866 contents. Account for optimized-out and unavailable registers
2867 when comparing register contents.
2868
9d8fa392
PA
28692011-08-09 Pedro Alves <pedro@codesourcery.com>
2870
2871 * printcmd.c (current_display_number): Update comment.
2872 (disable_current_display_cleanup): Delete.
2873 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2874 catch errors thrown while evaluating and printing the display.
2875
401a70b8
TT
28762011-08-09 Tom Tromey <tromey@redhat.com>
2877
2878 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2879
7f86f058
PA
28802011-08-09 Pedro Alves <pedro@codesourcery.com>
2881
94b71cca 2882 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2883 * maint.c (maintenance_command): Ditto.
2884 * somread.c (som_symtab_read): Ditto.
2885 * solib.c (solib_find, solib_map_sections, update_solib_list)
2886 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2887 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2888 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2889 * solib-irix.c (locate_base, disable_break, enable_break)
2890 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2891 (irix_current_sos, irix_open_symbol_file_object)
2892 (irix_special_symbol_handling): Ditto.
2893 * solib-sunos.c (locate_base, first_link_map_member)
2894 (sunos_current_sos, disable_break, enable_break)
2895 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2896 Ditto.
2897 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2898 (open_symbol_file_object, svr4_current_sos, enable_break)
2899 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2900 Ditto.
2901 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2902 (frv_current_sos, enable_break, frv_special_symbol_handling)
2903 (frv_solib_create_inferior_hook): Ditto.
2904 * solist.h (struct target_so_ops): Extend the comments of the
2905 special_symbol_handling, current_sos and open_symbol_file_object
2906 methods.
2907
5e239b84
PM
29082011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2909
2910 * python/lib/gdb/__init__.py: Auto-load files in command and
2911 function directories.
2912 * python/python.c (finish_python_initialization): Use
2913 os.path.join.
2914 * python/lib/gdb/command/pretty_printers.py: Self register
2915 command.
2916 * NEWS: Document auto-loading.
2917
b6cede78
JK
29182011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2919
2920 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2921 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2922 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2923
29d0bb3d
TT
29242011-08-08 Tom Tromey <tromey@redhat.com>
2925
2926 * breakpoint.c (clean_up_filters): Remove.
2927 (catch_syscall_split_args): Use VEC_cleanup.
2928
2f7fb8e4
JK
29292011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
2931 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2932 (main): Uncomment "Demangling error\n".
2933
d6c10e95
PP
29342011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2935
2936 * solib-target.c (segment_attributes): Make them static.
2937 (section_attributes, library_children, library_attributes): Likewise.
2938 (library_list_children, library_list_attributes): Likesise.
2939 (library_list_elements): Likewise.
2940
af6e93b2
PA
29412011-08-05 Pedro Alves <pedro@codesourcery.com>
2942
2943 * exceptions.c (throw_exception): Don't disable the current
2944 display.
2945 * printcmd.c (disable_current_display_cleanup): New function.
2946 (do_one_display): Install a cleanup to disable the current display
2947 if doing the display throws.
2948
6a1b1664
EZ
29492011-08-05 Eli Zaretskii <eliz@gnu.org>
2950
2951 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2952 initialization of the tp_new member to the corresponding
2953 gdbpy_initialize_* function.
2954 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2955 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2956 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2957 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2958 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2959
31a0ae49
JK
29602011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2963 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2964 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2965 references to current_uiout.
2966
e0dd0826
PA
29672011-08-04 Pedro Alves <pedro@codesourcery.com>
2968
2969 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2970 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2971 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2972 * top.c (gdb_readline_wrapper): Adjust.
2973 * tui/tui-interp.c (tui_command_loop):
2974 (_initialize_tui_interp): Don't install it.
2975
79a45e25
PA
29762011-08-04 Pedro Alves <pedro@codesourcery.com>
2977
2978 * ui-out.h (uiout): Rename to ...
2979 (current_uiout): ... this.
2980 * ui-out.c (uiout): Rename to ...
2981 (current_uiout): ... this.
2982 * ada-lang.c (print_it_exception, print_one_exception)
2983 (print_mention_exception): Adjust.
2984 * breakpoint.c (watchpoint_check): Adjust.
2985 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2986 (default_collect_info, watchpoints_info, print_one_catch_fork)
2987 (print_one_catch_vfork, print_one_catch_syscall)
2988 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2989 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2990 (print_it_watchpoint, print_mention_watchpoint)
2991 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2992 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2993 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2994 (bkpt_print_mention, momentary_bkpt_print_it)
2995 (tracepoint_print_mention, update_static_tracepoint)
2996 (tracepoints_info, save_breakpoints): Adjust.
2997 * cli-out.c (field_separator): Adjust.
2998 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2999 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3000 * frame.c (get_current_frame): Adjust.
3001 * infcmd.c (run_command_1, print_return_value): Adjust.
3002 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3003 * infrun.c (print_end_stepping_range_reason): Adjust.
3004 (print_signal_exited_reason, print_exited_reason): Adjust.
3005 (print_signal_received_reason, print_no_history_reason): Adjust.
3006 * interps.c (interp_set): Adjust.
3007 * osdata.c (info_osdata_command): Adjust.
3008 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3009 * remote-fileio.c (remote_fileio_request): Adjust.
3010 * remote.c (show_remote_cmd): Adjust.
3011 * solib.c (info_sharedlibrary_command): Adjust.
3012 * source.c (print_source_lines_base): Adjust.
3013 * stack.c (print_stack_frame): Adjust.
3014 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3015 * symfile-mem.c (add_vsyscall_page): Adjust.
3016 * symfile.c (load_progress, generic_load)
3017 (print_transfer_performance): Adjust.
3018 * thread.c (info_threads_command, restore_selected_frame)
3019 (thread_command): Adjust.
3020 * top.c (make_cleanup_restore_ui_file): Adjust.
3021 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3022 (print_one_static_tracepoint_marker): Adjust.
3023 * cli/cli-cmds.c (print_disassembly): Adjust.
3024 * cli/cli-decode.c (print_doc_line): Adjust.
3025 * cli/cli-interp.c (safe_execute_command): Adjust.
3026 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3027 (handle_redirections): Adjust.
3028 * cli/cli-script.c (show_user_1): Adjust.
3029 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3030 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3031 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3032 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3033 (mi_cmd_env_dir): Adjust.
3034 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3035 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3036 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3037 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3038 (list_args_or_locals): Adjust.
3039 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3040 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3041 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3042 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3043 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3044 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3045 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3046 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3047 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3048 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3049 (list_available_thread_groups, mi_cmd_list_thread_groups)
3050 (mi_cmd_data_list_register_names)
3051 (mi_cmd_data_list_changed_registers)
3052 (mi_cmd_data_list_register_values, get_register)
3053 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3054 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3055 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3056 (mi_execute_command, mi_load_progress): Adjust.
3057 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3058 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3059 Adjust.
3060 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3061 * tui/tui-interp.c (tui_command_loop): Adjust.
3062 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3063
f9679975
PA
30642011-08-04 Pedro Alves <pedro@codesourcery.com>
3065
3066 * exceptions.c (struct catcher): Remove saved_uiout field.
3067 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3068 no longer save/resvore the global ui_out builder.
3069 (catch_exceptions_with_msg): Save/override/restore the global
3070 ui_out builder manually instead of relying on TRY_CATCH to do it.
3071 (catch_errors): Save/restore the global ui_out builder manually
3072 instead of relying on TRY_CATCH to do it.
3073 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3074 parameter.
3075 (TRY_CATCH): Adjust.
3076 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3077 the global ui_out builder manually instead of relying on TRY_CATCH
3078 to do it.
3079
934709f0
PW
30802011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3081
3082 * breakpoint.c (update_global_location_list): Ensure
3083 invariant 'first loc marked not duplicated and inserted,
3084 following locs marked duplicated/not inserted' is respected
3085 for multiple locations at the same address.
3086 (unduplicated_should_be_inserted) New function.
3087 (swap_insertion) New function.
3088
2421fe6f
JK
30892011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3090
3091 * stack.c (print_frame_arguments_choices): Comment typo fix.
3092
3fbb6ffa
TJB
30932011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3094
3095 Revert:
3096 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3097 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3098 argument. Update callers.
3099
fbe12357
PP
31002011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3101
3102 PR gdb/13045
3103 * doublest.c (convert_doublest_to_floatformat): Pass correct
3104 mantissa length to put_field.
3105
b1d288d3
JK
31062011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3107
3108 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3109 exception_print code path.
3110 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3111 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3112 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3113
311b5970
JK
31142011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3115
3116 Code cleanup.
3117 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3118 Remove, merge them into ...
3119 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3120 variable args and its initialization.
3121 (struct print_args_args, print_args_stub): Remove, merge them into
3122 print_frame.
3123 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3124 them into ...
3125 (do_gdb_disassembly): ... here. Remove variable args and its
3126 initialization.
3127 (print_frame): Remove variable args and its initialization, new
3128 variable gdbarch and numargs (from print_args_stub), inline here
3129 print_args_stub with a TRY_CATCH.
3130 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3131 them into ...
3132 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3133 New variable e, remove variable btargs and its initialization.
311b5970 3134
484a26a8
TG
31352011-08-01 Tristan Gingold <gingold@adacore.com>
3136
3137 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3138
c30eee59
TJB
31392011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3140
3141 * breakpoint.c (insert_bp_location): Document return value.
3142 (insert_breakpoint_locations): Fix documentation.
3143 (remove_breakpoints): Add documentation.
3144
f116073b
TJB
31452011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3146
3147 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3148 argument. Update callers.
3149
65aa373f
JK
31502011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3151
3152 * stack.c (print_frame_info): Comment typo fix.
3153
a50242fb
SA
31542011-07-29 Sterling Augustine <saugustine@google.com>
3155
3156 * MAINTAINERS (Write After Approval): Add myself to the list.
3157
267f6504
TT
31582011-07-29 Tom Tromey <tromey@redhat.com>
3159
3160 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3161 (library_list_start_segment): Update.
3162 (library_list_start_section): Update.
3163
00bd41d6
PM
31642011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3165
3166 * varobj.c (value_get_print_value): Move hint check later into the
3167 function. Comment function. Free thevalue before reusing it.
3168
18a46dbe
JK
31692011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3170 Pedro Alves <pedro@codesourcery.com>
3171
3172 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3173 value_one.
3174 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3175 Assert the result kind.
3176 * value.h (value_one): Remove parameter lv.
3177
bb7da2bf
JK
31782011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3179
3180 Fix crash on lval_computed values.
3181 * valops.c (value_zero): Use not_lval for lval_computed.
3182
2d5213f8
TT
31832011-07-27 Tom Tromey <tromey@redhat.com>
3184
3185 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3186 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3187
11081198
JK
31882011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3189
3190 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3191 "ptype" by their typedefs difference.
3192
3c6e0cb3
JK
31932011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3194
3195 * dwarf2expr.c (ctx_no_read_reg): New function.
3196 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3197 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3198 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3199 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3200
523f3620
JK
32012011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3202
3203 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3204 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3205 file.
3206 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3207 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3208 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3209 (ctx_no_get_base_type): Move the functions here.
3210 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3211 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3212 (ctx_no_get_base_type): New declarations.
3213
24d3216f
TT
32142011-07-27 Tom Tromey <tromey@redhat.com>
3215
3216 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3217 entries.
3218 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3219 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3220
5005c8a9
PP
32212011-07-26 Sterling Augustine <saugustine@google.com>
3222
3223 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3224 ULONGEST.
3225 (dump_bfd_file): Likewise.
3226
480a3f21
PW
32272011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3228
3229 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3230 (remote_hw_watchpoint_length_limit): New variable.
3231 (_initialize_remote) add set,show cmds for this new variable.
3232 * gdb.texinfo: document these new commands.
3233 * NEWS: Mention these new commands.
3234
efa80663
PA
32352011-07-26 Pedro Alves <pedro@codesourcery.com>
3236
3237 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3238 true for software watchpoints.
3239
dbdaa232 32402011-07-26 Joel Brobecker <brobecker@adacore.com>
3241
3242 GDB 7.3 released.
3243
cf2c3c16
TT
32442011-07-26 Tom Tromey <tromey@redhat.com>
3245
3246 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3247 * dwarf2read.c (read_indirect_string_at_offset): New function.
3248 (read_indirect_string): Use it.
3249 (dwarf_decode_macro_bytes): New function, taken from
3250 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3251 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3252 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3253 New functions.
3254 (struct dwarf2_per_objfile) <macro>: New field.
3255 (dwarf2_elf_names): Add .debug_macro.
3256 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3257 (dwarf2_locate_sections): Handle new section.
3258 (read_file_scope): Handle DW_AT_GNU_macros.
3259 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3260
1a532630
PP
32612011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3262
3263 * NEWS: Mention dcache configuration.
3264 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3265 (dcache_size, dcache_line_size): New variables.
3266 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3267 (struct dcache_block): Make it expandable.
3268 (struct dcache_struct): New field.
3269 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3270 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3271 (dcache_poke_byte, dcache_print_line): Adjust.
3272 (set_dcache_size, set_dcache_line_size): New functions.
3273 (set_dcache_command, show_dcache_command): New functions.
3274 (_initialize_dcache): Add new commands.
3275
2eff07b3
PP
32762011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3277
3278 * progspace.h (struct program_space): Add solib_add_generation.
3279 * infcmd.c (post_create_inferior): Only call solib_add if not
3280 already done.
3281 * solib.c (solib_add): Increment solib_add_generation.
3282
543305c9
JK
32832011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3284
3285 Fix implicit pointer offsets.
3286 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3287 ptr.OFFSET.
3288
c0a91b2b
TT
32892011-07-25 Tom Tromey <tromey@redhat.com>
3290
3291 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3292 const.
3293 (ada_exception_sal): Make 'ops' const.
3294 (ada_decode_exception_location): Likewise.
3295 (ada_decode_assert_location): Likewise.
3296 (catch_assert_command): Update.
3297 (catch_ada_exception_command): Update.
3298 (create_ada_exception_catchpoint): Make 'ops' const.
3299 * breakpoint.c (set_raw_breakpoint_without_location)
3300 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3301 const.
3302 (create_internal_breakpoint): Update.
3303 (init_raw_breakpoint_without_location): Make 'ops' const.
3304 (init_raw_breakpoint, init_catchpoint)
3305 (create_fork_vfork_event_catchpoint)
3306 (create_syscall_event_catchpoint, init_breakpoint_sal)
3307 (create_breakpoint_sal, create_breakpoints_sal)
3308 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3309 * breakpoint.h (struct breakpoint) <ops>: Now const.
3310 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3311 const.
3312
6cb9b55b
PP
33132011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3314
3315 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3316
d9b3f62e
PA
33172011-07-25 Pedro Alves <pedro@codesourcery.com>
3318
3319 * breakpoint.h (print_recreate_thread): Declare.
3320 (struct breakpoint): Move step_count, pass_count,
3321 number_on_target, static_trace_marker_id,
3322 static_trace_marker_id_idx ...
3323 (struct tracepoint): ... to this new struct.
3324 (get_tracepoint, get_tracepoint_by_number_on_target)
3325 (get_tracepoint_by_number): Change return type to struct
3326 tracepoint pointer.
3327 * breakpoint.c (is_tracepoint_type): New, factored out from
3328 is_tracepoint.
3329 (is_tracepoint): Adjust.
3330 (print_one_breakpoint_location): Cast to struct tracepoint as
3331 necessary, and adjust.
3332 (print_recreate_catch_fork, print_recreate_catch_vfork)
3333 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3334 print_recreate_thread.
3335 (init_breakpoint_sal): New, factored out from
3336 create_breakpoint_sal.
3337 (create_breakpoint_sal): Reimplement.
3338 (create_breakpoint): Allocate a struct tracecepoint if the caller
3339 wanted a tracepoint. Use init_breakpoint_sal and
3340 install_breakpoint.
3341 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3342 (print_recreate_masked_watchpoint)
3343 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3344 (tracepoint_print_one_detail): Adjust.
3345 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3346 Dump the pass count here.
3347 (update_static_tracepoint): Adjust.
3348 (addr_string_to_sals): Adjust.
3349 (create_tracepoint_from_upload): Adjust. Change return type to
3350 struct tracepoint pointer.
3351 (trace_pass_set_count): Change parameter type to struct tracepoint
3352 pointer, and adjust.
3353 (trace_pass_command): Adjust.
3354 (get_tracepoint, get_tracepoint_by_number_on_target)
3355 (get_tracepoint_by_number): Change return type to struct
3356 tracepoint pointer, and adjust.
3357 (print_recreate_thread): New, factored out from save_breakpoints.
3358 (save_breakpoints): Don't print thread and task and passcount
3359 recreation here.
3360 * remote.c (remote_download_tracepoint): Adjust.
3361 * tracepoint.c (trace_actions_command, validate_actionline)
3362 (start_tracing, tfind_1, trace_find_tracepoint_command)
3363 (trace_dump_command): Adjust.
3364 (find_matching_tracepoint): Change return type to struct
3365 tracepoint pointer, and adjust.
3366 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3367 (tfile_trace_find, tfile_fetch_registers): Adjust.
3368 * tracepoint.h (create_tracepoint_from_upload): Change return type
3369 to struct tracepoint pointer.
3370 * ada-lang.c (print_recreate_exception): Call
3371 print_recreate_thread.
3372 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3373
3a5c3e22
PA
33742011-07-25 Pedro Alves <pedro@codesourcery.com>
3375
3376 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3377 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3378 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3379 watchpoint_thread, watchpoint_triggered ...
3380 (struct watchpoint): ... to this new struct.
3381 (is_watchpoint): Declare.
3382 (install_breakpoint): Add new `internal' parameter.
3383 * breakpoint.c (is_watchpoint): Delete declaration.
3384 (set_breakpoint_condition): Handle watchpoints.
3385 (is_watchpoint): Make public.
3386 (watchpoint_in_thread_scope): Change parameter type to struct
3387 watchpoint.
3388 (watchpoint_del_at_next_stop): Change parameter type to struct
3389 watchpoint. Remove assertion. Adjust.
3390 (update_watchpoint): Ditto.
3391 (insert_breakpoints, breakpoint_init_inferior)
3392 (watchpoints_triggered, watchpoint_check)
3393 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3394 (bpstat_stop_status, print_one_breakpoint_location)
3395 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3396 to struct watchpoint as necessary, and adjust.
3397 (install_breakpoint): Add `internal' argument. If true, don't
3398 mention the new breakpoint. Use set_breakpoint_number.
3399 (create_fork_vfork_event_catchpoint)
3400 (create_syscall_event_catchpoint): Adjust.
3401 (dtor_watchpoint): New.
3402 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3403 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3404 (print_it_watchpoint, print_mention_watchpoint)
3405 (print_recreate_watchpoint, insert_masked_watchpoint)
3406 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3407 (print_one_detail_masked_watchpoint)
3408 (print_mention_masked_watchpoint)
3409 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3410 necessary, and adjust.
3411 (watch_command_1): Allocate and initialize a struct watchpoint
3412 instead of a struct breakpoint. Use install_breakpoint.
3413 (catch_exec_command_1): Adjust.
3414 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3415 fields.
3416 (delete_breakpoint, enable_breakpoint_disp)
3417 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3418 as necessary, and adjust.
3419 (initialize_breakpoint_ops): Install dtor_watchpoint as
3420 watchpoints' dtor method.
3421 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3422 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3423 to struct watchpoint as necessary, and adjust.
3424
2060206e
PA
34252011-07-25 Pedro Alves <pedro@codesourcery.com>
3426
3427 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3428 the the base class ops table.
3429 (catch_exception_breakpoint_ops)
3430 (catch_exception_unhandled_breakpoint_ops)
3431 (catch_assert_breakpoint_ops): Don't statically initialize.
3432 (initialize_ada_catchpoint_ops): New.
3433 (_initialize_ada_language): Call it.
3434 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3435 (bkpt_breakpoint_ops): Forward declare.
3436 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3437 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3438 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3439 (masked_watchpoint_breakpoint_ops)
3440 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3441 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3442 base class ops table.
3443 (null_re_set, null_check_status, null_works_in_software_mode)
3444 (null_resources_needed, null_print_one_detail): Delete.
3445 (bkpt_dtor): Rename to ...
3446 (base_breakpoint_dtor): ... this. Make static.
3447 (bkpt_allocate_location): Rename to ...
3448 (base_breakpoint_allocate_location): ... this. Make static.
3449 (base_breakpoint_re_set): New.
3450 (internal_error_pure_virtual_called): New.
3451 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3452 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3453 (base_breakpoint_works_in_software_mode)
3454 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3455 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3456 (base_breakpoint_print_recreate): New functions.
3457 (base_breakpoint_ops): New global.
3458 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3459 (bkpt_breakpoint_hit): Make static.
3460 (bkpt_check_status): Delete.
3461 (bkpt_resources_needed): Make static.
3462 (bkpt_works_in_software_mode): Delete.
3463 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3464 static.
3465 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3466 (momentary_breakpoint_ops): Don't statically initialize.
3467 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3468 Delete.
3469 (tracepoint_insert_location, tracepoint_remove_location)
3470 (tracepoint_check_status, tracepoint_works_in_software_mode)
3471 (tracepoint_print_it): Delete.
3472 (tracepoint_breakpoint_ops): Don't statically initialize.
3473 (initialize_breakpoint_ops): New.
3474 (_initialize_breakpoint): Call it.
3475 * breakpoint.h (null_re_set, null_works_in_software_mode)
3476 (null_resources_needed, null_check_status, null_print_one_detail):
3477 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3478 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3479 (bkpt_check_status, bkpt_resources_needed)
3480 (bkpt_works_in_software_mode, bkpt_print_it)
3481 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3482 Delete declarations.
3483 (initialize_breakpoint_ops): Declare.
3484
001c8c33
PA
34852011-07-25 Pedro Alves <pedro@codesourcery.com>
3486
3487 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3488 (momentary_bkpt_print_it): Simplify.
3489
06edf0c0
PA
34902011-07-25 Pedro Alves <pedro@codesourcery.com>
3491
3492 Split internal, momentary and user breakpoints breakpoint_ops
3493 tables.
3494
3495 * breakpoint.c (internal_breakpoint_ops)
3496 (momentary_breakpoint_ops): Forward declare.
3497 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3498 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3499 (create_overlay_event_breakpoint)
3500 (create_std_terminate_master_breakpoint)
3501 (create_exception_master_breakpoint): Create breakpoints with
3502 internal_breakpoint_ops vtable.
3503 (set_longjmp_breakpoint): Create momentary breakpoints with
3504 momentary_breakpoint_ops vtable, using
3505 momentary_breakpoint_from_master.
3506 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3507 (create_solib_event_breakpoint): Create breakpoints with
3508 internal_breakpoint_ops vtable.
3509 (set_momentary_breakpoint): Create breakpoints with
3510 momentary_breakpoint_ops vtable.
3511 (momentary_breakpoint_from_master): New, factored out from
3512 clone_momentary_breakpoint.
3513 (clone_momentary_breakpoint): Adjust.
3514 (watch_command_1): Create scope breakpoints with
3515 momentary_breakpoint_ops vtable.
3516 (bkpt_re_set): Remove handling of internal and momentary
3517 breakpoints.
3518 (bkpt_print_mention, bkpt_print_recreate): New.
3519 (bkpt_breakpoint_ops): Adjust.
3520 (internal_bkpt_re_set, internal_bkpt_check_status)
3521 (internal_bkpt_print_it, internal_bkpt_print_mention)
3522 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3523 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3524 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3525 (momentary_bkpt_print_recreate): New.
3526 (momentary_breakpoint_ops): New.
3527
348d480f
PA
35282011-07-25 Pedro Alves <pedro@codesourcery.com>
3529
3530 Implement most breakpoint_ops methods for all breakpoint types,
3531 and move the default handlings to the proper callbacks.
3532
3533 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3534 works_in_software_mode method.
3535 (insert_bp_location): Go through breakpoint_ops->insert_location
3536 for software and hardware watchpoints.
3537 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3538 breakpoint_ops.
3539 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3540 for software and hardware watchpoints.
3541 (print_it_typical): Delete.
3542 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3543 method.
3544 (watchpoint_check): Adjust comment.
3545 (bpstat_check_location): Simply always call the breakpoint's
3546 breakpoint_hit method.
3547 (bpstat_stop_status): Always call the breakpoint's check_status
3548 method. Remove special cases for watchpoints and internal event
3549 breakpoints from here (moved to the check_status implementations).
3550 (print_one_breakpoint_location): Assume b->ops is never NULL.
3551 Remove static tracepoint marker id printing from here (moved to
3552 the print_one_detail callback implementation of tracepoints).
3553 (init_bp_location): Assert OPS is never NULL.
3554 (allocate_bp_location): Always call the breakpoint's
3555 allocate_location method, and remove the default code from here.
3556 (free_bp_location): Always call the location's dtor method, and
3557 remove the default code from here.
3558 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3559 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3560 parameter. Pass it down.
3561 (set_raw_breakpoint): Ditto.
3562 (print_it_catch_fork): Adjust to take a bpstat as argument.
3563 (catch_fork_breakpoint_ops): Install methods.
3564 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3565 (catch_vfork_breakpoint_ops): Install methods.
3566 (dtor_catch_syscall): Call the base dtor.
3567 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3568 (catch_syscall_breakpoint_ops): Install methods.
3569 (dtor_catch_exec): Call the base dtor.
3570 (print_it_catch_exec): Adjust to take a bpstat as argument.
3571 (catch_exec_breakpoint_ops): Install methods.
3572 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3573 the breakpoint's resources_needed method, and remove the default
3574 code from here.
3575 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3576 breakpoint_ops.
3577 (clone_momentary_breakpoint): Clone the original's ops.
3578 (mention): Always call the breakpoint's print_mention method, and
3579 remove the default code from here.
3580 (create_breakpoint_sal): Adjust to pass the ops to
3581 set_raw_breakpoint rather than setting it manually.
3582 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3583 ops to set_raw_breakpoint_without_location rather than setting it
3584 manually.
3585 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3586 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3587 (ranged_breakpoint_ops): Install methods.
3588 (break_range_command): Adjust to pass the ops to
3589 set_raw_breakpoint rather than setting it manually.
3590 (re_set_watchpoint, breakpoint_hit_watchpoint)
3591 (check_status_watchpoint, resources_needed_watchpoint)
3592 (works_in_software_mode_watchpoint, print_it_watchpoint)
3593 (print_mention_watchpoint, print_recreate_watchpoint): New
3594 functions.
3595 (watchpoint_breakpoint_ops): Install new methods.
3596 (print_it_masked_watchpoint): New function.
3597 (masked_watchpoint_breakpoint_ops): Install new methods.
3598 (watch_command_1): Adjust to pass the right breakpoint_ops to
3599 set_raw_breakpoint_without_location rather than setting it
3600 manually later. Record the current pspace.
3601 (print_it_exception_catchpoint): Adjust to take a bpstat as
3602 argument.
3603 (gnu_v3_exception_catchpoint_ops): Install new methods.
3604 (say_where): New function.
3605 (null_re_set, null_check_status, null_works_in_software_mode)
3606 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3607 New functions.
3608 (bp_location_ops): New global.
3609 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3610 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3611 (bkpt_check_status, bkpt_resources_needed)
3612 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3613 (bkpt_print_recreate): New functions.
3614 (bkpt_breakpoint_ops): New global.
3615 (tracepoint_re_set, tracepoint_insert_location)
3616 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3617 (tracepoint_check_status, tracepoint_works_in_software_mode)
3618 (tracepoint_print_it, tracepoint_print_one_detail)
3619 (tracepoint_print_mention, tracepoint_print_recreate): New
3620 functions.
3621 (tracepoint_breakpoint_ops): New global.
3622 (delete_breakpoint): Always call the breakpoint's dtor method, and
3623 remove the default handling from here.
3624 (breakpoint_re_set_default): Make static.
3625 (breakpoint_re_set_one): Always call the breakpoints re_set
3626 method, and remove the default handling from here.
3627 (trace_command, ftrace_command, strace_command)
3628 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3629 to create_breakpoint.
3630 (save_breakpoints): Always call the breakpoint's print_recreate
3631 method, and remove the default handling from here.
3632
3633 * ada-lang.c (dtor_exception): Call the base dtor.
3634 (re_set_exception): Call the base method.
3635 (print_it_exception, print_it_catch_exception): Adjust to take a
3636 bpstat as argument.
3637 (catch_exception_breakpoint_ops): Install methods.
3638 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3639 argument.
3640 (catch_exception_unhandled_breakpoint_ops): Install methods.
3641 (print_it_catch_assert): Adjust to take a bpstat as argument.
3642 (catch_assert_breakpoint_ops): Install methods.
3643
3644 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3645 to take a bpstat as argument.
3646 (enum print_stop_action): Add describing comments to each enum
3647 value.
3648 (breakpoint_re_set_default): Delete declaration.
3649 (null_re_set, null_works_in_software_mode, null_resources_needed)
3650 (null_check_status, null_print_one_detail): Declare.
3651 (bkpt_breakpoint_ops): Declare.
3652 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3653 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3654 (bkpt_check_status, bkpt_resources_needed)
3655 (bkpt_works_in_software_mode, bkpt_print_it)
3656 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3657 Declare.
3658
3659 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3660 bkpt_breakpoint_ops.
3661 * python/py-breakpoint.c (bppy_init): Ditto.
3662
be8f8133
PW
36632011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3664
3665 * MAINTAINERS (Write After Approval): Add myself to the list.
3666
3807f613
PP
36672011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3668
3669 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3670
1ced966e
PA
36712011-07-22 Pedro Alves <pedro@codesourcery.com>
3672
3673 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3674 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3675 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3676 adjust.
3677 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3678 (struct i386_debug_reg_state): New.
3679 (i386_init_dregs): New.
3680 (dr_mirror): New.
3681 (i386_cleanup_dregs): Use i386_init_dregs.
3682 (i386_show_dr): Add state parameter and adjust.
3683 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3684 the inferior here.
3685 (i386_remove_aligned_watchpoint): Likewise.
3686 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3687 (i386_update_inferior_debug_regs): New.
3688 (i386_insert_watchpoint): Work on a local mirror of the debug
3689 registers, and only update the inferior on success.
3690 (i386_remove_watchpoint): Ditto.
3691 (i386_region_ok_for_watchpoint): Adjust.
3692 (i386_stopped_data_address): Adjust.
3693 (i386_insert_hw_breakpoint): Adjust.
3694 (i386_remove_hw_breakpoint): Adjust.
3695
3543a589
TT
36962011-07-22 Tom Tromey <tromey@redhat.com>
3697
3698 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3699 from amd64_pseudo_register_read. Change arguments. Call
3700 mark_value_bytes_unavailable when needed.
3701 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3702 set_gdbarch_pseudo_register_read.
3703 * sentinel-frame.c (sentinel_frame_prev_register): Use
3704 regcache_cooked_read_value.
3705 * regcache.h (regcache_cooked_read_value): Declare.
3706 * regcache.c (regcache_cooked_read_value): New function.
3707 (regcache_cooked_read): Call
3708 gdbarch_pseudo_register_read_value if available.
3709 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3710 (i386_pseudo_register_read): Remove.
3711 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3712 i386_pseudo_register_read. Change arguments. Call
3713 mark_value_bytes_unavailable when needed.
3714 (i386_pseudo_register_read_value): New function.
3715 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3716 not set_gdbarch_pseudo_register_read.
3717 * gdbarch.sh (pseudo_register_read_value): New method.
3718 * gdbarch.c, gdbarch.h: Rebuild.
3719 * findvar.c (value_from_register): Call get_frame_register_value.
3720
95298e72
PM
37212011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3722
3723 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3724 get_prefix.
3725 (display_gdb_prompt): Likewise.
3726 (change_annotation_level): Likewise.
3727 (push_prompt): Likewise.
3728 (pop_prompt): Likewise.
3729 (handle_stop_sig): Use get_prompt with a level.
3730 * top.c (command_loop): Use get_prompt with a level.
3731 (set_async_annotation_level): Use set_prompt with a level.
3732 (get_prefix): New function.
3733 (set_prefix): Ditto.
3734 (set_suffix): Ditto.
3735 (get_suffix): Ditto.
3736 (get_prompt): Accept a level argument.
3737 (set_prompt): Accept a level argument. Free old prompts. Set
3738 new_async_prompt if level is 0.
3739 (init_main): Use set_prompt with a level. Do not set
3740 new_async_prompt.
3741 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3742 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3743 Modify set_prompt, get_prompt to account for levels.
3744 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3745 level.
3746 * python/python.c (before_prompt_hook): Use set_prompt.
3747
d26e3629
KY
37482011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3749
3750 * defs.h: Add guard against inclusion in gdbserver.
3751 (struct ptid, ptid_t): Move to common/ptid.h.
3752 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3753 xsnprintf, internal_error): Move to common/common-utils.h.
3754 (nomem): Delete.
3755 * gdb_assert.h: Move into common/ sub-directory.
3756 * gdb_locale.h: Ditto.
3757 * gdb_dirent.h: Ditto.
3758 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3759 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3760 Move into common/ptid.h.
3761 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3762 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3763 Change nomem to malloc_failure.
3764 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3765 * utils.c (nomem): Rename to malloc_failure.
3766 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3767 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3768 (gdb_buildargv): Change nomem to malloc_failure.
3769 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3770 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3771 ptid_is_pid): Move into common/ptid.c.
3772 (initialize_infrun): Delete initialization of null_ptid and
3773 minus_one_ptid.
3774 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3775 linux_common_xfer_osdata.
3776 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3777 common/ptid.c and common/buffer.c.
3778 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3779 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3780 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3781 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3782 rules.
3783 * common/gdb_assert.h: New.
3784 * common/gdb_dirent.h: New.
3785 * common/gdb_locale.h: New.
3786 * common/buffer.c: New.
3787 * common/buffer.h: New.
3788 * common/ptid.c: New.
3789 * common/ptid.h: New.
3790 * common/xml-utils.c: New.
3791 * common/xml-utils.h: New.
3792 * common/common-utils.c: New.
3793 * common/common-utils.h: New.
3794 * common/linux-osdata.c: New.
3795 * common/linux-osdata.h: New.
3796 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3797 * config/arm/linux.mh (NATDEPFILES): Ditto.
3798 * config/i386/linux.mh (NATDEPFILES): Ditto.
3799 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3800 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3801 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3802 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3803 * config/mips/linux.mh (NATDEPFILES): Ditto.
3804 * config/pa/linux.mh (NATDEPFILES): Ditto.
3805 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3806 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3807 * config/s390/s390.mh (NATDEPFILES): Ditto.
3808 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3809 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3810 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3811
edc84990 38122011-07-21 Matt Rice <ratmice@gmail.com>
3813
3814 * NEWS: Add info macros and info definitions commands.
3815
3a7bf607
PM
38162011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3817
3818 * NEWS: Document Python prompt substitution hook.
3819
9b158ba0 38202011-07-18 Matt Rice <ratmice@gmail.com>
3821
3822 PR macros/12999
3823 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3824 * macrotab.c (foreach_macro): Ditto.
3825 (foreach_macro_in_scope): Ditto.
3826 * macrocmd.c (print_macro_callback): New function.
3827 (info_macro_command): Move some code to print_macro_definition.
3828 (print_macro_definition): New function.
3829 (print_one_macro): Add new arguments to callback.
3830 (info_definitions_command): New function.
3831 (info_macros_command): Ditto.
3832 (_initialize_macrocmd): Add info macros and info definitions commands.
3833 * symtab.c (add_macro_name): Add new arguments to callback.
3834
d17b6f81
PM
38352011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3836 Tom Tromey <tromey@redhat.com>
3837
3838 * top.c (set_prompt): Rewrite to free previous prompt, free
3839 asynch_new_prompt and set both on new prompts.
3840 * event-top.c (display_gdb_prompt): Add prompt substitution
3841 logic.
3842 * python/python.c (before_prompt_hook): New function.
3843
1364323a 38442011-07-20 Matt Rice <ratmice@gmail.com>
3845
3846 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3847 arguments to store_unsigned_integer.
3848
8b70b953
TT
38492011-07-20 Tom Tromey <tromey@redhat.com>
3850
6c83ed52
TT
3851 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3852 in some declaration-only cases.
3853
38542011-07-18 Tom Tromey <tromey@redhat.com>
3855
8b70b953
TT
3856 PR symtab/12984:
3857 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3858 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3859 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3860 <debug_type_section>: New field.
3861 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3862 (load_cu): Use appropriate section.
3863 (create_signatured_type_table_from_index): Add 'section'
3864 argument.
3865 (dwarf2_read_index): Only allow a single .debug_types section.
3866 (dw2_get_file_names): Use appropriate section.
3867 (read_type_comp_unit_head): Add 'section' argument.
3868 (create_debug_types_hash_table): Loop over all .debug_types
3869 sections.
3870 (init_cu_die_reader): Use appropriate section.
3871 (process_psymtab_comp_unit, load_partial_comp_unit)
3872 (load_full_comp_unit, read_die_and_children, find_partial_die)
3873 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3874 (lookup_signatured_type_at_offset): Add 'section' argument.
3875 (read_signatured_type_at_offset): Add 'sect' argument.
3876 (read_signatured_type): Use appropriate section.
3877 (set_die_type, get_die_type_at_offset): Update.
3878 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3879 VEC.
3880 (write_psymtabs_to_index): Don't allow index with more than one
3881 .debug_types section.
3882
918dd910
JK
38832011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3884
3885 Fix crash if referenced CU is aged out.
3886 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3887 xfree of block.data.
3888 (indirect_pieced_value): New variable back_to, use to for xfree of
3889 baton.data.
3890 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3891 block.data.
3892 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3893 (load_cu): New function from ...
3894 (dw2_do_instantiate_symtab): ... the code here ...
3895 (process_full_comp_unit): ... and here.
3896 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3897 retval.data.
3898
0e37a63c
JK
38992011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3900
3901 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3902 type.
3903
7e324e48
GB
39042011-07-19 Gary Benson <gbenson@redhat.com>
3905
3906 * infrun.c (struct execution_control_state): New member
3907 stop_func_filled_in.
3908 (clear_stop_func, fill_in_stop_func): New functions.
3909 (handle_inferior_event): Call clear_stop_func rather than
3910 manipulating the execution control state directly.
3911 Call fill_in_stop_func lazily as required rather than
3912 directly calling find_pc_partial_function in all cases.
3913
d48323d8
TT
39142011-07-18 Tom Tromey <tromey@redhat.com>
3915
3916 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3917 checking for variable-sized array.
3918
40591b7d
JCD
39192011-07-18 Jean-Charles Delay <delay@adacore.com>
3920
3921 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3922 of supported languages.
3923 * varobj.c: Add top definitions and basic implementation of the
3924 following callbacks: ada_number_of_children, ada_name_of_variable,
3925 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3926 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3927 (languages): Register Ada-specific callbacks.
3928 (variable_language): Add the Ada case in the language setter switch.
3929
2e424e08
JK
39302011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3931
3932 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3933
9e8b7a03
JK
39342011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 Code cleanup.
3937 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3938 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3939 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3940 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3941 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3942 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3943 (struct dwarf_expr_context_funcs): New, move here methods from ...
3944 (struct dwarf_expr_context): ... here. New fields funcs.
3945 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3946 (dwarf_expr_ctx_funcs): New.
3947 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3948 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3949 (needs_frame_ctx_funcs): New.
3950 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3951
2b1260ab
FM
39522011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3953
3954 * MAINTAINERS (Write After Approval): Add myself to the list.
3955
8bd90839
FM
39562011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3957
3958 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3959 that CIE pointer of an FDE really points to a CIE .
3960
953b98d1
HZ
39612011-07-15 Hui Zhu <teawater@gmail.com>
3962
3963 * remote.c (remote_get_trace_status): Add comments.
3964
c8f2448a
JK
39652011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3966
3967 Code cleanup - constify struct lval_funcs.
3968 * dwarf2loc.c (pieced_value_funcs): Make it const.
3969 * infrun.c (siginfo_value_funcs): Likewise.
3970 * opencl-lang.c (opencl_value_funcs): Likewise.
3971 * valops.c (value_assign, value_ind): Make the funcs variable const.
3972 * value.c (struct value): Make location.computed.funcs target const.
3973 Rearrange the comments.
3974 (allocate_computed_value): Make the funcs parameter target const.
3975 (value_computed_funcs): Return the funcs target const.
3976 (value_free, value_copy, set_value_component_location): Make the funcs
3977 variable const.
3978 * value.h (allocate_computed_value): Make the funcs parameter target
3979 const.
3980 (value_computed_funcs): Return the funcs target const.
3981 * windows-tdep.c (tlb_value_funcs): Make it const.
3982
f652de6f
HZ
39832011-07-14 Hui Zhu <teawater@gmail.com>
3984
3985 * remote.c (remote_get_trace_status): Initialize p.
3986
67f41397
JK
39872011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3988
3989 Work around kgdb.
3990 * remote.c (remote_get_trace_status): New variable ex. Put
3991 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3992
d1b66e6d
TT
39932011-07-13 Tom Tromey <tromey@redhat.com>
3994
3995 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3996 value_from_contents for final conversion.
3997
1632a688
JK
39982011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3999
4000 Code cleanup.
4001 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4002 Indent prototypes so they do not get into tags.
4003
a7035dbb
JK
40042011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4005
4006 Code cleanup making also optimized out values lazy.
4007 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4008 allocate_optimized_out_value. Twice.
4009 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4010 * findvar.c (read_var_value): Likewise.
4011 * value.c (allocate_optimized_out_value): New function.
4012 * value.h (allocate_optimized_out_value): New declaration.
4013
d07ed419
JK
40142011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4015
4016 Fix occasional crash of CTRL-C during DWARF read in.
4017 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4018
86d31898
TT
40192011-07-11 Tom Tromey <tromey@redhat.com>
4020
4021 * regcache.c (struct regcache_descr): Fix typo.
4022 * i387-tdep.c (i387_supply_xsave): Fix typo.
4023
2ab95328
TT
40242011-07-11 Tom Tromey <tromey@redhat.com>
4025
4026 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4027 (read_file_scope, read_type_unit_scope): Use it.
4028
04ad99e6
JK
40292011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4030
4031 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4032 `int'.
4033
713389e0
PM
40342011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4035
4036 PR python/12438
4037 * python/python.c: Set gdbpy_should_print_stack default to off.
4038 (set_python): Deprecate maint set python print-stack to
4039 class_deprecate.
4040 (_initialize_python): Deprecate maint set/show python print-stack.
4041 Add new prefix command, python. Add new setting, print-backtrace.
4042 * NEWS: Document set python print-stack. Document default change.
4043
754eadd1
PM
40442011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4045
4046 * python/py-inferior.c (infpy_dealloc): New function.
4047 (inferior_to_inferior_object): Return a new object, or a
4048 new reference to the existing object.
4049 (find_thread_object): Cleanup references to inferior.
4050 (delete_thread_object): Ditto.
4051 * python/py-infthread.c (create_thread_object): Do not increment
4052 inferior reference count.
4053
5e44ecb3
TT
40542011-07-08 Tom Tromey <tromey@redhat.com>
4055
4056 * dwarf2loc.c (locexpr_regname): New function.
4057 (locexpr_describe_location_piece): Use it.
4058 (disassemble_dwarf_expression): Add per_cu argument. Use
4059 locexpr_regname.
4060 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4061 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4062 New cases.
4063 (locexpr_describe_location_1): Add per_cu argument.
4064 (locexpr_describe_location): Update.
4065 (loclist_describe_location): Update.
4066
e0e9434c
TT
40672011-07-08 Tom Tromey <tromey@redhat.com>
4068
4069 * dwarf2expr.c (execute_stack_op): Add QUIT.
4070
26afc0d7
HZ
40712011-07-07 Hui Zhu <teawater@gmail.com>
4072
4073 Revert:
4074 2011-07-06 Hui Zhu <teawater@gmail.com>
4075 * remote.c (remote_start_remote): Add TRY_CATCH for
4076 remote_get_trace_status.
4077 * tracepoint.c (disconnect_tracing): Ditto.
4078
a40a111f
AB
40792011-07-07 Andrew Burgess <aburgess@broadcom.com>
4080
4081 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4082 variables as signed, not unsigned.
4083
e2bd3b15
JB
40842011-07-06 Joel Brobecker <brobecker@adacore.com>
4085
4086 * jit.c (jit_inferior_init): Reformat forward declaration.
4087
e3d961fe 40882011-07-06 Matt Rice <ratmice@gmail.com>
4089
4090 * MAINTAINERS (Write After Approval): Add myself to the list.
4091
0f3428f0
HZ
40922011-07-06 Hui Zhu <teawater@gmail.com>
4093
4094 * remote.c (remote_start_remote): Add TRY_CATCH for
4095 remote_get_trace_status.
4096 * tracepoint.c (disconnect_tracing): Ditto.
4097
fc9f3a69
TT
40982011-07-05 Tom Tromey <tromey@redhat.com>
4099
4100 * symtab.c (operator_chars): Now static.
4101 * linespec.c (operator_chars): Don't declare.
4102
26e519b9
TJB
41032011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4104
4105 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4106
eb2a6f42
TT
41072011-07-05 Tom Tromey <tromey@redhat.com>
4108
4109 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4110 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4111 (TYPE_CPLUS_REALLY_JAVA): New macro.
4112 * dwarf2read.c (process_structure_scope): Set
4113 TYPE_CPLUS_REALLY_JAVA.
4114
21083d0f 41152011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4116
4117 * ada-lang.c: Fix typos.
4118 * amd64-tdep.c: Likewise.
4119 * breakpoint.c: Likewise.
4120 * cli/cli-decode.c: Likewise.
4121 * findcmd.c: Likewise.
4122 * inline-frame.c: Likewise.
4123 * mi/mi-main.c: Likewise.
4124 * minsyms.c: Likewise.
4125 * monitor.c: Likewise.
4126 * monitor.h: Likewise.
4127 * prologue-value.c: Likewise.
4128 * reverse.c: Likewise.
4129 * s390-tdep.c: Likewise.
4130
3b2a0cf2
JB
41312011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4132
4133 * jit.c (jit_inferior_init): Forward declare.
4134 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4135
efae1d92
JB
41362011-07-04 Joel Brobecker <brobecker@adacore.com>
4137
4138 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4139
6040a59d
JB
41402011-07-04 Tristan Gingold <gingold@adacore.com>
4141
4142 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4143 (tcb_fieldno): Add activation_link field.
4144 (get_known_tasks_addr): Moved and rewritten.
4145 (get_tcb_types_info): Set activation_link field.
4146 (read_known_tasks_array): Add parameter. Rewritten.
4147 (read_known_tasks_list): New function.
4148 (read_known_tasks): New function.
4149 (ada_build_task_list): Call read_known_tasks instead of
4150 read_known_tasks_array.
4151 * ravenscar-thread.c: Add first_task_name constant.
4152 (has_ravenscar_runtime): Check for task list too.
4153
cb741e45
JB
41542011-07-04 Tristan Gingold <gingold@adacore.com>
4155
4156 * ada-tasks.c: Renames fieldno to actb_fieldno.
4157 (ada_get_task_number): Indentation.
4158 (get_tcb_types_info): Remove all parameters. Write directly
4159 the globals.
4160 (ptid_from_atcb_common): Adjust.
4161 (read_atcb): Adjust.
4162
7475b06c
TJB
41632011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4164
4165 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4166
15230f37
TJB
41672011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4168
4169 * ui-out.c (ui_out_field_core_addr): Mention that the function
4170 description is in the header file.
4171 * ui-out.h (ui_out_field_core_addr): Document function.
4172
65743aba
TJB
41732011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4174
4175 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4176 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4177
c37a5aab
TJB
41782011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4179
4180 * symtab.c (expand_line_sal): Remove empty line.
4181
59adf69e
TS
41822011-07-04 Thomas Schwinge <thomas@schwinge.name>
4183
4184 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4185 same way as ELFOSABI_NONE.
4186 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4187
e5dd4106
TJB
41882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4189
4190 * breakpoint.c: Fix typos in comments.
4191 * linespec.c: Likewise.
4192 * symtab.c: Likewise.
4193
d40102a1
JB
41942011-07-04 Joel Brobecker <brobecker@adacore.com>
4195
4196 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4197 section in separate object files.
4198
2f741504
JK
41992011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4200
4201 Fix false GCC warning.
4202 * linespec.c (decode_line_1): Initialize values.
4203
418c7cf7
JK
42042011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4205
4206 * linespec.c (find_method): Accept the function type automatically only
4207 if it was specified with parameter types.
4208
3d50dd94
JK
42092011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4210
4211 Stop on first linespec terminator instead of eating what we can.
4212 * linespec.c (is_linespec_boundary): New function.
4213 (name_end): Remove function.
4214 (keep_name_info): New parameter on_boundary, replace the body.
4215 (decode_line_1): Provide the parameter to keep_name_info.
4216 (decode_compound): Likewise. Drop the trailing java return type
4217 handling. Twice.
4218
dcf9f4ab
JK
42192011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4220
4221 Fall back linespec to minimal symbols.
4222 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4223 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4224 (find_method, symbol_found): Change error to cplusplus_error.
4225
3f542ed1
JK
42262011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4227
bc68c4e5 4228 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4229
900e11f9
JK
42302011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4231 Tom Tromey <tromey@redhat.com>
4232
4233 * dwarf2read.c (check_physname): New variable.
4234 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4235 (show_check_physname): New function.
4236 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4237
2301925d
JB
42382011-07-01 Joel Brobecker <brobecker@adacore.com>
4239
4240 * machoread.c (macho_symfile_read): Delete OBE comment.
4241
38947cca
JB
42422011-07-01 Joel Brobecker <brobecker@adacore.com>
4243
4244 * machoread.c (struct macho_oso_data): Delete.
4245 (current_oso): Delete.
4246 (macho_relocate_common_syms): New function, mostly extracted
4247 out of
4248 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4249 Remove code that sets and unset current_oso.
4250 (macho_symfile_relocate): Delete handling of common symbols,
4251 now moved to macho_relocate_common_syms.
4252
a7aa0d73
JB
42532011-07-01 Joel Brobecker <brobecker@adacore.com>
4254
4255 * darwin-nat.c (darwin_ptrace): Add documentation.
4256 Set errno to zero before calling ptrace. If ptrace returns
4257 -1 and errno is zero, then change then return zero.
4258 (darwin_kill_inferior): Issue a warning instead of triggering
4259 a failed assertion when the PT_KILL ptrace operations returned
4260 nonzero.
4261
5e9bc145
JB
42622011-07-01 Joel Brobecker <brobecker@adacore.com>
4263
4264 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4265 only when inf->private->no_ptrace.
4266
00eb2c4a
JB
42672011-07-01 Joel Brobecker <brobecker@adacore.com>
4268
4269 * ada-lang.c (print_it_exception): Print temporary catchpoints
4270 as "Temporary catchpoint".
4271 (print_mention_exception): Likewise.
4272
127c81bc
TT
42732011-07-01 Tom Tromey <tromey@redhat.com>
4274
4275 * jv-lang.c (java_language_defn): Use java_printchar,
4276 java_printstr.
4277 (java_get_encoding): New function.
4278 (java_emit_char): Use generic_emit_char.
4279 (java_printchar): New function.
4280 (java_printstr): Likewise.
4281
25552254
JB
42822011-07-01 Joel Brobecker <brobecker@adacore.com>
4283
4284 * ada-typeprint.c (print_record_type): If unable to decode
4285 the name of the parent type, use the encoded name.
4286
d2d43431
JB
42872011-07-01 Jean-Charles Delay <delay@adacore.com>
4288
4289 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4290 pointer to constrained packed array type output.
4291 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4292 packed array output.
4293
54ae186f
JB
42942011-07-01 Jean-Charles Delay <delay@adacore.com>
4295
4296 * ada-typeprint.c (print_array_type): removed if condition on show
4297 being negative for bounds printing.
4298
8f17729f
JB
42992011-07-01 Joel Brobecker <brobecker@adacore.com>
4300
4301 * ada-lang.c (ada_identical_enum_types_p): New function.
4302 (symbols_are_identical_enums): New function.
4303 (remove_extra_symbols): Do nothing if NSYMS < 2.
4304 Use symbols_are_identical_enums.
4305
f5aa6869
JB
43062011-07-01 Joel Brobecker <brobecker@adacore.com>
4307
4308 * ada-valprint.c (ada_value_print): Handle typedefs.
4309
8f465ea7
JB
43102011-07-01 Joel Brobecker <brobecker@adacore.com>
4311
4312 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4313
828292f2
JB
43142011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4315
4316 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4317 (decode_constrained_packed_array): Likewise.
4318 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4319
18920c42
JB
43202011-07-01 Joel Brobecker <brobecker@adacore.com>
4321
4322 * ada-exp.y (convert_char_literal): Handle typedef types.
4323
c90092fe
JB
43242011-07-01 Joel Brobecker <brobecker@adacore.com>
4325
4326 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4327
f748fb40
TT
43282011-06-30 Tom Tromey <tromey@redhat.com>
4329
4330 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4331 * valops.c (find_overload_match): Call do_cleanups on early exit
4332 path.
4333 * solib.c (solib_find): Call do_cleanups on early exit path.
4334
3bb47e8b
TT
43352011-06-30 Tom Tromey <tromey@redhat.com>
4336
4337 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4338 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4339 return paths. Defer final do_cleanups until last return.
4340 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4341 early return.
4342
4727bad3
TT
43432011-06-30 Tom Tromey <tromey@redhat.com>
4344
4345 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4346
bb361dbf
AB
43472011-06-30 Andrew Burgess <aburgess@broadcom.com>
4348
4349 * MAINTAINERS (Write After Approval): Add myself to the list.
4350
e0d00bc7
JK
43512011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4352
4353 Disable epilogue unwinders on recent GCCs.
4354 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4355 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4356 * dwarf2read.c (process_full_comp_unit): Initialize
4357 EPILOGUE_UNWIND_VALID.
4358 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4359 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4360 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4361
4632c0d0
JK
43622011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4363
4364 Code cleanup - reformatting.
4365 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4366 (producer_is_gcc_ge_4): ... here, change the return value.
4367 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4368 interpretation.
4369
32019081
JK
43702011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4371
4372 Fix non-only rename list for Fortran modules import.
4373 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4374 cp_add_using_directive caller.
4375 (cp_add_using_directive): New parameter excludes, describe it. New
4376 variables ix and param. Compare if also excludes match. Allocate NEW
4377 with variable size, initialize EXCLUDES there.
4378 (cp_lookup_symbol_imports): New variable excludep, test
4379 current->EXCLUDES with it.
4380 * cp-support.h: Include vec.h.
4381 (struct using_direct): New field excludes, describe it.
4382 (DEF_VEC_P (const_char_ptr)): New.
4383 (cp_add_using_directive): New parameter excludes.
4384 * defs.h (const_char_ptr): New typedef.
4385 * dwarf2read.c (read_import_statement): New variables child_die,
4386 excludes and cleanups, read in excludes.
4387 (read_namespace): Adjust the cp_add_using_directive caller.
4388
70c622a3
JK
43892011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4390
4391 Code cleanup.
4392 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4393 negative comparisons.
4394
39c4d40a
TT
43952011-06-29 André Pönitz <andre.poenitz@nokia.com>
4396
4397 * mi/mi-main.c (mi_cmd_list_features): Emit
4398 breakpoint-notifications.
4399
3b2b8fea
TT
44002011-06-29 Tom Tromey <tromey@redhat.com>
4401
4402 PR fortran/10036:
4403 * valprint.h (generic_emit_char, generic_printstr): Declare.
4404 * valprint.c (wchar_printable, append_string_as_wide)
4405 (print_wchar): Move from c-lang.c.
4406 (generic_emit_char): New function; mostly taken from c_emit_char.
4407 (generic_printstr): New function; mostly taken from c_printstr.
4408 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4409 represented as arrays.
4410 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4411 type.
4412 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4413 identically to TYPE_CODE_INT.
4414 * f-lang.c (f_get_encoding): New function.
4415 (f_emit_char): Use generic_emit_char.
4416 (f_printchar): Replace comment.
4417 (f_printstr): Use generic_printstr.
4418 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4419 "character" types specially.
4420 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4421 for Fortran.
4422 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4423 Move to valprint.c
4424 (c_emit_char): Call generic_emit_char.
4425 (c_printstr): Call generic_printstr.
4426
168e6d44
GB
44272011-06-29 Gary Benson <gbenson@redhat.com>
4428
4429 * breakpoint.c (bpstat_what): Removed duplicated case.
4430
1c033f8c
TT
44312011-06-28 Tom Tromey <tromey@redhat.com>
4432
4433 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4434
5fe41fbf
TT
44352011-06-27 Tom Tromey <tromey@redhat.com>
4436
4437 * valops.c (find_overload_match): Call do_cleanups before early
4438 return.
4439 * top.c (execute_command): Call do_cleanups before early return.
4440 (command_loop): Likewise.
4441 * stack.c (backtrace_command): Make a null cleanup early. Don't
4442 conditionally call do_cleanups.
4443 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4444 TRY_CATCH.
4445 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4446 so cleanups are always run.
4447 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4448 * findcmd.c (parse_find_args): Call do_cleanups on early return
4449 path.
4450 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4451 Don't conditionally call do_cleanups.
4452 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4453 later.
4454
e26bd57d
EB
44552011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4456
4457 * MAINTAINERS (Write After Approval): Use default email address.
4458
6c3097fc
JB
44592011-06-27 Joel Brobecker <brobecker@adacore.com>
4460
4461 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4462
369c397b
JB
44632011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4464
4465 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4466 saved_regs_mask and copied_regs_mask fields.
4467 (sparc_record_save_insn): New prototype.
4468 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4469 (sparc_record_save_insn): New function.
4470 (sparc_analyze_prologue): Add head comment. Recognize store insns
4471 of call-saved registers. Use OFFSET consistently. Recognize flat
4472 frames and cache their settings.
4473 (sparc32_skip_prologue): Handle flat frames.
4474 (sparc_frame_cache): Add frame_offset to the base address.
4475 (sparc32_frame_cache): Adjust to new frame description.
4476 (sparc32_frame_prev_register): Likewise.
4477 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4478 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4479 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4480 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4481 frame by calling sparc_record_save_insn.
4482 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4483 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4484 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4485
b315ab21
TG
44862011-06-27 Tristan Gingold <gingold@adacore.com>
4487
4488 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4489 field by map_addr and map_len.
4490 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4491 (munmap_section_buffer): Likewise.
4492
ddd49eee
TT
44932011-06-24 Tom Tromey <tromey@redhat.com>
4494
4495 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4496 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4497 * python/python.c (gdbpy_parameter): Make 'arg' const.
4498 (execute_gdb_command): Likewise.
4499 (gdbpy_decode_line): Likewise. Copy it.
4500 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4501 (gdbpy_write): Make 'arg' const.
4502 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4503 const.
4504 (gdbpy_lookup_type): Likewise.
4505 * python/py-prettyprint.c (print_children): Make 'name' const.
4506 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4507 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4508 Py_ssize_t.
4509 * python/py-function.c (fnpy_init): Make 'name' const.
4510 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4511 (gdbpy_string_to_argv): Make 'input' const.
4512 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4513 it.
4514 * gdbtypes.h (lookup_typename): Update.
4515 * gdbtypes.c (lookup_typename): Make 'name' const.
4516 (lookup_struct): Likewise.
4517 (lookup_union): Likewise.
4518 (lookup_enum): Likewise.
4519
5998129b
TT
45202011-06-24 Tom Tromey <tromey@redhat.com>
4521
4522 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4523 gdb_thread_db.h. Move all common/ entries to be together.
4524 (TAGS): Don't depend on DEPFILES.
4525
6e586cc5
YQ
45262011-06-23 Yao Qi <yao@codesourcery.com>
4527
4528 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4529 * remote.c (remote_start_remote): ... here.
4530 * monitor.c (monitor_open): ... here.
4531
86c3c1fc
AB
45322011-06-23 Andrew Burgess <aburgess@broadcom.com>
4533
4534 * gdbtypes.c (append_composite_type_field_aligned): Fix
4535 calculation of bit position based on alignment.
4536
28010a5d
PA
45372011-06-22 Pedro Alves <pedro@codesourcery.com>
4538
4539 * breakpoint.c (bpstat_stop_status): Call the check_status
4540 breakpoint_ops method.
4541 (print_one_breakpoint_location): Also print the condition for Ada
4542 exception catchpoints.
4543 (allocate_bp_location): New, factored out from
4544 allocate_bp_location.
4545 (allocate_bp_location): Adjust. Call the owner breakpoint's
4546 allocate_location method, if there is one.
4547 (free_bp_location): Call the locations's dtor method, if there is
4548 one.
4549 (init_raw_breakpoint_without_location): New breakpoint_ops
4550 parameter. Use it.
4551 (set_raw_breakpoint_without_location): Adjust.
4552 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4553 (set_raw_breakpoint): Adjust.
4554 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4555 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4556 re_set and check_status methods.
4557 (init_catchpoint): Don't memset, initialize thread, addr_string
4558 and enable_state. Pass the ops down to init_raw_breakpoint.
4559 (install_catchpoint): Rename to ...
4560 (install_breakpoint): ... this, and make extern.
4561 (create_fork_vfork_event_catchpoint): Adjust.
4562 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4563 re_set and check_status methods.
4564 (create_syscall_event_catchpoint): Adjust.
4565 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4566 (masked_watchpoint_breakpoint_ops): Install NULL
4567 allocate_location, re_set and check_status methods.
4568 (catch_exec_command_1): Adjust.
4569 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4570 re_set and check_status methods.
4571 (create_ada_exception_breakpoint): Rename to ...
4572 (init_ada_exception_breakpoint): ... this. Add a struct
4573 breakpoint parameter, and delete the exp_string, cond_string and
4574 cond parameters. Use init_raw_breakpoint, and don't install or
4575 mention the breakpoint yet. Don't clear breakpoint fields that
4576 init_raw_breakpoint already clears.
4577 (re_set_breakpoint): Delete, split into ...
4578 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4579 functions.
4580 (breakpoint_re_set_one): Call the breakpoint's
4581 breakpoint_ops->re_set implementation, if there's one. Adjust.
4582 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4583 (struct bp_location_ops): New type.
4584 (struct bp_location): New field `ops'.
4585 (struct breakpoint_ops): New `allocate_location', `re_set' and
4586 `check_status' fields. Make `breakpoint_hit''s description match
4587 reality.
4588 (init_bp_location): Declare.
4589 (breakpoint_re_set_default): Declare.
4590 (create_ada_exception_breakpoint): Rename to ...
4591 (init_ada_exception_breakpoint): ... this. Add a struct
4592 breakpoint parameter, and delete the exp_string, cond_string and
4593 cond parameters.
4594 (install_breakpoint): Declare.
4595 * ada-lang.c: Include exceptions.h.
4596 <Ada exceptions description>: Update.
4597 (struct ada_catchpoint_location): New type.
4598 (ada_catchpoint_location_dtor): New function.
4599 (ada_catchpoint_location_ops): New global.
4600 (ada_catchpoint): New type.
4601 (create_excep_cond_exprs): New function.
4602 (dtor_exception, allocate_location_exception, re_set_exception)
4603 (should_stop_exception, check_status_exception): New functions.
4604 (print_one_exception, print_mention_exception)
4605 (print_recreate_exception): Adjust.
4606 (dtor_catch_exception, allocate_location_catch_exception)
4607 (re_set_catch_exception, check_status_catch_exception): New
4608 functions.
4609 (catch_exception_breakpoint_ops): Install them.
4610 (dtor_catch_exception_unhandled)
4611 (allocate_location_catch_exception_unhandled)
4612 (re_set_catch_exception_unhandled)
4613 (check_status_catch_exception_unhandled): New functions.
4614 (catch_exception_unhandled_breakpoint_ops): Install them.
4615 (dtor_catch_assert, allocate_location_catch_assert)
4616 (re_set_catch_assert, check_status_catch_assert): New functions.
4617 (catch_assert_breakpoint_ops): Install them.
4618 (ada_exception_catchpoint_p): Delete.
4619 (catch_ada_exception_command_split)
4620 (ada_exception_catchpoint_cond_string): Rename exp_string
4621 parameter to excep_string. Adjust.
4622 (ada_parse_catchpoint_condition): Delete.
4623 (ada_exception_sal): Rename the exp_string parameter to
4624 excep_string. Delete the cond_string and cond parameters.
4625 Adjust.
4626 (ada_decode_exception_location): Rename the exp_string parameter
4627 to excep_string. Delete the cond_string and cond parameters.
4628 Adjust.
4629 (create_ada_exception_catchpoint): New function.
4630 (catch_ada_exception_command, ada_decode_assert_location)
4631 (catch_assert_command): Adjust.
4632 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4633
9ac4176b
PA
46342011-06-22 Pedro Alves <pedro@codesourcery.com>
4635
4636 * ada-lang.c: Include arch-utils.h.
4637 (ada_decode_exception_location): Make static.
4638 (catch_ada_exception_command): Moved here from breakpoint.c.
4639 (ada_decode_assert_location): Make static.
4640 (catch_assert_command): Moved here from breakpoint.c.
4641 (_initialize_ada_lang): Install the exception and assert
4642 catchpoint commands here.
4643 * ada-lang.h (ada_decode_exception_location)
4644 (ada_decode_assert_location): Delete declarations.
4645 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4646 breakpoint.h.
4647 (create_ada_exception_breakpoint): Make extern.
4648 (catch_ada_exception_command, catch_assert_command): Moved to
4649 ada-lang.c.
4650 (add_catch_command): Make extern.
4651 (_initilize_breakpoint): Don't install the exception and assert
4652 catchpoint commands here.
4653 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4654 breakpoint.c
4655 (add_catch_command, create_ada_exception_breakpoint): Declare.
4656
c56053d2
PA
46572011-06-22 Pedro Alves <pedro@codesourcery.com>
4658
4659 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4660 the breakpoint to the breakpoint chain here.
4661 (set_raw_breakpoint_without_location): Add the breakpoint to the
4662 breakpoint chain here.
4663 (init_raw_breakpoint): Adjust comments.
4664 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4665 here.
4666 (init_catchpoint): Don't set the catchpoint's breakpoint number
4667 here.
4668 (install_catchpoint): New function.
4669 (create_fork_vfork_event_catchpoint)
4670 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4671 use install_catchpoint.
4672
d2f3fc74
PA
46732011-06-22 Pedro Alves <pedro@codesourcery.com>
4674
4675 * breakpoint.c (create_catchpoint_without_mention)
4676 (create_catchpoint): Delete.
4677
b4d90040
PA
46782011-06-22 Pedro Alves <pedro@codesourcery.com>
4679
4680 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4681 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4682 reference to exec_pathname.
4683 (struct exec_catchpoint): New type.
4684 (dtor_catch_exec): New function.
4685 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4686 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4687 (catch_exec_command_1): Adjust to use init_catchpoint.
4688 (delete_breakpoint): Remove reference to exec_pathname.
4689
be5c67c1
PA
46902011-06-22 Pedro Alves <pedro@codesourcery.com>
4691
4692 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4693 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4694 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4695 reference to syscalls_to_be_caught.
4696 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4697 NULL `dtor'.
4698 (struct syscall_catchpoint): New type.
4699 (dtor_catch_syscall): New function.
4700 (insert_catch_syscall, remove_catch_syscall)
4701 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4702 (print_recreate_catch_syscall): Adjust.
4703 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4704 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4705 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4706 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4707 (masked_watchpoint_breakpoint_ops)
4708 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4709 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4710 there is one. Remove references to syscalls_to_be_caught.
4711 (catching_syscall_number): Adjust.
4712 * ada-lang.c (catch_exception_breakpoint_ops)
4713 (catch_exception_unhandled_breakpoint_ops)
4714 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4715
e29a4733
PA
47162011-06-22 Pedro Alves <pedro@codesourcery.com>
4717
4718 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4719 field.
4720 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4721 reference to forked_inferior_pid.
4722 (struct fork_catchpoint): New type.
4723 (breakpoint_hit_catch_fork, print_it_catch_fork)
4724 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4725 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4726 (create_fork_vfork_event_catchpoint): Adjust to use
4727 init_catchpoint.
4728
346774a9
PA
47292011-06-22 Pedro Alves <pedro@codesourcery.com>
4730
4731 * breakpoint.c (add_to_breakpoint_chain)
4732 (init_raw_breakpoint_without_location): New functions, factored
4733 out from ...
4734 (set_raw_breakpoint_without_location): ... this one.
4735 (init_raw_breakpoint): New function, factored out from
4736 set_raw_breakpoint and adjusted to use
4737 init_raw_breakpoint_without_location.
4738 (set_raw_breakpoint): Adjust.
4739 (init_catchpoint): New function, factored out from
4740 create_catchpoint_without_mention and adjusted to use
4741 init_raw_breakpoint.
4742 (create_catchpoint_without_mention): Adjust.
4743
c38c4bc5
TT
47442011-06-22 Tom Tromey <tromey@redhat.com>
4745
4746 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4747 argument of 0 specially.
4748
b138ce37
YQ
47492011-06-22 Yao Qi <yao@codesourcery.com>
4750
4751 * infrun.c (handle_inferior_event): Remove write-only local variable
4752 `sw_single_step_trap_p'.
4753
03de6823
TT
47542011-06-20 Tom Tromey <tromey@redhat.com>
4755
4756 * symtab.c (lookup_language_this): End loop if block is NULL.
4757
66a17cb6
TT
47582011-06-17 Tom Tromey <tromey@redhat.com>
4759
4760 * valops.c (value_of_this): Use lookup_language_this.
4761 * symtab.h (lookup_language_this): Declare.
4762 * symtab.c (lookup_language_this): New function.
4763 (lookup_symbol_aux): Use lookup_language_this.
4764 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4765
7518bff5
TT
47662011-06-17 Tom Tromey <tromey@redhat.com>
4767
4768 * value.h (value_of_this): Update.
4769 (value_of_local): Remove.
4770 * valops.c (value_of_this): Rename from value_of_local. Change
4771 parameters.
4772 * p-exp.y (exp): Update.
4773 (variable): Likewise.
4774 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4775
aee28ec6
TT
47762011-06-17 Tom Tromey <tromey@redhat.com>
4777
4778 * valops.c (value_of_local): Complain if NAME is NULL.
4779 * std-operator.def (OP_OBJC_SELF): Remove.
4780 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4781 * objc-exp.y (name_not_typename): Use OP_THIS.
4782 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4783 name for "this".
4784 <OP_OBJC_SELF>: Remove.
4785 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4786
eed8f803
TG
47872011-06-16 Tristan Gingold <gingold@adacore.com>
4788
4789 * python/py-events.h (gdb_py_events): Make it extern.
4790 * python/py-evtregistry.c (gdb_py_events): Declare.
4791
864ac8a7
HZ
47922011-06-16 Hui Zhu <teawater@gmail.com>
4793
4794 * remote.c (remote_trace_set_readonly_regions): Add check for
4795 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4796 output warning.
4797
ef7e8358
UW
47982011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4799
4800 * arm-linux-tdep.c: Include "auxv.h".
4801 (AT_HWCAP): Define.
4802 (ARM_LINUX_SIZEOF_VFP): Define.
4803 (arm_linux_supply_vfp): New function.
4804 (arm_linux_collect_vfp): Likewise.
4805 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4806 (arm_linux_fpa_regset_sections): New variable.
4807 (arm_linux_vfp_regset_sections): Likewise.
4808 (arm_linux_core_read_description): New function.
4809 (arm_linux_init_abi): Install arm_linux_core_read_description and
4810 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4811 appropriate for the architecture.
4812 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4813 (tdesc_arm_with_m): Declare.
4814 (tdesc_arm_with_iwmmxt): Likewise.
4815 (tdesc_arm_with_vfpv2): Likewise.
4816 (tdesc_arm_with_vfpv3): Likewise.
4817 (tdesc_arm_with_neon): Likewise.
4818 * arm-linux-nat.c: Move features/*.c includes ...
4819 * arm-tdep.c: ... here.
4820 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4821 target description data structures ...
4822 * arm-tdep.c (_initialize_arm_tdep): ... here.
4823 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4824 HWCAP_VFPv3D16): Move definitions ...
4825 * arm-linux-tdep.h: ... here.
4826
c2fa21f1
HZ
48272011-06-15 Hui Zhu <teawater@gmail.com>
4828
4829 * remote.c (remote_trace_set_readonly_regions): Add a check for
4830 target_buf_size.
4831
dd707e8e
TT
48322011-06-14 Tom Tromey <tromey@redhat.com>
4833
4834 * coffread.c (coffread_objfile): Rename from current_objfile.
4835 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4836 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4837
86cc0029
TT
48382011-06-14 Tom Tromey <tromey@redhat.com>
4839
4840 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4841 (class_symtab): Remove.
4842 (jv_dynamics_progspace_key): New global.
4843 (jv_per_objfile_free): Reset program space data. Update assert.
4844 Don't clear globals.
4845 (get_dynamics_objfile): Use and set program space data.
4846 (get_java_class_symtab): Use get_dynamics_objfile.
4847 (add_class_symbol): Likewise.
4848 (java_link_class_type): Likewise.
4849 (java_object_type, jv_clear_object_type, set_java_object_type):
4850 Remove.
4851 (get_java_object_type): Update. Don't cache result.
4852 (is_object_type): Don't call set_java_object_type.
4853 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4854 initialize jv_dynamics_progspace_key.
4855
91a81f69
TT
48562011-06-14 Tom Tromey <tromey@redhat.com>
4857
4858 * symtab.h (current_objfile): Don't declare.
4859 * objfiles.h (current_objfile): Don't declare.
4860 * objfiles.c (current_objfile): Remove.
4861 * mdebugread.c (current_objfile): New file-scope global.
4862 * dbxread.c (current_objfile): New file-scope global.
4863 * coffread.c (current_objfile): New file-scope global.
4864
dc7eb48e
PA
48652011-06-13 Pedro Alves <pedro@codesourcery.com>
4866
4867 * top.h (line): Rename to ...
4868 (saved_command_line): ... this.
4869 (linesize): Rename to ...
4870 (saved_command_line_size): ... this.
4871 * top.c (line): Rename to ...
4872 (saved_command_line): ... this.
4873 (linesize): Rename to ...
4874 (saved_command_line_size): ... this.
4875 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4876 * event-top.c (command_line_handler): Adjust.
4877 * main.c (captured_main): Adjust.
4878
0d6c2135
MK
48792011-06-12 Mark Kettenis <kettenis@gnu.org>
4880
4881 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4882 get_frame_func instead of get_frame_pc to determine the code
4883 address used to construct the frame ID.
4884 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4885 (i386_epilogue_frame_this_id): Likewise.
4886 (i386_epilogue_frame_prev_register): New function.
4887 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4888 (i386_stack_tramp_frame_sniffer): Fix coding style.
4889 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4890 (i386_gdbarch_init): Fix comments.
4891
8bbdd3f4
MK
48922011-06-12 Mark Kettenis <kettenis@gnu.org>
4893
4894 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4895 instruction when walking back through the instruction stream.
4896
533a737e
JK
48972011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4898
4899 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4900 fullname parameters order.
4901
44b13c5a
JK
49022011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4903
4904 Code cleanup.
4905 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4906 for fun.
4907 * psymtab.c (map_symbol_filenames_psymtab)
4908 (map_partial_symbol_filenames): Likewise.
4909 * psymtab.h: Include symfile.h.
4910 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4911 * symfile.h (symbol_filename_ftype): New.
4912 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4913 map_symbol_filenames, clarify more the naming in comment.
4914
0b5574da
DE
49152011-06-07 Doug Evans <dje@google.com>
4916
4917 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4918 Look for ../../gdb, for fullname.exp.
0b5574da 4919
5be4dfca
JK
49202011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4921 Pedro Alves <pedro@codesourcery.com>
4922
4923 * cli/cli-cmds.c (shell_escape): Use waitpid.
4924 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4925
316a8b21
TG
49262011-06-07 Tristan Gingold <gingold@adacore.com>
4927
4928 * xcoffread.c (dwarf2_xcoff_names): New variable.
4929 (aix_process_linenos): Add a guard.
4930 (xcoff_symfile_finish): Free dwarf2.
4931 (xcoff_initial_scan): Add dwarf2 support.
4932
3dd5b83d
PA
49332011-06-06 Pedro Alves <pedro@codesourcery.com>
4934
4935 * infcall.c (run_inferior_call): Don't mask async. Instead force
4936 a synchronous wait, if the target can async.
4937
4938 * target.h (struct target_ops): Delete to_async_mask.
4939 (target_async_mask): Delete.
4940 * target.c (update_current_target): Delete references to to_async_mask.
4941 * linux-nat.c (linux_nat_async_mask_value): Delete.
4942 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4943 to linux_nat_async_mask_value.
4944 (linux_nat_async_mask): Delete.
4945 (linux_nat_async, linux_nat_close): Remove references to
4946 linux_nat_async_mask_value.
4947 * record.c (record_async_mask_value): Delete.
4948 (record_async): Remove references to record_async_mask_value.
4949 (record_async_mask): Delete.
4950 (record_can_async_p, record_is_async_p): Remove references to
4951 record_async_mask_value.
4952 (init_record_ops, init_record_core_ops): Remove references to
4953 record_async_mask.
4954 * remote.c (remote_async_mask_value): Delete.
4955 (init_remote_ops): Remove reference to remote_async_mask.
4956 (remote_can_async_p, remote_is_async_p): Remove references to
4957 remote_async_mask_value.
4958 (remote_async): Remove references to remote_async_mask_value.
4959 (remote_async_mask): Delete.
4960
4961 * infrun.c (fetch_inferior_event): Don't claim registers changed
4962 if the current thread is already not executing.
4963
64b9b334
JB
49642011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4965
4966 From Stephen Kitt <steve@sk2.org>
4967 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4968 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4969
325663dc
JB
49702011-06-03 Joel Brobecker <brobecker@adacore.com>
4971
4972 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4973 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4974
8cf64490
TT
49752011-06-03 Tom Tromey <tromey@redhat.com>
4976
4977 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4978 code fields.
4979 * python/py-exitedevent.c (create_exited_event_object): Change
4980 type of 'exit_code'. Optionally add exit_code attribute.
4981 (emit_exited_event): Change type of 'exit_code'.
4982 * python/py-event.h (emit_exited_event): Update.
4983 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4984 * infrun.c (handle_inferior_event): Set exit code fields on
4985 inferior.
4986 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4987 fields.
4988 * inferior.c (exit_inferior_1): Initialize new fields.
4989
8ddd9a20
TT
49902011-06-03 Tom Tromey <tromey@redhat.com>
4991
4992 * dwarf2expr.c (get_signed_type): New function.
4993 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4994
8dfd1e6d
KS
49952011-06-02 Keith Seitz <keiths@redhat.com>
4996
4997 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4998
65fdb766
PA
49992011-06-02 Pedro Alves <pedro@codesourcery.com>
5000
5001 * top.h (simplified_command_loop): Delete declaration.
5002
f4b8c29b
MF
50032011-06-01 Mike Frysinger <vapier@gentoo.org>
5004
5005 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5006 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5007
1706c199
YQ
50082011-06-01 Yao Qi <yao@codesourcery.com>
5009
5010 * objfiles.h (obj_section_addr): Update reference to objfile from
5011 `abfd' to `obfd'.
5012 (obj_section_endaddr): Likewise.
5013
d19cd713 50142011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5015
5016 * MAINTAINERS: Update my email address and affiliation. Also
5017 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5018
e8eb7bc5
KS
50192010-05-31 Keith Seitz <keiths@redhat.com>
5020
5021 PR c++/12750
5022 * linespec.c (get_search_block): New function.
5023 (find_methods): Add FILE_SYMTATB parameter and use it and
5024 get_search_block to pass an appropriate block to
5025 lookup_symbol_in_namespace.
5026 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5027 Check if *ARGPTR starts with a filename first.
5028 If it does, call locate_first_half again to locate the next
5029 "first half" of the linespec.
5030 Pass FILE_SYMTATB to decode_objc and decode_compound.
5031 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5032 (locate_first_half): Stop on the first colon seen.
5033 (decode_compound): Add FILE_SYMTAB parameter.
5034 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5035 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5036 get_search_block with lookup_symbol.
5037 (find_method): Add FILE_SYMTAB parameter and pass it to
5038 find_methods.
5039 (decode_objc): Use get_search_block.
5040
2b1dbab0
KS
50412010-05-31 Keith Seitz <keiths@redhat.com>
5042
5043 PR symtab/12704
5044 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5045 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5046 and CP_ANONYMOUS_NAMESPACE_LEN.
5047 (cp_is_anonymous): Likewise.
5048 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5049 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5050 * dwarf2read.c (namespace_name): Likewise.
5051 (fixup_partial_die): Likewise.
5052 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5053 seen in the input, keep it.
5054
6d549500
PA
50552011-05-30 Pedro Alves <pedro@codesourcery.com>
5056
5057 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5058 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5059 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5060 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5061 * remote.c (_initialize_remote): Register
5062 async_remote_interrupt_twice directly as
5063 sigint_remote_twice_token event.
5064
395bff70
PA
50652011-05-30 Pedro Alves <pedro@codesourcery.com>
5066
5067 * target.h (enum inferior_event_type): Delete INF_ERROR.
5068 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5069
97224164
PA
50702011-05-30 Pedro Alves <pedro@codesourcery.com>
5071
5072 * interps.c (interp_set): Don't cancel continuations.
5073
07e78767
JK
50742011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5075
5076 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5077
fa4cd53f
PA
50782011-05-30 Pedro Alves <pedro@codesourcery.com>
5079
5080 * continuations.h (continuation_ftype): Add `err' parameter.
5081 Document parameters.
5082 (do_all_continuations, do_all_continuations_thread)
5083 (do_all_intermediate_continuations)
5084 (do_all_intermediate_continuations_thread)
5085 (do_all_inferior_continuations): Add `err' parameter.
5086 * continuations.c (do_my_continuations_1, do_my_continuations)
5087 (do_all_inferior_continuations, do_all_continuations_ptid)
5088 (do_all_continuations_thread_callback)
5089 (do_all_continuations_thread, do_all_continuations)
5090 (do_all_intermediate_continuations_thread_callback)
5091 (do_all_intermediate_continuations_thread)
5092 (do_all_intermediate_continuations): Add `err' parameter, and pass
5093 it down all the way to the continuations proper.
5094 * inf-loop.c (inferior_event_handler): If fetching an inferior
5095 event throws an error, don't pop the target, and still call the
5096 continuations, but with `err' set. Adjust all other continuation
5097 calls.
5098 * breakpoint.c (until_break_command_continuation): Add `err'
5099 parameter.
5100 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5101 issue another step if `err' is set.
5102 (struct until_next_continuation_args): New.
5103 (until_next_continuation): Add `err' parameter. Adjust.
5104 (until_next_command): Adjust.
5105 (struct finish_command_continuation_args): Add `thread' field.
5106 (finish_command_continuation): Add `err' parameter. Handle it.
5107 (finish_forward): Adjust.
5108 (attach_command_continuation): Add `err' parameter. Handle it.
5109 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5110 cancel the continuations.
5111 * interps.c (interp_set): Adjust to cancel the continuations.
5112 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5113 continuations rather than discarding.
5114 (free_thread): Don't clear thread inferior resources here.
5115 (delete_thread_1): Do it here instead. And do it before removing
5116 the thread from the threads list. Tag the thread as exited before
5117 clearing thread inferior resources.
5118
c2949be0
JB
51192011-05-30 Joel Brobecker <brobecker@adacore.com>
5120
5121 * infcall.c (call_function_by_hand): Rephrase error message.
5122
619cebe8
PA
51232011-05-27 Pedro Alves <pedro@codesourcery.com>
5124
5125 * defs.h (struct thread_info, struct inferior): Delete forward
5126 declarations.
5127 * breakpoint.h (struct thread_info): New forward declaration.
5128 * observer.sh (struct inferior): New forward declaration.
5129 * python/python-internal.h (struct inferior): New forward
5130 declaration.
5131
be34f849
PA
51322011-05-27 Pedro Alves <pedro@codesourcery.com>
5133
5134 * defs.h (struct continuation, continuation_ftype)
5135 (continuation_free_arg_ftype, add_continuation)
5136 (do_all_continuations, do_all_continuations_thread)
5137 (discard_all_continuations, discard_all_continuations_thread)
5138 (add_intermediate_continuation, do_all_intermediate_continuations)
5139 (do_all_intermediate_continuations_thread)
5140 (discard_all_intermediate_continuations)
5141 (discard_all_intermediate_continuations_thread)
5142 (add_inferior_continuation, do_all_inferior_continuations)
5143 (discard_all_inferior_continuations): Move to ...
5144 * continuations.h: ... this new file.
5145 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5146 infcmd.c, inferior.c, infrun.c, interps.c: Include
5147 continuations.h.
5148
432b4d03
JK
51492011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5150 Doug Evans <dje@google.com>
5151
5152 Fix PR 10970, PR 12702.
5153 * linux-nat.c (linux_lwp_is_zombie): New function.
5154 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5155 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5156
b0f260d6
PA
51572011-05-27 Pedro Alves <pedro@codesourcery.com>
5158
5159 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5160 typedefs.
5161 (add_continuation, add_intermediate_continuation)
5162 (add_inferior_continuation): Use them.
5163 * continuations.c (struct continuation): Use them.
5164 (make_continuation_ftype): Delete.
5165 (make_continuation, add_inferior_continuation, add_continuation)
5166 (add_intermediate_continuation): Use continuation_ftype and
5167 continuation_free_arg_ftype. Rename parameters to shorter names.
5168
af1e9a32
PA
51692011-05-27 Pedro Alves <pedro@codesourcery.com>
5170
5171 * continuations.c (make_continuation): Make it return void.
5172 (do_my_continuations): Rename to ...
5173 (do_my_continuations_1): ... this. Remove old_chain parameter and
5174 adjust.
5175 (do_my_continuations): New.
5176 (discard_my_continuations): Rename to ...
5177 (discard_my_continuations_1): ... this. Remove old_chain
5178 parameter and adjust.
5179 (discard_my_continuations): New.
5180 (add_inferior_continuation): Simplify.
5181 (do_all_inferior_continuations): Reimplement on top
5182 do_my_continuations.
5183 (discard_all_inferior_continuations): Simplify.
5184 (add_continuation): Simplify.
5185 (do_all_continuations_ptid): Simplify.
5186 (discard_all_continuations_thread_callback): Simplify.
5187 (add_intermediate_continuation): Simplify.
5188 (discard_all_intermediate_continuations_thread_callback):
5189 Simplify.
5190
50c0c017
PA
51912011-05-27 Pedro Alves <pedro@codesourcery.com>
5192
5193 * utils.c (struct continuation, add_continuation)
5194 (add_inferior_continuation)
5195 (do_all_inferior_continuations, discard_all_inferior_continuations)
5196 (restore_thread_cleanup, do_all_continuations_ptid)
5197 (do_all_continuations_thread_callback)
5198 (do_all_continuations_thread, do_all_continuations)
5199 (discard_all_continuations_thread_callback)
5200 (discard_all_continuations_thread, discard_all_continuations)
5201 (add_intermediate_continuation)
5202 (do_all_intermediate_continuations_thread_callback)
5203 (do_all_intermediate_continuations_thread)
5204 (do_all_intermediate_continuations)
5205 (discard_all_intermediate_continuations_thread_callback)
5206 (discard_all_intermediate_continuations_thread)
5207 (discard_all_intermediate_continuations): Move to ...
5208 * continuations.c: ... this new file, and adjust to no longer
5209 implement continuations on top of cleanups.
5210 * Makefile.in (SFILES): Add continuations.c.
5211 (COMMON_OBS): Add continuations.o.
5212
d8b34453
PA
52132011-05-26 Pedro Alves <pedro@codesourcery.com>
5214
5215 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5216 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5217 Internal error on invalid values.
5218 * reverse.c: Don't handle EXEC_ERROR.
5219 * mi/mi-main.c: Don't handle EXEC_ERROR.
5220
32231432
PA
52212011-05-26 Pedro Alves <pedro@codesourcery.com>
5222
5223 * record.c: Include event-loop.h, inf-loop.h.
5224 (record_beneath_to_async): New global.
5225 (tmp_to_async): New global.
5226 (record_async_inferior_event_token): New global.
5227 (record_open_1): Don't error out if async is enabled.
5228 (record_open): Handle to_async. Create an async event source in
5229 the event loop.
5230 (record_close): Delete the async event source.
5231 (record_resumed): New global.
5232 (record_execution_dir): New global.
5233 (record_resume, record_core_resume): Set them. Register the
5234 target on the event loop.
5235 (record_wait): Rename to ...
5236 (record_wait_1): ... this. Add more debug output. Handle
5237 TARGET_WNOHANG, and the target beneath returning
5238 TARGET_WAITKIND_IGNORE.
5239 (record_wait): Reimplement on top of record_wait_1.
5240 (record_async_mask_value): New global.
5241 (record_async, record_async_mask, record_can_async_p)
5242 (record_is_async_p, record_execution_direction): New functions.
5243 (init_record_ops, init_record_core_ops): Install new methods.
5244 * infrun.c (fetch_inferior_event): Temporarily switch the global
5245 execution direction to the direction the target was going.
5246 (execution_direction): Change type to int.
5247 * target.c (default_execution_direction): New function.
5248 (update_current_target): Inherit and de_fault
5249 to_execution_direction.
5250 * target.h (struct target_ops) <to_execution_direction>: New
5251 field.
5252 (target_execution_direction): New macro.
5253 * inferior.h (execution_direction): Change type to int.
5254
949dc678
PA
52552011-05-26 Pedro Alves <pedro@codesourcery.com>
5256
5257 * infcall.c (call_function_by_hand): Don't allow calling functions
5258 in reverse execution mode.
5259
c13bd2b5
PA
52602011-05-26 Pedro Alves <pedro@codesourcery.com>
5261
5262 * infcmd.c (finish_command): Allow async finish in reverse.
5263
6938fd34
YQ
52642011-05-26 Yao Qi <yao@codesourcery.com>
5265
5266 * gdb_thread_db.h: Delete. Move to ...
5267 * common/gdb_thread_db.h: ... here.
5268
9da8c2a0
PA
52692011-05-26 Pedro Alves <pedro@codesourcery.com>
5270
5271 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5272 function's entry point instead of a manually managed momentary
5273 breakpoint, and only ever issue one proceed call.
5274 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5275 doing a reverse-finish, switch to stepi mode, to do another step.
5276 (insert_step_resume_breakpoint_at_sal): Make public.
5277 (normal_stop): No need to save function value return registers if
5278 going reverse.
5279 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5280
2c03e5be
PA
52812011-05-26 Pedro Alves <pedro@codesourcery.com>
5282
5283 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5284 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5285 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5286 at the end.
5287 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5288 step-resume breakpoints.
5289 (print_it_typical): Handle bp_hp_step_resume.
5290 (bpstat_what): Ditto.
5291 (bptype_string): Ditto.
5292 (print_one_breakpoint_location): Ditto.
5293 (allocate_bp_location): Ditto.
5294 (mention): Ditto.
5295 (breakpoint_re_set_one): Ditto.
5296 * infrun.c (handle_inferior_event): Adjust. Split
5297 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5298 BPSTAT_WHAT_HP_STEP_RESUME.
5299 (insert_step_resume_breakpoint_at_sal): Rename to ...
5300 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5301 parameter. Handle it.
5302 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5303 insert_step_resume_breakpoint_at_sal_1.
5304 (insert_step_resume_breakpoint_at_frame): Rename to ...
5305 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5306 set a high-priority step-resume breakpoint.
5307 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5308 (insert_step_resume_breakpoint_at_caller): Ditto.
5309
51be5b68
PA
53102011-05-26 Pedro Alves <pedro@codesourcery.com>
5311
5312 * breakpoint.c (iterate_over_related_breakpoints): New.
5313 (do_map_delete_breakpoint): New.
5314 (delete_command): Pass do_map_delete_breakpoint to
5315 map_breakpoint_numbers.
5316 (do_disable_breakpoint): New.
5317 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5318 breakpoints.
5319 (do_enable_breakpoint): Rename to ...
5320 (enable_breakpoint_disp): ... this.
5321 (enable_breakpoint): Adjust.
5322 (do_enable_breakpoint): New.
5323 (enable_once_breakpoint): Delete.
5324 (do_map_enable_breakpoint): New.
5325 (do_map_enable_once_breakpoint): New.
5326 (enable_once_command, enable_delete_command)
5327 (delete_trace_command): Iterate over the breakpoint's related
5328 breakpoints.
5329
4a1be8d2
PA
53302011-05-26 Pedro Alves <pedro@codesourcery.com>
5331
5332 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5333 for ALPHA_ZERO_REGNUM.
5334 (alpha_supply_int_regs): Explicitly supply zero as the value for
5335 ALPHA_ZERO_REGNUM in the register cache.
5336 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5337
59d70315
YQ
53382011-05-26 Yao Qi <yao@codesourcery.com>
5339
5340 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5341
251d32d9
TG
53422011-05-26 Tristan Gingold <gingold@adacore.com>
5343
5344 * symfile.h (struct dwarf2_section_names): New type.
5345 (struct dwarf2_debug_sections): New type.
5346 (dwarf2_has_info): Add parameter.
5347 * dwarf2read.c (dwarf2_elf_names): New variable.
5348 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5349 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5350 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5351 (dwarf2_has_info): Add names parameter. Pass names
5352 to dwarf2_locate_sections.
5353 (section_is_p): Rewrite using the names parameter.
5354 (dwarf2_locate_sections): Use section names from the names parameter.
5355 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5356 * elfread.c (read_psyms): Ditto.
5357 * machoread.c (macho_symfile_read): Ditto.
5358
652c71b4
AS
53592011-05-25 Andreas Schwab <schwab@redhat.com>
5360
5361 PR gdb/8677
5362 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5363
f17170e5
KS
53642011-05-24 Keith Seitz <keiths@redhat.com>
5365
5366 PR breakpoint/12803
5367 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5368 (decode_compound): Unconditionally call keep_name_info.
5369
cdac0397
PA
53702011-05-24 Pedro Alves <pedro@codesourcery.com>
5371
5372 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5373 scope, clear its command list.
5374 (map_breakpoint_numbers): Don't walk the related breakpoints list
5375 of each breakpoint.
5376
91d4fe3f
TT
53772011-05-24 Tom Tromey <tromey@redhat.com>
5378
5379 * MAINTAINERS: Move Jim Blandy to past maintainers.
5380
3017a003
TG
53812011-05-24 Tristan Gingold <gingold@adacore.com>
5382
5383 * symfile.h (enum dwarf2_section_enum): New type.
5384 (dwarf2_get_section_info): New prototype.
5385 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5386 section_name by sect. Use a switch to select the info.
5387 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5388 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5389
c91c8c16
PA
53902011-05-24 Pedro Alves <pedro@codesourcery.com>
5391
5392 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5393 shared library event breakpoint if there's no execution.
5394
77bc418a
TJB
53952011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5396
5397 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5398 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5399
c50491a7
TT
54002011-05-23 Tom Tromey <tromey@redhat.com>
5401
5402 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5403 NULL.
5404
6d64e6d4
DE
54052011-05-23 Doug Evans <dje@google.com>
5406
5407 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5408 entry for RuntimeError to doc string.
5409
2067c8d4
JG
54102011-05-23 Jerome Guitton <guitton@adacore.com>
5411
5412 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5413 sequence for probing loops.
5414
b136cd05
PA
54152011-05-23 Pedro Alves <pedro@codesourcery.com>
5416
5417 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5418 comment.
5419
22e74ef9
MK
54202011-05-21 Mark Kettenis <kettenis@gnu.org>
5421
5422 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5423 zero as the value for %g0 in the register cache.
5424 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5425 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5426
842951eb
PA
54272011-05-20 Pedro Alves <pedro@codesourcery.com>
5428
5429 * infrun.c (proceed): Set previous_inferior_ptid here.
5430 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5431 inferior_ptid, not null_ptid.
5432 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5433 (fetch_inferior_event): Nor here.
5434
46cf51e6
PA
54352011-05-20 Pedro Alves <pedro@codesourcery.com>
5436
5437 * inf-loop.c (inferior_event_handler): Only output a message if
5438 verbose.
5439
29ef4c46
LM
54402011-05-20 Luis Machado <lgustavo@codesourcery.com>
5441
5442 * MAINTAINERS: Update my e-mail address.
5443
f148b27e
PA
54442011-05-20 Pedro Alves <pedro@codesourcery.com>
5445
5446 * infrun.c (proceed): Switch the inferior event loop to
5447 INF_EXEC_COMPLETE if the target refused to resume from a
5448 vfork/fork.
5449
09cee04b
PA
54502011-05-20 Pedro Alves <pedro@codesourcery.com>
5451
5452 * infcmd.c: Include "inf-loop.h".
5453 (step_once): When stepping into an inline subroutine, pretend the
5454 target has run. If the target can async, switch the inferior
5455 event loop to INF_EXEC_COMPLETE.
5456 * inferior.h (user_visible_resume_ptid): Declare.
5457 * infrun.c (user_visible_resume_ptid): New function, factored out
5458 from `resume'.
5459 (resume): Use it.
5460 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5461 that the current thread is running. Merge async and sync
5462 branches.
5463
751b8ce1
PA
54642011-05-20 Pedro Alves <pedro@codesourcery.com>
5465
5466 * infcmd.c (step_1): Simplify synchronous case.
5467
e93a69ed
PA
54682011-05-20 Pedro Alves <pedro@codesourcery.com>
5469
5470 * tracepoint.c: Include exceptions.h.
5471 (TFILE_PID): Move higher in file.
5472 (tfile_open): Delay pushing the tfile target until we're assured
5473 the tfile header is present in the file. Wrap reading the initial
5474 newline-terminated lines in TRY_CATCH. Pop the target if the
5475 initial setup failed. Add the tfile's thread immediately
5476 aftwards, before any non-essential setup. Don't skip
5477 post_create_inferior if there are no traceframes present in the
5478 file.
5479 (tfile_close): Remove redundant check for null before xfree call.
5480 (tfile_thread_alive): New function.
5481 (init_tfile_ops): Register it as to_thread_alive callback.
5482
6823e2b1
PA
54832011-05-20 Pedro Alves <pedro@codesourcery.com>
5484
5485 * tracepoint.c (tfile_open): Delete #if 0'd code.
5486
b3c8eb43
JK
54872011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5488
5489 Fix -readnow for -gdwarf-4 unused type units.
5490 * dwarf2read.c (struct signatured_type): Remove the field offset.
5491 (create_signatured_type_table_from_index): Remove its initialization.
5492 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5493 instead. Add a complaint call.
5494 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5495 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5496 (lookup_signatured_type_at_offset, read_signatured_type)
5497 (write_one_signatured_type): Update the field for per_cu.
5498
310afc76
TT
54992011-05-19 Tom Tromey <tromey@redhat.com>
5500
5501 * python/py-inferior.c (python_inferior_exit): Use
5502 target_gdbarch.
5503 (python_on_resume): Likewise.
5504
cf6c5ffb
TT
55052011-05-19 Matt Rice <ratmice@gmail.com>
5506
5507 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5508
fb80a3c5
HZ
55092011-05-19 Hui Zhu <teawater@gmail.com>
5510
5511 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5512
3672b1be
HZ
55132011-05-19 Hui Zhu <teawater@gmail.com>
5514
5515 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5516
ff355380
TT
55172011-05-18 Tom Tromey <tromey@redhat.com>
5518
5519 * dwarf2read.c (dwarf2_add_field): Constify.
5520 * value.c (value_static_field): Constify.
5521 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5522 Now const.
5523 * ax-gdb.c (gen_static_field): Constify
5524
ed731959
JK
55252011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5526
5527 * linux-nat.c (kill_callback): Use SIGKILL first.
5528
967cff16
JB
55292011-05-18 Joel Brobecker <brobecker@adacore.com>
5530
5531 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5532
1d06ead6
TT
55332011-05-18 Tom Tromey <tromey@redhat.com>
5534
5535 * value.c (value_fn_field): Constify.
5536 * symtab.c (gdb_mangle_name): Constify.
5537 * stabsread.c (update_method_name_from_physname): Make 'physname'
5538 argument const.
5539 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5540 const. Use explicit fputc_filtered loop.
5541 (pascal_type_print_base): Constify.
5542 * p-lang.h (pascal_type_print_method_args): Update.
5543 * linespec.c (add_matching_methods): Constify.
5544 (add_constructors): Likewise.
5545 * jv-typeprint.c (java_type_print_base): Constify.
5546 * gdbtypes.h (struct cplus_struct_type)
5547 <fn_fieldlist.fn_field.physname>: Now const.
5548 * dwarf2read.c (compute_delayed_physnames): Constify.
5549 (dwarf2_add_member_fn): Likewise.
5550 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5551
0d9a9a5f
PA
55522011-05-18 Pedro Alves <pedro@codesourcery.com>
5553
5554 * infrun.c (resume): Mention which is the current thread, and its
5555 current PC in debug output.
5556 (prepare_to_proceed): Mention the thread switching in debug
5557 output.
5558
05386e9e
TT
55592011-05-18 Tom Tromey <tromey@redhat.com>
5560
5561 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5562 path check. Use xmalloc and cleanups.
5563 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5564
ee86786c
TT
55652011-05-17 Tom Tromey <tromey@redhat.com>
5566
5567 * cp-valprint.c (cp_print_value_fields): Catch errors from
5568 value_static_field.
5569
9ff3b74f
TT
55702011-05-17 Tom Tromey <tromey@redhat.com>
5571
5572 * dwarf2read.c (dwarf2_get_die_type): Call
5573 get_die_type_at_offset.
5574 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5575 get_base_type function.
5576
cd3da28e
PA
55772011-05-17 Tomas Martinec <fyzmat@gmail.com>
5578
5579 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5580 trap_expected.
5581
fd20d931
DE
55822011-05-16 Doug Evans <dje@google.com>
5583
5584 * python/py-auto-load.c (source_section_scripts): Mention objfile
5585 name in warning.
5586
75fc9810
DE
55872011-05-15 Doug Evans <dje@google.com>
5588
290351b8
DE
5589 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5590 (try_thread_db_load_from_pdir): Call it. If unable to find
5591 libthread_db in directory of libpthread, see if we're looking at
5592 the separate-debug-info copy.
5593
75fc9810
DE
5594 * python/py-autoload.c (print_script): Print "Missing" instead of
5595 "No" for missing scripts.
5596 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5597
9f7bc587
DE
55982011-05-13 Doug Evans <dje@google.com>
5599
5600 * ui-file.c (stdio_file_write_async_safe): Add comment.
5601
093cee7d
HZ
56022011-05-14 Hui Zhu <teawater@gmail.com>
5603
5604 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5605
dbaefcf7
DE
56062011-05-13 Doug Evans <dje@google.com>
5607
98a5dd13
DE
5608 Support $pdir and $sdir in libthread-db-search-path.
5609 * NEWS: Mention $sdir,$pdir.
5610 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5611 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5612 (try_thread_db_load_from_sdir): New function.
5613 (try_thread_db_load_from_dir): New function.
5614 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5615 system directories if search of libthread-db-search-path fails,
5616 that is now done via $sdir.
5617 (has_libpthread): New function.
5618 (thread_db_load): Remove search for libthread_db in directory of
5619 libpthread, that is now done via $pdir.
5620
dbaefcf7
DE
5621 * NEWS: Mention "info auto-load-scripts".
5622 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5623 script_not_found_warning_printed.
5624 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5625 all callers updated. Initialize script_not_found_warning_printed.
5626 (get_auto_load_pspace_data_for_loading): New function.
5627 (maybe_add_script): New function.
5628 (source_section_scripts): Simplify. Only print one warning regardless
5629 of the number of auto-load scripts not found.
5630 (clear_section_scripts): Clear script_not_found_warning_printed.
5631 (auto_load_objfile_script): Record script in hash table.
5632 (count_matching_scripts): New function.
5633 (maybe_print_script): Renamed from maybe_print_section_script, all
5634 callers updated. Rewrite to use ui_out_*.
5635 (info_auto_load_scripts): Renamed from
5636 maintenance_print_section_scripts, all callers updated.
5637 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5638 renamed as "info auto-load-scripts".
5639
9930639c
TT
56402011-05-13 Tom Tromey <tromey@redhat.com>
5641
5642 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5643 (read_sleb128): Likewise.
5644
06826322
TT
56452011-05-13 Tom Tromey <tromey@redhat.com>
5646
5647 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5648 offset display.
5649
01124a23
DE
56502011-05-13 Doug Evans <dje@google.com>
5651
5652 * linux-nat.c (debug_linux_nat_async): Delete.
5653 Replace all references to use debug_linux_nat instead.
5654 (show_debug_linux_nat_async): Delete.
5655 (sigchld_handler): Call ui_file_write_async_safe instead of
5656 fprintf_unfiltered.
5657 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5658 * ui-file.c (struct ui_file): New member to_write_async_safe.
5659 (null_file_write_async_safe): New function.
5660 (ui_file_write_async_safe): New function.
5661 (set_ui_file_write_async_safe): New function.
5662 (ui_file_new): Initialize to_write_async_safe.
5663 (stdio_file_write_async_safe): New function.
5664 (struct stdio_file): New member fd.
5665 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5666 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5667 fileno.
01124a23
DE
5668 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5669 (set_ui_file_write_async_safe): Declare.
5670 (ui_file_write_async_safe): Declare.
5671
72fc29ff
TT
56722011-05-13 Tom Tromey <tromey@redhat.com>
5673
5674 * utils.c (do_value_free): New function.
5675 (make_cleanup_value_free): Likewise.
5676 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5677 freeing correctly.
5678 (dwarf2_loc_desc_needs_frame): Call
5679 make_cleanup_value_free_to_mark.
5680 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5681 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5682 value_free_to_mark.
5683 (new_dwarf_expr_context): Don't call value_mark.
5684 * dwarf2-frame.c (execute_stack_op): Call
5685 make_cleanup_value_free_to_mark.
5686 * defs.h (make_cleanup_value_free): Declare.
5687
028d0ed5
TJB
56882011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5689
5690 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5691 prepare_execute_command.
5692 * top.c (prepare_execute_command): Return cleanup.
5693 (execute_command): Use cleanup from prepare_execute_command.
5694 * top.h (prepare_execute_command): Change prototype to return
5695 cleanup.
5696 * defs.h (struct value): Add opaque declaration.
5697 (make_cleanup_value_free_to_mark): Add prototype.
5698 * utils.c (do_value_free_to_mark): New function.
5699 (make_cleanup_value_free_to_mark): Likewise.
5700
b087e0ed
TT
57012011-05-12 Tom Tromey <tromey@redhat.com>
5702
5703 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5704 cast left-hand-side to unsigned.
5705
8a9b8146
TT
57062011-05-12 Tom Tromey <tromey@redhat.com>
5707
5708 PR gdb/12617:
5709 * value.h (value_from_contents): Declare.
5710 * value.c (value_from_contents): New function.
5711 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5712 (dwarf2_get_die_type): New function.
5713 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5714 (allocate_piece_closure): Acquire reference to values.
5715 (read_pieced_value): Update for value-based expressions.
5716 (write_pieced_value): Likewise.
5717 (free_pieced_value_closure): Call value_free as needed.
5718 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5719 Update for value-based expressions.
5720 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5721 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5722 <get_base_type>: New field.
5723 (struct dwarf_expr_piece) <v.value>: Change type.
5724 <v.regno>: New field.
5725 (struct dwarf_expr_context) <mark>: New field.
5726 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5727 (dwarf_expr_pop, dwarf_expr_push): Remove.
5728 (dwarf_expr_push_address): Declare.
5729 * dwarf2expr.c (dwarf_arch_cookie): New global.
5730 (struct dwarf_gdbarch_types): New.
5731 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5732 functions.
5733 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5734 static.
5735 (dwarf_expr_push_address): New function.
5736 (dwarf_expr_pop): Now static.
5737 (dwarf_expr_fetch): Change return type.
5738 (dwarf_require_integral): New function.
5739 (dwarf_expr_fetch): Simplify.
5740 (add_piece): Update.
5741 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5742 functions.
5743 (execute_stack_op) <sign_ext>: Remove.
5744 Use values for DWARF stack.
5745 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5746 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5747 New cases.
5748 (_initialize_dwarf2expr): New function.
5749 (add_piece): Update.
5750 (new_dwarf_expr_context): Set new field.
5751 (free_dwarf_expr_context): Call value_free_to_mark.
5752 * dwarf2-frame.c (no_base_type): New function.
5753 (execute_stack_op): Set get_base_type field. Update.
5754
e8d28ef4
TT
57552011-05-12 Tom Tromey <tromey@redhat.com>
5756
5757 * dwarf2read.c (read_common_block): Fix formatting.
5758
d248b706
KY
57592011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5760
5761 * breakpoint.c (disable_breakpoint): Disable all locations
5762 associated with a tracepoint on target if a trace experiment is
5763 running.
5764 (disable_command): Disable a specific tracepoint location on target if
5765 a trace experiment is running.
5766 (do_enable_breakpoint): Enable all locations associated with a
5767 tracepoint on target if a trace experiment is running.
5768 (enable_command) Enable a specific tracepoint location on target if a
5769 trace experiment is running.
5770 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5771 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5772 to_disable_tracepoint.
5773 * target.h: Add declaration of struct bp_location.
5774 (struct target_ops): Add new functions
5775 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5776 to_disable_tracepoint to target operations.
5777 (target_supports_enable_disable_tracepoint): New macro.
5778 (target_enable_tracepoint): New macro.
5779 (target_disable_tracepoint): New macro.
5780 * remote.c (struct remote_state): Add new field.
5781 (remote_enable_disable_tracepoint_feature): New.
5782 (remote_protocol_features): Add new entry.
5783 (remote_supports_enable_disable_tracepoint): New.
5784 (remote_enable_tracepoint): New.
5785 (remote_disable_tracepoint): New.
5786 (init_remote_ops): Add remote_enable_tracepoint,
5787 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5788 to remote operations.
5789 * tracepoint.c (start_tracing): Allow tracing to start without any
5790 tracepoints enabled with just a warning if they can be re-enabled
5791 later.
5792 * NEWS: Add news item for the new behaviour of the enable and disable
5793 GDB commands when applied to tracepoints.
5794 Add news items for the new remote packets QTEnable and QTDisable.
5795
cc88a640
JK
57962011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5797
5798 * config.in: Regenerate.
5799 * configure: Regenerate.
5800 * configure.ac <--with-system-readline> (for readline_echoing_p):
5801 Remove the test.
5802 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5803 (tui_old_rl_echoing_p): ... here.
5804 (tui_setup_io): Rename extern declaration readline_echoing_p to
5805 _rl_echoing_p. Adjust assignments for the both renames.
5806
1f84b619
TJB
58072011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5808
5809 * symtab.c (lookup_symtab): Run cleanup before returning.
5810
74ac6d43
TT
58112011-05-11 Tom Tromey <tromey@redhat.com>
5812
5813 * dwarf2read.c (handle_data_member_location): New function.
5814 (dwarf2_add_field): Use it.
5815 (read_common_block): Likewise.
5816
5488dafb
JK
58172011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5818
5819 Make addrs->SECTINDEX always defined.
5820 * symfile.c (relative_addr_info_to_section_offsets): Check for
5821 SECTINDEX -1, not for zero ADDR.
5822 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5823 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5824 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5825 on its validity.
5826
84e578fb
DE
58272011-05-10 Doug Evans <dje@google.com>
5828
2471d008
DE
5829 * linux-thread-db.c: Whitespace cleanup.
5830 (try_thread_db_load_1): Fix comment.
5831
84e578fb
DE
5832 * linux-thread-db.c (set_libthread_db_search_path): New function.
5833 (_initialize_thread_db): Add setter for libthread-db-search-path.
5834
673c2bbe
DE
58352011-05-09 Doug Evans <dje@google.com>
5836
478aac75
DE
5837 * NEWS: Mention --with-iconv-bin.
5838 * configure.ac: New option --with-iconv-bin.
5839 * configure: Regenerate.
5840 * config.in: Regenerate.
5841 * defs.h (relocate_gdb_directory): Declare.
5842 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5843 removed progname parameter, and exported. All callers updated.
5844 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5845
673c2bbe
DE
5846 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5847 adding missing call to restore_child_signals_mask.
5848
e4c8541f
PA
58492011-05-09 Pedro Alves <pedro@codesourcery.com>
5850
5851 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5852 parameter.
5853 * infrun.c (proceed, start_remote): Adjust.
5854 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5855 and adjust to not handle it.
5856 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5857 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5858 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5859 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5860 * windows-nat.c (do_initial_windows_stuff): Adjust.
5861 * infcmd.c (attach_command): Adjust.
5862 (notice_new_inferior): Adjust.
5863
a536c6d7
UW
58642011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5865
5866 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5867 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5868 * spu-tdep.c (op_selb): Use correct value.
5869
7845b013
UW
58702011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5871
5872 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5873 "parent" parameter to symbol_file_add_from_bfd call.
5874
9c06b0b4
TJB
58752011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5876 Thiago Jung Bauermann <bauerman@br.ibm.com>
5877
5878 Implement support for PowerPC BookE masked watchpoints.
5879 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5880 section.
5881 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5882 method. Initialize to NULL in all existing breakpoint_ops instances.
5883 (struct breakpoint) <hw_wp_mask>: New field.
5884 * breakpoint.c (is_masked_watchpoint): Add prototype.
5885 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5886 breakpoint's breakpoint_ops.works_in_software_mode if available.
5887 (watchpoints_triggered): Handle the case of a hardware masked
5888 watchpoint trigger.
5889 (watchpoint_check): Likewise.
5890 (works_in_software_mode_watchpoint): New function.
5891 (insert_masked_watchpoint, remove_masked_watchpoint)
5892 (resources_needed_masked_watchpoint)
5893 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5894 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5895 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5896 functions.
5897 (masked_watchpoint_breakpoint_ops): New structure.
5898 (watch_command_1): Check for the existence of the `mask' parameter.
5899 Set b->ops according to the type of hardware watchpoint being created.
5900 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5901 (ppc_linux_remove_mask_watchpoint)
5902 (ppc_linux_masked_watch_num_registers): New functions.
5903 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5904 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5905 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5906 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5907 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5908 (target_masked_watch_num_registers): New functions.
5909 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5910 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5911 methods.
5912 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5913 (target_masked_watch_num_registers): Add prototypes.
5914
8be455d7
JK
59152011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5916
5917 PR 12573
5918 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5919 (producer_is_gcc_ge_4_0): New function.
5920 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5921 symtab->language code.
5922 (var_decode_location): Set cu->has_loclist.
5923 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5924 skip. Intialize force_skip from locations_valid. Move the prologue
5925 skipping code into two passes.
5926 * symtab.h (struct symtab): Make the primary field a bitfield. New
5927 field locations_valid.
5928
d8228535
JK
59292011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5930
5931 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5932 (classify_inner_name): Call cp_lookup_nested_type with
5933 yylval.tsym.type.
5934 * cp-namespace.c (cp_lookup_nested_type): New variable
5935 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5936 type_name_no_tag_or_error with saved_parent_type.
5937 * dwarf2read.c (load_partial_dies): Read in any children of
5938 DW_TAG_typedef with complaint in such case.
5939 * gdbtypes.c (type_name_no_tag_or_error): New function.
5940 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5941 * valops.c (destructor_name_p): New comment for parameter type. Remove
5942 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5943 * value.h (destructor_name_p): Remove type const.
5944
1976171a
JK
59452011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5946
5947 * symtab.c (compare_symbol_name): New function.
5948 (completion_list_add_name, expand_partial_symbol_name): Call it,
5949 remove the variable ncmp.
5950 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5951 gdb_assert it.
5952
a9634178
TJB
59532011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5954
5955 Demote to sw watchpoint only in update_watchpoint.
5956 * breakpoint.c (update_watchpoint): Change between software and
5957 hardware watchpoint for all kinds of watchpoints, not just
5958 read/write ones. Determine b->exact value here instead of
5959 in watch_command_1. Error out if there are not enough resources
5960 for a read or access hardware watchpoint.
5961 (watch_command_1): Remove logic of checking whether there are
5962 enough resources available, since update_watchpoint will do that
5963 work now. Don't set b->exact here. Catch exceptions thrown by
5964 update_watchpoint and delete the watchpoint.
5965 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5966 Use target_exact_watchpoints instead.
5967 (delete_breakpoint): Notify observers only if deleted watchpoint
5968 has a breakpoint number assigned to it.
5969
4c67c798
JJ
59702011-05-05 Janis Johnson <janisjo@codesourcery.com>
5971
5972 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5973
a3fcb948
JG
59742011-05-05 Jerome Guitton <guitton@adacore.com>
5975
5976 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5977 New functions.
5978 (i386_stack_tramp_frame_unwind): New static global.
5979 (i386_match_pattern): New function, extracted from i386_match_insn.
5980 (i386_match_insn): Use i386_match_pattern.
5981 (i386_match_insn_block): New function.
5982 (i386_tramp_chain_in_reg_insns)
5983 (i386_tramp_chain_on_stack_insns): New static variables.
5984 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5985 of unwinders.
5986
4d393d60
JM
59872011-05-04 Joseph Myers <joseph@codesourcery.com>
5988
5989 * configure.host (xscale*): Don't handle target.
5990 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5991 handle targets.
5992
f70bd40b
YQ
59932011-05-04 Yao Qi <yao@codesourcery.com>
5994
5995 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5996
dd3295ee
JB
59972011-05-03 Joel Brobecker <brobecker@adacore.com>
5998
5999 Revert:
6000 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6001 | * elfread.c (elf_symtab_read): Stop memory leak.
6002
90375a0e
PM
60032011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6004
6005 * nto-tdep.c (nto_target): Replace deprecated call to
6006 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6007
d07205c2
JK
60082011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 Fix false GCC warning.
6011 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6012
1e718ff1
TJB
60132011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6014
6015 * breakpoint.c (update_watchpoint): Move code to change
6016 the enable state of breakpoint from here ...
6017 (do_enable_breakpoint): ... to here.
6018
35bef4fd
TT
60192011-04-26 Andrew Gontarek <andrewg@cray.com>
6020
78290264
PP
6021 * valprint.c (val_print_array_elements): Fixed poor performance
6022 of printing very large arrays with repeat_count_threshold set
6023 to unlimited. New comment.
35bef4fd 6024
38a714bb
TT
60252011-04-29 Tom Tromey <tromey@redhat.com>
6026
6027 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6028 (mi_parse): Likewise.
6029 * breakpoint.c (break_range_command): Use sizeof char*, not
6030 char**.
6031 (create_breakpoint): Likewise.
6032 (parse_breakpoint_sals): Likewise.
6033
eb73ad13
PA
60342011-04-29 Pedro Alves <pedro@codesourcery.com>
6035
6036 * linux-nat.c (linux_child_remove_fork_catchpoint)
6037 (linux_child_remove_vfork_catchpoint)
6038 (linux_child_remove_exec_catchpoint): New functions.
6039 (linux_target_install_ops): Install them.
6040
d65aec65
PM
60412011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6042
6043 PR mi/12531
6044
6045 * varobj.c (install_default_visualizer): Do not install a
6046 visualizer if the varobj is CPLUS_FAKE_CHILD.
6047 (construct_visualizer): Likewise.
6048
165195f4
JK
60492011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6050
6051 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6052 case insensitive comparison.
6053
30852783
UW
60542011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6055
6056 * infrun.c (proceed): Revert previous change.
6057 (resume): Instead, handle the case of signal delivery while stepping
6058 off a breakpoint location here, and only if software single-stepping
6059 is used. Handle nested signals.
6060
7ff120b4
YQ
60612011-04-28 Yao Qi <yao@codesourcery.com>
6062
6063 * arm-tdep.c (copy_unmodified): Rename to ...
6064 (arm_copy_unmodified): .. this. New.
6065 (copy_preload): Move common part to ...
6066 (install_preload): .. this. New.
6067 (arm_copy_preload): New.
6068 (copy_preload_reg): Move common part to ...
6069 (install_preload_reg): ... this. New.
6070 (arm_copy_preload_reg): New.
6071 (copy_b_bl_blx): Move common part to ...
6072 (install_b_bl_blx): .. this. New.
6073 (arm_copy_b_bl_blx): New.
6074 (copy_bx_blx_reg): Move common part to ...
6075 (install_bx_blx_reg): ... this. New.
6076 (arm_copy_bx_blx_reg): New.
6077 (copy_alu_reg): Move common part to ...
6078 (install_alu_reg): ... this. New.
6079 (arm_copy_alu_reg): New.
6080 (copy_alu_shifted_reg): Move common part to ...
6081 (install_alu_shifted_reg): ... this. New.
6082 (copy_ldr_str_ldrb_strb): Move common part to ...
6083 (install_ldr_str_ldrb_strb): ... this. New.
6084 (arm_copy_ldr_str_ldrb_strb): New.
6085 (copy_copro_load_store): Move some common part to ...
6086 (install_copy_copro_load_store): ... this. New.
6087 (arm_copy_copro_load_store): New.
6088 (copy_svc): Delete.
6089 (arm_copy_svc): Renamed from copy_svc.
6090 (copy_undef): Delete.
6091 (arm_copy_undef): Renamed from copy_undef.
6092 (decode_ext_reg_ld_st): Delete.
6093 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6094 (decode_svc_copro): Delete.
6095 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6096 (copy_copro_load_store, copy_alu_imm): update callers.
6097 (copy_extra_ld_st, copy_block_xfer): Likewise.
6098 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6099 (decode_miscellaneous, decode_dp_misc): Likewise.
6100 (decode_ld_st_word_ubyte, decode_media): Likewise.
6101 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6102 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6103 (decode_unconditional, decode_miscellaneous): Likewise.
6104 (decode_media, decode_b_bl_ldmstm): Likewise.
6105 (arm_process_displaced_insn): Likewise..
6106 (decode_misc_memhint_neon): Delete.
6107 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6108 (decode_miscellaneous): Delete.
6109 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6110 (decode_dp_misc): Delete.
6111 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6112 (decode_ld_st_word_ubyte): Delete.
6113 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6114 (decode_media): Delete.
6115 (arm_decode_media): Renamed from decode_media.
6116 (decode_b_bl_ldmstm): Delete.
6117 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6118 (decode_ext_reg_ld_st): Delete.
6119 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6120 (decode_unconditional): Delete.
6121 (arm_decode_unconditional): Renamed from decode_unconditional.
6122
559a7a62
JK
61232011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6124
6125 Case insensitive lookups implementation.
6126 * dwarf2read.c: Include ctype.h.
6127 (struct mapped_index): New field version.
6128 (mapped_index_string_hash): New parameter index_version. New comment
6129 for it. Call tolower appropriately.
6130 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6131 Choose the right index version for mapped_index_string_hash.
6132 (dwarf2_read_index): Support also the index version 5. Initialize the
6133 new struct mapped_index field version.
6134 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6135 (find_slot): Explain the version needs. Pass INT_MAX for the new
6136 parameter.
6137 (write_psymtabs_to_index): Produce version 5.
6138 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6139 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6140 * psymtab.c (lookup_partial_symbol): Find the
6141 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6142 entries.
6143 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6144 NAME lowercasing.
6145 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6146 (completion_list_add_name): New variable ncmp, initialize it, use it.
6147 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6148 * utils.c (strcmp_iw): Support case_sensitive_off.
6149 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6150 New function comment part. New variables saved_string1,
6151 saved_string2 and case_pass. Add a proper second pass.
6152
681bf369
JK
61532011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6154
6155 Replace re_comp/re_exec by regcomp/regexec.
6156 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6157 (search_symbols_name_matches): Use them, use regexec.
6158 (search_symbols): New variable retval_chain, adjust the use of
6159 old_chain against it. Replace re_comp by regcomp. Use the new struct
6160 search_symbols_data fields, use regexec instead of re_exec.
6161
b11b1f88
JK
61622011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6163
6164 Format the code for the next patch.
6165 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6166 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6167 New variables c1 and c2.
6168
2484c66b
UW
61692011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6170
6171 * infrun.c (proceed): Do not single-step into signal delivery
6172 when stepping off a breakpoint location.
6173 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6174 (insert_step_resume_breakpoint_at_caller): Likewise.
6175 (insert_step_resume_breakpoint_at_sal): Likewise.
6176 (insert_longjmp_resume_breakpoint): Likewise.
6177
47423772
YQ
61782011-04-27 Yao Qi <yao@codesourcery.com>
6179
6180 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6181
13bdd2e7
JB
61822011-04-27 Joel Brobecker <brobecker@adacore.com>
6183
6184 * procfs.c (procfs_pass_signals): Fix advance declaration.
6185
2455069d
UW
61862011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6187
6188 * target.h (struct target_ops): Remove to_notice_signals;
6189 add to_pass_signals.
6190 (target_notice_signals): Remove.
6191 (target_pass_signals): Add prototype.
6192 * target.c (update_current_target): Remove to_notice_signals;
6193 mention to_pass_signals.
6194 (target_pass_signals): New function.
6195 (debug_to_notice_signals): Remove.
6196 (setup_target_debug): Do not install debug_to_notice_signals.
6197
6198 * infrun.c (signal_pass): New global.
6199 (resume): Call target_pass_signals.
6200 (handle_inferior_event): Report all signals while stepping over
6201 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6202 are re-inserted when stepping over a signal handler.
6203 (signal_cache_update): New function.
6204 (signal_stop_update): Call it.
6205 (signal_print_update): Likewise.
6206 (signal_pass_update): Likewise.
6207 (handle_command): Call signal_cache_update and target_pass_signals
6208 instead of target_notice_signals.
6209 (_initialize_infrun): Initialize signal_pass.
6210
6211 * linux-nat.c (pass_mask): New global.
6212 (linux_nat_pass_signals): New function.
6213 (linux_nat_create_inferior): Report all signals initially.
6214 (linux_nat_attach): Likewise.
6215 (linux_nat_resume): Use pass_mask to decide whether to directly
6216 handle an inferior signal.
6217 (linux_nat_wait_1): Likewise.
6218 (linux_nat_add_target): Install to_pass_signals callback.
6219
6220 * nto-procfs.c (notice_signals): Remove.
6221 (procfs_resume): Do not call notice_signals.
6222 (procfs_notice_signals): Remove.
6223 (procfs_pass_signals): New function.
6224 (init_procfs_ops): Install to_pass_signals callback instead of
6225 to_notice_signals callback.
6226 (_initialize_procfs): Report all signals initially.
6227
6228 * procfs.c (procfs_notice_signals): Remove.
6229 (procfs_pass_signals): New function.
6230 (procfs_target): Install to_pass_signals callback instead of
6231 to_notice_signals callback.
6232 (register_gdb_signals): Remove.
6233 (procfs_debug_inferior): Report all signals initially.
6234 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6235
6236 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6237 parameters; use them instead of calling signal_..._state routines.
6238 (remote_notice_signals): Remove.
6239 (remote_start_remote): Report all signals initially.
6240 (remote_resume): Do not call remote_pass_signals.
6241 (_initialize_remote): Install to_pass_signals callback instead of
6242 to_notice_signals callback.
6243
46c6471b
PA
62442011-04-27 Pedro Alves <pedro@codesourcery.com>
6245
6246 * breakpoint.c (user_settable_breakpoint): Delete.
6247 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6248 (delete_command): Check user_breakpoint_p instead of looking at
6249 the breakpoint's type.
6250 (disable_command): Ditto.
6251 (enable_command): Ditto.
6252 (delete_trace_command): Use user_breakpoint_p instead of looking
6253 at the breakpoint number directly. When checking if there are
6254 user visible tracepoints, in order to know whether to ask the user
6255 for confirmation, check whether the breakpoint is actually a
6256 tracepoint.
6257
f6d90398
VP
62582011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6259
6260 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6261 compilation.
6262
8d3788bd
VP
62632011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6264
6265 MI breakpoint notifications.
6266
f33edef8
PP
6267 * annotate.c (breakpoint_changed): Adjust parameter type.
6268 * breakpoint.c (set_breakpoint_condition): Adjust to change
6269 in breakpoint_modified type.
6270 (breakpoint_set_commands): Likewise.
6271 (do_map_commands_command): Likewise.
6272 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6273 changed after bumping hit count.
6274 (bpstat_stop_status): Likewise.
6275 (print_one_breakpoint_location): Don't wrap in tuple here.
6276 (print_one_breakpoint): Always print individual locations.
6277 For locations, use unnamed tuple.
6278 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6279 has changed.
6280 (create_catchpoint, create_syscall_event_catchpoint): Call
6281 breakpoint_created obsever.
6282 (mention): Don't call breakpoint_created observer.
6283 (create_breakpoint_sal): Call breakpoint_created observer.
6284 (create_breakpoint, watch_command_1): Likewise.
6285 (create_ada_exception_breakpoint): Likewise.
6286 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6287 (locations_are_equal): New.
6288 (update_breakpoint_locations): If locations were changed, notify.
6289 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6290 Call breakpoint_modified observer.
6291
6292 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6293 (mi_cmd_break_insert): Don't set observers for modify and delete.
6294 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6295 (mi_breakpoint_created, mi_breakpoint_deleted)
6296 (mi_breakpoint_modified): New.
6297 (mi_interpreter_init): Hook the above.
6298 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6299 while -break-* commands are executing.
6300 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6301 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6302 (mi_redirect): New.
6303 (mi_ui_out_impl): Hook in mi_redirect.
6304 (mi_field_skip): True to the name, skip the field, don't output
6305 a field with an empty value.
6306
6307 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6308 (gdbpy_breakpoint_deleted): Adjust.
6309 * tui/tui-hooks.c (tui_event_create_breakpoint)
6310 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6311
a8f42b45
UW
63122011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6313
6314 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6315 (procfs_remove_hw_watchpoint): Likewise.
6316
57e12211
TT
63172011-04-26 Michael Walle <michael@walle.cc>
6318
6319 * remote.c (remote_start_remote): Ack packet after sending the
6320 interrupt sequence.
6321
af96c192
YQ
63222011-04-26 Yao Qi <yao@codesourcery.com>
6323
f33edef8
PP
6324 * linux-nat.c: Move common macros to ...
6325 Include linux-ptrace.h.
6326 * common/linux-ptrace.h: ... here. New.
af96c192 6327
3e03848b
JK
63282011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6329
6330 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6331 !objfile_has_partial_symbols. New comment.
6332 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6333 SYM_READ_PSYMBOLS is not present. Extend the comment.
6334 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6335
1ae0d051
JK
63362011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6337
6338 * defs.h (ENUM_BITFIELD): Remove.
6339
03f2bd59
JK
63402011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6341 Eli Zaretskii <eliz@gnu.org>
6342
6343 * NEWS: Document the new gdbserver --once option.
6344
4161fbb0
JZ
63452011-04-21 Jie Zhang <jzhang918@gmail.com>
6346
6347 * MAINTAINERS: Update my email address.
6348
bcb28afc
PM
63492011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6350
6351 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6352 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6353 function call if __STDC_ISO_10646__ macro is defined.
6354 (intermediate_encoding): New prototype.
6355 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6356 to generate compile time error for unsupported gdb_wchar_t size.
6357 (ENDIAN_SUFFIX): New macro.
6358 (intermediate_encoding): New function.
6359
7b08b9eb
JK
63602011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6361
6362 * ada-lang.c (struct add_partial_datum): Update the comment for
6363 expand_partial_symbol_name.
6364 (ada_add_partial_symbol_completions): Rename to ...
6365 (ada_expand_partial_symbol_name): ... here, change return type, update
6366 function comment, call symbol_completion_match instead of
6367 symbol_completion_add.
6368 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6369 and ada_expand_partial_symbol_name.
6370 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6371 FILE_MATCHER.
6372 (dw2_map_symbol_names): Remove.
6373 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6374 * psymtab.c (map_symbol_names_psymtab): Remove.
6375 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6376 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6377 order.
6378 (psym_functions): Unlist map_symbol_names_psymtab.
6379 (map_partial_symbol_names): Rename to ...
6380 (expand_partial_symbol_names): ... here, change the FUN type, call
6381 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6382 * psymtab.h (map_partial_symbol_names): Rename to ...
6383 (expand_partial_symbol_names): ... here, change the FUN type.
6384 * symfile.h (struct quick_symbol_functions): Update the description of
6385 expand_symtabs_matching. Remove map_symbol_names.
6386 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6387 (struct add_name_data): Update the comment for
6388 expand_partial_symbol_name.
6389 (add_partial_symbol_name): Rename to ...
6390 (expand_partial_symbol_name): ... here. Replace
6391 completion_list_add_name call by strncmp.
6392 (default_make_symbol_completion_list_break_on): Use now
6393 expand_partial_symbol_names and expand_partial_symbol_name.
6394 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6395
90476074
TT
63962011-04-20 Tom Tromey <tromey@redhat.com>
6397
6398 * dwarf2read.c (save_gdb_index_command): Replace format
6399 documentation with a pointer to the manual.
6400
c21236dc
PA
64012011-04-20 Pedro Alves <pedro@codesourcery.com>
6402
6403 * regcache.c: Include remote.h.
6404 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6405 (regcache_dump): Handle regcache_dump_remote.
6406 (maintenance_print_remote_registers): New function.
6407 (_initialize_regcache): Install "maint print remote-registers"
6408 command.
6409 * remote.c (map_regcache_remote_table): New function, factored out
6410 from ...
6411 (init_remote_state): ... here.
6412 (remote_register_number_and_offset): New.
6413 * remote.h (remote_register_number_and_offset): Declare.
6414
b78974c3
PA
64152011-04-20 Pedro Alves <pedro@codesourcery.com>
6416
6417 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6418 null_ptid, assume and allow a NULL address space, instead of
6419 asking the target for the ptid's address space.
6420 * infrun.c (ptid_is_pid): Remove assertion.
6421
7a9dd1b2
TT
64222011-04-19 Tom Tromey <tromey@redhat.com>
6423
6424 * windows-tdep.c (windows_xfer_shared_library):
6425 * windows-nat.c (get_module_name, windows_make_so):
6426 * v850-tdep.c (v850_handle_pushm):
6427 * utils.c (null_cleanup, gdb_realpath):
6428 * ui-out.c (get_next_header):
6429 * tracepoint.c (clear_traceframe_info):
6430 * symtab.c (lookup_symtab):
6431 * serial.h (struct serial_ops):
6432 * mipsread.c (read_alphacoff_dynamic_symtab):
6433 * infcmd.c (print_return_value):
6434 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6435 * f-exp.y (parse_number):
6436 * exceptions.c (catch_exceptions):
6437 * dummy-frame.c (dummy_frame_this_id):
6438 * defs.h (struct cleanup):
6439 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6440 * arm-tdep.c (arm_push_dummy_call):
6441 * amd64-tdep.h (amd64_collect_xsave):
6442 * amd64-tdep.c (amd64_collect_xsave):
6443 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6444 * README (typing): Remove duplicate words.
6445 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6446 * infrun.c (siginfo_value_read): Fix typo.
6447 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6448 * top.c (source_line_number): Add comma.
6449
9941e0c5
MK
64502011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6451
6452 * thread.c (any_live_thread_of_process): Prioritize threads
6453 that are not executing.
6454 * gdbthread.h (any_live_thread_of_process): Update comment
6455 as per above change.
6456
ed4b0e6a
AS
64572011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6458
6459 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6460 (scan_xcoff_symtab): Likewise.
6461
9b13a2db
PM
64622011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6463
6464 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6465 inside if clause.
6466
1c6e1b0d
PM
64672011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6468 Pedro Alves <pedro@codesourcery.com>
6469
6470 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6471 variables to simplify code and avoid == operator at end of
6472 line as this is against GNU coding standards.
6473
74de0234
PM
64742011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6475
6476 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6477 lm_name to name_lm to avoid conflict with lm_name function.
6478
b23518f0
PM
64792011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6480
6481 ARI fixes: Use only lowercase function name for static functions.
6482 * nto-tdep.c (LM_ADDR): Rename to...
6483 (lm_addr): New function name.
6484 (nto_relocate_section_addresses): Adapt to change above.
6485 * solib-sunos.c (LM_ADDR): Rename to...
6486 (lm_addr): New function name.
6487 (LM_NEXT): Rename to...
6488 (lm_next): New function name.
6489 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6490 function name changes above.
6491 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6492 (lm_addr_from_link_map): New function name.
6493 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6494 (has_lm_dynamic_from_link_map): New function name.
6495 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6496 (lm_dynamic_from_link_map): New function name.
6497 (LM_ADDR_CHECK): Rename to...
6498 (lm_addr_check): New function name.
6499 (LM_NEXT): Rename to...
6500 (lm_next): New function name.
6501 (LM_PREV): Rename to...
6502 (lm_prev): New function name.
6503 (LM_NAME): Rename to...
6504 (lm_name): New function name.
6505 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6506 (ignore_first_link_map_entry): New function name.
6507 (svr4_keep_data_in_core): Adapt to function name changes above.
6508 (svr4_current_sos): Likewise.
6509 (enable_break): Likewise.
6510 (svr4_relocate_section_addresses): Likewise.
6511
1448a0a2
PM
65122011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6513
6514 ARI cleanup.
6515 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6516 sprintf. Simplify code and avoid loosing memory.
6517 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6518 (call0_frame_cache): Remove && operator from end of line.
6519
02835898
JK
65202011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6521
6522 Fix libraries displacement if they change whether they were prelinked.
6523 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6524 does not match. Comment why.
6525
9a845ea2
JK
65262011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6527
6528 * corelow.c: Include wrapper.h.
6529 (core_open): Call now gdb_target_find_new_threads.
6530 * wrapper.c: Include target.h.
6531 (gdb_target_find_new_threads): New.
6532 * wrapper.h (gdb_target_find_new_threads): New declaration.
6533
254f582e
JK
65342011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6535
6536 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6537 even if !TARGET_HAS_EXECUTION.
6538
63524580
JK
65392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6542 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6543 bfd_get_synthetic_symtab.
6544 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6545 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6546 parameter parent, remove the call to add_separate_debug_objfile.
6547 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6548 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6549 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6550 parent, new comment for it, call add_separate_debug_objfile for it.
6551 (symbol_file_add_separate): Pass objfile as the parameter parent,
6552 remove the call to add_separate_debug_objfile.
6553 (symbol_file_add_from_bfd): New parameter parent, pass it.
6554 (symbol_file_add): Pass NULL to the new parameter parent.
6555 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6556
90359a16
JK
65572011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6558
6559 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6560 BSF_SYNTHETIC.
6561
626e7282
JK
65622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6563
6564 Fix Python access to inlined frames.
6565 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6566 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6567
cf31e6f9
TT
65682011-04-15 Tom Tromey <tromey@redhat.com>
6569
6570 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6571
c8d895f1
GB
65722011-04-15 Gary Benson <gbenson@redhat.com>
6573
6574 * MAINTAINERS: Add myself to write-after-approval section.
6575
56a9aa1d
MF
65762011-04-14 Mike Frysinger <vapier@gentoo.org>
6577
6578 * remote-sim.c (sim_command_completer): New function.
6579 (_initialize_remote_sim): Set completer to sim_command_completer.
6580
ba770c9c
TJB
65812011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6582
6583 * breakpoint.c (print_exception_catchpoint): Rename to ...
6584 (print_it_exception_catchpoint): ... this.
6585 (gnu_v3_exception_catchpoint_ops): Update with new name
6586 for print_it_exception_catchpoint.
6587
51bf2553
EBM
65882011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6589
6590 * MAINTAINERS: Add myself for write after approval privileges.
6591
d242658c
MP
65922011-04-13 Marek Polacek <mpolacek@redhat.com>
6593
6594 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6595
4a4106ca
TJB
65962011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6597
6598 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6599
26063d49
TJB
66002011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6601
6602 * breakpoint.c (save_breakpoints): Verify whether
6603 breakpoint_ops.print_recreate is defined before calling it.
6604
7782b183
GB
66052011-04-11 Gary Benson <gbenson@redhat.com>
6606
6607 Fix failure with --enable-maintainer-mode.
6608 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6609
e8930875
JK
66102011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6611
6612 Code cleanup.
6613 * symtab.c (search_symbols): Reorder the KIND description in the
6614 function comment. Remove the unused 4th element of types, types2,
6615 types3 and types4. New gdb_assert on KIND.
6616 (symtab_symbol_info): Remove the unused 4th element of classnames.
6617 New gdb_assert on KIND.
6618 * symtab.h (enum search_domain): New warning in the enum comment.
6619 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6620 TYPES_DOMAIN.
6621
b4f2f049
JK
66222011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6623
6624 Fix crash of gdb save-index on a STABS file.
6625 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6626 PSYMTABS_ADDRMAP.
6627
60d5a603
JK
66282011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6629
6630 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6631 * dwarf2read.c: Include ctype.h.
6632 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6633 functions.
6634 (dwarf2_add_field): Fix new_field->accessibility by calling
6635 dwarf2_default_access_attribute. Restructure setting accessibility
6636 vs. virtuality.
6637 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6638 is_private and is_protected by calling
6639 dwarf2_default_access_attribute.
6640
e0f68161
KB
66412011-04-08 Kevin Buettner <kevinb@redhat.com>
6642
6643 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6644 to the initialization.
6645
2e1aae43
SE
66462011-04-08 Steve Ellcey <sje@cup.hp.com>
6647
6648 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6649 initalization.
6650
c6ca3dab
PM
66512011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6652
6653 Remove support for old Cygwin 1.5 versions.
6654 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6655 function on old Cygwin version.
6656 * windows-nat.c: Remove cygwin version check and always define
6657 __USEWIDE for Cygwin compilation.
6658
bd18283a
YQ
66592011-04-07 Yao Qi <yao@codesourcery.com>
6660
6661 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6662 and TO.
6663 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6664 (arm_copy_svc): Remove parameters INSN and TO.
6665 (decode_svc_copro): Update caller.
6666 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6667 from function pointer `copy_svc_os'.
6668
8c8dba6d
YQ
66692011-04-07 Yao Qi <yao@codesourcery.com>
6670
6671 * arm-tdep.c (cleanup_branch): Set a correct return address in
6672 LR for ARM and Thumb.
6673
59d7bcaf
JK
66742011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6675
6676 Code cleanup.
6677 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6678 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6679 in the function comment, a new note on values compatibility.
6680 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6681 * symtab.h (SYMBOL_HASH_NEXT): New.
6682
e7db58ea
TJB
66832011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6684
6685 * ppc-linux-nat.c (check_condition): Add len output parameter.
6686 Set it based on the memory region referenced in the condition
6687 expression. Update all callers.
6688
9f743ef6
JK
66892011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6690
6691 Fix crash regression on systems featuring .gdb_index.
6692 * objfiles.c (free_objfile): Move the
6693 forget_cached_source_info_for_objfile call earlier. Comment it.
6694 Extend the comment for objfile_free_data.
6695
9182c5bc
JK
66962011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6697
6698 Fix regression of displaying the debug format.
6699 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6700 subfile.
6701
04bd08de
TT
67022011-04-04 Tom Tromey <tromey@redhat.com>
6703
6704 * cli/cli-interp.c (struct captured_execute_command_args):
6705 Remove.
6706 (do_captured_execute_command): Remove.
6707 (safe_execute_command): Use TRY_CATCH.
6708 * cli/cli-script.c (struct wrapped_read_command_file_args):
6709 Remove.
6710 (wrapped_read_command_file): Remove.
6711 (script_from_file): Use TRY_CATCH.
6712 * exceptions.c (catch_exception): Remove.
6713 * exceptions.h (catch_exception): Remove.
6714 (deprecated_throw_reason): Update comment.
6715 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6716 argument to 'context'.
6717 (mi_execute_command): Use TRY_CATCH.
6718 * remote.c (struct start_remote_args): Remove.
6719 (remote_start_remote): Update; change arguments.
6720 (remote_open_1): Use TRY_CATCH.
6721
58438ac1
TT
67222011-04-04 Tom Tromey <tromey@redhat.com>
6723
6724 * tracepoint.c (scope_info): Update.
6725 * symtab.c (decode_line_spec): Update.
6726 * python/python.c (gdbpy_decode_line): Update.
6727 * linespec.h (decode_line_1): Update.
6728 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6729 (decode_compound, find_method, symtab_from_filename)
6730 (decode_variable): Likewise.
6731 * cli/cli-cmds.c (edit_command): Update.
6732 (list_command): Update.
6733 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6734 argument.
6735 (create_breakpoint): Update.
6736 (until_break_command): Update.
6737 (addr_string_to_sals): Update.
6738 (decode_line_spec_1): Update.
6739
b78a6381
TT
67402011-04-04 Tom Tromey <tromey@redhat.com>
6741
6742 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6743 (do_captured_parse_breakpoint): Remove.
6744 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6745 Use TRY_CATCH directly.
6746
00174a86
TT
67472011-04-04 Tom Tromey <tromey@redhat.com>
6748
6749 * symtab.h (free_symtab): Remove.
6750 (forget_cached_source_info_for_objfile): Declare.
6751 * symmisc.c (free_symtab): Remove.
6752 * source.c (forget_cached_source_info_for_objfile): New function.
6753 (forget_cached_source_info): Use it.
6754 * objfiles.c (free_objfile): Simplify check before calling
6755 clear_current_source_symtab_and_line. Call
6756 forget_cached_source_info_for_objfile.
6757
30cc903e
TT
67582011-04-04 Tom Tromey <tromey@redhat.com>
6759
6760 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6761 (new_symtab): Don't set `free_code' on symtab.
6762 (new_linetable): Properly handle size==0.
6763 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6764 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6765 free_func.
6766 * jv-lang.c (struct jv_per_objfile_data): New.
6767 (jv_per_objfile_free): Free the data.
6768 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6769 (get_java_class_symtab): Set the `dict' field on the
6770 jv_per_objfile_data.
6771 (free_class_block): Remove.
6772 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6773 the symtab.
6774
0c2e6019
TT
67752011-04-04 Tom Tromey <tromey@redhat.com>
6776
6777 * symfile.c (reread_symbols): Update.
6778 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6779 field.
6780 * objfiles.c (allocate_objfile): Update.
6781 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6782 declare.
6783 * cp-namespace.c (lookup_symbol_file): Don't call
6784 lookup_possible_namespace_symbol.
6785 (initialize_namespace_symtab, get_possible_namespace_block)
6786 (free_namespace_block, cp_check_possible_namespace_symbols)
6787 (check_possible_namespace_symbols_loop)
6788 (check_one_possible_namespace_symbol)
6789 (lookup_possible_namespace_symbol): Remove.
6790 (maintenance_cplus_namespace): Replace with notice.
6791 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6792
554d387d
TT
67932011-04-04 Tom Tromey <tromey@redhat.com>
6794
6795 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6796 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6797 * symmisc.c (free_symtab): Don't free debugformat.
6798 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6799 (record_debugformat, record_producer): Document.
6800 * buildsym.c (end_symtab): Don't save debugformat and producer
6801 names on obstack.
6802 (end_symtab): Don't free debugformat and producer fields.
6803 (record_debugformat): Don't call xstrdup.
6804 (record_producer): Likewise.
6805
d4d4db8a
TT
68062011-04-04 Tom Tromey <tromey@redhat.com>
6807
6808 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6809 (source_line_charpos, source_charpos_line): Remove.
6810
8903c50d
TT
68112011-04-04 Tom Tromey <tromey@redhat.com>
6812
6813 * symtab.h (domain_enum): Split in two...
6814 (enum search_domain): New.
6815 (search_symbols): Update.
6816 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6817 redundant declarations.
6818 (search_symbols): Change 'kind' argument to search_domain.
6819 Update.
6820 (print_symbol_info): Likewise.
6821 (symtab_symbol_info): Likewise.
6822 * symfile.h (struct quick_symbol_functions)
6823 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6824 <expand_symtabs_matching>: Likewise.
6825 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6826 (expand_symtabs_matching_via_partial): Update.
6827 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6828 (dw2_expand_symtabs_for_function): Update.
6829 * block.h: Moved anonymous enum...
6830 * defs.h (enum block_enum): ... here. Now named.
6831
d9351f5f 68322011-04-03 Joel Brobecker <brobecker@adacore.com>
6833
6834 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6835 * version.in: Bump version to 7.3.50.20110403-cvs.
6836
d6e00af6
JB
68372011-04-03 Joel Brobecker <brobecker@adacore.com>
6838
6839 * NEWS: Create a new section for the next release branch.
6840 Rename the section of the current branch, now that it has
6841 been cut.
6842
2b9e5ea6
UW
68432011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6844
6845 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6846 for "fpscr" in target description.
6847
0cf03b49
JK
68482011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6849
6850 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6851 initialize it. Delay HASH initialization. Strip the part after open
6852 parenthesis for languages with qualifiers. Call do_cleanups.
6853
5d901a73
TT
68542011-04-01 Tom Tromey <tromey@redhat.com>
6855
6856 * utils.c (report_command_stats): Don't print `-' for negative
6857 number.
6858
b0dd7688
JB
68592011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6860
6861 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6862 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6863 typedefs.
6864
956a9fb9
JB
68652011-04-01 Joel Brobecker <brobecker@adacore.com>
6866
6867 * breakpoint.h (bpdisp_text): Add declaration.
6868 * breakpoint.c (bpdisp_text): Make non-static.
6869 * ada-lang.c: #include "mi/mi-common.h".
6870 (print_it_exception): Rewrite to improve GDB/MI output.
6871
3352110b
PA
68722011-04-01 Pedro Alves <pedro@codesourcery.com>
6873
6874 * arm-tdep.h (struct address_space): Add forward declaration.
6875
18819fa6
UW
68762011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6877
6878 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6879 * arm-tdep.c (arm_override_mode): New global.
6880 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6881 execution mode heuristics.
6882 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6883 second single-step breakpoint if needed, using
6884 arm_insert_single_step_breakpoint.
6885 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6886 ARM execution mode, do not call thumb_get_next_pc_raw.
6887 (arm_get_next_pc): Encode execution mode in return value. Call
6888 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6889 (arm_insert_single_step_breakpoint): New function.
6890 (arm_software_single_step): Call it.
6891 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6892 argument to return execution mode of sigreturn target.
6893 (arm_linux_syscall_next_pc): Use it.
6894 (arm_linux_copy_svc): Update call.
6895 (arm_linux_software_single_step): Call
6896 arm_insert_single_step_breakpoint.
6897
a6e293d1
JK
68982011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6899
6900 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6901 the comment.
6902
a4c8e806
TT
69032011-03-31 Tom Tromey <tromey@redhat.com>
6904
6905 * varobj.c (update_dynamic_varobj_children): Properly handle
6906 errors from iterator.
6907
df5c6c50
JK
69082011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6909
6910 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6911 struct linkage name twice.
6912
1dae3efc
TT
69132011-03-31 Tom Tromey <tromey@redhat.com>
6914
6915 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6916 missing ">" to message.
6917
f4f7ab05
TT
69182011-03-31 Tom Tromey <tromey@redhat.com>
6919
6920 * varobj.c (instantiate_pretty_printer): Remove duplicate
6921 'return'.
6922
fcf250e2
UW
69232011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6924
6925 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6926 if neither saved value nor register available (e.g. signal frame).
6927
ee6436e3
TJB
69282011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6929
6930 * macroexp.c (expand): Avoid uninitialized variable
6931 compiler warning.
6932
423f41a5
TJB
69332011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6934
6935 * breakpoint.c (break_range_command): Fix typo in comment.
6936
f1310107
TJB
69372011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6938 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6939
6940 Implement support for PowerPC BookE ranged breakpoints.
6941 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6942 * breakpoint.h (struct bp_target_info) <length>: New member
6943 variable.
6944 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6945 instead of struct breakpoint as argument, and also add ASPACE
6946 and BP_ADDR arguments. Update all callers.
6947 (struct breakpoint_ops) <print_one_detail>: New method.
6948 (struct breakpoint) <addr_string_range_end>: New member variable.
6949 * breakpoint.c (breakpoint_location_address_match): Add function
6950 prototype.
6951 (insert_bp_location): Set bl->target_info.length.
6952 (breakpoint_here_p): Call breakpoint_location_address_match.
6953 (moribund_breakpoint_here_p): Likewise.
6954 (regular_breakpoint_inserted_here_p): Likewise.
6955 (breakpoint_thread_match): Likewise.
6956 (bpstat_stop_status): Likewise.
6957 (bpstat_check_location): Move call to
6958 breakpoint_ops.breakpoint_hit to the top.
6959 (print_one_breakpoint_location): Call
6960 breakpoint_ops.print_one_detail if available.
6961 (breakpoint_address_match_range): New function.
6962 (breakpoint_location_address_match): Likewise.
6963 (breakpoint_locations_match): Compare the length field of the
6964 locations too.
6965 (hw_breakpoint_used_count): Count resources used by all locations
6966 in a breakpoint, and use breakpoint_ops.resources_needed if
6967 available.
6968 (breakpoint_hit_ranged_breakpoint): New function.
6969 (resources_needed_ranged_breakpoint): Likewise.
6970 (print_it_ranged_breakpoint): Likewise.
6971 (print_one_ranged_breakpoint): Likewise.
6972 (print_one_detail_ranged_breakpoint): Likewise.
6973 (print_mention_ranged_breakpoint): Likewise.
6974 (print_recreate_ranged_breakpoint): Likewise.
6975 (ranged_breakpoint_ops): New structure.
6976 (find_breakpoint_range_end): New function.
6977 (break_range_command): Likewise.
6978 (delete_breakpoint): Free addr_string_range_end.
6979 (update_breakpoint_locations): Add SALS_END argument. Update
6980 all callers. Calculate breakpoint length if a non-zero SALS_END
6981 is given. Call breakpoint_locations_match instead of
6982 breakpoint_address_match.
6983 (reset_breakpoint): Find SaL of the end of the range if B is a
6984 ranged breakpoint.
6985 (_initialize_breakpoint): Register break-range command.
6986 * defs.h (print_core_address): Add function prototype.
6987 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6988 function.
6989 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6990 (ppc_linux_remove_hw_breakpoint): Likewise.
6991 (_initialize_ppc_linux_nat): Initialize
6992 to_ranged_break_num_registers.
6993 * target.c (update_current_target): Add comment about
6994 to_ranged_break_num_registers.
6995 (target_ranged_break_num_registers): New function.
6996 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6997 New method.
6998 (target_ranged_break_num_registers): Add function prototype.
6999 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7000 * utils.c (print_core_address): ... here.
7001
02d20e4a
UW
70022011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7003
7004 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7005 variable compiler warning.
7006
ef23e705
TJB
70072011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7008
7009 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7010 code from here ...
7011 (re_set_breakpoint): ... to here ...
7012 (addr_string_to_sals): ... and here.
7013
311e6ab3
PM
70142011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7015
7016 * Makefile.in (SFILES): Add missing C sources.
7017 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7018 Add missing headers.
7019
acd1d99c
MF
70202011-03-29 Mike Frysinger <vapier@gentoo.org>
7021
7022 * .gitignore: New file.
7023
66ee2731
MF
70242011-03-29 Mike Frysinger <vapier@gentoo.org>
7025
7026 * NEWS: Mention new cfi device simulation.
7027
53832f31
TT
70282011-03-29 Tom Tromey <tromey@redhat.com>
7029
7030 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7031 otherwise anonymous types.
7032 (dwarf2_name): Likewise.
7033 * valops.c (value_struct_elt_for_reference): Refine artificial
7034 type logic. Call error if j==-1.
7035
09b58708
JK
70362011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7037
7038 Fix false GCC warning.
7039 * infcall.c (find_function_addr): Initialize funaddr.
7040
6023c606
PM
70412011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7042
7043 Fix mingw compilation with --enable-targets=all.
7044 * remote-mips.c (gdb_usleep.h): Include header.
7045 (mips_enter_debug): Use gdb_usleep instead of sleep.
7046
0e30163f
JK
70472011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7048
7049 Support resolution of STT_GNU_IFUNC via breakpoints.
7050 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7051 bp_gnu_ifunc_resolver_return.
7052 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7053 the loop. Support bp_gnu_ifunc_resolver and
7054 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7055 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7056 breakpoints.
7057 (bptype_string, print_one_breakpoint_location): Support
7058 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7059 (user_settable_breakpoint): Return true also for
7060 bp_gnu_ifunc_resolver.
7061 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7062 bp_gnu_ifunc_resolver_return.
7063 (set_breakpoint_location_function): New parameter explicit_loc,
7064 describe it. Call find_pc_partial_function_gnu_ifunc with new
7065 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7066 EXPLICIT_LOC is not set.
7067 (set_raw_breakpoint): Set EXPLICIT_LOC for
7068 set_breakpoint_location_function.
7069 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7070 set_breakpoint_location_function.
7071 (mention): Support bp_gnu_ifunc_resolver and
7072 bp_gnu_ifunc_resolver_return.
7073 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7074 set_breakpoint_location_function.
7075 (update_breakpoint_locations): Remove static.
7076 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7077 bp_gnu_ifunc_resolver_return.
7078 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7079 bp_gnu_ifunc_resolver_return.
7080 (update_breakpoint_locations): New declaration.
7081 * elfread.c: Include gdbthread.h and regcache.h.
7082 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7083 functions.
7084 (elf_gnu_ifunc_fns): Install them.
7085 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7086 (stub_gnu_ifunc_resolver_return_stop): New functions.
7087 (stub_gnu_ifunc_fns): Install them.
7088 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7089 and gnu_ifunc_resolver_return_stop.
7090 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7091
07be84bf
JK
70922011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7093
7094 STT_GNU_IFUNC reader implementation.
7095 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7096 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7097 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7098 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7099 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7100 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7101 (elf_gnu_ifunc_resolve_addr): New.
7102 (elf_symfile_read): Call elf_rel_plt_read.
7103 (elf_gnu_ifunc_fns): New.
7104 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7105 Install elf_gnu_ifunc_fns.
7106 * infcall.c (find_function_return_type): New function.
7107 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7108 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7109 (stub_gnu_ifunc_resolve_name): New functions.
7110 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7111 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7112 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7113
300f8e10
JK
71142011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 Code cleanup for later STT_GNU_IFUNC support.
7117 * infcall.c (find_function_addr): Remove variable code, use explicit
7118 dereferences for it. Move VALUE_TYPE initialization later.
7119
11c81455
JK
71202011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7121
7122 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7123 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7124 (clear_pc_function_cache): Clear it.
7125 (find_pc_partial_function): Rename to ...
7126 (find_pc_partial_function_gnu_ifunc): ... this function. New
7127 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7128 (find_pc_partial_function): New wrapper for this function.
7129 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7130
0875794a
JK
71312011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7132
7133 GDB internal type support for STT_GNU_IFUNC.
7134 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7135 (elf_symtab_read): Set mst_text_gnu_ifunc for
7136 BSF_GNU_INDIRECT_FUNCTION.
7137 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7138 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7139 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7140 nodebug_got_plt_symbol.
7141 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7142 (TYPE_GNU_IFUNC): New.
7143 (struct main_type): New field flag_gnu_ifunc.
7144 (struct builtin_type): New field builtin_func_func.
7145 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7146 nodebug_got_plt_symbol.
7147 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7148 (in_gnu_ifunc_stub): New.
7149 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7150 mst_text_gnu_ifunc.
7151 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7152 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7153 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7154 in_gnu_ifunc_stub.
7155 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7156 * symtab.c (search_symbols): Likewise.
7157 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7158 and mst_slot_got_plt.
7159 (in_gnu_ifunc_stub): New declaration.
7160
d0fb5eae
JK
71612011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7162
7163 Support a ring of related breakpoints.
7164 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7165 other functions, add gdb_assert.
7166 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7167 watchpoint_del_at_next_stop.
7168 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7169 (bpstat_stop_status): Handle ring in related_breakpoint.
7170 (set_raw_breakpoint_without_location): Initialize ring in
7171 related_breakpoint.
7172 (delete_breakpoint): Handle ring in related_breakpoint, use
7173 watchpoint_del_at_next_stop.
7174 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7175
9cded63f
TT
71762011-03-28 Tom Tromey <tromey@redhat.com>
7177
7178 PR symtab/12441:
7179 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7180 with `language_minimal'.
7181
467d42c4
UW
71822011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7183
7184 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7185 instead of checking for STT_ARM_TFUNC symbol type.
7186
62853458
TT
71872011-03-25 Tom Tromey <tromey@redhat.com>
7188
7189 * linespec.c (symbol_found): Restore line-based result for
7190 non-LOC_LABEL symbols.
7191
a7417d46
KT
71922011-03-25 Kai Tietz <ktietz@redhat.com>
7193
7194 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7195 instead of strcmp for comparison.
7196 (tui_source_is_displayed): Likewise.
7197 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7198
55f1336d
TT
71992011-03-24 Mark Wielaard <mjw@redhat.com>
7200
f33edef8
PP
7201 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7202 complaint.
7203 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7204 (find_partial_die_in_comp_unit): Likewise in comment.
7205 (read_attribute_value): Likewise.
7206 (lookup_die_type): Likewise.
7207 (dwarf_form_name): Likewise.
7208 (dump_die_shallow): Likewise.
7209 (follow_die_ref_or_sig): Likewise.
55f1336d 7210
9ef07c8c
TT
72112011-03-24 Tom Tromey <tromey@redhat.com>
7212
7213 PR breakpoints/11816:
7214 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7215 (decode_compound): Update.
7216 (find_function_symbol): New function.
7217 (decode_dollar): Update.
7218 (decode_label): Add 'function_symbol' parameter. Handle
7219 function-relative labels.
7220 (decode_variable): Update.
7221 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7222 not its line. Set `special_display' and canonical name for
7223 labels.
7224
56435ebe
TT
72252011-03-24 Tom Tromey <tromey@redhat.com>
7226
7227 * linespec.h (struct linespec_result) <special_display>: New
7228 field.
7229 * breakpoint.h (struct breakpoint) <display_canonical>: New
7230 field.
7231 * breakpoint.c (print_breakpoint_location): Respect
7232 display_canonical.
7233 (create_breakpoint_sal): Add 'display_canonical' parameter.
7234 (create_breakpoints_sal): Update.
7235 (create_breakpoint): Update.
7236
7efd8fc2
TT
72372011-03-24 Tom Tromey <tromey@redhat.com>
7238
7239 * symtab.c (decode_line_spec): Update.
7240 * linespec.c (build_canonical_line_spec): Change type of
7241 'canonical'.
7242 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7243 (find_method, decode_all_digits, decode_dollar, decode_label)
7244 (symbol_found): Likewise.
7245 (init_linespec_result): New function.
7246 * breakpoint.c (struct captured_parse_breakpoint_args)
7247 <canonical_p>: New field, replaces addr_string_p.
7248 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7249 'addr_string'.
7250 (parse_breakpoint_sals): Likewise.
7251 (do_captured_parse_breakpoint): Update.
7252 (create_breakpoint): Use struct linespec_result.
7253 (until_break_command): Update.
7254 (breakpoint_re_set_one): Update.
7255 (decode_line_spec_1): Update.
7256 * linespec.h (struct linespec_result): New.
7257 (init_linespec_result): Declare.
7258
788c8b10
PA
72592011-03-23 Pedro Alves <pedro@codesourcery.com>
7260
7261 * regcache.c (regcache_raw_read): If the target didn't supply a
7262 given raw register, mark it as unavailable.
7263
0ba1096a
KT
72642011-03-23 Kai Tietz <ktietz@redhat.com>
7265
7266 * breakpoint.c (clear_command): Use filename_cmp
7267 instead of strcmp for comparison.
7268 * buildsym.c (watch_main_source_file_lossage): Likewise.
7269 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7270 checking just for slash.
7271 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7272 strrchr and filename_cmp instead of strcmp for filenames.
7273 (add_old_header_file): Use filename_cmp
7274 instead of strcmp for comparison.
7275 * exec.c (exec_set_section_address): Likewise.
7276 * macrotab.c (macro_lookup_inclusion): Likewise.
7277 (macro_lookup_inclusion): Likewise.
7278 * elfread.c (_initialize_elfread): Likewise.
7279 (elfstab_offset_sections): Likewise.
7280 (elfstab_offset_sections): Use lbasename instead of
7281 strrchr.
7282 * mdebugread.c (parse_partial_symbols): Likewise.
7283 (arse_partial_symbols): Use filename_(n)cmp instead of
7284 str(n)cmp for comparison.
7285 * minsyms.c (lookup_minimal_symbol): Likewise.
7286 * psymtab.c (read_psymtabs_with_filename): Likewise.
7287 * solib.c (solib_read_symbols): Likewise.
7288 (reload_shared_libraries_1): Likewise.
7289 * symmisc.c (maintenance_print_symbols): Likewise.
7290 * symfile.c (separate_debug_file_exists): Likewise.
7291 (reread_symbols): Likewise.
7292 (find_separate_debug_file_by_debuglink): Likewise.
7293 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7294 * source.c (add_path): Likewise.
7295 * symtab.c (filename_seen): Likewise.
7296 (file_matches): Likewise.
7297 (print_symbol_info): Likewise.
7298 (maybe_add_partial_symtab_filename): Likewise.
7299 (make_source_files_completion_list): Likewise.
7300 * xml-syscall.c (init_sysinfo): Likewise.
7301 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7302 IS_DIR_SEPARATOR for checking for trailing path separator.
7303
dd90784c
JK
73042011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7305
7306 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7307 label abort_expression.
7308 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7309 DWARF_VALUE_OPTIMIZED_OUT.
7310
3167638f
JK
73112011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7312
7313 Code cleanup.
7314 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7315 to linkage_name. Invert its value. Update the function comment.
7316 (c_type_print_varspec_suffix): Invert it at the caller.
7317 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7318
ce406537
PA
73192011-03-22 Pedro Alves <pedro@codesourcery.com>
7320
7321 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7322 errors when reading the `stop_pc'.
7323 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7324 get_frame_pc.
7325
da5d4055
PM
73262011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7327
7328 * NEWS: Document gdb.Write stream keyword.
7329
29e0eb9c
JK
73302011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7331
7332 Revert:
7333 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
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
05775840
PM
73382011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7339
f33edef8 7340 PR python/12183
05775840
PM
7341
7342 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7343 other error classes. Do not print stack trace.
7344
a0cb7835
JK
73452011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7348 (dwarf2_add_field): Fix new_field->accessibility for
7349 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7350
d19f7eee
UW
73512011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7352
7353 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7354 encountering a load via a non-SP register.
7355
4a2fbb50
UW
73562011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7357
7358 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7359 field in returned unwinder.
7360
3489610d
JB
73612012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7362
7363 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7364
8c1a34e7
JB
73652012-03-21 Joel Brobecker <brobecker@adacore.com>
7366
7367 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7368 of xmalloc.
7369
8fbca658
PA
73702012-03-18 Pedro Alves <pedro@codesourcery.com>
7371
7372 * frame.c (frame_unwind_register): Throw an error if unwinding the
7373 register failed.
7374 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7375 an unwind stop reason.
7376 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7377 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7378 UNWIND_UNAVAILABLE>: New.
7379 * inline-frame.c (inline_frame_unwind): Install
7380 default_frame_unwind_stop_reason.
7381 * frame-unwind.c: Include "exceptions.h".
7382 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7383 (default_frame_unwind_stop_reason): New.
7384 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7385 (default_frame_unwind_stop_reason): Declare.
7386 (struct frame_unwind) <stop_reason>: New function pointer.
7387
7388 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7389 * dwarf2-frame.c: Include exceptions.h.
7390 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7391 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7392 computing the CFA. If such an error was thrown, set
7393 unavailable_retaddr.
7394 (dwarf2_frame_unwind_stop_reason): New.
7395 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7396 unavailable.
7397 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7398 (dwarf2_signal_frame_unwind): Ditto.
7399
7400 * amd64-tdep.c: Include "exceptions.h".
7401 (struct amd64_frame_cache): New field "base_p".
7402 (amd64_init_frame_cache): Clear it.
7403 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7404 Avoid reading registers with functions that throw if the register
7405 is not necessary to compute the frame base.
7406 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7407 swallowing NOT_AVAILABLE_ERROR.
7408 (amd64_frame_unwind_stop_reason): New.
7409 (amd64_frame_this_id): Don't build a frame id if the frame base
7410 was unavailable.
7411 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7412 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7413 base_p if the frame base was computable.
7414 (amd64_sigtramp_frame_unwind_stop_reason): New.
7415 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7416 frame base was unavailable.
7417 (amd64_sigtramp_frame_unwind): Install
7418 amd64_sigtramp_frame_unwind_stop_reason.
7419 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7420 base_p if the frame base was computable.
7421 (amd64_epilogue_frame_unwind_stop_reason): New.
7422 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7423 frame base was unavailable.
7424 (amd64_epilogue_frame_unwind): Install
7425 amd64_epilogue_frame_unwind_stop_reason.
7426 * i386-tdep.c: Include "exceptions.h".
7427 (struct i386_frame_cache): New field "base_p".
7428 (i386_init_frame_cache): Clear it.
7429 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7430 Avoid reading registers with functions that throw if the register
7431 is not necessary to compute the frame base.
7432 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7433 swallowing NOT_AVAILABLE_ERROR.
7434 (i386_frame_unwind_stop_reason): New.
7435 (i386_frame_this_id): Don't build a frame id if the frame base was
7436 unavailable.
7437 (i386_frame_prev_register): Handle unavailable SP.
7438 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7439 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7440 base_p if the frame base was computable.
7441 (i386_epilogue_frame_unwind_stop_reason): New.
7442 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7443 base was unavailable.
7444 (i386_epilogue_frame_unwind): Install
7445 i386_epilogue_frame_unwind_stop_reason.
7446 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7447 base_p if the frame base was computable.
7448 (i386_sigtramp_frame_unwind_stop_reason): New.
7449 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7450 base was unavailable.
7451 (i386_sigtramp_frame_unwind): Install
7452 i386_sigtramp_frame_unwind_stop_reason.
7453 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7454 type's size, not the register's.
7455 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7456
7457 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7458 default_frame_unwind_stop_reason.
7459 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7460 (alpha_heuristic_frame_unwind): Ditto.
7461 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7462 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7463 * avr-tdep.c (avr_frame_unwind): Ditto.
7464 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7465 Ditto.
7466 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7467 * frv-tdep.c (frv_frame_unwind): Ditto.
7468 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7469 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7470 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7471 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7472 (hppa_stub_frame_unwind): Ditto.
7473 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7474 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7475 (ia64_libunwind_frame_unwind)
7476 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7477 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7478 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7479 * m32c-tdep.c (m32c_unwind): Ditto.
7480 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7481 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7482 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7483 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7484 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7485 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7486 * mep-tdep.c (mep_frame_unwind): Ditto.
7487 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7488 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7489 (mips_stub_frame_unwind): Ditto.
7490 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7491 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7492 * mt-tdep.c (mt_frame_unwind): Ditto.
7493 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7494 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7495 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7496 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7497 (s390_sigtramp_frame_unwind): Ditto.
7498 * score-tdep.c (score_prologue_unwind): Ditto.
7499 * sh-tdep.c (sh_frame_unwind): Ditto.
7500 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7501 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7502 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7503 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7504 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7505 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7506 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7507 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7508 (sparc64obsd_trapframe_unwind): Ditto.
7509 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7510 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7511 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7512 * v850-tdep.c (v850_frame_unwind): Ditto.
7513 * vax-tdep.c (vax_frame_unwind): Ditto.
7514 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7515 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7516 * xtensa-tdep.c (xtensa_unwind): Ditto.
7517
f23d1b92
PA
75182011-03-18 Pedro Alves <pedro@codesourcery.com>
7519
7520 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7521 there's always a frame. Use get_frame_pc_if_available instead of
7522 get_frame_pc, and if there's no PC available, don't look up a
7523 symtab.
7524
1d4f5741
PA
75252011-03-18 Pedro Alves <pedro@codesourcery.com>
7526
7527 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7528 unavailable PC.
7529
dba09041
PA
75302011-03-18 Pedro Alves <pedro@codesourcery.com>
7531
7532 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7533 gracefully.
7534
9a26e44c
PA
75352011-03-18 Pedro Alves <pedro@codesourcery.com>
7536
7537 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7538 * frame.c (frame_unwind_caller_pc_if_available): New.
7539 * stack.c (frame_info): Handle unavailable PC.
7540
75412011-03-18 Pedro Alves <pedro@codesourcery.com>
7542
7543 * frame.c (frame_unwind_pc): Rename to ...
7544 (frame_unwind_pc_if_available): ... this. New `pc' output
7545 parameter. Change return type to int. Gracefully handle
7546 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7547 happened, or 1 otherwise.
7548 (frame_unwind_pc): Reimplement on top of
7549 frame_unwind_pc_if_available.
7550 (get_frame_func): Rename to ...
7551 (get_frame_func_if_available): New `pc' output parameter. Change
7552 return type to int. Gracefully handle the PC not being available.
7553 (get_frame_func): Reimplement on top of
7554 get_frame_func_if_available.
7555 (select_frame): Handle the PC being unavailable.
7556 (get_prev_frame): Handle the PC being unavailable.
7557 (get_frame_pc_if_available): New.
7558 (get_frame_address_in_block_if_available): New.
7559 (find_frame_sal): Handle the frame PC not being available.
7560 * frame.h (get_frame_pc_if_available): Declare.
7561 (get_frame_address_in_block_if_available): Declare.
7562 (get_frame_func_if_available): Declare.
7563 * stack.c (print_frame_info): Handle the PC being unavailable.
7564 (find_frame_funname): Ditto.
7565 (print_frame): Handle the PC being unavailable.
7566 (get_frame_language): Ditto.
7567 * blockframe.c (get_frame_block): Ditto.
7568 * macroscope.c (default_macro_scope): Ditto.
7569 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7570
75712011-03-18 Pedro Alves <pedro@codesourcery.com>
7572
7573 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7574 NOT_AVAILABLE_ERROR when evaluating the location expression.
7575
75762011-03-18 Pedro Alves <pedro@codesourcery.com>
7577
7578 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7579 returning that the register piece is unavailable/optimized out.
7580 (write_pieced_value): Handle get_frame_register_bytes returning
7581 that the register piece is unavailable/optimized out when doing a
7582 read-modify write of a bitfield.
7583 * findvar.c (value_from_register): Handle get_frame_register_bytes
7584 returning that the register piece is unavailable/optimized out.
7585 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7586 and `unavailablep'. Throw error on bad debug info. Use
7587 frame_register instead of frame_register_read, to fill in the new
7588 arguments.
7589 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7590 and `unavailablep'.
7591 * valops.c: (value_assign): Adjust, and handle
7592 get_frame_register_bytes failing.
7593 * spu-tdep.c: Include exceptions.h.
7594 (spu_software_single_step): Adjust, and handle
7595 get_frame_register_bytes failing.
7596 (spu_get_longjmp_target): Ditto.
7597 * gdbarch.sh (register_to_value): Change to return int. New
7598 parameters `optimizedp' and `unavailablep'.
7599 * gdbarch.h, gdbarch.c: Regenerate.
7600 * i386-tdep.c (i386_register_to_value): Adjust to new
7601 gdbarch_register_to_value interface.
7602 * i387-tdep.c (i387_register_to_value): Ditto.
7603 * i387-tdep.h (i387_register_to_value): Ditto.
7604 * alpha-tdep.c (alpha_register_to_value): Ditto.
7605 * ia64-tdep.c (ia64_register_to_value): Ditto.
7606 * m68k-tdep.c (m68k_register_to_value): Ditto.
7607 * mips-tdep.c (mips_register_to_value): Ditto.
7608 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7609
0fdb4f18
PA
76102011-03-18 Pedro Alves <pedro@codesourcery.com>
7611
7612 * findvar.c (value_of_register): Mark the value as unavailable, if
7613 the register is unavailable.
7614 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7615 (frame_register): New `unavailablep' parameter.
7616 (frame_register_read): Update comment.
7617 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7618 Set it if the register is unavailable. If the register is
7619 unavailable, clear the output buffer.
7620 (frame_register): New `unavailablep' parameter. Pass it down.
7621 (frame_unwind_register): Adjust.
7622 (put_frame_register): Adjust.
7623 (frame_register_read): Adjust. Also return false if the register
7624 is not available.
7625 (frame_register_unwind_location): Adjust.
7626 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7627 is unavailable, mark the value accordingly.
7628 * stack.c (frame_info): Handle unavailable registers.
7629
e69aa73e
PA
76302011-03-18 Pedro Alves <pedro@codesourcery.com>
7631
7632 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7633 simplify, using regcache_cooked_read.
7634
05d1431c
PA
76352011-03-18 Pedro Alves <pedro@codesourcery.com>
7636
7637 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7638 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7639 (regcache_raw_read_unsigned, regcache_raw_read_part)
7640 (regcache_cooked_read, regcache_cooked_read_signed)
7641 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7642 (regcache_cooked_read_ftype): Change return to enum
7643 register_status.
7644 * regcache.c: Include exceptions.h
7645 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7646 (do_cooked_read): Change return to enum register_status. Always
7647 forward to regcache_cooked_read.
7648 (regcache_raw_read): Change return to enum register_status. If
7649 the register is not REG_VALID, memset the buffer. Return the
7650 register's status.
7651 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7652 return the register's status.
7653 (regcache_raw_read_unsigned): Ditto.
7654 (regcache_cooked_read): Change return to enum register_status.
7655 Assert that with read-only regcaches, the register's status must
7656 be known. If the regcache is read-only, and the register is not
7657 REG_VALID, memset the buffer. Return the register's status.
7658 (regcache_cooked_read_signed): Change return to enum
7659 register_status. Handle non-REG_VALID registers and return the
7660 register's status.
7661 (regcache_cooked_read_unsigned): Change return to enum
7662 register_status. Handle non-REG_VALID registers and return the
7663 register's status.
7664 (regcache_xfer_part, regcache_raw_read_part)
7665 (regcache_cooked_read_part): Change return to enum
7666 register_status. Return the register's status.
7667 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7668 unavailable.
7669 (regcache_dump): Handle unavailable cooked registers.
7670 * frame.c (do_frame_register_read): Adjust interface to match
7671 regcache_cooked_read_ftype.
7672 * gdbarch.sh (pseudo_register_read): Change return to enum
7673 register_status.
7674 * gdbarch.h, gdbarch.c: Regenerate.
7675
7676 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7677 register_status.
7678 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7679 register_status. If reading a raw register indicates the raw
7680 register is not valid, return the raw register's status,
7681 otherwise, return REG_VALID.
7682 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7683 register_status. Handle non-REG_VALID raw registers and return
7684 the register's status.
7685 * arm-tdep.c (arm_neon_quad_read)
7686 (arm_pseudo_read): Change return to enum register_status. Handle
7687 non-REG_VALID raw registers and return the register's status.
7688 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7689 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7690 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7691 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7692 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7693 register_status.
7694 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7695 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7696 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7697 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7698 (m32c_pseudo_register_read): Change return to enum
7699 register_status. Adjust.
7700 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7701 enum register_status. Return the register's status.
7702 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7703 register_status. Return the register's status.
7704 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7705 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7706 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7707 * rs6000-tdep.c (move_ev_register_func): New typedef.
7708 (e500_move_ev_register): Use it. Change return to enum
7709 register_status. Return the register's status.
7710 (do_regcache_raw_read): New function.
7711 (do_regcache_raw_write): New function.
7712 (e500_pseudo_register_read): Change return to enum
7713 register_status. Return the register's status. Use
7714 do_regcache_raw_read.
7715 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7716 (dfp_pseudo_register_read): Change return to enum register_status.
7717 Return the register's status.
7718 (vsx_pseudo_register_read): Ditto.
7719 (efpr_pseudo_register_read): Ditto.
7720 (rs6000_pseudo_register_read): Ditto.
7721 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7722 register_status. Return the register's status.
7723 * sh64-tdep.c (pseudo_register_read_portions): New function.
7724 (sh64_pseudo_register_read): Change return to enum
7725 register_status. Use pseudo_register_read_portions. Return the
7726 register's status.
7727 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7728 register_status. Return the register's status.
7729 * sh-tdep.c (pseudo_register_read_portions): New function.
7730 (sh_pseudo_register_read): Change return to enum register_status.
7731 Use pseudo_register_read_portions. Return the register's status.
7732 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7733 enum register_status. Return the register's status.
7734 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7735 * spu-tdep.c (spu_pseudo_register_read_spu)
7736 (spu_pseudo_register_read): Ditto.
7737 * xtensa-tdep.c (xtensa_register_read_masked)
7738 (xtensa_pseudo_register_read): Ditto.
7739 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7740
e10abd8f
PM
77412011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7742
7743 * python/py-value.c (valpy_getitem): Fix formatting of error function
7744 call.
7745
7ea6d463
PM
77462011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7747
7748 ARI fixes: Add missing internationalization markups throughout
7749 C source files.
7750 * darwin-nat-info.c: Ditto.
7751 * record.c: Ditto.
7752 * remote.c: Ditto.
7753 * mi/mi-main.c: Ditto.
7754
001083c6
PM
77552011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7756
7757 ARI fixes: Add missing internationalization markups throughout
7758 yacc files.
7759 * c-exp.y: Ditto.
7760 * cp-name-parser.y: Ditto.
7761 * f-exp.y: Ditto.
7762 * m2-exp.y: Ditto.
7763 * objc-exp.y: Ditto.
7764 * p-exp.y: Ditto.
7765
4f1cdeec
PM
77662011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7767
7768 ARI fixes: Messages should have no trailing new lines.
7769 * darwin-nat.c (mach_check_error): Remove trailing new line from
7770 warning function call message.
7771 * record.c (bfdcore_read): Idem for error call.
7772
28e698f1
PM
77732011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7774
7775 * common/signals.c (target_signal_from_host): Add _ markup to error
7776 function call message.
7777 (target_signal_to_host): Add _ markup and remove trailing new line
7778 from warning call message.
7779 (target_signal_from_command): Add _ markup to error function call
7780 message.
7781
99c3dc11
PM
77822011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7783
f33edef8 7784 PR python/12149
99c3dc11
PM
7785
7786 * python/python.c (gdbpy_write): Accept a stream argument and
7787 operate to the appropriate stream.
7788 (gdbpy_flush): Likewise.
7789 (_initialize_python): Add stream constants.
7790 (finish_python_initialization): Add GdbOutputErrorFile class.
7791
c20800be
KY
77922011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7793
7794 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7795
f4a1794a
KY
77962011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7797
7798 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7799 to store_signed_integer. Add debug message when relocating CALL
7800 instructions. Fix formatting of debug message.
7801 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7802
d4862372
JB
78032011-03-17 Joel Brobecker <brobecker@gnat.com>
7804
7805 * target.h (struct target_ops): Remove to_lookup_symbol field.
7806 (target_lookup_symbol): Delete macro.
7807 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7808 (update_current_target, setup_target_debug): Remove handling
7809 of to_lookup_symbol target_ops field.
7810 * ada-tasks.c (get_known_tasks_addr): Remove use of
7811 target_lookup_symbol.
7812 * coffread.c (coff_symtab_read): Likewise.
7813 * dbxread.c (read_dbx_symtab): Ditto.
7814
d645e32e
JB
78152011-03-17 Joel Brobecker <brobecker@gnat.com>
7816
7817 PR gdb/12116:
7818 * configure.ac: Add getthrds declaration check.
7819 * configure, config.in: Regenerate.
7820 * aix-thread.c (getthrds): Declare only if not already declared
7821 in procinfo.h. More declaration out of get_signaled_thread to
7822 global scope.
7823
29703da4
PM
78242011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7825
7826 * python/py-symtab.c: Populate symtab_object_methods,
7827 sal_object_methods.
7828 (stpy_is_valid): New function.
7829 (salpy_is_valid): Ditto.
7830 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7831 (sympy_is_valid): New function.
7832 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7833 (objfpy_is_valid): New function.
7834 * python/py-inferior.c: Populate inferior_object_methods.
7835 (infpy_is_valid): New function.
7836 * python/py-infthread.c: Populate thread_object_methods.
7837 (thpy_is_valid): New function.
7838 * python/py-block.c: Declare block_object_methods. Populate. Declare
7839 block_iterator_object_methods. Populate.
7840 (blpy_is_valid): New function.
7841 (blpy_iter_is_valid): Ditto.
7842
c00f8484
KS
78432011-03-16 Keith Seitz <keiths@redhat.com>
7844
7845 * linespec.c (find_methods): Canonicalize NAME before looking
7846 up the symbol.
7847 (name_end): New function.
7848 (keep_name_info): New function.
7849 (decode_line_1): Use keep_name_info.
7850 (decode_compound): Likewise.
7851 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7852 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7853
7854 PR c++/12273
7855 * linespec.c (locate_first_half): Keep overload information, too.
7856 (decode_compound): Use a string to represent break characters
7857 to escape the loop.
7858 If P points to a break character, do not increment it.
7859 For C++ and Java, keep overload information and relevant keywords.
7860 If we cannot find a symbol, search the minimal symbols.
7861
7862 PR c++/11734
7863 * linespec.c (decode_compound): Rename SAVED_ARG to
7864 THE_REAL_SAVED_ARG.
7865 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7866 single-quotes.
7867 Pass a valid block to lookup_symbol.
7868 (lookup_prefix_sym): Likewise.
7869 (find_method): Construct search name based on SYM_CLASS instead
7870 of SAVED_ARG.
7871 * psymtab.c (lookup_partial_symbol): Add language parameter.
7872 (lookup_symbol_aux_psymtabs): Likewise.
7873 Don't assume that the psymtab we found was the right one. Search
7874 for the desired symbol in the symtab to be certain.
7875 (psymtab_search_name): New function.
7876 (lookup_partial_symbol): Use psymtab_search_name.
7877 Add language parameter.
7878 (read_symtabs_for_function): Add language parameter and pass to
7879 lookup_partial_symbol.
7880 (find_symbol_file_from_partial): Likewise.
7881
c91513d8
PP
78822011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7883
7884 PR gdb/12528
7885 * dwarf2read.c (noop_record_line): New function.
7886 (dwarf_decode_lines): Ignore line tables for GCd functions.
7887
b37520b6
PM
78882011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7889
7890 Fix ARI warnings about new lines at the end of messages, which
7891 are unneeded as there is a new line added at the end of the message
7892 automatically.
7893 * darwin-nat.c (darwin_stop_inferior): Ditto.
7894 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7895 * dfp.c (decimal_to_number): Ditto.
7896 * exec.c (print_section_info): Ditto.
7897 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7898 * osdata.c (get_osdata): Ditto.
7899 * record.c (bfdcore_write): Ditto.
7900 * remote-mips.c (mips_readchar): Ditto.
7901 * remote.c (read_ptid): Ditto.
7902 * ser-mingw.c (ser_windows_raw): Ditto.
7903 * tracepoint.c (add_local_symbols): Ditto.
7904 * windows-nat.c (fake_create_process): Ditto.
7905
b08ee6a2
TT
79062011-03-16 Tom Tromey <tromey@redhat.com>
7907
7908 * tracepoint.c (stop_tracing): Don't declare.
7909 * event-top.c (after_char_processing_hook): Add `(void)'.
7910
9a6f1302
PM
79112011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7912
7913 * NEWS: Add Parameter sub-classing description.
7914
7ceb86b1
KT
79152011-03-16 Kai Tietz <ktietz@redhat.com>
7916
7917 * MAINTAINERS: Update my e-mail address.
7918
efeff6cf
AT
79192011-03-15 Andreas Tobler <andreast@fgznet.ch>
7920
7921 * MAINTAINERS: Add myself for write after approval privileges.
7922
681c238c
MS
79232011-03-15 Michael Snyder <msnyder@vmware.com>
7924
f3df5b08
MS
7925 * frame.c (find_frame_sal): Assert sym is not null.
7926
13f6513c
MS
7927 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7928
50412521
MS
7929 * objc-lang.c (selectors_info): Check strchr for null result.
7930
681c238c
MS
7931 * stabsread.c (define_symbol): Guard against bad stabstring input.
7932
6ced1581
PM
79332011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7934
7935 Remove trailing spaces and tabulations from pascal language
7936 support sources.
7937 p-exp.y: Ditto.
7938 p-lang.c: Ditto.
7939 p-lang.h: Ditto.
7940 p-valprint.c: Ditto.
7941
9373cf26
JK
79422011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7943
7944 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7945 than LOW. Comment it.
7946 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7947 HIGHPC not strictly higher than LOWPC.
7948
9a1edae6
PM
79492011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7950
7951 Fix formatting of function declarations returning a pointer in
7952 previous commit.
7953 * varobj.c (varobj_add_child): Ditto.
7954 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7955 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7956
24e9cda0
UW
79572011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7958
7959 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7960 for the "generic" vector ABI used with GCC 4.3 and later.
7961 (ppc64_sysv_abi_return_value): Likewise.
7962
79632011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7964
7965 * infcall.c (call_function_by_hand): Function return value is
7966 always a non_lval, even when using struct_return.
7967
c9174737
PA
79682011-03-15 Pedro Alves <pedro@codesourcery.com>
7969
7970 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7971 (map_display_numbers): New.
7972 (do_delete_display): New.
7973 (undisplay_command): Use map_display_numbers.
7974 (do_enable_disable_display): New.
7975 (enable_disable_display_command): New function.
7976 (enable_display): Delete.
7977 (enable_display_command): New.
7978 (disable_display_command): Reimplement.
7979 (_initialize_printcmd): Adjust "enable display" command to use
7980 `enable_display_command' as callback.
7981
350c6c65
PM
79822011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7983
7984 * NEWS: Add Python breakpoint 'stop' operation.
7985
824446ad
PM
79862011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7987
7988 * NEWS: Delete duplicate entry. Fix typo.
7989
2021ad3a
PM
79902011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7991
7992 Fix ARI warning about function names in first column.
7993 Put prototype declaration on same line as return type.
7994 * objc-exp.y: Ditto.
7995 * p-exp.y: Ditto.
7996 * python/py-stopevent.h: Ditto.
7997 For long function names, split parameters to
7998 allow function name on same line as return type.
7999 * solib-pa64.c: Ditto.
8000 * varobj.c: Ditto.
8001 * varobj.h: Ditto.
8002 For long function declaration, use single line.
8003 * hppa-tdep.h: Ditto.
8004 * inferior.h: Ditto.
8005
7371cf6d
PM
80062011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8007
8008 * python/python.h: Declare gdbpy_should_stop and
8009 gdbpy_breakpoint_has_py_cond.
8010 * python/python.c: Add python.h to includes. Remove python.h from
8011 HAVE_PYTHON definition
8012 (gdbpy_should_stop): New dummy function.
8013 (gdbpy_breakpoint_has_py_cond): New dummy function.
8014 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8015 sub-classing capabilities.
8016 (gdbpy_should_stop): New function.
8017 (gdbpy_breakpoint_has_py_cond): New function.
8018 (local_setattro): New function.
8019 * breakpoint.c (condition_command): Add check for Python 'stop'
8020 operation.
8021 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8022 operation function as part of stop/continue tests.
8023
37b50a69
TT
80242011-03-14 Tom Tromey <tromey@redhat.com>
8025
8026 PR gdb/12576:
8027 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8028 (needs_frame_dwarf_call): Likewise.
8029
eeae04df
PM
80302011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8031
8032 Fix ARI warning about functions without parameters that do not
8033 use (void).
8034 * breakpoint.c (all_tracepoints): Replace () by (void).
8035 * f-exp.y (match_string_literal): Ditto.
8036 (yylex): Ditto.
8037 * m2-exp.y (yylex): Ditto.
8038 * mep-tdep.c (current_me_module): Ditto.
8039 (current_options): Ditto.
8040 (current_cop_data_bus_width): Ditto.
8041 (current_cr_names): Ditto.
8042 (current_cr_is_float): Ditto.
8043 (current_ccr_names): Ditto.
8044 * objc-exp.y (yylex): Ditto.
8045 * p-exp.y (yylex): Ditto.
8046 * remote.c (send_interrupt_sequence): Ditto.
8047 * tracepoint.c (current_trace_status): Ditto.
8048 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8049 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8050
6dc3565d
MS
80512011-03-11 Michael Snyder <msnyder@vmware.com>
8052
1427fe5e
MS
8053 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8054 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8055 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8056 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8057 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8058
60bc018f
MS
8059 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8060 (delete_async_event_handler): Ditto.
8061
f3be5b64
MS
8062 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8063
4c2d5724
MS
8064 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8065
6dc3565d
MS
8066 * top.c (set_verbose): Assert showcmd was found.
8067
4e6ca6d5
MG
80682011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8069
8070 * xtensa-tdep.c (warning_once): Correct style issues.
8071
815a83e4
YQ
80722011-03-11 Yao Qi <yao@codesourcery.com>
8073
8074 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8075
f2eb0bc8
AS
80762011-03-11 Andreas Schwab <schwab@redhat.com>
8077
8078 * common/aclocal.m4: Remove.
8079
b801de47
MG
80802011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8081
8082 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8083 (xtensa_write_register, xtensa_read_register): Likewise.
8084 (xtensa_hextochar): Removed.
8085 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8086
dbab50de
MG
80872011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8088
8089 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8090 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8091 (xtensa_alloc_frame_cache): Add initialization for new fields.
8092 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8093 (warning_once): New function.
8094 (xtensa_insn_kind): New item c0opc_and.
8095 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8096 (call0_track_op): Change arguments. New local variable litbase.
8097 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8098 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8099 in the prologue.
dbab50de 8100 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8101 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8102 Add the variety of updates to handle extended prologues, which now can
8103 conduct dynamic stack adjustments.
8104 (call0_frame_cache): Likewise.
8105 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8106 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8107
b2c04452
MS
81082011-03-10 Michael Snyder <msnyder@vmware.com>
8109
f8f67713
MS
8110 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8111 (cmd_qtframe): Ditto.
8112 (cmd_qtbuffer): Ditto.
8113 (cmd_bigqtbuffer): Ditto.
8114
197f0a60
TT
81152011-03-10 Tom Tromey <tromey@redhat.com>
8116
8117 * tracepoint.c (trace_actions_command): Update.
8118 * thread.c (thread_apply_command): Update.
8119 * reverse.c (delete_bookmark_command): Update.
8120 (bookmarks_info): Update.
8121 * printcmd.c (undisplay_command): Update.
8122 * memattr.c (mem_enable_command): Update.
8123 (mem_disable_command): Update.
8124 (mem_delete_command): Update.
8125 * inferior.c (detach_inferior_command): Update.
8126 (kill_inferior_command): Update.
8127 (remove_inferior_command): Update.
8128 * cli/cli-utils.h (struct get_number_or_range_state): New.
8129 (init_number_or_range): Declare.
8130 (get_number_or_range): Update.
8131 * cli/cli-utils.c (init_number_or_range): New function.
8132 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8133 static variables.
8134 (number_is_in_list): Update.
8135 * breakpoint.h (get_tracepoint_by_number): Update.
8136 * breakpoint.c (map_breakpoint_numbers): Update for change to
8137 get_number_or_range.
8138 (find_location_by_number): Use get_number, not
8139 get_number_or_range.
8140 (trace_pass_set_count): New function.
8141 (trace_pass_command): Update for change to get_number_or_range.
8142 Rework loop logic.
8143 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8144 'state' parameter.
8145
ecec24e6
PM
81462011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8147
8148 * python/py-param.c (add_setshow_generic): Add set/show callback
8149 parameters. Register Python object context.
8150 (get_show_value): New function.
8151 (get_set_value): New function.
8152 (call_doc_function): New function.
8153 (get_doc_string): Move behind get_show_value/get_set_value.
8154
6d6c6b1f
JK
81552011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8156
8157 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8158
68d6df83
MG
81592011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8160
dbab50de 8161 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8162 (xtensa_write_register): Likewise.
8163 (xtensa_hextochar): Add comment and update to match coding conventions.
8164 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8165 (execute_l32e, execute_s32e, execute_code): Update comments.
8166 (xtensa_exception_handler_t): Update to match coding conventions.
8167 (xtensa_insn_kind): Likewise.
8168
85c9d6a6
MS
81692011-03-09 Michael Snyder <msnyder@vmware.com>
8170
8171 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8172
91495617
PA
81732011-03-09 Pedro Alves <pedro@codesourcery.com>
8174
8175 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8176
eb8c0621
TT
81772011-03-09 Tom Tromey <tromey@redhat.com>
8178
8179 * thread.c (restore_selected_frame): Handle frame_level == -1.
8180 (make_cleanup_restore_current_thread): Use
8181 get_selected_frame_if_set.
8182 * frame.h (get_selected_frame_if_set): Declare.
8183 * frame.c (get_selected_frame_if_set): New function.
8184
9f37bbcc
PA
81852011-03-09 Pedro Alves <pedro@codesourcery.com>
8186
8187 * cli/cli-cmds.c (shell_escape): Use lbasename.
8188 * coffread.c (coff_start_symtab): Constify parameter.
8189 (complete_symtab): Constify `name' parameter.
8190 (coff_symtab_read): Constify `filestring' local.
8191 (coff_getfilename): Constify return and `result' local.
8192 Use lbasename.
8193 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8194 * linux-fork.c (info_checkpoints_command): Use lbasename.
8195 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8196 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8197 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8198 * procfs.c (procfs_make_note_section): Use lbasename.
8199 * tui/tui-io.c (printable_part): Constity return and parameter.
8200 Use lbasename.
8201 (print_filename): Constify parameters, and local `s'.
8202 (tui_rl_display_match_list): Constify local `temp'.
8203
f8de3c55
JK
82042011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8205
8206 Revert:
8207 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8208 Fix DWARF-3+ DW_AT_accessibility default assumption.
8209 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8210 cu->header.version >= 3.
8211
d9837b00
YQ
82122011-03-09 Yao Qi <yao@codesourcery.com>
8213
8214 * common/Makefile.in: Remove.
8215 * common/configure: Remove.
8216 * common/configure.ac: Remove.
8217
e637a4f5
YQ
82182011-03-09 Yao Qi <yao@codesourcery.com>
8219
8220 Revert:
8221 2011-02-11 Yao Qi <yao@codesourcery.com>
8222
8223 * common/Makefile.in: Add copyright header.
8224
8225 2011-02-11 Yao Qi <yao@codesourcery.com>
8226
8227 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8228 libcommon.a.
8229 * configure.ac: Add common to sub dir.
8230 * configure: Regenerate.
8231
f976a05d
MG
82322011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8233
8234 * xtensa-tdep.c (call0_ret): New function.
8235 (xtensa_skip_prologue): Speed up analysis.
8236
57041825
MG
82372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8238
8239 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8240 while executing MI command -data-list-changed-registers.
8241
08b9c608
MG
82422011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8243
8244 * xtensa-tdep.c (xtensa_read_register): New function.
8245 (xtensa_write_register): New function.
8246 (xtensa_find_register_by_name): New function.
8247 (xtensa_windowed_frame_cache): Update comments in type description.
8248 (xtensa_frame_cache): Likewise.
8249 (xtensa_window_interrupt_insn): New function.
8250 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8251 (xtensa_insn_kind): Add new instructions.
8252 (rwx_special_register): New function.
8253 (call0_classify_opcode): Add new instructions to the analysis.
8254 (a0_saved, a7_saved, a11_saved): New variables.
8255 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8256 (execute_l32e): New function.
8257 (execute_s32e): New function.
8258 (xtensa_exception_handler_t): New type.
8259 (execute_code): New function.
8260 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8261 analysis for Xtensa Window Exception handlers.
8262
4d1acb11
MG
82632011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8264
98689b25
MG
8265 * xtensa-tdep.c (TX_PS): New.
8266 (windowing_enabled): Update to count for Call0 ABI.
8267 (xtensa_hextochar): New.
8268 (xtensa_init_reggroups): Make algorithm generic.
8269 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8270
82712011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8272
8273 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8274
d3f323f3
MS
82752011-03-08 Michael Snyder <msnyder@vmware.com>
8276
3dcabaa8
MS
8277 * i386-tdep.c (i386_follow_jump): Check return value of
8278 target_read_memory.
8279 (i386_analyze_struct_return): Ditto.
8280 (i386_skip_probe): Ditto.
8281 (i386_match_insn): Ditto.
8282 (i386_skip_noop): Ditto.
8283 (i386_analyze_frame_setup): Ditto.
8284 (i386_analyze_register_saves): Ditto.
8285 (i386_skip_prologue): Ditto.
8286 (i386_skip_main_prologue): Ditto.
8287
13b3fd9b
MS
8288 * target.c (read_whatever_is_readable): Fix memory leak.
8289
d3f323f3
MS
8290 * i386-tdep.c (i386_process_record): Document fall through.
8291
421d5c74
JK
82922011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8293
8294 Fix DWARF-3+ DW_AT_accessibility default assumption.
8295 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8296 cu->header.version >= 3.
8297
63154eca
PA
82982011-03-08 Pedro Alves <pedro@codesourcery.com>
8299
8300 * remote.c (remote_check_symbols): Skip if the target has no
8301 execution.
8302
f1a507a1
JB
83032011-03-08 Joel Brobecker <brobecker@adacore.com>
8304
8305 * target.c (read_whatever_is_readable): Reformat comment,
8306 with a minor typo fix. Minor reformatting of the code.
8307
36073a92
YQ
83082011-03-08 Yao Qi <yao@codesourcery.com>
8309
8310 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8311 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8312 Use cached result instead of calling displaced_in_arm_mode again.
8313 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8314 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8315 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8316 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8317 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8318 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8319 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8320 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8321 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8322 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8323 (arm_catch_kernel_helper_return): Likewise.
8324 * gdb/arm-tdep.h : Update function declarations.
8325
d3f323f3 83262011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8327
e0e40094
MS
8328 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8329
0b2381f5
MS
8330 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8331
0350914a
MS
8332 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8333
69feea6f
MS
8334 * elfread.c (elf_symtab_read): Stop memory leak.
8335
e6040cbd
MS
8336 * main.c (captured_main): Fix memory leak.
8337
052874e8
AS
83382011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8339
8340 * ada-lang.c (compare_names): Call is_name_suffix with string1
8341 instead of string2.
8342
b11896a5
TT
83432011-03-07 Tom Tromey <tromey@redhat.com>
8344
8345 * xcoffread.c (xcoff_sym_fns): Update.
8346 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8347 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8348 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8349 (symbol_file_add_with_addrs_or_offsets): Likewise.
8350 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8351 * somread.c (som_sym_fns): Update.
8352 * psymtab.h (require_partial_symbols): Declare.
8353 * psymtab.c (require_partial_symbols): New function.
8354 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8355 (ALL_OBJFILE_PSYMTABS): Undef.
8356 (ALL_PSYMTABS): Move from psympriv.h.
8357 (lookup_partial_symtab, find_pc_sect_psymtab)
8358 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8359 (find_last_source_symtab_from_partial)
8360 (forget_cached_source_info_partial)
8361 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8362 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8363 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8364 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8365 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8366 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8367 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8368 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8369 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8370 psymtabs.
8371 * mipsread.c (ecoff_sym_fns): Update.
8372 * machoread.c (macho_sym_fns): Update.
8373 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8374 (read_psyms): New function.
8375 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8376 (elf_sym_fns_lazy_psyms): New global.
8377 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8378 dwarf2_build_psymtabs.
8379 * dbxread.c (aout_sym_fns): Update.
8380 * coffread.c (coff_sym_fns): Update.
8381
fda326dd
TT
83822011-03-07 Tom Tromey <tromey@redhat.com>
8383
8384 * infrun.c (print_exited_reason): Include inferior id and pid in
8385 message.
8386
aeaec162
TT
83872011-03-07 Tom Tromey <tromey@redhat.com>
8388
8389 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8390 parameter.
8391 (target_has_execution_1): Update.
8392 (target_has_execution_current): Declare.
8393 (target_has_execution): Call target_has_execution_current.
8394 (default_child_has_execution): Update.
8395 * target.c (default_child_has_execution): Add 'the_ptid'
8396 parameter.
8397 (target_has_execution_1): Likewise.
8398 (target_has_execution_current): New function.
8399 (add_target): Update.
8400 (init_dummy_target): Update.
8401 * remote-m32r-sdi.c (m32r_has_execution): New function.
8402 (init_m32r_ops): Use it.
8403 * record.c (record_core_has_execution): Now static. Add
8404 'the_ptid' parameter.
8405 * inferior.c (have_live_inferiors): Don't save current thread.
8406 Use target_has_execution_1.
8407
08e14083
YQ
84082011-03-07 Yao Qi <yao@codesourcery.com>
8409
8410 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8411
c05d19c5
JB
84122011-03-07 Joel Brobecker <brobecker@adacore.com>
8413
8414 * elfread.c (elf_symtab_read): Minor reformatting.
8415
3e6ef9e4
JB
84162011-03-07 Joel Brobecker <brobecker@adacore.com>
8417
8418 * objc-lang.c (selectors_info): Minor reformatting.
8419
dbb8534f
JB
84202011-03-07 Joel Brobecker <brobecker@adacore.com>
8421
8422 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8423
dd70cc93
JB
84242011-03-07 Joel Brobecker <brobecker@adacore.com>
8425 Michael Snyder <msnyder@vmware.com>
8426
8427 * ada-valprint.c (ada_val_print_array): Move the declaration of
8428 "byte_order" and "elttype" inside the block where these variables
8429 are actually used. Remove some special handling for the case
8430 where "elttype" and "eltlen" are null. Replace by a comment
8431 and a couple of assertion checks.
8432
b27cf2b3
MS
84332011-03-05 Michael Snyder <msnyder@vmware.com>
8434
8435 * source.c (add_path): Replace semicolon at end of block.
8436 * dwarf2expr.c (execute_stack_op): Ditto.
8437
5387a0c6
MF
84382011-03-05 Mike Frysinger <vapier@gentoo.org>
8439
8440 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8441 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8442 (bfin-*-*): Likewise.
8443
e3aa49af
MS
84442011-03-05 Michael Snyder <msnyder@vmware.com>
8445
82ae4854
MS
8446 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8447 * mdebugread.c (parse_symbol): Ditto.
8448 * parse.c (parse_exp_in_context): Ditto.
8449 * source.c (add_path): Ditto.
8450 * utils.c (gnu_debuglink_crc32): Ditto.
8451 * varobj.c (variable_language): Ditto.
8452
e3aa49af
MS
8453 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8454
154f592e
MS
84552011-03-04 Michael Snyder <msnyder@vmware.com>
8456
da3ecdc6
MS
8457 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8458
9cc89665
MS
8459 * symfile.c (simple_overlay_update): Check for null return value
8460 from lookup_minimal_symbol.
8461
154f592e
MS
8462 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8463
63ffa6ee
TJB
84642011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8465
8466 * eval.c (parse_and_eval_address_1): Remove function.
8467 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8468 instead of parse_and_eval_address_1.
8469 * value.h (parse_and_eval_address_1): Remove prototype.
8470
a17d146e
MS
84712011-03-04 Michael Snyder <msnyder@vmware.com>
8472
8473 * remote.c (putpkt_binary): Document that case stmt falls through.
8474
1a6a67de
TJB
84752011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8476
8477 * breakpointc (print_it_typical): Move NULL check from here...
8478 (print_bp_stop_message): ... to here.
8479
488919c4
MS
84802011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8481
8482 * breakpoint.c (enable_command): Use break instead of continue,
8483 and fill in a missing break.
8484 (disable_command): Ditto.
8485
1e182ce8
UW
84862011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8487
8488 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8489 (terminal_save_ours): Remove misleading comment.
8490 (inflow_inferior_data_cleanup): Free ttystate.
8491 (inflow_inferior_exit): Likewise.
8492 (copy_terminal_info): Copy ttystate.
8493
8494 * serial.c (serial_copy_tty_state): New function.
8495 * serial.h (serial_copy_tty_state): Add prototype.
8496 (struct serial_ops): Add copy_tty_state callback.
8497 * ser-base.c (ser_base_copy_tty_state): New function.
8498 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8499 * ser-go32.c (dos_copy_tty_state): New function.
8500 (dos_ops): Install copy_tty_state callback.
8501 * ser-mingw.c (_initialize_ser_windows): Likewise.
8502 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8503 * ser-unix.c (hardwire_copy_tty_state): New function.
8504 (_initialize_ser_hardwire): Install it.
8505
b2c5f112
MS
85062011-03-04 Michael Snyder <msnyder@vmware.com>
8507
2abae994
MS
8508 * breakpoint.c (create_breakpoint): Add missing break statement.
8509
7f5936f9
MS
8510 Reverting this patch:
8511 * infcall.c (call_function_by_hand): Add break statements for lint.
8512
b2c5f112
MS
8513 Reverting this patch:
8514 * cli/cli-script.c (script_from_file): Add break for lint.
8515
42b1321c
MS
85162011-03-04 Michael Snyder <msnyder@vmware.com>
8517
8518 * solib.c (reload_shared_libraries_1): Close memory leak.
8519
3e2a0cee
TT
85202011-03-03 Tom Tromey <tromey@redhat.com>
8521
8522 PR gdb/12538:
8523 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8524 DW_STRING is NULL.
8525
58397cb7
MS
85262011-03-03 Michael Snyder <msnyder@vmware.com>
8527
2e3fd767
MS
8528 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8529 fields of struct 'st' to zero.
8530
58397cb7
MS
8531 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8532 sal.pspace before calling set_current_source_symtab_and_line.
8533
ced54c8f
YQ
85342011-03-03 Yao Qi <yao@codesourcery.com>
8535
8536 * Makefile.in (configure-common): Remove. Let Makefile
8537 in dir common to rebuild itself.
8538 (common/Makefile): Likewise.
8539
3351ea09
JB
85402011-03-03 Joel Brobecker <brobecker@adacore.com>
8541
8542 * utils.c (parse_escape): Add i18n markup in error message.
8543
bf9f652a
YQ
85442011-03-03 Yao Qi <yao@codesourcery.com>
8545
8546 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8547 ARM_PC_REGNUM.
8548 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8549 (displaced_write_reg, displaced_read_reg): Likewise.
8550 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8551 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8552 (cleanup_branch): Replace magic number 14 and 15 with
8553 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8554
d42de051
MS
85552011-03-02 Michael Snyder <msnyder@vmware.com>
8556
240f9570
MS
8557 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8558
10dd8b54
MS
8559 * cli/cli-script.c (script_from_file): Add break for lint.
8560
b98bd911
MS
8561 * mdebugread.c (parse_partial_symbols): Fix indent.
8562
3494b66d
MS
8563 * target-descriptions.c (tdesc_gdb_type): No need to call
8564 xstrdup, callee saves a copy.
8565
daac021a
MS
8566 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8567
c38d16a7
MS
8568 * infcall.c (call_function_by_hand): Add break statements for lint.
8569
905b671b
MS
8570 * utils.c (parse_escape): Escape the escape char.
8571
f2eb0bc8 8572 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8573 PyList_Append fails.
8574 (gdbpy_inferiors): Error out if build_inferior_list fails.
8575
8c6a60d1
MS
8576 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8577 a function call.
8578
d42de051
MS
8579 * record.c (record_restore): Move printf to before error return.
8580
4db71c0b
YQ
85812011-03-02 Yao Qi <yao@codesourcery.com>
8582
8583 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8584 is_thumb and insn_size.
8585 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8586 on both ARM and Thumb mode.
8587 (arm_process_displaced_insn): Set is_thumb and insn_size.
8588 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8589 (arm_displaced_step_fixup): Likewise.
8590
a9dc8dcc
MS
85912011-03-01 Michael Snyder <msnyder@vmware.com>
8592
53624a93
MS
8593 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8594
77766669
MS
8595 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8596
62d5b8da
MS
8597 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8598
5e9e105f
MS
8599 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8600
dc19db01
MS
8601 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8602 with xmalloc.
8603
5ce64950
MS
8604 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8605 which shadows function parameter.
8606
a0aa2878
MS
8607 * tracepoint.c (create_tsv_from_upload): Superfluous call
8608 to xstrdup. Callee already calls xstrdup.
8609
e325fb69
MS
8610 * linespec.c (decode_line_1): Remove unnecessary null check.
8611
21cbba77
MS
8612 * tracepoint.c (scope_info): Fix mem leak, remove underused
8613 variable.
8614
63360adc
MS
8615 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8616 superfluous null check.
8617
18ea20ac 8618 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8619 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8620
d014929c
MS
8621 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8622
6e9130cf
MS
8623 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8624 be null.
8625
5f01dbc0
MS
8626 * linespec.c (decode_line_1): Check for null before dereference.
8627
d684ab85
MS
8628 * reverse.c (record_restore): Move null-check to before pointer
8629 dereference.
8630
bfffb7e3
MS
8631 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8632
a9dc8dcc
MS
8633 * objc-lang.c (selectors_info): Add explanitory comment.
8634 (classes_info): Ditto.
8635
478fd957
UW
86362011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8637
8638 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8639 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8640 versions of the trampoline. Handle Thumb vs. ARM addresses.
8641 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8642 (arm_linux_init_abi): Install it.
8643 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8644 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8645
0480cefa
MS
86462011-02-28 Michael Snyder <msnyder@vmware.com>
8647
ac50ab3b
MS
8648 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8649 a little bigger, to avoid possibility of an overflow.
8650
f63fbe86
MS
8651 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8652 buffers a little bigger, to avoid possibility of an overflow.
8653
9e91a352
MS
8654 * coffread.c (coff_getfilename): Add check to avoid overflow.
8655
f2eb0bc8 8656 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8657 avoid overflow.
8658 (classes_info): Error out on too long REGEXP.
8659
098ab512
MS
8660 * infrun.c (handle_inferior_event): Remove unused function call.
8661
bcbd1de9
MS
8662 * fork-child.c (fork_inferior): Remove ifdef'd code and
8663 unused variable.
8664
2e456570
MS
8665 * linux-thread-db.c (attach_thread): Discard unused value.
8666
14571dad
MS
8667 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8668
a9cbf802
MS
8669 * remote.c (remote_get_noisy_reply): Discard unused value.
8670 (remote_vcont_resume): Ditto.
8671 (remote_stop_ns): Ditto.
8672
5715d26e
MS
8673 * linespec.c (decode_objc): Delete unused variable.
8674
4a9bca80
MS
8675 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8676
f47fb265
MS
8677 * dwarf2read.c (add_partial_symbol): Discard unused values.
8678 (read_base_type): Delete unused variable.
8679
e81cff30
MS
8680 * dbxread.c (read_dbx_symtab): Discard unused value.
8681
262acaeb
MS
8682 * eval.c (evaluate_subexp_standard): Delete unused variable,
8683 and discard unused values.
8684
df983543
MS
8685 * infcmd.c (_initialize_infcmd): Discard unused values.
8686
89acf84d
MS
8687 * stabsread.c (rs6000_builtin_type): Missing break statement.
8688
ab8b8aca
MS
8689 * dbxread.c (process_one_symbol): Discard unused value.
8690
6b4511ab
MS
8691 * coffread.c (coff_end_symtab): Delete unused variable.
8692
e8e80198
MS
8693 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8694 (dwarf2_add_typedef): Delete unused variable.
8695 (read_namespace): Ditto.
8696 (dwarf_decode_macros): Ditto.
8697
976aa66e
MS
8698 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8699
5b92b49f
MS
8700 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8701
91e8df85
MS
8702 * p-valprint.c (pascal_val_print): Discard unused value.
8703
899500d6
MS
8704 * utils.c (nquery): Call va_end before return;
8705 (yquery): Ditto.
8706 (query): Ditto.
8707
0480cefa
MS
8708 * proc-service.c (ps_plog): Call va_end before return.
8709
fb6a3ed3
TT
87102011-02-28 Tom Tromey <tromey@redhat.com>
8711
8712 * python/python.c (gdbpy_value_cst): New global.
8713 (_initialize_python): Initialize it.
8714 * python/python-internal.h (gdbpy_value_cst): Declare.
8715 * python/py-value.c (convert_value_from_python): Use
8716 gdbpy_value_cst.
8717
c05202a1
MS
87182011-02-28 Michael Snyder <msnyder@vmware.com>
8719
e463f587
MS
8720 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8721
c38eea1a
MS
8722 * breakpoint.c (catch_syscall_completer): Free malloced list.
8723
3ef09ab5
MS
8724 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8725
8f9a01ee
MS
8726 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8727 (lval_func_check_synthetic_pointer): Ditto.
8728 (lval_func_free_closure): Fix use-after-free.
c05202a1 8729
477d0d57
TT
87302011-02-28 Tom Tromey <tromey@redhat.com>
8731
8732 * psymtab.c (expand_partial_symbol_tables): Use
8733 ALL_OBJFILE_PSYMTABS.
8734
20937029
JK
87352011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8736
8737 * objc-lang.c (selectors_info): Error on too long REGEXP.
8738
907b7f4f
MS
87392011-02-28 Michael Snyder <msnyder@vmware.com>
8740
92e96192
MS
8741 * python/py-param.c (set_parameter_value): Add missing
8742 break statement.
8743
907b7f4f
MS
8744 * linux-record.c (record_linux_system_call): Add missing
8745 break statement.
8746
12c5a436
UW
87472011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8748
8749 * breakpoint.c (print_one_breakpoint_location): Remove unused
8750 argument PRINT_ADDRESS_BITS. Update callers.
8751 (print_one_breakpoint): Likewise.
8752
170b53b2
UW
87532011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8754
8755 * breakpoint.c (wrap_indent_at_field): New function.
8756 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8757 Allocate ui_stream locally instead of using STB argument.
8758 (print_one_breakpoint_location): Update call.
8759 * ui-out.c (ui_out_query_field): New function.
8760 * ui-out.h (ui_out_query_field): Add prototype.
8761
8ab1f94d
JB
87622011-02-28 Joel Brobecker <brobecker@adacore.com>
8763
8764 From Michael Snyder <msnyder@vmware.com>
8765 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8766
7d488639
MS
87672011-02-27 Michael Snyder <msnyder@vmware.com>
8768
ae179fba
MS
8769 * objc-lang.c (selectors_info): Prevent string overrun.
8770
086dbf66
MS
8771 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8772 error in strncpy.
8773
f2eb0bc8 8774 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8775 outer scope.
8776
7d488639
MS
8777 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8778 param with a local variable of the same name.
8779
3bd0f5ef
MS
87802011-02-27 Michael Snyder <msnyder@vmware.com>
8781
8782 * value.c (value_from_history_ref): New function.
8783 * value.h (value_from_history_ref): Export.
8784 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8785 to parse value history references.
8786 * cli/cli-utils.h (get_number_trailer): Update comment.
8787
87882011-02-27 Michael Snyder <msnyder@vmware.com>
8789
8790 * inferior.c (detach_inferior_command): Use get_number_or_range.
8791 (kill_inferior_command): Ditto.
8792 (remove_inferior_command): Ditto.
8793 (initialize_inferiors): Make command names plural.
8794 Update help strings.
8795
766062f6
MS
87962011-02-27 Michael Snyder <msnyder@vmware.com>
8797
8798 * darwin-nat-info.c: Fix comment typo.
8799 * dwarf2expr.h: Ditto.
8800 * fbsd-nat.c: Ditto.
8801 * fbsd-nat.h: Ditto.
8802 * frame-unwind.h: Ditto.
8803 * frame.h: Ditto.
8804 * hppa-hpux-tdep.c: Ditto.
8805 * i386-linux-nat.c: Ditto.
8806 * linux-nat.c: Ditto.
8807 * nbsd-nat.c: Ditto.
8808 * nbsd-nat.h: Ditto.
8809 * ppc-linux-tdep.c: Ditto.
8810 * serial.c: Ditto.
8811 * ui-file.h: Ditto.
8812 * tui/tui-winsource.c: Ditto.
8813
f2c4ead5
MS
88142011-02-26 Michael Snyder <msnyder@vmware.com>
8815
86b887df
MS
8816 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8817
66fd3b1e
MS
8818 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8819
8c814cdd
MS
8820 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8821 with a local variable of the same name.
8822
6d5e094a 8823 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8824 param with a local variable of the same name.
6d5e094a 8825 (i387_supply_xsave): Ditto.
e5b3d7d6 8826
5eee517d
MS
8827 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8828 that it does not shadow a function parameter.
8829
8fbf6b93
MS
8830 * i386-nat.c (i386_length_and_rw_bits): Document that case
8831 statement is meant to fall through.
8832
cb969d61
MS
8833 * expprint.c (dump_subexp_body_standard): Document that case
8834 statement is meant to fall through.
8835
f2c4ead5
MS
8836 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8837 dead if statement. Condition can't be false.
8838
b021a221
MS
88392011-02-25 Michael Snyder <msnyder@vmware.com>
8840
8841 * arm-tdep.c: Fix typos in comments.
8842 * bsd-uthread.c: Ditto.
8843 * completer.c: Ditto.
8844 * corelow.c: Ditto.
8845 * cp-namespace.c: Ditto.
8846 * cp-support.c: Ditto.
8847 * cris-tdep.c: Ditto.
8848 * dbxread.c: Ditto.
8849 * dwarf2read.c: Ditto.
8850 * frame.h: Ditto.
8851 * gdbtypes.h: Ditto.
8852 * inferior.h: Ditto.
8853 * mdebugread.c: Ditto.
8854 * mips-tdep.c: Ditto.
8855 * ppc-linux-nat.c: Ditto.
8856 * ppc-linux-tdep.c: Ditto.
8857 * printcmd.c: Ditto.
8858 * sol-thread.c: Ditto.
8859 * solib-frv.c: Ditto.
8860 * solist.h: Ditto.
8861 * sparc64-tdep.c: Ditto.
8862 * spu-tdep.c: Ditto.
8863 * stabsread.c: Ditto.
8864 * symfile.c: Ditto.
8865 * valops.c: Ditto.
8866 * varobj.c: Ditto.
8867 * vax-nat.c: Ditto.
8868 * python/py-block.c: Ditto.
8869 * python/py-symbol.c: Ditto.
8870 * python/py-symtab.c: Ditto.
8871 * python/py-value.c: Ditto.
8872 * tui/tui-win.c: Ditto.
8873
c82c0b55
MS
88742011-02-25 Michael Snyder <msnyder@vmware.com>
8875
8876 * inferior.c (print_inferior): Accept a string instead of an int
8877 for requested_inferiors, and use get_number_or_range to parse it.
8878 (info_inferiors_command): Pass args string to print_inferior.
8879 (initialize_inferiors): Change help string for info inferiors.
8880 * inferior.h (print_inferior): Export prototype change.
8881
ee00cd23
TT
88822011-02-25 Tom Tromey <tromey@redhat.com>
8883
8884 * common/ax.def (invalid2): Set to 0x31.
8885
0502ed8c
JK
88862011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8887
8888 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8889 L and plongest.
8890 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8891 use L and plongest.
8892 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8893
2c9de912
MS
88942011-02-24 Michael Snyder <msnyder@vmware.com>
8895
8896 * Makefile.in (clean): Make clean should remove generated files
8897 observer.h and observer.inc.
8898
a04b0428
JB
88992011-02-24 Joel Brobecker <brobecker@adacore.com>
8900
8901 Revert the following patch (not approved yet):
8902 2011-02-21 Hui Zhu <teawater@gmail.com>
8903 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8904 * ax-gdb.c (gen_printf_expr_callback): New function.
8905 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8906 * ax-general.c (ax_memcpy): New function.
8907 (ax_print): Handle "printf".
8908 (ax_reqs): Ditto.
8909 * ax.h (ax_memcpy): Forward declare.
8910 * common/ax.def (invalid2): Removed.
8911 (printf): New entry.
8912 * printcmd.c (printcmd.h): New include.
8913 (string_printf): New function.
8914 (ui_printf): Removed.
8915 (printf_command): Remove static. Call string_printf.
8916 (eval_command): Call string_printf.
8917 * printcmd.h: New file.
8918 * tracepoint.c (validate_actionline,
8919 encode_actions_1): handle printf_command.
8920
2b52013f
TT
89212011-02-23 Tom Tromey <tromey@redhat.com>
8922
8923 * ax-general.c (ax_pick): Add missing newline.
8924
e5a67952
MS
89252011-02-23 Michael Snyder <msnyder@vmware.com>
8926
8927 * breakpoint.c (breakpoint_1): Change first argument from an int
8928 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8929 breakpoints rather than just one. Use new function
e5a67952
MS
8930 'number_is_in_list' to implement.
8931 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8932 (watchpoints_info): Ditto.
8933 (tracepoints_info): Ditto.
8934 (maintenance_info_breakpoints): Ditto.
8935 (_initialize_breakpoint): Update help strings to reflect the fact
8936 that these functions can now take more than one argument.
8937 * cli/cli-utils.c (number_is_in_list): New function.
8938 * cli/cli-utils.h (number_is_in_list): Export.
8939
89402011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8941
8942 * memattr.c (mem_enable_command): Use get_number_or_range.
8943 (mem_disable_command): Ditto.
8944 (mem_delete_command): Ditto.
8945 (_initialize_mem): Tweak usage message to reflect multiple
8946 arguments.
8947
6e6fbe60
DE
89482011-02-22 Doug Evans <dje@google.com>
8949
8950 Add gdb.lookup_global_symbol python function.
8951 * NEWS: Add entry.
8952 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8953 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8954 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8955
79b97fa8
TT
89562011-02-22 Tom Tromey <tromey@redhat.com>
8957
8958 * language.c (language_class_name_from_physname): Rename
8959 'curr_language' argument to 'lang'; use in body.
8960
298f437a
MS
89612011-02-22 Michael Snyder <msnyder@vmware.com>
8962
8963 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8964
b7ea3126
PA
89652011-02-22 Pedro Alves <pedro@codesourcery.com>
8966
8967 * frame-unwind.h: Fix comment to mention the this frame, not the
8968 next.
8969
58ee6d60
TT
89702011-02-22 Tom Tromey <tromey@redhat.com>
8971
8972 * symfile.c (auto_solib_limit): Remove.
8973 * symfile.h (auto_solib_limit): Remove.
8974
36238dbc
JB
89752011-02-22 Joel Brobecker <brobecker@adacore.com>
8976
8977 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8978
aea5b279
MS
89792011-02-21 Michael Snyder <msnyder@vmware.com>
8980
8981 * gdbthread.h (print_thread_info): Change prototype.
8982 * thread.c (print_thread_info): Accept char* instead of int for
8983 requested_threads argument. Use new function number_is_in_list
8984 to determine which threads to list.
8985 (info_threads_command): Pass char* to print_thread_info.
8986 * cli/cli-utils.c (number_is_in_list): New function.
8987 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8988 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8989 print_thread_info.
8990 (print_one_inferior): Ditto.
8991 (mi_cmd_list_thread_groups): Ditto.
8992
8caa75ee
JK
89932011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8994
8995 * common/Makefile.in (CFLAGS): New.
8996 (COMPILE): Add $(CFLAGS).
8997
ea666128
TT
89982011-02-21 Tom Tromey <tromey@redhat.com>
8999
9000 * breakpoint.c (catch_syscall_command_1): Fix typo.
9001
e9cafbcc
TT
90022011-02-21 Tom Tromey <tromey@redhat.com>
9003
9004 * reverse.c: Include cli-utils.h.
9005 * printcmd.c: Include cli-utils.h.
9006 (string_printf): Use skip_spaces.
9007 * cli/cli-utils.h: New file.
9008 * cli/cli-utils.c: New file.
9009 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9010 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9011 * breakpoint.h (get_number, get_number_or_range): Move to
9012 cli-utils.h.
9013 * breakpoint.c: Include cli-utils.h.
9014 (get_number_trailer, get_number, get_number_or_range)
9015 (ep_skip_leading_whitespace): Move to cli-utils.c.
9016 (create_breakpoint_sal, find_condition_and_thread)
9017 (decode_static_tracepoint_spec, watch_command_1)
9018 (watch_maybe_just_location, ep_parse_optional_if_clause)
9019 (catch_fork_command_1, catch_exec_command_1)
9020 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9021 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9022 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9023 (HFILES_NO_SRCDIR): Add cli-utils.h.
9024 (cli-utils.o): New target.
9025
f67fd822
PM
90262011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9027
9028 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9029 before calling discard_all_inferiors.
9030
c9def01d
UW
90312011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9032
9033 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9034 (struct builtin_opencl_type): Remove.
9035 (builtin_opencl_type): Change return type to "struct type **".
9036 (lookup_opencl_vector_type): Update caller.
9037 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9038 (build_opencl_types): Install plain array of "struct type *"
9039 instead of "struct builtin_opencl_type".
9040
e3039479
UW
90412011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9042 Ulrich Weigand <uweigand@de.ibm.com>
9043
9044 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9045 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9046 (struct arm_linux_hwbp_cap): New type.
9047 (arm_linux_get_hwbp_cap): New function.
9048 (arm_linux_get_hw_breakpoint_count): Likewise.
9049 (arm_linux_get_hw_watchpoint_count): Likewise.
9050 (arm_linux_can_use_hw_breakpoint): Likewise.
9051 (arm_hwbp_type): New type.
9052 (arm_hwbp_control_t): Likewise.
9053 (struct arm_linux_hw_breakpoint): Likewise.
9054 (struct arm_linux_thread_points): Likewise.
9055 (arm_threads): New global variable.
9056 (arm_linux_find_breakpoints_by_tid): New function.
9057 (arm_hwbp_control_initialize): Likewise.
9058 (arm_hwbp_control_is_enabled): Likewise.
9059 (arm_hwbp_control_disable): Likewise.
9060 (arm_linux_hw_breakpoint_initialize): Likewise.
9061 (arm_linux_get_hwbp_type): Likewise.
9062 (arm_linux_hw_watchpoint_initialize): Likewise.
9063 (arm_linux_hw_breakpoint_equal): Likewise.
9064 (arm_linux_insert_hw_breakpoint1): Likewise.
9065 (arm_linux_remove_hw_breakpoint1): Likewise.
9066 (arm_linux_insert_hw_breakpoint): Likewise.
9067 (arm_linux_remove_hw_breakpoint): Likewise.
9068 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9069 (arm_linux_insert_watchpoint): Likewise.
9070 (arm_linux_remove_watchpoint): Likewise.
9071 (arm_linux_stopped_data_address): Likewise.
9072 (arm_linux_stopped_by_watchpoint): Likewise.
9073 (arm_linux_watchpoint_addr_within_range): Likewise.
9074 (arm_linux_new_thread): Likewise.
9075 (arm_linux_thread_exit): Likewise.
9076 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9077 related target callbacks. Register arm_linux_new_thread and
9078 arm_linux_thread_exit.
9079 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9080 * arm-tdep.c (arm_pc_is_thumb): Make global.
9081 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9082
b5db5dfc
UW
90832011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9084
9085 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9086 per-frame locations while within a function epilogue.
9087
e25b2cfa
PM
90882011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9089
9090 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9091 to GNU coding standards.
9092
4af53f97
PM
90932011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9094
9095 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9096 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9097 (ser_windows_close): Only call CancelIo if function exists.
9098 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9099 to check for existence of CancelIo function in kernel32 DLL.
9100
d0e92d82
HZ
91012011-02-21 Hui Zhu <teawater@gmail.com>
9102
9103 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9104 * ax-gdb.c (gen_printf_expr_callback): New function.
9105 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9106 * ax-general.c (ax_memcpy): New function.
9107 (ax_print): Handle "printf".
9108 (ax_reqs): Ditto.
9109 * ax.h (ax_memcpy): Forward declare.
9110 * common/ax.def (invalid2): Removed.
9111 (printf): New entry.
9112 * printcmd.c (printcmd.h): New include.
9113 (string_printf): New function.
9114 (ui_printf): Removed.
9115 (printf_command): Remove static. Call string_printf.
9116 (eval_command): Call string_printf.
9117 * printcmd.h: New file.
9118 * tracepoint.c (validate_actionline,
9119 encode_actions_1): handle printf_command.
9120
7d357efd
MS
91212011-02-19 Michael Snyder <msnyder@vmware.com>
9122
9123 * reverse.c (delete_one_bookmark): Argument is now bookmark
9124 id rather than pointer to bookmark struct.
9125 (delete_bookmark_command): Use get_number_or_range.
9126 (goto_bookmark_command): Parse with get_number instead of strtoul.
9127 (bookmark_1): New function. Print info for one bookmark.
9128 (bookmarks_info): Use get_number_or_range and bookmark_1.
9129
7a45ebd7
MS
91302011-02-18 Michael Snyder <msnyder@vmware.com>
9131
f2eb0bc8 9132 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9133 get_number_or_range.
65ebfb52 9134 (thread_apply_command): Ditto.
7a45ebd7 9135
94d5e490
TT
91362011-02-18 Tom Tromey <tromey@redhat.com>
9137
9138 * common/ax.def: New file.
9139 * ax.h (enum agent_op): Use ax.def.
9140 * ax-general.c (aop_map): Use ax.def.
9141
c7f96d2b
TT
91422011-02-18 Tom Tromey <tromey@redhat.com>
9143
9144 * ax-general.c (aop_map): Add pick and rot.
9145 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9146 <DW_OP_rot>: Implement.
9147 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9148 (ax_pick): Declare.
9149 * ax-general.c (ax_pick): New function.
9150
66694b75
TT
91512011-02-18 Tom Tromey <tromey@redhat.com>
9152
9153 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9154
eeaafae2
JK
91552011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9156 Tom Tromey <tromey@redhat.com>
9157
9158 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9159 make_symbol_overload_list_block with NULL BLOCK.
9160 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9161
3c3fe74c
PA
91622011-02-18 Pedro Alves <pedro@codesourcery.com>
9163
9164 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9165 * breakpoint.h (get_number_or_range): Declare.
9166 * printcmd.c (ALL_DISPLAYS): Declare.
9167 (delete_display): Reimplement taking a display pointer.
9168 (undisplay_command): Accept a range of displays to delete, using
9169 get_number_or_range.
9170
13163d80
PM
91712011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9172
9173 * c-valprint.c (c_val_print): Add embedded_offset to address
9174 for arrays of unspecified length.
9175 * p-valprint.c (pascal_val_print): Likewise.
9176
b434a28f
YQ
91772011-02-18 Yao Qi <yao@codesourcery.com>
9178
9179 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9180 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9181 (thumb_process_displaced_insn): New.
9182 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9183 call to arm_process_displaced_insn.
9184 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9185
9f6f94ff
TT
91862011-02-17 Tom Tromey <tromey@redhat.com>
9187
9188 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9189 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9190 compile_dwarf_to_ax. No longer static. Call
9191 dwarf2_compile_cfa_to_ax.
9192 (locexpr_tracepoint_var_ref): Update.
9193 (loclist_tracepoint_var_ref): Update.
9194 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9195 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9196 argument; add 'gdbarch' and 'pc'.
9197 (dwarf2_compile_cfa_to_ax): New function.
9198 (dwarf2_frame_cache): Update.
9199
e67ad678
JB
92002011-02-17 Joel Brobecker <brobecker@adacore.com>
9201
9202 * ada-lang.c (ada_type_of_array): Fix the size of the array
9203 in the case of an unconstrained packed array.
9204
946ebb0d
YQ
92052011-02-17 Yao Qi <yao@codesourcery.com>
9206
9207 * common/Makefile.in: Add more targets for make.
9208
1ba1b353
TT
92092011-02-16 Tom Tromey <tromey@redhat.com>
9210
9211 * dwarf2loc.c (unimplemented): Fix typo.
9212
b1bfef65
TT
92132011-02-16 Tom Tromey <tromey@redhat.com>
9214
9215 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9216 (compile_dwarf_to_ax) <default>: Use unimplemented.
9217 <DW_OP_deref>: Update.
9218 (disassemble_dwarf_expression): Update.
9219 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9220 (decode_locdesc): Update.
9221 * dwarf2expr.h (dwarf_stack_op_name): Update.
9222
5f1e6f19
TT
92232011-02-16 Tom Tromey <tromey@redhat.com>
9224
9225 * ax.h (struct aop_map) <name>: Now const.
9226
a0c78a73
PA
92272011-02-16 Tom Tromey <tromey@redhat.com>
9228
9229 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9230 than axs_rvalue.
9231
946ebb0d 92322011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9233
9234 * infrun.c (get_displaced_step_closure_by_addr): New.
9235 * inferior.h: Declare it.
9236 * arm-tdep.c: (arm_pc_is_thumb): Call
9237 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9238 returns non-NULL.
9239
08807d5a
PA
92402011-02-16 Pedro Alves <pedro@codesourcery.com>
9241 Jan Kratochvil <jan.kratochvil@redhat.com>
9242
9243 gdb/
9244 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9245
29976f3f
PA
92462011-02-16 Pedro Alves <pedro@codesourcery.com>
9247 Jan Kratochvil <jan.kratochvil@redhat.com>
9248
9249 * value.c (value_contents_copy_raw): Extend describing comment.
9250 Assert that the destination contents we're overwriting are wholly
9251 available.
fb68ae73 9252 (value_contents_copy): Extend describing comment.
29976f3f 9253
cd24cfaa
PA
92542011-02-16 Pedro Alves <pedro@codesourcery.com>
9255 Jan Kratochvil <jan.kratochvil@redhat.com>
9256
9257 * value.c (value_available_contents_eq): Remove redundant local
9258 variables. Fix available contents comparision.
9259 * value.h (value_available_contents_eq): Extend describing
9260 comment.
9261
60bbf338
YQ
92622011-02-16 Yao Qi <yao@codesourcery.com>
9263
9264 * thread.c (info_threads_command): Add missing i18n markup and remove
9265 trailing newline.
9266
17450429
PP
92672011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9268
9269 * breakpoint.c (longjmp_names): New variable.
9270 (struct breakpoint_objfile_data): New type.
9271 (breakpoint_objfile_key): New variable.
9272 (msym_not_found): New variable.
9273 (msym_not_found_p): New predicate.
9274 (get_breakpoint_objfile_data): New function.
9275 (create_overlay_event_breakpoint): Check per-objfile cache for
9276 symbols first.
9277 (create_longjmp_master_breakpoint): Likewise.
9278 (create_std_terminate_master_breakpoint): Likewise.
9279 (create_exception_master_breakpoint): Likewise.
9280 (_initialize_breakpoint): Register per-objfile data key.
9281
af02033e
PP
92822011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9283
9284 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9285 parameter value.
9286 (create_longjmp_master_breakpoint): Loop over longjmp names.
9287 (create_std_terminate_master_breakpoint): Const-propagate parameter
9288 value.
9289 (update_breakpoints_after_exec): Adjust.
9290 (breakpoint_re_set): Adjust.
9291
60f98dde
MS
92922011-02-15 Michael Snyder <msnyder@vmware.com>
9293
cdf99611
MS
9294 * thread.c (info_threads_command): Process arg as thread id,
9295 or list of thread ids.
9296 (thread_find_command): New command.
9297 (_initialize_thread): Document argument for info threads.
9298 Document 'thread find' command.
9299 * NEWS: Document new command "thread find".
60f98dde 9300
0feedb2c
JK
93012011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9302
9303 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9304 * aclocal.m4: Regenerated with aclocal-1.11.1.
9305 * common/configure: Regenerate with autoconf-2.64.
9306
648cd113
KW
93072011-02-15 Ken Werner <ken.werner@de.ibm.com>
9308
9309 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9310 bool data type to a size of one byte.
9311
5657161f
PA
93122011-02-15 Pedro Alves <pedro@codesourcery.com>
9313 Jan Kratochvil <jan.kratochvil@redhat.com>
9314
9315 * target.c (memory_xfer_live_readonly_partial): Document where to
9316 look for interface description.
9317
494e194e
YQ
93182011-02-15 Yao Qi <yao@codesourcery.com>
9319
9320 PR tdep/12352
9321 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9322 order to store PC value on stack instead of text section.
9323
d9492458
TJB
93242011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9325
9326 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9327 the EFP register set size.
9328 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9329 data from the VMX register.
9330 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9331 and write data from/to the VMX register.
9332
cdf99611
MS
93332011-02-14 Michael Snyder <msnyder@vmware.com>
9334
9335 * command.h (enum command_class): New class 'no_set_class', for
9336 "show" commands without a corresponding "set" command.
9337 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9338 * copying.c (_initialize_copying): Ditto for "show copying" and
9339 "show warranty".
9340 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9341 "show version".
9342 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9343 which there is no corresponding "set" command (eg. "show copying").
9344
424447ee
PA
93452011-02-14 Pedro Alves <pedro@codesourcery.com>
9346 Jan Kratochvil <jan.kratochvil@redhat.com>
9347
9348 * exec.c (section_table_available_memory): Change `len' parameter
9349 type to ULONGEST.
9350 * exec.h (section_table_available_memory): Ditto.
9351 * value.h (read_value_memory): Rename the `offset' parameter to
9352 `embedded_offset'.
9353
c0f61f9c 93542011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9355 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9356
9357 * memrange.c (compare_mem_ranges): Mention sort order in
9358 describing comment.
9359 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9360 * tracepoint.c (traceframe_available_memory): Extend comment to
9361 mention what happens to RESULT when the target does not support
9362 the query.
9363
6bfc80c7
PA
93642011-02-14 Pedro Alves <pedro@codesourcery.com>
9365 Jan Kratochvil <jan.kratochvil@redhat.com>
9366
9367 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9368 range.
9369
e7303042
PA
93702011-02-14 Pedro Alves <pedro@codesourcery.com>
9371
9372 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9373 No longer handle NULL values.
9374
8af8e3bc
PA
93752011-02-14 Pedro Alves <pedro@codesourcery.com>
9376
9377 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9378 * value.c: Include "exceptions.h".
9379 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9380 generic error.
9381 * cp-abi.c: Include gdb_assert.h.
9382 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9383 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9384 errors.
9385 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9386 parameters. No longer returns -1 on error.
9387 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9388 `val' parameters.
9389 * cp-valprint.c: Include exceptions.h.
9390 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9391 the baseclass_offset. Handle unavailable base classes. Use
9392 val_print_invalid_address.
9393 * p-valprint.c: Include exceptions.h.
9394 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9395 when fetching the baseclass_offset. No longer expect
9396 baseclass_offset returning -1. Handle unavailable base classes.
9397 Use val_print_invalid_address.
9398 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9399 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9400 `embedded_offset' and `val' parameters. Adjust.
9401 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9402 parameter, and change its type to gdb_byte pointer. Add
9403 `embedded_offset' and `val' parameters. Adjust. No longer expect
9404 baseclass_offset returning -1.
9405 (value_dynamic_cast): Use value_contents_for_printing rather than
9406 value_contents. Adjust.
9407 (search_struct_field): No longer expect baseclass_offset returning
9408 -1.
9409 (search_struct_method): If reading memory from the target is
9410 necessary, wrap it in a new value to pass to baseclass_offset. No
9411 longer expect baseclass_offset returning -1.
9412 (find_method_list): No longer expect baseclass_offset returning
9413 -1. Use value_contents_for_printing rather than value_contents.
9414 * valprint.c (val_print_invalid_address): New function.
9415 * valprint.h (val_print_invalid_address): Declare.
9416 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9417 and `val' parameters. No longer expect baseclass_offset returning
9418 -1. Adjust.
9419 * gnu-v2-abi.c: Include "exceptions.h".
9420 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9421 parameters. Handle unavailable memory. Recurse through
9422 gnuv2_baseclass_offset directly, rather than through
9423 baseclass_offset. No longer returns -1 on not found, instead
9424 throw an error.
9425 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9426 `val' parameters. Adjust.
9427
1b28d0b3
PA
94282011-02-14 Pedro Alves <pedro@codesourcery.com>
9429
9430 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9431 almost but not quite adjacent.
9432
ec0a52e1
PA
94332011-02-14 Pedro Alves <pedro@codesourcery.com>
9434
9435 * value.h (value_entirely_available): Declare.
9436 * value.c (value_entirely_available): New function.
9437 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9438 real type if the pointer is unavailable.
9439
24e6bcee
PA
94402011-02-14 Pedro Alves <pedro@codesourcery.com>
9441
9442 * valops.c (value_repeat): Use read_value_memory instead of
9443 read_memory.
9444
39d37385
PA
94452011-02-14 Pedro Alves <pedro@codesourcery.com>
9446
9447 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9448 * value.c (value_contents_copy_raw, value_contents_copy): New
9449 functions.
9450 (value_primitive_field): Use value_contents_copy_raw instead of
9451 memcpy.
9452 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9453 memcpy.
9454 (value_array, value_slice): Ditto.
9455 * valarith.c (value_subscripted_rvalue): Use
9456 value_contents_copy_raw instead of memcpy.
9457
a3d34bf4
PA
94582011-02-14 Pedro Alves <pedro@codesourcery.com>
9459
9460 <unavailable> references.
9461
9462 * valops.c (get_value_at): Use value_from_contents_and_address,
9463 avoiding read_memory.
9464
9fc6d940
PA
94652011-02-14 Pedro Alves <pedro@codesourcery.com>
9466
9467 * c-valprint.c (c_val_print): Print a string with unavailable
9468 contents as an array.
9469
5467c6c8
PA
94702011-02-14 Pedro Alves <pedro@codesourcery.com>
9471
9472 * value.h (unpack_bits_as_long): Delete declaration.
9473 (unpack_value_bits_as_long): Declare.
9474 (unpack_value_field_as_long): Declare.
9475 (value_field_bitfield): Declare.
9476 * value.c (unpack_bits_as_long): Rename to...
9477 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9478 value parameters. Return the extracted result in a new output
9479 parameter. If the value contents are unavailable, return false,
9480 otherwise return true.
9481 (unpack_value_bits_as_long): New.
9482 (unpack_field_as_long): Rename to...
9483 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9484 Add embedded_offset and value parameters. Return the extracted
9485 result in a new output parameter. If the value contents are
9486 unavailable, return false, otherwise return true.
9487 (unpack_value_field_as_long): New.
9488 (unpack_field_as_long_1): New.
9489 (unpack_field_as_long): Reimplement as wrapper around
9490 unpack_value_field_as_long_1.
9491 (value_field_bitfield): New function.
9492 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9493 unpack_value_bits_as_long. Mark the value as unavailable, if it
9494 is unavailable.
9495 * jv-valprint.c (java_print_value_fields): Use
9496 value_field_bitfield.
9497 * p-valprint.c (pascal_object_print_value_fields): Use
9498 value_field_bitfield.
9499 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9500
3158c6ed
PA
95012011-02-14 Pedro Alves <pedro@codesourcery.com>
9502
9503 * value.c (get_internalvar_integer): Also return the int value of
9504 TYPE_CODE_INT INTERNALVAR_VALUE values.
9505 (set_internalvar): Don't special case TYPE_CODE_INT.
9506
9fbdca0d
PA
95072011-02-14 Pedro Alves <pedro@codesourcery.com>
9508
9509 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9510 INTERNALVAR_POINTER.
9511 <pointer>: Delete.
9512 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9513 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9514 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9515
c8c1c22f
PA
95162011-02-14 Pedro Alves <pedro@codesourcery.com>
9517
9518 * value.h (value_available_contents_eq): Declare.
9519 * value.c (find_first_range_overlap): New function.
9520 (value_available_contents_eq): New function.
9521 * valprint.c (val_print_array_elements): Use
9522 value_available_contents_eq.
9523 * ada-valprint.c (val_print_packed_array_elements): Use
9524 value_available_contents_eq.
9525 * jv-valprint.c (java_value_print): Use
9526 value_available_contents_eq.
9527
e6e4e701
PA
95282011-02-14 Pedro Alves <pedro@codesourcery.com>
9529
9530 * target.c (target_read_live_memory): New function.
9531 (memory_xfer_live_readonly_partial): New.
9532 (memory_xfer_partial): If reading from a traceframe, fallback to
9533 reading unavailable read-only memory from read-only regions of
9534 live target memory.
9535 * tracepoint.c (disconnect_tracing): Adjust.
9536 (set_current_traceframe): New, factored out from
9537 set_traceframe_number.
9538 (set_traceframe_number): Reimplement to only change the traceframe
9539 number on the GDB side.
9540 (do_restore_current_traceframe_cleanup): Adjust.
9541 (make_cleanup_restore_traceframe_number): New.
9542 (cur_traceframe_number): New global.
9543 (tfile_open): Set cur_traceframe_number to no traceframe.
9544 (set_tfile_traceframe): New function.
9545 (tfile_trace_find): If looking up a traceframe using any method
9546 other than by number, make sure the current tfile traceframe
9547 matches gdb's current traceframe. Update the current tfile
9548 traceframe if the lookup succeeded.
9549 (tfile_fetch_registers, tfile_xfer_partial)
9550 (tfile_get_trace_state_variable_value): Make sure the remote
9551 traceframe matches gdb's current traceframe.
9552 * remote.c (remote_traceframe_number): New global.
9553 (remote_open_1): Set it to -1.
9554 (set_remote_traceframe): New function.
9555 (remote_fetch_registers, remote_store_registers)
9556 (remote_xfer_memory, remote_xfer_partial)
9557 (remote_get_trace_state_variable_value): Make sure the remote
9558 traceframe matches gdb's current traceframe.
9559 (remote_trace_find): If looking up a traceframe using any method
9560 other than by number, make sure the current remote traceframe
9561 matches gdb's current traceframe. Update the current remote
9562 traceframe if the lookup succeeded.
9563 * infrun.c (fetch_inferior_event): Adjust.
9564 * tracepoint.h (set_current_traceframe): Declare.
9565 (get_traceframe_number, set_traceframe_number): Add describing
9566 comments.
9567
e6ca34fc
PA
95682011-02-14 Pedro Alves <pedro@codesourcery.com>
9569
9570 Mark pieces of values as unavailable if the corresponding memory
9571 is unavailable.
9572
9573 * valops.c: Include tracepoint.h.
9574 (value_fetch_lazy): Use read_value_memory.
9575 (read_value_memory): New.
9576 * value.h (read_value_memory): Declare.
9577 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9578 * exec.c (section_table_available_memory): New function.
9579 * exec.h (section_table_available_memory): Declare.
9580
2a7498d8
PA
95812011-02-14 Pedro Alves <pedro@codesourcery.com>
9582
9583 * Makefile.in (SFILES): Add memrange.c.
9584 (HFILES_NO_SRCDIR): Add memrange.h.
9585 (COMMON_OBS): Add memrange.o.
9586 * memrange.c: New file.
9587 * memrange.h: New file.
9588 * tracepoint.c: Include memrange.h.
9589 (struct mem_range): Delete.
9590 (mem_range_s): Delete.
9591 (traceframe_available_memory): New function.
9592 * tracepoint.h (traceframe_available_memory): Declare.
9593
b3b9301e
PA
95942011-02-14 Pedro Alves <pedro@codesourcery.com>
9595
9596 * target.h (struct traceframe_info): Forward declare.
9597 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9598 (struct target_ops) <to_traceframe_info>: New field.
9599 (target_traceframe_info): New.
9600 * target.c (update_current_target): Inherit and default
9601 to_traceframe_info.
9602 * remote.c (PACKET_qXfer_traceframe_info): New.
9603 (remote_protocol_features): Register qXfer:traceframe-info:read.
9604 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9605 (remote_traceframe_info): New.
9606 (init_remote_ops): Install it.
9607 (_initialize_remote): Install "set/show remote traceframe-info"
9608 commands.
9609 * tracepoint.h (parse_traceframe_info): Declare.
9610 * tracepoint.c (struct mem_range): New.
9611 (mem_range_s): New typedef.
9612 (struct traceframe_info): New.
9613 (traceframe_info): New global.
9614 (free_traceframe_info): New function.
9615 (clear_traceframe_info): New function.
9616 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9617 info.
9618 (build_traceframe_info): New function.
9619 (tfile_traceframe_info): New function.
9620 (init_tfile_ops): Install tfile_traceframe_info.
9621 (traceframe_info_start_memory, free_result): New functions.
9622 (memory_attributes, traceframe_info_elements): New globals.
9623 (parse_traceframe_info, get_traceframe_info): New functions.
9624 * features/traceframe-info.dtd: New file.
9625 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9626
4e07d55f
PA
96272011-02-14 Pedro Alves <pedro@codesourcery.com>
9628
9629 Base support for <unavailable> value contents.
9630
4e07d55f
PA
9631 * value.h (value_bytes_available): Declare.
9632 (mark_value_bytes_unavailable): Declare.
9633 * value.c (struct range): New struct.
9634 (range_s): New typedef.
9635 (ranges_overlap): New function.
9636 (range_lessthan): New function.
9637 (ranges_contain_p): New function.
9638 (struct value) <unavailable>: New field.
9639 (value_bytes_available): New function.
9640 (mark_value_bytes_unavailable): New function.
9641 (require_not_optimized_out): Constify parameter.
9642 (require_available): New function.
9643 (value_contents_all, value_contents): Require all bytes be
9644 available.
9645 (value_free): Free `unavailable'.
9646 (value_copy): Copy `unavailable'.
9647 * valprint.h (val_print_unavailable): Declare.
9648 * valprint.c (valprint_check_validity): Rename `offset' parameter
9649 to `embedded_offset'. If printing a scalar, check whether the
9650 value chunk is available.
9651 (val_print_unavailable): New.
9652 (val_print_scalar_formatted): Check whether the value is
9653 available.
9654 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9655 pretty-printing unavailable values.
9656
bc9a5551
JK
96572011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9658
9659 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9660 * c-typeprint.c (c_type_print_args): Update the function comment. New
9661 variable param_type, initialize it. Remove const/volatile qualifiers
9662 for language_cplus and !show_artificial. Use param_type.
9663
93b55aa1
JK
96642011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9665
9666 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9667 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9668 * symtab.h (struct symtab) <next>: Comment extension.
9669
181d9476
YQ
96702011-02-12 Yao Qi <yao@codesourcery.com>
9671
9672 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9673
b708a5c7
JK
96742011-02-11 Yao Qi <yao@codesourcery.com>
9675
9676 * common/Makefile.in: Add copyright header.
9677
c5187ac6
PA
96782011-02-11 Pedro Alves <pedro@codesourcery.com>
9679
9680 * infrun.c (proceed): Move switching out and in of tfind mode from
9681 here ...
9682 (fetch_inferior_event): ... to here.
9683
4f3e6fb7
YQ
96842011-02-11 Yao Qi <yao@codesourcery.com>
9685
9686 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9687 libcommon.a.
9688 * configure.ac: Add common to sub dir.
9689 * configure: Regenerate.
9690
b708a5c7
JK
96912011-02-11 Yao Qi <yao@codesourcery.com>
9692
9693 Build libcommon.a.
9694
9695 * common/Makefile.in: New.
9696 * common/configure.ac: New.
9697 * common/aclocal.m4: New.
9698 * common/configure: Generate.
9699
2287cc7e
PA
97002011-02-10 Pedro Alves <pedro@codesourcery.com>
9701
9702 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9703 side of the parenthesis.
9704
9705 Merge from GCC:
9706 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9707 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9708
fd62cb89
MS
97092011-02-08 Michael Snyder <msnyder@vmware.com>
9710
9711 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9712
56d2815c
JK
97132011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9714
9715 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9716 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9717 psubd and paddd.
9718
4f7d61a8
JK
97192011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9720
9721 PR 12361.
9722 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9723 phsubsw.
9724 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9725 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9726
54fcddd0
UW
97272011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9728
9729 * dwarf2read.c (read_subroutine_type): Set special calling
9730 convention flag for functions compiled by IBM XL C for OpenCL.
9731 * ppc-sysv-tdep.c: Include "dwarf2.h"
9732 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9733 calling convention.
9734 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9735 IBM OpenCL vector types calling convention.
9736 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9737 (ppc_sysv_abi_broken_return_value): Likewise.
9738 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9739 types calling convention.
9740 (ppc64_sysv_abi_return_value): Likewise.
9741 * spu-tdep.c: Include "dwarf2.h"
9742 (spu_return_value): Implement IBM OpenCL vector types calling
9743 convention.
9744
d6dafb7c
UW
97452011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9746
9747 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9748 correct ABI for AltiVec vector arguments.
9749
32b72a42
PA
97502011-02-07 Pedro Alves <pedro@codesourcery.com>
9751
9752 * valprint.c (val_print): Extend comment.
9753 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9754 interface explanation to val_print.
9755 (ada_val_print_array): Adjust comment to current interface.
9756 (print_field_values): Adjust comment to current interface.
9757 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9758 explanation to val_print.
9759 * f-valprint.c (f_val_print): Ditto.
9760 * jv-valprint.c (java_val_print): Ditto.
9761 * m2-valprint.c (m2_val_print): Ditto.
9762 * p-valprint.c (pascal_val_print): Ditto.
9763
9998af43
TJB
97642011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9765
9766 * breakpoint.c (parse_breakpoint_sals): Fix description.
9767
505500db 97682011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9769 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9770
9771 * python/py-inferior.c (python_on_normal_stop): New function.
9772 (python_on_resume): New function.
9773 (python_inferior_exit): New function.
9774 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9775 inferior_exit observers.
9776 * python/py-evtregistry.c: New file.
9777 * python/py-threadevent.c : New file.
9778 * python/py-event.c: New file.
9779 * python/py-evts.c: New file.
9780 * python/py-continueevent.c: New file.
9781 * python/py-bpevent.c: New file.
9782 * python/py-signalevent.c: New file.
9783 * python/py-exetiedevent.c: New file.
9784 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9785 Move struct breakpoint_object from here...
9786 * python/python-internal.h: ... to here.
9787 * python/py-event.h: New file.
9788 * python/py-events.h: New file.
9789 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9790 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9791 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9792 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9793 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9794 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9795 Add build rules for all the above.
9796
9e0ac564
TT
97972011-02-04 Tom Tromey <tromey@redhat.com>
9798
9799 * dwarf2read.c (dwarf2_section_empty_p): New function.
9800 (dwarf2_read_section): Use dwarf2_section_empty_p.
9801 (dwarf2_section_size): New function.
9802 (dwarf2_get_section_info): Unconditionally read section.
9803 (dwarf2_read_index): Use dwarf2_section_empty_p.
9804 (partial_read_comp_unit_head): Use dwarf2_section_size.
9805 (dwarf2_symbol_mark_computed): Likewise.
9806
eee5b35e
DD
98072011-02-04 David Daney <ddaney@caviumnetworks.com>
9808
9809 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9810
385203ed
DD
98112011-02-04 David Daney <ddaney@caviumnetworks.com>
9812
9813 * mips-linux-tdep.c: Include xml-syscall.h.
9814 (mips_linux_get_syscall_number): New function.
9815 (mips_linux_init_abi): Add calls to
9816 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9817 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9818 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9819 * syscalls/mips-n32-linux.xml: New file.
9820 * syscalls/mips-n64-linux.xml: New file.
9821 * syscalls/mips-o32-linux.xml: New file.
9822
9277c30c
UW
98232011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9824
9825 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9826 Complain about inverted range entries.
9827 (dwarf2_record_block_ranges): Likewise.
9828
a3be7890
TJB
98292011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9830
9831 Fix some typos.
9832 * breakpoint.c (update_watchpoint): Fix name of the
9833 update_global_location_list function.
9834 (print_one_breakpoint): Fix typo.
9835 (_initialize_breakpoint): Remove extra space in hbreak help
9836 string.
9837 * breakpoint.h (struct bp_location) <length>: Fix field
9838 description.
9839
041274d8
PA
98402011-02-04 Pedro Alves <pedro@codesourcery.com>
9841
9842 * regcache.c (registers_changed_ptid): Don't explictly always
9843 clear `current_regcache'. Only clear current_thread_ptid and
9844 current_thread_arch when PTID matches. Only reinit the frame
9845 cache if PTID matches the current inferior_ptid. Move alloca(0)
9846 call to ...
9847 (registers_changed): ... here.
9848
c1c2ab58
UW
98492011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9850
9851 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9852 starts with __stack_chk_guard as stack guard symbol.
9853
9011945e
AB
98542011-02-03 Andrew Burgess <aburgess@broadcom.com>
9855
9856 * disasm.c (compare_lines): Handle the end of sequence markers
9857 within the line table to better support disassembling over
9858 compilation unit boundaries.
9859
e0634ccf
UW
98602011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9861
9862 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9863 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9864 implementation even if no symbols are available.
9865 (thumb_analyze_prologue): Update call to skip_prologue_function.
9866 (arm_analyze_prologue): Likewise.
9867
0e9e9abd
UW
98682011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9869
9870 * arm-tdep.c: Include "observer.h".
9871 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9872 (arm_exidx_data_key): New static variable.
9873 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9874 (struct arm_exidx_data): Likewise.
9875 (arm_exidx_data_free): New function.
9876 (arm_compare_exidx_entries): Likewise.
9877 (arm_obj_section_from_vma): Likewise.
9878 (arm_exidx_new_objfile): Likewise.
9879 (arm_find_exidx_entry): Likewise.
9880 (arm_exidx_fill_cache): Likewise.
9881 (arm_exidx_unwind_sniffer): Likewise.
9882 (arm_exidx_unwind): New global variable.
9883 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9884 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9885 observer. Register arm_exidx_data_key as objfile data.
9886
2e9e421f
UW
98872011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9888
9889 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9890 due to accessing uninitialized variable. Fix indentation.
9891
580688f3
PA
98922011-02-02 Pedro Alves <pedro@codesourcery.com>
9893
9894 * c-valprint.c (c_value_print): When doing virtual base pointer
9895 adjustment, create a new value with adjusted contents rather than
9896 changing the contents of the value being printed (and getting it
9897 wrong).
9898
3d2c1d41
PA
98992011-02-02 Pedro Alves <pedro@codesourcery.com>
9900
9901 * xml-support.c (xml_find_attribute): New.
9902 (xinclude_start_include): Use it.
9903 * xml-support.h (xml_find_attribute): Declare.
9904 * memory-map.c (memory_map_start_memory)
9905 (memory_map_start_property): Use xml_find_attribute.
9906 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9907 xml_find_attribute.
9908 * remote.c (start_thread): Use xml_find_attribute.
9909 * solib-target.c (library_list_start_segment)
9910 (library_list_start_section, library_list_start_library)
9911 (library_list_start_list): Use xml_find_attribute.
9912 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9913 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9914 (tdesc_start_field): Use xml_find_attribute.
9915
0af3e2db
UW
99162011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9917
9918 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9919 (BUILD_OCL_VTYPES): Update.
9920
c1039e3c
JB
99212011-02-02 Joel Brobecker <brobecker@adacore.com>
9922
9923 * configure.ac: Work around non-GNU sed limitation when computing
9924 python version number.
9925 * configure: Regenerate.
9926
600ea1be
JK
99272011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 Fix debug printing of TYPE_INSTANCE.
9930 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9931 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9932
56c12414
JK
99332011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9934
9935 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9936 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9937 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9938 * ada-operator.inc: Rename the file to ...
9939 * ada-operator.def: ... here, wrap all the entries by macro OP.
9940 * expprint.c (op_name_standard): Remove all the entries. Include
9941 "std-operator.def" instead.
9942 * expression.h (enum exp_opcode): Include "std-operator.def" and
9943 "ada-operator.def". Move all the entries ...
9944 * std-operator.def: ... here, wrap all the entries by macro OP.
9945
c52b559d
PP
99462011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9947
9948 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9949 * breakpoint.c (remove_jit_event_breakpoints): New function.
9950 * jit.c (jit_descriptor_addr): Delete.
9951 (registering_code): Delete.
9952 (clear_int): Delete.
9953 (jit_inferior_data): New variable.
9954 (struct jit_inferior_data): New type.
9955 (get_jit_inferior_data): New function.
9956 (jit_inferior_data_cleanup): New function.
9957 (jit_read_descriptor): Adjust.
9958 (jit_register_code): Adjust.
9959 (jit_breakpoint_re_set_internal): New function; move code here ...
9960 (jit_inferior_init): ... from here.
9961 (jit_breakpoint_re_set): Adjust.
9962 (jit_reset_inferior_data_and_breakpoints): New function.
9963 (jit_inferior_created_observer): Adjust.
9964 (jit_inferior_exit_hook): Adjust.
9965 (jit_executable_changed_observer): New function.
9966 (jit_event_handler): Adjust.
9967 (_initialize_jit): Adjust.
9968
e839132d
MS
99692011-01-31 Michael Snyder <msnyder@vmware.com>
9970
9971 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9972 line.
9973
47a80e90
TT
99742011-01-31 Tom Tromey <tromey@redhat.com>
9975
9976 PR python/12216:
9977 * python/python.c (execute_gdb_command): Call
9978 prevent_dont_repeat.
9979 * top.c (suppress_dont_repeat): New global.
9980 (dont_repeat): Use it.
9981 (prevent_dont_repeat): New function.
9982 * command.h (prevent_dont_repeat): Declare.
9983
45a43567
TT
99842011-01-31 Tom Tromey <tromey@redhat.com>
9985
9986 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9987 * python/py-breakpoint.c (bppy_set_silent): Use
9988 breakpoint_set_silent.
9989 (bppy_set_thread): Use breakpoint_set_thread.
9990 (bppy_set_task): Use breakpoint_set_task.
9991 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9992 (breakpoint_set_task): Declare.
9993 (make_breakpoint_silent): Remove.
9994 * breakpoint.c (breakpoint_set_silent): New function.
9995 (breakpoint_set_thread): Likewise.
9996 (breakpoint_set_task): Likewise.
9997 (make_breakpoint_silent): Remove.
9998
09d682a4
TT
99992011-01-31 Tom Tromey <tromey@redhat.com>
10000
10001 * breakpoint.h (user_breakpoint_p): Declare.
10002 * breakpoint.c (user_breakpoint_p): New function.
10003 (breakpoint_1): Use it.
10004 (save_breakpoints): Likewise.
10005
9c4ea6c5
JB
100062011-01-31 Joel Brobecker <brobecker@adacore.com>
10007
10008 * configure.ac: Add handling of Python distribution on Windows.
10009 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10010 sysconfig variables are not defined, then do not use them.
10011 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10012 instead. On Windows, return all paths using forward-slashes
10013 rather than backslashes.
10014
ac534cba
JB
100152011-01-31 Joel Brobecker <brobecker@adacore.com>
10016
10017 * configure.ac: Remove fallback behavior for building
10018 against Python. Remove tweaking of Python include path.
10019 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10020 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10021 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10022 Always restore CPPFLAGS and LIBS after linking test.
10023 * configure: Regenerated.
10024 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10025 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10026 * python/python-internal.h: Adjust includes of Python .h files.
10027
c2f0d045
JB
100282011-01-31 Joel Brobecker <brobecker@adacore.com>
10029
10030 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10031 in error message.
10032
6b0c4c1f
JB
100332011-01-31 Joel Brobecker <brobecker@adacore.com>
10034
10035 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10036 value test.
10037
672c9795
YQ
100382011-01-31 Yao Qi <yao@codesourcery.com>
10039
10040 * arm-linux-nat.c: Update calls to regcache_register_status
10041 instead of regcache_valid_p.
10042 * aix-thread.c: Likewise.
10043 * i386gnu-nat.c: Likewise.
10044
80b23b6a
JK
100452011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10046
10047 Fix crash.
10048 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10049 touching TYPE_FIELD_ARTIFICIAL.
10050
4cd712bd
RE
100512011-01-28 Richard Earnshaw <rearnsha@arm.com>
10052
10053 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10054 Committers.
10055
ffd5ec24
PA
100562011-01-28 Pedro Alves <pedro@codesourcery.com>
10057
10058 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10059 selected, don't try iterating over the traceframe's blocks.
10060 (tfile_has_stack): If there's no traceframe selected, then there's
10061 no stack.
10062 (tfile_has_registers): If there's no traceframe selected, then
10063 there's no registers.
10064
e8c9e0a1
PA
100652011-01-28 Pedro Alves <pedro@codesourcery.com>
10066
10067 * target.c (memory_xfer_partial): No need to restore shadows if we
10068 haven't read anything.
10069
de15c4ab
PA
100702011-01-28 Pedro Alves <pedro@codesourcery.com>
10071
10072 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10073 and val_print_scalar_formatted.
10074
9f41c731
PA
100752011-01-27 Pedro Alves <pedro@codesourcery.com>
10076
10077 * tracepoint.c (tfile_read): New.
10078 (tfile_open): Use it.
10079 (tfile_get_traceframe_address): Use it.
10080 (tfile_trace_find): Use it.
10081 (walk_blocks_callback_func): New typedef.
10082 (match_blocktype): New function.
10083 (traceframe_walk_blocks): New function.
10084 (traceframe_find_block_type): New function.
10085 (tfile_fetch_registers, tfile_xfer_partial)
10086 (tfile_get_trace_state_variable_value): Use
10087 traceframe_find_block_type and tfile_read.
10088
cdefc55d
KB
100892011-01-26 Kevin Buettner <kevinb@redhat.com>
10090
10091 * remote-mips.c: Add internationalization mark ups. Remove
10092 trailing \n from already marked up strings.
10093
a81766d8
TT
100942011-01-26 Tom Tromey <tromey@redhat.com>
10095
10096 * python/py-prettyprint.c (print_string_repr): Clear
10097 'addressprint' option when calling val_print_string.
10098 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10099 option when calling val_print_string.
10100
74aedc46
TT
101012011-01-26 Tom Tromey <tromey@redhat.com>
10102
10103 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10104 GDB_PY_LL_ARG.
10105 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10106 macros.
10107 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10108 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10109 (gdb_py_long_as_ulongest): New defines.
10110 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10111 (gdb_py_int_as_long): Declare.
10112 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10113 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10114 (valpy_long): Add comment.
10115 * python/py-utils.c (get_addr_from_python): Use
10116 gdb_py_long_as_ulongest. Handle overflow properly.
10117 (gdb_py_object_from_longest): New function.
10118 (gdb_py_object_from_ulongest): Likewise.
10119 (gdb_py_int_as_long): Likewise.
10120 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10121 * python/py-symtab.c (salpy_get_pc): Use
10122 gdb_py_long_from_ulongest.
10123 (salpy_get_line): Use PyInt_FromLong.
10124 * python/py-param.c (set_parameter_value): Use
10125 gdb_py_int_as_long.
10126 * python/py-lazy-string.c (stpy_get_address): Use
10127 gdb_py_long_from_ulongest.
10128 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10129 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10130 * python/py-breakpoint.c (bppy_set_thread): Use
10131 gdb_py_int_as_long.
10132 (bppy_set_task): Likewise.
10133 (bppy_set_ignore_count): Likewise.
10134 (bppy_set_hit_count): Likewise.
10135 * python/py-block.c (blpy_get_start): Use
10136 gdb_py_object_from_ulongest.
10137 (blpy_get_end): Likewise.
10138 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10139
e4f6d2ec
TJB
101402011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10141
10142 PR/symtab 11766:
10143 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10144 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10145 equality test for objfile, initialize addr_low if needed.
10146
b30aa278
PA
101472011-01-25 Pedro Alves <pedro@codesourcery.com>
10148
10149 * tui/tui-regs.c (tui_register_format): Remove dead code.
10150
ab2188aa
PA
101512011-01-25 Pedro Alves <pedro@codesourcery.com>
10152
10153 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10154 instead of print_scalar_formatted.
10155 (print_scalar_formatted): Don't handle 's' format strings here,
10156 and add an assertion that we never see such format here.
10157 * valprint.h (val_print_scalar_formatted): Declare.
10158 * valprint.c (val_print_scalar_formatted): New.
10159 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10160 instead of print_scalar_formatted.
10161 * jv-valprint.c (java_val_print): Ditto.
10162 * p-valprint.c (pascal_val_print): Ditto.
10163 * ada-valprint.c (ada_val_print_1): Ditto.
10164 * f-valprint.c (f_val_print): Ditto.
10165 * infcmd.c (registers_info): Ditto.
10166 * m2-valprint.c (m2_val_print): Ditto.
10167
66d61a4c
PA
101682011-01-25 Pedro Alves <pedro@codesourcery.com>
10169
10170 * m2-valprint.c (print_unbounded_array): Pass
10171 value_contents_for_printing rather than value_contents, to
10172 m2_print_array_contents. Also pass in the value.
10173
831adc1f
JK
101742011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10175
10176 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10177 (save_gdb_index_command): Switch to .gdb_index version 4.
10178
20622269
PA
101792011-01-25 Pedro Alves <pedro@codesourcery.com>
10180
10181 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10182 than frame_register, and always pass a valid value to val_print.
10183
585fdaa1
PA
101842011-01-25 Pedro Alves <pedro@codesourcery.com>
10185
10186 Centralize printing "<optimized out>".
10187
10188 * valprint.h (val_print_optimized_out): Declare.
10189 * cp-valprint.c (cp_print_value_fields): Use
10190 val_print_optimized_out.
10191 * jv-valprint.c (java_print_value_fields): Ditto.
10192 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10193 * printcmd.c (print_formatted): Ditto.
10194 * valprint.c (valprint_check_validity): Ditto.
10195 (value_check_printable): Ditto.
10196 (val_print_optimized_out): New.
10197
29ec5263
PA
101982011-01-25 Pedro Alves <pedro@codesourcery.com>
10199
10200 * infcmd.c (default_print_registers_info): Allocate values so to
10201 never pass a NULL value to val_print.
10202
de4127a3
PA
102032011-01-25 Pedro Alves <pedro@codesourcery.com>
10204
10205 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10206 boolean. Make sure to always pass a value that matches the
10207 contents buffer to callees. Preserve `address' for following
10208 iterations.
10209 * value.c (value_contents_for_printing_const): New.
10210 (value_address): Constify value argument.
10211 * value.h (value_contents_for_printing_const): Declare.
10212 (value_address): Constify value argument.
10213
ee99023e
PA
102142011-01-25 Pedro Alves <pedro@codesourcery.com>
10215
10216 * regcache.c (struct regcache_descr): Rename
10217 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10218 and sizeof_cooked_register_valid_p to
10219 sizeof_cooked_register_status.
10220 (init_regcache_descr): Adjust.
10221 (struct regcache): Rename register_valid_p field to
10222 register_status.
10223 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10224 (do_cooked_read): Adjust.
10225 (regcache_valid_p): Rename to ...
10226 (regcache_register_status): ... this. Adjust.
10227 (regcache_invalidate): Adjust.
10228 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10229 Adjust.
10230 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10231 as unavailable, not valid.
10232 (regcache_dump): Adjust.
10233 * regcache.h (enum register_status): New.
10234 (regcache_register_status): Declare.
10235 (regcache_invalidate): Delete declaration.
10236 * corelow.c (get_core_registers): Adjust.
10237 * tracepoint.c (tfile_fetch_registers): Adjust.
10238 * trad-frame.c (REG_VALUE): Rename to ...
10239 (TF_REG_VALUE): ... this.
10240 (REG_UNKNOWN): Rename to ...
10241 (TF_REG_UNKNOWN): ... this.
10242 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10243 * mi/mi-main.c (register_changed_p): Adjust.
10244
99e42fd8
PA
102452011-01-25 Pedro Alves <pedro@codesourcery.com>
10246
10247 * regcache.c (struct regcache_descr): Remove outdated comment.
10248 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10249 overallocate hack.
10250 (regcache_xmalloc): Rename to ...
10251 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10252 Allocate the regcache type accordingly.
10253 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10254 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10255 cooked registers, not raw.
10256 (regcache_dup_no_passthrough): Delete.
10257 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10258 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10259 mention obsolete write_register_bytes.
10260 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10261
f7605bc2
PA
102622011-01-25 Pedro Alves <pedro@codesourcery.com>
10263
10264 Stop remote_read_bytes from handling partial reads itself.
10265
10266 * remote-fileio.c: Include target.h.
10267 (remote_fileio_write_bytes): Delete.
10268 (remote_fileio_func_open, remote_fileio_func_write)
10269 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10270 target_read_memory.
10271 (remote_fileio_func_stat): Use target_read_memory and
10272 target_write_memory.
10273 (remote_fileio_func_gettimeofday): Use target_write_memory.
10274 (remote_fileio_func_system): Use target_read_memory.
10275 * remote.c (remote_write_bytes): Make it static.
10276 (remote_read_bytes): Don't handle partial reads here.
10277 * remote.h (remote_read_bytes): Delete declaration.
10278
efc0eabd
PA
102792011-01-25 Pedro Alves <pedro@codesourcery.com>
10280
10281 Simplify XML parsing a bit.
10282
10283 * xml-support.h (gdb_xml_parse_quick): Declare.
10284 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10285 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10286 parameter.
10287 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10288 gdb_xml_create_parser_and_cleanup_1.
10289 (gdb_xml_parse_quick): New.
10290 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10291 * osdata.c (osdata_parse): Ditto.
10292 * remote.c (remote_threads_info): Ditto.
10293 * solib-target.c (solib_target_parse_libraries): Ditto.
10294 * xml-syscall.c (syscall_parse_xml): Ditto.
10295 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10296
314d366a
KB
102972011-01-24 Kevin Buettner <kevinb@redhat.com>
10298
10299 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10300 with remote-mips.o added to gdb_target_obs.
10301 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10302
a491d753
PA
103032011-01-24 Pedro Alves <pedro@codesourcery.com>
10304
10305 * ada-valprint.c (val_print_packed_array_elements): Pass the
10306 correct struct value to val_print.
10307 (ada_val_print_1): Ditto.
10308
490f124f
PA
103092011-01-24 Pedro Alves <pedro@codesourcery.com>
10310
10311 Don't lose embedded_offset in printing routines throughout.
10312
10313 * valprint.h (val_print_array_elements): Change prototype.
10314 * valprint.c (val_print_array_elements): Add `embedded_offset'
10315 parameter, and adjust to pass it down to val_print, while passing
10316 `valaddr' or `address' unmodified. Take embedded_offset into
10317 account when checking repetitions.
10318 * c-valprint.c (c_val_print): Pass embedded_offset to
10319 val_print_array_elements instead of adjusting `valaddr' and
10320 `address'.
10321 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10322 embedded_offset to val_print_array_elements instead of adjusting
10323 `valaddr'.
10324 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10325 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10326 val_print_array_elements and pascal_object_print_value_fields
10327 instead of adjusting `valaddr'.
10328 (pascal_object_print_value_fields): Add `offset' parameter, and
10329 adjust to use it.
10330 (pascal_object_print_value): Add `offset' parameter, and adjust to
10331 use it.
10332 (pascal_object_print_static_field): Use
10333 value_contents_for_printing/value_embedded_offset, rather than
10334 value_contents.
10335 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10336 parameter, and adjust to use it. Use
10337 value_contents_for_printing/value_embedded_offset, rather than
10338 value_contents.
10339 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10340 (ada_val_print_array): Add `offset' parameter, and adjust to use
10341 it.
10342 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10343 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10344 Instead work with offsets. Use
10345 value_contents_for_printing/value_embedded_offset, rather than
10346 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10347 and use value_from_pointer to extract a target pointer, rather
10348 than value_from_longest.
10349 (print_variant_part): Add `offset' parameter. Replace
10350 `outer_valaddr' parameter by a new `outer_offset' parameter.
10351 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10352 (ada_value_print): Use
10353 value_contents_for_printing/value_embedded_offset, rather than
10354 value_contents.
10355 (print_record): Add `offset' parameter, and adjust to pass it
10356 down.
10357 (print_field_values): Add `offset' parameter. Replace
10358 `outer_valaddr' parameter by a new `outer_offset' parameter.
10359 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10360 Use value_contents_for_printing/value_embedded_offset, rather than
10361 value_contents.
10362 * d-valprint.c (dynamic_array_type): Use
10363 value_contents_for_printing/value_embedded_offset, rather than
10364 value_contents.
10365 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10366 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10367 (java_print_value_fields): Take `offset' into account. Don't
10368 re-adjust `valaddr'. Instead pass down adjusted offsets.
10369 (java_val_print): Take `embedded_offset' into account. Pass it to
10370 java_print_value_fields.
10371 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10372 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10373 down adjusted offsets.
10374 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10375 (f_val_print): Take `embedded_offset' into account.
10376
7bfc9434
JB
103772011-01-21 Joel Brobecker <brobecker@adacore.com>
10378
10379 * inflow.c: Include "gdbcmd.h".
10380 (interactive_mode): New static global, moved here from top.c.
10381 (show_interactive_mode): New function, moved here from top.c.
10382 use gdb_has_a_terminal instead of input_from_terminal_p to
10383 determine the current mode.
10384 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10385 setting.
10386 (_initialize_inflow): Add the "set/show interactive-mode"
10387 commands. Moved here from top.c, after having adjusted slightly
10388 the help text.
10389 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10390 to inflow.c.
10391 (input_from_terminal_p): Remove handling of "interactive-mode"
10392 setting, moved to infow.c.
10393 (init_main): Remove creation of the "set/show interactive-mode"
10394 commands, moved to inflow.c.
10395
44603653
JB
103962011-01-19 Joel Brobecker <brobecker@adacore.com>
10397
10398 * NEWS: Add entry for native ia64-hpux support.
10399
4694da01
TT
104002011-01-19 Tom Tromey <tromey@redhat.com>
10401
10402 PR mi/8618:
10403 * thread.c (free_thread): Free 'name'.
10404 (print_thread_info): Emit thread name. Change CLI output.
10405 (thread_name_command): New function.
10406 (do_captured_thread_select): Emit newline.
10407 (_initialize_thread): Register 'thread name' command.
10408 * target.h (struct target_ops) <to_thread_name>: New field.
10409 (target_thread_name): New macro.
10410 * target.c (update_current_target): Handle to_thread_name.
10411 * python/py-infthread.c (thpy_get_name): New function.
10412 (thpy_set_name): Likewise.
10413 (thread_object_getset): Add "name".
10414 * linux-nat.c (linux_nat_thread_name): New function.
10415 (linux_nat_add_target): Set to_thread_name.
10416 * gdbthread.h (struct thread_info) <name>: New field.
10417
10d44370
JB
104182011-01-18 Joel Brobecker <brobecker@adacore.com>
10419
10420 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10421 (ada_val_print_1): Likewise.
10422
e3acb115
JB
104232011-01-18 Joel Brobecker <brobecker@adacore.com>
10424
10425 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10426 upper limit address is not greater than the function end address
10427 when the upper limit could not be computed using the debugging
10428 info.
10429
dc92e161
TT
104302011-01-17 Tom Tromey <tromey@redhat.com>
10431
10432 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10433 get_regcomp_error.
10434 * utils.c: Include gdb_regex.h.
10435 (do_regfree_cleanup): New function.
10436 (make_regfree_cleanup): Likewise.
10437 (get_regcomp_error): Likewise.
10438 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10439
f55af66d
TT
104402011-01-17 Tom Tromey <tromey@redhat.com>
10441
10442 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10443 re_compile_fastmap.
10444
a5a44b53
PM
104452011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10446
10447 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10448 for internal variables.
10449 (last_was_structop): New static variable.
10450 (COMPLETE): New token.
10451 (field_exp): New rule to group all '.' suffix handling.
10452 Add mark_struct_expression calls when approriate to be able
10453 to correctly find fields for completion.
10454 (yylex): Adapt to handle field completion and set INTVAR when
10455 required.
10456
2c291032
YQ
104572011-01-14 Yao Qi <yao@codesourcery.com>
10458
10459 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10460 save_reggroup, restore_reggroup and all_reggroup.
10461
447b483c
JB
104622011-01-14 Joel Brobecker <brobecker@adacore.com>
10463
10464 * ada-valprint. (ada_printchar): Use the correct type length
10465 in call to ada_emit_char.
10466 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10467
7b64a93b
PM
104682011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10469
10470 * solib-som.h (hpux_major_release): Declare variable here.
10471 * solib-som.c: Remove <sys/utsname.h> header.
10472 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10473 (hpux_major_release): Make global, change default value to
10474 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10475 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10476 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10477 Add "solib-som.h" header.
10478 (set_hpux_major_release): New function.
10479 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10480
4e18c053
MF
104812011-01-14 Mike Frysinger <vapier@gentoo.org>
10482
10483 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10484
a9df6b22
JB
104852011-01-14 Joel Brobecker <brobecker@adacore.com>
10486
10487 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10488 new-line at end of warning message.
10489 (ia64_hpux_store_register): Remove trailing new-line at end of
10490 error message.
10491 * ia64-hpux-tdep.c: Rephrase comment.
10492 * solib-ia64-hpux.c (struct dld_info): Change type of field
10493 dld_flags from "long long" to ULONGEST.
10494
ecb956dd
PA
104952011-01-14 Pedro Alves <pedro@codesourcery.com>
10496
10497 * target.h (deprecated_child_ops): Delete declaration.
10498 * target.c (deprecated_child_ops): Delete definition.
10499
76adfcae
PA
105002011-01-14 Pedro Alves <pedro@codesourcery.com>
10501
10502 * Makefile.in (hpux-thread.o): Delete rule.
10503 * configure.ac: Don't check for HPUX DCE threads support.
10504 * configure, config.in: Regenerate.
10505 * hppa-hpux-nat.c (child_suppress_run): Delete.
10506 (hppa_hpux_child_can_run): Delete.
10507 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10508 * hpux-thread.c: Delete.
10509
042e866e
JB
105102011-01-13 Joel Brobecker <brobecker@adacore.com>
10511
10512 * hpux-thread.c (hpux_pid_to_str): Delete.
10513
4ffa5a33
JB
105142011-01-13 Joel Brobecker <brobecker@adacore.com>
10515
10516 * ada-valprint.c (ada_emit_char): Remove strange code.
10517 Check that c is <= UCHAR_MAX before passing it to isascii.
10518 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10519
de8fa76c
JB
105202011-01-13 Joel Brobecker <brobecker@adacore.com>
10521
10522 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10523 to the case where instream is stdin.
10524
c4de7027
JB
105252011-01-13 Joel Brobecker <brobecker@adacore.com>
10526
10527 * ia64-tdep.h (struct regcache): Forward declare.
10528 (struct ia64_infcall_ops): New struct type.
10529 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10530 and "infcall_ops".
10531 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10532 Renames ia64_find_global_pointer.
10533 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10534 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10535 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10536 methods.
10537 (ia64_infcall_ops): New static global constant.
10538 (ia64_gdbarch_init): Set tdep->infcall_ops.
10539 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10540 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10541 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10542 (ia64_hpux_dummy_code): New static global constant.
10543 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10544 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10545 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10546 New function.
10547 (ia64_hpux_infcall_ops): New static global constant.
10548 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10549 for inferior function calls to work properly on ia64-hpux.
10550
77ca787b
JB
105512011-01-13 Joel Brobecker <brobecker@adacore.com>
10552
10553 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10554 * ia64-tdep.h (struct frame_info): forward declaration.
10555 (struct gdbarch_tdep): Add field size_of_register_frame.
10556 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10557 to determine the size of the register frame.
10558 (ia64_size_of_register_frame): New function.
10559 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10560 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10561 (IA64_HPUX_UREG_REASON): New macro.
10562 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10563 New functions.
10564 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10565 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10566 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10567 objects.
10568
92c9a463
JB
105692011-01-13 Joel Brobecker <brobecker@adacore.com>
10570
10571 Add support for ia64-hpux.
10572 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10573 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10574
10575 * configure.host: Add handling for ia64-hpux hosts. Add associated
10576 floatformats.
10577 * configure.tgt: Add handling for ia64-hpux targets.
10578 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10579 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10580 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10581
f688d93f
JB
105822011-01-13 Joel Brobecker <brobecker@adacore.com>
10583
10584 [ttrace] Compute thread list immediately after attach.
10585 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10586 New subprogram.
10587 (inf_ttrace_attach): Use it.
10588
1b89e62f
JB
105892011-01-13 Joel Brobecker <brobecker@adacore.com>
10590
10591 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10592 if we could not determine the frame's function address. Instead,
10593 use the frame's PC, and then continue.
10594
3e5e6e2a
JB
105952011-01-13 Joel Brobecker <brobecker@adacore.com>
10596
10597 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10598 not already defined.
10599
825d6d8a
JB
106002011-01-13 Joel Brobecker <brobecker@adacore.com>
10601
10602 * ia64-tdep.c (ia64_struct_type_p): New function.
10603 (ia64_extract_return_value): Handle integral values that are
10604 less than 8 bytes long.
10605 (ia64_push_dummy_call): Likewise.
10606
7458e667
JB
106072011-01-13 Joel Brobecker <brobecker@adacore.com>
10608
10609 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10610 floatformat_ia64_ext.
10611 (floatformat_ia64_ext_big): New static const.
10612 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10613
1b05df00
TT
106142011-01-12 Tom Tromey <tromey@redhat.com>
10615
10616 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10617 messages.
10618 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10619 (mi_cmd_thread_list_ids): Likewise.
10620 (mi_cmd_data_list_changed_registers): Likewise.
10621 (mi_cmd_data_list_register_values): Likewise.
10622 (mi_cmd_data_write_register_values): Likewise.
10623 (mi_cmd_data_evaluate_expression): Likewise.
10624 (mi_cmd_data_read_memory): Likewise.
10625 (mi_cmd_data_read_memory_bytes): Likewise.
10626 (mi_cmd_data_write_memory): Likewise.
10627 (mi_cmd_enable_timings): Likewise.
10628 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10629 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10630 (mi_cmd_var_delete): Likewise.
10631 (mi_cmd_var_set_format): Likewise.
10632 (mi_cmd_var_show_format): Likewise.
10633 (mi_cmd_var_info_num_children): Likewise.
10634 (mi_cmd_var_list_children): Likewise.
10635 (mi_cmd_var_info_type): Likewise.
10636 (mi_cmd_var_info_expression): Likewise.
10637 (mi_cmd_var_show_attributes): Likewise.
10638 (mi_cmd_var_assign): Likewise.
10639 (mi_cmd_var_update): Likewise.
10640 (mi_cmd_enable_pretty_printing): Likewise.
10641 (mi_cmd_var_set_update_range): Likewise.
10642 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10643 messages.
10644 (mi_cmd_target_file_put): Likewise.
10645 (mi_cmd_target_file_delete): Likewise.
10646 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10647 messages.
10648 (mi_cmd_stack_info_depth): Likewise.
10649 (mi_cmd_stack_list_locals): Likewise.
10650 (mi_cmd_stack_list_args): Likewise.
10651 (mi_cmd_stack_select_frame): Likewise.
10652 (mi_cmd_stack_select_frame): Likewise.
10653 (mi_cmd_stack_info_frame): Likewise.
10654 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10655 messages.
10656 (mi_cmd_file_list_exec_source_files): Likewise.
10657 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10658 (mi_cmd_env_cd): Likewise.
10659 (mi_cmd_env_path): Likewise.
10660 (mi_cmd_env_dir): Likewise.
10661 (mi_cmd_inferior_tty_show): Likewise.
10662 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10663 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10664 (mi_cmd_break_watch): Likewise.
10665
ad422571
TJB
106662011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10667
10668 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10669 (ppc_linux_insert_hw_breakpoint): Likewise.
10670 (ppc_linux_remove_hw_breakpoint): Likewise.
10671 (ppc_linux_insert_watchpoint): Likewise.
10672
c2ff108b
JK
106732011-01-12 Andrew Burgess <aburgess@broadcom.com>
10674 Jan Kratochvil <jan.kratochvil@redhat.com>
10675
10676 PR fortran/11104 and DWARF unbound arrays detection.
10677 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10678 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10679 unspecified upper bound.
10680 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10681 variables array_size_array, tmp_type and offset_item. New variable
10682 array. Remove call to f77_get_upperbound. New variables array_type
10683 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10684 the final call to deprecated_set_value_type.
10685
41e8491f
JK
106862011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10687
10688 Make value allocations more lazy.
10689 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10690 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10691 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10692 instead of allocate_value and set_value_lazy.
10693 * findvar.c (value_of_register_lazy): Likewise.
10694 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10695 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10696 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10697 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10698 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10699 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10700 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10701 the end, remove set_value_lazy there.
10702 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10703 instead of allocate_value and set_value_lazy when possible.
10704 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10705 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10706 of allocate_value and set_value_lazy.
10707 (value_from_contents_and_address): Use allocate_value_lazy instead of
10708 allocate_value and set_value_lazy when possible.
10709
b716877b
AB
107102011-01-12 Andrew Burgess <aburgess@broadcom.com>
10711
10712 * disasm.c (dump_insns): Support dumping opcodes for MI.
10713 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10714 dumping of instruction opcodes.
10715
d5ae309f
JB
107162011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10717
10718 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10719 appropiately.
10720
98871305
TT
107212011-01-11 Tom Tromey <tromey@redhat.com>
10722
10723 * thread.c (do_captured_thread_select): Emit newline before
10724 printing frame.
10725
c378eb4e
MS
107262011-01-11 Michael Snyder <msnyder@vmware.com>
10727
10728 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10729 * score-tdep.c: Ditto.
10730 * score-tdep.h: Ditto.
10731 * ser-base.c: Ditto.
10732 * ser-go32.c: Ditto.
10733 * serial.c: Ditto.
10734 * serial.h: Ditto.
10735 * ser-mingw.c: Ditto.
10736 * ser-pipe.c: Ditto.
10737 * ser-tcp.c: Ditto.
10738 * ser-unix.c: Ditto.
10739 * sh64-tdep.c: Ditto.
10740 * shnbsd-nat.c: Ditto.
10741 * sh-tdep.c: Ditto.
10742 * sh-tdep.h: Ditto.
10743 * solib.c: Ditto.
10744 * solib-darwin.c: Ditto.
10745 * solib-frv.c: Ditto.
10746 * solib.h: Ditto.
10747 * solib-irix.c: Ditto.
10748 * solib-osf.c: Ditto.
10749 * solib-pa64.c: Ditto.
10750 * solib-som.c: Ditto.
10751 * solib-spu.c: Ditto.
10752 * solib-sunos.c: Ditto.
10753 * solib-svr4.c: Ditto.
10754 * solist.h: Ditto.
10755 * sol-thread.c: Ditto.
10756 * somread.c: Ditto.
10757 * source.c: Ditto.
10758 * source.h: Ditto.
10759 * sparc64-linux-tdep.c: Ditto.
10760 * sparc64-tdep.c: Ditto.
10761 * sparc-linux-nat.c: Ditto.
10762 * sparc-linux-tdep.c: Ditto.
10763 * sparc-sol2-nat.c: Ditto.
10764 * sparc-sol2-tdep.c: Ditto.
10765 * sparc-tdep.c: Ditto.
10766 * sparc-tdep.h: Ditto.
10767 * spu-tdep.c: Ditto.
10768 * stabsread.c: Ditto.
10769 * stabsread.h: Ditto.
10770 * stack.c: Ditto.
10771 * symfile.c: Ditto.
10772 * symfile.h: Ditto.
10773 * symmisc.c: Ditto.
10774 * symtab.c: Ditto.
10775 * symtab.h: Ditto.
10776 * target.c: Ditto.
10777 * target-descriptions.c: Ditto.
10778 * target-descriptions.h: Ditto.
10779 * target.h: Ditto.
10780 * target-memory.c: Ditto.
10781 * terminal.h: Ditto.
10782 * thread.c: Ditto.
10783 * top.c: Ditto.
10784 * tracepoint.c: Ditto.
10785 * tracepoint.h: Ditto.
10786 * trad-frame.h: Ditto.
10787 * typeprint.c: Ditto.
10788
581e13c1
MS
107892011-01-11 Michael Snyder <msnyder@vmware.com>
10790
10791 * ui-file.c: Comment cleanup, mostly periods and spaces.
10792 * ui-file.h: Ditto.
10793 * ui-out.c: Ditto.
10794 * ui-out.h: Ditto.
10795 * utils.c: Ditto.
10796 * v850-tdep.c: Ditto.
10797 * valarith.c: Ditto.
10798 * valops.c: Ditto.
10799 * valprint.c: Ditto.
10800 * valprint.h: Ditto.
10801 * value.c: Ditto.
10802 * value.h: Ditto.
10803 * varobj.c: Ditto.
10804 * varobj.h: Ditto.
10805 * vax-tdep.c: Ditto.
10806 * vec.c: Ditto.
10807 * vec.h: Ditto.
10808 * version.h: Ditto.
10809 * windows-nat.c: Ditto.
10810 * windows-tdep.c: Ditto.
10811 * xcoffread.c: Ditto.
10812 * xcoffsolib.c: Ditto.
10813 * xml-support.c: Ditto.
10814 * xstormy16-tdep.c: Ditto.
10815 * xtensa-tdep.c: Ditto.
10816 * xtensa-tdep.h: Ditto.
10817
90e4670f
TJB
108182011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10819
10820 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10821 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10822
e09342b5
TJB
108232011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10824 Thiago Jung Bauermann <bauerman@br.ibm.com>
10825
10826 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10827 * breakpoint.h
e09342b5
TJB
10828 (struct breakpoint_ops) <resources_needed>: New method.
10829 Initialize to NULL in all existing breakpoint_ops instances.
10830 (struct breakpoint) <exact>: New field.
10831 (target_exact_watchpoints): Declare external global.
10832 * breakpoint.c (target_exact_watchpoints): New global flag.
10833 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10834 b->enable_state to bp_enabled before calling
10835 hw_watchpoint_used_count.
10836 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10837 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10838 if available.
10839 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10840 if the watchpoint is exact.
10841 (resources_needed_watchpoint): New function.
10842 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10843 (watch_command_1): Set b->exact if the user asked for an exact
10844 watchpoint and one can be set.
10845 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10846 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10847 the user asks for an exact watchpoint and one can be set. Return
10848 number of needed debug registers to watch the expression.
10849 * gdbtypes.c (is_scalar_type): New function, based on
10850 valprint.c:scalar_type_p.
10851 (is_scalar_type_recursive): New function.
10852 * gdbtypes.h (is_scalar_type_recursive): Declare.
10853 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10854 handle regions when ranged watchpoints are available.
10855 (create_watchpoint_request): New function.
10856 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10857 create_watchpoint_request.
10858 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10859 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10860 `set powerpc' and `show powerpc' commands.
10861 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10862 Mention documentation comment in the target macro.
10863 (target_region_ok_for_hw_watchpoint): Document return value.
10864
9fa40276
TJB
108652011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10866
10867 * breakpoint.c (update_watchpoint): Decide on using a software or
10868 hardware watchpoint after the bp_locations are created.
10869
77b06cd7
TJB
108702010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10871
10872 Convert hardware watchpoints to use breakpoint_ops.
10873 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10874 <insert_location>: ... this. Return int instead of void.
10875 Accept pointer to struct bp_location instead of pointer to
10876 struct breakpoint. Adapt all implementations.
f2eb0bc8 10877 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10878 <remove_location>: ... this. Accept pointer to struct bp_location
10879 instead of pointer to struct breakpoint. Adapt all implementations.
10880 * breakpoint.c (insert_catchpoint): Delete function.
10881 (insert_bp_location): Call the watchpoint or catchpoint's
10882 breakpoint_ops.insert method.
10883 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10884 breakpoint_ops.remove method.
10885 (insert_watchpoint, remove_watchpoint): New functions.
10886 (watchpoint_breakpoint_ops): New structure.
10887 (watch_command_1): Initialize the OPS field.
10888 * inf-child.c (inf_child_insert_fork_catchpoint)
10889 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10890 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10891 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10892 Delete functions.
10893 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10894 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10895 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10896 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10897 * target.c (update_current_target): Change default implementation of
10898 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10899 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10900 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10901 to_set_syscall_catchpoint to return_one.
10902 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10903 (debug_to_insert_exec_catchpoint): Report return value.
10904 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10905 (to_insert_exec_catchpoint): Change declaration to return int instead
10906 of void.
10907
9b20d036
MS
109082011-01-11 Michael Snyder <msnyder@vmware.com>
10909
10910 * arm-tdep.c: Internationalization.
10911 * c-lang.c: Ditto.
10912 * charset.c: Ditto.
10913 * fork-child.c: Ditto.
10914 * nto-procfs.c: Ditto.
10915 * ppc-sysv-tdep.c: Ditto.
10916 * procfs.c: Ditto.
10917 * remote-mips.c: Ditto.
10918 * remote.c: Ditto.
10919 * rs6000-nat.c: Ditto.
10920 * rs6000-tdep.c: Ditto.
10921 * target.c: Ditto.
10922 * valops.c: Ditto.
10923 * value.c: Ditto.
10924 * xml-support.c: Ditto.
10925 * mi/mi-cmd-break.c: Ditto.
10926 * mi/mi-cmd-var.c: Ditto.
10927 * mi/mi-interp.c: Ditto.
10928 * mi/mi-main.c: Ditto.
10929
dae477fe
AB
109302011-01-11 Andrew Burgess <aburgess@broadcom.com>
10931
10932 * remote-sim.c (gdbsim_store_register): Update API to
10933 sim_store_register to check more error conditions.
10934
0df8b418
MS
109352011-01-10 Michael Snyder <msnyder@vmware.com>
10936
10937 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10938 * nto-tdep.c: Ditto.
10939 * nto-tdep.h: Ditto.
10940 * objc-exp.y: Ditto.
10941 * objc-lang.c: Ditto.
10942 * objfiles.c: Ditto.
10943 * objfiles.h: Ditto.
10944 * observer.c: Ditto.
10945 * opencl-lang.c: Ditto.
10946 * osabi.c: Ditto.
10947 * parse.c: Ditto.
10948 * parser-defs.h: Ditto.
10949 * p-exp.y: Ditto.
10950 * p-lang.c: Ditto.
10951 * posix-hdep.c: Ditto.
10952 * ppcbug-rom.c: Ditto.
10953 * ppc-linux-nat.c: Ditto.
10954 * ppc-linux-tdep.c: Ditto.
10955 * ppc-linux-tdep.h: Ditto.
10956 * ppcnbsd-tdep.c: Ditto.
10957 * ppcobsd-tdep.c: Ditto.
10958 * ppcobsd-tdep.h: Ditto.
10959 * ppc-sysv-tdep.c: Ditto.
10960 * ppc-tdep.h: Ditto.
10961 * printcmd.c: Ditto.
10962 * proc-abi.c: Ditto.
10963 * proc-flags.c: Ditto.
10964 * procfs.c: Ditto.
10965 * proc-utils.h: Ditto.
10966 * progspace.h: Ditto.
10967 * prologue-value.c: Ditto.
10968 * prologue-value.h: Ditto.
10969 * psympriv.h: Ditto.
10970 * psymtab.c: Ditto.
10971 * p-typeprint.c: Ditto.
10972 * p-valprint.c: Ditto.
10973 * ravenscar-sparc-thread.c: Ditto.
10974 * ravenscar-thread.c: Ditto.
10975 * ravenscar-thread.h: Ditto.
10976 * record.c: Ditto.
10977 * regcache.c: Ditto.
10978 * regcache.h: Ditto.
10979 * remote.c: Ditto.
10980 * remote-fileio.c: Ditto.
10981 * remote-fileio.h: Ditto.
10982 * remote.h: Ditto.
10983 * remote-m32r-sdi.c: Ditto.
10984 * remote-mips.c: Ditto.
10985 * remote-sim.c: Ditto.
10986 * rs6000-aix-tdep.c: Ditto.
10987 * rs6000-nat.c: Ditto.
10988 * rs6000-tdep.c: Ditto.
10989
0d7a18f7
MS
109902011-01-10 Michael Snyder <msnyder@vmware.com>
10991
10992 * charset.c (validate): Internationalization.
10993 * coffread.c (read_one_sym): Ditto.
10994 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10995 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10996 * inflow.c (new_tty): Ditto.
10997 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10998 * m32c-tdep.c (m32c_return_value): Ditto.
10999 * mep-tdep.c (mep_store_return_value): Ditto.
11000 * score-tdep.c (score7_fetch_insn): Ditto.
11001 * ser-mingw.c (pipe_windows_open): Ditto.
11002 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11003 * spu-tdep.c (spu_register_type): Ditto.
11004 * tracepoint.c (trace_find_command): Ditto.
11005 * valarith.c (value_pos): Ditto.
11006
9a153e0b
JB
110072011-01-10 Joel Brobecker <brobecker@adacore.com>
11008
11009 * ada-valprint.c (printstr): Minor comment reformatting.
11010
35ecd2d6
MS
110112011-01-08 Michael Snyder <msnyder@vmware.com>
11012
11013 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11014 markup.
11015
1777feb0
MS
110162011-01-08 Michael Snyder <msnyder@vmware.com>
11017
11018 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11019 * hppa-hpux-tdep.c: Ditto.
11020 * hppa-linux-nat.c: Ditto.
11021 * hppa-linux-tdep.c: Ditto.
11022 * hppanbsd-tdep.c: Ditto.
11023 * hppa-tdep.c: Ditto.
11024 * hppa-tdep.h: Ditto.
11025 * hpux-thread.c: Ditto.
11026 * i386-cygwin-tdep.c: Ditto.
11027 * i386-darwin-nat.c: Ditto.
11028 * i386gnu-nat.c: Ditto.
11029 * i386-linux-nat.c: Ditto.
11030 * i386-linux-tdep.c: Ditto.
11031 * i386-nat.c: Ditto.
11032 * i386-nat.h: Ditto.
11033 * i386nbsd-tdep.c: Ditto.
11034 * i386-sol2-nat.c: Ditto.
11035 * i386-stub.c: Ditto.
11036 * i386-tdep.c: Ditto.
11037 * i386-tdep.h: Ditto.
11038 * i387-tdep.c: Ditto.
11039 * ia64-linux-nat.c: Ditto.
11040 * ia64-linux-tdep.c: Ditto.
11041 * ia64-tdep.c: Ditto.
11042 * infcall.c: Ditto.
11043 * infcall.h: Ditto.
11044 * infcmd.c: Ditto.
11045 * inferior.c: Ditto.
11046 * inferior.h: Ditto.
11047 * infloop.c: Ditto.
11048 * inflow.c: Ditto.
11049 * infrun.c: Ditto.
11050 * interps.c: Ditto.
11051 * interps.h: Ditto.
11052 * iq2000-tdep.c: Ditto.
11053 * irix5-nat.c: Ditto.
11054 * jit.c: Ditto.
11055 * jit.h: Ditto.
11056 * jv-exp.y: Ditto.
11057 * jv-lang.c: Ditto.
11058 * jv-lang.h: Ditto.
11059 * jv-typeprint.c: Ditto.
11060 * jv-valprint.c: Ditto.
11061 * language.c: Ditto.
11062 * language.h: Ditto.
11063 * linespec.c: Ditto.
11064 * linux-fork.c: Ditto.
11065 * linux-nat.c: Ditto.
11066 * linux-thread-db.c: Ditto.
11067 * lm32-tdep.c: Ditto.
11068
025bb325
MS
110692011-01-08 Michael Snyder <msnyder@vmware.com>
11070
11071 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11072 * m2-lang.c: Ditto.
11073 * m2-typeprint.c: Ditto.
11074 * m2-valprint.c: Ditto.
11075 * m32c-tdep.c: Ditto.
11076 * m32r-linux-nat.c: Ditto.
11077 * m32r-rom.c: Ditto.
11078 * m32r-tdep.c: Ditto.
11079 * m32r-tdep.h: Ditto.
11080 * m68hc11-tdep.c: Ditto.
11081 * m58klinux-nat.c: Ditto.
11082 * m68k-tdep.c: Ditto.
11083 * m88k-tdep.c: Ditto.
11084 * m88k-tdep.h: Ditto.
11085 * machoread.c: Ditto.
11086 * macrocmd.c: Ditto.
11087 * macroexp.c: Ditto.
11088 * macrotab.c: Ditto.
11089 * main.c: Ditto.
11090 * maint.c: Ditto.
11091 * mdebugread.c: Ditto.
11092 * mdebugread.h: Ditto.
11093 * memattr.c: Ditto.
11094 * memattr.h: Ditto.
11095 * memory-map.h: Ditto.
11096 * mep-tdep.c: Ditto.
11097 * microblaze-rom.c: Ditto.
11098 * microblaze-tdep.c: Ditto.
11099 * minsyms.c: Ditto.
11100 * mips-irix-tdep.c: Ditto.
11101 * mips-linux-nat.c: Ditto.
11102 * mips-linux-tdep.c: Ditto.
11103 * mips-linux-tdep.h: Ditto.
11104 * mipsnbsd-nat.c: Ditto.
11105 * mipsnbsd-tdep.c: Ditto.
11106 * mipsread.c: Ditto.
11107 * mips-tdep.c: Ditto.
11108 * mips-tdep.h: Ditto.
11109 * mn10300-linux-tdep.c: Ditto.
11110 * mn10300-tdep.c: Ditto.
11111 * mn10300-tdep.h: Ditto.
11112 * monitor.c: Ditto.
11113 * monitor.h: Ditto.
11114 * moxie-tdep.c: Ditto.
11115 * moxie-tdep.h: Ditto.
11116 * mt-tdep.c: Ditto.
11117
1642781b
MF
111182011-01-08 Mike Frysinger <vapier@gentoo.org>
11119
11120 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11121
394b0adb
JB
111222011-01-08 Robert Millan <rmh@gnu.org>
11123
11124 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11125
b670013c
MS
111262011-01-07 Michael Snyder <msnyder@vmware.com>
11127
11128 * charset.c (_initialize_charset): Fix typo in string.
11129
a743e542
MS
111302011-01-07 Michael Snyder <msnyder@vmware.com>
11131
11132 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11133 for i18n.
f2eb0bc8 11134 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11135 Split line so that operator goes to beginning of line.
11136 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11137 assignment out of if statement.
11138
0963b4bd
MS
111392011-01-07 Michael Snyder <msnyder@vmware.com>
11140
11141 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11142 * ada-lang.h: Ditto.
11143 * ada-tasks.c: Ditto.
11144 * ada-valprint.c: Ditto.
11145 * aix-threads.c: Ditto.
11146 * alpha-linux-nat.c: Ditto.
11147 * alpha-linux-tdep.c: Ditto.
11148 * alpha-mdebug-tdep.c: Ditto.
11149 * alpha-nat.c: Ditto.
11150 * alpha-osf1-tdep.c: Ditto.
11151 * alpha-tdep.c: Ditto.
11152 * alphabsd-nat.c: Ditto.
11153 * alphabsd-tdep.c: Ditto.
11154 * amd64-darwin-tdep.c: Ditto.
11155 * amd64-linux-nat.c: Ditto.
11156 * amd64-linux-tdep.c: Ditto.
11157 * amd64-sol2-tdep.c: Ditto.
11158 * amd64-tdep.c: Ditto.
11159 * amd64-fbsd-tdep.c: Ditto.
11160 * amd64-nbsd-tdep.c: Ditto.
11161 * amd64-obsd-tdep.c: Ditto.
11162 * amd64-linux-nat.c: Ditto.
11163 * amd64-linux-tdep.c: Ditto.
11164 * arm-tdep.c: Ditto.
11165 * arm-tdep.h: Ditto.
11166 * armnbsd-nat.c: Ditto.
11167 * avr-tdep.c: Ditto.
11168 * bfin-tdep.c: Ditto.
11169 * bsd-kvm.c: Ditto.
11170 * c-typeprintc: Ditto.
11171 * c-valprint.c: Ditto.
11172 * coff-pe-read.h: Ditto.
11173 * coffreead.c: Ditto.
11174 * cris-tdep.c: Ditto.
11175 * d-lang.c: Ditto.
11176 * darwin-nat-info.c: Ditto.
11177 * darwin-nat.c: Ditto.
11178 * dbug-rom.c: Ditto.
11179 * dbxread.c: Ditto.
11180 * dcache.c: Ditto.
11181 * dcache.h: Ditto.
11182 * dec-thread.c: Ditto.
11183 * defs.h: Ditto.
11184 * demangle.c: Ditto.
11185 * dicos-tdep.c: Ditto.
11186 * dictionary.c: Ditto.
11187 * dictionary.h: Ditto.
11188 * dink32-rom.c: Ditto.
11189 * disasm.c: Ditto.
11190 * doublest.c: Ditto.
11191 * dsrec.c: Ditto.
11192 * dummy-frame.c: Ditto.
11193 * dwarf2-frame.c: Ditto.
11194 * dwarf2expr.c: Ditto.
11195 * dwarf2loc.c: Ditto.
11196 * dwarf2read.c: Ditto.
11197 * elfread.c: Ditto.
11198 * environ.c: Ditto.
11199 * eval.c: Ditto.
11200 * event-top.h: Ditto.
11201 * exceptions.c: Ditto.
11202 * exceptions.h: Ditto.
11203 * exec.c: Ditto.
11204 * expprint.c: Ditto.
11205 * expression.h: Ditto.
11206 * f-exp.y: Ditto.
11207 * f-lang.c: Ditto.
11208 * f-lang.h: Ditto.
11209 * f-typeprint.c: Ditto.
11210 * f-valprint.c: Ditto.
11211 * fbsd-nat.c: Ditto.
11212 * findvar.c: Ditto.
11213 * fork-child.c: Ditto.
11214 * frame.c: Ditto.
11215 * frame.h: Ditto.
11216 * frv-linux-tdep.c: Ditto.
11217 * frv-tdep.c: Ditto.
11218 * gcore.c: Ditto.
11219 * gdb-stabs.h: Ditto.
11220 * gdb_assert.h: Ditto.
11221 * gdb_string.h: Ditto.
11222 * gdb_thread_db.h: Ditto.
11223 * gdb_wait.h: Ditto.
11224 * gdbarch.sh: Ditto.
11225 * gdbcore.h: Ditto.
11226 * gdbthread.h: Ditto.
11227 * gdbtypes.c: Ditto.
11228 * gdbtypes.h: Ditto.
11229 * gnu-nat.c: Ditto.
11230 * gnu-nat.h: Ditto.
11231 * gnu-v2-abi.c: Ditto.
11232 * gnu-v3-abi.c: Ditto.
11233 * go32-nat.c: Ditto.
11234 * gdbarch.c: Regenerate.
11235 * gdbarch.h: Regenerate.
11236
ac74f770
MS
112372011-01-07 Michael Snyder <msnyder@vmware.com>
11238
11239 * ax-gdb.c: Adjust some long output strings.
11240 * breakpoint.c: Ditto.
11241 * charset.c: Ditto.
11242 * cp-abi.c: Ditto.
11243 * infcall.c: Ditto.
11244 * infrun.c: Ditto.
11245 * linux-nat.c: Ditto.
11246 * solib-pa64.c: Ditto.
11247 * solib-som.c: Ditto.
11248
d8e22779
TT
112492011-01-06 Tom Tromey <tromey@redhat.com>
11250
11251 PR python/12367:
11252 * NEWS: Add item.
11253 * python/python.c (GdbMethods): Add "newest_frame" method.
11254 * python/python-internal.h (gdbpy_newest_frame): Declare.
11255 * python/py-frame.c (gdbpy_newest_frame): New function.
11256
a255712f
PP
112572010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11258
11259 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11260 * jit.c (jit_debug): New variable.
11261 (show_jit_debug): New function.
11262 (struct target_buffer): Use ULONGEST.
11263 (bfd_open_from_target_memory): Likewise.
11264 (jit_register_code, jit_inferior_init): Add debug output.
11265 (_initialize_jit): Register "debug jit" command.
11266
ccfc3d6e
TT
112672011-01-06 Tom Tromey <tromey@redhat.com>
11268
11269 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11270 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11271 and ARCH_FRAME.
11272
57126e4a
TT
112732011-01-06 Tom Tromey <tromey@redhat.com>
11274
11275 * python/py-frame.c (frapy_block): Use get_frame_block.
11276
16dfc9ce
JB
112772011-01-06 Joel Brobecker <brobecker@adacore.com>
11278
11279 Do not stop on SIGPRIO signals by default
11280 * infrun.c (_initialize_infrun): Unset signal_stop and
11281 signal_print for TARGET_SIGNAL_PRIO.
11282
b1ce2347
JB
112832011-01-06 Joel Brobecker <brobecker@adacore.com>
11284
11285 * ada-tasks.c: Fix style violation in comment.
11286
8f7e195f
JB
112872011-01-06 Joel Brobecker <brobecker@adacore.com>
11288
11289 * linespec.c (decode_compound, find_method): Remove trailing \n
11290 at end of error string.
11291 * solib-irix.c (irix_current_sos): Likewise.
11292 * varobj.c (uninstall_variable): Likewise.
11293
e9bdf92c
JB
112942011-01-06 Joel Brobecker <brobecker@adacore.com>
11295
11296 * copyright.py: New script.
11297 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11298 Launch emacs without exec'ing. Call copyright.py afterwards.
11299
3e43a32a
MS
113002011-01-05 Michael Snyder <msnyder@vmware.com>
11301
11302 * addrmap.c: Shorten lines of >= 80 columns.
11303 * arch-utils.c: Ditto.
11304 * arch-utils.h: Ditto.
11305 * ax-gdb.c: Ditto.
11306 * ax-general.c: Ditto.
11307 * bcache.c: Ditto.
11308 * blockframe.c: Ditto.
11309 * breakpoint.c: Ditto.
11310 * buildsym.c: Ditto.
11311 * c-lang.c: Ditto.
11312 * c-typeprint.c: Ditto.
11313 * charset.c: Ditto.
11314 * coffread.c: Ditto.
11315 * command.h: Ditto.
11316 * corelow.c: Ditto.
11317 * cp-abi.c: Ditto.
11318 * cp-namespace.c: Ditto.
11319 * cp-support.c: Ditto.
11320 * dbug-rom.c: Ditto.
11321 * dbxread.c: Ditto.
11322 * defs.h: Ditto.
11323 * dfp.c: Ditto.
11324 * dfp.h: Ditto.
11325 * dictionary.c: Ditto.
11326 * disasm.c: Ditto.
11327 * doublest.c: Ditto.
11328 * dwarf2-frame.c: Ditto.
11329 * dwarf2expr.c: Ditto.
11330 * dwarf2loc.c: Ditto.
11331 * dwarf2read.c: Ditto.
11332 * elfread.c: Ditto.
11333 * eval.c: Ditto.
11334 * event-loop.c: Ditto.
11335 * event-loop.h: Ditto.
11336 * exceptions.h: Ditto.
11337 * exec.c: Ditto.
11338 * expprint.c: Ditto.
11339 * expression.h: Ditto.
11340 * f-lang.c: Ditto.
11341 * f-valprint.c: Ditto.
11342 * findcmd.c: Ditto.
11343 * frame-base.c: Ditto.
11344 * frame-unwind.c: Ditto.
11345 * frame-unwind.h: Ditto.
11346 * frame.c: Ditto.
11347 * frame.h: Ditto.
11348 * gcore.c: Ditto.
11349 * gdb-stabs.h: Ditto.
11350 * gdb_assert.h: Ditto.
11351 * gdb_dirent.h: Ditto.
11352 * gdb_obstack.h: Ditto.
11353 * gdbcore.h: Ditto.
11354 * gdbtypes.c: Ditto.
11355 * gdbtypes.h: Ditto.
11356 * inf-ttrace.c: Ditto.
11357 * infcall.c: Ditto.
11358 * infcmd.c: Ditto.
11359 * inflow.c: Ditto.
11360 * infrun.c: Ditto.
11361 * inline-frame.h: Ditto.
11362 * language.c: Ditto.
11363 * language.h: Ditto.
11364 * libunwind-frame.c: Ditto.
11365 * libunwind-frame.h: Ditto.
11366 * linespec.c: Ditto.
11367 * linux-nat.c: Ditto.
11368 * linux-nat.h: Ditto.
11369 * linux-thread-db.c: Ditto.
11370 * machoread.c: Ditto.
11371 * macroexp.c: Ditto.
11372 * macrotab.c: Ditto.
11373 * main.c: Ditto.
11374 * maint.c: Ditto.
11375 * mdebugread.c: Ditto.
11376 * memattr.c: Ditto.
11377 * minsyms.c: Ditto.
11378 * monitor.c: Ditto.
11379 * monitor.h: Ditto.
11380 * objfiles.c: Ditto.
11381 * objfiles.h: Ditto.
11382 * osabi.c: Ditto.
11383 * p-typeprint.c: Ditto.
11384 * p-valprint.c: Ditto.
11385 * parse.c: Ditto.
11386 * printcmd.c: Ditto.
11387 * proc-events.c: Ditto.
11388 * procfs.c: Ditto.
11389 * progspace.c: Ditto.
11390 * progspace.h: Ditto.
11391 * psympriv.h: Ditto.
11392 * psymtab.c: Ditto.
11393 * record.c: Ditto.
11394 * regcache.c: Ditto.
11395 * regcache.h: Ditto.
11396 * remote-fileio.c: Ditto.
11397 * remote.c: Ditto.
11398 * ser-mingw.c: Ditto.
11399 * ser-tcp.c: Ditto.
11400 * ser-unix.c: Ditto.
11401 * serial.c: Ditto.
11402 * serial.h: Ditto.
11403 * solib-frv.c: Ditto.
11404 * solib-irix.c: Ditto.
11405 * solib-osf.c: Ditto.
11406 * solib-pa64.c: Ditto.
11407 * solib-som.c: Ditto.
11408 * solib-sunos.c: Ditto.
11409 * solib-svr4.c: Ditto.
11410 * solib-target.c: Ditto.
11411 * solib.c: Ditto.
11412 * somread.c: Ditto.
11413 * source.c: Ditto.
11414 * stabsread.c: Ditto.
11415 * stabsread.c: Ditto.
11416 * stack.c: Ditto.
11417 * stack.h: Ditto.
11418 * symfile-mem.c: Ditto.
11419 * symfile.c: Ditto.
11420 * symfile.h: Ditto.
11421 * symmisc.c: Ditto.
11422 * symtab.c: Ditto.
11423 * symtab.h: Ditto.
11424 * target-descriptions.c: Ditto.
11425 * target-memory.c: Ditto.
11426 * target.c: Ditto.
11427 * target.h: Ditto.
11428 * terminal.h: Ditto.
11429 * thread.c: Ditto.
11430 * top.c: Ditto.
11431 * tracepoint.c: Ditto.
11432 * tracepoint.h: Ditto.
11433 * ui-file.c: Ditto.
11434 * ui-file.h: Ditto.
11435 * ui-out.h: Ditto.
11436 * user-regs.c: Ditto.
11437 * user-regs.h: Ditto.
11438 * utils.c: Ditto.
11439 * valarith.c: Ditto.
11440 * valops.c: Ditto.
11441 * valprint.c: Ditto.
11442 * valprint.h: Ditto.
11443 * value.c: Ditto.
11444 * varobj.c: Ditto.
11445 * varobj.h: Ditto.
11446 * vec.h: Ditto.
11447 * xcoffread.c: Ditto.
11448 * xcoffsolib.c: Ditto.
11449 * xcoffsolib.h: Ditto.
11450 * xml-syscall.c: Ditto.
11451 * xml-tdesc.c: Ditto.
11452
9a2b4c1b
MS
114532011-01-05 Michael Snyder <msnyder@vmware.com>
11454
11455 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11456 * cli/cli-decode.c: Ditto.
11457 * cli/cli-dump.c: Ditto.
11458 * cli/cli-logging.c: Ditto.
11459 * cli/cli-script.c: Ditto.
11460 * cli/cli-setshow.c: Ditto.
11461 * common/signals.c: Ditto.
11462 * mi/mi-cmd-break.c: Ditto.
11463 * mi/mi-cmd-disas.c: Ditto.
11464 * mi/mi-cmd-stack.c: Ditto.
11465 * mi/mi-cmd-var.c: Ditto.
11466 * mi/mi-cmds.c: Ditto.
11467 * mi/mi-common.h: Ditto.
11468 * mi/mi-console.c: Ditto.
11469 * mi/mi-interp.c: Ditto.
11470 * mi/mi-main.c: Ditto.
11471 * osf-share/cma_attr.c: Ditto.
11472 * osf-share/cma_deb_core.h: Ditto.
11473 * osf-share/cma_debug_client.h: Ditto.
11474 * osf-share/cma_handle.h: Ditto.
11475 * osf-share/cma_mutex.h: Ditto.
11476 * osf-share/cma_stack_int.h: Ditto.
11477 * osf-share/cma_tcb_defs.h: Ditto.
11478 * python/py-auto-load.c: Ditto.
11479 * python/py-breakpoint.c: Ditto.
11480 * python/py-cmd.c: Ditto.
11481 * python/py-frame.c: Ditto.
11482 * python/py-objfile.c: Ditto.
11483 * python/py-param.c: Ditto.
11484 * python/py-progspace.c: Ditto.
11485 * python/py-symbol.c: Ditto.
11486 * python/py-value.c: Ditto.
11487 * python/python-internal.h: Ditto.
11488 * python/python.c: Ditto.
11489 * tui/tui-data.c: Ditto.
11490 * tui/tui-disasm.c: Ditto.
11491 * tui/tui-hooks.c: Ditto.
11492 * tui/tui-io.c: Ditto.
11493 * tui/tui-layout.c: Ditto.
11494 * tui/tui-regs.c: Ditto.
11495 * tui/tui-source.c: Ditto.
11496 * tui/tui-stack.c: Ditto.
11497 * tui/tui-win.c: Ditto.
11498 * tui/tui-windata.c: Ditto.
11499 * tui/tui-winsource.c: Ditto.
11500
44944448
JB
115012011-01-05 Joel Brobecker <brobecker@adacore.com>
11502
11503 * configure.ac, gdb.1: Copyright year update.
11504
ebedcab5
JK
115052011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11506
11507 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11508 this_pc_in_block, morestack_msym and morestack_name. Check for
11509 "__morestack" minimal symbol there.
11510
e5cc9f32
JB
115112011-01-03 Joel Brobecker <brobecker@adacore.com>
11512
11513 * symfile.c (find_sym_fns): Add call to dont_repeat.
11514
7b6bb8da
JB
115152011-01-01 Joel Brobecker <brobecker@adacore.com>
11516
11517 Copyright year update in most files (performed by copyright.sh).
11518
71ce852c
JB
115192011-01-01 Joel Brobecker <brobecker@adacore.com>
11520
11521 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11522
c3c1ebe8 11523For older changes see ChangeLog-2010.
c906108c
SS
11524\f
11525Local Variables:
11526mode: change-log
11527left-margin: 8
11528fill-column: 74
11529version-control: never
57da7796 11530coding: utf-8
c906108c 11531End:
This page took 1.795003 seconds and 4 git commands to generate.