wrong value returned by ada-lang.c:compare_names
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1a1d5513
JB
12011-11-28 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (compare_names): Fix wrong return value in case
4 string1 starts with the same contents as string2, followed
5 by an underscore that do not start a symbol name suffix.
6
5d9c5995
PM
72011-11-28 Phil Muldoon <pmuldoon@redhat.com>
8
9 PR python/13369
10 PR python/13374
11
12 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
13 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
14 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
15 exceptions.
16 * python/py-type.c (typy_strip_typedefs): Ditto.
17 (typy_legacy_template_argument): Ditto.
18 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
19 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
20
2bf50f6f
JB
212011-11-27 Joel Brobecker <brobecker@acacore.com>
22
23 * remote.c (remote_get_tracepoint_status): Delete addrbuf
24 local variable. Avoid use of sprintf_vma.
25
744ab88c
SD
262011-11-27 Sanjoy Das <sdas@igalia.com>
27
28 Fix regression in jit.exp.
29 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
30 (jit_register_code): Set the jit_objfile_data field to the correct
31 value.
32
46ad3598
UW
332011-11-25  Uros Bizjak  <ubizjak@gmail.com>
34
35 * alpha-tdep.c (br_opcode): New.
36 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
37 (alpha_deal_with_atomic_sequence): New function.
38 (alpha_gdbarch_init): Handle single stepping of atomic sequences
39 with alpha_deal_with_atomic_sequence.
40
e4c5f296
TG
412011-11-24 Tristan Gingold <gingold@adacore.com>
42
43 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
44 fields. Add oso_sym, end_sym and nbr_syms.
45 (macho_register_oso): Change interface.
46 (macho_symtab_add_minsym): New function.
47 (macho_symtab_read): Rewritten.
48 (get_archive_prefix_len): Remove trailing blanks.
49 (oso_el_compare_name): Add comment.
50 (struct macho_sym_hash_entry): New structure.
51 (macho_relocate_common_syms): Remove.
52 (macho_sym_hash_newfunc): New function.
53 (macho_resolve_oso_sym_with_minsym): Likewise.
54 (macho_add_oso_symfile): Rewritten.
55 (macho_symfile_read_all_oso): Remove trailing blanks.
56 Adjust code to free oso vector.
57 (macho_symfile_read): Likewise.
58 Move code to initialize minimal symbol
59
130854df
MR
602011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
61
62 * mips-tdep.c (extended_offset): Fix formatting.
63
3d7bb9d9
DE
642011-11-23 Doug Evans <dje@google.com>
65
66 * dwarf2read.c (dw2_lookup_symtab): Add comment.
67 (dw2_expand_symtabs_with_filename): Ditto.
68 (dw2_expand_symtabs_matching): Ditto.
69 (dw2_map_symbol_filenames): Ditto.
70
1fbf5ada
JB
712011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
72
73 * ada-lang.c (assign_aggregate): Minor reformatting.
74
d984108d
JB
752011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
76
77 * ada-lang.c (assign_aggregate): Remove declaration of local
78 variable `i' which is shadowing another variable with the same
79 name declared in the outer scope.
80
18af8284
JB
812011-11-23 Joel Brobecker <brobecker@adacore.com>
82
83 * ada-lang.c (get_base_type): Renames base_type. Adjust all
84 calls throughout this file.
85
1fc7b5d7
JB
862011-11-23 Joel Brobecker <brobecker@adacore.com>
87
88 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
89 FormatMessage.
90
36dfb11c
TT
912011-11-22 Tom Tromey <tromey@redhat.com>
92
93 PR mi/8444:
94 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
95 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
96 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
97 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
98 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
99 (print_it_catch_syscall, print_it_catch_exec)
100 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
101 (bpstat_print): Add 'kind' argument. Handle
102 TARGET_WAITKIND_LOADED.
103 * infrun.c (normal_stop): Update for bpstat_print change. Don't
104 handle TARGET_WAITKIND_LOADED here.
105 * breakpoint.h (bpstat_print): Update.
106
5bd6aa83
TT
1072011-11-22 Tom Tromey <tromey@redhat.com>
108
109 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
110
f5afdc18
TT
1112011-11-22 Tom Tromey <tromey@redhat.com>
112
113 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
114 Use static_assert to check the size of
115 async_reason_string_lookup.
116 * common/gdb_assert.h (static_assert): New macro.
117
a3769e0c
AM
1182011-11-22 Alan Modra <amodra@gmail.com>
119
120 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
121 destination calculation. Don't expect >> to sign extend. Don't
122 add a break if branch lands inside the sequence anywhere.
123
56767571
KS
1242011-11-21 Keith Seitz <keiths@redhat.com>
125
126 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
127 -var-evaluate-expression of an enumeration and fix expected result.
128 * gdb.mi/mi2-varvdisplay.exp: Likewise.
129
8443c207
KY
1302011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
131
132 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
133 the case where osdata->items is empty. Rename column names to a
134 canonical form to avoid problems with unusual column names.
135
97643830
YQ
1362011-11-21 Yao Qi <yao@codesourcery.com>
137
138 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
139
f196051f
SS
1402011-11-20 Stan Shebs <stan@codesourcery.com>
141
142 * NEWS: Mention tracepoint additions.
143 * breakpoint.h (struct tracepoint): New field traceframe_usage.
144 * breakpoint.c (print_one_breakpoint_location): Identify
145 tracepoints as such when reporting hit counts, report
146 trace buffer usage.
147 (create_tracepoint_from_upload): Copy status info.
148 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
149 add fields user_name, notes, start_time, stop_time.
150 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
151 * tracepoint.c (trace_user): New global.
152 (trace_notes): New global.
153 (trace_stop_notes): New global.
154 (start_tracing): Add argument and trace note handling.
155 (stop_tracing): Ditto.
156 (trace_start_command): Add notes argument.
157 (trace_stop_command): Ditto.
158 (trace_status_command): Report additional status info.
159 (trace_status_mi): Similarly.
160 (trace_save): Update, record tracepoint status.
161 (set_disconnected_tracing): Call target method directly.
162 (send_disconnected_tracing_value): Remove.
163 (set_trace_user): New function.
164 (set_trace_notes): New function.
165 (set_trace_stop_notes): New function.
166 (parse_trace_status): Handle additional status.
167 (parse_tracepoint_status): New function.
168 (parse_tracepoint_definition): Call it.
169 (tfile_get_tracepoint_status): New function.
170 (init_tfile_ops): Use it.
171 (_initialize_tracepoint): Add new setshows.
172 * target.h (struct target_ops): New methods to_get_tracepoint_status
173 and to_set_trace_notes.
174 (target_get_tracepoint_status): New macro.
175 (target_set_trace_notes): New macro.
176 * target.c (update_current_target): Add new methods.
177 * remote.c (remote_get_tracepoint_status): New function.
178 (remote_set_trace_notes): New function.
179 (init_remote_ops): Add them.
180 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
181 (mi_cmd_trace_stop): Ditto.
182
3623dc3a
SD
1832011-11-20 Sanjoy Das <sdas@igalia.com>
184
185 * jit.c: Include regcache.h.
186 (jit_gdbarch_data, jit_frame_unwind): New static variables.
187 (jit_unwind_reg_set_impl, free_reg_value_impl)
188 (jit_unwind_reg_get_impl, jit_frame_sniffer)
189 (jit_frame_unwind_stop_reason, jit_frame_this_id)
190 (jit_frame_prev_register, jit_dealloc_cache)
191 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
192 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
193 jit_prepend_unwinder.
194 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
195
1825a88d
SD
1962011-11-20 Sanjoy Das <sdas@igalia.com>
197
198 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
199 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
200 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
201 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
202 (finalize_symtab, jit_object_close_impl)
203 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
204 (free_objfile_data): New functions.
205 (_initialize_jit): Register jit_objfile_data with a proper cleanup
206 function.
207
784c47ee
SD
2082011-11-20 Sanjoy Das <sdas@igalia.com>
209
210 * jit.c: Include gdb-dlfcn.h.
211 (loaded_jit_reader, reader_init_fn_sym): New static variables.
212 (jit_reader_load, jit_reader_load_command)
213 (jit_reader_unload_command): New functions.
214 (_initialize_jit): Add commands "jit-reader-load" and
215 "jit-reader-unload".
216
a2d08b9e
SD
2172011-11-20 Sanjoy Das <sdas@igalia.com>
218
219 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
220 * config.in: Add new #define HAVE_LIBDL.
221 * configure.ac: Add check for -ldl.
222 * configure: Re-generated by autoconf.
223 * gdb-dlfcn.c: New file.
224 * gdb-dlfcn.h: New file.
225
b8e0a31c
SD
2262011-11-20 Sanjoy Das <sdas@igalia.com>
227
228 * config.in: Add new #defines: JIT_READER_DIR and
229 JIT_READER_DIR_RELOCATABLE.
230 * configure.ac: New GDB directory entry for jit-reader-dir.
231 * configure: Re-generated by autoconf.
232 * jit.c: New static variable: const char *jit_reader_dir.
233 (_initialize_jit): Relocate jit_reader_dir.
234
f997c383
SD
2352011-11-20 Sanjoy Das <sdas@igalia.com>
236
237 * Makefile.in: Add jit-reader.h as a header. Have it installed in
238 $(includedir)/gdb.
239 * configure.ac: Generate a correct value for TARGET_PTR for
240 jit-reader.h. Tell configure to generate jit-reader.h from
241 jit-reader.in.
242 * configure: Re-generated by autoconf.
243 * jit-reader.in: New file.
244 * jit.c: Include jit-reader.h.
245
dc8c0494
SD
2462011-11-20 Sanjoy Das <sdas@igalia.com>
247
248 * MAINTAINERS (Write After Approval): Add myself to the list.
249
01efb936
UW
2502011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
251
252 * findvar.c (read_frame_register_value): Respect value_offset
253 of the register value. Remove big-endian special case.
254
732f3f12
TT
2552011-11-18 Tom Tromey <tromey@redhat.com>
256
257 PR build/7196:
258 * remote.c (putpkt_for_catch_errors): New function.
259 (remote_kill): Use it.
260
bfccc43c
YQ
2612011-11-18 Yao Qi <yao@codesourcery.com>
262
263 * breakpoint.c (create_breakpoint): Produce query message according to
264 breakpoint's type.
265 Allocate tracepoint per correct type.
266 Don't check SALs for pending fast tracepoints.
267 * tracepoint.c (process_tracepoint_on_disconnect): New.
268 (disconnect_tracing): Call process_tracepoint_on_disconnect.
269
3ea46bff
YQ
2702011-11-18 Yao Qi <yao@codesourcery.com>
271
272 * breakpoint.c (install_breakpoint): Add one more parameter so that
273 update_global_location_list is called conditionally.
274 (create_fork_vfork_event_catchpoint): Update.
275 (create_syscall_event_catchpoint): Update.
276 (create_breakpoint_sal): Update.
277 (create_breakpoint_sal): Update. Call do_cleanups before
278 install_breakpoint.
279 * ada-lang.c (create_ada_exception_catchpoint): Update.
280 * breakpoint.h (install_breakpoint): Update declaration.
281
598cfb71
UW
2822011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
283
284 * spu-tdep.c (spu_return_value): Fix handling of
285 TYPE_CALLING_CONVENTION annotation.
286
caf4328c
UW
2872011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
288
289 * skip.c (skip_function_command): Work around uninitialized
290 variable warning.
291
2b54dda2
DM
2922011-11-16 David S. Miller <davem@davemloft.net>
293
294 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
295 'tv_usec' to long for printf since these fields have a type which
296 varies.
297
93bf33fd
DE
2982011-11-15 Doug Evans <dje@google.com>
299
300 * buildsym.c (add_symbol_to_list): Delete outdated comment.
301
9cc10fd1
PK
3022011-11-15 Paul Koning <paul_koning@dell.com>
303
304 * python/py-type.c (typy_get_composite): New function.
305 (typy_nonzero): New function.
306 (typy_values): Rename from typy_fields.
307 (typy_fields): New function.
308 (typy_length): Raise exception if not struct, union, or enum type.
309 (typy_getitem): Ditto.
310 (typy_has_key): Ditto.
311 (typy_make_iter): Ditto.
312
c011a4f4
DE
3132011-11-15 Doug Evans <dje@google.com>
314
315 * NEWS: Mention new parameter basenames-may-differ.
316 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
317 ! basenames_may_differ.
318 * psymtab.c (lookup_partial_symtab): Ditto.
319 * symtab.c (lookup_symtab): Ditto.
320 (basenames_may_differ): New global.
321 (_initialize_symtab): New parameter basenames-may-differ.
322 * symtab.h (basenames_may_differ): Declare.
323
865ecab4
LM
3242011-11-15 Pedro Alves <pedro@codesourcery.com>
325 Luis Machado <lgustavo@codesourcery.com>
326
327 * auxv.c: Include observer.h.
328 (auxv_inferior_data_cleanup): New.
329 (invalidate_auxv_cache_inf): New.
330 (invalidate_auxv_cache): New.
331 (get_auxv_inferior_data): New.
332 (auxv_inferior_data): New static global.
333 (auxv_info): New structure.
334 (target_auxv_search): Use get_auxv_inferior_data instead of
335 target_read_alloc and don't free cached buffers.
336 (fprint_target_auxv): Likewise
337 (_initialize_auxv): Register per-inferior auxv cache and register
338 observers to invalidate auxv cache when needed.
339
ed59ded5
DE
3402011-11-14 Doug Evans <dje@google.com>
341
342 Make "!" an alias for "shell".
343 * NEWS: Add mention.
344 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
345 adding "!" command, always add it.
346 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
347 command of length one.
348
405f8e94
SS
3492011-11-14 Stan Shebs <stan@codesourcery.com>
350 Kwok Cheung Yeung <kcy@codesourcery.com>
351
352 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
353 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
354 the minimum instruction size for fast tracepoints.
355 * target.h (struct target_ops): Add new method
356 to_get_min_fast_tracepoint_insn_len.
357 (target_get_min_fast_tracepoint_insn_len): New.
358 * target.c (update_current_target): Set up new target operation.
359 * remote.c (remote_write_bytes_aux): Fix typo.
360 (remote_get_min_fast_tracepoint_insn_len): New.
361 (init_remote_ops): Initialize new field.
362
3e05895e
TT
3632011-11-14 Tom Tromey <tromey@redhat.com>
364
365 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
366 (encode_actions): Likewise.
367
1e4d1764
YQ
3682011-11-14 Yao Qi <yao@codesourcery.com>
369
370 * remote.c (struct remote_state): <install_in_trace> new field.
371 (PACKET_InstallInTrace): New enum value.
372 (remote_install_in_trace_feature): Support InstallInTrace.
373 (remote_supports_install_in_trace): Likewise.
374 (remote_protocol_features): Likewise.
375 (_initialize_remote): Likewise.
376 (remote_can_download_tracepoint): New.
377 * target.h (struct target): New field
378 `to_can_download_tracepoint'.
379 (target_can_download_tracepoint): New macro.
380 * target.c (update_current_target): Update.
381 * breakpoint.h (struct bp_location): Add comment on field
382 `duplicate'.
3ccd4ac6
YQ
383 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
384 and tracepoint.
1e4d1764
YQ
385 (remove_breakpoints): Don't remove tracepoints.
386 (tracepoint_locations_match ): New.
387 (breakpoint_locations_match): Call it.
388 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
389 (download_tracepoint_locations): New.
390 (update_global_location_list): Call it.
391 * tracepoint.c (find_matching_tracepoint): Delete.
392 (find_matching_tracepoint_location): Renamed from
393 find_matching_tracepoint. Return bp_location rather than
394 tracepoint.
395 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
396 tracepoint is found.
397
e8ba3115
YQ
3982011-11-14 Yao Qi <yao@codesourcery.com>
399
400 * target.h (struct target): <to_download_tracepoint> Change type
401 of parameter from tracepoint to bp_location.
402 * target.c (update_current_target): Update.
403 * tracepoint.c (start_tracing): Update.
404 * remote.c (remote_download_tracepoint): Remove loop for each location
405 of a tracepoint.
406
edcc485a
MR
4072011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
408
409 * i386-nat.c (i386_insert_hw_breakpoint): Call
410 i386_update_inferior_debug_regs.
411 (i386_remove_hw_breakpoint): Likewise.
412
3742cc8b
YQ
4132011-11-14 Yao Qi <yao@codesourcery.com>
414
415 * breakpoint.c (init_raw_breakpoint): Call
416 add_location_to_breakpoint to replace duplicated code.
417 (add_location_to_breakpoint): Adjust the breakpoint's
418 address prior to allocating a location.
419
71eba9c2 4202011-11-12 Matt Rice <ratmice@gmail.com>
421
422 * macrocmd.c (macro_no_macro_info): New function.
423 (macro_expand_command): Use macro_no_macro_info.
424 (macro_expand_once_command): Ditto.
425 (info_macro_command): Add argument processing,
426 move info_definitions_command here.
427 (_initialize_macrocmd): Remove info definitions command.
428 Add arguments to info macro help text.
429 * NEWS: Replace info definitions command with new info macro options.
430
731971ed
KS
4312011-11-11 Keith Seitz <keiths@redhat.com>
432
433 PR gdb/12843
434 * linespec.c (locate_first_half): Keep ':' if it looks
435 like it could be part of a Windows path starting with
436 a drive letter.
437
6953d224
PA
4382011-11-10 Pedro Alves <pedro@codesourcery.com>
439
440 * linux-nat.c (linux_nat_wait): Don't force waking up the event
441 loop when returning a TARGET_WAITKIND_NO_RESUMED.
442
0c94aa73
PA
4432011-11-10 Pedro Alves <pedro@codesourcery.com>
444
445 * target.c (target_waitstatus_to_string): Handle
446 TARGET_WAITKIND_NO_RESUMED.
447
f6b47be4
DE
4482011-11-10 Doug Evans <dje@google.com>
449
74e2f255
DE
450 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
451 `need_fullname'.
452 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
453 (map_partial_symbol_filenames): Ditto. All callers updated.
454 * psymtab.h (map_partial_symbol_filenames): Update prototype.
455 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
456 parameter need_fullname.
457
256f06f3
DE
458 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
459 * source.c (symtab_to_fullname): Ditto.
460
50f182aa
DE
461 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
462 * gdb-demangle.h: ... here. New file.
463 * demangle.c: #include "gdb-demangle.h".
464 (_initialize_demangler): Use initialize_file_ftype for prototype.
465 Move "set demangle" and "set asm-demangle" parameters here from utils.c
466 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
467 from utils.c
468 * utils.c: Update. #include "gdb-demangle.h".
469 * symtab.h (asm_demangle): Delete.
470 (demangle): Move declaration next to use.
471 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
472 * dwarf2read.c: #include "gdb-demangle.h".
473 * gnu-v2-abi.c: Ditto.
474 * jv-typeprint.c: Ditto.
475 * mdebugread.c: Ditto.
476 * p-typeprint.c: Ditto.
477 * stabsread.c: Ditto.
478 * printcmd.c: Ditto.
479 (asm_demangle): Delete declaration.
480 * tui/tui-stack.c: #include "gdb-demangle.h".
481
f6b47be4
DE
482 * python/py-type.c (typy_fields_items): Call check_typedef.
483
22355c90
JB
4842011-11-10 Joel Brobecker <brobecker@adacore.com>
485
486 * findvar.c (read_frame_register_value): Read the correct bytes
487 from registers on big-endian architectures.
488
bd119cf1 4892011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
490
491 * procfs.c (load_syscalls): Make a cleanup.
492 (open_procinfo_files): fd==0 is ok.
493
0a86f364
JB
4942011-11-10 Joel Brobecker <brobecker@adacore.com>
495
496 * procfs.c (iterate_over_mappings): Call do_cleanups before
497 returning.
498
9bc118a5
DE
4992011-11-09 Doug Evans <dje@google.com>
500
501 * gdbtypes.c (check_typedef): Document that this function can
502 throw an exception.
503
a7860e76
TT
5042011-11-09 Tom Tromey <tromey@redhat.com>
505
506 PR c++/13342:
507 * valops.c (value_full_object): Return early if real type is
508 smaller than the enclosing type.
509
60965737
YQ
5102011-11-08 Yao Qi <yao@codesourcery.com>
511
512 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
513
72a2e3dc
MI
5142011-11-08 Meador Inge <meadori@codesourcery.com>
515
516 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
517 register when the frame can't be determined.
518 * arm-tdep.c (arm_analyze_prologue): Ditto.
519
ce3b0ff7
SS
5202011-11-07 Stan Shebs <stan@codesourcery.com>
521
522 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
523
2b914b52
JB
5242011-11-07 Joel Brobecker <brobecker@adacore.com>
525
526 * infrun.c (handle_inferior_event): Minor reformatting.
527
6f809020
DE
5282011-11-05 Doug Evans <dje@google.com>
529
530 * source.c (forget_cached_source_info_for_objfile): Move call to
531 objfile->sf->qf->forget_cached_source_info outside of
532 ALL_OBJFILE_SYMTABS loop.
533 (forget_cached_source_info): Delete unused variable `s'.
534
75d12218
JK
5352011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
536
537 * i386-nat.c (dr_ref_count): Remove unused variable.
538
e565b837
DE
5392011-11-05 Doug Evans <dje@google.com>
540
541 * main.c (captured_main): Set lim_at_start before calling
542 make_command_stats_cleanup.
543
0a1c4d10
DE
5442011-11-04 Doug Evans <dje@google.com>
545
546 * utils.c: #include "timeval-utils.h".
547 (cmd_stats): Rename start_time to start_cpu_time.
548 New member start_wall_time.
549 (report_command_stats): Report wall time.
550 (make_command_stats_cleanup): Record start wall time.
551
a1d705ee
TT
5522011-11-04 Tom Tromey <tromey@redhat.com>
553
554 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
555
81de56be
RO
5562011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
557
558 * coff-pe-read.c: Include defs.h before bfd.h.
559
3ab1ec27
PM
5602011-11-04 Phil Muldoon <pmuldoon@redhat.com>
561
562 PR Python/13345
563
564 * python/python.c (python_run_simple_file): Expand tilde in path.
565
cd829959
PM
5662011-11-04 Phil Muldoon <pmuldoon@redhat.com>
567
568 PR Python/13363
569
570 * python/py-type.c (typy_lookup_type): Do not return a type in
571 an exception handler.
572
080ad648
JK
5732011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
574 Eli Zaretskii <eliz@gnu.org>
575
576 * linux-nat.c (_initialize_linux_nat): Improve help
577 for `info proc stat', `info proc status', `info proc cwd',
578 `info proc cmdline' and `info proc exe'.
579
3065dfb6
SS
5802011-11-02 Stan Shebs <stan@codesourcery.com>
581
582 String collection for tracepoints.
583 * NEWS: Mention string collection.
584 * common/ax.def (tracenz): New bytecode.
585 * ax-gdb.h (trace_string_kludge): Declare.
586 * ax-gdb.c: Include valprint.h and c-lang.h.
587 (trace_string_kludge): New global.
588 (gen_traced_pop): Add string case.
589 (agent_command): Add string case.
590 * tracepoint.h (decode_agent_options): Declare.
591 * tracepoint.c: Include cli-utils.h.
592 (decode_agent_options): New function.
593 (validate_actionline): Call it.
594 (encode_actions_1): Ditto.
595 * target.h (struct target_ops): New method to_supports_string_tracing.
596 (target_supports_string_tracing): New macro.
597 * target.c (update_current_target): Add to_supports_string_tracing.
598 * remote.c (struct remote_state): New field string_tracing.
599 (remote_string_tracing_feature): New function.
600 (remote_protocol_features): New feature tracenz.
601 (remote_supports_string_tracing): New function.
602 (init_remote_ops): Set to_supports_string_tracing.
603
f179e162
JK
6042011-11-02 Pedro Alves <pedro@codesourcery.com>
605 Jan Kratochvil <jan.kratochvil@redhat.com>
606
607 * linux-nat.c: Include cli/cli-utils.h.
608 (enum info_proc_what): New.
609 (linux_nat_info_proc_cmd): Rename to ...
610 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
611 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
612 status_f and stat_f from WHAT. Throw error on extra parameters.
613 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
614 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
615 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
616 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
617 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
618 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
619 `info proc cmdline', `info proc exe' and `info proc all' as real
620 subcommands of `info proc'.
621
7b35ec7f 6222011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
623
624 * Makefile.in: (SFILES): Add skip.c.
625 (HFILES_NO_SRCDIR): Add skip.h.
626 (COMMON_OBS): Add skip.o.
627 * skip.h, skip.c: New.
628 * breakpoint.h (set_default_breakpoint): Remove.
629 (get_sal_arch): Declare.
630 * breakpoint.c: Remove default_breakpoint_valid,
631 default_breakpoint_address, default_breakpoint_symtab,
632 default_breakpoint_line, default_breakpoint_pspace variables.
633 (get_sal_arch): Make public.
634 (set_default_breakpoint): Remove.
635 (parse_breakpoint_sals, create_breakpoint, clear_command,
636 decode_line_spec_1): Remove uses of default_breakpoint variables;
637 replaced with function calls into stack.c.
638 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
639 * cli/cli-cmds.c: Add skiplist.
640 (init_cmd_lists): Initialize skiplist.
641 (init_cli_cmds): Fix comment (classes of commands appear in
642 alphabetical order).
643 * infrun.c (handle_inferior_event): Add check that we don't step into
644 a function whose pc is marked for skip.
645 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
646 last_displayed_addr, last_displayed_symtab, last_displayed_line
647 variables.
648 (set_last_displayed_sal): New static function.
649 (print_frame_info): Switch call to set_default_breakpoint to call to
650 set_last_displayed_sal.
651 (clear_last_displayed_sal, last_displayed_sal_is_valid,
652 get_last_displayed_pspace, get_last_displayed_addr,
653 get_last_displayed_symtab, get_last_displayed_line,
654 get_last_displayed_sal): New public functions.
655 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
656 get_last_displayed_pspace, get_last_displayed_addr,
657 get_last_displayed_symtab, get_last_displayed_line,
658 get_last_displayed_sal): Declare.
659
b60e1588
JL
6602011-11-01 Justin Lebar <justin.lebar@gmail.com>
661
662 * MAINTAINERS (Write After Approval): Add myself to the list.
663
d31647d2
YQ
6642011-10-29 Yao Qi <yao@codesourcery.com>
665
666 * infcmd.c (disconnect_command): Call disconnect_tracing.
667
b1d96efd
JK
6682011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
669
670 Code cleanup.
671 * symtab.c (skip_prologue_sal): Code reformatting.
672
4dfb2365
JK
6732011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
674
675 PR symtab/13208
676 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
677 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
678 SAI.
679
0e5bf2a8
PA
6802011-10-28 Pedro Alves <pedro@codesourcery.com>
681
682 * linux-nat.c (linux_nat_filter_event): Remove `options'
683 parameter, and dead code that used it. If we're handling a
684 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
685 in our lwp list, re-add it.
686 (check_zombie_leaders): New.
687 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
688 wait for children with WNOHANG, and always wait for all children.
689 Don't check for no resumed children upfront. Simplify wait loop.
690 Check for zombie thread group leaders after handling all wait
691 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
692 unwaited-for children left.
693 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
694 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
695 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
696 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
697
821296b7
SA
6982011-10-28 Sterling Augustine <saugustine@google.com>
699
700 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
701 * symtab.c (free_completion_list): New function.
702 (do_free_completion_list): Likewise.
703 (default_make_symbol_completion_list_break_on): New variable
704 back_to. Call make_cleanup and discard_cleanups.
705 (make_source_files_completion_list): Likewise.
706
03c3051a
PK
7072011-10-28 Paul Koning <paul_koning@dell.com>
708
709 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
710 * NEWS: Mention deep_items.
711
8e7ebaf5
PA
7122011-10-28 Alen Skondro <askondro@gmail.com>
713
8de33dc2 714 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
715 defined.
716
e0c6ef61
MI
7172011-10-27 Meador Inge <meadori@codesourcery.com>
718
719 * MAINTAINERS (Write After Approval): Add myself to the list.
720
b56d6f31
JB
7212011-10-27 Joel Brobecker <brobecker@adacore.com>
722
723 * value.h (read_frame_register_value): Add declaration.
724 * findvar.c (read_frame_register_value): New function.
725 (value_from_register): Use read_frame_register_value
726 instead of get_frame_register_value + value_contents_copy
727 to get value contents.
728
d234ef5c
DE
7292011-10-27 Doug Evans <dje@google.com>
730
731 * cli/cli-cmds.c (source_script_with_search): Pass full path to
732 source_script_from_stream if it may have been found on the search path.
733 * python/py-auto-load.c (source_section_scripts): Pass full path to
734 source_python_script_for_objfile.
735 * python/python.c (source_python_script): Delete stream parameter.
736 All callers updated.
737 (source_python_script_for_objfile): Ditto.
738 * python/python-internal.h (source_python_script_for_objfile): Update.
739 * python/python.h (source_python_script): Update.
740
d849d44f
TT
7412011-10-27 Tom Tromey <tromey@redhat.com>
742
743 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
744 (ada_sals_for_line): Remove declarations.
745
2231f1fb
KP
7462011-10-27 Kevin Pouget <kevin.pouget@st.com>
747
748 Move unwind reasons to an external .def file
749 * frame.c (frame_stop_reason_string): Rewrite using
750 unwind_stop_reasons.def.
751 * frame.h (enum unwind_stop_reason): Likewise.
752 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
753 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
754 constants for bound-checking.
755 * unwind_stop_reasons.def: New file.
756 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
757 instead of a distinct value.
758
f77b9a5d
PM
7592011-10-27 Phil Muldoon <pmuldoon@redhat.com>
760
761 PR python/13331
762
763 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
764 (convert_values_to_python): Return on Python tuple allocation
765 failure. Return NULL on value conversion error.
766
76dce0be
PM
7672011-10-27 Phil Muldoon <pmuldoon@redhat.com>
768
769 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
770 (bppy_set_task): Ditto.
771 (bppy_delete_breakpoint): Ditto.
772 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
773 (gdbpy_lookup_global_symbol): Ditto.
774 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
775 * python/py-frame.c (frapy_is_valid): Ditto.
776 (frame_info_to_frame_object): Ditto.
777 * python/py-type.c (typy_lookup_type): Ditto.
778 (typy_getitem): Ditto.
779 (typy_has_key): Ditto.
780 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
781
f17b6955
JB
7822011-10-26 Joel Brobecker <brobecker@adacore.com>
783
784 * gdbarch.h: Regenerate.
785
86ba1042
JB
7862011-10-26 Meador Inge <meadori@codesourcery.com>
787
788 * gdbarch.sh (function_list): Use 'pstring' when printing
789 'gcore_bfd_target'.
790 * gdbarch.c: Regenerate.
791
c34fd852
UW
7922011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
793
794 * regcache.c (registers_changed_ptid): Invalidate thread architecture
795 and frame caches if PTID refers to all threads of a process.
796
931bb47f
UW
7972011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
798
799 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
800 to create_breakpoint.
801
88aed45e
UW
8022011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
803
804 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
805 (ppc_sysv_abi_push_dummy_call): Use it.
806 (do_ppc_sysv_return_value): Likewise.
807 (ppc64_sysv_abi_push_dummy_call): Likewise.
808 (ppc64_sysv_abi_return_value): Likewise.
809
3eaf3fa2
PK
8102011-10-26 Paul Koning <paul_koning@dell.com>
811
812 * python/lib/gdb/types.py (deepitems): New function.
813
913460fc
PK
8142011-10-25 Paul Koning <paul_koning@dell.com>
815
816 PR python/13327
817
818 * python/py-value.c (value_to_value_object): Remove fetching of
819 the value if it was lazy.
820 (valpy_get_is_lazy): New function.
821 (valpy_fetch_lazy): New function.
822
2b5b9d09
JB
8232011-10-24 Joel Brobecker <brobecker@adacore.com>
824
825 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
826 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
827
e21ffe51
PA
8282011-10-24 Pedro Alves <pedro@codesourcery.com>
829
830 * linux-nat.c (linux_handle_extended_wait): When handling a clone
831 event, in non-stop, if not stopping, make sure the new lwp has
832 last_resume_kind set to resume_continue. Assert that when we're
833 resuming the new lwp, its last_resume_kind is resume_continue.
834
7aee8dc2
PA
8352011-10-24 Pedro Alves <pedro@codesourcery.com>
836
837 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
838 already set when marking the event thread as not executing in
839 non-stop mode.
840
4b4e080e
PA
8412011-10-24 Pedro Alves <pedro@codesourcery.com>
842
843 * infrun.c (handle_inferior_event): Add debug output for
844 TARGET_WAITKIND_NO_HISTORY.
845
baacfb07
PM
8462011-10-24 Phil Muldoon <pmuldoon@redhat.com>
847
848 * NEWS: Move set/show extended-prompt to "New Options". Expand
849 description. Fix typos.
850
8432bc41
PM
8512011-10-24 Phil Muldoon <pmuldoon@redhat.com>
852
853 PR python/13310
854
855 * python/py-param.c (call_doc_function): Correctly deference on
856 function exit.
857
6cda5a20
JB
8582011-10-21 Joel Brobecker <brobecker@adacore.com>
859
860 * ada-tasks.c (print_ada_task_info): Fix computation of
861 number of tasks displayed in command output.
862
13294f7d
JK
8632011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
864 Ulrich Weigand <uweigand@de.ibm.com>
865
866 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
867 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
868 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
869 gdbarch_pc_regnum and frame_unwind_register_unsigned by
870 gdbarch_unwind_pc.
871
460c1c54
CC
8722011-10-20 Cary Coutant <ccoutant@google.com>
873
874 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
875 section to...
876 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
877 flag. Adjust all callers.
878 (process_psymtab_comp_unit): Remove adjustment for type section.
879
a10964d1
AR
8802011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
881
882 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
883 arguments by adding OBJFILE. Instead of getting objfile from
884 symbol's symtab, use new argument OBJFILE.
885 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
886 arguments by adding OBJFILE.
887 * gdb/dwarf2read.c (new_symbol_full): Change call to
888 cp_scan_for_anonymous_namespaces to match new signature.
889 * gdb/stabsread.c (define_symbol): Change call to
890 cp_scan_for_anonymous_namespaces to match new signature.
891
27ca1a5b
PM
8922011-10-20 Phil Muldoon <pmuldoon@redhat.com>
893
894 PR python/13308
895 PR python/13309
896
897 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
898 leak.
899 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
900 leak. Delete unused variables.
901
9df2fbc4
PM
9022011-10-20 Phil Muldoon <pmuldoon@redhat.com>
903
904 PR python/12656
905
906 * python/py-frame.c (frapy_read_var): Use const struct *block.
907 * python/py-type.c (typy_lookup_typename): Likewise.
908 (typy_lookup_type): Likewise.
909 (typy_legacy_template_argument): Likewise.
910 (typy_template_argument): Likewise.
911 (gdbpy_lookup_type): Likewise.
912 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
913 * python/py-block.c (blpy_block_object): Likewise.
914 (blpy_iter): Likewise.
915 (blpy_get_start): Likewise.
916 (blpy_get_end): Likewise.
917 (blpy_get_function): Likewise.
918 (blpy_get_superblock): Likewise.
919 (set_block): Likewise.
920 (block_to_block_object): Likewise.
921 (block_object_to_block): Likewise.
922 (blpy_is_valid): Likewise.
923 (blpy_get_global_block): New function.
924 (blpy_get_static_block): New function.
925 (blpy_is_global): New function.
926 (blpy_is_static): New function.
927 * blockframe.c (block_innermost_frame): Likewise.
928 * valops.c (value_of_variable): Likewise.
929 * frame.h: Update prototypes.
930 * python/python-internal.h: Likewise.
931 * value.h: Likewise.
932
4743b735
CC
9332011-10-19 Cary Coutant <ccoutant@google.com>
934
935 * dwarf2read.c (create_debug_types_hash_table): Fix size of
936 type_offset field.
937
6caca83c
CC
9382011-10-19 Cary Coutant <ccoutant@google.com>
939
940 * dwarf2read.c (peek_abbrev_code): New function.
941 (dw2_get_file_names): Check for dummy compilation units.
942 (create_debug_types_hash_table): Likewise.
943 (process_psymtab_comp_unit): Likewise.
944 (load_partial_comp_unit): Likewise.
945 (load_full_comp_unit): Likewise.
946
43136979
AR
9472011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
948
949 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
950 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
951 pt_phdr if PT_PHDR was found.
952
0a07729b
TT
9532011-10-17 Joost van der Sluis <joost@cnoc.nl>
954
955 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
956 type or "<unnamed type"> when there is no name assigned.
957 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
958 avoid a sigint when no name is assigned.
959
21ae7a4d
JK
9602011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
961
962 Revert:
963 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
964 * dwarf2expr.c (ctx_no_read_reg): New function.
965 * dwarf2expr.h (ctx_no_read_reg): New declaration.
966 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
967 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
968 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
969
32d1c362
DE
9702011-10-16 Doug Evans <dje@google.com>
971
972 * NEWS: Document python gdb.printing.register_pretty_printer's new
973 `replace' parameter.
974
da096638
KS
9752011-10-14 Keith Seitz <keiths@redhat.com>
976
977 PR c++/13225
978 * eval.c (evaluate_subexp_standard): Do not construct
979 an array of types; pass the value array directly to
980 find_overload_match.
981 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
982 (rank_function): Take an array of values instead of types.
983 (rank_one_type): Add struct value * parameter.
984 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
985 (rank_function): For each argument, pass the argument's
986 value to rank_one_type.
987 (rank_one_type): Add VALUE parameter.
988 If the parameter type is a pointer and the argument type
989 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
990 VALUE is zero.
991 Update all calls to rank_one_type, passing NULL for new
992 VALUE parameter.
993 * valarith.c (value_user_defined_cpp_op): Do not construct
994 an array of types; pass the value array directly to
995 find_overload_match.
996 * valops.c (find_overload_method_list): Take an array of
997 values instead of types.
998 Save the type of OBJP for later use.
999 Update calls to find_oload_champ, and find_oload_champ_namespace.
1000 (find_oload_champ_namespace): Take an array of values instead
1001 of types.
1002 (find_oload_champ_namespace_loop): Likewise.
1003 (find_oload_champ): Likewise.
1004 (classify_oload_match): Inspect all arguments
1005 until INCOMPATIBLE is found. Return the worst badness found
1006 otherwise.
1007 (compare_parameters): Update call to rank_one_type.
1008 * value.h (find_overload_match): Take an array of values instead
1009 of types.
1010
3957565a
JK
10112011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1012
1013 Drop lazy lm_info reading.
1014 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1015 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1016 (lm_info_read): New function.
1017 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1018 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1019 lm_dynamic_from_link_map.
1020 (lm_next, lm_prev, lm_name): Remove.
1021 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1022 initialization incl. read_memory. No longer use lm_name.
1023 (svr4_free_so): Drop lm_info->lm freeing.
1024 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1025 explicit lm_addr and lm initialization.
1026 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1027 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1028 lm_name.
1029
cb08cc53
JK
10302011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 Paul Pluzhnikov <ppluzhnikov@google.com>
1032
1033 * defs.h (struct so_list): New forward declaration.
1034 (make_cleanup_free_so): New declaration.
1035 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1036 (svr4_free_so): Move the function here from downwards. Handle NULL
1037 so->lm_info.
1038 (svr4_free_library_list): New.
1039 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1040 Use more cleanups. Use new parameter ignore_first instead of
1041 ignore_first_link_map_entry.
1042 (svr4_current_sos): New variable ignore_first, initialize it. New
1043 variable back_to, use it for svr4_free_library_list protection.
1044 (svr4_free_so): Remove - move upwards.
1045 * utils.c: Include solist.h.
1046 (do_free_so, make_cleanup_free_so): New functions.
1047
22c05d8a
JK
10482011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1049
1050 Fix internal error regression.
1051 * value.c (value_primitive_field): Handle value_optimized_out. Move
1052 packed bitfields comment.
1053
d930d06e
TT
10542011-10-13 Tom Tromey <tromey@redhat.com>
1055
1056 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1057 always released.
1058
2ff6b080
TT
10592011-10-13 Tom Tromey <tromey@redhat.com>
1060
1061 * python/py-type.c (typy_has_key): Make 'field' const.
1062
d6c5869f
LM
10632011-10-13 Luis Machado <lgustavo@codesourcery.com>
1064
1065 * remote.c (remote_save_trace_data): Invert comparison.
1066
a70633a2
LM
10672011-10-13 Luis Machado <lgustavo@codesourcery.com>
1068
1069 * tracepoint.c (trace_save_command): Use filename instead of
1070 args when printing.
1071
e103e986
JK
10722011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1073
1074 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1075 if .size is 0.
1076
db24da6d
YQ
10772011-10-13 Yao Qi <yao@codesourcery.com>
1078
1079 PR gdb/12703
1080 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1081 whether insn is a 32-bit Thumb-2 instruction.
1082 (thumb_in_function_epilogue_p): Likewise.
1083 (thumb_get_next_pc_raw): Likewise.
1084 (arm_breakpoint_from_pc): Likewise.
1085
1d6edc3c
JK
10862011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1087
1088 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1089 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1090 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1091 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1092 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1093 zero DATA.
1094 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1095 validity.
1096 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1097 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1098 clear DATA on zero SIZE.
1099
adabb602
DE
11002011-10-12 Doug Evans <dje@google.com>
1101
1102 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1103 header->first_die_offset here. All callers updated.
1104
5048e516
JK
11052011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1106
1107 Fix compatibility with texinfo versions older than 4.12.
1108 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1109 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1110 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1111 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1112 * configure: Regenerate.
1113 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1114 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1115 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1116
0574c78f
GB
11172011-10-12 Gary Benson <gbenson@redhat.com>
1118
1119 * breakpoint.h (pc_at_non_inline_function): Declare.
1120 * breakpoint.c (is_non_inline_function,
1121 pc_at_non_inline_function): New functions.
1122 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1123 if the stop is at a location where functions cannot be inlined.
1124
12d9289a
PA
11252011-10-12 Pedro Alves <pedro@codesourcery.com>
1126
1127 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1128 the core wanted them stopped, or if they now have a pending event
1129 to report.
ecf8e7f5
PA
1130 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1131 down to stop_and_resume_callback.
1132 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1133 having new pending events after calling linux_nat_filter_event.
12d9289a 1134
96408a79
SA
11352011-10-11 Sterling Augustine <saugustine@google.com>
1136
1137 * dwarf2read.c: Undo inadvertent changes in previous commit.
1138
9c6c53f7
SA
11392011-10-11 Sterling Augustine <saugustine@google.com>
1140
1141 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1142 logic.
1143
0e8aefe7
UW
11442011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1145
1146 * symfile.c (separate_debug_file_exists): Fix condition.
1147
349d1385
DM
11482011-10-11 David S. Miller <davem@davemloft.net>
1149
1150 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1151 static.
1152 * regcache.h (regcache_restore): Remove declaration.
1153
205c306f
DM
1154 * gdbarch.sh: New field 'long_long_align_bit'.
1155 * gdbarch.c, gdbarch.h: Regenerate.
1156 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1157 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1158
941b2081
JK
11592011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 Revert this part of:
1162 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1163 Support @entry in input expressions.
1164 * c-exp.y (ENTRY, unknown_cpp_name): New.
1165 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1166 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1167 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1168 (name_not_typename: ENTRY): New.
1169 (yylex): Recognize ENTRY.
1170
1171 Reimplement @entry in input expressions.
1172 * c-exp.y (ENTRY): New.
1173 (variable: name_not_typename ENTRY): New.
1174 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1175
3c4d7e12
PA
11762011-10-11 Pedro Alves <pedro@codesourcery.com>
1177
1178 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1179 parent and child's pids as soon as we detect a clone event.
1180 Adjust another debug message.
1181
ea23808b
PA
11822011-10-11 Pedro Alves <pedro@codesourcery.com>
1183
1184 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1185 not zombie instead of reading the whole file.
1186
904578ed
JK
11872011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1188
1189 Fix separate debuginfo warning with "remote:" access.
1190 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1191 * symfile.c (get_file_crc): New function with the code moved from ...
1192 (separate_debug_file_exists): ... this function, specifically variables
1193 buffer and count. New variable verified_as_different, set it. Remove
1194 file_crc initialization. Verify also if both files are not the same
1195 manually, if needed.
1196
51370a33
YQ
11972011-10-11 Yao Qi <yao@codesourcery.com>
1198
1199 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1200 to get address.
1201
0838fb57
DE
12022011-10-10 Doug Evans <dje@google.com>
1203
1204 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1205 libthread_db when we load libpthread or the main symbol file.
1206 (thread_db_inferior_created): New function.
1207 (_initialize_thread_db): Attach inferior_created observer.
1208 * linux-nat.c (linux_child_post_attach): Remove call to
1209 check_for_thread_db.
1210 (linux_child_post_startup_inferior): Ditto.
1211 * objfiles.h (OBJF_MAINLINE): Define.
1212 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1213 allocate_objfile when appropriate.
1214
623bd5b7
UW
12152011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1216
1217 PR gdb/13218
1218 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1219 Remove unused variables.
1220 (get_linux_version): Remove function.
1221 (_initialize_arm_linux_nat): Do not call it.
1222
79395f92
PA
12232011-10-10 Pedro Alves <pedro@codesourcery.com>
1224
1225 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1226 new clone lwp if the core asked it to stop. Don't pass on
1227 unexpected signals to the new clone; leave them pending instead.
1228
eff3df78
PA
12292011-10-10 Pedro Alves <pedro@codesourcery.com>
1230
1231 * linux-nat.c (resume_lwp): Remove redundant debug output.
1232
4b60df3d
PA
12332011-10-10 Pedro Alves <pedro@codesourcery.com>
1234
1235 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1236 last_resume_kind before clearing it, and use the copy instead to
1237 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1238 resume_clear_callback in the non-stop path too.
1239
6501578c
YQ
12402011-10-09 Yao Qi <yao@codesourcery.com>
1241
1242 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1243 Honor OPTIONS and VAL's type.
1244 (common_val_print, value_print): Update to pass one more parameter.
1245
5a56e9c5
DE
12462011-10-09 Doug Evans <dje@google.com>
1247
1248 Add new "alias" command.
1249 * NEWS: Mention new command.
1250 * command.h (valid_user_defined_cmd_name_p): Declare.
1251 * defs.h (make_cleanup_dyn_string_delete): Declare.
1252 * utils.c: #include "dyn-string.h".
1253 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1254 * cli/cli-cmds.c: #include "dyn-string.h".
1255 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1256 (init_cli_cmds): Add new command.
1257 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1258
509f0fd9
JK
12592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1260
1261 Fix compatibility with older GCCs.
1262 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1263 * stack.c (read_frame_arg): Initialize val_deref.
1264
2bda9cc5
JK
12652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1266
1267 Entry values NEWS entries, DWARF disassembly support.
1268 * NEWS: New entry values entry.
1269 (set print entry-values, show print entry-values)
1270 (set debug entry-values, show debug entry-values): New entries.
1271 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1272 indent. Remove variable start. Move header printing out. Respect
1273 INDENT. Support DW_OP_GNU_entry_value.
1274 (locexpr_describe_location_1): Move the header printing here, extend
1275 the disassemble_dwarf_expression passed parameters.
1276
a471c594
JK
12772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 Display @entry parameter values even for references.
1280 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1281 coerce_ref_if_computed.
1282 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1283 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1284 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1285 existing push_dwarf_reg_entry_value call. Add new detection calling
1286 dwarf_block_to_dwarf_reg_deref. Update the error message.
1287 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1288 * dwarf2expr.h
1289 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1290 parameter deref_size, describe it in the comment.
1291 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1292 (dwarf_block_to_dwarf_reg_deref): New declaration.
1293 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1294 deref_size, describe it in the function comment. New variables
1295 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1296 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1297 describe it in the function comment. Fetch the alternative block
1298 accoring to DEREF_SIZE.
1299 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1300 (entry_data_value_free_closure, entry_data_value_funcs): New.
1301 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1302 outer_val, target_val, val and addr. Try to fetch and create also
1303 referenced value content.
1304 (pieced_value_funcs): NULL value for coerce_ref.
1305 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1306 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1307 coerce_ref_if_computed.
1308 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1309 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1310 * stack.c (read_frame_arg): Compare also dereferenced values.
1311 * value.c (value_computed_funcs): Make the parameter v const, use
1312 value_lval_const for it.
1313 (value_lval_const, coerce_ref_if_computed): New function.
1314 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1315 * value.h (struct lval_funcs): New field coerce_ref.
1316 (value_computed_funcs): Make the parameter v const.
1317 (value_lval_const, coerce_ref_if_computed): New declarations.
1318
36b11add
JK
13192011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1320
1321 Support @entry in input expressions.
1322 * c-exp.y (ENTRY, unknown_cpp_name): New.
1323 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1324 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1325 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1326 (name_not_typename: ENTRY): New.
1327 (yylex): Recognize ENTRY.
1328 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1329 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1330 Likewise.
1331 * parse.c (operator_length_standard): Likewise.
1332 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1333
3343315b
JK
13342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 Display referenced values in backtraces.
1337 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1338 * stack.c (print_frame_arg): Likewise.
1339
ac71a68c
JK
13402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1341
1342 Make some lval_funcs methods to default on NULL.
1343 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1344 NULL.
1345 (value_assign): Check if lval_computed write method is NULL.
1346 * value.h (struct lval_funcs): Comment NULL values for read and write
1347 methods.
1348
e18b2753
JK
13492011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 Display @entry parameter values (without references).
1352 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1353 New functions.
1354 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1355 New declarations.
1356 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1357 entry record.
1358 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1359 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1360 functions.
1361 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1362 (loclist_read_variable_at_entry): New function.
1363 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1364 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1365 DW_AT_location, call dwarf_block_to_sp_offset for it.
1366 * frame.h (print_entry_values_no, print_entry_values_only)
1367 (print_entry_values_preferred, print_entry_values_if_needed)
1368 (print_entry_values_both, print_entry_values_compact)
1369 (print_entry_values_default, print_entry_values): New declarations.
1370 (struct frame_arg): New field entry_kind.
1371 (read_frame_arg): New parameter entryargp.
1372 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1373 arg->entry_kind. Optionally print the `@entry' suffix.
1374 (list_args_or_locals): New variable entryarg, initialize it.
1375 Initialize also entry_kind of arg and entryarg. Conditionalize
1376 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1377 xfree for entryarg.error.
1378 * stack.c (print_entry_values_no, print_entry_values_only)
1379 (print_entry_values_preferred, print_entry_values_if_needed)
1380 (print_entry_values_both, print_entry_values_compact)
1381 (print_entry_values_default, print_entry_values_choices)
1382 (print_entry_values): New variables.
1383 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1384 print the `@entry' suffix, possibly in combination for
1385 print_entry_values_compact.
1386 (read_frame_arg): New parameter entryargp, new variables entryval,
1387 entryval_error and val_equal. Read in also entryargp, respect
1388 print_entry_values, compare the values using val_equal, fill in also
1389 argp->entry_kind (together with entryargp->entry_kind).
1390 (print_frame_args): New variable entryarg, initialize it.
1391 Conditionalize print_frame_arg for arg, add print_frame_arg for
1392 entryarg. Call xfree for entryarg.error.
1393 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1394 * symtab.h (struct symbol_computed_ops): New field
1395 read_variable_at_entry.
1396
93d86cef
JK
13972011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1398
1399 Code reshuffle.
1400 * frame.h (struct frame_arg): New definition.
1401 (read_frame_arg): New declaration.
1402 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1403 (list_args_or_locals): ... the code here. New variable arg, call
1404 read_frame_arg and list_arg_or_local with it. Unify the
1405 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1406 arg.error.
1407 * stack.c (print_frame_arg): New functiom from the code of
1408 print_frame_args.
1409 (read_frame_arg): New function.
1410 (print_frame_args): Remove variable val. New variable arg, call
1411 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1412
2d6c5dc2
JK
14132011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1414
1415 Protect entry values against self tail calls.
1416 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1417 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1418
111c6489
JK
14192011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 Recognize virtual tail call frames.
1422 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1423 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1424 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1425 * dwarf2-frame-tailcall.c: New file.
1426 * dwarf2-frame-tailcall.h: New file.
1427 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1428 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1429 REGS.PREV only after CIE execution.
1430 (struct dwarf2_frame_cache): New field tailcall_cache.
1431 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1432 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1433 parts, try to find entry_cfa_sp_offset. Call
1434 dwarf2_tailcall_sniffer_first.
1435 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1436 when appropriate.
1437 (dwarf2_frame_dealloc_cache): New function.
1438 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1439 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1440 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1441 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1442 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1443 * dwarf2loc.c (func_addr_to_tail_call_list)
1444 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1445 (call_site_find_chain_1, call_site_find_chain): New.
1446 * dwarf2loc.h (struct call_site_chain): New.
1447 (call_site_find_chain): New declaration.
1448 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1449 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1450 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1451 * stack.c (frame_info): Support also TAILCALL_FRAME.
1452
bb984ff1
JK
14532011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1454
1455 Tail call sites reader implementation.
1456 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1457 fill in TYPE_TAIL_CALL_LIST.
1458 * gdbtypes.h (struct func_type): New field tail_call_list.
1459 (struct call_site): New field tail_call_next.
1460 (TYPE_TAIL_CALL_LIST): New definition.
1461
8e3b41a9
JK
14622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1463
1464 Implement basic support for DW_TAG_GNU_call_site.
1465 * block.c: Include gdbtypes.h and exceptions.h.
1466 (call_site_for_pc): New function.
1467 * block.h (call_site_for_pc): New declaration.
1468 * defs.h: Include hashtab.h.
1469 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1470 declarations.
1471 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1472 ctx_no_push_dwarf_reg_entry_value.
1473 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1474 (dwarf_block_to_dwarf_reg): New function.
1475 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1476 (ctx_no_push_dwarf_reg_entry_value): New function.
1477 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1478 push_dwarf_reg_entry_value.
1479 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1480 declarations.
1481 * dwarf2loc.c: Include gdbcmd.h.
1482 (dwarf_expr_ctx_funcs): New forward declaration.
1483 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1484 (dwarf_expr_reg_to_entry_parameter)
1485 (dwarf_expr_push_dwarf_reg_entry_value): New.
1486 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1487 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1488 (needs_dwarf_reg_entry_value): New function.
1489 (needs_frame_ctx_funcs): Install it.
1490 (_initialize_dwarf2loc): New function.
1491 * dwarf2loc.h (entry_values_debug): New declaration.
1492 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1493 (read_call_site_scope): New forward declaration.
1494 (process_full_comp_unit): Copy call_site_htab.
1495 (process_die): Support DW_TAG_GNU_call_site.
1496 (read_call_site_scope): New function.
1497 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1498 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1499 (cleanup_htab): Delete.
1500 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1501 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1502 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1503 FIELD_LOC_KIND_DWARF_BLOCK.
1504 * gdbtypes.h (enum field_loc_kind): New entry
1505 FIELD_LOC_KIND_DWARF_BLOCK.
1506 (struct main_type): New loc entry dwarf_block.
1507 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1508 (TYPE_FIELD_DWARF_BLOCK): New.
1509 * python/py-type.c: Include dwarf2loc.h.
1510 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1511 internal_error call on unknown FIELD_LOC_KIND.
1512 * symtab.h (struct symtab): New field call_site_htab.
1513 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1514 (core_addr_hash, core_addr_eq): New functions.
1515
b6cdc2c1
JK
15162011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1517
1518 Code reshuffle.
1519 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1520 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1521 calling_convention under func_stuff there.
1522 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1523 (init_type) <TYPE_CODE_FUNC>: Likewise.
1524 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1525 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1526 * gdbtypes.h (enum type_specific_kind): Change
1527 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1528 (struct main_type) <type_specific>: Change calling_convention to
1529 func_stuff. Move calling_convention to ...
1530 (struct func_type): ... this new struct.
1531 (INIT_FUNC_SPECIFIC): New #define.
1532 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1533
181cebd4
JK
15342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1535
1536 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1537 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1538 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1539 ctx->ref_addr_size. Handle its invalid value.
1540 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1541 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1542 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1543 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1544 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1545 (dwarf2_per_cu_ref_addr_size): New function.
1546
c471e790
JK
15472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1548
1549 Code cleanup.
1550 * dwarf2read.c (per_cu_header_read_in): New function.
1551 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1552 variables cu_header_local and cu_headerp.
1553
741f5e3c
JK
15542011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1555
1556 Fix initial language detection with -readnow.
1557 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1558 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1559 searches only for global symbols.
1560
a73d2258
JK
15612011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1562
1563 Fix printed anonymous struct name.
1564 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1565 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1566 (anonymous_struct_prefix): New function.
1567 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1568 (dwarf2_name): Strip for anonymous structs any prefixes.
1569
749fd4ea
DE
15702011-10-07 Doug Evans <dje@google.com>
1571
1fa57852
DE
1572 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1573 `replace'.
1574
690a4937
DE
1575 * python/lib/gdb/printing.py: Whitespace cleanup.
1576
749fd4ea
DE
1577 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1578 warning.
1579
4c38200f
PA
15802011-10-07 Pedro Alves <pedro@codesourcery.com>
1581
1582 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1583 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1584 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1585 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1586 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1587 (arm_linux_remove_watchpoint): Adjust.
1588 * i386-linux-nat.c (i386_linux_dr_set_control)
1589 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1590 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1591 (ia64_linux_remove_watchpoint): Adjust.
1592 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1593 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1594 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1595 (ppc_linux_insert_mask_watchpoint)
1596 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1597 (ppc_linux_remove_watchpoint): Adjust.
1598 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1599 Adjust.
1600
b7ff339d
CV
16012011-10-07 Corinna Vinschen <vinschen@redhat.com>
1602
1603 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1604 (clear_win32_environment): New function for Cygwin to clear out
1605 Win32 environment.
1606 (windows_create_inferior): Prepare new environment from in_env
1607 for Cygwin, too.
1608
f287c1f3
PM
16092011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1610
5631e596 1611 PR python/13264
f287c1f3
PM
1612 * python/py-value.c (valpy_call): Check that arguments are
1613 a tuple.
1614 (is_intlike): Remove call to CHECK_TYPEDEF.
1615 (valpy_nonzero): Catch GDB exceptions.
1616 (valpy_absolute): Ditto.
1617 (valpy_lazy_string): Ditto.
1618 (valpy_call): Ditto.
1619 (valpy_get_is_optimized_out): Ditto.
1620 (valpy_long): Ditto.
1621 (valpy_float): Ditto.
1622 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1623 (valpy_richcompare): Ditto.
1624
03583c20
UW
16252011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1626
1627 * inferior.h (disable_randomization): Declare.
1628 * infrun.c (disable_randomization): New global variable.
1629 (show_disable_randomization): New function.
1630 (set_disable_randomization): Likewise.
1631 (_initialize_infrun): Install set/show disable-randomization
1632 commands.
1633 * linux-nat.c (disable_randomization): Remove.
1634 (show_disable_randomization): Likewise.
1635 (set_disable_randomization): Likewise.
1636 (_initialize_linux_nat): No longer install set/show
1637 disable-randomization commands here.
1638 (linux_nat_supports_disable_randomization): New function.
1639 (linux_nat_add_target): Install it.
1640 * remote.c (PACKET_QDisableRandomization): New enum value.
1641 (remote_protocol_packets): Support QDisableRandomization.
1642 (_initialize_remote): Likewise.
1643 (remote_supports_disable_randomization): New function.
1644 (init_remote_ops): Install it.
1645 (extended_remote_supports_disable_randomization): New function.
1646 (init_extended_remote_ops): Install it.
1647 (extended_remote_disable_randomization): New function.
1648 (extended_remote_create_inferior_1): Call it.
1649 * target.h (struct target_ops): Add to_supports_disable_randomization.
1650 (target_supports_disable_randomization): Add prototype.
1651 * target.c (target_supports_disable_randomization): New function.
1652 (find_default_supports_disable_randomization): Likewise.
1653 (init_dummy_target): Install it.
1654
20c168b5
KP
16552011-10-07 Kevin Pouget <kevin.pouget@st.com>
1656
1657 Allow Python notification of new object-file loadings.
1658 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1659 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1660 Add build rule for this file.
1661 * python/py-event.h (emit_new_objfile_event): New prototype.
1662 (newobjfile): New Python event emitter.
1663 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1664 Python event registry.
1665 * python/py-inferior.c: Include objfiles.h
1666 (python_new_objfile): New function.
1667 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1668 observers.
1669 * python/py-newobjfileevent.c: New file.
1670 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1671 prototype.
1672 * python/python.c (_initialize_python): Add
1673 gdbpy_initialize_new_objfile_event call.
1674 * NEWS: Add item for new Python event "gdb.newobjfile"
1675
b1c8db38
TG
16762011-10-05 Tristan Gingold <gingold@adacore.com>
1677
1678 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1679 Extract the ravenscar task name from the symbol for the atcb.
1680
0dab82e9
PK
16812011-10-04 Paul Koning <paul_koning@dell.com>
1682
1683 * python/py-type.c (typy_make_iter): Add forward declaration.
1684 (typy_fields_items): Use the gdb.Type iterator.
1685
84ad80e6
PK
16862011-10-04 Paul Koning <paul_koning@dell.com>
1687
1688 * NEWS: Add entry for Python gdb.Type mapping methods.
1689
cb6be26b
KP
16902011-10-04 Kevin Pouget <kevin.pouget@st.com>
1691
1692 PR python/12691: Add the inferior to Python exited event
1693 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1694 to exited_event.
1695 * python/py-event.h (emit_exited_event): Likewise
1696 * python/-inferior.c (python_inferior_exit): Likewise
1697
6005b210
JB
16982011-10-03 Joel Brobecker <brobecker@adacore.com>
1699
1700 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1701 in output of -ada-task-info GDB/MI command.
1702
75082e8c
JB
17032011-10-03 Joel Brobecker <brobecker@adacore.com>
1704
1705 * ada-lang.h (struct inferior): Declare.
1706 (print_ada_task_info): Add declaration.
1707 * ada-tasks.c (print_ada_task_info): Make non-static.
1708 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1709 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1710 * mi/mi-main.c: #include "ada-lang.h".
1711 (mi_cmd_list_features): Add "ada-task-info" to the list
1712 of supported features.
1713 (mi_cmd_ada_task_info): New function.
1714
7ed7d719
JB
17152011-10-03 Joel Brobecker <brobecker@adacore.com>
1716
1717 * python/python.c (python_run_simple_file): New function.
1718 (source_python_script, source_python_script_for_objfile):
1719 Replace call to PyRun_SimpleFile by call to
1720 python_run_simple_file.
1721
3fcaed38
PK
17222011-10-03 Paul Koning <paul_koning@dell.com>
1723
1724 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1725 (value_to_value_object): Fetch value if it was lazy.
1726
8e5c319d
JK
17272011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1728
1729 Code cleanup.
1730 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1731 Rearrange the code for it.
1732
dd11a36c
JB
17332011-10-02 Joel Brobecker <brobecker@adacore.com>
1734
1735 * breakpoint.c (bkpt_print_recreate): Add call to
1736 print_recreate_thread.
1737
723b724b
MF
17382011-09-29 Mike Frysinger <vapier@gentoo.org>
1739
1740 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1741 PTRACE_GETFDPIC_INTERP): Define.
1742
412946b6
YQ
17432011-09-28 Yao Qi <yao@codesourcery.com>
1744
1745 * symfile.c (add_symbol_file_command): Update message on usage.
1746
a73bb892
PK
17472011-09-28 Paul Koning <paul_koning@dell.com>
1748
1749 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1750 (typy_length, typy_get, typy_has_key, typy_make_iter)
1751 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1752 (typy_iterator_iter, typy_iterator_iternext)
1753 (typy_iterator_dealloc): New functions to implement standard
1754 Python mapping methods on gdb.Type object.
1755 (gdb.TypeIterator): New Python type.
1756 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1757
fe10a582
DM
17582011-09-28 David S. Miller <davem@davemloft.net>
1759
1760 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1761 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1762 * sparc-tdep.c (sparc_complex_floating_p): New function.
1763 (sparc32_store_arguments): Handle complex floats.
1764 (sparc32_extract_return_value): Likewise.
1765 (sparc32_store_return_value): Likewise.
1766 (sparc32_stabs_argument_has_addr): Likewise.
1767 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1768 (sparc64_store_floating_fields): Handle complex floats.
1769 (sparc64_store_arguments): Likewise.
1770 (sparc64_store_return_value): Likewise.
1771
c93dbcba
EZ
17722011-09-28 Eli Zaretskii <eliz@gnu.org>
1773
1774 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1775 before the change on 2006-12-09.
1776 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1777 generates the environment block for CreateProcessA, modulo the
1778 Cygwin-specific parts that are not needed here.
1779
f00c55f8
TG
17802011-09-27 Tristan Gingold <gingold@adacore.com>
1781
1782 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1783 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1784 (darwin_solib_get_all_image_info_addr_at_init): New function.
1785 (darwin_solib_read_all_image_info_addr): Likewise.
1786 (darwin_solib_create_inferior_hook): Use the above two functions.
1787 * darwin-nat.c (darwin_execvp): Renames retval to res.
1788 (darwin_read_write_inferior): Update comment.
1789 (darwin_read_dyld_info): New function.
1790 (darwin_xfer_partial): Handle DYLD_INFO.
1791
6710bf39
SS
17922011-09-27 Stan Shebs <stan@codesourcery.com>
1793
1794 Add return address collection for tracepoints.
1795 * tracepoint.c (encode_actions_1): Add case for $_ret.
1796 (validate_actionline): Check for $_ret.
1797 (trace_dump_actions): Ditto.
1798 * ax-gdb.h (gen_trace_for_return_address): Declare.
1799 * ax-gdb.c: Include arch-utils.h.
1800 (gen_trace_for_return_address): New function.
1801 (agent_command): Add return address special case.
1802 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1803 (amd64_gen_return_address): New function.
1804 (amd64_init_abi): Call it.
1805 * i386-tdep.c: Include ax.h and ax-gdb.h.
1806 (i386_gen_return_address): New function.
1807 (i386_init_abi): Call it.
1808 * arch-utils.h (default_gen_return_address): Declare.
1809 * arch-utils.c (default_gen_return_address): New function.
1810 * gdbarch.sh (gen_return_address): New method.
1811 * gdbarch.h, gdbarch.c: Regenerate.
1812
e04e5beb
JM
18132011-09-23 Joseph Myers <joseph@codesourcery.com>
1814
1815 PR gdb/13079
1816 * i386-tdep.c (i386_frame_align): New.
1817 (i386_gdbarch_init): Use i386_frame_align.
1818
f3d6df6d
YQ
18192011-09-23 Yao Qi <yao@codesourcery.com>
1820
1821 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1822 to get address.
1823
e69860f1
TG
18242011-09-22 Tristan Gingold <gingold@adacore.com>
1825
1826 * fork-child.c (fork_inferior): Add exec_fun parameter.
1827 Call exec_fun or execvp.
1828 * inferior.h: Adjust prototype.
1829 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1830 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1831 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1832 * procfs.c (procfs_create_inferior): Ditto.
1833 * darwin-nat.c (darwin_execvp): New function.
1834 (darwin_create_inferior): Use it.
1835
4b51d87b
YQ
18362011-09-22 Yao Qi <yao@codesourcery.com>
1837
1838 * infrun.c (context_switch): Print debug message when switching to
1839 a different thread.
1840
56b9d9ac
UW
18412011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1842
1843 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1844 complex and vector types.
1845 (s390_return_value_convention): Likewise.
1846
1847 (s390_value_from_register): Call check_typedef.
1848 (extend_simple_arg): Likewise.
1849 (alignment_of): Likewise.
1850 (s390_push_dummy_call): Likewise.
1851 (s390_return_value): Likewise.
1852
b2cd6b29
JM
18532011-09-21 Joseph Myers <joseph@codesourcery.com>
1854
1855 * event-top.c (async_disconnect): If an exception is thrown from
1856 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1857 catch_errors.
1858 * top.c (quit_cover): Return void and take no arguments.
1859 * top.h (quit_cover): Update prototype.
1860
67ba4e42
JM
18612011-09-20 Joseph Myers <joseph@codesourcery.com>
1862
1863 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1864 current_uiout, not uiout.
1865
562f943b
DE
18662011-09-19 Doug Evans <dje@google.com>
1867
1868 * python/py-auto-load.c (source_section_scripts): Fix file
1869 descriptor leak.
1870 * python/python.c (source_python_script_for_objfile): Tweak comments.
1871
34518530
YQ
18722011-09-18 Yao Qi <yao@codesourcery.com>
1873 Ulrich Weigand <ulrich.weigand@linaro.org>
1874
1875 Support displaced stepping for Thumb 16-bit insns.
1876 * arm-tdep.c (THUMB_NOP) Define.
1877 (thumb_copy_unmodified_16bit): New.
1878 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1879 (thumb_copy_alu_reg): New.
1880 (arm_copy_svc): Move some common code to ...
1881 (install_svc): ... here. New.
1882 (thumb_copy_svc): New.
1883 (install_pc_relative): New.
1884 (thumb_copy_pc_relative_16bit): New.
1885 (thumb_decode_pc_relative_16bit): New.
1886 (thumb_copy_16bit_ldr_literal): New.
1887 (thumb_copy_cbnz_cbz): New.
1888 (cleanup_pop_pc_16bit_all): New.
1889 (thumb_copy_pop_pc_16bit): New.
1890 (thumb_process_displaced_16bit_insn): New.
1891 (thumb_process_displaced_32bit_insn): New.
1892 (thumb_process_displaced_insn): process thumb instruction.
1893
1894 Support displaced stepping for Thumb 32-bit insns.
1895 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1896 (thumb2_copy_preload): New.
1897 (thumb2_copy_copro_load_store): New.
1898 (thumb2_copy_b_bl_blx): New.
1899 (thumb2_copy_alu_imm): New.
1900 (thumb2_copy_load_reg_imm): New.
1901 (thumb2_copy_load_literal): New
1902 (thumb2_copy_block_xfer): New.
1903 (thumb_32bit_copy_undef): New.
1904 (thumb_32bit_copy_unpred): New.
1905 (thumb2_decode_ext_reg_ld_st): New.
1906 (thumb2_decode_svc_copro): New.
1907 (decode_thumb_32bit_store_single_data_item): New.
1908 (thumb_copy_pc_relative_32bit): New.
1909 (thumb_decode_pc_relative_32bit): New.
1910 (decode_thumb_32bit_ld_mem_hints): New.
1911 (thumb2_copy_table_branch): New
1912 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1913 instructions.
1914
2b16b2e3
YQ
19152011-09-18 Yao Qi <yao@codesourcery.com>
1916
1917 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1918 (install_b_bl_blx): Likewise.
1919
0f6f04ba
YQ
19202011-09-17 Yao Qi <yao@codesourcery.com>
1921
1922 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1923 (install_load_store): ... this. New.
1924 Change parameter BYTE to SIZE.
1925 (arm_copy_ldr_str_ldrb_strb): Update caller.
1926 (arm_decode_ld_st_word_ubyte): Update caller.
1927
e2d96639
YQ
19282011-09-17 Yao Qi <yao@codesourcery.com>
1929
1930 * infrun.c (displaced_step_fixup): Move some code ...
1931 (displaced_step_restore): ... here. New function.
1932 (handle_inferior_event): Cleanup displaced stepping state for both
1933 child and parent when get forked or vforked event.
1934 * regcache.c (get_thread_arch_aspace_regcache): New function.
1935 get_thread_arch_regcache (): Call it.
1936
a8123151
JB
19372011-09-16 Joel Brobecker <brobecker@adacore.com>
1938
1939 * ada-tasks.c (print_ada_task_info): New function, merging
1940 short_task_info and info_tasks together. Reimplement using
1941 ui-out instead of printing to stdout directly. Move the code
1942 building and checking the task list here, instead of leaving it
1943 in info_tasks_command.
1944 (info_task): Move the code building and checking the task
1945 list here, instead of leaving it in info_tasks_command.
1946 (info_tasks_command): Delete code building and checking
1947 the task list - moved elsewhere. Update calls to info_tasks
1948 and info_task.
1949
fbf06824
JB
19502011-09-16 Joel Brobecker <brobecker@adacore.com>
1951
1952 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1953
34a0bc90
JB
19542011-09-16 Joel Brobecker <brobecker@adacore.com>
1955
1956 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1957
79779fa9
JB
19582011-09-16 Joel Brobecker <brobecker@adacore.com>
1959
1960 * ada-lang.h (ada_build_task_list): Remove parameter
1961 `warn_if_null'.
1962 * ada-tasks.c (ada_build_task_list): Remove parameter
1963 `warn_if_null'. Adjust implementation and documentation.
1964 (valid_task_id, ada_get_environment_task)
1965 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1966 (info_tasks_command): Adjust implementation.
1967 (task_command): Likewise.
1968 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1969 to ada_build_task_list.
1970
e225eb91
JB
19712011-09-16 Joel Brobecker <brobecker@adacore.com>
1972
1973 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1974 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1975 (ada_tasks_inferior_data_handle): New static global.
1976 (get_ada_tasks_inferior_data): New function.
1977 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1978 (ada_get_environment_task, iterate_over_live_ada_tasks)
1979 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1980 Adjust.
1981 (ada_set_current_inferior_known_tasks_addr): New function.
1982 (read_known_tasks, ada_build_task_list, short_task_info)
1983 (info_tasks, info_task, info_tasks_command, task_command_1)
1984 (task_command, ada_task_list_changed): Adjust.
1985 (ada_tasks_invalidate_inferior_data): New function.
1986 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1987 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1988 * ada-lang.h (struct inferior): Add declaration.
1989 (ada_task_list_changed): Update profile.
1990 * remote-wtx-pd.c: #include "inferior.h".
1991 (switch_to_pd_internal): Update call to ada_task_list_changed.
1992
6da9ca05
JB
19932011-09-16 Joel Brobecker <brobecker@adacore.com>
1994
1995 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1996 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1997 (atcb_fieldno): Delete these static globals.
1998 (struct ada_tasks_pspace_data): New struct.
1999 (ada_tasks_pspace_data_handle): New static global.
2000 (get_ada_tasks_pspace_data): New function.
2001 (ada_tasks_invalidate_pspace_data): New function.
2002 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2003 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2004 (_initialize_tasks): Create this module's per-progspace
2005 data handle.
2006
dccd3cbd
JB
20072011-09-16 Joel Brobecker <brobecker@adacore.com>
2008
2009 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2010
f877b031
TG
20112011-09-16 Tristan Gingold <gingold@adacore.com>
2012
2013 * fork-child.c (fork_inferior): Update comment. Use alloca
2014 instead of xmalloc for argv. Move len and shell_command
2015 declarations in the block where they are used.
2016 Only call execvp. Factorize failure code.
2017
ae0c443d
JK
20182011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2019
2020 Code cleanup.
2021 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2022 `exp_element' instead of an element of the same and make the function
2023 static.
2024 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2025 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2026 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2027 Change argument of `write_exp_elt' function call.
2028 Remove extra spaces from comments.
2029 * parser-defs.h (write_exp_elt): Remove prototype.
2030
5af65ec0
PK
20312011-09-15 Paul Koning <paul_koning@dell.com>
2032
2033 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2034 count of item appended to list.
2035 * python/py-type.c (typy_fields): Likewise.
2036
72be8ccc
PK
20372011-09-15 Paul Koning <paul_koning@dell.com>
2038
883640a8 2039 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2040
92f6badc
KP
20412011-09-15 Kevin Pouget <kevin.pouget@st.com>
2042
2043 PR threads/12628
2044 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2045 processes with multiple threads.
2046 (inf_has_multiple_thread_cb): New function.
2047 (inf_has_multiple_threads): New function.
2048
0672bf41 20492011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2050
2051 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2052 * python/py-inferior.c (GdbMethods): New Python method definition.
2053
6839b47f
KP
20542011-09-15 Kevin Pouget <kevin.pouget@st.com>
2055
2056 Handle multiple breakpoint hits in Python interface:
2057 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2058 variable to breakpoints.
2059 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2060 bps instead of single breakpoint. Fix some space typos.
2061 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2062 variable to breakpoints.
2063
672f9b60
KP
20642011-09-15 Kevin Pouget <kevin.pouget@st.com>
2065
2066 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2067 note if the breakpoint is internal.
2068
43675ae4
KP
20692011-09-15 Kevin Pouget <kevin.pouget@st.com>
2070
0672bf41 2071 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2072
15148d6a
PA
20732011-09-14 Pedro Alves <pedro@codesourcery.com>
2074
2075 * infrun.c (prepare_for_detach, wait_for_inferior)
2076 (fetch_inferior_event): Don't flush the register cache.
2077 * remote.c (struct stop_reply) <regcache>: Add comment.
2078
d83e736b
JK
20792011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2080
2081 Remove excessive DWARF expressions memory duplication.
2082 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2083 for block.data.
2084 (indirect_pieced_value): Remove variable result. Remove variable
2085 back_to and its use for baton.data.
2086 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2087 block.data.
2088 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2089 Update the function comment.
2090
c65b3e0d
PA
20912011-09-13 Pedro Alves <pedro@codesourcery.com>
2092
2093 * inferior.h (ALL_INFERIORS): New.
2094 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2095 for a stopped thread.
2096 (thread_db_find_new_threads): Look for threads in all inferiors.
2097
a1398e0c
PA
20982011-09-13 Pedro Alves <pedro@codesourcery.com>
2099
2100 * breakpoint.c (update_watchpoint): Handle the case of the
2101 watchpoint to update not being in the breakpoint list yet.
2102 (hw_watchpoint_use_count): New, factored out from
2103 hw_watchpoint_used_count.
2104 (hw_watchpoint_used_count): Rename to ...
2105 (hw_watchpoint_used_count_others): ... this. Add `except'
2106 parameter. Don't count resources of `except'. Use
2107 hw_watchpoint_use_count.
2108
30596231
PA
21092011-09-13 Pedro Alves <pedro@codesourcery.com>
2110
2111 * gdbthread.h (enum thread_state): Moved here.
2112 (struct thread_info): Rename `executing_' field to `executing' and
2113 `state_' to `state'.
2114 * thread.c (enum thread_state): Moved to gdbthread.h.
2115 (new_thread, add_thread_silent, delete_thread_1)
2116 (any_live_thread_of_process, thread_alive, set_running)
2117 (set_running, is_thread_state, any_running, is_executing)
2118 (set_executing, finish_thread_state, print_thread_info)
2119 (do_captured_thread_select): Adjust.
2120
bede5f5f
JK
21212011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2122
2123 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2124 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2125
4801a9a3
PA
21262011-09-12 Pedro Alves <pedro@codesourcery.com>
2127 Matt Rice <ratmice@gmail.com>
2128
2129 PR gdb/13175
2130
2131 * interps.c (struct interp) <interpreter_out>: Delete field.
2132 (interp_new): Remove the data and uiout parameters and adjust.
2133 (interp_set): Only set the current_uiout from the interpreter's
2134 uiout after initializing the interpreter. Adjust call to
2135 init_proc.
2136 (interp_ui_out): Adjust to call procs->ui_out_proc.
2137 (interp_data, interp_name): New.
2138 * interps.h (interp_init_ftype): Add `self' parameter.
2139 (interp_ui_out_ftype): New typedef.
2140 (struct interp_procs) <ui_out_proc>: New method pointer.
2141 (interp_new): Remove the data and uiout parameters.
2142 (interp_data, interp_name): Declare.
2143 * tui/tui-interp.c (tui_init): Adjust prototype.
2144 (tui_ui_out): New.
2145 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2146 tui_out here. Adjust call to interp_new.
2147 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2148 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2149 (cli_ui_out): New.
2150 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2151 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2152 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2153 Initialize mi->uiout depending on the mi_version as extracted from
2154 the interpreter's name.
2155 (mi_ui_out): New.
2156 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2157 interp_new. Don't allocate the ui_out's of the interpreters here.
2158
d0afda03 21592011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2160
d0afda03 2161 * solib.c (solib_used): New function.
59145f8c
AR
2162 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2163 by another so_list object before freeing it.
2164
bdaf8d4a
JK
21652011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 Code cleanup.
2168 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2169 values.
2170
df15bd07
JK
21712011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2172
2173 Code cleanup.
2174 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2175 (amd64_skip_xmm_prologue): ... this new function. Describe its
2176 parameters. No longer use amd64_prologue_line_bug.
2177 * defs.h (producer_is_gcc_ge_4): New declaration.
2178 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2179 (process_full_comp_unit): Update its caller. Remove
2180 amd64_prologue_line_bug initialization.
2181 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2182 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2183
25289eb2
PA
21842011-09-09 Pedro Alves <pedro@codesourcery.com>
2185
2186 * linux-nat.h (enum resume_kind): New.
2187 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2188 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2189 resume_stop on the new lwp.
25289eb2
PA
2190 (add_lwp): Set last_resume_kind as resume_continue by default.
2191 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2192 (resume_lwp): New, factored out from resume_callback. Also check
2193 for pending status in lp->waitstatus.
2194 (resume_callback): Reimplement.
2195 (resume_clear_callback): Set last_resume_kind as resume_stop.
2196 (resume_set_callback): Set last_resume_kind as resume_continue.
2197 (linux_nat_resume, linux_handle_extended_wait): Set
2198 last_resume_kind.
2199 (running_callback): Also check lp->waitstatus for pending events.
2200 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2201 is resume_step.
2202 (stop_and_resume_callback): Don't re-resume if the core wanted the
2203 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2204 using an invalidated pointer.
2205 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2206 SIGSTOPs if the core wanted the LWP to stop.
2207 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2208 wanted the lwp to stop. If the core wanted the lwp to stop, and
2209 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2210 of TARGET_SIGNAL_STOP.
2211 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2212 here. Instead, signal the lwp, and set the last_resume_kind to
2213 resume_stop.
2214
f687d035
PA
22152011-09-09 Pedro Alves <pedro@codesourcery.com>
2216
2217 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2218 -1 (error), if the lwp exits right after attaching.
2219
bc587a6b
DE
22202011-09-08 Doug Evans <dje@google.com>
2221
63d97a20
DE
2222 * py-cmd.c: Some minor formatting fixes.
2223 (gdbpy_parse_command_name): Rename text arg to name, make const.
2224 All callers updated.
2225 * python-internal.h (gdbpy_parse_command_name): Update.
2226
bc587a6b
DE
2227 * cli/cli-decode.c (add_cmd): Add comment.
2228
08711b9a
JK
22292011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2230
2231 PR breakpoints/12435
2232 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2233 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2234 * dwarf2read.c (process_full_comp_unit): Initialize
2235 amd64_prologue_line_bug.
2236 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2237
b2e7f004
JK
22382011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2239
2240 Fix TUI screen corruption.
2241 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2242 batch_flag.
2243
8afd712c
JK
22442011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2245
2246 * findvar.c (read_var_value): Never return NULL, throw an error
2247 instead. Update the function comment. State symbol name in the error
2248 messages.
2249 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2250 read_var_value.
2251 * stack.c (print_frame_args): Likewise.
2252 * valops.c (value_of_variable): Likewise.
2253
b99b5f66
JK
22542011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2255
2256 * stack.c (print_frame_args): New variable except. Wrap
2257 read_var_value and common_val_print into TRY_CATCH.
2258
85bc8cb7
JK
22592011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2260
2261 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2262 caller to value_of_this.
2263 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2264 Twice.
2265 * valops.c (value_of_this): Remove parameter complain and variable ret.
2266 Update function comment. Never return NULL by this code.
2267 (value_of_this_silent): New function.
2268 * value.h (value_of_this): Remove parameter complain.
2269 (value_of_this_silent): New declaration.
2270
ede1849f
YQ
22712011-09-07 Yao Qi <yao@codesourcery.com>
2272
2273 * gdbthread.h (struct thread_info): Remove fields
2274 `stepping_through_solib_after_catch' and
2275 `stepping_through_solib_catchpoints'.
2276 * infrun.c (init_thread_stepping_state): Update.
2277 (process_event_stop_test, currently_stepping): Update.
2278 (currently_stepping_or_nexting_callback): Update.
2279
6aa27652
YQ
22802011-09-07 Yao Qi <yao@codesourcery.com>
2281
2282 * gdbthread.h (struct thread_info): Comment on field
2283 `step_after_step_resume_breakpoint'.
2284
00db5b94
PA
22852011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2286
2287 * remote.c (remote_console_output): Reindent.
2288
861152be
LM
22892011-09-06 Luis Machado <lgustavo@codesourcery.com>
2290
2291 * frame.c (has_stack_frames): Check for currently selected
2292 traceframe.
2293
ab821bc6
PA
22942011-09-06 Pedro Alves <pedro@codesourcery.com>
2295
2296 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2297 (set_async_annotation_level, set_async_prompt, pop_prompt)
2298 (push_prompt, new_async_prompt): Delete declarations.
2299 * top.h (get_prompt, set_prompt): Change prototype.
2300 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2301 declarations.
2302 * top.c (command_loop):
2303 (top_prompt): New global.
2304 (get_prefix, set_prefix, get_suffix, ): Delete.
2305 (get_prompt, set_prompt): Rewrite.
2306 (show_new_async_prompt): Rename to ...
2307 (show_prompt): ... this.
2308 (init_main): Adjust. Don't handle --annotate=2 here.
2309 * event-top.c (new_async_prompt): Delete.
2310 (the_prompts): Delete.
2311 (more_to_come): Make static.
2312 (display_gdb_prompt): Use top_level_prompt() to compute the top
2313 level prompt, and don't notify the before_prompt observers
2314 directly here. Always trick readline into not trying to display
2315 the prompt if sync_execution and displaying the primary prompt.
2316 If displaying a local/secondary prompt, always show it, even if
2317 sync_execution is set.
2318 (change_annotation_level): Delete.
2319 (top_level_prompt): New, based on change_annotation_level.
2320 (push_prompt, pop_prompt): Delete.
2321 (async_disable_stdin): No longer pushes prompt.
2322 (command_line_handler): No longer pushes or pops prompt. If more
2323 input is expected, call display_gdb_prompt with an explicit empty
2324 prompt.
2325 (async_stop_sig): Adjust.
2326 (set_async_annotation_level, set_async_prompt): Delete.
2327 * python/python.c (before_prompt_hook): Adjust.
2328
f1d90504
PA
23292011-09-05 Pedro Alves <pedro@codesourcery.com>
2330
2331 PR cli/13110
2332
2333 * infrun.c (fetch_inferior_event): Check if there's a selected
2334 thread before checking if the selected thread is executing.
2335
0f641c01
PA
23362011-09-05 Pedro Alves <pedro@codesourcery.com>
2337
2338 * inf-loop.c (execute_command): Don't check if the current thread
2339 if running before synchronously waiting for command completion.
2340 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2341 here.
2342 (normal_stop): Call async_enable_stdin here.
2343 * inf-loop.c (inferior_event_handler): Don't call
2344 async_enable_stdin, nor handle "set exec-done-display" here.
2345
30368258 23462011-09-04 Joel Brobecker <brobecker@adacore.com>
2347
2348 GDB 7.3.1 released.
2349
31916278
JB
23502011-09-04 Joel Brobecker <brobecker@adacore.com>
2351
2352 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2353
e8d56f18
JB
23542011-09-04 Joel Brobecker <brobecker@adacore.com>
2355
2356 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2357
5dd05d8c
JK
23582011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2359
2360 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2361
7d8e6458 23622011-09-02 Matt Rice <ratmice@gmail.com>
2363
2364 PR gdb/10720
2365 * event-top.c (cli_command_loop): Replace readline setup with
2366 direct call to display_gdb_prompt.
2367 (display_gdb_prompt): Do not call observer mechanism during
2368 synchronous execution.
2369
84636d28
PA
23702011-09-02 Pedro Alves <pedro@codesourcery.com>
2371
2372 * linux-nat.c (in_pid_list_p): New.
2373 (linux_record_stopped_pid): Delete.
2374 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2375 already attached to the LWP. Return an indication if so.
2376 (linux_nat_filter_event): Adjust.
2377 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2378 returning an indication to ignore this thread.
2379
b4a14fd0
PA
23802011-09-02 Pedro Alves <pedro@codesourcery.com>
2381
2382 * top.c: Include interps.h.
2383 (execute_command): If the target can async, but the interpreter is
2384 in sync mode, synchronously wait for the command to finish before
2385 returning.
2386 (execute_command_to_string): Force the interpreter to sync mode.
2387 * infrun.c: Include interps.h.
2388 (fetch_inferior_event): Don't restore the prompt yet if the
2389 interpreter is in sync mode.
2390 * interps.c (interpreter_async): New global.
2391 * interps.h (interpreter_async): Declare.
2392 * inf-loop.c: Include interps.h.
2393 (inferior_event_handler): Don't print the language change or run
2394 breakpoint commands yet if the interpreter in is sync mode.
2395 * main.c (captured_command_loop): Flip the interpreter to async
2396 mode.
2397 * cli/cli-script.c: Include interps.h.
2398 (execute_user_command, while_command, if_command): Force the
2399 interpreter to sync mode.
2400 * python/python.c: Include interps.h.
2401 (python_command, execute_gdb_command): Force the interpreter to
2402 sync mode.
2403
c709acd1
PA
24042011-09-02 Pedro Alves <pedro@codesourcery.com>
2405
2406 * value.c (show_convenience): Catch errors thrown while printing
2407 each internal variable.
2408 * infrun.c (validate_siginfo_access): New function.
2409 (siginfo_value_read, siginfo_value_write): Call it.
2410
9655e943
JK
24112011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2412
2413 Revert:
2414 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2415 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2416 attribute.
2417
cb457ae2
YQ
24182011-08-29 Yao Qi <yao@codesourcery.com>
2419
2420 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2421 (cmp_name): New.
2422 (enable_break2): Update caller.
2423 * solib-frv.c (bfd_lookup_symbol): Removed.
2424 (cmp_name): New.
2425 (enable_break2): Update caller.
2426 * solib-pa64.c (bfd_lookup_symbol): Removed.
2427 (cmp_name): New.
2428 * solib-svr4.c (bfd_lookup_symbol): Removed.
2429 (cmp_name_and_sec_flags): New.
2430 (enable_break): Update caller.
2431 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2432 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2433 (gdb_bfd_lookup_symbol): New.
2434 * solib.h: Functions declarations.
2435
83d1a36a
YQ
24362011-08-29 Yao Qi <yao@codesourcery.com>
2437
2438 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2439 and solib-dsbt.o.
2440
c04b3e8f
JK
24412011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2442
2443 Fix TUI stepi on code without symbols.
2444 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2445 current PC instead.
2446
cb0fd152
JK
24472011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2448
2449 Code cleanup.
2450 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2451 and the static keyword.
2452 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2453 Make prefix an array.
2454 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2455 * mi/mi-main.c (get_register): Remove stb initialization and the static
2456 keyword.
2457
91174723
JK
24582011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2459
2460 Code cleanup - make mi_opt const.
2461 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2462 opts const.
2463 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2464 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2465 (mi_cmd_env_dir): Likewise.
2466 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2467 (mi_cmd_target_file_put): Likewise.
2468 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2469 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2470 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2471 (mi_valid_noargs): Make opts const.
2472 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2473 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2474 (mi_cmd_data_read_memory): Likewise.
2475 (mi_cmd_data_read_memory_bytes): Likewise.
2476 (mi_cmd_data_write_memory): Likewise.
2477
5068b8e8 24782011-08-26 Matt Rice <ratmice@gmail.com>
2479
2480 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2481 bcache_xmalloc, replace bcache_xmalloc with call to
2482 psymbol_bcache_init for psymbol_cache.
2483 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2484
a4f2ce05
JK
24852011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2486
2487 * inf-loop.c (inferior_event_handler): Add exception_print in
2488 INF_EXEC_COMPLETE.
2489
353d1d73
JK
24902011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2491
2492 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2493 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2494 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2495 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2496 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2497 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2498 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2499 * infrun.c (fetch_inferior_event): Call
2500 make_bpstat_clear_actions_cleanup.
2501 * top.c (execute_command): New variable cleanup_if_error, call
2502 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2503 * utils.c (do_bpstat_clear_actions_cleanup)
2504 (make_bpstat_clear_actions_cleanup): New functions.
2505
3ced3da4
PA
25062011-08-26 Pedro Alves <pedro@codesourcery.com>
2507
2508 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2509 either the parent or the child forks. Rename a couple locals.
2510
a9f4bb21
PA
25112011-08-26 Pedro Alves <pedro@codesourcery.com>
2512
2513 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2514 library call. Avoid reading the `status' local if all waitpid
2515 calls failed.
2516
e5798bef
PA
25172011-08-26 Pedro Alves <pedro@codesourcery.com>
2518
2519 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2520 opening /proc/PID/task always succeeds.
2521
edb2aadf
AR
25222011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2523
2524 * linespec.c (symtab_from_filename): Check for the end of string.
2525
0d932b2f
MK
25262011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2527
2528 PR mi/11912
2529 * varobj.c (cplus_describe_child): Add the keyword
2530 'class' to the output of the method when dealing
2531 with a cast to a base class.
2532
e93ca019
JK
25332011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2534
2535 No functionality change.
2536 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2537 function comment a reference, new variables tp and bs, move here code
2538 from throw_exception.
2539 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2540 describe it in the comment.
2541 * exceptions.c (throw_exception): Remove variable tp, move the code for
2542 bpstat_clear_actions to bpstat_clear_actions.
2543
13da1c97
LM
25442011-08-24 Luis Machado <lgustavo@codesourcery.com>
2545
2546 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2547 * linux-nat.c: Include linux-procfs.h.
2548 (linux_proc_get_tgid): Move to ...
2549 * common/linux-procfs.c: ... here. New file.
2550 * common/linux-procfs.h: New file.
2551 * linux-thread-db.c: Include linux-procfs.h.
2552 * Makefile.in: Update dependencies.
2553 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2554 * config/arm/linux.mh: Likewise.
2555 * config/i386/linux.mh: Likewise.
2556 * config/i386/linux64.mh: Likewise.
2557 * config/ia64/linux.mh: Likewise.
2558 * config/m32r/linux.mh: Likewise.
2559 * config/m68k/linux.mh: Likewise.
2560 * config/mips/linux.mh: Likewise.
2561 * config/pa/linux.mh: Likewise.
2562 * config/pa/linux.mh: Likewise.
2563 * config/powerpc/linux.mh: Likewise.
2564 * config/powerpc/ppc64-linux.mh: Likewise.
2565 * config/powerpc/spu-linux.mh: Likewise.
2566 * config/sparc/linux.mh: Likewise.
2567 * config/sparc/linux64.mh: Likewise.
2568 * config/xtensa/linux.mh: Likewise.
2569
4e5c165d
HZ
25702011-08-24 Hui Zhu <teawater@gmail.com>
2571
2572 * tracepoint.c (cond_string_is_same): New function.
2573 (find_matching_tracepoint): Add condition check
2574 by cond_string_is_same.
2575
6e2f5b22
JK
25762011-08-23 Josh Matthews <josh@joshmatthews.net>
2577
2578 Fix build error in Darwin port.
2579 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2580
abf85f46
JK
25812011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 Code cleanup.
2584 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2585 (command_line_is_silent): New function.
2586 (bpstat_do_actions_1): No longer use commands_left, use
2587 command_line_is_silent for commands.
2588 (bpstat_alloc): Remove clearing of commands_left.
2589 (bpstat_stop_status): Remove initialization of commands_left, use
2590 command_line_is_silent.
2591 * breakpoint.h (struct bpstats): Remove commands_left.
2592
3a93a0c2
KS
25932011-08-18 Keith Seitz <keiths@redhat.com>
2594
2595 PR c++/12266
2596 * cp-name-parser.y (struct demangle_info): Remove unused
2597 member PREV.
2598 (d_grab): Likewise.
2599 (allocate_info): Change return type to struct demangle_info *.
2600 Always allocate a new demangle_info.
2601 Remove unused PREV pointer.
2602 (cp_new_demangle_parse_info): New function.
2603 (cp_demangled_name_parse_free): New function.
2604 (do_demangled_name_parse_free_cleanup): New function.
2605 (make_cleanup_cp_demangled_name_parse_free): New function.
2606 (cp_demangled_name_to_comp): Change return type to
2607 struct demangle_parse_info *.
2608 Allocate a new storage for each call.
2609 (main): Update usage for cp_demangled_name_to_comp
2610 API change.
2611 * cp-support.h (struct demangle_parse_info): New structure.
2612 (cp_demangled_name_to_comp): Update API change for
2613 return type.
2614 (cp_new_demangle_parse_info): Declare.
2615 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2616 (cp_demangled_name_parse_free): Declare.
2617 * cp-support.c (cp_canonicalize_string): Update API
2618 change for cp_demangled_name_to_comp.
2619 (mangled_name_to_comp): Likewise.
2620 Return struct demangle_parse_info, too.
2621 (cp_class_name_from_physname): Update mangled_name_to_comp
2622 API change.
2623 (method_name_from_physname): Likewise.
2624 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2625 (cp_remove_params): Likewise.
2626 * python/py-type.c (typy_legacy_template_argument): Likewise.
2627
2628 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2629 (cp_merge_demangle_parse_infos): Declare.
2630 * cp-support.c (ignore_typedefs): New file global.
2631 (copy_string_to_obstack): New function.
2632 (inspect_type): New function.
2633 (replace_typedefs): New function.
2634 (replace_typedefs_qualified_name): New function.
2635 (cp_canonicalize_string_no_typedefs): New function.
2636 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2637 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2638 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2639 instead of cp_canonicalize_string.
2640 (find_method): Likewise.
2641 (decode_compound): Before looking up the name, call
2642 cp_canonicalize_string_no_typedefs.
2643 (decode_variable): Likewise.
2644
fa3a4f15
PM
26452011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2646 Tom Tromey <tromey@redhat.com>
2647 Matt Rice <ratmice@gmail.com>
2648
2649 * python/lib/gdb/prompt.py: New file.
2650 * python/lib/gdb/command/prompt.py: New file.
2651 * NEWS: Document set extended-prompt and gdb.prompt library
2652
85661b1e
YQ
26532011-08-16 Yao Qi <yao@codesourcery.com>
2654
2655 * tic6x-linux-tdep.c: Move const arrays definition from here...
2656 * tic6x-tdep.c: to here ...
2657
11315641
YQ
26582011-08-14 Yao Qi <yao@codesourcery.com>
2659
2660 * NEWS: New port to Texas Instruments TMS320C6x.
2661
8cd64e00
YQ
26622011-08-14 Andrew Jenner <andrew@codesourcery.com>
2663 Bernd Schmidt <bernds@codesourcery.com>
2664 Yao Qi <yao@codesourcery.com>
2665
2666 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2667 * solib-dsbt.c: New file. Support DSBT shared object.
2668 * tic6x-linux-tdep.c: New file.
2669 * tic6x-tdep.c: New file.
2670 * tic6x-tdep.h: New file.
2671
78d85199
YQ
26722011-08-14 Andrew Stubbs <ams@codesourcery.com>
2673 Yao Qi <yao@codesourcery.com>
2674
2675 * remote.c (PACKET_qXfer_fdpic): New enum value.
2676 (remote_protocol_features): Add qXfer:fdpic:read packet.
2677 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2678 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2679 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2680
224bbe49
YQ
26812011-08-14 Yao Qi <yao@codesourcery.com>
2682
2683 Target description for tic6x.
2684 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2685 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2686 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2687 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2688 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2689 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2690 * features/tic6x-c64xp-linux.xml: New.
2691 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2692 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2693 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2694 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2695 * regformats/tic6x-c64xp.dat,
2696 regformats/tic6x-c62x-linux.dat: Generated.
2697 * regformats/tic6x-c64x-linux.dat,
2698 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2699 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2700 features/tic6x-*.c files.
2701 Add regformats/tic6x-*.dat files.
2702
457e09f0
DE
27032011-08-12 Doug Evans <dje@google.com>
2704
2705 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2706 * python/py-symbol.c (sympy_get_type): New function.
2707 (symbol_object_getset): Add "type".
2708
d20c1c3f
PA
27092011-08-12 Pedro Alves <pedro@codesourcery.com>
2710
2711 PR tui/13073
2712
2713 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2714 empty name.
2715 (tui_show_register_group): Don't store a byte buffer in the data
2716 element's value.
2717 (tui_register_format): Skip registers with an empty name.
2718 (tui_get_register): Store a struct value in the data element's
2719 value field instead of a byte buffer holding the raw register
2720 contents. Account for optimized-out and unavailable registers
2721 when comparing register contents.
2722
9d8fa392
PA
27232011-08-09 Pedro Alves <pedro@codesourcery.com>
2724
2725 * printcmd.c (current_display_number): Update comment.
2726 (disable_current_display_cleanup): Delete.
2727 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2728 catch errors thrown while evaluating and printing the display.
2729
401a70b8
TT
27302011-08-09 Tom Tromey <tromey@redhat.com>
2731
2732 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2733
7f86f058
PA
27342011-08-09 Pedro Alves <pedro@codesourcery.com>
2735
94b71cca 2736 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2737 * maint.c (maintenance_command): Ditto.
2738 * somread.c (som_symtab_read): Ditto.
2739 * solib.c (solib_find, solib_map_sections, update_solib_list)
2740 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2741 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2742 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2743 * solib-irix.c (locate_base, disable_break, enable_break)
2744 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2745 (irix_current_sos, irix_open_symbol_file_object)
2746 (irix_special_symbol_handling): Ditto.
2747 * solib-sunos.c (locate_base, first_link_map_member)
2748 (sunos_current_sos, disable_break, enable_break)
2749 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2750 Ditto.
2751 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2752 (open_symbol_file_object, svr4_current_sos, enable_break)
2753 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2754 Ditto.
2755 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2756 (frv_current_sos, enable_break, frv_special_symbol_handling)
2757 (frv_solib_create_inferior_hook): Ditto.
2758 * solist.h (struct target_so_ops): Extend the comments of the
2759 special_symbol_handling, current_sos and open_symbol_file_object
2760 methods.
2761
5e239b84
PM
27622011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2763
2764 * python/lib/gdb/__init__.py: Auto-load files in command and
2765 function directories.
2766 * python/python.c (finish_python_initialization): Use
2767 os.path.join.
2768 * python/lib/gdb/command/pretty_printers.py: Self register
2769 command.
2770 * NEWS: Document auto-loading.
2771
b6cede78
JK
27722011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2773
2774 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2775 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2776 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2777
29d0bb3d
TT
27782011-08-08 Tom Tromey <tromey@redhat.com>
2779
2780 * breakpoint.c (clean_up_filters): Remove.
2781 (catch_syscall_split_args): Use VEC_cleanup.
2782
2f7fb8e4
JK
27832011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2784
2785 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2786 (main): Uncomment "Demangling error\n".
2787
d6c10e95
PP
27882011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2789
2790 * solib-target.c (segment_attributes): Make them static.
2791 (section_attributes, library_children, library_attributes): Likewise.
2792 (library_list_children, library_list_attributes): Likesise.
2793 (library_list_elements): Likewise.
2794
af6e93b2
PA
27952011-08-05 Pedro Alves <pedro@codesourcery.com>
2796
2797 * exceptions.c (throw_exception): Don't disable the current
2798 display.
2799 * printcmd.c (disable_current_display_cleanup): New function.
2800 (do_one_display): Install a cleanup to disable the current display
2801 if doing the display throws.
2802
6a1b1664
EZ
28032011-08-05 Eli Zaretskii <eliz@gnu.org>
2804
2805 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2806 initialization of the tp_new member to the corresponding
2807 gdbpy_initialize_* function.
2808 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2809 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2810 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2811 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2812 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2813
31a0ae49
JK
28142011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2815
2816 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2817 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2818 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2819 references to current_uiout.
2820
e0dd0826
PA
28212011-08-04 Pedro Alves <pedro@codesourcery.com>
2822
2823 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2824 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2825 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2826 * top.c (gdb_readline_wrapper): Adjust.
2827 * tui/tui-interp.c (tui_command_loop):
2828 (_initialize_tui_interp): Don't install it.
2829
79a45e25
PA
28302011-08-04 Pedro Alves <pedro@codesourcery.com>
2831
2832 * ui-out.h (uiout): Rename to ...
2833 (current_uiout): ... this.
2834 * ui-out.c (uiout): Rename to ...
2835 (current_uiout): ... this.
2836 * ada-lang.c (print_it_exception, print_one_exception)
2837 (print_mention_exception): Adjust.
2838 * breakpoint.c (watchpoint_check): Adjust.
2839 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2840 (default_collect_info, watchpoints_info, print_one_catch_fork)
2841 (print_one_catch_vfork, print_one_catch_syscall)
2842 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2843 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2844 (print_it_watchpoint, print_mention_watchpoint)
2845 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2846 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2847 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2848 (bkpt_print_mention, momentary_bkpt_print_it)
2849 (tracepoint_print_mention, update_static_tracepoint)
2850 (tracepoints_info, save_breakpoints): Adjust.
2851 * cli-out.c (field_separator): Adjust.
2852 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2853 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2854 * frame.c (get_current_frame): Adjust.
2855 * infcmd.c (run_command_1, print_return_value): Adjust.
2856 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2857 * infrun.c (print_end_stepping_range_reason): Adjust.
2858 (print_signal_exited_reason, print_exited_reason): Adjust.
2859 (print_signal_received_reason, print_no_history_reason): Adjust.
2860 * interps.c (interp_set): Adjust.
2861 * osdata.c (info_osdata_command): Adjust.
2862 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2863 * remote-fileio.c (remote_fileio_request): Adjust.
2864 * remote.c (show_remote_cmd): Adjust.
2865 * solib.c (info_sharedlibrary_command): Adjust.
2866 * source.c (print_source_lines_base): Adjust.
2867 * stack.c (print_stack_frame): Adjust.
2868 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2869 * symfile-mem.c (add_vsyscall_page): Adjust.
2870 * symfile.c (load_progress, generic_load)
2871 (print_transfer_performance): Adjust.
2872 * thread.c (info_threads_command, restore_selected_frame)
2873 (thread_command): Adjust.
2874 * top.c (make_cleanup_restore_ui_file): Adjust.
2875 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2876 (print_one_static_tracepoint_marker): Adjust.
2877 * cli/cli-cmds.c (print_disassembly): Adjust.
2878 * cli/cli-decode.c (print_doc_line): Adjust.
2879 * cli/cli-interp.c (safe_execute_command): Adjust.
2880 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2881 (handle_redirections): Adjust.
2882 * cli/cli-script.c (show_user_1): Adjust.
2883 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2884 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2885 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2886 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2887 (mi_cmd_env_dir): Adjust.
2888 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2889 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2890 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2891 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2892 (list_args_or_locals): Adjust.
2893 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2894 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2895 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2896 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2897 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2898 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2899 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2900 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2901 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2902 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2903 (list_available_thread_groups, mi_cmd_list_thread_groups)
2904 (mi_cmd_data_list_register_names)
2905 (mi_cmd_data_list_changed_registers)
2906 (mi_cmd_data_list_register_values, get_register)
2907 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2908 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2909 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2910 (mi_execute_command, mi_load_progress): Adjust.
2911 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2912 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2913 Adjust.
2914 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2915 * tui/tui-interp.c (tui_command_loop): Adjust.
2916 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2917
f9679975
PA
29182011-08-04 Pedro Alves <pedro@codesourcery.com>
2919
2920 * exceptions.c (struct catcher): Remove saved_uiout field.
2921 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2922 no longer save/resvore the global ui_out builder.
2923 (catch_exceptions_with_msg): Save/override/restore the global
2924 ui_out builder manually instead of relying on TRY_CATCH to do it.
2925 (catch_errors): Save/restore the global ui_out builder manually
2926 instead of relying on TRY_CATCH to do it.
2927 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2928 parameter.
2929 (TRY_CATCH): Adjust.
2930 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2931 the global ui_out builder manually instead of relying on TRY_CATCH
2932 to do it.
2933
934709f0
PW
29342011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2935
2936 * breakpoint.c (update_global_location_list): Ensure
2937 invariant 'first loc marked not duplicated and inserted,
2938 following locs marked duplicated/not inserted' is respected
2939 for multiple locations at the same address.
2940 (unduplicated_should_be_inserted) New function.
2941 (swap_insertion) New function.
2942
2421fe6f
JK
29432011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2944
2945 * stack.c (print_frame_arguments_choices): Comment typo fix.
2946
3fbb6ffa
TJB
29472011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2948
2949 Revert:
2950 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2951 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2952 argument. Update callers.
2953
fbe12357
PP
29542011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2955
2956 PR gdb/13045
2957 * doublest.c (convert_doublest_to_floatformat): Pass correct
2958 mantissa length to put_field.
2959
b1d288d3
JK
29602011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2963 exception_print code path.
2964 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2965 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2966 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2967
311b5970
JK
29682011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2969
2970 Code cleanup.
2971 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2972 Remove, merge them into ...
2973 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2974 variable args and its initialization.
2975 (struct print_args_args, print_args_stub): Remove, merge them into
2976 print_frame.
2977 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2978 them into ...
2979 (do_gdb_disassembly): ... here. Remove variable args and its
2980 initialization.
2981 (print_frame): Remove variable args and its initialization, new
2982 variable gdbarch and numargs (from print_args_stub), inline here
2983 print_args_stub with a TRY_CATCH.
2984 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2985 them into ...
2986 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2987 New variable e, remove variable btargs and its initialization.
311b5970 2988
484a26a8
TG
29892011-08-01 Tristan Gingold <gingold@adacore.com>
2990
2991 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2992
c30eee59
TJB
29932011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2994
2995 * breakpoint.c (insert_bp_location): Document return value.
2996 (insert_breakpoint_locations): Fix documentation.
2997 (remove_breakpoints): Add documentation.
2998
f116073b
TJB
29992011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3000
3001 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3002 argument. Update callers.
3003
65aa373f
JK
30042011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 * stack.c (print_frame_info): Comment typo fix.
3007
a50242fb
SA
30082011-07-29 Sterling Augustine <saugustine@google.com>
3009
3010 * MAINTAINERS (Write After Approval): Add myself to the list.
3011
267f6504
TT
30122011-07-29 Tom Tromey <tromey@redhat.com>
3013
3014 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3015 (library_list_start_segment): Update.
3016 (library_list_start_section): Update.
3017
00bd41d6
PM
30182011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3019
3020 * varobj.c (value_get_print_value): Move hint check later into the
3021 function. Comment function. Free thevalue before reusing it.
3022
18a46dbe
JK
30232011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3024 Pedro Alves <pedro@codesourcery.com>
3025
3026 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3027 value_one.
3028 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3029 Assert the result kind.
3030 * value.h (value_one): Remove parameter lv.
3031
bb7da2bf
JK
30322011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3033
3034 Fix crash on lval_computed values.
3035 * valops.c (value_zero): Use not_lval for lval_computed.
3036
2d5213f8
TT
30372011-07-27 Tom Tromey <tromey@redhat.com>
3038
3039 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3040 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3041
11081198
JK
30422011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3043
3044 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3045 "ptype" by their typedefs difference.
3046
3c6e0cb3
JK
30472011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3048
3049 * dwarf2expr.c (ctx_no_read_reg): New function.
3050 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3051 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3052 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3053 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3054
523f3620
JK
30552011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3056
3057 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3058 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3059 file.
3060 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3061 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3062 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3063 (ctx_no_get_base_type): Move the functions here.
3064 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3065 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3066 (ctx_no_get_base_type): New declarations.
3067
24d3216f
TT
30682011-07-27 Tom Tromey <tromey@redhat.com>
3069
3070 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3071 entries.
3072 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3073 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3074
5005c8a9
PP
30752011-07-26 Sterling Augustine <saugustine@google.com>
3076
3077 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3078 ULONGEST.
3079 (dump_bfd_file): Likewise.
3080
480a3f21
PW
30812011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3082
3083 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3084 (remote_hw_watchpoint_length_limit): New variable.
3085 (_initialize_remote) add set,show cmds for this new variable.
3086 * gdb.texinfo: document these new commands.
3087 * NEWS: Mention these new commands.
3088
efa80663
PA
30892011-07-26 Pedro Alves <pedro@codesourcery.com>
3090
3091 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3092 true for software watchpoints.
3093
dbdaa232 30942011-07-26 Joel Brobecker <brobecker@adacore.com>
3095
3096 GDB 7.3 released.
3097
cf2c3c16
TT
30982011-07-26 Tom Tromey <tromey@redhat.com>
3099
3100 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3101 * dwarf2read.c (read_indirect_string_at_offset): New function.
3102 (read_indirect_string): Use it.
3103 (dwarf_decode_macro_bytes): New function, taken from
3104 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3105 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3106 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3107 New functions.
3108 (struct dwarf2_per_objfile) <macro>: New field.
3109 (dwarf2_elf_names): Add .debug_macro.
3110 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3111 (dwarf2_locate_sections): Handle new section.
3112 (read_file_scope): Handle DW_AT_GNU_macros.
3113 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3114
1a532630
PP
31152011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3116
3117 * NEWS: Mention dcache configuration.
3118 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3119 (dcache_size, dcache_line_size): New variables.
3120 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3121 (struct dcache_block): Make it expandable.
3122 (struct dcache_struct): New field.
3123 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3124 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3125 (dcache_poke_byte, dcache_print_line): Adjust.
3126 (set_dcache_size, set_dcache_line_size): New functions.
3127 (set_dcache_command, show_dcache_command): New functions.
3128 (_initialize_dcache): Add new commands.
3129
2eff07b3
PP
31302011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3131
3132 * progspace.h (struct program_space): Add solib_add_generation.
3133 * infcmd.c (post_create_inferior): Only call solib_add if not
3134 already done.
3135 * solib.c (solib_add): Increment solib_add_generation.
3136
543305c9
JK
31372011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3138
3139 Fix implicit pointer offsets.
3140 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3141 ptr.OFFSET.
3142
c0a91b2b
TT
31432011-07-25 Tom Tromey <tromey@redhat.com>
3144
3145 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3146 const.
3147 (ada_exception_sal): Make 'ops' const.
3148 (ada_decode_exception_location): Likewise.
3149 (ada_decode_assert_location): Likewise.
3150 (catch_assert_command): Update.
3151 (catch_ada_exception_command): Update.
3152 (create_ada_exception_catchpoint): Make 'ops' const.
3153 * breakpoint.c (set_raw_breakpoint_without_location)
3154 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3155 const.
3156 (create_internal_breakpoint): Update.
3157 (init_raw_breakpoint_without_location): Make 'ops' const.
3158 (init_raw_breakpoint, init_catchpoint)
3159 (create_fork_vfork_event_catchpoint)
3160 (create_syscall_event_catchpoint, init_breakpoint_sal)
3161 (create_breakpoint_sal, create_breakpoints_sal)
3162 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3163 * breakpoint.h (struct breakpoint) <ops>: Now const.
3164 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3165 const.
3166
6cb9b55b
PP
31672011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3168
3169 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3170
d9b3f62e
PA
31712011-07-25 Pedro Alves <pedro@codesourcery.com>
3172
3173 * breakpoint.h (print_recreate_thread): Declare.
3174 (struct breakpoint): Move step_count, pass_count,
3175 number_on_target, static_trace_marker_id,
3176 static_trace_marker_id_idx ...
3177 (struct tracepoint): ... to this new struct.
3178 (get_tracepoint, get_tracepoint_by_number_on_target)
3179 (get_tracepoint_by_number): Change return type to struct
3180 tracepoint pointer.
3181 * breakpoint.c (is_tracepoint_type): New, factored out from
3182 is_tracepoint.
3183 (is_tracepoint): Adjust.
3184 (print_one_breakpoint_location): Cast to struct tracepoint as
3185 necessary, and adjust.
3186 (print_recreate_catch_fork, print_recreate_catch_vfork)
3187 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3188 print_recreate_thread.
3189 (init_breakpoint_sal): New, factored out from
3190 create_breakpoint_sal.
3191 (create_breakpoint_sal): Reimplement.
3192 (create_breakpoint): Allocate a struct tracecepoint if the caller
3193 wanted a tracepoint. Use init_breakpoint_sal and
3194 install_breakpoint.
3195 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3196 (print_recreate_masked_watchpoint)
3197 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3198 (tracepoint_print_one_detail): Adjust.
3199 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3200 Dump the pass count here.
3201 (update_static_tracepoint): Adjust.
3202 (addr_string_to_sals): Adjust.
3203 (create_tracepoint_from_upload): Adjust. Change return type to
3204 struct tracepoint pointer.
3205 (trace_pass_set_count): Change parameter type to struct tracepoint
3206 pointer, and adjust.
3207 (trace_pass_command): Adjust.
3208 (get_tracepoint, get_tracepoint_by_number_on_target)
3209 (get_tracepoint_by_number): Change return type to struct
3210 tracepoint pointer, and adjust.
3211 (print_recreate_thread): New, factored out from save_breakpoints.
3212 (save_breakpoints): Don't print thread and task and passcount
3213 recreation here.
3214 * remote.c (remote_download_tracepoint): Adjust.
3215 * tracepoint.c (trace_actions_command, validate_actionline)
3216 (start_tracing, tfind_1, trace_find_tracepoint_command)
3217 (trace_dump_command): Adjust.
3218 (find_matching_tracepoint): Change return type to struct
3219 tracepoint pointer, and adjust.
3220 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3221 (tfile_trace_find, tfile_fetch_registers): Adjust.
3222 * tracepoint.h (create_tracepoint_from_upload): Change return type
3223 to struct tracepoint pointer.
3224 * ada-lang.c (print_recreate_exception): Call
3225 print_recreate_thread.
3226 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3227
3a5c3e22
PA
32282011-07-25 Pedro Alves <pedro@codesourcery.com>
3229
3230 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3231 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3232 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3233 watchpoint_thread, watchpoint_triggered ...
3234 (struct watchpoint): ... to this new struct.
3235 (is_watchpoint): Declare.
3236 (install_breakpoint): Add new `internal' parameter.
3237 * breakpoint.c (is_watchpoint): Delete declaration.
3238 (set_breakpoint_condition): Handle watchpoints.
3239 (is_watchpoint): Make public.
3240 (watchpoint_in_thread_scope): Change parameter type to struct
3241 watchpoint.
3242 (watchpoint_del_at_next_stop): Change parameter type to struct
3243 watchpoint. Remove assertion. Adjust.
3244 (update_watchpoint): Ditto.
3245 (insert_breakpoints, breakpoint_init_inferior)
3246 (watchpoints_triggered, watchpoint_check)
3247 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3248 (bpstat_stop_status, print_one_breakpoint_location)
3249 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3250 to struct watchpoint as necessary, and adjust.
3251 (install_breakpoint): Add `internal' argument. If true, don't
3252 mention the new breakpoint. Use set_breakpoint_number.
3253 (create_fork_vfork_event_catchpoint)
3254 (create_syscall_event_catchpoint): Adjust.
3255 (dtor_watchpoint): New.
3256 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3257 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3258 (print_it_watchpoint, print_mention_watchpoint)
3259 (print_recreate_watchpoint, insert_masked_watchpoint)
3260 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3261 (print_one_detail_masked_watchpoint)
3262 (print_mention_masked_watchpoint)
3263 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3264 necessary, and adjust.
3265 (watch_command_1): Allocate and initialize a struct watchpoint
3266 instead of a struct breakpoint. Use install_breakpoint.
3267 (catch_exec_command_1): Adjust.
3268 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3269 fields.
3270 (delete_breakpoint, enable_breakpoint_disp)
3271 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3272 as necessary, and adjust.
3273 (initialize_breakpoint_ops): Install dtor_watchpoint as
3274 watchpoints' dtor method.
3275 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3276 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3277 to struct watchpoint as necessary, and adjust.
3278
2060206e
PA
32792011-07-25 Pedro Alves <pedro@codesourcery.com>
3280
3281 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3282 the the base class ops table.
3283 (catch_exception_breakpoint_ops)
3284 (catch_exception_unhandled_breakpoint_ops)
3285 (catch_assert_breakpoint_ops): Don't statically initialize.
3286 (initialize_ada_catchpoint_ops): New.
3287 (_initialize_ada_language): Call it.
3288 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3289 (bkpt_breakpoint_ops): Forward declare.
3290 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3291 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3292 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3293 (masked_watchpoint_breakpoint_ops)
3294 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3295 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3296 base class ops table.
3297 (null_re_set, null_check_status, null_works_in_software_mode)
3298 (null_resources_needed, null_print_one_detail): Delete.
3299 (bkpt_dtor): Rename to ...
3300 (base_breakpoint_dtor): ... this. Make static.
3301 (bkpt_allocate_location): Rename to ...
3302 (base_breakpoint_allocate_location): ... this. Make static.
3303 (base_breakpoint_re_set): New.
3304 (internal_error_pure_virtual_called): New.
3305 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3306 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3307 (base_breakpoint_works_in_software_mode)
3308 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3309 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3310 (base_breakpoint_print_recreate): New functions.
3311 (base_breakpoint_ops): New global.
3312 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3313 (bkpt_breakpoint_hit): Make static.
3314 (bkpt_check_status): Delete.
3315 (bkpt_resources_needed): Make static.
3316 (bkpt_works_in_software_mode): Delete.
3317 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3318 static.
3319 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3320 (momentary_breakpoint_ops): Don't statically initialize.
3321 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3322 Delete.
3323 (tracepoint_insert_location, tracepoint_remove_location)
3324 (tracepoint_check_status, tracepoint_works_in_software_mode)
3325 (tracepoint_print_it): Delete.
3326 (tracepoint_breakpoint_ops): Don't statically initialize.
3327 (initialize_breakpoint_ops): New.
3328 (_initialize_breakpoint): Call it.
3329 * breakpoint.h (null_re_set, null_works_in_software_mode)
3330 (null_resources_needed, null_check_status, null_print_one_detail):
3331 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3332 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3333 (bkpt_check_status, bkpt_resources_needed)
3334 (bkpt_works_in_software_mode, bkpt_print_it)
3335 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3336 Delete declarations.
3337 (initialize_breakpoint_ops): Declare.
3338
001c8c33
PA
33392011-07-25 Pedro Alves <pedro@codesourcery.com>
3340
3341 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3342 (momentary_bkpt_print_it): Simplify.
3343
06edf0c0
PA
33442011-07-25 Pedro Alves <pedro@codesourcery.com>
3345
3346 Split internal, momentary and user breakpoints breakpoint_ops
3347 tables.
3348
3349 * breakpoint.c (internal_breakpoint_ops)
3350 (momentary_breakpoint_ops): Forward declare.
3351 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3352 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3353 (create_overlay_event_breakpoint)
3354 (create_std_terminate_master_breakpoint)
3355 (create_exception_master_breakpoint): Create breakpoints with
3356 internal_breakpoint_ops vtable.
3357 (set_longjmp_breakpoint): Create momentary breakpoints with
3358 momentary_breakpoint_ops vtable, using
3359 momentary_breakpoint_from_master.
3360 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3361 (create_solib_event_breakpoint): Create breakpoints with
3362 internal_breakpoint_ops vtable.
3363 (set_momentary_breakpoint): Create breakpoints with
3364 momentary_breakpoint_ops vtable.
3365 (momentary_breakpoint_from_master): New, factored out from
3366 clone_momentary_breakpoint.
3367 (clone_momentary_breakpoint): Adjust.
3368 (watch_command_1): Create scope breakpoints with
3369 momentary_breakpoint_ops vtable.
3370 (bkpt_re_set): Remove handling of internal and momentary
3371 breakpoints.
3372 (bkpt_print_mention, bkpt_print_recreate): New.
3373 (bkpt_breakpoint_ops): Adjust.
3374 (internal_bkpt_re_set, internal_bkpt_check_status)
3375 (internal_bkpt_print_it, internal_bkpt_print_mention)
3376 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3377 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3378 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3379 (momentary_bkpt_print_recreate): New.
3380 (momentary_breakpoint_ops): New.
3381
348d480f
PA
33822011-07-25 Pedro Alves <pedro@codesourcery.com>
3383
3384 Implement most breakpoint_ops methods for all breakpoint types,
3385 and move the default handlings to the proper callbacks.
3386
3387 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3388 works_in_software_mode method.
3389 (insert_bp_location): Go through breakpoint_ops->insert_location
3390 for software and hardware watchpoints.
3391 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3392 breakpoint_ops.
3393 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3394 for software and hardware watchpoints.
3395 (print_it_typical): Delete.
3396 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3397 method.
3398 (watchpoint_check): Adjust comment.
3399 (bpstat_check_location): Simply always call the breakpoint's
3400 breakpoint_hit method.
3401 (bpstat_stop_status): Always call the breakpoint's check_status
3402 method. Remove special cases for watchpoints and internal event
3403 breakpoints from here (moved to the check_status implementations).
3404 (print_one_breakpoint_location): Assume b->ops is never NULL.
3405 Remove static tracepoint marker id printing from here (moved to
3406 the print_one_detail callback implementation of tracepoints).
3407 (init_bp_location): Assert OPS is never NULL.
3408 (allocate_bp_location): Always call the breakpoint's
3409 allocate_location method, and remove the default code from here.
3410 (free_bp_location): Always call the location's dtor method, and
3411 remove the default code from here.
3412 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3413 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3414 parameter. Pass it down.
3415 (set_raw_breakpoint): Ditto.
3416 (print_it_catch_fork): Adjust to take a bpstat as argument.
3417 (catch_fork_breakpoint_ops): Install methods.
3418 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3419 (catch_vfork_breakpoint_ops): Install methods.
3420 (dtor_catch_syscall): Call the base dtor.
3421 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3422 (catch_syscall_breakpoint_ops): Install methods.
3423 (dtor_catch_exec): Call the base dtor.
3424 (print_it_catch_exec): Adjust to take a bpstat as argument.
3425 (catch_exec_breakpoint_ops): Install methods.
3426 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3427 the breakpoint's resources_needed method, and remove the default
3428 code from here.
3429 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3430 breakpoint_ops.
3431 (clone_momentary_breakpoint): Clone the original's ops.
3432 (mention): Always call the breakpoint's print_mention method, and
3433 remove the default code from here.
3434 (create_breakpoint_sal): Adjust to pass the ops to
3435 set_raw_breakpoint rather than setting it manually.
3436 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3437 ops to set_raw_breakpoint_without_location rather than setting it
3438 manually.
3439 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3440 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3441 (ranged_breakpoint_ops): Install methods.
3442 (break_range_command): Adjust to pass the ops to
3443 set_raw_breakpoint rather than setting it manually.
3444 (re_set_watchpoint, breakpoint_hit_watchpoint)
3445 (check_status_watchpoint, resources_needed_watchpoint)
3446 (works_in_software_mode_watchpoint, print_it_watchpoint)
3447 (print_mention_watchpoint, print_recreate_watchpoint): New
3448 functions.
3449 (watchpoint_breakpoint_ops): Install new methods.
3450 (print_it_masked_watchpoint): New function.
3451 (masked_watchpoint_breakpoint_ops): Install new methods.
3452 (watch_command_1): Adjust to pass the right breakpoint_ops to
3453 set_raw_breakpoint_without_location rather than setting it
3454 manually later. Record the current pspace.
3455 (print_it_exception_catchpoint): Adjust to take a bpstat as
3456 argument.
3457 (gnu_v3_exception_catchpoint_ops): Install new methods.
3458 (say_where): New function.
3459 (null_re_set, null_check_status, null_works_in_software_mode)
3460 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3461 New functions.
3462 (bp_location_ops): New global.
3463 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3464 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3465 (bkpt_check_status, bkpt_resources_needed)
3466 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3467 (bkpt_print_recreate): New functions.
3468 (bkpt_breakpoint_ops): New global.
3469 (tracepoint_re_set, tracepoint_insert_location)
3470 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3471 (tracepoint_check_status, tracepoint_works_in_software_mode)
3472 (tracepoint_print_it, tracepoint_print_one_detail)
3473 (tracepoint_print_mention, tracepoint_print_recreate): New
3474 functions.
3475 (tracepoint_breakpoint_ops): New global.
3476 (delete_breakpoint): Always call the breakpoint's dtor method, and
3477 remove the default handling from here.
3478 (breakpoint_re_set_default): Make static.
3479 (breakpoint_re_set_one): Always call the breakpoints re_set
3480 method, and remove the default handling from here.
3481 (trace_command, ftrace_command, strace_command)
3482 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3483 to create_breakpoint.
3484 (save_breakpoints): Always call the breakpoint's print_recreate
3485 method, and remove the default handling from here.
3486
3487 * ada-lang.c (dtor_exception): Call the base dtor.
3488 (re_set_exception): Call the base method.
3489 (print_it_exception, print_it_catch_exception): Adjust to take a
3490 bpstat as argument.
3491 (catch_exception_breakpoint_ops): Install methods.
3492 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3493 argument.
3494 (catch_exception_unhandled_breakpoint_ops): Install methods.
3495 (print_it_catch_assert): Adjust to take a bpstat as argument.
3496 (catch_assert_breakpoint_ops): Install methods.
3497
3498 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3499 to take a bpstat as argument.
3500 (enum print_stop_action): Add describing comments to each enum
3501 value.
3502 (breakpoint_re_set_default): Delete declaration.
3503 (null_re_set, null_works_in_software_mode, null_resources_needed)
3504 (null_check_status, null_print_one_detail): Declare.
3505 (bkpt_breakpoint_ops): Declare.
3506 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3507 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3508 (bkpt_check_status, bkpt_resources_needed)
3509 (bkpt_works_in_software_mode, bkpt_print_it)
3510 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3511 Declare.
3512
3513 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3514 bkpt_breakpoint_ops.
3515 * python/py-breakpoint.c (bppy_init): Ditto.
3516
be8f8133
PW
35172011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3518
3519 * MAINTAINERS (Write After Approval): Add myself to the list.
3520
3807f613
PP
35212011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3522
3523 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3524
1ced966e
PA
35252011-07-22 Pedro Alves <pedro@codesourcery.com>
3526
3527 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3528 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3529 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3530 adjust.
3531 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3532 (struct i386_debug_reg_state): New.
3533 (i386_init_dregs): New.
3534 (dr_mirror): New.
3535 (i386_cleanup_dregs): Use i386_init_dregs.
3536 (i386_show_dr): Add state parameter and adjust.
3537 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3538 the inferior here.
3539 (i386_remove_aligned_watchpoint): Likewise.
3540 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3541 (i386_update_inferior_debug_regs): New.
3542 (i386_insert_watchpoint): Work on a local mirror of the debug
3543 registers, and only update the inferior on success.
3544 (i386_remove_watchpoint): Ditto.
3545 (i386_region_ok_for_watchpoint): Adjust.
3546 (i386_stopped_data_address): Adjust.
3547 (i386_insert_hw_breakpoint): Adjust.
3548 (i386_remove_hw_breakpoint): Adjust.
3549
3543a589
TT
35502011-07-22 Tom Tromey <tromey@redhat.com>
3551
3552 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3553 from amd64_pseudo_register_read. Change arguments. Call
3554 mark_value_bytes_unavailable when needed.
3555 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3556 set_gdbarch_pseudo_register_read.
3557 * sentinel-frame.c (sentinel_frame_prev_register): Use
3558 regcache_cooked_read_value.
3559 * regcache.h (regcache_cooked_read_value): Declare.
3560 * regcache.c (regcache_cooked_read_value): New function.
3561 (regcache_cooked_read): Call
3562 gdbarch_pseudo_register_read_value if available.
3563 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3564 (i386_pseudo_register_read): Remove.
3565 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3566 i386_pseudo_register_read. Change arguments. Call
3567 mark_value_bytes_unavailable when needed.
3568 (i386_pseudo_register_read_value): New function.
3569 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3570 not set_gdbarch_pseudo_register_read.
3571 * gdbarch.sh (pseudo_register_read_value): New method.
3572 * gdbarch.c, gdbarch.h: Rebuild.
3573 * findvar.c (value_from_register): Call get_frame_register_value.
3574
95298e72
PM
35752011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3576
3577 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3578 get_prefix.
3579 (display_gdb_prompt): Likewise.
3580 (change_annotation_level): Likewise.
3581 (push_prompt): Likewise.
3582 (pop_prompt): Likewise.
3583 (handle_stop_sig): Use get_prompt with a level.
3584 * top.c (command_loop): Use get_prompt with a level.
3585 (set_async_annotation_level): Use set_prompt with a level.
3586 (get_prefix): New function.
3587 (set_prefix): Ditto.
3588 (set_suffix): Ditto.
3589 (get_suffix): Ditto.
3590 (get_prompt): Accept a level argument.
3591 (set_prompt): Accept a level argument. Free old prompts. Set
3592 new_async_prompt if level is 0.
3593 (init_main): Use set_prompt with a level. Do not set
3594 new_async_prompt.
3595 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3596 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3597 Modify set_prompt, get_prompt to account for levels.
3598 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3599 level.
3600 * python/python.c (before_prompt_hook): Use set_prompt.
3601
d26e3629
KY
36022011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3603
3604 * defs.h: Add guard against inclusion in gdbserver.
3605 (struct ptid, ptid_t): Move to common/ptid.h.
3606 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3607 xsnprintf, internal_error): Move to common/common-utils.h.
3608 (nomem): Delete.
3609 * gdb_assert.h: Move into common/ sub-directory.
3610 * gdb_locale.h: Ditto.
3611 * gdb_dirent.h: Ditto.
3612 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3613 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3614 Move into common/ptid.h.
3615 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3616 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3617 Change nomem to malloc_failure.
3618 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3619 * utils.c (nomem): Rename to malloc_failure.
3620 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3621 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3622 (gdb_buildargv): Change nomem to malloc_failure.
3623 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3624 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3625 ptid_is_pid): Move into common/ptid.c.
3626 (initialize_infrun): Delete initialization of null_ptid and
3627 minus_one_ptid.
3628 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3629 linux_common_xfer_osdata.
3630 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3631 common/ptid.c and common/buffer.c.
3632 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3633 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3634 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3635 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3636 rules.
3637 * common/gdb_assert.h: New.
3638 * common/gdb_dirent.h: New.
3639 * common/gdb_locale.h: New.
3640 * common/buffer.c: New.
3641 * common/buffer.h: New.
3642 * common/ptid.c: New.
3643 * common/ptid.h: New.
3644 * common/xml-utils.c: New.
3645 * common/xml-utils.h: New.
3646 * common/common-utils.c: New.
3647 * common/common-utils.h: New.
3648 * common/linux-osdata.c: New.
3649 * common/linux-osdata.h: New.
3650 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3651 * config/arm/linux.mh (NATDEPFILES): Ditto.
3652 * config/i386/linux.mh (NATDEPFILES): Ditto.
3653 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3654 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3655 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3656 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3657 * config/mips/linux.mh (NATDEPFILES): Ditto.
3658 * config/pa/linux.mh (NATDEPFILES): Ditto.
3659 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3660 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3661 * config/s390/s390.mh (NATDEPFILES): Ditto.
3662 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3663 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3664 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3665
edc84990 36662011-07-21 Matt Rice <ratmice@gmail.com>
3667
3668 * NEWS: Add info macros and info definitions commands.
3669
3a7bf607
PM
36702011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3671
3672 * NEWS: Document Python prompt substitution hook.
3673
9b158ba0 36742011-07-18 Matt Rice <ratmice@gmail.com>
3675
3676 PR macros/12999
3677 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3678 * macrotab.c (foreach_macro): Ditto.
3679 (foreach_macro_in_scope): Ditto.
3680 * macrocmd.c (print_macro_callback): New function.
3681 (info_macro_command): Move some code to print_macro_definition.
3682 (print_macro_definition): New function.
3683 (print_one_macro): Add new arguments to callback.
3684 (info_definitions_command): New function.
3685 (info_macros_command): Ditto.
3686 (_initialize_macrocmd): Add info macros and info definitions commands.
3687 * symtab.c (add_macro_name): Add new arguments to callback.
3688
d17b6f81
PM
36892011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3690 Tom Tromey <tromey@redhat.com>
3691
3692 * top.c (set_prompt): Rewrite to free previous prompt, free
3693 asynch_new_prompt and set both on new prompts.
3694 * event-top.c (display_gdb_prompt): Add prompt substitution
3695 logic.
3696 * python/python.c (before_prompt_hook): New function.
3697
1364323a 36982011-07-20 Matt Rice <ratmice@gmail.com>
3699
3700 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3701 arguments to store_unsigned_integer.
3702
8b70b953
TT
37032011-07-20 Tom Tromey <tromey@redhat.com>
3704
6c83ed52
TT
3705 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3706 in some declaration-only cases.
3707
37082011-07-18 Tom Tromey <tromey@redhat.com>
3709
8b70b953
TT
3710 PR symtab/12984:
3711 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3712 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3713 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3714 <debug_type_section>: New field.
3715 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3716 (load_cu): Use appropriate section.
3717 (create_signatured_type_table_from_index): Add 'section'
3718 argument.
3719 (dwarf2_read_index): Only allow a single .debug_types section.
3720 (dw2_get_file_names): Use appropriate section.
3721 (read_type_comp_unit_head): Add 'section' argument.
3722 (create_debug_types_hash_table): Loop over all .debug_types
3723 sections.
3724 (init_cu_die_reader): Use appropriate section.
3725 (process_psymtab_comp_unit, load_partial_comp_unit)
3726 (load_full_comp_unit, read_die_and_children, find_partial_die)
3727 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3728 (lookup_signatured_type_at_offset): Add 'section' argument.
3729 (read_signatured_type_at_offset): Add 'sect' argument.
3730 (read_signatured_type): Use appropriate section.
3731 (set_die_type, get_die_type_at_offset): Update.
3732 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3733 VEC.
3734 (write_psymtabs_to_index): Don't allow index with more than one
3735 .debug_types section.
3736
918dd910
JK
37372011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3738
3739 Fix crash if referenced CU is aged out.
3740 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3741 xfree of block.data.
3742 (indirect_pieced_value): New variable back_to, use to for xfree of
3743 baton.data.
3744 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3745 block.data.
3746 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3747 (load_cu): New function from ...
3748 (dw2_do_instantiate_symtab): ... the code here ...
3749 (process_full_comp_unit): ... and here.
3750 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3751 retval.data.
3752
0e37a63c
JK
37532011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3754
3755 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3756 type.
3757
7e324e48
GB
37582011-07-19 Gary Benson <gbenson@redhat.com>
3759
3760 * infrun.c (struct execution_control_state): New member
3761 stop_func_filled_in.
3762 (clear_stop_func, fill_in_stop_func): New functions.
3763 (handle_inferior_event): Call clear_stop_func rather than
3764 manipulating the execution control state directly.
3765 Call fill_in_stop_func lazily as required rather than
3766 directly calling find_pc_partial_function in all cases.
3767
d48323d8
TT
37682011-07-18 Tom Tromey <tromey@redhat.com>
3769
3770 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3771 checking for variable-sized array.
3772
40591b7d
JCD
37732011-07-18 Jean-Charles Delay <delay@adacore.com>
3774
3775 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3776 of supported languages.
3777 * varobj.c: Add top definitions and basic implementation of the
3778 following callbacks: ada_number_of_children, ada_name_of_variable,
3779 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3780 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3781 (languages): Register Ada-specific callbacks.
3782 (variable_language): Add the Ada case in the language setter switch.
3783
2e424e08
JK
37842011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3785
3786 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3787
9e8b7a03
JK
37882011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3789
3790 Code cleanup.
3791 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3792 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3793 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3794 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3795 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3796 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3797 (struct dwarf_expr_context_funcs): New, move here methods from ...
3798 (struct dwarf_expr_context): ... here. New fields funcs.
3799 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3800 (dwarf_expr_ctx_funcs): New.
3801 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3802 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3803 (needs_frame_ctx_funcs): New.
3804 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3805
2b1260ab
FM
38062011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3807
3808 * MAINTAINERS (Write After Approval): Add myself to the list.
3809
8bd90839
FM
38102011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3811
3812 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3813 that CIE pointer of an FDE really points to a CIE .
3814
953b98d1
HZ
38152011-07-15 Hui Zhu <teawater@gmail.com>
3816
3817 * remote.c (remote_get_trace_status): Add comments.
3818
c8f2448a
JK
38192011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3820
3821 Code cleanup - constify struct lval_funcs.
3822 * dwarf2loc.c (pieced_value_funcs): Make it const.
3823 * infrun.c (siginfo_value_funcs): Likewise.
3824 * opencl-lang.c (opencl_value_funcs): Likewise.
3825 * valops.c (value_assign, value_ind): Make the funcs variable const.
3826 * value.c (struct value): Make location.computed.funcs target const.
3827 Rearrange the comments.
3828 (allocate_computed_value): Make the funcs parameter target const.
3829 (value_computed_funcs): Return the funcs target const.
3830 (value_free, value_copy, set_value_component_location): Make the funcs
3831 variable const.
3832 * value.h (allocate_computed_value): Make the funcs parameter target
3833 const.
3834 (value_computed_funcs): Return the funcs target const.
3835 * windows-tdep.c (tlb_value_funcs): Make it const.
3836
f652de6f
HZ
38372011-07-14 Hui Zhu <teawater@gmail.com>
3838
3839 * remote.c (remote_get_trace_status): Initialize p.
3840
67f41397
JK
38412011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3842
3843 Work around kgdb.
3844 * remote.c (remote_get_trace_status): New variable ex. Put
3845 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3846
d1b66e6d
TT
38472011-07-13 Tom Tromey <tromey@redhat.com>
3848
3849 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3850 value_from_contents for final conversion.
3851
1632a688
JK
38522011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3853
3854 Code cleanup.
3855 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3856 Indent prototypes so they do not get into tags.
3857
a7035dbb
JK
38582011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 Code cleanup making also optimized out values lazy.
3861 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3862 allocate_optimized_out_value. Twice.
3863 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3864 * findvar.c (read_var_value): Likewise.
3865 * value.c (allocate_optimized_out_value): New function.
3866 * value.h (allocate_optimized_out_value): New declaration.
3867
d07ed419
JK
38682011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3869
3870 Fix occasional crash of CTRL-C during DWARF read in.
3871 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3872
86d31898
TT
38732011-07-11 Tom Tromey <tromey@redhat.com>
3874
3875 * regcache.c (struct regcache_descr): Fix typo.
3876 * i387-tdep.c (i387_supply_xsave): Fix typo.
3877
2ab95328
TT
38782011-07-11 Tom Tromey <tromey@redhat.com>
3879
3880 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3881 (read_file_scope, read_type_unit_scope): Use it.
3882
04ad99e6
JK
38832011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3884
3885 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3886 `int'.
3887
713389e0
PM
38882011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3889
3890 PR python/12438
3891 * python/python.c: Set gdbpy_should_print_stack default to off.
3892 (set_python): Deprecate maint set python print-stack to
3893 class_deprecate.
3894 (_initialize_python): Deprecate maint set/show python print-stack.
3895 Add new prefix command, python. Add new setting, print-backtrace.
3896 * NEWS: Document set python print-stack. Document default change.
3897
754eadd1
PM
38982011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3899
3900 * python/py-inferior.c (infpy_dealloc): New function.
3901 (inferior_to_inferior_object): Return a new object, or a
3902 new reference to the existing object.
3903 (find_thread_object): Cleanup references to inferior.
3904 (delete_thread_object): Ditto.
3905 * python/py-infthread.c (create_thread_object): Do not increment
3906 inferior reference count.
3907
5e44ecb3
TT
39082011-07-08 Tom Tromey <tromey@redhat.com>
3909
3910 * dwarf2loc.c (locexpr_regname): New function.
3911 (locexpr_describe_location_piece): Use it.
3912 (disassemble_dwarf_expression): Add per_cu argument. Use
3913 locexpr_regname.
3914 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3915 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3916 New cases.
3917 (locexpr_describe_location_1): Add per_cu argument.
3918 (locexpr_describe_location): Update.
3919 (loclist_describe_location): Update.
3920
e0e9434c
TT
39212011-07-08 Tom Tromey <tromey@redhat.com>
3922
3923 * dwarf2expr.c (execute_stack_op): Add QUIT.
3924
26afc0d7
HZ
39252011-07-07 Hui Zhu <teawater@gmail.com>
3926
3927 Revert:
3928 2011-07-06 Hui Zhu <teawater@gmail.com>
3929 * remote.c (remote_start_remote): Add TRY_CATCH for
3930 remote_get_trace_status.
3931 * tracepoint.c (disconnect_tracing): Ditto.
3932
a40a111f
AB
39332011-07-07 Andrew Burgess <aburgess@broadcom.com>
3934
3935 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3936 variables as signed, not unsigned.
3937
e2bd3b15
JB
39382011-07-06 Joel Brobecker <brobecker@adacore.com>
3939
3940 * jit.c (jit_inferior_init): Reformat forward declaration.
3941
e3d961fe 39422011-07-06 Matt Rice <ratmice@gmail.com>
3943
3944 * MAINTAINERS (Write After Approval): Add myself to the list.
3945
0f3428f0
HZ
39462011-07-06 Hui Zhu <teawater@gmail.com>
3947
3948 * remote.c (remote_start_remote): Add TRY_CATCH for
3949 remote_get_trace_status.
3950 * tracepoint.c (disconnect_tracing): Ditto.
3951
fc9f3a69
TT
39522011-07-05 Tom Tromey <tromey@redhat.com>
3953
3954 * symtab.c (operator_chars): Now static.
3955 * linespec.c (operator_chars): Don't declare.
3956
26e519b9
TJB
39572011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3958
3959 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3960
eb2a6f42
TT
39612011-07-05 Tom Tromey <tromey@redhat.com>
3962
3963 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3964 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3965 (TYPE_CPLUS_REALLY_JAVA): New macro.
3966 * dwarf2read.c (process_structure_scope): Set
3967 TYPE_CPLUS_REALLY_JAVA.
3968
21083d0f 39692011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3970
3971 * ada-lang.c: Fix typos.
3972 * amd64-tdep.c: Likewise.
3973 * breakpoint.c: Likewise.
3974 * cli/cli-decode.c: Likewise.
3975 * findcmd.c: Likewise.
3976 * inline-frame.c: Likewise.
3977 * mi/mi-main.c: Likewise.
3978 * minsyms.c: Likewise.
3979 * monitor.c: Likewise.
3980 * monitor.h: Likewise.
3981 * prologue-value.c: Likewise.
3982 * reverse.c: Likewise.
3983 * s390-tdep.c: Likewise.
3984
3b2a0cf2
JB
39852011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3986
3987 * jit.c (jit_inferior_init): Forward declare.
3988 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3989
efae1d92
JB
39902011-07-04 Joel Brobecker <brobecker@adacore.com>
3991
3992 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3993
6040a59d
JB
39942011-07-04 Tristan Gingold <gingold@adacore.com>
3995
3996 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3997 (tcb_fieldno): Add activation_link field.
3998 (get_known_tasks_addr): Moved and rewritten.
3999 (get_tcb_types_info): Set activation_link field.
4000 (read_known_tasks_array): Add parameter. Rewritten.
4001 (read_known_tasks_list): New function.
4002 (read_known_tasks): New function.
4003 (ada_build_task_list): Call read_known_tasks instead of
4004 read_known_tasks_array.
4005 * ravenscar-thread.c: Add first_task_name constant.
4006 (has_ravenscar_runtime): Check for task list too.
4007
cb741e45
JB
40082011-07-04 Tristan Gingold <gingold@adacore.com>
4009
4010 * ada-tasks.c: Renames fieldno to actb_fieldno.
4011 (ada_get_task_number): Indentation.
4012 (get_tcb_types_info): Remove all parameters. Write directly
4013 the globals.
4014 (ptid_from_atcb_common): Adjust.
4015 (read_atcb): Adjust.
4016
7475b06c
TJB
40172011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4018
4019 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4020
15230f37
TJB
40212011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4022
4023 * ui-out.c (ui_out_field_core_addr): Mention that the function
4024 description is in the header file.
4025 * ui-out.h (ui_out_field_core_addr): Document function.
4026
65743aba
TJB
40272011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4028
4029 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4030 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4031
c37a5aab
TJB
40322011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4033
4034 * symtab.c (expand_line_sal): Remove empty line.
4035
59adf69e
TS
40362011-07-04 Thomas Schwinge <thomas@schwinge.name>
4037
4038 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4039 same way as ELFOSABI_NONE.
4040 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4041
e5dd4106
TJB
40422011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4043
4044 * breakpoint.c: Fix typos in comments.
4045 * linespec.c: Likewise.
4046 * symtab.c: Likewise.
4047
d40102a1
JB
40482011-07-04 Joel Brobecker <brobecker@adacore.com>
4049
4050 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4051 section in separate object files.
4052
2f741504
JK
40532011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 Fix false GCC warning.
4056 * linespec.c (decode_line_1): Initialize values.
4057
418c7cf7
JK
40582011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4059
4060 * linespec.c (find_method): Accept the function type automatically only
4061 if it was specified with parameter types.
4062
3d50dd94
JK
40632011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4064
4065 Stop on first linespec terminator instead of eating what we can.
4066 * linespec.c (is_linespec_boundary): New function.
4067 (name_end): Remove function.
4068 (keep_name_info): New parameter on_boundary, replace the body.
4069 (decode_line_1): Provide the parameter to keep_name_info.
4070 (decode_compound): Likewise. Drop the trailing java return type
4071 handling. Twice.
4072
dcf9f4ab
JK
40732011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4074
4075 Fall back linespec to minimal symbols.
4076 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4077 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4078 (find_method, symbol_found): Change error to cplusplus_error.
4079
3f542ed1
JK
40802011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4081
bc68c4e5 4082 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4083
900e11f9
JK
40842011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4085 Tom Tromey <tromey@redhat.com>
4086
4087 * dwarf2read.c (check_physname): New variable.
4088 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4089 (show_check_physname): New function.
4090 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4091
2301925d
JB
40922011-07-01 Joel Brobecker <brobecker@adacore.com>
4093
4094 * machoread.c (macho_symfile_read): Delete OBE comment.
4095
38947cca
JB
40962011-07-01 Joel Brobecker <brobecker@adacore.com>
4097
4098 * machoread.c (struct macho_oso_data): Delete.
4099 (current_oso): Delete.
4100 (macho_relocate_common_syms): New function, mostly extracted
4101 out of
4102 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4103 Remove code that sets and unset current_oso.
4104 (macho_symfile_relocate): Delete handling of common symbols,
4105 now moved to macho_relocate_common_syms.
4106
a7aa0d73
JB
41072011-07-01 Joel Brobecker <brobecker@adacore.com>
4108
4109 * darwin-nat.c (darwin_ptrace): Add documentation.
4110 Set errno to zero before calling ptrace. If ptrace returns
4111 -1 and errno is zero, then change then return zero.
4112 (darwin_kill_inferior): Issue a warning instead of triggering
4113 a failed assertion when the PT_KILL ptrace operations returned
4114 nonzero.
4115
5e9bc145
JB
41162011-07-01 Joel Brobecker <brobecker@adacore.com>
4117
4118 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4119 only when inf->private->no_ptrace.
4120
00eb2c4a
JB
41212011-07-01 Joel Brobecker <brobecker@adacore.com>
4122
4123 * ada-lang.c (print_it_exception): Print temporary catchpoints
4124 as "Temporary catchpoint".
4125 (print_mention_exception): Likewise.
4126
127c81bc
TT
41272011-07-01 Tom Tromey <tromey@redhat.com>
4128
4129 * jv-lang.c (java_language_defn): Use java_printchar,
4130 java_printstr.
4131 (java_get_encoding): New function.
4132 (java_emit_char): Use generic_emit_char.
4133 (java_printchar): New function.
4134 (java_printstr): Likewise.
4135
25552254
JB
41362011-07-01 Joel Brobecker <brobecker@adacore.com>
4137
4138 * ada-typeprint.c (print_record_type): If unable to decode
4139 the name of the parent type, use the encoded name.
4140
d2d43431
JB
41412011-07-01 Jean-Charles Delay <delay@adacore.com>
4142
4143 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4144 pointer to constrained packed array type output.
4145 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4146 packed array output.
4147
54ae186f
JB
41482011-07-01 Jean-Charles Delay <delay@adacore.com>
4149
4150 * ada-typeprint.c (print_array_type): removed if condition on show
4151 being negative for bounds printing.
4152
8f17729f
JB
41532011-07-01 Joel Brobecker <brobecker@adacore.com>
4154
4155 * ada-lang.c (ada_identical_enum_types_p): New function.
4156 (symbols_are_identical_enums): New function.
4157 (remove_extra_symbols): Do nothing if NSYMS < 2.
4158 Use symbols_are_identical_enums.
4159
f5aa6869
JB
41602011-07-01 Joel Brobecker <brobecker@adacore.com>
4161
4162 * ada-valprint.c (ada_value_print): Handle typedefs.
4163
8f465ea7
JB
41642011-07-01 Joel Brobecker <brobecker@adacore.com>
4165
4166 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4167
828292f2
JB
41682011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4169
4170 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4171 (decode_constrained_packed_array): Likewise.
4172 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4173
18920c42
JB
41742011-07-01 Joel Brobecker <brobecker@adacore.com>
4175
4176 * ada-exp.y (convert_char_literal): Handle typedef types.
4177
c90092fe
JB
41782011-07-01 Joel Brobecker <brobecker@adacore.com>
4179
4180 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4181
f748fb40
TT
41822011-06-30 Tom Tromey <tromey@redhat.com>
4183
4184 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4185 * valops.c (find_overload_match): Call do_cleanups on early exit
4186 path.
4187 * solib.c (solib_find): Call do_cleanups on early exit path.
4188
3bb47e8b
TT
41892011-06-30 Tom Tromey <tromey@redhat.com>
4190
4191 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4192 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4193 return paths. Defer final do_cleanups until last return.
4194 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4195 early return.
4196
4727bad3
TT
41972011-06-30 Tom Tromey <tromey@redhat.com>
4198
4199 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4200
bb361dbf
AB
42012011-06-30 Andrew Burgess <aburgess@broadcom.com>
4202
4203 * MAINTAINERS (Write After Approval): Add myself to the list.
4204
e0d00bc7
JK
42052011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4206
4207 Disable epilogue unwinders on recent GCCs.
4208 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4209 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4210 * dwarf2read.c (process_full_comp_unit): Initialize
4211 EPILOGUE_UNWIND_VALID.
4212 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4213 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4214 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4215
4632c0d0
JK
42162011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4217
4218 Code cleanup - reformatting.
4219 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4220 (producer_is_gcc_ge_4): ... here, change the return value.
4221 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4222 interpretation.
4223
32019081
JK
42242011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4225
4226 Fix non-only rename list for Fortran modules import.
4227 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4228 cp_add_using_directive caller.
4229 (cp_add_using_directive): New parameter excludes, describe it. New
4230 variables ix and param. Compare if also excludes match. Allocate NEW
4231 with variable size, initialize EXCLUDES there.
4232 (cp_lookup_symbol_imports): New variable excludep, test
4233 current->EXCLUDES with it.
4234 * cp-support.h: Include vec.h.
4235 (struct using_direct): New field excludes, describe it.
4236 (DEF_VEC_P (const_char_ptr)): New.
4237 (cp_add_using_directive): New parameter excludes.
4238 * defs.h (const_char_ptr): New typedef.
4239 * dwarf2read.c (read_import_statement): New variables child_die,
4240 excludes and cleanups, read in excludes.
4241 (read_namespace): Adjust the cp_add_using_directive caller.
4242
70c622a3
JK
42432011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4244
4245 Code cleanup.
4246 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4247 negative comparisons.
4248
39c4d40a
TT
42492011-06-29 André Pönitz <andre.poenitz@nokia.com>
4250
4251 * mi/mi-main.c (mi_cmd_list_features): Emit
4252 breakpoint-notifications.
4253
3b2b8fea
TT
42542011-06-29 Tom Tromey <tromey@redhat.com>
4255
4256 PR fortran/10036:
4257 * valprint.h (generic_emit_char, generic_printstr): Declare.
4258 * valprint.c (wchar_printable, append_string_as_wide)
4259 (print_wchar): Move from c-lang.c.
4260 (generic_emit_char): New function; mostly taken from c_emit_char.
4261 (generic_printstr): New function; mostly taken from c_printstr.
4262 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4263 represented as arrays.
4264 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4265 type.
4266 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4267 identically to TYPE_CODE_INT.
4268 * f-lang.c (f_get_encoding): New function.
4269 (f_emit_char): Use generic_emit_char.
4270 (f_printchar): Replace comment.
4271 (f_printstr): Use generic_printstr.
4272 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4273 "character" types specially.
4274 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4275 for Fortran.
4276 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4277 Move to valprint.c
4278 (c_emit_char): Call generic_emit_char.
4279 (c_printstr): Call generic_printstr.
4280
168e6d44
GB
42812011-06-29 Gary Benson <gbenson@redhat.com>
4282
4283 * breakpoint.c (bpstat_what): Removed duplicated case.
4284
1c033f8c
TT
42852011-06-28 Tom Tromey <tromey@redhat.com>
4286
4287 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4288
5fe41fbf
TT
42892011-06-27 Tom Tromey <tromey@redhat.com>
4290
4291 * valops.c (find_overload_match): Call do_cleanups before early
4292 return.
4293 * top.c (execute_command): Call do_cleanups before early return.
4294 (command_loop): Likewise.
4295 * stack.c (backtrace_command): Make a null cleanup early. Don't
4296 conditionally call do_cleanups.
4297 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4298 TRY_CATCH.
4299 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4300 so cleanups are always run.
4301 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4302 * findcmd.c (parse_find_args): Call do_cleanups on early return
4303 path.
4304 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4305 Don't conditionally call do_cleanups.
4306 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4307 later.
4308
e26bd57d
EB
43092011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4310
4311 * MAINTAINERS (Write After Approval): Use default email address.
4312
6c3097fc
JB
43132011-06-27 Joel Brobecker <brobecker@adacore.com>
4314
4315 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4316
369c397b
JB
43172011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4318
4319 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4320 saved_regs_mask and copied_regs_mask fields.
4321 (sparc_record_save_insn): New prototype.
4322 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4323 (sparc_record_save_insn): New function.
4324 (sparc_analyze_prologue): Add head comment. Recognize store insns
4325 of call-saved registers. Use OFFSET consistently. Recognize flat
4326 frames and cache their settings.
4327 (sparc32_skip_prologue): Handle flat frames.
4328 (sparc_frame_cache): Add frame_offset to the base address.
4329 (sparc32_frame_cache): Adjust to new frame description.
4330 (sparc32_frame_prev_register): Likewise.
4331 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4332 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4333 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4334 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4335 frame by calling sparc_record_save_insn.
4336 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4337 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4338 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4339
b315ab21
TG
43402011-06-27 Tristan Gingold <gingold@adacore.com>
4341
4342 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4343 field by map_addr and map_len.
4344 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4345 (munmap_section_buffer): Likewise.
4346
ddd49eee
TT
43472011-06-24 Tom Tromey <tromey@redhat.com>
4348
4349 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4350 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4351 * python/python.c (gdbpy_parameter): Make 'arg' const.
4352 (execute_gdb_command): Likewise.
4353 (gdbpy_decode_line): Likewise. Copy it.
4354 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4355 (gdbpy_write): Make 'arg' const.
4356 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4357 const.
4358 (gdbpy_lookup_type): Likewise.
4359 * python/py-prettyprint.c (print_children): Make 'name' const.
4360 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4361 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4362 Py_ssize_t.
4363 * python/py-function.c (fnpy_init): Make 'name' const.
4364 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4365 (gdbpy_string_to_argv): Make 'input' const.
4366 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4367 it.
4368 * gdbtypes.h (lookup_typename): Update.
4369 * gdbtypes.c (lookup_typename): Make 'name' const.
4370 (lookup_struct): Likewise.
4371 (lookup_union): Likewise.
4372 (lookup_enum): Likewise.
4373
5998129b
TT
43742011-06-24 Tom Tromey <tromey@redhat.com>
4375
4376 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4377 gdb_thread_db.h. Move all common/ entries to be together.
4378 (TAGS): Don't depend on DEPFILES.
4379
6e586cc5
YQ
43802011-06-23 Yao Qi <yao@codesourcery.com>
4381
4382 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4383 * remote.c (remote_start_remote): ... here.
4384 * monitor.c (monitor_open): ... here.
4385
86c3c1fc
AB
43862011-06-23 Andrew Burgess <aburgess@broadcom.com>
4387
4388 * gdbtypes.c (append_composite_type_field_aligned): Fix
4389 calculation of bit position based on alignment.
4390
28010a5d
PA
43912011-06-22 Pedro Alves <pedro@codesourcery.com>
4392
4393 * breakpoint.c (bpstat_stop_status): Call the check_status
4394 breakpoint_ops method.
4395 (print_one_breakpoint_location): Also print the condition for Ada
4396 exception catchpoints.
4397 (allocate_bp_location): New, factored out from
4398 allocate_bp_location.
4399 (allocate_bp_location): Adjust. Call the owner breakpoint's
4400 allocate_location method, if there is one.
4401 (free_bp_location): Call the locations's dtor method, if there is
4402 one.
4403 (init_raw_breakpoint_without_location): New breakpoint_ops
4404 parameter. Use it.
4405 (set_raw_breakpoint_without_location): Adjust.
4406 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4407 (set_raw_breakpoint): Adjust.
4408 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4409 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4410 re_set and check_status methods.
4411 (init_catchpoint): Don't memset, initialize thread, addr_string
4412 and enable_state. Pass the ops down to init_raw_breakpoint.
4413 (install_catchpoint): Rename to ...
4414 (install_breakpoint): ... this, and make extern.
4415 (create_fork_vfork_event_catchpoint): Adjust.
4416 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4417 re_set and check_status methods.
4418 (create_syscall_event_catchpoint): Adjust.
4419 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4420 (masked_watchpoint_breakpoint_ops): Install NULL
4421 allocate_location, re_set and check_status methods.
4422 (catch_exec_command_1): Adjust.
4423 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4424 re_set and check_status methods.
4425 (create_ada_exception_breakpoint): Rename to ...
4426 (init_ada_exception_breakpoint): ... this. Add a struct
4427 breakpoint parameter, and delete the exp_string, cond_string and
4428 cond parameters. Use init_raw_breakpoint, and don't install or
4429 mention the breakpoint yet. Don't clear breakpoint fields that
4430 init_raw_breakpoint already clears.
4431 (re_set_breakpoint): Delete, split into ...
4432 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4433 functions.
4434 (breakpoint_re_set_one): Call the breakpoint's
4435 breakpoint_ops->re_set implementation, if there's one. Adjust.
4436 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4437 (struct bp_location_ops): New type.
4438 (struct bp_location): New field `ops'.
4439 (struct breakpoint_ops): New `allocate_location', `re_set' and
4440 `check_status' fields. Make `breakpoint_hit''s description match
4441 reality.
4442 (init_bp_location): Declare.
4443 (breakpoint_re_set_default): Declare.
4444 (create_ada_exception_breakpoint): Rename to ...
4445 (init_ada_exception_breakpoint): ... this. Add a struct
4446 breakpoint parameter, and delete the exp_string, cond_string and
4447 cond parameters.
4448 (install_breakpoint): Declare.
4449 * ada-lang.c: Include exceptions.h.
4450 <Ada exceptions description>: Update.
4451 (struct ada_catchpoint_location): New type.
4452 (ada_catchpoint_location_dtor): New function.
4453 (ada_catchpoint_location_ops): New global.
4454 (ada_catchpoint): New type.
4455 (create_excep_cond_exprs): New function.
4456 (dtor_exception, allocate_location_exception, re_set_exception)
4457 (should_stop_exception, check_status_exception): New functions.
4458 (print_one_exception, print_mention_exception)
4459 (print_recreate_exception): Adjust.
4460 (dtor_catch_exception, allocate_location_catch_exception)
4461 (re_set_catch_exception, check_status_catch_exception): New
4462 functions.
4463 (catch_exception_breakpoint_ops): Install them.
4464 (dtor_catch_exception_unhandled)
4465 (allocate_location_catch_exception_unhandled)
4466 (re_set_catch_exception_unhandled)
4467 (check_status_catch_exception_unhandled): New functions.
4468 (catch_exception_unhandled_breakpoint_ops): Install them.
4469 (dtor_catch_assert, allocate_location_catch_assert)
4470 (re_set_catch_assert, check_status_catch_assert): New functions.
4471 (catch_assert_breakpoint_ops): Install them.
4472 (ada_exception_catchpoint_p): Delete.
4473 (catch_ada_exception_command_split)
4474 (ada_exception_catchpoint_cond_string): Rename exp_string
4475 parameter to excep_string. Adjust.
4476 (ada_parse_catchpoint_condition): Delete.
4477 (ada_exception_sal): Rename the exp_string parameter to
4478 excep_string. Delete the cond_string and cond parameters.
4479 Adjust.
4480 (ada_decode_exception_location): Rename the exp_string parameter
4481 to excep_string. Delete the cond_string and cond parameters.
4482 Adjust.
4483 (create_ada_exception_catchpoint): New function.
4484 (catch_ada_exception_command, ada_decode_assert_location)
4485 (catch_assert_command): Adjust.
4486 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4487
9ac4176b
PA
44882011-06-22 Pedro Alves <pedro@codesourcery.com>
4489
4490 * ada-lang.c: Include arch-utils.h.
4491 (ada_decode_exception_location): Make static.
4492 (catch_ada_exception_command): Moved here from breakpoint.c.
4493 (ada_decode_assert_location): Make static.
4494 (catch_assert_command): Moved here from breakpoint.c.
4495 (_initialize_ada_lang): Install the exception and assert
4496 catchpoint commands here.
4497 * ada-lang.h (ada_decode_exception_location)
4498 (ada_decode_assert_location): Delete declarations.
4499 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4500 breakpoint.h.
4501 (create_ada_exception_breakpoint): Make extern.
4502 (catch_ada_exception_command, catch_assert_command): Moved to
4503 ada-lang.c.
4504 (add_catch_command): Make extern.
4505 (_initilize_breakpoint): Don't install the exception and assert
4506 catchpoint commands here.
4507 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4508 breakpoint.c
4509 (add_catch_command, create_ada_exception_breakpoint): Declare.
4510
c56053d2
PA
45112011-06-22 Pedro Alves <pedro@codesourcery.com>
4512
4513 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4514 the breakpoint to the breakpoint chain here.
4515 (set_raw_breakpoint_without_location): Add the breakpoint to the
4516 breakpoint chain here.
4517 (init_raw_breakpoint): Adjust comments.
4518 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4519 here.
4520 (init_catchpoint): Don't set the catchpoint's breakpoint number
4521 here.
4522 (install_catchpoint): New function.
4523 (create_fork_vfork_event_catchpoint)
4524 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4525 use install_catchpoint.
4526
d2f3fc74
PA
45272011-06-22 Pedro Alves <pedro@codesourcery.com>
4528
4529 * breakpoint.c (create_catchpoint_without_mention)
4530 (create_catchpoint): Delete.
4531
b4d90040
PA
45322011-06-22 Pedro Alves <pedro@codesourcery.com>
4533
4534 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4535 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4536 reference to exec_pathname.
4537 (struct exec_catchpoint): New type.
4538 (dtor_catch_exec): New function.
4539 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4540 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4541 (catch_exec_command_1): Adjust to use init_catchpoint.
4542 (delete_breakpoint): Remove reference to exec_pathname.
4543
be5c67c1
PA
45442011-06-22 Pedro Alves <pedro@codesourcery.com>
4545
4546 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4547 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4548 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4549 reference to syscalls_to_be_caught.
4550 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4551 NULL `dtor'.
4552 (struct syscall_catchpoint): New type.
4553 (dtor_catch_syscall): New function.
4554 (insert_catch_syscall, remove_catch_syscall)
4555 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4556 (print_recreate_catch_syscall): Adjust.
4557 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4558 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4559 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4560 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4561 (masked_watchpoint_breakpoint_ops)
4562 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4563 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4564 there is one. Remove references to syscalls_to_be_caught.
4565 (catching_syscall_number): Adjust.
4566 * ada-lang.c (catch_exception_breakpoint_ops)
4567 (catch_exception_unhandled_breakpoint_ops)
4568 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4569
e29a4733
PA
45702011-06-22 Pedro Alves <pedro@codesourcery.com>
4571
4572 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4573 field.
4574 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4575 reference to forked_inferior_pid.
4576 (struct fork_catchpoint): New type.
4577 (breakpoint_hit_catch_fork, print_it_catch_fork)
4578 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4579 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4580 (create_fork_vfork_event_catchpoint): Adjust to use
4581 init_catchpoint.
4582
346774a9
PA
45832011-06-22 Pedro Alves <pedro@codesourcery.com>
4584
4585 * breakpoint.c (add_to_breakpoint_chain)
4586 (init_raw_breakpoint_without_location): New functions, factored
4587 out from ...
4588 (set_raw_breakpoint_without_location): ... this one.
4589 (init_raw_breakpoint): New function, factored out from
4590 set_raw_breakpoint and adjusted to use
4591 init_raw_breakpoint_without_location.
4592 (set_raw_breakpoint): Adjust.
4593 (init_catchpoint): New function, factored out from
4594 create_catchpoint_without_mention and adjusted to use
4595 init_raw_breakpoint.
4596 (create_catchpoint_without_mention): Adjust.
4597
c38c4bc5
TT
45982011-06-22 Tom Tromey <tromey@redhat.com>
4599
4600 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4601 argument of 0 specially.
4602
b138ce37
YQ
46032011-06-22 Yao Qi <yao@codesourcery.com>
4604
4605 * infrun.c (handle_inferior_event): Remove write-only local variable
4606 `sw_single_step_trap_p'.
4607
03de6823
TT
46082011-06-20 Tom Tromey <tromey@redhat.com>
4609
4610 * symtab.c (lookup_language_this): End loop if block is NULL.
4611
66a17cb6
TT
46122011-06-17 Tom Tromey <tromey@redhat.com>
4613
4614 * valops.c (value_of_this): Use lookup_language_this.
4615 * symtab.h (lookup_language_this): Declare.
4616 * symtab.c (lookup_language_this): New function.
4617 (lookup_symbol_aux): Use lookup_language_this.
4618 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4619
7518bff5
TT
46202011-06-17 Tom Tromey <tromey@redhat.com>
4621
4622 * value.h (value_of_this): Update.
4623 (value_of_local): Remove.
4624 * valops.c (value_of_this): Rename from value_of_local. Change
4625 parameters.
4626 * p-exp.y (exp): Update.
4627 (variable): Likewise.
4628 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4629
aee28ec6
TT
46302011-06-17 Tom Tromey <tromey@redhat.com>
4631
4632 * valops.c (value_of_local): Complain if NAME is NULL.
4633 * std-operator.def (OP_OBJC_SELF): Remove.
4634 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4635 * objc-exp.y (name_not_typename): Use OP_THIS.
4636 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4637 name for "this".
4638 <OP_OBJC_SELF>: Remove.
4639 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4640
eed8f803
TG
46412011-06-16 Tristan Gingold <gingold@adacore.com>
4642
4643 * python/py-events.h (gdb_py_events): Make it extern.
4644 * python/py-evtregistry.c (gdb_py_events): Declare.
4645
864ac8a7
HZ
46462011-06-16 Hui Zhu <teawater@gmail.com>
4647
4648 * remote.c (remote_trace_set_readonly_regions): Add check for
4649 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4650 output warning.
4651
ef7e8358
UW
46522011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4653
4654 * arm-linux-tdep.c: Include "auxv.h".
4655 (AT_HWCAP): Define.
4656 (ARM_LINUX_SIZEOF_VFP): Define.
4657 (arm_linux_supply_vfp): New function.
4658 (arm_linux_collect_vfp): Likewise.
4659 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4660 (arm_linux_fpa_regset_sections): New variable.
4661 (arm_linux_vfp_regset_sections): Likewise.
4662 (arm_linux_core_read_description): New function.
4663 (arm_linux_init_abi): Install arm_linux_core_read_description and
4664 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4665 appropriate for the architecture.
4666 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4667 (tdesc_arm_with_m): Declare.
4668 (tdesc_arm_with_iwmmxt): Likewise.
4669 (tdesc_arm_with_vfpv2): Likewise.
4670 (tdesc_arm_with_vfpv3): Likewise.
4671 (tdesc_arm_with_neon): Likewise.
4672 * arm-linux-nat.c: Move features/*.c includes ...
4673 * arm-tdep.c: ... here.
4674 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4675 target description data structures ...
4676 * arm-tdep.c (_initialize_arm_tdep): ... here.
4677 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4678 HWCAP_VFPv3D16): Move definitions ...
4679 * arm-linux-tdep.h: ... here.
4680
c2fa21f1
HZ
46812011-06-15 Hui Zhu <teawater@gmail.com>
4682
4683 * remote.c (remote_trace_set_readonly_regions): Add a check for
4684 target_buf_size.
4685
dd707e8e
TT
46862011-06-14 Tom Tromey <tromey@redhat.com>
4687
4688 * coffread.c (coffread_objfile): Rename from current_objfile.
4689 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4690 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4691
86cc0029
TT
46922011-06-14 Tom Tromey <tromey@redhat.com>
4693
4694 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4695 (class_symtab): Remove.
4696 (jv_dynamics_progspace_key): New global.
4697 (jv_per_objfile_free): Reset program space data. Update assert.
4698 Don't clear globals.
4699 (get_dynamics_objfile): Use and set program space data.
4700 (get_java_class_symtab): Use get_dynamics_objfile.
4701 (add_class_symbol): Likewise.
4702 (java_link_class_type): Likewise.
4703 (java_object_type, jv_clear_object_type, set_java_object_type):
4704 Remove.
4705 (get_java_object_type): Update. Don't cache result.
4706 (is_object_type): Don't call set_java_object_type.
4707 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4708 initialize jv_dynamics_progspace_key.
4709
91a81f69
TT
47102011-06-14 Tom Tromey <tromey@redhat.com>
4711
4712 * symtab.h (current_objfile): Don't declare.
4713 * objfiles.h (current_objfile): Don't declare.
4714 * objfiles.c (current_objfile): Remove.
4715 * mdebugread.c (current_objfile): New file-scope global.
4716 * dbxread.c (current_objfile): New file-scope global.
4717 * coffread.c (current_objfile): New file-scope global.
4718
dc7eb48e
PA
47192011-06-13 Pedro Alves <pedro@codesourcery.com>
4720
4721 * top.h (line): Rename to ...
4722 (saved_command_line): ... this.
4723 (linesize): Rename to ...
4724 (saved_command_line_size): ... this.
4725 * top.c (line): Rename to ...
4726 (saved_command_line): ... this.
4727 (linesize): Rename to ...
4728 (saved_command_line_size): ... this.
4729 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4730 * event-top.c (command_line_handler): Adjust.
4731 * main.c (captured_main): Adjust.
4732
0d6c2135
MK
47332011-06-12 Mark Kettenis <kettenis@gnu.org>
4734
4735 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4736 get_frame_func instead of get_frame_pc to determine the code
4737 address used to construct the frame ID.
4738 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4739 (i386_epilogue_frame_this_id): Likewise.
4740 (i386_epilogue_frame_prev_register): New function.
4741 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4742 (i386_stack_tramp_frame_sniffer): Fix coding style.
4743 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4744 (i386_gdbarch_init): Fix comments.
4745
8bbdd3f4
MK
47462011-06-12 Mark Kettenis <kettenis@gnu.org>
4747
4748 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4749 instruction when walking back through the instruction stream.
4750
533a737e
JK
47512011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4754 fullname parameters order.
4755
44b13c5a
JK
47562011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4757
4758 Code cleanup.
4759 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4760 for fun.
4761 * psymtab.c (map_symbol_filenames_psymtab)
4762 (map_partial_symbol_filenames): Likewise.
4763 * psymtab.h: Include symfile.h.
4764 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4765 * symfile.h (symbol_filename_ftype): New.
4766 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4767 map_symbol_filenames, clarify more the naming in comment.
4768
0b5574da
DE
47692011-06-07 Doug Evans <dje@google.com>
4770
4771 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4772 Look for ../../gdb, for fullname.exp.
0b5574da 4773
5be4dfca
JK
47742011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4775 Pedro Alves <pedro@codesourcery.com>
4776
4777 * cli/cli-cmds.c (shell_escape): Use waitpid.
4778 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4779
316a8b21
TG
47802011-06-07 Tristan Gingold <gingold@adacore.com>
4781
4782 * xcoffread.c (dwarf2_xcoff_names): New variable.
4783 (aix_process_linenos): Add a guard.
4784 (xcoff_symfile_finish): Free dwarf2.
4785 (xcoff_initial_scan): Add dwarf2 support.
4786
3dd5b83d
PA
47872011-06-06 Pedro Alves <pedro@codesourcery.com>
4788
4789 * infcall.c (run_inferior_call): Don't mask async. Instead force
4790 a synchronous wait, if the target can async.
4791
4792 * target.h (struct target_ops): Delete to_async_mask.
4793 (target_async_mask): Delete.
4794 * target.c (update_current_target): Delete references to to_async_mask.
4795 * linux-nat.c (linux_nat_async_mask_value): Delete.
4796 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4797 to linux_nat_async_mask_value.
4798 (linux_nat_async_mask): Delete.
4799 (linux_nat_async, linux_nat_close): Remove references to
4800 linux_nat_async_mask_value.
4801 * record.c (record_async_mask_value): Delete.
4802 (record_async): Remove references to record_async_mask_value.
4803 (record_async_mask): Delete.
4804 (record_can_async_p, record_is_async_p): Remove references to
4805 record_async_mask_value.
4806 (init_record_ops, init_record_core_ops): Remove references to
4807 record_async_mask.
4808 * remote.c (remote_async_mask_value): Delete.
4809 (init_remote_ops): Remove reference to remote_async_mask.
4810 (remote_can_async_p, remote_is_async_p): Remove references to
4811 remote_async_mask_value.
4812 (remote_async): Remove references to remote_async_mask_value.
4813 (remote_async_mask): Delete.
4814
4815 * infrun.c (fetch_inferior_event): Don't claim registers changed
4816 if the current thread is already not executing.
4817
64b9b334
JB
48182011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4819
4820 From Stephen Kitt <steve@sk2.org>
4821 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4822 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4823
325663dc
JB
48242011-06-03 Joel Brobecker <brobecker@adacore.com>
4825
4826 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4827 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4828
8cf64490
TT
48292011-06-03 Tom Tromey <tromey@redhat.com>
4830
4831 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4832 code fields.
4833 * python/py-exitedevent.c (create_exited_event_object): Change
4834 type of 'exit_code'. Optionally add exit_code attribute.
4835 (emit_exited_event): Change type of 'exit_code'.
4836 * python/py-event.h (emit_exited_event): Update.
4837 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4838 * infrun.c (handle_inferior_event): Set exit code fields on
4839 inferior.
4840 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4841 fields.
4842 * inferior.c (exit_inferior_1): Initialize new fields.
4843
8ddd9a20
TT
48442011-06-03 Tom Tromey <tromey@redhat.com>
4845
4846 * dwarf2expr.c (get_signed_type): New function.
4847 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4848
8dfd1e6d
KS
48492011-06-02 Keith Seitz <keiths@redhat.com>
4850
4851 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4852
65fdb766
PA
48532011-06-02 Pedro Alves <pedro@codesourcery.com>
4854
4855 * top.h (simplified_command_loop): Delete declaration.
4856
f4b8c29b
MF
48572011-06-01 Mike Frysinger <vapier@gentoo.org>
4858
4859 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4860 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4861
1706c199
YQ
48622011-06-01 Yao Qi <yao@codesourcery.com>
4863
4864 * objfiles.h (obj_section_addr): Update reference to objfile from
4865 `abfd' to `obfd'.
4866 (obj_section_endaddr): Likewise.
4867
d19cd713 48682011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4869
4870 * MAINTAINERS: Update my email address and affiliation. Also
4871 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4872
e8eb7bc5
KS
48732010-05-31 Keith Seitz <keiths@redhat.com>
4874
4875 PR c++/12750
4876 * linespec.c (get_search_block): New function.
4877 (find_methods): Add FILE_SYMTATB parameter and use it and
4878 get_search_block to pass an appropriate block to
4879 lookup_symbol_in_namespace.
4880 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4881 Check if *ARGPTR starts with a filename first.
4882 If it does, call locate_first_half again to locate the next
4883 "first half" of the linespec.
4884 Pass FILE_SYMTATB to decode_objc and decode_compound.
4885 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4886 (locate_first_half): Stop on the first colon seen.
4887 (decode_compound): Add FILE_SYMTAB parameter.
4888 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4889 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4890 get_search_block with lookup_symbol.
4891 (find_method): Add FILE_SYMTAB parameter and pass it to
4892 find_methods.
4893 (decode_objc): Use get_search_block.
4894
2b1dbab0
KS
48952010-05-31 Keith Seitz <keiths@redhat.com>
4896
4897 PR symtab/12704
4898 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4899 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4900 and CP_ANONYMOUS_NAMESPACE_LEN.
4901 (cp_is_anonymous): Likewise.
4902 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4903 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4904 * dwarf2read.c (namespace_name): Likewise.
4905 (fixup_partial_die): Likewise.
4906 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4907 seen in the input, keep it.
4908
6d549500
PA
49092011-05-30 Pedro Alves <pedro@codesourcery.com>
4910
4911 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4912 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4913 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4914 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4915 * remote.c (_initialize_remote): Register
4916 async_remote_interrupt_twice directly as
4917 sigint_remote_twice_token event.
4918
395bff70
PA
49192011-05-30 Pedro Alves <pedro@codesourcery.com>
4920
4921 * target.h (enum inferior_event_type): Delete INF_ERROR.
4922 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4923
97224164
PA
49242011-05-30 Pedro Alves <pedro@codesourcery.com>
4925
4926 * interps.c (interp_set): Don't cancel continuations.
4927
07e78767
JK
49282011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4929
4930 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4931
fa4cd53f
PA
49322011-05-30 Pedro Alves <pedro@codesourcery.com>
4933
4934 * continuations.h (continuation_ftype): Add `err' parameter.
4935 Document parameters.
4936 (do_all_continuations, do_all_continuations_thread)
4937 (do_all_intermediate_continuations)
4938 (do_all_intermediate_continuations_thread)
4939 (do_all_inferior_continuations): Add `err' parameter.
4940 * continuations.c (do_my_continuations_1, do_my_continuations)
4941 (do_all_inferior_continuations, do_all_continuations_ptid)
4942 (do_all_continuations_thread_callback)
4943 (do_all_continuations_thread, do_all_continuations)
4944 (do_all_intermediate_continuations_thread_callback)
4945 (do_all_intermediate_continuations_thread)
4946 (do_all_intermediate_continuations): Add `err' parameter, and pass
4947 it down all the way to the continuations proper.
4948 * inf-loop.c (inferior_event_handler): If fetching an inferior
4949 event throws an error, don't pop the target, and still call the
4950 continuations, but with `err' set. Adjust all other continuation
4951 calls.
4952 * breakpoint.c (until_break_command_continuation): Add `err'
4953 parameter.
4954 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4955 issue another step if `err' is set.
4956 (struct until_next_continuation_args): New.
4957 (until_next_continuation): Add `err' parameter. Adjust.
4958 (until_next_command): Adjust.
4959 (struct finish_command_continuation_args): Add `thread' field.
4960 (finish_command_continuation): Add `err' parameter. Handle it.
4961 (finish_forward): Adjust.
4962 (attach_command_continuation): Add `err' parameter. Handle it.
4963 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4964 cancel the continuations.
4965 * interps.c (interp_set): Adjust to cancel the continuations.
4966 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4967 continuations rather than discarding.
4968 (free_thread): Don't clear thread inferior resources here.
4969 (delete_thread_1): Do it here instead. And do it before removing
4970 the thread from the threads list. Tag the thread as exited before
4971 clearing thread inferior resources.
4972
c2949be0
JB
49732011-05-30 Joel Brobecker <brobecker@adacore.com>
4974
4975 * infcall.c (call_function_by_hand): Rephrase error message.
4976
619cebe8
PA
49772011-05-27 Pedro Alves <pedro@codesourcery.com>
4978
4979 * defs.h (struct thread_info, struct inferior): Delete forward
4980 declarations.
4981 * breakpoint.h (struct thread_info): New forward declaration.
4982 * observer.sh (struct inferior): New forward declaration.
4983 * python/python-internal.h (struct inferior): New forward
4984 declaration.
4985
be34f849
PA
49862011-05-27 Pedro Alves <pedro@codesourcery.com>
4987
4988 * defs.h (struct continuation, continuation_ftype)
4989 (continuation_free_arg_ftype, add_continuation)
4990 (do_all_continuations, do_all_continuations_thread)
4991 (discard_all_continuations, discard_all_continuations_thread)
4992 (add_intermediate_continuation, do_all_intermediate_continuations)
4993 (do_all_intermediate_continuations_thread)
4994 (discard_all_intermediate_continuations)
4995 (discard_all_intermediate_continuations_thread)
4996 (add_inferior_continuation, do_all_inferior_continuations)
4997 (discard_all_inferior_continuations): Move to ...
4998 * continuations.h: ... this new file.
4999 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5000 infcmd.c, inferior.c, infrun.c, interps.c: Include
5001 continuations.h.
5002
432b4d03
JK
50032011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5004 Doug Evans <dje@google.com>
5005
5006 Fix PR 10970, PR 12702.
5007 * linux-nat.c (linux_lwp_is_zombie): New function.
5008 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5009 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5010
b0f260d6
PA
50112011-05-27 Pedro Alves <pedro@codesourcery.com>
5012
5013 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5014 typedefs.
5015 (add_continuation, add_intermediate_continuation)
5016 (add_inferior_continuation): Use them.
5017 * continuations.c (struct continuation): Use them.
5018 (make_continuation_ftype): Delete.
5019 (make_continuation, add_inferior_continuation, add_continuation)
5020 (add_intermediate_continuation): Use continuation_ftype and
5021 continuation_free_arg_ftype. Rename parameters to shorter names.
5022
af1e9a32
PA
50232011-05-27 Pedro Alves <pedro@codesourcery.com>
5024
5025 * continuations.c (make_continuation): Make it return void.
5026 (do_my_continuations): Rename to ...
5027 (do_my_continuations_1): ... this. Remove old_chain parameter and
5028 adjust.
5029 (do_my_continuations): New.
5030 (discard_my_continuations): Rename to ...
5031 (discard_my_continuations_1): ... this. Remove old_chain
5032 parameter and adjust.
5033 (discard_my_continuations): New.
5034 (add_inferior_continuation): Simplify.
5035 (do_all_inferior_continuations): Reimplement on top
5036 do_my_continuations.
5037 (discard_all_inferior_continuations): Simplify.
5038 (add_continuation): Simplify.
5039 (do_all_continuations_ptid): Simplify.
5040 (discard_all_continuations_thread_callback): Simplify.
5041 (add_intermediate_continuation): Simplify.
5042 (discard_all_intermediate_continuations_thread_callback):
5043 Simplify.
5044
50c0c017
PA
50452011-05-27 Pedro Alves <pedro@codesourcery.com>
5046
5047 * utils.c (struct continuation, add_continuation)
5048 (add_inferior_continuation)
5049 (do_all_inferior_continuations, discard_all_inferior_continuations)
5050 (restore_thread_cleanup, do_all_continuations_ptid)
5051 (do_all_continuations_thread_callback)
5052 (do_all_continuations_thread, do_all_continuations)
5053 (discard_all_continuations_thread_callback)
5054 (discard_all_continuations_thread, discard_all_continuations)
5055 (add_intermediate_continuation)
5056 (do_all_intermediate_continuations_thread_callback)
5057 (do_all_intermediate_continuations_thread)
5058 (do_all_intermediate_continuations)
5059 (discard_all_intermediate_continuations_thread_callback)
5060 (discard_all_intermediate_continuations_thread)
5061 (discard_all_intermediate_continuations): Move to ...
5062 * continuations.c: ... this new file, and adjust to no longer
5063 implement continuations on top of cleanups.
5064 * Makefile.in (SFILES): Add continuations.c.
5065 (COMMON_OBS): Add continuations.o.
5066
d8b34453
PA
50672011-05-26 Pedro Alves <pedro@codesourcery.com>
5068
5069 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5070 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5071 Internal error on invalid values.
5072 * reverse.c: Don't handle EXEC_ERROR.
5073 * mi/mi-main.c: Don't handle EXEC_ERROR.
5074
32231432
PA
50752011-05-26 Pedro Alves <pedro@codesourcery.com>
5076
5077 * record.c: Include event-loop.h, inf-loop.h.
5078 (record_beneath_to_async): New global.
5079 (tmp_to_async): New global.
5080 (record_async_inferior_event_token): New global.
5081 (record_open_1): Don't error out if async is enabled.
5082 (record_open): Handle to_async. Create an async event source in
5083 the event loop.
5084 (record_close): Delete the async event source.
5085 (record_resumed): New global.
5086 (record_execution_dir): New global.
5087 (record_resume, record_core_resume): Set them. Register the
5088 target on the event loop.
5089 (record_wait): Rename to ...
5090 (record_wait_1): ... this. Add more debug output. Handle
5091 TARGET_WNOHANG, and the target beneath returning
5092 TARGET_WAITKIND_IGNORE.
5093 (record_wait): Reimplement on top of record_wait_1.
5094 (record_async_mask_value): New global.
5095 (record_async, record_async_mask, record_can_async_p)
5096 (record_is_async_p, record_execution_direction): New functions.
5097 (init_record_ops, init_record_core_ops): Install new methods.
5098 * infrun.c (fetch_inferior_event): Temporarily switch the global
5099 execution direction to the direction the target was going.
5100 (execution_direction): Change type to int.
5101 * target.c (default_execution_direction): New function.
5102 (update_current_target): Inherit and de_fault
5103 to_execution_direction.
5104 * target.h (struct target_ops) <to_execution_direction>: New
5105 field.
5106 (target_execution_direction): New macro.
5107 * inferior.h (execution_direction): Change type to int.
5108
949dc678
PA
51092011-05-26 Pedro Alves <pedro@codesourcery.com>
5110
5111 * infcall.c (call_function_by_hand): Don't allow calling functions
5112 in reverse execution mode.
5113
c13bd2b5
PA
51142011-05-26 Pedro Alves <pedro@codesourcery.com>
5115
5116 * infcmd.c (finish_command): Allow async finish in reverse.
5117
6938fd34
YQ
51182011-05-26 Yao Qi <yao@codesourcery.com>
5119
5120 * gdb_thread_db.h: Delete. Move to ...
5121 * common/gdb_thread_db.h: ... here.
5122
9da8c2a0
PA
51232011-05-26 Pedro Alves <pedro@codesourcery.com>
5124
5125 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5126 function's entry point instead of a manually managed momentary
5127 breakpoint, and only ever issue one proceed call.
5128 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5129 doing a reverse-finish, switch to stepi mode, to do another step.
5130 (insert_step_resume_breakpoint_at_sal): Make public.
5131 (normal_stop): No need to save function value return registers if
5132 going reverse.
5133 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5134
2c03e5be
PA
51352011-05-26 Pedro Alves <pedro@codesourcery.com>
5136
5137 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5138 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5139 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5140 at the end.
5141 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5142 step-resume breakpoints.
5143 (print_it_typical): Handle bp_hp_step_resume.
5144 (bpstat_what): Ditto.
5145 (bptype_string): Ditto.
5146 (print_one_breakpoint_location): Ditto.
5147 (allocate_bp_location): Ditto.
5148 (mention): Ditto.
5149 (breakpoint_re_set_one): Ditto.
5150 * infrun.c (handle_inferior_event): Adjust. Split
5151 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5152 BPSTAT_WHAT_HP_STEP_RESUME.
5153 (insert_step_resume_breakpoint_at_sal): Rename to ...
5154 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5155 parameter. Handle it.
5156 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5157 insert_step_resume_breakpoint_at_sal_1.
5158 (insert_step_resume_breakpoint_at_frame): Rename to ...
5159 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5160 set a high-priority step-resume breakpoint.
5161 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5162 (insert_step_resume_breakpoint_at_caller): Ditto.
5163
51be5b68
PA
51642011-05-26 Pedro Alves <pedro@codesourcery.com>
5165
5166 * breakpoint.c (iterate_over_related_breakpoints): New.
5167 (do_map_delete_breakpoint): New.
5168 (delete_command): Pass do_map_delete_breakpoint to
5169 map_breakpoint_numbers.
5170 (do_disable_breakpoint): New.
5171 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5172 breakpoints.
5173 (do_enable_breakpoint): Rename to ...
5174 (enable_breakpoint_disp): ... this.
5175 (enable_breakpoint): Adjust.
5176 (do_enable_breakpoint): New.
5177 (enable_once_breakpoint): Delete.
5178 (do_map_enable_breakpoint): New.
5179 (do_map_enable_once_breakpoint): New.
5180 (enable_once_command, enable_delete_command)
5181 (delete_trace_command): Iterate over the breakpoint's related
5182 breakpoints.
5183
4a1be8d2
PA
51842011-05-26 Pedro Alves <pedro@codesourcery.com>
5185
5186 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5187 for ALPHA_ZERO_REGNUM.
5188 (alpha_supply_int_regs): Explicitly supply zero as the value for
5189 ALPHA_ZERO_REGNUM in the register cache.
5190 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5191
59d70315
YQ
51922011-05-26 Yao Qi <yao@codesourcery.com>
5193
5194 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5195
251d32d9
TG
51962011-05-26 Tristan Gingold <gingold@adacore.com>
5197
5198 * symfile.h (struct dwarf2_section_names): New type.
5199 (struct dwarf2_debug_sections): New type.
5200 (dwarf2_has_info): Add parameter.
5201 * dwarf2read.c (dwarf2_elf_names): New variable.
5202 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5203 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5204 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5205 (dwarf2_has_info): Add names parameter. Pass names
5206 to dwarf2_locate_sections.
5207 (section_is_p): Rewrite using the names parameter.
5208 (dwarf2_locate_sections): Use section names from the names parameter.
5209 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5210 * elfread.c (read_psyms): Ditto.
5211 * machoread.c (macho_symfile_read): Ditto.
5212
652c71b4
AS
52132011-05-25 Andreas Schwab <schwab@redhat.com>
5214
5215 PR gdb/8677
5216 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5217
f17170e5
KS
52182011-05-24 Keith Seitz <keiths@redhat.com>
5219
5220 PR breakpoint/12803
5221 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5222 (decode_compound): Unconditionally call keep_name_info.
5223
cdac0397
PA
52242011-05-24 Pedro Alves <pedro@codesourcery.com>
5225
5226 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5227 scope, clear its command list.
5228 (map_breakpoint_numbers): Don't walk the related breakpoints list
5229 of each breakpoint.
5230
91d4fe3f
TT
52312011-05-24 Tom Tromey <tromey@redhat.com>
5232
5233 * MAINTAINERS: Move Jim Blandy to past maintainers.
5234
3017a003
TG
52352011-05-24 Tristan Gingold <gingold@adacore.com>
5236
5237 * symfile.h (enum dwarf2_section_enum): New type.
5238 (dwarf2_get_section_info): New prototype.
5239 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5240 section_name by sect. Use a switch to select the info.
5241 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5242 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5243
c91c8c16
PA
52442011-05-24 Pedro Alves <pedro@codesourcery.com>
5245
5246 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5247 shared library event breakpoint if there's no execution.
5248
77bc418a
TJB
52492011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5250
5251 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5252 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5253
c50491a7
TT
52542011-05-23 Tom Tromey <tromey@redhat.com>
5255
5256 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5257 NULL.
5258
6d64e6d4
DE
52592011-05-23 Doug Evans <dje@google.com>
5260
5261 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5262 entry for RuntimeError to doc string.
5263
2067c8d4
JG
52642011-05-23 Jerome Guitton <guitton@adacore.com>
5265
5266 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5267 sequence for probing loops.
5268
b136cd05
PA
52692011-05-23 Pedro Alves <pedro@codesourcery.com>
5270
5271 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5272 comment.
5273
22e74ef9
MK
52742011-05-21 Mark Kettenis <kettenis@gnu.org>
5275
5276 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5277 zero as the value for %g0 in the register cache.
5278 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5279 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5280
842951eb
PA
52812011-05-20 Pedro Alves <pedro@codesourcery.com>
5282
5283 * infrun.c (proceed): Set previous_inferior_ptid here.
5284 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5285 inferior_ptid, not null_ptid.
5286 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5287 (fetch_inferior_event): Nor here.
5288
46cf51e6
PA
52892011-05-20 Pedro Alves <pedro@codesourcery.com>
5290
5291 * inf-loop.c (inferior_event_handler): Only output a message if
5292 verbose.
5293
29ef4c46
LM
52942011-05-20 Luis Machado <lgustavo@codesourcery.com>
5295
5296 * MAINTAINERS: Update my e-mail address.
5297
f148b27e
PA
52982011-05-20 Pedro Alves <pedro@codesourcery.com>
5299
5300 * infrun.c (proceed): Switch the inferior event loop to
5301 INF_EXEC_COMPLETE if the target refused to resume from a
5302 vfork/fork.
5303
09cee04b
PA
53042011-05-20 Pedro Alves <pedro@codesourcery.com>
5305
5306 * infcmd.c: Include "inf-loop.h".
5307 (step_once): When stepping into an inline subroutine, pretend the
5308 target has run. If the target can async, switch the inferior
5309 event loop to INF_EXEC_COMPLETE.
5310 * inferior.h (user_visible_resume_ptid): Declare.
5311 * infrun.c (user_visible_resume_ptid): New function, factored out
5312 from `resume'.
5313 (resume): Use it.
5314 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5315 that the current thread is running. Merge async and sync
5316 branches.
5317
751b8ce1
PA
53182011-05-20 Pedro Alves <pedro@codesourcery.com>
5319
5320 * infcmd.c (step_1): Simplify synchronous case.
5321
e93a69ed
PA
53222011-05-20 Pedro Alves <pedro@codesourcery.com>
5323
5324 * tracepoint.c: Include exceptions.h.
5325 (TFILE_PID): Move higher in file.
5326 (tfile_open): Delay pushing the tfile target until we're assured
5327 the tfile header is present in the file. Wrap reading the initial
5328 newline-terminated lines in TRY_CATCH. Pop the target if the
5329 initial setup failed. Add the tfile's thread immediately
5330 aftwards, before any non-essential setup. Don't skip
5331 post_create_inferior if there are no traceframes present in the
5332 file.
5333 (tfile_close): Remove redundant check for null before xfree call.
5334 (tfile_thread_alive): New function.
5335 (init_tfile_ops): Register it as to_thread_alive callback.
5336
6823e2b1
PA
53372011-05-20 Pedro Alves <pedro@codesourcery.com>
5338
5339 * tracepoint.c (tfile_open): Delete #if 0'd code.
5340
b3c8eb43
JK
53412011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5342
5343 Fix -readnow for -gdwarf-4 unused type units.
5344 * dwarf2read.c (struct signatured_type): Remove the field offset.
5345 (create_signatured_type_table_from_index): Remove its initialization.
5346 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5347 instead. Add a complaint call.
5348 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5349 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5350 (lookup_signatured_type_at_offset, read_signatured_type)
5351 (write_one_signatured_type): Update the field for per_cu.
5352
310afc76
TT
53532011-05-19 Tom Tromey <tromey@redhat.com>
5354
5355 * python/py-inferior.c (python_inferior_exit): Use
5356 target_gdbarch.
5357 (python_on_resume): Likewise.
5358
cf6c5ffb
TT
53592011-05-19 Matt Rice <ratmice@gmail.com>
5360
5361 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5362
fb80a3c5
HZ
53632011-05-19 Hui Zhu <teawater@gmail.com>
5364
5365 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5366
3672b1be
HZ
53672011-05-19 Hui Zhu <teawater@gmail.com>
5368
5369 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5370
ff355380
TT
53712011-05-18 Tom Tromey <tromey@redhat.com>
5372
5373 * dwarf2read.c (dwarf2_add_field): Constify.
5374 * value.c (value_static_field): Constify.
5375 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5376 Now const.
5377 * ax-gdb.c (gen_static_field): Constify
5378
ed731959
JK
53792011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5380
5381 * linux-nat.c (kill_callback): Use SIGKILL first.
5382
967cff16
JB
53832011-05-18 Joel Brobecker <brobecker@adacore.com>
5384
5385 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5386
1d06ead6
TT
53872011-05-18 Tom Tromey <tromey@redhat.com>
5388
5389 * value.c (value_fn_field): Constify.
5390 * symtab.c (gdb_mangle_name): Constify.
5391 * stabsread.c (update_method_name_from_physname): Make 'physname'
5392 argument const.
5393 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5394 const. Use explicit fputc_filtered loop.
5395 (pascal_type_print_base): Constify.
5396 * p-lang.h (pascal_type_print_method_args): Update.
5397 * linespec.c (add_matching_methods): Constify.
5398 (add_constructors): Likewise.
5399 * jv-typeprint.c (java_type_print_base): Constify.
5400 * gdbtypes.h (struct cplus_struct_type)
5401 <fn_fieldlist.fn_field.physname>: Now const.
5402 * dwarf2read.c (compute_delayed_physnames): Constify.
5403 (dwarf2_add_member_fn): Likewise.
5404 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5405
0d9a9a5f
PA
54062011-05-18 Pedro Alves <pedro@codesourcery.com>
5407
5408 * infrun.c (resume): Mention which is the current thread, and its
5409 current PC in debug output.
5410 (prepare_to_proceed): Mention the thread switching in debug
5411 output.
5412
05386e9e
TT
54132011-05-18 Tom Tromey <tromey@redhat.com>
5414
5415 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5416 path check. Use xmalloc and cleanups.
5417 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5418
ee86786c
TT
54192011-05-17 Tom Tromey <tromey@redhat.com>
5420
5421 * cp-valprint.c (cp_print_value_fields): Catch errors from
5422 value_static_field.
5423
9ff3b74f
TT
54242011-05-17 Tom Tromey <tromey@redhat.com>
5425
5426 * dwarf2read.c (dwarf2_get_die_type): Call
5427 get_die_type_at_offset.
5428 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5429 get_base_type function.
5430
cd3da28e
PA
54312011-05-17 Tomas Martinec <fyzmat@gmail.com>
5432
5433 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5434 trap_expected.
5435
fd20d931
DE
54362011-05-16 Doug Evans <dje@google.com>
5437
5438 * python/py-auto-load.c (source_section_scripts): Mention objfile
5439 name in warning.
5440
75fc9810
DE
54412011-05-15 Doug Evans <dje@google.com>
5442
290351b8
DE
5443 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5444 (try_thread_db_load_from_pdir): Call it. If unable to find
5445 libthread_db in directory of libpthread, see if we're looking at
5446 the separate-debug-info copy.
5447
75fc9810
DE
5448 * python/py-autoload.c (print_script): Print "Missing" instead of
5449 "No" for missing scripts.
5450 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5451
9f7bc587
DE
54522011-05-13 Doug Evans <dje@google.com>
5453
5454 * ui-file.c (stdio_file_write_async_safe): Add comment.
5455
093cee7d
HZ
54562011-05-14 Hui Zhu <teawater@gmail.com>
5457
5458 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5459
dbaefcf7
DE
54602011-05-13 Doug Evans <dje@google.com>
5461
98a5dd13
DE
5462 Support $pdir and $sdir in libthread-db-search-path.
5463 * NEWS: Mention $sdir,$pdir.
5464 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5465 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5466 (try_thread_db_load_from_sdir): New function.
5467 (try_thread_db_load_from_dir): New function.
5468 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5469 system directories if search of libthread-db-search-path fails,
5470 that is now done via $sdir.
5471 (has_libpthread): New function.
5472 (thread_db_load): Remove search for libthread_db in directory of
5473 libpthread, that is now done via $pdir.
5474
dbaefcf7
DE
5475 * NEWS: Mention "info auto-load-scripts".
5476 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5477 script_not_found_warning_printed.
5478 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5479 all callers updated. Initialize script_not_found_warning_printed.
5480 (get_auto_load_pspace_data_for_loading): New function.
5481 (maybe_add_script): New function.
5482 (source_section_scripts): Simplify. Only print one warning regardless
5483 of the number of auto-load scripts not found.
5484 (clear_section_scripts): Clear script_not_found_warning_printed.
5485 (auto_load_objfile_script): Record script in hash table.
5486 (count_matching_scripts): New function.
5487 (maybe_print_script): Renamed from maybe_print_section_script, all
5488 callers updated. Rewrite to use ui_out_*.
5489 (info_auto_load_scripts): Renamed from
5490 maintenance_print_section_scripts, all callers updated.
5491 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5492 renamed as "info auto-load-scripts".
5493
9930639c
TT
54942011-05-13 Tom Tromey <tromey@redhat.com>
5495
5496 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5497 (read_sleb128): Likewise.
5498
06826322
TT
54992011-05-13 Tom Tromey <tromey@redhat.com>
5500
5501 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5502 offset display.
5503
01124a23
DE
55042011-05-13 Doug Evans <dje@google.com>
5505
5506 * linux-nat.c (debug_linux_nat_async): Delete.
5507 Replace all references to use debug_linux_nat instead.
5508 (show_debug_linux_nat_async): Delete.
5509 (sigchld_handler): Call ui_file_write_async_safe instead of
5510 fprintf_unfiltered.
5511 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5512 * ui-file.c (struct ui_file): New member to_write_async_safe.
5513 (null_file_write_async_safe): New function.
5514 (ui_file_write_async_safe): New function.
5515 (set_ui_file_write_async_safe): New function.
5516 (ui_file_new): Initialize to_write_async_safe.
5517 (stdio_file_write_async_safe): New function.
5518 (struct stdio_file): New member fd.
5519 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5520 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5521 fileno.
01124a23
DE
5522 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5523 (set_ui_file_write_async_safe): Declare.
5524 (ui_file_write_async_safe): Declare.
5525
72fc29ff
TT
55262011-05-13 Tom Tromey <tromey@redhat.com>
5527
5528 * utils.c (do_value_free): New function.
5529 (make_cleanup_value_free): Likewise.
5530 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5531 freeing correctly.
5532 (dwarf2_loc_desc_needs_frame): Call
5533 make_cleanup_value_free_to_mark.
5534 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5535 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5536 value_free_to_mark.
5537 (new_dwarf_expr_context): Don't call value_mark.
5538 * dwarf2-frame.c (execute_stack_op): Call
5539 make_cleanup_value_free_to_mark.
5540 * defs.h (make_cleanup_value_free): Declare.
5541
028d0ed5
TJB
55422011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5543
5544 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5545 prepare_execute_command.
5546 * top.c (prepare_execute_command): Return cleanup.
5547 (execute_command): Use cleanup from prepare_execute_command.
5548 * top.h (prepare_execute_command): Change prototype to return
5549 cleanup.
5550 * defs.h (struct value): Add opaque declaration.
5551 (make_cleanup_value_free_to_mark): Add prototype.
5552 * utils.c (do_value_free_to_mark): New function.
5553 (make_cleanup_value_free_to_mark): Likewise.
5554
b087e0ed
TT
55552011-05-12 Tom Tromey <tromey@redhat.com>
5556
5557 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5558 cast left-hand-side to unsigned.
5559
8a9b8146
TT
55602011-05-12 Tom Tromey <tromey@redhat.com>
5561
5562 PR gdb/12617:
5563 * value.h (value_from_contents): Declare.
5564 * value.c (value_from_contents): New function.
5565 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5566 (dwarf2_get_die_type): New function.
5567 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5568 (allocate_piece_closure): Acquire reference to values.
5569 (read_pieced_value): Update for value-based expressions.
5570 (write_pieced_value): Likewise.
5571 (free_pieced_value_closure): Call value_free as needed.
5572 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5573 Update for value-based expressions.
5574 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5575 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5576 <get_base_type>: New field.
5577 (struct dwarf_expr_piece) <v.value>: Change type.
5578 <v.regno>: New field.
5579 (struct dwarf_expr_context) <mark>: New field.
5580 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5581 (dwarf_expr_pop, dwarf_expr_push): Remove.
5582 (dwarf_expr_push_address): Declare.
5583 * dwarf2expr.c (dwarf_arch_cookie): New global.
5584 (struct dwarf_gdbarch_types): New.
5585 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5586 functions.
5587 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5588 static.
5589 (dwarf_expr_push_address): New function.
5590 (dwarf_expr_pop): Now static.
5591 (dwarf_expr_fetch): Change return type.
5592 (dwarf_require_integral): New function.
5593 (dwarf_expr_fetch): Simplify.
5594 (add_piece): Update.
5595 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5596 functions.
5597 (execute_stack_op) <sign_ext>: Remove.
5598 Use values for DWARF stack.
5599 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5600 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5601 New cases.
5602 (_initialize_dwarf2expr): New function.
5603 (add_piece): Update.
5604 (new_dwarf_expr_context): Set new field.
5605 (free_dwarf_expr_context): Call value_free_to_mark.
5606 * dwarf2-frame.c (no_base_type): New function.
5607 (execute_stack_op): Set get_base_type field. Update.
5608
e8d28ef4
TT
56092011-05-12 Tom Tromey <tromey@redhat.com>
5610
5611 * dwarf2read.c (read_common_block): Fix formatting.
5612
d248b706
KY
56132011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5614
5615 * breakpoint.c (disable_breakpoint): Disable all locations
5616 associated with a tracepoint on target if a trace experiment is
5617 running.
5618 (disable_command): Disable a specific tracepoint location on target if
5619 a trace experiment is running.
5620 (do_enable_breakpoint): Enable all locations associated with a
5621 tracepoint on target if a trace experiment is running.
5622 (enable_command) Enable a specific tracepoint location on target if a
5623 trace experiment is running.
5624 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5625 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5626 to_disable_tracepoint.
5627 * target.h: Add declaration of struct bp_location.
5628 (struct target_ops): Add new functions
5629 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5630 to_disable_tracepoint to target operations.
5631 (target_supports_enable_disable_tracepoint): New macro.
5632 (target_enable_tracepoint): New macro.
5633 (target_disable_tracepoint): New macro.
5634 * remote.c (struct remote_state): Add new field.
5635 (remote_enable_disable_tracepoint_feature): New.
5636 (remote_protocol_features): Add new entry.
5637 (remote_supports_enable_disable_tracepoint): New.
5638 (remote_enable_tracepoint): New.
5639 (remote_disable_tracepoint): New.
5640 (init_remote_ops): Add remote_enable_tracepoint,
5641 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5642 to remote operations.
5643 * tracepoint.c (start_tracing): Allow tracing to start without any
5644 tracepoints enabled with just a warning if they can be re-enabled
5645 later.
5646 * NEWS: Add news item for the new behaviour of the enable and disable
5647 GDB commands when applied to tracepoints.
5648 Add news items for the new remote packets QTEnable and QTDisable.
5649
cc88a640
JK
56502011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5651
5652 * config.in: Regenerate.
5653 * configure: Regenerate.
5654 * configure.ac <--with-system-readline> (for readline_echoing_p):
5655 Remove the test.
5656 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5657 (tui_old_rl_echoing_p): ... here.
5658 (tui_setup_io): Rename extern declaration readline_echoing_p to
5659 _rl_echoing_p. Adjust assignments for the both renames.
5660
1f84b619
TJB
56612011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5662
5663 * symtab.c (lookup_symtab): Run cleanup before returning.
5664
74ac6d43
TT
56652011-05-11 Tom Tromey <tromey@redhat.com>
5666
5667 * dwarf2read.c (handle_data_member_location): New function.
5668 (dwarf2_add_field): Use it.
5669 (read_common_block): Likewise.
5670
5488dafb
JK
56712011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5672
5673 Make addrs->SECTINDEX always defined.
5674 * symfile.c (relative_addr_info_to_section_offsets): Check for
5675 SECTINDEX -1, not for zero ADDR.
5676 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5677 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5678 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5679 on its validity.
5680
84e578fb
DE
56812011-05-10 Doug Evans <dje@google.com>
5682
2471d008
DE
5683 * linux-thread-db.c: Whitespace cleanup.
5684 (try_thread_db_load_1): Fix comment.
5685
84e578fb
DE
5686 * linux-thread-db.c (set_libthread_db_search_path): New function.
5687 (_initialize_thread_db): Add setter for libthread-db-search-path.
5688
673c2bbe
DE
56892011-05-09 Doug Evans <dje@google.com>
5690
478aac75
DE
5691 * NEWS: Mention --with-iconv-bin.
5692 * configure.ac: New option --with-iconv-bin.
5693 * configure: Regenerate.
5694 * config.in: Regenerate.
5695 * defs.h (relocate_gdb_directory): Declare.
5696 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5697 removed progname parameter, and exported. All callers updated.
5698 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5699
673c2bbe
DE
5700 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5701 adding missing call to restore_child_signals_mask.
5702
e4c8541f
PA
57032011-05-09 Pedro Alves <pedro@codesourcery.com>
5704
5705 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5706 parameter.
5707 * infrun.c (proceed, start_remote): Adjust.
5708 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5709 and adjust to not handle it.
5710 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5711 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5712 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5713 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5714 * windows-nat.c (do_initial_windows_stuff): Adjust.
5715 * infcmd.c (attach_command): Adjust.
5716 (notice_new_inferior): Adjust.
5717
a536c6d7
UW
57182011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5719
5720 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5721 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5722 * spu-tdep.c (op_selb): Use correct value.
5723
7845b013
UW
57242011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5725
5726 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5727 "parent" parameter to symbol_file_add_from_bfd call.
5728
9c06b0b4
TJB
57292011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5730 Thiago Jung Bauermann <bauerman@br.ibm.com>
5731
5732 Implement support for PowerPC BookE masked watchpoints.
5733 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5734 section.
5735 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5736 method. Initialize to NULL in all existing breakpoint_ops instances.
5737 (struct breakpoint) <hw_wp_mask>: New field.
5738 * breakpoint.c (is_masked_watchpoint): Add prototype.
5739 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5740 breakpoint's breakpoint_ops.works_in_software_mode if available.
5741 (watchpoints_triggered): Handle the case of a hardware masked
5742 watchpoint trigger.
5743 (watchpoint_check): Likewise.
5744 (works_in_software_mode_watchpoint): New function.
5745 (insert_masked_watchpoint, remove_masked_watchpoint)
5746 (resources_needed_masked_watchpoint)
5747 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5748 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5749 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5750 functions.
5751 (masked_watchpoint_breakpoint_ops): New structure.
5752 (watch_command_1): Check for the existence of the `mask' parameter.
5753 Set b->ops according to the type of hardware watchpoint being created.
5754 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5755 (ppc_linux_remove_mask_watchpoint)
5756 (ppc_linux_masked_watch_num_registers): New functions.
5757 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5758 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5759 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5760 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5761 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5762 (target_masked_watch_num_registers): New functions.
5763 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5764 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5765 methods.
5766 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5767 (target_masked_watch_num_registers): Add prototypes.
5768
8be455d7
JK
57692011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5770
5771 PR 12573
5772 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5773 (producer_is_gcc_ge_4_0): New function.
5774 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5775 symtab->language code.
5776 (var_decode_location): Set cu->has_loclist.
5777 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5778 skip. Intialize force_skip from locations_valid. Move the prologue
5779 skipping code into two passes.
5780 * symtab.h (struct symtab): Make the primary field a bitfield. New
5781 field locations_valid.
5782
d8228535
JK
57832011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5784
5785 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5786 (classify_inner_name): Call cp_lookup_nested_type with
5787 yylval.tsym.type.
5788 * cp-namespace.c (cp_lookup_nested_type): New variable
5789 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5790 type_name_no_tag_or_error with saved_parent_type.
5791 * dwarf2read.c (load_partial_dies): Read in any children of
5792 DW_TAG_typedef with complaint in such case.
5793 * gdbtypes.c (type_name_no_tag_or_error): New function.
5794 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5795 * valops.c (destructor_name_p): New comment for parameter type. Remove
5796 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5797 * value.h (destructor_name_p): Remove type const.
5798
1976171a
JK
57992011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5800
5801 * symtab.c (compare_symbol_name): New function.
5802 (completion_list_add_name, expand_partial_symbol_name): Call it,
5803 remove the variable ncmp.
5804 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5805 gdb_assert it.
5806
a9634178
TJB
58072011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5808
5809 Demote to sw watchpoint only in update_watchpoint.
5810 * breakpoint.c (update_watchpoint): Change between software and
5811 hardware watchpoint for all kinds of watchpoints, not just
5812 read/write ones. Determine b->exact value here instead of
5813 in watch_command_1. Error out if there are not enough resources
5814 for a read or access hardware watchpoint.
5815 (watch_command_1): Remove logic of checking whether there are
5816 enough resources available, since update_watchpoint will do that
5817 work now. Don't set b->exact here. Catch exceptions thrown by
5818 update_watchpoint and delete the watchpoint.
5819 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5820 Use target_exact_watchpoints instead.
5821 (delete_breakpoint): Notify observers only if deleted watchpoint
5822 has a breakpoint number assigned to it.
5823
4c67c798
JJ
58242011-05-05 Janis Johnson <janisjo@codesourcery.com>
5825
5826 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5827
a3fcb948
JG
58282011-05-05 Jerome Guitton <guitton@adacore.com>
5829
5830 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5831 New functions.
5832 (i386_stack_tramp_frame_unwind): New static global.
5833 (i386_match_pattern): New function, extracted from i386_match_insn.
5834 (i386_match_insn): Use i386_match_pattern.
5835 (i386_match_insn_block): New function.
5836 (i386_tramp_chain_in_reg_insns)
5837 (i386_tramp_chain_on_stack_insns): New static variables.
5838 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5839 of unwinders.
5840
4d393d60
JM
58412011-05-04 Joseph Myers <joseph@codesourcery.com>
5842
5843 * configure.host (xscale*): Don't handle target.
5844 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5845 handle targets.
5846
f70bd40b
YQ
58472011-05-04 Yao Qi <yao@codesourcery.com>
5848
5849 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5850
dd3295ee
JB
58512011-05-03 Joel Brobecker <brobecker@adacore.com>
5852
5853 Revert:
5854 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5855 | * elfread.c (elf_symtab_read): Stop memory leak.
5856
90375a0e
PM
58572011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5858
5859 * nto-tdep.c (nto_target): Replace deprecated call to
5860 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5861
d07205c2
JK
58622011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 Fix false GCC warning.
5865 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5866
1e718ff1
TJB
58672011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5868
5869 * breakpoint.c (update_watchpoint): Move code to change
5870 the enable state of breakpoint from here ...
5871 (do_enable_breakpoint): ... to here.
5872
35bef4fd
TT
58732011-04-26 Andrew Gontarek <andrewg@cray.com>
5874
78290264
PP
5875 * valprint.c (val_print_array_elements): Fixed poor performance
5876 of printing very large arrays with repeat_count_threshold set
5877 to unlimited. New comment.
35bef4fd 5878
38a714bb
TT
58792011-04-29 Tom Tromey <tromey@redhat.com>
5880
5881 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5882 (mi_parse): Likewise.
5883 * breakpoint.c (break_range_command): Use sizeof char*, not
5884 char**.
5885 (create_breakpoint): Likewise.
5886 (parse_breakpoint_sals): Likewise.
5887
eb73ad13
PA
58882011-04-29 Pedro Alves <pedro@codesourcery.com>
5889
5890 * linux-nat.c (linux_child_remove_fork_catchpoint)
5891 (linux_child_remove_vfork_catchpoint)
5892 (linux_child_remove_exec_catchpoint): New functions.
5893 (linux_target_install_ops): Install them.
5894
d65aec65
PM
58952011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5896
5897 PR mi/12531
5898
5899 * varobj.c (install_default_visualizer): Do not install a
5900 visualizer if the varobj is CPLUS_FAKE_CHILD.
5901 (construct_visualizer): Likewise.
5902
165195f4
JK
59032011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5904
5905 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5906 case insensitive comparison.
5907
30852783
UW
59082011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5909
5910 * infrun.c (proceed): Revert previous change.
5911 (resume): Instead, handle the case of signal delivery while stepping
5912 off a breakpoint location here, and only if software single-stepping
5913 is used. Handle nested signals.
5914
7ff120b4
YQ
59152011-04-28 Yao Qi <yao@codesourcery.com>
5916
5917 * arm-tdep.c (copy_unmodified): Rename to ...
5918 (arm_copy_unmodified): .. this. New.
5919 (copy_preload): Move common part to ...
5920 (install_preload): .. this. New.
5921 (arm_copy_preload): New.
5922 (copy_preload_reg): Move common part to ...
5923 (install_preload_reg): ... this. New.
5924 (arm_copy_preload_reg): New.
5925 (copy_b_bl_blx): Move common part to ...
5926 (install_b_bl_blx): .. this. New.
5927 (arm_copy_b_bl_blx): New.
5928 (copy_bx_blx_reg): Move common part to ...
5929 (install_bx_blx_reg): ... this. New.
5930 (arm_copy_bx_blx_reg): New.
5931 (copy_alu_reg): Move common part to ...
5932 (install_alu_reg): ... this. New.
5933 (arm_copy_alu_reg): New.
5934 (copy_alu_shifted_reg): Move common part to ...
5935 (install_alu_shifted_reg): ... this. New.
5936 (copy_ldr_str_ldrb_strb): Move common part to ...
5937 (install_ldr_str_ldrb_strb): ... this. New.
5938 (arm_copy_ldr_str_ldrb_strb): New.
5939 (copy_copro_load_store): Move some common part to ...
5940 (install_copy_copro_load_store): ... this. New.
5941 (arm_copy_copro_load_store): New.
5942 (copy_svc): Delete.
5943 (arm_copy_svc): Renamed from copy_svc.
5944 (copy_undef): Delete.
5945 (arm_copy_undef): Renamed from copy_undef.
5946 (decode_ext_reg_ld_st): Delete.
5947 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5948 (decode_svc_copro): Delete.
5949 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5950 (copy_copro_load_store, copy_alu_imm): update callers.
5951 (copy_extra_ld_st, copy_block_xfer): Likewise.
5952 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5953 (decode_miscellaneous, decode_dp_misc): Likewise.
5954 (decode_ld_st_word_ubyte, decode_media): Likewise.
5955 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5956 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5957 (decode_unconditional, decode_miscellaneous): Likewise.
5958 (decode_media, decode_b_bl_ldmstm): Likewise.
5959 (arm_process_displaced_insn): Likewise..
5960 (decode_misc_memhint_neon): Delete.
5961 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5962 (decode_miscellaneous): Delete.
5963 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5964 (decode_dp_misc): Delete.
5965 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5966 (decode_ld_st_word_ubyte): Delete.
5967 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5968 (decode_media): Delete.
5969 (arm_decode_media): Renamed from decode_media.
5970 (decode_b_bl_ldmstm): Delete.
5971 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5972 (decode_ext_reg_ld_st): Delete.
5973 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5974 (decode_unconditional): Delete.
5975 (arm_decode_unconditional): Renamed from decode_unconditional.
5976
559a7a62
JK
59772011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5978
5979 Case insensitive lookups implementation.
5980 * dwarf2read.c: Include ctype.h.
5981 (struct mapped_index): New field version.
5982 (mapped_index_string_hash): New parameter index_version. New comment
5983 for it. Call tolower appropriately.
5984 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5985 Choose the right index version for mapped_index_string_hash.
5986 (dwarf2_read_index): Support also the index version 5. Initialize the
5987 new struct mapped_index field version.
5988 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5989 (find_slot): Explain the version needs. Pass INT_MAX for the new
5990 parameter.
5991 (write_psymtabs_to_index): Produce version 5.
5992 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5993 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5994 * psymtab.c (lookup_partial_symbol): Find the
5995 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5996 entries.
5997 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5998 NAME lowercasing.
5999 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6000 (completion_list_add_name): New variable ncmp, initialize it, use it.
6001 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6002 * utils.c (strcmp_iw): Support case_sensitive_off.
6003 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6004 New function comment part. New variables saved_string1,
6005 saved_string2 and case_pass. Add a proper second pass.
6006
681bf369
JK
60072011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6008
6009 Replace re_comp/re_exec by regcomp/regexec.
6010 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6011 (search_symbols_name_matches): Use them, use regexec.
6012 (search_symbols): New variable retval_chain, adjust the use of
6013 old_chain against it. Replace re_comp by regcomp. Use the new struct
6014 search_symbols_data fields, use regexec instead of re_exec.
6015
b11b1f88
JK
60162011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6017
6018 Format the code for the next patch.
6019 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6020 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6021 New variables c1 and c2.
6022
2484c66b
UW
60232011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6024
6025 * infrun.c (proceed): Do not single-step into signal delivery
6026 when stepping off a breakpoint location.
6027 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6028 (insert_step_resume_breakpoint_at_caller): Likewise.
6029 (insert_step_resume_breakpoint_at_sal): Likewise.
6030 (insert_longjmp_resume_breakpoint): Likewise.
6031
47423772
YQ
60322011-04-27 Yao Qi <yao@codesourcery.com>
6033
6034 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6035
13bdd2e7
JB
60362011-04-27 Joel Brobecker <brobecker@adacore.com>
6037
6038 * procfs.c (procfs_pass_signals): Fix advance declaration.
6039
2455069d
UW
60402011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6041
6042 * target.h (struct target_ops): Remove to_notice_signals;
6043 add to_pass_signals.
6044 (target_notice_signals): Remove.
6045 (target_pass_signals): Add prototype.
6046 * target.c (update_current_target): Remove to_notice_signals;
6047 mention to_pass_signals.
6048 (target_pass_signals): New function.
6049 (debug_to_notice_signals): Remove.
6050 (setup_target_debug): Do not install debug_to_notice_signals.
6051
6052 * infrun.c (signal_pass): New global.
6053 (resume): Call target_pass_signals.
6054 (handle_inferior_event): Report all signals while stepping over
6055 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6056 are re-inserted when stepping over a signal handler.
6057 (signal_cache_update): New function.
6058 (signal_stop_update): Call it.
6059 (signal_print_update): Likewise.
6060 (signal_pass_update): Likewise.
6061 (handle_command): Call signal_cache_update and target_pass_signals
6062 instead of target_notice_signals.
6063 (_initialize_infrun): Initialize signal_pass.
6064
6065 * linux-nat.c (pass_mask): New global.
6066 (linux_nat_pass_signals): New function.
6067 (linux_nat_create_inferior): Report all signals initially.
6068 (linux_nat_attach): Likewise.
6069 (linux_nat_resume): Use pass_mask to decide whether to directly
6070 handle an inferior signal.
6071 (linux_nat_wait_1): Likewise.
6072 (linux_nat_add_target): Install to_pass_signals callback.
6073
6074 * nto-procfs.c (notice_signals): Remove.
6075 (procfs_resume): Do not call notice_signals.
6076 (procfs_notice_signals): Remove.
6077 (procfs_pass_signals): New function.
6078 (init_procfs_ops): Install to_pass_signals callback instead of
6079 to_notice_signals callback.
6080 (_initialize_procfs): Report all signals initially.
6081
6082 * procfs.c (procfs_notice_signals): Remove.
6083 (procfs_pass_signals): New function.
6084 (procfs_target): Install to_pass_signals callback instead of
6085 to_notice_signals callback.
6086 (register_gdb_signals): Remove.
6087 (procfs_debug_inferior): Report all signals initially.
6088 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6089
6090 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6091 parameters; use them instead of calling signal_..._state routines.
6092 (remote_notice_signals): Remove.
6093 (remote_start_remote): Report all signals initially.
6094 (remote_resume): Do not call remote_pass_signals.
6095 (_initialize_remote): Install to_pass_signals callback instead of
6096 to_notice_signals callback.
6097
46c6471b
PA
60982011-04-27 Pedro Alves <pedro@codesourcery.com>
6099
6100 * breakpoint.c (user_settable_breakpoint): Delete.
6101 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6102 (delete_command): Check user_breakpoint_p instead of looking at
6103 the breakpoint's type.
6104 (disable_command): Ditto.
6105 (enable_command): Ditto.
6106 (delete_trace_command): Use user_breakpoint_p instead of looking
6107 at the breakpoint number directly. When checking if there are
6108 user visible tracepoints, in order to know whether to ask the user
6109 for confirmation, check whether the breakpoint is actually a
6110 tracepoint.
6111
f6d90398
VP
61122011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6113
6114 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6115 compilation.
6116
8d3788bd
VP
61172011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6118
6119 MI breakpoint notifications.
6120
f33edef8
PP
6121 * annotate.c (breakpoint_changed): Adjust parameter type.
6122 * breakpoint.c (set_breakpoint_condition): Adjust to change
6123 in breakpoint_modified type.
6124 (breakpoint_set_commands): Likewise.
6125 (do_map_commands_command): Likewise.
6126 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6127 changed after bumping hit count.
6128 (bpstat_stop_status): Likewise.
6129 (print_one_breakpoint_location): Don't wrap in tuple here.
6130 (print_one_breakpoint): Always print individual locations.
6131 For locations, use unnamed tuple.
6132 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6133 has changed.
6134 (create_catchpoint, create_syscall_event_catchpoint): Call
6135 breakpoint_created obsever.
6136 (mention): Don't call breakpoint_created observer.
6137 (create_breakpoint_sal): Call breakpoint_created observer.
6138 (create_breakpoint, watch_command_1): Likewise.
6139 (create_ada_exception_breakpoint): Likewise.
6140 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6141 (locations_are_equal): New.
6142 (update_breakpoint_locations): If locations were changed, notify.
6143 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6144 Call breakpoint_modified observer.
6145
6146 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6147 (mi_cmd_break_insert): Don't set observers for modify and delete.
6148 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6149 (mi_breakpoint_created, mi_breakpoint_deleted)
6150 (mi_breakpoint_modified): New.
6151 (mi_interpreter_init): Hook the above.
6152 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6153 while -break-* commands are executing.
6154 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6155 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6156 (mi_redirect): New.
6157 (mi_ui_out_impl): Hook in mi_redirect.
6158 (mi_field_skip): True to the name, skip the field, don't output
6159 a field with an empty value.
6160
6161 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6162 (gdbpy_breakpoint_deleted): Adjust.
6163 * tui/tui-hooks.c (tui_event_create_breakpoint)
6164 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6165
a8f42b45
UW
61662011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6167
6168 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6169 (procfs_remove_hw_watchpoint): Likewise.
6170
57e12211
TT
61712011-04-26 Michael Walle <michael@walle.cc>
6172
6173 * remote.c (remote_start_remote): Ack packet after sending the
6174 interrupt sequence.
6175
af96c192
YQ
61762011-04-26 Yao Qi <yao@codesourcery.com>
6177
f33edef8
PP
6178 * linux-nat.c: Move common macros to ...
6179 Include linux-ptrace.h.
6180 * common/linux-ptrace.h: ... here. New.
af96c192 6181
3e03848b
JK
61822011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6183
6184 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6185 !objfile_has_partial_symbols. New comment.
6186 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6187 SYM_READ_PSYMBOLS is not present. Extend the comment.
6188 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6189
1ae0d051
JK
61902011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6191
6192 * defs.h (ENUM_BITFIELD): Remove.
6193
03f2bd59
JK
61942011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6195 Eli Zaretskii <eliz@gnu.org>
6196
6197 * NEWS: Document the new gdbserver --once option.
6198
4161fbb0
JZ
61992011-04-21 Jie Zhang <jzhang918@gmail.com>
6200
6201 * MAINTAINERS: Update my email address.
6202
bcb28afc
PM
62032011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6204
6205 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6206 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6207 function call if __STDC_ISO_10646__ macro is defined.
6208 (intermediate_encoding): New prototype.
6209 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6210 to generate compile time error for unsupported gdb_wchar_t size.
6211 (ENDIAN_SUFFIX): New macro.
6212 (intermediate_encoding): New function.
6213
7b08b9eb
JK
62142011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6215
6216 * ada-lang.c (struct add_partial_datum): Update the comment for
6217 expand_partial_symbol_name.
6218 (ada_add_partial_symbol_completions): Rename to ...
6219 (ada_expand_partial_symbol_name): ... here, change return type, update
6220 function comment, call symbol_completion_match instead of
6221 symbol_completion_add.
6222 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6223 and ada_expand_partial_symbol_name.
6224 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6225 FILE_MATCHER.
6226 (dw2_map_symbol_names): Remove.
6227 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6228 * psymtab.c (map_symbol_names_psymtab): Remove.
6229 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6230 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6231 order.
6232 (psym_functions): Unlist map_symbol_names_psymtab.
6233 (map_partial_symbol_names): Rename to ...
6234 (expand_partial_symbol_names): ... here, change the FUN type, call
6235 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6236 * psymtab.h (map_partial_symbol_names): Rename to ...
6237 (expand_partial_symbol_names): ... here, change the FUN type.
6238 * symfile.h (struct quick_symbol_functions): Update the description of
6239 expand_symtabs_matching. Remove map_symbol_names.
6240 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6241 (struct add_name_data): Update the comment for
6242 expand_partial_symbol_name.
6243 (add_partial_symbol_name): Rename to ...
6244 (expand_partial_symbol_name): ... here. Replace
6245 completion_list_add_name call by strncmp.
6246 (default_make_symbol_completion_list_break_on): Use now
6247 expand_partial_symbol_names and expand_partial_symbol_name.
6248 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6249
90476074
TT
62502011-04-20 Tom Tromey <tromey@redhat.com>
6251
6252 * dwarf2read.c (save_gdb_index_command): Replace format
6253 documentation with a pointer to the manual.
6254
c21236dc
PA
62552011-04-20 Pedro Alves <pedro@codesourcery.com>
6256
6257 * regcache.c: Include remote.h.
6258 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6259 (regcache_dump): Handle regcache_dump_remote.
6260 (maintenance_print_remote_registers): New function.
6261 (_initialize_regcache): Install "maint print remote-registers"
6262 command.
6263 * remote.c (map_regcache_remote_table): New function, factored out
6264 from ...
6265 (init_remote_state): ... here.
6266 (remote_register_number_and_offset): New.
6267 * remote.h (remote_register_number_and_offset): Declare.
6268
b78974c3
PA
62692011-04-20 Pedro Alves <pedro@codesourcery.com>
6270
6271 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6272 null_ptid, assume and allow a NULL address space, instead of
6273 asking the target for the ptid's address space.
6274 * infrun.c (ptid_is_pid): Remove assertion.
6275
7a9dd1b2
TT
62762011-04-19 Tom Tromey <tromey@redhat.com>
6277
6278 * windows-tdep.c (windows_xfer_shared_library):
6279 * windows-nat.c (get_module_name, windows_make_so):
6280 * v850-tdep.c (v850_handle_pushm):
6281 * utils.c (null_cleanup, gdb_realpath):
6282 * ui-out.c (get_next_header):
6283 * tracepoint.c (clear_traceframe_info):
6284 * symtab.c (lookup_symtab):
6285 * serial.h (struct serial_ops):
6286 * mipsread.c (read_alphacoff_dynamic_symtab):
6287 * infcmd.c (print_return_value):
6288 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6289 * f-exp.y (parse_number):
6290 * exceptions.c (catch_exceptions):
6291 * dummy-frame.c (dummy_frame_this_id):
6292 * defs.h (struct cleanup):
6293 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6294 * arm-tdep.c (arm_push_dummy_call):
6295 * amd64-tdep.h (amd64_collect_xsave):
6296 * amd64-tdep.c (amd64_collect_xsave):
6297 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6298 * README (typing): Remove duplicate words.
6299 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6300 * infrun.c (siginfo_value_read): Fix typo.
6301 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6302 * top.c (source_line_number): Add comma.
6303
9941e0c5
MK
63042011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6305
6306 * thread.c (any_live_thread_of_process): Prioritize threads
6307 that are not executing.
6308 * gdbthread.h (any_live_thread_of_process): Update comment
6309 as per above change.
6310
ed4b0e6a
AS
63112011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6312
6313 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6314 (scan_xcoff_symtab): Likewise.
6315
9b13a2db
PM
63162011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6317
6318 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6319 inside if clause.
6320
1c6e1b0d
PM
63212011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6322 Pedro Alves <pedro@codesourcery.com>
6323
6324 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6325 variables to simplify code and avoid == operator at end of
6326 line as this is against GNU coding standards.
6327
74de0234
PM
63282011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6329
6330 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6331 lm_name to name_lm to avoid conflict with lm_name function.
6332
b23518f0
PM
63332011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6334
6335 ARI fixes: Use only lowercase function name for static functions.
6336 * nto-tdep.c (LM_ADDR): Rename to...
6337 (lm_addr): New function name.
6338 (nto_relocate_section_addresses): Adapt to change above.
6339 * solib-sunos.c (LM_ADDR): Rename to...
6340 (lm_addr): New function name.
6341 (LM_NEXT): Rename to...
6342 (lm_next): New function name.
6343 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6344 function name changes above.
6345 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6346 (lm_addr_from_link_map): New function name.
6347 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6348 (has_lm_dynamic_from_link_map): New function name.
6349 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6350 (lm_dynamic_from_link_map): New function name.
6351 (LM_ADDR_CHECK): Rename to...
6352 (lm_addr_check): New function name.
6353 (LM_NEXT): Rename to...
6354 (lm_next): New function name.
6355 (LM_PREV): Rename to...
6356 (lm_prev): New function name.
6357 (LM_NAME): Rename to...
6358 (lm_name): New function name.
6359 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6360 (ignore_first_link_map_entry): New function name.
6361 (svr4_keep_data_in_core): Adapt to function name changes above.
6362 (svr4_current_sos): Likewise.
6363 (enable_break): Likewise.
6364 (svr4_relocate_section_addresses): Likewise.
6365
1448a0a2
PM
63662011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6367
6368 ARI cleanup.
6369 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6370 sprintf. Simplify code and avoid loosing memory.
6371 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6372 (call0_frame_cache): Remove && operator from end of line.
6373
02835898
JK
63742011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6375
6376 Fix libraries displacement if they change whether they were prelinked.
6377 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6378 does not match. Comment why.
6379
9a845ea2
JK
63802011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6381
6382 * corelow.c: Include wrapper.h.
6383 (core_open): Call now gdb_target_find_new_threads.
6384 * wrapper.c: Include target.h.
6385 (gdb_target_find_new_threads): New.
6386 * wrapper.h (gdb_target_find_new_threads): New declaration.
6387
254f582e
JK
63882011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6389
6390 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6391 even if !TARGET_HAS_EXECUTION.
6392
63524580
JK
63932011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6394
6395 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6396 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6397 bfd_get_synthetic_symtab.
6398 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6399 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6400 parameter parent, remove the call to add_separate_debug_objfile.
6401 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6402 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6403 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6404 parent, new comment for it, call add_separate_debug_objfile for it.
6405 (symbol_file_add_separate): Pass objfile as the parameter parent,
6406 remove the call to add_separate_debug_objfile.
6407 (symbol_file_add_from_bfd): New parameter parent, pass it.
6408 (symbol_file_add): Pass NULL to the new parameter parent.
6409 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6410
90359a16
JK
64112011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6412
6413 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6414 BSF_SYNTHETIC.
6415
626e7282
JK
64162011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6417
6418 Fix Python access to inlined frames.
6419 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6420 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6421
cf31e6f9
TT
64222011-04-15 Tom Tromey <tromey@redhat.com>
6423
6424 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6425
c8d895f1
GB
64262011-04-15 Gary Benson <gbenson@redhat.com>
6427
6428 * MAINTAINERS: Add myself to write-after-approval section.
6429
56a9aa1d
MF
64302011-04-14 Mike Frysinger <vapier@gentoo.org>
6431
6432 * remote-sim.c (sim_command_completer): New function.
6433 (_initialize_remote_sim): Set completer to sim_command_completer.
6434
ba770c9c
TJB
64352011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6436
6437 * breakpoint.c (print_exception_catchpoint): Rename to ...
6438 (print_it_exception_catchpoint): ... this.
6439 (gnu_v3_exception_catchpoint_ops): Update with new name
6440 for print_it_exception_catchpoint.
6441
51bf2553
EBM
64422011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6443
6444 * MAINTAINERS: Add myself for write after approval privileges.
6445
d242658c
MP
64462011-04-13 Marek Polacek <mpolacek@redhat.com>
6447
6448 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6449
4a4106ca
TJB
64502011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6451
6452 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6453
26063d49
TJB
64542011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6455
6456 * breakpoint.c (save_breakpoints): Verify whether
6457 breakpoint_ops.print_recreate is defined before calling it.
6458
7782b183
GB
64592011-04-11 Gary Benson <gbenson@redhat.com>
6460
6461 Fix failure with --enable-maintainer-mode.
6462 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6463
e8930875
JK
64642011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6465
6466 Code cleanup.
6467 * symtab.c (search_symbols): Reorder the KIND description in the
6468 function comment. Remove the unused 4th element of types, types2,
6469 types3 and types4. New gdb_assert on KIND.
6470 (symtab_symbol_info): Remove the unused 4th element of classnames.
6471 New gdb_assert on KIND.
6472 * symtab.h (enum search_domain): New warning in the enum comment.
6473 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6474 TYPES_DOMAIN.
6475
b4f2f049
JK
64762011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6477
6478 Fix crash of gdb save-index on a STABS file.
6479 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6480 PSYMTABS_ADDRMAP.
6481
60d5a603
JK
64822011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6483
6484 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6485 * dwarf2read.c: Include ctype.h.
6486 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6487 functions.
6488 (dwarf2_add_field): Fix new_field->accessibility by calling
6489 dwarf2_default_access_attribute. Restructure setting accessibility
6490 vs. virtuality.
6491 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6492 is_private and is_protected by calling
6493 dwarf2_default_access_attribute.
6494
e0f68161
KB
64952011-04-08 Kevin Buettner <kevinb@redhat.com>
6496
6497 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6498 to the initialization.
6499
2e1aae43
SE
65002011-04-08 Steve Ellcey <sje@cup.hp.com>
6501
6502 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6503 initalization.
6504
c6ca3dab
PM
65052011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6506
6507 Remove support for old Cygwin 1.5 versions.
6508 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6509 function on old Cygwin version.
6510 * windows-nat.c: Remove cygwin version check and always define
6511 __USEWIDE for Cygwin compilation.
6512
bd18283a
YQ
65132011-04-07 Yao Qi <yao@codesourcery.com>
6514
6515 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6516 and TO.
6517 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6518 (arm_copy_svc): Remove parameters INSN and TO.
6519 (decode_svc_copro): Update caller.
6520 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6521 from function pointer `copy_svc_os'.
6522
8c8dba6d
YQ
65232011-04-07 Yao Qi <yao@codesourcery.com>
6524
6525 * arm-tdep.c (cleanup_branch): Set a correct return address in
6526 LR for ARM and Thumb.
6527
59d7bcaf
JK
65282011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 Code cleanup.
6531 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6532 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6533 in the function comment, a new note on values compatibility.
6534 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6535 * symtab.h (SYMBOL_HASH_NEXT): New.
6536
e7db58ea
TJB
65372011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6538
6539 * ppc-linux-nat.c (check_condition): Add len output parameter.
6540 Set it based on the memory region referenced in the condition
6541 expression. Update all callers.
6542
9f743ef6
JK
65432011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 Fix crash regression on systems featuring .gdb_index.
6546 * objfiles.c (free_objfile): Move the
6547 forget_cached_source_info_for_objfile call earlier. Comment it.
6548 Extend the comment for objfile_free_data.
6549
9182c5bc
JK
65502011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6551
6552 Fix regression of displaying the debug format.
6553 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6554 subfile.
6555
04bd08de
TT
65562011-04-04 Tom Tromey <tromey@redhat.com>
6557
6558 * cli/cli-interp.c (struct captured_execute_command_args):
6559 Remove.
6560 (do_captured_execute_command): Remove.
6561 (safe_execute_command): Use TRY_CATCH.
6562 * cli/cli-script.c (struct wrapped_read_command_file_args):
6563 Remove.
6564 (wrapped_read_command_file): Remove.
6565 (script_from_file): Use TRY_CATCH.
6566 * exceptions.c (catch_exception): Remove.
6567 * exceptions.h (catch_exception): Remove.
6568 (deprecated_throw_reason): Update comment.
6569 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6570 argument to 'context'.
6571 (mi_execute_command): Use TRY_CATCH.
6572 * remote.c (struct start_remote_args): Remove.
6573 (remote_start_remote): Update; change arguments.
6574 (remote_open_1): Use TRY_CATCH.
6575
58438ac1
TT
65762011-04-04 Tom Tromey <tromey@redhat.com>
6577
6578 * tracepoint.c (scope_info): Update.
6579 * symtab.c (decode_line_spec): Update.
6580 * python/python.c (gdbpy_decode_line): Update.
6581 * linespec.h (decode_line_1): Update.
6582 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6583 (decode_compound, find_method, symtab_from_filename)
6584 (decode_variable): Likewise.
6585 * cli/cli-cmds.c (edit_command): Update.
6586 (list_command): Update.
6587 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6588 argument.
6589 (create_breakpoint): Update.
6590 (until_break_command): Update.
6591 (addr_string_to_sals): Update.
6592 (decode_line_spec_1): Update.
6593
b78a6381
TT
65942011-04-04 Tom Tromey <tromey@redhat.com>
6595
6596 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6597 (do_captured_parse_breakpoint): Remove.
6598 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6599 Use TRY_CATCH directly.
6600
00174a86
TT
66012011-04-04 Tom Tromey <tromey@redhat.com>
6602
6603 * symtab.h (free_symtab): Remove.
6604 (forget_cached_source_info_for_objfile): Declare.
6605 * symmisc.c (free_symtab): Remove.
6606 * source.c (forget_cached_source_info_for_objfile): New function.
6607 (forget_cached_source_info): Use it.
6608 * objfiles.c (free_objfile): Simplify check before calling
6609 clear_current_source_symtab_and_line. Call
6610 forget_cached_source_info_for_objfile.
6611
30cc903e
TT
66122011-04-04 Tom Tromey <tromey@redhat.com>
6613
6614 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6615 (new_symtab): Don't set `free_code' on symtab.
6616 (new_linetable): Properly handle size==0.
6617 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6618 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6619 free_func.
6620 * jv-lang.c (struct jv_per_objfile_data): New.
6621 (jv_per_objfile_free): Free the data.
6622 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6623 (get_java_class_symtab): Set the `dict' field on the
6624 jv_per_objfile_data.
6625 (free_class_block): Remove.
6626 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6627 the symtab.
6628
0c2e6019
TT
66292011-04-04 Tom Tromey <tromey@redhat.com>
6630
6631 * symfile.c (reread_symbols): Update.
6632 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6633 field.
6634 * objfiles.c (allocate_objfile): Update.
6635 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6636 declare.
6637 * cp-namespace.c (lookup_symbol_file): Don't call
6638 lookup_possible_namespace_symbol.
6639 (initialize_namespace_symtab, get_possible_namespace_block)
6640 (free_namespace_block, cp_check_possible_namespace_symbols)
6641 (check_possible_namespace_symbols_loop)
6642 (check_one_possible_namespace_symbol)
6643 (lookup_possible_namespace_symbol): Remove.
6644 (maintenance_cplus_namespace): Replace with notice.
6645 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6646
554d387d
TT
66472011-04-04 Tom Tromey <tromey@redhat.com>
6648
6649 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6650 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6651 * symmisc.c (free_symtab): Don't free debugformat.
6652 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6653 (record_debugformat, record_producer): Document.
6654 * buildsym.c (end_symtab): Don't save debugformat and producer
6655 names on obstack.
6656 (end_symtab): Don't free debugformat and producer fields.
6657 (record_debugformat): Don't call xstrdup.
6658 (record_producer): Likewise.
6659
d4d4db8a
TT
66602011-04-04 Tom Tromey <tromey@redhat.com>
6661
6662 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6663 (source_line_charpos, source_charpos_line): Remove.
6664
8903c50d
TT
66652011-04-04 Tom Tromey <tromey@redhat.com>
6666
6667 * symtab.h (domain_enum): Split in two...
6668 (enum search_domain): New.
6669 (search_symbols): Update.
6670 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6671 redundant declarations.
6672 (search_symbols): Change 'kind' argument to search_domain.
6673 Update.
6674 (print_symbol_info): Likewise.
6675 (symtab_symbol_info): Likewise.
6676 * symfile.h (struct quick_symbol_functions)
6677 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6678 <expand_symtabs_matching>: Likewise.
6679 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6680 (expand_symtabs_matching_via_partial): Update.
6681 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6682 (dw2_expand_symtabs_for_function): Update.
6683 * block.h: Moved anonymous enum...
6684 * defs.h (enum block_enum): ... here. Now named.
6685
d9351f5f 66862011-04-03 Joel Brobecker <brobecker@adacore.com>
6687
6688 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6689 * version.in: Bump version to 7.3.50.20110403-cvs.
6690
d6e00af6
JB
66912011-04-03 Joel Brobecker <brobecker@adacore.com>
6692
6693 * NEWS: Create a new section for the next release branch.
6694 Rename the section of the current branch, now that it has
6695 been cut.
6696
2b9e5ea6
UW
66972011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6698
6699 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6700 for "fpscr" in target description.
6701
0cf03b49
JK
67022011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6703
6704 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6705 initialize it. Delay HASH initialization. Strip the part after open
6706 parenthesis for languages with qualifiers. Call do_cleanups.
6707
5d901a73
TT
67082011-04-01 Tom Tromey <tromey@redhat.com>
6709
6710 * utils.c (report_command_stats): Don't print `-' for negative
6711 number.
6712
b0dd7688
JB
67132011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6714
6715 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6716 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6717 typedefs.
6718
956a9fb9
JB
67192011-04-01 Joel Brobecker <brobecker@adacore.com>
6720
6721 * breakpoint.h (bpdisp_text): Add declaration.
6722 * breakpoint.c (bpdisp_text): Make non-static.
6723 * ada-lang.c: #include "mi/mi-common.h".
6724 (print_it_exception): Rewrite to improve GDB/MI output.
6725
3352110b
PA
67262011-04-01 Pedro Alves <pedro@codesourcery.com>
6727
6728 * arm-tdep.h (struct address_space): Add forward declaration.
6729
18819fa6
UW
67302011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6731
6732 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6733 * arm-tdep.c (arm_override_mode): New global.
6734 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6735 execution mode heuristics.
6736 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6737 second single-step breakpoint if needed, using
6738 arm_insert_single_step_breakpoint.
6739 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6740 ARM execution mode, do not call thumb_get_next_pc_raw.
6741 (arm_get_next_pc): Encode execution mode in return value. Call
6742 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6743 (arm_insert_single_step_breakpoint): New function.
6744 (arm_software_single_step): Call it.
6745 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6746 argument to return execution mode of sigreturn target.
6747 (arm_linux_syscall_next_pc): Use it.
6748 (arm_linux_copy_svc): Update call.
6749 (arm_linux_software_single_step): Call
6750 arm_insert_single_step_breakpoint.
6751
a6e293d1
JK
67522011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6753
6754 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6755 the comment.
6756
a4c8e806
TT
67572011-03-31 Tom Tromey <tromey@redhat.com>
6758
6759 * varobj.c (update_dynamic_varobj_children): Properly handle
6760 errors from iterator.
6761
df5c6c50
JK
67622011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6763
6764 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6765 struct linkage name twice.
6766
1dae3efc
TT
67672011-03-31 Tom Tromey <tromey@redhat.com>
6768
6769 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6770 missing ">" to message.
6771
f4f7ab05
TT
67722011-03-31 Tom Tromey <tromey@redhat.com>
6773
6774 * varobj.c (instantiate_pretty_printer): Remove duplicate
6775 'return'.
6776
fcf250e2
UW
67772011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6778
6779 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6780 if neither saved value nor register available (e.g. signal frame).
6781
ee6436e3
TJB
67822011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6783
6784 * macroexp.c (expand): Avoid uninitialized variable
6785 compiler warning.
6786
423f41a5
TJB
67872011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6788
6789 * breakpoint.c (break_range_command): Fix typo in comment.
6790
f1310107
TJB
67912011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6792 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6793
6794 Implement support for PowerPC BookE ranged breakpoints.
6795 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6796 * breakpoint.h (struct bp_target_info) <length>: New member
6797 variable.
6798 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6799 instead of struct breakpoint as argument, and also add ASPACE
6800 and BP_ADDR arguments. Update all callers.
6801 (struct breakpoint_ops) <print_one_detail>: New method.
6802 (struct breakpoint) <addr_string_range_end>: New member variable.
6803 * breakpoint.c (breakpoint_location_address_match): Add function
6804 prototype.
6805 (insert_bp_location): Set bl->target_info.length.
6806 (breakpoint_here_p): Call breakpoint_location_address_match.
6807 (moribund_breakpoint_here_p): Likewise.
6808 (regular_breakpoint_inserted_here_p): Likewise.
6809 (breakpoint_thread_match): Likewise.
6810 (bpstat_stop_status): Likewise.
6811 (bpstat_check_location): Move call to
6812 breakpoint_ops.breakpoint_hit to the top.
6813 (print_one_breakpoint_location): Call
6814 breakpoint_ops.print_one_detail if available.
6815 (breakpoint_address_match_range): New function.
6816 (breakpoint_location_address_match): Likewise.
6817 (breakpoint_locations_match): Compare the length field of the
6818 locations too.
6819 (hw_breakpoint_used_count): Count resources used by all locations
6820 in a breakpoint, and use breakpoint_ops.resources_needed if
6821 available.
6822 (breakpoint_hit_ranged_breakpoint): New function.
6823 (resources_needed_ranged_breakpoint): Likewise.
6824 (print_it_ranged_breakpoint): Likewise.
6825 (print_one_ranged_breakpoint): Likewise.
6826 (print_one_detail_ranged_breakpoint): Likewise.
6827 (print_mention_ranged_breakpoint): Likewise.
6828 (print_recreate_ranged_breakpoint): Likewise.
6829 (ranged_breakpoint_ops): New structure.
6830 (find_breakpoint_range_end): New function.
6831 (break_range_command): Likewise.
6832 (delete_breakpoint): Free addr_string_range_end.
6833 (update_breakpoint_locations): Add SALS_END argument. Update
6834 all callers. Calculate breakpoint length if a non-zero SALS_END
6835 is given. Call breakpoint_locations_match instead of
6836 breakpoint_address_match.
6837 (reset_breakpoint): Find SaL of the end of the range if B is a
6838 ranged breakpoint.
6839 (_initialize_breakpoint): Register break-range command.
6840 * defs.h (print_core_address): Add function prototype.
6841 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6842 function.
6843 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6844 (ppc_linux_remove_hw_breakpoint): Likewise.
6845 (_initialize_ppc_linux_nat): Initialize
6846 to_ranged_break_num_registers.
6847 * target.c (update_current_target): Add comment about
6848 to_ranged_break_num_registers.
6849 (target_ranged_break_num_registers): New function.
6850 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6851 New method.
6852 (target_ranged_break_num_registers): Add function prototype.
6853 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6854 * utils.c (print_core_address): ... here.
6855
02d20e4a
UW
68562011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6857
6858 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6859 variable compiler warning.
6860
ef23e705
TJB
68612011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6862
6863 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6864 code from here ...
6865 (re_set_breakpoint): ... to here ...
6866 (addr_string_to_sals): ... and here.
6867
311e6ab3
PM
68682011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6869
6870 * Makefile.in (SFILES): Add missing C sources.
6871 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6872 Add missing headers.
6873
acd1d99c
MF
68742011-03-29 Mike Frysinger <vapier@gentoo.org>
6875
6876 * .gitignore: New file.
6877
66ee2731
MF
68782011-03-29 Mike Frysinger <vapier@gentoo.org>
6879
6880 * NEWS: Mention new cfi device simulation.
6881
53832f31
TT
68822011-03-29 Tom Tromey <tromey@redhat.com>
6883
6884 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6885 otherwise anonymous types.
6886 (dwarf2_name): Likewise.
6887 * valops.c (value_struct_elt_for_reference): Refine artificial
6888 type logic. Call error if j==-1.
6889
09b58708
JK
68902011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6891
6892 Fix false GCC warning.
6893 * infcall.c (find_function_addr): Initialize funaddr.
6894
6023c606
PM
68952011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6896
6897 Fix mingw compilation with --enable-targets=all.
6898 * remote-mips.c (gdb_usleep.h): Include header.
6899 (mips_enter_debug): Use gdb_usleep instead of sleep.
6900
0e30163f
JK
69012011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6902
6903 Support resolution of STT_GNU_IFUNC via breakpoints.
6904 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6905 bp_gnu_ifunc_resolver_return.
6906 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6907 the loop. Support bp_gnu_ifunc_resolver and
6908 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6909 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6910 breakpoints.
6911 (bptype_string, print_one_breakpoint_location): Support
6912 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6913 (user_settable_breakpoint): Return true also for
6914 bp_gnu_ifunc_resolver.
6915 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6916 bp_gnu_ifunc_resolver_return.
6917 (set_breakpoint_location_function): New parameter explicit_loc,
6918 describe it. Call find_pc_partial_function_gnu_ifunc with new
6919 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6920 EXPLICIT_LOC is not set.
6921 (set_raw_breakpoint): Set EXPLICIT_LOC for
6922 set_breakpoint_location_function.
6923 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6924 set_breakpoint_location_function.
6925 (mention): Support bp_gnu_ifunc_resolver and
6926 bp_gnu_ifunc_resolver_return.
6927 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6928 set_breakpoint_location_function.
6929 (update_breakpoint_locations): Remove static.
6930 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6931 bp_gnu_ifunc_resolver_return.
6932 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6933 bp_gnu_ifunc_resolver_return.
6934 (update_breakpoint_locations): New declaration.
6935 * elfread.c: Include gdbthread.h and regcache.h.
6936 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6937 functions.
6938 (elf_gnu_ifunc_fns): Install them.
6939 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6940 (stub_gnu_ifunc_resolver_return_stop): New functions.
6941 (stub_gnu_ifunc_fns): Install them.
6942 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6943 and gnu_ifunc_resolver_return_stop.
6944 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6945
07be84bf
JK
69462011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6947
6948 STT_GNU_IFUNC reader implementation.
6949 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6950 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6951 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6952 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6953 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6954 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6955 (elf_gnu_ifunc_resolve_addr): New.
6956 (elf_symfile_read): Call elf_rel_plt_read.
6957 (elf_gnu_ifunc_fns): New.
6958 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6959 Install elf_gnu_ifunc_fns.
6960 * infcall.c (find_function_return_type): New function.
6961 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6962 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6963 (stub_gnu_ifunc_resolve_name): New functions.
6964 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6965 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6966 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6967
300f8e10
JK
69682011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6969
6970 Code cleanup for later STT_GNU_IFUNC support.
6971 * infcall.c (find_function_addr): Remove variable code, use explicit
6972 dereferences for it. Move VALUE_TYPE initialization later.
6973
11c81455
JK
69742011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6975
6976 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6977 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6978 (clear_pc_function_cache): Clear it.
6979 (find_pc_partial_function): Rename to ...
6980 (find_pc_partial_function_gnu_ifunc): ... this function. New
6981 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6982 (find_pc_partial_function): New wrapper for this function.
6983 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6984
0875794a
JK
69852011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 GDB internal type support for STT_GNU_IFUNC.
6988 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6989 (elf_symtab_read): Set mst_text_gnu_ifunc for
6990 BSF_GNU_INDIRECT_FUNCTION.
6991 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6992 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6993 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6994 nodebug_got_plt_symbol.
6995 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6996 (TYPE_GNU_IFUNC): New.
6997 (struct main_type): New field flag_gnu_ifunc.
6998 (struct builtin_type): New field builtin_func_func.
6999 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7000 nodebug_got_plt_symbol.
7001 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7002 (in_gnu_ifunc_stub): New.
7003 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7004 mst_text_gnu_ifunc.
7005 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7006 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7007 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7008 in_gnu_ifunc_stub.
7009 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7010 * symtab.c (search_symbols): Likewise.
7011 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7012 and mst_slot_got_plt.
7013 (in_gnu_ifunc_stub): New declaration.
7014
d0fb5eae
JK
70152011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7016
7017 Support a ring of related breakpoints.
7018 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7019 other functions, add gdb_assert.
7020 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7021 watchpoint_del_at_next_stop.
7022 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7023 (bpstat_stop_status): Handle ring in related_breakpoint.
7024 (set_raw_breakpoint_without_location): Initialize ring in
7025 related_breakpoint.
7026 (delete_breakpoint): Handle ring in related_breakpoint, use
7027 watchpoint_del_at_next_stop.
7028 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7029
9cded63f
TT
70302011-03-28 Tom Tromey <tromey@redhat.com>
7031
7032 PR symtab/12441:
7033 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7034 with `language_minimal'.
7035
467d42c4
UW
70362011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7037
7038 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7039 instead of checking for STT_ARM_TFUNC symbol type.
7040
62853458
TT
70412011-03-25 Tom Tromey <tromey@redhat.com>
7042
7043 * linespec.c (symbol_found): Restore line-based result for
7044 non-LOC_LABEL symbols.
7045
a7417d46
KT
70462011-03-25 Kai Tietz <ktietz@redhat.com>
7047
7048 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7049 instead of strcmp for comparison.
7050 (tui_source_is_displayed): Likewise.
7051 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7052
55f1336d
TT
70532011-03-24 Mark Wielaard <mjw@redhat.com>
7054
f33edef8
PP
7055 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7056 complaint.
7057 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7058 (find_partial_die_in_comp_unit): Likewise in comment.
7059 (read_attribute_value): Likewise.
7060 (lookup_die_type): Likewise.
7061 (dwarf_form_name): Likewise.
7062 (dump_die_shallow): Likewise.
7063 (follow_die_ref_or_sig): Likewise.
55f1336d 7064
9ef07c8c
TT
70652011-03-24 Tom Tromey <tromey@redhat.com>
7066
7067 PR breakpoints/11816:
7068 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7069 (decode_compound): Update.
7070 (find_function_symbol): New function.
7071 (decode_dollar): Update.
7072 (decode_label): Add 'function_symbol' parameter. Handle
7073 function-relative labels.
7074 (decode_variable): Update.
7075 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7076 not its line. Set `special_display' and canonical name for
7077 labels.
7078
56435ebe
TT
70792011-03-24 Tom Tromey <tromey@redhat.com>
7080
7081 * linespec.h (struct linespec_result) <special_display>: New
7082 field.
7083 * breakpoint.h (struct breakpoint) <display_canonical>: New
7084 field.
7085 * breakpoint.c (print_breakpoint_location): Respect
7086 display_canonical.
7087 (create_breakpoint_sal): Add 'display_canonical' parameter.
7088 (create_breakpoints_sal): Update.
7089 (create_breakpoint): Update.
7090
7efd8fc2
TT
70912011-03-24 Tom Tromey <tromey@redhat.com>
7092
7093 * symtab.c (decode_line_spec): Update.
7094 * linespec.c (build_canonical_line_spec): Change type of
7095 'canonical'.
7096 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7097 (find_method, decode_all_digits, decode_dollar, decode_label)
7098 (symbol_found): Likewise.
7099 (init_linespec_result): New function.
7100 * breakpoint.c (struct captured_parse_breakpoint_args)
7101 <canonical_p>: New field, replaces addr_string_p.
7102 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7103 'addr_string'.
7104 (parse_breakpoint_sals): Likewise.
7105 (do_captured_parse_breakpoint): Update.
7106 (create_breakpoint): Use struct linespec_result.
7107 (until_break_command): Update.
7108 (breakpoint_re_set_one): Update.
7109 (decode_line_spec_1): Update.
7110 * linespec.h (struct linespec_result): New.
7111 (init_linespec_result): Declare.
7112
788c8b10
PA
71132011-03-23 Pedro Alves <pedro@codesourcery.com>
7114
7115 * regcache.c (regcache_raw_read): If the target didn't supply a
7116 given raw register, mark it as unavailable.
7117
0ba1096a
KT
71182011-03-23 Kai Tietz <ktietz@redhat.com>
7119
7120 * breakpoint.c (clear_command): Use filename_cmp
7121 instead of strcmp for comparison.
7122 * buildsym.c (watch_main_source_file_lossage): Likewise.
7123 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7124 checking just for slash.
7125 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7126 strrchr and filename_cmp instead of strcmp for filenames.
7127 (add_old_header_file): Use filename_cmp
7128 instead of strcmp for comparison.
7129 * exec.c (exec_set_section_address): Likewise.
7130 * macrotab.c (macro_lookup_inclusion): Likewise.
7131 (macro_lookup_inclusion): Likewise.
7132 * elfread.c (_initialize_elfread): Likewise.
7133 (elfstab_offset_sections): Likewise.
7134 (elfstab_offset_sections): Use lbasename instead of
7135 strrchr.
7136 * mdebugread.c (parse_partial_symbols): Likewise.
7137 (arse_partial_symbols): Use filename_(n)cmp instead of
7138 str(n)cmp for comparison.
7139 * minsyms.c (lookup_minimal_symbol): Likewise.
7140 * psymtab.c (read_psymtabs_with_filename): Likewise.
7141 * solib.c (solib_read_symbols): Likewise.
7142 (reload_shared_libraries_1): Likewise.
7143 * symmisc.c (maintenance_print_symbols): Likewise.
7144 * symfile.c (separate_debug_file_exists): Likewise.
7145 (reread_symbols): Likewise.
7146 (find_separate_debug_file_by_debuglink): Likewise.
7147 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7148 * source.c (add_path): Likewise.
7149 * symtab.c (filename_seen): Likewise.
7150 (file_matches): Likewise.
7151 (print_symbol_info): Likewise.
7152 (maybe_add_partial_symtab_filename): Likewise.
7153 (make_source_files_completion_list): Likewise.
7154 * xml-syscall.c (init_sysinfo): Likewise.
7155 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7156 IS_DIR_SEPARATOR for checking for trailing path separator.
7157
dd90784c
JK
71582011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7159
7160 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7161 label abort_expression.
7162 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7163 DWARF_VALUE_OPTIMIZED_OUT.
7164
3167638f
JK
71652011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7166
7167 Code cleanup.
7168 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7169 to linkage_name. Invert its value. Update the function comment.
7170 (c_type_print_varspec_suffix): Invert it at the caller.
7171 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7172
ce406537
PA
71732011-03-22 Pedro Alves <pedro@codesourcery.com>
7174
7175 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7176 errors when reading the `stop_pc'.
7177 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7178 get_frame_pc.
7179
da5d4055
PM
71802011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7181
7182 * NEWS: Document gdb.Write stream keyword.
7183
29e0eb9c
JK
71842011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7185
7186 Revert:
7187 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7188 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7189 (dwarf2_add_field): Fix new_field->accessibility for
7190 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7191
05775840
PM
71922011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7193
f33edef8 7194 PR python/12183
05775840
PM
7195
7196 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7197 other error classes. Do not print stack trace.
7198
a0cb7835
JK
71992011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7200
7201 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7202 (dwarf2_add_field): Fix new_field->accessibility for
7203 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7204
d19f7eee
UW
72052011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7206
7207 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7208 encountering a load via a non-SP register.
7209
4a2fbb50
UW
72102011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7211
7212 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7213 field in returned unwinder.
7214
3489610d
JB
72152012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7216
7217 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7218
8c1a34e7
JB
72192012-03-21 Joel Brobecker <brobecker@adacore.com>
7220
7221 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7222 of xmalloc.
7223
8fbca658
PA
72242012-03-18 Pedro Alves <pedro@codesourcery.com>
7225
7226 * frame.c (frame_unwind_register): Throw an error if unwinding the
7227 register failed.
7228 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7229 an unwind stop reason.
7230 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7231 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7232 UNWIND_UNAVAILABLE>: New.
7233 * inline-frame.c (inline_frame_unwind): Install
7234 default_frame_unwind_stop_reason.
7235 * frame-unwind.c: Include "exceptions.h".
7236 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7237 (default_frame_unwind_stop_reason): New.
7238 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7239 (default_frame_unwind_stop_reason): Declare.
7240 (struct frame_unwind) <stop_reason>: New function pointer.
7241
7242 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7243 * dwarf2-frame.c: Include exceptions.h.
7244 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7245 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7246 computing the CFA. If such an error was thrown, set
7247 unavailable_retaddr.
7248 (dwarf2_frame_unwind_stop_reason): New.
7249 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7250 unavailable.
7251 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7252 (dwarf2_signal_frame_unwind): Ditto.
7253
7254 * amd64-tdep.c: Include "exceptions.h".
7255 (struct amd64_frame_cache): New field "base_p".
7256 (amd64_init_frame_cache): Clear it.
7257 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7258 Avoid reading registers with functions that throw if the register
7259 is not necessary to compute the frame base.
7260 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7261 swallowing NOT_AVAILABLE_ERROR.
7262 (amd64_frame_unwind_stop_reason): New.
7263 (amd64_frame_this_id): Don't build a frame id if the frame base
7264 was unavailable.
7265 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7266 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7267 base_p if the frame base was computable.
7268 (amd64_sigtramp_frame_unwind_stop_reason): New.
7269 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7270 frame base was unavailable.
7271 (amd64_sigtramp_frame_unwind): Install
7272 amd64_sigtramp_frame_unwind_stop_reason.
7273 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7274 base_p if the frame base was computable.
7275 (amd64_epilogue_frame_unwind_stop_reason): New.
7276 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7277 frame base was unavailable.
7278 (amd64_epilogue_frame_unwind): Install
7279 amd64_epilogue_frame_unwind_stop_reason.
7280 * i386-tdep.c: Include "exceptions.h".
7281 (struct i386_frame_cache): New field "base_p".
7282 (i386_init_frame_cache): Clear it.
7283 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7284 Avoid reading registers with functions that throw if the register
7285 is not necessary to compute the frame base.
7286 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7287 swallowing NOT_AVAILABLE_ERROR.
7288 (i386_frame_unwind_stop_reason): New.
7289 (i386_frame_this_id): Don't build a frame id if the frame base was
7290 unavailable.
7291 (i386_frame_prev_register): Handle unavailable SP.
7292 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7293 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7294 base_p if the frame base was computable.
7295 (i386_epilogue_frame_unwind_stop_reason): New.
7296 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7297 base was unavailable.
7298 (i386_epilogue_frame_unwind): Install
7299 i386_epilogue_frame_unwind_stop_reason.
7300 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7301 base_p if the frame base was computable.
7302 (i386_sigtramp_frame_unwind_stop_reason): New.
7303 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7304 base was unavailable.
7305 (i386_sigtramp_frame_unwind): Install
7306 i386_sigtramp_frame_unwind_stop_reason.
7307 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7308 type's size, not the register's.
7309 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7310
7311 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7312 default_frame_unwind_stop_reason.
7313 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7314 (alpha_heuristic_frame_unwind): Ditto.
7315 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7316 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7317 * avr-tdep.c (avr_frame_unwind): Ditto.
7318 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7319 Ditto.
7320 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7321 * frv-tdep.c (frv_frame_unwind): Ditto.
7322 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7323 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7324 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7325 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7326 (hppa_stub_frame_unwind): Ditto.
7327 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7328 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7329 (ia64_libunwind_frame_unwind)
7330 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7331 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7332 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7333 * m32c-tdep.c (m32c_unwind): Ditto.
7334 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7335 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7336 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7337 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7338 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7339 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7340 * mep-tdep.c (mep_frame_unwind): Ditto.
7341 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7342 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7343 (mips_stub_frame_unwind): Ditto.
7344 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7345 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7346 * mt-tdep.c (mt_frame_unwind): Ditto.
7347 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7348 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7349 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7350 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7351 (s390_sigtramp_frame_unwind): Ditto.
7352 * score-tdep.c (score_prologue_unwind): Ditto.
7353 * sh-tdep.c (sh_frame_unwind): Ditto.
7354 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7355 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7356 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7357 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7358 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7359 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7360 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7361 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7362 (sparc64obsd_trapframe_unwind): Ditto.
7363 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7364 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7365 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7366 * v850-tdep.c (v850_frame_unwind): Ditto.
7367 * vax-tdep.c (vax_frame_unwind): Ditto.
7368 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7369 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7370 * xtensa-tdep.c (xtensa_unwind): Ditto.
7371
f23d1b92
PA
73722011-03-18 Pedro Alves <pedro@codesourcery.com>
7373
7374 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7375 there's always a frame. Use get_frame_pc_if_available instead of
7376 get_frame_pc, and if there's no PC available, don't look up a
7377 symtab.
7378
1d4f5741
PA
73792011-03-18 Pedro Alves <pedro@codesourcery.com>
7380
7381 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7382 unavailable PC.
7383
dba09041
PA
73842011-03-18 Pedro Alves <pedro@codesourcery.com>
7385
7386 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7387 gracefully.
7388
9a26e44c
PA
73892011-03-18 Pedro Alves <pedro@codesourcery.com>
7390
7391 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7392 * frame.c (frame_unwind_caller_pc_if_available): New.
7393 * stack.c (frame_info): Handle unavailable PC.
7394
73952011-03-18 Pedro Alves <pedro@codesourcery.com>
7396
7397 * frame.c (frame_unwind_pc): Rename to ...
7398 (frame_unwind_pc_if_available): ... this. New `pc' output
7399 parameter. Change return type to int. Gracefully handle
7400 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7401 happened, or 1 otherwise.
7402 (frame_unwind_pc): Reimplement on top of
7403 frame_unwind_pc_if_available.
7404 (get_frame_func): Rename to ...
7405 (get_frame_func_if_available): New `pc' output parameter. Change
7406 return type to int. Gracefully handle the PC not being available.
7407 (get_frame_func): Reimplement on top of
7408 get_frame_func_if_available.
7409 (select_frame): Handle the PC being unavailable.
7410 (get_prev_frame): Handle the PC being unavailable.
7411 (get_frame_pc_if_available): New.
7412 (get_frame_address_in_block_if_available): New.
7413 (find_frame_sal): Handle the frame PC not being available.
7414 * frame.h (get_frame_pc_if_available): Declare.
7415 (get_frame_address_in_block_if_available): Declare.
7416 (get_frame_func_if_available): Declare.
7417 * stack.c (print_frame_info): Handle the PC being unavailable.
7418 (find_frame_funname): Ditto.
7419 (print_frame): Handle the PC being unavailable.
7420 (get_frame_language): Ditto.
7421 * blockframe.c (get_frame_block): Ditto.
7422 * macroscope.c (default_macro_scope): Ditto.
7423 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7424
74252011-03-18 Pedro Alves <pedro@codesourcery.com>
7426
7427 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7428 NOT_AVAILABLE_ERROR when evaluating the location expression.
7429
74302011-03-18 Pedro Alves <pedro@codesourcery.com>
7431
7432 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7433 returning that the register piece is unavailable/optimized out.
7434 (write_pieced_value): Handle get_frame_register_bytes returning
7435 that the register piece is unavailable/optimized out when doing a
7436 read-modify write of a bitfield.
7437 * findvar.c (value_from_register): Handle get_frame_register_bytes
7438 returning that the register piece is unavailable/optimized out.
7439 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7440 and `unavailablep'. Throw error on bad debug info. Use
7441 frame_register instead of frame_register_read, to fill in the new
7442 arguments.
7443 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7444 and `unavailablep'.
7445 * valops.c: (value_assign): Adjust, and handle
7446 get_frame_register_bytes failing.
7447 * spu-tdep.c: Include exceptions.h.
7448 (spu_software_single_step): Adjust, and handle
7449 get_frame_register_bytes failing.
7450 (spu_get_longjmp_target): Ditto.
7451 * gdbarch.sh (register_to_value): Change to return int. New
7452 parameters `optimizedp' and `unavailablep'.
7453 * gdbarch.h, gdbarch.c: Regenerate.
7454 * i386-tdep.c (i386_register_to_value): Adjust to new
7455 gdbarch_register_to_value interface.
7456 * i387-tdep.c (i387_register_to_value): Ditto.
7457 * i387-tdep.h (i387_register_to_value): Ditto.
7458 * alpha-tdep.c (alpha_register_to_value): Ditto.
7459 * ia64-tdep.c (ia64_register_to_value): Ditto.
7460 * m68k-tdep.c (m68k_register_to_value): Ditto.
7461 * mips-tdep.c (mips_register_to_value): Ditto.
7462 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7463
0fdb4f18
PA
74642011-03-18 Pedro Alves <pedro@codesourcery.com>
7465
7466 * findvar.c (value_of_register): Mark the value as unavailable, if
7467 the register is unavailable.
7468 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7469 (frame_register): New `unavailablep' parameter.
7470 (frame_register_read): Update comment.
7471 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7472 Set it if the register is unavailable. If the register is
7473 unavailable, clear the output buffer.
7474 (frame_register): New `unavailablep' parameter. Pass it down.
7475 (frame_unwind_register): Adjust.
7476 (put_frame_register): Adjust.
7477 (frame_register_read): Adjust. Also return false if the register
7478 is not available.
7479 (frame_register_unwind_location): Adjust.
7480 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7481 is unavailable, mark the value accordingly.
7482 * stack.c (frame_info): Handle unavailable registers.
7483
e69aa73e
PA
74842011-03-18 Pedro Alves <pedro@codesourcery.com>
7485
7486 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7487 simplify, using regcache_cooked_read.
7488
05d1431c
PA
74892011-03-18 Pedro Alves <pedro@codesourcery.com>
7490
7491 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7492 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7493 (regcache_raw_read_unsigned, regcache_raw_read_part)
7494 (regcache_cooked_read, regcache_cooked_read_signed)
7495 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7496 (regcache_cooked_read_ftype): Change return to enum
7497 register_status.
7498 * regcache.c: Include exceptions.h
7499 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7500 (do_cooked_read): Change return to enum register_status. Always
7501 forward to regcache_cooked_read.
7502 (regcache_raw_read): Change return to enum register_status. If
7503 the register is not REG_VALID, memset the buffer. Return the
7504 register's status.
7505 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7506 return the register's status.
7507 (regcache_raw_read_unsigned): Ditto.
7508 (regcache_cooked_read): Change return to enum register_status.
7509 Assert that with read-only regcaches, the register's status must
7510 be known. If the regcache is read-only, and the register is not
7511 REG_VALID, memset the buffer. Return the register's status.
7512 (regcache_cooked_read_signed): Change return to enum
7513 register_status. Handle non-REG_VALID registers and return the
7514 register's status.
7515 (regcache_cooked_read_unsigned): Change return to enum
7516 register_status. Handle non-REG_VALID registers and return the
7517 register's status.
7518 (regcache_xfer_part, regcache_raw_read_part)
7519 (regcache_cooked_read_part): Change return to enum
7520 register_status. Return the register's status.
7521 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7522 unavailable.
7523 (regcache_dump): Handle unavailable cooked registers.
7524 * frame.c (do_frame_register_read): Adjust interface to match
7525 regcache_cooked_read_ftype.
7526 * gdbarch.sh (pseudo_register_read): Change return to enum
7527 register_status.
7528 * gdbarch.h, gdbarch.c: Regenerate.
7529
7530 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7531 register_status.
7532 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7533 register_status. If reading a raw register indicates the raw
7534 register is not valid, return the raw register's status,
7535 otherwise, return REG_VALID.
7536 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7537 register_status. Handle non-REG_VALID raw registers and return
7538 the register's status.
7539 * arm-tdep.c (arm_neon_quad_read)
7540 (arm_pseudo_read): Change return to enum register_status. Handle
7541 non-REG_VALID raw registers and return the register's status.
7542 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7543 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7544 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7545 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7546 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7547 register_status.
7548 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7549 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7550 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7551 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7552 (m32c_pseudo_register_read): Change return to enum
7553 register_status. Adjust.
7554 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7555 enum register_status. Return the register's status.
7556 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7557 register_status. Return the register's status.
7558 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7559 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7560 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7561 * rs6000-tdep.c (move_ev_register_func): New typedef.
7562 (e500_move_ev_register): Use it. Change return to enum
7563 register_status. Return the register's status.
7564 (do_regcache_raw_read): New function.
7565 (do_regcache_raw_write): New function.
7566 (e500_pseudo_register_read): Change return to enum
7567 register_status. Return the register's status. Use
7568 do_regcache_raw_read.
7569 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7570 (dfp_pseudo_register_read): Change return to enum register_status.
7571 Return the register's status.
7572 (vsx_pseudo_register_read): Ditto.
7573 (efpr_pseudo_register_read): Ditto.
7574 (rs6000_pseudo_register_read): Ditto.
7575 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7576 register_status. Return the register's status.
7577 * sh64-tdep.c (pseudo_register_read_portions): New function.
7578 (sh64_pseudo_register_read): Change return to enum
7579 register_status. Use pseudo_register_read_portions. Return the
7580 register's status.
7581 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7582 register_status. Return the register's status.
7583 * sh-tdep.c (pseudo_register_read_portions): New function.
7584 (sh_pseudo_register_read): Change return to enum register_status.
7585 Use pseudo_register_read_portions. Return the register's status.
7586 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7587 enum register_status. Return the register's status.
7588 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7589 * spu-tdep.c (spu_pseudo_register_read_spu)
7590 (spu_pseudo_register_read): Ditto.
7591 * xtensa-tdep.c (xtensa_register_read_masked)
7592 (xtensa_pseudo_register_read): Ditto.
7593 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7594
e10abd8f
PM
75952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7596
7597 * python/py-value.c (valpy_getitem): Fix formatting of error function
7598 call.
7599
7ea6d463
PM
76002011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7601
7602 ARI fixes: Add missing internationalization markups throughout
7603 C source files.
7604 * darwin-nat-info.c: Ditto.
7605 * record.c: Ditto.
7606 * remote.c: Ditto.
7607 * mi/mi-main.c: Ditto.
7608
001083c6
PM
76092011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7610
7611 ARI fixes: Add missing internationalization markups throughout
7612 yacc files.
7613 * c-exp.y: Ditto.
7614 * cp-name-parser.y: Ditto.
7615 * f-exp.y: Ditto.
7616 * m2-exp.y: Ditto.
7617 * objc-exp.y: Ditto.
7618 * p-exp.y: Ditto.
7619
4f1cdeec
PM
76202011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7621
7622 ARI fixes: Messages should have no trailing new lines.
7623 * darwin-nat.c (mach_check_error): Remove trailing new line from
7624 warning function call message.
7625 * record.c (bfdcore_read): Idem for error call.
7626
28e698f1
PM
76272011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7628
7629 * common/signals.c (target_signal_from_host): Add _ markup to error
7630 function call message.
7631 (target_signal_to_host): Add _ markup and remove trailing new line
7632 from warning call message.
7633 (target_signal_from_command): Add _ markup to error function call
7634 message.
7635
99c3dc11
PM
76362011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7637
f33edef8 7638 PR python/12149
99c3dc11
PM
7639
7640 * python/python.c (gdbpy_write): Accept a stream argument and
7641 operate to the appropriate stream.
7642 (gdbpy_flush): Likewise.
7643 (_initialize_python): Add stream constants.
7644 (finish_python_initialization): Add GdbOutputErrorFile class.
7645
c20800be
KY
76462011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7647
7648 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7649
f4a1794a
KY
76502011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7651
7652 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7653 to store_signed_integer. Add debug message when relocating CALL
7654 instructions. Fix formatting of debug message.
7655 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7656
d4862372
JB
76572011-03-17 Joel Brobecker <brobecker@gnat.com>
7658
7659 * target.h (struct target_ops): Remove to_lookup_symbol field.
7660 (target_lookup_symbol): Delete macro.
7661 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7662 (update_current_target, setup_target_debug): Remove handling
7663 of to_lookup_symbol target_ops field.
7664 * ada-tasks.c (get_known_tasks_addr): Remove use of
7665 target_lookup_symbol.
7666 * coffread.c (coff_symtab_read): Likewise.
7667 * dbxread.c (read_dbx_symtab): Ditto.
7668
d645e32e
JB
76692011-03-17 Joel Brobecker <brobecker@gnat.com>
7670
7671 PR gdb/12116:
7672 * configure.ac: Add getthrds declaration check.
7673 * configure, config.in: Regenerate.
7674 * aix-thread.c (getthrds): Declare only if not already declared
7675 in procinfo.h. More declaration out of get_signaled_thread to
7676 global scope.
7677
29703da4
PM
76782011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7679
7680 * python/py-symtab.c: Populate symtab_object_methods,
7681 sal_object_methods.
7682 (stpy_is_valid): New function.
7683 (salpy_is_valid): Ditto.
7684 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7685 (sympy_is_valid): New function.
7686 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7687 (objfpy_is_valid): New function.
7688 * python/py-inferior.c: Populate inferior_object_methods.
7689 (infpy_is_valid): New function.
7690 * python/py-infthread.c: Populate thread_object_methods.
7691 (thpy_is_valid): New function.
7692 * python/py-block.c: Declare block_object_methods. Populate. Declare
7693 block_iterator_object_methods. Populate.
7694 (blpy_is_valid): New function.
7695 (blpy_iter_is_valid): Ditto.
7696
c00f8484
KS
76972011-03-16 Keith Seitz <keiths@redhat.com>
7698
7699 * linespec.c (find_methods): Canonicalize NAME before looking
7700 up the symbol.
7701 (name_end): New function.
7702 (keep_name_info): New function.
7703 (decode_line_1): Use keep_name_info.
7704 (decode_compound): Likewise.
7705 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7706 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7707
7708 PR c++/12273
7709 * linespec.c (locate_first_half): Keep overload information, too.
7710 (decode_compound): Use a string to represent break characters
7711 to escape the loop.
7712 If P points to a break character, do not increment it.
7713 For C++ and Java, keep overload information and relevant keywords.
7714 If we cannot find a symbol, search the minimal symbols.
7715
7716 PR c++/11734
7717 * linespec.c (decode_compound): Rename SAVED_ARG to
7718 THE_REAL_SAVED_ARG.
7719 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7720 single-quotes.
7721 Pass a valid block to lookup_symbol.
7722 (lookup_prefix_sym): Likewise.
7723 (find_method): Construct search name based on SYM_CLASS instead
7724 of SAVED_ARG.
7725 * psymtab.c (lookup_partial_symbol): Add language parameter.
7726 (lookup_symbol_aux_psymtabs): Likewise.
7727 Don't assume that the psymtab we found was the right one. Search
7728 for the desired symbol in the symtab to be certain.
7729 (psymtab_search_name): New function.
7730 (lookup_partial_symbol): Use psymtab_search_name.
7731 Add language parameter.
7732 (read_symtabs_for_function): Add language parameter and pass to
7733 lookup_partial_symbol.
7734 (find_symbol_file_from_partial): Likewise.
7735
c91513d8
PP
77362011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7737
7738 PR gdb/12528
7739 * dwarf2read.c (noop_record_line): New function.
7740 (dwarf_decode_lines): Ignore line tables for GCd functions.
7741
b37520b6
PM
77422011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7743
7744 Fix ARI warnings about new lines at the end of messages, which
7745 are unneeded as there is a new line added at the end of the message
7746 automatically.
7747 * darwin-nat.c (darwin_stop_inferior): Ditto.
7748 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7749 * dfp.c (decimal_to_number): Ditto.
7750 * exec.c (print_section_info): Ditto.
7751 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7752 * osdata.c (get_osdata): Ditto.
7753 * record.c (bfdcore_write): Ditto.
7754 * remote-mips.c (mips_readchar): Ditto.
7755 * remote.c (read_ptid): Ditto.
7756 * ser-mingw.c (ser_windows_raw): Ditto.
7757 * tracepoint.c (add_local_symbols): Ditto.
7758 * windows-nat.c (fake_create_process): Ditto.
7759
b08ee6a2
TT
77602011-03-16 Tom Tromey <tromey@redhat.com>
7761
7762 * tracepoint.c (stop_tracing): Don't declare.
7763 * event-top.c (after_char_processing_hook): Add `(void)'.
7764
9a6f1302
PM
77652011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7766
7767 * NEWS: Add Parameter sub-classing description.
7768
7ceb86b1
KT
77692011-03-16 Kai Tietz <ktietz@redhat.com>
7770
7771 * MAINTAINERS: Update my e-mail address.
7772
efeff6cf
AT
77732011-03-15 Andreas Tobler <andreast@fgznet.ch>
7774
7775 * MAINTAINERS: Add myself for write after approval privileges.
7776
681c238c
MS
77772011-03-15 Michael Snyder <msnyder@vmware.com>
7778
f3df5b08
MS
7779 * frame.c (find_frame_sal): Assert sym is not null.
7780
13f6513c
MS
7781 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7782
50412521
MS
7783 * objc-lang.c (selectors_info): Check strchr for null result.
7784
681c238c
MS
7785 * stabsread.c (define_symbol): Guard against bad stabstring input.
7786
6ced1581
PM
77872011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7788
7789 Remove trailing spaces and tabulations from pascal language
7790 support sources.
7791 p-exp.y: Ditto.
7792 p-lang.c: Ditto.
7793 p-lang.h: Ditto.
7794 p-valprint.c: Ditto.
7795
9373cf26
JK
77962011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7797
7798 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7799 than LOW. Comment it.
7800 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7801 HIGHPC not strictly higher than LOWPC.
7802
9a1edae6
PM
78032011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7804
7805 Fix formatting of function declarations returning a pointer in
7806 previous commit.
7807 * varobj.c (varobj_add_child): Ditto.
7808 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7809 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7810
24e9cda0
UW
78112011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7812
7813 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7814 for the "generic" vector ABI used with GCC 4.3 and later.
7815 (ppc64_sysv_abi_return_value): Likewise.
7816
78172011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7818
7819 * infcall.c (call_function_by_hand): Function return value is
7820 always a non_lval, even when using struct_return.
7821
c9174737
PA
78222011-03-15 Pedro Alves <pedro@codesourcery.com>
7823
7824 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7825 (map_display_numbers): New.
7826 (do_delete_display): New.
7827 (undisplay_command): Use map_display_numbers.
7828 (do_enable_disable_display): New.
7829 (enable_disable_display_command): New function.
7830 (enable_display): Delete.
7831 (enable_display_command): New.
7832 (disable_display_command): Reimplement.
7833 (_initialize_printcmd): Adjust "enable display" command to use
7834 `enable_display_command' as callback.
7835
350c6c65
PM
78362011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7837
7838 * NEWS: Add Python breakpoint 'stop' operation.
7839
824446ad
PM
78402011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7841
7842 * NEWS: Delete duplicate entry. Fix typo.
7843
2021ad3a
PM
78442011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7845
7846 Fix ARI warning about function names in first column.
7847 Put prototype declaration on same line as return type.
7848 * objc-exp.y: Ditto.
7849 * p-exp.y: Ditto.
7850 * python/py-stopevent.h: Ditto.
7851 For long function names, split parameters to
7852 allow function name on same line as return type.
7853 * solib-pa64.c: Ditto.
7854 * varobj.c: Ditto.
7855 * varobj.h: Ditto.
7856 For long function declaration, use single line.
7857 * hppa-tdep.h: Ditto.
7858 * inferior.h: Ditto.
7859
7371cf6d
PM
78602011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7861
7862 * python/python.h: Declare gdbpy_should_stop and
7863 gdbpy_breakpoint_has_py_cond.
7864 * python/python.c: Add python.h to includes. Remove python.h from
7865 HAVE_PYTHON definition
7866 (gdbpy_should_stop): New dummy function.
7867 (gdbpy_breakpoint_has_py_cond): New dummy function.
7868 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7869 sub-classing capabilities.
7870 (gdbpy_should_stop): New function.
7871 (gdbpy_breakpoint_has_py_cond): New function.
7872 (local_setattro): New function.
7873 * breakpoint.c (condition_command): Add check for Python 'stop'
7874 operation.
7875 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7876 operation function as part of stop/continue tests.
7877
37b50a69
TT
78782011-03-14 Tom Tromey <tromey@redhat.com>
7879
7880 PR gdb/12576:
7881 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7882 (needs_frame_dwarf_call): Likewise.
7883
eeae04df
PM
78842011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7885
7886 Fix ARI warning about functions without parameters that do not
7887 use (void).
7888 * breakpoint.c (all_tracepoints): Replace () by (void).
7889 * f-exp.y (match_string_literal): Ditto.
7890 (yylex): Ditto.
7891 * m2-exp.y (yylex): Ditto.
7892 * mep-tdep.c (current_me_module): Ditto.
7893 (current_options): Ditto.
7894 (current_cop_data_bus_width): Ditto.
7895 (current_cr_names): Ditto.
7896 (current_cr_is_float): Ditto.
7897 (current_ccr_names): Ditto.
7898 * objc-exp.y (yylex): Ditto.
7899 * p-exp.y (yylex): Ditto.
7900 * remote.c (send_interrupt_sequence): Ditto.
7901 * tracepoint.c (current_trace_status): Ditto.
7902 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7903 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7904
6dc3565d
MS
79052011-03-11 Michael Snyder <msnyder@vmware.com>
7906
1427fe5e
MS
7907 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7908 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7909 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7910 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7911 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7912
60bc018f
MS
7913 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7914 (delete_async_event_handler): Ditto.
7915
f3be5b64
MS
7916 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7917
4c2d5724
MS
7918 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7919
6dc3565d
MS
7920 * top.c (set_verbose): Assert showcmd was found.
7921
4e6ca6d5
MG
79222011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7923
7924 * xtensa-tdep.c (warning_once): Correct style issues.
7925
815a83e4
YQ
79262011-03-11 Yao Qi <yao@codesourcery.com>
7927
7928 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7929
f2eb0bc8
AS
79302011-03-11 Andreas Schwab <schwab@redhat.com>
7931
7932 * common/aclocal.m4: Remove.
7933
b801de47
MG
79342011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7935
7936 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7937 (xtensa_write_register, xtensa_read_register): Likewise.
7938 (xtensa_hextochar): Removed.
7939 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7940
dbab50de
MG
79412011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7942
7943 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7944 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7945 (xtensa_alloc_frame_cache): Add initialization for new fields.
7946 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7947 (warning_once): New function.
7948 (xtensa_insn_kind): New item c0opc_and.
7949 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7950 (call0_track_op): Change arguments. New local variable litbase.
7951 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7952 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7953 in the prologue.
dbab50de 7954 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7955 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7956 Add the variety of updates to handle extended prologues, which now can
7957 conduct dynamic stack adjustments.
7958 (call0_frame_cache): Likewise.
7959 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7960 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7961
b2c04452
MS
79622011-03-10 Michael Snyder <msnyder@vmware.com>
7963
f8f67713
MS
7964 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7965 (cmd_qtframe): Ditto.
7966 (cmd_qtbuffer): Ditto.
7967 (cmd_bigqtbuffer): Ditto.
7968
197f0a60
TT
79692011-03-10 Tom Tromey <tromey@redhat.com>
7970
7971 * tracepoint.c (trace_actions_command): Update.
7972 * thread.c (thread_apply_command): Update.
7973 * reverse.c (delete_bookmark_command): Update.
7974 (bookmarks_info): Update.
7975 * printcmd.c (undisplay_command): Update.
7976 * memattr.c (mem_enable_command): Update.
7977 (mem_disable_command): Update.
7978 (mem_delete_command): Update.
7979 * inferior.c (detach_inferior_command): Update.
7980 (kill_inferior_command): Update.
7981 (remove_inferior_command): Update.
7982 * cli/cli-utils.h (struct get_number_or_range_state): New.
7983 (init_number_or_range): Declare.
7984 (get_number_or_range): Update.
7985 * cli/cli-utils.c (init_number_or_range): New function.
7986 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7987 static variables.
7988 (number_is_in_list): Update.
7989 * breakpoint.h (get_tracepoint_by_number): Update.
7990 * breakpoint.c (map_breakpoint_numbers): Update for change to
7991 get_number_or_range.
7992 (find_location_by_number): Use get_number, not
7993 get_number_or_range.
7994 (trace_pass_set_count): New function.
7995 (trace_pass_command): Update for change to get_number_or_range.
7996 Rework loop logic.
7997 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7998 'state' parameter.
7999
ecec24e6
PM
80002011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8001
8002 * python/py-param.c (add_setshow_generic): Add set/show callback
8003 parameters. Register Python object context.
8004 (get_show_value): New function.
8005 (get_set_value): New function.
8006 (call_doc_function): New function.
8007 (get_doc_string): Move behind get_show_value/get_set_value.
8008
6d6c6b1f
JK
80092011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8010
8011 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8012
68d6df83
MG
80132011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8014
dbab50de 8015 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8016 (xtensa_write_register): Likewise.
8017 (xtensa_hextochar): Add comment and update to match coding conventions.
8018 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8019 (execute_l32e, execute_s32e, execute_code): Update comments.
8020 (xtensa_exception_handler_t): Update to match coding conventions.
8021 (xtensa_insn_kind): Likewise.
8022
85c9d6a6
MS
80232011-03-09 Michael Snyder <msnyder@vmware.com>
8024
8025 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8026
91495617
PA
80272011-03-09 Pedro Alves <pedro@codesourcery.com>
8028
8029 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8030
eb8c0621
TT
80312011-03-09 Tom Tromey <tromey@redhat.com>
8032
8033 * thread.c (restore_selected_frame): Handle frame_level == -1.
8034 (make_cleanup_restore_current_thread): Use
8035 get_selected_frame_if_set.
8036 * frame.h (get_selected_frame_if_set): Declare.
8037 * frame.c (get_selected_frame_if_set): New function.
8038
9f37bbcc
PA
80392011-03-09 Pedro Alves <pedro@codesourcery.com>
8040
8041 * cli/cli-cmds.c (shell_escape): Use lbasename.
8042 * coffread.c (coff_start_symtab): Constify parameter.
8043 (complete_symtab): Constify `name' parameter.
8044 (coff_symtab_read): Constify `filestring' local.
8045 (coff_getfilename): Constify return and `result' local.
8046 Use lbasename.
8047 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8048 * linux-fork.c (info_checkpoints_command): Use lbasename.
8049 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8050 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8051 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8052 * procfs.c (procfs_make_note_section): Use lbasename.
8053 * tui/tui-io.c (printable_part): Constity return and parameter.
8054 Use lbasename.
8055 (print_filename): Constify parameters, and local `s'.
8056 (tui_rl_display_match_list): Constify local `temp'.
8057
f8de3c55
JK
80582011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8059
8060 Revert:
8061 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8062 Fix DWARF-3+ DW_AT_accessibility default assumption.
8063 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8064 cu->header.version >= 3.
8065
d9837b00
YQ
80662011-03-09 Yao Qi <yao@codesourcery.com>
8067
8068 * common/Makefile.in: Remove.
8069 * common/configure: Remove.
8070 * common/configure.ac: Remove.
8071
e637a4f5
YQ
80722011-03-09 Yao Qi <yao@codesourcery.com>
8073
8074 Revert:
8075 2011-02-11 Yao Qi <yao@codesourcery.com>
8076
8077 * common/Makefile.in: Add copyright header.
8078
8079 2011-02-11 Yao Qi <yao@codesourcery.com>
8080
8081 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8082 libcommon.a.
8083 * configure.ac: Add common to sub dir.
8084 * configure: Regenerate.
8085
f976a05d
MG
80862011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8087
8088 * xtensa-tdep.c (call0_ret): New function.
8089 (xtensa_skip_prologue): Speed up analysis.
8090
57041825
MG
80912011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8092
8093 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8094 while executing MI command -data-list-changed-registers.
8095
08b9c608
MG
80962011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8097
8098 * xtensa-tdep.c (xtensa_read_register): New function.
8099 (xtensa_write_register): New function.
8100 (xtensa_find_register_by_name): New function.
8101 (xtensa_windowed_frame_cache): Update comments in type description.
8102 (xtensa_frame_cache): Likewise.
8103 (xtensa_window_interrupt_insn): New function.
8104 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8105 (xtensa_insn_kind): Add new instructions.
8106 (rwx_special_register): New function.
8107 (call0_classify_opcode): Add new instructions to the analysis.
8108 (a0_saved, a7_saved, a11_saved): New variables.
8109 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8110 (execute_l32e): New function.
8111 (execute_s32e): New function.
8112 (xtensa_exception_handler_t): New type.
8113 (execute_code): New function.
8114 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8115 analysis for Xtensa Window Exception handlers.
8116
4d1acb11
MG
81172011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8118
98689b25
MG
8119 * xtensa-tdep.c (TX_PS): New.
8120 (windowing_enabled): Update to count for Call0 ABI.
8121 (xtensa_hextochar): New.
8122 (xtensa_init_reggroups): Make algorithm generic.
8123 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8124
81252011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8126
8127 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8128
d3f323f3
MS
81292011-03-08 Michael Snyder <msnyder@vmware.com>
8130
3dcabaa8
MS
8131 * i386-tdep.c (i386_follow_jump): Check return value of
8132 target_read_memory.
8133 (i386_analyze_struct_return): Ditto.
8134 (i386_skip_probe): Ditto.
8135 (i386_match_insn): Ditto.
8136 (i386_skip_noop): Ditto.
8137 (i386_analyze_frame_setup): Ditto.
8138 (i386_analyze_register_saves): Ditto.
8139 (i386_skip_prologue): Ditto.
8140 (i386_skip_main_prologue): Ditto.
8141
13b3fd9b
MS
8142 * target.c (read_whatever_is_readable): Fix memory leak.
8143
d3f323f3
MS
8144 * i386-tdep.c (i386_process_record): Document fall through.
8145
421d5c74
JK
81462011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8147
8148 Fix DWARF-3+ DW_AT_accessibility default assumption.
8149 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8150 cu->header.version >= 3.
8151
63154eca
PA
81522011-03-08 Pedro Alves <pedro@codesourcery.com>
8153
8154 * remote.c (remote_check_symbols): Skip if the target has no
8155 execution.
8156
f1a507a1
JB
81572011-03-08 Joel Brobecker <brobecker@adacore.com>
8158
8159 * target.c (read_whatever_is_readable): Reformat comment,
8160 with a minor typo fix. Minor reformatting of the code.
8161
36073a92
YQ
81622011-03-08 Yao Qi <yao@codesourcery.com>
8163
8164 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8165 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8166 Use cached result instead of calling displaced_in_arm_mode again.
8167 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8168 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8169 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8170 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8171 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8172 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8173 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8174 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8175 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8176 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8177 (arm_catch_kernel_helper_return): Likewise.
8178 * gdb/arm-tdep.h : Update function declarations.
8179
d3f323f3 81802011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8181
e0e40094
MS
8182 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8183
0b2381f5
MS
8184 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8185
0350914a
MS
8186 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8187
69feea6f
MS
8188 * elfread.c (elf_symtab_read): Stop memory leak.
8189
e6040cbd
MS
8190 * main.c (captured_main): Fix memory leak.
8191
052874e8
AS
81922011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8193
8194 * ada-lang.c (compare_names): Call is_name_suffix with string1
8195 instead of string2.
8196
b11896a5
TT
81972011-03-07 Tom Tromey <tromey@redhat.com>
8198
8199 * xcoffread.c (xcoff_sym_fns): Update.
8200 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8201 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8202 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8203 (symbol_file_add_with_addrs_or_offsets): Likewise.
8204 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8205 * somread.c (som_sym_fns): Update.
8206 * psymtab.h (require_partial_symbols): Declare.
8207 * psymtab.c (require_partial_symbols): New function.
8208 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8209 (ALL_OBJFILE_PSYMTABS): Undef.
8210 (ALL_PSYMTABS): Move from psympriv.h.
8211 (lookup_partial_symtab, find_pc_sect_psymtab)
8212 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8213 (find_last_source_symtab_from_partial)
8214 (forget_cached_source_info_partial)
8215 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8216 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8217 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8218 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8219 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8220 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8221 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8222 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8223 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8224 psymtabs.
8225 * mipsread.c (ecoff_sym_fns): Update.
8226 * machoread.c (macho_sym_fns): Update.
8227 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8228 (read_psyms): New function.
8229 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8230 (elf_sym_fns_lazy_psyms): New global.
8231 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8232 dwarf2_build_psymtabs.
8233 * dbxread.c (aout_sym_fns): Update.
8234 * coffread.c (coff_sym_fns): Update.
8235
fda326dd
TT
82362011-03-07 Tom Tromey <tromey@redhat.com>
8237
8238 * infrun.c (print_exited_reason): Include inferior id and pid in
8239 message.
8240
aeaec162
TT
82412011-03-07 Tom Tromey <tromey@redhat.com>
8242
8243 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8244 parameter.
8245 (target_has_execution_1): Update.
8246 (target_has_execution_current): Declare.
8247 (target_has_execution): Call target_has_execution_current.
8248 (default_child_has_execution): Update.
8249 * target.c (default_child_has_execution): Add 'the_ptid'
8250 parameter.
8251 (target_has_execution_1): Likewise.
8252 (target_has_execution_current): New function.
8253 (add_target): Update.
8254 (init_dummy_target): Update.
8255 * remote-m32r-sdi.c (m32r_has_execution): New function.
8256 (init_m32r_ops): Use it.
8257 * record.c (record_core_has_execution): Now static. Add
8258 'the_ptid' parameter.
8259 * inferior.c (have_live_inferiors): Don't save current thread.
8260 Use target_has_execution_1.
8261
08e14083
YQ
82622011-03-07 Yao Qi <yao@codesourcery.com>
8263
8264 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8265
c05d19c5
JB
82662011-03-07 Joel Brobecker <brobecker@adacore.com>
8267
8268 * elfread.c (elf_symtab_read): Minor reformatting.
8269
3e6ef9e4
JB
82702011-03-07 Joel Brobecker <brobecker@adacore.com>
8271
8272 * objc-lang.c (selectors_info): Minor reformatting.
8273
dbb8534f
JB
82742011-03-07 Joel Brobecker <brobecker@adacore.com>
8275
8276 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8277
dd70cc93
JB
82782011-03-07 Joel Brobecker <brobecker@adacore.com>
8279 Michael Snyder <msnyder@vmware.com>
8280
8281 * ada-valprint.c (ada_val_print_array): Move the declaration of
8282 "byte_order" and "elttype" inside the block where these variables
8283 are actually used. Remove some special handling for the case
8284 where "elttype" and "eltlen" are null. Replace by a comment
8285 and a couple of assertion checks.
8286
b27cf2b3
MS
82872011-03-05 Michael Snyder <msnyder@vmware.com>
8288
8289 * source.c (add_path): Replace semicolon at end of block.
8290 * dwarf2expr.c (execute_stack_op): Ditto.
8291
5387a0c6
MF
82922011-03-05 Mike Frysinger <vapier@gentoo.org>
8293
8294 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8295 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8296 (bfin-*-*): Likewise.
8297
e3aa49af
MS
82982011-03-05 Michael Snyder <msnyder@vmware.com>
8299
82ae4854
MS
8300 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8301 * mdebugread.c (parse_symbol): Ditto.
8302 * parse.c (parse_exp_in_context): Ditto.
8303 * source.c (add_path): Ditto.
8304 * utils.c (gnu_debuglink_crc32): Ditto.
8305 * varobj.c (variable_language): Ditto.
8306
e3aa49af
MS
8307 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8308
154f592e
MS
83092011-03-04 Michael Snyder <msnyder@vmware.com>
8310
da3ecdc6
MS
8311 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8312
9cc89665
MS
8313 * symfile.c (simple_overlay_update): Check for null return value
8314 from lookup_minimal_symbol.
8315
154f592e
MS
8316 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8317
63ffa6ee
TJB
83182011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8319
8320 * eval.c (parse_and_eval_address_1): Remove function.
8321 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8322 instead of parse_and_eval_address_1.
8323 * value.h (parse_and_eval_address_1): Remove prototype.
8324
a17d146e
MS
83252011-03-04 Michael Snyder <msnyder@vmware.com>
8326
8327 * remote.c (putpkt_binary): Document that case stmt falls through.
8328
1a6a67de
TJB
83292011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8330
8331 * breakpointc (print_it_typical): Move NULL check from here...
8332 (print_bp_stop_message): ... to here.
8333
488919c4
MS
83342011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8335
8336 * breakpoint.c (enable_command): Use break instead of continue,
8337 and fill in a missing break.
8338 (disable_command): Ditto.
8339
1e182ce8
UW
83402011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8341
8342 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8343 (terminal_save_ours): Remove misleading comment.
8344 (inflow_inferior_data_cleanup): Free ttystate.
8345 (inflow_inferior_exit): Likewise.
8346 (copy_terminal_info): Copy ttystate.
8347
8348 * serial.c (serial_copy_tty_state): New function.
8349 * serial.h (serial_copy_tty_state): Add prototype.
8350 (struct serial_ops): Add copy_tty_state callback.
8351 * ser-base.c (ser_base_copy_tty_state): New function.
8352 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8353 * ser-go32.c (dos_copy_tty_state): New function.
8354 (dos_ops): Install copy_tty_state callback.
8355 * ser-mingw.c (_initialize_ser_windows): Likewise.
8356 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8357 * ser-unix.c (hardwire_copy_tty_state): New function.
8358 (_initialize_ser_hardwire): Install it.
8359
b2c5f112
MS
83602011-03-04 Michael Snyder <msnyder@vmware.com>
8361
2abae994
MS
8362 * breakpoint.c (create_breakpoint): Add missing break statement.
8363
7f5936f9
MS
8364 Reverting this patch:
8365 * infcall.c (call_function_by_hand): Add break statements for lint.
8366
b2c5f112
MS
8367 Reverting this patch:
8368 * cli/cli-script.c (script_from_file): Add break for lint.
8369
42b1321c
MS
83702011-03-04 Michael Snyder <msnyder@vmware.com>
8371
8372 * solib.c (reload_shared_libraries_1): Close memory leak.
8373
3e2a0cee
TT
83742011-03-03 Tom Tromey <tromey@redhat.com>
8375
8376 PR gdb/12538:
8377 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8378 DW_STRING is NULL.
8379
58397cb7
MS
83802011-03-03 Michael Snyder <msnyder@vmware.com>
8381
2e3fd767
MS
8382 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8383 fields of struct 'st' to zero.
8384
58397cb7
MS
8385 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8386 sal.pspace before calling set_current_source_symtab_and_line.
8387
ced54c8f
YQ
83882011-03-03 Yao Qi <yao@codesourcery.com>
8389
8390 * Makefile.in (configure-common): Remove. Let Makefile
8391 in dir common to rebuild itself.
8392 (common/Makefile): Likewise.
8393
3351ea09
JB
83942011-03-03 Joel Brobecker <brobecker@adacore.com>
8395
8396 * utils.c (parse_escape): Add i18n markup in error message.
8397
bf9f652a
YQ
83982011-03-03 Yao Qi <yao@codesourcery.com>
8399
8400 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8401 ARM_PC_REGNUM.
8402 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8403 (displaced_write_reg, displaced_read_reg): Likewise.
8404 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8405 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8406 (cleanup_branch): Replace magic number 14 and 15 with
8407 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8408
d42de051
MS
84092011-03-02 Michael Snyder <msnyder@vmware.com>
8410
240f9570
MS
8411 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8412
10dd8b54
MS
8413 * cli/cli-script.c (script_from_file): Add break for lint.
8414
b98bd911
MS
8415 * mdebugread.c (parse_partial_symbols): Fix indent.
8416
3494b66d
MS
8417 * target-descriptions.c (tdesc_gdb_type): No need to call
8418 xstrdup, callee saves a copy.
8419
daac021a
MS
8420 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8421
c38d16a7
MS
8422 * infcall.c (call_function_by_hand): Add break statements for lint.
8423
905b671b
MS
8424 * utils.c (parse_escape): Escape the escape char.
8425
f2eb0bc8 8426 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8427 PyList_Append fails.
8428 (gdbpy_inferiors): Error out if build_inferior_list fails.
8429
8c6a60d1
MS
8430 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8431 a function call.
8432
d42de051
MS
8433 * record.c (record_restore): Move printf to before error return.
8434
4db71c0b
YQ
84352011-03-02 Yao Qi <yao@codesourcery.com>
8436
8437 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8438 is_thumb and insn_size.
8439 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8440 on both ARM and Thumb mode.
8441 (arm_process_displaced_insn): Set is_thumb and insn_size.
8442 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8443 (arm_displaced_step_fixup): Likewise.
8444
a9dc8dcc
MS
84452011-03-01 Michael Snyder <msnyder@vmware.com>
8446
53624a93
MS
8447 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8448
77766669
MS
8449 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8450
62d5b8da
MS
8451 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8452
5e9e105f
MS
8453 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8454
dc19db01
MS
8455 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8456 with xmalloc.
8457
5ce64950
MS
8458 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8459 which shadows function parameter.
8460
a0aa2878
MS
8461 * tracepoint.c (create_tsv_from_upload): Superfluous call
8462 to xstrdup. Callee already calls xstrdup.
8463
e325fb69
MS
8464 * linespec.c (decode_line_1): Remove unnecessary null check.
8465
21cbba77
MS
8466 * tracepoint.c (scope_info): Fix mem leak, remove underused
8467 variable.
8468
63360adc
MS
8469 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8470 superfluous null check.
8471
18ea20ac 8472 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8473 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8474
d014929c
MS
8475 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8476
6e9130cf
MS
8477 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8478 be null.
8479
5f01dbc0
MS
8480 * linespec.c (decode_line_1): Check for null before dereference.
8481
d684ab85
MS
8482 * reverse.c (record_restore): Move null-check to before pointer
8483 dereference.
8484
bfffb7e3
MS
8485 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8486
a9dc8dcc
MS
8487 * objc-lang.c (selectors_info): Add explanitory comment.
8488 (classes_info): Ditto.
8489
478fd957
UW
84902011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8491
8492 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8493 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8494 versions of the trampoline. Handle Thumb vs. ARM addresses.
8495 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8496 (arm_linux_init_abi): Install it.
8497 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8498 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8499
0480cefa
MS
85002011-02-28 Michael Snyder <msnyder@vmware.com>
8501
ac50ab3b
MS
8502 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8503 a little bigger, to avoid possibility of an overflow.
8504
f63fbe86
MS
8505 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8506 buffers a little bigger, to avoid possibility of an overflow.
8507
9e91a352
MS
8508 * coffread.c (coff_getfilename): Add check to avoid overflow.
8509
f2eb0bc8 8510 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8511 avoid overflow.
8512 (classes_info): Error out on too long REGEXP.
8513
098ab512
MS
8514 * infrun.c (handle_inferior_event): Remove unused function call.
8515
bcbd1de9
MS
8516 * fork-child.c (fork_inferior): Remove ifdef'd code and
8517 unused variable.
8518
2e456570
MS
8519 * linux-thread-db.c (attach_thread): Discard unused value.
8520
14571dad
MS
8521 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8522
a9cbf802
MS
8523 * remote.c (remote_get_noisy_reply): Discard unused value.
8524 (remote_vcont_resume): Ditto.
8525 (remote_stop_ns): Ditto.
8526
5715d26e
MS
8527 * linespec.c (decode_objc): Delete unused variable.
8528
4a9bca80
MS
8529 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8530
f47fb265
MS
8531 * dwarf2read.c (add_partial_symbol): Discard unused values.
8532 (read_base_type): Delete unused variable.
8533
e81cff30
MS
8534 * dbxread.c (read_dbx_symtab): Discard unused value.
8535
262acaeb
MS
8536 * eval.c (evaluate_subexp_standard): Delete unused variable,
8537 and discard unused values.
8538
df983543
MS
8539 * infcmd.c (_initialize_infcmd): Discard unused values.
8540
89acf84d
MS
8541 * stabsread.c (rs6000_builtin_type): Missing break statement.
8542
ab8b8aca
MS
8543 * dbxread.c (process_one_symbol): Discard unused value.
8544
6b4511ab
MS
8545 * coffread.c (coff_end_symtab): Delete unused variable.
8546
e8e80198
MS
8547 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8548 (dwarf2_add_typedef): Delete unused variable.
8549 (read_namespace): Ditto.
8550 (dwarf_decode_macros): Ditto.
8551
976aa66e
MS
8552 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8553
5b92b49f
MS
8554 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8555
91e8df85
MS
8556 * p-valprint.c (pascal_val_print): Discard unused value.
8557
899500d6
MS
8558 * utils.c (nquery): Call va_end before return;
8559 (yquery): Ditto.
8560 (query): Ditto.
8561
0480cefa
MS
8562 * proc-service.c (ps_plog): Call va_end before return.
8563
fb6a3ed3
TT
85642011-02-28 Tom Tromey <tromey@redhat.com>
8565
8566 * python/python.c (gdbpy_value_cst): New global.
8567 (_initialize_python): Initialize it.
8568 * python/python-internal.h (gdbpy_value_cst): Declare.
8569 * python/py-value.c (convert_value_from_python): Use
8570 gdbpy_value_cst.
8571
c05202a1
MS
85722011-02-28 Michael Snyder <msnyder@vmware.com>
8573
e463f587
MS
8574 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8575
c38eea1a
MS
8576 * breakpoint.c (catch_syscall_completer): Free malloced list.
8577
3ef09ab5
MS
8578 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8579
8f9a01ee
MS
8580 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8581 (lval_func_check_synthetic_pointer): Ditto.
8582 (lval_func_free_closure): Fix use-after-free.
c05202a1 8583
477d0d57
TT
85842011-02-28 Tom Tromey <tromey@redhat.com>
8585
8586 * psymtab.c (expand_partial_symbol_tables): Use
8587 ALL_OBJFILE_PSYMTABS.
8588
20937029
JK
85892011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8590
8591 * objc-lang.c (selectors_info): Error on too long REGEXP.
8592
907b7f4f
MS
85932011-02-28 Michael Snyder <msnyder@vmware.com>
8594
92e96192
MS
8595 * python/py-param.c (set_parameter_value): Add missing
8596 break statement.
8597
907b7f4f
MS
8598 * linux-record.c (record_linux_system_call): Add missing
8599 break statement.
8600
12c5a436
UW
86012011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8602
8603 * breakpoint.c (print_one_breakpoint_location): Remove unused
8604 argument PRINT_ADDRESS_BITS. Update callers.
8605 (print_one_breakpoint): Likewise.
8606
170b53b2
UW
86072011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8608
8609 * breakpoint.c (wrap_indent_at_field): New function.
8610 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8611 Allocate ui_stream locally instead of using STB argument.
8612 (print_one_breakpoint_location): Update call.
8613 * ui-out.c (ui_out_query_field): New function.
8614 * ui-out.h (ui_out_query_field): Add prototype.
8615
8ab1f94d
JB
86162011-02-28 Joel Brobecker <brobecker@adacore.com>
8617
8618 From Michael Snyder <msnyder@vmware.com>
8619 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8620
7d488639
MS
86212011-02-27 Michael Snyder <msnyder@vmware.com>
8622
ae179fba
MS
8623 * objc-lang.c (selectors_info): Prevent string overrun.
8624
086dbf66
MS
8625 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8626 error in strncpy.
8627
f2eb0bc8 8628 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8629 outer scope.
8630
7d488639
MS
8631 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8632 param with a local variable of the same name.
8633
3bd0f5ef
MS
86342011-02-27 Michael Snyder <msnyder@vmware.com>
8635
8636 * value.c (value_from_history_ref): New function.
8637 * value.h (value_from_history_ref): Export.
8638 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8639 to parse value history references.
8640 * cli/cli-utils.h (get_number_trailer): Update comment.
8641
86422011-02-27 Michael Snyder <msnyder@vmware.com>
8643
8644 * inferior.c (detach_inferior_command): Use get_number_or_range.
8645 (kill_inferior_command): Ditto.
8646 (remove_inferior_command): Ditto.
8647 (initialize_inferiors): Make command names plural.
8648 Update help strings.
8649
766062f6
MS
86502011-02-27 Michael Snyder <msnyder@vmware.com>
8651
8652 * darwin-nat-info.c: Fix comment typo.
8653 * dwarf2expr.h: Ditto.
8654 * fbsd-nat.c: Ditto.
8655 * fbsd-nat.h: Ditto.
8656 * frame-unwind.h: Ditto.
8657 * frame.h: Ditto.
8658 * hppa-hpux-tdep.c: Ditto.
8659 * i386-linux-nat.c: Ditto.
8660 * linux-nat.c: Ditto.
8661 * nbsd-nat.c: Ditto.
8662 * nbsd-nat.h: Ditto.
8663 * ppc-linux-tdep.c: Ditto.
8664 * serial.c: Ditto.
8665 * ui-file.h: Ditto.
8666 * tui/tui-winsource.c: Ditto.
8667
f2c4ead5
MS
86682011-02-26 Michael Snyder <msnyder@vmware.com>
8669
86b887df
MS
8670 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8671
66fd3b1e
MS
8672 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8673
8c814cdd
MS
8674 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8675 with a local variable of the same name.
8676
6d5e094a 8677 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8678 param with a local variable of the same name.
6d5e094a 8679 (i387_supply_xsave): Ditto.
e5b3d7d6 8680
5eee517d
MS
8681 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8682 that it does not shadow a function parameter.
8683
8fbf6b93
MS
8684 * i386-nat.c (i386_length_and_rw_bits): Document that case
8685 statement is meant to fall through.
8686
cb969d61
MS
8687 * expprint.c (dump_subexp_body_standard): Document that case
8688 statement is meant to fall through.
8689
f2c4ead5
MS
8690 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8691 dead if statement. Condition can't be false.
8692
b021a221
MS
86932011-02-25 Michael Snyder <msnyder@vmware.com>
8694
8695 * arm-tdep.c: Fix typos in comments.
8696 * bsd-uthread.c: Ditto.
8697 * completer.c: Ditto.
8698 * corelow.c: Ditto.
8699 * cp-namespace.c: Ditto.
8700 * cp-support.c: Ditto.
8701 * cris-tdep.c: Ditto.
8702 * dbxread.c: Ditto.
8703 * dwarf2read.c: Ditto.
8704 * frame.h: Ditto.
8705 * gdbtypes.h: Ditto.
8706 * inferior.h: Ditto.
8707 * mdebugread.c: Ditto.
8708 * mips-tdep.c: Ditto.
8709 * ppc-linux-nat.c: Ditto.
8710 * ppc-linux-tdep.c: Ditto.
8711 * printcmd.c: Ditto.
8712 * sol-thread.c: Ditto.
8713 * solib-frv.c: Ditto.
8714 * solist.h: Ditto.
8715 * sparc64-tdep.c: Ditto.
8716 * spu-tdep.c: Ditto.
8717 * stabsread.c: Ditto.
8718 * symfile.c: Ditto.
8719 * valops.c: Ditto.
8720 * varobj.c: Ditto.
8721 * vax-nat.c: Ditto.
8722 * python/py-block.c: Ditto.
8723 * python/py-symbol.c: Ditto.
8724 * python/py-symtab.c: Ditto.
8725 * python/py-value.c: Ditto.
8726 * tui/tui-win.c: Ditto.
8727
c82c0b55
MS
87282011-02-25 Michael Snyder <msnyder@vmware.com>
8729
8730 * inferior.c (print_inferior): Accept a string instead of an int
8731 for requested_inferiors, and use get_number_or_range to parse it.
8732 (info_inferiors_command): Pass args string to print_inferior.
8733 (initialize_inferiors): Change help string for info inferiors.
8734 * inferior.h (print_inferior): Export prototype change.
8735
ee00cd23
TT
87362011-02-25 Tom Tromey <tromey@redhat.com>
8737
8738 * common/ax.def (invalid2): Set to 0x31.
8739
0502ed8c
JK
87402011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8741
8742 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8743 L and plongest.
8744 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8745 use L and plongest.
8746 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8747
2c9de912
MS
87482011-02-24 Michael Snyder <msnyder@vmware.com>
8749
8750 * Makefile.in (clean): Make clean should remove generated files
8751 observer.h and observer.inc.
8752
a04b0428
JB
87532011-02-24 Joel Brobecker <brobecker@adacore.com>
8754
8755 Revert the following patch (not approved yet):
8756 2011-02-21 Hui Zhu <teawater@gmail.com>
8757 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8758 * ax-gdb.c (gen_printf_expr_callback): New function.
8759 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8760 * ax-general.c (ax_memcpy): New function.
8761 (ax_print): Handle "printf".
8762 (ax_reqs): Ditto.
8763 * ax.h (ax_memcpy): Forward declare.
8764 * common/ax.def (invalid2): Removed.
8765 (printf): New entry.
8766 * printcmd.c (printcmd.h): New include.
8767 (string_printf): New function.
8768 (ui_printf): Removed.
8769 (printf_command): Remove static. Call string_printf.
8770 (eval_command): Call string_printf.
8771 * printcmd.h: New file.
8772 * tracepoint.c (validate_actionline,
8773 encode_actions_1): handle printf_command.
8774
2b52013f
TT
87752011-02-23 Tom Tromey <tromey@redhat.com>
8776
8777 * ax-general.c (ax_pick): Add missing newline.
8778
e5a67952
MS
87792011-02-23 Michael Snyder <msnyder@vmware.com>
8780
8781 * breakpoint.c (breakpoint_1): Change first argument from an int
8782 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8783 breakpoints rather than just one. Use new function
e5a67952
MS
8784 'number_is_in_list' to implement.
8785 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8786 (watchpoints_info): Ditto.
8787 (tracepoints_info): Ditto.
8788 (maintenance_info_breakpoints): Ditto.
8789 (_initialize_breakpoint): Update help strings to reflect the fact
8790 that these functions can now take more than one argument.
8791 * cli/cli-utils.c (number_is_in_list): New function.
8792 * cli/cli-utils.h (number_is_in_list): Export.
8793
87942011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8795
8796 * memattr.c (mem_enable_command): Use get_number_or_range.
8797 (mem_disable_command): Ditto.
8798 (mem_delete_command): Ditto.
8799 (_initialize_mem): Tweak usage message to reflect multiple
8800 arguments.
8801
6e6fbe60
DE
88022011-02-22 Doug Evans <dje@google.com>
8803
8804 Add gdb.lookup_global_symbol python function.
8805 * NEWS: Add entry.
8806 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8807 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8808 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8809
79b97fa8
TT
88102011-02-22 Tom Tromey <tromey@redhat.com>
8811
8812 * language.c (language_class_name_from_physname): Rename
8813 'curr_language' argument to 'lang'; use in body.
8814
298f437a
MS
88152011-02-22 Michael Snyder <msnyder@vmware.com>
8816
8817 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8818
b7ea3126
PA
88192011-02-22 Pedro Alves <pedro@codesourcery.com>
8820
8821 * frame-unwind.h: Fix comment to mention the this frame, not the
8822 next.
8823
58ee6d60
TT
88242011-02-22 Tom Tromey <tromey@redhat.com>
8825
8826 * symfile.c (auto_solib_limit): Remove.
8827 * symfile.h (auto_solib_limit): Remove.
8828
36238dbc
JB
88292011-02-22 Joel Brobecker <brobecker@adacore.com>
8830
8831 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8832
aea5b279
MS
88332011-02-21 Michael Snyder <msnyder@vmware.com>
8834
8835 * gdbthread.h (print_thread_info): Change prototype.
8836 * thread.c (print_thread_info): Accept char* instead of int for
8837 requested_threads argument. Use new function number_is_in_list
8838 to determine which threads to list.
8839 (info_threads_command): Pass char* to print_thread_info.
8840 * cli/cli-utils.c (number_is_in_list): New function.
8841 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8842 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8843 print_thread_info.
8844 (print_one_inferior): Ditto.
8845 (mi_cmd_list_thread_groups): Ditto.
8846
8caa75ee
JK
88472011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8848
8849 * common/Makefile.in (CFLAGS): New.
8850 (COMPILE): Add $(CFLAGS).
8851
ea666128
TT
88522011-02-21 Tom Tromey <tromey@redhat.com>
8853
8854 * breakpoint.c (catch_syscall_command_1): Fix typo.
8855
e9cafbcc
TT
88562011-02-21 Tom Tromey <tromey@redhat.com>
8857
8858 * reverse.c: Include cli-utils.h.
8859 * printcmd.c: Include cli-utils.h.
8860 (string_printf): Use skip_spaces.
8861 * cli/cli-utils.h: New file.
8862 * cli/cli-utils.c: New file.
8863 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8864 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8865 * breakpoint.h (get_number, get_number_or_range): Move to
8866 cli-utils.h.
8867 * breakpoint.c: Include cli-utils.h.
8868 (get_number_trailer, get_number, get_number_or_range)
8869 (ep_skip_leading_whitespace): Move to cli-utils.c.
8870 (create_breakpoint_sal, find_condition_and_thread)
8871 (decode_static_tracepoint_spec, watch_command_1)
8872 (watch_maybe_just_location, ep_parse_optional_if_clause)
8873 (catch_fork_command_1, catch_exec_command_1)
8874 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8875 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8876 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8877 (HFILES_NO_SRCDIR): Add cli-utils.h.
8878 (cli-utils.o): New target.
8879
f67fd822
PM
88802011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8881
8882 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8883 before calling discard_all_inferiors.
8884
c9def01d
UW
88852011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8886
8887 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8888 (struct builtin_opencl_type): Remove.
8889 (builtin_opencl_type): Change return type to "struct type **".
8890 (lookup_opencl_vector_type): Update caller.
8891 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8892 (build_opencl_types): Install plain array of "struct type *"
8893 instead of "struct builtin_opencl_type".
8894
e3039479
UW
88952011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8896 Ulrich Weigand <uweigand@de.ibm.com>
8897
8898 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8899 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8900 (struct arm_linux_hwbp_cap): New type.
8901 (arm_linux_get_hwbp_cap): New function.
8902 (arm_linux_get_hw_breakpoint_count): Likewise.
8903 (arm_linux_get_hw_watchpoint_count): Likewise.
8904 (arm_linux_can_use_hw_breakpoint): Likewise.
8905 (arm_hwbp_type): New type.
8906 (arm_hwbp_control_t): Likewise.
8907 (struct arm_linux_hw_breakpoint): Likewise.
8908 (struct arm_linux_thread_points): Likewise.
8909 (arm_threads): New global variable.
8910 (arm_linux_find_breakpoints_by_tid): New function.
8911 (arm_hwbp_control_initialize): Likewise.
8912 (arm_hwbp_control_is_enabled): Likewise.
8913 (arm_hwbp_control_disable): Likewise.
8914 (arm_linux_hw_breakpoint_initialize): Likewise.
8915 (arm_linux_get_hwbp_type): Likewise.
8916 (arm_linux_hw_watchpoint_initialize): Likewise.
8917 (arm_linux_hw_breakpoint_equal): Likewise.
8918 (arm_linux_insert_hw_breakpoint1): Likewise.
8919 (arm_linux_remove_hw_breakpoint1): Likewise.
8920 (arm_linux_insert_hw_breakpoint): Likewise.
8921 (arm_linux_remove_hw_breakpoint): Likewise.
8922 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8923 (arm_linux_insert_watchpoint): Likewise.
8924 (arm_linux_remove_watchpoint): Likewise.
8925 (arm_linux_stopped_data_address): Likewise.
8926 (arm_linux_stopped_by_watchpoint): Likewise.
8927 (arm_linux_watchpoint_addr_within_range): Likewise.
8928 (arm_linux_new_thread): Likewise.
8929 (arm_linux_thread_exit): Likewise.
8930 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8931 related target callbacks. Register arm_linux_new_thread and
8932 arm_linux_thread_exit.
8933 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8934 * arm-tdep.c (arm_pc_is_thumb): Make global.
8935 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8936
b5db5dfc
UW
89372011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8938
8939 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8940 per-frame locations while within a function epilogue.
8941
e25b2cfa
PM
89422011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8943
8944 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8945 to GNU coding standards.
8946
4af53f97
PM
89472011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8948
8949 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8950 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8951 (ser_windows_close): Only call CancelIo if function exists.
8952 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8953 to check for existence of CancelIo function in kernel32 DLL.
8954
d0e92d82
HZ
89552011-02-21 Hui Zhu <teawater@gmail.com>
8956
8957 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8958 * ax-gdb.c (gen_printf_expr_callback): New function.
8959 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8960 * ax-general.c (ax_memcpy): New function.
8961 (ax_print): Handle "printf".
8962 (ax_reqs): Ditto.
8963 * ax.h (ax_memcpy): Forward declare.
8964 * common/ax.def (invalid2): Removed.
8965 (printf): New entry.
8966 * printcmd.c (printcmd.h): New include.
8967 (string_printf): New function.
8968 (ui_printf): Removed.
8969 (printf_command): Remove static. Call string_printf.
8970 (eval_command): Call string_printf.
8971 * printcmd.h: New file.
8972 * tracepoint.c (validate_actionline,
8973 encode_actions_1): handle printf_command.
8974
7d357efd
MS
89752011-02-19 Michael Snyder <msnyder@vmware.com>
8976
8977 * reverse.c (delete_one_bookmark): Argument is now bookmark
8978 id rather than pointer to bookmark struct.
8979 (delete_bookmark_command): Use get_number_or_range.
8980 (goto_bookmark_command): Parse with get_number instead of strtoul.
8981 (bookmark_1): New function. Print info for one bookmark.
8982 (bookmarks_info): Use get_number_or_range and bookmark_1.
8983
7a45ebd7
MS
89842011-02-18 Michael Snyder <msnyder@vmware.com>
8985
f2eb0bc8 8986 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8987 get_number_or_range.
65ebfb52 8988 (thread_apply_command): Ditto.
7a45ebd7 8989
94d5e490
TT
89902011-02-18 Tom Tromey <tromey@redhat.com>
8991
8992 * common/ax.def: New file.
8993 * ax.h (enum agent_op): Use ax.def.
8994 * ax-general.c (aop_map): Use ax.def.
8995
c7f96d2b
TT
89962011-02-18 Tom Tromey <tromey@redhat.com>
8997
8998 * ax-general.c (aop_map): Add pick and rot.
8999 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9000 <DW_OP_rot>: Implement.
9001 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9002 (ax_pick): Declare.
9003 * ax-general.c (ax_pick): New function.
9004
66694b75
TT
90052011-02-18 Tom Tromey <tromey@redhat.com>
9006
9007 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9008
eeaafae2
JK
90092011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9010 Tom Tromey <tromey@redhat.com>
9011
9012 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9013 make_symbol_overload_list_block with NULL BLOCK.
9014 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9015
3c3fe74c
PA
90162011-02-18 Pedro Alves <pedro@codesourcery.com>
9017
9018 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9019 * breakpoint.h (get_number_or_range): Declare.
9020 * printcmd.c (ALL_DISPLAYS): Declare.
9021 (delete_display): Reimplement taking a display pointer.
9022 (undisplay_command): Accept a range of displays to delete, using
9023 get_number_or_range.
9024
13163d80
PM
90252011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9026
9027 * c-valprint.c (c_val_print): Add embedded_offset to address
9028 for arrays of unspecified length.
9029 * p-valprint.c (pascal_val_print): Likewise.
9030
b434a28f
YQ
90312011-02-18 Yao Qi <yao@codesourcery.com>
9032
9033 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9034 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9035 (thumb_process_displaced_insn): New.
9036 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9037 call to arm_process_displaced_insn.
9038 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9039
9f6f94ff
TT
90402011-02-17 Tom Tromey <tromey@redhat.com>
9041
9042 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9043 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9044 compile_dwarf_to_ax. No longer static. Call
9045 dwarf2_compile_cfa_to_ax.
9046 (locexpr_tracepoint_var_ref): Update.
9047 (loclist_tracepoint_var_ref): Update.
9048 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9049 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9050 argument; add 'gdbarch' and 'pc'.
9051 (dwarf2_compile_cfa_to_ax): New function.
9052 (dwarf2_frame_cache): Update.
9053
e67ad678
JB
90542011-02-17 Joel Brobecker <brobecker@adacore.com>
9055
9056 * ada-lang.c (ada_type_of_array): Fix the size of the array
9057 in the case of an unconstrained packed array.
9058
946ebb0d
YQ
90592011-02-17 Yao Qi <yao@codesourcery.com>
9060
9061 * common/Makefile.in: Add more targets for make.
9062
1ba1b353
TT
90632011-02-16 Tom Tromey <tromey@redhat.com>
9064
9065 * dwarf2loc.c (unimplemented): Fix typo.
9066
b1bfef65
TT
90672011-02-16 Tom Tromey <tromey@redhat.com>
9068
9069 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9070 (compile_dwarf_to_ax) <default>: Use unimplemented.
9071 <DW_OP_deref>: Update.
9072 (disassemble_dwarf_expression): Update.
9073 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9074 (decode_locdesc): Update.
9075 * dwarf2expr.h (dwarf_stack_op_name): Update.
9076
5f1e6f19
TT
90772011-02-16 Tom Tromey <tromey@redhat.com>
9078
9079 * ax.h (struct aop_map) <name>: Now const.
9080
a0c78a73
PA
90812011-02-16 Tom Tromey <tromey@redhat.com>
9082
9083 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9084 than axs_rvalue.
9085
946ebb0d 90862011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9087
9088 * infrun.c (get_displaced_step_closure_by_addr): New.
9089 * inferior.h: Declare it.
9090 * arm-tdep.c: (arm_pc_is_thumb): Call
9091 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9092 returns non-NULL.
9093
08807d5a
PA
90942011-02-16 Pedro Alves <pedro@codesourcery.com>
9095 Jan Kratochvil <jan.kratochvil@redhat.com>
9096
9097 gdb/
9098 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9099
29976f3f
PA
91002011-02-16 Pedro Alves <pedro@codesourcery.com>
9101 Jan Kratochvil <jan.kratochvil@redhat.com>
9102
9103 * value.c (value_contents_copy_raw): Extend describing comment.
9104 Assert that the destination contents we're overwriting are wholly
9105 available.
fb68ae73 9106 (value_contents_copy): Extend describing comment.
29976f3f 9107
cd24cfaa
PA
91082011-02-16 Pedro Alves <pedro@codesourcery.com>
9109 Jan Kratochvil <jan.kratochvil@redhat.com>
9110
9111 * value.c (value_available_contents_eq): Remove redundant local
9112 variables. Fix available contents comparision.
9113 * value.h (value_available_contents_eq): Extend describing
9114 comment.
9115
60bbf338
YQ
91162011-02-16 Yao Qi <yao@codesourcery.com>
9117
9118 * thread.c (info_threads_command): Add missing i18n markup and remove
9119 trailing newline.
9120
17450429
PP
91212011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9122
9123 * breakpoint.c (longjmp_names): New variable.
9124 (struct breakpoint_objfile_data): New type.
9125 (breakpoint_objfile_key): New variable.
9126 (msym_not_found): New variable.
9127 (msym_not_found_p): New predicate.
9128 (get_breakpoint_objfile_data): New function.
9129 (create_overlay_event_breakpoint): Check per-objfile cache for
9130 symbols first.
9131 (create_longjmp_master_breakpoint): Likewise.
9132 (create_std_terminate_master_breakpoint): Likewise.
9133 (create_exception_master_breakpoint): Likewise.
9134 (_initialize_breakpoint): Register per-objfile data key.
9135
af02033e
PP
91362011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9137
9138 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9139 parameter value.
9140 (create_longjmp_master_breakpoint): Loop over longjmp names.
9141 (create_std_terminate_master_breakpoint): Const-propagate parameter
9142 value.
9143 (update_breakpoints_after_exec): Adjust.
9144 (breakpoint_re_set): Adjust.
9145
60f98dde
MS
91462011-02-15 Michael Snyder <msnyder@vmware.com>
9147
cdf99611
MS
9148 * thread.c (info_threads_command): Process arg as thread id,
9149 or list of thread ids.
9150 (thread_find_command): New command.
9151 (_initialize_thread): Document argument for info threads.
9152 Document 'thread find' command.
9153 * NEWS: Document new command "thread find".
60f98dde 9154
0feedb2c
JK
91552011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9156
9157 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9158 * aclocal.m4: Regenerated with aclocal-1.11.1.
9159 * common/configure: Regenerate with autoconf-2.64.
9160
648cd113
KW
91612011-02-15 Ken Werner <ken.werner@de.ibm.com>
9162
9163 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9164 bool data type to a size of one byte.
9165
5657161f
PA
91662011-02-15 Pedro Alves <pedro@codesourcery.com>
9167 Jan Kratochvil <jan.kratochvil@redhat.com>
9168
9169 * target.c (memory_xfer_live_readonly_partial): Document where to
9170 look for interface description.
9171
494e194e
YQ
91722011-02-15 Yao Qi <yao@codesourcery.com>
9173
9174 PR tdep/12352
9175 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9176 order to store PC value on stack instead of text section.
9177
d9492458
TJB
91782011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9179
9180 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9181 the EFP register set size.
9182 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9183 data from the VMX register.
9184 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9185 and write data from/to the VMX register.
9186
cdf99611
MS
91872011-02-14 Michael Snyder <msnyder@vmware.com>
9188
9189 * command.h (enum command_class): New class 'no_set_class', for
9190 "show" commands without a corresponding "set" command.
9191 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9192 * copying.c (_initialize_copying): Ditto for "show copying" and
9193 "show warranty".
9194 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9195 "show version".
9196 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9197 which there is no corresponding "set" command (eg. "show copying").
9198
424447ee
PA
91992011-02-14 Pedro Alves <pedro@codesourcery.com>
9200 Jan Kratochvil <jan.kratochvil@redhat.com>
9201
9202 * exec.c (section_table_available_memory): Change `len' parameter
9203 type to ULONGEST.
9204 * exec.h (section_table_available_memory): Ditto.
9205 * value.h (read_value_memory): Rename the `offset' parameter to
9206 `embedded_offset'.
9207
c0f61f9c 92082011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9209 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9210
9211 * memrange.c (compare_mem_ranges): Mention sort order in
9212 describing comment.
9213 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9214 * tracepoint.c (traceframe_available_memory): Extend comment to
9215 mention what happens to RESULT when the target does not support
9216 the query.
9217
6bfc80c7
PA
92182011-02-14 Pedro Alves <pedro@codesourcery.com>
9219 Jan Kratochvil <jan.kratochvil@redhat.com>
9220
9221 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9222 range.
9223
e7303042
PA
92242011-02-14 Pedro Alves <pedro@codesourcery.com>
9225
9226 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9227 No longer handle NULL values.
9228
8af8e3bc
PA
92292011-02-14 Pedro Alves <pedro@codesourcery.com>
9230
9231 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9232 * value.c: Include "exceptions.h".
9233 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9234 generic error.
9235 * cp-abi.c: Include gdb_assert.h.
9236 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9237 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9238 errors.
9239 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9240 parameters. No longer returns -1 on error.
9241 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9242 `val' parameters.
9243 * cp-valprint.c: Include exceptions.h.
9244 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9245 the baseclass_offset. Handle unavailable base classes. Use
9246 val_print_invalid_address.
9247 * p-valprint.c: Include exceptions.h.
9248 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9249 when fetching the baseclass_offset. No longer expect
9250 baseclass_offset returning -1. Handle unavailable base classes.
9251 Use val_print_invalid_address.
9252 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9253 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9254 `embedded_offset' and `val' parameters. Adjust.
9255 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9256 parameter, and change its type to gdb_byte pointer. Add
9257 `embedded_offset' and `val' parameters. Adjust. No longer expect
9258 baseclass_offset returning -1.
9259 (value_dynamic_cast): Use value_contents_for_printing rather than
9260 value_contents. Adjust.
9261 (search_struct_field): No longer expect baseclass_offset returning
9262 -1.
9263 (search_struct_method): If reading memory from the target is
9264 necessary, wrap it in a new value to pass to baseclass_offset. No
9265 longer expect baseclass_offset returning -1.
9266 (find_method_list): No longer expect baseclass_offset returning
9267 -1. Use value_contents_for_printing rather than value_contents.
9268 * valprint.c (val_print_invalid_address): New function.
9269 * valprint.h (val_print_invalid_address): Declare.
9270 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9271 and `val' parameters. No longer expect baseclass_offset returning
9272 -1. Adjust.
9273 * gnu-v2-abi.c: Include "exceptions.h".
9274 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9275 parameters. Handle unavailable memory. Recurse through
9276 gnuv2_baseclass_offset directly, rather than through
9277 baseclass_offset. No longer returns -1 on not found, instead
9278 throw an error.
9279 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9280 `val' parameters. Adjust.
9281
1b28d0b3
PA
92822011-02-14 Pedro Alves <pedro@codesourcery.com>
9283
9284 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9285 almost but not quite adjacent.
9286
ec0a52e1
PA
92872011-02-14 Pedro Alves <pedro@codesourcery.com>
9288
9289 * value.h (value_entirely_available): Declare.
9290 * value.c (value_entirely_available): New function.
9291 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9292 real type if the pointer is unavailable.
9293
24e6bcee
PA
92942011-02-14 Pedro Alves <pedro@codesourcery.com>
9295
9296 * valops.c (value_repeat): Use read_value_memory instead of
9297 read_memory.
9298
39d37385
PA
92992011-02-14 Pedro Alves <pedro@codesourcery.com>
9300
9301 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9302 * value.c (value_contents_copy_raw, value_contents_copy): New
9303 functions.
9304 (value_primitive_field): Use value_contents_copy_raw instead of
9305 memcpy.
9306 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9307 memcpy.
9308 (value_array, value_slice): Ditto.
9309 * valarith.c (value_subscripted_rvalue): Use
9310 value_contents_copy_raw instead of memcpy.
9311
a3d34bf4
PA
93122011-02-14 Pedro Alves <pedro@codesourcery.com>
9313
9314 <unavailable> references.
9315
9316 * valops.c (get_value_at): Use value_from_contents_and_address,
9317 avoiding read_memory.
9318
9fc6d940
PA
93192011-02-14 Pedro Alves <pedro@codesourcery.com>
9320
9321 * c-valprint.c (c_val_print): Print a string with unavailable
9322 contents as an array.
9323
5467c6c8
PA
93242011-02-14 Pedro Alves <pedro@codesourcery.com>
9325
9326 * value.h (unpack_bits_as_long): Delete declaration.
9327 (unpack_value_bits_as_long): Declare.
9328 (unpack_value_field_as_long): Declare.
9329 (value_field_bitfield): Declare.
9330 * value.c (unpack_bits_as_long): Rename to...
9331 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9332 value parameters. Return the extracted result in a new output
9333 parameter. If the value contents are unavailable, return false,
9334 otherwise return true.
9335 (unpack_value_bits_as_long): New.
9336 (unpack_field_as_long): Rename to...
9337 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9338 Add embedded_offset and value parameters. Return the extracted
9339 result in a new output parameter. If the value contents are
9340 unavailable, return false, otherwise return true.
9341 (unpack_value_field_as_long): New.
9342 (unpack_field_as_long_1): New.
9343 (unpack_field_as_long): Reimplement as wrapper around
9344 unpack_value_field_as_long_1.
9345 (value_field_bitfield): New function.
9346 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9347 unpack_value_bits_as_long. Mark the value as unavailable, if it
9348 is unavailable.
9349 * jv-valprint.c (java_print_value_fields): Use
9350 value_field_bitfield.
9351 * p-valprint.c (pascal_object_print_value_fields): Use
9352 value_field_bitfield.
9353 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9354
3158c6ed
PA
93552011-02-14 Pedro Alves <pedro@codesourcery.com>
9356
9357 * value.c (get_internalvar_integer): Also return the int value of
9358 TYPE_CODE_INT INTERNALVAR_VALUE values.
9359 (set_internalvar): Don't special case TYPE_CODE_INT.
9360
9fbdca0d
PA
93612011-02-14 Pedro Alves <pedro@codesourcery.com>
9362
9363 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9364 INTERNALVAR_POINTER.
9365 <pointer>: Delete.
9366 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9367 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9368 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9369
c8c1c22f
PA
93702011-02-14 Pedro Alves <pedro@codesourcery.com>
9371
9372 * value.h (value_available_contents_eq): Declare.
9373 * value.c (find_first_range_overlap): New function.
9374 (value_available_contents_eq): New function.
9375 * valprint.c (val_print_array_elements): Use
9376 value_available_contents_eq.
9377 * ada-valprint.c (val_print_packed_array_elements): Use
9378 value_available_contents_eq.
9379 * jv-valprint.c (java_value_print): Use
9380 value_available_contents_eq.
9381
e6e4e701
PA
93822011-02-14 Pedro Alves <pedro@codesourcery.com>
9383
9384 * target.c (target_read_live_memory): New function.
9385 (memory_xfer_live_readonly_partial): New.
9386 (memory_xfer_partial): If reading from a traceframe, fallback to
9387 reading unavailable read-only memory from read-only regions of
9388 live target memory.
9389 * tracepoint.c (disconnect_tracing): Adjust.
9390 (set_current_traceframe): New, factored out from
9391 set_traceframe_number.
9392 (set_traceframe_number): Reimplement to only change the traceframe
9393 number on the GDB side.
9394 (do_restore_current_traceframe_cleanup): Adjust.
9395 (make_cleanup_restore_traceframe_number): New.
9396 (cur_traceframe_number): New global.
9397 (tfile_open): Set cur_traceframe_number to no traceframe.
9398 (set_tfile_traceframe): New function.
9399 (tfile_trace_find): If looking up a traceframe using any method
9400 other than by number, make sure the current tfile traceframe
9401 matches gdb's current traceframe. Update the current tfile
9402 traceframe if the lookup succeeded.
9403 (tfile_fetch_registers, tfile_xfer_partial)
9404 (tfile_get_trace_state_variable_value): Make sure the remote
9405 traceframe matches gdb's current traceframe.
9406 * remote.c (remote_traceframe_number): New global.
9407 (remote_open_1): Set it to -1.
9408 (set_remote_traceframe): New function.
9409 (remote_fetch_registers, remote_store_registers)
9410 (remote_xfer_memory, remote_xfer_partial)
9411 (remote_get_trace_state_variable_value): Make sure the remote
9412 traceframe matches gdb's current traceframe.
9413 (remote_trace_find): If looking up a traceframe using any method
9414 other than by number, make sure the current remote traceframe
9415 matches gdb's current traceframe. Update the current remote
9416 traceframe if the lookup succeeded.
9417 * infrun.c (fetch_inferior_event): Adjust.
9418 * tracepoint.h (set_current_traceframe): Declare.
9419 (get_traceframe_number, set_traceframe_number): Add describing
9420 comments.
9421
e6ca34fc
PA
94222011-02-14 Pedro Alves <pedro@codesourcery.com>
9423
9424 Mark pieces of values as unavailable if the corresponding memory
9425 is unavailable.
9426
9427 * valops.c: Include tracepoint.h.
9428 (value_fetch_lazy): Use read_value_memory.
9429 (read_value_memory): New.
9430 * value.h (read_value_memory): Declare.
9431 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9432 * exec.c (section_table_available_memory): New function.
9433 * exec.h (section_table_available_memory): Declare.
9434
2a7498d8
PA
94352011-02-14 Pedro Alves <pedro@codesourcery.com>
9436
9437 * Makefile.in (SFILES): Add memrange.c.
9438 (HFILES_NO_SRCDIR): Add memrange.h.
9439 (COMMON_OBS): Add memrange.o.
9440 * memrange.c: New file.
9441 * memrange.h: New file.
9442 * tracepoint.c: Include memrange.h.
9443 (struct mem_range): Delete.
9444 (mem_range_s): Delete.
9445 (traceframe_available_memory): New function.
9446 * tracepoint.h (traceframe_available_memory): Declare.
9447
b3b9301e
PA
94482011-02-14 Pedro Alves <pedro@codesourcery.com>
9449
9450 * target.h (struct traceframe_info): Forward declare.
9451 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9452 (struct target_ops) <to_traceframe_info>: New field.
9453 (target_traceframe_info): New.
9454 * target.c (update_current_target): Inherit and default
9455 to_traceframe_info.
9456 * remote.c (PACKET_qXfer_traceframe_info): New.
9457 (remote_protocol_features): Register qXfer:traceframe-info:read.
9458 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9459 (remote_traceframe_info): New.
9460 (init_remote_ops): Install it.
9461 (_initialize_remote): Install "set/show remote traceframe-info"
9462 commands.
9463 * tracepoint.h (parse_traceframe_info): Declare.
9464 * tracepoint.c (struct mem_range): New.
9465 (mem_range_s): New typedef.
9466 (struct traceframe_info): New.
9467 (traceframe_info): New global.
9468 (free_traceframe_info): New function.
9469 (clear_traceframe_info): New function.
9470 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9471 info.
9472 (build_traceframe_info): New function.
9473 (tfile_traceframe_info): New function.
9474 (init_tfile_ops): Install tfile_traceframe_info.
9475 (traceframe_info_start_memory, free_result): New functions.
9476 (memory_attributes, traceframe_info_elements): New globals.
9477 (parse_traceframe_info, get_traceframe_info): New functions.
9478 * features/traceframe-info.dtd: New file.
9479 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9480
4e07d55f
PA
94812011-02-14 Pedro Alves <pedro@codesourcery.com>
9482
9483 Base support for <unavailable> value contents.
9484
4e07d55f
PA
9485 * value.h (value_bytes_available): Declare.
9486 (mark_value_bytes_unavailable): Declare.
9487 * value.c (struct range): New struct.
9488 (range_s): New typedef.
9489 (ranges_overlap): New function.
9490 (range_lessthan): New function.
9491 (ranges_contain_p): New function.
9492 (struct value) <unavailable>: New field.
9493 (value_bytes_available): New function.
9494 (mark_value_bytes_unavailable): New function.
9495 (require_not_optimized_out): Constify parameter.
9496 (require_available): New function.
9497 (value_contents_all, value_contents): Require all bytes be
9498 available.
9499 (value_free): Free `unavailable'.
9500 (value_copy): Copy `unavailable'.
9501 * valprint.h (val_print_unavailable): Declare.
9502 * valprint.c (valprint_check_validity): Rename `offset' parameter
9503 to `embedded_offset'. If printing a scalar, check whether the
9504 value chunk is available.
9505 (val_print_unavailable): New.
9506 (val_print_scalar_formatted): Check whether the value is
9507 available.
9508 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9509 pretty-printing unavailable values.
9510
bc9a5551
JK
95112011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9512
9513 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9514 * c-typeprint.c (c_type_print_args): Update the function comment. New
9515 variable param_type, initialize it. Remove const/volatile qualifiers
9516 for language_cplus and !show_artificial. Use param_type.
9517
93b55aa1
JK
95182011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9519
9520 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9521 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9522 * symtab.h (struct symtab) <next>: Comment extension.
9523
181d9476
YQ
95242011-02-12 Yao Qi <yao@codesourcery.com>
9525
9526 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9527
b708a5c7
JK
95282011-02-11 Yao Qi <yao@codesourcery.com>
9529
9530 * common/Makefile.in: Add copyright header.
9531
c5187ac6
PA
95322011-02-11 Pedro Alves <pedro@codesourcery.com>
9533
9534 * infrun.c (proceed): Move switching out and in of tfind mode from
9535 here ...
9536 (fetch_inferior_event): ... to here.
9537
4f3e6fb7
YQ
95382011-02-11 Yao Qi <yao@codesourcery.com>
9539
9540 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9541 libcommon.a.
9542 * configure.ac: Add common to sub dir.
9543 * configure: Regenerate.
9544
b708a5c7
JK
95452011-02-11 Yao Qi <yao@codesourcery.com>
9546
9547 Build libcommon.a.
9548
9549 * common/Makefile.in: New.
9550 * common/configure.ac: New.
9551 * common/aclocal.m4: New.
9552 * common/configure: Generate.
9553
2287cc7e
PA
95542011-02-10 Pedro Alves <pedro@codesourcery.com>
9555
9556 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9557 side of the parenthesis.
9558
9559 Merge from GCC:
9560 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9561 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9562
fd62cb89
MS
95632011-02-08 Michael Snyder <msnyder@vmware.com>
9564
9565 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9566
56d2815c
JK
95672011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9568
9569 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9570 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9571 psubd and paddd.
9572
4f7d61a8
JK
95732011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9574
9575 PR 12361.
9576 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9577 phsubsw.
9578 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9579 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9580
54fcddd0
UW
95812011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9582
9583 * dwarf2read.c (read_subroutine_type): Set special calling
9584 convention flag for functions compiled by IBM XL C for OpenCL.
9585 * ppc-sysv-tdep.c: Include "dwarf2.h"
9586 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9587 calling convention.
9588 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9589 IBM OpenCL vector types calling convention.
9590 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9591 (ppc_sysv_abi_broken_return_value): Likewise.
9592 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9593 types calling convention.
9594 (ppc64_sysv_abi_return_value): Likewise.
9595 * spu-tdep.c: Include "dwarf2.h"
9596 (spu_return_value): Implement IBM OpenCL vector types calling
9597 convention.
9598
d6dafb7c
UW
95992011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9600
9601 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9602 correct ABI for AltiVec vector arguments.
9603
32b72a42
PA
96042011-02-07 Pedro Alves <pedro@codesourcery.com>
9605
9606 * valprint.c (val_print): Extend comment.
9607 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9608 interface explanation to val_print.
9609 (ada_val_print_array): Adjust comment to current interface.
9610 (print_field_values): Adjust comment to current interface.
9611 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9612 explanation to val_print.
9613 * f-valprint.c (f_val_print): Ditto.
9614 * jv-valprint.c (java_val_print): Ditto.
9615 * m2-valprint.c (m2_val_print): Ditto.
9616 * p-valprint.c (pascal_val_print): Ditto.
9617
9998af43
TJB
96182011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9619
9620 * breakpoint.c (parse_breakpoint_sals): Fix description.
9621
505500db 96222011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9623 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9624
9625 * python/py-inferior.c (python_on_normal_stop): New function.
9626 (python_on_resume): New function.
9627 (python_inferior_exit): New function.
9628 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9629 inferior_exit observers.
9630 * python/py-evtregistry.c: New file.
9631 * python/py-threadevent.c : New file.
9632 * python/py-event.c: New file.
9633 * python/py-evts.c: New file.
9634 * python/py-continueevent.c: New file.
9635 * python/py-bpevent.c: New file.
9636 * python/py-signalevent.c: New file.
9637 * python/py-exetiedevent.c: New file.
9638 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9639 Move struct breakpoint_object from here...
9640 * python/python-internal.h: ... to here.
9641 * python/py-event.h: New file.
9642 * python/py-events.h: New file.
9643 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9644 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9645 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9646 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9647 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9648 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9649 Add build rules for all the above.
9650
9e0ac564
TT
96512011-02-04 Tom Tromey <tromey@redhat.com>
9652
9653 * dwarf2read.c (dwarf2_section_empty_p): New function.
9654 (dwarf2_read_section): Use dwarf2_section_empty_p.
9655 (dwarf2_section_size): New function.
9656 (dwarf2_get_section_info): Unconditionally read section.
9657 (dwarf2_read_index): Use dwarf2_section_empty_p.
9658 (partial_read_comp_unit_head): Use dwarf2_section_size.
9659 (dwarf2_symbol_mark_computed): Likewise.
9660
eee5b35e
DD
96612011-02-04 David Daney <ddaney@caviumnetworks.com>
9662
9663 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9664
385203ed
DD
96652011-02-04 David Daney <ddaney@caviumnetworks.com>
9666
9667 * mips-linux-tdep.c: Include xml-syscall.h.
9668 (mips_linux_get_syscall_number): New function.
9669 (mips_linux_init_abi): Add calls to
9670 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9671 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9672 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9673 * syscalls/mips-n32-linux.xml: New file.
9674 * syscalls/mips-n64-linux.xml: New file.
9675 * syscalls/mips-o32-linux.xml: New file.
9676
9277c30c
UW
96772011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9678
9679 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9680 Complain about inverted range entries.
9681 (dwarf2_record_block_ranges): Likewise.
9682
a3be7890
TJB
96832011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9684
9685 Fix some typos.
9686 * breakpoint.c (update_watchpoint): Fix name of the
9687 update_global_location_list function.
9688 (print_one_breakpoint): Fix typo.
9689 (_initialize_breakpoint): Remove extra space in hbreak help
9690 string.
9691 * breakpoint.h (struct bp_location) <length>: Fix field
9692 description.
9693
041274d8
PA
96942011-02-04 Pedro Alves <pedro@codesourcery.com>
9695
9696 * regcache.c (registers_changed_ptid): Don't explictly always
9697 clear `current_regcache'. Only clear current_thread_ptid and
9698 current_thread_arch when PTID matches. Only reinit the frame
9699 cache if PTID matches the current inferior_ptid. Move alloca(0)
9700 call to ...
9701 (registers_changed): ... here.
9702
c1c2ab58
UW
97032011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9704
9705 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9706 starts with __stack_chk_guard as stack guard symbol.
9707
9011945e
AB
97082011-02-03 Andrew Burgess <aburgess@broadcom.com>
9709
9710 * disasm.c (compare_lines): Handle the end of sequence markers
9711 within the line table to better support disassembling over
9712 compilation unit boundaries.
9713
e0634ccf
UW
97142011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9715
9716 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9717 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9718 implementation even if no symbols are available.
9719 (thumb_analyze_prologue): Update call to skip_prologue_function.
9720 (arm_analyze_prologue): Likewise.
9721
0e9e9abd
UW
97222011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9723
9724 * arm-tdep.c: Include "observer.h".
9725 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9726 (arm_exidx_data_key): New static variable.
9727 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9728 (struct arm_exidx_data): Likewise.
9729 (arm_exidx_data_free): New function.
9730 (arm_compare_exidx_entries): Likewise.
9731 (arm_obj_section_from_vma): Likewise.
9732 (arm_exidx_new_objfile): Likewise.
9733 (arm_find_exidx_entry): Likewise.
9734 (arm_exidx_fill_cache): Likewise.
9735 (arm_exidx_unwind_sniffer): Likewise.
9736 (arm_exidx_unwind): New global variable.
9737 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9738 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9739 observer. Register arm_exidx_data_key as objfile data.
9740
2e9e421f
UW
97412011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9742
9743 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9744 due to accessing uninitialized variable. Fix indentation.
9745
580688f3
PA
97462011-02-02 Pedro Alves <pedro@codesourcery.com>
9747
9748 * c-valprint.c (c_value_print): When doing virtual base pointer
9749 adjustment, create a new value with adjusted contents rather than
9750 changing the contents of the value being printed (and getting it
9751 wrong).
9752
3d2c1d41
PA
97532011-02-02 Pedro Alves <pedro@codesourcery.com>
9754
9755 * xml-support.c (xml_find_attribute): New.
9756 (xinclude_start_include): Use it.
9757 * xml-support.h (xml_find_attribute): Declare.
9758 * memory-map.c (memory_map_start_memory)
9759 (memory_map_start_property): Use xml_find_attribute.
9760 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9761 xml_find_attribute.
9762 * remote.c (start_thread): Use xml_find_attribute.
9763 * solib-target.c (library_list_start_segment)
9764 (library_list_start_section, library_list_start_library)
9765 (library_list_start_list): Use xml_find_attribute.
9766 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9767 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9768 (tdesc_start_field): Use xml_find_attribute.
9769
0af3e2db
UW
97702011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9771
9772 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9773 (BUILD_OCL_VTYPES): Update.
9774
c1039e3c
JB
97752011-02-02 Joel Brobecker <brobecker@adacore.com>
9776
9777 * configure.ac: Work around non-GNU sed limitation when computing
9778 python version number.
9779 * configure: Regenerate.
9780
600ea1be
JK
97812011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9782
9783 Fix debug printing of TYPE_INSTANCE.
9784 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9785 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9786
56c12414
JK
97872011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9788
9789 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9790 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9791 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9792 * ada-operator.inc: Rename the file to ...
9793 * ada-operator.def: ... here, wrap all the entries by macro OP.
9794 * expprint.c (op_name_standard): Remove all the entries. Include
9795 "std-operator.def" instead.
9796 * expression.h (enum exp_opcode): Include "std-operator.def" and
9797 "ada-operator.def". Move all the entries ...
9798 * std-operator.def: ... here, wrap all the entries by macro OP.
9799
c52b559d
PP
98002011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9801
9802 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9803 * breakpoint.c (remove_jit_event_breakpoints): New function.
9804 * jit.c (jit_descriptor_addr): Delete.
9805 (registering_code): Delete.
9806 (clear_int): Delete.
9807 (jit_inferior_data): New variable.
9808 (struct jit_inferior_data): New type.
9809 (get_jit_inferior_data): New function.
9810 (jit_inferior_data_cleanup): New function.
9811 (jit_read_descriptor): Adjust.
9812 (jit_register_code): Adjust.
9813 (jit_breakpoint_re_set_internal): New function; move code here ...
9814 (jit_inferior_init): ... from here.
9815 (jit_breakpoint_re_set): Adjust.
9816 (jit_reset_inferior_data_and_breakpoints): New function.
9817 (jit_inferior_created_observer): Adjust.
9818 (jit_inferior_exit_hook): Adjust.
9819 (jit_executable_changed_observer): New function.
9820 (jit_event_handler): Adjust.
9821 (_initialize_jit): Adjust.
9822
e839132d
MS
98232011-01-31 Michael Snyder <msnyder@vmware.com>
9824
9825 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9826 line.
9827
47a80e90
TT
98282011-01-31 Tom Tromey <tromey@redhat.com>
9829
9830 PR python/12216:
9831 * python/python.c (execute_gdb_command): Call
9832 prevent_dont_repeat.
9833 * top.c (suppress_dont_repeat): New global.
9834 (dont_repeat): Use it.
9835 (prevent_dont_repeat): New function.
9836 * command.h (prevent_dont_repeat): Declare.
9837
45a43567
TT
98382011-01-31 Tom Tromey <tromey@redhat.com>
9839
9840 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9841 * python/py-breakpoint.c (bppy_set_silent): Use
9842 breakpoint_set_silent.
9843 (bppy_set_thread): Use breakpoint_set_thread.
9844 (bppy_set_task): Use breakpoint_set_task.
9845 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9846 (breakpoint_set_task): Declare.
9847 (make_breakpoint_silent): Remove.
9848 * breakpoint.c (breakpoint_set_silent): New function.
9849 (breakpoint_set_thread): Likewise.
9850 (breakpoint_set_task): Likewise.
9851 (make_breakpoint_silent): Remove.
9852
09d682a4
TT
98532011-01-31 Tom Tromey <tromey@redhat.com>
9854
9855 * breakpoint.h (user_breakpoint_p): Declare.
9856 * breakpoint.c (user_breakpoint_p): New function.
9857 (breakpoint_1): Use it.
9858 (save_breakpoints): Likewise.
9859
9c4ea6c5
JB
98602011-01-31 Joel Brobecker <brobecker@adacore.com>
9861
9862 * configure.ac: Add handling of Python distribution on Windows.
9863 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9864 sysconfig variables are not defined, then do not use them.
9865 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9866 instead. On Windows, return all paths using forward-slashes
9867 rather than backslashes.
9868
ac534cba
JB
98692011-01-31 Joel Brobecker <brobecker@adacore.com>
9870
9871 * configure.ac: Remove fallback behavior for building
9872 against Python. Remove tweaking of Python include path.
9873 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9874 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9875 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9876 Always restore CPPFLAGS and LIBS after linking test.
9877 * configure: Regenerated.
9878 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9879 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9880 * python/python-internal.h: Adjust includes of Python .h files.
9881
c2f0d045
JB
98822011-01-31 Joel Brobecker <brobecker@adacore.com>
9883
9884 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9885 in error message.
9886
6b0c4c1f
JB
98872011-01-31 Joel Brobecker <brobecker@adacore.com>
9888
9889 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9890 value test.
9891
672c9795
YQ
98922011-01-31 Yao Qi <yao@codesourcery.com>
9893
9894 * arm-linux-nat.c: Update calls to regcache_register_status
9895 instead of regcache_valid_p.
9896 * aix-thread.c: Likewise.
9897 * i386gnu-nat.c: Likewise.
9898
80b23b6a
JK
98992011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9900
9901 Fix crash.
9902 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9903 touching TYPE_FIELD_ARTIFICIAL.
9904
4cd712bd
RE
99052011-01-28 Richard Earnshaw <rearnsha@arm.com>
9906
9907 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9908 Committers.
9909
ffd5ec24
PA
99102011-01-28 Pedro Alves <pedro@codesourcery.com>
9911
9912 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9913 selected, don't try iterating over the traceframe's blocks.
9914 (tfile_has_stack): If there's no traceframe selected, then there's
9915 no stack.
9916 (tfile_has_registers): If there's no traceframe selected, then
9917 there's no registers.
9918
e8c9e0a1
PA
99192011-01-28 Pedro Alves <pedro@codesourcery.com>
9920
9921 * target.c (memory_xfer_partial): No need to restore shadows if we
9922 haven't read anything.
9923
de15c4ab
PA
99242011-01-28 Pedro Alves <pedro@codesourcery.com>
9925
9926 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9927 and val_print_scalar_formatted.
9928
9f41c731
PA
99292011-01-27 Pedro Alves <pedro@codesourcery.com>
9930
9931 * tracepoint.c (tfile_read): New.
9932 (tfile_open): Use it.
9933 (tfile_get_traceframe_address): Use it.
9934 (tfile_trace_find): Use it.
9935 (walk_blocks_callback_func): New typedef.
9936 (match_blocktype): New function.
9937 (traceframe_walk_blocks): New function.
9938 (traceframe_find_block_type): New function.
9939 (tfile_fetch_registers, tfile_xfer_partial)
9940 (tfile_get_trace_state_variable_value): Use
9941 traceframe_find_block_type and tfile_read.
9942
cdefc55d
KB
99432011-01-26 Kevin Buettner <kevinb@redhat.com>
9944
9945 * remote-mips.c: Add internationalization mark ups. Remove
9946 trailing \n from already marked up strings.
9947
a81766d8
TT
99482011-01-26 Tom Tromey <tromey@redhat.com>
9949
9950 * python/py-prettyprint.c (print_string_repr): Clear
9951 'addressprint' option when calling val_print_string.
9952 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9953 option when calling val_print_string.
9954
74aedc46
TT
99552011-01-26 Tom Tromey <tromey@redhat.com>
9956
9957 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9958 GDB_PY_LL_ARG.
9959 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9960 macros.
9961 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9962 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9963 (gdb_py_long_as_ulongest): New defines.
9964 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9965 (gdb_py_int_as_long): Declare.
9966 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9967 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9968 (valpy_long): Add comment.
9969 * python/py-utils.c (get_addr_from_python): Use
9970 gdb_py_long_as_ulongest. Handle overflow properly.
9971 (gdb_py_object_from_longest): New function.
9972 (gdb_py_object_from_ulongest): Likewise.
9973 (gdb_py_int_as_long): Likewise.
9974 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9975 * python/py-symtab.c (salpy_get_pc): Use
9976 gdb_py_long_from_ulongest.
9977 (salpy_get_line): Use PyInt_FromLong.
9978 * python/py-param.c (set_parameter_value): Use
9979 gdb_py_int_as_long.
9980 * python/py-lazy-string.c (stpy_get_address): Use
9981 gdb_py_long_from_ulongest.
9982 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9983 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9984 * python/py-breakpoint.c (bppy_set_thread): Use
9985 gdb_py_int_as_long.
9986 (bppy_set_task): Likewise.
9987 (bppy_set_ignore_count): Likewise.
9988 (bppy_set_hit_count): Likewise.
9989 * python/py-block.c (blpy_get_start): Use
9990 gdb_py_object_from_ulongest.
9991 (blpy_get_end): Likewise.
9992 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9993
e4f6d2ec
TJB
99942011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9995
9996 PR/symtab 11766:
9997 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9998 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9999 equality test for objfile, initialize addr_low if needed.
10000
b30aa278
PA
100012011-01-25 Pedro Alves <pedro@codesourcery.com>
10002
10003 * tui/tui-regs.c (tui_register_format): Remove dead code.
10004
ab2188aa
PA
100052011-01-25 Pedro Alves <pedro@codesourcery.com>
10006
10007 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10008 instead of print_scalar_formatted.
10009 (print_scalar_formatted): Don't handle 's' format strings here,
10010 and add an assertion that we never see such format here.
10011 * valprint.h (val_print_scalar_formatted): Declare.
10012 * valprint.c (val_print_scalar_formatted): New.
10013 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10014 instead of print_scalar_formatted.
10015 * jv-valprint.c (java_val_print): Ditto.
10016 * p-valprint.c (pascal_val_print): Ditto.
10017 * ada-valprint.c (ada_val_print_1): Ditto.
10018 * f-valprint.c (f_val_print): Ditto.
10019 * infcmd.c (registers_info): Ditto.
10020 * m2-valprint.c (m2_val_print): Ditto.
10021
66d61a4c
PA
100222011-01-25 Pedro Alves <pedro@codesourcery.com>
10023
10024 * m2-valprint.c (print_unbounded_array): Pass
10025 value_contents_for_printing rather than value_contents, to
10026 m2_print_array_contents. Also pass in the value.
10027
831adc1f
JK
100282011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10029
10030 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10031 (save_gdb_index_command): Switch to .gdb_index version 4.
10032
20622269
PA
100332011-01-25 Pedro Alves <pedro@codesourcery.com>
10034
10035 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10036 than frame_register, and always pass a valid value to val_print.
10037
585fdaa1
PA
100382011-01-25 Pedro Alves <pedro@codesourcery.com>
10039
10040 Centralize printing "<optimized out>".
10041
10042 * valprint.h (val_print_optimized_out): Declare.
10043 * cp-valprint.c (cp_print_value_fields): Use
10044 val_print_optimized_out.
10045 * jv-valprint.c (java_print_value_fields): Ditto.
10046 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10047 * printcmd.c (print_formatted): Ditto.
10048 * valprint.c (valprint_check_validity): Ditto.
10049 (value_check_printable): Ditto.
10050 (val_print_optimized_out): New.
10051
29ec5263
PA
100522011-01-25 Pedro Alves <pedro@codesourcery.com>
10053
10054 * infcmd.c (default_print_registers_info): Allocate values so to
10055 never pass a NULL value to val_print.
10056
de4127a3
PA
100572011-01-25 Pedro Alves <pedro@codesourcery.com>
10058
10059 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10060 boolean. Make sure to always pass a value that matches the
10061 contents buffer to callees. Preserve `address' for following
10062 iterations.
10063 * value.c (value_contents_for_printing_const): New.
10064 (value_address): Constify value argument.
10065 * value.h (value_contents_for_printing_const): Declare.
10066 (value_address): Constify value argument.
10067
ee99023e
PA
100682011-01-25 Pedro Alves <pedro@codesourcery.com>
10069
10070 * regcache.c (struct regcache_descr): Rename
10071 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10072 and sizeof_cooked_register_valid_p to
10073 sizeof_cooked_register_status.
10074 (init_regcache_descr): Adjust.
10075 (struct regcache): Rename register_valid_p field to
10076 register_status.
10077 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10078 (do_cooked_read): Adjust.
10079 (regcache_valid_p): Rename to ...
10080 (regcache_register_status): ... this. Adjust.
10081 (regcache_invalidate): Adjust.
10082 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10083 Adjust.
10084 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10085 as unavailable, not valid.
10086 (regcache_dump): Adjust.
10087 * regcache.h (enum register_status): New.
10088 (regcache_register_status): Declare.
10089 (regcache_invalidate): Delete declaration.
10090 * corelow.c (get_core_registers): Adjust.
10091 * tracepoint.c (tfile_fetch_registers): Adjust.
10092 * trad-frame.c (REG_VALUE): Rename to ...
10093 (TF_REG_VALUE): ... this.
10094 (REG_UNKNOWN): Rename to ...
10095 (TF_REG_UNKNOWN): ... this.
10096 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10097 * mi/mi-main.c (register_changed_p): Adjust.
10098
99e42fd8
PA
100992011-01-25 Pedro Alves <pedro@codesourcery.com>
10100
10101 * regcache.c (struct regcache_descr): Remove outdated comment.
10102 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10103 overallocate hack.
10104 (regcache_xmalloc): Rename to ...
10105 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10106 Allocate the regcache type accordingly.
10107 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10108 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10109 cooked registers, not raw.
10110 (regcache_dup_no_passthrough): Delete.
10111 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10112 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10113 mention obsolete write_register_bytes.
10114 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10115
f7605bc2
PA
101162011-01-25 Pedro Alves <pedro@codesourcery.com>
10117
10118 Stop remote_read_bytes from handling partial reads itself.
10119
10120 * remote-fileio.c: Include target.h.
10121 (remote_fileio_write_bytes): Delete.
10122 (remote_fileio_func_open, remote_fileio_func_write)
10123 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10124 target_read_memory.
10125 (remote_fileio_func_stat): Use target_read_memory and
10126 target_write_memory.
10127 (remote_fileio_func_gettimeofday): Use target_write_memory.
10128 (remote_fileio_func_system): Use target_read_memory.
10129 * remote.c (remote_write_bytes): Make it static.
10130 (remote_read_bytes): Don't handle partial reads here.
10131 * remote.h (remote_read_bytes): Delete declaration.
10132
efc0eabd
PA
101332011-01-25 Pedro Alves <pedro@codesourcery.com>
10134
10135 Simplify XML parsing a bit.
10136
10137 * xml-support.h (gdb_xml_parse_quick): Declare.
10138 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10139 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10140 parameter.
10141 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10142 gdb_xml_create_parser_and_cleanup_1.
10143 (gdb_xml_parse_quick): New.
10144 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10145 * osdata.c (osdata_parse): Ditto.
10146 * remote.c (remote_threads_info): Ditto.
10147 * solib-target.c (solib_target_parse_libraries): Ditto.
10148 * xml-syscall.c (syscall_parse_xml): Ditto.
10149 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10150
314d366a
KB
101512011-01-24 Kevin Buettner <kevinb@redhat.com>
10152
10153 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10154 with remote-mips.o added to gdb_target_obs.
10155 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10156
a491d753
PA
101572011-01-24 Pedro Alves <pedro@codesourcery.com>
10158
10159 * ada-valprint.c (val_print_packed_array_elements): Pass the
10160 correct struct value to val_print.
10161 (ada_val_print_1): Ditto.
10162
490f124f
PA
101632011-01-24 Pedro Alves <pedro@codesourcery.com>
10164
10165 Don't lose embedded_offset in printing routines throughout.
10166
10167 * valprint.h (val_print_array_elements): Change prototype.
10168 * valprint.c (val_print_array_elements): Add `embedded_offset'
10169 parameter, and adjust to pass it down to val_print, while passing
10170 `valaddr' or `address' unmodified. Take embedded_offset into
10171 account when checking repetitions.
10172 * c-valprint.c (c_val_print): Pass embedded_offset to
10173 val_print_array_elements instead of adjusting `valaddr' and
10174 `address'.
10175 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10176 embedded_offset to val_print_array_elements instead of adjusting
10177 `valaddr'.
10178 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10179 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10180 val_print_array_elements and pascal_object_print_value_fields
10181 instead of adjusting `valaddr'.
10182 (pascal_object_print_value_fields): Add `offset' parameter, and
10183 adjust to use it.
10184 (pascal_object_print_value): Add `offset' parameter, and adjust to
10185 use it.
10186 (pascal_object_print_static_field): Use
10187 value_contents_for_printing/value_embedded_offset, rather than
10188 value_contents.
10189 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10190 parameter, and adjust to use it. Use
10191 value_contents_for_printing/value_embedded_offset, rather than
10192 value_contents.
10193 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10194 (ada_val_print_array): Add `offset' parameter, and adjust to use
10195 it.
10196 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10197 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10198 Instead work with offsets. Use
10199 value_contents_for_printing/value_embedded_offset, rather than
10200 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10201 and use value_from_pointer to extract a target pointer, rather
10202 than value_from_longest.
10203 (print_variant_part): Add `offset' parameter. Replace
10204 `outer_valaddr' parameter by a new `outer_offset' parameter.
10205 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10206 (ada_value_print): Use
10207 value_contents_for_printing/value_embedded_offset, rather than
10208 value_contents.
10209 (print_record): Add `offset' parameter, and adjust to pass it
10210 down.
10211 (print_field_values): Add `offset' parameter. Replace
10212 `outer_valaddr' parameter by a new `outer_offset' parameter.
10213 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10214 Use value_contents_for_printing/value_embedded_offset, rather than
10215 value_contents.
10216 * d-valprint.c (dynamic_array_type): Use
10217 value_contents_for_printing/value_embedded_offset, rather than
10218 value_contents.
10219 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10220 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10221 (java_print_value_fields): Take `offset' into account. Don't
10222 re-adjust `valaddr'. Instead pass down adjusted offsets.
10223 (java_val_print): Take `embedded_offset' into account. Pass it to
10224 java_print_value_fields.
10225 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10226 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10227 down adjusted offsets.
10228 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10229 (f_val_print): Take `embedded_offset' into account.
10230
7bfc9434
JB
102312011-01-21 Joel Brobecker <brobecker@adacore.com>
10232
10233 * inflow.c: Include "gdbcmd.h".
10234 (interactive_mode): New static global, moved here from top.c.
10235 (show_interactive_mode): New function, moved here from top.c.
10236 use gdb_has_a_terminal instead of input_from_terminal_p to
10237 determine the current mode.
10238 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10239 setting.
10240 (_initialize_inflow): Add the "set/show interactive-mode"
10241 commands. Moved here from top.c, after having adjusted slightly
10242 the help text.
10243 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10244 to inflow.c.
10245 (input_from_terminal_p): Remove handling of "interactive-mode"
10246 setting, moved to infow.c.
10247 (init_main): Remove creation of the "set/show interactive-mode"
10248 commands, moved to inflow.c.
10249
44603653
JB
102502011-01-19 Joel Brobecker <brobecker@adacore.com>
10251
10252 * NEWS: Add entry for native ia64-hpux support.
10253
4694da01
TT
102542011-01-19 Tom Tromey <tromey@redhat.com>
10255
10256 PR mi/8618:
10257 * thread.c (free_thread): Free 'name'.
10258 (print_thread_info): Emit thread name. Change CLI output.
10259 (thread_name_command): New function.
10260 (do_captured_thread_select): Emit newline.
10261 (_initialize_thread): Register 'thread name' command.
10262 * target.h (struct target_ops) <to_thread_name>: New field.
10263 (target_thread_name): New macro.
10264 * target.c (update_current_target): Handle to_thread_name.
10265 * python/py-infthread.c (thpy_get_name): New function.
10266 (thpy_set_name): Likewise.
10267 (thread_object_getset): Add "name".
10268 * linux-nat.c (linux_nat_thread_name): New function.
10269 (linux_nat_add_target): Set to_thread_name.
10270 * gdbthread.h (struct thread_info) <name>: New field.
10271
10d44370
JB
102722011-01-18 Joel Brobecker <brobecker@adacore.com>
10273
10274 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10275 (ada_val_print_1): Likewise.
10276
e3acb115
JB
102772011-01-18 Joel Brobecker <brobecker@adacore.com>
10278
10279 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10280 upper limit address is not greater than the function end address
10281 when the upper limit could not be computed using the debugging
10282 info.
10283
dc92e161
TT
102842011-01-17 Tom Tromey <tromey@redhat.com>
10285
10286 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10287 get_regcomp_error.
10288 * utils.c: Include gdb_regex.h.
10289 (do_regfree_cleanup): New function.
10290 (make_regfree_cleanup): Likewise.
10291 (get_regcomp_error): Likewise.
10292 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10293
f55af66d
TT
102942011-01-17 Tom Tromey <tromey@redhat.com>
10295
10296 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10297 re_compile_fastmap.
10298
a5a44b53
PM
102992011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10300
10301 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10302 for internal variables.
10303 (last_was_structop): New static variable.
10304 (COMPLETE): New token.
10305 (field_exp): New rule to group all '.' suffix handling.
10306 Add mark_struct_expression calls when approriate to be able
10307 to correctly find fields for completion.
10308 (yylex): Adapt to handle field completion and set INTVAR when
10309 required.
10310
2c291032
YQ
103112011-01-14 Yao Qi <yao@codesourcery.com>
10312
10313 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10314 save_reggroup, restore_reggroup and all_reggroup.
10315
447b483c
JB
103162011-01-14 Joel Brobecker <brobecker@adacore.com>
10317
10318 * ada-valprint. (ada_printchar): Use the correct type length
10319 in call to ada_emit_char.
10320 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10321
7b64a93b
PM
103222011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10323
10324 * solib-som.h (hpux_major_release): Declare variable here.
10325 * solib-som.c: Remove <sys/utsname.h> header.
10326 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10327 (hpux_major_release): Make global, change default value to
10328 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10329 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10330 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10331 Add "solib-som.h" header.
10332 (set_hpux_major_release): New function.
10333 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10334
4e18c053
MF
103352011-01-14 Mike Frysinger <vapier@gentoo.org>
10336
10337 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10338
a9df6b22
JB
103392011-01-14 Joel Brobecker <brobecker@adacore.com>
10340
10341 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10342 new-line at end of warning message.
10343 (ia64_hpux_store_register): Remove trailing new-line at end of
10344 error message.
10345 * ia64-hpux-tdep.c: Rephrase comment.
10346 * solib-ia64-hpux.c (struct dld_info): Change type of field
10347 dld_flags from "long long" to ULONGEST.
10348
ecb956dd
PA
103492011-01-14 Pedro Alves <pedro@codesourcery.com>
10350
10351 * target.h (deprecated_child_ops): Delete declaration.
10352 * target.c (deprecated_child_ops): Delete definition.
10353
76adfcae
PA
103542011-01-14 Pedro Alves <pedro@codesourcery.com>
10355
10356 * Makefile.in (hpux-thread.o): Delete rule.
10357 * configure.ac: Don't check for HPUX DCE threads support.
10358 * configure, config.in: Regenerate.
10359 * hppa-hpux-nat.c (child_suppress_run): Delete.
10360 (hppa_hpux_child_can_run): Delete.
10361 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10362 * hpux-thread.c: Delete.
10363
042e866e
JB
103642011-01-13 Joel Brobecker <brobecker@adacore.com>
10365
10366 * hpux-thread.c (hpux_pid_to_str): Delete.
10367
4ffa5a33
JB
103682011-01-13 Joel Brobecker <brobecker@adacore.com>
10369
10370 * ada-valprint.c (ada_emit_char): Remove strange code.
10371 Check that c is <= UCHAR_MAX before passing it to isascii.
10372 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10373
de8fa76c
JB
103742011-01-13 Joel Brobecker <brobecker@adacore.com>
10375
10376 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10377 to the case where instream is stdin.
10378
c4de7027
JB
103792011-01-13 Joel Brobecker <brobecker@adacore.com>
10380
10381 * ia64-tdep.h (struct regcache): Forward declare.
10382 (struct ia64_infcall_ops): New struct type.
10383 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10384 and "infcall_ops".
10385 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10386 Renames ia64_find_global_pointer.
10387 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10388 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10389 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10390 methods.
10391 (ia64_infcall_ops): New static global constant.
10392 (ia64_gdbarch_init): Set tdep->infcall_ops.
10393 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10394 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10395 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10396 (ia64_hpux_dummy_code): New static global constant.
10397 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10398 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10399 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10400 New function.
10401 (ia64_hpux_infcall_ops): New static global constant.
10402 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10403 for inferior function calls to work properly on ia64-hpux.
10404
77ca787b
JB
104052011-01-13 Joel Brobecker <brobecker@adacore.com>
10406
10407 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10408 * ia64-tdep.h (struct frame_info): forward declaration.
10409 (struct gdbarch_tdep): Add field size_of_register_frame.
10410 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10411 to determine the size of the register frame.
10412 (ia64_size_of_register_frame): New function.
10413 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10414 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10415 (IA64_HPUX_UREG_REASON): New macro.
10416 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10417 New functions.
10418 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10419 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10420 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10421 objects.
10422
92c9a463
JB
104232011-01-13 Joel Brobecker <brobecker@adacore.com>
10424
10425 Add support for ia64-hpux.
10426 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10427 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10428
10429 * configure.host: Add handling for ia64-hpux hosts. Add associated
10430 floatformats.
10431 * configure.tgt: Add handling for ia64-hpux targets.
10432 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10433 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10434 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10435
f688d93f
JB
104362011-01-13 Joel Brobecker <brobecker@adacore.com>
10437
10438 [ttrace] Compute thread list immediately after attach.
10439 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10440 New subprogram.
10441 (inf_ttrace_attach): Use it.
10442
1b89e62f
JB
104432011-01-13 Joel Brobecker <brobecker@adacore.com>
10444
10445 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10446 if we could not determine the frame's function address. Instead,
10447 use the frame's PC, and then continue.
10448
3e5e6e2a
JB
104492011-01-13 Joel Brobecker <brobecker@adacore.com>
10450
10451 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10452 not already defined.
10453
825d6d8a
JB
104542011-01-13 Joel Brobecker <brobecker@adacore.com>
10455
10456 * ia64-tdep.c (ia64_struct_type_p): New function.
10457 (ia64_extract_return_value): Handle integral values that are
10458 less than 8 bytes long.
10459 (ia64_push_dummy_call): Likewise.
10460
7458e667
JB
104612011-01-13 Joel Brobecker <brobecker@adacore.com>
10462
10463 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10464 floatformat_ia64_ext.
10465 (floatformat_ia64_ext_big): New static const.
10466 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10467
1b05df00
TT
104682011-01-12 Tom Tromey <tromey@redhat.com>
10469
10470 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10471 messages.
10472 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10473 (mi_cmd_thread_list_ids): Likewise.
10474 (mi_cmd_data_list_changed_registers): Likewise.
10475 (mi_cmd_data_list_register_values): Likewise.
10476 (mi_cmd_data_write_register_values): Likewise.
10477 (mi_cmd_data_evaluate_expression): Likewise.
10478 (mi_cmd_data_read_memory): Likewise.
10479 (mi_cmd_data_read_memory_bytes): Likewise.
10480 (mi_cmd_data_write_memory): Likewise.
10481 (mi_cmd_enable_timings): Likewise.
10482 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10483 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10484 (mi_cmd_var_delete): Likewise.
10485 (mi_cmd_var_set_format): Likewise.
10486 (mi_cmd_var_show_format): Likewise.
10487 (mi_cmd_var_info_num_children): Likewise.
10488 (mi_cmd_var_list_children): Likewise.
10489 (mi_cmd_var_info_type): Likewise.
10490 (mi_cmd_var_info_expression): Likewise.
10491 (mi_cmd_var_show_attributes): Likewise.
10492 (mi_cmd_var_assign): Likewise.
10493 (mi_cmd_var_update): Likewise.
10494 (mi_cmd_enable_pretty_printing): Likewise.
10495 (mi_cmd_var_set_update_range): Likewise.
10496 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10497 messages.
10498 (mi_cmd_target_file_put): Likewise.
10499 (mi_cmd_target_file_delete): Likewise.
10500 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10501 messages.
10502 (mi_cmd_stack_info_depth): Likewise.
10503 (mi_cmd_stack_list_locals): Likewise.
10504 (mi_cmd_stack_list_args): Likewise.
10505 (mi_cmd_stack_select_frame): Likewise.
10506 (mi_cmd_stack_select_frame): Likewise.
10507 (mi_cmd_stack_info_frame): Likewise.
10508 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10509 messages.
10510 (mi_cmd_file_list_exec_source_files): Likewise.
10511 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10512 (mi_cmd_env_cd): Likewise.
10513 (mi_cmd_env_path): Likewise.
10514 (mi_cmd_env_dir): Likewise.
10515 (mi_cmd_inferior_tty_show): Likewise.
10516 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10517 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10518 (mi_cmd_break_watch): Likewise.
10519
ad422571
TJB
105202011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10521
10522 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10523 (ppc_linux_insert_hw_breakpoint): Likewise.
10524 (ppc_linux_remove_hw_breakpoint): Likewise.
10525 (ppc_linux_insert_watchpoint): Likewise.
10526
c2ff108b
JK
105272011-01-12 Andrew Burgess <aburgess@broadcom.com>
10528 Jan Kratochvil <jan.kratochvil@redhat.com>
10529
10530 PR fortran/11104 and DWARF unbound arrays detection.
10531 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10532 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10533 unspecified upper bound.
10534 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10535 variables array_size_array, tmp_type and offset_item. New variable
10536 array. Remove call to f77_get_upperbound. New variables array_type
10537 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10538 the final call to deprecated_set_value_type.
10539
41e8491f
JK
105402011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10541
10542 Make value allocations more lazy.
10543 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10544 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10545 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10546 instead of allocate_value and set_value_lazy.
10547 * findvar.c (value_of_register_lazy): Likewise.
10548 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10549 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10550 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10551 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10552 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10553 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10554 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10555 the end, remove set_value_lazy there.
10556 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10557 instead of allocate_value and set_value_lazy when possible.
10558 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10559 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10560 of allocate_value and set_value_lazy.
10561 (value_from_contents_and_address): Use allocate_value_lazy instead of
10562 allocate_value and set_value_lazy when possible.
10563
b716877b
AB
105642011-01-12 Andrew Burgess <aburgess@broadcom.com>
10565
10566 * disasm.c (dump_insns): Support dumping opcodes for MI.
10567 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10568 dumping of instruction opcodes.
10569
d5ae309f
JB
105702011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10571
10572 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10573 appropiately.
10574
98871305
TT
105752011-01-11 Tom Tromey <tromey@redhat.com>
10576
10577 * thread.c (do_captured_thread_select): Emit newline before
10578 printing frame.
10579
c378eb4e
MS
105802011-01-11 Michael Snyder <msnyder@vmware.com>
10581
10582 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10583 * score-tdep.c: Ditto.
10584 * score-tdep.h: Ditto.
10585 * ser-base.c: Ditto.
10586 * ser-go32.c: Ditto.
10587 * serial.c: Ditto.
10588 * serial.h: Ditto.
10589 * ser-mingw.c: Ditto.
10590 * ser-pipe.c: Ditto.
10591 * ser-tcp.c: Ditto.
10592 * ser-unix.c: Ditto.
10593 * sh64-tdep.c: Ditto.
10594 * shnbsd-nat.c: Ditto.
10595 * sh-tdep.c: Ditto.
10596 * sh-tdep.h: Ditto.
10597 * solib.c: Ditto.
10598 * solib-darwin.c: Ditto.
10599 * solib-frv.c: Ditto.
10600 * solib.h: Ditto.
10601 * solib-irix.c: Ditto.
10602 * solib-osf.c: Ditto.
10603 * solib-pa64.c: Ditto.
10604 * solib-som.c: Ditto.
10605 * solib-spu.c: Ditto.
10606 * solib-sunos.c: Ditto.
10607 * solib-svr4.c: Ditto.
10608 * solist.h: Ditto.
10609 * sol-thread.c: Ditto.
10610 * somread.c: Ditto.
10611 * source.c: Ditto.
10612 * source.h: Ditto.
10613 * sparc64-linux-tdep.c: Ditto.
10614 * sparc64-tdep.c: Ditto.
10615 * sparc-linux-nat.c: Ditto.
10616 * sparc-linux-tdep.c: Ditto.
10617 * sparc-sol2-nat.c: Ditto.
10618 * sparc-sol2-tdep.c: Ditto.
10619 * sparc-tdep.c: Ditto.
10620 * sparc-tdep.h: Ditto.
10621 * spu-tdep.c: Ditto.
10622 * stabsread.c: Ditto.
10623 * stabsread.h: Ditto.
10624 * stack.c: Ditto.
10625 * symfile.c: Ditto.
10626 * symfile.h: Ditto.
10627 * symmisc.c: Ditto.
10628 * symtab.c: Ditto.
10629 * symtab.h: Ditto.
10630 * target.c: Ditto.
10631 * target-descriptions.c: Ditto.
10632 * target-descriptions.h: Ditto.
10633 * target.h: Ditto.
10634 * target-memory.c: Ditto.
10635 * terminal.h: Ditto.
10636 * thread.c: Ditto.
10637 * top.c: Ditto.
10638 * tracepoint.c: Ditto.
10639 * tracepoint.h: Ditto.
10640 * trad-frame.h: Ditto.
10641 * typeprint.c: Ditto.
10642
581e13c1
MS
106432011-01-11 Michael Snyder <msnyder@vmware.com>
10644
10645 * ui-file.c: Comment cleanup, mostly periods and spaces.
10646 * ui-file.h: Ditto.
10647 * ui-out.c: Ditto.
10648 * ui-out.h: Ditto.
10649 * utils.c: Ditto.
10650 * v850-tdep.c: Ditto.
10651 * valarith.c: Ditto.
10652 * valops.c: Ditto.
10653 * valprint.c: Ditto.
10654 * valprint.h: Ditto.
10655 * value.c: Ditto.
10656 * value.h: Ditto.
10657 * varobj.c: Ditto.
10658 * varobj.h: Ditto.
10659 * vax-tdep.c: Ditto.
10660 * vec.c: Ditto.
10661 * vec.h: Ditto.
10662 * version.h: Ditto.
10663 * windows-nat.c: Ditto.
10664 * windows-tdep.c: Ditto.
10665 * xcoffread.c: Ditto.
10666 * xcoffsolib.c: Ditto.
10667 * xml-support.c: Ditto.
10668 * xstormy16-tdep.c: Ditto.
10669 * xtensa-tdep.c: Ditto.
10670 * xtensa-tdep.h: Ditto.
10671
90e4670f
TJB
106722011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10673
10674 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10675 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10676
e09342b5
TJB
106772011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10678 Thiago Jung Bauermann <bauerman@br.ibm.com>
10679
10680 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10681 * breakpoint.h
e09342b5
TJB
10682 (struct breakpoint_ops) <resources_needed>: New method.
10683 Initialize to NULL in all existing breakpoint_ops instances.
10684 (struct breakpoint) <exact>: New field.
10685 (target_exact_watchpoints): Declare external global.
10686 * breakpoint.c (target_exact_watchpoints): New global flag.
10687 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10688 b->enable_state to bp_enabled before calling
10689 hw_watchpoint_used_count.
10690 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10691 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10692 if available.
10693 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10694 if the watchpoint is exact.
10695 (resources_needed_watchpoint): New function.
10696 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10697 (watch_command_1): Set b->exact if the user asked for an exact
10698 watchpoint and one can be set.
10699 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10700 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10701 the user asks for an exact watchpoint and one can be set. Return
10702 number of needed debug registers to watch the expression.
10703 * gdbtypes.c (is_scalar_type): New function, based on
10704 valprint.c:scalar_type_p.
10705 (is_scalar_type_recursive): New function.
10706 * gdbtypes.h (is_scalar_type_recursive): Declare.
10707 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10708 handle regions when ranged watchpoints are available.
10709 (create_watchpoint_request): New function.
10710 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10711 create_watchpoint_request.
10712 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10713 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10714 `set powerpc' and `show powerpc' commands.
10715 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10716 Mention documentation comment in the target macro.
10717 (target_region_ok_for_hw_watchpoint): Document return value.
10718
9fa40276
TJB
107192011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10720
10721 * breakpoint.c (update_watchpoint): Decide on using a software or
10722 hardware watchpoint after the bp_locations are created.
10723
77b06cd7
TJB
107242010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10725
10726 Convert hardware watchpoints to use breakpoint_ops.
10727 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10728 <insert_location>: ... this. Return int instead of void.
10729 Accept pointer to struct bp_location instead of pointer to
10730 struct breakpoint. Adapt all implementations.
f2eb0bc8 10731 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10732 <remove_location>: ... this. Accept pointer to struct bp_location
10733 instead of pointer to struct breakpoint. Adapt all implementations.
10734 * breakpoint.c (insert_catchpoint): Delete function.
10735 (insert_bp_location): Call the watchpoint or catchpoint's
10736 breakpoint_ops.insert method.
10737 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10738 breakpoint_ops.remove method.
10739 (insert_watchpoint, remove_watchpoint): New functions.
10740 (watchpoint_breakpoint_ops): New structure.
10741 (watch_command_1): Initialize the OPS field.
10742 * inf-child.c (inf_child_insert_fork_catchpoint)
10743 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10744 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10745 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10746 Delete functions.
10747 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10748 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10749 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10750 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10751 * target.c (update_current_target): Change default implementation of
10752 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10753 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10754 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10755 to_set_syscall_catchpoint to return_one.
10756 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10757 (debug_to_insert_exec_catchpoint): Report return value.
10758 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10759 (to_insert_exec_catchpoint): Change declaration to return int instead
10760 of void.
10761
9b20d036
MS
107622011-01-11 Michael Snyder <msnyder@vmware.com>
10763
10764 * arm-tdep.c: Internationalization.
10765 * c-lang.c: Ditto.
10766 * charset.c: Ditto.
10767 * fork-child.c: Ditto.
10768 * nto-procfs.c: Ditto.
10769 * ppc-sysv-tdep.c: Ditto.
10770 * procfs.c: Ditto.
10771 * remote-mips.c: Ditto.
10772 * remote.c: Ditto.
10773 * rs6000-nat.c: Ditto.
10774 * rs6000-tdep.c: Ditto.
10775 * target.c: Ditto.
10776 * valops.c: Ditto.
10777 * value.c: Ditto.
10778 * xml-support.c: Ditto.
10779 * mi/mi-cmd-break.c: Ditto.
10780 * mi/mi-cmd-var.c: Ditto.
10781 * mi/mi-interp.c: Ditto.
10782 * mi/mi-main.c: Ditto.
10783
dae477fe
AB
107842011-01-11 Andrew Burgess <aburgess@broadcom.com>
10785
10786 * remote-sim.c (gdbsim_store_register): Update API to
10787 sim_store_register to check more error conditions.
10788
0df8b418
MS
107892011-01-10 Michael Snyder <msnyder@vmware.com>
10790
10791 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10792 * nto-tdep.c: Ditto.
10793 * nto-tdep.h: Ditto.
10794 * objc-exp.y: Ditto.
10795 * objc-lang.c: Ditto.
10796 * objfiles.c: Ditto.
10797 * objfiles.h: Ditto.
10798 * observer.c: Ditto.
10799 * opencl-lang.c: Ditto.
10800 * osabi.c: Ditto.
10801 * parse.c: Ditto.
10802 * parser-defs.h: Ditto.
10803 * p-exp.y: Ditto.
10804 * p-lang.c: Ditto.
10805 * posix-hdep.c: Ditto.
10806 * ppcbug-rom.c: Ditto.
10807 * ppc-linux-nat.c: Ditto.
10808 * ppc-linux-tdep.c: Ditto.
10809 * ppc-linux-tdep.h: Ditto.
10810 * ppcnbsd-tdep.c: Ditto.
10811 * ppcobsd-tdep.c: Ditto.
10812 * ppcobsd-tdep.h: Ditto.
10813 * ppc-sysv-tdep.c: Ditto.
10814 * ppc-tdep.h: Ditto.
10815 * printcmd.c: Ditto.
10816 * proc-abi.c: Ditto.
10817 * proc-flags.c: Ditto.
10818 * procfs.c: Ditto.
10819 * proc-utils.h: Ditto.
10820 * progspace.h: Ditto.
10821 * prologue-value.c: Ditto.
10822 * prologue-value.h: Ditto.
10823 * psympriv.h: Ditto.
10824 * psymtab.c: Ditto.
10825 * p-typeprint.c: Ditto.
10826 * p-valprint.c: Ditto.
10827 * ravenscar-sparc-thread.c: Ditto.
10828 * ravenscar-thread.c: Ditto.
10829 * ravenscar-thread.h: Ditto.
10830 * record.c: Ditto.
10831 * regcache.c: Ditto.
10832 * regcache.h: Ditto.
10833 * remote.c: Ditto.
10834 * remote-fileio.c: Ditto.
10835 * remote-fileio.h: Ditto.
10836 * remote.h: Ditto.
10837 * remote-m32r-sdi.c: Ditto.
10838 * remote-mips.c: Ditto.
10839 * remote-sim.c: Ditto.
10840 * rs6000-aix-tdep.c: Ditto.
10841 * rs6000-nat.c: Ditto.
10842 * rs6000-tdep.c: Ditto.
10843
0d7a18f7
MS
108442011-01-10 Michael Snyder <msnyder@vmware.com>
10845
10846 * charset.c (validate): Internationalization.
10847 * coffread.c (read_one_sym): Ditto.
10848 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10849 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10850 * inflow.c (new_tty): Ditto.
10851 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10852 * m32c-tdep.c (m32c_return_value): Ditto.
10853 * mep-tdep.c (mep_store_return_value): Ditto.
10854 * score-tdep.c (score7_fetch_insn): Ditto.
10855 * ser-mingw.c (pipe_windows_open): Ditto.
10856 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10857 * spu-tdep.c (spu_register_type): Ditto.
10858 * tracepoint.c (trace_find_command): Ditto.
10859 * valarith.c (value_pos): Ditto.
10860
9a153e0b
JB
108612011-01-10 Joel Brobecker <brobecker@adacore.com>
10862
10863 * ada-valprint.c (printstr): Minor comment reformatting.
10864
35ecd2d6
MS
108652011-01-08 Michael Snyder <msnyder@vmware.com>
10866
10867 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10868 markup.
10869
1777feb0
MS
108702011-01-08 Michael Snyder <msnyder@vmware.com>
10871
10872 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10873 * hppa-hpux-tdep.c: Ditto.
10874 * hppa-linux-nat.c: Ditto.
10875 * hppa-linux-tdep.c: Ditto.
10876 * hppanbsd-tdep.c: Ditto.
10877 * hppa-tdep.c: Ditto.
10878 * hppa-tdep.h: Ditto.
10879 * hpux-thread.c: Ditto.
10880 * i386-cygwin-tdep.c: Ditto.
10881 * i386-darwin-nat.c: Ditto.
10882 * i386gnu-nat.c: Ditto.
10883 * i386-linux-nat.c: Ditto.
10884 * i386-linux-tdep.c: Ditto.
10885 * i386-nat.c: Ditto.
10886 * i386-nat.h: Ditto.
10887 * i386nbsd-tdep.c: Ditto.
10888 * i386-sol2-nat.c: Ditto.
10889 * i386-stub.c: Ditto.
10890 * i386-tdep.c: Ditto.
10891 * i386-tdep.h: Ditto.
10892 * i387-tdep.c: Ditto.
10893 * ia64-linux-nat.c: Ditto.
10894 * ia64-linux-tdep.c: Ditto.
10895 * ia64-tdep.c: Ditto.
10896 * infcall.c: Ditto.
10897 * infcall.h: Ditto.
10898 * infcmd.c: Ditto.
10899 * inferior.c: Ditto.
10900 * inferior.h: Ditto.
10901 * infloop.c: Ditto.
10902 * inflow.c: Ditto.
10903 * infrun.c: Ditto.
10904 * interps.c: Ditto.
10905 * interps.h: Ditto.
10906 * iq2000-tdep.c: Ditto.
10907 * irix5-nat.c: Ditto.
10908 * jit.c: Ditto.
10909 * jit.h: Ditto.
10910 * jv-exp.y: Ditto.
10911 * jv-lang.c: Ditto.
10912 * jv-lang.h: Ditto.
10913 * jv-typeprint.c: Ditto.
10914 * jv-valprint.c: Ditto.
10915 * language.c: Ditto.
10916 * language.h: Ditto.
10917 * linespec.c: Ditto.
10918 * linux-fork.c: Ditto.
10919 * linux-nat.c: Ditto.
10920 * linux-thread-db.c: Ditto.
10921 * lm32-tdep.c: Ditto.
10922
025bb325
MS
109232011-01-08 Michael Snyder <msnyder@vmware.com>
10924
10925 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10926 * m2-lang.c: Ditto.
10927 * m2-typeprint.c: Ditto.
10928 * m2-valprint.c: Ditto.
10929 * m32c-tdep.c: Ditto.
10930 * m32r-linux-nat.c: Ditto.
10931 * m32r-rom.c: Ditto.
10932 * m32r-tdep.c: Ditto.
10933 * m32r-tdep.h: Ditto.
10934 * m68hc11-tdep.c: Ditto.
10935 * m58klinux-nat.c: Ditto.
10936 * m68k-tdep.c: Ditto.
10937 * m88k-tdep.c: Ditto.
10938 * m88k-tdep.h: Ditto.
10939 * machoread.c: Ditto.
10940 * macrocmd.c: Ditto.
10941 * macroexp.c: Ditto.
10942 * macrotab.c: Ditto.
10943 * main.c: Ditto.
10944 * maint.c: Ditto.
10945 * mdebugread.c: Ditto.
10946 * mdebugread.h: Ditto.
10947 * memattr.c: Ditto.
10948 * memattr.h: Ditto.
10949 * memory-map.h: Ditto.
10950 * mep-tdep.c: Ditto.
10951 * microblaze-rom.c: Ditto.
10952 * microblaze-tdep.c: Ditto.
10953 * minsyms.c: Ditto.
10954 * mips-irix-tdep.c: Ditto.
10955 * mips-linux-nat.c: Ditto.
10956 * mips-linux-tdep.c: Ditto.
10957 * mips-linux-tdep.h: Ditto.
10958 * mipsnbsd-nat.c: Ditto.
10959 * mipsnbsd-tdep.c: Ditto.
10960 * mipsread.c: Ditto.
10961 * mips-tdep.c: Ditto.
10962 * mips-tdep.h: Ditto.
10963 * mn10300-linux-tdep.c: Ditto.
10964 * mn10300-tdep.c: Ditto.
10965 * mn10300-tdep.h: Ditto.
10966 * monitor.c: Ditto.
10967 * monitor.h: Ditto.
10968 * moxie-tdep.c: Ditto.
10969 * moxie-tdep.h: Ditto.
10970 * mt-tdep.c: Ditto.
10971
1642781b
MF
109722011-01-08 Mike Frysinger <vapier@gentoo.org>
10973
10974 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10975
394b0adb
JB
109762011-01-08 Robert Millan <rmh@gnu.org>
10977
10978 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10979
b670013c
MS
109802011-01-07 Michael Snyder <msnyder@vmware.com>
10981
10982 * charset.c (_initialize_charset): Fix typo in string.
10983
a743e542
MS
109842011-01-07 Michael Snyder <msnyder@vmware.com>
10985
10986 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10987 for i18n.
f2eb0bc8 10988 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10989 Split line so that operator goes to beginning of line.
10990 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10991 assignment out of if statement.
10992
0963b4bd
MS
109932011-01-07 Michael Snyder <msnyder@vmware.com>
10994
10995 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10996 * ada-lang.h: Ditto.
10997 * ada-tasks.c: Ditto.
10998 * ada-valprint.c: Ditto.
10999 * aix-threads.c: Ditto.
11000 * alpha-linux-nat.c: Ditto.
11001 * alpha-linux-tdep.c: Ditto.
11002 * alpha-mdebug-tdep.c: Ditto.
11003 * alpha-nat.c: Ditto.
11004 * alpha-osf1-tdep.c: Ditto.
11005 * alpha-tdep.c: Ditto.
11006 * alphabsd-nat.c: Ditto.
11007 * alphabsd-tdep.c: Ditto.
11008 * amd64-darwin-tdep.c: Ditto.
11009 * amd64-linux-nat.c: Ditto.
11010 * amd64-linux-tdep.c: Ditto.
11011 * amd64-sol2-tdep.c: Ditto.
11012 * amd64-tdep.c: Ditto.
11013 * amd64-fbsd-tdep.c: Ditto.
11014 * amd64-nbsd-tdep.c: Ditto.
11015 * amd64-obsd-tdep.c: Ditto.
11016 * amd64-linux-nat.c: Ditto.
11017 * amd64-linux-tdep.c: Ditto.
11018 * arm-tdep.c: Ditto.
11019 * arm-tdep.h: Ditto.
11020 * armnbsd-nat.c: Ditto.
11021 * avr-tdep.c: Ditto.
11022 * bfin-tdep.c: Ditto.
11023 * bsd-kvm.c: Ditto.
11024 * c-typeprintc: Ditto.
11025 * c-valprint.c: Ditto.
11026 * coff-pe-read.h: Ditto.
11027 * coffreead.c: Ditto.
11028 * cris-tdep.c: Ditto.
11029 * d-lang.c: Ditto.
11030 * darwin-nat-info.c: Ditto.
11031 * darwin-nat.c: Ditto.
11032 * dbug-rom.c: Ditto.
11033 * dbxread.c: Ditto.
11034 * dcache.c: Ditto.
11035 * dcache.h: Ditto.
11036 * dec-thread.c: Ditto.
11037 * defs.h: Ditto.
11038 * demangle.c: Ditto.
11039 * dicos-tdep.c: Ditto.
11040 * dictionary.c: Ditto.
11041 * dictionary.h: Ditto.
11042 * dink32-rom.c: Ditto.
11043 * disasm.c: Ditto.
11044 * doublest.c: Ditto.
11045 * dsrec.c: Ditto.
11046 * dummy-frame.c: Ditto.
11047 * dwarf2-frame.c: Ditto.
11048 * dwarf2expr.c: Ditto.
11049 * dwarf2loc.c: Ditto.
11050 * dwarf2read.c: Ditto.
11051 * elfread.c: Ditto.
11052 * environ.c: Ditto.
11053 * eval.c: Ditto.
11054 * event-top.h: Ditto.
11055 * exceptions.c: Ditto.
11056 * exceptions.h: Ditto.
11057 * exec.c: Ditto.
11058 * expprint.c: Ditto.
11059 * expression.h: Ditto.
11060 * f-exp.y: Ditto.
11061 * f-lang.c: Ditto.
11062 * f-lang.h: Ditto.
11063 * f-typeprint.c: Ditto.
11064 * f-valprint.c: Ditto.
11065 * fbsd-nat.c: Ditto.
11066 * findvar.c: Ditto.
11067 * fork-child.c: Ditto.
11068 * frame.c: Ditto.
11069 * frame.h: Ditto.
11070 * frv-linux-tdep.c: Ditto.
11071 * frv-tdep.c: Ditto.
11072 * gcore.c: Ditto.
11073 * gdb-stabs.h: Ditto.
11074 * gdb_assert.h: Ditto.
11075 * gdb_string.h: Ditto.
11076 * gdb_thread_db.h: Ditto.
11077 * gdb_wait.h: Ditto.
11078 * gdbarch.sh: Ditto.
11079 * gdbcore.h: Ditto.
11080 * gdbthread.h: Ditto.
11081 * gdbtypes.c: Ditto.
11082 * gdbtypes.h: Ditto.
11083 * gnu-nat.c: Ditto.
11084 * gnu-nat.h: Ditto.
11085 * gnu-v2-abi.c: Ditto.
11086 * gnu-v3-abi.c: Ditto.
11087 * go32-nat.c: Ditto.
11088 * gdbarch.c: Regenerate.
11089 * gdbarch.h: Regenerate.
11090
ac74f770
MS
110912011-01-07 Michael Snyder <msnyder@vmware.com>
11092
11093 * ax-gdb.c: Adjust some long output strings.
11094 * breakpoint.c: Ditto.
11095 * charset.c: Ditto.
11096 * cp-abi.c: Ditto.
11097 * infcall.c: Ditto.
11098 * infrun.c: Ditto.
11099 * linux-nat.c: Ditto.
11100 * solib-pa64.c: Ditto.
11101 * solib-som.c: Ditto.
11102
d8e22779
TT
111032011-01-06 Tom Tromey <tromey@redhat.com>
11104
11105 PR python/12367:
11106 * NEWS: Add item.
11107 * python/python.c (GdbMethods): Add "newest_frame" method.
11108 * python/python-internal.h (gdbpy_newest_frame): Declare.
11109 * python/py-frame.c (gdbpy_newest_frame): New function.
11110
a255712f
PP
111112010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11112
11113 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11114 * jit.c (jit_debug): New variable.
11115 (show_jit_debug): New function.
11116 (struct target_buffer): Use ULONGEST.
11117 (bfd_open_from_target_memory): Likewise.
11118 (jit_register_code, jit_inferior_init): Add debug output.
11119 (_initialize_jit): Register "debug jit" command.
11120
ccfc3d6e
TT
111212011-01-06 Tom Tromey <tromey@redhat.com>
11122
11123 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11124 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11125 and ARCH_FRAME.
11126
57126e4a
TT
111272011-01-06 Tom Tromey <tromey@redhat.com>
11128
11129 * python/py-frame.c (frapy_block): Use get_frame_block.
11130
16dfc9ce
JB
111312011-01-06 Joel Brobecker <brobecker@adacore.com>
11132
11133 Do not stop on SIGPRIO signals by default
11134 * infrun.c (_initialize_infrun): Unset signal_stop and
11135 signal_print for TARGET_SIGNAL_PRIO.
11136
b1ce2347
JB
111372011-01-06 Joel Brobecker <brobecker@adacore.com>
11138
11139 * ada-tasks.c: Fix style violation in comment.
11140
8f7e195f
JB
111412011-01-06 Joel Brobecker <brobecker@adacore.com>
11142
11143 * linespec.c (decode_compound, find_method): Remove trailing \n
11144 at end of error string.
11145 * solib-irix.c (irix_current_sos): Likewise.
11146 * varobj.c (uninstall_variable): Likewise.
11147
e9bdf92c
JB
111482011-01-06 Joel Brobecker <brobecker@adacore.com>
11149
11150 * copyright.py: New script.
11151 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11152 Launch emacs without exec'ing. Call copyright.py afterwards.
11153
3e43a32a
MS
111542011-01-05 Michael Snyder <msnyder@vmware.com>
11155
11156 * addrmap.c: Shorten lines of >= 80 columns.
11157 * arch-utils.c: Ditto.
11158 * arch-utils.h: Ditto.
11159 * ax-gdb.c: Ditto.
11160 * ax-general.c: Ditto.
11161 * bcache.c: Ditto.
11162 * blockframe.c: Ditto.
11163 * breakpoint.c: Ditto.
11164 * buildsym.c: Ditto.
11165 * c-lang.c: Ditto.
11166 * c-typeprint.c: Ditto.
11167 * charset.c: Ditto.
11168 * coffread.c: Ditto.
11169 * command.h: Ditto.
11170 * corelow.c: Ditto.
11171 * cp-abi.c: Ditto.
11172 * cp-namespace.c: Ditto.
11173 * cp-support.c: Ditto.
11174 * dbug-rom.c: Ditto.
11175 * dbxread.c: Ditto.
11176 * defs.h: Ditto.
11177 * dfp.c: Ditto.
11178 * dfp.h: Ditto.
11179 * dictionary.c: Ditto.
11180 * disasm.c: Ditto.
11181 * doublest.c: Ditto.
11182 * dwarf2-frame.c: Ditto.
11183 * dwarf2expr.c: Ditto.
11184 * dwarf2loc.c: Ditto.
11185 * dwarf2read.c: Ditto.
11186 * elfread.c: Ditto.
11187 * eval.c: Ditto.
11188 * event-loop.c: Ditto.
11189 * event-loop.h: Ditto.
11190 * exceptions.h: Ditto.
11191 * exec.c: Ditto.
11192 * expprint.c: Ditto.
11193 * expression.h: Ditto.
11194 * f-lang.c: Ditto.
11195 * f-valprint.c: Ditto.
11196 * findcmd.c: Ditto.
11197 * frame-base.c: Ditto.
11198 * frame-unwind.c: Ditto.
11199 * frame-unwind.h: Ditto.
11200 * frame.c: Ditto.
11201 * frame.h: Ditto.
11202 * gcore.c: Ditto.
11203 * gdb-stabs.h: Ditto.
11204 * gdb_assert.h: Ditto.
11205 * gdb_dirent.h: Ditto.
11206 * gdb_obstack.h: Ditto.
11207 * gdbcore.h: Ditto.
11208 * gdbtypes.c: Ditto.
11209 * gdbtypes.h: Ditto.
11210 * inf-ttrace.c: Ditto.
11211 * infcall.c: Ditto.
11212 * infcmd.c: Ditto.
11213 * inflow.c: Ditto.
11214 * infrun.c: Ditto.
11215 * inline-frame.h: Ditto.
11216 * language.c: Ditto.
11217 * language.h: Ditto.
11218 * libunwind-frame.c: Ditto.
11219 * libunwind-frame.h: Ditto.
11220 * linespec.c: Ditto.
11221 * linux-nat.c: Ditto.
11222 * linux-nat.h: Ditto.
11223 * linux-thread-db.c: Ditto.
11224 * machoread.c: Ditto.
11225 * macroexp.c: Ditto.
11226 * macrotab.c: Ditto.
11227 * main.c: Ditto.
11228 * maint.c: Ditto.
11229 * mdebugread.c: Ditto.
11230 * memattr.c: Ditto.
11231 * minsyms.c: Ditto.
11232 * monitor.c: Ditto.
11233 * monitor.h: Ditto.
11234 * objfiles.c: Ditto.
11235 * objfiles.h: Ditto.
11236 * osabi.c: Ditto.
11237 * p-typeprint.c: Ditto.
11238 * p-valprint.c: Ditto.
11239 * parse.c: Ditto.
11240 * printcmd.c: Ditto.
11241 * proc-events.c: Ditto.
11242 * procfs.c: Ditto.
11243 * progspace.c: Ditto.
11244 * progspace.h: Ditto.
11245 * psympriv.h: Ditto.
11246 * psymtab.c: Ditto.
11247 * record.c: Ditto.
11248 * regcache.c: Ditto.
11249 * regcache.h: Ditto.
11250 * remote-fileio.c: Ditto.
11251 * remote.c: Ditto.
11252 * ser-mingw.c: Ditto.
11253 * ser-tcp.c: Ditto.
11254 * ser-unix.c: Ditto.
11255 * serial.c: Ditto.
11256 * serial.h: Ditto.
11257 * solib-frv.c: Ditto.
11258 * solib-irix.c: Ditto.
11259 * solib-osf.c: Ditto.
11260 * solib-pa64.c: Ditto.
11261 * solib-som.c: Ditto.
11262 * solib-sunos.c: Ditto.
11263 * solib-svr4.c: Ditto.
11264 * solib-target.c: Ditto.
11265 * solib.c: Ditto.
11266 * somread.c: Ditto.
11267 * source.c: Ditto.
11268 * stabsread.c: Ditto.
11269 * stabsread.c: Ditto.
11270 * stack.c: Ditto.
11271 * stack.h: Ditto.
11272 * symfile-mem.c: Ditto.
11273 * symfile.c: Ditto.
11274 * symfile.h: Ditto.
11275 * symmisc.c: Ditto.
11276 * symtab.c: Ditto.
11277 * symtab.h: Ditto.
11278 * target-descriptions.c: Ditto.
11279 * target-memory.c: Ditto.
11280 * target.c: Ditto.
11281 * target.h: Ditto.
11282 * terminal.h: Ditto.
11283 * thread.c: Ditto.
11284 * top.c: Ditto.
11285 * tracepoint.c: Ditto.
11286 * tracepoint.h: Ditto.
11287 * ui-file.c: Ditto.
11288 * ui-file.h: Ditto.
11289 * ui-out.h: Ditto.
11290 * user-regs.c: Ditto.
11291 * user-regs.h: Ditto.
11292 * utils.c: Ditto.
11293 * valarith.c: Ditto.
11294 * valops.c: Ditto.
11295 * valprint.c: Ditto.
11296 * valprint.h: Ditto.
11297 * value.c: Ditto.
11298 * varobj.c: Ditto.
11299 * varobj.h: Ditto.
11300 * vec.h: Ditto.
11301 * xcoffread.c: Ditto.
11302 * xcoffsolib.c: Ditto.
11303 * xcoffsolib.h: Ditto.
11304 * xml-syscall.c: Ditto.
11305 * xml-tdesc.c: Ditto.
11306
9a2b4c1b
MS
113072011-01-05 Michael Snyder <msnyder@vmware.com>
11308
11309 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11310 * cli/cli-decode.c: Ditto.
11311 * cli/cli-dump.c: Ditto.
11312 * cli/cli-logging.c: Ditto.
11313 * cli/cli-script.c: Ditto.
11314 * cli/cli-setshow.c: Ditto.
11315 * common/signals.c: Ditto.
11316 * mi/mi-cmd-break.c: Ditto.
11317 * mi/mi-cmd-disas.c: Ditto.
11318 * mi/mi-cmd-stack.c: Ditto.
11319 * mi/mi-cmd-var.c: Ditto.
11320 * mi/mi-cmds.c: Ditto.
11321 * mi/mi-common.h: Ditto.
11322 * mi/mi-console.c: Ditto.
11323 * mi/mi-interp.c: Ditto.
11324 * mi/mi-main.c: Ditto.
11325 * osf-share/cma_attr.c: Ditto.
11326 * osf-share/cma_deb_core.h: Ditto.
11327 * osf-share/cma_debug_client.h: Ditto.
11328 * osf-share/cma_handle.h: Ditto.
11329 * osf-share/cma_mutex.h: Ditto.
11330 * osf-share/cma_stack_int.h: Ditto.
11331 * osf-share/cma_tcb_defs.h: Ditto.
11332 * python/py-auto-load.c: Ditto.
11333 * python/py-breakpoint.c: Ditto.
11334 * python/py-cmd.c: Ditto.
11335 * python/py-frame.c: Ditto.
11336 * python/py-objfile.c: Ditto.
11337 * python/py-param.c: Ditto.
11338 * python/py-progspace.c: Ditto.
11339 * python/py-symbol.c: Ditto.
11340 * python/py-value.c: Ditto.
11341 * python/python-internal.h: Ditto.
11342 * python/python.c: Ditto.
11343 * tui/tui-data.c: Ditto.
11344 * tui/tui-disasm.c: Ditto.
11345 * tui/tui-hooks.c: Ditto.
11346 * tui/tui-io.c: Ditto.
11347 * tui/tui-layout.c: Ditto.
11348 * tui/tui-regs.c: Ditto.
11349 * tui/tui-source.c: Ditto.
11350 * tui/tui-stack.c: Ditto.
11351 * tui/tui-win.c: Ditto.
11352 * tui/tui-windata.c: Ditto.
11353 * tui/tui-winsource.c: Ditto.
11354
44944448
JB
113552011-01-05 Joel Brobecker <brobecker@adacore.com>
11356
11357 * configure.ac, gdb.1: Copyright year update.
11358
ebedcab5
JK
113592011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11360
11361 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11362 this_pc_in_block, morestack_msym and morestack_name. Check for
11363 "__morestack" minimal symbol there.
11364
e5cc9f32
JB
113652011-01-03 Joel Brobecker <brobecker@adacore.com>
11366
11367 * symfile.c (find_sym_fns): Add call to dont_repeat.
11368
7b6bb8da
JB
113692011-01-01 Joel Brobecker <brobecker@adacore.com>
11370
11371 Copyright year update in most files (performed by copyright.sh).
11372
71ce852c
JB
113732011-01-01 Joel Brobecker <brobecker@adacore.com>
11374
11375 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11376
c3c1ebe8 11377For older changes see ChangeLog-2010.
c906108c
SS
11378\f
11379Local Variables:
11380mode: change-log
11381left-margin: 8
11382fill-column: 74
11383version-control: never
57da7796 11384coding: utf-8
c906108c 11385End:
This page took 2.319358 seconds and 4 git commands to generate.