]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[sim]
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87326c78
DD
12011-11-28 DJ Delorie <dj@redhat.com>
2
3 * NEWS: Mention RL78 simulator.
4
1e3a8f45
JB
52011-11-28 Joel Brobecker <brobecker@adacore.com>
6
7 * symfile.h (struct quick_symbol_functions): Fix the documentation
8 of field map_matching_symbols, as symbols are sorted using
9 strcmp_iw_ordered, not strcmp_iw.
10
265e52c3
JB
112011-11-28 Paul Hilfinger <hilfinger@adacore.com>
12
13 * symfile.h (struct quick_symbol_functions): Update the
14 documentation for field map_matching_symbols.
15
1a1d5513
JB
162011-11-28 Joel Brobecker <brobecker@adacore.com>
17
18 * ada-lang.c (compare_names): Fix wrong return value in case
19 string1 starts with the same contents as string2, followed
20 by an underscore that do not start a symbol name suffix.
21
5d9c5995
PM
222011-11-28 Phil Muldoon <pmuldoon@redhat.com>
23
24 PR python/13369
25 PR python/13374
26
27 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
28 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
29 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
30 exceptions.
31 * python/py-type.c (typy_strip_typedefs): Ditto.
32 (typy_legacy_template_argument): Ditto.
33 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
34 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
35
2bf50f6f
JB
362011-11-27 Joel Brobecker <brobecker@acacore.com>
37
38 * remote.c (remote_get_tracepoint_status): Delete addrbuf
39 local variable. Avoid use of sprintf_vma.
40
744ab88c
SD
412011-11-27 Sanjoy Das <sdas@igalia.com>
42
43 Fix regression in jit.exp.
44 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
45 (jit_register_code): Set the jit_objfile_data field to the correct
46 value.
47
46ad3598
UW
482011-11-25  Uros Bizjak  <ubizjak@gmail.com>
49
50 * alpha-tdep.c (br_opcode): New.
51 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
52 (alpha_deal_with_atomic_sequence): New function.
53 (alpha_gdbarch_init): Handle single stepping of atomic sequences
54 with alpha_deal_with_atomic_sequence.
55
e4c5f296
TG
562011-11-24 Tristan Gingold <gingold@adacore.com>
57
58 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
59 fields. Add oso_sym, end_sym and nbr_syms.
60 (macho_register_oso): Change interface.
61 (macho_symtab_add_minsym): New function.
62 (macho_symtab_read): Rewritten.
63 (get_archive_prefix_len): Remove trailing blanks.
64 (oso_el_compare_name): Add comment.
65 (struct macho_sym_hash_entry): New structure.
66 (macho_relocate_common_syms): Remove.
67 (macho_sym_hash_newfunc): New function.
68 (macho_resolve_oso_sym_with_minsym): Likewise.
69 (macho_add_oso_symfile): Rewritten.
70 (macho_symfile_read_all_oso): Remove trailing blanks.
71 Adjust code to free oso vector.
72 (macho_symfile_read): Likewise.
73 Move code to initialize minimal symbol
74
130854df
MR
752011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
76
77 * mips-tdep.c (extended_offset): Fix formatting.
78
3d7bb9d9
DE
792011-11-23 Doug Evans <dje@google.com>
80
81 * dwarf2read.c (dw2_lookup_symtab): Add comment.
82 (dw2_expand_symtabs_with_filename): Ditto.
83 (dw2_expand_symtabs_matching): Ditto.
84 (dw2_map_symbol_filenames): Ditto.
85
1fbf5ada
JB
862011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
87
88 * ada-lang.c (assign_aggregate): Minor reformatting.
89
d984108d
JB
902011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
91
92 * ada-lang.c (assign_aggregate): Remove declaration of local
93 variable `i' which is shadowing another variable with the same
94 name declared in the outer scope.
95
18af8284
JB
962011-11-23 Joel Brobecker <brobecker@adacore.com>
97
98 * ada-lang.c (get_base_type): Renames base_type. Adjust all
99 calls throughout this file.
100
1fc7b5d7
JB
1012011-11-23 Joel Brobecker <brobecker@adacore.com>
102
103 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
104 FormatMessage.
105
36dfb11c
TT
1062011-11-22 Tom Tromey <tromey@redhat.com>
107
108 PR mi/8444:
109 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
110 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
111 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
112 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
113 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
114 (print_it_catch_syscall, print_it_catch_exec)
115 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
116 (bpstat_print): Add 'kind' argument. Handle
117 TARGET_WAITKIND_LOADED.
118 * infrun.c (normal_stop): Update for bpstat_print change. Don't
119 handle TARGET_WAITKIND_LOADED here.
120 * breakpoint.h (bpstat_print): Update.
121
5bd6aa83
TT
1222011-11-22 Tom Tromey <tromey@redhat.com>
123
124 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
125
f5afdc18
TT
1262011-11-22 Tom Tromey <tromey@redhat.com>
127
128 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
129 Use static_assert to check the size of
130 async_reason_string_lookup.
131 * common/gdb_assert.h (static_assert): New macro.
132
a3769e0c
AM
1332011-11-22 Alan Modra <amodra@gmail.com>
134
135 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
136 destination calculation. Don't expect >> to sign extend. Don't
137 add a break if branch lands inside the sequence anywhere.
138
56767571
KS
1392011-11-21 Keith Seitz <keiths@redhat.com>
140
141 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
142 -var-evaluate-expression of an enumeration and fix expected result.
143 * gdb.mi/mi2-varvdisplay.exp: Likewise.
144
8443c207
KY
1452011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
146
147 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
148 the case where osdata->items is empty. Rename column names to a
149 canonical form to avoid problems with unusual column names.
150
97643830
YQ
1512011-11-21 Yao Qi <yao@codesourcery.com>
152
153 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
154
f196051f
SS
1552011-11-20 Stan Shebs <stan@codesourcery.com>
156
157 * NEWS: Mention tracepoint additions.
158 * breakpoint.h (struct tracepoint): New field traceframe_usage.
159 * breakpoint.c (print_one_breakpoint_location): Identify
160 tracepoints as such when reporting hit counts, report
161 trace buffer usage.
162 (create_tracepoint_from_upload): Copy status info.
163 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
164 add fields user_name, notes, start_time, stop_time.
165 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
166 * tracepoint.c (trace_user): New global.
167 (trace_notes): New global.
168 (trace_stop_notes): New global.
169 (start_tracing): Add argument and trace note handling.
170 (stop_tracing): Ditto.
171 (trace_start_command): Add notes argument.
172 (trace_stop_command): Ditto.
173 (trace_status_command): Report additional status info.
174 (trace_status_mi): Similarly.
175 (trace_save): Update, record tracepoint status.
176 (set_disconnected_tracing): Call target method directly.
177 (send_disconnected_tracing_value): Remove.
178 (set_trace_user): New function.
179 (set_trace_notes): New function.
180 (set_trace_stop_notes): New function.
181 (parse_trace_status): Handle additional status.
182 (parse_tracepoint_status): New function.
183 (parse_tracepoint_definition): Call it.
184 (tfile_get_tracepoint_status): New function.
185 (init_tfile_ops): Use it.
186 (_initialize_tracepoint): Add new setshows.
187 * target.h (struct target_ops): New methods to_get_tracepoint_status
188 and to_set_trace_notes.
189 (target_get_tracepoint_status): New macro.
190 (target_set_trace_notes): New macro.
191 * target.c (update_current_target): Add new methods.
192 * remote.c (remote_get_tracepoint_status): New function.
193 (remote_set_trace_notes): New function.
194 (init_remote_ops): Add them.
195 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
196 (mi_cmd_trace_stop): Ditto.
197
3623dc3a
SD
1982011-11-20 Sanjoy Das <sdas@igalia.com>
199
200 * jit.c: Include regcache.h.
201 (jit_gdbarch_data, jit_frame_unwind): New static variables.
202 (jit_unwind_reg_set_impl, free_reg_value_impl)
203 (jit_unwind_reg_get_impl, jit_frame_sniffer)
204 (jit_frame_unwind_stop_reason, jit_frame_this_id)
205 (jit_frame_prev_register, jit_dealloc_cache)
206 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
207 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
208 jit_prepend_unwinder.
209 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
210
1825a88d
SD
2112011-11-20 Sanjoy Das <sdas@igalia.com>
212
213 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
214 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
215 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
216 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
217 (finalize_symtab, jit_object_close_impl)
218 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
219 (free_objfile_data): New functions.
220 (_initialize_jit): Register jit_objfile_data with a proper cleanup
221 function.
222
784c47ee
SD
2232011-11-20 Sanjoy Das <sdas@igalia.com>
224
225 * jit.c: Include gdb-dlfcn.h.
226 (loaded_jit_reader, reader_init_fn_sym): New static variables.
227 (jit_reader_load, jit_reader_load_command)
228 (jit_reader_unload_command): New functions.
229 (_initialize_jit): Add commands "jit-reader-load" and
230 "jit-reader-unload".
231
a2d08b9e
SD
2322011-11-20 Sanjoy Das <sdas@igalia.com>
233
234 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
235 * config.in: Add new #define HAVE_LIBDL.
236 * configure.ac: Add check for -ldl.
237 * configure: Re-generated by autoconf.
238 * gdb-dlfcn.c: New file.
239 * gdb-dlfcn.h: New file.
240
b8e0a31c
SD
2412011-11-20 Sanjoy Das <sdas@igalia.com>
242
243 * config.in: Add new #defines: JIT_READER_DIR and
244 JIT_READER_DIR_RELOCATABLE.
245 * configure.ac: New GDB directory entry for jit-reader-dir.
246 * configure: Re-generated by autoconf.
247 * jit.c: New static variable: const char *jit_reader_dir.
248 (_initialize_jit): Relocate jit_reader_dir.
249
f997c383
SD
2502011-11-20 Sanjoy Das <sdas@igalia.com>
251
252 * Makefile.in: Add jit-reader.h as a header. Have it installed in
253 $(includedir)/gdb.
254 * configure.ac: Generate a correct value for TARGET_PTR for
255 jit-reader.h. Tell configure to generate jit-reader.h from
256 jit-reader.in.
257 * configure: Re-generated by autoconf.
258 * jit-reader.in: New file.
259 * jit.c: Include jit-reader.h.
260
dc8c0494
SD
2612011-11-20 Sanjoy Das <sdas@igalia.com>
262
263 * MAINTAINERS (Write After Approval): Add myself to the list.
264
01efb936
UW
2652011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
266
267 * findvar.c (read_frame_register_value): Respect value_offset
268 of the register value. Remove big-endian special case.
269
732f3f12
TT
2702011-11-18 Tom Tromey <tromey@redhat.com>
271
272 PR build/7196:
273 * remote.c (putpkt_for_catch_errors): New function.
274 (remote_kill): Use it.
275
bfccc43c
YQ
2762011-11-18 Yao Qi <yao@codesourcery.com>
277
278 * breakpoint.c (create_breakpoint): Produce query message according to
279 breakpoint's type.
280 Allocate tracepoint per correct type.
281 Don't check SALs for pending fast tracepoints.
282 * tracepoint.c (process_tracepoint_on_disconnect): New.
283 (disconnect_tracing): Call process_tracepoint_on_disconnect.
284
3ea46bff
YQ
2852011-11-18 Yao Qi <yao@codesourcery.com>
286
287 * breakpoint.c (install_breakpoint): Add one more parameter so that
288 update_global_location_list is called conditionally.
289 (create_fork_vfork_event_catchpoint): Update.
290 (create_syscall_event_catchpoint): Update.
291 (create_breakpoint_sal): Update.
292 (create_breakpoint_sal): Update. Call do_cleanups before
293 install_breakpoint.
294 * ada-lang.c (create_ada_exception_catchpoint): Update.
295 * breakpoint.h (install_breakpoint): Update declaration.
296
598cfb71
UW
2972011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
298
299 * spu-tdep.c (spu_return_value): Fix handling of
300 TYPE_CALLING_CONVENTION annotation.
301
caf4328c
UW
3022011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
303
304 * skip.c (skip_function_command): Work around uninitialized
305 variable warning.
306
2b54dda2
DM
3072011-11-16 David S. Miller <davem@davemloft.net>
308
309 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
310 'tv_usec' to long for printf since these fields have a type which
311 varies.
312
93bf33fd
DE
3132011-11-15 Doug Evans <dje@google.com>
314
315 * buildsym.c (add_symbol_to_list): Delete outdated comment.
316
9cc10fd1
PK
3172011-11-15 Paul Koning <paul_koning@dell.com>
318
319 * python/py-type.c (typy_get_composite): New function.
320 (typy_nonzero): New function.
321 (typy_values): Rename from typy_fields.
322 (typy_fields): New function.
323 (typy_length): Raise exception if not struct, union, or enum type.
324 (typy_getitem): Ditto.
325 (typy_has_key): Ditto.
326 (typy_make_iter): Ditto.
327
c011a4f4
DE
3282011-11-15 Doug Evans <dje@google.com>
329
330 * NEWS: Mention new parameter basenames-may-differ.
331 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
332 ! basenames_may_differ.
333 * psymtab.c (lookup_partial_symtab): Ditto.
334 * symtab.c (lookup_symtab): Ditto.
335 (basenames_may_differ): New global.
336 (_initialize_symtab): New parameter basenames-may-differ.
337 * symtab.h (basenames_may_differ): Declare.
338
865ecab4
LM
3392011-11-15 Pedro Alves <pedro@codesourcery.com>
340 Luis Machado <lgustavo@codesourcery.com>
341
342 * auxv.c: Include observer.h.
343 (auxv_inferior_data_cleanup): New.
344 (invalidate_auxv_cache_inf): New.
345 (invalidate_auxv_cache): New.
346 (get_auxv_inferior_data): New.
347 (auxv_inferior_data): New static global.
348 (auxv_info): New structure.
349 (target_auxv_search): Use get_auxv_inferior_data instead of
350 target_read_alloc and don't free cached buffers.
351 (fprint_target_auxv): Likewise
352 (_initialize_auxv): Register per-inferior auxv cache and register
353 observers to invalidate auxv cache when needed.
354
ed59ded5
DE
3552011-11-14 Doug Evans <dje@google.com>
356
357 Make "!" an alias for "shell".
358 * NEWS: Add mention.
359 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
360 adding "!" command, always add it.
361 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
362 command of length one.
363
405f8e94
SS
3642011-11-14 Stan Shebs <stan@codesourcery.com>
365 Kwok Cheung Yeung <kcy@codesourcery.com>
366
367 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
368 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
369 the minimum instruction size for fast tracepoints.
370 * target.h (struct target_ops): Add new method
371 to_get_min_fast_tracepoint_insn_len.
372 (target_get_min_fast_tracepoint_insn_len): New.
373 * target.c (update_current_target): Set up new target operation.
374 * remote.c (remote_write_bytes_aux): Fix typo.
375 (remote_get_min_fast_tracepoint_insn_len): New.
376 (init_remote_ops): Initialize new field.
377
3e05895e
TT
3782011-11-14 Tom Tromey <tromey@redhat.com>
379
380 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
381 (encode_actions): Likewise.
382
1e4d1764
YQ
3832011-11-14 Yao Qi <yao@codesourcery.com>
384
385 * remote.c (struct remote_state): <install_in_trace> new field.
386 (PACKET_InstallInTrace): New enum value.
387 (remote_install_in_trace_feature): Support InstallInTrace.
388 (remote_supports_install_in_trace): Likewise.
389 (remote_protocol_features): Likewise.
390 (_initialize_remote): Likewise.
391 (remote_can_download_tracepoint): New.
392 * target.h (struct target): New field
393 `to_can_download_tracepoint'.
394 (target_can_download_tracepoint): New macro.
395 * target.c (update_current_target): Update.
396 * breakpoint.h (struct bp_location): Add comment on field
397 `duplicate'.
3ccd4ac6
YQ
398 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
399 and tracepoint.
1e4d1764
YQ
400 (remove_breakpoints): Don't remove tracepoints.
401 (tracepoint_locations_match ): New.
402 (breakpoint_locations_match): Call it.
403 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
404 (download_tracepoint_locations): New.
405 (update_global_location_list): Call it.
406 * tracepoint.c (find_matching_tracepoint): Delete.
407 (find_matching_tracepoint_location): Renamed from
408 find_matching_tracepoint. Return bp_location rather than
409 tracepoint.
410 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
411 tracepoint is found.
412
e8ba3115
YQ
4132011-11-14 Yao Qi <yao@codesourcery.com>
414
415 * target.h (struct target): <to_download_tracepoint> Change type
416 of parameter from tracepoint to bp_location.
417 * target.c (update_current_target): Update.
418 * tracepoint.c (start_tracing): Update.
419 * remote.c (remote_download_tracepoint): Remove loop for each location
420 of a tracepoint.
421
edcc485a
MR
4222011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
423
424 * i386-nat.c (i386_insert_hw_breakpoint): Call
425 i386_update_inferior_debug_regs.
426 (i386_remove_hw_breakpoint): Likewise.
427
3742cc8b
YQ
4282011-11-14 Yao Qi <yao@codesourcery.com>
429
430 * breakpoint.c (init_raw_breakpoint): Call
431 add_location_to_breakpoint to replace duplicated code.
432 (add_location_to_breakpoint): Adjust the breakpoint's
433 address prior to allocating a location.
434
71eba9c2 4352011-11-12 Matt Rice <ratmice@gmail.com>
436
437 * macrocmd.c (macro_no_macro_info): New function.
438 (macro_expand_command): Use macro_no_macro_info.
439 (macro_expand_once_command): Ditto.
440 (info_macro_command): Add argument processing,
441 move info_definitions_command here.
442 (_initialize_macrocmd): Remove info definitions command.
443 Add arguments to info macro help text.
444 * NEWS: Replace info definitions command with new info macro options.
445
731971ed
KS
4462011-11-11 Keith Seitz <keiths@redhat.com>
447
448 PR gdb/12843
449 * linespec.c (locate_first_half): Keep ':' if it looks
450 like it could be part of a Windows path starting with
451 a drive letter.
452
6953d224
PA
4532011-11-10 Pedro Alves <pedro@codesourcery.com>
454
455 * linux-nat.c (linux_nat_wait): Don't force waking up the event
456 loop when returning a TARGET_WAITKIND_NO_RESUMED.
457
0c94aa73
PA
4582011-11-10 Pedro Alves <pedro@codesourcery.com>
459
460 * target.c (target_waitstatus_to_string): Handle
461 TARGET_WAITKIND_NO_RESUMED.
462
f6b47be4
DE
4632011-11-10 Doug Evans <dje@google.com>
464
74e2f255
DE
465 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
466 `need_fullname'.
467 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
468 (map_partial_symbol_filenames): Ditto. All callers updated.
469 * psymtab.h (map_partial_symbol_filenames): Update prototype.
470 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
471 parameter need_fullname.
472
256f06f3
DE
473 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
474 * source.c (symtab_to_fullname): Ditto.
475
50f182aa
DE
476 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
477 * gdb-demangle.h: ... here. New file.
478 * demangle.c: #include "gdb-demangle.h".
479 (_initialize_demangler): Use initialize_file_ftype for prototype.
480 Move "set demangle" and "set asm-demangle" parameters here from utils.c
481 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
482 from utils.c
483 * utils.c: Update. #include "gdb-demangle.h".
484 * symtab.h (asm_demangle): Delete.
485 (demangle): Move declaration next to use.
486 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
487 * dwarf2read.c: #include "gdb-demangle.h".
488 * gnu-v2-abi.c: Ditto.
489 * jv-typeprint.c: Ditto.
490 * mdebugread.c: Ditto.
491 * p-typeprint.c: Ditto.
492 * stabsread.c: Ditto.
493 * printcmd.c: Ditto.
494 (asm_demangle): Delete declaration.
495 * tui/tui-stack.c: #include "gdb-demangle.h".
496
f6b47be4
DE
497 * python/py-type.c (typy_fields_items): Call check_typedef.
498
22355c90
JB
4992011-11-10 Joel Brobecker <brobecker@adacore.com>
500
501 * findvar.c (read_frame_register_value): Read the correct bytes
502 from registers on big-endian architectures.
503
bd119cf1 5042011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
505
506 * procfs.c (load_syscalls): Make a cleanup.
507 (open_procinfo_files): fd==0 is ok.
508
0a86f364
JB
5092011-11-10 Joel Brobecker <brobecker@adacore.com>
510
511 * procfs.c (iterate_over_mappings): Call do_cleanups before
512 returning.
513
9bc118a5
DE
5142011-11-09 Doug Evans <dje@google.com>
515
516 * gdbtypes.c (check_typedef): Document that this function can
517 throw an exception.
518
a7860e76
TT
5192011-11-09 Tom Tromey <tromey@redhat.com>
520
521 PR c++/13342:
522 * valops.c (value_full_object): Return early if real type is
523 smaller than the enclosing type.
524
60965737
YQ
5252011-11-08 Yao Qi <yao@codesourcery.com>
526
527 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
528
72a2e3dc
MI
5292011-11-08 Meador Inge <meadori@codesourcery.com>
530
531 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
532 register when the frame can't be determined.
533 * arm-tdep.c (arm_analyze_prologue): Ditto.
534
ce3b0ff7
SS
5352011-11-07 Stan Shebs <stan@codesourcery.com>
536
537 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
538
2b914b52
JB
5392011-11-07 Joel Brobecker <brobecker@adacore.com>
540
541 * infrun.c (handle_inferior_event): Minor reformatting.
542
6f809020
DE
5432011-11-05 Doug Evans <dje@google.com>
544
545 * source.c (forget_cached_source_info_for_objfile): Move call to
546 objfile->sf->qf->forget_cached_source_info outside of
547 ALL_OBJFILE_SYMTABS loop.
548 (forget_cached_source_info): Delete unused variable `s'.
549
75d12218
JK
5502011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
551
552 * i386-nat.c (dr_ref_count): Remove unused variable.
553
e565b837
DE
5542011-11-05 Doug Evans <dje@google.com>
555
556 * main.c (captured_main): Set lim_at_start before calling
557 make_command_stats_cleanup.
558
0a1c4d10
DE
5592011-11-04 Doug Evans <dje@google.com>
560
561 * utils.c: #include "timeval-utils.h".
562 (cmd_stats): Rename start_time to start_cpu_time.
563 New member start_wall_time.
564 (report_command_stats): Report wall time.
565 (make_command_stats_cleanup): Record start wall time.
566
a1d705ee
TT
5672011-11-04 Tom Tromey <tromey@redhat.com>
568
569 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
570
81de56be
RO
5712011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
572
573 * coff-pe-read.c: Include defs.h before bfd.h.
574
3ab1ec27
PM
5752011-11-04 Phil Muldoon <pmuldoon@redhat.com>
576
577 PR Python/13345
578
579 * python/python.c (python_run_simple_file): Expand tilde in path.
580
cd829959
PM
5812011-11-04 Phil Muldoon <pmuldoon@redhat.com>
582
583 PR Python/13363
584
585 * python/py-type.c (typy_lookup_type): Do not return a type in
586 an exception handler.
587
080ad648
JK
5882011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
589 Eli Zaretskii <eliz@gnu.org>
590
591 * linux-nat.c (_initialize_linux_nat): Improve help
592 for `info proc stat', `info proc status', `info proc cwd',
593 `info proc cmdline' and `info proc exe'.
594
3065dfb6
SS
5952011-11-02 Stan Shebs <stan@codesourcery.com>
596
597 String collection for tracepoints.
598 * NEWS: Mention string collection.
599 * common/ax.def (tracenz): New bytecode.
600 * ax-gdb.h (trace_string_kludge): Declare.
601 * ax-gdb.c: Include valprint.h and c-lang.h.
602 (trace_string_kludge): New global.
603 (gen_traced_pop): Add string case.
604 (agent_command): Add string case.
605 * tracepoint.h (decode_agent_options): Declare.
606 * tracepoint.c: Include cli-utils.h.
607 (decode_agent_options): New function.
608 (validate_actionline): Call it.
609 (encode_actions_1): Ditto.
610 * target.h (struct target_ops): New method to_supports_string_tracing.
611 (target_supports_string_tracing): New macro.
612 * target.c (update_current_target): Add to_supports_string_tracing.
613 * remote.c (struct remote_state): New field string_tracing.
614 (remote_string_tracing_feature): New function.
615 (remote_protocol_features): New feature tracenz.
616 (remote_supports_string_tracing): New function.
617 (init_remote_ops): Set to_supports_string_tracing.
618
f179e162
JK
6192011-11-02 Pedro Alves <pedro@codesourcery.com>
620 Jan Kratochvil <jan.kratochvil@redhat.com>
621
622 * linux-nat.c: Include cli/cli-utils.h.
623 (enum info_proc_what): New.
624 (linux_nat_info_proc_cmd): Rename to ...
625 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
626 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
627 status_f and stat_f from WHAT. Throw error on extra parameters.
628 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
629 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
630 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
631 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
632 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
633 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
634 `info proc cmdline', `info proc exe' and `info proc all' as real
635 subcommands of `info proc'.
636
7b35ec7f 6372011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
638
639 * Makefile.in: (SFILES): Add skip.c.
640 (HFILES_NO_SRCDIR): Add skip.h.
641 (COMMON_OBS): Add skip.o.
642 * skip.h, skip.c: New.
643 * breakpoint.h (set_default_breakpoint): Remove.
644 (get_sal_arch): Declare.
645 * breakpoint.c: Remove default_breakpoint_valid,
646 default_breakpoint_address, default_breakpoint_symtab,
647 default_breakpoint_line, default_breakpoint_pspace variables.
648 (get_sal_arch): Make public.
649 (set_default_breakpoint): Remove.
650 (parse_breakpoint_sals, create_breakpoint, clear_command,
651 decode_line_spec_1): Remove uses of default_breakpoint variables;
652 replaced with function calls into stack.c.
653 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
654 * cli/cli-cmds.c: Add skiplist.
655 (init_cmd_lists): Initialize skiplist.
656 (init_cli_cmds): Fix comment (classes of commands appear in
657 alphabetical order).
658 * infrun.c (handle_inferior_event): Add check that we don't step into
659 a function whose pc is marked for skip.
660 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
661 last_displayed_addr, last_displayed_symtab, last_displayed_line
662 variables.
663 (set_last_displayed_sal): New static function.
664 (print_frame_info): Switch call to set_default_breakpoint to call to
665 set_last_displayed_sal.
666 (clear_last_displayed_sal, last_displayed_sal_is_valid,
667 get_last_displayed_pspace, get_last_displayed_addr,
668 get_last_displayed_symtab, get_last_displayed_line,
669 get_last_displayed_sal): New public functions.
670 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
671 get_last_displayed_pspace, get_last_displayed_addr,
672 get_last_displayed_symtab, get_last_displayed_line,
673 get_last_displayed_sal): Declare.
674
b60e1588
JL
6752011-11-01 Justin Lebar <justin.lebar@gmail.com>
676
677 * MAINTAINERS (Write After Approval): Add myself to the list.
678
d31647d2
YQ
6792011-10-29 Yao Qi <yao@codesourcery.com>
680
681 * infcmd.c (disconnect_command): Call disconnect_tracing.
682
b1d96efd
JK
6832011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
684
685 Code cleanup.
686 * symtab.c (skip_prologue_sal): Code reformatting.
687
4dfb2365
JK
6882011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
689
690 PR symtab/13208
691 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
692 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
693 SAI.
694
0e5bf2a8
PA
6952011-10-28 Pedro Alves <pedro@codesourcery.com>
696
697 * linux-nat.c (linux_nat_filter_event): Remove `options'
698 parameter, and dead code that used it. If we're handling a
699 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
700 in our lwp list, re-add it.
701 (check_zombie_leaders): New.
702 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
703 wait for children with WNOHANG, and always wait for all children.
704 Don't check for no resumed children upfront. Simplify wait loop.
705 Check for zombie thread group leaders after handling all wait
706 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
707 unwaited-for children left.
708 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
709 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
710 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
711 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
712
821296b7
SA
7132011-10-28 Sterling Augustine <saugustine@google.com>
714
715 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
716 * symtab.c (free_completion_list): New function.
717 (do_free_completion_list): Likewise.
718 (default_make_symbol_completion_list_break_on): New variable
719 back_to. Call make_cleanup and discard_cleanups.
720 (make_source_files_completion_list): Likewise.
721
03c3051a
PK
7222011-10-28 Paul Koning <paul_koning@dell.com>
723
724 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
725 * NEWS: Mention deep_items.
726
8e7ebaf5
PA
7272011-10-28 Alen Skondro <askondro@gmail.com>
728
8de33dc2 729 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
730 defined.
731
e0c6ef61
MI
7322011-10-27 Meador Inge <meadori@codesourcery.com>
733
734 * MAINTAINERS (Write After Approval): Add myself to the list.
735
b56d6f31
JB
7362011-10-27 Joel Brobecker <brobecker@adacore.com>
737
738 * value.h (read_frame_register_value): Add declaration.
739 * findvar.c (read_frame_register_value): New function.
740 (value_from_register): Use read_frame_register_value
741 instead of get_frame_register_value + value_contents_copy
742 to get value contents.
743
d234ef5c
DE
7442011-10-27 Doug Evans <dje@google.com>
745
746 * cli/cli-cmds.c (source_script_with_search): Pass full path to
747 source_script_from_stream if it may have been found on the search path.
748 * python/py-auto-load.c (source_section_scripts): Pass full path to
749 source_python_script_for_objfile.
750 * python/python.c (source_python_script): Delete stream parameter.
751 All callers updated.
752 (source_python_script_for_objfile): Ditto.
753 * python/python-internal.h (source_python_script_for_objfile): Update.
754 * python/python.h (source_python_script): Update.
755
d849d44f
TT
7562011-10-27 Tom Tromey <tromey@redhat.com>
757
758 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
759 (ada_sals_for_line): Remove declarations.
760
2231f1fb
KP
7612011-10-27 Kevin Pouget <kevin.pouget@st.com>
762
763 Move unwind reasons to an external .def file
764 * frame.c (frame_stop_reason_string): Rewrite using
765 unwind_stop_reasons.def.
766 * frame.h (enum unwind_stop_reason): Likewise.
767 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
768 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
769 constants for bound-checking.
770 * unwind_stop_reasons.def: New file.
771 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
772 instead of a distinct value.
773
f77b9a5d
PM
7742011-10-27 Phil Muldoon <pmuldoon@redhat.com>
775
776 PR python/13331
777
778 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
779 (convert_values_to_python): Return on Python tuple allocation
780 failure. Return NULL on value conversion error.
781
76dce0be
PM
7822011-10-27 Phil Muldoon <pmuldoon@redhat.com>
783
784 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
785 (bppy_set_task): Ditto.
786 (bppy_delete_breakpoint): Ditto.
787 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
788 (gdbpy_lookup_global_symbol): Ditto.
789 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
790 * python/py-frame.c (frapy_is_valid): Ditto.
791 (frame_info_to_frame_object): Ditto.
792 * python/py-type.c (typy_lookup_type): Ditto.
793 (typy_getitem): Ditto.
794 (typy_has_key): Ditto.
795 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
796
f17b6955
JB
7972011-10-26 Joel Brobecker <brobecker@adacore.com>
798
799 * gdbarch.h: Regenerate.
800
86ba1042
JB
8012011-10-26 Meador Inge <meadori@codesourcery.com>
802
803 * gdbarch.sh (function_list): Use 'pstring' when printing
804 'gcore_bfd_target'.
805 * gdbarch.c: Regenerate.
806
c34fd852
UW
8072011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
808
809 * regcache.c (registers_changed_ptid): Invalidate thread architecture
810 and frame caches if PTID refers to all threads of a process.
811
931bb47f
UW
8122011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
813
814 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
815 to create_breakpoint.
816
88aed45e
UW
8172011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
818
819 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
820 (ppc_sysv_abi_push_dummy_call): Use it.
821 (do_ppc_sysv_return_value): Likewise.
822 (ppc64_sysv_abi_push_dummy_call): Likewise.
823 (ppc64_sysv_abi_return_value): Likewise.
824
3eaf3fa2
PK
8252011-10-26 Paul Koning <paul_koning@dell.com>
826
827 * python/lib/gdb/types.py (deepitems): New function.
828
913460fc
PK
8292011-10-25 Paul Koning <paul_koning@dell.com>
830
831 PR python/13327
832
833 * python/py-value.c (value_to_value_object): Remove fetching of
834 the value if it was lazy.
835 (valpy_get_is_lazy): New function.
836 (valpy_fetch_lazy): New function.
837
2b5b9d09
JB
8382011-10-24 Joel Brobecker <brobecker@adacore.com>
839
840 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
841 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
842
e21ffe51
PA
8432011-10-24 Pedro Alves <pedro@codesourcery.com>
844
845 * linux-nat.c (linux_handle_extended_wait): When handling a clone
846 event, in non-stop, if not stopping, make sure the new lwp has
847 last_resume_kind set to resume_continue. Assert that when we're
848 resuming the new lwp, its last_resume_kind is resume_continue.
849
7aee8dc2
PA
8502011-10-24 Pedro Alves <pedro@codesourcery.com>
851
852 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
853 already set when marking the event thread as not executing in
854 non-stop mode.
855
4b4e080e
PA
8562011-10-24 Pedro Alves <pedro@codesourcery.com>
857
858 * infrun.c (handle_inferior_event): Add debug output for
859 TARGET_WAITKIND_NO_HISTORY.
860
baacfb07
PM
8612011-10-24 Phil Muldoon <pmuldoon@redhat.com>
862
863 * NEWS: Move set/show extended-prompt to "New Options". Expand
864 description. Fix typos.
865
8432bc41
PM
8662011-10-24 Phil Muldoon <pmuldoon@redhat.com>
867
868 PR python/13310
869
870 * python/py-param.c (call_doc_function): Correctly deference on
871 function exit.
872
6cda5a20
JB
8732011-10-21 Joel Brobecker <brobecker@adacore.com>
874
875 * ada-tasks.c (print_ada_task_info): Fix computation of
876 number of tasks displayed in command output.
877
13294f7d
JK
8782011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
879 Ulrich Weigand <uweigand@de.ibm.com>
880
881 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
882 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
883 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
884 gdbarch_pc_regnum and frame_unwind_register_unsigned by
885 gdbarch_unwind_pc.
886
460c1c54
CC
8872011-10-20 Cary Coutant <ccoutant@google.com>
888
889 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
890 section to...
891 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
892 flag. Adjust all callers.
893 (process_psymtab_comp_unit): Remove adjustment for type section.
894
a10964d1
AR
8952011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
896
897 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
898 arguments by adding OBJFILE. Instead of getting objfile from
899 symbol's symtab, use new argument OBJFILE.
900 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
901 arguments by adding OBJFILE.
902 * gdb/dwarf2read.c (new_symbol_full): Change call to
903 cp_scan_for_anonymous_namespaces to match new signature.
904 * gdb/stabsread.c (define_symbol): Change call to
905 cp_scan_for_anonymous_namespaces to match new signature.
906
27ca1a5b
PM
9072011-10-20 Phil Muldoon <pmuldoon@redhat.com>
908
909 PR python/13308
910 PR python/13309
911
912 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
913 leak.
914 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
915 leak. Delete unused variables.
916
9df2fbc4
PM
9172011-10-20 Phil Muldoon <pmuldoon@redhat.com>
918
919 PR python/12656
920
921 * python/py-frame.c (frapy_read_var): Use const struct *block.
922 * python/py-type.c (typy_lookup_typename): Likewise.
923 (typy_lookup_type): Likewise.
924 (typy_legacy_template_argument): Likewise.
925 (typy_template_argument): Likewise.
926 (gdbpy_lookup_type): Likewise.
927 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
928 * python/py-block.c (blpy_block_object): Likewise.
929 (blpy_iter): Likewise.
930 (blpy_get_start): Likewise.
931 (blpy_get_end): Likewise.
932 (blpy_get_function): Likewise.
933 (blpy_get_superblock): Likewise.
934 (set_block): Likewise.
935 (block_to_block_object): Likewise.
936 (block_object_to_block): Likewise.
937 (blpy_is_valid): Likewise.
938 (blpy_get_global_block): New function.
939 (blpy_get_static_block): New function.
940 (blpy_is_global): New function.
941 (blpy_is_static): New function.
942 * blockframe.c (block_innermost_frame): Likewise.
943 * valops.c (value_of_variable): Likewise.
944 * frame.h: Update prototypes.
945 * python/python-internal.h: Likewise.
946 * value.h: Likewise.
947
4743b735
CC
9482011-10-19 Cary Coutant <ccoutant@google.com>
949
950 * dwarf2read.c (create_debug_types_hash_table): Fix size of
951 type_offset field.
952
6caca83c
CC
9532011-10-19 Cary Coutant <ccoutant@google.com>
954
955 * dwarf2read.c (peek_abbrev_code): New function.
956 (dw2_get_file_names): Check for dummy compilation units.
957 (create_debug_types_hash_table): Likewise.
958 (process_psymtab_comp_unit): Likewise.
959 (load_partial_comp_unit): Likewise.
960 (load_full_comp_unit): Likewise.
961
43136979
AR
9622011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
963
964 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
965 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
966 pt_phdr if PT_PHDR was found.
967
0a07729b
TT
9682011-10-17 Joost van der Sluis <joost@cnoc.nl>
969
970 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
971 type or "<unnamed type"> when there is no name assigned.
972 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
973 avoid a sigint when no name is assigned.
974
21ae7a4d
JK
9752011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
976
977 Revert:
978 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
979 * dwarf2expr.c (ctx_no_read_reg): New function.
980 * dwarf2expr.h (ctx_no_read_reg): New declaration.
981 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
982 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
983 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
984
32d1c362
DE
9852011-10-16 Doug Evans <dje@google.com>
986
987 * NEWS: Document python gdb.printing.register_pretty_printer's new
988 `replace' parameter.
989
da096638
KS
9902011-10-14 Keith Seitz <keiths@redhat.com>
991
992 PR c++/13225
993 * eval.c (evaluate_subexp_standard): Do not construct
994 an array of types; pass the value array directly to
995 find_overload_match.
996 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
997 (rank_function): Take an array of values instead of types.
998 (rank_one_type): Add struct value * parameter.
999 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1000 (rank_function): For each argument, pass the argument's
1001 value to rank_one_type.
1002 (rank_one_type): Add VALUE parameter.
1003 If the parameter type is a pointer and the argument type
1004 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1005 VALUE is zero.
1006 Update all calls to rank_one_type, passing NULL for new
1007 VALUE parameter.
1008 * valarith.c (value_user_defined_cpp_op): Do not construct
1009 an array of types; pass the value array directly to
1010 find_overload_match.
1011 * valops.c (find_overload_method_list): Take an array of
1012 values instead of types.
1013 Save the type of OBJP for later use.
1014 Update calls to find_oload_champ, and find_oload_champ_namespace.
1015 (find_oload_champ_namespace): Take an array of values instead
1016 of types.
1017 (find_oload_champ_namespace_loop): Likewise.
1018 (find_oload_champ): Likewise.
1019 (classify_oload_match): Inspect all arguments
1020 until INCOMPATIBLE is found. Return the worst badness found
1021 otherwise.
1022 (compare_parameters): Update call to rank_one_type.
1023 * value.h (find_overload_match): Take an array of values instead
1024 of types.
1025
3957565a
JK
10262011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1027
1028 Drop lazy lm_info reading.
1029 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1030 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1031 (lm_info_read): New function.
1032 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1033 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1034 lm_dynamic_from_link_map.
1035 (lm_next, lm_prev, lm_name): Remove.
1036 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1037 initialization incl. read_memory. No longer use lm_name.
1038 (svr4_free_so): Drop lm_info->lm freeing.
1039 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1040 explicit lm_addr and lm initialization.
1041 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1042 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1043 lm_name.
1044
cb08cc53
JK
10452011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1046 Paul Pluzhnikov <ppluzhnikov@google.com>
1047
1048 * defs.h (struct so_list): New forward declaration.
1049 (make_cleanup_free_so): New declaration.
1050 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1051 (svr4_free_so): Move the function here from downwards. Handle NULL
1052 so->lm_info.
1053 (svr4_free_library_list): New.
1054 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1055 Use more cleanups. Use new parameter ignore_first instead of
1056 ignore_first_link_map_entry.
1057 (svr4_current_sos): New variable ignore_first, initialize it. New
1058 variable back_to, use it for svr4_free_library_list protection.
1059 (svr4_free_so): Remove - move upwards.
1060 * utils.c: Include solist.h.
1061 (do_free_so, make_cleanup_free_so): New functions.
1062
22c05d8a
JK
10632011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1064
1065 Fix internal error regression.
1066 * value.c (value_primitive_field): Handle value_optimized_out. Move
1067 packed bitfields comment.
1068
d930d06e
TT
10692011-10-13 Tom Tromey <tromey@redhat.com>
1070
1071 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1072 always released.
1073
2ff6b080
TT
10742011-10-13 Tom Tromey <tromey@redhat.com>
1075
1076 * python/py-type.c (typy_has_key): Make 'field' const.
1077
d6c5869f
LM
10782011-10-13 Luis Machado <lgustavo@codesourcery.com>
1079
1080 * remote.c (remote_save_trace_data): Invert comparison.
1081
a70633a2
LM
10822011-10-13 Luis Machado <lgustavo@codesourcery.com>
1083
1084 * tracepoint.c (trace_save_command): Use filename instead of
1085 args when printing.
1086
e103e986
JK
10872011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1088
1089 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1090 if .size is 0.
1091
db24da6d
YQ
10922011-10-13 Yao Qi <yao@codesourcery.com>
1093
1094 PR gdb/12703
1095 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1096 whether insn is a 32-bit Thumb-2 instruction.
1097 (thumb_in_function_epilogue_p): Likewise.
1098 (thumb_get_next_pc_raw): Likewise.
1099 (arm_breakpoint_from_pc): Likewise.
1100
1d6edc3c
JK
11012011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1102
1103 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1104 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1105 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1106 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1107 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1108 zero DATA.
1109 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1110 validity.
1111 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1112 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1113 clear DATA on zero SIZE.
1114
adabb602
DE
11152011-10-12 Doug Evans <dje@google.com>
1116
1117 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1118 header->first_die_offset here. All callers updated.
1119
5048e516
JK
11202011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1121
1122 Fix compatibility with texinfo versions older than 4.12.
1123 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1124 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1125 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1126 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1127 * configure: Regenerate.
1128 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1129 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1130 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1131
0574c78f
GB
11322011-10-12 Gary Benson <gbenson@redhat.com>
1133
1134 * breakpoint.h (pc_at_non_inline_function): Declare.
1135 * breakpoint.c (is_non_inline_function,
1136 pc_at_non_inline_function): New functions.
1137 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1138 if the stop is at a location where functions cannot be inlined.
1139
12d9289a
PA
11402011-10-12 Pedro Alves <pedro@codesourcery.com>
1141
1142 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1143 the core wanted them stopped, or if they now have a pending event
1144 to report.
ecf8e7f5
PA
1145 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1146 down to stop_and_resume_callback.
1147 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1148 having new pending events after calling linux_nat_filter_event.
12d9289a 1149
96408a79
SA
11502011-10-11 Sterling Augustine <saugustine@google.com>
1151
1152 * dwarf2read.c: Undo inadvertent changes in previous commit.
1153
9c6c53f7
SA
11542011-10-11 Sterling Augustine <saugustine@google.com>
1155
1156 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1157 logic.
1158
0e8aefe7
UW
11592011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1160
1161 * symfile.c (separate_debug_file_exists): Fix condition.
1162
349d1385
DM
11632011-10-11 David S. Miller <davem@davemloft.net>
1164
1165 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1166 static.
1167 * regcache.h (regcache_restore): Remove declaration.
1168
205c306f
DM
1169 * gdbarch.sh: New field 'long_long_align_bit'.
1170 * gdbarch.c, gdbarch.h: Regenerate.
1171 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1172 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1173
941b2081
JK
11742011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1175
1176 Revert this part of:
1177 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1178 Support @entry in input expressions.
1179 * c-exp.y (ENTRY, unknown_cpp_name): New.
1180 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1181 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1182 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1183 (name_not_typename: ENTRY): New.
1184 (yylex): Recognize ENTRY.
1185
1186 Reimplement @entry in input expressions.
1187 * c-exp.y (ENTRY): New.
1188 (variable: name_not_typename ENTRY): New.
1189 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1190
3c4d7e12
PA
11912011-10-11 Pedro Alves <pedro@codesourcery.com>
1192
1193 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1194 parent and child's pids as soon as we detect a clone event.
1195 Adjust another debug message.
1196
ea23808b
PA
11972011-10-11 Pedro Alves <pedro@codesourcery.com>
1198
1199 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1200 not zombie instead of reading the whole file.
1201
904578ed
JK
12022011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1203
1204 Fix separate debuginfo warning with "remote:" access.
1205 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1206 * symfile.c (get_file_crc): New function with the code moved from ...
1207 (separate_debug_file_exists): ... this function, specifically variables
1208 buffer and count. New variable verified_as_different, set it. Remove
1209 file_crc initialization. Verify also if both files are not the same
1210 manually, if needed.
1211
51370a33
YQ
12122011-10-11 Yao Qi <yao@codesourcery.com>
1213
1214 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1215 to get address.
1216
0838fb57
DE
12172011-10-10 Doug Evans <dje@google.com>
1218
1219 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1220 libthread_db when we load libpthread or the main symbol file.
1221 (thread_db_inferior_created): New function.
1222 (_initialize_thread_db): Attach inferior_created observer.
1223 * linux-nat.c (linux_child_post_attach): Remove call to
1224 check_for_thread_db.
1225 (linux_child_post_startup_inferior): Ditto.
1226 * objfiles.h (OBJF_MAINLINE): Define.
1227 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1228 allocate_objfile when appropriate.
1229
623bd5b7
UW
12302011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1231
1232 PR gdb/13218
1233 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1234 Remove unused variables.
1235 (get_linux_version): Remove function.
1236 (_initialize_arm_linux_nat): Do not call it.
1237
79395f92
PA
12382011-10-10 Pedro Alves <pedro@codesourcery.com>
1239
1240 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1241 new clone lwp if the core asked it to stop. Don't pass on
1242 unexpected signals to the new clone; leave them pending instead.
1243
eff3df78
PA
12442011-10-10 Pedro Alves <pedro@codesourcery.com>
1245
1246 * linux-nat.c (resume_lwp): Remove redundant debug output.
1247
4b60df3d
PA
12482011-10-10 Pedro Alves <pedro@codesourcery.com>
1249
1250 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1251 last_resume_kind before clearing it, and use the copy instead to
1252 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1253 resume_clear_callback in the non-stop path too.
1254
6501578c
YQ
12552011-10-09 Yao Qi <yao@codesourcery.com>
1256
1257 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1258 Honor OPTIONS and VAL's type.
1259 (common_val_print, value_print): Update to pass one more parameter.
1260
5a56e9c5
DE
12612011-10-09 Doug Evans <dje@google.com>
1262
1263 Add new "alias" command.
1264 * NEWS: Mention new command.
1265 * command.h (valid_user_defined_cmd_name_p): Declare.
1266 * defs.h (make_cleanup_dyn_string_delete): Declare.
1267 * utils.c: #include "dyn-string.h".
1268 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1269 * cli/cli-cmds.c: #include "dyn-string.h".
1270 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1271 (init_cli_cmds): Add new command.
1272 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1273
509f0fd9
JK
12742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1275
1276 Fix compatibility with older GCCs.
1277 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1278 * stack.c (read_frame_arg): Initialize val_deref.
1279
2bda9cc5
JK
12802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 Entry values NEWS entries, DWARF disassembly support.
1283 * NEWS: New entry values entry.
1284 (set print entry-values, show print entry-values)
1285 (set debug entry-values, show debug entry-values): New entries.
1286 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1287 indent. Remove variable start. Move header printing out. Respect
1288 INDENT. Support DW_OP_GNU_entry_value.
1289 (locexpr_describe_location_1): Move the header printing here, extend
1290 the disassemble_dwarf_expression passed parameters.
1291
a471c594
JK
12922011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1293
1294 Display @entry parameter values even for references.
1295 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1296 coerce_ref_if_computed.
1297 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1298 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1299 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1300 existing push_dwarf_reg_entry_value call. Add new detection calling
1301 dwarf_block_to_dwarf_reg_deref. Update the error message.
1302 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1303 * dwarf2expr.h
1304 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1305 parameter deref_size, describe it in the comment.
1306 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1307 (dwarf_block_to_dwarf_reg_deref): New declaration.
1308 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1309 deref_size, describe it in the function comment. New variables
1310 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1311 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1312 describe it in the function comment. Fetch the alternative block
1313 accoring to DEREF_SIZE.
1314 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1315 (entry_data_value_free_closure, entry_data_value_funcs): New.
1316 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1317 outer_val, target_val, val and addr. Try to fetch and create also
1318 referenced value content.
1319 (pieced_value_funcs): NULL value for coerce_ref.
1320 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1321 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1322 coerce_ref_if_computed.
1323 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1324 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1325 * stack.c (read_frame_arg): Compare also dereferenced values.
1326 * value.c (value_computed_funcs): Make the parameter v const, use
1327 value_lval_const for it.
1328 (value_lval_const, coerce_ref_if_computed): New function.
1329 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1330 * value.h (struct lval_funcs): New field coerce_ref.
1331 (value_computed_funcs): Make the parameter v const.
1332 (value_lval_const, coerce_ref_if_computed): New declarations.
1333
36b11add
JK
13342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 Support @entry in input expressions.
1337 * c-exp.y (ENTRY, unknown_cpp_name): New.
1338 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1339 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1340 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1341 (name_not_typename: ENTRY): New.
1342 (yylex): Recognize ENTRY.
1343 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1344 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1345 Likewise.
1346 * parse.c (operator_length_standard): Likewise.
1347 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1348
3343315b
JK
13492011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 Display referenced values in backtraces.
1352 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1353 * stack.c (print_frame_arg): Likewise.
1354
ac71a68c
JK
13552011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1356
1357 Make some lval_funcs methods to default on NULL.
1358 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1359 NULL.
1360 (value_assign): Check if lval_computed write method is NULL.
1361 * value.h (struct lval_funcs): Comment NULL values for read and write
1362 methods.
1363
e18b2753
JK
13642011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1365
1366 Display @entry parameter values (without references).
1367 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1368 New functions.
1369 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1370 New declarations.
1371 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1372 entry record.
1373 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1374 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1375 functions.
1376 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1377 (loclist_read_variable_at_entry): New function.
1378 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1379 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1380 DW_AT_location, call dwarf_block_to_sp_offset for it.
1381 * frame.h (print_entry_values_no, print_entry_values_only)
1382 (print_entry_values_preferred, print_entry_values_if_needed)
1383 (print_entry_values_both, print_entry_values_compact)
1384 (print_entry_values_default, print_entry_values): New declarations.
1385 (struct frame_arg): New field entry_kind.
1386 (read_frame_arg): New parameter entryargp.
1387 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1388 arg->entry_kind. Optionally print the `@entry' suffix.
1389 (list_args_or_locals): New variable entryarg, initialize it.
1390 Initialize also entry_kind of arg and entryarg. Conditionalize
1391 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1392 xfree for entryarg.error.
1393 * stack.c (print_entry_values_no, print_entry_values_only)
1394 (print_entry_values_preferred, print_entry_values_if_needed)
1395 (print_entry_values_both, print_entry_values_compact)
1396 (print_entry_values_default, print_entry_values_choices)
1397 (print_entry_values): New variables.
1398 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1399 print the `@entry' suffix, possibly in combination for
1400 print_entry_values_compact.
1401 (read_frame_arg): New parameter entryargp, new variables entryval,
1402 entryval_error and val_equal. Read in also entryargp, respect
1403 print_entry_values, compare the values using val_equal, fill in also
1404 argp->entry_kind (together with entryargp->entry_kind).
1405 (print_frame_args): New variable entryarg, initialize it.
1406 Conditionalize print_frame_arg for arg, add print_frame_arg for
1407 entryarg. Call xfree for entryarg.error.
1408 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1409 * symtab.h (struct symbol_computed_ops): New field
1410 read_variable_at_entry.
1411
93d86cef
JK
14122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1413
1414 Code reshuffle.
1415 * frame.h (struct frame_arg): New definition.
1416 (read_frame_arg): New declaration.
1417 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1418 (list_args_or_locals): ... the code here. New variable arg, call
1419 read_frame_arg and list_arg_or_local with it. Unify the
1420 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1421 arg.error.
1422 * stack.c (print_frame_arg): New functiom from the code of
1423 print_frame_args.
1424 (read_frame_arg): New function.
1425 (print_frame_args): Remove variable val. New variable arg, call
1426 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1427
2d6c5dc2
JK
14282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 Protect entry values against self tail calls.
1431 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1432 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1433
111c6489
JK
14342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1435
1436 Recognize virtual tail call frames.
1437 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1438 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1439 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1440 * dwarf2-frame-tailcall.c: New file.
1441 * dwarf2-frame-tailcall.h: New file.
1442 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1443 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1444 REGS.PREV only after CIE execution.
1445 (struct dwarf2_frame_cache): New field tailcall_cache.
1446 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1447 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1448 parts, try to find entry_cfa_sp_offset. Call
1449 dwarf2_tailcall_sniffer_first.
1450 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1451 when appropriate.
1452 (dwarf2_frame_dealloc_cache): New function.
1453 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1454 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1455 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1456 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1457 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1458 * dwarf2loc.c (func_addr_to_tail_call_list)
1459 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1460 (call_site_find_chain_1, call_site_find_chain): New.
1461 * dwarf2loc.h (struct call_site_chain): New.
1462 (call_site_find_chain): New declaration.
1463 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1464 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1465 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1466 * stack.c (frame_info): Support also TAILCALL_FRAME.
1467
bb984ff1
JK
14682011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1469
1470 Tail call sites reader implementation.
1471 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1472 fill in TYPE_TAIL_CALL_LIST.
1473 * gdbtypes.h (struct func_type): New field tail_call_list.
1474 (struct call_site): New field tail_call_next.
1475 (TYPE_TAIL_CALL_LIST): New definition.
1476
8e3b41a9
JK
14772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1478
1479 Implement basic support for DW_TAG_GNU_call_site.
1480 * block.c: Include gdbtypes.h and exceptions.h.
1481 (call_site_for_pc): New function.
1482 * block.h (call_site_for_pc): New declaration.
1483 * defs.h: Include hashtab.h.
1484 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1485 declarations.
1486 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1487 ctx_no_push_dwarf_reg_entry_value.
1488 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1489 (dwarf_block_to_dwarf_reg): New function.
1490 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1491 (ctx_no_push_dwarf_reg_entry_value): New function.
1492 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1493 push_dwarf_reg_entry_value.
1494 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1495 declarations.
1496 * dwarf2loc.c: Include gdbcmd.h.
1497 (dwarf_expr_ctx_funcs): New forward declaration.
1498 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1499 (dwarf_expr_reg_to_entry_parameter)
1500 (dwarf_expr_push_dwarf_reg_entry_value): New.
1501 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1502 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1503 (needs_dwarf_reg_entry_value): New function.
1504 (needs_frame_ctx_funcs): Install it.
1505 (_initialize_dwarf2loc): New function.
1506 * dwarf2loc.h (entry_values_debug): New declaration.
1507 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1508 (read_call_site_scope): New forward declaration.
1509 (process_full_comp_unit): Copy call_site_htab.
1510 (process_die): Support DW_TAG_GNU_call_site.
1511 (read_call_site_scope): New function.
1512 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1513 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1514 (cleanup_htab): Delete.
1515 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1516 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1517 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1518 FIELD_LOC_KIND_DWARF_BLOCK.
1519 * gdbtypes.h (enum field_loc_kind): New entry
1520 FIELD_LOC_KIND_DWARF_BLOCK.
1521 (struct main_type): New loc entry dwarf_block.
1522 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1523 (TYPE_FIELD_DWARF_BLOCK): New.
1524 * python/py-type.c: Include dwarf2loc.h.
1525 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1526 internal_error call on unknown FIELD_LOC_KIND.
1527 * symtab.h (struct symtab): New field call_site_htab.
1528 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1529 (core_addr_hash, core_addr_eq): New functions.
1530
b6cdc2c1
JK
15312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1532
1533 Code reshuffle.
1534 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1535 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1536 calling_convention under func_stuff there.
1537 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1538 (init_type) <TYPE_CODE_FUNC>: Likewise.
1539 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1540 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1541 * gdbtypes.h (enum type_specific_kind): Change
1542 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1543 (struct main_type) <type_specific>: Change calling_convention to
1544 func_stuff. Move calling_convention to ...
1545 (struct func_type): ... this new struct.
1546 (INIT_FUNC_SPECIFIC): New #define.
1547 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1548
181cebd4
JK
15492011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1550
1551 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1552 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1553 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1554 ctx->ref_addr_size. Handle its invalid value.
1555 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1556 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1557 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1558 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1559 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1560 (dwarf2_per_cu_ref_addr_size): New function.
1561
c471e790
JK
15622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1563
1564 Code cleanup.
1565 * dwarf2read.c (per_cu_header_read_in): New function.
1566 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1567 variables cu_header_local and cu_headerp.
1568
741f5e3c
JK
15692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 Fix initial language detection with -readnow.
1572 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1573 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1574 searches only for global symbols.
1575
a73d2258
JK
15762011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1577
1578 Fix printed anonymous struct name.
1579 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1580 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1581 (anonymous_struct_prefix): New function.
1582 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1583 (dwarf2_name): Strip for anonymous structs any prefixes.
1584
749fd4ea
DE
15852011-10-07 Doug Evans <dje@google.com>
1586
1fa57852
DE
1587 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1588 `replace'.
1589
690a4937
DE
1590 * python/lib/gdb/printing.py: Whitespace cleanup.
1591
749fd4ea
DE
1592 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1593 warning.
1594
4c38200f
PA
15952011-10-07 Pedro Alves <pedro@codesourcery.com>
1596
1597 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1598 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1599 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1600 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1601 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1602 (arm_linux_remove_watchpoint): Adjust.
1603 * i386-linux-nat.c (i386_linux_dr_set_control)
1604 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1605 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1606 (ia64_linux_remove_watchpoint): Adjust.
1607 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1608 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1609 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1610 (ppc_linux_insert_mask_watchpoint)
1611 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1612 (ppc_linux_remove_watchpoint): Adjust.
1613 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1614 Adjust.
1615
b7ff339d
CV
16162011-10-07 Corinna Vinschen <vinschen@redhat.com>
1617
1618 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1619 (clear_win32_environment): New function for Cygwin to clear out
1620 Win32 environment.
1621 (windows_create_inferior): Prepare new environment from in_env
1622 for Cygwin, too.
1623
f287c1f3
PM
16242011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1625
5631e596 1626 PR python/13264
f287c1f3
PM
1627 * python/py-value.c (valpy_call): Check that arguments are
1628 a tuple.
1629 (is_intlike): Remove call to CHECK_TYPEDEF.
1630 (valpy_nonzero): Catch GDB exceptions.
1631 (valpy_absolute): Ditto.
1632 (valpy_lazy_string): Ditto.
1633 (valpy_call): Ditto.
1634 (valpy_get_is_optimized_out): Ditto.
1635 (valpy_long): Ditto.
1636 (valpy_float): Ditto.
1637 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1638 (valpy_richcompare): Ditto.
1639
03583c20
UW
16402011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1641
1642 * inferior.h (disable_randomization): Declare.
1643 * infrun.c (disable_randomization): New global variable.
1644 (show_disable_randomization): New function.
1645 (set_disable_randomization): Likewise.
1646 (_initialize_infrun): Install set/show disable-randomization
1647 commands.
1648 * linux-nat.c (disable_randomization): Remove.
1649 (show_disable_randomization): Likewise.
1650 (set_disable_randomization): Likewise.
1651 (_initialize_linux_nat): No longer install set/show
1652 disable-randomization commands here.
1653 (linux_nat_supports_disable_randomization): New function.
1654 (linux_nat_add_target): Install it.
1655 * remote.c (PACKET_QDisableRandomization): New enum value.
1656 (remote_protocol_packets): Support QDisableRandomization.
1657 (_initialize_remote): Likewise.
1658 (remote_supports_disable_randomization): New function.
1659 (init_remote_ops): Install it.
1660 (extended_remote_supports_disable_randomization): New function.
1661 (init_extended_remote_ops): Install it.
1662 (extended_remote_disable_randomization): New function.
1663 (extended_remote_create_inferior_1): Call it.
1664 * target.h (struct target_ops): Add to_supports_disable_randomization.
1665 (target_supports_disable_randomization): Add prototype.
1666 * target.c (target_supports_disable_randomization): New function.
1667 (find_default_supports_disable_randomization): Likewise.
1668 (init_dummy_target): Install it.
1669
20c168b5
KP
16702011-10-07 Kevin Pouget <kevin.pouget@st.com>
1671
1672 Allow Python notification of new object-file loadings.
1673 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1674 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1675 Add build rule for this file.
1676 * python/py-event.h (emit_new_objfile_event): New prototype.
1677 (newobjfile): New Python event emitter.
1678 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1679 Python event registry.
1680 * python/py-inferior.c: Include objfiles.h
1681 (python_new_objfile): New function.
1682 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1683 observers.
1684 * python/py-newobjfileevent.c: New file.
1685 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1686 prototype.
1687 * python/python.c (_initialize_python): Add
1688 gdbpy_initialize_new_objfile_event call.
1689 * NEWS: Add item for new Python event "gdb.newobjfile"
1690
b1c8db38
TG
16912011-10-05 Tristan Gingold <gingold@adacore.com>
1692
1693 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1694 Extract the ravenscar task name from the symbol for the atcb.
1695
0dab82e9
PK
16962011-10-04 Paul Koning <paul_koning@dell.com>
1697
1698 * python/py-type.c (typy_make_iter): Add forward declaration.
1699 (typy_fields_items): Use the gdb.Type iterator.
1700
84ad80e6
PK
17012011-10-04 Paul Koning <paul_koning@dell.com>
1702
1703 * NEWS: Add entry for Python gdb.Type mapping methods.
1704
cb6be26b
KP
17052011-10-04 Kevin Pouget <kevin.pouget@st.com>
1706
1707 PR python/12691: Add the inferior to Python exited event
1708 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1709 to exited_event.
1710 * python/py-event.h (emit_exited_event): Likewise
1711 * python/-inferior.c (python_inferior_exit): Likewise
1712
6005b210
JB
17132011-10-03 Joel Brobecker <brobecker@adacore.com>
1714
1715 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1716 in output of -ada-task-info GDB/MI command.
1717
75082e8c
JB
17182011-10-03 Joel Brobecker <brobecker@adacore.com>
1719
1720 * ada-lang.h (struct inferior): Declare.
1721 (print_ada_task_info): Add declaration.
1722 * ada-tasks.c (print_ada_task_info): Make non-static.
1723 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1724 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1725 * mi/mi-main.c: #include "ada-lang.h".
1726 (mi_cmd_list_features): Add "ada-task-info" to the list
1727 of supported features.
1728 (mi_cmd_ada_task_info): New function.
1729
7ed7d719
JB
17302011-10-03 Joel Brobecker <brobecker@adacore.com>
1731
1732 * python/python.c (python_run_simple_file): New function.
1733 (source_python_script, source_python_script_for_objfile):
1734 Replace call to PyRun_SimpleFile by call to
1735 python_run_simple_file.
1736
3fcaed38
PK
17372011-10-03 Paul Koning <paul_koning@dell.com>
1738
1739 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1740 (value_to_value_object): Fetch value if it was lazy.
1741
8e5c319d
JK
17422011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 Code cleanup.
1745 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1746 Rearrange the code for it.
1747
dd11a36c
JB
17482011-10-02 Joel Brobecker <brobecker@adacore.com>
1749
1750 * breakpoint.c (bkpt_print_recreate): Add call to
1751 print_recreate_thread.
1752
723b724b
MF
17532011-09-29 Mike Frysinger <vapier@gentoo.org>
1754
1755 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1756 PTRACE_GETFDPIC_INTERP): Define.
1757
412946b6
YQ
17582011-09-28 Yao Qi <yao@codesourcery.com>
1759
1760 * symfile.c (add_symbol_file_command): Update message on usage.
1761
a73bb892
PK
17622011-09-28 Paul Koning <paul_koning@dell.com>
1763
1764 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1765 (typy_length, typy_get, typy_has_key, typy_make_iter)
1766 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1767 (typy_iterator_iter, typy_iterator_iternext)
1768 (typy_iterator_dealloc): New functions to implement standard
1769 Python mapping methods on gdb.Type object.
1770 (gdb.TypeIterator): New Python type.
1771 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1772
fe10a582
DM
17732011-09-28 David S. Miller <davem@davemloft.net>
1774
1775 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1776 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1777 * sparc-tdep.c (sparc_complex_floating_p): New function.
1778 (sparc32_store_arguments): Handle complex floats.
1779 (sparc32_extract_return_value): Likewise.
1780 (sparc32_store_return_value): Likewise.
1781 (sparc32_stabs_argument_has_addr): Likewise.
1782 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1783 (sparc64_store_floating_fields): Handle complex floats.
1784 (sparc64_store_arguments): Likewise.
1785 (sparc64_store_return_value): Likewise.
1786
c93dbcba
EZ
17872011-09-28 Eli Zaretskii <eliz@gnu.org>
1788
1789 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1790 before the change on 2006-12-09.
1791 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1792 generates the environment block for CreateProcessA, modulo the
1793 Cygwin-specific parts that are not needed here.
1794
f00c55f8
TG
17952011-09-27 Tristan Gingold <gingold@adacore.com>
1796
1797 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1798 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1799 (darwin_solib_get_all_image_info_addr_at_init): New function.
1800 (darwin_solib_read_all_image_info_addr): Likewise.
1801 (darwin_solib_create_inferior_hook): Use the above two functions.
1802 * darwin-nat.c (darwin_execvp): Renames retval to res.
1803 (darwin_read_write_inferior): Update comment.
1804 (darwin_read_dyld_info): New function.
1805 (darwin_xfer_partial): Handle DYLD_INFO.
1806
6710bf39
SS
18072011-09-27 Stan Shebs <stan@codesourcery.com>
1808
1809 Add return address collection for tracepoints.
1810 * tracepoint.c (encode_actions_1): Add case for $_ret.
1811 (validate_actionline): Check for $_ret.
1812 (trace_dump_actions): Ditto.
1813 * ax-gdb.h (gen_trace_for_return_address): Declare.
1814 * ax-gdb.c: Include arch-utils.h.
1815 (gen_trace_for_return_address): New function.
1816 (agent_command): Add return address special case.
1817 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1818 (amd64_gen_return_address): New function.
1819 (amd64_init_abi): Call it.
1820 * i386-tdep.c: Include ax.h and ax-gdb.h.
1821 (i386_gen_return_address): New function.
1822 (i386_init_abi): Call it.
1823 * arch-utils.h (default_gen_return_address): Declare.
1824 * arch-utils.c (default_gen_return_address): New function.
1825 * gdbarch.sh (gen_return_address): New method.
1826 * gdbarch.h, gdbarch.c: Regenerate.
1827
e04e5beb
JM
18282011-09-23 Joseph Myers <joseph@codesourcery.com>
1829
1830 PR gdb/13079
1831 * i386-tdep.c (i386_frame_align): New.
1832 (i386_gdbarch_init): Use i386_frame_align.
1833
f3d6df6d
YQ
18342011-09-23 Yao Qi <yao@codesourcery.com>
1835
1836 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1837 to get address.
1838
e69860f1
TG
18392011-09-22 Tristan Gingold <gingold@adacore.com>
1840
1841 * fork-child.c (fork_inferior): Add exec_fun parameter.
1842 Call exec_fun or execvp.
1843 * inferior.h: Adjust prototype.
1844 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1845 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1846 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1847 * procfs.c (procfs_create_inferior): Ditto.
1848 * darwin-nat.c (darwin_execvp): New function.
1849 (darwin_create_inferior): Use it.
1850
4b51d87b
YQ
18512011-09-22 Yao Qi <yao@codesourcery.com>
1852
1853 * infrun.c (context_switch): Print debug message when switching to
1854 a different thread.
1855
56b9d9ac
UW
18562011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1857
1858 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1859 complex and vector types.
1860 (s390_return_value_convention): Likewise.
1861
1862 (s390_value_from_register): Call check_typedef.
1863 (extend_simple_arg): Likewise.
1864 (alignment_of): Likewise.
1865 (s390_push_dummy_call): Likewise.
1866 (s390_return_value): Likewise.
1867
b2cd6b29
JM
18682011-09-21 Joseph Myers <joseph@codesourcery.com>
1869
1870 * event-top.c (async_disconnect): If an exception is thrown from
1871 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1872 catch_errors.
1873 * top.c (quit_cover): Return void and take no arguments.
1874 * top.h (quit_cover): Update prototype.
1875
67ba4e42
JM
18762011-09-20 Joseph Myers <joseph@codesourcery.com>
1877
1878 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1879 current_uiout, not uiout.
1880
562f943b
DE
18812011-09-19 Doug Evans <dje@google.com>
1882
1883 * python/py-auto-load.c (source_section_scripts): Fix file
1884 descriptor leak.
1885 * python/python.c (source_python_script_for_objfile): Tweak comments.
1886
34518530
YQ
18872011-09-18 Yao Qi <yao@codesourcery.com>
1888 Ulrich Weigand <ulrich.weigand@linaro.org>
1889
1890 Support displaced stepping for Thumb 16-bit insns.
1891 * arm-tdep.c (THUMB_NOP) Define.
1892 (thumb_copy_unmodified_16bit): New.
1893 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1894 (thumb_copy_alu_reg): New.
1895 (arm_copy_svc): Move some common code to ...
1896 (install_svc): ... here. New.
1897 (thumb_copy_svc): New.
1898 (install_pc_relative): New.
1899 (thumb_copy_pc_relative_16bit): New.
1900 (thumb_decode_pc_relative_16bit): New.
1901 (thumb_copy_16bit_ldr_literal): New.
1902 (thumb_copy_cbnz_cbz): New.
1903 (cleanup_pop_pc_16bit_all): New.
1904 (thumb_copy_pop_pc_16bit): New.
1905 (thumb_process_displaced_16bit_insn): New.
1906 (thumb_process_displaced_32bit_insn): New.
1907 (thumb_process_displaced_insn): process thumb instruction.
1908
1909 Support displaced stepping for Thumb 32-bit insns.
1910 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1911 (thumb2_copy_preload): New.
1912 (thumb2_copy_copro_load_store): New.
1913 (thumb2_copy_b_bl_blx): New.
1914 (thumb2_copy_alu_imm): New.
1915 (thumb2_copy_load_reg_imm): New.
1916 (thumb2_copy_load_literal): New
1917 (thumb2_copy_block_xfer): New.
1918 (thumb_32bit_copy_undef): New.
1919 (thumb_32bit_copy_unpred): New.
1920 (thumb2_decode_ext_reg_ld_st): New.
1921 (thumb2_decode_svc_copro): New.
1922 (decode_thumb_32bit_store_single_data_item): New.
1923 (thumb_copy_pc_relative_32bit): New.
1924 (thumb_decode_pc_relative_32bit): New.
1925 (decode_thumb_32bit_ld_mem_hints): New.
1926 (thumb2_copy_table_branch): New
1927 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1928 instructions.
1929
2b16b2e3
YQ
19302011-09-18 Yao Qi <yao@codesourcery.com>
1931
1932 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1933 (install_b_bl_blx): Likewise.
1934
0f6f04ba
YQ
19352011-09-17 Yao Qi <yao@codesourcery.com>
1936
1937 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1938 (install_load_store): ... this. New.
1939 Change parameter BYTE to SIZE.
1940 (arm_copy_ldr_str_ldrb_strb): Update caller.
1941 (arm_decode_ld_st_word_ubyte): Update caller.
1942
e2d96639
YQ
19432011-09-17 Yao Qi <yao@codesourcery.com>
1944
1945 * infrun.c (displaced_step_fixup): Move some code ...
1946 (displaced_step_restore): ... here. New function.
1947 (handle_inferior_event): Cleanup displaced stepping state for both
1948 child and parent when get forked or vforked event.
1949 * regcache.c (get_thread_arch_aspace_regcache): New function.
1950 get_thread_arch_regcache (): Call it.
1951
a8123151
JB
19522011-09-16 Joel Brobecker <brobecker@adacore.com>
1953
1954 * ada-tasks.c (print_ada_task_info): New function, merging
1955 short_task_info and info_tasks together. Reimplement using
1956 ui-out instead of printing to stdout directly. Move the code
1957 building and checking the task list here, instead of leaving it
1958 in info_tasks_command.
1959 (info_task): Move the code building and checking the task
1960 list here, instead of leaving it in info_tasks_command.
1961 (info_tasks_command): Delete code building and checking
1962 the task list - moved elsewhere. Update calls to info_tasks
1963 and info_task.
1964
fbf06824
JB
19652011-09-16 Joel Brobecker <brobecker@adacore.com>
1966
1967 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1968
34a0bc90
JB
19692011-09-16 Joel Brobecker <brobecker@adacore.com>
1970
1971 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1972
79779fa9
JB
19732011-09-16 Joel Brobecker <brobecker@adacore.com>
1974
1975 * ada-lang.h (ada_build_task_list): Remove parameter
1976 `warn_if_null'.
1977 * ada-tasks.c (ada_build_task_list): Remove parameter
1978 `warn_if_null'. Adjust implementation and documentation.
1979 (valid_task_id, ada_get_environment_task)
1980 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1981 (info_tasks_command): Adjust implementation.
1982 (task_command): Likewise.
1983 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1984 to ada_build_task_list.
1985
e225eb91
JB
19862011-09-16 Joel Brobecker <brobecker@adacore.com>
1987
1988 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1989 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1990 (ada_tasks_inferior_data_handle): New static global.
1991 (get_ada_tasks_inferior_data): New function.
1992 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1993 (ada_get_environment_task, iterate_over_live_ada_tasks)
1994 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1995 Adjust.
1996 (ada_set_current_inferior_known_tasks_addr): New function.
1997 (read_known_tasks, ada_build_task_list, short_task_info)
1998 (info_tasks, info_task, info_tasks_command, task_command_1)
1999 (task_command, ada_task_list_changed): Adjust.
2000 (ada_tasks_invalidate_inferior_data): New function.
2001 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2002 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2003 * ada-lang.h (struct inferior): Add declaration.
2004 (ada_task_list_changed): Update profile.
2005 * remote-wtx-pd.c: #include "inferior.h".
2006 (switch_to_pd_internal): Update call to ada_task_list_changed.
2007
6da9ca05
JB
20082011-09-16 Joel Brobecker <brobecker@adacore.com>
2009
2010 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2011 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2012 (atcb_fieldno): Delete these static globals.
2013 (struct ada_tasks_pspace_data): New struct.
2014 (ada_tasks_pspace_data_handle): New static global.
2015 (get_ada_tasks_pspace_data): New function.
2016 (ada_tasks_invalidate_pspace_data): New function.
2017 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2018 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2019 (_initialize_tasks): Create this module's per-progspace
2020 data handle.
2021
dccd3cbd
JB
20222011-09-16 Joel Brobecker <brobecker@adacore.com>
2023
2024 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2025
f877b031
TG
20262011-09-16 Tristan Gingold <gingold@adacore.com>
2027
2028 * fork-child.c (fork_inferior): Update comment. Use alloca
2029 instead of xmalloc for argv. Move len and shell_command
2030 declarations in the block where they are used.
2031 Only call execvp. Factorize failure code.
2032
ae0c443d
JK
20332011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2034
2035 Code cleanup.
2036 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2037 `exp_element' instead of an element of the same and make the function
2038 static.
2039 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2040 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2041 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2042 Change argument of `write_exp_elt' function call.
2043 Remove extra spaces from comments.
2044 * parser-defs.h (write_exp_elt): Remove prototype.
2045
5af65ec0
PK
20462011-09-15 Paul Koning <paul_koning@dell.com>
2047
2048 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2049 count of item appended to list.
2050 * python/py-type.c (typy_fields): Likewise.
2051
72be8ccc
PK
20522011-09-15 Paul Koning <paul_koning@dell.com>
2053
883640a8 2054 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2055
92f6badc
KP
20562011-09-15 Kevin Pouget <kevin.pouget@st.com>
2057
2058 PR threads/12628
2059 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2060 processes with multiple threads.
2061 (inf_has_multiple_thread_cb): New function.
2062 (inf_has_multiple_threads): New function.
2063
0672bf41 20642011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2065
2066 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2067 * python/py-inferior.c (GdbMethods): New Python method definition.
2068
6839b47f
KP
20692011-09-15 Kevin Pouget <kevin.pouget@st.com>
2070
2071 Handle multiple breakpoint hits in Python interface:
2072 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2073 variable to breakpoints.
2074 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2075 bps instead of single breakpoint. Fix some space typos.
2076 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2077 variable to breakpoints.
2078
672f9b60
KP
20792011-09-15 Kevin Pouget <kevin.pouget@st.com>
2080
2081 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2082 note if the breakpoint is internal.
2083
43675ae4
KP
20842011-09-15 Kevin Pouget <kevin.pouget@st.com>
2085
0672bf41 2086 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2087
15148d6a
PA
20882011-09-14 Pedro Alves <pedro@codesourcery.com>
2089
2090 * infrun.c (prepare_for_detach, wait_for_inferior)
2091 (fetch_inferior_event): Don't flush the register cache.
2092 * remote.c (struct stop_reply) <regcache>: Add comment.
2093
d83e736b
JK
20942011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2095
2096 Remove excessive DWARF expressions memory duplication.
2097 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2098 for block.data.
2099 (indirect_pieced_value): Remove variable result. Remove variable
2100 back_to and its use for baton.data.
2101 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2102 block.data.
2103 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2104 Update the function comment.
2105
c65b3e0d
PA
21062011-09-13 Pedro Alves <pedro@codesourcery.com>
2107
2108 * inferior.h (ALL_INFERIORS): New.
2109 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2110 for a stopped thread.
2111 (thread_db_find_new_threads): Look for threads in all inferiors.
2112
a1398e0c
PA
21132011-09-13 Pedro Alves <pedro@codesourcery.com>
2114
2115 * breakpoint.c (update_watchpoint): Handle the case of the
2116 watchpoint to update not being in the breakpoint list yet.
2117 (hw_watchpoint_use_count): New, factored out from
2118 hw_watchpoint_used_count.
2119 (hw_watchpoint_used_count): Rename to ...
2120 (hw_watchpoint_used_count_others): ... this. Add `except'
2121 parameter. Don't count resources of `except'. Use
2122 hw_watchpoint_use_count.
2123
30596231
PA
21242011-09-13 Pedro Alves <pedro@codesourcery.com>
2125
2126 * gdbthread.h (enum thread_state): Moved here.
2127 (struct thread_info): Rename `executing_' field to `executing' and
2128 `state_' to `state'.
2129 * thread.c (enum thread_state): Moved to gdbthread.h.
2130 (new_thread, add_thread_silent, delete_thread_1)
2131 (any_live_thread_of_process, thread_alive, set_running)
2132 (set_running, is_thread_state, any_running, is_executing)
2133 (set_executing, finish_thread_state, print_thread_info)
2134 (do_captured_thread_select): Adjust.
2135
bede5f5f
JK
21362011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2139 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2140
4801a9a3
PA
21412011-09-12 Pedro Alves <pedro@codesourcery.com>
2142 Matt Rice <ratmice@gmail.com>
2143
2144 PR gdb/13175
2145
2146 * interps.c (struct interp) <interpreter_out>: Delete field.
2147 (interp_new): Remove the data and uiout parameters and adjust.
2148 (interp_set): Only set the current_uiout from the interpreter's
2149 uiout after initializing the interpreter. Adjust call to
2150 init_proc.
2151 (interp_ui_out): Adjust to call procs->ui_out_proc.
2152 (interp_data, interp_name): New.
2153 * interps.h (interp_init_ftype): Add `self' parameter.
2154 (interp_ui_out_ftype): New typedef.
2155 (struct interp_procs) <ui_out_proc>: New method pointer.
2156 (interp_new): Remove the data and uiout parameters.
2157 (interp_data, interp_name): Declare.
2158 * tui/tui-interp.c (tui_init): Adjust prototype.
2159 (tui_ui_out): New.
2160 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2161 tui_out here. Adjust call to interp_new.
2162 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2163 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2164 (cli_ui_out): New.
2165 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2166 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2167 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2168 Initialize mi->uiout depending on the mi_version as extracted from
2169 the interpreter's name.
2170 (mi_ui_out): New.
2171 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2172 interp_new. Don't allocate the ui_out's of the interpreters here.
2173
d0afda03 21742011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2175
d0afda03 2176 * solib.c (solib_used): New function.
59145f8c
AR
2177 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2178 by another so_list object before freeing it.
2179
bdaf8d4a
JK
21802011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 Code cleanup.
2183 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2184 values.
2185
df15bd07
JK
21862011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2187
2188 Code cleanup.
2189 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2190 (amd64_skip_xmm_prologue): ... this new function. Describe its
2191 parameters. No longer use amd64_prologue_line_bug.
2192 * defs.h (producer_is_gcc_ge_4): New declaration.
2193 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2194 (process_full_comp_unit): Update its caller. Remove
2195 amd64_prologue_line_bug initialization.
2196 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2197 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2198
25289eb2
PA
21992011-09-09 Pedro Alves <pedro@codesourcery.com>
2200
2201 * linux-nat.h (enum resume_kind): New.
2202 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2203 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2204 resume_stop on the new lwp.
25289eb2
PA
2205 (add_lwp): Set last_resume_kind as resume_continue by default.
2206 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2207 (resume_lwp): New, factored out from resume_callback. Also check
2208 for pending status in lp->waitstatus.
2209 (resume_callback): Reimplement.
2210 (resume_clear_callback): Set last_resume_kind as resume_stop.
2211 (resume_set_callback): Set last_resume_kind as resume_continue.
2212 (linux_nat_resume, linux_handle_extended_wait): Set
2213 last_resume_kind.
2214 (running_callback): Also check lp->waitstatus for pending events.
2215 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2216 is resume_step.
2217 (stop_and_resume_callback): Don't re-resume if the core wanted the
2218 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2219 using an invalidated pointer.
2220 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2221 SIGSTOPs if the core wanted the LWP to stop.
2222 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2223 wanted the lwp to stop. If the core wanted the lwp to stop, and
2224 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2225 of TARGET_SIGNAL_STOP.
2226 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2227 here. Instead, signal the lwp, and set the last_resume_kind to
2228 resume_stop.
2229
f687d035
PA
22302011-09-09 Pedro Alves <pedro@codesourcery.com>
2231
2232 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2233 -1 (error), if the lwp exits right after attaching.
2234
bc587a6b
DE
22352011-09-08 Doug Evans <dje@google.com>
2236
63d97a20
DE
2237 * py-cmd.c: Some minor formatting fixes.
2238 (gdbpy_parse_command_name): Rename text arg to name, make const.
2239 All callers updated.
2240 * python-internal.h (gdbpy_parse_command_name): Update.
2241
bc587a6b
DE
2242 * cli/cli-decode.c (add_cmd): Add comment.
2243
08711b9a
JK
22442011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2245
2246 PR breakpoints/12435
2247 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2248 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2249 * dwarf2read.c (process_full_comp_unit): Initialize
2250 amd64_prologue_line_bug.
2251 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2252
b2e7f004
JK
22532011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2254
2255 Fix TUI screen corruption.
2256 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2257 batch_flag.
2258
8afd712c
JK
22592011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2260
2261 * findvar.c (read_var_value): Never return NULL, throw an error
2262 instead. Update the function comment. State symbol name in the error
2263 messages.
2264 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2265 read_var_value.
2266 * stack.c (print_frame_args): Likewise.
2267 * valops.c (value_of_variable): Likewise.
2268
b99b5f66
JK
22692011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2270
2271 * stack.c (print_frame_args): New variable except. Wrap
2272 read_var_value and common_val_print into TRY_CATCH.
2273
85bc8cb7
JK
22742011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2275
2276 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2277 caller to value_of_this.
2278 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2279 Twice.
2280 * valops.c (value_of_this): Remove parameter complain and variable ret.
2281 Update function comment. Never return NULL by this code.
2282 (value_of_this_silent): New function.
2283 * value.h (value_of_this): Remove parameter complain.
2284 (value_of_this_silent): New declaration.
2285
ede1849f
YQ
22862011-09-07 Yao Qi <yao@codesourcery.com>
2287
2288 * gdbthread.h (struct thread_info): Remove fields
2289 `stepping_through_solib_after_catch' and
2290 `stepping_through_solib_catchpoints'.
2291 * infrun.c (init_thread_stepping_state): Update.
2292 (process_event_stop_test, currently_stepping): Update.
2293 (currently_stepping_or_nexting_callback): Update.
2294
6aa27652
YQ
22952011-09-07 Yao Qi <yao@codesourcery.com>
2296
2297 * gdbthread.h (struct thread_info): Comment on field
2298 `step_after_step_resume_breakpoint'.
2299
00db5b94
PA
23002011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2301
2302 * remote.c (remote_console_output): Reindent.
2303
861152be
LM
23042011-09-06 Luis Machado <lgustavo@codesourcery.com>
2305
2306 * frame.c (has_stack_frames): Check for currently selected
2307 traceframe.
2308
ab821bc6
PA
23092011-09-06 Pedro Alves <pedro@codesourcery.com>
2310
2311 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2312 (set_async_annotation_level, set_async_prompt, pop_prompt)
2313 (push_prompt, new_async_prompt): Delete declarations.
2314 * top.h (get_prompt, set_prompt): Change prototype.
2315 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2316 declarations.
2317 * top.c (command_loop):
2318 (top_prompt): New global.
2319 (get_prefix, set_prefix, get_suffix, ): Delete.
2320 (get_prompt, set_prompt): Rewrite.
2321 (show_new_async_prompt): Rename to ...
2322 (show_prompt): ... this.
2323 (init_main): Adjust. Don't handle --annotate=2 here.
2324 * event-top.c (new_async_prompt): Delete.
2325 (the_prompts): Delete.
2326 (more_to_come): Make static.
2327 (display_gdb_prompt): Use top_level_prompt() to compute the top
2328 level prompt, and don't notify the before_prompt observers
2329 directly here. Always trick readline into not trying to display
2330 the prompt if sync_execution and displaying the primary prompt.
2331 If displaying a local/secondary prompt, always show it, even if
2332 sync_execution is set.
2333 (change_annotation_level): Delete.
2334 (top_level_prompt): New, based on change_annotation_level.
2335 (push_prompt, pop_prompt): Delete.
2336 (async_disable_stdin): No longer pushes prompt.
2337 (command_line_handler): No longer pushes or pops prompt. If more
2338 input is expected, call display_gdb_prompt with an explicit empty
2339 prompt.
2340 (async_stop_sig): Adjust.
2341 (set_async_annotation_level, set_async_prompt): Delete.
2342 * python/python.c (before_prompt_hook): Adjust.
2343
f1d90504
PA
23442011-09-05 Pedro Alves <pedro@codesourcery.com>
2345
2346 PR cli/13110
2347
2348 * infrun.c (fetch_inferior_event): Check if there's a selected
2349 thread before checking if the selected thread is executing.
2350
0f641c01
PA
23512011-09-05 Pedro Alves <pedro@codesourcery.com>
2352
2353 * inf-loop.c (execute_command): Don't check if the current thread
2354 if running before synchronously waiting for command completion.
2355 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2356 here.
2357 (normal_stop): Call async_enable_stdin here.
2358 * inf-loop.c (inferior_event_handler): Don't call
2359 async_enable_stdin, nor handle "set exec-done-display" here.
2360
30368258 23612011-09-04 Joel Brobecker <brobecker@adacore.com>
2362
2363 GDB 7.3.1 released.
2364
31916278
JB
23652011-09-04 Joel Brobecker <brobecker@adacore.com>
2366
2367 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2368
e8d56f18
JB
23692011-09-04 Joel Brobecker <brobecker@adacore.com>
2370
2371 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2372
5dd05d8c
JK
23732011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2374
2375 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2376
7d8e6458 23772011-09-02 Matt Rice <ratmice@gmail.com>
2378
2379 PR gdb/10720
2380 * event-top.c (cli_command_loop): Replace readline setup with
2381 direct call to display_gdb_prompt.
2382 (display_gdb_prompt): Do not call observer mechanism during
2383 synchronous execution.
2384
84636d28
PA
23852011-09-02 Pedro Alves <pedro@codesourcery.com>
2386
2387 * linux-nat.c (in_pid_list_p): New.
2388 (linux_record_stopped_pid): Delete.
2389 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2390 already attached to the LWP. Return an indication if so.
2391 (linux_nat_filter_event): Adjust.
2392 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2393 returning an indication to ignore this thread.
2394
b4a14fd0
PA
23952011-09-02 Pedro Alves <pedro@codesourcery.com>
2396
2397 * top.c: Include interps.h.
2398 (execute_command): If the target can async, but the interpreter is
2399 in sync mode, synchronously wait for the command to finish before
2400 returning.
2401 (execute_command_to_string): Force the interpreter to sync mode.
2402 * infrun.c: Include interps.h.
2403 (fetch_inferior_event): Don't restore the prompt yet if the
2404 interpreter is in sync mode.
2405 * interps.c (interpreter_async): New global.
2406 * interps.h (interpreter_async): Declare.
2407 * inf-loop.c: Include interps.h.
2408 (inferior_event_handler): Don't print the language change or run
2409 breakpoint commands yet if the interpreter in is sync mode.
2410 * main.c (captured_command_loop): Flip the interpreter to async
2411 mode.
2412 * cli/cli-script.c: Include interps.h.
2413 (execute_user_command, while_command, if_command): Force the
2414 interpreter to sync mode.
2415 * python/python.c: Include interps.h.
2416 (python_command, execute_gdb_command): Force the interpreter to
2417 sync mode.
2418
c709acd1
PA
24192011-09-02 Pedro Alves <pedro@codesourcery.com>
2420
2421 * value.c (show_convenience): Catch errors thrown while printing
2422 each internal variable.
2423 * infrun.c (validate_siginfo_access): New function.
2424 (siginfo_value_read, siginfo_value_write): Call it.
2425
9655e943
JK
24262011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2427
2428 Revert:
2429 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2430 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2431 attribute.
2432
cb457ae2
YQ
24332011-08-29 Yao Qi <yao@codesourcery.com>
2434
2435 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2436 (cmp_name): New.
2437 (enable_break2): Update caller.
2438 * solib-frv.c (bfd_lookup_symbol): Removed.
2439 (cmp_name): New.
2440 (enable_break2): Update caller.
2441 * solib-pa64.c (bfd_lookup_symbol): Removed.
2442 (cmp_name): New.
2443 * solib-svr4.c (bfd_lookup_symbol): Removed.
2444 (cmp_name_and_sec_flags): New.
2445 (enable_break): Update caller.
2446 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2447 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2448 (gdb_bfd_lookup_symbol): New.
2449 * solib.h: Functions declarations.
2450
83d1a36a
YQ
24512011-08-29 Yao Qi <yao@codesourcery.com>
2452
2453 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2454 and solib-dsbt.o.
2455
c04b3e8f
JK
24562011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2457
2458 Fix TUI stepi on code without symbols.
2459 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2460 current PC instead.
2461
cb0fd152
JK
24622011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2463
2464 Code cleanup.
2465 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2466 and the static keyword.
2467 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2468 Make prefix an array.
2469 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2470 * mi/mi-main.c (get_register): Remove stb initialization and the static
2471 keyword.
2472
91174723
JK
24732011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 Code cleanup - make mi_opt const.
2476 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2477 opts const.
2478 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2479 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2480 (mi_cmd_env_dir): Likewise.
2481 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2482 (mi_cmd_target_file_put): Likewise.
2483 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2484 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2485 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2486 (mi_valid_noargs): Make opts const.
2487 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2488 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2489 (mi_cmd_data_read_memory): Likewise.
2490 (mi_cmd_data_read_memory_bytes): Likewise.
2491 (mi_cmd_data_write_memory): Likewise.
2492
5068b8e8 24932011-08-26 Matt Rice <ratmice@gmail.com>
2494
2495 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2496 bcache_xmalloc, replace bcache_xmalloc with call to
2497 psymbol_bcache_init for psymbol_cache.
2498 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2499
a4f2ce05
JK
25002011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2501
2502 * inf-loop.c (inferior_event_handler): Add exception_print in
2503 INF_EXEC_COMPLETE.
2504
353d1d73
JK
25052011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2506
2507 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2508 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2509 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2510 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2511 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2512 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2513 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2514 * infrun.c (fetch_inferior_event): Call
2515 make_bpstat_clear_actions_cleanup.
2516 * top.c (execute_command): New variable cleanup_if_error, call
2517 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2518 * utils.c (do_bpstat_clear_actions_cleanup)
2519 (make_bpstat_clear_actions_cleanup): New functions.
2520
3ced3da4
PA
25212011-08-26 Pedro Alves <pedro@codesourcery.com>
2522
2523 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2524 either the parent or the child forks. Rename a couple locals.
2525
a9f4bb21
PA
25262011-08-26 Pedro Alves <pedro@codesourcery.com>
2527
2528 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2529 library call. Avoid reading the `status' local if all waitpid
2530 calls failed.
2531
e5798bef
PA
25322011-08-26 Pedro Alves <pedro@codesourcery.com>
2533
2534 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2535 opening /proc/PID/task always succeeds.
2536
edb2aadf
AR
25372011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2538
2539 * linespec.c (symtab_from_filename): Check for the end of string.
2540
0d932b2f
MK
25412011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2542
2543 PR mi/11912
2544 * varobj.c (cplus_describe_child): Add the keyword
2545 'class' to the output of the method when dealing
2546 with a cast to a base class.
2547
e93ca019
JK
25482011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2549
2550 No functionality change.
2551 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2552 function comment a reference, new variables tp and bs, move here code
2553 from throw_exception.
2554 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2555 describe it in the comment.
2556 * exceptions.c (throw_exception): Remove variable tp, move the code for
2557 bpstat_clear_actions to bpstat_clear_actions.
2558
13da1c97
LM
25592011-08-24 Luis Machado <lgustavo@codesourcery.com>
2560
2561 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2562 * linux-nat.c: Include linux-procfs.h.
2563 (linux_proc_get_tgid): Move to ...
2564 * common/linux-procfs.c: ... here. New file.
2565 * common/linux-procfs.h: New file.
2566 * linux-thread-db.c: Include linux-procfs.h.
2567 * Makefile.in: Update dependencies.
2568 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2569 * config/arm/linux.mh: Likewise.
2570 * config/i386/linux.mh: Likewise.
2571 * config/i386/linux64.mh: Likewise.
2572 * config/ia64/linux.mh: Likewise.
2573 * config/m32r/linux.mh: Likewise.
2574 * config/m68k/linux.mh: Likewise.
2575 * config/mips/linux.mh: Likewise.
2576 * config/pa/linux.mh: Likewise.
2577 * config/pa/linux.mh: Likewise.
2578 * config/powerpc/linux.mh: Likewise.
2579 * config/powerpc/ppc64-linux.mh: Likewise.
2580 * config/powerpc/spu-linux.mh: Likewise.
2581 * config/sparc/linux.mh: Likewise.
2582 * config/sparc/linux64.mh: Likewise.
2583 * config/xtensa/linux.mh: Likewise.
2584
4e5c165d
HZ
25852011-08-24 Hui Zhu <teawater@gmail.com>
2586
2587 * tracepoint.c (cond_string_is_same): New function.
2588 (find_matching_tracepoint): Add condition check
2589 by cond_string_is_same.
2590
6e2f5b22
JK
25912011-08-23 Josh Matthews <josh@joshmatthews.net>
2592
2593 Fix build error in Darwin port.
2594 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2595
abf85f46
JK
25962011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2597
2598 Code cleanup.
2599 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2600 (command_line_is_silent): New function.
2601 (bpstat_do_actions_1): No longer use commands_left, use
2602 command_line_is_silent for commands.
2603 (bpstat_alloc): Remove clearing of commands_left.
2604 (bpstat_stop_status): Remove initialization of commands_left, use
2605 command_line_is_silent.
2606 * breakpoint.h (struct bpstats): Remove commands_left.
2607
3a93a0c2
KS
26082011-08-18 Keith Seitz <keiths@redhat.com>
2609
2610 PR c++/12266
2611 * cp-name-parser.y (struct demangle_info): Remove unused
2612 member PREV.
2613 (d_grab): Likewise.
2614 (allocate_info): Change return type to struct demangle_info *.
2615 Always allocate a new demangle_info.
2616 Remove unused PREV pointer.
2617 (cp_new_demangle_parse_info): New function.
2618 (cp_demangled_name_parse_free): New function.
2619 (do_demangled_name_parse_free_cleanup): New function.
2620 (make_cleanup_cp_demangled_name_parse_free): New function.
2621 (cp_demangled_name_to_comp): Change return type to
2622 struct demangle_parse_info *.
2623 Allocate a new storage for each call.
2624 (main): Update usage for cp_demangled_name_to_comp
2625 API change.
2626 * cp-support.h (struct demangle_parse_info): New structure.
2627 (cp_demangled_name_to_comp): Update API change for
2628 return type.
2629 (cp_new_demangle_parse_info): Declare.
2630 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2631 (cp_demangled_name_parse_free): Declare.
2632 * cp-support.c (cp_canonicalize_string): Update API
2633 change for cp_demangled_name_to_comp.
2634 (mangled_name_to_comp): Likewise.
2635 Return struct demangle_parse_info, too.
2636 (cp_class_name_from_physname): Update mangled_name_to_comp
2637 API change.
2638 (method_name_from_physname): Likewise.
2639 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2640 (cp_remove_params): Likewise.
2641 * python/py-type.c (typy_legacy_template_argument): Likewise.
2642
2643 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2644 (cp_merge_demangle_parse_infos): Declare.
2645 * cp-support.c (ignore_typedefs): New file global.
2646 (copy_string_to_obstack): New function.
2647 (inspect_type): New function.
2648 (replace_typedefs): New function.
2649 (replace_typedefs_qualified_name): New function.
2650 (cp_canonicalize_string_no_typedefs): New function.
2651 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2652 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2653 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2654 instead of cp_canonicalize_string.
2655 (find_method): Likewise.
2656 (decode_compound): Before looking up the name, call
2657 cp_canonicalize_string_no_typedefs.
2658 (decode_variable): Likewise.
2659
fa3a4f15
PM
26602011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2661 Tom Tromey <tromey@redhat.com>
2662 Matt Rice <ratmice@gmail.com>
2663
2664 * python/lib/gdb/prompt.py: New file.
2665 * python/lib/gdb/command/prompt.py: New file.
2666 * NEWS: Document set extended-prompt and gdb.prompt library
2667
85661b1e
YQ
26682011-08-16 Yao Qi <yao@codesourcery.com>
2669
2670 * tic6x-linux-tdep.c: Move const arrays definition from here...
2671 * tic6x-tdep.c: to here ...
2672
11315641
YQ
26732011-08-14 Yao Qi <yao@codesourcery.com>
2674
2675 * NEWS: New port to Texas Instruments TMS320C6x.
2676
8cd64e00
YQ
26772011-08-14 Andrew Jenner <andrew@codesourcery.com>
2678 Bernd Schmidt <bernds@codesourcery.com>
2679 Yao Qi <yao@codesourcery.com>
2680
2681 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2682 * solib-dsbt.c: New file. Support DSBT shared object.
2683 * tic6x-linux-tdep.c: New file.
2684 * tic6x-tdep.c: New file.
2685 * tic6x-tdep.h: New file.
2686
78d85199
YQ
26872011-08-14 Andrew Stubbs <ams@codesourcery.com>
2688 Yao Qi <yao@codesourcery.com>
2689
2690 * remote.c (PACKET_qXfer_fdpic): New enum value.
2691 (remote_protocol_features): Add qXfer:fdpic:read packet.
2692 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2693 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2694 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2695
224bbe49
YQ
26962011-08-14 Yao Qi <yao@codesourcery.com>
2697
2698 Target description for tic6x.
2699 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2700 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2701 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2702 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2703 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2704 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2705 * features/tic6x-c64xp-linux.xml: New.
2706 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2707 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2708 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2709 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2710 * regformats/tic6x-c64xp.dat,
2711 regformats/tic6x-c62x-linux.dat: Generated.
2712 * regformats/tic6x-c64x-linux.dat,
2713 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2714 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2715 features/tic6x-*.c files.
2716 Add regformats/tic6x-*.dat files.
2717
457e09f0
DE
27182011-08-12 Doug Evans <dje@google.com>
2719
2720 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2721 * python/py-symbol.c (sympy_get_type): New function.
2722 (symbol_object_getset): Add "type".
2723
d20c1c3f
PA
27242011-08-12 Pedro Alves <pedro@codesourcery.com>
2725
2726 PR tui/13073
2727
2728 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2729 empty name.
2730 (tui_show_register_group): Don't store a byte buffer in the data
2731 element's value.
2732 (tui_register_format): Skip registers with an empty name.
2733 (tui_get_register): Store a struct value in the data element's
2734 value field instead of a byte buffer holding the raw register
2735 contents. Account for optimized-out and unavailable registers
2736 when comparing register contents.
2737
9d8fa392
PA
27382011-08-09 Pedro Alves <pedro@codesourcery.com>
2739
2740 * printcmd.c (current_display_number): Update comment.
2741 (disable_current_display_cleanup): Delete.
2742 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2743 catch errors thrown while evaluating and printing the display.
2744
401a70b8
TT
27452011-08-09 Tom Tromey <tromey@redhat.com>
2746
2747 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2748
7f86f058
PA
27492011-08-09 Pedro Alves <pedro@codesourcery.com>
2750
94b71cca 2751 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2752 * maint.c (maintenance_command): Ditto.
2753 * somread.c (som_symtab_read): Ditto.
2754 * solib.c (solib_find, solib_map_sections, update_solib_list)
2755 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2756 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2757 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2758 * solib-irix.c (locate_base, disable_break, enable_break)
2759 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2760 (irix_current_sos, irix_open_symbol_file_object)
2761 (irix_special_symbol_handling): Ditto.
2762 * solib-sunos.c (locate_base, first_link_map_member)
2763 (sunos_current_sos, disable_break, enable_break)
2764 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2765 Ditto.
2766 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2767 (open_symbol_file_object, svr4_current_sos, enable_break)
2768 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2769 Ditto.
2770 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2771 (frv_current_sos, enable_break, frv_special_symbol_handling)
2772 (frv_solib_create_inferior_hook): Ditto.
2773 * solist.h (struct target_so_ops): Extend the comments of the
2774 special_symbol_handling, current_sos and open_symbol_file_object
2775 methods.
2776
5e239b84
PM
27772011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2778
2779 * python/lib/gdb/__init__.py: Auto-load files in command and
2780 function directories.
2781 * python/python.c (finish_python_initialization): Use
2782 os.path.join.
2783 * python/lib/gdb/command/pretty_printers.py: Self register
2784 command.
2785 * NEWS: Document auto-loading.
2786
b6cede78
JK
27872011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2788
2789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2790 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2791 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2792
29d0bb3d
TT
27932011-08-08 Tom Tromey <tromey@redhat.com>
2794
2795 * breakpoint.c (clean_up_filters): Remove.
2796 (catch_syscall_split_args): Use VEC_cleanup.
2797
2f7fb8e4
JK
27982011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2799
2800 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2801 (main): Uncomment "Demangling error\n".
2802
d6c10e95
PP
28032011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2804
2805 * solib-target.c (segment_attributes): Make them static.
2806 (section_attributes, library_children, library_attributes): Likewise.
2807 (library_list_children, library_list_attributes): Likesise.
2808 (library_list_elements): Likewise.
2809
af6e93b2
PA
28102011-08-05 Pedro Alves <pedro@codesourcery.com>
2811
2812 * exceptions.c (throw_exception): Don't disable the current
2813 display.
2814 * printcmd.c (disable_current_display_cleanup): New function.
2815 (do_one_display): Install a cleanup to disable the current display
2816 if doing the display throws.
2817
6a1b1664
EZ
28182011-08-05 Eli Zaretskii <eliz@gnu.org>
2819
2820 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2821 initialization of the tp_new member to the corresponding
2822 gdbpy_initialize_* function.
2823 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2824 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2825 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2826 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2827 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2828
31a0ae49
JK
28292011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2830
2831 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2832 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2833 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2834 references to current_uiout.
2835
e0dd0826
PA
28362011-08-04 Pedro Alves <pedro@codesourcery.com>
2837
2838 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2839 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2840 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2841 * top.c (gdb_readline_wrapper): Adjust.
2842 * tui/tui-interp.c (tui_command_loop):
2843 (_initialize_tui_interp): Don't install it.
2844
79a45e25
PA
28452011-08-04 Pedro Alves <pedro@codesourcery.com>
2846
2847 * ui-out.h (uiout): Rename to ...
2848 (current_uiout): ... this.
2849 * ui-out.c (uiout): Rename to ...
2850 (current_uiout): ... this.
2851 * ada-lang.c (print_it_exception, print_one_exception)
2852 (print_mention_exception): Adjust.
2853 * breakpoint.c (watchpoint_check): Adjust.
2854 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2855 (default_collect_info, watchpoints_info, print_one_catch_fork)
2856 (print_one_catch_vfork, print_one_catch_syscall)
2857 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2858 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2859 (print_it_watchpoint, print_mention_watchpoint)
2860 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2861 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2862 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2863 (bkpt_print_mention, momentary_bkpt_print_it)
2864 (tracepoint_print_mention, update_static_tracepoint)
2865 (tracepoints_info, save_breakpoints): Adjust.
2866 * cli-out.c (field_separator): Adjust.
2867 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2868 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2869 * frame.c (get_current_frame): Adjust.
2870 * infcmd.c (run_command_1, print_return_value): Adjust.
2871 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2872 * infrun.c (print_end_stepping_range_reason): Adjust.
2873 (print_signal_exited_reason, print_exited_reason): Adjust.
2874 (print_signal_received_reason, print_no_history_reason): Adjust.
2875 * interps.c (interp_set): Adjust.
2876 * osdata.c (info_osdata_command): Adjust.
2877 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2878 * remote-fileio.c (remote_fileio_request): Adjust.
2879 * remote.c (show_remote_cmd): Adjust.
2880 * solib.c (info_sharedlibrary_command): Adjust.
2881 * source.c (print_source_lines_base): Adjust.
2882 * stack.c (print_stack_frame): Adjust.
2883 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2884 * symfile-mem.c (add_vsyscall_page): Adjust.
2885 * symfile.c (load_progress, generic_load)
2886 (print_transfer_performance): Adjust.
2887 * thread.c (info_threads_command, restore_selected_frame)
2888 (thread_command): Adjust.
2889 * top.c (make_cleanup_restore_ui_file): Adjust.
2890 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2891 (print_one_static_tracepoint_marker): Adjust.
2892 * cli/cli-cmds.c (print_disassembly): Adjust.
2893 * cli/cli-decode.c (print_doc_line): Adjust.
2894 * cli/cli-interp.c (safe_execute_command): Adjust.
2895 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2896 (handle_redirections): Adjust.
2897 * cli/cli-script.c (show_user_1): Adjust.
2898 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2899 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2900 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2901 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2902 (mi_cmd_env_dir): Adjust.
2903 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2904 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2905 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2906 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2907 (list_args_or_locals): Adjust.
2908 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2909 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2910 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2911 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2912 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2913 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2914 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2915 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2916 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2917 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2918 (list_available_thread_groups, mi_cmd_list_thread_groups)
2919 (mi_cmd_data_list_register_names)
2920 (mi_cmd_data_list_changed_registers)
2921 (mi_cmd_data_list_register_values, get_register)
2922 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2923 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2924 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2925 (mi_execute_command, mi_load_progress): Adjust.
2926 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2927 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2928 Adjust.
2929 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2930 * tui/tui-interp.c (tui_command_loop): Adjust.
2931 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2932
f9679975
PA
29332011-08-04 Pedro Alves <pedro@codesourcery.com>
2934
2935 * exceptions.c (struct catcher): Remove saved_uiout field.
2936 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2937 no longer save/resvore the global ui_out builder.
2938 (catch_exceptions_with_msg): Save/override/restore the global
2939 ui_out builder manually instead of relying on TRY_CATCH to do it.
2940 (catch_errors): Save/restore the global ui_out builder manually
2941 instead of relying on TRY_CATCH to do it.
2942 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2943 parameter.
2944 (TRY_CATCH): Adjust.
2945 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2946 the global ui_out builder manually instead of relying on TRY_CATCH
2947 to do it.
2948
934709f0
PW
29492011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2950
2951 * breakpoint.c (update_global_location_list): Ensure
2952 invariant 'first loc marked not duplicated and inserted,
2953 following locs marked duplicated/not inserted' is respected
2954 for multiple locations at the same address.
2955 (unduplicated_should_be_inserted) New function.
2956 (swap_insertion) New function.
2957
2421fe6f
JK
29582011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2959
2960 * stack.c (print_frame_arguments_choices): Comment typo fix.
2961
3fbb6ffa
TJB
29622011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2963
2964 Revert:
2965 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2966 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2967 argument. Update callers.
2968
fbe12357
PP
29692011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2970
2971 PR gdb/13045
2972 * doublest.c (convert_doublest_to_floatformat): Pass correct
2973 mantissa length to put_field.
2974
b1d288d3
JK
29752011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2976
2977 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2978 exception_print code path.
2979 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2980 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2981 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2982
311b5970
JK
29832011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2984
2985 Code cleanup.
2986 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2987 Remove, merge them into ...
2988 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2989 variable args and its initialization.
2990 (struct print_args_args, print_args_stub): Remove, merge them into
2991 print_frame.
2992 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2993 them into ...
2994 (do_gdb_disassembly): ... here. Remove variable args and its
2995 initialization.
2996 (print_frame): Remove variable args and its initialization, new
2997 variable gdbarch and numargs (from print_args_stub), inline here
2998 print_args_stub with a TRY_CATCH.
2999 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3000 them into ...
3001 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3002 New variable e, remove variable btargs and its initialization.
311b5970 3003
484a26a8
TG
30042011-08-01 Tristan Gingold <gingold@adacore.com>
3005
3006 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3007
c30eee59
TJB
30082011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3009
3010 * breakpoint.c (insert_bp_location): Document return value.
3011 (insert_breakpoint_locations): Fix documentation.
3012 (remove_breakpoints): Add documentation.
3013
f116073b
TJB
30142011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3015
3016 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3017 argument. Update callers.
3018
65aa373f
JK
30192011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3020
3021 * stack.c (print_frame_info): Comment typo fix.
3022
a50242fb
SA
30232011-07-29 Sterling Augustine <saugustine@google.com>
3024
3025 * MAINTAINERS (Write After Approval): Add myself to the list.
3026
267f6504
TT
30272011-07-29 Tom Tromey <tromey@redhat.com>
3028
3029 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3030 (library_list_start_segment): Update.
3031 (library_list_start_section): Update.
3032
00bd41d6
PM
30332011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3034
3035 * varobj.c (value_get_print_value): Move hint check later into the
3036 function. Comment function. Free thevalue before reusing it.
3037
18a46dbe
JK
30382011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3039 Pedro Alves <pedro@codesourcery.com>
3040
3041 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3042 value_one.
3043 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3044 Assert the result kind.
3045 * value.h (value_one): Remove parameter lv.
3046
bb7da2bf
JK
30472011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3048
3049 Fix crash on lval_computed values.
3050 * valops.c (value_zero): Use not_lval for lval_computed.
3051
2d5213f8
TT
30522011-07-27 Tom Tromey <tromey@redhat.com>
3053
3054 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3055 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3056
11081198
JK
30572011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3058
3059 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3060 "ptype" by their typedefs difference.
3061
3c6e0cb3
JK
30622011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3063
3064 * dwarf2expr.c (ctx_no_read_reg): New function.
3065 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3066 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3067 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3068 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3069
523f3620
JK
30702011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3073 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3074 file.
3075 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3076 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3077 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3078 (ctx_no_get_base_type): Move the functions here.
3079 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3080 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3081 (ctx_no_get_base_type): New declarations.
3082
24d3216f
TT
30832011-07-27 Tom Tromey <tromey@redhat.com>
3084
3085 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3086 entries.
3087 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3088 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3089
5005c8a9
PP
30902011-07-26 Sterling Augustine <saugustine@google.com>
3091
3092 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3093 ULONGEST.
3094 (dump_bfd_file): Likewise.
3095
480a3f21
PW
30962011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3097
3098 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3099 (remote_hw_watchpoint_length_limit): New variable.
3100 (_initialize_remote) add set,show cmds for this new variable.
3101 * gdb.texinfo: document these new commands.
3102 * NEWS: Mention these new commands.
3103
efa80663
PA
31042011-07-26 Pedro Alves <pedro@codesourcery.com>
3105
3106 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3107 true for software watchpoints.
3108
dbdaa232 31092011-07-26 Joel Brobecker <brobecker@adacore.com>
3110
3111 GDB 7.3 released.
3112
cf2c3c16
TT
31132011-07-26 Tom Tromey <tromey@redhat.com>
3114
3115 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3116 * dwarf2read.c (read_indirect_string_at_offset): New function.
3117 (read_indirect_string): Use it.
3118 (dwarf_decode_macro_bytes): New function, taken from
3119 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3120 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3121 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3122 New functions.
3123 (struct dwarf2_per_objfile) <macro>: New field.
3124 (dwarf2_elf_names): Add .debug_macro.
3125 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3126 (dwarf2_locate_sections): Handle new section.
3127 (read_file_scope): Handle DW_AT_GNU_macros.
3128 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3129
1a532630
PP
31302011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3131
3132 * NEWS: Mention dcache configuration.
3133 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3134 (dcache_size, dcache_line_size): New variables.
3135 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3136 (struct dcache_block): Make it expandable.
3137 (struct dcache_struct): New field.
3138 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3139 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3140 (dcache_poke_byte, dcache_print_line): Adjust.
3141 (set_dcache_size, set_dcache_line_size): New functions.
3142 (set_dcache_command, show_dcache_command): New functions.
3143 (_initialize_dcache): Add new commands.
3144
2eff07b3
PP
31452011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3146
3147 * progspace.h (struct program_space): Add solib_add_generation.
3148 * infcmd.c (post_create_inferior): Only call solib_add if not
3149 already done.
3150 * solib.c (solib_add): Increment solib_add_generation.
3151
543305c9
JK
31522011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3153
3154 Fix implicit pointer offsets.
3155 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3156 ptr.OFFSET.
3157
c0a91b2b
TT
31582011-07-25 Tom Tromey <tromey@redhat.com>
3159
3160 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3161 const.
3162 (ada_exception_sal): Make 'ops' const.
3163 (ada_decode_exception_location): Likewise.
3164 (ada_decode_assert_location): Likewise.
3165 (catch_assert_command): Update.
3166 (catch_ada_exception_command): Update.
3167 (create_ada_exception_catchpoint): Make 'ops' const.
3168 * breakpoint.c (set_raw_breakpoint_without_location)
3169 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3170 const.
3171 (create_internal_breakpoint): Update.
3172 (init_raw_breakpoint_without_location): Make 'ops' const.
3173 (init_raw_breakpoint, init_catchpoint)
3174 (create_fork_vfork_event_catchpoint)
3175 (create_syscall_event_catchpoint, init_breakpoint_sal)
3176 (create_breakpoint_sal, create_breakpoints_sal)
3177 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3178 * breakpoint.h (struct breakpoint) <ops>: Now const.
3179 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3180 const.
3181
6cb9b55b
PP
31822011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3183
3184 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3185
d9b3f62e
PA
31862011-07-25 Pedro Alves <pedro@codesourcery.com>
3187
3188 * breakpoint.h (print_recreate_thread): Declare.
3189 (struct breakpoint): Move step_count, pass_count,
3190 number_on_target, static_trace_marker_id,
3191 static_trace_marker_id_idx ...
3192 (struct tracepoint): ... to this new struct.
3193 (get_tracepoint, get_tracepoint_by_number_on_target)
3194 (get_tracepoint_by_number): Change return type to struct
3195 tracepoint pointer.
3196 * breakpoint.c (is_tracepoint_type): New, factored out from
3197 is_tracepoint.
3198 (is_tracepoint): Adjust.
3199 (print_one_breakpoint_location): Cast to struct tracepoint as
3200 necessary, and adjust.
3201 (print_recreate_catch_fork, print_recreate_catch_vfork)
3202 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3203 print_recreate_thread.
3204 (init_breakpoint_sal): New, factored out from
3205 create_breakpoint_sal.
3206 (create_breakpoint_sal): Reimplement.
3207 (create_breakpoint): Allocate a struct tracecepoint if the caller
3208 wanted a tracepoint. Use init_breakpoint_sal and
3209 install_breakpoint.
3210 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3211 (print_recreate_masked_watchpoint)
3212 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3213 (tracepoint_print_one_detail): Adjust.
3214 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3215 Dump the pass count here.
3216 (update_static_tracepoint): Adjust.
3217 (addr_string_to_sals): Adjust.
3218 (create_tracepoint_from_upload): Adjust. Change return type to
3219 struct tracepoint pointer.
3220 (trace_pass_set_count): Change parameter type to struct tracepoint
3221 pointer, and adjust.
3222 (trace_pass_command): Adjust.
3223 (get_tracepoint, get_tracepoint_by_number_on_target)
3224 (get_tracepoint_by_number): Change return type to struct
3225 tracepoint pointer, and adjust.
3226 (print_recreate_thread): New, factored out from save_breakpoints.
3227 (save_breakpoints): Don't print thread and task and passcount
3228 recreation here.
3229 * remote.c (remote_download_tracepoint): Adjust.
3230 * tracepoint.c (trace_actions_command, validate_actionline)
3231 (start_tracing, tfind_1, trace_find_tracepoint_command)
3232 (trace_dump_command): Adjust.
3233 (find_matching_tracepoint): Change return type to struct
3234 tracepoint pointer, and adjust.
3235 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3236 (tfile_trace_find, tfile_fetch_registers): Adjust.
3237 * tracepoint.h (create_tracepoint_from_upload): Change return type
3238 to struct tracepoint pointer.
3239 * ada-lang.c (print_recreate_exception): Call
3240 print_recreate_thread.
3241 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3242
3a5c3e22
PA
32432011-07-25 Pedro Alves <pedro@codesourcery.com>
3244
3245 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3246 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3247 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3248 watchpoint_thread, watchpoint_triggered ...
3249 (struct watchpoint): ... to this new struct.
3250 (is_watchpoint): Declare.
3251 (install_breakpoint): Add new `internal' parameter.
3252 * breakpoint.c (is_watchpoint): Delete declaration.
3253 (set_breakpoint_condition): Handle watchpoints.
3254 (is_watchpoint): Make public.
3255 (watchpoint_in_thread_scope): Change parameter type to struct
3256 watchpoint.
3257 (watchpoint_del_at_next_stop): Change parameter type to struct
3258 watchpoint. Remove assertion. Adjust.
3259 (update_watchpoint): Ditto.
3260 (insert_breakpoints, breakpoint_init_inferior)
3261 (watchpoints_triggered, watchpoint_check)
3262 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3263 (bpstat_stop_status, print_one_breakpoint_location)
3264 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3265 to struct watchpoint as necessary, and adjust.
3266 (install_breakpoint): Add `internal' argument. If true, don't
3267 mention the new breakpoint. Use set_breakpoint_number.
3268 (create_fork_vfork_event_catchpoint)
3269 (create_syscall_event_catchpoint): Adjust.
3270 (dtor_watchpoint): New.
3271 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3272 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3273 (print_it_watchpoint, print_mention_watchpoint)
3274 (print_recreate_watchpoint, insert_masked_watchpoint)
3275 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3276 (print_one_detail_masked_watchpoint)
3277 (print_mention_masked_watchpoint)
3278 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3279 necessary, and adjust.
3280 (watch_command_1): Allocate and initialize a struct watchpoint
3281 instead of a struct breakpoint. Use install_breakpoint.
3282 (catch_exec_command_1): Adjust.
3283 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3284 fields.
3285 (delete_breakpoint, enable_breakpoint_disp)
3286 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3287 as necessary, and adjust.
3288 (initialize_breakpoint_ops): Install dtor_watchpoint as
3289 watchpoints' dtor method.
3290 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3291 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3292 to struct watchpoint as necessary, and adjust.
3293
2060206e
PA
32942011-07-25 Pedro Alves <pedro@codesourcery.com>
3295
3296 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3297 the the base class ops table.
3298 (catch_exception_breakpoint_ops)
3299 (catch_exception_unhandled_breakpoint_ops)
3300 (catch_assert_breakpoint_ops): Don't statically initialize.
3301 (initialize_ada_catchpoint_ops): New.
3302 (_initialize_ada_language): Call it.
3303 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3304 (bkpt_breakpoint_ops): Forward declare.
3305 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3306 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3307 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3308 (masked_watchpoint_breakpoint_ops)
3309 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3310 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3311 base class ops table.
3312 (null_re_set, null_check_status, null_works_in_software_mode)
3313 (null_resources_needed, null_print_one_detail): Delete.
3314 (bkpt_dtor): Rename to ...
3315 (base_breakpoint_dtor): ... this. Make static.
3316 (bkpt_allocate_location): Rename to ...
3317 (base_breakpoint_allocate_location): ... this. Make static.
3318 (base_breakpoint_re_set): New.
3319 (internal_error_pure_virtual_called): New.
3320 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3321 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3322 (base_breakpoint_works_in_software_mode)
3323 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3324 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3325 (base_breakpoint_print_recreate): New functions.
3326 (base_breakpoint_ops): New global.
3327 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3328 (bkpt_breakpoint_hit): Make static.
3329 (bkpt_check_status): Delete.
3330 (bkpt_resources_needed): Make static.
3331 (bkpt_works_in_software_mode): Delete.
3332 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3333 static.
3334 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3335 (momentary_breakpoint_ops): Don't statically initialize.
3336 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3337 Delete.
3338 (tracepoint_insert_location, tracepoint_remove_location)
3339 (tracepoint_check_status, tracepoint_works_in_software_mode)
3340 (tracepoint_print_it): Delete.
3341 (tracepoint_breakpoint_ops): Don't statically initialize.
3342 (initialize_breakpoint_ops): New.
3343 (_initialize_breakpoint): Call it.
3344 * breakpoint.h (null_re_set, null_works_in_software_mode)
3345 (null_resources_needed, null_check_status, null_print_one_detail):
3346 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3347 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3348 (bkpt_check_status, bkpt_resources_needed)
3349 (bkpt_works_in_software_mode, bkpt_print_it)
3350 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3351 Delete declarations.
3352 (initialize_breakpoint_ops): Declare.
3353
001c8c33
PA
33542011-07-25 Pedro Alves <pedro@codesourcery.com>
3355
3356 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3357 (momentary_bkpt_print_it): Simplify.
3358
06edf0c0
PA
33592011-07-25 Pedro Alves <pedro@codesourcery.com>
3360
3361 Split internal, momentary and user breakpoints breakpoint_ops
3362 tables.
3363
3364 * breakpoint.c (internal_breakpoint_ops)
3365 (momentary_breakpoint_ops): Forward declare.
3366 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3367 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3368 (create_overlay_event_breakpoint)
3369 (create_std_terminate_master_breakpoint)
3370 (create_exception_master_breakpoint): Create breakpoints with
3371 internal_breakpoint_ops vtable.
3372 (set_longjmp_breakpoint): Create momentary breakpoints with
3373 momentary_breakpoint_ops vtable, using
3374 momentary_breakpoint_from_master.
3375 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3376 (create_solib_event_breakpoint): Create breakpoints with
3377 internal_breakpoint_ops vtable.
3378 (set_momentary_breakpoint): Create breakpoints with
3379 momentary_breakpoint_ops vtable.
3380 (momentary_breakpoint_from_master): New, factored out from
3381 clone_momentary_breakpoint.
3382 (clone_momentary_breakpoint): Adjust.
3383 (watch_command_1): Create scope breakpoints with
3384 momentary_breakpoint_ops vtable.
3385 (bkpt_re_set): Remove handling of internal and momentary
3386 breakpoints.
3387 (bkpt_print_mention, bkpt_print_recreate): New.
3388 (bkpt_breakpoint_ops): Adjust.
3389 (internal_bkpt_re_set, internal_bkpt_check_status)
3390 (internal_bkpt_print_it, internal_bkpt_print_mention)
3391 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3392 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3393 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3394 (momentary_bkpt_print_recreate): New.
3395 (momentary_breakpoint_ops): New.
3396
348d480f
PA
33972011-07-25 Pedro Alves <pedro@codesourcery.com>
3398
3399 Implement most breakpoint_ops methods for all breakpoint types,
3400 and move the default handlings to the proper callbacks.
3401
3402 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3403 works_in_software_mode method.
3404 (insert_bp_location): Go through breakpoint_ops->insert_location
3405 for software and hardware watchpoints.
3406 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3407 breakpoint_ops.
3408 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3409 for software and hardware watchpoints.
3410 (print_it_typical): Delete.
3411 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3412 method.
3413 (watchpoint_check): Adjust comment.
3414 (bpstat_check_location): Simply always call the breakpoint's
3415 breakpoint_hit method.
3416 (bpstat_stop_status): Always call the breakpoint's check_status
3417 method. Remove special cases for watchpoints and internal event
3418 breakpoints from here (moved to the check_status implementations).
3419 (print_one_breakpoint_location): Assume b->ops is never NULL.
3420 Remove static tracepoint marker id printing from here (moved to
3421 the print_one_detail callback implementation of tracepoints).
3422 (init_bp_location): Assert OPS is never NULL.
3423 (allocate_bp_location): Always call the breakpoint's
3424 allocate_location method, and remove the default code from here.
3425 (free_bp_location): Always call the location's dtor method, and
3426 remove the default code from here.
3427 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3428 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3429 parameter. Pass it down.
3430 (set_raw_breakpoint): Ditto.
3431 (print_it_catch_fork): Adjust to take a bpstat as argument.
3432 (catch_fork_breakpoint_ops): Install methods.
3433 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3434 (catch_vfork_breakpoint_ops): Install methods.
3435 (dtor_catch_syscall): Call the base dtor.
3436 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3437 (catch_syscall_breakpoint_ops): Install methods.
3438 (dtor_catch_exec): Call the base dtor.
3439 (print_it_catch_exec): Adjust to take a bpstat as argument.
3440 (catch_exec_breakpoint_ops): Install methods.
3441 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3442 the breakpoint's resources_needed method, and remove the default
3443 code from here.
3444 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3445 breakpoint_ops.
3446 (clone_momentary_breakpoint): Clone the original's ops.
3447 (mention): Always call the breakpoint's print_mention method, and
3448 remove the default code from here.
3449 (create_breakpoint_sal): Adjust to pass the ops to
3450 set_raw_breakpoint rather than setting it manually.
3451 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3452 ops to set_raw_breakpoint_without_location rather than setting it
3453 manually.
3454 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3455 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3456 (ranged_breakpoint_ops): Install methods.
3457 (break_range_command): Adjust to pass the ops to
3458 set_raw_breakpoint rather than setting it manually.
3459 (re_set_watchpoint, breakpoint_hit_watchpoint)
3460 (check_status_watchpoint, resources_needed_watchpoint)
3461 (works_in_software_mode_watchpoint, print_it_watchpoint)
3462 (print_mention_watchpoint, print_recreate_watchpoint): New
3463 functions.
3464 (watchpoint_breakpoint_ops): Install new methods.
3465 (print_it_masked_watchpoint): New function.
3466 (masked_watchpoint_breakpoint_ops): Install new methods.
3467 (watch_command_1): Adjust to pass the right breakpoint_ops to
3468 set_raw_breakpoint_without_location rather than setting it
3469 manually later. Record the current pspace.
3470 (print_it_exception_catchpoint): Adjust to take a bpstat as
3471 argument.
3472 (gnu_v3_exception_catchpoint_ops): Install new methods.
3473 (say_where): New function.
3474 (null_re_set, null_check_status, null_works_in_software_mode)
3475 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3476 New functions.
3477 (bp_location_ops): New global.
3478 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3479 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3480 (bkpt_check_status, bkpt_resources_needed)
3481 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3482 (bkpt_print_recreate): New functions.
3483 (bkpt_breakpoint_ops): New global.
3484 (tracepoint_re_set, tracepoint_insert_location)
3485 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3486 (tracepoint_check_status, tracepoint_works_in_software_mode)
3487 (tracepoint_print_it, tracepoint_print_one_detail)
3488 (tracepoint_print_mention, tracepoint_print_recreate): New
3489 functions.
3490 (tracepoint_breakpoint_ops): New global.
3491 (delete_breakpoint): Always call the breakpoint's dtor method, and
3492 remove the default handling from here.
3493 (breakpoint_re_set_default): Make static.
3494 (breakpoint_re_set_one): Always call the breakpoints re_set
3495 method, and remove the default handling from here.
3496 (trace_command, ftrace_command, strace_command)
3497 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3498 to create_breakpoint.
3499 (save_breakpoints): Always call the breakpoint's print_recreate
3500 method, and remove the default handling from here.
3501
3502 * ada-lang.c (dtor_exception): Call the base dtor.
3503 (re_set_exception): Call the base method.
3504 (print_it_exception, print_it_catch_exception): Adjust to take a
3505 bpstat as argument.
3506 (catch_exception_breakpoint_ops): Install methods.
3507 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3508 argument.
3509 (catch_exception_unhandled_breakpoint_ops): Install methods.
3510 (print_it_catch_assert): Adjust to take a bpstat as argument.
3511 (catch_assert_breakpoint_ops): Install methods.
3512
3513 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3514 to take a bpstat as argument.
3515 (enum print_stop_action): Add describing comments to each enum
3516 value.
3517 (breakpoint_re_set_default): Delete declaration.
3518 (null_re_set, null_works_in_software_mode, null_resources_needed)
3519 (null_check_status, null_print_one_detail): Declare.
3520 (bkpt_breakpoint_ops): Declare.
3521 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3522 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3523 (bkpt_check_status, bkpt_resources_needed)
3524 (bkpt_works_in_software_mode, bkpt_print_it)
3525 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3526 Declare.
3527
3528 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3529 bkpt_breakpoint_ops.
3530 * python/py-breakpoint.c (bppy_init): Ditto.
3531
be8f8133
PW
35322011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3533
3534 * MAINTAINERS (Write After Approval): Add myself to the list.
3535
3807f613
PP
35362011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3537
3538 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3539
1ced966e
PA
35402011-07-22 Pedro Alves <pedro@codesourcery.com>
3541
3542 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3543 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3544 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3545 adjust.
3546 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3547 (struct i386_debug_reg_state): New.
3548 (i386_init_dregs): New.
3549 (dr_mirror): New.
3550 (i386_cleanup_dregs): Use i386_init_dregs.
3551 (i386_show_dr): Add state parameter and adjust.
3552 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3553 the inferior here.
3554 (i386_remove_aligned_watchpoint): Likewise.
3555 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3556 (i386_update_inferior_debug_regs): New.
3557 (i386_insert_watchpoint): Work on a local mirror of the debug
3558 registers, and only update the inferior on success.
3559 (i386_remove_watchpoint): Ditto.
3560 (i386_region_ok_for_watchpoint): Adjust.
3561 (i386_stopped_data_address): Adjust.
3562 (i386_insert_hw_breakpoint): Adjust.
3563 (i386_remove_hw_breakpoint): Adjust.
3564
3543a589
TT
35652011-07-22 Tom Tromey <tromey@redhat.com>
3566
3567 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3568 from amd64_pseudo_register_read. Change arguments. Call
3569 mark_value_bytes_unavailable when needed.
3570 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3571 set_gdbarch_pseudo_register_read.
3572 * sentinel-frame.c (sentinel_frame_prev_register): Use
3573 regcache_cooked_read_value.
3574 * regcache.h (regcache_cooked_read_value): Declare.
3575 * regcache.c (regcache_cooked_read_value): New function.
3576 (regcache_cooked_read): Call
3577 gdbarch_pseudo_register_read_value if available.
3578 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3579 (i386_pseudo_register_read): Remove.
3580 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3581 i386_pseudo_register_read. Change arguments. Call
3582 mark_value_bytes_unavailable when needed.
3583 (i386_pseudo_register_read_value): New function.
3584 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3585 not set_gdbarch_pseudo_register_read.
3586 * gdbarch.sh (pseudo_register_read_value): New method.
3587 * gdbarch.c, gdbarch.h: Rebuild.
3588 * findvar.c (value_from_register): Call get_frame_register_value.
3589
95298e72
PM
35902011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3591
3592 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3593 get_prefix.
3594 (display_gdb_prompt): Likewise.
3595 (change_annotation_level): Likewise.
3596 (push_prompt): Likewise.
3597 (pop_prompt): Likewise.
3598 (handle_stop_sig): Use get_prompt with a level.
3599 * top.c (command_loop): Use get_prompt with a level.
3600 (set_async_annotation_level): Use set_prompt with a level.
3601 (get_prefix): New function.
3602 (set_prefix): Ditto.
3603 (set_suffix): Ditto.
3604 (get_suffix): Ditto.
3605 (get_prompt): Accept a level argument.
3606 (set_prompt): Accept a level argument. Free old prompts. Set
3607 new_async_prompt if level is 0.
3608 (init_main): Use set_prompt with a level. Do not set
3609 new_async_prompt.
3610 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3611 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3612 Modify set_prompt, get_prompt to account for levels.
3613 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3614 level.
3615 * python/python.c (before_prompt_hook): Use set_prompt.
3616
d26e3629
KY
36172011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3618
3619 * defs.h: Add guard against inclusion in gdbserver.
3620 (struct ptid, ptid_t): Move to common/ptid.h.
3621 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3622 xsnprintf, internal_error): Move to common/common-utils.h.
3623 (nomem): Delete.
3624 * gdb_assert.h: Move into common/ sub-directory.
3625 * gdb_locale.h: Ditto.
3626 * gdb_dirent.h: Ditto.
3627 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3628 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3629 Move into common/ptid.h.
3630 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3631 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3632 Change nomem to malloc_failure.
3633 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3634 * utils.c (nomem): Rename to malloc_failure.
3635 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3636 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3637 (gdb_buildargv): Change nomem to malloc_failure.
3638 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3639 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3640 ptid_is_pid): Move into common/ptid.c.
3641 (initialize_infrun): Delete initialization of null_ptid and
3642 minus_one_ptid.
3643 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3644 linux_common_xfer_osdata.
3645 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3646 common/ptid.c and common/buffer.c.
3647 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3648 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3649 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3650 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3651 rules.
3652 * common/gdb_assert.h: New.
3653 * common/gdb_dirent.h: New.
3654 * common/gdb_locale.h: New.
3655 * common/buffer.c: New.
3656 * common/buffer.h: New.
3657 * common/ptid.c: New.
3658 * common/ptid.h: New.
3659 * common/xml-utils.c: New.
3660 * common/xml-utils.h: New.
3661 * common/common-utils.c: New.
3662 * common/common-utils.h: New.
3663 * common/linux-osdata.c: New.
3664 * common/linux-osdata.h: New.
3665 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3666 * config/arm/linux.mh (NATDEPFILES): Ditto.
3667 * config/i386/linux.mh (NATDEPFILES): Ditto.
3668 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3669 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3670 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3671 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3672 * config/mips/linux.mh (NATDEPFILES): Ditto.
3673 * config/pa/linux.mh (NATDEPFILES): Ditto.
3674 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3675 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3676 * config/s390/s390.mh (NATDEPFILES): Ditto.
3677 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3678 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3679 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3680
edc84990 36812011-07-21 Matt Rice <ratmice@gmail.com>
3682
3683 * NEWS: Add info macros and info definitions commands.
3684
3a7bf607
PM
36852011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3686
3687 * NEWS: Document Python prompt substitution hook.
3688
9b158ba0 36892011-07-18 Matt Rice <ratmice@gmail.com>
3690
3691 PR macros/12999
3692 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3693 * macrotab.c (foreach_macro): Ditto.
3694 (foreach_macro_in_scope): Ditto.
3695 * macrocmd.c (print_macro_callback): New function.
3696 (info_macro_command): Move some code to print_macro_definition.
3697 (print_macro_definition): New function.
3698 (print_one_macro): Add new arguments to callback.
3699 (info_definitions_command): New function.
3700 (info_macros_command): Ditto.
3701 (_initialize_macrocmd): Add info macros and info definitions commands.
3702 * symtab.c (add_macro_name): Add new arguments to callback.
3703
d17b6f81
PM
37042011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3705 Tom Tromey <tromey@redhat.com>
3706
3707 * top.c (set_prompt): Rewrite to free previous prompt, free
3708 asynch_new_prompt and set both on new prompts.
3709 * event-top.c (display_gdb_prompt): Add prompt substitution
3710 logic.
3711 * python/python.c (before_prompt_hook): New function.
3712
1364323a 37132011-07-20 Matt Rice <ratmice@gmail.com>
3714
3715 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3716 arguments to store_unsigned_integer.
3717
8b70b953
TT
37182011-07-20 Tom Tromey <tromey@redhat.com>
3719
6c83ed52
TT
3720 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3721 in some declaration-only cases.
3722
37232011-07-18 Tom Tromey <tromey@redhat.com>
3724
8b70b953
TT
3725 PR symtab/12984:
3726 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3727 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3728 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3729 <debug_type_section>: New field.
3730 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3731 (load_cu): Use appropriate section.
3732 (create_signatured_type_table_from_index): Add 'section'
3733 argument.
3734 (dwarf2_read_index): Only allow a single .debug_types section.
3735 (dw2_get_file_names): Use appropriate section.
3736 (read_type_comp_unit_head): Add 'section' argument.
3737 (create_debug_types_hash_table): Loop over all .debug_types
3738 sections.
3739 (init_cu_die_reader): Use appropriate section.
3740 (process_psymtab_comp_unit, load_partial_comp_unit)
3741 (load_full_comp_unit, read_die_and_children, find_partial_die)
3742 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3743 (lookup_signatured_type_at_offset): Add 'section' argument.
3744 (read_signatured_type_at_offset): Add 'sect' argument.
3745 (read_signatured_type): Use appropriate section.
3746 (set_die_type, get_die_type_at_offset): Update.
3747 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3748 VEC.
3749 (write_psymtabs_to_index): Don't allow index with more than one
3750 .debug_types section.
3751
918dd910
JK
37522011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3753
3754 Fix crash if referenced CU is aged out.
3755 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3756 xfree of block.data.
3757 (indirect_pieced_value): New variable back_to, use to for xfree of
3758 baton.data.
3759 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3760 block.data.
3761 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3762 (load_cu): New function from ...
3763 (dw2_do_instantiate_symtab): ... the code here ...
3764 (process_full_comp_unit): ... and here.
3765 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3766 retval.data.
3767
0e37a63c
JK
37682011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3769
3770 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3771 type.
3772
7e324e48
GB
37732011-07-19 Gary Benson <gbenson@redhat.com>
3774
3775 * infrun.c (struct execution_control_state): New member
3776 stop_func_filled_in.
3777 (clear_stop_func, fill_in_stop_func): New functions.
3778 (handle_inferior_event): Call clear_stop_func rather than
3779 manipulating the execution control state directly.
3780 Call fill_in_stop_func lazily as required rather than
3781 directly calling find_pc_partial_function in all cases.
3782
d48323d8
TT
37832011-07-18 Tom Tromey <tromey@redhat.com>
3784
3785 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3786 checking for variable-sized array.
3787
40591b7d
JCD
37882011-07-18 Jean-Charles Delay <delay@adacore.com>
3789
3790 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3791 of supported languages.
3792 * varobj.c: Add top definitions and basic implementation of the
3793 following callbacks: ada_number_of_children, ada_name_of_variable,
3794 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3795 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3796 (languages): Register Ada-specific callbacks.
3797 (variable_language): Add the Ada case in the language setter switch.
3798
2e424e08
JK
37992011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3800
3801 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3802
9e8b7a03
JK
38032011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3804
3805 Code cleanup.
3806 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3807 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3808 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3809 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3810 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3811 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3812 (struct dwarf_expr_context_funcs): New, move here methods from ...
3813 (struct dwarf_expr_context): ... here. New fields funcs.
3814 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3815 (dwarf_expr_ctx_funcs): New.
3816 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3817 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3818 (needs_frame_ctx_funcs): New.
3819 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3820
2b1260ab
FM
38212011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3822
3823 * MAINTAINERS (Write After Approval): Add myself to the list.
3824
8bd90839
FM
38252011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3826
3827 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3828 that CIE pointer of an FDE really points to a CIE .
3829
953b98d1
HZ
38302011-07-15 Hui Zhu <teawater@gmail.com>
3831
3832 * remote.c (remote_get_trace_status): Add comments.
3833
c8f2448a
JK
38342011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3835
3836 Code cleanup - constify struct lval_funcs.
3837 * dwarf2loc.c (pieced_value_funcs): Make it const.
3838 * infrun.c (siginfo_value_funcs): Likewise.
3839 * opencl-lang.c (opencl_value_funcs): Likewise.
3840 * valops.c (value_assign, value_ind): Make the funcs variable const.
3841 * value.c (struct value): Make location.computed.funcs target const.
3842 Rearrange the comments.
3843 (allocate_computed_value): Make the funcs parameter target const.
3844 (value_computed_funcs): Return the funcs target const.
3845 (value_free, value_copy, set_value_component_location): Make the funcs
3846 variable const.
3847 * value.h (allocate_computed_value): Make the funcs parameter target
3848 const.
3849 (value_computed_funcs): Return the funcs target const.
3850 * windows-tdep.c (tlb_value_funcs): Make it const.
3851
f652de6f
HZ
38522011-07-14 Hui Zhu <teawater@gmail.com>
3853
3854 * remote.c (remote_get_trace_status): Initialize p.
3855
67f41397
JK
38562011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3857
3858 Work around kgdb.
3859 * remote.c (remote_get_trace_status): New variable ex. Put
3860 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3861
d1b66e6d
TT
38622011-07-13 Tom Tromey <tromey@redhat.com>
3863
3864 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3865 value_from_contents for final conversion.
3866
1632a688
JK
38672011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3868
3869 Code cleanup.
3870 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3871 Indent prototypes so they do not get into tags.
3872
a7035dbb
JK
38732011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3874
3875 Code cleanup making also optimized out values lazy.
3876 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3877 allocate_optimized_out_value. Twice.
3878 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3879 * findvar.c (read_var_value): Likewise.
3880 * value.c (allocate_optimized_out_value): New function.
3881 * value.h (allocate_optimized_out_value): New declaration.
3882
d07ed419
JK
38832011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3884
3885 Fix occasional crash of CTRL-C during DWARF read in.
3886 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3887
86d31898
TT
38882011-07-11 Tom Tromey <tromey@redhat.com>
3889
3890 * regcache.c (struct regcache_descr): Fix typo.
3891 * i387-tdep.c (i387_supply_xsave): Fix typo.
3892
2ab95328
TT
38932011-07-11 Tom Tromey <tromey@redhat.com>
3894
3895 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3896 (read_file_scope, read_type_unit_scope): Use it.
3897
04ad99e6
JK
38982011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3899
3900 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3901 `int'.
3902
713389e0
PM
39032011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3904
3905 PR python/12438
3906 * python/python.c: Set gdbpy_should_print_stack default to off.
3907 (set_python): Deprecate maint set python print-stack to
3908 class_deprecate.
3909 (_initialize_python): Deprecate maint set/show python print-stack.
3910 Add new prefix command, python. Add new setting, print-backtrace.
3911 * NEWS: Document set python print-stack. Document default change.
3912
754eadd1
PM
39132011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3914
3915 * python/py-inferior.c (infpy_dealloc): New function.
3916 (inferior_to_inferior_object): Return a new object, or a
3917 new reference to the existing object.
3918 (find_thread_object): Cleanup references to inferior.
3919 (delete_thread_object): Ditto.
3920 * python/py-infthread.c (create_thread_object): Do not increment
3921 inferior reference count.
3922
5e44ecb3
TT
39232011-07-08 Tom Tromey <tromey@redhat.com>
3924
3925 * dwarf2loc.c (locexpr_regname): New function.
3926 (locexpr_describe_location_piece): Use it.
3927 (disassemble_dwarf_expression): Add per_cu argument. Use
3928 locexpr_regname.
3929 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3930 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3931 New cases.
3932 (locexpr_describe_location_1): Add per_cu argument.
3933 (locexpr_describe_location): Update.
3934 (loclist_describe_location): Update.
3935
e0e9434c
TT
39362011-07-08 Tom Tromey <tromey@redhat.com>
3937
3938 * dwarf2expr.c (execute_stack_op): Add QUIT.
3939
26afc0d7
HZ
39402011-07-07 Hui Zhu <teawater@gmail.com>
3941
3942 Revert:
3943 2011-07-06 Hui Zhu <teawater@gmail.com>
3944 * remote.c (remote_start_remote): Add TRY_CATCH for
3945 remote_get_trace_status.
3946 * tracepoint.c (disconnect_tracing): Ditto.
3947
a40a111f
AB
39482011-07-07 Andrew Burgess <aburgess@broadcom.com>
3949
3950 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3951 variables as signed, not unsigned.
3952
e2bd3b15
JB
39532011-07-06 Joel Brobecker <brobecker@adacore.com>
3954
3955 * jit.c (jit_inferior_init): Reformat forward declaration.
3956
e3d961fe 39572011-07-06 Matt Rice <ratmice@gmail.com>
3958
3959 * MAINTAINERS (Write After Approval): Add myself to the list.
3960
0f3428f0
HZ
39612011-07-06 Hui Zhu <teawater@gmail.com>
3962
3963 * remote.c (remote_start_remote): Add TRY_CATCH for
3964 remote_get_trace_status.
3965 * tracepoint.c (disconnect_tracing): Ditto.
3966
fc9f3a69
TT
39672011-07-05 Tom Tromey <tromey@redhat.com>
3968
3969 * symtab.c (operator_chars): Now static.
3970 * linespec.c (operator_chars): Don't declare.
3971
26e519b9
TJB
39722011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3973
3974 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3975
eb2a6f42
TT
39762011-07-05 Tom Tromey <tromey@redhat.com>
3977
3978 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3979 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3980 (TYPE_CPLUS_REALLY_JAVA): New macro.
3981 * dwarf2read.c (process_structure_scope): Set
3982 TYPE_CPLUS_REALLY_JAVA.
3983
21083d0f 39842011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3985
3986 * ada-lang.c: Fix typos.
3987 * amd64-tdep.c: Likewise.
3988 * breakpoint.c: Likewise.
3989 * cli/cli-decode.c: Likewise.
3990 * findcmd.c: Likewise.
3991 * inline-frame.c: Likewise.
3992 * mi/mi-main.c: Likewise.
3993 * minsyms.c: Likewise.
3994 * monitor.c: Likewise.
3995 * monitor.h: Likewise.
3996 * prologue-value.c: Likewise.
3997 * reverse.c: Likewise.
3998 * s390-tdep.c: Likewise.
3999
3b2a0cf2
JB
40002011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4001
4002 * jit.c (jit_inferior_init): Forward declare.
4003 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4004
efae1d92
JB
40052011-07-04 Joel Brobecker <brobecker@adacore.com>
4006
4007 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4008
6040a59d
JB
40092011-07-04 Tristan Gingold <gingold@adacore.com>
4010
4011 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4012 (tcb_fieldno): Add activation_link field.
4013 (get_known_tasks_addr): Moved and rewritten.
4014 (get_tcb_types_info): Set activation_link field.
4015 (read_known_tasks_array): Add parameter. Rewritten.
4016 (read_known_tasks_list): New function.
4017 (read_known_tasks): New function.
4018 (ada_build_task_list): Call read_known_tasks instead of
4019 read_known_tasks_array.
4020 * ravenscar-thread.c: Add first_task_name constant.
4021 (has_ravenscar_runtime): Check for task list too.
4022
cb741e45
JB
40232011-07-04 Tristan Gingold <gingold@adacore.com>
4024
4025 * ada-tasks.c: Renames fieldno to actb_fieldno.
4026 (ada_get_task_number): Indentation.
4027 (get_tcb_types_info): Remove all parameters. Write directly
4028 the globals.
4029 (ptid_from_atcb_common): Adjust.
4030 (read_atcb): Adjust.
4031
7475b06c
TJB
40322011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4033
4034 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4035
15230f37
TJB
40362011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4037
4038 * ui-out.c (ui_out_field_core_addr): Mention that the function
4039 description is in the header file.
4040 * ui-out.h (ui_out_field_core_addr): Document function.
4041
65743aba
TJB
40422011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4043
4044 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4045 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4046
c37a5aab
TJB
40472011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4048
4049 * symtab.c (expand_line_sal): Remove empty line.
4050
59adf69e
TS
40512011-07-04 Thomas Schwinge <thomas@schwinge.name>
4052
4053 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4054 same way as ELFOSABI_NONE.
4055 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4056
e5dd4106
TJB
40572011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4058
4059 * breakpoint.c: Fix typos in comments.
4060 * linespec.c: Likewise.
4061 * symtab.c: Likewise.
4062
d40102a1
JB
40632011-07-04 Joel Brobecker <brobecker@adacore.com>
4064
4065 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4066 section in separate object files.
4067
2f741504
JK
40682011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4069
4070 Fix false GCC warning.
4071 * linespec.c (decode_line_1): Initialize values.
4072
418c7cf7
JK
40732011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4074
4075 * linespec.c (find_method): Accept the function type automatically only
4076 if it was specified with parameter types.
4077
3d50dd94
JK
40782011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4079
4080 Stop on first linespec terminator instead of eating what we can.
4081 * linespec.c (is_linespec_boundary): New function.
4082 (name_end): Remove function.
4083 (keep_name_info): New parameter on_boundary, replace the body.
4084 (decode_line_1): Provide the parameter to keep_name_info.
4085 (decode_compound): Likewise. Drop the trailing java return type
4086 handling. Twice.
4087
dcf9f4ab
JK
40882011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4089
4090 Fall back linespec to minimal symbols.
4091 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4092 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4093 (find_method, symbol_found): Change error to cplusplus_error.
4094
3f542ed1
JK
40952011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4096
bc68c4e5 4097 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4098
900e11f9
JK
40992011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4100 Tom Tromey <tromey@redhat.com>
4101
4102 * dwarf2read.c (check_physname): New variable.
4103 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4104 (show_check_physname): New function.
4105 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4106
2301925d
JB
41072011-07-01 Joel Brobecker <brobecker@adacore.com>
4108
4109 * machoread.c (macho_symfile_read): Delete OBE comment.
4110
38947cca
JB
41112011-07-01 Joel Brobecker <brobecker@adacore.com>
4112
4113 * machoread.c (struct macho_oso_data): Delete.
4114 (current_oso): Delete.
4115 (macho_relocate_common_syms): New function, mostly extracted
4116 out of
4117 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4118 Remove code that sets and unset current_oso.
4119 (macho_symfile_relocate): Delete handling of common symbols,
4120 now moved to macho_relocate_common_syms.
4121
a7aa0d73
JB
41222011-07-01 Joel Brobecker <brobecker@adacore.com>
4123
4124 * darwin-nat.c (darwin_ptrace): Add documentation.
4125 Set errno to zero before calling ptrace. If ptrace returns
4126 -1 and errno is zero, then change then return zero.
4127 (darwin_kill_inferior): Issue a warning instead of triggering
4128 a failed assertion when the PT_KILL ptrace operations returned
4129 nonzero.
4130
5e9bc145
JB
41312011-07-01 Joel Brobecker <brobecker@adacore.com>
4132
4133 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4134 only when inf->private->no_ptrace.
4135
00eb2c4a
JB
41362011-07-01 Joel Brobecker <brobecker@adacore.com>
4137
4138 * ada-lang.c (print_it_exception): Print temporary catchpoints
4139 as "Temporary catchpoint".
4140 (print_mention_exception): Likewise.
4141
127c81bc
TT
41422011-07-01 Tom Tromey <tromey@redhat.com>
4143
4144 * jv-lang.c (java_language_defn): Use java_printchar,
4145 java_printstr.
4146 (java_get_encoding): New function.
4147 (java_emit_char): Use generic_emit_char.
4148 (java_printchar): New function.
4149 (java_printstr): Likewise.
4150
25552254
JB
41512011-07-01 Joel Brobecker <brobecker@adacore.com>
4152
4153 * ada-typeprint.c (print_record_type): If unable to decode
4154 the name of the parent type, use the encoded name.
4155
d2d43431
JB
41562011-07-01 Jean-Charles Delay <delay@adacore.com>
4157
4158 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4159 pointer to constrained packed array type output.
4160 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4161 packed array output.
4162
54ae186f
JB
41632011-07-01 Jean-Charles Delay <delay@adacore.com>
4164
4165 * ada-typeprint.c (print_array_type): removed if condition on show
4166 being negative for bounds printing.
4167
8f17729f
JB
41682011-07-01 Joel Brobecker <brobecker@adacore.com>
4169
4170 * ada-lang.c (ada_identical_enum_types_p): New function.
4171 (symbols_are_identical_enums): New function.
4172 (remove_extra_symbols): Do nothing if NSYMS < 2.
4173 Use symbols_are_identical_enums.
4174
f5aa6869
JB
41752011-07-01 Joel Brobecker <brobecker@adacore.com>
4176
4177 * ada-valprint.c (ada_value_print): Handle typedefs.
4178
8f465ea7
JB
41792011-07-01 Joel Brobecker <brobecker@adacore.com>
4180
4181 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4182
828292f2
JB
41832011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4184
4185 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4186 (decode_constrained_packed_array): Likewise.
4187 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4188
18920c42
JB
41892011-07-01 Joel Brobecker <brobecker@adacore.com>
4190
4191 * ada-exp.y (convert_char_literal): Handle typedef types.
4192
c90092fe
JB
41932011-07-01 Joel Brobecker <brobecker@adacore.com>
4194
4195 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4196
f748fb40
TT
41972011-06-30 Tom Tromey <tromey@redhat.com>
4198
4199 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4200 * valops.c (find_overload_match): Call do_cleanups on early exit
4201 path.
4202 * solib.c (solib_find): Call do_cleanups on early exit path.
4203
3bb47e8b
TT
42042011-06-30 Tom Tromey <tromey@redhat.com>
4205
4206 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4207 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4208 return paths. Defer final do_cleanups until last return.
4209 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4210 early return.
4211
4727bad3
TT
42122011-06-30 Tom Tromey <tromey@redhat.com>
4213
4214 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4215
bb361dbf
AB
42162011-06-30 Andrew Burgess <aburgess@broadcom.com>
4217
4218 * MAINTAINERS (Write After Approval): Add myself to the list.
4219
e0d00bc7
JK
42202011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 Disable epilogue unwinders on recent GCCs.
4223 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4224 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4225 * dwarf2read.c (process_full_comp_unit): Initialize
4226 EPILOGUE_UNWIND_VALID.
4227 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4228 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4229 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4230
4632c0d0
JK
42312011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 Code cleanup - reformatting.
4234 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4235 (producer_is_gcc_ge_4): ... here, change the return value.
4236 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4237 interpretation.
4238
32019081
JK
42392011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4240
4241 Fix non-only rename list for Fortran modules import.
4242 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4243 cp_add_using_directive caller.
4244 (cp_add_using_directive): New parameter excludes, describe it. New
4245 variables ix and param. Compare if also excludes match. Allocate NEW
4246 with variable size, initialize EXCLUDES there.
4247 (cp_lookup_symbol_imports): New variable excludep, test
4248 current->EXCLUDES with it.
4249 * cp-support.h: Include vec.h.
4250 (struct using_direct): New field excludes, describe it.
4251 (DEF_VEC_P (const_char_ptr)): New.
4252 (cp_add_using_directive): New parameter excludes.
4253 * defs.h (const_char_ptr): New typedef.
4254 * dwarf2read.c (read_import_statement): New variables child_die,
4255 excludes and cleanups, read in excludes.
4256 (read_namespace): Adjust the cp_add_using_directive caller.
4257
70c622a3
JK
42582011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4259
4260 Code cleanup.
4261 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4262 negative comparisons.
4263
39c4d40a
TT
42642011-06-29 André Pönitz <andre.poenitz@nokia.com>
4265
4266 * mi/mi-main.c (mi_cmd_list_features): Emit
4267 breakpoint-notifications.
4268
3b2b8fea
TT
42692011-06-29 Tom Tromey <tromey@redhat.com>
4270
4271 PR fortran/10036:
4272 * valprint.h (generic_emit_char, generic_printstr): Declare.
4273 * valprint.c (wchar_printable, append_string_as_wide)
4274 (print_wchar): Move from c-lang.c.
4275 (generic_emit_char): New function; mostly taken from c_emit_char.
4276 (generic_printstr): New function; mostly taken from c_printstr.
4277 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4278 represented as arrays.
4279 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4280 type.
4281 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4282 identically to TYPE_CODE_INT.
4283 * f-lang.c (f_get_encoding): New function.
4284 (f_emit_char): Use generic_emit_char.
4285 (f_printchar): Replace comment.
4286 (f_printstr): Use generic_printstr.
4287 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4288 "character" types specially.
4289 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4290 for Fortran.
4291 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4292 Move to valprint.c
4293 (c_emit_char): Call generic_emit_char.
4294 (c_printstr): Call generic_printstr.
4295
168e6d44
GB
42962011-06-29 Gary Benson <gbenson@redhat.com>
4297
4298 * breakpoint.c (bpstat_what): Removed duplicated case.
4299
1c033f8c
TT
43002011-06-28 Tom Tromey <tromey@redhat.com>
4301
4302 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4303
5fe41fbf
TT
43042011-06-27 Tom Tromey <tromey@redhat.com>
4305
4306 * valops.c (find_overload_match): Call do_cleanups before early
4307 return.
4308 * top.c (execute_command): Call do_cleanups before early return.
4309 (command_loop): Likewise.
4310 * stack.c (backtrace_command): Make a null cleanup early. Don't
4311 conditionally call do_cleanups.
4312 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4313 TRY_CATCH.
4314 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4315 so cleanups are always run.
4316 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4317 * findcmd.c (parse_find_args): Call do_cleanups on early return
4318 path.
4319 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4320 Don't conditionally call do_cleanups.
4321 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4322 later.
4323
e26bd57d
EB
43242011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4325
4326 * MAINTAINERS (Write After Approval): Use default email address.
4327
6c3097fc
JB
43282011-06-27 Joel Brobecker <brobecker@adacore.com>
4329
4330 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4331
369c397b
JB
43322011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4333
4334 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4335 saved_regs_mask and copied_regs_mask fields.
4336 (sparc_record_save_insn): New prototype.
4337 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4338 (sparc_record_save_insn): New function.
4339 (sparc_analyze_prologue): Add head comment. Recognize store insns
4340 of call-saved registers. Use OFFSET consistently. Recognize flat
4341 frames and cache their settings.
4342 (sparc32_skip_prologue): Handle flat frames.
4343 (sparc_frame_cache): Add frame_offset to the base address.
4344 (sparc32_frame_cache): Adjust to new frame description.
4345 (sparc32_frame_prev_register): Likewise.
4346 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4347 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4348 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4349 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4350 frame by calling sparc_record_save_insn.
4351 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4352 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4353 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4354
b315ab21
TG
43552011-06-27 Tristan Gingold <gingold@adacore.com>
4356
4357 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4358 field by map_addr and map_len.
4359 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4360 (munmap_section_buffer): Likewise.
4361
ddd49eee
TT
43622011-06-24 Tom Tromey <tromey@redhat.com>
4363
4364 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4365 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4366 * python/python.c (gdbpy_parameter): Make 'arg' const.
4367 (execute_gdb_command): Likewise.
4368 (gdbpy_decode_line): Likewise. Copy it.
4369 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4370 (gdbpy_write): Make 'arg' const.
4371 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4372 const.
4373 (gdbpy_lookup_type): Likewise.
4374 * python/py-prettyprint.c (print_children): Make 'name' const.
4375 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4376 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4377 Py_ssize_t.
4378 * python/py-function.c (fnpy_init): Make 'name' const.
4379 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4380 (gdbpy_string_to_argv): Make 'input' const.
4381 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4382 it.
4383 * gdbtypes.h (lookup_typename): Update.
4384 * gdbtypes.c (lookup_typename): Make 'name' const.
4385 (lookup_struct): Likewise.
4386 (lookup_union): Likewise.
4387 (lookup_enum): Likewise.
4388
5998129b
TT
43892011-06-24 Tom Tromey <tromey@redhat.com>
4390
4391 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4392 gdb_thread_db.h. Move all common/ entries to be together.
4393 (TAGS): Don't depend on DEPFILES.
4394
6e586cc5
YQ
43952011-06-23 Yao Qi <yao@codesourcery.com>
4396
4397 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4398 * remote.c (remote_start_remote): ... here.
4399 * monitor.c (monitor_open): ... here.
4400
86c3c1fc
AB
44012011-06-23 Andrew Burgess <aburgess@broadcom.com>
4402
4403 * gdbtypes.c (append_composite_type_field_aligned): Fix
4404 calculation of bit position based on alignment.
4405
28010a5d
PA
44062011-06-22 Pedro Alves <pedro@codesourcery.com>
4407
4408 * breakpoint.c (bpstat_stop_status): Call the check_status
4409 breakpoint_ops method.
4410 (print_one_breakpoint_location): Also print the condition for Ada
4411 exception catchpoints.
4412 (allocate_bp_location): New, factored out from
4413 allocate_bp_location.
4414 (allocate_bp_location): Adjust. Call the owner breakpoint's
4415 allocate_location method, if there is one.
4416 (free_bp_location): Call the locations's dtor method, if there is
4417 one.
4418 (init_raw_breakpoint_without_location): New breakpoint_ops
4419 parameter. Use it.
4420 (set_raw_breakpoint_without_location): Adjust.
4421 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4422 (set_raw_breakpoint): Adjust.
4423 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4424 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4425 re_set and check_status methods.
4426 (init_catchpoint): Don't memset, initialize thread, addr_string
4427 and enable_state. Pass the ops down to init_raw_breakpoint.
4428 (install_catchpoint): Rename to ...
4429 (install_breakpoint): ... this, and make extern.
4430 (create_fork_vfork_event_catchpoint): Adjust.
4431 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4432 re_set and check_status methods.
4433 (create_syscall_event_catchpoint): Adjust.
4434 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4435 (masked_watchpoint_breakpoint_ops): Install NULL
4436 allocate_location, re_set and check_status methods.
4437 (catch_exec_command_1): Adjust.
4438 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4439 re_set and check_status methods.
4440 (create_ada_exception_breakpoint): Rename to ...
4441 (init_ada_exception_breakpoint): ... this. Add a struct
4442 breakpoint parameter, and delete the exp_string, cond_string and
4443 cond parameters. Use init_raw_breakpoint, and don't install or
4444 mention the breakpoint yet. Don't clear breakpoint fields that
4445 init_raw_breakpoint already clears.
4446 (re_set_breakpoint): Delete, split into ...
4447 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4448 functions.
4449 (breakpoint_re_set_one): Call the breakpoint's
4450 breakpoint_ops->re_set implementation, if there's one. Adjust.
4451 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4452 (struct bp_location_ops): New type.
4453 (struct bp_location): New field `ops'.
4454 (struct breakpoint_ops): New `allocate_location', `re_set' and
4455 `check_status' fields. Make `breakpoint_hit''s description match
4456 reality.
4457 (init_bp_location): Declare.
4458 (breakpoint_re_set_default): Declare.
4459 (create_ada_exception_breakpoint): Rename to ...
4460 (init_ada_exception_breakpoint): ... this. Add a struct
4461 breakpoint parameter, and delete the exp_string, cond_string and
4462 cond parameters.
4463 (install_breakpoint): Declare.
4464 * ada-lang.c: Include exceptions.h.
4465 <Ada exceptions description>: Update.
4466 (struct ada_catchpoint_location): New type.
4467 (ada_catchpoint_location_dtor): New function.
4468 (ada_catchpoint_location_ops): New global.
4469 (ada_catchpoint): New type.
4470 (create_excep_cond_exprs): New function.
4471 (dtor_exception, allocate_location_exception, re_set_exception)
4472 (should_stop_exception, check_status_exception): New functions.
4473 (print_one_exception, print_mention_exception)
4474 (print_recreate_exception): Adjust.
4475 (dtor_catch_exception, allocate_location_catch_exception)
4476 (re_set_catch_exception, check_status_catch_exception): New
4477 functions.
4478 (catch_exception_breakpoint_ops): Install them.
4479 (dtor_catch_exception_unhandled)
4480 (allocate_location_catch_exception_unhandled)
4481 (re_set_catch_exception_unhandled)
4482 (check_status_catch_exception_unhandled): New functions.
4483 (catch_exception_unhandled_breakpoint_ops): Install them.
4484 (dtor_catch_assert, allocate_location_catch_assert)
4485 (re_set_catch_assert, check_status_catch_assert): New functions.
4486 (catch_assert_breakpoint_ops): Install them.
4487 (ada_exception_catchpoint_p): Delete.
4488 (catch_ada_exception_command_split)
4489 (ada_exception_catchpoint_cond_string): Rename exp_string
4490 parameter to excep_string. Adjust.
4491 (ada_parse_catchpoint_condition): Delete.
4492 (ada_exception_sal): Rename the exp_string parameter to
4493 excep_string. Delete the cond_string and cond parameters.
4494 Adjust.
4495 (ada_decode_exception_location): Rename the exp_string parameter
4496 to excep_string. Delete the cond_string and cond parameters.
4497 Adjust.
4498 (create_ada_exception_catchpoint): New function.
4499 (catch_ada_exception_command, ada_decode_assert_location)
4500 (catch_assert_command): Adjust.
4501 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4502
9ac4176b
PA
45032011-06-22 Pedro Alves <pedro@codesourcery.com>
4504
4505 * ada-lang.c: Include arch-utils.h.
4506 (ada_decode_exception_location): Make static.
4507 (catch_ada_exception_command): Moved here from breakpoint.c.
4508 (ada_decode_assert_location): Make static.
4509 (catch_assert_command): Moved here from breakpoint.c.
4510 (_initialize_ada_lang): Install the exception and assert
4511 catchpoint commands here.
4512 * ada-lang.h (ada_decode_exception_location)
4513 (ada_decode_assert_location): Delete declarations.
4514 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4515 breakpoint.h.
4516 (create_ada_exception_breakpoint): Make extern.
4517 (catch_ada_exception_command, catch_assert_command): Moved to
4518 ada-lang.c.
4519 (add_catch_command): Make extern.
4520 (_initilize_breakpoint): Don't install the exception and assert
4521 catchpoint commands here.
4522 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4523 breakpoint.c
4524 (add_catch_command, create_ada_exception_breakpoint): Declare.
4525
c56053d2
PA
45262011-06-22 Pedro Alves <pedro@codesourcery.com>
4527
4528 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4529 the breakpoint to the breakpoint chain here.
4530 (set_raw_breakpoint_without_location): Add the breakpoint to the
4531 breakpoint chain here.
4532 (init_raw_breakpoint): Adjust comments.
4533 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4534 here.
4535 (init_catchpoint): Don't set the catchpoint's breakpoint number
4536 here.
4537 (install_catchpoint): New function.
4538 (create_fork_vfork_event_catchpoint)
4539 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4540 use install_catchpoint.
4541
d2f3fc74
PA
45422011-06-22 Pedro Alves <pedro@codesourcery.com>
4543
4544 * breakpoint.c (create_catchpoint_without_mention)
4545 (create_catchpoint): Delete.
4546
b4d90040
PA
45472011-06-22 Pedro Alves <pedro@codesourcery.com>
4548
4549 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4550 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4551 reference to exec_pathname.
4552 (struct exec_catchpoint): New type.
4553 (dtor_catch_exec): New function.
4554 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4555 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4556 (catch_exec_command_1): Adjust to use init_catchpoint.
4557 (delete_breakpoint): Remove reference to exec_pathname.
4558
be5c67c1
PA
45592011-06-22 Pedro Alves <pedro@codesourcery.com>
4560
4561 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4562 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4563 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4564 reference to syscalls_to_be_caught.
4565 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4566 NULL `dtor'.
4567 (struct syscall_catchpoint): New type.
4568 (dtor_catch_syscall): New function.
4569 (insert_catch_syscall, remove_catch_syscall)
4570 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4571 (print_recreate_catch_syscall): Adjust.
4572 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4573 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4574 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4575 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4576 (masked_watchpoint_breakpoint_ops)
4577 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4578 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4579 there is one. Remove references to syscalls_to_be_caught.
4580 (catching_syscall_number): Adjust.
4581 * ada-lang.c (catch_exception_breakpoint_ops)
4582 (catch_exception_unhandled_breakpoint_ops)
4583 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4584
e29a4733
PA
45852011-06-22 Pedro Alves <pedro@codesourcery.com>
4586
4587 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4588 field.
4589 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4590 reference to forked_inferior_pid.
4591 (struct fork_catchpoint): New type.
4592 (breakpoint_hit_catch_fork, print_it_catch_fork)
4593 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4594 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4595 (create_fork_vfork_event_catchpoint): Adjust to use
4596 init_catchpoint.
4597
346774a9
PA
45982011-06-22 Pedro Alves <pedro@codesourcery.com>
4599
4600 * breakpoint.c (add_to_breakpoint_chain)
4601 (init_raw_breakpoint_without_location): New functions, factored
4602 out from ...
4603 (set_raw_breakpoint_without_location): ... this one.
4604 (init_raw_breakpoint): New function, factored out from
4605 set_raw_breakpoint and adjusted to use
4606 init_raw_breakpoint_without_location.
4607 (set_raw_breakpoint): Adjust.
4608 (init_catchpoint): New function, factored out from
4609 create_catchpoint_without_mention and adjusted to use
4610 init_raw_breakpoint.
4611 (create_catchpoint_without_mention): Adjust.
4612
c38c4bc5
TT
46132011-06-22 Tom Tromey <tromey@redhat.com>
4614
4615 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4616 argument of 0 specially.
4617
b138ce37
YQ
46182011-06-22 Yao Qi <yao@codesourcery.com>
4619
4620 * infrun.c (handle_inferior_event): Remove write-only local variable
4621 `sw_single_step_trap_p'.
4622
03de6823
TT
46232011-06-20 Tom Tromey <tromey@redhat.com>
4624
4625 * symtab.c (lookup_language_this): End loop if block is NULL.
4626
66a17cb6
TT
46272011-06-17 Tom Tromey <tromey@redhat.com>
4628
4629 * valops.c (value_of_this): Use lookup_language_this.
4630 * symtab.h (lookup_language_this): Declare.
4631 * symtab.c (lookup_language_this): New function.
4632 (lookup_symbol_aux): Use lookup_language_this.
4633 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4634
7518bff5
TT
46352011-06-17 Tom Tromey <tromey@redhat.com>
4636
4637 * value.h (value_of_this): Update.
4638 (value_of_local): Remove.
4639 * valops.c (value_of_this): Rename from value_of_local. Change
4640 parameters.
4641 * p-exp.y (exp): Update.
4642 (variable): Likewise.
4643 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4644
aee28ec6
TT
46452011-06-17 Tom Tromey <tromey@redhat.com>
4646
4647 * valops.c (value_of_local): Complain if NAME is NULL.
4648 * std-operator.def (OP_OBJC_SELF): Remove.
4649 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4650 * objc-exp.y (name_not_typename): Use OP_THIS.
4651 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4652 name for "this".
4653 <OP_OBJC_SELF>: Remove.
4654 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4655
eed8f803
TG
46562011-06-16 Tristan Gingold <gingold@adacore.com>
4657
4658 * python/py-events.h (gdb_py_events): Make it extern.
4659 * python/py-evtregistry.c (gdb_py_events): Declare.
4660
864ac8a7
HZ
46612011-06-16 Hui Zhu <teawater@gmail.com>
4662
4663 * remote.c (remote_trace_set_readonly_regions): Add check for
4664 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4665 output warning.
4666
ef7e8358
UW
46672011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4668
4669 * arm-linux-tdep.c: Include "auxv.h".
4670 (AT_HWCAP): Define.
4671 (ARM_LINUX_SIZEOF_VFP): Define.
4672 (arm_linux_supply_vfp): New function.
4673 (arm_linux_collect_vfp): Likewise.
4674 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4675 (arm_linux_fpa_regset_sections): New variable.
4676 (arm_linux_vfp_regset_sections): Likewise.
4677 (arm_linux_core_read_description): New function.
4678 (arm_linux_init_abi): Install arm_linux_core_read_description and
4679 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4680 appropriate for the architecture.
4681 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4682 (tdesc_arm_with_m): Declare.
4683 (tdesc_arm_with_iwmmxt): Likewise.
4684 (tdesc_arm_with_vfpv2): Likewise.
4685 (tdesc_arm_with_vfpv3): Likewise.
4686 (tdesc_arm_with_neon): Likewise.
4687 * arm-linux-nat.c: Move features/*.c includes ...
4688 * arm-tdep.c: ... here.
4689 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4690 target description data structures ...
4691 * arm-tdep.c (_initialize_arm_tdep): ... here.
4692 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4693 HWCAP_VFPv3D16): Move definitions ...
4694 * arm-linux-tdep.h: ... here.
4695
c2fa21f1
HZ
46962011-06-15 Hui Zhu <teawater@gmail.com>
4697
4698 * remote.c (remote_trace_set_readonly_regions): Add a check for
4699 target_buf_size.
4700
dd707e8e
TT
47012011-06-14 Tom Tromey <tromey@redhat.com>
4702
4703 * coffread.c (coffread_objfile): Rename from current_objfile.
4704 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4705 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4706
86cc0029
TT
47072011-06-14 Tom Tromey <tromey@redhat.com>
4708
4709 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4710 (class_symtab): Remove.
4711 (jv_dynamics_progspace_key): New global.
4712 (jv_per_objfile_free): Reset program space data. Update assert.
4713 Don't clear globals.
4714 (get_dynamics_objfile): Use and set program space data.
4715 (get_java_class_symtab): Use get_dynamics_objfile.
4716 (add_class_symbol): Likewise.
4717 (java_link_class_type): Likewise.
4718 (java_object_type, jv_clear_object_type, set_java_object_type):
4719 Remove.
4720 (get_java_object_type): Update. Don't cache result.
4721 (is_object_type): Don't call set_java_object_type.
4722 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4723 initialize jv_dynamics_progspace_key.
4724
91a81f69
TT
47252011-06-14 Tom Tromey <tromey@redhat.com>
4726
4727 * symtab.h (current_objfile): Don't declare.
4728 * objfiles.h (current_objfile): Don't declare.
4729 * objfiles.c (current_objfile): Remove.
4730 * mdebugread.c (current_objfile): New file-scope global.
4731 * dbxread.c (current_objfile): New file-scope global.
4732 * coffread.c (current_objfile): New file-scope global.
4733
dc7eb48e
PA
47342011-06-13 Pedro Alves <pedro@codesourcery.com>
4735
4736 * top.h (line): Rename to ...
4737 (saved_command_line): ... this.
4738 (linesize): Rename to ...
4739 (saved_command_line_size): ... this.
4740 * top.c (line): Rename to ...
4741 (saved_command_line): ... this.
4742 (linesize): Rename to ...
4743 (saved_command_line_size): ... this.
4744 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4745 * event-top.c (command_line_handler): Adjust.
4746 * main.c (captured_main): Adjust.
4747
0d6c2135
MK
47482011-06-12 Mark Kettenis <kettenis@gnu.org>
4749
4750 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4751 get_frame_func instead of get_frame_pc to determine the code
4752 address used to construct the frame ID.
4753 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4754 (i386_epilogue_frame_this_id): Likewise.
4755 (i386_epilogue_frame_prev_register): New function.
4756 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4757 (i386_stack_tramp_frame_sniffer): Fix coding style.
4758 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4759 (i386_gdbarch_init): Fix comments.
4760
8bbdd3f4
MK
47612011-06-12 Mark Kettenis <kettenis@gnu.org>
4762
4763 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4764 instruction when walking back through the instruction stream.
4765
533a737e
JK
47662011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4767
4768 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4769 fullname parameters order.
4770
44b13c5a
JK
47712011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4772
4773 Code cleanup.
4774 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4775 for fun.
4776 * psymtab.c (map_symbol_filenames_psymtab)
4777 (map_partial_symbol_filenames): Likewise.
4778 * psymtab.h: Include symfile.h.
4779 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4780 * symfile.h (symbol_filename_ftype): New.
4781 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4782 map_symbol_filenames, clarify more the naming in comment.
4783
0b5574da
DE
47842011-06-07 Doug Evans <dje@google.com>
4785
4786 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4787 Look for ../../gdb, for fullname.exp.
0b5574da 4788
5be4dfca
JK
47892011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4790 Pedro Alves <pedro@codesourcery.com>
4791
4792 * cli/cli-cmds.c (shell_escape): Use waitpid.
4793 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4794
316a8b21
TG
47952011-06-07 Tristan Gingold <gingold@adacore.com>
4796
4797 * xcoffread.c (dwarf2_xcoff_names): New variable.
4798 (aix_process_linenos): Add a guard.
4799 (xcoff_symfile_finish): Free dwarf2.
4800 (xcoff_initial_scan): Add dwarf2 support.
4801
3dd5b83d
PA
48022011-06-06 Pedro Alves <pedro@codesourcery.com>
4803
4804 * infcall.c (run_inferior_call): Don't mask async. Instead force
4805 a synchronous wait, if the target can async.
4806
4807 * target.h (struct target_ops): Delete to_async_mask.
4808 (target_async_mask): Delete.
4809 * target.c (update_current_target): Delete references to to_async_mask.
4810 * linux-nat.c (linux_nat_async_mask_value): Delete.
4811 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4812 to linux_nat_async_mask_value.
4813 (linux_nat_async_mask): Delete.
4814 (linux_nat_async, linux_nat_close): Remove references to
4815 linux_nat_async_mask_value.
4816 * record.c (record_async_mask_value): Delete.
4817 (record_async): Remove references to record_async_mask_value.
4818 (record_async_mask): Delete.
4819 (record_can_async_p, record_is_async_p): Remove references to
4820 record_async_mask_value.
4821 (init_record_ops, init_record_core_ops): Remove references to
4822 record_async_mask.
4823 * remote.c (remote_async_mask_value): Delete.
4824 (init_remote_ops): Remove reference to remote_async_mask.
4825 (remote_can_async_p, remote_is_async_p): Remove references to
4826 remote_async_mask_value.
4827 (remote_async): Remove references to remote_async_mask_value.
4828 (remote_async_mask): Delete.
4829
4830 * infrun.c (fetch_inferior_event): Don't claim registers changed
4831 if the current thread is already not executing.
4832
64b9b334
JB
48332011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4834
4835 From Stephen Kitt <steve@sk2.org>
4836 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4837 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4838
325663dc
JB
48392011-06-03 Joel Brobecker <brobecker@adacore.com>
4840
4841 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4842 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4843
8cf64490
TT
48442011-06-03 Tom Tromey <tromey@redhat.com>
4845
4846 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4847 code fields.
4848 * python/py-exitedevent.c (create_exited_event_object): Change
4849 type of 'exit_code'. Optionally add exit_code attribute.
4850 (emit_exited_event): Change type of 'exit_code'.
4851 * python/py-event.h (emit_exited_event): Update.
4852 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4853 * infrun.c (handle_inferior_event): Set exit code fields on
4854 inferior.
4855 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4856 fields.
4857 * inferior.c (exit_inferior_1): Initialize new fields.
4858
8ddd9a20
TT
48592011-06-03 Tom Tromey <tromey@redhat.com>
4860
4861 * dwarf2expr.c (get_signed_type): New function.
4862 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4863
8dfd1e6d
KS
48642011-06-02 Keith Seitz <keiths@redhat.com>
4865
4866 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4867
65fdb766
PA
48682011-06-02 Pedro Alves <pedro@codesourcery.com>
4869
4870 * top.h (simplified_command_loop): Delete declaration.
4871
f4b8c29b
MF
48722011-06-01 Mike Frysinger <vapier@gentoo.org>
4873
4874 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4875 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4876
1706c199
YQ
48772011-06-01 Yao Qi <yao@codesourcery.com>
4878
4879 * objfiles.h (obj_section_addr): Update reference to objfile from
4880 `abfd' to `obfd'.
4881 (obj_section_endaddr): Likewise.
4882
d19cd713 48832011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4884
4885 * MAINTAINERS: Update my email address and affiliation. Also
4886 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4887
e8eb7bc5
KS
48882010-05-31 Keith Seitz <keiths@redhat.com>
4889
4890 PR c++/12750
4891 * linespec.c (get_search_block): New function.
4892 (find_methods): Add FILE_SYMTATB parameter and use it and
4893 get_search_block to pass an appropriate block to
4894 lookup_symbol_in_namespace.
4895 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4896 Check if *ARGPTR starts with a filename first.
4897 If it does, call locate_first_half again to locate the next
4898 "first half" of the linespec.
4899 Pass FILE_SYMTATB to decode_objc and decode_compound.
4900 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4901 (locate_first_half): Stop on the first colon seen.
4902 (decode_compound): Add FILE_SYMTAB parameter.
4903 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4904 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4905 get_search_block with lookup_symbol.
4906 (find_method): Add FILE_SYMTAB parameter and pass it to
4907 find_methods.
4908 (decode_objc): Use get_search_block.
4909
2b1dbab0
KS
49102010-05-31 Keith Seitz <keiths@redhat.com>
4911
4912 PR symtab/12704
4913 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4914 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4915 and CP_ANONYMOUS_NAMESPACE_LEN.
4916 (cp_is_anonymous): Likewise.
4917 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4918 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4919 * dwarf2read.c (namespace_name): Likewise.
4920 (fixup_partial_die): Likewise.
4921 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4922 seen in the input, keep it.
4923
6d549500
PA
49242011-05-30 Pedro Alves <pedro@codesourcery.com>
4925
4926 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4927 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4928 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4929 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4930 * remote.c (_initialize_remote): Register
4931 async_remote_interrupt_twice directly as
4932 sigint_remote_twice_token event.
4933
395bff70
PA
49342011-05-30 Pedro Alves <pedro@codesourcery.com>
4935
4936 * target.h (enum inferior_event_type): Delete INF_ERROR.
4937 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4938
97224164
PA
49392011-05-30 Pedro Alves <pedro@codesourcery.com>
4940
4941 * interps.c (interp_set): Don't cancel continuations.
4942
07e78767
JK
49432011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4944
4945 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4946
fa4cd53f
PA
49472011-05-30 Pedro Alves <pedro@codesourcery.com>
4948
4949 * continuations.h (continuation_ftype): Add `err' parameter.
4950 Document parameters.
4951 (do_all_continuations, do_all_continuations_thread)
4952 (do_all_intermediate_continuations)
4953 (do_all_intermediate_continuations_thread)
4954 (do_all_inferior_continuations): Add `err' parameter.
4955 * continuations.c (do_my_continuations_1, do_my_continuations)
4956 (do_all_inferior_continuations, do_all_continuations_ptid)
4957 (do_all_continuations_thread_callback)
4958 (do_all_continuations_thread, do_all_continuations)
4959 (do_all_intermediate_continuations_thread_callback)
4960 (do_all_intermediate_continuations_thread)
4961 (do_all_intermediate_continuations): Add `err' parameter, and pass
4962 it down all the way to the continuations proper.
4963 * inf-loop.c (inferior_event_handler): If fetching an inferior
4964 event throws an error, don't pop the target, and still call the
4965 continuations, but with `err' set. Adjust all other continuation
4966 calls.
4967 * breakpoint.c (until_break_command_continuation): Add `err'
4968 parameter.
4969 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4970 issue another step if `err' is set.
4971 (struct until_next_continuation_args): New.
4972 (until_next_continuation): Add `err' parameter. Adjust.
4973 (until_next_command): Adjust.
4974 (struct finish_command_continuation_args): Add `thread' field.
4975 (finish_command_continuation): Add `err' parameter. Handle it.
4976 (finish_forward): Adjust.
4977 (attach_command_continuation): Add `err' parameter. Handle it.
4978 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4979 cancel the continuations.
4980 * interps.c (interp_set): Adjust to cancel the continuations.
4981 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4982 continuations rather than discarding.
4983 (free_thread): Don't clear thread inferior resources here.
4984 (delete_thread_1): Do it here instead. And do it before removing
4985 the thread from the threads list. Tag the thread as exited before
4986 clearing thread inferior resources.
4987
c2949be0
JB
49882011-05-30 Joel Brobecker <brobecker@adacore.com>
4989
4990 * infcall.c (call_function_by_hand): Rephrase error message.
4991
619cebe8
PA
49922011-05-27 Pedro Alves <pedro@codesourcery.com>
4993
4994 * defs.h (struct thread_info, struct inferior): Delete forward
4995 declarations.
4996 * breakpoint.h (struct thread_info): New forward declaration.
4997 * observer.sh (struct inferior): New forward declaration.
4998 * python/python-internal.h (struct inferior): New forward
4999 declaration.
5000
be34f849
PA
50012011-05-27 Pedro Alves <pedro@codesourcery.com>
5002
5003 * defs.h (struct continuation, continuation_ftype)
5004 (continuation_free_arg_ftype, add_continuation)
5005 (do_all_continuations, do_all_continuations_thread)
5006 (discard_all_continuations, discard_all_continuations_thread)
5007 (add_intermediate_continuation, do_all_intermediate_continuations)
5008 (do_all_intermediate_continuations_thread)
5009 (discard_all_intermediate_continuations)
5010 (discard_all_intermediate_continuations_thread)
5011 (add_inferior_continuation, do_all_inferior_continuations)
5012 (discard_all_inferior_continuations): Move to ...
5013 * continuations.h: ... this new file.
5014 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5015 infcmd.c, inferior.c, infrun.c, interps.c: Include
5016 continuations.h.
5017
432b4d03
JK
50182011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5019 Doug Evans <dje@google.com>
5020
5021 Fix PR 10970, PR 12702.
5022 * linux-nat.c (linux_lwp_is_zombie): New function.
5023 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5024 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5025
b0f260d6
PA
50262011-05-27 Pedro Alves <pedro@codesourcery.com>
5027
5028 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5029 typedefs.
5030 (add_continuation, add_intermediate_continuation)
5031 (add_inferior_continuation): Use them.
5032 * continuations.c (struct continuation): Use them.
5033 (make_continuation_ftype): Delete.
5034 (make_continuation, add_inferior_continuation, add_continuation)
5035 (add_intermediate_continuation): Use continuation_ftype and
5036 continuation_free_arg_ftype. Rename parameters to shorter names.
5037
af1e9a32
PA
50382011-05-27 Pedro Alves <pedro@codesourcery.com>
5039
5040 * continuations.c (make_continuation): Make it return void.
5041 (do_my_continuations): Rename to ...
5042 (do_my_continuations_1): ... this. Remove old_chain parameter and
5043 adjust.
5044 (do_my_continuations): New.
5045 (discard_my_continuations): Rename to ...
5046 (discard_my_continuations_1): ... this. Remove old_chain
5047 parameter and adjust.
5048 (discard_my_continuations): New.
5049 (add_inferior_continuation): Simplify.
5050 (do_all_inferior_continuations): Reimplement on top
5051 do_my_continuations.
5052 (discard_all_inferior_continuations): Simplify.
5053 (add_continuation): Simplify.
5054 (do_all_continuations_ptid): Simplify.
5055 (discard_all_continuations_thread_callback): Simplify.
5056 (add_intermediate_continuation): Simplify.
5057 (discard_all_intermediate_continuations_thread_callback):
5058 Simplify.
5059
50c0c017
PA
50602011-05-27 Pedro Alves <pedro@codesourcery.com>
5061
5062 * utils.c (struct continuation, add_continuation)
5063 (add_inferior_continuation)
5064 (do_all_inferior_continuations, discard_all_inferior_continuations)
5065 (restore_thread_cleanup, do_all_continuations_ptid)
5066 (do_all_continuations_thread_callback)
5067 (do_all_continuations_thread, do_all_continuations)
5068 (discard_all_continuations_thread_callback)
5069 (discard_all_continuations_thread, discard_all_continuations)
5070 (add_intermediate_continuation)
5071 (do_all_intermediate_continuations_thread_callback)
5072 (do_all_intermediate_continuations_thread)
5073 (do_all_intermediate_continuations)
5074 (discard_all_intermediate_continuations_thread_callback)
5075 (discard_all_intermediate_continuations_thread)
5076 (discard_all_intermediate_continuations): Move to ...
5077 * continuations.c: ... this new file, and adjust to no longer
5078 implement continuations on top of cleanups.
5079 * Makefile.in (SFILES): Add continuations.c.
5080 (COMMON_OBS): Add continuations.o.
5081
d8b34453
PA
50822011-05-26 Pedro Alves <pedro@codesourcery.com>
5083
5084 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5085 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5086 Internal error on invalid values.
5087 * reverse.c: Don't handle EXEC_ERROR.
5088 * mi/mi-main.c: Don't handle EXEC_ERROR.
5089
32231432
PA
50902011-05-26 Pedro Alves <pedro@codesourcery.com>
5091
5092 * record.c: Include event-loop.h, inf-loop.h.
5093 (record_beneath_to_async): New global.
5094 (tmp_to_async): New global.
5095 (record_async_inferior_event_token): New global.
5096 (record_open_1): Don't error out if async is enabled.
5097 (record_open): Handle to_async. Create an async event source in
5098 the event loop.
5099 (record_close): Delete the async event source.
5100 (record_resumed): New global.
5101 (record_execution_dir): New global.
5102 (record_resume, record_core_resume): Set them. Register the
5103 target on the event loop.
5104 (record_wait): Rename to ...
5105 (record_wait_1): ... this. Add more debug output. Handle
5106 TARGET_WNOHANG, and the target beneath returning
5107 TARGET_WAITKIND_IGNORE.
5108 (record_wait): Reimplement on top of record_wait_1.
5109 (record_async_mask_value): New global.
5110 (record_async, record_async_mask, record_can_async_p)
5111 (record_is_async_p, record_execution_direction): New functions.
5112 (init_record_ops, init_record_core_ops): Install new methods.
5113 * infrun.c (fetch_inferior_event): Temporarily switch the global
5114 execution direction to the direction the target was going.
5115 (execution_direction): Change type to int.
5116 * target.c (default_execution_direction): New function.
5117 (update_current_target): Inherit and de_fault
5118 to_execution_direction.
5119 * target.h (struct target_ops) <to_execution_direction>: New
5120 field.
5121 (target_execution_direction): New macro.
5122 * inferior.h (execution_direction): Change type to int.
5123
949dc678
PA
51242011-05-26 Pedro Alves <pedro@codesourcery.com>
5125
5126 * infcall.c (call_function_by_hand): Don't allow calling functions
5127 in reverse execution mode.
5128
c13bd2b5
PA
51292011-05-26 Pedro Alves <pedro@codesourcery.com>
5130
5131 * infcmd.c (finish_command): Allow async finish in reverse.
5132
6938fd34
YQ
51332011-05-26 Yao Qi <yao@codesourcery.com>
5134
5135 * gdb_thread_db.h: Delete. Move to ...
5136 * common/gdb_thread_db.h: ... here.
5137
9da8c2a0
PA
51382011-05-26 Pedro Alves <pedro@codesourcery.com>
5139
5140 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5141 function's entry point instead of a manually managed momentary
5142 breakpoint, and only ever issue one proceed call.
5143 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5144 doing a reverse-finish, switch to stepi mode, to do another step.
5145 (insert_step_resume_breakpoint_at_sal): Make public.
5146 (normal_stop): No need to save function value return registers if
5147 going reverse.
5148 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5149
2c03e5be
PA
51502011-05-26 Pedro Alves <pedro@codesourcery.com>
5151
5152 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5153 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5154 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5155 at the end.
5156 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5157 step-resume breakpoints.
5158 (print_it_typical): Handle bp_hp_step_resume.
5159 (bpstat_what): Ditto.
5160 (bptype_string): Ditto.
5161 (print_one_breakpoint_location): Ditto.
5162 (allocate_bp_location): Ditto.
5163 (mention): Ditto.
5164 (breakpoint_re_set_one): Ditto.
5165 * infrun.c (handle_inferior_event): Adjust. Split
5166 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5167 BPSTAT_WHAT_HP_STEP_RESUME.
5168 (insert_step_resume_breakpoint_at_sal): Rename to ...
5169 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5170 parameter. Handle it.
5171 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5172 insert_step_resume_breakpoint_at_sal_1.
5173 (insert_step_resume_breakpoint_at_frame): Rename to ...
5174 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5175 set a high-priority step-resume breakpoint.
5176 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5177 (insert_step_resume_breakpoint_at_caller): Ditto.
5178
51be5b68
PA
51792011-05-26 Pedro Alves <pedro@codesourcery.com>
5180
5181 * breakpoint.c (iterate_over_related_breakpoints): New.
5182 (do_map_delete_breakpoint): New.
5183 (delete_command): Pass do_map_delete_breakpoint to
5184 map_breakpoint_numbers.
5185 (do_disable_breakpoint): New.
5186 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5187 breakpoints.
5188 (do_enable_breakpoint): Rename to ...
5189 (enable_breakpoint_disp): ... this.
5190 (enable_breakpoint): Adjust.
5191 (do_enable_breakpoint): New.
5192 (enable_once_breakpoint): Delete.
5193 (do_map_enable_breakpoint): New.
5194 (do_map_enable_once_breakpoint): New.
5195 (enable_once_command, enable_delete_command)
5196 (delete_trace_command): Iterate over the breakpoint's related
5197 breakpoints.
5198
4a1be8d2
PA
51992011-05-26 Pedro Alves <pedro@codesourcery.com>
5200
5201 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5202 for ALPHA_ZERO_REGNUM.
5203 (alpha_supply_int_regs): Explicitly supply zero as the value for
5204 ALPHA_ZERO_REGNUM in the register cache.
5205 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5206
59d70315
YQ
52072011-05-26 Yao Qi <yao@codesourcery.com>
5208
5209 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5210
251d32d9
TG
52112011-05-26 Tristan Gingold <gingold@adacore.com>
5212
5213 * symfile.h (struct dwarf2_section_names): New type.
5214 (struct dwarf2_debug_sections): New type.
5215 (dwarf2_has_info): Add parameter.
5216 * dwarf2read.c (dwarf2_elf_names): New variable.
5217 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5218 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5219 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5220 (dwarf2_has_info): Add names parameter. Pass names
5221 to dwarf2_locate_sections.
5222 (section_is_p): Rewrite using the names parameter.
5223 (dwarf2_locate_sections): Use section names from the names parameter.
5224 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5225 * elfread.c (read_psyms): Ditto.
5226 * machoread.c (macho_symfile_read): Ditto.
5227
652c71b4
AS
52282011-05-25 Andreas Schwab <schwab@redhat.com>
5229
5230 PR gdb/8677
5231 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5232
f17170e5
KS
52332011-05-24 Keith Seitz <keiths@redhat.com>
5234
5235 PR breakpoint/12803
5236 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5237 (decode_compound): Unconditionally call keep_name_info.
5238
cdac0397
PA
52392011-05-24 Pedro Alves <pedro@codesourcery.com>
5240
5241 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5242 scope, clear its command list.
5243 (map_breakpoint_numbers): Don't walk the related breakpoints list
5244 of each breakpoint.
5245
91d4fe3f
TT
52462011-05-24 Tom Tromey <tromey@redhat.com>
5247
5248 * MAINTAINERS: Move Jim Blandy to past maintainers.
5249
3017a003
TG
52502011-05-24 Tristan Gingold <gingold@adacore.com>
5251
5252 * symfile.h (enum dwarf2_section_enum): New type.
5253 (dwarf2_get_section_info): New prototype.
5254 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5255 section_name by sect. Use a switch to select the info.
5256 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5257 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5258
c91c8c16
PA
52592011-05-24 Pedro Alves <pedro@codesourcery.com>
5260
5261 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5262 shared library event breakpoint if there's no execution.
5263
77bc418a
TJB
52642011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5265
5266 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5267 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5268
c50491a7
TT
52692011-05-23 Tom Tromey <tromey@redhat.com>
5270
5271 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5272 NULL.
5273
6d64e6d4
DE
52742011-05-23 Doug Evans <dje@google.com>
5275
5276 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5277 entry for RuntimeError to doc string.
5278
2067c8d4
JG
52792011-05-23 Jerome Guitton <guitton@adacore.com>
5280
5281 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5282 sequence for probing loops.
5283
b136cd05
PA
52842011-05-23 Pedro Alves <pedro@codesourcery.com>
5285
5286 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5287 comment.
5288
22e74ef9
MK
52892011-05-21 Mark Kettenis <kettenis@gnu.org>
5290
5291 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5292 zero as the value for %g0 in the register cache.
5293 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5294 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5295
842951eb
PA
52962011-05-20 Pedro Alves <pedro@codesourcery.com>
5297
5298 * infrun.c (proceed): Set previous_inferior_ptid here.
5299 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5300 inferior_ptid, not null_ptid.
5301 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5302 (fetch_inferior_event): Nor here.
5303
46cf51e6
PA
53042011-05-20 Pedro Alves <pedro@codesourcery.com>
5305
5306 * inf-loop.c (inferior_event_handler): Only output a message if
5307 verbose.
5308
29ef4c46
LM
53092011-05-20 Luis Machado <lgustavo@codesourcery.com>
5310
5311 * MAINTAINERS: Update my e-mail address.
5312
f148b27e
PA
53132011-05-20 Pedro Alves <pedro@codesourcery.com>
5314
5315 * infrun.c (proceed): Switch the inferior event loop to
5316 INF_EXEC_COMPLETE if the target refused to resume from a
5317 vfork/fork.
5318
09cee04b
PA
53192011-05-20 Pedro Alves <pedro@codesourcery.com>
5320
5321 * infcmd.c: Include "inf-loop.h".
5322 (step_once): When stepping into an inline subroutine, pretend the
5323 target has run. If the target can async, switch the inferior
5324 event loop to INF_EXEC_COMPLETE.
5325 * inferior.h (user_visible_resume_ptid): Declare.
5326 * infrun.c (user_visible_resume_ptid): New function, factored out
5327 from `resume'.
5328 (resume): Use it.
5329 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5330 that the current thread is running. Merge async and sync
5331 branches.
5332
751b8ce1
PA
53332011-05-20 Pedro Alves <pedro@codesourcery.com>
5334
5335 * infcmd.c (step_1): Simplify synchronous case.
5336
e93a69ed
PA
53372011-05-20 Pedro Alves <pedro@codesourcery.com>
5338
5339 * tracepoint.c: Include exceptions.h.
5340 (TFILE_PID): Move higher in file.
5341 (tfile_open): Delay pushing the tfile target until we're assured
5342 the tfile header is present in the file. Wrap reading the initial
5343 newline-terminated lines in TRY_CATCH. Pop the target if the
5344 initial setup failed. Add the tfile's thread immediately
5345 aftwards, before any non-essential setup. Don't skip
5346 post_create_inferior if there are no traceframes present in the
5347 file.
5348 (tfile_close): Remove redundant check for null before xfree call.
5349 (tfile_thread_alive): New function.
5350 (init_tfile_ops): Register it as to_thread_alive callback.
5351
6823e2b1
PA
53522011-05-20 Pedro Alves <pedro@codesourcery.com>
5353
5354 * tracepoint.c (tfile_open): Delete #if 0'd code.
5355
b3c8eb43
JK
53562011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5357
5358 Fix -readnow for -gdwarf-4 unused type units.
5359 * dwarf2read.c (struct signatured_type): Remove the field offset.
5360 (create_signatured_type_table_from_index): Remove its initialization.
5361 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5362 instead. Add a complaint call.
5363 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5364 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5365 (lookup_signatured_type_at_offset, read_signatured_type)
5366 (write_one_signatured_type): Update the field for per_cu.
5367
310afc76
TT
53682011-05-19 Tom Tromey <tromey@redhat.com>
5369
5370 * python/py-inferior.c (python_inferior_exit): Use
5371 target_gdbarch.
5372 (python_on_resume): Likewise.
5373
cf6c5ffb
TT
53742011-05-19 Matt Rice <ratmice@gmail.com>
5375
5376 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5377
fb80a3c5
HZ
53782011-05-19 Hui Zhu <teawater@gmail.com>
5379
5380 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5381
3672b1be
HZ
53822011-05-19 Hui Zhu <teawater@gmail.com>
5383
5384 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5385
ff355380
TT
53862011-05-18 Tom Tromey <tromey@redhat.com>
5387
5388 * dwarf2read.c (dwarf2_add_field): Constify.
5389 * value.c (value_static_field): Constify.
5390 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5391 Now const.
5392 * ax-gdb.c (gen_static_field): Constify
5393
ed731959
JK
53942011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5395
5396 * linux-nat.c (kill_callback): Use SIGKILL first.
5397
967cff16
JB
53982011-05-18 Joel Brobecker <brobecker@adacore.com>
5399
5400 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5401
1d06ead6
TT
54022011-05-18 Tom Tromey <tromey@redhat.com>
5403
5404 * value.c (value_fn_field): Constify.
5405 * symtab.c (gdb_mangle_name): Constify.
5406 * stabsread.c (update_method_name_from_physname): Make 'physname'
5407 argument const.
5408 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5409 const. Use explicit fputc_filtered loop.
5410 (pascal_type_print_base): Constify.
5411 * p-lang.h (pascal_type_print_method_args): Update.
5412 * linespec.c (add_matching_methods): Constify.
5413 (add_constructors): Likewise.
5414 * jv-typeprint.c (java_type_print_base): Constify.
5415 * gdbtypes.h (struct cplus_struct_type)
5416 <fn_fieldlist.fn_field.physname>: Now const.
5417 * dwarf2read.c (compute_delayed_physnames): Constify.
5418 (dwarf2_add_member_fn): Likewise.
5419 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5420
0d9a9a5f
PA
54212011-05-18 Pedro Alves <pedro@codesourcery.com>
5422
5423 * infrun.c (resume): Mention which is the current thread, and its
5424 current PC in debug output.
5425 (prepare_to_proceed): Mention the thread switching in debug
5426 output.
5427
05386e9e
TT
54282011-05-18 Tom Tromey <tromey@redhat.com>
5429
5430 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5431 path check. Use xmalloc and cleanups.
5432 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5433
ee86786c
TT
54342011-05-17 Tom Tromey <tromey@redhat.com>
5435
5436 * cp-valprint.c (cp_print_value_fields): Catch errors from
5437 value_static_field.
5438
9ff3b74f
TT
54392011-05-17 Tom Tromey <tromey@redhat.com>
5440
5441 * dwarf2read.c (dwarf2_get_die_type): Call
5442 get_die_type_at_offset.
5443 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5444 get_base_type function.
5445
cd3da28e
PA
54462011-05-17 Tomas Martinec <fyzmat@gmail.com>
5447
5448 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5449 trap_expected.
5450
fd20d931
DE
54512011-05-16 Doug Evans <dje@google.com>
5452
5453 * python/py-auto-load.c (source_section_scripts): Mention objfile
5454 name in warning.
5455
75fc9810
DE
54562011-05-15 Doug Evans <dje@google.com>
5457
290351b8
DE
5458 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5459 (try_thread_db_load_from_pdir): Call it. If unable to find
5460 libthread_db in directory of libpthread, see if we're looking at
5461 the separate-debug-info copy.
5462
75fc9810
DE
5463 * python/py-autoload.c (print_script): Print "Missing" instead of
5464 "No" for missing scripts.
5465 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5466
9f7bc587
DE
54672011-05-13 Doug Evans <dje@google.com>
5468
5469 * ui-file.c (stdio_file_write_async_safe): Add comment.
5470
093cee7d
HZ
54712011-05-14 Hui Zhu <teawater@gmail.com>
5472
5473 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5474
dbaefcf7
DE
54752011-05-13 Doug Evans <dje@google.com>
5476
98a5dd13
DE
5477 Support $pdir and $sdir in libthread-db-search-path.
5478 * NEWS: Mention $sdir,$pdir.
5479 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5480 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5481 (try_thread_db_load_from_sdir): New function.
5482 (try_thread_db_load_from_dir): New function.
5483 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5484 system directories if search of libthread-db-search-path fails,
5485 that is now done via $sdir.
5486 (has_libpthread): New function.
5487 (thread_db_load): Remove search for libthread_db in directory of
5488 libpthread, that is now done via $pdir.
5489
dbaefcf7
DE
5490 * NEWS: Mention "info auto-load-scripts".
5491 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5492 script_not_found_warning_printed.
5493 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5494 all callers updated. Initialize script_not_found_warning_printed.
5495 (get_auto_load_pspace_data_for_loading): New function.
5496 (maybe_add_script): New function.
5497 (source_section_scripts): Simplify. Only print one warning regardless
5498 of the number of auto-load scripts not found.
5499 (clear_section_scripts): Clear script_not_found_warning_printed.
5500 (auto_load_objfile_script): Record script in hash table.
5501 (count_matching_scripts): New function.
5502 (maybe_print_script): Renamed from maybe_print_section_script, all
5503 callers updated. Rewrite to use ui_out_*.
5504 (info_auto_load_scripts): Renamed from
5505 maintenance_print_section_scripts, all callers updated.
5506 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5507 renamed as "info auto-load-scripts".
5508
9930639c
TT
55092011-05-13 Tom Tromey <tromey@redhat.com>
5510
5511 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5512 (read_sleb128): Likewise.
5513
06826322
TT
55142011-05-13 Tom Tromey <tromey@redhat.com>
5515
5516 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5517 offset display.
5518
01124a23
DE
55192011-05-13 Doug Evans <dje@google.com>
5520
5521 * linux-nat.c (debug_linux_nat_async): Delete.
5522 Replace all references to use debug_linux_nat instead.
5523 (show_debug_linux_nat_async): Delete.
5524 (sigchld_handler): Call ui_file_write_async_safe instead of
5525 fprintf_unfiltered.
5526 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5527 * ui-file.c (struct ui_file): New member to_write_async_safe.
5528 (null_file_write_async_safe): New function.
5529 (ui_file_write_async_safe): New function.
5530 (set_ui_file_write_async_safe): New function.
5531 (ui_file_new): Initialize to_write_async_safe.
5532 (stdio_file_write_async_safe): New function.
5533 (struct stdio_file): New member fd.
5534 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5535 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5536 fileno.
01124a23
DE
5537 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5538 (set_ui_file_write_async_safe): Declare.
5539 (ui_file_write_async_safe): Declare.
5540
72fc29ff
TT
55412011-05-13 Tom Tromey <tromey@redhat.com>
5542
5543 * utils.c (do_value_free): New function.
5544 (make_cleanup_value_free): Likewise.
5545 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5546 freeing correctly.
5547 (dwarf2_loc_desc_needs_frame): Call
5548 make_cleanup_value_free_to_mark.
5549 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5550 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5551 value_free_to_mark.
5552 (new_dwarf_expr_context): Don't call value_mark.
5553 * dwarf2-frame.c (execute_stack_op): Call
5554 make_cleanup_value_free_to_mark.
5555 * defs.h (make_cleanup_value_free): Declare.
5556
028d0ed5
TJB
55572011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5558
5559 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5560 prepare_execute_command.
5561 * top.c (prepare_execute_command): Return cleanup.
5562 (execute_command): Use cleanup from prepare_execute_command.
5563 * top.h (prepare_execute_command): Change prototype to return
5564 cleanup.
5565 * defs.h (struct value): Add opaque declaration.
5566 (make_cleanup_value_free_to_mark): Add prototype.
5567 * utils.c (do_value_free_to_mark): New function.
5568 (make_cleanup_value_free_to_mark): Likewise.
5569
b087e0ed
TT
55702011-05-12 Tom Tromey <tromey@redhat.com>
5571
5572 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5573 cast left-hand-side to unsigned.
5574
8a9b8146
TT
55752011-05-12 Tom Tromey <tromey@redhat.com>
5576
5577 PR gdb/12617:
5578 * value.h (value_from_contents): Declare.
5579 * value.c (value_from_contents): New function.
5580 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5581 (dwarf2_get_die_type): New function.
5582 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5583 (allocate_piece_closure): Acquire reference to values.
5584 (read_pieced_value): Update for value-based expressions.
5585 (write_pieced_value): Likewise.
5586 (free_pieced_value_closure): Call value_free as needed.
5587 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5588 Update for value-based expressions.
5589 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5590 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5591 <get_base_type>: New field.
5592 (struct dwarf_expr_piece) <v.value>: Change type.
5593 <v.regno>: New field.
5594 (struct dwarf_expr_context) <mark>: New field.
5595 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5596 (dwarf_expr_pop, dwarf_expr_push): Remove.
5597 (dwarf_expr_push_address): Declare.
5598 * dwarf2expr.c (dwarf_arch_cookie): New global.
5599 (struct dwarf_gdbarch_types): New.
5600 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5601 functions.
5602 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5603 static.
5604 (dwarf_expr_push_address): New function.
5605 (dwarf_expr_pop): Now static.
5606 (dwarf_expr_fetch): Change return type.
5607 (dwarf_require_integral): New function.
5608 (dwarf_expr_fetch): Simplify.
5609 (add_piece): Update.
5610 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5611 functions.
5612 (execute_stack_op) <sign_ext>: Remove.
5613 Use values for DWARF stack.
5614 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5615 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5616 New cases.
5617 (_initialize_dwarf2expr): New function.
5618 (add_piece): Update.
5619 (new_dwarf_expr_context): Set new field.
5620 (free_dwarf_expr_context): Call value_free_to_mark.
5621 * dwarf2-frame.c (no_base_type): New function.
5622 (execute_stack_op): Set get_base_type field. Update.
5623
e8d28ef4
TT
56242011-05-12 Tom Tromey <tromey@redhat.com>
5625
5626 * dwarf2read.c (read_common_block): Fix formatting.
5627
d248b706
KY
56282011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5629
5630 * breakpoint.c (disable_breakpoint): Disable all locations
5631 associated with a tracepoint on target if a trace experiment is
5632 running.
5633 (disable_command): Disable a specific tracepoint location on target if
5634 a trace experiment is running.
5635 (do_enable_breakpoint): Enable all locations associated with a
5636 tracepoint on target if a trace experiment is running.
5637 (enable_command) Enable a specific tracepoint location on target if a
5638 trace experiment is running.
5639 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5640 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5641 to_disable_tracepoint.
5642 * target.h: Add declaration of struct bp_location.
5643 (struct target_ops): Add new functions
5644 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5645 to_disable_tracepoint to target operations.
5646 (target_supports_enable_disable_tracepoint): New macro.
5647 (target_enable_tracepoint): New macro.
5648 (target_disable_tracepoint): New macro.
5649 * remote.c (struct remote_state): Add new field.
5650 (remote_enable_disable_tracepoint_feature): New.
5651 (remote_protocol_features): Add new entry.
5652 (remote_supports_enable_disable_tracepoint): New.
5653 (remote_enable_tracepoint): New.
5654 (remote_disable_tracepoint): New.
5655 (init_remote_ops): Add remote_enable_tracepoint,
5656 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5657 to remote operations.
5658 * tracepoint.c (start_tracing): Allow tracing to start without any
5659 tracepoints enabled with just a warning if they can be re-enabled
5660 later.
5661 * NEWS: Add news item for the new behaviour of the enable and disable
5662 GDB commands when applied to tracepoints.
5663 Add news items for the new remote packets QTEnable and QTDisable.
5664
cc88a640
JK
56652011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5666
5667 * config.in: Regenerate.
5668 * configure: Regenerate.
5669 * configure.ac <--with-system-readline> (for readline_echoing_p):
5670 Remove the test.
5671 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5672 (tui_old_rl_echoing_p): ... here.
5673 (tui_setup_io): Rename extern declaration readline_echoing_p to
5674 _rl_echoing_p. Adjust assignments for the both renames.
5675
1f84b619
TJB
56762011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5677
5678 * symtab.c (lookup_symtab): Run cleanup before returning.
5679
74ac6d43
TT
56802011-05-11 Tom Tromey <tromey@redhat.com>
5681
5682 * dwarf2read.c (handle_data_member_location): New function.
5683 (dwarf2_add_field): Use it.
5684 (read_common_block): Likewise.
5685
5488dafb
JK
56862011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5687
5688 Make addrs->SECTINDEX always defined.
5689 * symfile.c (relative_addr_info_to_section_offsets): Check for
5690 SECTINDEX -1, not for zero ADDR.
5691 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5692 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5693 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5694 on its validity.
5695
84e578fb
DE
56962011-05-10 Doug Evans <dje@google.com>
5697
2471d008
DE
5698 * linux-thread-db.c: Whitespace cleanup.
5699 (try_thread_db_load_1): Fix comment.
5700
84e578fb
DE
5701 * linux-thread-db.c (set_libthread_db_search_path): New function.
5702 (_initialize_thread_db): Add setter for libthread-db-search-path.
5703
673c2bbe
DE
57042011-05-09 Doug Evans <dje@google.com>
5705
478aac75
DE
5706 * NEWS: Mention --with-iconv-bin.
5707 * configure.ac: New option --with-iconv-bin.
5708 * configure: Regenerate.
5709 * config.in: Regenerate.
5710 * defs.h (relocate_gdb_directory): Declare.
5711 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5712 removed progname parameter, and exported. All callers updated.
5713 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5714
673c2bbe
DE
5715 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5716 adding missing call to restore_child_signals_mask.
5717
e4c8541f
PA
57182011-05-09 Pedro Alves <pedro@codesourcery.com>
5719
5720 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5721 parameter.
5722 * infrun.c (proceed, start_remote): Adjust.
5723 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5724 and adjust to not handle it.
5725 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5726 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5727 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5728 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5729 * windows-nat.c (do_initial_windows_stuff): Adjust.
5730 * infcmd.c (attach_command): Adjust.
5731 (notice_new_inferior): Adjust.
5732
a536c6d7
UW
57332011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5734
5735 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5736 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5737 * spu-tdep.c (op_selb): Use correct value.
5738
7845b013
UW
57392011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5740
5741 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5742 "parent" parameter to symbol_file_add_from_bfd call.
5743
9c06b0b4
TJB
57442011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5745 Thiago Jung Bauermann <bauerman@br.ibm.com>
5746
5747 Implement support for PowerPC BookE masked watchpoints.
5748 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5749 section.
5750 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5751 method. Initialize to NULL in all existing breakpoint_ops instances.
5752 (struct breakpoint) <hw_wp_mask>: New field.
5753 * breakpoint.c (is_masked_watchpoint): Add prototype.
5754 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5755 breakpoint's breakpoint_ops.works_in_software_mode if available.
5756 (watchpoints_triggered): Handle the case of a hardware masked
5757 watchpoint trigger.
5758 (watchpoint_check): Likewise.
5759 (works_in_software_mode_watchpoint): New function.
5760 (insert_masked_watchpoint, remove_masked_watchpoint)
5761 (resources_needed_masked_watchpoint)
5762 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5763 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5764 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5765 functions.
5766 (masked_watchpoint_breakpoint_ops): New structure.
5767 (watch_command_1): Check for the existence of the `mask' parameter.
5768 Set b->ops according to the type of hardware watchpoint being created.
5769 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5770 (ppc_linux_remove_mask_watchpoint)
5771 (ppc_linux_masked_watch_num_registers): New functions.
5772 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5773 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5774 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5775 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5776 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5777 (target_masked_watch_num_registers): New functions.
5778 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5779 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5780 methods.
5781 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5782 (target_masked_watch_num_registers): Add prototypes.
5783
8be455d7
JK
57842011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5785
5786 PR 12573
5787 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5788 (producer_is_gcc_ge_4_0): New function.
5789 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5790 symtab->language code.
5791 (var_decode_location): Set cu->has_loclist.
5792 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5793 skip. Intialize force_skip from locations_valid. Move the prologue
5794 skipping code into two passes.
5795 * symtab.h (struct symtab): Make the primary field a bitfield. New
5796 field locations_valid.
5797
d8228535
JK
57982011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5799
5800 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5801 (classify_inner_name): Call cp_lookup_nested_type with
5802 yylval.tsym.type.
5803 * cp-namespace.c (cp_lookup_nested_type): New variable
5804 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5805 type_name_no_tag_or_error with saved_parent_type.
5806 * dwarf2read.c (load_partial_dies): Read in any children of
5807 DW_TAG_typedef with complaint in such case.
5808 * gdbtypes.c (type_name_no_tag_or_error): New function.
5809 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5810 * valops.c (destructor_name_p): New comment for parameter type. Remove
5811 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5812 * value.h (destructor_name_p): Remove type const.
5813
1976171a
JK
58142011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5815
5816 * symtab.c (compare_symbol_name): New function.
5817 (completion_list_add_name, expand_partial_symbol_name): Call it,
5818 remove the variable ncmp.
5819 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5820 gdb_assert it.
5821
a9634178
TJB
58222011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5823
5824 Demote to sw watchpoint only in update_watchpoint.
5825 * breakpoint.c (update_watchpoint): Change between software and
5826 hardware watchpoint for all kinds of watchpoints, not just
5827 read/write ones. Determine b->exact value here instead of
5828 in watch_command_1. Error out if there are not enough resources
5829 for a read or access hardware watchpoint.
5830 (watch_command_1): Remove logic of checking whether there are
5831 enough resources available, since update_watchpoint will do that
5832 work now. Don't set b->exact here. Catch exceptions thrown by
5833 update_watchpoint and delete the watchpoint.
5834 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5835 Use target_exact_watchpoints instead.
5836 (delete_breakpoint): Notify observers only if deleted watchpoint
5837 has a breakpoint number assigned to it.
5838
4c67c798
JJ
58392011-05-05 Janis Johnson <janisjo@codesourcery.com>
5840
5841 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5842
a3fcb948
JG
58432011-05-05 Jerome Guitton <guitton@adacore.com>
5844
5845 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5846 New functions.
5847 (i386_stack_tramp_frame_unwind): New static global.
5848 (i386_match_pattern): New function, extracted from i386_match_insn.
5849 (i386_match_insn): Use i386_match_pattern.
5850 (i386_match_insn_block): New function.
5851 (i386_tramp_chain_in_reg_insns)
5852 (i386_tramp_chain_on_stack_insns): New static variables.
5853 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5854 of unwinders.
5855
4d393d60
JM
58562011-05-04 Joseph Myers <joseph@codesourcery.com>
5857
5858 * configure.host (xscale*): Don't handle target.
5859 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5860 handle targets.
5861
f70bd40b
YQ
58622011-05-04 Yao Qi <yao@codesourcery.com>
5863
5864 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5865
dd3295ee
JB
58662011-05-03 Joel Brobecker <brobecker@adacore.com>
5867
5868 Revert:
5869 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5870 | * elfread.c (elf_symtab_read): Stop memory leak.
5871
90375a0e
PM
58722011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5873
5874 * nto-tdep.c (nto_target): Replace deprecated call to
5875 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5876
d07205c2
JK
58772011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5878
5879 Fix false GCC warning.
5880 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5881
1e718ff1
TJB
58822011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5883
5884 * breakpoint.c (update_watchpoint): Move code to change
5885 the enable state of breakpoint from here ...
5886 (do_enable_breakpoint): ... to here.
5887
35bef4fd
TT
58882011-04-26 Andrew Gontarek <andrewg@cray.com>
5889
78290264
PP
5890 * valprint.c (val_print_array_elements): Fixed poor performance
5891 of printing very large arrays with repeat_count_threshold set
5892 to unlimited. New comment.
35bef4fd 5893
38a714bb
TT
58942011-04-29 Tom Tromey <tromey@redhat.com>
5895
5896 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5897 (mi_parse): Likewise.
5898 * breakpoint.c (break_range_command): Use sizeof char*, not
5899 char**.
5900 (create_breakpoint): Likewise.
5901 (parse_breakpoint_sals): Likewise.
5902
eb73ad13
PA
59032011-04-29 Pedro Alves <pedro@codesourcery.com>
5904
5905 * linux-nat.c (linux_child_remove_fork_catchpoint)
5906 (linux_child_remove_vfork_catchpoint)
5907 (linux_child_remove_exec_catchpoint): New functions.
5908 (linux_target_install_ops): Install them.
5909
d65aec65
PM
59102011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5911
5912 PR mi/12531
5913
5914 * varobj.c (install_default_visualizer): Do not install a
5915 visualizer if the varobj is CPLUS_FAKE_CHILD.
5916 (construct_visualizer): Likewise.
5917
165195f4
JK
59182011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5919
5920 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5921 case insensitive comparison.
5922
30852783
UW
59232011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5924
5925 * infrun.c (proceed): Revert previous change.
5926 (resume): Instead, handle the case of signal delivery while stepping
5927 off a breakpoint location here, and only if software single-stepping
5928 is used. Handle nested signals.
5929
7ff120b4
YQ
59302011-04-28 Yao Qi <yao@codesourcery.com>
5931
5932 * arm-tdep.c (copy_unmodified): Rename to ...
5933 (arm_copy_unmodified): .. this. New.
5934 (copy_preload): Move common part to ...
5935 (install_preload): .. this. New.
5936 (arm_copy_preload): New.
5937 (copy_preload_reg): Move common part to ...
5938 (install_preload_reg): ... this. New.
5939 (arm_copy_preload_reg): New.
5940 (copy_b_bl_blx): Move common part to ...
5941 (install_b_bl_blx): .. this. New.
5942 (arm_copy_b_bl_blx): New.
5943 (copy_bx_blx_reg): Move common part to ...
5944 (install_bx_blx_reg): ... this. New.
5945 (arm_copy_bx_blx_reg): New.
5946 (copy_alu_reg): Move common part to ...
5947 (install_alu_reg): ... this. New.
5948 (arm_copy_alu_reg): New.
5949 (copy_alu_shifted_reg): Move common part to ...
5950 (install_alu_shifted_reg): ... this. New.
5951 (copy_ldr_str_ldrb_strb): Move common part to ...
5952 (install_ldr_str_ldrb_strb): ... this. New.
5953 (arm_copy_ldr_str_ldrb_strb): New.
5954 (copy_copro_load_store): Move some common part to ...
5955 (install_copy_copro_load_store): ... this. New.
5956 (arm_copy_copro_load_store): New.
5957 (copy_svc): Delete.
5958 (arm_copy_svc): Renamed from copy_svc.
5959 (copy_undef): Delete.
5960 (arm_copy_undef): Renamed from copy_undef.
5961 (decode_ext_reg_ld_st): Delete.
5962 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5963 (decode_svc_copro): Delete.
5964 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5965 (copy_copro_load_store, copy_alu_imm): update callers.
5966 (copy_extra_ld_st, copy_block_xfer): Likewise.
5967 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5968 (decode_miscellaneous, decode_dp_misc): Likewise.
5969 (decode_ld_st_word_ubyte, decode_media): Likewise.
5970 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5971 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5972 (decode_unconditional, decode_miscellaneous): Likewise.
5973 (decode_media, decode_b_bl_ldmstm): Likewise.
5974 (arm_process_displaced_insn): Likewise..
5975 (decode_misc_memhint_neon): Delete.
5976 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5977 (decode_miscellaneous): Delete.
5978 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5979 (decode_dp_misc): Delete.
5980 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5981 (decode_ld_st_word_ubyte): Delete.
5982 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5983 (decode_media): Delete.
5984 (arm_decode_media): Renamed from decode_media.
5985 (decode_b_bl_ldmstm): Delete.
5986 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5987 (decode_ext_reg_ld_st): Delete.
5988 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5989 (decode_unconditional): Delete.
5990 (arm_decode_unconditional): Renamed from decode_unconditional.
5991
559a7a62
JK
59922011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5993
5994 Case insensitive lookups implementation.
5995 * dwarf2read.c: Include ctype.h.
5996 (struct mapped_index): New field version.
5997 (mapped_index_string_hash): New parameter index_version. New comment
5998 for it. Call tolower appropriately.
5999 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6000 Choose the right index version for mapped_index_string_hash.
6001 (dwarf2_read_index): Support also the index version 5. Initialize the
6002 new struct mapped_index field version.
6003 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6004 (find_slot): Explain the version needs. Pass INT_MAX for the new
6005 parameter.
6006 (write_psymtabs_to_index): Produce version 5.
6007 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6008 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6009 * psymtab.c (lookup_partial_symbol): Find the
6010 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6011 entries.
6012 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6013 NAME lowercasing.
6014 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6015 (completion_list_add_name): New variable ncmp, initialize it, use it.
6016 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6017 * utils.c (strcmp_iw): Support case_sensitive_off.
6018 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6019 New function comment part. New variables saved_string1,
6020 saved_string2 and case_pass. Add a proper second pass.
6021
681bf369
JK
60222011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6023
6024 Replace re_comp/re_exec by regcomp/regexec.
6025 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6026 (search_symbols_name_matches): Use them, use regexec.
6027 (search_symbols): New variable retval_chain, adjust the use of
6028 old_chain against it. Replace re_comp by regcomp. Use the new struct
6029 search_symbols_data fields, use regexec instead of re_exec.
6030
b11b1f88
JK
60312011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 Format the code for the next patch.
6034 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6035 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6036 New variables c1 and c2.
6037
2484c66b
UW
60382011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6039
6040 * infrun.c (proceed): Do not single-step into signal delivery
6041 when stepping off a breakpoint location.
6042 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6043 (insert_step_resume_breakpoint_at_caller): Likewise.
6044 (insert_step_resume_breakpoint_at_sal): Likewise.
6045 (insert_longjmp_resume_breakpoint): Likewise.
6046
47423772
YQ
60472011-04-27 Yao Qi <yao@codesourcery.com>
6048
6049 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6050
13bdd2e7
JB
60512011-04-27 Joel Brobecker <brobecker@adacore.com>
6052
6053 * procfs.c (procfs_pass_signals): Fix advance declaration.
6054
2455069d
UW
60552011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6056
6057 * target.h (struct target_ops): Remove to_notice_signals;
6058 add to_pass_signals.
6059 (target_notice_signals): Remove.
6060 (target_pass_signals): Add prototype.
6061 * target.c (update_current_target): Remove to_notice_signals;
6062 mention to_pass_signals.
6063 (target_pass_signals): New function.
6064 (debug_to_notice_signals): Remove.
6065 (setup_target_debug): Do not install debug_to_notice_signals.
6066
6067 * infrun.c (signal_pass): New global.
6068 (resume): Call target_pass_signals.
6069 (handle_inferior_event): Report all signals while stepping over
6070 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6071 are re-inserted when stepping over a signal handler.
6072 (signal_cache_update): New function.
6073 (signal_stop_update): Call it.
6074 (signal_print_update): Likewise.
6075 (signal_pass_update): Likewise.
6076 (handle_command): Call signal_cache_update and target_pass_signals
6077 instead of target_notice_signals.
6078 (_initialize_infrun): Initialize signal_pass.
6079
6080 * linux-nat.c (pass_mask): New global.
6081 (linux_nat_pass_signals): New function.
6082 (linux_nat_create_inferior): Report all signals initially.
6083 (linux_nat_attach): Likewise.
6084 (linux_nat_resume): Use pass_mask to decide whether to directly
6085 handle an inferior signal.
6086 (linux_nat_wait_1): Likewise.
6087 (linux_nat_add_target): Install to_pass_signals callback.
6088
6089 * nto-procfs.c (notice_signals): Remove.
6090 (procfs_resume): Do not call notice_signals.
6091 (procfs_notice_signals): Remove.
6092 (procfs_pass_signals): New function.
6093 (init_procfs_ops): Install to_pass_signals callback instead of
6094 to_notice_signals callback.
6095 (_initialize_procfs): Report all signals initially.
6096
6097 * procfs.c (procfs_notice_signals): Remove.
6098 (procfs_pass_signals): New function.
6099 (procfs_target): Install to_pass_signals callback instead of
6100 to_notice_signals callback.
6101 (register_gdb_signals): Remove.
6102 (procfs_debug_inferior): Report all signals initially.
6103 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6104
6105 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6106 parameters; use them instead of calling signal_..._state routines.
6107 (remote_notice_signals): Remove.
6108 (remote_start_remote): Report all signals initially.
6109 (remote_resume): Do not call remote_pass_signals.
6110 (_initialize_remote): Install to_pass_signals callback instead of
6111 to_notice_signals callback.
6112
46c6471b
PA
61132011-04-27 Pedro Alves <pedro@codesourcery.com>
6114
6115 * breakpoint.c (user_settable_breakpoint): Delete.
6116 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6117 (delete_command): Check user_breakpoint_p instead of looking at
6118 the breakpoint's type.
6119 (disable_command): Ditto.
6120 (enable_command): Ditto.
6121 (delete_trace_command): Use user_breakpoint_p instead of looking
6122 at the breakpoint number directly. When checking if there are
6123 user visible tracepoints, in order to know whether to ask the user
6124 for confirmation, check whether the breakpoint is actually a
6125 tracepoint.
6126
f6d90398
VP
61272011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6128
6129 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6130 compilation.
6131
8d3788bd
VP
61322011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6133
6134 MI breakpoint notifications.
6135
f33edef8
PP
6136 * annotate.c (breakpoint_changed): Adjust parameter type.
6137 * breakpoint.c (set_breakpoint_condition): Adjust to change
6138 in breakpoint_modified type.
6139 (breakpoint_set_commands): Likewise.
6140 (do_map_commands_command): Likewise.
6141 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6142 changed after bumping hit count.
6143 (bpstat_stop_status): Likewise.
6144 (print_one_breakpoint_location): Don't wrap in tuple here.
6145 (print_one_breakpoint): Always print individual locations.
6146 For locations, use unnamed tuple.
6147 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6148 has changed.
6149 (create_catchpoint, create_syscall_event_catchpoint): Call
6150 breakpoint_created obsever.
6151 (mention): Don't call breakpoint_created observer.
6152 (create_breakpoint_sal): Call breakpoint_created observer.
6153 (create_breakpoint, watch_command_1): Likewise.
6154 (create_ada_exception_breakpoint): Likewise.
6155 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6156 (locations_are_equal): New.
6157 (update_breakpoint_locations): If locations were changed, notify.
6158 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6159 Call breakpoint_modified observer.
6160
6161 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6162 (mi_cmd_break_insert): Don't set observers for modify and delete.
6163 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6164 (mi_breakpoint_created, mi_breakpoint_deleted)
6165 (mi_breakpoint_modified): New.
6166 (mi_interpreter_init): Hook the above.
6167 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6168 while -break-* commands are executing.
6169 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6170 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6171 (mi_redirect): New.
6172 (mi_ui_out_impl): Hook in mi_redirect.
6173 (mi_field_skip): True to the name, skip the field, don't output
6174 a field with an empty value.
6175
6176 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6177 (gdbpy_breakpoint_deleted): Adjust.
6178 * tui/tui-hooks.c (tui_event_create_breakpoint)
6179 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6180
a8f42b45
UW
61812011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6182
6183 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6184 (procfs_remove_hw_watchpoint): Likewise.
6185
57e12211
TT
61862011-04-26 Michael Walle <michael@walle.cc>
6187
6188 * remote.c (remote_start_remote): Ack packet after sending the
6189 interrupt sequence.
6190
af96c192
YQ
61912011-04-26 Yao Qi <yao@codesourcery.com>
6192
f33edef8
PP
6193 * linux-nat.c: Move common macros to ...
6194 Include linux-ptrace.h.
6195 * common/linux-ptrace.h: ... here. New.
af96c192 6196
3e03848b
JK
61972011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6198
6199 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6200 !objfile_has_partial_symbols. New comment.
6201 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6202 SYM_READ_PSYMBOLS is not present. Extend the comment.
6203 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6204
1ae0d051
JK
62052011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6206
6207 * defs.h (ENUM_BITFIELD): Remove.
6208
03f2bd59
JK
62092011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6210 Eli Zaretskii <eliz@gnu.org>
6211
6212 * NEWS: Document the new gdbserver --once option.
6213
4161fbb0
JZ
62142011-04-21 Jie Zhang <jzhang918@gmail.com>
6215
6216 * MAINTAINERS: Update my email address.
6217
bcb28afc
PM
62182011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6219
6220 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6221 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6222 function call if __STDC_ISO_10646__ macro is defined.
6223 (intermediate_encoding): New prototype.
6224 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6225 to generate compile time error for unsupported gdb_wchar_t size.
6226 (ENDIAN_SUFFIX): New macro.
6227 (intermediate_encoding): New function.
6228
7b08b9eb
JK
62292011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6230
6231 * ada-lang.c (struct add_partial_datum): Update the comment for
6232 expand_partial_symbol_name.
6233 (ada_add_partial_symbol_completions): Rename to ...
6234 (ada_expand_partial_symbol_name): ... here, change return type, update
6235 function comment, call symbol_completion_match instead of
6236 symbol_completion_add.
6237 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6238 and ada_expand_partial_symbol_name.
6239 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6240 FILE_MATCHER.
6241 (dw2_map_symbol_names): Remove.
6242 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6243 * psymtab.c (map_symbol_names_psymtab): Remove.
6244 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6245 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6246 order.
6247 (psym_functions): Unlist map_symbol_names_psymtab.
6248 (map_partial_symbol_names): Rename to ...
6249 (expand_partial_symbol_names): ... here, change the FUN type, call
6250 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6251 * psymtab.h (map_partial_symbol_names): Rename to ...
6252 (expand_partial_symbol_names): ... here, change the FUN type.
6253 * symfile.h (struct quick_symbol_functions): Update the description of
6254 expand_symtabs_matching. Remove map_symbol_names.
6255 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6256 (struct add_name_data): Update the comment for
6257 expand_partial_symbol_name.
6258 (add_partial_symbol_name): Rename to ...
6259 (expand_partial_symbol_name): ... here. Replace
6260 completion_list_add_name call by strncmp.
6261 (default_make_symbol_completion_list_break_on): Use now
6262 expand_partial_symbol_names and expand_partial_symbol_name.
6263 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6264
90476074
TT
62652011-04-20 Tom Tromey <tromey@redhat.com>
6266
6267 * dwarf2read.c (save_gdb_index_command): Replace format
6268 documentation with a pointer to the manual.
6269
c21236dc
PA
62702011-04-20 Pedro Alves <pedro@codesourcery.com>
6271
6272 * regcache.c: Include remote.h.
6273 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6274 (regcache_dump): Handle regcache_dump_remote.
6275 (maintenance_print_remote_registers): New function.
6276 (_initialize_regcache): Install "maint print remote-registers"
6277 command.
6278 * remote.c (map_regcache_remote_table): New function, factored out
6279 from ...
6280 (init_remote_state): ... here.
6281 (remote_register_number_and_offset): New.
6282 * remote.h (remote_register_number_and_offset): Declare.
6283
b78974c3
PA
62842011-04-20 Pedro Alves <pedro@codesourcery.com>
6285
6286 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6287 null_ptid, assume and allow a NULL address space, instead of
6288 asking the target for the ptid's address space.
6289 * infrun.c (ptid_is_pid): Remove assertion.
6290
7a9dd1b2
TT
62912011-04-19 Tom Tromey <tromey@redhat.com>
6292
6293 * windows-tdep.c (windows_xfer_shared_library):
6294 * windows-nat.c (get_module_name, windows_make_so):
6295 * v850-tdep.c (v850_handle_pushm):
6296 * utils.c (null_cleanup, gdb_realpath):
6297 * ui-out.c (get_next_header):
6298 * tracepoint.c (clear_traceframe_info):
6299 * symtab.c (lookup_symtab):
6300 * serial.h (struct serial_ops):
6301 * mipsread.c (read_alphacoff_dynamic_symtab):
6302 * infcmd.c (print_return_value):
6303 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6304 * f-exp.y (parse_number):
6305 * exceptions.c (catch_exceptions):
6306 * dummy-frame.c (dummy_frame_this_id):
6307 * defs.h (struct cleanup):
6308 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6309 * arm-tdep.c (arm_push_dummy_call):
6310 * amd64-tdep.h (amd64_collect_xsave):
6311 * amd64-tdep.c (amd64_collect_xsave):
6312 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6313 * README (typing): Remove duplicate words.
6314 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6315 * infrun.c (siginfo_value_read): Fix typo.
6316 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6317 * top.c (source_line_number): Add comma.
6318
9941e0c5
MK
63192011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6320
6321 * thread.c (any_live_thread_of_process): Prioritize threads
6322 that are not executing.
6323 * gdbthread.h (any_live_thread_of_process): Update comment
6324 as per above change.
6325
ed4b0e6a
AS
63262011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6327
6328 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6329 (scan_xcoff_symtab): Likewise.
6330
9b13a2db
PM
63312011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6332
6333 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6334 inside if clause.
6335
1c6e1b0d
PM
63362011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6337 Pedro Alves <pedro@codesourcery.com>
6338
6339 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6340 variables to simplify code and avoid == operator at end of
6341 line as this is against GNU coding standards.
6342
74de0234
PM
63432011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6344
6345 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6346 lm_name to name_lm to avoid conflict with lm_name function.
6347
b23518f0
PM
63482011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6349
6350 ARI fixes: Use only lowercase function name for static functions.
6351 * nto-tdep.c (LM_ADDR): Rename to...
6352 (lm_addr): New function name.
6353 (nto_relocate_section_addresses): Adapt to change above.
6354 * solib-sunos.c (LM_ADDR): Rename to...
6355 (lm_addr): New function name.
6356 (LM_NEXT): Rename to...
6357 (lm_next): New function name.
6358 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6359 function name changes above.
6360 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6361 (lm_addr_from_link_map): New function name.
6362 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6363 (has_lm_dynamic_from_link_map): New function name.
6364 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6365 (lm_dynamic_from_link_map): New function name.
6366 (LM_ADDR_CHECK): Rename to...
6367 (lm_addr_check): New function name.
6368 (LM_NEXT): Rename to...
6369 (lm_next): New function name.
6370 (LM_PREV): Rename to...
6371 (lm_prev): New function name.
6372 (LM_NAME): Rename to...
6373 (lm_name): New function name.
6374 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6375 (ignore_first_link_map_entry): New function name.
6376 (svr4_keep_data_in_core): Adapt to function name changes above.
6377 (svr4_current_sos): Likewise.
6378 (enable_break): Likewise.
6379 (svr4_relocate_section_addresses): Likewise.
6380
1448a0a2
PM
63812011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6382
6383 ARI cleanup.
6384 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6385 sprintf. Simplify code and avoid loosing memory.
6386 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6387 (call0_frame_cache): Remove && operator from end of line.
6388
02835898
JK
63892011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6390
6391 Fix libraries displacement if they change whether they were prelinked.
6392 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6393 does not match. Comment why.
6394
9a845ea2
JK
63952011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6396
6397 * corelow.c: Include wrapper.h.
6398 (core_open): Call now gdb_target_find_new_threads.
6399 * wrapper.c: Include target.h.
6400 (gdb_target_find_new_threads): New.
6401 * wrapper.h (gdb_target_find_new_threads): New declaration.
6402
254f582e
JK
64032011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6404
6405 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6406 even if !TARGET_HAS_EXECUTION.
6407
63524580
JK
64082011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6409
6410 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6411 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6412 bfd_get_synthetic_symtab.
6413 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6414 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6415 parameter parent, remove the call to add_separate_debug_objfile.
6416 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6417 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6418 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6419 parent, new comment for it, call add_separate_debug_objfile for it.
6420 (symbol_file_add_separate): Pass objfile as the parameter parent,
6421 remove the call to add_separate_debug_objfile.
6422 (symbol_file_add_from_bfd): New parameter parent, pass it.
6423 (symbol_file_add): Pass NULL to the new parameter parent.
6424 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6425
90359a16
JK
64262011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6427
6428 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6429 BSF_SYNTHETIC.
6430
626e7282
JK
64312011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6432
6433 Fix Python access to inlined frames.
6434 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6435 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6436
cf31e6f9
TT
64372011-04-15 Tom Tromey <tromey@redhat.com>
6438
6439 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6440
c8d895f1
GB
64412011-04-15 Gary Benson <gbenson@redhat.com>
6442
6443 * MAINTAINERS: Add myself to write-after-approval section.
6444
56a9aa1d
MF
64452011-04-14 Mike Frysinger <vapier@gentoo.org>
6446
6447 * remote-sim.c (sim_command_completer): New function.
6448 (_initialize_remote_sim): Set completer to sim_command_completer.
6449
ba770c9c
TJB
64502011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6451
6452 * breakpoint.c (print_exception_catchpoint): Rename to ...
6453 (print_it_exception_catchpoint): ... this.
6454 (gnu_v3_exception_catchpoint_ops): Update with new name
6455 for print_it_exception_catchpoint.
6456
51bf2553
EBM
64572011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6458
6459 * MAINTAINERS: Add myself for write after approval privileges.
6460
d242658c
MP
64612011-04-13 Marek Polacek <mpolacek@redhat.com>
6462
6463 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6464
4a4106ca
TJB
64652011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6466
6467 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6468
26063d49
TJB
64692011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6470
6471 * breakpoint.c (save_breakpoints): Verify whether
6472 breakpoint_ops.print_recreate is defined before calling it.
6473
7782b183
GB
64742011-04-11 Gary Benson <gbenson@redhat.com>
6475
6476 Fix failure with --enable-maintainer-mode.
6477 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6478
e8930875
JK
64792011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6480
6481 Code cleanup.
6482 * symtab.c (search_symbols): Reorder the KIND description in the
6483 function comment. Remove the unused 4th element of types, types2,
6484 types3 and types4. New gdb_assert on KIND.
6485 (symtab_symbol_info): Remove the unused 4th element of classnames.
6486 New gdb_assert on KIND.
6487 * symtab.h (enum search_domain): New warning in the enum comment.
6488 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6489 TYPES_DOMAIN.
6490
b4f2f049
JK
64912011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6492
6493 Fix crash of gdb save-index on a STABS file.
6494 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6495 PSYMTABS_ADDRMAP.
6496
60d5a603
JK
64972011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6498
6499 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6500 * dwarf2read.c: Include ctype.h.
6501 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6502 functions.
6503 (dwarf2_add_field): Fix new_field->accessibility by calling
6504 dwarf2_default_access_attribute. Restructure setting accessibility
6505 vs. virtuality.
6506 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6507 is_private and is_protected by calling
6508 dwarf2_default_access_attribute.
6509
e0f68161
KB
65102011-04-08 Kevin Buettner <kevinb@redhat.com>
6511
6512 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6513 to the initialization.
6514
2e1aae43
SE
65152011-04-08 Steve Ellcey <sje@cup.hp.com>
6516
6517 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6518 initalization.
6519
c6ca3dab
PM
65202011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6521
6522 Remove support for old Cygwin 1.5 versions.
6523 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6524 function on old Cygwin version.
6525 * windows-nat.c: Remove cygwin version check and always define
6526 __USEWIDE for Cygwin compilation.
6527
bd18283a
YQ
65282011-04-07 Yao Qi <yao@codesourcery.com>
6529
6530 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6531 and TO.
6532 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6533 (arm_copy_svc): Remove parameters INSN and TO.
6534 (decode_svc_copro): Update caller.
6535 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6536 from function pointer `copy_svc_os'.
6537
8c8dba6d
YQ
65382011-04-07 Yao Qi <yao@codesourcery.com>
6539
6540 * arm-tdep.c (cleanup_branch): Set a correct return address in
6541 LR for ARM and Thumb.
6542
59d7bcaf
JK
65432011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 Code cleanup.
6546 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6547 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6548 in the function comment, a new note on values compatibility.
6549 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6550 * symtab.h (SYMBOL_HASH_NEXT): New.
6551
e7db58ea
TJB
65522011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6553
6554 * ppc-linux-nat.c (check_condition): Add len output parameter.
6555 Set it based on the memory region referenced in the condition
6556 expression. Update all callers.
6557
9f743ef6
JK
65582011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6559
6560 Fix crash regression on systems featuring .gdb_index.
6561 * objfiles.c (free_objfile): Move the
6562 forget_cached_source_info_for_objfile call earlier. Comment it.
6563 Extend the comment for objfile_free_data.
6564
9182c5bc
JK
65652011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6566
6567 Fix regression of displaying the debug format.
6568 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6569 subfile.
6570
04bd08de
TT
65712011-04-04 Tom Tromey <tromey@redhat.com>
6572
6573 * cli/cli-interp.c (struct captured_execute_command_args):
6574 Remove.
6575 (do_captured_execute_command): Remove.
6576 (safe_execute_command): Use TRY_CATCH.
6577 * cli/cli-script.c (struct wrapped_read_command_file_args):
6578 Remove.
6579 (wrapped_read_command_file): Remove.
6580 (script_from_file): Use TRY_CATCH.
6581 * exceptions.c (catch_exception): Remove.
6582 * exceptions.h (catch_exception): Remove.
6583 (deprecated_throw_reason): Update comment.
6584 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6585 argument to 'context'.
6586 (mi_execute_command): Use TRY_CATCH.
6587 * remote.c (struct start_remote_args): Remove.
6588 (remote_start_remote): Update; change arguments.
6589 (remote_open_1): Use TRY_CATCH.
6590
58438ac1
TT
65912011-04-04 Tom Tromey <tromey@redhat.com>
6592
6593 * tracepoint.c (scope_info): Update.
6594 * symtab.c (decode_line_spec): Update.
6595 * python/python.c (gdbpy_decode_line): Update.
6596 * linespec.h (decode_line_1): Update.
6597 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6598 (decode_compound, find_method, symtab_from_filename)
6599 (decode_variable): Likewise.
6600 * cli/cli-cmds.c (edit_command): Update.
6601 (list_command): Update.
6602 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6603 argument.
6604 (create_breakpoint): Update.
6605 (until_break_command): Update.
6606 (addr_string_to_sals): Update.
6607 (decode_line_spec_1): Update.
6608
b78a6381
TT
66092011-04-04 Tom Tromey <tromey@redhat.com>
6610
6611 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6612 (do_captured_parse_breakpoint): Remove.
6613 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6614 Use TRY_CATCH directly.
6615
00174a86
TT
66162011-04-04 Tom Tromey <tromey@redhat.com>
6617
6618 * symtab.h (free_symtab): Remove.
6619 (forget_cached_source_info_for_objfile): Declare.
6620 * symmisc.c (free_symtab): Remove.
6621 * source.c (forget_cached_source_info_for_objfile): New function.
6622 (forget_cached_source_info): Use it.
6623 * objfiles.c (free_objfile): Simplify check before calling
6624 clear_current_source_symtab_and_line. Call
6625 forget_cached_source_info_for_objfile.
6626
30cc903e
TT
66272011-04-04 Tom Tromey <tromey@redhat.com>
6628
6629 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6630 (new_symtab): Don't set `free_code' on symtab.
6631 (new_linetable): Properly handle size==0.
6632 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6633 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6634 free_func.
6635 * jv-lang.c (struct jv_per_objfile_data): New.
6636 (jv_per_objfile_free): Free the data.
6637 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6638 (get_java_class_symtab): Set the `dict' field on the
6639 jv_per_objfile_data.
6640 (free_class_block): Remove.
6641 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6642 the symtab.
6643
0c2e6019
TT
66442011-04-04 Tom Tromey <tromey@redhat.com>
6645
6646 * symfile.c (reread_symbols): Update.
6647 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6648 field.
6649 * objfiles.c (allocate_objfile): Update.
6650 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6651 declare.
6652 * cp-namespace.c (lookup_symbol_file): Don't call
6653 lookup_possible_namespace_symbol.
6654 (initialize_namespace_symtab, get_possible_namespace_block)
6655 (free_namespace_block, cp_check_possible_namespace_symbols)
6656 (check_possible_namespace_symbols_loop)
6657 (check_one_possible_namespace_symbol)
6658 (lookup_possible_namespace_symbol): Remove.
6659 (maintenance_cplus_namespace): Replace with notice.
6660 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6661
554d387d
TT
66622011-04-04 Tom Tromey <tromey@redhat.com>
6663
6664 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6665 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6666 * symmisc.c (free_symtab): Don't free debugformat.
6667 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6668 (record_debugformat, record_producer): Document.
6669 * buildsym.c (end_symtab): Don't save debugformat and producer
6670 names on obstack.
6671 (end_symtab): Don't free debugformat and producer fields.
6672 (record_debugformat): Don't call xstrdup.
6673 (record_producer): Likewise.
6674
d4d4db8a
TT
66752011-04-04 Tom Tromey <tromey@redhat.com>
6676
6677 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6678 (source_line_charpos, source_charpos_line): Remove.
6679
8903c50d
TT
66802011-04-04 Tom Tromey <tromey@redhat.com>
6681
6682 * symtab.h (domain_enum): Split in two...
6683 (enum search_domain): New.
6684 (search_symbols): Update.
6685 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6686 redundant declarations.
6687 (search_symbols): Change 'kind' argument to search_domain.
6688 Update.
6689 (print_symbol_info): Likewise.
6690 (symtab_symbol_info): Likewise.
6691 * symfile.h (struct quick_symbol_functions)
6692 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6693 <expand_symtabs_matching>: Likewise.
6694 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6695 (expand_symtabs_matching_via_partial): Update.
6696 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6697 (dw2_expand_symtabs_for_function): Update.
6698 * block.h: Moved anonymous enum...
6699 * defs.h (enum block_enum): ... here. Now named.
6700
d9351f5f 67012011-04-03 Joel Brobecker <brobecker@adacore.com>
6702
6703 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6704 * version.in: Bump version to 7.3.50.20110403-cvs.
6705
d6e00af6
JB
67062011-04-03 Joel Brobecker <brobecker@adacore.com>
6707
6708 * NEWS: Create a new section for the next release branch.
6709 Rename the section of the current branch, now that it has
6710 been cut.
6711
2b9e5ea6
UW
67122011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6713
6714 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6715 for "fpscr" in target description.
6716
0cf03b49
JK
67172011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6718
6719 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6720 initialize it. Delay HASH initialization. Strip the part after open
6721 parenthesis for languages with qualifiers. Call do_cleanups.
6722
5d901a73
TT
67232011-04-01 Tom Tromey <tromey@redhat.com>
6724
6725 * utils.c (report_command_stats): Don't print `-' for negative
6726 number.
6727
b0dd7688
JB
67282011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6729
6730 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6731 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6732 typedefs.
6733
956a9fb9
JB
67342011-04-01 Joel Brobecker <brobecker@adacore.com>
6735
6736 * breakpoint.h (bpdisp_text): Add declaration.
6737 * breakpoint.c (bpdisp_text): Make non-static.
6738 * ada-lang.c: #include "mi/mi-common.h".
6739 (print_it_exception): Rewrite to improve GDB/MI output.
6740
3352110b
PA
67412011-04-01 Pedro Alves <pedro@codesourcery.com>
6742
6743 * arm-tdep.h (struct address_space): Add forward declaration.
6744
18819fa6
UW
67452011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6746
6747 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6748 * arm-tdep.c (arm_override_mode): New global.
6749 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6750 execution mode heuristics.
6751 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6752 second single-step breakpoint if needed, using
6753 arm_insert_single_step_breakpoint.
6754 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6755 ARM execution mode, do not call thumb_get_next_pc_raw.
6756 (arm_get_next_pc): Encode execution mode in return value. Call
6757 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6758 (arm_insert_single_step_breakpoint): New function.
6759 (arm_software_single_step): Call it.
6760 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6761 argument to return execution mode of sigreturn target.
6762 (arm_linux_syscall_next_pc): Use it.
6763 (arm_linux_copy_svc): Update call.
6764 (arm_linux_software_single_step): Call
6765 arm_insert_single_step_breakpoint.
6766
a6e293d1
JK
67672011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6768
6769 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6770 the comment.
6771
a4c8e806
TT
67722011-03-31 Tom Tromey <tromey@redhat.com>
6773
6774 * varobj.c (update_dynamic_varobj_children): Properly handle
6775 errors from iterator.
6776
df5c6c50
JK
67772011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6778
6779 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6780 struct linkage name twice.
6781
1dae3efc
TT
67822011-03-31 Tom Tromey <tromey@redhat.com>
6783
6784 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6785 missing ">" to message.
6786
f4f7ab05
TT
67872011-03-31 Tom Tromey <tromey@redhat.com>
6788
6789 * varobj.c (instantiate_pretty_printer): Remove duplicate
6790 'return'.
6791
fcf250e2
UW
67922011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6793
6794 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6795 if neither saved value nor register available (e.g. signal frame).
6796
ee6436e3
TJB
67972011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6798
6799 * macroexp.c (expand): Avoid uninitialized variable
6800 compiler warning.
6801
423f41a5
TJB
68022011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6803
6804 * breakpoint.c (break_range_command): Fix typo in comment.
6805
f1310107
TJB
68062011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6807 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6808
6809 Implement support for PowerPC BookE ranged breakpoints.
6810 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6811 * breakpoint.h (struct bp_target_info) <length>: New member
6812 variable.
6813 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6814 instead of struct breakpoint as argument, and also add ASPACE
6815 and BP_ADDR arguments. Update all callers.
6816 (struct breakpoint_ops) <print_one_detail>: New method.
6817 (struct breakpoint) <addr_string_range_end>: New member variable.
6818 * breakpoint.c (breakpoint_location_address_match): Add function
6819 prototype.
6820 (insert_bp_location): Set bl->target_info.length.
6821 (breakpoint_here_p): Call breakpoint_location_address_match.
6822 (moribund_breakpoint_here_p): Likewise.
6823 (regular_breakpoint_inserted_here_p): Likewise.
6824 (breakpoint_thread_match): Likewise.
6825 (bpstat_stop_status): Likewise.
6826 (bpstat_check_location): Move call to
6827 breakpoint_ops.breakpoint_hit to the top.
6828 (print_one_breakpoint_location): Call
6829 breakpoint_ops.print_one_detail if available.
6830 (breakpoint_address_match_range): New function.
6831 (breakpoint_location_address_match): Likewise.
6832 (breakpoint_locations_match): Compare the length field of the
6833 locations too.
6834 (hw_breakpoint_used_count): Count resources used by all locations
6835 in a breakpoint, and use breakpoint_ops.resources_needed if
6836 available.
6837 (breakpoint_hit_ranged_breakpoint): New function.
6838 (resources_needed_ranged_breakpoint): Likewise.
6839 (print_it_ranged_breakpoint): Likewise.
6840 (print_one_ranged_breakpoint): Likewise.
6841 (print_one_detail_ranged_breakpoint): Likewise.
6842 (print_mention_ranged_breakpoint): Likewise.
6843 (print_recreate_ranged_breakpoint): Likewise.
6844 (ranged_breakpoint_ops): New structure.
6845 (find_breakpoint_range_end): New function.
6846 (break_range_command): Likewise.
6847 (delete_breakpoint): Free addr_string_range_end.
6848 (update_breakpoint_locations): Add SALS_END argument. Update
6849 all callers. Calculate breakpoint length if a non-zero SALS_END
6850 is given. Call breakpoint_locations_match instead of
6851 breakpoint_address_match.
6852 (reset_breakpoint): Find SaL of the end of the range if B is a
6853 ranged breakpoint.
6854 (_initialize_breakpoint): Register break-range command.
6855 * defs.h (print_core_address): Add function prototype.
6856 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6857 function.
6858 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6859 (ppc_linux_remove_hw_breakpoint): Likewise.
6860 (_initialize_ppc_linux_nat): Initialize
6861 to_ranged_break_num_registers.
6862 * target.c (update_current_target): Add comment about
6863 to_ranged_break_num_registers.
6864 (target_ranged_break_num_registers): New function.
6865 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6866 New method.
6867 (target_ranged_break_num_registers): Add function prototype.
6868 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6869 * utils.c (print_core_address): ... here.
6870
02d20e4a
UW
68712011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6872
6873 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6874 variable compiler warning.
6875
ef23e705
TJB
68762011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6877
6878 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6879 code from here ...
6880 (re_set_breakpoint): ... to here ...
6881 (addr_string_to_sals): ... and here.
6882
311e6ab3
PM
68832011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6884
6885 * Makefile.in (SFILES): Add missing C sources.
6886 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6887 Add missing headers.
6888
acd1d99c
MF
68892011-03-29 Mike Frysinger <vapier@gentoo.org>
6890
6891 * .gitignore: New file.
6892
66ee2731
MF
68932011-03-29 Mike Frysinger <vapier@gentoo.org>
6894
6895 * NEWS: Mention new cfi device simulation.
6896
53832f31
TT
68972011-03-29 Tom Tromey <tromey@redhat.com>
6898
6899 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6900 otherwise anonymous types.
6901 (dwarf2_name): Likewise.
6902 * valops.c (value_struct_elt_for_reference): Refine artificial
6903 type logic. Call error if j==-1.
6904
09b58708
JK
69052011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6906
6907 Fix false GCC warning.
6908 * infcall.c (find_function_addr): Initialize funaddr.
6909
6023c606
PM
69102011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6911
6912 Fix mingw compilation with --enable-targets=all.
6913 * remote-mips.c (gdb_usleep.h): Include header.
6914 (mips_enter_debug): Use gdb_usleep instead of sleep.
6915
0e30163f
JK
69162011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6917
6918 Support resolution of STT_GNU_IFUNC via breakpoints.
6919 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6920 bp_gnu_ifunc_resolver_return.
6921 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6922 the loop. Support bp_gnu_ifunc_resolver and
6923 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6924 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6925 breakpoints.
6926 (bptype_string, print_one_breakpoint_location): Support
6927 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6928 (user_settable_breakpoint): Return true also for
6929 bp_gnu_ifunc_resolver.
6930 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6931 bp_gnu_ifunc_resolver_return.
6932 (set_breakpoint_location_function): New parameter explicit_loc,
6933 describe it. Call find_pc_partial_function_gnu_ifunc with new
6934 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6935 EXPLICIT_LOC is not set.
6936 (set_raw_breakpoint): Set EXPLICIT_LOC for
6937 set_breakpoint_location_function.
6938 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6939 set_breakpoint_location_function.
6940 (mention): Support bp_gnu_ifunc_resolver and
6941 bp_gnu_ifunc_resolver_return.
6942 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6943 set_breakpoint_location_function.
6944 (update_breakpoint_locations): Remove static.
6945 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6946 bp_gnu_ifunc_resolver_return.
6947 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6948 bp_gnu_ifunc_resolver_return.
6949 (update_breakpoint_locations): New declaration.
6950 * elfread.c: Include gdbthread.h and regcache.h.
6951 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6952 functions.
6953 (elf_gnu_ifunc_fns): Install them.
6954 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6955 (stub_gnu_ifunc_resolver_return_stop): New functions.
6956 (stub_gnu_ifunc_fns): Install them.
6957 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6958 and gnu_ifunc_resolver_return_stop.
6959 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6960
07be84bf
JK
69612011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6962
6963 STT_GNU_IFUNC reader implementation.
6964 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6965 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6966 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6967 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6968 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6969 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6970 (elf_gnu_ifunc_resolve_addr): New.
6971 (elf_symfile_read): Call elf_rel_plt_read.
6972 (elf_gnu_ifunc_fns): New.
6973 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6974 Install elf_gnu_ifunc_fns.
6975 * infcall.c (find_function_return_type): New function.
6976 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6977 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6978 (stub_gnu_ifunc_resolve_name): New functions.
6979 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6980 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6981 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6982
300f8e10
JK
69832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6984
6985 Code cleanup for later STT_GNU_IFUNC support.
6986 * infcall.c (find_function_addr): Remove variable code, use explicit
6987 dereferences for it. Move VALUE_TYPE initialization later.
6988
11c81455
JK
69892011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6990
6991 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6992 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6993 (clear_pc_function_cache): Clear it.
6994 (find_pc_partial_function): Rename to ...
6995 (find_pc_partial_function_gnu_ifunc): ... this function. New
6996 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6997 (find_pc_partial_function): New wrapper for this function.
6998 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6999
0875794a
JK
70002011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7001
7002 GDB internal type support for STT_GNU_IFUNC.
7003 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7004 (elf_symtab_read): Set mst_text_gnu_ifunc for
7005 BSF_GNU_INDIRECT_FUNCTION.
7006 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7007 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7008 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7009 nodebug_got_plt_symbol.
7010 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7011 (TYPE_GNU_IFUNC): New.
7012 (struct main_type): New field flag_gnu_ifunc.
7013 (struct builtin_type): New field builtin_func_func.
7014 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7015 nodebug_got_plt_symbol.
7016 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7017 (in_gnu_ifunc_stub): New.
7018 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7019 mst_text_gnu_ifunc.
7020 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7021 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7022 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7023 in_gnu_ifunc_stub.
7024 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7025 * symtab.c (search_symbols): Likewise.
7026 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7027 and mst_slot_got_plt.
7028 (in_gnu_ifunc_stub): New declaration.
7029
d0fb5eae
JK
70302011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7031
7032 Support a ring of related breakpoints.
7033 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7034 other functions, add gdb_assert.
7035 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7036 watchpoint_del_at_next_stop.
7037 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7038 (bpstat_stop_status): Handle ring in related_breakpoint.
7039 (set_raw_breakpoint_without_location): Initialize ring in
7040 related_breakpoint.
7041 (delete_breakpoint): Handle ring in related_breakpoint, use
7042 watchpoint_del_at_next_stop.
7043 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7044
9cded63f
TT
70452011-03-28 Tom Tromey <tromey@redhat.com>
7046
7047 PR symtab/12441:
7048 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7049 with `language_minimal'.
7050
467d42c4
UW
70512011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7052
7053 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7054 instead of checking for STT_ARM_TFUNC symbol type.
7055
62853458
TT
70562011-03-25 Tom Tromey <tromey@redhat.com>
7057
7058 * linespec.c (symbol_found): Restore line-based result for
7059 non-LOC_LABEL symbols.
7060
a7417d46
KT
70612011-03-25 Kai Tietz <ktietz@redhat.com>
7062
7063 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7064 instead of strcmp for comparison.
7065 (tui_source_is_displayed): Likewise.
7066 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7067
55f1336d
TT
70682011-03-24 Mark Wielaard <mjw@redhat.com>
7069
f33edef8
PP
7070 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7071 complaint.
7072 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7073 (find_partial_die_in_comp_unit): Likewise in comment.
7074 (read_attribute_value): Likewise.
7075 (lookup_die_type): Likewise.
7076 (dwarf_form_name): Likewise.
7077 (dump_die_shallow): Likewise.
7078 (follow_die_ref_or_sig): Likewise.
55f1336d 7079
9ef07c8c
TT
70802011-03-24 Tom Tromey <tromey@redhat.com>
7081
7082 PR breakpoints/11816:
7083 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7084 (decode_compound): Update.
7085 (find_function_symbol): New function.
7086 (decode_dollar): Update.
7087 (decode_label): Add 'function_symbol' parameter. Handle
7088 function-relative labels.
7089 (decode_variable): Update.
7090 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7091 not its line. Set `special_display' and canonical name for
7092 labels.
7093
56435ebe
TT
70942011-03-24 Tom Tromey <tromey@redhat.com>
7095
7096 * linespec.h (struct linespec_result) <special_display>: New
7097 field.
7098 * breakpoint.h (struct breakpoint) <display_canonical>: New
7099 field.
7100 * breakpoint.c (print_breakpoint_location): Respect
7101 display_canonical.
7102 (create_breakpoint_sal): Add 'display_canonical' parameter.
7103 (create_breakpoints_sal): Update.
7104 (create_breakpoint): Update.
7105
7efd8fc2
TT
71062011-03-24 Tom Tromey <tromey@redhat.com>
7107
7108 * symtab.c (decode_line_spec): Update.
7109 * linespec.c (build_canonical_line_spec): Change type of
7110 'canonical'.
7111 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7112 (find_method, decode_all_digits, decode_dollar, decode_label)
7113 (symbol_found): Likewise.
7114 (init_linespec_result): New function.
7115 * breakpoint.c (struct captured_parse_breakpoint_args)
7116 <canonical_p>: New field, replaces addr_string_p.
7117 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7118 'addr_string'.
7119 (parse_breakpoint_sals): Likewise.
7120 (do_captured_parse_breakpoint): Update.
7121 (create_breakpoint): Use struct linespec_result.
7122 (until_break_command): Update.
7123 (breakpoint_re_set_one): Update.
7124 (decode_line_spec_1): Update.
7125 * linespec.h (struct linespec_result): New.
7126 (init_linespec_result): Declare.
7127
788c8b10
PA
71282011-03-23 Pedro Alves <pedro@codesourcery.com>
7129
7130 * regcache.c (regcache_raw_read): If the target didn't supply a
7131 given raw register, mark it as unavailable.
7132
0ba1096a
KT
71332011-03-23 Kai Tietz <ktietz@redhat.com>
7134
7135 * breakpoint.c (clear_command): Use filename_cmp
7136 instead of strcmp for comparison.
7137 * buildsym.c (watch_main_source_file_lossage): Likewise.
7138 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7139 checking just for slash.
7140 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7141 strrchr and filename_cmp instead of strcmp for filenames.
7142 (add_old_header_file): Use filename_cmp
7143 instead of strcmp for comparison.
7144 * exec.c (exec_set_section_address): Likewise.
7145 * macrotab.c (macro_lookup_inclusion): Likewise.
7146 (macro_lookup_inclusion): Likewise.
7147 * elfread.c (_initialize_elfread): Likewise.
7148 (elfstab_offset_sections): Likewise.
7149 (elfstab_offset_sections): Use lbasename instead of
7150 strrchr.
7151 * mdebugread.c (parse_partial_symbols): Likewise.
7152 (arse_partial_symbols): Use filename_(n)cmp instead of
7153 str(n)cmp for comparison.
7154 * minsyms.c (lookup_minimal_symbol): Likewise.
7155 * psymtab.c (read_psymtabs_with_filename): Likewise.
7156 * solib.c (solib_read_symbols): Likewise.
7157 (reload_shared_libraries_1): Likewise.
7158 * symmisc.c (maintenance_print_symbols): Likewise.
7159 * symfile.c (separate_debug_file_exists): Likewise.
7160 (reread_symbols): Likewise.
7161 (find_separate_debug_file_by_debuglink): Likewise.
7162 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7163 * source.c (add_path): Likewise.
7164 * symtab.c (filename_seen): Likewise.
7165 (file_matches): Likewise.
7166 (print_symbol_info): Likewise.
7167 (maybe_add_partial_symtab_filename): Likewise.
7168 (make_source_files_completion_list): Likewise.
7169 * xml-syscall.c (init_sysinfo): Likewise.
7170 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7171 IS_DIR_SEPARATOR for checking for trailing path separator.
7172
dd90784c
JK
71732011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7174
7175 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7176 label abort_expression.
7177 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7178 DWARF_VALUE_OPTIMIZED_OUT.
7179
3167638f
JK
71802011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7181
7182 Code cleanup.
7183 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7184 to linkage_name. Invert its value. Update the function comment.
7185 (c_type_print_varspec_suffix): Invert it at the caller.
7186 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7187
ce406537
PA
71882011-03-22 Pedro Alves <pedro@codesourcery.com>
7189
7190 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7191 errors when reading the `stop_pc'.
7192 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7193 get_frame_pc.
7194
da5d4055
PM
71952011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7196
7197 * NEWS: Document gdb.Write stream keyword.
7198
29e0eb9c
JK
71992011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7200
7201 Revert:
7202 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7203 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7204 (dwarf2_add_field): Fix new_field->accessibility for
7205 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7206
05775840
PM
72072011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7208
f33edef8 7209 PR python/12183
05775840
PM
7210
7211 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7212 other error classes. Do not print stack trace.
7213
a0cb7835
JK
72142011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7217 (dwarf2_add_field): Fix new_field->accessibility for
7218 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7219
d19f7eee
UW
72202011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7221
7222 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7223 encountering a load via a non-SP register.
7224
4a2fbb50
UW
72252011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7226
7227 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7228 field in returned unwinder.
7229
3489610d
JB
72302012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7231
7232 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7233
8c1a34e7
JB
72342012-03-21 Joel Brobecker <brobecker@adacore.com>
7235
7236 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7237 of xmalloc.
7238
8fbca658
PA
72392012-03-18 Pedro Alves <pedro@codesourcery.com>
7240
7241 * frame.c (frame_unwind_register): Throw an error if unwinding the
7242 register failed.
7243 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7244 an unwind stop reason.
7245 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7246 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7247 UNWIND_UNAVAILABLE>: New.
7248 * inline-frame.c (inline_frame_unwind): Install
7249 default_frame_unwind_stop_reason.
7250 * frame-unwind.c: Include "exceptions.h".
7251 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7252 (default_frame_unwind_stop_reason): New.
7253 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7254 (default_frame_unwind_stop_reason): Declare.
7255 (struct frame_unwind) <stop_reason>: New function pointer.
7256
7257 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7258 * dwarf2-frame.c: Include exceptions.h.
7259 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7260 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7261 computing the CFA. If such an error was thrown, set
7262 unavailable_retaddr.
7263 (dwarf2_frame_unwind_stop_reason): New.
7264 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7265 unavailable.
7266 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7267 (dwarf2_signal_frame_unwind): Ditto.
7268
7269 * amd64-tdep.c: Include "exceptions.h".
7270 (struct amd64_frame_cache): New field "base_p".
7271 (amd64_init_frame_cache): Clear it.
7272 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7273 Avoid reading registers with functions that throw if the register
7274 is not necessary to compute the frame base.
7275 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7276 swallowing NOT_AVAILABLE_ERROR.
7277 (amd64_frame_unwind_stop_reason): New.
7278 (amd64_frame_this_id): Don't build a frame id if the frame base
7279 was unavailable.
7280 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7281 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7282 base_p if the frame base was computable.
7283 (amd64_sigtramp_frame_unwind_stop_reason): New.
7284 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7285 frame base was unavailable.
7286 (amd64_sigtramp_frame_unwind): Install
7287 amd64_sigtramp_frame_unwind_stop_reason.
7288 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7289 base_p if the frame base was computable.
7290 (amd64_epilogue_frame_unwind_stop_reason): New.
7291 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7292 frame base was unavailable.
7293 (amd64_epilogue_frame_unwind): Install
7294 amd64_epilogue_frame_unwind_stop_reason.
7295 * i386-tdep.c: Include "exceptions.h".
7296 (struct i386_frame_cache): New field "base_p".
7297 (i386_init_frame_cache): Clear it.
7298 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7299 Avoid reading registers with functions that throw if the register
7300 is not necessary to compute the frame base.
7301 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7302 swallowing NOT_AVAILABLE_ERROR.
7303 (i386_frame_unwind_stop_reason): New.
7304 (i386_frame_this_id): Don't build a frame id if the frame base was
7305 unavailable.
7306 (i386_frame_prev_register): Handle unavailable SP.
7307 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7308 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7309 base_p if the frame base was computable.
7310 (i386_epilogue_frame_unwind_stop_reason): New.
7311 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7312 base was unavailable.
7313 (i386_epilogue_frame_unwind): Install
7314 i386_epilogue_frame_unwind_stop_reason.
7315 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7316 base_p if the frame base was computable.
7317 (i386_sigtramp_frame_unwind_stop_reason): New.
7318 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7319 base was unavailable.
7320 (i386_sigtramp_frame_unwind): Install
7321 i386_sigtramp_frame_unwind_stop_reason.
7322 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7323 type's size, not the register's.
7324 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7325
7326 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7327 default_frame_unwind_stop_reason.
7328 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7329 (alpha_heuristic_frame_unwind): Ditto.
7330 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7331 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7332 * avr-tdep.c (avr_frame_unwind): Ditto.
7333 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7334 Ditto.
7335 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7336 * frv-tdep.c (frv_frame_unwind): Ditto.
7337 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7338 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7339 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7340 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7341 (hppa_stub_frame_unwind): Ditto.
7342 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7343 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7344 (ia64_libunwind_frame_unwind)
7345 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7346 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7347 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7348 * m32c-tdep.c (m32c_unwind): Ditto.
7349 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7350 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7351 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7352 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7353 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7354 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7355 * mep-tdep.c (mep_frame_unwind): Ditto.
7356 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7357 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7358 (mips_stub_frame_unwind): Ditto.
7359 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7360 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7361 * mt-tdep.c (mt_frame_unwind): Ditto.
7362 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7363 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7364 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7365 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7366 (s390_sigtramp_frame_unwind): Ditto.
7367 * score-tdep.c (score_prologue_unwind): Ditto.
7368 * sh-tdep.c (sh_frame_unwind): Ditto.
7369 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7370 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7371 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7372 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7373 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7374 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7375 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7376 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7377 (sparc64obsd_trapframe_unwind): Ditto.
7378 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7379 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7380 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7381 * v850-tdep.c (v850_frame_unwind): Ditto.
7382 * vax-tdep.c (vax_frame_unwind): Ditto.
7383 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7384 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7385 * xtensa-tdep.c (xtensa_unwind): Ditto.
7386
f23d1b92
PA
73872011-03-18 Pedro Alves <pedro@codesourcery.com>
7388
7389 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7390 there's always a frame. Use get_frame_pc_if_available instead of
7391 get_frame_pc, and if there's no PC available, don't look up a
7392 symtab.
7393
1d4f5741
PA
73942011-03-18 Pedro Alves <pedro@codesourcery.com>
7395
7396 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7397 unavailable PC.
7398
dba09041
PA
73992011-03-18 Pedro Alves <pedro@codesourcery.com>
7400
7401 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7402 gracefully.
7403
9a26e44c
PA
74042011-03-18 Pedro Alves <pedro@codesourcery.com>
7405
7406 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7407 * frame.c (frame_unwind_caller_pc_if_available): New.
7408 * stack.c (frame_info): Handle unavailable PC.
7409
74102011-03-18 Pedro Alves <pedro@codesourcery.com>
7411
7412 * frame.c (frame_unwind_pc): Rename to ...
7413 (frame_unwind_pc_if_available): ... this. New `pc' output
7414 parameter. Change return type to int. Gracefully handle
7415 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7416 happened, or 1 otherwise.
7417 (frame_unwind_pc): Reimplement on top of
7418 frame_unwind_pc_if_available.
7419 (get_frame_func): Rename to ...
7420 (get_frame_func_if_available): New `pc' output parameter. Change
7421 return type to int. Gracefully handle the PC not being available.
7422 (get_frame_func): Reimplement on top of
7423 get_frame_func_if_available.
7424 (select_frame): Handle the PC being unavailable.
7425 (get_prev_frame): Handle the PC being unavailable.
7426 (get_frame_pc_if_available): New.
7427 (get_frame_address_in_block_if_available): New.
7428 (find_frame_sal): Handle the frame PC not being available.
7429 * frame.h (get_frame_pc_if_available): Declare.
7430 (get_frame_address_in_block_if_available): Declare.
7431 (get_frame_func_if_available): Declare.
7432 * stack.c (print_frame_info): Handle the PC being unavailable.
7433 (find_frame_funname): Ditto.
7434 (print_frame): Handle the PC being unavailable.
7435 (get_frame_language): Ditto.
7436 * blockframe.c (get_frame_block): Ditto.
7437 * macroscope.c (default_macro_scope): Ditto.
7438 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7439
74402011-03-18 Pedro Alves <pedro@codesourcery.com>
7441
7442 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7443 NOT_AVAILABLE_ERROR when evaluating the location expression.
7444
74452011-03-18 Pedro Alves <pedro@codesourcery.com>
7446
7447 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7448 returning that the register piece is unavailable/optimized out.
7449 (write_pieced_value): Handle get_frame_register_bytes returning
7450 that the register piece is unavailable/optimized out when doing a
7451 read-modify write of a bitfield.
7452 * findvar.c (value_from_register): Handle get_frame_register_bytes
7453 returning that the register piece is unavailable/optimized out.
7454 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7455 and `unavailablep'. Throw error on bad debug info. Use
7456 frame_register instead of frame_register_read, to fill in the new
7457 arguments.
7458 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7459 and `unavailablep'.
7460 * valops.c: (value_assign): Adjust, and handle
7461 get_frame_register_bytes failing.
7462 * spu-tdep.c: Include exceptions.h.
7463 (spu_software_single_step): Adjust, and handle
7464 get_frame_register_bytes failing.
7465 (spu_get_longjmp_target): Ditto.
7466 * gdbarch.sh (register_to_value): Change to return int. New
7467 parameters `optimizedp' and `unavailablep'.
7468 * gdbarch.h, gdbarch.c: Regenerate.
7469 * i386-tdep.c (i386_register_to_value): Adjust to new
7470 gdbarch_register_to_value interface.
7471 * i387-tdep.c (i387_register_to_value): Ditto.
7472 * i387-tdep.h (i387_register_to_value): Ditto.
7473 * alpha-tdep.c (alpha_register_to_value): Ditto.
7474 * ia64-tdep.c (ia64_register_to_value): Ditto.
7475 * m68k-tdep.c (m68k_register_to_value): Ditto.
7476 * mips-tdep.c (mips_register_to_value): Ditto.
7477 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7478
0fdb4f18
PA
74792011-03-18 Pedro Alves <pedro@codesourcery.com>
7480
7481 * findvar.c (value_of_register): Mark the value as unavailable, if
7482 the register is unavailable.
7483 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7484 (frame_register): New `unavailablep' parameter.
7485 (frame_register_read): Update comment.
7486 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7487 Set it if the register is unavailable. If the register is
7488 unavailable, clear the output buffer.
7489 (frame_register): New `unavailablep' parameter. Pass it down.
7490 (frame_unwind_register): Adjust.
7491 (put_frame_register): Adjust.
7492 (frame_register_read): Adjust. Also return false if the register
7493 is not available.
7494 (frame_register_unwind_location): Adjust.
7495 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7496 is unavailable, mark the value accordingly.
7497 * stack.c (frame_info): Handle unavailable registers.
7498
e69aa73e
PA
74992011-03-18 Pedro Alves <pedro@codesourcery.com>
7500
7501 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7502 simplify, using regcache_cooked_read.
7503
05d1431c
PA
75042011-03-18 Pedro Alves <pedro@codesourcery.com>
7505
7506 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7507 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7508 (regcache_raw_read_unsigned, regcache_raw_read_part)
7509 (regcache_cooked_read, regcache_cooked_read_signed)
7510 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7511 (regcache_cooked_read_ftype): Change return to enum
7512 register_status.
7513 * regcache.c: Include exceptions.h
7514 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7515 (do_cooked_read): Change return to enum register_status. Always
7516 forward to regcache_cooked_read.
7517 (regcache_raw_read): Change return to enum register_status. If
7518 the register is not REG_VALID, memset the buffer. Return the
7519 register's status.
7520 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7521 return the register's status.
7522 (regcache_raw_read_unsigned): Ditto.
7523 (regcache_cooked_read): Change return to enum register_status.
7524 Assert that with read-only regcaches, the register's status must
7525 be known. If the regcache is read-only, and the register is not
7526 REG_VALID, memset the buffer. Return the register's status.
7527 (regcache_cooked_read_signed): Change return to enum
7528 register_status. Handle non-REG_VALID registers and return the
7529 register's status.
7530 (regcache_cooked_read_unsigned): Change return to enum
7531 register_status. Handle non-REG_VALID registers and return the
7532 register's status.
7533 (regcache_xfer_part, regcache_raw_read_part)
7534 (regcache_cooked_read_part): Change return to enum
7535 register_status. Return the register's status.
7536 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7537 unavailable.
7538 (regcache_dump): Handle unavailable cooked registers.
7539 * frame.c (do_frame_register_read): Adjust interface to match
7540 regcache_cooked_read_ftype.
7541 * gdbarch.sh (pseudo_register_read): Change return to enum
7542 register_status.
7543 * gdbarch.h, gdbarch.c: Regenerate.
7544
7545 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7546 register_status.
7547 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7548 register_status. If reading a raw register indicates the raw
7549 register is not valid, return the raw register's status,
7550 otherwise, return REG_VALID.
7551 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7552 register_status. Handle non-REG_VALID raw registers and return
7553 the register's status.
7554 * arm-tdep.c (arm_neon_quad_read)
7555 (arm_pseudo_read): Change return to enum register_status. Handle
7556 non-REG_VALID raw registers and return the register's status.
7557 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7558 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7559 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7560 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7561 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7562 register_status.
7563 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7564 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7565 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7566 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7567 (m32c_pseudo_register_read): Change return to enum
7568 register_status. Adjust.
7569 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7570 enum register_status. Return the register's status.
7571 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7572 register_status. Return the register's status.
7573 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7574 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7575 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7576 * rs6000-tdep.c (move_ev_register_func): New typedef.
7577 (e500_move_ev_register): Use it. Change return to enum
7578 register_status. Return the register's status.
7579 (do_regcache_raw_read): New function.
7580 (do_regcache_raw_write): New function.
7581 (e500_pseudo_register_read): Change return to enum
7582 register_status. Return the register's status. Use
7583 do_regcache_raw_read.
7584 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7585 (dfp_pseudo_register_read): Change return to enum register_status.
7586 Return the register's status.
7587 (vsx_pseudo_register_read): Ditto.
7588 (efpr_pseudo_register_read): Ditto.
7589 (rs6000_pseudo_register_read): Ditto.
7590 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7591 register_status. Return the register's status.
7592 * sh64-tdep.c (pseudo_register_read_portions): New function.
7593 (sh64_pseudo_register_read): Change return to enum
7594 register_status. Use pseudo_register_read_portions. Return the
7595 register's status.
7596 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7597 register_status. Return the register's status.
7598 * sh-tdep.c (pseudo_register_read_portions): New function.
7599 (sh_pseudo_register_read): Change return to enum register_status.
7600 Use pseudo_register_read_portions. Return the register's status.
7601 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7602 enum register_status. Return the register's status.
7603 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7604 * spu-tdep.c (spu_pseudo_register_read_spu)
7605 (spu_pseudo_register_read): Ditto.
7606 * xtensa-tdep.c (xtensa_register_read_masked)
7607 (xtensa_pseudo_register_read): Ditto.
7608 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7609
e10abd8f
PM
76102011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7611
7612 * python/py-value.c (valpy_getitem): Fix formatting of error function
7613 call.
7614
7ea6d463
PM
76152011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7616
7617 ARI fixes: Add missing internationalization markups throughout
7618 C source files.
7619 * darwin-nat-info.c: Ditto.
7620 * record.c: Ditto.
7621 * remote.c: Ditto.
7622 * mi/mi-main.c: Ditto.
7623
001083c6
PM
76242011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7625
7626 ARI fixes: Add missing internationalization markups throughout
7627 yacc files.
7628 * c-exp.y: Ditto.
7629 * cp-name-parser.y: Ditto.
7630 * f-exp.y: Ditto.
7631 * m2-exp.y: Ditto.
7632 * objc-exp.y: Ditto.
7633 * p-exp.y: Ditto.
7634
4f1cdeec
PM
76352011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7636
7637 ARI fixes: Messages should have no trailing new lines.
7638 * darwin-nat.c (mach_check_error): Remove trailing new line from
7639 warning function call message.
7640 * record.c (bfdcore_read): Idem for error call.
7641
28e698f1
PM
76422011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7643
7644 * common/signals.c (target_signal_from_host): Add _ markup to error
7645 function call message.
7646 (target_signal_to_host): Add _ markup and remove trailing new line
7647 from warning call message.
7648 (target_signal_from_command): Add _ markup to error function call
7649 message.
7650
99c3dc11
PM
76512011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7652
f33edef8 7653 PR python/12149
99c3dc11
PM
7654
7655 * python/python.c (gdbpy_write): Accept a stream argument and
7656 operate to the appropriate stream.
7657 (gdbpy_flush): Likewise.
7658 (_initialize_python): Add stream constants.
7659 (finish_python_initialization): Add GdbOutputErrorFile class.
7660
c20800be
KY
76612011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7662
7663 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7664
f4a1794a
KY
76652011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7666
7667 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7668 to store_signed_integer. Add debug message when relocating CALL
7669 instructions. Fix formatting of debug message.
7670 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7671
d4862372
JB
76722011-03-17 Joel Brobecker <brobecker@gnat.com>
7673
7674 * target.h (struct target_ops): Remove to_lookup_symbol field.
7675 (target_lookup_symbol): Delete macro.
7676 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7677 (update_current_target, setup_target_debug): Remove handling
7678 of to_lookup_symbol target_ops field.
7679 * ada-tasks.c (get_known_tasks_addr): Remove use of
7680 target_lookup_symbol.
7681 * coffread.c (coff_symtab_read): Likewise.
7682 * dbxread.c (read_dbx_symtab): Ditto.
7683
d645e32e
JB
76842011-03-17 Joel Brobecker <brobecker@gnat.com>
7685
7686 PR gdb/12116:
7687 * configure.ac: Add getthrds declaration check.
7688 * configure, config.in: Regenerate.
7689 * aix-thread.c (getthrds): Declare only if not already declared
7690 in procinfo.h. More declaration out of get_signaled_thread to
7691 global scope.
7692
29703da4
PM
76932011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7694
7695 * python/py-symtab.c: Populate symtab_object_methods,
7696 sal_object_methods.
7697 (stpy_is_valid): New function.
7698 (salpy_is_valid): Ditto.
7699 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7700 (sympy_is_valid): New function.
7701 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7702 (objfpy_is_valid): New function.
7703 * python/py-inferior.c: Populate inferior_object_methods.
7704 (infpy_is_valid): New function.
7705 * python/py-infthread.c: Populate thread_object_methods.
7706 (thpy_is_valid): New function.
7707 * python/py-block.c: Declare block_object_methods. Populate. Declare
7708 block_iterator_object_methods. Populate.
7709 (blpy_is_valid): New function.
7710 (blpy_iter_is_valid): Ditto.
7711
c00f8484
KS
77122011-03-16 Keith Seitz <keiths@redhat.com>
7713
7714 * linespec.c (find_methods): Canonicalize NAME before looking
7715 up the symbol.
7716 (name_end): New function.
7717 (keep_name_info): New function.
7718 (decode_line_1): Use keep_name_info.
7719 (decode_compound): Likewise.
7720 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7721 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7722
7723 PR c++/12273
7724 * linespec.c (locate_first_half): Keep overload information, too.
7725 (decode_compound): Use a string to represent break characters
7726 to escape the loop.
7727 If P points to a break character, do not increment it.
7728 For C++ and Java, keep overload information and relevant keywords.
7729 If we cannot find a symbol, search the minimal symbols.
7730
7731 PR c++/11734
7732 * linespec.c (decode_compound): Rename SAVED_ARG to
7733 THE_REAL_SAVED_ARG.
7734 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7735 single-quotes.
7736 Pass a valid block to lookup_symbol.
7737 (lookup_prefix_sym): Likewise.
7738 (find_method): Construct search name based on SYM_CLASS instead
7739 of SAVED_ARG.
7740 * psymtab.c (lookup_partial_symbol): Add language parameter.
7741 (lookup_symbol_aux_psymtabs): Likewise.
7742 Don't assume that the psymtab we found was the right one. Search
7743 for the desired symbol in the symtab to be certain.
7744 (psymtab_search_name): New function.
7745 (lookup_partial_symbol): Use psymtab_search_name.
7746 Add language parameter.
7747 (read_symtabs_for_function): Add language parameter and pass to
7748 lookup_partial_symbol.
7749 (find_symbol_file_from_partial): Likewise.
7750
c91513d8
PP
77512011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7752
7753 PR gdb/12528
7754 * dwarf2read.c (noop_record_line): New function.
7755 (dwarf_decode_lines): Ignore line tables for GCd functions.
7756
b37520b6
PM
77572011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7758
7759 Fix ARI warnings about new lines at the end of messages, which
7760 are unneeded as there is a new line added at the end of the message
7761 automatically.
7762 * darwin-nat.c (darwin_stop_inferior): Ditto.
7763 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7764 * dfp.c (decimal_to_number): Ditto.
7765 * exec.c (print_section_info): Ditto.
7766 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7767 * osdata.c (get_osdata): Ditto.
7768 * record.c (bfdcore_write): Ditto.
7769 * remote-mips.c (mips_readchar): Ditto.
7770 * remote.c (read_ptid): Ditto.
7771 * ser-mingw.c (ser_windows_raw): Ditto.
7772 * tracepoint.c (add_local_symbols): Ditto.
7773 * windows-nat.c (fake_create_process): Ditto.
7774
b08ee6a2
TT
77752011-03-16 Tom Tromey <tromey@redhat.com>
7776
7777 * tracepoint.c (stop_tracing): Don't declare.
7778 * event-top.c (after_char_processing_hook): Add `(void)'.
7779
9a6f1302
PM
77802011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7781
7782 * NEWS: Add Parameter sub-classing description.
7783
7ceb86b1
KT
77842011-03-16 Kai Tietz <ktietz@redhat.com>
7785
7786 * MAINTAINERS: Update my e-mail address.
7787
efeff6cf
AT
77882011-03-15 Andreas Tobler <andreast@fgznet.ch>
7789
7790 * MAINTAINERS: Add myself for write after approval privileges.
7791
681c238c
MS
77922011-03-15 Michael Snyder <msnyder@vmware.com>
7793
f3df5b08
MS
7794 * frame.c (find_frame_sal): Assert sym is not null.
7795
13f6513c
MS
7796 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7797
50412521
MS
7798 * objc-lang.c (selectors_info): Check strchr for null result.
7799
681c238c
MS
7800 * stabsread.c (define_symbol): Guard against bad stabstring input.
7801
6ced1581
PM
78022011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7803
7804 Remove trailing spaces and tabulations from pascal language
7805 support sources.
7806 p-exp.y: Ditto.
7807 p-lang.c: Ditto.
7808 p-lang.h: Ditto.
7809 p-valprint.c: Ditto.
7810
9373cf26
JK
78112011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7812
7813 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7814 than LOW. Comment it.
7815 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7816 HIGHPC not strictly higher than LOWPC.
7817
9a1edae6
PM
78182011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7819
7820 Fix formatting of function declarations returning a pointer in
7821 previous commit.
7822 * varobj.c (varobj_add_child): Ditto.
7823 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7824 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7825
24e9cda0
UW
78262011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7827
7828 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7829 for the "generic" vector ABI used with GCC 4.3 and later.
7830 (ppc64_sysv_abi_return_value): Likewise.
7831
78322011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7833
7834 * infcall.c (call_function_by_hand): Function return value is
7835 always a non_lval, even when using struct_return.
7836
c9174737
PA
78372011-03-15 Pedro Alves <pedro@codesourcery.com>
7838
7839 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7840 (map_display_numbers): New.
7841 (do_delete_display): New.
7842 (undisplay_command): Use map_display_numbers.
7843 (do_enable_disable_display): New.
7844 (enable_disable_display_command): New function.
7845 (enable_display): Delete.
7846 (enable_display_command): New.
7847 (disable_display_command): Reimplement.
7848 (_initialize_printcmd): Adjust "enable display" command to use
7849 `enable_display_command' as callback.
7850
350c6c65
PM
78512011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7852
7853 * NEWS: Add Python breakpoint 'stop' operation.
7854
824446ad
PM
78552011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7856
7857 * NEWS: Delete duplicate entry. Fix typo.
7858
2021ad3a
PM
78592011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7860
7861 Fix ARI warning about function names in first column.
7862 Put prototype declaration on same line as return type.
7863 * objc-exp.y: Ditto.
7864 * p-exp.y: Ditto.
7865 * python/py-stopevent.h: Ditto.
7866 For long function names, split parameters to
7867 allow function name on same line as return type.
7868 * solib-pa64.c: Ditto.
7869 * varobj.c: Ditto.
7870 * varobj.h: Ditto.
7871 For long function declaration, use single line.
7872 * hppa-tdep.h: Ditto.
7873 * inferior.h: Ditto.
7874
7371cf6d
PM
78752011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7876
7877 * python/python.h: Declare gdbpy_should_stop and
7878 gdbpy_breakpoint_has_py_cond.
7879 * python/python.c: Add python.h to includes. Remove python.h from
7880 HAVE_PYTHON definition
7881 (gdbpy_should_stop): New dummy function.
7882 (gdbpy_breakpoint_has_py_cond): New dummy function.
7883 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7884 sub-classing capabilities.
7885 (gdbpy_should_stop): New function.
7886 (gdbpy_breakpoint_has_py_cond): New function.
7887 (local_setattro): New function.
7888 * breakpoint.c (condition_command): Add check for Python 'stop'
7889 operation.
7890 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7891 operation function as part of stop/continue tests.
7892
37b50a69
TT
78932011-03-14 Tom Tromey <tromey@redhat.com>
7894
7895 PR gdb/12576:
7896 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7897 (needs_frame_dwarf_call): Likewise.
7898
eeae04df
PM
78992011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7900
7901 Fix ARI warning about functions without parameters that do not
7902 use (void).
7903 * breakpoint.c (all_tracepoints): Replace () by (void).
7904 * f-exp.y (match_string_literal): Ditto.
7905 (yylex): Ditto.
7906 * m2-exp.y (yylex): Ditto.
7907 * mep-tdep.c (current_me_module): Ditto.
7908 (current_options): Ditto.
7909 (current_cop_data_bus_width): Ditto.
7910 (current_cr_names): Ditto.
7911 (current_cr_is_float): Ditto.
7912 (current_ccr_names): Ditto.
7913 * objc-exp.y (yylex): Ditto.
7914 * p-exp.y (yylex): Ditto.
7915 * remote.c (send_interrupt_sequence): Ditto.
7916 * tracepoint.c (current_trace_status): Ditto.
7917 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7918 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7919
6dc3565d
MS
79202011-03-11 Michael Snyder <msnyder@vmware.com>
7921
1427fe5e
MS
7922 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7923 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7924 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7925 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7926 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7927
60bc018f
MS
7928 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7929 (delete_async_event_handler): Ditto.
7930
f3be5b64
MS
7931 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7932
4c2d5724
MS
7933 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7934
6dc3565d
MS
7935 * top.c (set_verbose): Assert showcmd was found.
7936
4e6ca6d5
MG
79372011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7938
7939 * xtensa-tdep.c (warning_once): Correct style issues.
7940
815a83e4
YQ
79412011-03-11 Yao Qi <yao@codesourcery.com>
7942
7943 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7944
f2eb0bc8
AS
79452011-03-11 Andreas Schwab <schwab@redhat.com>
7946
7947 * common/aclocal.m4: Remove.
7948
b801de47
MG
79492011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7950
7951 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7952 (xtensa_write_register, xtensa_read_register): Likewise.
7953 (xtensa_hextochar): Removed.
7954 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7955
dbab50de
MG
79562011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7957
7958 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7959 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7960 (xtensa_alloc_frame_cache): Add initialization for new fields.
7961 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7962 (warning_once): New function.
7963 (xtensa_insn_kind): New item c0opc_and.
7964 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7965 (call0_track_op): Change arguments. New local variable litbase.
7966 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7967 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7968 in the prologue.
dbab50de 7969 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7970 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7971 Add the variety of updates to handle extended prologues, which now can
7972 conduct dynamic stack adjustments.
7973 (call0_frame_cache): Likewise.
7974 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7975 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7976
b2c04452
MS
79772011-03-10 Michael Snyder <msnyder@vmware.com>
7978
f8f67713
MS
7979 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7980 (cmd_qtframe): Ditto.
7981 (cmd_qtbuffer): Ditto.
7982 (cmd_bigqtbuffer): Ditto.
7983
197f0a60
TT
79842011-03-10 Tom Tromey <tromey@redhat.com>
7985
7986 * tracepoint.c (trace_actions_command): Update.
7987 * thread.c (thread_apply_command): Update.
7988 * reverse.c (delete_bookmark_command): Update.
7989 (bookmarks_info): Update.
7990 * printcmd.c (undisplay_command): Update.
7991 * memattr.c (mem_enable_command): Update.
7992 (mem_disable_command): Update.
7993 (mem_delete_command): Update.
7994 * inferior.c (detach_inferior_command): Update.
7995 (kill_inferior_command): Update.
7996 (remove_inferior_command): Update.
7997 * cli/cli-utils.h (struct get_number_or_range_state): New.
7998 (init_number_or_range): Declare.
7999 (get_number_or_range): Update.
8000 * cli/cli-utils.c (init_number_or_range): New function.
8001 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8002 static variables.
8003 (number_is_in_list): Update.
8004 * breakpoint.h (get_tracepoint_by_number): Update.
8005 * breakpoint.c (map_breakpoint_numbers): Update for change to
8006 get_number_or_range.
8007 (find_location_by_number): Use get_number, not
8008 get_number_or_range.
8009 (trace_pass_set_count): New function.
8010 (trace_pass_command): Update for change to get_number_or_range.
8011 Rework loop logic.
8012 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8013 'state' parameter.
8014
ecec24e6
PM
80152011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8016
8017 * python/py-param.c (add_setshow_generic): Add set/show callback
8018 parameters. Register Python object context.
8019 (get_show_value): New function.
8020 (get_set_value): New function.
8021 (call_doc_function): New function.
8022 (get_doc_string): Move behind get_show_value/get_set_value.
8023
6d6c6b1f
JK
80242011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8025
8026 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8027
68d6df83
MG
80282011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8029
dbab50de 8030 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8031 (xtensa_write_register): Likewise.
8032 (xtensa_hextochar): Add comment and update to match coding conventions.
8033 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8034 (execute_l32e, execute_s32e, execute_code): Update comments.
8035 (xtensa_exception_handler_t): Update to match coding conventions.
8036 (xtensa_insn_kind): Likewise.
8037
85c9d6a6
MS
80382011-03-09 Michael Snyder <msnyder@vmware.com>
8039
8040 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8041
91495617
PA
80422011-03-09 Pedro Alves <pedro@codesourcery.com>
8043
8044 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8045
eb8c0621
TT
80462011-03-09 Tom Tromey <tromey@redhat.com>
8047
8048 * thread.c (restore_selected_frame): Handle frame_level == -1.
8049 (make_cleanup_restore_current_thread): Use
8050 get_selected_frame_if_set.
8051 * frame.h (get_selected_frame_if_set): Declare.
8052 * frame.c (get_selected_frame_if_set): New function.
8053
9f37bbcc
PA
80542011-03-09 Pedro Alves <pedro@codesourcery.com>
8055
8056 * cli/cli-cmds.c (shell_escape): Use lbasename.
8057 * coffread.c (coff_start_symtab): Constify parameter.
8058 (complete_symtab): Constify `name' parameter.
8059 (coff_symtab_read): Constify `filestring' local.
8060 (coff_getfilename): Constify return and `result' local.
8061 Use lbasename.
8062 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8063 * linux-fork.c (info_checkpoints_command): Use lbasename.
8064 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8065 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8066 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8067 * procfs.c (procfs_make_note_section): Use lbasename.
8068 * tui/tui-io.c (printable_part): Constity return and parameter.
8069 Use lbasename.
8070 (print_filename): Constify parameters, and local `s'.
8071 (tui_rl_display_match_list): Constify local `temp'.
8072
f8de3c55
JK
80732011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8074
8075 Revert:
8076 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8077 Fix DWARF-3+ DW_AT_accessibility default assumption.
8078 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8079 cu->header.version >= 3.
8080
d9837b00
YQ
80812011-03-09 Yao Qi <yao@codesourcery.com>
8082
8083 * common/Makefile.in: Remove.
8084 * common/configure: Remove.
8085 * common/configure.ac: Remove.
8086
e637a4f5
YQ
80872011-03-09 Yao Qi <yao@codesourcery.com>
8088
8089 Revert:
8090 2011-02-11 Yao Qi <yao@codesourcery.com>
8091
8092 * common/Makefile.in: Add copyright header.
8093
8094 2011-02-11 Yao Qi <yao@codesourcery.com>
8095
8096 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8097 libcommon.a.
8098 * configure.ac: Add common to sub dir.
8099 * configure: Regenerate.
8100
f976a05d
MG
81012011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8102
8103 * xtensa-tdep.c (call0_ret): New function.
8104 (xtensa_skip_prologue): Speed up analysis.
8105
57041825
MG
81062011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8107
8108 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8109 while executing MI command -data-list-changed-registers.
8110
08b9c608
MG
81112011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8112
8113 * xtensa-tdep.c (xtensa_read_register): New function.
8114 (xtensa_write_register): New function.
8115 (xtensa_find_register_by_name): New function.
8116 (xtensa_windowed_frame_cache): Update comments in type description.
8117 (xtensa_frame_cache): Likewise.
8118 (xtensa_window_interrupt_insn): New function.
8119 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8120 (xtensa_insn_kind): Add new instructions.
8121 (rwx_special_register): New function.
8122 (call0_classify_opcode): Add new instructions to the analysis.
8123 (a0_saved, a7_saved, a11_saved): New variables.
8124 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8125 (execute_l32e): New function.
8126 (execute_s32e): New function.
8127 (xtensa_exception_handler_t): New type.
8128 (execute_code): New function.
8129 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8130 analysis for Xtensa Window Exception handlers.
8131
4d1acb11
MG
81322011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8133
98689b25
MG
8134 * xtensa-tdep.c (TX_PS): New.
8135 (windowing_enabled): Update to count for Call0 ABI.
8136 (xtensa_hextochar): New.
8137 (xtensa_init_reggroups): Make algorithm generic.
8138 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8139
81402011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8141
8142 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8143
d3f323f3
MS
81442011-03-08 Michael Snyder <msnyder@vmware.com>
8145
3dcabaa8
MS
8146 * i386-tdep.c (i386_follow_jump): Check return value of
8147 target_read_memory.
8148 (i386_analyze_struct_return): Ditto.
8149 (i386_skip_probe): Ditto.
8150 (i386_match_insn): Ditto.
8151 (i386_skip_noop): Ditto.
8152 (i386_analyze_frame_setup): Ditto.
8153 (i386_analyze_register_saves): Ditto.
8154 (i386_skip_prologue): Ditto.
8155 (i386_skip_main_prologue): Ditto.
8156
13b3fd9b
MS
8157 * target.c (read_whatever_is_readable): Fix memory leak.
8158
d3f323f3
MS
8159 * i386-tdep.c (i386_process_record): Document fall through.
8160
421d5c74
JK
81612011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8162
8163 Fix DWARF-3+ DW_AT_accessibility default assumption.
8164 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8165 cu->header.version >= 3.
8166
63154eca
PA
81672011-03-08 Pedro Alves <pedro@codesourcery.com>
8168
8169 * remote.c (remote_check_symbols): Skip if the target has no
8170 execution.
8171
f1a507a1
JB
81722011-03-08 Joel Brobecker <brobecker@adacore.com>
8173
8174 * target.c (read_whatever_is_readable): Reformat comment,
8175 with a minor typo fix. Minor reformatting of the code.
8176
36073a92
YQ
81772011-03-08 Yao Qi <yao@codesourcery.com>
8178
8179 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8180 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8181 Use cached result instead of calling displaced_in_arm_mode again.
8182 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8183 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8184 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8185 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8186 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8187 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8188 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8189 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8190 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8191 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8192 (arm_catch_kernel_helper_return): Likewise.
8193 * gdb/arm-tdep.h : Update function declarations.
8194
d3f323f3 81952011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8196
e0e40094
MS
8197 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8198
0b2381f5
MS
8199 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8200
0350914a
MS
8201 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8202
69feea6f
MS
8203 * elfread.c (elf_symtab_read): Stop memory leak.
8204
e6040cbd
MS
8205 * main.c (captured_main): Fix memory leak.
8206
052874e8
AS
82072011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8208
8209 * ada-lang.c (compare_names): Call is_name_suffix with string1
8210 instead of string2.
8211
b11896a5
TT
82122011-03-07 Tom Tromey <tromey@redhat.com>
8213
8214 * xcoffread.c (xcoff_sym_fns): Update.
8215 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8216 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8217 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8218 (symbol_file_add_with_addrs_or_offsets): Likewise.
8219 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8220 * somread.c (som_sym_fns): Update.
8221 * psymtab.h (require_partial_symbols): Declare.
8222 * psymtab.c (require_partial_symbols): New function.
8223 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8224 (ALL_OBJFILE_PSYMTABS): Undef.
8225 (ALL_PSYMTABS): Move from psympriv.h.
8226 (lookup_partial_symtab, find_pc_sect_psymtab)
8227 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8228 (find_last_source_symtab_from_partial)
8229 (forget_cached_source_info_partial)
8230 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8231 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8232 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8233 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8234 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8235 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8236 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8237 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8238 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8239 psymtabs.
8240 * mipsread.c (ecoff_sym_fns): Update.
8241 * machoread.c (macho_sym_fns): Update.
8242 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8243 (read_psyms): New function.
8244 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8245 (elf_sym_fns_lazy_psyms): New global.
8246 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8247 dwarf2_build_psymtabs.
8248 * dbxread.c (aout_sym_fns): Update.
8249 * coffread.c (coff_sym_fns): Update.
8250
fda326dd
TT
82512011-03-07 Tom Tromey <tromey@redhat.com>
8252
8253 * infrun.c (print_exited_reason): Include inferior id and pid in
8254 message.
8255
aeaec162
TT
82562011-03-07 Tom Tromey <tromey@redhat.com>
8257
8258 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8259 parameter.
8260 (target_has_execution_1): Update.
8261 (target_has_execution_current): Declare.
8262 (target_has_execution): Call target_has_execution_current.
8263 (default_child_has_execution): Update.
8264 * target.c (default_child_has_execution): Add 'the_ptid'
8265 parameter.
8266 (target_has_execution_1): Likewise.
8267 (target_has_execution_current): New function.
8268 (add_target): Update.
8269 (init_dummy_target): Update.
8270 * remote-m32r-sdi.c (m32r_has_execution): New function.
8271 (init_m32r_ops): Use it.
8272 * record.c (record_core_has_execution): Now static. Add
8273 'the_ptid' parameter.
8274 * inferior.c (have_live_inferiors): Don't save current thread.
8275 Use target_has_execution_1.
8276
08e14083
YQ
82772011-03-07 Yao Qi <yao@codesourcery.com>
8278
8279 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8280
c05d19c5
JB
82812011-03-07 Joel Brobecker <brobecker@adacore.com>
8282
8283 * elfread.c (elf_symtab_read): Minor reformatting.
8284
3e6ef9e4
JB
82852011-03-07 Joel Brobecker <brobecker@adacore.com>
8286
8287 * objc-lang.c (selectors_info): Minor reformatting.
8288
dbb8534f
JB
82892011-03-07 Joel Brobecker <brobecker@adacore.com>
8290
8291 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8292
dd70cc93
JB
82932011-03-07 Joel Brobecker <brobecker@adacore.com>
8294 Michael Snyder <msnyder@vmware.com>
8295
8296 * ada-valprint.c (ada_val_print_array): Move the declaration of
8297 "byte_order" and "elttype" inside the block where these variables
8298 are actually used. Remove some special handling for the case
8299 where "elttype" and "eltlen" are null. Replace by a comment
8300 and a couple of assertion checks.
8301
b27cf2b3
MS
83022011-03-05 Michael Snyder <msnyder@vmware.com>
8303
8304 * source.c (add_path): Replace semicolon at end of block.
8305 * dwarf2expr.c (execute_stack_op): Ditto.
8306
5387a0c6
MF
83072011-03-05 Mike Frysinger <vapier@gentoo.org>
8308
8309 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8310 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8311 (bfin-*-*): Likewise.
8312
e3aa49af
MS
83132011-03-05 Michael Snyder <msnyder@vmware.com>
8314
82ae4854
MS
8315 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8316 * mdebugread.c (parse_symbol): Ditto.
8317 * parse.c (parse_exp_in_context): Ditto.
8318 * source.c (add_path): Ditto.
8319 * utils.c (gnu_debuglink_crc32): Ditto.
8320 * varobj.c (variable_language): Ditto.
8321
e3aa49af
MS
8322 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8323
154f592e
MS
83242011-03-04 Michael Snyder <msnyder@vmware.com>
8325
da3ecdc6
MS
8326 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8327
9cc89665
MS
8328 * symfile.c (simple_overlay_update): Check for null return value
8329 from lookup_minimal_symbol.
8330
154f592e
MS
8331 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8332
63ffa6ee
TJB
83332011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8334
8335 * eval.c (parse_and_eval_address_1): Remove function.
8336 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8337 instead of parse_and_eval_address_1.
8338 * value.h (parse_and_eval_address_1): Remove prototype.
8339
a17d146e
MS
83402011-03-04 Michael Snyder <msnyder@vmware.com>
8341
8342 * remote.c (putpkt_binary): Document that case stmt falls through.
8343
1a6a67de
TJB
83442011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8345
8346 * breakpointc (print_it_typical): Move NULL check from here...
8347 (print_bp_stop_message): ... to here.
8348
488919c4
MS
83492011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8350
8351 * breakpoint.c (enable_command): Use break instead of continue,
8352 and fill in a missing break.
8353 (disable_command): Ditto.
8354
1e182ce8
UW
83552011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8356
8357 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8358 (terminal_save_ours): Remove misleading comment.
8359 (inflow_inferior_data_cleanup): Free ttystate.
8360 (inflow_inferior_exit): Likewise.
8361 (copy_terminal_info): Copy ttystate.
8362
8363 * serial.c (serial_copy_tty_state): New function.
8364 * serial.h (serial_copy_tty_state): Add prototype.
8365 (struct serial_ops): Add copy_tty_state callback.
8366 * ser-base.c (ser_base_copy_tty_state): New function.
8367 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8368 * ser-go32.c (dos_copy_tty_state): New function.
8369 (dos_ops): Install copy_tty_state callback.
8370 * ser-mingw.c (_initialize_ser_windows): Likewise.
8371 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8372 * ser-unix.c (hardwire_copy_tty_state): New function.
8373 (_initialize_ser_hardwire): Install it.
8374
b2c5f112
MS
83752011-03-04 Michael Snyder <msnyder@vmware.com>
8376
2abae994
MS
8377 * breakpoint.c (create_breakpoint): Add missing break statement.
8378
7f5936f9
MS
8379 Reverting this patch:
8380 * infcall.c (call_function_by_hand): Add break statements for lint.
8381
b2c5f112
MS
8382 Reverting this patch:
8383 * cli/cli-script.c (script_from_file): Add break for lint.
8384
42b1321c
MS
83852011-03-04 Michael Snyder <msnyder@vmware.com>
8386
8387 * solib.c (reload_shared_libraries_1): Close memory leak.
8388
3e2a0cee
TT
83892011-03-03 Tom Tromey <tromey@redhat.com>
8390
8391 PR gdb/12538:
8392 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8393 DW_STRING is NULL.
8394
58397cb7
MS
83952011-03-03 Michael Snyder <msnyder@vmware.com>
8396
2e3fd767
MS
8397 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8398 fields of struct 'st' to zero.
8399
58397cb7
MS
8400 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8401 sal.pspace before calling set_current_source_symtab_and_line.
8402
ced54c8f
YQ
84032011-03-03 Yao Qi <yao@codesourcery.com>
8404
8405 * Makefile.in (configure-common): Remove. Let Makefile
8406 in dir common to rebuild itself.
8407 (common/Makefile): Likewise.
8408
3351ea09
JB
84092011-03-03 Joel Brobecker <brobecker@adacore.com>
8410
8411 * utils.c (parse_escape): Add i18n markup in error message.
8412
bf9f652a
YQ
84132011-03-03 Yao Qi <yao@codesourcery.com>
8414
8415 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8416 ARM_PC_REGNUM.
8417 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8418 (displaced_write_reg, displaced_read_reg): Likewise.
8419 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8420 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8421 (cleanup_branch): Replace magic number 14 and 15 with
8422 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8423
d42de051
MS
84242011-03-02 Michael Snyder <msnyder@vmware.com>
8425
240f9570
MS
8426 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8427
10dd8b54
MS
8428 * cli/cli-script.c (script_from_file): Add break for lint.
8429
b98bd911
MS
8430 * mdebugread.c (parse_partial_symbols): Fix indent.
8431
3494b66d
MS
8432 * target-descriptions.c (tdesc_gdb_type): No need to call
8433 xstrdup, callee saves a copy.
8434
daac021a
MS
8435 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8436
c38d16a7
MS
8437 * infcall.c (call_function_by_hand): Add break statements for lint.
8438
905b671b
MS
8439 * utils.c (parse_escape): Escape the escape char.
8440
f2eb0bc8 8441 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8442 PyList_Append fails.
8443 (gdbpy_inferiors): Error out if build_inferior_list fails.
8444
8c6a60d1
MS
8445 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8446 a function call.
8447
d42de051
MS
8448 * record.c (record_restore): Move printf to before error return.
8449
4db71c0b
YQ
84502011-03-02 Yao Qi <yao@codesourcery.com>
8451
8452 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8453 is_thumb and insn_size.
8454 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8455 on both ARM and Thumb mode.
8456 (arm_process_displaced_insn): Set is_thumb and insn_size.
8457 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8458 (arm_displaced_step_fixup): Likewise.
8459
a9dc8dcc
MS
84602011-03-01 Michael Snyder <msnyder@vmware.com>
8461
53624a93
MS
8462 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8463
77766669
MS
8464 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8465
62d5b8da
MS
8466 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8467
5e9e105f
MS
8468 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8469
dc19db01
MS
8470 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8471 with xmalloc.
8472
5ce64950
MS
8473 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8474 which shadows function parameter.
8475
a0aa2878
MS
8476 * tracepoint.c (create_tsv_from_upload): Superfluous call
8477 to xstrdup. Callee already calls xstrdup.
8478
e325fb69
MS
8479 * linespec.c (decode_line_1): Remove unnecessary null check.
8480
21cbba77
MS
8481 * tracepoint.c (scope_info): Fix mem leak, remove underused
8482 variable.
8483
63360adc
MS
8484 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8485 superfluous null check.
8486
18ea20ac 8487 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8488 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8489
d014929c
MS
8490 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8491
6e9130cf
MS
8492 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8493 be null.
8494
5f01dbc0
MS
8495 * linespec.c (decode_line_1): Check for null before dereference.
8496
d684ab85
MS
8497 * reverse.c (record_restore): Move null-check to before pointer
8498 dereference.
8499
bfffb7e3
MS
8500 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8501
a9dc8dcc
MS
8502 * objc-lang.c (selectors_info): Add explanitory comment.
8503 (classes_info): Ditto.
8504
478fd957
UW
85052011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8506
8507 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8508 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8509 versions of the trampoline. Handle Thumb vs. ARM addresses.
8510 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8511 (arm_linux_init_abi): Install it.
8512 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8513 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8514
0480cefa
MS
85152011-02-28 Michael Snyder <msnyder@vmware.com>
8516
ac50ab3b
MS
8517 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8518 a little bigger, to avoid possibility of an overflow.
8519
f63fbe86
MS
8520 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8521 buffers a little bigger, to avoid possibility of an overflow.
8522
9e91a352
MS
8523 * coffread.c (coff_getfilename): Add check to avoid overflow.
8524
f2eb0bc8 8525 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8526 avoid overflow.
8527 (classes_info): Error out on too long REGEXP.
8528
098ab512
MS
8529 * infrun.c (handle_inferior_event): Remove unused function call.
8530
bcbd1de9
MS
8531 * fork-child.c (fork_inferior): Remove ifdef'd code and
8532 unused variable.
8533
2e456570
MS
8534 * linux-thread-db.c (attach_thread): Discard unused value.
8535
14571dad
MS
8536 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8537
a9cbf802
MS
8538 * remote.c (remote_get_noisy_reply): Discard unused value.
8539 (remote_vcont_resume): Ditto.
8540 (remote_stop_ns): Ditto.
8541
5715d26e
MS
8542 * linespec.c (decode_objc): Delete unused variable.
8543
4a9bca80
MS
8544 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8545
f47fb265
MS
8546 * dwarf2read.c (add_partial_symbol): Discard unused values.
8547 (read_base_type): Delete unused variable.
8548
e81cff30
MS
8549 * dbxread.c (read_dbx_symtab): Discard unused value.
8550
262acaeb
MS
8551 * eval.c (evaluate_subexp_standard): Delete unused variable,
8552 and discard unused values.
8553
df983543
MS
8554 * infcmd.c (_initialize_infcmd): Discard unused values.
8555
89acf84d
MS
8556 * stabsread.c (rs6000_builtin_type): Missing break statement.
8557
ab8b8aca
MS
8558 * dbxread.c (process_one_symbol): Discard unused value.
8559
6b4511ab
MS
8560 * coffread.c (coff_end_symtab): Delete unused variable.
8561
e8e80198
MS
8562 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8563 (dwarf2_add_typedef): Delete unused variable.
8564 (read_namespace): Ditto.
8565 (dwarf_decode_macros): Ditto.
8566
976aa66e
MS
8567 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8568
5b92b49f
MS
8569 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8570
91e8df85
MS
8571 * p-valprint.c (pascal_val_print): Discard unused value.
8572
899500d6
MS
8573 * utils.c (nquery): Call va_end before return;
8574 (yquery): Ditto.
8575 (query): Ditto.
8576
0480cefa
MS
8577 * proc-service.c (ps_plog): Call va_end before return.
8578
fb6a3ed3
TT
85792011-02-28 Tom Tromey <tromey@redhat.com>
8580
8581 * python/python.c (gdbpy_value_cst): New global.
8582 (_initialize_python): Initialize it.
8583 * python/python-internal.h (gdbpy_value_cst): Declare.
8584 * python/py-value.c (convert_value_from_python): Use
8585 gdbpy_value_cst.
8586
c05202a1
MS
85872011-02-28 Michael Snyder <msnyder@vmware.com>
8588
e463f587
MS
8589 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8590
c38eea1a
MS
8591 * breakpoint.c (catch_syscall_completer): Free malloced list.
8592
3ef09ab5
MS
8593 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8594
8f9a01ee
MS
8595 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8596 (lval_func_check_synthetic_pointer): Ditto.
8597 (lval_func_free_closure): Fix use-after-free.
c05202a1 8598
477d0d57
TT
85992011-02-28 Tom Tromey <tromey@redhat.com>
8600
8601 * psymtab.c (expand_partial_symbol_tables): Use
8602 ALL_OBJFILE_PSYMTABS.
8603
20937029
JK
86042011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8605
8606 * objc-lang.c (selectors_info): Error on too long REGEXP.
8607
907b7f4f
MS
86082011-02-28 Michael Snyder <msnyder@vmware.com>
8609
92e96192
MS
8610 * python/py-param.c (set_parameter_value): Add missing
8611 break statement.
8612
907b7f4f
MS
8613 * linux-record.c (record_linux_system_call): Add missing
8614 break statement.
8615
12c5a436
UW
86162011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8617
8618 * breakpoint.c (print_one_breakpoint_location): Remove unused
8619 argument PRINT_ADDRESS_BITS. Update callers.
8620 (print_one_breakpoint): Likewise.
8621
170b53b2
UW
86222011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8623
8624 * breakpoint.c (wrap_indent_at_field): New function.
8625 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8626 Allocate ui_stream locally instead of using STB argument.
8627 (print_one_breakpoint_location): Update call.
8628 * ui-out.c (ui_out_query_field): New function.
8629 * ui-out.h (ui_out_query_field): Add prototype.
8630
8ab1f94d
JB
86312011-02-28 Joel Brobecker <brobecker@adacore.com>
8632
8633 From Michael Snyder <msnyder@vmware.com>
8634 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8635
7d488639
MS
86362011-02-27 Michael Snyder <msnyder@vmware.com>
8637
ae179fba
MS
8638 * objc-lang.c (selectors_info): Prevent string overrun.
8639
086dbf66
MS
8640 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8641 error in strncpy.
8642
f2eb0bc8 8643 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8644 outer scope.
8645
7d488639
MS
8646 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8647 param with a local variable of the same name.
8648
3bd0f5ef
MS
86492011-02-27 Michael Snyder <msnyder@vmware.com>
8650
8651 * value.c (value_from_history_ref): New function.
8652 * value.h (value_from_history_ref): Export.
8653 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8654 to parse value history references.
8655 * cli/cli-utils.h (get_number_trailer): Update comment.
8656
86572011-02-27 Michael Snyder <msnyder@vmware.com>
8658
8659 * inferior.c (detach_inferior_command): Use get_number_or_range.
8660 (kill_inferior_command): Ditto.
8661 (remove_inferior_command): Ditto.
8662 (initialize_inferiors): Make command names plural.
8663 Update help strings.
8664
766062f6
MS
86652011-02-27 Michael Snyder <msnyder@vmware.com>
8666
8667 * darwin-nat-info.c: Fix comment typo.
8668 * dwarf2expr.h: Ditto.
8669 * fbsd-nat.c: Ditto.
8670 * fbsd-nat.h: Ditto.
8671 * frame-unwind.h: Ditto.
8672 * frame.h: Ditto.
8673 * hppa-hpux-tdep.c: Ditto.
8674 * i386-linux-nat.c: Ditto.
8675 * linux-nat.c: Ditto.
8676 * nbsd-nat.c: Ditto.
8677 * nbsd-nat.h: Ditto.
8678 * ppc-linux-tdep.c: Ditto.
8679 * serial.c: Ditto.
8680 * ui-file.h: Ditto.
8681 * tui/tui-winsource.c: Ditto.
8682
f2c4ead5
MS
86832011-02-26 Michael Snyder <msnyder@vmware.com>
8684
86b887df
MS
8685 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8686
66fd3b1e
MS
8687 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8688
8c814cdd
MS
8689 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8690 with a local variable of the same name.
8691
6d5e094a 8692 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8693 param with a local variable of the same name.
6d5e094a 8694 (i387_supply_xsave): Ditto.
e5b3d7d6 8695
5eee517d
MS
8696 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8697 that it does not shadow a function parameter.
8698
8fbf6b93
MS
8699 * i386-nat.c (i386_length_and_rw_bits): Document that case
8700 statement is meant to fall through.
8701
cb969d61
MS
8702 * expprint.c (dump_subexp_body_standard): Document that case
8703 statement is meant to fall through.
8704
f2c4ead5
MS
8705 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8706 dead if statement. Condition can't be false.
8707
b021a221
MS
87082011-02-25 Michael Snyder <msnyder@vmware.com>
8709
8710 * arm-tdep.c: Fix typos in comments.
8711 * bsd-uthread.c: Ditto.
8712 * completer.c: Ditto.
8713 * corelow.c: Ditto.
8714 * cp-namespace.c: Ditto.
8715 * cp-support.c: Ditto.
8716 * cris-tdep.c: Ditto.
8717 * dbxread.c: Ditto.
8718 * dwarf2read.c: Ditto.
8719 * frame.h: Ditto.
8720 * gdbtypes.h: Ditto.
8721 * inferior.h: Ditto.
8722 * mdebugread.c: Ditto.
8723 * mips-tdep.c: Ditto.
8724 * ppc-linux-nat.c: Ditto.
8725 * ppc-linux-tdep.c: Ditto.
8726 * printcmd.c: Ditto.
8727 * sol-thread.c: Ditto.
8728 * solib-frv.c: Ditto.
8729 * solist.h: Ditto.
8730 * sparc64-tdep.c: Ditto.
8731 * spu-tdep.c: Ditto.
8732 * stabsread.c: Ditto.
8733 * symfile.c: Ditto.
8734 * valops.c: Ditto.
8735 * varobj.c: Ditto.
8736 * vax-nat.c: Ditto.
8737 * python/py-block.c: Ditto.
8738 * python/py-symbol.c: Ditto.
8739 * python/py-symtab.c: Ditto.
8740 * python/py-value.c: Ditto.
8741 * tui/tui-win.c: Ditto.
8742
c82c0b55
MS
87432011-02-25 Michael Snyder <msnyder@vmware.com>
8744
8745 * inferior.c (print_inferior): Accept a string instead of an int
8746 for requested_inferiors, and use get_number_or_range to parse it.
8747 (info_inferiors_command): Pass args string to print_inferior.
8748 (initialize_inferiors): Change help string for info inferiors.
8749 * inferior.h (print_inferior): Export prototype change.
8750
ee00cd23
TT
87512011-02-25 Tom Tromey <tromey@redhat.com>
8752
8753 * common/ax.def (invalid2): Set to 0x31.
8754
0502ed8c
JK
87552011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8756
8757 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8758 L and plongest.
8759 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8760 use L and plongest.
8761 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8762
2c9de912
MS
87632011-02-24 Michael Snyder <msnyder@vmware.com>
8764
8765 * Makefile.in (clean): Make clean should remove generated files
8766 observer.h and observer.inc.
8767
a04b0428
JB
87682011-02-24 Joel Brobecker <brobecker@adacore.com>
8769
8770 Revert the following patch (not approved yet):
8771 2011-02-21 Hui Zhu <teawater@gmail.com>
8772 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8773 * ax-gdb.c (gen_printf_expr_callback): New function.
8774 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8775 * ax-general.c (ax_memcpy): New function.
8776 (ax_print): Handle "printf".
8777 (ax_reqs): Ditto.
8778 * ax.h (ax_memcpy): Forward declare.
8779 * common/ax.def (invalid2): Removed.
8780 (printf): New entry.
8781 * printcmd.c (printcmd.h): New include.
8782 (string_printf): New function.
8783 (ui_printf): Removed.
8784 (printf_command): Remove static. Call string_printf.
8785 (eval_command): Call string_printf.
8786 * printcmd.h: New file.
8787 * tracepoint.c (validate_actionline,
8788 encode_actions_1): handle printf_command.
8789
2b52013f
TT
87902011-02-23 Tom Tromey <tromey@redhat.com>
8791
8792 * ax-general.c (ax_pick): Add missing newline.
8793
e5a67952
MS
87942011-02-23 Michael Snyder <msnyder@vmware.com>
8795
8796 * breakpoint.c (breakpoint_1): Change first argument from an int
8797 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8798 breakpoints rather than just one. Use new function
e5a67952
MS
8799 'number_is_in_list' to implement.
8800 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8801 (watchpoints_info): Ditto.
8802 (tracepoints_info): Ditto.
8803 (maintenance_info_breakpoints): Ditto.
8804 (_initialize_breakpoint): Update help strings to reflect the fact
8805 that these functions can now take more than one argument.
8806 * cli/cli-utils.c (number_is_in_list): New function.
8807 * cli/cli-utils.h (number_is_in_list): Export.
8808
88092011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8810
8811 * memattr.c (mem_enable_command): Use get_number_or_range.
8812 (mem_disable_command): Ditto.
8813 (mem_delete_command): Ditto.
8814 (_initialize_mem): Tweak usage message to reflect multiple
8815 arguments.
8816
6e6fbe60
DE
88172011-02-22 Doug Evans <dje@google.com>
8818
8819 Add gdb.lookup_global_symbol python function.
8820 * NEWS: Add entry.
8821 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8822 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8823 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8824
79b97fa8
TT
88252011-02-22 Tom Tromey <tromey@redhat.com>
8826
8827 * language.c (language_class_name_from_physname): Rename
8828 'curr_language' argument to 'lang'; use in body.
8829
298f437a
MS
88302011-02-22 Michael Snyder <msnyder@vmware.com>
8831
8832 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8833
b7ea3126
PA
88342011-02-22 Pedro Alves <pedro@codesourcery.com>
8835
8836 * frame-unwind.h: Fix comment to mention the this frame, not the
8837 next.
8838
58ee6d60
TT
88392011-02-22 Tom Tromey <tromey@redhat.com>
8840
8841 * symfile.c (auto_solib_limit): Remove.
8842 * symfile.h (auto_solib_limit): Remove.
8843
36238dbc
JB
88442011-02-22 Joel Brobecker <brobecker@adacore.com>
8845
8846 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8847
aea5b279
MS
88482011-02-21 Michael Snyder <msnyder@vmware.com>
8849
8850 * gdbthread.h (print_thread_info): Change prototype.
8851 * thread.c (print_thread_info): Accept char* instead of int for
8852 requested_threads argument. Use new function number_is_in_list
8853 to determine which threads to list.
8854 (info_threads_command): Pass char* to print_thread_info.
8855 * cli/cli-utils.c (number_is_in_list): New function.
8856 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8857 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8858 print_thread_info.
8859 (print_one_inferior): Ditto.
8860 (mi_cmd_list_thread_groups): Ditto.
8861
8caa75ee
JK
88622011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8863
8864 * common/Makefile.in (CFLAGS): New.
8865 (COMPILE): Add $(CFLAGS).
8866
ea666128
TT
88672011-02-21 Tom Tromey <tromey@redhat.com>
8868
8869 * breakpoint.c (catch_syscall_command_1): Fix typo.
8870
e9cafbcc
TT
88712011-02-21 Tom Tromey <tromey@redhat.com>
8872
8873 * reverse.c: Include cli-utils.h.
8874 * printcmd.c: Include cli-utils.h.
8875 (string_printf): Use skip_spaces.
8876 * cli/cli-utils.h: New file.
8877 * cli/cli-utils.c: New file.
8878 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8879 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8880 * breakpoint.h (get_number, get_number_or_range): Move to
8881 cli-utils.h.
8882 * breakpoint.c: Include cli-utils.h.
8883 (get_number_trailer, get_number, get_number_or_range)
8884 (ep_skip_leading_whitespace): Move to cli-utils.c.
8885 (create_breakpoint_sal, find_condition_and_thread)
8886 (decode_static_tracepoint_spec, watch_command_1)
8887 (watch_maybe_just_location, ep_parse_optional_if_clause)
8888 (catch_fork_command_1, catch_exec_command_1)
8889 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8890 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8891 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8892 (HFILES_NO_SRCDIR): Add cli-utils.h.
8893 (cli-utils.o): New target.
8894
f67fd822
PM
88952011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8896
8897 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8898 before calling discard_all_inferiors.
8899
c9def01d
UW
89002011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8901
8902 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8903 (struct builtin_opencl_type): Remove.
8904 (builtin_opencl_type): Change return type to "struct type **".
8905 (lookup_opencl_vector_type): Update caller.
8906 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8907 (build_opencl_types): Install plain array of "struct type *"
8908 instead of "struct builtin_opencl_type".
8909
e3039479
UW
89102011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8911 Ulrich Weigand <uweigand@de.ibm.com>
8912
8913 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8914 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8915 (struct arm_linux_hwbp_cap): New type.
8916 (arm_linux_get_hwbp_cap): New function.
8917 (arm_linux_get_hw_breakpoint_count): Likewise.
8918 (arm_linux_get_hw_watchpoint_count): Likewise.
8919 (arm_linux_can_use_hw_breakpoint): Likewise.
8920 (arm_hwbp_type): New type.
8921 (arm_hwbp_control_t): Likewise.
8922 (struct arm_linux_hw_breakpoint): Likewise.
8923 (struct arm_linux_thread_points): Likewise.
8924 (arm_threads): New global variable.
8925 (arm_linux_find_breakpoints_by_tid): New function.
8926 (arm_hwbp_control_initialize): Likewise.
8927 (arm_hwbp_control_is_enabled): Likewise.
8928 (arm_hwbp_control_disable): Likewise.
8929 (arm_linux_hw_breakpoint_initialize): Likewise.
8930 (arm_linux_get_hwbp_type): Likewise.
8931 (arm_linux_hw_watchpoint_initialize): Likewise.
8932 (arm_linux_hw_breakpoint_equal): Likewise.
8933 (arm_linux_insert_hw_breakpoint1): Likewise.
8934 (arm_linux_remove_hw_breakpoint1): Likewise.
8935 (arm_linux_insert_hw_breakpoint): Likewise.
8936 (arm_linux_remove_hw_breakpoint): Likewise.
8937 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8938 (arm_linux_insert_watchpoint): Likewise.
8939 (arm_linux_remove_watchpoint): Likewise.
8940 (arm_linux_stopped_data_address): Likewise.
8941 (arm_linux_stopped_by_watchpoint): Likewise.
8942 (arm_linux_watchpoint_addr_within_range): Likewise.
8943 (arm_linux_new_thread): Likewise.
8944 (arm_linux_thread_exit): Likewise.
8945 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8946 related target callbacks. Register arm_linux_new_thread and
8947 arm_linux_thread_exit.
8948 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8949 * arm-tdep.c (arm_pc_is_thumb): Make global.
8950 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8951
b5db5dfc
UW
89522011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8953
8954 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8955 per-frame locations while within a function epilogue.
8956
e25b2cfa
PM
89572011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8958
8959 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8960 to GNU coding standards.
8961
4af53f97
PM
89622011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8963
8964 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8965 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8966 (ser_windows_close): Only call CancelIo if function exists.
8967 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8968 to check for existence of CancelIo function in kernel32 DLL.
8969
d0e92d82
HZ
89702011-02-21 Hui Zhu <teawater@gmail.com>
8971
8972 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8973 * ax-gdb.c (gen_printf_expr_callback): New function.
8974 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8975 * ax-general.c (ax_memcpy): New function.
8976 (ax_print): Handle "printf".
8977 (ax_reqs): Ditto.
8978 * ax.h (ax_memcpy): Forward declare.
8979 * common/ax.def (invalid2): Removed.
8980 (printf): New entry.
8981 * printcmd.c (printcmd.h): New include.
8982 (string_printf): New function.
8983 (ui_printf): Removed.
8984 (printf_command): Remove static. Call string_printf.
8985 (eval_command): Call string_printf.
8986 * printcmd.h: New file.
8987 * tracepoint.c (validate_actionline,
8988 encode_actions_1): handle printf_command.
8989
7d357efd
MS
89902011-02-19 Michael Snyder <msnyder@vmware.com>
8991
8992 * reverse.c (delete_one_bookmark): Argument is now bookmark
8993 id rather than pointer to bookmark struct.
8994 (delete_bookmark_command): Use get_number_or_range.
8995 (goto_bookmark_command): Parse with get_number instead of strtoul.
8996 (bookmark_1): New function. Print info for one bookmark.
8997 (bookmarks_info): Use get_number_or_range and bookmark_1.
8998
7a45ebd7
MS
89992011-02-18 Michael Snyder <msnyder@vmware.com>
9000
f2eb0bc8 9001 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9002 get_number_or_range.
65ebfb52 9003 (thread_apply_command): Ditto.
7a45ebd7 9004
94d5e490
TT
90052011-02-18 Tom Tromey <tromey@redhat.com>
9006
9007 * common/ax.def: New file.
9008 * ax.h (enum agent_op): Use ax.def.
9009 * ax-general.c (aop_map): Use ax.def.
9010
c7f96d2b
TT
90112011-02-18 Tom Tromey <tromey@redhat.com>
9012
9013 * ax-general.c (aop_map): Add pick and rot.
9014 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9015 <DW_OP_rot>: Implement.
9016 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9017 (ax_pick): Declare.
9018 * ax-general.c (ax_pick): New function.
9019
66694b75
TT
90202011-02-18 Tom Tromey <tromey@redhat.com>
9021
9022 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9023
eeaafae2
JK
90242011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9025 Tom Tromey <tromey@redhat.com>
9026
9027 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9028 make_symbol_overload_list_block with NULL BLOCK.
9029 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9030
3c3fe74c
PA
90312011-02-18 Pedro Alves <pedro@codesourcery.com>
9032
9033 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9034 * breakpoint.h (get_number_or_range): Declare.
9035 * printcmd.c (ALL_DISPLAYS): Declare.
9036 (delete_display): Reimplement taking a display pointer.
9037 (undisplay_command): Accept a range of displays to delete, using
9038 get_number_or_range.
9039
13163d80
PM
90402011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9041
9042 * c-valprint.c (c_val_print): Add embedded_offset to address
9043 for arrays of unspecified length.
9044 * p-valprint.c (pascal_val_print): Likewise.
9045
b434a28f
YQ
90462011-02-18 Yao Qi <yao@codesourcery.com>
9047
9048 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9049 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9050 (thumb_process_displaced_insn): New.
9051 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9052 call to arm_process_displaced_insn.
9053 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9054
9f6f94ff
TT
90552011-02-17 Tom Tromey <tromey@redhat.com>
9056
9057 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9058 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9059 compile_dwarf_to_ax. No longer static. Call
9060 dwarf2_compile_cfa_to_ax.
9061 (locexpr_tracepoint_var_ref): Update.
9062 (loclist_tracepoint_var_ref): Update.
9063 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9064 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9065 argument; add 'gdbarch' and 'pc'.
9066 (dwarf2_compile_cfa_to_ax): New function.
9067 (dwarf2_frame_cache): Update.
9068
e67ad678
JB
90692011-02-17 Joel Brobecker <brobecker@adacore.com>
9070
9071 * ada-lang.c (ada_type_of_array): Fix the size of the array
9072 in the case of an unconstrained packed array.
9073
946ebb0d
YQ
90742011-02-17 Yao Qi <yao@codesourcery.com>
9075
9076 * common/Makefile.in: Add more targets for make.
9077
1ba1b353
TT
90782011-02-16 Tom Tromey <tromey@redhat.com>
9079
9080 * dwarf2loc.c (unimplemented): Fix typo.
9081
b1bfef65
TT
90822011-02-16 Tom Tromey <tromey@redhat.com>
9083
9084 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9085 (compile_dwarf_to_ax) <default>: Use unimplemented.
9086 <DW_OP_deref>: Update.
9087 (disassemble_dwarf_expression): Update.
9088 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9089 (decode_locdesc): Update.
9090 * dwarf2expr.h (dwarf_stack_op_name): Update.
9091
5f1e6f19
TT
90922011-02-16 Tom Tromey <tromey@redhat.com>
9093
9094 * ax.h (struct aop_map) <name>: Now const.
9095
a0c78a73
PA
90962011-02-16 Tom Tromey <tromey@redhat.com>
9097
9098 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9099 than axs_rvalue.
9100
946ebb0d 91012011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9102
9103 * infrun.c (get_displaced_step_closure_by_addr): New.
9104 * inferior.h: Declare it.
9105 * arm-tdep.c: (arm_pc_is_thumb): Call
9106 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9107 returns non-NULL.
9108
08807d5a
PA
91092011-02-16 Pedro Alves <pedro@codesourcery.com>
9110 Jan Kratochvil <jan.kratochvil@redhat.com>
9111
9112 gdb/
9113 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9114
29976f3f
PA
91152011-02-16 Pedro Alves <pedro@codesourcery.com>
9116 Jan Kratochvil <jan.kratochvil@redhat.com>
9117
9118 * value.c (value_contents_copy_raw): Extend describing comment.
9119 Assert that the destination contents we're overwriting are wholly
9120 available.
fb68ae73 9121 (value_contents_copy): Extend describing comment.
29976f3f 9122
cd24cfaa
PA
91232011-02-16 Pedro Alves <pedro@codesourcery.com>
9124 Jan Kratochvil <jan.kratochvil@redhat.com>
9125
9126 * value.c (value_available_contents_eq): Remove redundant local
9127 variables. Fix available contents comparision.
9128 * value.h (value_available_contents_eq): Extend describing
9129 comment.
9130
60bbf338
YQ
91312011-02-16 Yao Qi <yao@codesourcery.com>
9132
9133 * thread.c (info_threads_command): Add missing i18n markup and remove
9134 trailing newline.
9135
17450429
PP
91362011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9137
9138 * breakpoint.c (longjmp_names): New variable.
9139 (struct breakpoint_objfile_data): New type.
9140 (breakpoint_objfile_key): New variable.
9141 (msym_not_found): New variable.
9142 (msym_not_found_p): New predicate.
9143 (get_breakpoint_objfile_data): New function.
9144 (create_overlay_event_breakpoint): Check per-objfile cache for
9145 symbols first.
9146 (create_longjmp_master_breakpoint): Likewise.
9147 (create_std_terminate_master_breakpoint): Likewise.
9148 (create_exception_master_breakpoint): Likewise.
9149 (_initialize_breakpoint): Register per-objfile data key.
9150
af02033e
PP
91512011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9152
9153 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9154 parameter value.
9155 (create_longjmp_master_breakpoint): Loop over longjmp names.
9156 (create_std_terminate_master_breakpoint): Const-propagate parameter
9157 value.
9158 (update_breakpoints_after_exec): Adjust.
9159 (breakpoint_re_set): Adjust.
9160
60f98dde
MS
91612011-02-15 Michael Snyder <msnyder@vmware.com>
9162
cdf99611
MS
9163 * thread.c (info_threads_command): Process arg as thread id,
9164 or list of thread ids.
9165 (thread_find_command): New command.
9166 (_initialize_thread): Document argument for info threads.
9167 Document 'thread find' command.
9168 * NEWS: Document new command "thread find".
60f98dde 9169
0feedb2c
JK
91702011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9171
9172 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9173 * aclocal.m4: Regenerated with aclocal-1.11.1.
9174 * common/configure: Regenerate with autoconf-2.64.
9175
648cd113
KW
91762011-02-15 Ken Werner <ken.werner@de.ibm.com>
9177
9178 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9179 bool data type to a size of one byte.
9180
5657161f
PA
91812011-02-15 Pedro Alves <pedro@codesourcery.com>
9182 Jan Kratochvil <jan.kratochvil@redhat.com>
9183
9184 * target.c (memory_xfer_live_readonly_partial): Document where to
9185 look for interface description.
9186
494e194e
YQ
91872011-02-15 Yao Qi <yao@codesourcery.com>
9188
9189 PR tdep/12352
9190 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9191 order to store PC value on stack instead of text section.
9192
d9492458
TJB
91932011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9194
9195 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9196 the EFP register set size.
9197 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9198 data from the VMX register.
9199 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9200 and write data from/to the VMX register.
9201
cdf99611
MS
92022011-02-14 Michael Snyder <msnyder@vmware.com>
9203
9204 * command.h (enum command_class): New class 'no_set_class', for
9205 "show" commands without a corresponding "set" command.
9206 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9207 * copying.c (_initialize_copying): Ditto for "show copying" and
9208 "show warranty".
9209 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9210 "show version".
9211 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9212 which there is no corresponding "set" command (eg. "show copying").
9213
424447ee
PA
92142011-02-14 Pedro Alves <pedro@codesourcery.com>
9215 Jan Kratochvil <jan.kratochvil@redhat.com>
9216
9217 * exec.c (section_table_available_memory): Change `len' parameter
9218 type to ULONGEST.
9219 * exec.h (section_table_available_memory): Ditto.
9220 * value.h (read_value_memory): Rename the `offset' parameter to
9221 `embedded_offset'.
9222
c0f61f9c 92232011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9224 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9225
9226 * memrange.c (compare_mem_ranges): Mention sort order in
9227 describing comment.
9228 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9229 * tracepoint.c (traceframe_available_memory): Extend comment to
9230 mention what happens to RESULT when the target does not support
9231 the query.
9232
6bfc80c7
PA
92332011-02-14 Pedro Alves <pedro@codesourcery.com>
9234 Jan Kratochvil <jan.kratochvil@redhat.com>
9235
9236 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9237 range.
9238
e7303042
PA
92392011-02-14 Pedro Alves <pedro@codesourcery.com>
9240
9241 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9242 No longer handle NULL values.
9243
8af8e3bc
PA
92442011-02-14 Pedro Alves <pedro@codesourcery.com>
9245
9246 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9247 * value.c: Include "exceptions.h".
9248 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9249 generic error.
9250 * cp-abi.c: Include gdb_assert.h.
9251 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9252 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9253 errors.
9254 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9255 parameters. No longer returns -1 on error.
9256 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9257 `val' parameters.
9258 * cp-valprint.c: Include exceptions.h.
9259 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9260 the baseclass_offset. Handle unavailable base classes. Use
9261 val_print_invalid_address.
9262 * p-valprint.c: Include exceptions.h.
9263 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9264 when fetching the baseclass_offset. No longer expect
9265 baseclass_offset returning -1. Handle unavailable base classes.
9266 Use val_print_invalid_address.
9267 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9268 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9269 `embedded_offset' and `val' parameters. Adjust.
9270 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9271 parameter, and change its type to gdb_byte pointer. Add
9272 `embedded_offset' and `val' parameters. Adjust. No longer expect
9273 baseclass_offset returning -1.
9274 (value_dynamic_cast): Use value_contents_for_printing rather than
9275 value_contents. Adjust.
9276 (search_struct_field): No longer expect baseclass_offset returning
9277 -1.
9278 (search_struct_method): If reading memory from the target is
9279 necessary, wrap it in a new value to pass to baseclass_offset. No
9280 longer expect baseclass_offset returning -1.
9281 (find_method_list): No longer expect baseclass_offset returning
9282 -1. Use value_contents_for_printing rather than value_contents.
9283 * valprint.c (val_print_invalid_address): New function.
9284 * valprint.h (val_print_invalid_address): Declare.
9285 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9286 and `val' parameters. No longer expect baseclass_offset returning
9287 -1. Adjust.
9288 * gnu-v2-abi.c: Include "exceptions.h".
9289 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9290 parameters. Handle unavailable memory. Recurse through
9291 gnuv2_baseclass_offset directly, rather than through
9292 baseclass_offset. No longer returns -1 on not found, instead
9293 throw an error.
9294 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9295 `val' parameters. Adjust.
9296
1b28d0b3
PA
92972011-02-14 Pedro Alves <pedro@codesourcery.com>
9298
9299 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9300 almost but not quite adjacent.
9301
ec0a52e1
PA
93022011-02-14 Pedro Alves <pedro@codesourcery.com>
9303
9304 * value.h (value_entirely_available): Declare.
9305 * value.c (value_entirely_available): New function.
9306 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9307 real type if the pointer is unavailable.
9308
24e6bcee
PA
93092011-02-14 Pedro Alves <pedro@codesourcery.com>
9310
9311 * valops.c (value_repeat): Use read_value_memory instead of
9312 read_memory.
9313
39d37385
PA
93142011-02-14 Pedro Alves <pedro@codesourcery.com>
9315
9316 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9317 * value.c (value_contents_copy_raw, value_contents_copy): New
9318 functions.
9319 (value_primitive_field): Use value_contents_copy_raw instead of
9320 memcpy.
9321 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9322 memcpy.
9323 (value_array, value_slice): Ditto.
9324 * valarith.c (value_subscripted_rvalue): Use
9325 value_contents_copy_raw instead of memcpy.
9326
a3d34bf4
PA
93272011-02-14 Pedro Alves <pedro@codesourcery.com>
9328
9329 <unavailable> references.
9330
9331 * valops.c (get_value_at): Use value_from_contents_and_address,
9332 avoiding read_memory.
9333
9fc6d940
PA
93342011-02-14 Pedro Alves <pedro@codesourcery.com>
9335
9336 * c-valprint.c (c_val_print): Print a string with unavailable
9337 contents as an array.
9338
5467c6c8
PA
93392011-02-14 Pedro Alves <pedro@codesourcery.com>
9340
9341 * value.h (unpack_bits_as_long): Delete declaration.
9342 (unpack_value_bits_as_long): Declare.
9343 (unpack_value_field_as_long): Declare.
9344 (value_field_bitfield): Declare.
9345 * value.c (unpack_bits_as_long): Rename to...
9346 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9347 value parameters. Return the extracted result in a new output
9348 parameter. If the value contents are unavailable, return false,
9349 otherwise return true.
9350 (unpack_value_bits_as_long): New.
9351 (unpack_field_as_long): Rename to...
9352 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9353 Add embedded_offset and value parameters. Return the extracted
9354 result in a new output parameter. If the value contents are
9355 unavailable, return false, otherwise return true.
9356 (unpack_value_field_as_long): New.
9357 (unpack_field_as_long_1): New.
9358 (unpack_field_as_long): Reimplement as wrapper around
9359 unpack_value_field_as_long_1.
9360 (value_field_bitfield): New function.
9361 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9362 unpack_value_bits_as_long. Mark the value as unavailable, if it
9363 is unavailable.
9364 * jv-valprint.c (java_print_value_fields): Use
9365 value_field_bitfield.
9366 * p-valprint.c (pascal_object_print_value_fields): Use
9367 value_field_bitfield.
9368 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9369
3158c6ed
PA
93702011-02-14 Pedro Alves <pedro@codesourcery.com>
9371
9372 * value.c (get_internalvar_integer): Also return the int value of
9373 TYPE_CODE_INT INTERNALVAR_VALUE values.
9374 (set_internalvar): Don't special case TYPE_CODE_INT.
9375
9fbdca0d
PA
93762011-02-14 Pedro Alves <pedro@codesourcery.com>
9377
9378 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9379 INTERNALVAR_POINTER.
9380 <pointer>: Delete.
9381 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9382 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9383 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9384
c8c1c22f
PA
93852011-02-14 Pedro Alves <pedro@codesourcery.com>
9386
9387 * value.h (value_available_contents_eq): Declare.
9388 * value.c (find_first_range_overlap): New function.
9389 (value_available_contents_eq): New function.
9390 * valprint.c (val_print_array_elements): Use
9391 value_available_contents_eq.
9392 * ada-valprint.c (val_print_packed_array_elements): Use
9393 value_available_contents_eq.
9394 * jv-valprint.c (java_value_print): Use
9395 value_available_contents_eq.
9396
e6e4e701
PA
93972011-02-14 Pedro Alves <pedro@codesourcery.com>
9398
9399 * target.c (target_read_live_memory): New function.
9400 (memory_xfer_live_readonly_partial): New.
9401 (memory_xfer_partial): If reading from a traceframe, fallback to
9402 reading unavailable read-only memory from read-only regions of
9403 live target memory.
9404 * tracepoint.c (disconnect_tracing): Adjust.
9405 (set_current_traceframe): New, factored out from
9406 set_traceframe_number.
9407 (set_traceframe_number): Reimplement to only change the traceframe
9408 number on the GDB side.
9409 (do_restore_current_traceframe_cleanup): Adjust.
9410 (make_cleanup_restore_traceframe_number): New.
9411 (cur_traceframe_number): New global.
9412 (tfile_open): Set cur_traceframe_number to no traceframe.
9413 (set_tfile_traceframe): New function.
9414 (tfile_trace_find): If looking up a traceframe using any method
9415 other than by number, make sure the current tfile traceframe
9416 matches gdb's current traceframe. Update the current tfile
9417 traceframe if the lookup succeeded.
9418 (tfile_fetch_registers, tfile_xfer_partial)
9419 (tfile_get_trace_state_variable_value): Make sure the remote
9420 traceframe matches gdb's current traceframe.
9421 * remote.c (remote_traceframe_number): New global.
9422 (remote_open_1): Set it to -1.
9423 (set_remote_traceframe): New function.
9424 (remote_fetch_registers, remote_store_registers)
9425 (remote_xfer_memory, remote_xfer_partial)
9426 (remote_get_trace_state_variable_value): Make sure the remote
9427 traceframe matches gdb's current traceframe.
9428 (remote_trace_find): If looking up a traceframe using any method
9429 other than by number, make sure the current remote traceframe
9430 matches gdb's current traceframe. Update the current remote
9431 traceframe if the lookup succeeded.
9432 * infrun.c (fetch_inferior_event): Adjust.
9433 * tracepoint.h (set_current_traceframe): Declare.
9434 (get_traceframe_number, set_traceframe_number): Add describing
9435 comments.
9436
e6ca34fc
PA
94372011-02-14 Pedro Alves <pedro@codesourcery.com>
9438
9439 Mark pieces of values as unavailable if the corresponding memory
9440 is unavailable.
9441
9442 * valops.c: Include tracepoint.h.
9443 (value_fetch_lazy): Use read_value_memory.
9444 (read_value_memory): New.
9445 * value.h (read_value_memory): Declare.
9446 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9447 * exec.c (section_table_available_memory): New function.
9448 * exec.h (section_table_available_memory): Declare.
9449
2a7498d8
PA
94502011-02-14 Pedro Alves <pedro@codesourcery.com>
9451
9452 * Makefile.in (SFILES): Add memrange.c.
9453 (HFILES_NO_SRCDIR): Add memrange.h.
9454 (COMMON_OBS): Add memrange.o.
9455 * memrange.c: New file.
9456 * memrange.h: New file.
9457 * tracepoint.c: Include memrange.h.
9458 (struct mem_range): Delete.
9459 (mem_range_s): Delete.
9460 (traceframe_available_memory): New function.
9461 * tracepoint.h (traceframe_available_memory): Declare.
9462
b3b9301e
PA
94632011-02-14 Pedro Alves <pedro@codesourcery.com>
9464
9465 * target.h (struct traceframe_info): Forward declare.
9466 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9467 (struct target_ops) <to_traceframe_info>: New field.
9468 (target_traceframe_info): New.
9469 * target.c (update_current_target): Inherit and default
9470 to_traceframe_info.
9471 * remote.c (PACKET_qXfer_traceframe_info): New.
9472 (remote_protocol_features): Register qXfer:traceframe-info:read.
9473 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9474 (remote_traceframe_info): New.
9475 (init_remote_ops): Install it.
9476 (_initialize_remote): Install "set/show remote traceframe-info"
9477 commands.
9478 * tracepoint.h (parse_traceframe_info): Declare.
9479 * tracepoint.c (struct mem_range): New.
9480 (mem_range_s): New typedef.
9481 (struct traceframe_info): New.
9482 (traceframe_info): New global.
9483 (free_traceframe_info): New function.
9484 (clear_traceframe_info): New function.
9485 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9486 info.
9487 (build_traceframe_info): New function.
9488 (tfile_traceframe_info): New function.
9489 (init_tfile_ops): Install tfile_traceframe_info.
9490 (traceframe_info_start_memory, free_result): New functions.
9491 (memory_attributes, traceframe_info_elements): New globals.
9492 (parse_traceframe_info, get_traceframe_info): New functions.
9493 * features/traceframe-info.dtd: New file.
9494 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9495
4e07d55f
PA
94962011-02-14 Pedro Alves <pedro@codesourcery.com>
9497
9498 Base support for <unavailable> value contents.
9499
4e07d55f
PA
9500 * value.h (value_bytes_available): Declare.
9501 (mark_value_bytes_unavailable): Declare.
9502 * value.c (struct range): New struct.
9503 (range_s): New typedef.
9504 (ranges_overlap): New function.
9505 (range_lessthan): New function.
9506 (ranges_contain_p): New function.
9507 (struct value) <unavailable>: New field.
9508 (value_bytes_available): New function.
9509 (mark_value_bytes_unavailable): New function.
9510 (require_not_optimized_out): Constify parameter.
9511 (require_available): New function.
9512 (value_contents_all, value_contents): Require all bytes be
9513 available.
9514 (value_free): Free `unavailable'.
9515 (value_copy): Copy `unavailable'.
9516 * valprint.h (val_print_unavailable): Declare.
9517 * valprint.c (valprint_check_validity): Rename `offset' parameter
9518 to `embedded_offset'. If printing a scalar, check whether the
9519 value chunk is available.
9520 (val_print_unavailable): New.
9521 (val_print_scalar_formatted): Check whether the value is
9522 available.
9523 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9524 pretty-printing unavailable values.
9525
bc9a5551
JK
95262011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9527
9528 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9529 * c-typeprint.c (c_type_print_args): Update the function comment. New
9530 variable param_type, initialize it. Remove const/volatile qualifiers
9531 for language_cplus and !show_artificial. Use param_type.
9532
93b55aa1
JK
95332011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9534
9535 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9536 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9537 * symtab.h (struct symtab) <next>: Comment extension.
9538
181d9476
YQ
95392011-02-12 Yao Qi <yao@codesourcery.com>
9540
9541 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9542
b708a5c7
JK
95432011-02-11 Yao Qi <yao@codesourcery.com>
9544
9545 * common/Makefile.in: Add copyright header.
9546
c5187ac6
PA
95472011-02-11 Pedro Alves <pedro@codesourcery.com>
9548
9549 * infrun.c (proceed): Move switching out and in of tfind mode from
9550 here ...
9551 (fetch_inferior_event): ... to here.
9552
4f3e6fb7
YQ
95532011-02-11 Yao Qi <yao@codesourcery.com>
9554
9555 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9556 libcommon.a.
9557 * configure.ac: Add common to sub dir.
9558 * configure: Regenerate.
9559
b708a5c7
JK
95602011-02-11 Yao Qi <yao@codesourcery.com>
9561
9562 Build libcommon.a.
9563
9564 * common/Makefile.in: New.
9565 * common/configure.ac: New.
9566 * common/aclocal.m4: New.
9567 * common/configure: Generate.
9568
2287cc7e
PA
95692011-02-10 Pedro Alves <pedro@codesourcery.com>
9570
9571 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9572 side of the parenthesis.
9573
9574 Merge from GCC:
9575 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9576 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9577
fd62cb89
MS
95782011-02-08 Michael Snyder <msnyder@vmware.com>
9579
9580 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9581
56d2815c
JK
95822011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9585 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9586 psubd and paddd.
9587
4f7d61a8
JK
95882011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9589
9590 PR 12361.
9591 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9592 phsubsw.
9593 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9594 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9595
54fcddd0
UW
95962011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9597
9598 * dwarf2read.c (read_subroutine_type): Set special calling
9599 convention flag for functions compiled by IBM XL C for OpenCL.
9600 * ppc-sysv-tdep.c: Include "dwarf2.h"
9601 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9602 calling convention.
9603 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9604 IBM OpenCL vector types calling convention.
9605 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9606 (ppc_sysv_abi_broken_return_value): Likewise.
9607 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9608 types calling convention.
9609 (ppc64_sysv_abi_return_value): Likewise.
9610 * spu-tdep.c: Include "dwarf2.h"
9611 (spu_return_value): Implement IBM OpenCL vector types calling
9612 convention.
9613
d6dafb7c
UW
96142011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9615
9616 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9617 correct ABI for AltiVec vector arguments.
9618
32b72a42
PA
96192011-02-07 Pedro Alves <pedro@codesourcery.com>
9620
9621 * valprint.c (val_print): Extend comment.
9622 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9623 interface explanation to val_print.
9624 (ada_val_print_array): Adjust comment to current interface.
9625 (print_field_values): Adjust comment to current interface.
9626 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9627 explanation to val_print.
9628 * f-valprint.c (f_val_print): Ditto.
9629 * jv-valprint.c (java_val_print): Ditto.
9630 * m2-valprint.c (m2_val_print): Ditto.
9631 * p-valprint.c (pascal_val_print): Ditto.
9632
9998af43
TJB
96332011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9634
9635 * breakpoint.c (parse_breakpoint_sals): Fix description.
9636
505500db 96372011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9638 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9639
9640 * python/py-inferior.c (python_on_normal_stop): New function.
9641 (python_on_resume): New function.
9642 (python_inferior_exit): New function.
9643 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9644 inferior_exit observers.
9645 * python/py-evtregistry.c: New file.
9646 * python/py-threadevent.c : New file.
9647 * python/py-event.c: New file.
9648 * python/py-evts.c: New file.
9649 * python/py-continueevent.c: New file.
9650 * python/py-bpevent.c: New file.
9651 * python/py-signalevent.c: New file.
9652 * python/py-exetiedevent.c: New file.
9653 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9654 Move struct breakpoint_object from here...
9655 * python/python-internal.h: ... to here.
9656 * python/py-event.h: New file.
9657 * python/py-events.h: New file.
9658 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9659 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9660 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9661 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9662 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9663 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9664 Add build rules for all the above.
9665
9e0ac564
TT
96662011-02-04 Tom Tromey <tromey@redhat.com>
9667
9668 * dwarf2read.c (dwarf2_section_empty_p): New function.
9669 (dwarf2_read_section): Use dwarf2_section_empty_p.
9670 (dwarf2_section_size): New function.
9671 (dwarf2_get_section_info): Unconditionally read section.
9672 (dwarf2_read_index): Use dwarf2_section_empty_p.
9673 (partial_read_comp_unit_head): Use dwarf2_section_size.
9674 (dwarf2_symbol_mark_computed): Likewise.
9675
eee5b35e
DD
96762011-02-04 David Daney <ddaney@caviumnetworks.com>
9677
9678 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9679
385203ed
DD
96802011-02-04 David Daney <ddaney@caviumnetworks.com>
9681
9682 * mips-linux-tdep.c: Include xml-syscall.h.
9683 (mips_linux_get_syscall_number): New function.
9684 (mips_linux_init_abi): Add calls to
9685 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9686 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9687 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9688 * syscalls/mips-n32-linux.xml: New file.
9689 * syscalls/mips-n64-linux.xml: New file.
9690 * syscalls/mips-o32-linux.xml: New file.
9691
9277c30c
UW
96922011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9693
9694 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9695 Complain about inverted range entries.
9696 (dwarf2_record_block_ranges): Likewise.
9697
a3be7890
TJB
96982011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9699
9700 Fix some typos.
9701 * breakpoint.c (update_watchpoint): Fix name of the
9702 update_global_location_list function.
9703 (print_one_breakpoint): Fix typo.
9704 (_initialize_breakpoint): Remove extra space in hbreak help
9705 string.
9706 * breakpoint.h (struct bp_location) <length>: Fix field
9707 description.
9708
041274d8
PA
97092011-02-04 Pedro Alves <pedro@codesourcery.com>
9710
9711 * regcache.c (registers_changed_ptid): Don't explictly always
9712 clear `current_regcache'. Only clear current_thread_ptid and
9713 current_thread_arch when PTID matches. Only reinit the frame
9714 cache if PTID matches the current inferior_ptid. Move alloca(0)
9715 call to ...
9716 (registers_changed): ... here.
9717
c1c2ab58
UW
97182011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9719
9720 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9721 starts with __stack_chk_guard as stack guard symbol.
9722
9011945e
AB
97232011-02-03 Andrew Burgess <aburgess@broadcom.com>
9724
9725 * disasm.c (compare_lines): Handle the end of sequence markers
9726 within the line table to better support disassembling over
9727 compilation unit boundaries.
9728
e0634ccf
UW
97292011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9730
9731 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9732 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9733 implementation even if no symbols are available.
9734 (thumb_analyze_prologue): Update call to skip_prologue_function.
9735 (arm_analyze_prologue): Likewise.
9736
0e9e9abd
UW
97372011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9738
9739 * arm-tdep.c: Include "observer.h".
9740 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9741 (arm_exidx_data_key): New static variable.
9742 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9743 (struct arm_exidx_data): Likewise.
9744 (arm_exidx_data_free): New function.
9745 (arm_compare_exidx_entries): Likewise.
9746 (arm_obj_section_from_vma): Likewise.
9747 (arm_exidx_new_objfile): Likewise.
9748 (arm_find_exidx_entry): Likewise.
9749 (arm_exidx_fill_cache): Likewise.
9750 (arm_exidx_unwind_sniffer): Likewise.
9751 (arm_exidx_unwind): New global variable.
9752 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9753 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9754 observer. Register arm_exidx_data_key as objfile data.
9755
2e9e421f
UW
97562011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9757
9758 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9759 due to accessing uninitialized variable. Fix indentation.
9760
580688f3
PA
97612011-02-02 Pedro Alves <pedro@codesourcery.com>
9762
9763 * c-valprint.c (c_value_print): When doing virtual base pointer
9764 adjustment, create a new value with adjusted contents rather than
9765 changing the contents of the value being printed (and getting it
9766 wrong).
9767
3d2c1d41
PA
97682011-02-02 Pedro Alves <pedro@codesourcery.com>
9769
9770 * xml-support.c (xml_find_attribute): New.
9771 (xinclude_start_include): Use it.
9772 * xml-support.h (xml_find_attribute): Declare.
9773 * memory-map.c (memory_map_start_memory)
9774 (memory_map_start_property): Use xml_find_attribute.
9775 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9776 xml_find_attribute.
9777 * remote.c (start_thread): Use xml_find_attribute.
9778 * solib-target.c (library_list_start_segment)
9779 (library_list_start_section, library_list_start_library)
9780 (library_list_start_list): Use xml_find_attribute.
9781 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9782 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9783 (tdesc_start_field): Use xml_find_attribute.
9784
0af3e2db
UW
97852011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9786
9787 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9788 (BUILD_OCL_VTYPES): Update.
9789
c1039e3c
JB
97902011-02-02 Joel Brobecker <brobecker@adacore.com>
9791
9792 * configure.ac: Work around non-GNU sed limitation when computing
9793 python version number.
9794 * configure: Regenerate.
9795
600ea1be
JK
97962011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9797
9798 Fix debug printing of TYPE_INSTANCE.
9799 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9800 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9801
56c12414
JK
98022011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9803
9804 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9805 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9806 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9807 * ada-operator.inc: Rename the file to ...
9808 * ada-operator.def: ... here, wrap all the entries by macro OP.
9809 * expprint.c (op_name_standard): Remove all the entries. Include
9810 "std-operator.def" instead.
9811 * expression.h (enum exp_opcode): Include "std-operator.def" and
9812 "ada-operator.def". Move all the entries ...
9813 * std-operator.def: ... here, wrap all the entries by macro OP.
9814
c52b559d
PP
98152011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9816
9817 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9818 * breakpoint.c (remove_jit_event_breakpoints): New function.
9819 * jit.c (jit_descriptor_addr): Delete.
9820 (registering_code): Delete.
9821 (clear_int): Delete.
9822 (jit_inferior_data): New variable.
9823 (struct jit_inferior_data): New type.
9824 (get_jit_inferior_data): New function.
9825 (jit_inferior_data_cleanup): New function.
9826 (jit_read_descriptor): Adjust.
9827 (jit_register_code): Adjust.
9828 (jit_breakpoint_re_set_internal): New function; move code here ...
9829 (jit_inferior_init): ... from here.
9830 (jit_breakpoint_re_set): Adjust.
9831 (jit_reset_inferior_data_and_breakpoints): New function.
9832 (jit_inferior_created_observer): Adjust.
9833 (jit_inferior_exit_hook): Adjust.
9834 (jit_executable_changed_observer): New function.
9835 (jit_event_handler): Adjust.
9836 (_initialize_jit): Adjust.
9837
e839132d
MS
98382011-01-31 Michael Snyder <msnyder@vmware.com>
9839
9840 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9841 line.
9842
47a80e90
TT
98432011-01-31 Tom Tromey <tromey@redhat.com>
9844
9845 PR python/12216:
9846 * python/python.c (execute_gdb_command): Call
9847 prevent_dont_repeat.
9848 * top.c (suppress_dont_repeat): New global.
9849 (dont_repeat): Use it.
9850 (prevent_dont_repeat): New function.
9851 * command.h (prevent_dont_repeat): Declare.
9852
45a43567
TT
98532011-01-31 Tom Tromey <tromey@redhat.com>
9854
9855 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9856 * python/py-breakpoint.c (bppy_set_silent): Use
9857 breakpoint_set_silent.
9858 (bppy_set_thread): Use breakpoint_set_thread.
9859 (bppy_set_task): Use breakpoint_set_task.
9860 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9861 (breakpoint_set_task): Declare.
9862 (make_breakpoint_silent): Remove.
9863 * breakpoint.c (breakpoint_set_silent): New function.
9864 (breakpoint_set_thread): Likewise.
9865 (breakpoint_set_task): Likewise.
9866 (make_breakpoint_silent): Remove.
9867
09d682a4
TT
98682011-01-31 Tom Tromey <tromey@redhat.com>
9869
9870 * breakpoint.h (user_breakpoint_p): Declare.
9871 * breakpoint.c (user_breakpoint_p): New function.
9872 (breakpoint_1): Use it.
9873 (save_breakpoints): Likewise.
9874
9c4ea6c5
JB
98752011-01-31 Joel Brobecker <brobecker@adacore.com>
9876
9877 * configure.ac: Add handling of Python distribution on Windows.
9878 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9879 sysconfig variables are not defined, then do not use them.
9880 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9881 instead. On Windows, return all paths using forward-slashes
9882 rather than backslashes.
9883
ac534cba
JB
98842011-01-31 Joel Brobecker <brobecker@adacore.com>
9885
9886 * configure.ac: Remove fallback behavior for building
9887 against Python. Remove tweaking of Python include path.
9888 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9889 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9890 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9891 Always restore CPPFLAGS and LIBS after linking test.
9892 * configure: Regenerated.
9893 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9894 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9895 * python/python-internal.h: Adjust includes of Python .h files.
9896
c2f0d045
JB
98972011-01-31 Joel Brobecker <brobecker@adacore.com>
9898
9899 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9900 in error message.
9901
6b0c4c1f
JB
99022011-01-31 Joel Brobecker <brobecker@adacore.com>
9903
9904 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9905 value test.
9906
672c9795
YQ
99072011-01-31 Yao Qi <yao@codesourcery.com>
9908
9909 * arm-linux-nat.c: Update calls to regcache_register_status
9910 instead of regcache_valid_p.
9911 * aix-thread.c: Likewise.
9912 * i386gnu-nat.c: Likewise.
9913
80b23b6a
JK
99142011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9915
9916 Fix crash.
9917 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9918 touching TYPE_FIELD_ARTIFICIAL.
9919
4cd712bd
RE
99202011-01-28 Richard Earnshaw <rearnsha@arm.com>
9921
9922 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9923 Committers.
9924
ffd5ec24
PA
99252011-01-28 Pedro Alves <pedro@codesourcery.com>
9926
9927 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9928 selected, don't try iterating over the traceframe's blocks.
9929 (tfile_has_stack): If there's no traceframe selected, then there's
9930 no stack.
9931 (tfile_has_registers): If there's no traceframe selected, then
9932 there's no registers.
9933
e8c9e0a1
PA
99342011-01-28 Pedro Alves <pedro@codesourcery.com>
9935
9936 * target.c (memory_xfer_partial): No need to restore shadows if we
9937 haven't read anything.
9938
de15c4ab
PA
99392011-01-28 Pedro Alves <pedro@codesourcery.com>
9940
9941 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9942 and val_print_scalar_formatted.
9943
9f41c731
PA
99442011-01-27 Pedro Alves <pedro@codesourcery.com>
9945
9946 * tracepoint.c (tfile_read): New.
9947 (tfile_open): Use it.
9948 (tfile_get_traceframe_address): Use it.
9949 (tfile_trace_find): Use it.
9950 (walk_blocks_callback_func): New typedef.
9951 (match_blocktype): New function.
9952 (traceframe_walk_blocks): New function.
9953 (traceframe_find_block_type): New function.
9954 (tfile_fetch_registers, tfile_xfer_partial)
9955 (tfile_get_trace_state_variable_value): Use
9956 traceframe_find_block_type and tfile_read.
9957
cdefc55d
KB
99582011-01-26 Kevin Buettner <kevinb@redhat.com>
9959
9960 * remote-mips.c: Add internationalization mark ups. Remove
9961 trailing \n from already marked up strings.
9962
a81766d8
TT
99632011-01-26 Tom Tromey <tromey@redhat.com>
9964
9965 * python/py-prettyprint.c (print_string_repr): Clear
9966 'addressprint' option when calling val_print_string.
9967 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9968 option when calling val_print_string.
9969
74aedc46
TT
99702011-01-26 Tom Tromey <tromey@redhat.com>
9971
9972 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9973 GDB_PY_LL_ARG.
9974 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9975 macros.
9976 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9977 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9978 (gdb_py_long_as_ulongest): New defines.
9979 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9980 (gdb_py_int_as_long): Declare.
9981 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9982 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9983 (valpy_long): Add comment.
9984 * python/py-utils.c (get_addr_from_python): Use
9985 gdb_py_long_as_ulongest. Handle overflow properly.
9986 (gdb_py_object_from_longest): New function.
9987 (gdb_py_object_from_ulongest): Likewise.
9988 (gdb_py_int_as_long): Likewise.
9989 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9990 * python/py-symtab.c (salpy_get_pc): Use
9991 gdb_py_long_from_ulongest.
9992 (salpy_get_line): Use PyInt_FromLong.
9993 * python/py-param.c (set_parameter_value): Use
9994 gdb_py_int_as_long.
9995 * python/py-lazy-string.c (stpy_get_address): Use
9996 gdb_py_long_from_ulongest.
9997 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9998 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9999 * python/py-breakpoint.c (bppy_set_thread): Use
10000 gdb_py_int_as_long.
10001 (bppy_set_task): Likewise.
10002 (bppy_set_ignore_count): Likewise.
10003 (bppy_set_hit_count): Likewise.
10004 * python/py-block.c (blpy_get_start): Use
10005 gdb_py_object_from_ulongest.
10006 (blpy_get_end): Likewise.
10007 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10008
e4f6d2ec
TJB
100092011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10010
10011 PR/symtab 11766:
10012 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10013 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10014 equality test for objfile, initialize addr_low if needed.
10015
b30aa278
PA
100162011-01-25 Pedro Alves <pedro@codesourcery.com>
10017
10018 * tui/tui-regs.c (tui_register_format): Remove dead code.
10019
ab2188aa
PA
100202011-01-25 Pedro Alves <pedro@codesourcery.com>
10021
10022 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10023 instead of print_scalar_formatted.
10024 (print_scalar_formatted): Don't handle 's' format strings here,
10025 and add an assertion that we never see such format here.
10026 * valprint.h (val_print_scalar_formatted): Declare.
10027 * valprint.c (val_print_scalar_formatted): New.
10028 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10029 instead of print_scalar_formatted.
10030 * jv-valprint.c (java_val_print): Ditto.
10031 * p-valprint.c (pascal_val_print): Ditto.
10032 * ada-valprint.c (ada_val_print_1): Ditto.
10033 * f-valprint.c (f_val_print): Ditto.
10034 * infcmd.c (registers_info): Ditto.
10035 * m2-valprint.c (m2_val_print): Ditto.
10036
66d61a4c
PA
100372011-01-25 Pedro Alves <pedro@codesourcery.com>
10038
10039 * m2-valprint.c (print_unbounded_array): Pass
10040 value_contents_for_printing rather than value_contents, to
10041 m2_print_array_contents. Also pass in the value.
10042
831adc1f
JK
100432011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10044
10045 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10046 (save_gdb_index_command): Switch to .gdb_index version 4.
10047
20622269
PA
100482011-01-25 Pedro Alves <pedro@codesourcery.com>
10049
10050 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10051 than frame_register, and always pass a valid value to val_print.
10052
585fdaa1
PA
100532011-01-25 Pedro Alves <pedro@codesourcery.com>
10054
10055 Centralize printing "<optimized out>".
10056
10057 * valprint.h (val_print_optimized_out): Declare.
10058 * cp-valprint.c (cp_print_value_fields): Use
10059 val_print_optimized_out.
10060 * jv-valprint.c (java_print_value_fields): Ditto.
10061 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10062 * printcmd.c (print_formatted): Ditto.
10063 * valprint.c (valprint_check_validity): Ditto.
10064 (value_check_printable): Ditto.
10065 (val_print_optimized_out): New.
10066
29ec5263
PA
100672011-01-25 Pedro Alves <pedro@codesourcery.com>
10068
10069 * infcmd.c (default_print_registers_info): Allocate values so to
10070 never pass a NULL value to val_print.
10071
de4127a3
PA
100722011-01-25 Pedro Alves <pedro@codesourcery.com>
10073
10074 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10075 boolean. Make sure to always pass a value that matches the
10076 contents buffer to callees. Preserve `address' for following
10077 iterations.
10078 * value.c (value_contents_for_printing_const): New.
10079 (value_address): Constify value argument.
10080 * value.h (value_contents_for_printing_const): Declare.
10081 (value_address): Constify value argument.
10082
ee99023e
PA
100832011-01-25 Pedro Alves <pedro@codesourcery.com>
10084
10085 * regcache.c (struct regcache_descr): Rename
10086 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10087 and sizeof_cooked_register_valid_p to
10088 sizeof_cooked_register_status.
10089 (init_regcache_descr): Adjust.
10090 (struct regcache): Rename register_valid_p field to
10091 register_status.
10092 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10093 (do_cooked_read): Adjust.
10094 (regcache_valid_p): Rename to ...
10095 (regcache_register_status): ... this. Adjust.
10096 (regcache_invalidate): Adjust.
10097 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10098 Adjust.
10099 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10100 as unavailable, not valid.
10101 (regcache_dump): Adjust.
10102 * regcache.h (enum register_status): New.
10103 (regcache_register_status): Declare.
10104 (regcache_invalidate): Delete declaration.
10105 * corelow.c (get_core_registers): Adjust.
10106 * tracepoint.c (tfile_fetch_registers): Adjust.
10107 * trad-frame.c (REG_VALUE): Rename to ...
10108 (TF_REG_VALUE): ... this.
10109 (REG_UNKNOWN): Rename to ...
10110 (TF_REG_UNKNOWN): ... this.
10111 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10112 * mi/mi-main.c (register_changed_p): Adjust.
10113
99e42fd8
PA
101142011-01-25 Pedro Alves <pedro@codesourcery.com>
10115
10116 * regcache.c (struct regcache_descr): Remove outdated comment.
10117 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10118 overallocate hack.
10119 (regcache_xmalloc): Rename to ...
10120 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10121 Allocate the regcache type accordingly.
10122 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10123 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10124 cooked registers, not raw.
10125 (regcache_dup_no_passthrough): Delete.
10126 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10127 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10128 mention obsolete write_register_bytes.
10129 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10130
f7605bc2
PA
101312011-01-25 Pedro Alves <pedro@codesourcery.com>
10132
10133 Stop remote_read_bytes from handling partial reads itself.
10134
10135 * remote-fileio.c: Include target.h.
10136 (remote_fileio_write_bytes): Delete.
10137 (remote_fileio_func_open, remote_fileio_func_write)
10138 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10139 target_read_memory.
10140 (remote_fileio_func_stat): Use target_read_memory and
10141 target_write_memory.
10142 (remote_fileio_func_gettimeofday): Use target_write_memory.
10143 (remote_fileio_func_system): Use target_read_memory.
10144 * remote.c (remote_write_bytes): Make it static.
10145 (remote_read_bytes): Don't handle partial reads here.
10146 * remote.h (remote_read_bytes): Delete declaration.
10147
efc0eabd
PA
101482011-01-25 Pedro Alves <pedro@codesourcery.com>
10149
10150 Simplify XML parsing a bit.
10151
10152 * xml-support.h (gdb_xml_parse_quick): Declare.
10153 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10154 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10155 parameter.
10156 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10157 gdb_xml_create_parser_and_cleanup_1.
10158 (gdb_xml_parse_quick): New.
10159 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10160 * osdata.c (osdata_parse): Ditto.
10161 * remote.c (remote_threads_info): Ditto.
10162 * solib-target.c (solib_target_parse_libraries): Ditto.
10163 * xml-syscall.c (syscall_parse_xml): Ditto.
10164 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10165
314d366a
KB
101662011-01-24 Kevin Buettner <kevinb@redhat.com>
10167
10168 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10169 with remote-mips.o added to gdb_target_obs.
10170 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10171
a491d753
PA
101722011-01-24 Pedro Alves <pedro@codesourcery.com>
10173
10174 * ada-valprint.c (val_print_packed_array_elements): Pass the
10175 correct struct value to val_print.
10176 (ada_val_print_1): Ditto.
10177
490f124f
PA
101782011-01-24 Pedro Alves <pedro@codesourcery.com>
10179
10180 Don't lose embedded_offset in printing routines throughout.
10181
10182 * valprint.h (val_print_array_elements): Change prototype.
10183 * valprint.c (val_print_array_elements): Add `embedded_offset'
10184 parameter, and adjust to pass it down to val_print, while passing
10185 `valaddr' or `address' unmodified. Take embedded_offset into
10186 account when checking repetitions.
10187 * c-valprint.c (c_val_print): Pass embedded_offset to
10188 val_print_array_elements instead of adjusting `valaddr' and
10189 `address'.
10190 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10191 embedded_offset to val_print_array_elements instead of adjusting
10192 `valaddr'.
10193 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10194 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10195 val_print_array_elements and pascal_object_print_value_fields
10196 instead of adjusting `valaddr'.
10197 (pascal_object_print_value_fields): Add `offset' parameter, and
10198 adjust to use it.
10199 (pascal_object_print_value): Add `offset' parameter, and adjust to
10200 use it.
10201 (pascal_object_print_static_field): Use
10202 value_contents_for_printing/value_embedded_offset, rather than
10203 value_contents.
10204 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10205 parameter, and adjust to use it. Use
10206 value_contents_for_printing/value_embedded_offset, rather than
10207 value_contents.
10208 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10209 (ada_val_print_array): Add `offset' parameter, and adjust to use
10210 it.
10211 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10212 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10213 Instead work with offsets. Use
10214 value_contents_for_printing/value_embedded_offset, rather than
10215 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10216 and use value_from_pointer to extract a target pointer, rather
10217 than value_from_longest.
10218 (print_variant_part): Add `offset' parameter. Replace
10219 `outer_valaddr' parameter by a new `outer_offset' parameter.
10220 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10221 (ada_value_print): Use
10222 value_contents_for_printing/value_embedded_offset, rather than
10223 value_contents.
10224 (print_record): Add `offset' parameter, and adjust to pass it
10225 down.
10226 (print_field_values): Add `offset' parameter. Replace
10227 `outer_valaddr' parameter by a new `outer_offset' parameter.
10228 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10229 Use value_contents_for_printing/value_embedded_offset, rather than
10230 value_contents.
10231 * d-valprint.c (dynamic_array_type): Use
10232 value_contents_for_printing/value_embedded_offset, rather than
10233 value_contents.
10234 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10235 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10236 (java_print_value_fields): Take `offset' into account. Don't
10237 re-adjust `valaddr'. Instead pass down adjusted offsets.
10238 (java_val_print): Take `embedded_offset' into account. Pass it to
10239 java_print_value_fields.
10240 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10241 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10242 down adjusted offsets.
10243 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10244 (f_val_print): Take `embedded_offset' into account.
10245
7bfc9434
JB
102462011-01-21 Joel Brobecker <brobecker@adacore.com>
10247
10248 * inflow.c: Include "gdbcmd.h".
10249 (interactive_mode): New static global, moved here from top.c.
10250 (show_interactive_mode): New function, moved here from top.c.
10251 use gdb_has_a_terminal instead of input_from_terminal_p to
10252 determine the current mode.
10253 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10254 setting.
10255 (_initialize_inflow): Add the "set/show interactive-mode"
10256 commands. Moved here from top.c, after having adjusted slightly
10257 the help text.
10258 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10259 to inflow.c.
10260 (input_from_terminal_p): Remove handling of "interactive-mode"
10261 setting, moved to infow.c.
10262 (init_main): Remove creation of the "set/show interactive-mode"
10263 commands, moved to inflow.c.
10264
44603653
JB
102652011-01-19 Joel Brobecker <brobecker@adacore.com>
10266
10267 * NEWS: Add entry for native ia64-hpux support.
10268
4694da01
TT
102692011-01-19 Tom Tromey <tromey@redhat.com>
10270
10271 PR mi/8618:
10272 * thread.c (free_thread): Free 'name'.
10273 (print_thread_info): Emit thread name. Change CLI output.
10274 (thread_name_command): New function.
10275 (do_captured_thread_select): Emit newline.
10276 (_initialize_thread): Register 'thread name' command.
10277 * target.h (struct target_ops) <to_thread_name>: New field.
10278 (target_thread_name): New macro.
10279 * target.c (update_current_target): Handle to_thread_name.
10280 * python/py-infthread.c (thpy_get_name): New function.
10281 (thpy_set_name): Likewise.
10282 (thread_object_getset): Add "name".
10283 * linux-nat.c (linux_nat_thread_name): New function.
10284 (linux_nat_add_target): Set to_thread_name.
10285 * gdbthread.h (struct thread_info) <name>: New field.
10286
10d44370
JB
102872011-01-18 Joel Brobecker <brobecker@adacore.com>
10288
10289 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10290 (ada_val_print_1): Likewise.
10291
e3acb115
JB
102922011-01-18 Joel Brobecker <brobecker@adacore.com>
10293
10294 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10295 upper limit address is not greater than the function end address
10296 when the upper limit could not be computed using the debugging
10297 info.
10298
dc92e161
TT
102992011-01-17 Tom Tromey <tromey@redhat.com>
10300
10301 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10302 get_regcomp_error.
10303 * utils.c: Include gdb_regex.h.
10304 (do_regfree_cleanup): New function.
10305 (make_regfree_cleanup): Likewise.
10306 (get_regcomp_error): Likewise.
10307 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10308
f55af66d
TT
103092011-01-17 Tom Tromey <tromey@redhat.com>
10310
10311 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10312 re_compile_fastmap.
10313
a5a44b53
PM
103142011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10315
10316 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10317 for internal variables.
10318 (last_was_structop): New static variable.
10319 (COMPLETE): New token.
10320 (field_exp): New rule to group all '.' suffix handling.
10321 Add mark_struct_expression calls when approriate to be able
10322 to correctly find fields for completion.
10323 (yylex): Adapt to handle field completion and set INTVAR when
10324 required.
10325
2c291032
YQ
103262011-01-14 Yao Qi <yao@codesourcery.com>
10327
10328 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10329 save_reggroup, restore_reggroup and all_reggroup.
10330
447b483c
JB
103312011-01-14 Joel Brobecker <brobecker@adacore.com>
10332
10333 * ada-valprint. (ada_printchar): Use the correct type length
10334 in call to ada_emit_char.
10335 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10336
7b64a93b
PM
103372011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10338
10339 * solib-som.h (hpux_major_release): Declare variable here.
10340 * solib-som.c: Remove <sys/utsname.h> header.
10341 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10342 (hpux_major_release): Make global, change default value to
10343 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10344 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10345 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10346 Add "solib-som.h" header.
10347 (set_hpux_major_release): New function.
10348 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10349
4e18c053
MF
103502011-01-14 Mike Frysinger <vapier@gentoo.org>
10351
10352 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10353
a9df6b22
JB
103542011-01-14 Joel Brobecker <brobecker@adacore.com>
10355
10356 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10357 new-line at end of warning message.
10358 (ia64_hpux_store_register): Remove trailing new-line at end of
10359 error message.
10360 * ia64-hpux-tdep.c: Rephrase comment.
10361 * solib-ia64-hpux.c (struct dld_info): Change type of field
10362 dld_flags from "long long" to ULONGEST.
10363
ecb956dd
PA
103642011-01-14 Pedro Alves <pedro@codesourcery.com>
10365
10366 * target.h (deprecated_child_ops): Delete declaration.
10367 * target.c (deprecated_child_ops): Delete definition.
10368
76adfcae
PA
103692011-01-14 Pedro Alves <pedro@codesourcery.com>
10370
10371 * Makefile.in (hpux-thread.o): Delete rule.
10372 * configure.ac: Don't check for HPUX DCE threads support.
10373 * configure, config.in: Regenerate.
10374 * hppa-hpux-nat.c (child_suppress_run): Delete.
10375 (hppa_hpux_child_can_run): Delete.
10376 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10377 * hpux-thread.c: Delete.
10378
042e866e
JB
103792011-01-13 Joel Brobecker <brobecker@adacore.com>
10380
10381 * hpux-thread.c (hpux_pid_to_str): Delete.
10382
4ffa5a33
JB
103832011-01-13 Joel Brobecker <brobecker@adacore.com>
10384
10385 * ada-valprint.c (ada_emit_char): Remove strange code.
10386 Check that c is <= UCHAR_MAX before passing it to isascii.
10387 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10388
de8fa76c
JB
103892011-01-13 Joel Brobecker <brobecker@adacore.com>
10390
10391 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10392 to the case where instream is stdin.
10393
c4de7027
JB
103942011-01-13 Joel Brobecker <brobecker@adacore.com>
10395
10396 * ia64-tdep.h (struct regcache): Forward declare.
10397 (struct ia64_infcall_ops): New struct type.
10398 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10399 and "infcall_ops".
10400 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10401 Renames ia64_find_global_pointer.
10402 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10403 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10404 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10405 methods.
10406 (ia64_infcall_ops): New static global constant.
10407 (ia64_gdbarch_init): Set tdep->infcall_ops.
10408 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10409 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10410 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10411 (ia64_hpux_dummy_code): New static global constant.
10412 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10413 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10414 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10415 New function.
10416 (ia64_hpux_infcall_ops): New static global constant.
10417 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10418 for inferior function calls to work properly on ia64-hpux.
10419
77ca787b
JB
104202011-01-13 Joel Brobecker <brobecker@adacore.com>
10421
10422 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10423 * ia64-tdep.h (struct frame_info): forward declaration.
10424 (struct gdbarch_tdep): Add field size_of_register_frame.
10425 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10426 to determine the size of the register frame.
10427 (ia64_size_of_register_frame): New function.
10428 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10429 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10430 (IA64_HPUX_UREG_REASON): New macro.
10431 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10432 New functions.
10433 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10434 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10435 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10436 objects.
10437
92c9a463
JB
104382011-01-13 Joel Brobecker <brobecker@adacore.com>
10439
10440 Add support for ia64-hpux.
10441 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10442 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10443
10444 * configure.host: Add handling for ia64-hpux hosts. Add associated
10445 floatformats.
10446 * configure.tgt: Add handling for ia64-hpux targets.
10447 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10448 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10449 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10450
f688d93f
JB
104512011-01-13 Joel Brobecker <brobecker@adacore.com>
10452
10453 [ttrace] Compute thread list immediately after attach.
10454 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10455 New subprogram.
10456 (inf_ttrace_attach): Use it.
10457
1b89e62f
JB
104582011-01-13 Joel Brobecker <brobecker@adacore.com>
10459
10460 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10461 if we could not determine the frame's function address. Instead,
10462 use the frame's PC, and then continue.
10463
3e5e6e2a
JB
104642011-01-13 Joel Brobecker <brobecker@adacore.com>
10465
10466 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10467 not already defined.
10468
825d6d8a
JB
104692011-01-13 Joel Brobecker <brobecker@adacore.com>
10470
10471 * ia64-tdep.c (ia64_struct_type_p): New function.
10472 (ia64_extract_return_value): Handle integral values that are
10473 less than 8 bytes long.
10474 (ia64_push_dummy_call): Likewise.
10475
7458e667
JB
104762011-01-13 Joel Brobecker <brobecker@adacore.com>
10477
10478 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10479 floatformat_ia64_ext.
10480 (floatformat_ia64_ext_big): New static const.
10481 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10482
1b05df00
TT
104832011-01-12 Tom Tromey <tromey@redhat.com>
10484
10485 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10486 messages.
10487 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10488 (mi_cmd_thread_list_ids): Likewise.
10489 (mi_cmd_data_list_changed_registers): Likewise.
10490 (mi_cmd_data_list_register_values): Likewise.
10491 (mi_cmd_data_write_register_values): Likewise.
10492 (mi_cmd_data_evaluate_expression): Likewise.
10493 (mi_cmd_data_read_memory): Likewise.
10494 (mi_cmd_data_read_memory_bytes): Likewise.
10495 (mi_cmd_data_write_memory): Likewise.
10496 (mi_cmd_enable_timings): Likewise.
10497 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10498 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10499 (mi_cmd_var_delete): Likewise.
10500 (mi_cmd_var_set_format): Likewise.
10501 (mi_cmd_var_show_format): Likewise.
10502 (mi_cmd_var_info_num_children): Likewise.
10503 (mi_cmd_var_list_children): Likewise.
10504 (mi_cmd_var_info_type): Likewise.
10505 (mi_cmd_var_info_expression): Likewise.
10506 (mi_cmd_var_show_attributes): Likewise.
10507 (mi_cmd_var_assign): Likewise.
10508 (mi_cmd_var_update): Likewise.
10509 (mi_cmd_enable_pretty_printing): Likewise.
10510 (mi_cmd_var_set_update_range): Likewise.
10511 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10512 messages.
10513 (mi_cmd_target_file_put): Likewise.
10514 (mi_cmd_target_file_delete): Likewise.
10515 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10516 messages.
10517 (mi_cmd_stack_info_depth): Likewise.
10518 (mi_cmd_stack_list_locals): Likewise.
10519 (mi_cmd_stack_list_args): Likewise.
10520 (mi_cmd_stack_select_frame): Likewise.
10521 (mi_cmd_stack_select_frame): Likewise.
10522 (mi_cmd_stack_info_frame): Likewise.
10523 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10524 messages.
10525 (mi_cmd_file_list_exec_source_files): Likewise.
10526 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10527 (mi_cmd_env_cd): Likewise.
10528 (mi_cmd_env_path): Likewise.
10529 (mi_cmd_env_dir): Likewise.
10530 (mi_cmd_inferior_tty_show): Likewise.
10531 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10532 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10533 (mi_cmd_break_watch): Likewise.
10534
ad422571
TJB
105352011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10536
10537 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10538 (ppc_linux_insert_hw_breakpoint): Likewise.
10539 (ppc_linux_remove_hw_breakpoint): Likewise.
10540 (ppc_linux_insert_watchpoint): Likewise.
10541
c2ff108b
JK
105422011-01-12 Andrew Burgess <aburgess@broadcom.com>
10543 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 PR fortran/11104 and DWARF unbound arrays detection.
10546 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10547 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10548 unspecified upper bound.
10549 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10550 variables array_size_array, tmp_type and offset_item. New variable
10551 array. Remove call to f77_get_upperbound. New variables array_type
10552 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10553 the final call to deprecated_set_value_type.
10554
41e8491f
JK
105552011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10556
10557 Make value allocations more lazy.
10558 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10559 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10560 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10561 instead of allocate_value and set_value_lazy.
10562 * findvar.c (value_of_register_lazy): Likewise.
10563 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10564 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10565 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10566 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10567 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10568 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10569 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10570 the end, remove set_value_lazy there.
10571 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10572 instead of allocate_value and set_value_lazy when possible.
10573 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10574 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10575 of allocate_value and set_value_lazy.
10576 (value_from_contents_and_address): Use allocate_value_lazy instead of
10577 allocate_value and set_value_lazy when possible.
10578
b716877b
AB
105792011-01-12 Andrew Burgess <aburgess@broadcom.com>
10580
10581 * disasm.c (dump_insns): Support dumping opcodes for MI.
10582 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10583 dumping of instruction opcodes.
10584
d5ae309f
JB
105852011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10586
10587 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10588 appropiately.
10589
98871305
TT
105902011-01-11 Tom Tromey <tromey@redhat.com>
10591
10592 * thread.c (do_captured_thread_select): Emit newline before
10593 printing frame.
10594
c378eb4e
MS
105952011-01-11 Michael Snyder <msnyder@vmware.com>
10596
10597 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10598 * score-tdep.c: Ditto.
10599 * score-tdep.h: Ditto.
10600 * ser-base.c: Ditto.
10601 * ser-go32.c: Ditto.
10602 * serial.c: Ditto.
10603 * serial.h: Ditto.
10604 * ser-mingw.c: Ditto.
10605 * ser-pipe.c: Ditto.
10606 * ser-tcp.c: Ditto.
10607 * ser-unix.c: Ditto.
10608 * sh64-tdep.c: Ditto.
10609 * shnbsd-nat.c: Ditto.
10610 * sh-tdep.c: Ditto.
10611 * sh-tdep.h: Ditto.
10612 * solib.c: Ditto.
10613 * solib-darwin.c: Ditto.
10614 * solib-frv.c: Ditto.
10615 * solib.h: Ditto.
10616 * solib-irix.c: Ditto.
10617 * solib-osf.c: Ditto.
10618 * solib-pa64.c: Ditto.
10619 * solib-som.c: Ditto.
10620 * solib-spu.c: Ditto.
10621 * solib-sunos.c: Ditto.
10622 * solib-svr4.c: Ditto.
10623 * solist.h: Ditto.
10624 * sol-thread.c: Ditto.
10625 * somread.c: Ditto.
10626 * source.c: Ditto.
10627 * source.h: Ditto.
10628 * sparc64-linux-tdep.c: Ditto.
10629 * sparc64-tdep.c: Ditto.
10630 * sparc-linux-nat.c: Ditto.
10631 * sparc-linux-tdep.c: Ditto.
10632 * sparc-sol2-nat.c: Ditto.
10633 * sparc-sol2-tdep.c: Ditto.
10634 * sparc-tdep.c: Ditto.
10635 * sparc-tdep.h: Ditto.
10636 * spu-tdep.c: Ditto.
10637 * stabsread.c: Ditto.
10638 * stabsread.h: Ditto.
10639 * stack.c: Ditto.
10640 * symfile.c: Ditto.
10641 * symfile.h: Ditto.
10642 * symmisc.c: Ditto.
10643 * symtab.c: Ditto.
10644 * symtab.h: Ditto.
10645 * target.c: Ditto.
10646 * target-descriptions.c: Ditto.
10647 * target-descriptions.h: Ditto.
10648 * target.h: Ditto.
10649 * target-memory.c: Ditto.
10650 * terminal.h: Ditto.
10651 * thread.c: Ditto.
10652 * top.c: Ditto.
10653 * tracepoint.c: Ditto.
10654 * tracepoint.h: Ditto.
10655 * trad-frame.h: Ditto.
10656 * typeprint.c: Ditto.
10657
581e13c1
MS
106582011-01-11 Michael Snyder <msnyder@vmware.com>
10659
10660 * ui-file.c: Comment cleanup, mostly periods and spaces.
10661 * ui-file.h: Ditto.
10662 * ui-out.c: Ditto.
10663 * ui-out.h: Ditto.
10664 * utils.c: Ditto.
10665 * v850-tdep.c: Ditto.
10666 * valarith.c: Ditto.
10667 * valops.c: Ditto.
10668 * valprint.c: Ditto.
10669 * valprint.h: Ditto.
10670 * value.c: Ditto.
10671 * value.h: Ditto.
10672 * varobj.c: Ditto.
10673 * varobj.h: Ditto.
10674 * vax-tdep.c: Ditto.
10675 * vec.c: Ditto.
10676 * vec.h: Ditto.
10677 * version.h: Ditto.
10678 * windows-nat.c: Ditto.
10679 * windows-tdep.c: Ditto.
10680 * xcoffread.c: Ditto.
10681 * xcoffsolib.c: Ditto.
10682 * xml-support.c: Ditto.
10683 * xstormy16-tdep.c: Ditto.
10684 * xtensa-tdep.c: Ditto.
10685 * xtensa-tdep.h: Ditto.
10686
90e4670f
TJB
106872011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10688
10689 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10690 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10691
e09342b5
TJB
106922011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10693 Thiago Jung Bauermann <bauerman@br.ibm.com>
10694
10695 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10696 * breakpoint.h
e09342b5
TJB
10697 (struct breakpoint_ops) <resources_needed>: New method.
10698 Initialize to NULL in all existing breakpoint_ops instances.
10699 (struct breakpoint) <exact>: New field.
10700 (target_exact_watchpoints): Declare external global.
10701 * breakpoint.c (target_exact_watchpoints): New global flag.
10702 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10703 b->enable_state to bp_enabled before calling
10704 hw_watchpoint_used_count.
10705 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10706 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10707 if available.
10708 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10709 if the watchpoint is exact.
10710 (resources_needed_watchpoint): New function.
10711 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10712 (watch_command_1): Set b->exact if the user asked for an exact
10713 watchpoint and one can be set.
10714 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10715 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10716 the user asks for an exact watchpoint and one can be set. Return
10717 number of needed debug registers to watch the expression.
10718 * gdbtypes.c (is_scalar_type): New function, based on
10719 valprint.c:scalar_type_p.
10720 (is_scalar_type_recursive): New function.
10721 * gdbtypes.h (is_scalar_type_recursive): Declare.
10722 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10723 handle regions when ranged watchpoints are available.
10724 (create_watchpoint_request): New function.
10725 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10726 create_watchpoint_request.
10727 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10728 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10729 `set powerpc' and `show powerpc' commands.
10730 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10731 Mention documentation comment in the target macro.
10732 (target_region_ok_for_hw_watchpoint): Document return value.
10733
9fa40276
TJB
107342011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10735
10736 * breakpoint.c (update_watchpoint): Decide on using a software or
10737 hardware watchpoint after the bp_locations are created.
10738
77b06cd7
TJB
107392010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10740
10741 Convert hardware watchpoints to use breakpoint_ops.
10742 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10743 <insert_location>: ... this. Return int instead of void.
10744 Accept pointer to struct bp_location instead of pointer to
10745 struct breakpoint. Adapt all implementations.
f2eb0bc8 10746 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10747 <remove_location>: ... this. Accept pointer to struct bp_location
10748 instead of pointer to struct breakpoint. Adapt all implementations.
10749 * breakpoint.c (insert_catchpoint): Delete function.
10750 (insert_bp_location): Call the watchpoint or catchpoint's
10751 breakpoint_ops.insert method.
10752 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10753 breakpoint_ops.remove method.
10754 (insert_watchpoint, remove_watchpoint): New functions.
10755 (watchpoint_breakpoint_ops): New structure.
10756 (watch_command_1): Initialize the OPS field.
10757 * inf-child.c (inf_child_insert_fork_catchpoint)
10758 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10759 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10760 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10761 Delete functions.
10762 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10763 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10764 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10765 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10766 * target.c (update_current_target): Change default implementation of
10767 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10768 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10769 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10770 to_set_syscall_catchpoint to return_one.
10771 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10772 (debug_to_insert_exec_catchpoint): Report return value.
10773 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10774 (to_insert_exec_catchpoint): Change declaration to return int instead
10775 of void.
10776
9b20d036
MS
107772011-01-11 Michael Snyder <msnyder@vmware.com>
10778
10779 * arm-tdep.c: Internationalization.
10780 * c-lang.c: Ditto.
10781 * charset.c: Ditto.
10782 * fork-child.c: Ditto.
10783 * nto-procfs.c: Ditto.
10784 * ppc-sysv-tdep.c: Ditto.
10785 * procfs.c: Ditto.
10786 * remote-mips.c: Ditto.
10787 * remote.c: Ditto.
10788 * rs6000-nat.c: Ditto.
10789 * rs6000-tdep.c: Ditto.
10790 * target.c: Ditto.
10791 * valops.c: Ditto.
10792 * value.c: Ditto.
10793 * xml-support.c: Ditto.
10794 * mi/mi-cmd-break.c: Ditto.
10795 * mi/mi-cmd-var.c: Ditto.
10796 * mi/mi-interp.c: Ditto.
10797 * mi/mi-main.c: Ditto.
10798
dae477fe
AB
107992011-01-11 Andrew Burgess <aburgess@broadcom.com>
10800
10801 * remote-sim.c (gdbsim_store_register): Update API to
10802 sim_store_register to check more error conditions.
10803
0df8b418
MS
108042011-01-10 Michael Snyder <msnyder@vmware.com>
10805
10806 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10807 * nto-tdep.c: Ditto.
10808 * nto-tdep.h: Ditto.
10809 * objc-exp.y: Ditto.
10810 * objc-lang.c: Ditto.
10811 * objfiles.c: Ditto.
10812 * objfiles.h: Ditto.
10813 * observer.c: Ditto.
10814 * opencl-lang.c: Ditto.
10815 * osabi.c: Ditto.
10816 * parse.c: Ditto.
10817 * parser-defs.h: Ditto.
10818 * p-exp.y: Ditto.
10819 * p-lang.c: Ditto.
10820 * posix-hdep.c: Ditto.
10821 * ppcbug-rom.c: Ditto.
10822 * ppc-linux-nat.c: Ditto.
10823 * ppc-linux-tdep.c: Ditto.
10824 * ppc-linux-tdep.h: Ditto.
10825 * ppcnbsd-tdep.c: Ditto.
10826 * ppcobsd-tdep.c: Ditto.
10827 * ppcobsd-tdep.h: Ditto.
10828 * ppc-sysv-tdep.c: Ditto.
10829 * ppc-tdep.h: Ditto.
10830 * printcmd.c: Ditto.
10831 * proc-abi.c: Ditto.
10832 * proc-flags.c: Ditto.
10833 * procfs.c: Ditto.
10834 * proc-utils.h: Ditto.
10835 * progspace.h: Ditto.
10836 * prologue-value.c: Ditto.
10837 * prologue-value.h: Ditto.
10838 * psympriv.h: Ditto.
10839 * psymtab.c: Ditto.
10840 * p-typeprint.c: Ditto.
10841 * p-valprint.c: Ditto.
10842 * ravenscar-sparc-thread.c: Ditto.
10843 * ravenscar-thread.c: Ditto.
10844 * ravenscar-thread.h: Ditto.
10845 * record.c: Ditto.
10846 * regcache.c: Ditto.
10847 * regcache.h: Ditto.
10848 * remote.c: Ditto.
10849 * remote-fileio.c: Ditto.
10850 * remote-fileio.h: Ditto.
10851 * remote.h: Ditto.
10852 * remote-m32r-sdi.c: Ditto.
10853 * remote-mips.c: Ditto.
10854 * remote-sim.c: Ditto.
10855 * rs6000-aix-tdep.c: Ditto.
10856 * rs6000-nat.c: Ditto.
10857 * rs6000-tdep.c: Ditto.
10858
0d7a18f7
MS
108592011-01-10 Michael Snyder <msnyder@vmware.com>
10860
10861 * charset.c (validate): Internationalization.
10862 * coffread.c (read_one_sym): Ditto.
10863 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10864 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10865 * inflow.c (new_tty): Ditto.
10866 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10867 * m32c-tdep.c (m32c_return_value): Ditto.
10868 * mep-tdep.c (mep_store_return_value): Ditto.
10869 * score-tdep.c (score7_fetch_insn): Ditto.
10870 * ser-mingw.c (pipe_windows_open): Ditto.
10871 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10872 * spu-tdep.c (spu_register_type): Ditto.
10873 * tracepoint.c (trace_find_command): Ditto.
10874 * valarith.c (value_pos): Ditto.
10875
9a153e0b
JB
108762011-01-10 Joel Brobecker <brobecker@adacore.com>
10877
10878 * ada-valprint.c (printstr): Minor comment reformatting.
10879
35ecd2d6
MS
108802011-01-08 Michael Snyder <msnyder@vmware.com>
10881
10882 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10883 markup.
10884
1777feb0
MS
108852011-01-08 Michael Snyder <msnyder@vmware.com>
10886
10887 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10888 * hppa-hpux-tdep.c: Ditto.
10889 * hppa-linux-nat.c: Ditto.
10890 * hppa-linux-tdep.c: Ditto.
10891 * hppanbsd-tdep.c: Ditto.
10892 * hppa-tdep.c: Ditto.
10893 * hppa-tdep.h: Ditto.
10894 * hpux-thread.c: Ditto.
10895 * i386-cygwin-tdep.c: Ditto.
10896 * i386-darwin-nat.c: Ditto.
10897 * i386gnu-nat.c: Ditto.
10898 * i386-linux-nat.c: Ditto.
10899 * i386-linux-tdep.c: Ditto.
10900 * i386-nat.c: Ditto.
10901 * i386-nat.h: Ditto.
10902 * i386nbsd-tdep.c: Ditto.
10903 * i386-sol2-nat.c: Ditto.
10904 * i386-stub.c: Ditto.
10905 * i386-tdep.c: Ditto.
10906 * i386-tdep.h: Ditto.
10907 * i387-tdep.c: Ditto.
10908 * ia64-linux-nat.c: Ditto.
10909 * ia64-linux-tdep.c: Ditto.
10910 * ia64-tdep.c: Ditto.
10911 * infcall.c: Ditto.
10912 * infcall.h: Ditto.
10913 * infcmd.c: Ditto.
10914 * inferior.c: Ditto.
10915 * inferior.h: Ditto.
10916 * infloop.c: Ditto.
10917 * inflow.c: Ditto.
10918 * infrun.c: Ditto.
10919 * interps.c: Ditto.
10920 * interps.h: Ditto.
10921 * iq2000-tdep.c: Ditto.
10922 * irix5-nat.c: Ditto.
10923 * jit.c: Ditto.
10924 * jit.h: Ditto.
10925 * jv-exp.y: Ditto.
10926 * jv-lang.c: Ditto.
10927 * jv-lang.h: Ditto.
10928 * jv-typeprint.c: Ditto.
10929 * jv-valprint.c: Ditto.
10930 * language.c: Ditto.
10931 * language.h: Ditto.
10932 * linespec.c: Ditto.
10933 * linux-fork.c: Ditto.
10934 * linux-nat.c: Ditto.
10935 * linux-thread-db.c: Ditto.
10936 * lm32-tdep.c: Ditto.
10937
025bb325
MS
109382011-01-08 Michael Snyder <msnyder@vmware.com>
10939
10940 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10941 * m2-lang.c: Ditto.
10942 * m2-typeprint.c: Ditto.
10943 * m2-valprint.c: Ditto.
10944 * m32c-tdep.c: Ditto.
10945 * m32r-linux-nat.c: Ditto.
10946 * m32r-rom.c: Ditto.
10947 * m32r-tdep.c: Ditto.
10948 * m32r-tdep.h: Ditto.
10949 * m68hc11-tdep.c: Ditto.
10950 * m58klinux-nat.c: Ditto.
10951 * m68k-tdep.c: Ditto.
10952 * m88k-tdep.c: Ditto.
10953 * m88k-tdep.h: Ditto.
10954 * machoread.c: Ditto.
10955 * macrocmd.c: Ditto.
10956 * macroexp.c: Ditto.
10957 * macrotab.c: Ditto.
10958 * main.c: Ditto.
10959 * maint.c: Ditto.
10960 * mdebugread.c: Ditto.
10961 * mdebugread.h: Ditto.
10962 * memattr.c: Ditto.
10963 * memattr.h: Ditto.
10964 * memory-map.h: Ditto.
10965 * mep-tdep.c: Ditto.
10966 * microblaze-rom.c: Ditto.
10967 * microblaze-tdep.c: Ditto.
10968 * minsyms.c: Ditto.
10969 * mips-irix-tdep.c: Ditto.
10970 * mips-linux-nat.c: Ditto.
10971 * mips-linux-tdep.c: Ditto.
10972 * mips-linux-tdep.h: Ditto.
10973 * mipsnbsd-nat.c: Ditto.
10974 * mipsnbsd-tdep.c: Ditto.
10975 * mipsread.c: Ditto.
10976 * mips-tdep.c: Ditto.
10977 * mips-tdep.h: Ditto.
10978 * mn10300-linux-tdep.c: Ditto.
10979 * mn10300-tdep.c: Ditto.
10980 * mn10300-tdep.h: Ditto.
10981 * monitor.c: Ditto.
10982 * monitor.h: Ditto.
10983 * moxie-tdep.c: Ditto.
10984 * moxie-tdep.h: Ditto.
10985 * mt-tdep.c: Ditto.
10986
1642781b
MF
109872011-01-08 Mike Frysinger <vapier@gentoo.org>
10988
10989 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10990
394b0adb
JB
109912011-01-08 Robert Millan <rmh@gnu.org>
10992
10993 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10994
b670013c
MS
109952011-01-07 Michael Snyder <msnyder@vmware.com>
10996
10997 * charset.c (_initialize_charset): Fix typo in string.
10998
a743e542
MS
109992011-01-07 Michael Snyder <msnyder@vmware.com>
11000
11001 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11002 for i18n.
f2eb0bc8 11003 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11004 Split line so that operator goes to beginning of line.
11005 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11006 assignment out of if statement.
11007
0963b4bd
MS
110082011-01-07 Michael Snyder <msnyder@vmware.com>
11009
11010 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11011 * ada-lang.h: Ditto.
11012 * ada-tasks.c: Ditto.
11013 * ada-valprint.c: Ditto.
11014 * aix-threads.c: Ditto.
11015 * alpha-linux-nat.c: Ditto.
11016 * alpha-linux-tdep.c: Ditto.
11017 * alpha-mdebug-tdep.c: Ditto.
11018 * alpha-nat.c: Ditto.
11019 * alpha-osf1-tdep.c: Ditto.
11020 * alpha-tdep.c: Ditto.
11021 * alphabsd-nat.c: Ditto.
11022 * alphabsd-tdep.c: Ditto.
11023 * amd64-darwin-tdep.c: Ditto.
11024 * amd64-linux-nat.c: Ditto.
11025 * amd64-linux-tdep.c: Ditto.
11026 * amd64-sol2-tdep.c: Ditto.
11027 * amd64-tdep.c: Ditto.
11028 * amd64-fbsd-tdep.c: Ditto.
11029 * amd64-nbsd-tdep.c: Ditto.
11030 * amd64-obsd-tdep.c: Ditto.
11031 * amd64-linux-nat.c: Ditto.
11032 * amd64-linux-tdep.c: Ditto.
11033 * arm-tdep.c: Ditto.
11034 * arm-tdep.h: Ditto.
11035 * armnbsd-nat.c: Ditto.
11036 * avr-tdep.c: Ditto.
11037 * bfin-tdep.c: Ditto.
11038 * bsd-kvm.c: Ditto.
11039 * c-typeprintc: Ditto.
11040 * c-valprint.c: Ditto.
11041 * coff-pe-read.h: Ditto.
11042 * coffreead.c: Ditto.
11043 * cris-tdep.c: Ditto.
11044 * d-lang.c: Ditto.
11045 * darwin-nat-info.c: Ditto.
11046 * darwin-nat.c: Ditto.
11047 * dbug-rom.c: Ditto.
11048 * dbxread.c: Ditto.
11049 * dcache.c: Ditto.
11050 * dcache.h: Ditto.
11051 * dec-thread.c: Ditto.
11052 * defs.h: Ditto.
11053 * demangle.c: Ditto.
11054 * dicos-tdep.c: Ditto.
11055 * dictionary.c: Ditto.
11056 * dictionary.h: Ditto.
11057 * dink32-rom.c: Ditto.
11058 * disasm.c: Ditto.
11059 * doublest.c: Ditto.
11060 * dsrec.c: Ditto.
11061 * dummy-frame.c: Ditto.
11062 * dwarf2-frame.c: Ditto.
11063 * dwarf2expr.c: Ditto.
11064 * dwarf2loc.c: Ditto.
11065 * dwarf2read.c: Ditto.
11066 * elfread.c: Ditto.
11067 * environ.c: Ditto.
11068 * eval.c: Ditto.
11069 * event-top.h: Ditto.
11070 * exceptions.c: Ditto.
11071 * exceptions.h: Ditto.
11072 * exec.c: Ditto.
11073 * expprint.c: Ditto.
11074 * expression.h: Ditto.
11075 * f-exp.y: Ditto.
11076 * f-lang.c: Ditto.
11077 * f-lang.h: Ditto.
11078 * f-typeprint.c: Ditto.
11079 * f-valprint.c: Ditto.
11080 * fbsd-nat.c: Ditto.
11081 * findvar.c: Ditto.
11082 * fork-child.c: Ditto.
11083 * frame.c: Ditto.
11084 * frame.h: Ditto.
11085 * frv-linux-tdep.c: Ditto.
11086 * frv-tdep.c: Ditto.
11087 * gcore.c: Ditto.
11088 * gdb-stabs.h: Ditto.
11089 * gdb_assert.h: Ditto.
11090 * gdb_string.h: Ditto.
11091 * gdb_thread_db.h: Ditto.
11092 * gdb_wait.h: Ditto.
11093 * gdbarch.sh: Ditto.
11094 * gdbcore.h: Ditto.
11095 * gdbthread.h: Ditto.
11096 * gdbtypes.c: Ditto.
11097 * gdbtypes.h: Ditto.
11098 * gnu-nat.c: Ditto.
11099 * gnu-nat.h: Ditto.
11100 * gnu-v2-abi.c: Ditto.
11101 * gnu-v3-abi.c: Ditto.
11102 * go32-nat.c: Ditto.
11103 * gdbarch.c: Regenerate.
11104 * gdbarch.h: Regenerate.
11105
ac74f770
MS
111062011-01-07 Michael Snyder <msnyder@vmware.com>
11107
11108 * ax-gdb.c: Adjust some long output strings.
11109 * breakpoint.c: Ditto.
11110 * charset.c: Ditto.
11111 * cp-abi.c: Ditto.
11112 * infcall.c: Ditto.
11113 * infrun.c: Ditto.
11114 * linux-nat.c: Ditto.
11115 * solib-pa64.c: Ditto.
11116 * solib-som.c: Ditto.
11117
d8e22779
TT
111182011-01-06 Tom Tromey <tromey@redhat.com>
11119
11120 PR python/12367:
11121 * NEWS: Add item.
11122 * python/python.c (GdbMethods): Add "newest_frame" method.
11123 * python/python-internal.h (gdbpy_newest_frame): Declare.
11124 * python/py-frame.c (gdbpy_newest_frame): New function.
11125
a255712f
PP
111262010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11127
11128 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11129 * jit.c (jit_debug): New variable.
11130 (show_jit_debug): New function.
11131 (struct target_buffer): Use ULONGEST.
11132 (bfd_open_from_target_memory): Likewise.
11133 (jit_register_code, jit_inferior_init): Add debug output.
11134 (_initialize_jit): Register "debug jit" command.
11135
ccfc3d6e
TT
111362011-01-06 Tom Tromey <tromey@redhat.com>
11137
11138 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11139 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11140 and ARCH_FRAME.
11141
57126e4a
TT
111422011-01-06 Tom Tromey <tromey@redhat.com>
11143
11144 * python/py-frame.c (frapy_block): Use get_frame_block.
11145
16dfc9ce
JB
111462011-01-06 Joel Brobecker <brobecker@adacore.com>
11147
11148 Do not stop on SIGPRIO signals by default
11149 * infrun.c (_initialize_infrun): Unset signal_stop and
11150 signal_print for TARGET_SIGNAL_PRIO.
11151
b1ce2347
JB
111522011-01-06 Joel Brobecker <brobecker@adacore.com>
11153
11154 * ada-tasks.c: Fix style violation in comment.
11155
8f7e195f
JB
111562011-01-06 Joel Brobecker <brobecker@adacore.com>
11157
11158 * linespec.c (decode_compound, find_method): Remove trailing \n
11159 at end of error string.
11160 * solib-irix.c (irix_current_sos): Likewise.
11161 * varobj.c (uninstall_variable): Likewise.
11162
e9bdf92c
JB
111632011-01-06 Joel Brobecker <brobecker@adacore.com>
11164
11165 * copyright.py: New script.
11166 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11167 Launch emacs without exec'ing. Call copyright.py afterwards.
11168
3e43a32a
MS
111692011-01-05 Michael Snyder <msnyder@vmware.com>
11170
11171 * addrmap.c: Shorten lines of >= 80 columns.
11172 * arch-utils.c: Ditto.
11173 * arch-utils.h: Ditto.
11174 * ax-gdb.c: Ditto.
11175 * ax-general.c: Ditto.
11176 * bcache.c: Ditto.
11177 * blockframe.c: Ditto.
11178 * breakpoint.c: Ditto.
11179 * buildsym.c: Ditto.
11180 * c-lang.c: Ditto.
11181 * c-typeprint.c: Ditto.
11182 * charset.c: Ditto.
11183 * coffread.c: Ditto.
11184 * command.h: Ditto.
11185 * corelow.c: Ditto.
11186 * cp-abi.c: Ditto.
11187 * cp-namespace.c: Ditto.
11188 * cp-support.c: Ditto.
11189 * dbug-rom.c: Ditto.
11190 * dbxread.c: Ditto.
11191 * defs.h: Ditto.
11192 * dfp.c: Ditto.
11193 * dfp.h: Ditto.
11194 * dictionary.c: Ditto.
11195 * disasm.c: Ditto.
11196 * doublest.c: Ditto.
11197 * dwarf2-frame.c: Ditto.
11198 * dwarf2expr.c: Ditto.
11199 * dwarf2loc.c: Ditto.
11200 * dwarf2read.c: Ditto.
11201 * elfread.c: Ditto.
11202 * eval.c: Ditto.
11203 * event-loop.c: Ditto.
11204 * event-loop.h: Ditto.
11205 * exceptions.h: Ditto.
11206 * exec.c: Ditto.
11207 * expprint.c: Ditto.
11208 * expression.h: Ditto.
11209 * f-lang.c: Ditto.
11210 * f-valprint.c: Ditto.
11211 * findcmd.c: Ditto.
11212 * frame-base.c: Ditto.
11213 * frame-unwind.c: Ditto.
11214 * frame-unwind.h: Ditto.
11215 * frame.c: Ditto.
11216 * frame.h: Ditto.
11217 * gcore.c: Ditto.
11218 * gdb-stabs.h: Ditto.
11219 * gdb_assert.h: Ditto.
11220 * gdb_dirent.h: Ditto.
11221 * gdb_obstack.h: Ditto.
11222 * gdbcore.h: Ditto.
11223 * gdbtypes.c: Ditto.
11224 * gdbtypes.h: Ditto.
11225 * inf-ttrace.c: Ditto.
11226 * infcall.c: Ditto.
11227 * infcmd.c: Ditto.
11228 * inflow.c: Ditto.
11229 * infrun.c: Ditto.
11230 * inline-frame.h: Ditto.
11231 * language.c: Ditto.
11232 * language.h: Ditto.
11233 * libunwind-frame.c: Ditto.
11234 * libunwind-frame.h: Ditto.
11235 * linespec.c: Ditto.
11236 * linux-nat.c: Ditto.
11237 * linux-nat.h: Ditto.
11238 * linux-thread-db.c: Ditto.
11239 * machoread.c: Ditto.
11240 * macroexp.c: Ditto.
11241 * macrotab.c: Ditto.
11242 * main.c: Ditto.
11243 * maint.c: Ditto.
11244 * mdebugread.c: Ditto.
11245 * memattr.c: Ditto.
11246 * minsyms.c: Ditto.
11247 * monitor.c: Ditto.
11248 * monitor.h: Ditto.
11249 * objfiles.c: Ditto.
11250 * objfiles.h: Ditto.
11251 * osabi.c: Ditto.
11252 * p-typeprint.c: Ditto.
11253 * p-valprint.c: Ditto.
11254 * parse.c: Ditto.
11255 * printcmd.c: Ditto.
11256 * proc-events.c: Ditto.
11257 * procfs.c: Ditto.
11258 * progspace.c: Ditto.
11259 * progspace.h: Ditto.
11260 * psympriv.h: Ditto.
11261 * psymtab.c: Ditto.
11262 * record.c: Ditto.
11263 * regcache.c: Ditto.
11264 * regcache.h: Ditto.
11265 * remote-fileio.c: Ditto.
11266 * remote.c: Ditto.
11267 * ser-mingw.c: Ditto.
11268 * ser-tcp.c: Ditto.
11269 * ser-unix.c: Ditto.
11270 * serial.c: Ditto.
11271 * serial.h: Ditto.
11272 * solib-frv.c: Ditto.
11273 * solib-irix.c: Ditto.
11274 * solib-osf.c: Ditto.
11275 * solib-pa64.c: Ditto.
11276 * solib-som.c: Ditto.
11277 * solib-sunos.c: Ditto.
11278 * solib-svr4.c: Ditto.
11279 * solib-target.c: Ditto.
11280 * solib.c: Ditto.
11281 * somread.c: Ditto.
11282 * source.c: Ditto.
11283 * stabsread.c: Ditto.
11284 * stabsread.c: Ditto.
11285 * stack.c: Ditto.
11286 * stack.h: Ditto.
11287 * symfile-mem.c: Ditto.
11288 * symfile.c: Ditto.
11289 * symfile.h: Ditto.
11290 * symmisc.c: Ditto.
11291 * symtab.c: Ditto.
11292 * symtab.h: Ditto.
11293 * target-descriptions.c: Ditto.
11294 * target-memory.c: Ditto.
11295 * target.c: Ditto.
11296 * target.h: Ditto.
11297 * terminal.h: Ditto.
11298 * thread.c: Ditto.
11299 * top.c: Ditto.
11300 * tracepoint.c: Ditto.
11301 * tracepoint.h: Ditto.
11302 * ui-file.c: Ditto.
11303 * ui-file.h: Ditto.
11304 * ui-out.h: Ditto.
11305 * user-regs.c: Ditto.
11306 * user-regs.h: Ditto.
11307 * utils.c: Ditto.
11308 * valarith.c: Ditto.
11309 * valops.c: Ditto.
11310 * valprint.c: Ditto.
11311 * valprint.h: Ditto.
11312 * value.c: Ditto.
11313 * varobj.c: Ditto.
11314 * varobj.h: Ditto.
11315 * vec.h: Ditto.
11316 * xcoffread.c: Ditto.
11317 * xcoffsolib.c: Ditto.
11318 * xcoffsolib.h: Ditto.
11319 * xml-syscall.c: Ditto.
11320 * xml-tdesc.c: Ditto.
11321
9a2b4c1b
MS
113222011-01-05 Michael Snyder <msnyder@vmware.com>
11323
11324 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11325 * cli/cli-decode.c: Ditto.
11326 * cli/cli-dump.c: Ditto.
11327 * cli/cli-logging.c: Ditto.
11328 * cli/cli-script.c: Ditto.
11329 * cli/cli-setshow.c: Ditto.
11330 * common/signals.c: Ditto.
11331 * mi/mi-cmd-break.c: Ditto.
11332 * mi/mi-cmd-disas.c: Ditto.
11333 * mi/mi-cmd-stack.c: Ditto.
11334 * mi/mi-cmd-var.c: Ditto.
11335 * mi/mi-cmds.c: Ditto.
11336 * mi/mi-common.h: Ditto.
11337 * mi/mi-console.c: Ditto.
11338 * mi/mi-interp.c: Ditto.
11339 * mi/mi-main.c: Ditto.
11340 * osf-share/cma_attr.c: Ditto.
11341 * osf-share/cma_deb_core.h: Ditto.
11342 * osf-share/cma_debug_client.h: Ditto.
11343 * osf-share/cma_handle.h: Ditto.
11344 * osf-share/cma_mutex.h: Ditto.
11345 * osf-share/cma_stack_int.h: Ditto.
11346 * osf-share/cma_tcb_defs.h: Ditto.
11347 * python/py-auto-load.c: Ditto.
11348 * python/py-breakpoint.c: Ditto.
11349 * python/py-cmd.c: Ditto.
11350 * python/py-frame.c: Ditto.
11351 * python/py-objfile.c: Ditto.
11352 * python/py-param.c: Ditto.
11353 * python/py-progspace.c: Ditto.
11354 * python/py-symbol.c: Ditto.
11355 * python/py-value.c: Ditto.
11356 * python/python-internal.h: Ditto.
11357 * python/python.c: Ditto.
11358 * tui/tui-data.c: Ditto.
11359 * tui/tui-disasm.c: Ditto.
11360 * tui/tui-hooks.c: Ditto.
11361 * tui/tui-io.c: Ditto.
11362 * tui/tui-layout.c: Ditto.
11363 * tui/tui-regs.c: Ditto.
11364 * tui/tui-source.c: Ditto.
11365 * tui/tui-stack.c: Ditto.
11366 * tui/tui-win.c: Ditto.
11367 * tui/tui-windata.c: Ditto.
11368 * tui/tui-winsource.c: Ditto.
11369
44944448
JB
113702011-01-05 Joel Brobecker <brobecker@adacore.com>
11371
11372 * configure.ac, gdb.1: Copyright year update.
11373
ebedcab5
JK
113742011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11375
11376 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11377 this_pc_in_block, morestack_msym and morestack_name. Check for
11378 "__morestack" minimal symbol there.
11379
e5cc9f32
JB
113802011-01-03 Joel Brobecker <brobecker@adacore.com>
11381
11382 * symfile.c (find_sym_fns): Add call to dont_repeat.
11383
7b6bb8da
JB
113842011-01-01 Joel Brobecker <brobecker@adacore.com>
11385
11386 Copyright year update in most files (performed by copyright.sh).
11387
71ce852c
JB
113882011-01-01 Joel Brobecker <brobecker@adacore.com>
11389
11390 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11391
c3c1ebe8 11392For older changes see ChangeLog-2010.
c906108c
SS
11393\f
11394Local Variables:
11395mode: change-log
11396left-margin: 8
11397fill-column: 74
11398version-control: never
57da7796 11399coding: utf-8
c906108c 11400End: