*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
46ad3598
UW
12011-11-25  Uros Bizjak  <ubizjak@gmail.com>
2
3 * alpha-tdep.c (br_opcode): New.
4 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
5 (alpha_deal_with_atomic_sequence): New function.
6 (alpha_gdbarch_init): Handle single stepping of atomic sequences
7 with alpha_deal_with_atomic_sequence.
8
e4c5f296
TG
92011-11-24 Tristan Gingold <gingold@adacore.com>
10
11 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
12 fields. Add oso_sym, end_sym and nbr_syms.
13 (macho_register_oso): Change interface.
14 (macho_symtab_add_minsym): New function.
15 (macho_symtab_read): Rewritten.
16 (get_archive_prefix_len): Remove trailing blanks.
17 (oso_el_compare_name): Add comment.
18 (struct macho_sym_hash_entry): New structure.
19 (macho_relocate_common_syms): Remove.
20 (macho_sym_hash_newfunc): New function.
21 (macho_resolve_oso_sym_with_minsym): Likewise.
22 (macho_add_oso_symfile): Rewritten.
23 (macho_symfile_read_all_oso): Remove trailing blanks.
24 Adjust code to free oso vector.
25 (macho_symfile_read): Likewise.
26 Move code to initialize minimal symbol
27
130854df
MR
282011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
29
30 * mips-tdep.c (extended_offset): Fix formatting.
31
3d7bb9d9
DE
322011-11-23 Doug Evans <dje@google.com>
33
34 * dwarf2read.c (dw2_lookup_symtab): Add comment.
35 (dw2_expand_symtabs_with_filename): Ditto.
36 (dw2_expand_symtabs_matching): Ditto.
37 (dw2_map_symbol_filenames): Ditto.
38
1fbf5ada
JB
392011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
40
41 * ada-lang.c (assign_aggregate): Minor reformatting.
42
d984108d
JB
432011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
44
45 * ada-lang.c (assign_aggregate): Remove declaration of local
46 variable `i' which is shadowing another variable with the same
47 name declared in the outer scope.
48
18af8284
JB
492011-11-23 Joel Brobecker <brobecker@adacore.com>
50
51 * ada-lang.c (get_base_type): Renames base_type. Adjust all
52 calls throughout this file.
53
1fc7b5d7
JB
542011-11-23 Joel Brobecker <brobecker@adacore.com>
55
56 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
57 FormatMessage.
58
36dfb11c
TT
592011-11-22 Tom Tromey <tromey@redhat.com>
60
61 PR mi/8444:
62 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
63 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
64 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
65 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
66 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
67 (print_it_catch_syscall, print_it_catch_exec)
68 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
69 (bpstat_print): Add 'kind' argument. Handle
70 TARGET_WAITKIND_LOADED.
71 * infrun.c (normal_stop): Update for bpstat_print change. Don't
72 handle TARGET_WAITKIND_LOADED here.
73 * breakpoint.h (bpstat_print): Update.
74
5bd6aa83
TT
752011-11-22 Tom Tromey <tromey@redhat.com>
76
77 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
78
f5afdc18
TT
792011-11-22 Tom Tromey <tromey@redhat.com>
80
81 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
82 Use static_assert to check the size of
83 async_reason_string_lookup.
84 * common/gdb_assert.h (static_assert): New macro.
85
a3769e0c
AM
862011-11-22 Alan Modra <amodra@gmail.com>
87
88 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
89 destination calculation. Don't expect >> to sign extend. Don't
90 add a break if branch lands inside the sequence anywhere.
91
56767571
KS
922011-11-21 Keith Seitz <keiths@redhat.com>
93
94 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
95 -var-evaluate-expression of an enumeration and fix expected result.
96 * gdb.mi/mi2-varvdisplay.exp: Likewise.
97
8443c207
KY
982011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
99
100 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
101 the case where osdata->items is empty. Rename column names to a
102 canonical form to avoid problems with unusual column names.
103
97643830
YQ
1042011-11-21 Yao Qi <yao@codesourcery.com>
105
106 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
107
f196051f
SS
1082011-11-20 Stan Shebs <stan@codesourcery.com>
109
110 * NEWS: Mention tracepoint additions.
111 * breakpoint.h (struct tracepoint): New field traceframe_usage.
112 * breakpoint.c (print_one_breakpoint_location): Identify
113 tracepoints as such when reporting hit counts, report
114 trace buffer usage.
115 (create_tracepoint_from_upload): Copy status info.
116 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
117 add fields user_name, notes, start_time, stop_time.
118 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
119 * tracepoint.c (trace_user): New global.
120 (trace_notes): New global.
121 (trace_stop_notes): New global.
122 (start_tracing): Add argument and trace note handling.
123 (stop_tracing): Ditto.
124 (trace_start_command): Add notes argument.
125 (trace_stop_command): Ditto.
126 (trace_status_command): Report additional status info.
127 (trace_status_mi): Similarly.
128 (trace_save): Update, record tracepoint status.
129 (set_disconnected_tracing): Call target method directly.
130 (send_disconnected_tracing_value): Remove.
131 (set_trace_user): New function.
132 (set_trace_notes): New function.
133 (set_trace_stop_notes): New function.
134 (parse_trace_status): Handle additional status.
135 (parse_tracepoint_status): New function.
136 (parse_tracepoint_definition): Call it.
137 (tfile_get_tracepoint_status): New function.
138 (init_tfile_ops): Use it.
139 (_initialize_tracepoint): Add new setshows.
140 * target.h (struct target_ops): New methods to_get_tracepoint_status
141 and to_set_trace_notes.
142 (target_get_tracepoint_status): New macro.
143 (target_set_trace_notes): New macro.
144 * target.c (update_current_target): Add new methods.
145 * remote.c (remote_get_tracepoint_status): New function.
146 (remote_set_trace_notes): New function.
147 (init_remote_ops): Add them.
148 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
149 (mi_cmd_trace_stop): Ditto.
150
3623dc3a
SD
1512011-11-20 Sanjoy Das <sdas@igalia.com>
152
153 * jit.c: Include regcache.h.
154 (jit_gdbarch_data, jit_frame_unwind): New static variables.
155 (jit_unwind_reg_set_impl, free_reg_value_impl)
156 (jit_unwind_reg_get_impl, jit_frame_sniffer)
157 (jit_frame_unwind_stop_reason, jit_frame_this_id)
158 (jit_frame_prev_register, jit_dealloc_cache)
159 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
160 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
161 jit_prepend_unwinder.
162 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
163
1825a88d
SD
1642011-11-20 Sanjoy Das <sdas@igalia.com>
165
166 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
167 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
168 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
169 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
170 (finalize_symtab, jit_object_close_impl)
171 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
172 (free_objfile_data): New functions.
173 (_initialize_jit): Register jit_objfile_data with a proper cleanup
174 function.
175
784c47ee
SD
1762011-11-20 Sanjoy Das <sdas@igalia.com>
177
178 * jit.c: Include gdb-dlfcn.h.
179 (loaded_jit_reader, reader_init_fn_sym): New static variables.
180 (jit_reader_load, jit_reader_load_command)
181 (jit_reader_unload_command): New functions.
182 (_initialize_jit): Add commands "jit-reader-load" and
183 "jit-reader-unload".
184
a2d08b9e
SD
1852011-11-20 Sanjoy Das <sdas@igalia.com>
186
187 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
188 * config.in: Add new #define HAVE_LIBDL.
189 * configure.ac: Add check for -ldl.
190 * configure: Re-generated by autoconf.
191 * gdb-dlfcn.c: New file.
192 * gdb-dlfcn.h: New file.
193
b8e0a31c
SD
1942011-11-20 Sanjoy Das <sdas@igalia.com>
195
196 * config.in: Add new #defines: JIT_READER_DIR and
197 JIT_READER_DIR_RELOCATABLE.
198 * configure.ac: New GDB directory entry for jit-reader-dir.
199 * configure: Re-generated by autoconf.
200 * jit.c: New static variable: const char *jit_reader_dir.
201 (_initialize_jit): Relocate jit_reader_dir.
202
f997c383
SD
2032011-11-20 Sanjoy Das <sdas@igalia.com>
204
205 * Makefile.in: Add jit-reader.h as a header. Have it installed in
206 $(includedir)/gdb.
207 * configure.ac: Generate a correct value for TARGET_PTR for
208 jit-reader.h. Tell configure to generate jit-reader.h from
209 jit-reader.in.
210 * configure: Re-generated by autoconf.
211 * jit-reader.in: New file.
212 * jit.c: Include jit-reader.h.
213
dc8c0494
SD
2142011-11-20 Sanjoy Das <sdas@igalia.com>
215
216 * MAINTAINERS (Write After Approval): Add myself to the list.
217
01efb936
UW
2182011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
219
220 * findvar.c (read_frame_register_value): Respect value_offset
221 of the register value. Remove big-endian special case.
222
732f3f12
TT
2232011-11-18 Tom Tromey <tromey@redhat.com>
224
225 PR build/7196:
226 * remote.c (putpkt_for_catch_errors): New function.
227 (remote_kill): Use it.
228
bfccc43c
YQ
2292011-11-18 Yao Qi <yao@codesourcery.com>
230
231 * breakpoint.c (create_breakpoint): Produce query message according to
232 breakpoint's type.
233 Allocate tracepoint per correct type.
234 Don't check SALs for pending fast tracepoints.
235 * tracepoint.c (process_tracepoint_on_disconnect): New.
236 (disconnect_tracing): Call process_tracepoint_on_disconnect.
237
3ea46bff
YQ
2382011-11-18 Yao Qi <yao@codesourcery.com>
239
240 * breakpoint.c (install_breakpoint): Add one more parameter so that
241 update_global_location_list is called conditionally.
242 (create_fork_vfork_event_catchpoint): Update.
243 (create_syscall_event_catchpoint): Update.
244 (create_breakpoint_sal): Update.
245 (create_breakpoint_sal): Update. Call do_cleanups before
246 install_breakpoint.
247 * ada-lang.c (create_ada_exception_catchpoint): Update.
248 * breakpoint.h (install_breakpoint): Update declaration.
249
598cfb71
UW
2502011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
251
252 * spu-tdep.c (spu_return_value): Fix handling of
253 TYPE_CALLING_CONVENTION annotation.
254
caf4328c
UW
2552011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
256
257 * skip.c (skip_function_command): Work around uninitialized
258 variable warning.
259
2b54dda2
DM
2602011-11-16 David S. Miller <davem@davemloft.net>
261
262 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
263 'tv_usec' to long for printf since these fields have a type which
264 varies.
265
93bf33fd
DE
2662011-11-15 Doug Evans <dje@google.com>
267
268 * buildsym.c (add_symbol_to_list): Delete outdated comment.
269
9cc10fd1
PK
2702011-11-15 Paul Koning <paul_koning@dell.com>
271
272 * python/py-type.c (typy_get_composite): New function.
273 (typy_nonzero): New function.
274 (typy_values): Rename from typy_fields.
275 (typy_fields): New function.
276 (typy_length): Raise exception if not struct, union, or enum type.
277 (typy_getitem): Ditto.
278 (typy_has_key): Ditto.
279 (typy_make_iter): Ditto.
280
c011a4f4
DE
2812011-11-15 Doug Evans <dje@google.com>
282
283 * NEWS: Mention new parameter basenames-may-differ.
284 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
285 ! basenames_may_differ.
286 * psymtab.c (lookup_partial_symtab): Ditto.
287 * symtab.c (lookup_symtab): Ditto.
288 (basenames_may_differ): New global.
289 (_initialize_symtab): New parameter basenames-may-differ.
290 * symtab.h (basenames_may_differ): Declare.
291
865ecab4
LM
2922011-11-15 Pedro Alves <pedro@codesourcery.com>
293 Luis Machado <lgustavo@codesourcery.com>
294
295 * auxv.c: Include observer.h.
296 (auxv_inferior_data_cleanup): New.
297 (invalidate_auxv_cache_inf): New.
298 (invalidate_auxv_cache): New.
299 (get_auxv_inferior_data): New.
300 (auxv_inferior_data): New static global.
301 (auxv_info): New structure.
302 (target_auxv_search): Use get_auxv_inferior_data instead of
303 target_read_alloc and don't free cached buffers.
304 (fprint_target_auxv): Likewise
305 (_initialize_auxv): Register per-inferior auxv cache and register
306 observers to invalidate auxv cache when needed.
307
ed59ded5
DE
3082011-11-14 Doug Evans <dje@google.com>
309
310 Make "!" an alias for "shell".
311 * NEWS: Add mention.
312 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
313 adding "!" command, always add it.
314 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
315 command of length one.
316
405f8e94
SS
3172011-11-14 Stan Shebs <stan@codesourcery.com>
318 Kwok Cheung Yeung <kcy@codesourcery.com>
319
320 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
321 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
322 the minimum instruction size for fast tracepoints.
323 * target.h (struct target_ops): Add new method
324 to_get_min_fast_tracepoint_insn_len.
325 (target_get_min_fast_tracepoint_insn_len): New.
326 * target.c (update_current_target): Set up new target operation.
327 * remote.c (remote_write_bytes_aux): Fix typo.
328 (remote_get_min_fast_tracepoint_insn_len): New.
329 (init_remote_ops): Initialize new field.
330
3e05895e
TT
3312011-11-14 Tom Tromey <tromey@redhat.com>
332
333 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
334 (encode_actions): Likewise.
335
1e4d1764
YQ
3362011-11-14 Yao Qi <yao@codesourcery.com>
337
338 * remote.c (struct remote_state): <install_in_trace> new field.
339 (PACKET_InstallInTrace): New enum value.
340 (remote_install_in_trace_feature): Support InstallInTrace.
341 (remote_supports_install_in_trace): Likewise.
342 (remote_protocol_features): Likewise.
343 (_initialize_remote): Likewise.
344 (remote_can_download_tracepoint): New.
345 * target.h (struct target): New field
346 `to_can_download_tracepoint'.
347 (target_can_download_tracepoint): New macro.
348 * target.c (update_current_target): Update.
349 * breakpoint.h (struct bp_location): Add comment on field
350 `duplicate'.
3ccd4ac6
YQ
351 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
352 and tracepoint.
1e4d1764
YQ
353 (remove_breakpoints): Don't remove tracepoints.
354 (tracepoint_locations_match ): New.
355 (breakpoint_locations_match): Call it.
356 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
357 (download_tracepoint_locations): New.
358 (update_global_location_list): Call it.
359 * tracepoint.c (find_matching_tracepoint): Delete.
360 (find_matching_tracepoint_location): Renamed from
361 find_matching_tracepoint. Return bp_location rather than
362 tracepoint.
363 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
364 tracepoint is found.
365
e8ba3115
YQ
3662011-11-14 Yao Qi <yao@codesourcery.com>
367
368 * target.h (struct target): <to_download_tracepoint> Change type
369 of parameter from tracepoint to bp_location.
370 * target.c (update_current_target): Update.
371 * tracepoint.c (start_tracing): Update.
372 * remote.c (remote_download_tracepoint): Remove loop for each location
373 of a tracepoint.
374
edcc485a
MR
3752011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
376
377 * i386-nat.c (i386_insert_hw_breakpoint): Call
378 i386_update_inferior_debug_regs.
379 (i386_remove_hw_breakpoint): Likewise.
380
3742cc8b
YQ
3812011-11-14 Yao Qi <yao@codesourcery.com>
382
383 * breakpoint.c (init_raw_breakpoint): Call
384 add_location_to_breakpoint to replace duplicated code.
385 (add_location_to_breakpoint): Adjust the breakpoint's
386 address prior to allocating a location.
387
71eba9c2 3882011-11-12 Matt Rice <ratmice@gmail.com>
389
390 * macrocmd.c (macro_no_macro_info): New function.
391 (macro_expand_command): Use macro_no_macro_info.
392 (macro_expand_once_command): Ditto.
393 (info_macro_command): Add argument processing,
394 move info_definitions_command here.
395 (_initialize_macrocmd): Remove info definitions command.
396 Add arguments to info macro help text.
397 * NEWS: Replace info definitions command with new info macro options.
398
731971ed
KS
3992011-11-11 Keith Seitz <keiths@redhat.com>
400
401 PR gdb/12843
402 * linespec.c (locate_first_half): Keep ':' if it looks
403 like it could be part of a Windows path starting with
404 a drive letter.
405
6953d224
PA
4062011-11-10 Pedro Alves <pedro@codesourcery.com>
407
408 * linux-nat.c (linux_nat_wait): Don't force waking up the event
409 loop when returning a TARGET_WAITKIND_NO_RESUMED.
410
0c94aa73
PA
4112011-11-10 Pedro Alves <pedro@codesourcery.com>
412
413 * target.c (target_waitstatus_to_string): Handle
414 TARGET_WAITKIND_NO_RESUMED.
415
f6b47be4
DE
4162011-11-10 Doug Evans <dje@google.com>
417
74e2f255
DE
418 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
419 `need_fullname'.
420 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
421 (map_partial_symbol_filenames): Ditto. All callers updated.
422 * psymtab.h (map_partial_symbol_filenames): Update prototype.
423 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
424 parameter need_fullname.
425
256f06f3
DE
426 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
427 * source.c (symtab_to_fullname): Ditto.
428
50f182aa
DE
429 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
430 * gdb-demangle.h: ... here. New file.
431 * demangle.c: #include "gdb-demangle.h".
432 (_initialize_demangler): Use initialize_file_ftype for prototype.
433 Move "set demangle" and "set asm-demangle" parameters here from utils.c
434 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
435 from utils.c
436 * utils.c: Update. #include "gdb-demangle.h".
437 * symtab.h (asm_demangle): Delete.
438 (demangle): Move declaration next to use.
439 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
440 * dwarf2read.c: #include "gdb-demangle.h".
441 * gnu-v2-abi.c: Ditto.
442 * jv-typeprint.c: Ditto.
443 * mdebugread.c: Ditto.
444 * p-typeprint.c: Ditto.
445 * stabsread.c: Ditto.
446 * printcmd.c: Ditto.
447 (asm_demangle): Delete declaration.
448 * tui/tui-stack.c: #include "gdb-demangle.h".
449
f6b47be4
DE
450 * python/py-type.c (typy_fields_items): Call check_typedef.
451
22355c90
JB
4522011-11-10 Joel Brobecker <brobecker@adacore.com>
453
454 * findvar.c (read_frame_register_value): Read the correct bytes
455 from registers on big-endian architectures.
456
bd119cf1 4572011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
458
459 * procfs.c (load_syscalls): Make a cleanup.
460 (open_procinfo_files): fd==0 is ok.
461
0a86f364
JB
4622011-11-10 Joel Brobecker <brobecker@adacore.com>
463
464 * procfs.c (iterate_over_mappings): Call do_cleanups before
465 returning.
466
9bc118a5
DE
4672011-11-09 Doug Evans <dje@google.com>
468
469 * gdbtypes.c (check_typedef): Document that this function can
470 throw an exception.
471
a7860e76
TT
4722011-11-09 Tom Tromey <tromey@redhat.com>
473
474 PR c++/13342:
475 * valops.c (value_full_object): Return early if real type is
476 smaller than the enclosing type.
477
60965737
YQ
4782011-11-08 Yao Qi <yao@codesourcery.com>
479
480 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
481
72a2e3dc
MI
4822011-11-08 Meador Inge <meadori@codesourcery.com>
483
484 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
485 register when the frame can't be determined.
486 * arm-tdep.c (arm_analyze_prologue): Ditto.
487
ce3b0ff7
SS
4882011-11-07 Stan Shebs <stan@codesourcery.com>
489
490 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
491
2b914b52
JB
4922011-11-07 Joel Brobecker <brobecker@adacore.com>
493
494 * infrun.c (handle_inferior_event): Minor reformatting.
495
6f809020
DE
4962011-11-05 Doug Evans <dje@google.com>
497
498 * source.c (forget_cached_source_info_for_objfile): Move call to
499 objfile->sf->qf->forget_cached_source_info outside of
500 ALL_OBJFILE_SYMTABS loop.
501 (forget_cached_source_info): Delete unused variable `s'.
502
75d12218
JK
5032011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
504
505 * i386-nat.c (dr_ref_count): Remove unused variable.
506
e565b837
DE
5072011-11-05 Doug Evans <dje@google.com>
508
509 * main.c (captured_main): Set lim_at_start before calling
510 make_command_stats_cleanup.
511
0a1c4d10
DE
5122011-11-04 Doug Evans <dje@google.com>
513
514 * utils.c: #include "timeval-utils.h".
515 (cmd_stats): Rename start_time to start_cpu_time.
516 New member start_wall_time.
517 (report_command_stats): Report wall time.
518 (make_command_stats_cleanup): Record start wall time.
519
a1d705ee
TT
5202011-11-04 Tom Tromey <tromey@redhat.com>
521
522 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
523
81de56be
RO
5242011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
525
526 * coff-pe-read.c: Include defs.h before bfd.h.
527
3ab1ec27
PM
5282011-11-04 Phil Muldoon <pmuldoon@redhat.com>
529
530 PR Python/13345
531
532 * python/python.c (python_run_simple_file): Expand tilde in path.
533
cd829959
PM
5342011-11-04 Phil Muldoon <pmuldoon@redhat.com>
535
536 PR Python/13363
537
538 * python/py-type.c (typy_lookup_type): Do not return a type in
539 an exception handler.
540
080ad648
JK
5412011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
542 Eli Zaretskii <eliz@gnu.org>
543
544 * linux-nat.c (_initialize_linux_nat): Improve help
545 for `info proc stat', `info proc status', `info proc cwd',
546 `info proc cmdline' and `info proc exe'.
547
3065dfb6
SS
5482011-11-02 Stan Shebs <stan@codesourcery.com>
549
550 String collection for tracepoints.
551 * NEWS: Mention string collection.
552 * common/ax.def (tracenz): New bytecode.
553 * ax-gdb.h (trace_string_kludge): Declare.
554 * ax-gdb.c: Include valprint.h and c-lang.h.
555 (trace_string_kludge): New global.
556 (gen_traced_pop): Add string case.
557 (agent_command): Add string case.
558 * tracepoint.h (decode_agent_options): Declare.
559 * tracepoint.c: Include cli-utils.h.
560 (decode_agent_options): New function.
561 (validate_actionline): Call it.
562 (encode_actions_1): Ditto.
563 * target.h (struct target_ops): New method to_supports_string_tracing.
564 (target_supports_string_tracing): New macro.
565 * target.c (update_current_target): Add to_supports_string_tracing.
566 * remote.c (struct remote_state): New field string_tracing.
567 (remote_string_tracing_feature): New function.
568 (remote_protocol_features): New feature tracenz.
569 (remote_supports_string_tracing): New function.
570 (init_remote_ops): Set to_supports_string_tracing.
571
f179e162
JK
5722011-11-02 Pedro Alves <pedro@codesourcery.com>
573 Jan Kratochvil <jan.kratochvil@redhat.com>
574
575 * linux-nat.c: Include cli/cli-utils.h.
576 (enum info_proc_what): New.
577 (linux_nat_info_proc_cmd): Rename to ...
578 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
579 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
580 status_f and stat_f from WHAT. Throw error on extra parameters.
581 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
582 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
583 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
584 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
585 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
586 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
587 `info proc cmdline', `info proc exe' and `info proc all' as real
588 subcommands of `info proc'.
589
7b35ec7f 5902011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
591
592 * Makefile.in: (SFILES): Add skip.c.
593 (HFILES_NO_SRCDIR): Add skip.h.
594 (COMMON_OBS): Add skip.o.
595 * skip.h, skip.c: New.
596 * breakpoint.h (set_default_breakpoint): Remove.
597 (get_sal_arch): Declare.
598 * breakpoint.c: Remove default_breakpoint_valid,
599 default_breakpoint_address, default_breakpoint_symtab,
600 default_breakpoint_line, default_breakpoint_pspace variables.
601 (get_sal_arch): Make public.
602 (set_default_breakpoint): Remove.
603 (parse_breakpoint_sals, create_breakpoint, clear_command,
604 decode_line_spec_1): Remove uses of default_breakpoint variables;
605 replaced with function calls into stack.c.
606 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
607 * cli/cli-cmds.c: Add skiplist.
608 (init_cmd_lists): Initialize skiplist.
609 (init_cli_cmds): Fix comment (classes of commands appear in
610 alphabetical order).
611 * infrun.c (handle_inferior_event): Add check that we don't step into
612 a function whose pc is marked for skip.
613 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
614 last_displayed_addr, last_displayed_symtab, last_displayed_line
615 variables.
616 (set_last_displayed_sal): New static function.
617 (print_frame_info): Switch call to set_default_breakpoint to call to
618 set_last_displayed_sal.
619 (clear_last_displayed_sal, last_displayed_sal_is_valid,
620 get_last_displayed_pspace, get_last_displayed_addr,
621 get_last_displayed_symtab, get_last_displayed_line,
622 get_last_displayed_sal): New public functions.
623 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
624 get_last_displayed_pspace, get_last_displayed_addr,
625 get_last_displayed_symtab, get_last_displayed_line,
626 get_last_displayed_sal): Declare.
627
b60e1588
JL
6282011-11-01 Justin Lebar <justin.lebar@gmail.com>
629
630 * MAINTAINERS (Write After Approval): Add myself to the list.
631
d31647d2
YQ
6322011-10-29 Yao Qi <yao@codesourcery.com>
633
634 * infcmd.c (disconnect_command): Call disconnect_tracing.
635
b1d96efd
JK
6362011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
637
638 Code cleanup.
639 * symtab.c (skip_prologue_sal): Code reformatting.
640
4dfb2365
JK
6412011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
642
643 PR symtab/13208
644 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
645 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
646 SAI.
647
0e5bf2a8
PA
6482011-10-28 Pedro Alves <pedro@codesourcery.com>
649
650 * linux-nat.c (linux_nat_filter_event): Remove `options'
651 parameter, and dead code that used it. If we're handling a
652 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
653 in our lwp list, re-add it.
654 (check_zombie_leaders): New.
655 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
656 wait for children with WNOHANG, and always wait for all children.
657 Don't check for no resumed children upfront. Simplify wait loop.
658 Check for zombie thread group leaders after handling all wait
659 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
660 unwaited-for children left.
661 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
662 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
663 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
664 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
665
821296b7
SA
6662011-10-28 Sterling Augustine <saugustine@google.com>
667
668 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
669 * symtab.c (free_completion_list): New function.
670 (do_free_completion_list): Likewise.
671 (default_make_symbol_completion_list_break_on): New variable
672 back_to. Call make_cleanup and discard_cleanups.
673 (make_source_files_completion_list): Likewise.
674
03c3051a
PK
6752011-10-28 Paul Koning <paul_koning@dell.com>
676
677 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
678 * NEWS: Mention deep_items.
679
8e7ebaf5
PA
6802011-10-28 Alen Skondro <askondro@gmail.com>
681
8de33dc2 682 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
683 defined.
684
e0c6ef61
MI
6852011-10-27 Meador Inge <meadori@codesourcery.com>
686
687 * MAINTAINERS (Write After Approval): Add myself to the list.
688
b56d6f31
JB
6892011-10-27 Joel Brobecker <brobecker@adacore.com>
690
691 * value.h (read_frame_register_value): Add declaration.
692 * findvar.c (read_frame_register_value): New function.
693 (value_from_register): Use read_frame_register_value
694 instead of get_frame_register_value + value_contents_copy
695 to get value contents.
696
d234ef5c
DE
6972011-10-27 Doug Evans <dje@google.com>
698
699 * cli/cli-cmds.c (source_script_with_search): Pass full path to
700 source_script_from_stream if it may have been found on the search path.
701 * python/py-auto-load.c (source_section_scripts): Pass full path to
702 source_python_script_for_objfile.
703 * python/python.c (source_python_script): Delete stream parameter.
704 All callers updated.
705 (source_python_script_for_objfile): Ditto.
706 * python/python-internal.h (source_python_script_for_objfile): Update.
707 * python/python.h (source_python_script): Update.
708
d849d44f
TT
7092011-10-27 Tom Tromey <tromey@redhat.com>
710
711 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
712 (ada_sals_for_line): Remove declarations.
713
2231f1fb
KP
7142011-10-27 Kevin Pouget <kevin.pouget@st.com>
715
716 Move unwind reasons to an external .def file
717 * frame.c (frame_stop_reason_string): Rewrite using
718 unwind_stop_reasons.def.
719 * frame.h (enum unwind_stop_reason): Likewise.
720 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
721 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
722 constants for bound-checking.
723 * unwind_stop_reasons.def: New file.
724 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
725 instead of a distinct value.
726
f77b9a5d
PM
7272011-10-27 Phil Muldoon <pmuldoon@redhat.com>
728
729 PR python/13331
730
731 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
732 (convert_values_to_python): Return on Python tuple allocation
733 failure. Return NULL on value conversion error.
734
76dce0be
PM
7352011-10-27 Phil Muldoon <pmuldoon@redhat.com>
736
737 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
738 (bppy_set_task): Ditto.
739 (bppy_delete_breakpoint): Ditto.
740 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
741 (gdbpy_lookup_global_symbol): Ditto.
742 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
743 * python/py-frame.c (frapy_is_valid): Ditto.
744 (frame_info_to_frame_object): Ditto.
745 * python/py-type.c (typy_lookup_type): Ditto.
746 (typy_getitem): Ditto.
747 (typy_has_key): Ditto.
748 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
749
f17b6955
JB
7502011-10-26 Joel Brobecker <brobecker@adacore.com>
751
752 * gdbarch.h: Regenerate.
753
86ba1042
JB
7542011-10-26 Meador Inge <meadori@codesourcery.com>
755
756 * gdbarch.sh (function_list): Use 'pstring' when printing
757 'gcore_bfd_target'.
758 * gdbarch.c: Regenerate.
759
c34fd852
UW
7602011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
761
762 * regcache.c (registers_changed_ptid): Invalidate thread architecture
763 and frame caches if PTID refers to all threads of a process.
764
931bb47f
UW
7652011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
766
767 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
768 to create_breakpoint.
769
88aed45e
UW
7702011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
771
772 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
773 (ppc_sysv_abi_push_dummy_call): Use it.
774 (do_ppc_sysv_return_value): Likewise.
775 (ppc64_sysv_abi_push_dummy_call): Likewise.
776 (ppc64_sysv_abi_return_value): Likewise.
777
3eaf3fa2
PK
7782011-10-26 Paul Koning <paul_koning@dell.com>
779
780 * python/lib/gdb/types.py (deepitems): New function.
781
913460fc
PK
7822011-10-25 Paul Koning <paul_koning@dell.com>
783
784 PR python/13327
785
786 * python/py-value.c (value_to_value_object): Remove fetching of
787 the value if it was lazy.
788 (valpy_get_is_lazy): New function.
789 (valpy_fetch_lazy): New function.
790
2b5b9d09
JB
7912011-10-24 Joel Brobecker <brobecker@adacore.com>
792
793 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
794 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
795
e21ffe51
PA
7962011-10-24 Pedro Alves <pedro@codesourcery.com>
797
798 * linux-nat.c (linux_handle_extended_wait): When handling a clone
799 event, in non-stop, if not stopping, make sure the new lwp has
800 last_resume_kind set to resume_continue. Assert that when we're
801 resuming the new lwp, its last_resume_kind is resume_continue.
802
7aee8dc2
PA
8032011-10-24 Pedro Alves <pedro@codesourcery.com>
804
805 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
806 already set when marking the event thread as not executing in
807 non-stop mode.
808
4b4e080e
PA
8092011-10-24 Pedro Alves <pedro@codesourcery.com>
810
811 * infrun.c (handle_inferior_event): Add debug output for
812 TARGET_WAITKIND_NO_HISTORY.
813
baacfb07
PM
8142011-10-24 Phil Muldoon <pmuldoon@redhat.com>
815
816 * NEWS: Move set/show extended-prompt to "New Options". Expand
817 description. Fix typos.
818
8432bc41
PM
8192011-10-24 Phil Muldoon <pmuldoon@redhat.com>
820
821 PR python/13310
822
823 * python/py-param.c (call_doc_function): Correctly deference on
824 function exit.
825
6cda5a20
JB
8262011-10-21 Joel Brobecker <brobecker@adacore.com>
827
828 * ada-tasks.c (print_ada_task_info): Fix computation of
829 number of tasks displayed in command output.
830
13294f7d
JK
8312011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
832 Ulrich Weigand <uweigand@de.ibm.com>
833
834 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
835 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
836 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
837 gdbarch_pc_regnum and frame_unwind_register_unsigned by
838 gdbarch_unwind_pc.
839
460c1c54
CC
8402011-10-20 Cary Coutant <ccoutant@google.com>
841
842 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
843 section to...
844 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
845 flag. Adjust all callers.
846 (process_psymtab_comp_unit): Remove adjustment for type section.
847
a10964d1
AR
8482011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
849
850 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
851 arguments by adding OBJFILE. Instead of getting objfile from
852 symbol's symtab, use new argument OBJFILE.
853 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
854 arguments by adding OBJFILE.
855 * gdb/dwarf2read.c (new_symbol_full): Change call to
856 cp_scan_for_anonymous_namespaces to match new signature.
857 * gdb/stabsread.c (define_symbol): Change call to
858 cp_scan_for_anonymous_namespaces to match new signature.
859
27ca1a5b
PM
8602011-10-20 Phil Muldoon <pmuldoon@redhat.com>
861
862 PR python/13308
863 PR python/13309
864
865 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
866 leak.
867 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
868 leak. Delete unused variables.
869
9df2fbc4
PM
8702011-10-20 Phil Muldoon <pmuldoon@redhat.com>
871
872 PR python/12656
873
874 * python/py-frame.c (frapy_read_var): Use const struct *block.
875 * python/py-type.c (typy_lookup_typename): Likewise.
876 (typy_lookup_type): Likewise.
877 (typy_legacy_template_argument): Likewise.
878 (typy_template_argument): Likewise.
879 (gdbpy_lookup_type): Likewise.
880 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
881 * python/py-block.c (blpy_block_object): Likewise.
882 (blpy_iter): Likewise.
883 (blpy_get_start): Likewise.
884 (blpy_get_end): Likewise.
885 (blpy_get_function): Likewise.
886 (blpy_get_superblock): Likewise.
887 (set_block): Likewise.
888 (block_to_block_object): Likewise.
889 (block_object_to_block): Likewise.
890 (blpy_is_valid): Likewise.
891 (blpy_get_global_block): New function.
892 (blpy_get_static_block): New function.
893 (blpy_is_global): New function.
894 (blpy_is_static): New function.
895 * blockframe.c (block_innermost_frame): Likewise.
896 * valops.c (value_of_variable): Likewise.
897 * frame.h: Update prototypes.
898 * python/python-internal.h: Likewise.
899 * value.h: Likewise.
900
4743b735
CC
9012011-10-19 Cary Coutant <ccoutant@google.com>
902
903 * dwarf2read.c (create_debug_types_hash_table): Fix size of
904 type_offset field.
905
6caca83c
CC
9062011-10-19 Cary Coutant <ccoutant@google.com>
907
908 * dwarf2read.c (peek_abbrev_code): New function.
909 (dw2_get_file_names): Check for dummy compilation units.
910 (create_debug_types_hash_table): Likewise.
911 (process_psymtab_comp_unit): Likewise.
912 (load_partial_comp_unit): Likewise.
913 (load_full_comp_unit): Likewise.
914
43136979
AR
9152011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
916
917 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
918 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
919 pt_phdr if PT_PHDR was found.
920
0a07729b
TT
9212011-10-17 Joost van der Sluis <joost@cnoc.nl>
922
923 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
924 type or "<unnamed type"> when there is no name assigned.
925 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
926 avoid a sigint when no name is assigned.
927
21ae7a4d
JK
9282011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
929
930 Revert:
931 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
932 * dwarf2expr.c (ctx_no_read_reg): New function.
933 * dwarf2expr.h (ctx_no_read_reg): New declaration.
934 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
935 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
936 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
937
32d1c362
DE
9382011-10-16 Doug Evans <dje@google.com>
939
940 * NEWS: Document python gdb.printing.register_pretty_printer's new
941 `replace' parameter.
942
da096638
KS
9432011-10-14 Keith Seitz <keiths@redhat.com>
944
945 PR c++/13225
946 * eval.c (evaluate_subexp_standard): Do not construct
947 an array of types; pass the value array directly to
948 find_overload_match.
949 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
950 (rank_function): Take an array of values instead of types.
951 (rank_one_type): Add struct value * parameter.
952 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
953 (rank_function): For each argument, pass the argument's
954 value to rank_one_type.
955 (rank_one_type): Add VALUE parameter.
956 If the parameter type is a pointer and the argument type
957 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
958 VALUE is zero.
959 Update all calls to rank_one_type, passing NULL for new
960 VALUE parameter.
961 * valarith.c (value_user_defined_cpp_op): Do not construct
962 an array of types; pass the value array directly to
963 find_overload_match.
964 * valops.c (find_overload_method_list): Take an array of
965 values instead of types.
966 Save the type of OBJP for later use.
967 Update calls to find_oload_champ, and find_oload_champ_namespace.
968 (find_oload_champ_namespace): Take an array of values instead
969 of types.
970 (find_oload_champ_namespace_loop): Likewise.
971 (find_oload_champ): Likewise.
972 (classify_oload_match): Inspect all arguments
973 until INCOMPATIBLE is found. Return the worst badness found
974 otherwise.
975 (compare_parameters): Update call to rank_one_type.
976 * value.h (find_overload_match): Take an array of values instead
977 of types.
978
3957565a
JK
9792011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 Drop lazy lm_info reading.
982 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
983 l_addr_inferior, l_ld, l_next, l_prev and l_name.
984 (lm_info_read): New function.
985 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
986 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
987 lm_dynamic_from_link_map.
988 (lm_next, lm_prev, lm_name): Remove.
989 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
990 initialization incl. read_memory. No longer use lm_name.
991 (svr4_free_so): Drop lm_info->lm freeing.
992 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
993 explicit lm_addr and lm initialization.
994 (svr4_read_so_list): Use lm_info_read, drop the initailization of
995 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
996 lm_name.
997
cb08cc53
JK
9982011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
999 Paul Pluzhnikov <ppluzhnikov@google.com>
1000
1001 * defs.h (struct so_list): New forward declaration.
1002 (make_cleanup_free_so): New declaration.
1003 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1004 (svr4_free_so): Move the function here from downwards. Handle NULL
1005 so->lm_info.
1006 (svr4_free_library_list): New.
1007 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1008 Use more cleanups. Use new parameter ignore_first instead of
1009 ignore_first_link_map_entry.
1010 (svr4_current_sos): New variable ignore_first, initialize it. New
1011 variable back_to, use it for svr4_free_library_list protection.
1012 (svr4_free_so): Remove - move upwards.
1013 * utils.c: Include solist.h.
1014 (do_free_so, make_cleanup_free_so): New functions.
1015
22c05d8a
JK
10162011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1017
1018 Fix internal error regression.
1019 * value.c (value_primitive_field): Handle value_optimized_out. Move
1020 packed bitfields comment.
1021
d930d06e
TT
10222011-10-13 Tom Tromey <tromey@redhat.com>
1023
1024 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1025 always released.
1026
2ff6b080
TT
10272011-10-13 Tom Tromey <tromey@redhat.com>
1028
1029 * python/py-type.c (typy_has_key): Make 'field' const.
1030
d6c5869f
LM
10312011-10-13 Luis Machado <lgustavo@codesourcery.com>
1032
1033 * remote.c (remote_save_trace_data): Invert comparison.
1034
a70633a2
LM
10352011-10-13 Luis Machado <lgustavo@codesourcery.com>
1036
1037 * tracepoint.c (trace_save_command): Use filename instead of
1038 args when printing.
1039
e103e986
JK
10402011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1041
1042 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1043 if .size is 0.
1044
db24da6d
YQ
10452011-10-13 Yao Qi <yao@codesourcery.com>
1046
1047 PR gdb/12703
1048 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1049 whether insn is a 32-bit Thumb-2 instruction.
1050 (thumb_in_function_epilogue_p): Likewise.
1051 (thumb_get_next_pc_raw): Likewise.
1052 (arm_breakpoint_from_pc): Likewise.
1053
1d6edc3c
JK
10542011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1055
1056 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1057 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1058 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1059 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1060 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1061 zero DATA.
1062 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1063 validity.
1064 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1065 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1066 clear DATA on zero SIZE.
1067
adabb602
DE
10682011-10-12 Doug Evans <dje@google.com>
1069
1070 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1071 header->first_die_offset here. All callers updated.
1072
5048e516
JK
10732011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1074
1075 Fix compatibility with texinfo versions older than 4.12.
1076 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1077 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1078 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1079 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1080 * configure: Regenerate.
1081 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1082 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1083 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1084
0574c78f
GB
10852011-10-12 Gary Benson <gbenson@redhat.com>
1086
1087 * breakpoint.h (pc_at_non_inline_function): Declare.
1088 * breakpoint.c (is_non_inline_function,
1089 pc_at_non_inline_function): New functions.
1090 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1091 if the stop is at a location where functions cannot be inlined.
1092
12d9289a
PA
10932011-10-12 Pedro Alves <pedro@codesourcery.com>
1094
1095 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1096 the core wanted them stopped, or if they now have a pending event
1097 to report.
ecf8e7f5
PA
1098 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1099 down to stop_and_resume_callback.
1100 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1101 having new pending events after calling linux_nat_filter_event.
12d9289a 1102
96408a79
SA
11032011-10-11 Sterling Augustine <saugustine@google.com>
1104
1105 * dwarf2read.c: Undo inadvertent changes in previous commit.
1106
9c6c53f7
SA
11072011-10-11 Sterling Augustine <saugustine@google.com>
1108
1109 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1110 logic.
1111
0e8aefe7
UW
11122011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1113
1114 * symfile.c (separate_debug_file_exists): Fix condition.
1115
349d1385
DM
11162011-10-11 David S. Miller <davem@davemloft.net>
1117
1118 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1119 static.
1120 * regcache.h (regcache_restore): Remove declaration.
1121
205c306f
DM
1122 * gdbarch.sh: New field 'long_long_align_bit'.
1123 * gdbarch.c, gdbarch.h: Regenerate.
1124 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1125 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1126
941b2081
JK
11272011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1128
1129 Revert this part of:
1130 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1131 Support @entry in input expressions.
1132 * c-exp.y (ENTRY, unknown_cpp_name): New.
1133 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1134 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1135 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1136 (name_not_typename: ENTRY): New.
1137 (yylex): Recognize ENTRY.
1138
1139 Reimplement @entry in input expressions.
1140 * c-exp.y (ENTRY): New.
1141 (variable: name_not_typename ENTRY): New.
1142 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1143
3c4d7e12
PA
11442011-10-11 Pedro Alves <pedro@codesourcery.com>
1145
1146 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1147 parent and child's pids as soon as we detect a clone event.
1148 Adjust another debug message.
1149
ea23808b
PA
11502011-10-11 Pedro Alves <pedro@codesourcery.com>
1151
1152 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1153 not zombie instead of reading the whole file.
1154
904578ed
JK
11552011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 Fix separate debuginfo warning with "remote:" access.
1158 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1159 * symfile.c (get_file_crc): New function with the code moved from ...
1160 (separate_debug_file_exists): ... this function, specifically variables
1161 buffer and count. New variable verified_as_different, set it. Remove
1162 file_crc initialization. Verify also if both files are not the same
1163 manually, if needed.
1164
51370a33
YQ
11652011-10-11 Yao Qi <yao@codesourcery.com>
1166
1167 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1168 to get address.
1169
0838fb57
DE
11702011-10-10 Doug Evans <dje@google.com>
1171
1172 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1173 libthread_db when we load libpthread or the main symbol file.
1174 (thread_db_inferior_created): New function.
1175 (_initialize_thread_db): Attach inferior_created observer.
1176 * linux-nat.c (linux_child_post_attach): Remove call to
1177 check_for_thread_db.
1178 (linux_child_post_startup_inferior): Ditto.
1179 * objfiles.h (OBJF_MAINLINE): Define.
1180 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1181 allocate_objfile when appropriate.
1182
623bd5b7
UW
11832011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1184
1185 PR gdb/13218
1186 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1187 Remove unused variables.
1188 (get_linux_version): Remove function.
1189 (_initialize_arm_linux_nat): Do not call it.
1190
79395f92
PA
11912011-10-10 Pedro Alves <pedro@codesourcery.com>
1192
1193 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1194 new clone lwp if the core asked it to stop. Don't pass on
1195 unexpected signals to the new clone; leave them pending instead.
1196
eff3df78
PA
11972011-10-10 Pedro Alves <pedro@codesourcery.com>
1198
1199 * linux-nat.c (resume_lwp): Remove redundant debug output.
1200
4b60df3d
PA
12012011-10-10 Pedro Alves <pedro@codesourcery.com>
1202
1203 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1204 last_resume_kind before clearing it, and use the copy instead to
1205 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1206 resume_clear_callback in the non-stop path too.
1207
6501578c
YQ
12082011-10-09 Yao Qi <yao@codesourcery.com>
1209
1210 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1211 Honor OPTIONS and VAL's type.
1212 (common_val_print, value_print): Update to pass one more parameter.
1213
5a56e9c5
DE
12142011-10-09 Doug Evans <dje@google.com>
1215
1216 Add new "alias" command.
1217 * NEWS: Mention new command.
1218 * command.h (valid_user_defined_cmd_name_p): Declare.
1219 * defs.h (make_cleanup_dyn_string_delete): Declare.
1220 * utils.c: #include "dyn-string.h".
1221 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1222 * cli/cli-cmds.c: #include "dyn-string.h".
1223 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1224 (init_cli_cmds): Add new command.
1225 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1226
509f0fd9
JK
12272011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1228
1229 Fix compatibility with older GCCs.
1230 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1231 * stack.c (read_frame_arg): Initialize val_deref.
1232
2bda9cc5
JK
12332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1234
1235 Entry values NEWS entries, DWARF disassembly support.
1236 * NEWS: New entry values entry.
1237 (set print entry-values, show print entry-values)
1238 (set debug entry-values, show debug entry-values): New entries.
1239 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1240 indent. Remove variable start. Move header printing out. Respect
1241 INDENT. Support DW_OP_GNU_entry_value.
1242 (locexpr_describe_location_1): Move the header printing here, extend
1243 the disassemble_dwarf_expression passed parameters.
1244
a471c594
JK
12452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1246
1247 Display @entry parameter values even for references.
1248 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1249 coerce_ref_if_computed.
1250 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1251 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1252 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1253 existing push_dwarf_reg_entry_value call. Add new detection calling
1254 dwarf_block_to_dwarf_reg_deref. Update the error message.
1255 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1256 * dwarf2expr.h
1257 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1258 parameter deref_size, describe it in the comment.
1259 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1260 (dwarf_block_to_dwarf_reg_deref): New declaration.
1261 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1262 deref_size, describe it in the function comment. New variables
1263 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1264 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1265 describe it in the function comment. Fetch the alternative block
1266 accoring to DEREF_SIZE.
1267 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1268 (entry_data_value_free_closure, entry_data_value_funcs): New.
1269 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1270 outer_val, target_val, val and addr. Try to fetch and create also
1271 referenced value content.
1272 (pieced_value_funcs): NULL value for coerce_ref.
1273 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1274 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1275 coerce_ref_if_computed.
1276 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1277 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1278 * stack.c (read_frame_arg): Compare also dereferenced values.
1279 * value.c (value_computed_funcs): Make the parameter v const, use
1280 value_lval_const for it.
1281 (value_lval_const, coerce_ref_if_computed): New function.
1282 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1283 * value.h (struct lval_funcs): New field coerce_ref.
1284 (value_computed_funcs): Make the parameter v const.
1285 (value_lval_const, coerce_ref_if_computed): New declarations.
1286
36b11add
JK
12872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 Support @entry in input expressions.
1290 * c-exp.y (ENTRY, unknown_cpp_name): New.
1291 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1292 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1293 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1294 (name_not_typename: ENTRY): New.
1295 (yylex): Recognize ENTRY.
1296 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1297 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1298 Likewise.
1299 * parse.c (operator_length_standard): Likewise.
1300 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1301
3343315b
JK
13022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1303
1304 Display referenced values in backtraces.
1305 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1306 * stack.c (print_frame_arg): Likewise.
1307
ac71a68c
JK
13082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1309
1310 Make some lval_funcs methods to default on NULL.
1311 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1312 NULL.
1313 (value_assign): Check if lval_computed write method is NULL.
1314 * value.h (struct lval_funcs): Comment NULL values for read and write
1315 methods.
1316
e18b2753
JK
13172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 Display @entry parameter values (without references).
1320 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1321 New functions.
1322 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1323 New declarations.
1324 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1325 entry record.
1326 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1327 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1328 functions.
1329 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1330 (loclist_read_variable_at_entry): New function.
1331 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1332 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1333 DW_AT_location, call dwarf_block_to_sp_offset for it.
1334 * frame.h (print_entry_values_no, print_entry_values_only)
1335 (print_entry_values_preferred, print_entry_values_if_needed)
1336 (print_entry_values_both, print_entry_values_compact)
1337 (print_entry_values_default, print_entry_values): New declarations.
1338 (struct frame_arg): New field entry_kind.
1339 (read_frame_arg): New parameter entryargp.
1340 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1341 arg->entry_kind. Optionally print the `@entry' suffix.
1342 (list_args_or_locals): New variable entryarg, initialize it.
1343 Initialize also entry_kind of arg and entryarg. Conditionalize
1344 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1345 xfree for entryarg.error.
1346 * stack.c (print_entry_values_no, print_entry_values_only)
1347 (print_entry_values_preferred, print_entry_values_if_needed)
1348 (print_entry_values_both, print_entry_values_compact)
1349 (print_entry_values_default, print_entry_values_choices)
1350 (print_entry_values): New variables.
1351 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1352 print the `@entry' suffix, possibly in combination for
1353 print_entry_values_compact.
1354 (read_frame_arg): New parameter entryargp, new variables entryval,
1355 entryval_error and val_equal. Read in also entryargp, respect
1356 print_entry_values, compare the values using val_equal, fill in also
1357 argp->entry_kind (together with entryargp->entry_kind).
1358 (print_frame_args): New variable entryarg, initialize it.
1359 Conditionalize print_frame_arg for arg, add print_frame_arg for
1360 entryarg. Call xfree for entryarg.error.
1361 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1362 * symtab.h (struct symbol_computed_ops): New field
1363 read_variable_at_entry.
1364
93d86cef
JK
13652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1366
1367 Code reshuffle.
1368 * frame.h (struct frame_arg): New definition.
1369 (read_frame_arg): New declaration.
1370 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1371 (list_args_or_locals): ... the code here. New variable arg, call
1372 read_frame_arg and list_arg_or_local with it. Unify the
1373 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1374 arg.error.
1375 * stack.c (print_frame_arg): New functiom from the code of
1376 print_frame_args.
1377 (read_frame_arg): New function.
1378 (print_frame_args): Remove variable val. New variable arg, call
1379 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1380
2d6c5dc2
JK
13812011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1382
1383 Protect entry values against self tail calls.
1384 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1385 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1386
111c6489
JK
13872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 Recognize virtual tail call frames.
1390 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1391 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1392 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1393 * dwarf2-frame-tailcall.c: New file.
1394 * dwarf2-frame-tailcall.h: New file.
1395 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1396 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1397 REGS.PREV only after CIE execution.
1398 (struct dwarf2_frame_cache): New field tailcall_cache.
1399 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1400 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1401 parts, try to find entry_cfa_sp_offset. Call
1402 dwarf2_tailcall_sniffer_first.
1403 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1404 when appropriate.
1405 (dwarf2_frame_dealloc_cache): New function.
1406 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1407 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1408 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1409 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1410 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1411 * dwarf2loc.c (func_addr_to_tail_call_list)
1412 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1413 (call_site_find_chain_1, call_site_find_chain): New.
1414 * dwarf2loc.h (struct call_site_chain): New.
1415 (call_site_find_chain): New declaration.
1416 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1417 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1418 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1419 * stack.c (frame_info): Support also TAILCALL_FRAME.
1420
bb984ff1
JK
14212011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1422
1423 Tail call sites reader implementation.
1424 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1425 fill in TYPE_TAIL_CALL_LIST.
1426 * gdbtypes.h (struct func_type): New field tail_call_list.
1427 (struct call_site): New field tail_call_next.
1428 (TYPE_TAIL_CALL_LIST): New definition.
1429
8e3b41a9
JK
14302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1431
1432 Implement basic support for DW_TAG_GNU_call_site.
1433 * block.c: Include gdbtypes.h and exceptions.h.
1434 (call_site_for_pc): New function.
1435 * block.h (call_site_for_pc): New declaration.
1436 * defs.h: Include hashtab.h.
1437 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1438 declarations.
1439 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1440 ctx_no_push_dwarf_reg_entry_value.
1441 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1442 (dwarf_block_to_dwarf_reg): New function.
1443 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1444 (ctx_no_push_dwarf_reg_entry_value): New function.
1445 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1446 push_dwarf_reg_entry_value.
1447 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1448 declarations.
1449 * dwarf2loc.c: Include gdbcmd.h.
1450 (dwarf_expr_ctx_funcs): New forward declaration.
1451 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1452 (dwarf_expr_reg_to_entry_parameter)
1453 (dwarf_expr_push_dwarf_reg_entry_value): New.
1454 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1455 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1456 (needs_dwarf_reg_entry_value): New function.
1457 (needs_frame_ctx_funcs): Install it.
1458 (_initialize_dwarf2loc): New function.
1459 * dwarf2loc.h (entry_values_debug): New declaration.
1460 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1461 (read_call_site_scope): New forward declaration.
1462 (process_full_comp_unit): Copy call_site_htab.
1463 (process_die): Support DW_TAG_GNU_call_site.
1464 (read_call_site_scope): New function.
1465 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1466 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1467 (cleanup_htab): Delete.
1468 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1469 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1470 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1471 FIELD_LOC_KIND_DWARF_BLOCK.
1472 * gdbtypes.h (enum field_loc_kind): New entry
1473 FIELD_LOC_KIND_DWARF_BLOCK.
1474 (struct main_type): New loc entry dwarf_block.
1475 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1476 (TYPE_FIELD_DWARF_BLOCK): New.
1477 * python/py-type.c: Include dwarf2loc.h.
1478 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1479 internal_error call on unknown FIELD_LOC_KIND.
1480 * symtab.h (struct symtab): New field call_site_htab.
1481 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1482 (core_addr_hash, core_addr_eq): New functions.
1483
b6cdc2c1
JK
14842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1485
1486 Code reshuffle.
1487 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1488 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1489 calling_convention under func_stuff there.
1490 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1491 (init_type) <TYPE_CODE_FUNC>: Likewise.
1492 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1493 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1494 * gdbtypes.h (enum type_specific_kind): Change
1495 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1496 (struct main_type) <type_specific>: Change calling_convention to
1497 func_stuff. Move calling_convention to ...
1498 (struct func_type): ... this new struct.
1499 (INIT_FUNC_SPECIFIC): New #define.
1500 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1501
181cebd4
JK
15022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1505 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1506 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1507 ctx->ref_addr_size. Handle its invalid value.
1508 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1509 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1510 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1511 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1512 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1513 (dwarf2_per_cu_ref_addr_size): New function.
1514
c471e790
JK
15152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1516
1517 Code cleanup.
1518 * dwarf2read.c (per_cu_header_read_in): New function.
1519 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1520 variables cu_header_local and cu_headerp.
1521
741f5e3c
JK
15222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1523
1524 Fix initial language detection with -readnow.
1525 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1526 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1527 searches only for global symbols.
1528
a73d2258
JK
15292011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1530
1531 Fix printed anonymous struct name.
1532 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1533 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1534 (anonymous_struct_prefix): New function.
1535 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1536 (dwarf2_name): Strip for anonymous structs any prefixes.
1537
749fd4ea
DE
15382011-10-07 Doug Evans <dje@google.com>
1539
1fa57852
DE
1540 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1541 `replace'.
1542
690a4937
DE
1543 * python/lib/gdb/printing.py: Whitespace cleanup.
1544
749fd4ea
DE
1545 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1546 warning.
1547
4c38200f
PA
15482011-10-07 Pedro Alves <pedro@codesourcery.com>
1549
1550 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1551 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1552 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1553 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1554 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1555 (arm_linux_remove_watchpoint): Adjust.
1556 * i386-linux-nat.c (i386_linux_dr_set_control)
1557 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1558 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1559 (ia64_linux_remove_watchpoint): Adjust.
1560 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1561 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1562 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1563 (ppc_linux_insert_mask_watchpoint)
1564 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1565 (ppc_linux_remove_watchpoint): Adjust.
1566 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1567 Adjust.
1568
b7ff339d
CV
15692011-10-07 Corinna Vinschen <vinschen@redhat.com>
1570
1571 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1572 (clear_win32_environment): New function for Cygwin to clear out
1573 Win32 environment.
1574 (windows_create_inferior): Prepare new environment from in_env
1575 for Cygwin, too.
1576
f287c1f3
PM
15772011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1578
5631e596 1579 PR python/13264
f287c1f3
PM
1580 * python/py-value.c (valpy_call): Check that arguments are
1581 a tuple.
1582 (is_intlike): Remove call to CHECK_TYPEDEF.
1583 (valpy_nonzero): Catch GDB exceptions.
1584 (valpy_absolute): Ditto.
1585 (valpy_lazy_string): Ditto.
1586 (valpy_call): Ditto.
1587 (valpy_get_is_optimized_out): Ditto.
1588 (valpy_long): Ditto.
1589 (valpy_float): Ditto.
1590 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1591 (valpy_richcompare): Ditto.
1592
03583c20
UW
15932011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1594
1595 * inferior.h (disable_randomization): Declare.
1596 * infrun.c (disable_randomization): New global variable.
1597 (show_disable_randomization): New function.
1598 (set_disable_randomization): Likewise.
1599 (_initialize_infrun): Install set/show disable-randomization
1600 commands.
1601 * linux-nat.c (disable_randomization): Remove.
1602 (show_disable_randomization): Likewise.
1603 (set_disable_randomization): Likewise.
1604 (_initialize_linux_nat): No longer install set/show
1605 disable-randomization commands here.
1606 (linux_nat_supports_disable_randomization): New function.
1607 (linux_nat_add_target): Install it.
1608 * remote.c (PACKET_QDisableRandomization): New enum value.
1609 (remote_protocol_packets): Support QDisableRandomization.
1610 (_initialize_remote): Likewise.
1611 (remote_supports_disable_randomization): New function.
1612 (init_remote_ops): Install it.
1613 (extended_remote_supports_disable_randomization): New function.
1614 (init_extended_remote_ops): Install it.
1615 (extended_remote_disable_randomization): New function.
1616 (extended_remote_create_inferior_1): Call it.
1617 * target.h (struct target_ops): Add to_supports_disable_randomization.
1618 (target_supports_disable_randomization): Add prototype.
1619 * target.c (target_supports_disable_randomization): New function.
1620 (find_default_supports_disable_randomization): Likewise.
1621 (init_dummy_target): Install it.
1622
20c168b5
KP
16232011-10-07 Kevin Pouget <kevin.pouget@st.com>
1624
1625 Allow Python notification of new object-file loadings.
1626 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1627 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1628 Add build rule for this file.
1629 * python/py-event.h (emit_new_objfile_event): New prototype.
1630 (newobjfile): New Python event emitter.
1631 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1632 Python event registry.
1633 * python/py-inferior.c: Include objfiles.h
1634 (python_new_objfile): New function.
1635 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1636 observers.
1637 * python/py-newobjfileevent.c: New file.
1638 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1639 prototype.
1640 * python/python.c (_initialize_python): Add
1641 gdbpy_initialize_new_objfile_event call.
1642 * NEWS: Add item for new Python event "gdb.newobjfile"
1643
b1c8db38
TG
16442011-10-05 Tristan Gingold <gingold@adacore.com>
1645
1646 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1647 Extract the ravenscar task name from the symbol for the atcb.
1648
0dab82e9
PK
16492011-10-04 Paul Koning <paul_koning@dell.com>
1650
1651 * python/py-type.c (typy_make_iter): Add forward declaration.
1652 (typy_fields_items): Use the gdb.Type iterator.
1653
84ad80e6
PK
16542011-10-04 Paul Koning <paul_koning@dell.com>
1655
1656 * NEWS: Add entry for Python gdb.Type mapping methods.
1657
cb6be26b
KP
16582011-10-04 Kevin Pouget <kevin.pouget@st.com>
1659
1660 PR python/12691: Add the inferior to Python exited event
1661 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1662 to exited_event.
1663 * python/py-event.h (emit_exited_event): Likewise
1664 * python/-inferior.c (python_inferior_exit): Likewise
1665
6005b210
JB
16662011-10-03 Joel Brobecker <brobecker@adacore.com>
1667
1668 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1669 in output of -ada-task-info GDB/MI command.
1670
75082e8c
JB
16712011-10-03 Joel Brobecker <brobecker@adacore.com>
1672
1673 * ada-lang.h (struct inferior): Declare.
1674 (print_ada_task_info): Add declaration.
1675 * ada-tasks.c (print_ada_task_info): Make non-static.
1676 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1677 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1678 * mi/mi-main.c: #include "ada-lang.h".
1679 (mi_cmd_list_features): Add "ada-task-info" to the list
1680 of supported features.
1681 (mi_cmd_ada_task_info): New function.
1682
7ed7d719
JB
16832011-10-03 Joel Brobecker <brobecker@adacore.com>
1684
1685 * python/python.c (python_run_simple_file): New function.
1686 (source_python_script, source_python_script_for_objfile):
1687 Replace call to PyRun_SimpleFile by call to
1688 python_run_simple_file.
1689
3fcaed38
PK
16902011-10-03 Paul Koning <paul_koning@dell.com>
1691
1692 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1693 (value_to_value_object): Fetch value if it was lazy.
1694
8e5c319d
JK
16952011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 Code cleanup.
1698 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1699 Rearrange the code for it.
1700
dd11a36c
JB
17012011-10-02 Joel Brobecker <brobecker@adacore.com>
1702
1703 * breakpoint.c (bkpt_print_recreate): Add call to
1704 print_recreate_thread.
1705
723b724b
MF
17062011-09-29 Mike Frysinger <vapier@gentoo.org>
1707
1708 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1709 PTRACE_GETFDPIC_INTERP): Define.
1710
412946b6
YQ
17112011-09-28 Yao Qi <yao@codesourcery.com>
1712
1713 * symfile.c (add_symbol_file_command): Update message on usage.
1714
a73bb892
PK
17152011-09-28 Paul Koning <paul_koning@dell.com>
1716
1717 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1718 (typy_length, typy_get, typy_has_key, typy_make_iter)
1719 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1720 (typy_iterator_iter, typy_iterator_iternext)
1721 (typy_iterator_dealloc): New functions to implement standard
1722 Python mapping methods on gdb.Type object.
1723 (gdb.TypeIterator): New Python type.
1724 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1725
fe10a582
DM
17262011-09-28 David S. Miller <davem@davemloft.net>
1727
1728 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1729 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1730 * sparc-tdep.c (sparc_complex_floating_p): New function.
1731 (sparc32_store_arguments): Handle complex floats.
1732 (sparc32_extract_return_value): Likewise.
1733 (sparc32_store_return_value): Likewise.
1734 (sparc32_stabs_argument_has_addr): Likewise.
1735 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1736 (sparc64_store_floating_fields): Handle complex floats.
1737 (sparc64_store_arguments): Likewise.
1738 (sparc64_store_return_value): Likewise.
1739
c93dbcba
EZ
17402011-09-28 Eli Zaretskii <eliz@gnu.org>
1741
1742 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1743 before the change on 2006-12-09.
1744 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1745 generates the environment block for CreateProcessA, modulo the
1746 Cygwin-specific parts that are not needed here.
1747
f00c55f8
TG
17482011-09-27 Tristan Gingold <gingold@adacore.com>
1749
1750 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1751 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1752 (darwin_solib_get_all_image_info_addr_at_init): New function.
1753 (darwin_solib_read_all_image_info_addr): Likewise.
1754 (darwin_solib_create_inferior_hook): Use the above two functions.
1755 * darwin-nat.c (darwin_execvp): Renames retval to res.
1756 (darwin_read_write_inferior): Update comment.
1757 (darwin_read_dyld_info): New function.
1758 (darwin_xfer_partial): Handle DYLD_INFO.
1759
6710bf39
SS
17602011-09-27 Stan Shebs <stan@codesourcery.com>
1761
1762 Add return address collection for tracepoints.
1763 * tracepoint.c (encode_actions_1): Add case for $_ret.
1764 (validate_actionline): Check for $_ret.
1765 (trace_dump_actions): Ditto.
1766 * ax-gdb.h (gen_trace_for_return_address): Declare.
1767 * ax-gdb.c: Include arch-utils.h.
1768 (gen_trace_for_return_address): New function.
1769 (agent_command): Add return address special case.
1770 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1771 (amd64_gen_return_address): New function.
1772 (amd64_init_abi): Call it.
1773 * i386-tdep.c: Include ax.h and ax-gdb.h.
1774 (i386_gen_return_address): New function.
1775 (i386_init_abi): Call it.
1776 * arch-utils.h (default_gen_return_address): Declare.
1777 * arch-utils.c (default_gen_return_address): New function.
1778 * gdbarch.sh (gen_return_address): New method.
1779 * gdbarch.h, gdbarch.c: Regenerate.
1780
e04e5beb
JM
17812011-09-23 Joseph Myers <joseph@codesourcery.com>
1782
1783 PR gdb/13079
1784 * i386-tdep.c (i386_frame_align): New.
1785 (i386_gdbarch_init): Use i386_frame_align.
1786
f3d6df6d
YQ
17872011-09-23 Yao Qi <yao@codesourcery.com>
1788
1789 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1790 to get address.
1791
e69860f1
TG
17922011-09-22 Tristan Gingold <gingold@adacore.com>
1793
1794 * fork-child.c (fork_inferior): Add exec_fun parameter.
1795 Call exec_fun or execvp.
1796 * inferior.h: Adjust prototype.
1797 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1798 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1799 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1800 * procfs.c (procfs_create_inferior): Ditto.
1801 * darwin-nat.c (darwin_execvp): New function.
1802 (darwin_create_inferior): Use it.
1803
4b51d87b
YQ
18042011-09-22 Yao Qi <yao@codesourcery.com>
1805
1806 * infrun.c (context_switch): Print debug message when switching to
1807 a different thread.
1808
56b9d9ac
UW
18092011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1810
1811 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1812 complex and vector types.
1813 (s390_return_value_convention): Likewise.
1814
1815 (s390_value_from_register): Call check_typedef.
1816 (extend_simple_arg): Likewise.
1817 (alignment_of): Likewise.
1818 (s390_push_dummy_call): Likewise.
1819 (s390_return_value): Likewise.
1820
b2cd6b29
JM
18212011-09-21 Joseph Myers <joseph@codesourcery.com>
1822
1823 * event-top.c (async_disconnect): If an exception is thrown from
1824 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1825 catch_errors.
1826 * top.c (quit_cover): Return void and take no arguments.
1827 * top.h (quit_cover): Update prototype.
1828
67ba4e42
JM
18292011-09-20 Joseph Myers <joseph@codesourcery.com>
1830
1831 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1832 current_uiout, not uiout.
1833
562f943b
DE
18342011-09-19 Doug Evans <dje@google.com>
1835
1836 * python/py-auto-load.c (source_section_scripts): Fix file
1837 descriptor leak.
1838 * python/python.c (source_python_script_for_objfile): Tweak comments.
1839
34518530
YQ
18402011-09-18 Yao Qi <yao@codesourcery.com>
1841 Ulrich Weigand <ulrich.weigand@linaro.org>
1842
1843 Support displaced stepping for Thumb 16-bit insns.
1844 * arm-tdep.c (THUMB_NOP) Define.
1845 (thumb_copy_unmodified_16bit): New.
1846 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1847 (thumb_copy_alu_reg): New.
1848 (arm_copy_svc): Move some common code to ...
1849 (install_svc): ... here. New.
1850 (thumb_copy_svc): New.
1851 (install_pc_relative): New.
1852 (thumb_copy_pc_relative_16bit): New.
1853 (thumb_decode_pc_relative_16bit): New.
1854 (thumb_copy_16bit_ldr_literal): New.
1855 (thumb_copy_cbnz_cbz): New.
1856 (cleanup_pop_pc_16bit_all): New.
1857 (thumb_copy_pop_pc_16bit): New.
1858 (thumb_process_displaced_16bit_insn): New.
1859 (thumb_process_displaced_32bit_insn): New.
1860 (thumb_process_displaced_insn): process thumb instruction.
1861
1862 Support displaced stepping for Thumb 32-bit insns.
1863 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1864 (thumb2_copy_preload): New.
1865 (thumb2_copy_copro_load_store): New.
1866 (thumb2_copy_b_bl_blx): New.
1867 (thumb2_copy_alu_imm): New.
1868 (thumb2_copy_load_reg_imm): New.
1869 (thumb2_copy_load_literal): New
1870 (thumb2_copy_block_xfer): New.
1871 (thumb_32bit_copy_undef): New.
1872 (thumb_32bit_copy_unpred): New.
1873 (thumb2_decode_ext_reg_ld_st): New.
1874 (thumb2_decode_svc_copro): New.
1875 (decode_thumb_32bit_store_single_data_item): New.
1876 (thumb_copy_pc_relative_32bit): New.
1877 (thumb_decode_pc_relative_32bit): New.
1878 (decode_thumb_32bit_ld_mem_hints): New.
1879 (thumb2_copy_table_branch): New
1880 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1881 instructions.
1882
2b16b2e3
YQ
18832011-09-18 Yao Qi <yao@codesourcery.com>
1884
1885 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1886 (install_b_bl_blx): Likewise.
1887
0f6f04ba
YQ
18882011-09-17 Yao Qi <yao@codesourcery.com>
1889
1890 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1891 (install_load_store): ... this. New.
1892 Change parameter BYTE to SIZE.
1893 (arm_copy_ldr_str_ldrb_strb): Update caller.
1894 (arm_decode_ld_st_word_ubyte): Update caller.
1895
e2d96639
YQ
18962011-09-17 Yao Qi <yao@codesourcery.com>
1897
1898 * infrun.c (displaced_step_fixup): Move some code ...
1899 (displaced_step_restore): ... here. New function.
1900 (handle_inferior_event): Cleanup displaced stepping state for both
1901 child and parent when get forked or vforked event.
1902 * regcache.c (get_thread_arch_aspace_regcache): New function.
1903 get_thread_arch_regcache (): Call it.
1904
a8123151
JB
19052011-09-16 Joel Brobecker <brobecker@adacore.com>
1906
1907 * ada-tasks.c (print_ada_task_info): New function, merging
1908 short_task_info and info_tasks together. Reimplement using
1909 ui-out instead of printing to stdout directly. Move the code
1910 building and checking the task list here, instead of leaving it
1911 in info_tasks_command.
1912 (info_task): Move the code building and checking the task
1913 list here, instead of leaving it in info_tasks_command.
1914 (info_tasks_command): Delete code building and checking
1915 the task list - moved elsewhere. Update calls to info_tasks
1916 and info_task.
1917
fbf06824
JB
19182011-09-16 Joel Brobecker <brobecker@adacore.com>
1919
1920 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1921
34a0bc90
JB
19222011-09-16 Joel Brobecker <brobecker@adacore.com>
1923
1924 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1925
79779fa9
JB
19262011-09-16 Joel Brobecker <brobecker@adacore.com>
1927
1928 * ada-lang.h (ada_build_task_list): Remove parameter
1929 `warn_if_null'.
1930 * ada-tasks.c (ada_build_task_list): Remove parameter
1931 `warn_if_null'. Adjust implementation and documentation.
1932 (valid_task_id, ada_get_environment_task)
1933 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1934 (info_tasks_command): Adjust implementation.
1935 (task_command): Likewise.
1936 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1937 to ada_build_task_list.
1938
e225eb91
JB
19392011-09-16 Joel Brobecker <brobecker@adacore.com>
1940
1941 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1942 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1943 (ada_tasks_inferior_data_handle): New static global.
1944 (get_ada_tasks_inferior_data): New function.
1945 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1946 (ada_get_environment_task, iterate_over_live_ada_tasks)
1947 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1948 Adjust.
1949 (ada_set_current_inferior_known_tasks_addr): New function.
1950 (read_known_tasks, ada_build_task_list, short_task_info)
1951 (info_tasks, info_task, info_tasks_command, task_command_1)
1952 (task_command, ada_task_list_changed): Adjust.
1953 (ada_tasks_invalidate_inferior_data): New function.
1954 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1955 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1956 * ada-lang.h (struct inferior): Add declaration.
1957 (ada_task_list_changed): Update profile.
1958 * remote-wtx-pd.c: #include "inferior.h".
1959 (switch_to_pd_internal): Update call to ada_task_list_changed.
1960
6da9ca05
JB
19612011-09-16 Joel Brobecker <brobecker@adacore.com>
1962
1963 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1964 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1965 (atcb_fieldno): Delete these static globals.
1966 (struct ada_tasks_pspace_data): New struct.
1967 (ada_tasks_pspace_data_handle): New static global.
1968 (get_ada_tasks_pspace_data): New function.
1969 (ada_tasks_invalidate_pspace_data): New function.
1970 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1971 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1972 (_initialize_tasks): Create this module's per-progspace
1973 data handle.
1974
dccd3cbd
JB
19752011-09-16 Joel Brobecker <brobecker@adacore.com>
1976
1977 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1978
f877b031
TG
19792011-09-16 Tristan Gingold <gingold@adacore.com>
1980
1981 * fork-child.c (fork_inferior): Update comment. Use alloca
1982 instead of xmalloc for argv. Move len and shell_command
1983 declarations in the block where they are used.
1984 Only call execvp. Factorize failure code.
1985
ae0c443d
JK
19862011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1987
1988 Code cleanup.
1989 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1990 `exp_element' instead of an element of the same and make the function
1991 static.
1992 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1993 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1994 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1995 Change argument of `write_exp_elt' function call.
1996 Remove extra spaces from comments.
1997 * parser-defs.h (write_exp_elt): Remove prototype.
1998
5af65ec0
PK
19992011-09-15 Paul Koning <paul_koning@dell.com>
2000
2001 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2002 count of item appended to list.
2003 * python/py-type.c (typy_fields): Likewise.
2004
72be8ccc
PK
20052011-09-15 Paul Koning <paul_koning@dell.com>
2006
883640a8 2007 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2008
92f6badc
KP
20092011-09-15 Kevin Pouget <kevin.pouget@st.com>
2010
2011 PR threads/12628
2012 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2013 processes with multiple threads.
2014 (inf_has_multiple_thread_cb): New function.
2015 (inf_has_multiple_threads): New function.
2016
0672bf41 20172011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2018
2019 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2020 * python/py-inferior.c (GdbMethods): New Python method definition.
2021
6839b47f
KP
20222011-09-15 Kevin Pouget <kevin.pouget@st.com>
2023
2024 Handle multiple breakpoint hits in Python interface:
2025 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2026 variable to breakpoints.
2027 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2028 bps instead of single breakpoint. Fix some space typos.
2029 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2030 variable to breakpoints.
2031
672f9b60
KP
20322011-09-15 Kevin Pouget <kevin.pouget@st.com>
2033
2034 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2035 note if the breakpoint is internal.
2036
43675ae4
KP
20372011-09-15 Kevin Pouget <kevin.pouget@st.com>
2038
0672bf41 2039 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2040
15148d6a
PA
20412011-09-14 Pedro Alves <pedro@codesourcery.com>
2042
2043 * infrun.c (prepare_for_detach, wait_for_inferior)
2044 (fetch_inferior_event): Don't flush the register cache.
2045 * remote.c (struct stop_reply) <regcache>: Add comment.
2046
d83e736b
JK
20472011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2048
2049 Remove excessive DWARF expressions memory duplication.
2050 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2051 for block.data.
2052 (indirect_pieced_value): Remove variable result. Remove variable
2053 back_to and its use for baton.data.
2054 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2055 block.data.
2056 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2057 Update the function comment.
2058
c65b3e0d
PA
20592011-09-13 Pedro Alves <pedro@codesourcery.com>
2060
2061 * inferior.h (ALL_INFERIORS): New.
2062 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2063 for a stopped thread.
2064 (thread_db_find_new_threads): Look for threads in all inferiors.
2065
a1398e0c
PA
20662011-09-13 Pedro Alves <pedro@codesourcery.com>
2067
2068 * breakpoint.c (update_watchpoint): Handle the case of the
2069 watchpoint to update not being in the breakpoint list yet.
2070 (hw_watchpoint_use_count): New, factored out from
2071 hw_watchpoint_used_count.
2072 (hw_watchpoint_used_count): Rename to ...
2073 (hw_watchpoint_used_count_others): ... this. Add `except'
2074 parameter. Don't count resources of `except'. Use
2075 hw_watchpoint_use_count.
2076
30596231
PA
20772011-09-13 Pedro Alves <pedro@codesourcery.com>
2078
2079 * gdbthread.h (enum thread_state): Moved here.
2080 (struct thread_info): Rename `executing_' field to `executing' and
2081 `state_' to `state'.
2082 * thread.c (enum thread_state): Moved to gdbthread.h.
2083 (new_thread, add_thread_silent, delete_thread_1)
2084 (any_live_thread_of_process, thread_alive, set_running)
2085 (set_running, is_thread_state, any_running, is_executing)
2086 (set_executing, finish_thread_state, print_thread_info)
2087 (do_captured_thread_select): Adjust.
2088
bede5f5f
JK
20892011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2090
2091 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2092 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2093
4801a9a3
PA
20942011-09-12 Pedro Alves <pedro@codesourcery.com>
2095 Matt Rice <ratmice@gmail.com>
2096
2097 PR gdb/13175
2098
2099 * interps.c (struct interp) <interpreter_out>: Delete field.
2100 (interp_new): Remove the data and uiout parameters and adjust.
2101 (interp_set): Only set the current_uiout from the interpreter's
2102 uiout after initializing the interpreter. Adjust call to
2103 init_proc.
2104 (interp_ui_out): Adjust to call procs->ui_out_proc.
2105 (interp_data, interp_name): New.
2106 * interps.h (interp_init_ftype): Add `self' parameter.
2107 (interp_ui_out_ftype): New typedef.
2108 (struct interp_procs) <ui_out_proc>: New method pointer.
2109 (interp_new): Remove the data and uiout parameters.
2110 (interp_data, interp_name): Declare.
2111 * tui/tui-interp.c (tui_init): Adjust prototype.
2112 (tui_ui_out): New.
2113 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2114 tui_out here. Adjust call to interp_new.
2115 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2116 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2117 (cli_ui_out): New.
2118 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2119 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2120 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2121 Initialize mi->uiout depending on the mi_version as extracted from
2122 the interpreter's name.
2123 (mi_ui_out): New.
2124 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2125 interp_new. Don't allocate the ui_out's of the interpreters here.
2126
d0afda03 21272011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2128
d0afda03 2129 * solib.c (solib_used): New function.
59145f8c
AR
2130 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2131 by another so_list object before freeing it.
2132
bdaf8d4a
JK
21332011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2134
2135 Code cleanup.
2136 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2137 values.
2138
df15bd07
JK
21392011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
2141 Code cleanup.
2142 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2143 (amd64_skip_xmm_prologue): ... this new function. Describe its
2144 parameters. No longer use amd64_prologue_line_bug.
2145 * defs.h (producer_is_gcc_ge_4): New declaration.
2146 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2147 (process_full_comp_unit): Update its caller. Remove
2148 amd64_prologue_line_bug initialization.
2149 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2150 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2151
25289eb2
PA
21522011-09-09 Pedro Alves <pedro@codesourcery.com>
2153
2154 * linux-nat.h (enum resume_kind): New.
2155 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2156 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2157 resume_stop on the new lwp.
25289eb2
PA
2158 (add_lwp): Set last_resume_kind as resume_continue by default.
2159 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2160 (resume_lwp): New, factored out from resume_callback. Also check
2161 for pending status in lp->waitstatus.
2162 (resume_callback): Reimplement.
2163 (resume_clear_callback): Set last_resume_kind as resume_stop.
2164 (resume_set_callback): Set last_resume_kind as resume_continue.
2165 (linux_nat_resume, linux_handle_extended_wait): Set
2166 last_resume_kind.
2167 (running_callback): Also check lp->waitstatus for pending events.
2168 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2169 is resume_step.
2170 (stop_and_resume_callback): Don't re-resume if the core wanted the
2171 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2172 using an invalidated pointer.
2173 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2174 SIGSTOPs if the core wanted the LWP to stop.
2175 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2176 wanted the lwp to stop. If the core wanted the lwp to stop, and
2177 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2178 of TARGET_SIGNAL_STOP.
2179 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2180 here. Instead, signal the lwp, and set the last_resume_kind to
2181 resume_stop.
2182
f687d035
PA
21832011-09-09 Pedro Alves <pedro@codesourcery.com>
2184
2185 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2186 -1 (error), if the lwp exits right after attaching.
2187
bc587a6b
DE
21882011-09-08 Doug Evans <dje@google.com>
2189
63d97a20
DE
2190 * py-cmd.c: Some minor formatting fixes.
2191 (gdbpy_parse_command_name): Rename text arg to name, make const.
2192 All callers updated.
2193 * python-internal.h (gdbpy_parse_command_name): Update.
2194
bc587a6b
DE
2195 * cli/cli-decode.c (add_cmd): Add comment.
2196
08711b9a
JK
21972011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2198
2199 PR breakpoints/12435
2200 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2201 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2202 * dwarf2read.c (process_full_comp_unit): Initialize
2203 amd64_prologue_line_bug.
2204 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2205
b2e7f004
JK
22062011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2207
2208 Fix TUI screen corruption.
2209 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2210 batch_flag.
2211
8afd712c
JK
22122011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2213
2214 * findvar.c (read_var_value): Never return NULL, throw an error
2215 instead. Update the function comment. State symbol name in the error
2216 messages.
2217 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2218 read_var_value.
2219 * stack.c (print_frame_args): Likewise.
2220 * valops.c (value_of_variable): Likewise.
2221
b99b5f66
JK
22222011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2223
2224 * stack.c (print_frame_args): New variable except. Wrap
2225 read_var_value and common_val_print into TRY_CATCH.
2226
85bc8cb7
JK
22272011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2228
2229 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2230 caller to value_of_this.
2231 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2232 Twice.
2233 * valops.c (value_of_this): Remove parameter complain and variable ret.
2234 Update function comment. Never return NULL by this code.
2235 (value_of_this_silent): New function.
2236 * value.h (value_of_this): Remove parameter complain.
2237 (value_of_this_silent): New declaration.
2238
ede1849f
YQ
22392011-09-07 Yao Qi <yao@codesourcery.com>
2240
2241 * gdbthread.h (struct thread_info): Remove fields
2242 `stepping_through_solib_after_catch' and
2243 `stepping_through_solib_catchpoints'.
2244 * infrun.c (init_thread_stepping_state): Update.
2245 (process_event_stop_test, currently_stepping): Update.
2246 (currently_stepping_or_nexting_callback): Update.
2247
6aa27652
YQ
22482011-09-07 Yao Qi <yao@codesourcery.com>
2249
2250 * gdbthread.h (struct thread_info): Comment on field
2251 `step_after_step_resume_breakpoint'.
2252
00db5b94
PA
22532011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2254
2255 * remote.c (remote_console_output): Reindent.
2256
861152be
LM
22572011-09-06 Luis Machado <lgustavo@codesourcery.com>
2258
2259 * frame.c (has_stack_frames): Check for currently selected
2260 traceframe.
2261
ab821bc6
PA
22622011-09-06 Pedro Alves <pedro@codesourcery.com>
2263
2264 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2265 (set_async_annotation_level, set_async_prompt, pop_prompt)
2266 (push_prompt, new_async_prompt): Delete declarations.
2267 * top.h (get_prompt, set_prompt): Change prototype.
2268 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2269 declarations.
2270 * top.c (command_loop):
2271 (top_prompt): New global.
2272 (get_prefix, set_prefix, get_suffix, ): Delete.
2273 (get_prompt, set_prompt): Rewrite.
2274 (show_new_async_prompt): Rename to ...
2275 (show_prompt): ... this.
2276 (init_main): Adjust. Don't handle --annotate=2 here.
2277 * event-top.c (new_async_prompt): Delete.
2278 (the_prompts): Delete.
2279 (more_to_come): Make static.
2280 (display_gdb_prompt): Use top_level_prompt() to compute the top
2281 level prompt, and don't notify the before_prompt observers
2282 directly here. Always trick readline into not trying to display
2283 the prompt if sync_execution and displaying the primary prompt.
2284 If displaying a local/secondary prompt, always show it, even if
2285 sync_execution is set.
2286 (change_annotation_level): Delete.
2287 (top_level_prompt): New, based on change_annotation_level.
2288 (push_prompt, pop_prompt): Delete.
2289 (async_disable_stdin): No longer pushes prompt.
2290 (command_line_handler): No longer pushes or pops prompt. If more
2291 input is expected, call display_gdb_prompt with an explicit empty
2292 prompt.
2293 (async_stop_sig): Adjust.
2294 (set_async_annotation_level, set_async_prompt): Delete.
2295 * python/python.c (before_prompt_hook): Adjust.
2296
f1d90504
PA
22972011-09-05 Pedro Alves <pedro@codesourcery.com>
2298
2299 PR cli/13110
2300
2301 * infrun.c (fetch_inferior_event): Check if there's a selected
2302 thread before checking if the selected thread is executing.
2303
0f641c01
PA
23042011-09-05 Pedro Alves <pedro@codesourcery.com>
2305
2306 * inf-loop.c (execute_command): Don't check if the current thread
2307 if running before synchronously waiting for command completion.
2308 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2309 here.
2310 (normal_stop): Call async_enable_stdin here.
2311 * inf-loop.c (inferior_event_handler): Don't call
2312 async_enable_stdin, nor handle "set exec-done-display" here.
2313
30368258 23142011-09-04 Joel Brobecker <brobecker@adacore.com>
2315
2316 GDB 7.3.1 released.
2317
31916278
JB
23182011-09-04 Joel Brobecker <brobecker@adacore.com>
2319
2320 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2321
e8d56f18
JB
23222011-09-04 Joel Brobecker <brobecker@adacore.com>
2323
2324 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2325
5dd05d8c
JK
23262011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2329
7d8e6458 23302011-09-02 Matt Rice <ratmice@gmail.com>
2331
2332 PR gdb/10720
2333 * event-top.c (cli_command_loop): Replace readline setup with
2334 direct call to display_gdb_prompt.
2335 (display_gdb_prompt): Do not call observer mechanism during
2336 synchronous execution.
2337
84636d28
PA
23382011-09-02 Pedro Alves <pedro@codesourcery.com>
2339
2340 * linux-nat.c (in_pid_list_p): New.
2341 (linux_record_stopped_pid): Delete.
2342 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2343 already attached to the LWP. Return an indication if so.
2344 (linux_nat_filter_event): Adjust.
2345 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2346 returning an indication to ignore this thread.
2347
b4a14fd0
PA
23482011-09-02 Pedro Alves <pedro@codesourcery.com>
2349
2350 * top.c: Include interps.h.
2351 (execute_command): If the target can async, but the interpreter is
2352 in sync mode, synchronously wait for the command to finish before
2353 returning.
2354 (execute_command_to_string): Force the interpreter to sync mode.
2355 * infrun.c: Include interps.h.
2356 (fetch_inferior_event): Don't restore the prompt yet if the
2357 interpreter is in sync mode.
2358 * interps.c (interpreter_async): New global.
2359 * interps.h (interpreter_async): Declare.
2360 * inf-loop.c: Include interps.h.
2361 (inferior_event_handler): Don't print the language change or run
2362 breakpoint commands yet if the interpreter in is sync mode.
2363 * main.c (captured_command_loop): Flip the interpreter to async
2364 mode.
2365 * cli/cli-script.c: Include interps.h.
2366 (execute_user_command, while_command, if_command): Force the
2367 interpreter to sync mode.
2368 * python/python.c: Include interps.h.
2369 (python_command, execute_gdb_command): Force the interpreter to
2370 sync mode.
2371
c709acd1
PA
23722011-09-02 Pedro Alves <pedro@codesourcery.com>
2373
2374 * value.c (show_convenience): Catch errors thrown while printing
2375 each internal variable.
2376 * infrun.c (validate_siginfo_access): New function.
2377 (siginfo_value_read, siginfo_value_write): Call it.
2378
9655e943
JK
23792011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2380
2381 Revert:
2382 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2383 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2384 attribute.
2385
cb457ae2
YQ
23862011-08-29 Yao Qi <yao@codesourcery.com>
2387
2388 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2389 (cmp_name): New.
2390 (enable_break2): Update caller.
2391 * solib-frv.c (bfd_lookup_symbol): Removed.
2392 (cmp_name): New.
2393 (enable_break2): Update caller.
2394 * solib-pa64.c (bfd_lookup_symbol): Removed.
2395 (cmp_name): New.
2396 * solib-svr4.c (bfd_lookup_symbol): Removed.
2397 (cmp_name_and_sec_flags): New.
2398 (enable_break): Update caller.
2399 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2400 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2401 (gdb_bfd_lookup_symbol): New.
2402 * solib.h: Functions declarations.
2403
83d1a36a
YQ
24042011-08-29 Yao Qi <yao@codesourcery.com>
2405
2406 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2407 and solib-dsbt.o.
2408
c04b3e8f
JK
24092011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2410
2411 Fix TUI stepi on code without symbols.
2412 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2413 current PC instead.
2414
cb0fd152
JK
24152011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2416
2417 Code cleanup.
2418 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2419 and the static keyword.
2420 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2421 Make prefix an array.
2422 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2423 * mi/mi-main.c (get_register): Remove stb initialization and the static
2424 keyword.
2425
91174723
JK
24262011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2427
2428 Code cleanup - make mi_opt const.
2429 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2430 opts const.
2431 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2432 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2433 (mi_cmd_env_dir): Likewise.
2434 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2435 (mi_cmd_target_file_put): Likewise.
2436 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2437 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2438 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2439 (mi_valid_noargs): Make opts const.
2440 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2441 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2442 (mi_cmd_data_read_memory): Likewise.
2443 (mi_cmd_data_read_memory_bytes): Likewise.
2444 (mi_cmd_data_write_memory): Likewise.
2445
5068b8e8 24462011-08-26 Matt Rice <ratmice@gmail.com>
2447
2448 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2449 bcache_xmalloc, replace bcache_xmalloc with call to
2450 psymbol_bcache_init for psymbol_cache.
2451 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2452
a4f2ce05
JK
24532011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2454
2455 * inf-loop.c (inferior_event_handler): Add exception_print in
2456 INF_EXEC_COMPLETE.
2457
353d1d73
JK
24582011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2459
2460 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2461 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2462 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2463 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2464 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2465 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2466 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2467 * infrun.c (fetch_inferior_event): Call
2468 make_bpstat_clear_actions_cleanup.
2469 * top.c (execute_command): New variable cleanup_if_error, call
2470 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2471 * utils.c (do_bpstat_clear_actions_cleanup)
2472 (make_bpstat_clear_actions_cleanup): New functions.
2473
3ced3da4
PA
24742011-08-26 Pedro Alves <pedro@codesourcery.com>
2475
2476 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2477 either the parent or the child forks. Rename a couple locals.
2478
a9f4bb21
PA
24792011-08-26 Pedro Alves <pedro@codesourcery.com>
2480
2481 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2482 library call. Avoid reading the `status' local if all waitpid
2483 calls failed.
2484
e5798bef
PA
24852011-08-26 Pedro Alves <pedro@codesourcery.com>
2486
2487 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2488 opening /proc/PID/task always succeeds.
2489
edb2aadf
AR
24902011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2491
2492 * linespec.c (symtab_from_filename): Check for the end of string.
2493
0d932b2f
MK
24942011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2495
2496 PR mi/11912
2497 * varobj.c (cplus_describe_child): Add the keyword
2498 'class' to the output of the method when dealing
2499 with a cast to a base class.
2500
e93ca019
JK
25012011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 No functionality change.
2504 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2505 function comment a reference, new variables tp and bs, move here code
2506 from throw_exception.
2507 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2508 describe it in the comment.
2509 * exceptions.c (throw_exception): Remove variable tp, move the code for
2510 bpstat_clear_actions to bpstat_clear_actions.
2511
13da1c97
LM
25122011-08-24 Luis Machado <lgustavo@codesourcery.com>
2513
2514 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2515 * linux-nat.c: Include linux-procfs.h.
2516 (linux_proc_get_tgid): Move to ...
2517 * common/linux-procfs.c: ... here. New file.
2518 * common/linux-procfs.h: New file.
2519 * linux-thread-db.c: Include linux-procfs.h.
2520 * Makefile.in: Update dependencies.
2521 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2522 * config/arm/linux.mh: Likewise.
2523 * config/i386/linux.mh: Likewise.
2524 * config/i386/linux64.mh: Likewise.
2525 * config/ia64/linux.mh: Likewise.
2526 * config/m32r/linux.mh: Likewise.
2527 * config/m68k/linux.mh: Likewise.
2528 * config/mips/linux.mh: Likewise.
2529 * config/pa/linux.mh: Likewise.
2530 * config/pa/linux.mh: Likewise.
2531 * config/powerpc/linux.mh: Likewise.
2532 * config/powerpc/ppc64-linux.mh: Likewise.
2533 * config/powerpc/spu-linux.mh: Likewise.
2534 * config/sparc/linux.mh: Likewise.
2535 * config/sparc/linux64.mh: Likewise.
2536 * config/xtensa/linux.mh: Likewise.
2537
4e5c165d
HZ
25382011-08-24 Hui Zhu <teawater@gmail.com>
2539
2540 * tracepoint.c (cond_string_is_same): New function.
2541 (find_matching_tracepoint): Add condition check
2542 by cond_string_is_same.
2543
6e2f5b22
JK
25442011-08-23 Josh Matthews <josh@joshmatthews.net>
2545
2546 Fix build error in Darwin port.
2547 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2548
abf85f46
JK
25492011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 Code cleanup.
2552 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2553 (command_line_is_silent): New function.
2554 (bpstat_do_actions_1): No longer use commands_left, use
2555 command_line_is_silent for commands.
2556 (bpstat_alloc): Remove clearing of commands_left.
2557 (bpstat_stop_status): Remove initialization of commands_left, use
2558 command_line_is_silent.
2559 * breakpoint.h (struct bpstats): Remove commands_left.
2560
3a93a0c2
KS
25612011-08-18 Keith Seitz <keiths@redhat.com>
2562
2563 PR c++/12266
2564 * cp-name-parser.y (struct demangle_info): Remove unused
2565 member PREV.
2566 (d_grab): Likewise.
2567 (allocate_info): Change return type to struct demangle_info *.
2568 Always allocate a new demangle_info.
2569 Remove unused PREV pointer.
2570 (cp_new_demangle_parse_info): New function.
2571 (cp_demangled_name_parse_free): New function.
2572 (do_demangled_name_parse_free_cleanup): New function.
2573 (make_cleanup_cp_demangled_name_parse_free): New function.
2574 (cp_demangled_name_to_comp): Change return type to
2575 struct demangle_parse_info *.
2576 Allocate a new storage for each call.
2577 (main): Update usage for cp_demangled_name_to_comp
2578 API change.
2579 * cp-support.h (struct demangle_parse_info): New structure.
2580 (cp_demangled_name_to_comp): Update API change for
2581 return type.
2582 (cp_new_demangle_parse_info): Declare.
2583 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2584 (cp_demangled_name_parse_free): Declare.
2585 * cp-support.c (cp_canonicalize_string): Update API
2586 change for cp_demangled_name_to_comp.
2587 (mangled_name_to_comp): Likewise.
2588 Return struct demangle_parse_info, too.
2589 (cp_class_name_from_physname): Update mangled_name_to_comp
2590 API change.
2591 (method_name_from_physname): Likewise.
2592 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2593 (cp_remove_params): Likewise.
2594 * python/py-type.c (typy_legacy_template_argument): Likewise.
2595
2596 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2597 (cp_merge_demangle_parse_infos): Declare.
2598 * cp-support.c (ignore_typedefs): New file global.
2599 (copy_string_to_obstack): New function.
2600 (inspect_type): New function.
2601 (replace_typedefs): New function.
2602 (replace_typedefs_qualified_name): New function.
2603 (cp_canonicalize_string_no_typedefs): New function.
2604 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2605 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2606 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2607 instead of cp_canonicalize_string.
2608 (find_method): Likewise.
2609 (decode_compound): Before looking up the name, call
2610 cp_canonicalize_string_no_typedefs.
2611 (decode_variable): Likewise.
2612
fa3a4f15
PM
26132011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2614 Tom Tromey <tromey@redhat.com>
2615 Matt Rice <ratmice@gmail.com>
2616
2617 * python/lib/gdb/prompt.py: New file.
2618 * python/lib/gdb/command/prompt.py: New file.
2619 * NEWS: Document set extended-prompt and gdb.prompt library
2620
85661b1e
YQ
26212011-08-16 Yao Qi <yao@codesourcery.com>
2622
2623 * tic6x-linux-tdep.c: Move const arrays definition from here...
2624 * tic6x-tdep.c: to here ...
2625
11315641
YQ
26262011-08-14 Yao Qi <yao@codesourcery.com>
2627
2628 * NEWS: New port to Texas Instruments TMS320C6x.
2629
8cd64e00
YQ
26302011-08-14 Andrew Jenner <andrew@codesourcery.com>
2631 Bernd Schmidt <bernds@codesourcery.com>
2632 Yao Qi <yao@codesourcery.com>
2633
2634 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2635 * solib-dsbt.c: New file. Support DSBT shared object.
2636 * tic6x-linux-tdep.c: New file.
2637 * tic6x-tdep.c: New file.
2638 * tic6x-tdep.h: New file.
2639
78d85199
YQ
26402011-08-14 Andrew Stubbs <ams@codesourcery.com>
2641 Yao Qi <yao@codesourcery.com>
2642
2643 * remote.c (PACKET_qXfer_fdpic): New enum value.
2644 (remote_protocol_features): Add qXfer:fdpic:read packet.
2645 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2646 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2647 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2648
224bbe49
YQ
26492011-08-14 Yao Qi <yao@codesourcery.com>
2650
2651 Target description for tic6x.
2652 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2653 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2654 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2655 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2656 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2657 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2658 * features/tic6x-c64xp-linux.xml: New.
2659 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2660 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2661 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2662 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2663 * regformats/tic6x-c64xp.dat,
2664 regformats/tic6x-c62x-linux.dat: Generated.
2665 * regformats/tic6x-c64x-linux.dat,
2666 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2667 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2668 features/tic6x-*.c files.
2669 Add regformats/tic6x-*.dat files.
2670
457e09f0
DE
26712011-08-12 Doug Evans <dje@google.com>
2672
2673 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2674 * python/py-symbol.c (sympy_get_type): New function.
2675 (symbol_object_getset): Add "type".
2676
d20c1c3f
PA
26772011-08-12 Pedro Alves <pedro@codesourcery.com>
2678
2679 PR tui/13073
2680
2681 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2682 empty name.
2683 (tui_show_register_group): Don't store a byte buffer in the data
2684 element's value.
2685 (tui_register_format): Skip registers with an empty name.
2686 (tui_get_register): Store a struct value in the data element's
2687 value field instead of a byte buffer holding the raw register
2688 contents. Account for optimized-out and unavailable registers
2689 when comparing register contents.
2690
9d8fa392
PA
26912011-08-09 Pedro Alves <pedro@codesourcery.com>
2692
2693 * printcmd.c (current_display_number): Update comment.
2694 (disable_current_display_cleanup): Delete.
2695 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2696 catch errors thrown while evaluating and printing the display.
2697
401a70b8
TT
26982011-08-09 Tom Tromey <tromey@redhat.com>
2699
2700 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2701
7f86f058
PA
27022011-08-09 Pedro Alves <pedro@codesourcery.com>
2703
94b71cca 2704 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2705 * maint.c (maintenance_command): Ditto.
2706 * somread.c (som_symtab_read): Ditto.
2707 * solib.c (solib_find, solib_map_sections, update_solib_list)
2708 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2709 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2710 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2711 * solib-irix.c (locate_base, disable_break, enable_break)
2712 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2713 (irix_current_sos, irix_open_symbol_file_object)
2714 (irix_special_symbol_handling): Ditto.
2715 * solib-sunos.c (locate_base, first_link_map_member)
2716 (sunos_current_sos, disable_break, enable_break)
2717 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2718 Ditto.
2719 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2720 (open_symbol_file_object, svr4_current_sos, enable_break)
2721 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2722 Ditto.
2723 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2724 (frv_current_sos, enable_break, frv_special_symbol_handling)
2725 (frv_solib_create_inferior_hook): Ditto.
2726 * solist.h (struct target_so_ops): Extend the comments of the
2727 special_symbol_handling, current_sos and open_symbol_file_object
2728 methods.
2729
5e239b84
PM
27302011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2731
2732 * python/lib/gdb/__init__.py: Auto-load files in command and
2733 function directories.
2734 * python/python.c (finish_python_initialization): Use
2735 os.path.join.
2736 * python/lib/gdb/command/pretty_printers.py: Self register
2737 command.
2738 * NEWS: Document auto-loading.
2739
b6cede78
JK
27402011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2741
2742 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2743 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2744 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2745
29d0bb3d
TT
27462011-08-08 Tom Tromey <tromey@redhat.com>
2747
2748 * breakpoint.c (clean_up_filters): Remove.
2749 (catch_syscall_split_args): Use VEC_cleanup.
2750
2f7fb8e4
JK
27512011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2752
2753 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2754 (main): Uncomment "Demangling error\n".
2755
d6c10e95
PP
27562011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2757
2758 * solib-target.c (segment_attributes): Make them static.
2759 (section_attributes, library_children, library_attributes): Likewise.
2760 (library_list_children, library_list_attributes): Likesise.
2761 (library_list_elements): Likewise.
2762
af6e93b2
PA
27632011-08-05 Pedro Alves <pedro@codesourcery.com>
2764
2765 * exceptions.c (throw_exception): Don't disable the current
2766 display.
2767 * printcmd.c (disable_current_display_cleanup): New function.
2768 (do_one_display): Install a cleanup to disable the current display
2769 if doing the display throws.
2770
6a1b1664
EZ
27712011-08-05 Eli Zaretskii <eliz@gnu.org>
2772
2773 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2774 initialization of the tp_new member to the corresponding
2775 gdbpy_initialize_* function.
2776 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2777 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2778 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2779 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2780 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2781
31a0ae49
JK
27822011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2785 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2786 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2787 references to current_uiout.
2788
e0dd0826
PA
27892011-08-04 Pedro Alves <pedro@codesourcery.com>
2790
2791 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2792 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2793 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2794 * top.c (gdb_readline_wrapper): Adjust.
2795 * tui/tui-interp.c (tui_command_loop):
2796 (_initialize_tui_interp): Don't install it.
2797
79a45e25
PA
27982011-08-04 Pedro Alves <pedro@codesourcery.com>
2799
2800 * ui-out.h (uiout): Rename to ...
2801 (current_uiout): ... this.
2802 * ui-out.c (uiout): Rename to ...
2803 (current_uiout): ... this.
2804 * ada-lang.c (print_it_exception, print_one_exception)
2805 (print_mention_exception): Adjust.
2806 * breakpoint.c (watchpoint_check): Adjust.
2807 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2808 (default_collect_info, watchpoints_info, print_one_catch_fork)
2809 (print_one_catch_vfork, print_one_catch_syscall)
2810 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2811 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2812 (print_it_watchpoint, print_mention_watchpoint)
2813 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2814 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2815 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2816 (bkpt_print_mention, momentary_bkpt_print_it)
2817 (tracepoint_print_mention, update_static_tracepoint)
2818 (tracepoints_info, save_breakpoints): Adjust.
2819 * cli-out.c (field_separator): Adjust.
2820 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2821 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2822 * frame.c (get_current_frame): Adjust.
2823 * infcmd.c (run_command_1, print_return_value): Adjust.
2824 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2825 * infrun.c (print_end_stepping_range_reason): Adjust.
2826 (print_signal_exited_reason, print_exited_reason): Adjust.
2827 (print_signal_received_reason, print_no_history_reason): Adjust.
2828 * interps.c (interp_set): Adjust.
2829 * osdata.c (info_osdata_command): Adjust.
2830 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2831 * remote-fileio.c (remote_fileio_request): Adjust.
2832 * remote.c (show_remote_cmd): Adjust.
2833 * solib.c (info_sharedlibrary_command): Adjust.
2834 * source.c (print_source_lines_base): Adjust.
2835 * stack.c (print_stack_frame): Adjust.
2836 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2837 * symfile-mem.c (add_vsyscall_page): Adjust.
2838 * symfile.c (load_progress, generic_load)
2839 (print_transfer_performance): Adjust.
2840 * thread.c (info_threads_command, restore_selected_frame)
2841 (thread_command): Adjust.
2842 * top.c (make_cleanup_restore_ui_file): Adjust.
2843 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2844 (print_one_static_tracepoint_marker): Adjust.
2845 * cli/cli-cmds.c (print_disassembly): Adjust.
2846 * cli/cli-decode.c (print_doc_line): Adjust.
2847 * cli/cli-interp.c (safe_execute_command): Adjust.
2848 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2849 (handle_redirections): Adjust.
2850 * cli/cli-script.c (show_user_1): Adjust.
2851 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2852 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2853 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2854 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2855 (mi_cmd_env_dir): Adjust.
2856 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2857 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2858 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2859 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2860 (list_args_or_locals): Adjust.
2861 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2862 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2863 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2864 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2865 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2866 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2867 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2868 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2869 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2870 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2871 (list_available_thread_groups, mi_cmd_list_thread_groups)
2872 (mi_cmd_data_list_register_names)
2873 (mi_cmd_data_list_changed_registers)
2874 (mi_cmd_data_list_register_values, get_register)
2875 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2876 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2877 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2878 (mi_execute_command, mi_load_progress): Adjust.
2879 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2880 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2881 Adjust.
2882 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2883 * tui/tui-interp.c (tui_command_loop): Adjust.
2884 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2885
f9679975
PA
28862011-08-04 Pedro Alves <pedro@codesourcery.com>
2887
2888 * exceptions.c (struct catcher): Remove saved_uiout field.
2889 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2890 no longer save/resvore the global ui_out builder.
2891 (catch_exceptions_with_msg): Save/override/restore the global
2892 ui_out builder manually instead of relying on TRY_CATCH to do it.
2893 (catch_errors): Save/restore the global ui_out builder manually
2894 instead of relying on TRY_CATCH to do it.
2895 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2896 parameter.
2897 (TRY_CATCH): Adjust.
2898 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2899 the global ui_out builder manually instead of relying on TRY_CATCH
2900 to do it.
2901
934709f0
PW
29022011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2903
2904 * breakpoint.c (update_global_location_list): Ensure
2905 invariant 'first loc marked not duplicated and inserted,
2906 following locs marked duplicated/not inserted' is respected
2907 for multiple locations at the same address.
2908 (unduplicated_should_be_inserted) New function.
2909 (swap_insertion) New function.
2910
2421fe6f
JK
29112011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2912
2913 * stack.c (print_frame_arguments_choices): Comment typo fix.
2914
3fbb6ffa
TJB
29152011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2916
2917 Revert:
2918 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2919 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2920 argument. Update callers.
2921
fbe12357
PP
29222011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2923
2924 PR gdb/13045
2925 * doublest.c (convert_doublest_to_floatformat): Pass correct
2926 mantissa length to put_field.
2927
b1d288d3
JK
29282011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2929
2930 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2931 exception_print code path.
2932 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2933 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2934 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2935
311b5970
JK
29362011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2937
2938 Code cleanup.
2939 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2940 Remove, merge them into ...
2941 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2942 variable args and its initialization.
2943 (struct print_args_args, print_args_stub): Remove, merge them into
2944 print_frame.
2945 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2946 them into ...
2947 (do_gdb_disassembly): ... here. Remove variable args and its
2948 initialization.
2949 (print_frame): Remove variable args and its initialization, new
2950 variable gdbarch and numargs (from print_args_stub), inline here
2951 print_args_stub with a TRY_CATCH.
2952 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2953 them into ...
2954 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2955 New variable e, remove variable btargs and its initialization.
311b5970 2956
484a26a8
TG
29572011-08-01 Tristan Gingold <gingold@adacore.com>
2958
2959 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2960
c30eee59
TJB
29612011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2962
2963 * breakpoint.c (insert_bp_location): Document return value.
2964 (insert_breakpoint_locations): Fix documentation.
2965 (remove_breakpoints): Add documentation.
2966
f116073b
TJB
29672011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2968
2969 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2970 argument. Update callers.
2971
65aa373f
JK
29722011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2973
2974 * stack.c (print_frame_info): Comment typo fix.
2975
a50242fb
SA
29762011-07-29 Sterling Augustine <saugustine@google.com>
2977
2978 * MAINTAINERS (Write After Approval): Add myself to the list.
2979
267f6504
TT
29802011-07-29 Tom Tromey <tromey@redhat.com>
2981
2982 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2983 (library_list_start_segment): Update.
2984 (library_list_start_section): Update.
2985
00bd41d6
PM
29862011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2987
2988 * varobj.c (value_get_print_value): Move hint check later into the
2989 function. Comment function. Free thevalue before reusing it.
2990
18a46dbe
JK
29912011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2992 Pedro Alves <pedro@codesourcery.com>
2993
2994 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2995 value_one.
2996 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2997 Assert the result kind.
2998 * value.h (value_one): Remove parameter lv.
2999
bb7da2bf
JK
30002011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3001
3002 Fix crash on lval_computed values.
3003 * valops.c (value_zero): Use not_lval for lval_computed.
3004
2d5213f8
TT
30052011-07-27 Tom Tromey <tromey@redhat.com>
3006
3007 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3008 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3009
11081198
JK
30102011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3011
3012 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3013 "ptype" by their typedefs difference.
3014
3c6e0cb3
JK
30152011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3016
3017 * dwarf2expr.c (ctx_no_read_reg): New function.
3018 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3019 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3020 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3021 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3022
523f3620
JK
30232011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3026 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3027 file.
3028 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3029 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3030 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3031 (ctx_no_get_base_type): Move the functions here.
3032 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3033 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3034 (ctx_no_get_base_type): New declarations.
3035
24d3216f
TT
30362011-07-27 Tom Tromey <tromey@redhat.com>
3037
3038 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3039 entries.
3040 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3041 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3042
5005c8a9
PP
30432011-07-26 Sterling Augustine <saugustine@google.com>
3044
3045 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3046 ULONGEST.
3047 (dump_bfd_file): Likewise.
3048
480a3f21
PW
30492011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3050
3051 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3052 (remote_hw_watchpoint_length_limit): New variable.
3053 (_initialize_remote) add set,show cmds for this new variable.
3054 * gdb.texinfo: document these new commands.
3055 * NEWS: Mention these new commands.
3056
efa80663
PA
30572011-07-26 Pedro Alves <pedro@codesourcery.com>
3058
3059 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3060 true for software watchpoints.
3061
dbdaa232 30622011-07-26 Joel Brobecker <brobecker@adacore.com>
3063
3064 GDB 7.3 released.
3065
cf2c3c16
TT
30662011-07-26 Tom Tromey <tromey@redhat.com>
3067
3068 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3069 * dwarf2read.c (read_indirect_string_at_offset): New function.
3070 (read_indirect_string): Use it.
3071 (dwarf_decode_macro_bytes): New function, taken from
3072 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3073 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3074 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3075 New functions.
3076 (struct dwarf2_per_objfile) <macro>: New field.
3077 (dwarf2_elf_names): Add .debug_macro.
3078 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3079 (dwarf2_locate_sections): Handle new section.
3080 (read_file_scope): Handle DW_AT_GNU_macros.
3081 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3082
1a532630
PP
30832011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3084
3085 * NEWS: Mention dcache configuration.
3086 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3087 (dcache_size, dcache_line_size): New variables.
3088 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3089 (struct dcache_block): Make it expandable.
3090 (struct dcache_struct): New field.
3091 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3092 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3093 (dcache_poke_byte, dcache_print_line): Adjust.
3094 (set_dcache_size, set_dcache_line_size): New functions.
3095 (set_dcache_command, show_dcache_command): New functions.
3096 (_initialize_dcache): Add new commands.
3097
2eff07b3
PP
30982011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3099
3100 * progspace.h (struct program_space): Add solib_add_generation.
3101 * infcmd.c (post_create_inferior): Only call solib_add if not
3102 already done.
3103 * solib.c (solib_add): Increment solib_add_generation.
3104
543305c9
JK
31052011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3106
3107 Fix implicit pointer offsets.
3108 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3109 ptr.OFFSET.
3110
c0a91b2b
TT
31112011-07-25 Tom Tromey <tromey@redhat.com>
3112
3113 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3114 const.
3115 (ada_exception_sal): Make 'ops' const.
3116 (ada_decode_exception_location): Likewise.
3117 (ada_decode_assert_location): Likewise.
3118 (catch_assert_command): Update.
3119 (catch_ada_exception_command): Update.
3120 (create_ada_exception_catchpoint): Make 'ops' const.
3121 * breakpoint.c (set_raw_breakpoint_without_location)
3122 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3123 const.
3124 (create_internal_breakpoint): Update.
3125 (init_raw_breakpoint_without_location): Make 'ops' const.
3126 (init_raw_breakpoint, init_catchpoint)
3127 (create_fork_vfork_event_catchpoint)
3128 (create_syscall_event_catchpoint, init_breakpoint_sal)
3129 (create_breakpoint_sal, create_breakpoints_sal)
3130 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3131 * breakpoint.h (struct breakpoint) <ops>: Now const.
3132 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3133 const.
3134
6cb9b55b
PP
31352011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3136
3137 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3138
d9b3f62e
PA
31392011-07-25 Pedro Alves <pedro@codesourcery.com>
3140
3141 * breakpoint.h (print_recreate_thread): Declare.
3142 (struct breakpoint): Move step_count, pass_count,
3143 number_on_target, static_trace_marker_id,
3144 static_trace_marker_id_idx ...
3145 (struct tracepoint): ... to this new struct.
3146 (get_tracepoint, get_tracepoint_by_number_on_target)
3147 (get_tracepoint_by_number): Change return type to struct
3148 tracepoint pointer.
3149 * breakpoint.c (is_tracepoint_type): New, factored out from
3150 is_tracepoint.
3151 (is_tracepoint): Adjust.
3152 (print_one_breakpoint_location): Cast to struct tracepoint as
3153 necessary, and adjust.
3154 (print_recreate_catch_fork, print_recreate_catch_vfork)
3155 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3156 print_recreate_thread.
3157 (init_breakpoint_sal): New, factored out from
3158 create_breakpoint_sal.
3159 (create_breakpoint_sal): Reimplement.
3160 (create_breakpoint): Allocate a struct tracecepoint if the caller
3161 wanted a tracepoint. Use init_breakpoint_sal and
3162 install_breakpoint.
3163 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3164 (print_recreate_masked_watchpoint)
3165 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3166 (tracepoint_print_one_detail): Adjust.
3167 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3168 Dump the pass count here.
3169 (update_static_tracepoint): Adjust.
3170 (addr_string_to_sals): Adjust.
3171 (create_tracepoint_from_upload): Adjust. Change return type to
3172 struct tracepoint pointer.
3173 (trace_pass_set_count): Change parameter type to struct tracepoint
3174 pointer, and adjust.
3175 (trace_pass_command): Adjust.
3176 (get_tracepoint, get_tracepoint_by_number_on_target)
3177 (get_tracepoint_by_number): Change return type to struct
3178 tracepoint pointer, and adjust.
3179 (print_recreate_thread): New, factored out from save_breakpoints.
3180 (save_breakpoints): Don't print thread and task and passcount
3181 recreation here.
3182 * remote.c (remote_download_tracepoint): Adjust.
3183 * tracepoint.c (trace_actions_command, validate_actionline)
3184 (start_tracing, tfind_1, trace_find_tracepoint_command)
3185 (trace_dump_command): Adjust.
3186 (find_matching_tracepoint): Change return type to struct
3187 tracepoint pointer, and adjust.
3188 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3189 (tfile_trace_find, tfile_fetch_registers): Adjust.
3190 * tracepoint.h (create_tracepoint_from_upload): Change return type
3191 to struct tracepoint pointer.
3192 * ada-lang.c (print_recreate_exception): Call
3193 print_recreate_thread.
3194 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3195
3a5c3e22
PA
31962011-07-25 Pedro Alves <pedro@codesourcery.com>
3197
3198 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3199 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3200 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3201 watchpoint_thread, watchpoint_triggered ...
3202 (struct watchpoint): ... to this new struct.
3203 (is_watchpoint): Declare.
3204 (install_breakpoint): Add new `internal' parameter.
3205 * breakpoint.c (is_watchpoint): Delete declaration.
3206 (set_breakpoint_condition): Handle watchpoints.
3207 (is_watchpoint): Make public.
3208 (watchpoint_in_thread_scope): Change parameter type to struct
3209 watchpoint.
3210 (watchpoint_del_at_next_stop): Change parameter type to struct
3211 watchpoint. Remove assertion. Adjust.
3212 (update_watchpoint): Ditto.
3213 (insert_breakpoints, breakpoint_init_inferior)
3214 (watchpoints_triggered, watchpoint_check)
3215 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3216 (bpstat_stop_status, print_one_breakpoint_location)
3217 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3218 to struct watchpoint as necessary, and adjust.
3219 (install_breakpoint): Add `internal' argument. If true, don't
3220 mention the new breakpoint. Use set_breakpoint_number.
3221 (create_fork_vfork_event_catchpoint)
3222 (create_syscall_event_catchpoint): Adjust.
3223 (dtor_watchpoint): New.
3224 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3225 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3226 (print_it_watchpoint, print_mention_watchpoint)
3227 (print_recreate_watchpoint, insert_masked_watchpoint)
3228 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3229 (print_one_detail_masked_watchpoint)
3230 (print_mention_masked_watchpoint)
3231 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3232 necessary, and adjust.
3233 (watch_command_1): Allocate and initialize a struct watchpoint
3234 instead of a struct breakpoint. Use install_breakpoint.
3235 (catch_exec_command_1): Adjust.
3236 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3237 fields.
3238 (delete_breakpoint, enable_breakpoint_disp)
3239 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3240 as necessary, and adjust.
3241 (initialize_breakpoint_ops): Install dtor_watchpoint as
3242 watchpoints' dtor method.
3243 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3244 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3245 to struct watchpoint as necessary, and adjust.
3246
2060206e
PA
32472011-07-25 Pedro Alves <pedro@codesourcery.com>
3248
3249 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3250 the the base class ops table.
3251 (catch_exception_breakpoint_ops)
3252 (catch_exception_unhandled_breakpoint_ops)
3253 (catch_assert_breakpoint_ops): Don't statically initialize.
3254 (initialize_ada_catchpoint_ops): New.
3255 (_initialize_ada_language): Call it.
3256 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3257 (bkpt_breakpoint_ops): Forward declare.
3258 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3259 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3260 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3261 (masked_watchpoint_breakpoint_ops)
3262 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3263 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3264 base class ops table.
3265 (null_re_set, null_check_status, null_works_in_software_mode)
3266 (null_resources_needed, null_print_one_detail): Delete.
3267 (bkpt_dtor): Rename to ...
3268 (base_breakpoint_dtor): ... this. Make static.
3269 (bkpt_allocate_location): Rename to ...
3270 (base_breakpoint_allocate_location): ... this. Make static.
3271 (base_breakpoint_re_set): New.
3272 (internal_error_pure_virtual_called): New.
3273 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3274 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3275 (base_breakpoint_works_in_software_mode)
3276 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3277 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3278 (base_breakpoint_print_recreate): New functions.
3279 (base_breakpoint_ops): New global.
3280 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3281 (bkpt_breakpoint_hit): Make static.
3282 (bkpt_check_status): Delete.
3283 (bkpt_resources_needed): Make static.
3284 (bkpt_works_in_software_mode): Delete.
3285 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3286 static.
3287 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3288 (momentary_breakpoint_ops): Don't statically initialize.
3289 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3290 Delete.
3291 (tracepoint_insert_location, tracepoint_remove_location)
3292 (tracepoint_check_status, tracepoint_works_in_software_mode)
3293 (tracepoint_print_it): Delete.
3294 (tracepoint_breakpoint_ops): Don't statically initialize.
3295 (initialize_breakpoint_ops): New.
3296 (_initialize_breakpoint): Call it.
3297 * breakpoint.h (null_re_set, null_works_in_software_mode)
3298 (null_resources_needed, null_check_status, null_print_one_detail):
3299 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3300 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3301 (bkpt_check_status, bkpt_resources_needed)
3302 (bkpt_works_in_software_mode, bkpt_print_it)
3303 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3304 Delete declarations.
3305 (initialize_breakpoint_ops): Declare.
3306
001c8c33
PA
33072011-07-25 Pedro Alves <pedro@codesourcery.com>
3308
3309 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3310 (momentary_bkpt_print_it): Simplify.
3311
06edf0c0
PA
33122011-07-25 Pedro Alves <pedro@codesourcery.com>
3313
3314 Split internal, momentary and user breakpoints breakpoint_ops
3315 tables.
3316
3317 * breakpoint.c (internal_breakpoint_ops)
3318 (momentary_breakpoint_ops): Forward declare.
3319 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3320 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3321 (create_overlay_event_breakpoint)
3322 (create_std_terminate_master_breakpoint)
3323 (create_exception_master_breakpoint): Create breakpoints with
3324 internal_breakpoint_ops vtable.
3325 (set_longjmp_breakpoint): Create momentary breakpoints with
3326 momentary_breakpoint_ops vtable, using
3327 momentary_breakpoint_from_master.
3328 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3329 (create_solib_event_breakpoint): Create breakpoints with
3330 internal_breakpoint_ops vtable.
3331 (set_momentary_breakpoint): Create breakpoints with
3332 momentary_breakpoint_ops vtable.
3333 (momentary_breakpoint_from_master): New, factored out from
3334 clone_momentary_breakpoint.
3335 (clone_momentary_breakpoint): Adjust.
3336 (watch_command_1): Create scope breakpoints with
3337 momentary_breakpoint_ops vtable.
3338 (bkpt_re_set): Remove handling of internal and momentary
3339 breakpoints.
3340 (bkpt_print_mention, bkpt_print_recreate): New.
3341 (bkpt_breakpoint_ops): Adjust.
3342 (internal_bkpt_re_set, internal_bkpt_check_status)
3343 (internal_bkpt_print_it, internal_bkpt_print_mention)
3344 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3345 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3346 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3347 (momentary_bkpt_print_recreate): New.
3348 (momentary_breakpoint_ops): New.
3349
348d480f
PA
33502011-07-25 Pedro Alves <pedro@codesourcery.com>
3351
3352 Implement most breakpoint_ops methods for all breakpoint types,
3353 and move the default handlings to the proper callbacks.
3354
3355 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3356 works_in_software_mode method.
3357 (insert_bp_location): Go through breakpoint_ops->insert_location
3358 for software and hardware watchpoints.
3359 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3360 breakpoint_ops.
3361 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3362 for software and hardware watchpoints.
3363 (print_it_typical): Delete.
3364 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3365 method.
3366 (watchpoint_check): Adjust comment.
3367 (bpstat_check_location): Simply always call the breakpoint's
3368 breakpoint_hit method.
3369 (bpstat_stop_status): Always call the breakpoint's check_status
3370 method. Remove special cases for watchpoints and internal event
3371 breakpoints from here (moved to the check_status implementations).
3372 (print_one_breakpoint_location): Assume b->ops is never NULL.
3373 Remove static tracepoint marker id printing from here (moved to
3374 the print_one_detail callback implementation of tracepoints).
3375 (init_bp_location): Assert OPS is never NULL.
3376 (allocate_bp_location): Always call the breakpoint's
3377 allocate_location method, and remove the default code from here.
3378 (free_bp_location): Always call the location's dtor method, and
3379 remove the default code from here.
3380 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3381 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3382 parameter. Pass it down.
3383 (set_raw_breakpoint): Ditto.
3384 (print_it_catch_fork): Adjust to take a bpstat as argument.
3385 (catch_fork_breakpoint_ops): Install methods.
3386 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3387 (catch_vfork_breakpoint_ops): Install methods.
3388 (dtor_catch_syscall): Call the base dtor.
3389 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3390 (catch_syscall_breakpoint_ops): Install methods.
3391 (dtor_catch_exec): Call the base dtor.
3392 (print_it_catch_exec): Adjust to take a bpstat as argument.
3393 (catch_exec_breakpoint_ops): Install methods.
3394 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3395 the breakpoint's resources_needed method, and remove the default
3396 code from here.
3397 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3398 breakpoint_ops.
3399 (clone_momentary_breakpoint): Clone the original's ops.
3400 (mention): Always call the breakpoint's print_mention method, and
3401 remove the default code from here.
3402 (create_breakpoint_sal): Adjust to pass the ops to
3403 set_raw_breakpoint rather than setting it manually.
3404 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3405 ops to set_raw_breakpoint_without_location rather than setting it
3406 manually.
3407 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3408 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3409 (ranged_breakpoint_ops): Install methods.
3410 (break_range_command): Adjust to pass the ops to
3411 set_raw_breakpoint rather than setting it manually.
3412 (re_set_watchpoint, breakpoint_hit_watchpoint)
3413 (check_status_watchpoint, resources_needed_watchpoint)
3414 (works_in_software_mode_watchpoint, print_it_watchpoint)
3415 (print_mention_watchpoint, print_recreate_watchpoint): New
3416 functions.
3417 (watchpoint_breakpoint_ops): Install new methods.
3418 (print_it_masked_watchpoint): New function.
3419 (masked_watchpoint_breakpoint_ops): Install new methods.
3420 (watch_command_1): Adjust to pass the right breakpoint_ops to
3421 set_raw_breakpoint_without_location rather than setting it
3422 manually later. Record the current pspace.
3423 (print_it_exception_catchpoint): Adjust to take a bpstat as
3424 argument.
3425 (gnu_v3_exception_catchpoint_ops): Install new methods.
3426 (say_where): New function.
3427 (null_re_set, null_check_status, null_works_in_software_mode)
3428 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3429 New functions.
3430 (bp_location_ops): New global.
3431 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3432 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3433 (bkpt_check_status, bkpt_resources_needed)
3434 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3435 (bkpt_print_recreate): New functions.
3436 (bkpt_breakpoint_ops): New global.
3437 (tracepoint_re_set, tracepoint_insert_location)
3438 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3439 (tracepoint_check_status, tracepoint_works_in_software_mode)
3440 (tracepoint_print_it, tracepoint_print_one_detail)
3441 (tracepoint_print_mention, tracepoint_print_recreate): New
3442 functions.
3443 (tracepoint_breakpoint_ops): New global.
3444 (delete_breakpoint): Always call the breakpoint's dtor method, and
3445 remove the default handling from here.
3446 (breakpoint_re_set_default): Make static.
3447 (breakpoint_re_set_one): Always call the breakpoints re_set
3448 method, and remove the default handling from here.
3449 (trace_command, ftrace_command, strace_command)
3450 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3451 to create_breakpoint.
3452 (save_breakpoints): Always call the breakpoint's print_recreate
3453 method, and remove the default handling from here.
3454
3455 * ada-lang.c (dtor_exception): Call the base dtor.
3456 (re_set_exception): Call the base method.
3457 (print_it_exception, print_it_catch_exception): Adjust to take a
3458 bpstat as argument.
3459 (catch_exception_breakpoint_ops): Install methods.
3460 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3461 argument.
3462 (catch_exception_unhandled_breakpoint_ops): Install methods.
3463 (print_it_catch_assert): Adjust to take a bpstat as argument.
3464 (catch_assert_breakpoint_ops): Install methods.
3465
3466 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3467 to take a bpstat as argument.
3468 (enum print_stop_action): Add describing comments to each enum
3469 value.
3470 (breakpoint_re_set_default): Delete declaration.
3471 (null_re_set, null_works_in_software_mode, null_resources_needed)
3472 (null_check_status, null_print_one_detail): Declare.
3473 (bkpt_breakpoint_ops): Declare.
3474 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3475 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3476 (bkpt_check_status, bkpt_resources_needed)
3477 (bkpt_works_in_software_mode, bkpt_print_it)
3478 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3479 Declare.
3480
3481 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3482 bkpt_breakpoint_ops.
3483 * python/py-breakpoint.c (bppy_init): Ditto.
3484
be8f8133
PW
34852011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3486
3487 * MAINTAINERS (Write After Approval): Add myself to the list.
3488
3807f613
PP
34892011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3490
3491 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3492
1ced966e
PA
34932011-07-22 Pedro Alves <pedro@codesourcery.com>
3494
3495 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3496 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3497 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3498 adjust.
3499 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3500 (struct i386_debug_reg_state): New.
3501 (i386_init_dregs): New.
3502 (dr_mirror): New.
3503 (i386_cleanup_dregs): Use i386_init_dregs.
3504 (i386_show_dr): Add state parameter and adjust.
3505 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3506 the inferior here.
3507 (i386_remove_aligned_watchpoint): Likewise.
3508 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3509 (i386_update_inferior_debug_regs): New.
3510 (i386_insert_watchpoint): Work on a local mirror of the debug
3511 registers, and only update the inferior on success.
3512 (i386_remove_watchpoint): Ditto.
3513 (i386_region_ok_for_watchpoint): Adjust.
3514 (i386_stopped_data_address): Adjust.
3515 (i386_insert_hw_breakpoint): Adjust.
3516 (i386_remove_hw_breakpoint): Adjust.
3517
3543a589
TT
35182011-07-22 Tom Tromey <tromey@redhat.com>
3519
3520 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3521 from amd64_pseudo_register_read. Change arguments. Call
3522 mark_value_bytes_unavailable when needed.
3523 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3524 set_gdbarch_pseudo_register_read.
3525 * sentinel-frame.c (sentinel_frame_prev_register): Use
3526 regcache_cooked_read_value.
3527 * regcache.h (regcache_cooked_read_value): Declare.
3528 * regcache.c (regcache_cooked_read_value): New function.
3529 (regcache_cooked_read): Call
3530 gdbarch_pseudo_register_read_value if available.
3531 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3532 (i386_pseudo_register_read): Remove.
3533 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3534 i386_pseudo_register_read. Change arguments. Call
3535 mark_value_bytes_unavailable when needed.
3536 (i386_pseudo_register_read_value): New function.
3537 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3538 not set_gdbarch_pseudo_register_read.
3539 * gdbarch.sh (pseudo_register_read_value): New method.
3540 * gdbarch.c, gdbarch.h: Rebuild.
3541 * findvar.c (value_from_register): Call get_frame_register_value.
3542
95298e72
PM
35432011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3544
3545 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3546 get_prefix.
3547 (display_gdb_prompt): Likewise.
3548 (change_annotation_level): Likewise.
3549 (push_prompt): Likewise.
3550 (pop_prompt): Likewise.
3551 (handle_stop_sig): Use get_prompt with a level.
3552 * top.c (command_loop): Use get_prompt with a level.
3553 (set_async_annotation_level): Use set_prompt with a level.
3554 (get_prefix): New function.
3555 (set_prefix): Ditto.
3556 (set_suffix): Ditto.
3557 (get_suffix): Ditto.
3558 (get_prompt): Accept a level argument.
3559 (set_prompt): Accept a level argument. Free old prompts. Set
3560 new_async_prompt if level is 0.
3561 (init_main): Use set_prompt with a level. Do not set
3562 new_async_prompt.
3563 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3564 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3565 Modify set_prompt, get_prompt to account for levels.
3566 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3567 level.
3568 * python/python.c (before_prompt_hook): Use set_prompt.
3569
d26e3629
KY
35702011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3571
3572 * defs.h: Add guard against inclusion in gdbserver.
3573 (struct ptid, ptid_t): Move to common/ptid.h.
3574 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3575 xsnprintf, internal_error): Move to common/common-utils.h.
3576 (nomem): Delete.
3577 * gdb_assert.h: Move into common/ sub-directory.
3578 * gdb_locale.h: Ditto.
3579 * gdb_dirent.h: Ditto.
3580 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3581 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3582 Move into common/ptid.h.
3583 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3584 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3585 Change nomem to malloc_failure.
3586 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3587 * utils.c (nomem): Rename to malloc_failure.
3588 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3589 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3590 (gdb_buildargv): Change nomem to malloc_failure.
3591 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3592 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3593 ptid_is_pid): Move into common/ptid.c.
3594 (initialize_infrun): Delete initialization of null_ptid and
3595 minus_one_ptid.
3596 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3597 linux_common_xfer_osdata.
3598 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3599 common/ptid.c and common/buffer.c.
3600 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3601 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3602 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3603 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3604 rules.
3605 * common/gdb_assert.h: New.
3606 * common/gdb_dirent.h: New.
3607 * common/gdb_locale.h: New.
3608 * common/buffer.c: New.
3609 * common/buffer.h: New.
3610 * common/ptid.c: New.
3611 * common/ptid.h: New.
3612 * common/xml-utils.c: New.
3613 * common/xml-utils.h: New.
3614 * common/common-utils.c: New.
3615 * common/common-utils.h: New.
3616 * common/linux-osdata.c: New.
3617 * common/linux-osdata.h: New.
3618 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3619 * config/arm/linux.mh (NATDEPFILES): Ditto.
3620 * config/i386/linux.mh (NATDEPFILES): Ditto.
3621 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3622 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3623 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3624 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3625 * config/mips/linux.mh (NATDEPFILES): Ditto.
3626 * config/pa/linux.mh (NATDEPFILES): Ditto.
3627 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3628 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3629 * config/s390/s390.mh (NATDEPFILES): Ditto.
3630 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3631 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3632 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3633
edc84990 36342011-07-21 Matt Rice <ratmice@gmail.com>
3635
3636 * NEWS: Add info macros and info definitions commands.
3637
3a7bf607
PM
36382011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3639
3640 * NEWS: Document Python prompt substitution hook.
3641
9b158ba0 36422011-07-18 Matt Rice <ratmice@gmail.com>
3643
3644 PR macros/12999
3645 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3646 * macrotab.c (foreach_macro): Ditto.
3647 (foreach_macro_in_scope): Ditto.
3648 * macrocmd.c (print_macro_callback): New function.
3649 (info_macro_command): Move some code to print_macro_definition.
3650 (print_macro_definition): New function.
3651 (print_one_macro): Add new arguments to callback.
3652 (info_definitions_command): New function.
3653 (info_macros_command): Ditto.
3654 (_initialize_macrocmd): Add info macros and info definitions commands.
3655 * symtab.c (add_macro_name): Add new arguments to callback.
3656
d17b6f81
PM
36572011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3658 Tom Tromey <tromey@redhat.com>
3659
3660 * top.c (set_prompt): Rewrite to free previous prompt, free
3661 asynch_new_prompt and set both on new prompts.
3662 * event-top.c (display_gdb_prompt): Add prompt substitution
3663 logic.
3664 * python/python.c (before_prompt_hook): New function.
3665
1364323a 36662011-07-20 Matt Rice <ratmice@gmail.com>
3667
3668 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3669 arguments to store_unsigned_integer.
3670
8b70b953
TT
36712011-07-20 Tom Tromey <tromey@redhat.com>
3672
6c83ed52
TT
3673 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3674 in some declaration-only cases.
3675
36762011-07-18 Tom Tromey <tromey@redhat.com>
3677
8b70b953
TT
3678 PR symtab/12984:
3679 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3680 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3681 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3682 <debug_type_section>: New field.
3683 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3684 (load_cu): Use appropriate section.
3685 (create_signatured_type_table_from_index): Add 'section'
3686 argument.
3687 (dwarf2_read_index): Only allow a single .debug_types section.
3688 (dw2_get_file_names): Use appropriate section.
3689 (read_type_comp_unit_head): Add 'section' argument.
3690 (create_debug_types_hash_table): Loop over all .debug_types
3691 sections.
3692 (init_cu_die_reader): Use appropriate section.
3693 (process_psymtab_comp_unit, load_partial_comp_unit)
3694 (load_full_comp_unit, read_die_and_children, find_partial_die)
3695 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3696 (lookup_signatured_type_at_offset): Add 'section' argument.
3697 (read_signatured_type_at_offset): Add 'sect' argument.
3698 (read_signatured_type): Use appropriate section.
3699 (set_die_type, get_die_type_at_offset): Update.
3700 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3701 VEC.
3702 (write_psymtabs_to_index): Don't allow index with more than one
3703 .debug_types section.
3704
918dd910
JK
37052011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3706
3707 Fix crash if referenced CU is aged out.
3708 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3709 xfree of block.data.
3710 (indirect_pieced_value): New variable back_to, use to for xfree of
3711 baton.data.
3712 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3713 block.data.
3714 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3715 (load_cu): New function from ...
3716 (dw2_do_instantiate_symtab): ... the code here ...
3717 (process_full_comp_unit): ... and here.
3718 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3719 retval.data.
3720
0e37a63c
JK
37212011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3722
3723 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3724 type.
3725
7e324e48
GB
37262011-07-19 Gary Benson <gbenson@redhat.com>
3727
3728 * infrun.c (struct execution_control_state): New member
3729 stop_func_filled_in.
3730 (clear_stop_func, fill_in_stop_func): New functions.
3731 (handle_inferior_event): Call clear_stop_func rather than
3732 manipulating the execution control state directly.
3733 Call fill_in_stop_func lazily as required rather than
3734 directly calling find_pc_partial_function in all cases.
3735
d48323d8
TT
37362011-07-18 Tom Tromey <tromey@redhat.com>
3737
3738 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3739 checking for variable-sized array.
3740
40591b7d
JCD
37412011-07-18 Jean-Charles Delay <delay@adacore.com>
3742
3743 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3744 of supported languages.
3745 * varobj.c: Add top definitions and basic implementation of the
3746 following callbacks: ada_number_of_children, ada_name_of_variable,
3747 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3748 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3749 (languages): Register Ada-specific callbacks.
3750 (variable_language): Add the Ada case in the language setter switch.
3751
2e424e08
JK
37522011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3753
3754 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3755
9e8b7a03
JK
37562011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3757
3758 Code cleanup.
3759 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3760 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3761 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3762 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3763 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3764 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3765 (struct dwarf_expr_context_funcs): New, move here methods from ...
3766 (struct dwarf_expr_context): ... here. New fields funcs.
3767 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3768 (dwarf_expr_ctx_funcs): New.
3769 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3770 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3771 (needs_frame_ctx_funcs): New.
3772 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3773
2b1260ab
FM
37742011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3775
3776 * MAINTAINERS (Write After Approval): Add myself to the list.
3777
8bd90839
FM
37782011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3779
3780 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3781 that CIE pointer of an FDE really points to a CIE .
3782
953b98d1
HZ
37832011-07-15 Hui Zhu <teawater@gmail.com>
3784
3785 * remote.c (remote_get_trace_status): Add comments.
3786
c8f2448a
JK
37872011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3788
3789 Code cleanup - constify struct lval_funcs.
3790 * dwarf2loc.c (pieced_value_funcs): Make it const.
3791 * infrun.c (siginfo_value_funcs): Likewise.
3792 * opencl-lang.c (opencl_value_funcs): Likewise.
3793 * valops.c (value_assign, value_ind): Make the funcs variable const.
3794 * value.c (struct value): Make location.computed.funcs target const.
3795 Rearrange the comments.
3796 (allocate_computed_value): Make the funcs parameter target const.
3797 (value_computed_funcs): Return the funcs target const.
3798 (value_free, value_copy, set_value_component_location): Make the funcs
3799 variable const.
3800 * value.h (allocate_computed_value): Make the funcs parameter target
3801 const.
3802 (value_computed_funcs): Return the funcs target const.
3803 * windows-tdep.c (tlb_value_funcs): Make it const.
3804
f652de6f
HZ
38052011-07-14 Hui Zhu <teawater@gmail.com>
3806
3807 * remote.c (remote_get_trace_status): Initialize p.
3808
67f41397
JK
38092011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3810
3811 Work around kgdb.
3812 * remote.c (remote_get_trace_status): New variable ex. Put
3813 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3814
d1b66e6d
TT
38152011-07-13 Tom Tromey <tromey@redhat.com>
3816
3817 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3818 value_from_contents for final conversion.
3819
1632a688
JK
38202011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 Code cleanup.
3823 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3824 Indent prototypes so they do not get into tags.
3825
a7035dbb
JK
38262011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3827
3828 Code cleanup making also optimized out values lazy.
3829 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3830 allocate_optimized_out_value. Twice.
3831 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3832 * findvar.c (read_var_value): Likewise.
3833 * value.c (allocate_optimized_out_value): New function.
3834 * value.h (allocate_optimized_out_value): New declaration.
3835
d07ed419
JK
38362011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3837
3838 Fix occasional crash of CTRL-C during DWARF read in.
3839 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3840
86d31898
TT
38412011-07-11 Tom Tromey <tromey@redhat.com>
3842
3843 * regcache.c (struct regcache_descr): Fix typo.
3844 * i387-tdep.c (i387_supply_xsave): Fix typo.
3845
2ab95328
TT
38462011-07-11 Tom Tromey <tromey@redhat.com>
3847
3848 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3849 (read_file_scope, read_type_unit_scope): Use it.
3850
04ad99e6
JK
38512011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3852
3853 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3854 `int'.
3855
713389e0
PM
38562011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3857
3858 PR python/12438
3859 * python/python.c: Set gdbpy_should_print_stack default to off.
3860 (set_python): Deprecate maint set python print-stack to
3861 class_deprecate.
3862 (_initialize_python): Deprecate maint set/show python print-stack.
3863 Add new prefix command, python. Add new setting, print-backtrace.
3864 * NEWS: Document set python print-stack. Document default change.
3865
754eadd1
PM
38662011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3867
3868 * python/py-inferior.c (infpy_dealloc): New function.
3869 (inferior_to_inferior_object): Return a new object, or a
3870 new reference to the existing object.
3871 (find_thread_object): Cleanup references to inferior.
3872 (delete_thread_object): Ditto.
3873 * python/py-infthread.c (create_thread_object): Do not increment
3874 inferior reference count.
3875
5e44ecb3
TT
38762011-07-08 Tom Tromey <tromey@redhat.com>
3877
3878 * dwarf2loc.c (locexpr_regname): New function.
3879 (locexpr_describe_location_piece): Use it.
3880 (disassemble_dwarf_expression): Add per_cu argument. Use
3881 locexpr_regname.
3882 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3883 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3884 New cases.
3885 (locexpr_describe_location_1): Add per_cu argument.
3886 (locexpr_describe_location): Update.
3887 (loclist_describe_location): Update.
3888
e0e9434c
TT
38892011-07-08 Tom Tromey <tromey@redhat.com>
3890
3891 * dwarf2expr.c (execute_stack_op): Add QUIT.
3892
26afc0d7
HZ
38932011-07-07 Hui Zhu <teawater@gmail.com>
3894
3895 Revert:
3896 2011-07-06 Hui Zhu <teawater@gmail.com>
3897 * remote.c (remote_start_remote): Add TRY_CATCH for
3898 remote_get_trace_status.
3899 * tracepoint.c (disconnect_tracing): Ditto.
3900
a40a111f
AB
39012011-07-07 Andrew Burgess <aburgess@broadcom.com>
3902
3903 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3904 variables as signed, not unsigned.
3905
e2bd3b15
JB
39062011-07-06 Joel Brobecker <brobecker@adacore.com>
3907
3908 * jit.c (jit_inferior_init): Reformat forward declaration.
3909
e3d961fe 39102011-07-06 Matt Rice <ratmice@gmail.com>
3911
3912 * MAINTAINERS (Write After Approval): Add myself to the list.
3913
0f3428f0
HZ
39142011-07-06 Hui Zhu <teawater@gmail.com>
3915
3916 * remote.c (remote_start_remote): Add TRY_CATCH for
3917 remote_get_trace_status.
3918 * tracepoint.c (disconnect_tracing): Ditto.
3919
fc9f3a69
TT
39202011-07-05 Tom Tromey <tromey@redhat.com>
3921
3922 * symtab.c (operator_chars): Now static.
3923 * linespec.c (operator_chars): Don't declare.
3924
26e519b9
TJB
39252011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3926
3927 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3928
eb2a6f42
TT
39292011-07-05 Tom Tromey <tromey@redhat.com>
3930
3931 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3932 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3933 (TYPE_CPLUS_REALLY_JAVA): New macro.
3934 * dwarf2read.c (process_structure_scope): Set
3935 TYPE_CPLUS_REALLY_JAVA.
3936
21083d0f 39372011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3938
3939 * ada-lang.c: Fix typos.
3940 * amd64-tdep.c: Likewise.
3941 * breakpoint.c: Likewise.
3942 * cli/cli-decode.c: Likewise.
3943 * findcmd.c: Likewise.
3944 * inline-frame.c: Likewise.
3945 * mi/mi-main.c: Likewise.
3946 * minsyms.c: Likewise.
3947 * monitor.c: Likewise.
3948 * monitor.h: Likewise.
3949 * prologue-value.c: Likewise.
3950 * reverse.c: Likewise.
3951 * s390-tdep.c: Likewise.
3952
3b2a0cf2
JB
39532011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3954
3955 * jit.c (jit_inferior_init): Forward declare.
3956 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3957
efae1d92
JB
39582011-07-04 Joel Brobecker <brobecker@adacore.com>
3959
3960 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3961
6040a59d
JB
39622011-07-04 Tristan Gingold <gingold@adacore.com>
3963
3964 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3965 (tcb_fieldno): Add activation_link field.
3966 (get_known_tasks_addr): Moved and rewritten.
3967 (get_tcb_types_info): Set activation_link field.
3968 (read_known_tasks_array): Add parameter. Rewritten.
3969 (read_known_tasks_list): New function.
3970 (read_known_tasks): New function.
3971 (ada_build_task_list): Call read_known_tasks instead of
3972 read_known_tasks_array.
3973 * ravenscar-thread.c: Add first_task_name constant.
3974 (has_ravenscar_runtime): Check for task list too.
3975
cb741e45
JB
39762011-07-04 Tristan Gingold <gingold@adacore.com>
3977
3978 * ada-tasks.c: Renames fieldno to actb_fieldno.
3979 (ada_get_task_number): Indentation.
3980 (get_tcb_types_info): Remove all parameters. Write directly
3981 the globals.
3982 (ptid_from_atcb_common): Adjust.
3983 (read_atcb): Adjust.
3984
7475b06c
TJB
39852011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3986
3987 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3988
15230f37
TJB
39892011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3990
3991 * ui-out.c (ui_out_field_core_addr): Mention that the function
3992 description is in the header file.
3993 * ui-out.h (ui_out_field_core_addr): Document function.
3994
65743aba
TJB
39952011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3996
3997 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3998 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3999
c37a5aab
TJB
40002011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4001
4002 * symtab.c (expand_line_sal): Remove empty line.
4003
59adf69e
TS
40042011-07-04 Thomas Schwinge <thomas@schwinge.name>
4005
4006 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4007 same way as ELFOSABI_NONE.
4008 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4009
e5dd4106
TJB
40102011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4011
4012 * breakpoint.c: Fix typos in comments.
4013 * linespec.c: Likewise.
4014 * symtab.c: Likewise.
4015
d40102a1
JB
40162011-07-04 Joel Brobecker <brobecker@adacore.com>
4017
4018 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4019 section in separate object files.
4020
2f741504
JK
40212011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4022
4023 Fix false GCC warning.
4024 * linespec.c (decode_line_1): Initialize values.
4025
418c7cf7
JK
40262011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4027
4028 * linespec.c (find_method): Accept the function type automatically only
4029 if it was specified with parameter types.
4030
3d50dd94
JK
40312011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 Stop on first linespec terminator instead of eating what we can.
4034 * linespec.c (is_linespec_boundary): New function.
4035 (name_end): Remove function.
4036 (keep_name_info): New parameter on_boundary, replace the body.
4037 (decode_line_1): Provide the parameter to keep_name_info.
4038 (decode_compound): Likewise. Drop the trailing java return type
4039 handling. Twice.
4040
dcf9f4ab
JK
40412011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4042
4043 Fall back linespec to minimal symbols.
4044 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4045 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4046 (find_method, symbol_found): Change error to cplusplus_error.
4047
3f542ed1
JK
40482011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4049
bc68c4e5 4050 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4051
900e11f9
JK
40522011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4053 Tom Tromey <tromey@redhat.com>
4054
4055 * dwarf2read.c (check_physname): New variable.
4056 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4057 (show_check_physname): New function.
4058 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4059
2301925d
JB
40602011-07-01 Joel Brobecker <brobecker@adacore.com>
4061
4062 * machoread.c (macho_symfile_read): Delete OBE comment.
4063
38947cca
JB
40642011-07-01 Joel Brobecker <brobecker@adacore.com>
4065
4066 * machoread.c (struct macho_oso_data): Delete.
4067 (current_oso): Delete.
4068 (macho_relocate_common_syms): New function, mostly extracted
4069 out of
4070 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4071 Remove code that sets and unset current_oso.
4072 (macho_symfile_relocate): Delete handling of common symbols,
4073 now moved to macho_relocate_common_syms.
4074
a7aa0d73
JB
40752011-07-01 Joel Brobecker <brobecker@adacore.com>
4076
4077 * darwin-nat.c (darwin_ptrace): Add documentation.
4078 Set errno to zero before calling ptrace. If ptrace returns
4079 -1 and errno is zero, then change then return zero.
4080 (darwin_kill_inferior): Issue a warning instead of triggering
4081 a failed assertion when the PT_KILL ptrace operations returned
4082 nonzero.
4083
5e9bc145
JB
40842011-07-01 Joel Brobecker <brobecker@adacore.com>
4085
4086 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4087 only when inf->private->no_ptrace.
4088
00eb2c4a
JB
40892011-07-01 Joel Brobecker <brobecker@adacore.com>
4090
4091 * ada-lang.c (print_it_exception): Print temporary catchpoints
4092 as "Temporary catchpoint".
4093 (print_mention_exception): Likewise.
4094
127c81bc
TT
40952011-07-01 Tom Tromey <tromey@redhat.com>
4096
4097 * jv-lang.c (java_language_defn): Use java_printchar,
4098 java_printstr.
4099 (java_get_encoding): New function.
4100 (java_emit_char): Use generic_emit_char.
4101 (java_printchar): New function.
4102 (java_printstr): Likewise.
4103
25552254
JB
41042011-07-01 Joel Brobecker <brobecker@adacore.com>
4105
4106 * ada-typeprint.c (print_record_type): If unable to decode
4107 the name of the parent type, use the encoded name.
4108
d2d43431
JB
41092011-07-01 Jean-Charles Delay <delay@adacore.com>
4110
4111 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4112 pointer to constrained packed array type output.
4113 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4114 packed array output.
4115
54ae186f
JB
41162011-07-01 Jean-Charles Delay <delay@adacore.com>
4117
4118 * ada-typeprint.c (print_array_type): removed if condition on show
4119 being negative for bounds printing.
4120
8f17729f
JB
41212011-07-01 Joel Brobecker <brobecker@adacore.com>
4122
4123 * ada-lang.c (ada_identical_enum_types_p): New function.
4124 (symbols_are_identical_enums): New function.
4125 (remove_extra_symbols): Do nothing if NSYMS < 2.
4126 Use symbols_are_identical_enums.
4127
f5aa6869
JB
41282011-07-01 Joel Brobecker <brobecker@adacore.com>
4129
4130 * ada-valprint.c (ada_value_print): Handle typedefs.
4131
8f465ea7
JB
41322011-07-01 Joel Brobecker <brobecker@adacore.com>
4133
4134 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4135
828292f2
JB
41362011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4137
4138 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4139 (decode_constrained_packed_array): Likewise.
4140 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4141
18920c42
JB
41422011-07-01 Joel Brobecker <brobecker@adacore.com>
4143
4144 * ada-exp.y (convert_char_literal): Handle typedef types.
4145
c90092fe
JB
41462011-07-01 Joel Brobecker <brobecker@adacore.com>
4147
4148 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4149
f748fb40
TT
41502011-06-30 Tom Tromey <tromey@redhat.com>
4151
4152 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4153 * valops.c (find_overload_match): Call do_cleanups on early exit
4154 path.
4155 * solib.c (solib_find): Call do_cleanups on early exit path.
4156
3bb47e8b
TT
41572011-06-30 Tom Tromey <tromey@redhat.com>
4158
4159 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4160 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4161 return paths. Defer final do_cleanups until last return.
4162 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4163 early return.
4164
4727bad3
TT
41652011-06-30 Tom Tromey <tromey@redhat.com>
4166
4167 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4168
bb361dbf
AB
41692011-06-30 Andrew Burgess <aburgess@broadcom.com>
4170
4171 * MAINTAINERS (Write After Approval): Add myself to the list.
4172
e0d00bc7
JK
41732011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4174
4175 Disable epilogue unwinders on recent GCCs.
4176 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4177 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4178 * dwarf2read.c (process_full_comp_unit): Initialize
4179 EPILOGUE_UNWIND_VALID.
4180 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4181 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4182 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4183
4632c0d0
JK
41842011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4185
4186 Code cleanup - reformatting.
4187 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4188 (producer_is_gcc_ge_4): ... here, change the return value.
4189 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4190 interpretation.
4191
32019081
JK
41922011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4193
4194 Fix non-only rename list for Fortran modules import.
4195 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4196 cp_add_using_directive caller.
4197 (cp_add_using_directive): New parameter excludes, describe it. New
4198 variables ix and param. Compare if also excludes match. Allocate NEW
4199 with variable size, initialize EXCLUDES there.
4200 (cp_lookup_symbol_imports): New variable excludep, test
4201 current->EXCLUDES with it.
4202 * cp-support.h: Include vec.h.
4203 (struct using_direct): New field excludes, describe it.
4204 (DEF_VEC_P (const_char_ptr)): New.
4205 (cp_add_using_directive): New parameter excludes.
4206 * defs.h (const_char_ptr): New typedef.
4207 * dwarf2read.c (read_import_statement): New variables child_die,
4208 excludes and cleanups, read in excludes.
4209 (read_namespace): Adjust the cp_add_using_directive caller.
4210
70c622a3
JK
42112011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 Code cleanup.
4214 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4215 negative comparisons.
4216
39c4d40a
TT
42172011-06-29 André Pönitz <andre.poenitz@nokia.com>
4218
4219 * mi/mi-main.c (mi_cmd_list_features): Emit
4220 breakpoint-notifications.
4221
3b2b8fea
TT
42222011-06-29 Tom Tromey <tromey@redhat.com>
4223
4224 PR fortran/10036:
4225 * valprint.h (generic_emit_char, generic_printstr): Declare.
4226 * valprint.c (wchar_printable, append_string_as_wide)
4227 (print_wchar): Move from c-lang.c.
4228 (generic_emit_char): New function; mostly taken from c_emit_char.
4229 (generic_printstr): New function; mostly taken from c_printstr.
4230 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4231 represented as arrays.
4232 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4233 type.
4234 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4235 identically to TYPE_CODE_INT.
4236 * f-lang.c (f_get_encoding): New function.
4237 (f_emit_char): Use generic_emit_char.
4238 (f_printchar): Replace comment.
4239 (f_printstr): Use generic_printstr.
4240 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4241 "character" types specially.
4242 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4243 for Fortran.
4244 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4245 Move to valprint.c
4246 (c_emit_char): Call generic_emit_char.
4247 (c_printstr): Call generic_printstr.
4248
168e6d44
GB
42492011-06-29 Gary Benson <gbenson@redhat.com>
4250
4251 * breakpoint.c (bpstat_what): Removed duplicated case.
4252
1c033f8c
TT
42532011-06-28 Tom Tromey <tromey@redhat.com>
4254
4255 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4256
5fe41fbf
TT
42572011-06-27 Tom Tromey <tromey@redhat.com>
4258
4259 * valops.c (find_overload_match): Call do_cleanups before early
4260 return.
4261 * top.c (execute_command): Call do_cleanups before early return.
4262 (command_loop): Likewise.
4263 * stack.c (backtrace_command): Make a null cleanup early. Don't
4264 conditionally call do_cleanups.
4265 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4266 TRY_CATCH.
4267 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4268 so cleanups are always run.
4269 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4270 * findcmd.c (parse_find_args): Call do_cleanups on early return
4271 path.
4272 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4273 Don't conditionally call do_cleanups.
4274 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4275 later.
4276
e26bd57d
EB
42772011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4278
4279 * MAINTAINERS (Write After Approval): Use default email address.
4280
6c3097fc
JB
42812011-06-27 Joel Brobecker <brobecker@adacore.com>
4282
4283 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4284
369c397b
JB
42852011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4286
4287 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4288 saved_regs_mask and copied_regs_mask fields.
4289 (sparc_record_save_insn): New prototype.
4290 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4291 (sparc_record_save_insn): New function.
4292 (sparc_analyze_prologue): Add head comment. Recognize store insns
4293 of call-saved registers. Use OFFSET consistently. Recognize flat
4294 frames and cache their settings.
4295 (sparc32_skip_prologue): Handle flat frames.
4296 (sparc_frame_cache): Add frame_offset to the base address.
4297 (sparc32_frame_cache): Adjust to new frame description.
4298 (sparc32_frame_prev_register): Likewise.
4299 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4300 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4301 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4302 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4303 frame by calling sparc_record_save_insn.
4304 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4305 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4306 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4307
b315ab21
TG
43082011-06-27 Tristan Gingold <gingold@adacore.com>
4309
4310 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4311 field by map_addr and map_len.
4312 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4313 (munmap_section_buffer): Likewise.
4314
ddd49eee
TT
43152011-06-24 Tom Tromey <tromey@redhat.com>
4316
4317 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4318 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4319 * python/python.c (gdbpy_parameter): Make 'arg' const.
4320 (execute_gdb_command): Likewise.
4321 (gdbpy_decode_line): Likewise. Copy it.
4322 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4323 (gdbpy_write): Make 'arg' const.
4324 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4325 const.
4326 (gdbpy_lookup_type): Likewise.
4327 * python/py-prettyprint.c (print_children): Make 'name' const.
4328 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4329 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4330 Py_ssize_t.
4331 * python/py-function.c (fnpy_init): Make 'name' const.
4332 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4333 (gdbpy_string_to_argv): Make 'input' const.
4334 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4335 it.
4336 * gdbtypes.h (lookup_typename): Update.
4337 * gdbtypes.c (lookup_typename): Make 'name' const.
4338 (lookup_struct): Likewise.
4339 (lookup_union): Likewise.
4340 (lookup_enum): Likewise.
4341
5998129b
TT
43422011-06-24 Tom Tromey <tromey@redhat.com>
4343
4344 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4345 gdb_thread_db.h. Move all common/ entries to be together.
4346 (TAGS): Don't depend on DEPFILES.
4347
6e586cc5
YQ
43482011-06-23 Yao Qi <yao@codesourcery.com>
4349
4350 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4351 * remote.c (remote_start_remote): ... here.
4352 * monitor.c (monitor_open): ... here.
4353
86c3c1fc
AB
43542011-06-23 Andrew Burgess <aburgess@broadcom.com>
4355
4356 * gdbtypes.c (append_composite_type_field_aligned): Fix
4357 calculation of bit position based on alignment.
4358
28010a5d
PA
43592011-06-22 Pedro Alves <pedro@codesourcery.com>
4360
4361 * breakpoint.c (bpstat_stop_status): Call the check_status
4362 breakpoint_ops method.
4363 (print_one_breakpoint_location): Also print the condition for Ada
4364 exception catchpoints.
4365 (allocate_bp_location): New, factored out from
4366 allocate_bp_location.
4367 (allocate_bp_location): Adjust. Call the owner breakpoint's
4368 allocate_location method, if there is one.
4369 (free_bp_location): Call the locations's dtor method, if there is
4370 one.
4371 (init_raw_breakpoint_without_location): New breakpoint_ops
4372 parameter. Use it.
4373 (set_raw_breakpoint_without_location): Adjust.
4374 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4375 (set_raw_breakpoint): Adjust.
4376 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4377 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4378 re_set and check_status methods.
4379 (init_catchpoint): Don't memset, initialize thread, addr_string
4380 and enable_state. Pass the ops down to init_raw_breakpoint.
4381 (install_catchpoint): Rename to ...
4382 (install_breakpoint): ... this, and make extern.
4383 (create_fork_vfork_event_catchpoint): Adjust.
4384 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4385 re_set and check_status methods.
4386 (create_syscall_event_catchpoint): Adjust.
4387 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4388 (masked_watchpoint_breakpoint_ops): Install NULL
4389 allocate_location, re_set and check_status methods.
4390 (catch_exec_command_1): Adjust.
4391 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4392 re_set and check_status methods.
4393 (create_ada_exception_breakpoint): Rename to ...
4394 (init_ada_exception_breakpoint): ... this. Add a struct
4395 breakpoint parameter, and delete the exp_string, cond_string and
4396 cond parameters. Use init_raw_breakpoint, and don't install or
4397 mention the breakpoint yet. Don't clear breakpoint fields that
4398 init_raw_breakpoint already clears.
4399 (re_set_breakpoint): Delete, split into ...
4400 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4401 functions.
4402 (breakpoint_re_set_one): Call the breakpoint's
4403 breakpoint_ops->re_set implementation, if there's one. Adjust.
4404 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4405 (struct bp_location_ops): New type.
4406 (struct bp_location): New field `ops'.
4407 (struct breakpoint_ops): New `allocate_location', `re_set' and
4408 `check_status' fields. Make `breakpoint_hit''s description match
4409 reality.
4410 (init_bp_location): Declare.
4411 (breakpoint_re_set_default): Declare.
4412 (create_ada_exception_breakpoint): Rename to ...
4413 (init_ada_exception_breakpoint): ... this. Add a struct
4414 breakpoint parameter, and delete the exp_string, cond_string and
4415 cond parameters.
4416 (install_breakpoint): Declare.
4417 * ada-lang.c: Include exceptions.h.
4418 <Ada exceptions description>: Update.
4419 (struct ada_catchpoint_location): New type.
4420 (ada_catchpoint_location_dtor): New function.
4421 (ada_catchpoint_location_ops): New global.
4422 (ada_catchpoint): New type.
4423 (create_excep_cond_exprs): New function.
4424 (dtor_exception, allocate_location_exception, re_set_exception)
4425 (should_stop_exception, check_status_exception): New functions.
4426 (print_one_exception, print_mention_exception)
4427 (print_recreate_exception): Adjust.
4428 (dtor_catch_exception, allocate_location_catch_exception)
4429 (re_set_catch_exception, check_status_catch_exception): New
4430 functions.
4431 (catch_exception_breakpoint_ops): Install them.
4432 (dtor_catch_exception_unhandled)
4433 (allocate_location_catch_exception_unhandled)
4434 (re_set_catch_exception_unhandled)
4435 (check_status_catch_exception_unhandled): New functions.
4436 (catch_exception_unhandled_breakpoint_ops): Install them.
4437 (dtor_catch_assert, allocate_location_catch_assert)
4438 (re_set_catch_assert, check_status_catch_assert): New functions.
4439 (catch_assert_breakpoint_ops): Install them.
4440 (ada_exception_catchpoint_p): Delete.
4441 (catch_ada_exception_command_split)
4442 (ada_exception_catchpoint_cond_string): Rename exp_string
4443 parameter to excep_string. Adjust.
4444 (ada_parse_catchpoint_condition): Delete.
4445 (ada_exception_sal): Rename the exp_string parameter to
4446 excep_string. Delete the cond_string and cond parameters.
4447 Adjust.
4448 (ada_decode_exception_location): Rename the exp_string parameter
4449 to excep_string. Delete the cond_string and cond parameters.
4450 Adjust.
4451 (create_ada_exception_catchpoint): New function.
4452 (catch_ada_exception_command, ada_decode_assert_location)
4453 (catch_assert_command): Adjust.
4454 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4455
9ac4176b
PA
44562011-06-22 Pedro Alves <pedro@codesourcery.com>
4457
4458 * ada-lang.c: Include arch-utils.h.
4459 (ada_decode_exception_location): Make static.
4460 (catch_ada_exception_command): Moved here from breakpoint.c.
4461 (ada_decode_assert_location): Make static.
4462 (catch_assert_command): Moved here from breakpoint.c.
4463 (_initialize_ada_lang): Install the exception and assert
4464 catchpoint commands here.
4465 * ada-lang.h (ada_decode_exception_location)
4466 (ada_decode_assert_location): Delete declarations.
4467 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4468 breakpoint.h.
4469 (create_ada_exception_breakpoint): Make extern.
4470 (catch_ada_exception_command, catch_assert_command): Moved to
4471 ada-lang.c.
4472 (add_catch_command): Make extern.
4473 (_initilize_breakpoint): Don't install the exception and assert
4474 catchpoint commands here.
4475 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4476 breakpoint.c
4477 (add_catch_command, create_ada_exception_breakpoint): Declare.
4478
c56053d2
PA
44792011-06-22 Pedro Alves <pedro@codesourcery.com>
4480
4481 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4482 the breakpoint to the breakpoint chain here.
4483 (set_raw_breakpoint_without_location): Add the breakpoint to the
4484 breakpoint chain here.
4485 (init_raw_breakpoint): Adjust comments.
4486 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4487 here.
4488 (init_catchpoint): Don't set the catchpoint's breakpoint number
4489 here.
4490 (install_catchpoint): New function.
4491 (create_fork_vfork_event_catchpoint)
4492 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4493 use install_catchpoint.
4494
d2f3fc74
PA
44952011-06-22 Pedro Alves <pedro@codesourcery.com>
4496
4497 * breakpoint.c (create_catchpoint_without_mention)
4498 (create_catchpoint): Delete.
4499
b4d90040
PA
45002011-06-22 Pedro Alves <pedro@codesourcery.com>
4501
4502 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4503 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4504 reference to exec_pathname.
4505 (struct exec_catchpoint): New type.
4506 (dtor_catch_exec): New function.
4507 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4508 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4509 (catch_exec_command_1): Adjust to use init_catchpoint.
4510 (delete_breakpoint): Remove reference to exec_pathname.
4511
be5c67c1
PA
45122011-06-22 Pedro Alves <pedro@codesourcery.com>
4513
4514 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4515 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4516 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4517 reference to syscalls_to_be_caught.
4518 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4519 NULL `dtor'.
4520 (struct syscall_catchpoint): New type.
4521 (dtor_catch_syscall): New function.
4522 (insert_catch_syscall, remove_catch_syscall)
4523 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4524 (print_recreate_catch_syscall): Adjust.
4525 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4526 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4527 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4528 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4529 (masked_watchpoint_breakpoint_ops)
4530 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4531 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4532 there is one. Remove references to syscalls_to_be_caught.
4533 (catching_syscall_number): Adjust.
4534 * ada-lang.c (catch_exception_breakpoint_ops)
4535 (catch_exception_unhandled_breakpoint_ops)
4536 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4537
e29a4733
PA
45382011-06-22 Pedro Alves <pedro@codesourcery.com>
4539
4540 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4541 field.
4542 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4543 reference to forked_inferior_pid.
4544 (struct fork_catchpoint): New type.
4545 (breakpoint_hit_catch_fork, print_it_catch_fork)
4546 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4547 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4548 (create_fork_vfork_event_catchpoint): Adjust to use
4549 init_catchpoint.
4550
346774a9
PA
45512011-06-22 Pedro Alves <pedro@codesourcery.com>
4552
4553 * breakpoint.c (add_to_breakpoint_chain)
4554 (init_raw_breakpoint_without_location): New functions, factored
4555 out from ...
4556 (set_raw_breakpoint_without_location): ... this one.
4557 (init_raw_breakpoint): New function, factored out from
4558 set_raw_breakpoint and adjusted to use
4559 init_raw_breakpoint_without_location.
4560 (set_raw_breakpoint): Adjust.
4561 (init_catchpoint): New function, factored out from
4562 create_catchpoint_without_mention and adjusted to use
4563 init_raw_breakpoint.
4564 (create_catchpoint_without_mention): Adjust.
4565
c38c4bc5
TT
45662011-06-22 Tom Tromey <tromey@redhat.com>
4567
4568 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4569 argument of 0 specially.
4570
b138ce37
YQ
45712011-06-22 Yao Qi <yao@codesourcery.com>
4572
4573 * infrun.c (handle_inferior_event): Remove write-only local variable
4574 `sw_single_step_trap_p'.
4575
03de6823
TT
45762011-06-20 Tom Tromey <tromey@redhat.com>
4577
4578 * symtab.c (lookup_language_this): End loop if block is NULL.
4579
66a17cb6
TT
45802011-06-17 Tom Tromey <tromey@redhat.com>
4581
4582 * valops.c (value_of_this): Use lookup_language_this.
4583 * symtab.h (lookup_language_this): Declare.
4584 * symtab.c (lookup_language_this): New function.
4585 (lookup_symbol_aux): Use lookup_language_this.
4586 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4587
7518bff5
TT
45882011-06-17 Tom Tromey <tromey@redhat.com>
4589
4590 * value.h (value_of_this): Update.
4591 (value_of_local): Remove.
4592 * valops.c (value_of_this): Rename from value_of_local. Change
4593 parameters.
4594 * p-exp.y (exp): Update.
4595 (variable): Likewise.
4596 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4597
aee28ec6
TT
45982011-06-17 Tom Tromey <tromey@redhat.com>
4599
4600 * valops.c (value_of_local): Complain if NAME is NULL.
4601 * std-operator.def (OP_OBJC_SELF): Remove.
4602 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4603 * objc-exp.y (name_not_typename): Use OP_THIS.
4604 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4605 name for "this".
4606 <OP_OBJC_SELF>: Remove.
4607 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4608
eed8f803
TG
46092011-06-16 Tristan Gingold <gingold@adacore.com>
4610
4611 * python/py-events.h (gdb_py_events): Make it extern.
4612 * python/py-evtregistry.c (gdb_py_events): Declare.
4613
864ac8a7
HZ
46142011-06-16 Hui Zhu <teawater@gmail.com>
4615
4616 * remote.c (remote_trace_set_readonly_regions): Add check for
4617 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4618 output warning.
4619
ef7e8358
UW
46202011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4621
4622 * arm-linux-tdep.c: Include "auxv.h".
4623 (AT_HWCAP): Define.
4624 (ARM_LINUX_SIZEOF_VFP): Define.
4625 (arm_linux_supply_vfp): New function.
4626 (arm_linux_collect_vfp): Likewise.
4627 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4628 (arm_linux_fpa_regset_sections): New variable.
4629 (arm_linux_vfp_regset_sections): Likewise.
4630 (arm_linux_core_read_description): New function.
4631 (arm_linux_init_abi): Install arm_linux_core_read_description and
4632 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4633 appropriate for the architecture.
4634 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4635 (tdesc_arm_with_m): Declare.
4636 (tdesc_arm_with_iwmmxt): Likewise.
4637 (tdesc_arm_with_vfpv2): Likewise.
4638 (tdesc_arm_with_vfpv3): Likewise.
4639 (tdesc_arm_with_neon): Likewise.
4640 * arm-linux-nat.c: Move features/*.c includes ...
4641 * arm-tdep.c: ... here.
4642 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4643 target description data structures ...
4644 * arm-tdep.c (_initialize_arm_tdep): ... here.
4645 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4646 HWCAP_VFPv3D16): Move definitions ...
4647 * arm-linux-tdep.h: ... here.
4648
c2fa21f1
HZ
46492011-06-15 Hui Zhu <teawater@gmail.com>
4650
4651 * remote.c (remote_trace_set_readonly_regions): Add a check for
4652 target_buf_size.
4653
dd707e8e
TT
46542011-06-14 Tom Tromey <tromey@redhat.com>
4655
4656 * coffread.c (coffread_objfile): Rename from current_objfile.
4657 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4658 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4659
86cc0029
TT
46602011-06-14 Tom Tromey <tromey@redhat.com>
4661
4662 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4663 (class_symtab): Remove.
4664 (jv_dynamics_progspace_key): New global.
4665 (jv_per_objfile_free): Reset program space data. Update assert.
4666 Don't clear globals.
4667 (get_dynamics_objfile): Use and set program space data.
4668 (get_java_class_symtab): Use get_dynamics_objfile.
4669 (add_class_symbol): Likewise.
4670 (java_link_class_type): Likewise.
4671 (java_object_type, jv_clear_object_type, set_java_object_type):
4672 Remove.
4673 (get_java_object_type): Update. Don't cache result.
4674 (is_object_type): Don't call set_java_object_type.
4675 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4676 initialize jv_dynamics_progspace_key.
4677
91a81f69
TT
46782011-06-14 Tom Tromey <tromey@redhat.com>
4679
4680 * symtab.h (current_objfile): Don't declare.
4681 * objfiles.h (current_objfile): Don't declare.
4682 * objfiles.c (current_objfile): Remove.
4683 * mdebugread.c (current_objfile): New file-scope global.
4684 * dbxread.c (current_objfile): New file-scope global.
4685 * coffread.c (current_objfile): New file-scope global.
4686
dc7eb48e
PA
46872011-06-13 Pedro Alves <pedro@codesourcery.com>
4688
4689 * top.h (line): Rename to ...
4690 (saved_command_line): ... this.
4691 (linesize): Rename to ...
4692 (saved_command_line_size): ... this.
4693 * top.c (line): Rename to ...
4694 (saved_command_line): ... this.
4695 (linesize): Rename to ...
4696 (saved_command_line_size): ... this.
4697 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4698 * event-top.c (command_line_handler): Adjust.
4699 * main.c (captured_main): Adjust.
4700
0d6c2135
MK
47012011-06-12 Mark Kettenis <kettenis@gnu.org>
4702
4703 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4704 get_frame_func instead of get_frame_pc to determine the code
4705 address used to construct the frame ID.
4706 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4707 (i386_epilogue_frame_this_id): Likewise.
4708 (i386_epilogue_frame_prev_register): New function.
4709 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4710 (i386_stack_tramp_frame_sniffer): Fix coding style.
4711 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4712 (i386_gdbarch_init): Fix comments.
4713
8bbdd3f4
MK
47142011-06-12 Mark Kettenis <kettenis@gnu.org>
4715
4716 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4717 instruction when walking back through the instruction stream.
4718
533a737e
JK
47192011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4720
4721 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4722 fullname parameters order.
4723
44b13c5a
JK
47242011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4725
4726 Code cleanup.
4727 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4728 for fun.
4729 * psymtab.c (map_symbol_filenames_psymtab)
4730 (map_partial_symbol_filenames): Likewise.
4731 * psymtab.h: Include symfile.h.
4732 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4733 * symfile.h (symbol_filename_ftype): New.
4734 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4735 map_symbol_filenames, clarify more the naming in comment.
4736
0b5574da
DE
47372011-06-07 Doug Evans <dje@google.com>
4738
4739 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4740 Look for ../../gdb, for fullname.exp.
0b5574da 4741
5be4dfca
JK
47422011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4743 Pedro Alves <pedro@codesourcery.com>
4744
4745 * cli/cli-cmds.c (shell_escape): Use waitpid.
4746 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4747
316a8b21
TG
47482011-06-07 Tristan Gingold <gingold@adacore.com>
4749
4750 * xcoffread.c (dwarf2_xcoff_names): New variable.
4751 (aix_process_linenos): Add a guard.
4752 (xcoff_symfile_finish): Free dwarf2.
4753 (xcoff_initial_scan): Add dwarf2 support.
4754
3dd5b83d
PA
47552011-06-06 Pedro Alves <pedro@codesourcery.com>
4756
4757 * infcall.c (run_inferior_call): Don't mask async. Instead force
4758 a synchronous wait, if the target can async.
4759
4760 * target.h (struct target_ops): Delete to_async_mask.
4761 (target_async_mask): Delete.
4762 * target.c (update_current_target): Delete references to to_async_mask.
4763 * linux-nat.c (linux_nat_async_mask_value): Delete.
4764 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4765 to linux_nat_async_mask_value.
4766 (linux_nat_async_mask): Delete.
4767 (linux_nat_async, linux_nat_close): Remove references to
4768 linux_nat_async_mask_value.
4769 * record.c (record_async_mask_value): Delete.
4770 (record_async): Remove references to record_async_mask_value.
4771 (record_async_mask): Delete.
4772 (record_can_async_p, record_is_async_p): Remove references to
4773 record_async_mask_value.
4774 (init_record_ops, init_record_core_ops): Remove references to
4775 record_async_mask.
4776 * remote.c (remote_async_mask_value): Delete.
4777 (init_remote_ops): Remove reference to remote_async_mask.
4778 (remote_can_async_p, remote_is_async_p): Remove references to
4779 remote_async_mask_value.
4780 (remote_async): Remove references to remote_async_mask_value.
4781 (remote_async_mask): Delete.
4782
4783 * infrun.c (fetch_inferior_event): Don't claim registers changed
4784 if the current thread is already not executing.
4785
64b9b334
JB
47862011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4787
4788 From Stephen Kitt <steve@sk2.org>
4789 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4790 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4791
325663dc
JB
47922011-06-03 Joel Brobecker <brobecker@adacore.com>
4793
4794 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4795 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4796
8cf64490
TT
47972011-06-03 Tom Tromey <tromey@redhat.com>
4798
4799 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4800 code fields.
4801 * python/py-exitedevent.c (create_exited_event_object): Change
4802 type of 'exit_code'. Optionally add exit_code attribute.
4803 (emit_exited_event): Change type of 'exit_code'.
4804 * python/py-event.h (emit_exited_event): Update.
4805 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4806 * infrun.c (handle_inferior_event): Set exit code fields on
4807 inferior.
4808 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4809 fields.
4810 * inferior.c (exit_inferior_1): Initialize new fields.
4811
8ddd9a20
TT
48122011-06-03 Tom Tromey <tromey@redhat.com>
4813
4814 * dwarf2expr.c (get_signed_type): New function.
4815 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4816
8dfd1e6d
KS
48172011-06-02 Keith Seitz <keiths@redhat.com>
4818
4819 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4820
65fdb766
PA
48212011-06-02 Pedro Alves <pedro@codesourcery.com>
4822
4823 * top.h (simplified_command_loop): Delete declaration.
4824
f4b8c29b
MF
48252011-06-01 Mike Frysinger <vapier@gentoo.org>
4826
4827 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4828 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4829
1706c199
YQ
48302011-06-01 Yao Qi <yao@codesourcery.com>
4831
4832 * objfiles.h (obj_section_addr): Update reference to objfile from
4833 `abfd' to `obfd'.
4834 (obj_section_endaddr): Likewise.
4835
d19cd713 48362011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4837
4838 * MAINTAINERS: Update my email address and affiliation. Also
4839 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4840
e8eb7bc5
KS
48412010-05-31 Keith Seitz <keiths@redhat.com>
4842
4843 PR c++/12750
4844 * linespec.c (get_search_block): New function.
4845 (find_methods): Add FILE_SYMTATB parameter and use it and
4846 get_search_block to pass an appropriate block to
4847 lookup_symbol_in_namespace.
4848 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4849 Check if *ARGPTR starts with a filename first.
4850 If it does, call locate_first_half again to locate the next
4851 "first half" of the linespec.
4852 Pass FILE_SYMTATB to decode_objc and decode_compound.
4853 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4854 (locate_first_half): Stop on the first colon seen.
4855 (decode_compound): Add FILE_SYMTAB parameter.
4856 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4857 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4858 get_search_block with lookup_symbol.
4859 (find_method): Add FILE_SYMTAB parameter and pass it to
4860 find_methods.
4861 (decode_objc): Use get_search_block.
4862
2b1dbab0
KS
48632010-05-31 Keith Seitz <keiths@redhat.com>
4864
4865 PR symtab/12704
4866 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4867 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4868 and CP_ANONYMOUS_NAMESPACE_LEN.
4869 (cp_is_anonymous): Likewise.
4870 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4871 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4872 * dwarf2read.c (namespace_name): Likewise.
4873 (fixup_partial_die): Likewise.
4874 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4875 seen in the input, keep it.
4876
6d549500
PA
48772011-05-30 Pedro Alves <pedro@codesourcery.com>
4878
4879 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4880 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4881 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4882 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4883 * remote.c (_initialize_remote): Register
4884 async_remote_interrupt_twice directly as
4885 sigint_remote_twice_token event.
4886
395bff70
PA
48872011-05-30 Pedro Alves <pedro@codesourcery.com>
4888
4889 * target.h (enum inferior_event_type): Delete INF_ERROR.
4890 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4891
97224164
PA
48922011-05-30 Pedro Alves <pedro@codesourcery.com>
4893
4894 * interps.c (interp_set): Don't cancel continuations.
4895
07e78767
JK
48962011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4899
fa4cd53f
PA
49002011-05-30 Pedro Alves <pedro@codesourcery.com>
4901
4902 * continuations.h (continuation_ftype): Add `err' parameter.
4903 Document parameters.
4904 (do_all_continuations, do_all_continuations_thread)
4905 (do_all_intermediate_continuations)
4906 (do_all_intermediate_continuations_thread)
4907 (do_all_inferior_continuations): Add `err' parameter.
4908 * continuations.c (do_my_continuations_1, do_my_continuations)
4909 (do_all_inferior_continuations, do_all_continuations_ptid)
4910 (do_all_continuations_thread_callback)
4911 (do_all_continuations_thread, do_all_continuations)
4912 (do_all_intermediate_continuations_thread_callback)
4913 (do_all_intermediate_continuations_thread)
4914 (do_all_intermediate_continuations): Add `err' parameter, and pass
4915 it down all the way to the continuations proper.
4916 * inf-loop.c (inferior_event_handler): If fetching an inferior
4917 event throws an error, don't pop the target, and still call the
4918 continuations, but with `err' set. Adjust all other continuation
4919 calls.
4920 * breakpoint.c (until_break_command_continuation): Add `err'
4921 parameter.
4922 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4923 issue another step if `err' is set.
4924 (struct until_next_continuation_args): New.
4925 (until_next_continuation): Add `err' parameter. Adjust.
4926 (until_next_command): Adjust.
4927 (struct finish_command_continuation_args): Add `thread' field.
4928 (finish_command_continuation): Add `err' parameter. Handle it.
4929 (finish_forward): Adjust.
4930 (attach_command_continuation): Add `err' parameter. Handle it.
4931 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4932 cancel the continuations.
4933 * interps.c (interp_set): Adjust to cancel the continuations.
4934 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4935 continuations rather than discarding.
4936 (free_thread): Don't clear thread inferior resources here.
4937 (delete_thread_1): Do it here instead. And do it before removing
4938 the thread from the threads list. Tag the thread as exited before
4939 clearing thread inferior resources.
4940
c2949be0
JB
49412011-05-30 Joel Brobecker <brobecker@adacore.com>
4942
4943 * infcall.c (call_function_by_hand): Rephrase error message.
4944
619cebe8
PA
49452011-05-27 Pedro Alves <pedro@codesourcery.com>
4946
4947 * defs.h (struct thread_info, struct inferior): Delete forward
4948 declarations.
4949 * breakpoint.h (struct thread_info): New forward declaration.
4950 * observer.sh (struct inferior): New forward declaration.
4951 * python/python-internal.h (struct inferior): New forward
4952 declaration.
4953
be34f849
PA
49542011-05-27 Pedro Alves <pedro@codesourcery.com>
4955
4956 * defs.h (struct continuation, continuation_ftype)
4957 (continuation_free_arg_ftype, add_continuation)
4958 (do_all_continuations, do_all_continuations_thread)
4959 (discard_all_continuations, discard_all_continuations_thread)
4960 (add_intermediate_continuation, do_all_intermediate_continuations)
4961 (do_all_intermediate_continuations_thread)
4962 (discard_all_intermediate_continuations)
4963 (discard_all_intermediate_continuations_thread)
4964 (add_inferior_continuation, do_all_inferior_continuations)
4965 (discard_all_inferior_continuations): Move to ...
4966 * continuations.h: ... this new file.
4967 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4968 infcmd.c, inferior.c, infrun.c, interps.c: Include
4969 continuations.h.
4970
432b4d03
JK
49712011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4972 Doug Evans <dje@google.com>
4973
4974 Fix PR 10970, PR 12702.
4975 * linux-nat.c (linux_lwp_is_zombie): New function.
4976 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4977 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4978
b0f260d6
PA
49792011-05-27 Pedro Alves <pedro@codesourcery.com>
4980
4981 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4982 typedefs.
4983 (add_continuation, add_intermediate_continuation)
4984 (add_inferior_continuation): Use them.
4985 * continuations.c (struct continuation): Use them.
4986 (make_continuation_ftype): Delete.
4987 (make_continuation, add_inferior_continuation, add_continuation)
4988 (add_intermediate_continuation): Use continuation_ftype and
4989 continuation_free_arg_ftype. Rename parameters to shorter names.
4990
af1e9a32
PA
49912011-05-27 Pedro Alves <pedro@codesourcery.com>
4992
4993 * continuations.c (make_continuation): Make it return void.
4994 (do_my_continuations): Rename to ...
4995 (do_my_continuations_1): ... this. Remove old_chain parameter and
4996 adjust.
4997 (do_my_continuations): New.
4998 (discard_my_continuations): Rename to ...
4999 (discard_my_continuations_1): ... this. Remove old_chain
5000 parameter and adjust.
5001 (discard_my_continuations): New.
5002 (add_inferior_continuation): Simplify.
5003 (do_all_inferior_continuations): Reimplement on top
5004 do_my_continuations.
5005 (discard_all_inferior_continuations): Simplify.
5006 (add_continuation): Simplify.
5007 (do_all_continuations_ptid): Simplify.
5008 (discard_all_continuations_thread_callback): Simplify.
5009 (add_intermediate_continuation): Simplify.
5010 (discard_all_intermediate_continuations_thread_callback):
5011 Simplify.
5012
50c0c017
PA
50132011-05-27 Pedro Alves <pedro@codesourcery.com>
5014
5015 * utils.c (struct continuation, add_continuation)
5016 (add_inferior_continuation)
5017 (do_all_inferior_continuations, discard_all_inferior_continuations)
5018 (restore_thread_cleanup, do_all_continuations_ptid)
5019 (do_all_continuations_thread_callback)
5020 (do_all_continuations_thread, do_all_continuations)
5021 (discard_all_continuations_thread_callback)
5022 (discard_all_continuations_thread, discard_all_continuations)
5023 (add_intermediate_continuation)
5024 (do_all_intermediate_continuations_thread_callback)
5025 (do_all_intermediate_continuations_thread)
5026 (do_all_intermediate_continuations)
5027 (discard_all_intermediate_continuations_thread_callback)
5028 (discard_all_intermediate_continuations_thread)
5029 (discard_all_intermediate_continuations): Move to ...
5030 * continuations.c: ... this new file, and adjust to no longer
5031 implement continuations on top of cleanups.
5032 * Makefile.in (SFILES): Add continuations.c.
5033 (COMMON_OBS): Add continuations.o.
5034
d8b34453
PA
50352011-05-26 Pedro Alves <pedro@codesourcery.com>
5036
5037 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5038 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5039 Internal error on invalid values.
5040 * reverse.c: Don't handle EXEC_ERROR.
5041 * mi/mi-main.c: Don't handle EXEC_ERROR.
5042
32231432
PA
50432011-05-26 Pedro Alves <pedro@codesourcery.com>
5044
5045 * record.c: Include event-loop.h, inf-loop.h.
5046 (record_beneath_to_async): New global.
5047 (tmp_to_async): New global.
5048 (record_async_inferior_event_token): New global.
5049 (record_open_1): Don't error out if async is enabled.
5050 (record_open): Handle to_async. Create an async event source in
5051 the event loop.
5052 (record_close): Delete the async event source.
5053 (record_resumed): New global.
5054 (record_execution_dir): New global.
5055 (record_resume, record_core_resume): Set them. Register the
5056 target on the event loop.
5057 (record_wait): Rename to ...
5058 (record_wait_1): ... this. Add more debug output. Handle
5059 TARGET_WNOHANG, and the target beneath returning
5060 TARGET_WAITKIND_IGNORE.
5061 (record_wait): Reimplement on top of record_wait_1.
5062 (record_async_mask_value): New global.
5063 (record_async, record_async_mask, record_can_async_p)
5064 (record_is_async_p, record_execution_direction): New functions.
5065 (init_record_ops, init_record_core_ops): Install new methods.
5066 * infrun.c (fetch_inferior_event): Temporarily switch the global
5067 execution direction to the direction the target was going.
5068 (execution_direction): Change type to int.
5069 * target.c (default_execution_direction): New function.
5070 (update_current_target): Inherit and de_fault
5071 to_execution_direction.
5072 * target.h (struct target_ops) <to_execution_direction>: New
5073 field.
5074 (target_execution_direction): New macro.
5075 * inferior.h (execution_direction): Change type to int.
5076
949dc678
PA
50772011-05-26 Pedro Alves <pedro@codesourcery.com>
5078
5079 * infcall.c (call_function_by_hand): Don't allow calling functions
5080 in reverse execution mode.
5081
c13bd2b5
PA
50822011-05-26 Pedro Alves <pedro@codesourcery.com>
5083
5084 * infcmd.c (finish_command): Allow async finish in reverse.
5085
6938fd34
YQ
50862011-05-26 Yao Qi <yao@codesourcery.com>
5087
5088 * gdb_thread_db.h: Delete. Move to ...
5089 * common/gdb_thread_db.h: ... here.
5090
9da8c2a0
PA
50912011-05-26 Pedro Alves <pedro@codesourcery.com>
5092
5093 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5094 function's entry point instead of a manually managed momentary
5095 breakpoint, and only ever issue one proceed call.
5096 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5097 doing a reverse-finish, switch to stepi mode, to do another step.
5098 (insert_step_resume_breakpoint_at_sal): Make public.
5099 (normal_stop): No need to save function value return registers if
5100 going reverse.
5101 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5102
2c03e5be
PA
51032011-05-26 Pedro Alves <pedro@codesourcery.com>
5104
5105 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5106 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5107 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5108 at the end.
5109 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5110 step-resume breakpoints.
5111 (print_it_typical): Handle bp_hp_step_resume.
5112 (bpstat_what): Ditto.
5113 (bptype_string): Ditto.
5114 (print_one_breakpoint_location): Ditto.
5115 (allocate_bp_location): Ditto.
5116 (mention): Ditto.
5117 (breakpoint_re_set_one): Ditto.
5118 * infrun.c (handle_inferior_event): Adjust. Split
5119 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5120 BPSTAT_WHAT_HP_STEP_RESUME.
5121 (insert_step_resume_breakpoint_at_sal): Rename to ...
5122 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5123 parameter. Handle it.
5124 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5125 insert_step_resume_breakpoint_at_sal_1.
5126 (insert_step_resume_breakpoint_at_frame): Rename to ...
5127 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5128 set a high-priority step-resume breakpoint.
5129 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5130 (insert_step_resume_breakpoint_at_caller): Ditto.
5131
51be5b68
PA
51322011-05-26 Pedro Alves <pedro@codesourcery.com>
5133
5134 * breakpoint.c (iterate_over_related_breakpoints): New.
5135 (do_map_delete_breakpoint): New.
5136 (delete_command): Pass do_map_delete_breakpoint to
5137 map_breakpoint_numbers.
5138 (do_disable_breakpoint): New.
5139 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5140 breakpoints.
5141 (do_enable_breakpoint): Rename to ...
5142 (enable_breakpoint_disp): ... this.
5143 (enable_breakpoint): Adjust.
5144 (do_enable_breakpoint): New.
5145 (enable_once_breakpoint): Delete.
5146 (do_map_enable_breakpoint): New.
5147 (do_map_enable_once_breakpoint): New.
5148 (enable_once_command, enable_delete_command)
5149 (delete_trace_command): Iterate over the breakpoint's related
5150 breakpoints.
5151
4a1be8d2
PA
51522011-05-26 Pedro Alves <pedro@codesourcery.com>
5153
5154 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5155 for ALPHA_ZERO_REGNUM.
5156 (alpha_supply_int_regs): Explicitly supply zero as the value for
5157 ALPHA_ZERO_REGNUM in the register cache.
5158 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5159
59d70315
YQ
51602011-05-26 Yao Qi <yao@codesourcery.com>
5161
5162 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5163
251d32d9
TG
51642011-05-26 Tristan Gingold <gingold@adacore.com>
5165
5166 * symfile.h (struct dwarf2_section_names): New type.
5167 (struct dwarf2_debug_sections): New type.
5168 (dwarf2_has_info): Add parameter.
5169 * dwarf2read.c (dwarf2_elf_names): New variable.
5170 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5171 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5172 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5173 (dwarf2_has_info): Add names parameter. Pass names
5174 to dwarf2_locate_sections.
5175 (section_is_p): Rewrite using the names parameter.
5176 (dwarf2_locate_sections): Use section names from the names parameter.
5177 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5178 * elfread.c (read_psyms): Ditto.
5179 * machoread.c (macho_symfile_read): Ditto.
5180
652c71b4
AS
51812011-05-25 Andreas Schwab <schwab@redhat.com>
5182
5183 PR gdb/8677
5184 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5185
f17170e5
KS
51862011-05-24 Keith Seitz <keiths@redhat.com>
5187
5188 PR breakpoint/12803
5189 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5190 (decode_compound): Unconditionally call keep_name_info.
5191
cdac0397
PA
51922011-05-24 Pedro Alves <pedro@codesourcery.com>
5193
5194 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5195 scope, clear its command list.
5196 (map_breakpoint_numbers): Don't walk the related breakpoints list
5197 of each breakpoint.
5198
91d4fe3f
TT
51992011-05-24 Tom Tromey <tromey@redhat.com>
5200
5201 * MAINTAINERS: Move Jim Blandy to past maintainers.
5202
3017a003
TG
52032011-05-24 Tristan Gingold <gingold@adacore.com>
5204
5205 * symfile.h (enum dwarf2_section_enum): New type.
5206 (dwarf2_get_section_info): New prototype.
5207 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5208 section_name by sect. Use a switch to select the info.
5209 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5210 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5211
c91c8c16
PA
52122011-05-24 Pedro Alves <pedro@codesourcery.com>
5213
5214 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5215 shared library event breakpoint if there's no execution.
5216
77bc418a
TJB
52172011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5218
5219 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5220 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5221
c50491a7
TT
52222011-05-23 Tom Tromey <tromey@redhat.com>
5223
5224 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5225 NULL.
5226
6d64e6d4
DE
52272011-05-23 Doug Evans <dje@google.com>
5228
5229 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5230 entry for RuntimeError to doc string.
5231
2067c8d4
JG
52322011-05-23 Jerome Guitton <guitton@adacore.com>
5233
5234 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5235 sequence for probing loops.
5236
b136cd05
PA
52372011-05-23 Pedro Alves <pedro@codesourcery.com>
5238
5239 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5240 comment.
5241
22e74ef9
MK
52422011-05-21 Mark Kettenis <kettenis@gnu.org>
5243
5244 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5245 zero as the value for %g0 in the register cache.
5246 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5247 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5248
842951eb
PA
52492011-05-20 Pedro Alves <pedro@codesourcery.com>
5250
5251 * infrun.c (proceed): Set previous_inferior_ptid here.
5252 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5253 inferior_ptid, not null_ptid.
5254 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5255 (fetch_inferior_event): Nor here.
5256
46cf51e6
PA
52572011-05-20 Pedro Alves <pedro@codesourcery.com>
5258
5259 * inf-loop.c (inferior_event_handler): Only output a message if
5260 verbose.
5261
29ef4c46
LM
52622011-05-20 Luis Machado <lgustavo@codesourcery.com>
5263
5264 * MAINTAINERS: Update my e-mail address.
5265
f148b27e
PA
52662011-05-20 Pedro Alves <pedro@codesourcery.com>
5267
5268 * infrun.c (proceed): Switch the inferior event loop to
5269 INF_EXEC_COMPLETE if the target refused to resume from a
5270 vfork/fork.
5271
09cee04b
PA
52722011-05-20 Pedro Alves <pedro@codesourcery.com>
5273
5274 * infcmd.c: Include "inf-loop.h".
5275 (step_once): When stepping into an inline subroutine, pretend the
5276 target has run. If the target can async, switch the inferior
5277 event loop to INF_EXEC_COMPLETE.
5278 * inferior.h (user_visible_resume_ptid): Declare.
5279 * infrun.c (user_visible_resume_ptid): New function, factored out
5280 from `resume'.
5281 (resume): Use it.
5282 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5283 that the current thread is running. Merge async and sync
5284 branches.
5285
751b8ce1
PA
52862011-05-20 Pedro Alves <pedro@codesourcery.com>
5287
5288 * infcmd.c (step_1): Simplify synchronous case.
5289
e93a69ed
PA
52902011-05-20 Pedro Alves <pedro@codesourcery.com>
5291
5292 * tracepoint.c: Include exceptions.h.
5293 (TFILE_PID): Move higher in file.
5294 (tfile_open): Delay pushing the tfile target until we're assured
5295 the tfile header is present in the file. Wrap reading the initial
5296 newline-terminated lines in TRY_CATCH. Pop the target if the
5297 initial setup failed. Add the tfile's thread immediately
5298 aftwards, before any non-essential setup. Don't skip
5299 post_create_inferior if there are no traceframes present in the
5300 file.
5301 (tfile_close): Remove redundant check for null before xfree call.
5302 (tfile_thread_alive): New function.
5303 (init_tfile_ops): Register it as to_thread_alive callback.
5304
6823e2b1
PA
53052011-05-20 Pedro Alves <pedro@codesourcery.com>
5306
5307 * tracepoint.c (tfile_open): Delete #if 0'd code.
5308
b3c8eb43
JK
53092011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5310
5311 Fix -readnow for -gdwarf-4 unused type units.
5312 * dwarf2read.c (struct signatured_type): Remove the field offset.
5313 (create_signatured_type_table_from_index): Remove its initialization.
5314 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5315 instead. Add a complaint call.
5316 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5317 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5318 (lookup_signatured_type_at_offset, read_signatured_type)
5319 (write_one_signatured_type): Update the field for per_cu.
5320
310afc76
TT
53212011-05-19 Tom Tromey <tromey@redhat.com>
5322
5323 * python/py-inferior.c (python_inferior_exit): Use
5324 target_gdbarch.
5325 (python_on_resume): Likewise.
5326
cf6c5ffb
TT
53272011-05-19 Matt Rice <ratmice@gmail.com>
5328
5329 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5330
fb80a3c5
HZ
53312011-05-19 Hui Zhu <teawater@gmail.com>
5332
5333 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5334
3672b1be
HZ
53352011-05-19 Hui Zhu <teawater@gmail.com>
5336
5337 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5338
ff355380
TT
53392011-05-18 Tom Tromey <tromey@redhat.com>
5340
5341 * dwarf2read.c (dwarf2_add_field): Constify.
5342 * value.c (value_static_field): Constify.
5343 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5344 Now const.
5345 * ax-gdb.c (gen_static_field): Constify
5346
ed731959
JK
53472011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5348
5349 * linux-nat.c (kill_callback): Use SIGKILL first.
5350
967cff16
JB
53512011-05-18 Joel Brobecker <brobecker@adacore.com>
5352
5353 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5354
1d06ead6
TT
53552011-05-18 Tom Tromey <tromey@redhat.com>
5356
5357 * value.c (value_fn_field): Constify.
5358 * symtab.c (gdb_mangle_name): Constify.
5359 * stabsread.c (update_method_name_from_physname): Make 'physname'
5360 argument const.
5361 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5362 const. Use explicit fputc_filtered loop.
5363 (pascal_type_print_base): Constify.
5364 * p-lang.h (pascal_type_print_method_args): Update.
5365 * linespec.c (add_matching_methods): Constify.
5366 (add_constructors): Likewise.
5367 * jv-typeprint.c (java_type_print_base): Constify.
5368 * gdbtypes.h (struct cplus_struct_type)
5369 <fn_fieldlist.fn_field.physname>: Now const.
5370 * dwarf2read.c (compute_delayed_physnames): Constify.
5371 (dwarf2_add_member_fn): Likewise.
5372 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5373
0d9a9a5f
PA
53742011-05-18 Pedro Alves <pedro@codesourcery.com>
5375
5376 * infrun.c (resume): Mention which is the current thread, and its
5377 current PC in debug output.
5378 (prepare_to_proceed): Mention the thread switching in debug
5379 output.
5380
05386e9e
TT
53812011-05-18 Tom Tromey <tromey@redhat.com>
5382
5383 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5384 path check. Use xmalloc and cleanups.
5385 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5386
ee86786c
TT
53872011-05-17 Tom Tromey <tromey@redhat.com>
5388
5389 * cp-valprint.c (cp_print_value_fields): Catch errors from
5390 value_static_field.
5391
9ff3b74f
TT
53922011-05-17 Tom Tromey <tromey@redhat.com>
5393
5394 * dwarf2read.c (dwarf2_get_die_type): Call
5395 get_die_type_at_offset.
5396 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5397 get_base_type function.
5398
cd3da28e
PA
53992011-05-17 Tomas Martinec <fyzmat@gmail.com>
5400
5401 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5402 trap_expected.
5403
fd20d931
DE
54042011-05-16 Doug Evans <dje@google.com>
5405
5406 * python/py-auto-load.c (source_section_scripts): Mention objfile
5407 name in warning.
5408
75fc9810
DE
54092011-05-15 Doug Evans <dje@google.com>
5410
290351b8
DE
5411 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5412 (try_thread_db_load_from_pdir): Call it. If unable to find
5413 libthread_db in directory of libpthread, see if we're looking at
5414 the separate-debug-info copy.
5415
75fc9810
DE
5416 * python/py-autoload.c (print_script): Print "Missing" instead of
5417 "No" for missing scripts.
5418 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5419
9f7bc587
DE
54202011-05-13 Doug Evans <dje@google.com>
5421
5422 * ui-file.c (stdio_file_write_async_safe): Add comment.
5423
093cee7d
HZ
54242011-05-14 Hui Zhu <teawater@gmail.com>
5425
5426 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5427
dbaefcf7
DE
54282011-05-13 Doug Evans <dje@google.com>
5429
98a5dd13
DE
5430 Support $pdir and $sdir in libthread-db-search-path.
5431 * NEWS: Mention $sdir,$pdir.
5432 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5433 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5434 (try_thread_db_load_from_sdir): New function.
5435 (try_thread_db_load_from_dir): New function.
5436 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5437 system directories if search of libthread-db-search-path fails,
5438 that is now done via $sdir.
5439 (has_libpthread): New function.
5440 (thread_db_load): Remove search for libthread_db in directory of
5441 libpthread, that is now done via $pdir.
5442
dbaefcf7
DE
5443 * NEWS: Mention "info auto-load-scripts".
5444 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5445 script_not_found_warning_printed.
5446 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5447 all callers updated. Initialize script_not_found_warning_printed.
5448 (get_auto_load_pspace_data_for_loading): New function.
5449 (maybe_add_script): New function.
5450 (source_section_scripts): Simplify. Only print one warning regardless
5451 of the number of auto-load scripts not found.
5452 (clear_section_scripts): Clear script_not_found_warning_printed.
5453 (auto_load_objfile_script): Record script in hash table.
5454 (count_matching_scripts): New function.
5455 (maybe_print_script): Renamed from maybe_print_section_script, all
5456 callers updated. Rewrite to use ui_out_*.
5457 (info_auto_load_scripts): Renamed from
5458 maintenance_print_section_scripts, all callers updated.
5459 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5460 renamed as "info auto-load-scripts".
5461
9930639c
TT
54622011-05-13 Tom Tromey <tromey@redhat.com>
5463
5464 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5465 (read_sleb128): Likewise.
5466
06826322
TT
54672011-05-13 Tom Tromey <tromey@redhat.com>
5468
5469 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5470 offset display.
5471
01124a23
DE
54722011-05-13 Doug Evans <dje@google.com>
5473
5474 * linux-nat.c (debug_linux_nat_async): Delete.
5475 Replace all references to use debug_linux_nat instead.
5476 (show_debug_linux_nat_async): Delete.
5477 (sigchld_handler): Call ui_file_write_async_safe instead of
5478 fprintf_unfiltered.
5479 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5480 * ui-file.c (struct ui_file): New member to_write_async_safe.
5481 (null_file_write_async_safe): New function.
5482 (ui_file_write_async_safe): New function.
5483 (set_ui_file_write_async_safe): New function.
5484 (ui_file_new): Initialize to_write_async_safe.
5485 (stdio_file_write_async_safe): New function.
5486 (struct stdio_file): New member fd.
5487 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5488 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5489 fileno.
01124a23
DE
5490 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5491 (set_ui_file_write_async_safe): Declare.
5492 (ui_file_write_async_safe): Declare.
5493
72fc29ff
TT
54942011-05-13 Tom Tromey <tromey@redhat.com>
5495
5496 * utils.c (do_value_free): New function.
5497 (make_cleanup_value_free): Likewise.
5498 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5499 freeing correctly.
5500 (dwarf2_loc_desc_needs_frame): Call
5501 make_cleanup_value_free_to_mark.
5502 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5503 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5504 value_free_to_mark.
5505 (new_dwarf_expr_context): Don't call value_mark.
5506 * dwarf2-frame.c (execute_stack_op): Call
5507 make_cleanup_value_free_to_mark.
5508 * defs.h (make_cleanup_value_free): Declare.
5509
028d0ed5
TJB
55102011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5511
5512 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5513 prepare_execute_command.
5514 * top.c (prepare_execute_command): Return cleanup.
5515 (execute_command): Use cleanup from prepare_execute_command.
5516 * top.h (prepare_execute_command): Change prototype to return
5517 cleanup.
5518 * defs.h (struct value): Add opaque declaration.
5519 (make_cleanup_value_free_to_mark): Add prototype.
5520 * utils.c (do_value_free_to_mark): New function.
5521 (make_cleanup_value_free_to_mark): Likewise.
5522
b087e0ed
TT
55232011-05-12 Tom Tromey <tromey@redhat.com>
5524
5525 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5526 cast left-hand-side to unsigned.
5527
8a9b8146
TT
55282011-05-12 Tom Tromey <tromey@redhat.com>
5529
5530 PR gdb/12617:
5531 * value.h (value_from_contents): Declare.
5532 * value.c (value_from_contents): New function.
5533 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5534 (dwarf2_get_die_type): New function.
5535 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5536 (allocate_piece_closure): Acquire reference to values.
5537 (read_pieced_value): Update for value-based expressions.
5538 (write_pieced_value): Likewise.
5539 (free_pieced_value_closure): Call value_free as needed.
5540 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5541 Update for value-based expressions.
5542 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5543 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5544 <get_base_type>: New field.
5545 (struct dwarf_expr_piece) <v.value>: Change type.
5546 <v.regno>: New field.
5547 (struct dwarf_expr_context) <mark>: New field.
5548 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5549 (dwarf_expr_pop, dwarf_expr_push): Remove.
5550 (dwarf_expr_push_address): Declare.
5551 * dwarf2expr.c (dwarf_arch_cookie): New global.
5552 (struct dwarf_gdbarch_types): New.
5553 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5554 functions.
5555 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5556 static.
5557 (dwarf_expr_push_address): New function.
5558 (dwarf_expr_pop): Now static.
5559 (dwarf_expr_fetch): Change return type.
5560 (dwarf_require_integral): New function.
5561 (dwarf_expr_fetch): Simplify.
5562 (add_piece): Update.
5563 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5564 functions.
5565 (execute_stack_op) <sign_ext>: Remove.
5566 Use values for DWARF stack.
5567 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5568 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5569 New cases.
5570 (_initialize_dwarf2expr): New function.
5571 (add_piece): Update.
5572 (new_dwarf_expr_context): Set new field.
5573 (free_dwarf_expr_context): Call value_free_to_mark.
5574 * dwarf2-frame.c (no_base_type): New function.
5575 (execute_stack_op): Set get_base_type field. Update.
5576
e8d28ef4
TT
55772011-05-12 Tom Tromey <tromey@redhat.com>
5578
5579 * dwarf2read.c (read_common_block): Fix formatting.
5580
d248b706
KY
55812011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5582
5583 * breakpoint.c (disable_breakpoint): Disable all locations
5584 associated with a tracepoint on target if a trace experiment is
5585 running.
5586 (disable_command): Disable a specific tracepoint location on target if
5587 a trace experiment is running.
5588 (do_enable_breakpoint): Enable all locations associated with a
5589 tracepoint on target if a trace experiment is running.
5590 (enable_command) Enable a specific tracepoint location on target if a
5591 trace experiment is running.
5592 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5593 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5594 to_disable_tracepoint.
5595 * target.h: Add declaration of struct bp_location.
5596 (struct target_ops): Add new functions
5597 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5598 to_disable_tracepoint to target operations.
5599 (target_supports_enable_disable_tracepoint): New macro.
5600 (target_enable_tracepoint): New macro.
5601 (target_disable_tracepoint): New macro.
5602 * remote.c (struct remote_state): Add new field.
5603 (remote_enable_disable_tracepoint_feature): New.
5604 (remote_protocol_features): Add new entry.
5605 (remote_supports_enable_disable_tracepoint): New.
5606 (remote_enable_tracepoint): New.
5607 (remote_disable_tracepoint): New.
5608 (init_remote_ops): Add remote_enable_tracepoint,
5609 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5610 to remote operations.
5611 * tracepoint.c (start_tracing): Allow tracing to start without any
5612 tracepoints enabled with just a warning if they can be re-enabled
5613 later.
5614 * NEWS: Add news item for the new behaviour of the enable and disable
5615 GDB commands when applied to tracepoints.
5616 Add news items for the new remote packets QTEnable and QTDisable.
5617
cc88a640
JK
56182011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5619
5620 * config.in: Regenerate.
5621 * configure: Regenerate.
5622 * configure.ac <--with-system-readline> (for readline_echoing_p):
5623 Remove the test.
5624 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5625 (tui_old_rl_echoing_p): ... here.
5626 (tui_setup_io): Rename extern declaration readline_echoing_p to
5627 _rl_echoing_p. Adjust assignments for the both renames.
5628
1f84b619
TJB
56292011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5630
5631 * symtab.c (lookup_symtab): Run cleanup before returning.
5632
74ac6d43
TT
56332011-05-11 Tom Tromey <tromey@redhat.com>
5634
5635 * dwarf2read.c (handle_data_member_location): New function.
5636 (dwarf2_add_field): Use it.
5637 (read_common_block): Likewise.
5638
5488dafb
JK
56392011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5640
5641 Make addrs->SECTINDEX always defined.
5642 * symfile.c (relative_addr_info_to_section_offsets): Check for
5643 SECTINDEX -1, not for zero ADDR.
5644 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5645 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5646 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5647 on its validity.
5648
84e578fb
DE
56492011-05-10 Doug Evans <dje@google.com>
5650
2471d008
DE
5651 * linux-thread-db.c: Whitespace cleanup.
5652 (try_thread_db_load_1): Fix comment.
5653
84e578fb
DE
5654 * linux-thread-db.c (set_libthread_db_search_path): New function.
5655 (_initialize_thread_db): Add setter for libthread-db-search-path.
5656
673c2bbe
DE
56572011-05-09 Doug Evans <dje@google.com>
5658
478aac75
DE
5659 * NEWS: Mention --with-iconv-bin.
5660 * configure.ac: New option --with-iconv-bin.
5661 * configure: Regenerate.
5662 * config.in: Regenerate.
5663 * defs.h (relocate_gdb_directory): Declare.
5664 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5665 removed progname parameter, and exported. All callers updated.
5666 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5667
673c2bbe
DE
5668 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5669 adding missing call to restore_child_signals_mask.
5670
e4c8541f
PA
56712011-05-09 Pedro Alves <pedro@codesourcery.com>
5672
5673 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5674 parameter.
5675 * infrun.c (proceed, start_remote): Adjust.
5676 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5677 and adjust to not handle it.
5678 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5679 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5680 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5681 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5682 * windows-nat.c (do_initial_windows_stuff): Adjust.
5683 * infcmd.c (attach_command): Adjust.
5684 (notice_new_inferior): Adjust.
5685
a536c6d7
UW
56862011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5687
5688 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5689 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5690 * spu-tdep.c (op_selb): Use correct value.
5691
7845b013
UW
56922011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5693
5694 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5695 "parent" parameter to symbol_file_add_from_bfd call.
5696
9c06b0b4
TJB
56972011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5698 Thiago Jung Bauermann <bauerman@br.ibm.com>
5699
5700 Implement support for PowerPC BookE masked watchpoints.
5701 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5702 section.
5703 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5704 method. Initialize to NULL in all existing breakpoint_ops instances.
5705 (struct breakpoint) <hw_wp_mask>: New field.
5706 * breakpoint.c (is_masked_watchpoint): Add prototype.
5707 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5708 breakpoint's breakpoint_ops.works_in_software_mode if available.
5709 (watchpoints_triggered): Handle the case of a hardware masked
5710 watchpoint trigger.
5711 (watchpoint_check): Likewise.
5712 (works_in_software_mode_watchpoint): New function.
5713 (insert_masked_watchpoint, remove_masked_watchpoint)
5714 (resources_needed_masked_watchpoint)
5715 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5716 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5717 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5718 functions.
5719 (masked_watchpoint_breakpoint_ops): New structure.
5720 (watch_command_1): Check for the existence of the `mask' parameter.
5721 Set b->ops according to the type of hardware watchpoint being created.
5722 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5723 (ppc_linux_remove_mask_watchpoint)
5724 (ppc_linux_masked_watch_num_registers): New functions.
5725 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5726 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5727 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5728 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5729 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5730 (target_masked_watch_num_registers): New functions.
5731 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5732 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5733 methods.
5734 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5735 (target_masked_watch_num_registers): Add prototypes.
5736
8be455d7
JK
57372011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5738
5739 PR 12573
5740 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5741 (producer_is_gcc_ge_4_0): New function.
5742 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5743 symtab->language code.
5744 (var_decode_location): Set cu->has_loclist.
5745 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5746 skip. Intialize force_skip from locations_valid. Move the prologue
5747 skipping code into two passes.
5748 * symtab.h (struct symtab): Make the primary field a bitfield. New
5749 field locations_valid.
5750
d8228535
JK
57512011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5752
5753 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5754 (classify_inner_name): Call cp_lookup_nested_type with
5755 yylval.tsym.type.
5756 * cp-namespace.c (cp_lookup_nested_type): New variable
5757 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5758 type_name_no_tag_or_error with saved_parent_type.
5759 * dwarf2read.c (load_partial_dies): Read in any children of
5760 DW_TAG_typedef with complaint in such case.
5761 * gdbtypes.c (type_name_no_tag_or_error): New function.
5762 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5763 * valops.c (destructor_name_p): New comment for parameter type. Remove
5764 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5765 * value.h (destructor_name_p): Remove type const.
5766
1976171a
JK
57672011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5768
5769 * symtab.c (compare_symbol_name): New function.
5770 (completion_list_add_name, expand_partial_symbol_name): Call it,
5771 remove the variable ncmp.
5772 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5773 gdb_assert it.
5774
a9634178
TJB
57752011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5776
5777 Demote to sw watchpoint only in update_watchpoint.
5778 * breakpoint.c (update_watchpoint): Change between software and
5779 hardware watchpoint for all kinds of watchpoints, not just
5780 read/write ones. Determine b->exact value here instead of
5781 in watch_command_1. Error out if there are not enough resources
5782 for a read or access hardware watchpoint.
5783 (watch_command_1): Remove logic of checking whether there are
5784 enough resources available, since update_watchpoint will do that
5785 work now. Don't set b->exact here. Catch exceptions thrown by
5786 update_watchpoint and delete the watchpoint.
5787 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5788 Use target_exact_watchpoints instead.
5789 (delete_breakpoint): Notify observers only if deleted watchpoint
5790 has a breakpoint number assigned to it.
5791
4c67c798
JJ
57922011-05-05 Janis Johnson <janisjo@codesourcery.com>
5793
5794 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5795
a3fcb948
JG
57962011-05-05 Jerome Guitton <guitton@adacore.com>
5797
5798 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5799 New functions.
5800 (i386_stack_tramp_frame_unwind): New static global.
5801 (i386_match_pattern): New function, extracted from i386_match_insn.
5802 (i386_match_insn): Use i386_match_pattern.
5803 (i386_match_insn_block): New function.
5804 (i386_tramp_chain_in_reg_insns)
5805 (i386_tramp_chain_on_stack_insns): New static variables.
5806 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5807 of unwinders.
5808
4d393d60
JM
58092011-05-04 Joseph Myers <joseph@codesourcery.com>
5810
5811 * configure.host (xscale*): Don't handle target.
5812 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5813 handle targets.
5814
f70bd40b
YQ
58152011-05-04 Yao Qi <yao@codesourcery.com>
5816
5817 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5818
dd3295ee
JB
58192011-05-03 Joel Brobecker <brobecker@adacore.com>
5820
5821 Revert:
5822 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5823 | * elfread.c (elf_symtab_read): Stop memory leak.
5824
90375a0e
PM
58252011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5826
5827 * nto-tdep.c (nto_target): Replace deprecated call to
5828 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5829
d07205c2
JK
58302011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 Fix false GCC warning.
5833 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5834
1e718ff1
TJB
58352011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5836
5837 * breakpoint.c (update_watchpoint): Move code to change
5838 the enable state of breakpoint from here ...
5839 (do_enable_breakpoint): ... to here.
5840
35bef4fd
TT
58412011-04-26 Andrew Gontarek <andrewg@cray.com>
5842
78290264
PP
5843 * valprint.c (val_print_array_elements): Fixed poor performance
5844 of printing very large arrays with repeat_count_threshold set
5845 to unlimited. New comment.
35bef4fd 5846
38a714bb
TT
58472011-04-29 Tom Tromey <tromey@redhat.com>
5848
5849 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5850 (mi_parse): Likewise.
5851 * breakpoint.c (break_range_command): Use sizeof char*, not
5852 char**.
5853 (create_breakpoint): Likewise.
5854 (parse_breakpoint_sals): Likewise.
5855
eb73ad13
PA
58562011-04-29 Pedro Alves <pedro@codesourcery.com>
5857
5858 * linux-nat.c (linux_child_remove_fork_catchpoint)
5859 (linux_child_remove_vfork_catchpoint)
5860 (linux_child_remove_exec_catchpoint): New functions.
5861 (linux_target_install_ops): Install them.
5862
d65aec65
PM
58632011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5864
5865 PR mi/12531
5866
5867 * varobj.c (install_default_visualizer): Do not install a
5868 visualizer if the varobj is CPLUS_FAKE_CHILD.
5869 (construct_visualizer): Likewise.
5870
165195f4
JK
58712011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5872
5873 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5874 case insensitive comparison.
5875
30852783
UW
58762011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5877
5878 * infrun.c (proceed): Revert previous change.
5879 (resume): Instead, handle the case of signal delivery while stepping
5880 off a breakpoint location here, and only if software single-stepping
5881 is used. Handle nested signals.
5882
7ff120b4
YQ
58832011-04-28 Yao Qi <yao@codesourcery.com>
5884
5885 * arm-tdep.c (copy_unmodified): Rename to ...
5886 (arm_copy_unmodified): .. this. New.
5887 (copy_preload): Move common part to ...
5888 (install_preload): .. this. New.
5889 (arm_copy_preload): New.
5890 (copy_preload_reg): Move common part to ...
5891 (install_preload_reg): ... this. New.
5892 (arm_copy_preload_reg): New.
5893 (copy_b_bl_blx): Move common part to ...
5894 (install_b_bl_blx): .. this. New.
5895 (arm_copy_b_bl_blx): New.
5896 (copy_bx_blx_reg): Move common part to ...
5897 (install_bx_blx_reg): ... this. New.
5898 (arm_copy_bx_blx_reg): New.
5899 (copy_alu_reg): Move common part to ...
5900 (install_alu_reg): ... this. New.
5901 (arm_copy_alu_reg): New.
5902 (copy_alu_shifted_reg): Move common part to ...
5903 (install_alu_shifted_reg): ... this. New.
5904 (copy_ldr_str_ldrb_strb): Move common part to ...
5905 (install_ldr_str_ldrb_strb): ... this. New.
5906 (arm_copy_ldr_str_ldrb_strb): New.
5907 (copy_copro_load_store): Move some common part to ...
5908 (install_copy_copro_load_store): ... this. New.
5909 (arm_copy_copro_load_store): New.
5910 (copy_svc): Delete.
5911 (arm_copy_svc): Renamed from copy_svc.
5912 (copy_undef): Delete.
5913 (arm_copy_undef): Renamed from copy_undef.
5914 (decode_ext_reg_ld_st): Delete.
5915 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5916 (decode_svc_copro): Delete.
5917 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5918 (copy_copro_load_store, copy_alu_imm): update callers.
5919 (copy_extra_ld_st, copy_block_xfer): Likewise.
5920 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5921 (decode_miscellaneous, decode_dp_misc): Likewise.
5922 (decode_ld_st_word_ubyte, decode_media): Likewise.
5923 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5924 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5925 (decode_unconditional, decode_miscellaneous): Likewise.
5926 (decode_media, decode_b_bl_ldmstm): Likewise.
5927 (arm_process_displaced_insn): Likewise..
5928 (decode_misc_memhint_neon): Delete.
5929 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5930 (decode_miscellaneous): Delete.
5931 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5932 (decode_dp_misc): Delete.
5933 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5934 (decode_ld_st_word_ubyte): Delete.
5935 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5936 (decode_media): Delete.
5937 (arm_decode_media): Renamed from decode_media.
5938 (decode_b_bl_ldmstm): Delete.
5939 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5940 (decode_ext_reg_ld_st): Delete.
5941 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5942 (decode_unconditional): Delete.
5943 (arm_decode_unconditional): Renamed from decode_unconditional.
5944
559a7a62
JK
59452011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5946
5947 Case insensitive lookups implementation.
5948 * dwarf2read.c: Include ctype.h.
5949 (struct mapped_index): New field version.
5950 (mapped_index_string_hash): New parameter index_version. New comment
5951 for it. Call tolower appropriately.
5952 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5953 Choose the right index version for mapped_index_string_hash.
5954 (dwarf2_read_index): Support also the index version 5. Initialize the
5955 new struct mapped_index field version.
5956 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5957 (find_slot): Explain the version needs. Pass INT_MAX for the new
5958 parameter.
5959 (write_psymtabs_to_index): Produce version 5.
5960 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5961 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5962 * psymtab.c (lookup_partial_symbol): Find the
5963 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5964 entries.
5965 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5966 NAME lowercasing.
5967 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5968 (completion_list_add_name): New variable ncmp, initialize it, use it.
5969 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5970 * utils.c (strcmp_iw): Support case_sensitive_off.
5971 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5972 New function comment part. New variables saved_string1,
5973 saved_string2 and case_pass. Add a proper second pass.
5974
681bf369
JK
59752011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5976
5977 Replace re_comp/re_exec by regcomp/regexec.
5978 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5979 (search_symbols_name_matches): Use them, use regexec.
5980 (search_symbols): New variable retval_chain, adjust the use of
5981 old_chain against it. Replace re_comp by regcomp. Use the new struct
5982 search_symbols_data fields, use regexec instead of re_exec.
5983
b11b1f88
JK
59842011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5985
5986 Format the code for the next patch.
5987 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5988 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5989 New variables c1 and c2.
5990
2484c66b
UW
59912011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5992
5993 * infrun.c (proceed): Do not single-step into signal delivery
5994 when stepping off a breakpoint location.
5995 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5996 (insert_step_resume_breakpoint_at_caller): Likewise.
5997 (insert_step_resume_breakpoint_at_sal): Likewise.
5998 (insert_longjmp_resume_breakpoint): Likewise.
5999
47423772
YQ
60002011-04-27 Yao Qi <yao@codesourcery.com>
6001
6002 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6003
13bdd2e7
JB
60042011-04-27 Joel Brobecker <brobecker@adacore.com>
6005
6006 * procfs.c (procfs_pass_signals): Fix advance declaration.
6007
2455069d
UW
60082011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6009
6010 * target.h (struct target_ops): Remove to_notice_signals;
6011 add to_pass_signals.
6012 (target_notice_signals): Remove.
6013 (target_pass_signals): Add prototype.
6014 * target.c (update_current_target): Remove to_notice_signals;
6015 mention to_pass_signals.
6016 (target_pass_signals): New function.
6017 (debug_to_notice_signals): Remove.
6018 (setup_target_debug): Do not install debug_to_notice_signals.
6019
6020 * infrun.c (signal_pass): New global.
6021 (resume): Call target_pass_signals.
6022 (handle_inferior_event): Report all signals while stepping over
6023 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6024 are re-inserted when stepping over a signal handler.
6025 (signal_cache_update): New function.
6026 (signal_stop_update): Call it.
6027 (signal_print_update): Likewise.
6028 (signal_pass_update): Likewise.
6029 (handle_command): Call signal_cache_update and target_pass_signals
6030 instead of target_notice_signals.
6031 (_initialize_infrun): Initialize signal_pass.
6032
6033 * linux-nat.c (pass_mask): New global.
6034 (linux_nat_pass_signals): New function.
6035 (linux_nat_create_inferior): Report all signals initially.
6036 (linux_nat_attach): Likewise.
6037 (linux_nat_resume): Use pass_mask to decide whether to directly
6038 handle an inferior signal.
6039 (linux_nat_wait_1): Likewise.
6040 (linux_nat_add_target): Install to_pass_signals callback.
6041
6042 * nto-procfs.c (notice_signals): Remove.
6043 (procfs_resume): Do not call notice_signals.
6044 (procfs_notice_signals): Remove.
6045 (procfs_pass_signals): New function.
6046 (init_procfs_ops): Install to_pass_signals callback instead of
6047 to_notice_signals callback.
6048 (_initialize_procfs): Report all signals initially.
6049
6050 * procfs.c (procfs_notice_signals): Remove.
6051 (procfs_pass_signals): New function.
6052 (procfs_target): Install to_pass_signals callback instead of
6053 to_notice_signals callback.
6054 (register_gdb_signals): Remove.
6055 (procfs_debug_inferior): Report all signals initially.
6056 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6057
6058 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6059 parameters; use them instead of calling signal_..._state routines.
6060 (remote_notice_signals): Remove.
6061 (remote_start_remote): Report all signals initially.
6062 (remote_resume): Do not call remote_pass_signals.
6063 (_initialize_remote): Install to_pass_signals callback instead of
6064 to_notice_signals callback.
6065
46c6471b
PA
60662011-04-27 Pedro Alves <pedro@codesourcery.com>
6067
6068 * breakpoint.c (user_settable_breakpoint): Delete.
6069 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6070 (delete_command): Check user_breakpoint_p instead of looking at
6071 the breakpoint's type.
6072 (disable_command): Ditto.
6073 (enable_command): Ditto.
6074 (delete_trace_command): Use user_breakpoint_p instead of looking
6075 at the breakpoint number directly. When checking if there are
6076 user visible tracepoints, in order to know whether to ask the user
6077 for confirmation, check whether the breakpoint is actually a
6078 tracepoint.
6079
f6d90398
VP
60802011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6081
6082 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6083 compilation.
6084
8d3788bd
VP
60852011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6086
6087 MI breakpoint notifications.
6088
f33edef8
PP
6089 * annotate.c (breakpoint_changed): Adjust parameter type.
6090 * breakpoint.c (set_breakpoint_condition): Adjust to change
6091 in breakpoint_modified type.
6092 (breakpoint_set_commands): Likewise.
6093 (do_map_commands_command): Likewise.
6094 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6095 changed after bumping hit count.
6096 (bpstat_stop_status): Likewise.
6097 (print_one_breakpoint_location): Don't wrap in tuple here.
6098 (print_one_breakpoint): Always print individual locations.
6099 For locations, use unnamed tuple.
6100 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6101 has changed.
6102 (create_catchpoint, create_syscall_event_catchpoint): Call
6103 breakpoint_created obsever.
6104 (mention): Don't call breakpoint_created observer.
6105 (create_breakpoint_sal): Call breakpoint_created observer.
6106 (create_breakpoint, watch_command_1): Likewise.
6107 (create_ada_exception_breakpoint): Likewise.
6108 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6109 (locations_are_equal): New.
6110 (update_breakpoint_locations): If locations were changed, notify.
6111 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6112 Call breakpoint_modified observer.
6113
6114 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6115 (mi_cmd_break_insert): Don't set observers for modify and delete.
6116 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6117 (mi_breakpoint_created, mi_breakpoint_deleted)
6118 (mi_breakpoint_modified): New.
6119 (mi_interpreter_init): Hook the above.
6120 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6121 while -break-* commands are executing.
6122 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6123 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6124 (mi_redirect): New.
6125 (mi_ui_out_impl): Hook in mi_redirect.
6126 (mi_field_skip): True to the name, skip the field, don't output
6127 a field with an empty value.
6128
6129 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6130 (gdbpy_breakpoint_deleted): Adjust.
6131 * tui/tui-hooks.c (tui_event_create_breakpoint)
6132 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6133
a8f42b45
UW
61342011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6135
6136 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6137 (procfs_remove_hw_watchpoint): Likewise.
6138
57e12211
TT
61392011-04-26 Michael Walle <michael@walle.cc>
6140
6141 * remote.c (remote_start_remote): Ack packet after sending the
6142 interrupt sequence.
6143
af96c192
YQ
61442011-04-26 Yao Qi <yao@codesourcery.com>
6145
f33edef8
PP
6146 * linux-nat.c: Move common macros to ...
6147 Include linux-ptrace.h.
6148 * common/linux-ptrace.h: ... here. New.
af96c192 6149
3e03848b
JK
61502011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6151
6152 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6153 !objfile_has_partial_symbols. New comment.
6154 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6155 SYM_READ_PSYMBOLS is not present. Extend the comment.
6156 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6157
1ae0d051
JK
61582011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6159
6160 * defs.h (ENUM_BITFIELD): Remove.
6161
03f2bd59
JK
61622011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6163 Eli Zaretskii <eliz@gnu.org>
6164
6165 * NEWS: Document the new gdbserver --once option.
6166
4161fbb0
JZ
61672011-04-21 Jie Zhang <jzhang918@gmail.com>
6168
6169 * MAINTAINERS: Update my email address.
6170
bcb28afc
PM
61712011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6172
6173 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6174 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6175 function call if __STDC_ISO_10646__ macro is defined.
6176 (intermediate_encoding): New prototype.
6177 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6178 to generate compile time error for unsupported gdb_wchar_t size.
6179 (ENDIAN_SUFFIX): New macro.
6180 (intermediate_encoding): New function.
6181
7b08b9eb
JK
61822011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6183
6184 * ada-lang.c (struct add_partial_datum): Update the comment for
6185 expand_partial_symbol_name.
6186 (ada_add_partial_symbol_completions): Rename to ...
6187 (ada_expand_partial_symbol_name): ... here, change return type, update
6188 function comment, call symbol_completion_match instead of
6189 symbol_completion_add.
6190 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6191 and ada_expand_partial_symbol_name.
6192 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6193 FILE_MATCHER.
6194 (dw2_map_symbol_names): Remove.
6195 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6196 * psymtab.c (map_symbol_names_psymtab): Remove.
6197 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6198 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6199 order.
6200 (psym_functions): Unlist map_symbol_names_psymtab.
6201 (map_partial_symbol_names): Rename to ...
6202 (expand_partial_symbol_names): ... here, change the FUN type, call
6203 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6204 * psymtab.h (map_partial_symbol_names): Rename to ...
6205 (expand_partial_symbol_names): ... here, change the FUN type.
6206 * symfile.h (struct quick_symbol_functions): Update the description of
6207 expand_symtabs_matching. Remove map_symbol_names.
6208 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6209 (struct add_name_data): Update the comment for
6210 expand_partial_symbol_name.
6211 (add_partial_symbol_name): Rename to ...
6212 (expand_partial_symbol_name): ... here. Replace
6213 completion_list_add_name call by strncmp.
6214 (default_make_symbol_completion_list_break_on): Use now
6215 expand_partial_symbol_names and expand_partial_symbol_name.
6216 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6217
90476074
TT
62182011-04-20 Tom Tromey <tromey@redhat.com>
6219
6220 * dwarf2read.c (save_gdb_index_command): Replace format
6221 documentation with a pointer to the manual.
6222
c21236dc
PA
62232011-04-20 Pedro Alves <pedro@codesourcery.com>
6224
6225 * regcache.c: Include remote.h.
6226 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6227 (regcache_dump): Handle regcache_dump_remote.
6228 (maintenance_print_remote_registers): New function.
6229 (_initialize_regcache): Install "maint print remote-registers"
6230 command.
6231 * remote.c (map_regcache_remote_table): New function, factored out
6232 from ...
6233 (init_remote_state): ... here.
6234 (remote_register_number_and_offset): New.
6235 * remote.h (remote_register_number_and_offset): Declare.
6236
b78974c3
PA
62372011-04-20 Pedro Alves <pedro@codesourcery.com>
6238
6239 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6240 null_ptid, assume and allow a NULL address space, instead of
6241 asking the target for the ptid's address space.
6242 * infrun.c (ptid_is_pid): Remove assertion.
6243
7a9dd1b2
TT
62442011-04-19 Tom Tromey <tromey@redhat.com>
6245
6246 * windows-tdep.c (windows_xfer_shared_library):
6247 * windows-nat.c (get_module_name, windows_make_so):
6248 * v850-tdep.c (v850_handle_pushm):
6249 * utils.c (null_cleanup, gdb_realpath):
6250 * ui-out.c (get_next_header):
6251 * tracepoint.c (clear_traceframe_info):
6252 * symtab.c (lookup_symtab):
6253 * serial.h (struct serial_ops):
6254 * mipsread.c (read_alphacoff_dynamic_symtab):
6255 * infcmd.c (print_return_value):
6256 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6257 * f-exp.y (parse_number):
6258 * exceptions.c (catch_exceptions):
6259 * dummy-frame.c (dummy_frame_this_id):
6260 * defs.h (struct cleanup):
6261 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6262 * arm-tdep.c (arm_push_dummy_call):
6263 * amd64-tdep.h (amd64_collect_xsave):
6264 * amd64-tdep.c (amd64_collect_xsave):
6265 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6266 * README (typing): Remove duplicate words.
6267 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6268 * infrun.c (siginfo_value_read): Fix typo.
6269 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6270 * top.c (source_line_number): Add comma.
6271
9941e0c5
MK
62722011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6273
6274 * thread.c (any_live_thread_of_process): Prioritize threads
6275 that are not executing.
6276 * gdbthread.h (any_live_thread_of_process): Update comment
6277 as per above change.
6278
ed4b0e6a
AS
62792011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6280
6281 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6282 (scan_xcoff_symtab): Likewise.
6283
9b13a2db
PM
62842011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6285
6286 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6287 inside if clause.
6288
1c6e1b0d
PM
62892011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6290 Pedro Alves <pedro@codesourcery.com>
6291
6292 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6293 variables to simplify code and avoid == operator at end of
6294 line as this is against GNU coding standards.
6295
74de0234
PM
62962011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6297
6298 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6299 lm_name to name_lm to avoid conflict with lm_name function.
6300
b23518f0
PM
63012011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6302
6303 ARI fixes: Use only lowercase function name for static functions.
6304 * nto-tdep.c (LM_ADDR): Rename to...
6305 (lm_addr): New function name.
6306 (nto_relocate_section_addresses): Adapt to change above.
6307 * solib-sunos.c (LM_ADDR): Rename to...
6308 (lm_addr): New function name.
6309 (LM_NEXT): Rename to...
6310 (lm_next): New function name.
6311 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6312 function name changes above.
6313 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6314 (lm_addr_from_link_map): New function name.
6315 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6316 (has_lm_dynamic_from_link_map): New function name.
6317 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6318 (lm_dynamic_from_link_map): New function name.
6319 (LM_ADDR_CHECK): Rename to...
6320 (lm_addr_check): New function name.
6321 (LM_NEXT): Rename to...
6322 (lm_next): New function name.
6323 (LM_PREV): Rename to...
6324 (lm_prev): New function name.
6325 (LM_NAME): Rename to...
6326 (lm_name): New function name.
6327 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6328 (ignore_first_link_map_entry): New function name.
6329 (svr4_keep_data_in_core): Adapt to function name changes above.
6330 (svr4_current_sos): Likewise.
6331 (enable_break): Likewise.
6332 (svr4_relocate_section_addresses): Likewise.
6333
1448a0a2
PM
63342011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6335
6336 ARI cleanup.
6337 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6338 sprintf. Simplify code and avoid loosing memory.
6339 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6340 (call0_frame_cache): Remove && operator from end of line.
6341
02835898
JK
63422011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6343
6344 Fix libraries displacement if they change whether they were prelinked.
6345 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6346 does not match. Comment why.
6347
9a845ea2
JK
63482011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6349
6350 * corelow.c: Include wrapper.h.
6351 (core_open): Call now gdb_target_find_new_threads.
6352 * wrapper.c: Include target.h.
6353 (gdb_target_find_new_threads): New.
6354 * wrapper.h (gdb_target_find_new_threads): New declaration.
6355
254f582e
JK
63562011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6357
6358 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6359 even if !TARGET_HAS_EXECUTION.
6360
63524580
JK
63612011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6364 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6365 bfd_get_synthetic_symtab.
6366 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6367 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6368 parameter parent, remove the call to add_separate_debug_objfile.
6369 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6370 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6371 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6372 parent, new comment for it, call add_separate_debug_objfile for it.
6373 (symbol_file_add_separate): Pass objfile as the parameter parent,
6374 remove the call to add_separate_debug_objfile.
6375 (symbol_file_add_from_bfd): New parameter parent, pass it.
6376 (symbol_file_add): Pass NULL to the new parameter parent.
6377 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6378
90359a16
JK
63792011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6380
6381 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6382 BSF_SYNTHETIC.
6383
626e7282
JK
63842011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6385
6386 Fix Python access to inlined frames.
6387 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6388 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6389
cf31e6f9
TT
63902011-04-15 Tom Tromey <tromey@redhat.com>
6391
6392 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6393
c8d895f1
GB
63942011-04-15 Gary Benson <gbenson@redhat.com>
6395
6396 * MAINTAINERS: Add myself to write-after-approval section.
6397
56a9aa1d
MF
63982011-04-14 Mike Frysinger <vapier@gentoo.org>
6399
6400 * remote-sim.c (sim_command_completer): New function.
6401 (_initialize_remote_sim): Set completer to sim_command_completer.
6402
ba770c9c
TJB
64032011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6404
6405 * breakpoint.c (print_exception_catchpoint): Rename to ...
6406 (print_it_exception_catchpoint): ... this.
6407 (gnu_v3_exception_catchpoint_ops): Update with new name
6408 for print_it_exception_catchpoint.
6409
51bf2553
EBM
64102011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6411
6412 * MAINTAINERS: Add myself for write after approval privileges.
6413
d242658c
MP
64142011-04-13 Marek Polacek <mpolacek@redhat.com>
6415
6416 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6417
4a4106ca
TJB
64182011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6419
6420 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6421
26063d49
TJB
64222011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6423
6424 * breakpoint.c (save_breakpoints): Verify whether
6425 breakpoint_ops.print_recreate is defined before calling it.
6426
7782b183
GB
64272011-04-11 Gary Benson <gbenson@redhat.com>
6428
6429 Fix failure with --enable-maintainer-mode.
6430 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6431
e8930875
JK
64322011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6433
6434 Code cleanup.
6435 * symtab.c (search_symbols): Reorder the KIND description in the
6436 function comment. Remove the unused 4th element of types, types2,
6437 types3 and types4. New gdb_assert on KIND.
6438 (symtab_symbol_info): Remove the unused 4th element of classnames.
6439 New gdb_assert on KIND.
6440 * symtab.h (enum search_domain): New warning in the enum comment.
6441 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6442 TYPES_DOMAIN.
6443
b4f2f049
JK
64442011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6445
6446 Fix crash of gdb save-index on a STABS file.
6447 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6448 PSYMTABS_ADDRMAP.
6449
60d5a603
JK
64502011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6451
6452 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6453 * dwarf2read.c: Include ctype.h.
6454 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6455 functions.
6456 (dwarf2_add_field): Fix new_field->accessibility by calling
6457 dwarf2_default_access_attribute. Restructure setting accessibility
6458 vs. virtuality.
6459 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6460 is_private and is_protected by calling
6461 dwarf2_default_access_attribute.
6462
e0f68161
KB
64632011-04-08 Kevin Buettner <kevinb@redhat.com>
6464
6465 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6466 to the initialization.
6467
2e1aae43
SE
64682011-04-08 Steve Ellcey <sje@cup.hp.com>
6469
6470 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6471 initalization.
6472
c6ca3dab
PM
64732011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6474
6475 Remove support for old Cygwin 1.5 versions.
6476 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6477 function on old Cygwin version.
6478 * windows-nat.c: Remove cygwin version check and always define
6479 __USEWIDE for Cygwin compilation.
6480
bd18283a
YQ
64812011-04-07 Yao Qi <yao@codesourcery.com>
6482
6483 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6484 and TO.
6485 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6486 (arm_copy_svc): Remove parameters INSN and TO.
6487 (decode_svc_copro): Update caller.
6488 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6489 from function pointer `copy_svc_os'.
6490
8c8dba6d
YQ
64912011-04-07 Yao Qi <yao@codesourcery.com>
6492
6493 * arm-tdep.c (cleanup_branch): Set a correct return address in
6494 LR for ARM and Thumb.
6495
59d7bcaf
JK
64962011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6497
6498 Code cleanup.
6499 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6500 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6501 in the function comment, a new note on values compatibility.
6502 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6503 * symtab.h (SYMBOL_HASH_NEXT): New.
6504
e7db58ea
TJB
65052011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6506
6507 * ppc-linux-nat.c (check_condition): Add len output parameter.
6508 Set it based on the memory region referenced in the condition
6509 expression. Update all callers.
6510
9f743ef6
JK
65112011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6512
6513 Fix crash regression on systems featuring .gdb_index.
6514 * objfiles.c (free_objfile): Move the
6515 forget_cached_source_info_for_objfile call earlier. Comment it.
6516 Extend the comment for objfile_free_data.
6517
9182c5bc
JK
65182011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6519
6520 Fix regression of displaying the debug format.
6521 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6522 subfile.
6523
04bd08de
TT
65242011-04-04 Tom Tromey <tromey@redhat.com>
6525
6526 * cli/cli-interp.c (struct captured_execute_command_args):
6527 Remove.
6528 (do_captured_execute_command): Remove.
6529 (safe_execute_command): Use TRY_CATCH.
6530 * cli/cli-script.c (struct wrapped_read_command_file_args):
6531 Remove.
6532 (wrapped_read_command_file): Remove.
6533 (script_from_file): Use TRY_CATCH.
6534 * exceptions.c (catch_exception): Remove.
6535 * exceptions.h (catch_exception): Remove.
6536 (deprecated_throw_reason): Update comment.
6537 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6538 argument to 'context'.
6539 (mi_execute_command): Use TRY_CATCH.
6540 * remote.c (struct start_remote_args): Remove.
6541 (remote_start_remote): Update; change arguments.
6542 (remote_open_1): Use TRY_CATCH.
6543
58438ac1
TT
65442011-04-04 Tom Tromey <tromey@redhat.com>
6545
6546 * tracepoint.c (scope_info): Update.
6547 * symtab.c (decode_line_spec): Update.
6548 * python/python.c (gdbpy_decode_line): Update.
6549 * linespec.h (decode_line_1): Update.
6550 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6551 (decode_compound, find_method, symtab_from_filename)
6552 (decode_variable): Likewise.
6553 * cli/cli-cmds.c (edit_command): Update.
6554 (list_command): Update.
6555 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6556 argument.
6557 (create_breakpoint): Update.
6558 (until_break_command): Update.
6559 (addr_string_to_sals): Update.
6560 (decode_line_spec_1): Update.
6561
b78a6381
TT
65622011-04-04 Tom Tromey <tromey@redhat.com>
6563
6564 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6565 (do_captured_parse_breakpoint): Remove.
6566 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6567 Use TRY_CATCH directly.
6568
00174a86
TT
65692011-04-04 Tom Tromey <tromey@redhat.com>
6570
6571 * symtab.h (free_symtab): Remove.
6572 (forget_cached_source_info_for_objfile): Declare.
6573 * symmisc.c (free_symtab): Remove.
6574 * source.c (forget_cached_source_info_for_objfile): New function.
6575 (forget_cached_source_info): Use it.
6576 * objfiles.c (free_objfile): Simplify check before calling
6577 clear_current_source_symtab_and_line. Call
6578 forget_cached_source_info_for_objfile.
6579
30cc903e
TT
65802011-04-04 Tom Tromey <tromey@redhat.com>
6581
6582 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6583 (new_symtab): Don't set `free_code' on symtab.
6584 (new_linetable): Properly handle size==0.
6585 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6586 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6587 free_func.
6588 * jv-lang.c (struct jv_per_objfile_data): New.
6589 (jv_per_objfile_free): Free the data.
6590 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6591 (get_java_class_symtab): Set the `dict' field on the
6592 jv_per_objfile_data.
6593 (free_class_block): Remove.
6594 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6595 the symtab.
6596
0c2e6019
TT
65972011-04-04 Tom Tromey <tromey@redhat.com>
6598
6599 * symfile.c (reread_symbols): Update.
6600 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6601 field.
6602 * objfiles.c (allocate_objfile): Update.
6603 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6604 declare.
6605 * cp-namespace.c (lookup_symbol_file): Don't call
6606 lookup_possible_namespace_symbol.
6607 (initialize_namespace_symtab, get_possible_namespace_block)
6608 (free_namespace_block, cp_check_possible_namespace_symbols)
6609 (check_possible_namespace_symbols_loop)
6610 (check_one_possible_namespace_symbol)
6611 (lookup_possible_namespace_symbol): Remove.
6612 (maintenance_cplus_namespace): Replace with notice.
6613 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6614
554d387d
TT
66152011-04-04 Tom Tromey <tromey@redhat.com>
6616
6617 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6618 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6619 * symmisc.c (free_symtab): Don't free debugformat.
6620 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6621 (record_debugformat, record_producer): Document.
6622 * buildsym.c (end_symtab): Don't save debugformat and producer
6623 names on obstack.
6624 (end_symtab): Don't free debugformat and producer fields.
6625 (record_debugformat): Don't call xstrdup.
6626 (record_producer): Likewise.
6627
d4d4db8a
TT
66282011-04-04 Tom Tromey <tromey@redhat.com>
6629
6630 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6631 (source_line_charpos, source_charpos_line): Remove.
6632
8903c50d
TT
66332011-04-04 Tom Tromey <tromey@redhat.com>
6634
6635 * symtab.h (domain_enum): Split in two...
6636 (enum search_domain): New.
6637 (search_symbols): Update.
6638 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6639 redundant declarations.
6640 (search_symbols): Change 'kind' argument to search_domain.
6641 Update.
6642 (print_symbol_info): Likewise.
6643 (symtab_symbol_info): Likewise.
6644 * symfile.h (struct quick_symbol_functions)
6645 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6646 <expand_symtabs_matching>: Likewise.
6647 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6648 (expand_symtabs_matching_via_partial): Update.
6649 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6650 (dw2_expand_symtabs_for_function): Update.
6651 * block.h: Moved anonymous enum...
6652 * defs.h (enum block_enum): ... here. Now named.
6653
d9351f5f 66542011-04-03 Joel Brobecker <brobecker@adacore.com>
6655
6656 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6657 * version.in: Bump version to 7.3.50.20110403-cvs.
6658
d6e00af6
JB
66592011-04-03 Joel Brobecker <brobecker@adacore.com>
6660
6661 * NEWS: Create a new section for the next release branch.
6662 Rename the section of the current branch, now that it has
6663 been cut.
6664
2b9e5ea6
UW
66652011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6666
6667 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6668 for "fpscr" in target description.
6669
0cf03b49
JK
66702011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6671
6672 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6673 initialize it. Delay HASH initialization. Strip the part after open
6674 parenthesis for languages with qualifiers. Call do_cleanups.
6675
5d901a73
TT
66762011-04-01 Tom Tromey <tromey@redhat.com>
6677
6678 * utils.c (report_command_stats): Don't print `-' for negative
6679 number.
6680
b0dd7688
JB
66812011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6682
6683 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6684 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6685 typedefs.
6686
956a9fb9
JB
66872011-04-01 Joel Brobecker <brobecker@adacore.com>
6688
6689 * breakpoint.h (bpdisp_text): Add declaration.
6690 * breakpoint.c (bpdisp_text): Make non-static.
6691 * ada-lang.c: #include "mi/mi-common.h".
6692 (print_it_exception): Rewrite to improve GDB/MI output.
6693
3352110b
PA
66942011-04-01 Pedro Alves <pedro@codesourcery.com>
6695
6696 * arm-tdep.h (struct address_space): Add forward declaration.
6697
18819fa6
UW
66982011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6699
6700 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6701 * arm-tdep.c (arm_override_mode): New global.
6702 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6703 execution mode heuristics.
6704 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6705 second single-step breakpoint if needed, using
6706 arm_insert_single_step_breakpoint.
6707 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6708 ARM execution mode, do not call thumb_get_next_pc_raw.
6709 (arm_get_next_pc): Encode execution mode in return value. Call
6710 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6711 (arm_insert_single_step_breakpoint): New function.
6712 (arm_software_single_step): Call it.
6713 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6714 argument to return execution mode of sigreturn target.
6715 (arm_linux_syscall_next_pc): Use it.
6716 (arm_linux_copy_svc): Update call.
6717 (arm_linux_software_single_step): Call
6718 arm_insert_single_step_breakpoint.
6719
a6e293d1
JK
67202011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6721
6722 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6723 the comment.
6724
a4c8e806
TT
67252011-03-31 Tom Tromey <tromey@redhat.com>
6726
6727 * varobj.c (update_dynamic_varobj_children): Properly handle
6728 errors from iterator.
6729
df5c6c50
JK
67302011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6731
6732 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6733 struct linkage name twice.
6734
1dae3efc
TT
67352011-03-31 Tom Tromey <tromey@redhat.com>
6736
6737 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6738 missing ">" to message.
6739
f4f7ab05
TT
67402011-03-31 Tom Tromey <tromey@redhat.com>
6741
6742 * varobj.c (instantiate_pretty_printer): Remove duplicate
6743 'return'.
6744
fcf250e2
UW
67452011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6746
6747 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6748 if neither saved value nor register available (e.g. signal frame).
6749
ee6436e3
TJB
67502011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6751
6752 * macroexp.c (expand): Avoid uninitialized variable
6753 compiler warning.
6754
423f41a5
TJB
67552011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6756
6757 * breakpoint.c (break_range_command): Fix typo in comment.
6758
f1310107
TJB
67592011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6760 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6761
6762 Implement support for PowerPC BookE ranged breakpoints.
6763 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6764 * breakpoint.h (struct bp_target_info) <length>: New member
6765 variable.
6766 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6767 instead of struct breakpoint as argument, and also add ASPACE
6768 and BP_ADDR arguments. Update all callers.
6769 (struct breakpoint_ops) <print_one_detail>: New method.
6770 (struct breakpoint) <addr_string_range_end>: New member variable.
6771 * breakpoint.c (breakpoint_location_address_match): Add function
6772 prototype.
6773 (insert_bp_location): Set bl->target_info.length.
6774 (breakpoint_here_p): Call breakpoint_location_address_match.
6775 (moribund_breakpoint_here_p): Likewise.
6776 (regular_breakpoint_inserted_here_p): Likewise.
6777 (breakpoint_thread_match): Likewise.
6778 (bpstat_stop_status): Likewise.
6779 (bpstat_check_location): Move call to
6780 breakpoint_ops.breakpoint_hit to the top.
6781 (print_one_breakpoint_location): Call
6782 breakpoint_ops.print_one_detail if available.
6783 (breakpoint_address_match_range): New function.
6784 (breakpoint_location_address_match): Likewise.
6785 (breakpoint_locations_match): Compare the length field of the
6786 locations too.
6787 (hw_breakpoint_used_count): Count resources used by all locations
6788 in a breakpoint, and use breakpoint_ops.resources_needed if
6789 available.
6790 (breakpoint_hit_ranged_breakpoint): New function.
6791 (resources_needed_ranged_breakpoint): Likewise.
6792 (print_it_ranged_breakpoint): Likewise.
6793 (print_one_ranged_breakpoint): Likewise.
6794 (print_one_detail_ranged_breakpoint): Likewise.
6795 (print_mention_ranged_breakpoint): Likewise.
6796 (print_recreate_ranged_breakpoint): Likewise.
6797 (ranged_breakpoint_ops): New structure.
6798 (find_breakpoint_range_end): New function.
6799 (break_range_command): Likewise.
6800 (delete_breakpoint): Free addr_string_range_end.
6801 (update_breakpoint_locations): Add SALS_END argument. Update
6802 all callers. Calculate breakpoint length if a non-zero SALS_END
6803 is given. Call breakpoint_locations_match instead of
6804 breakpoint_address_match.
6805 (reset_breakpoint): Find SaL of the end of the range if B is a
6806 ranged breakpoint.
6807 (_initialize_breakpoint): Register break-range command.
6808 * defs.h (print_core_address): Add function prototype.
6809 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6810 function.
6811 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6812 (ppc_linux_remove_hw_breakpoint): Likewise.
6813 (_initialize_ppc_linux_nat): Initialize
6814 to_ranged_break_num_registers.
6815 * target.c (update_current_target): Add comment about
6816 to_ranged_break_num_registers.
6817 (target_ranged_break_num_registers): New function.
6818 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6819 New method.
6820 (target_ranged_break_num_registers): Add function prototype.
6821 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6822 * utils.c (print_core_address): ... here.
6823
02d20e4a
UW
68242011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6825
6826 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6827 variable compiler warning.
6828
ef23e705
TJB
68292011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6830
6831 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6832 code from here ...
6833 (re_set_breakpoint): ... to here ...
6834 (addr_string_to_sals): ... and here.
6835
311e6ab3
PM
68362011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6837
6838 * Makefile.in (SFILES): Add missing C sources.
6839 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6840 Add missing headers.
6841
acd1d99c
MF
68422011-03-29 Mike Frysinger <vapier@gentoo.org>
6843
6844 * .gitignore: New file.
6845
66ee2731
MF
68462011-03-29 Mike Frysinger <vapier@gentoo.org>
6847
6848 * NEWS: Mention new cfi device simulation.
6849
53832f31
TT
68502011-03-29 Tom Tromey <tromey@redhat.com>
6851
6852 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6853 otherwise anonymous types.
6854 (dwarf2_name): Likewise.
6855 * valops.c (value_struct_elt_for_reference): Refine artificial
6856 type logic. Call error if j==-1.
6857
09b58708
JK
68582011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6859
6860 Fix false GCC warning.
6861 * infcall.c (find_function_addr): Initialize funaddr.
6862
6023c606
PM
68632011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6864
6865 Fix mingw compilation with --enable-targets=all.
6866 * remote-mips.c (gdb_usleep.h): Include header.
6867 (mips_enter_debug): Use gdb_usleep instead of sleep.
6868
0e30163f
JK
68692011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6870
6871 Support resolution of STT_GNU_IFUNC via breakpoints.
6872 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6873 bp_gnu_ifunc_resolver_return.
6874 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6875 the loop. Support bp_gnu_ifunc_resolver and
6876 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6877 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6878 breakpoints.
6879 (bptype_string, print_one_breakpoint_location): Support
6880 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6881 (user_settable_breakpoint): Return true also for
6882 bp_gnu_ifunc_resolver.
6883 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6884 bp_gnu_ifunc_resolver_return.
6885 (set_breakpoint_location_function): New parameter explicit_loc,
6886 describe it. Call find_pc_partial_function_gnu_ifunc with new
6887 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6888 EXPLICIT_LOC is not set.
6889 (set_raw_breakpoint): Set EXPLICIT_LOC for
6890 set_breakpoint_location_function.
6891 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6892 set_breakpoint_location_function.
6893 (mention): Support bp_gnu_ifunc_resolver and
6894 bp_gnu_ifunc_resolver_return.
6895 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6896 set_breakpoint_location_function.
6897 (update_breakpoint_locations): Remove static.
6898 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6899 bp_gnu_ifunc_resolver_return.
6900 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6901 bp_gnu_ifunc_resolver_return.
6902 (update_breakpoint_locations): New declaration.
6903 * elfread.c: Include gdbthread.h and regcache.h.
6904 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6905 functions.
6906 (elf_gnu_ifunc_fns): Install them.
6907 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6908 (stub_gnu_ifunc_resolver_return_stop): New functions.
6909 (stub_gnu_ifunc_fns): Install them.
6910 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6911 and gnu_ifunc_resolver_return_stop.
6912 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6913
07be84bf
JK
69142011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6915
6916 STT_GNU_IFUNC reader implementation.
6917 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6918 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6919 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6920 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6921 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6922 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6923 (elf_gnu_ifunc_resolve_addr): New.
6924 (elf_symfile_read): Call elf_rel_plt_read.
6925 (elf_gnu_ifunc_fns): New.
6926 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6927 Install elf_gnu_ifunc_fns.
6928 * infcall.c (find_function_return_type): New function.
6929 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6930 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6931 (stub_gnu_ifunc_resolve_name): New functions.
6932 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6933 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6934 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6935
300f8e10
JK
69362011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6937
6938 Code cleanup for later STT_GNU_IFUNC support.
6939 * infcall.c (find_function_addr): Remove variable code, use explicit
6940 dereferences for it. Move VALUE_TYPE initialization later.
6941
11c81455
JK
69422011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6943
6944 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6945 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6946 (clear_pc_function_cache): Clear it.
6947 (find_pc_partial_function): Rename to ...
6948 (find_pc_partial_function_gnu_ifunc): ... this function. New
6949 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6950 (find_pc_partial_function): New wrapper for this function.
6951 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6952
0875794a
JK
69532011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6954
6955 GDB internal type support for STT_GNU_IFUNC.
6956 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6957 (elf_symtab_read): Set mst_text_gnu_ifunc for
6958 BSF_GNU_INDIRECT_FUNCTION.
6959 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6960 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6961 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6962 nodebug_got_plt_symbol.
6963 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6964 (TYPE_GNU_IFUNC): New.
6965 (struct main_type): New field flag_gnu_ifunc.
6966 (struct builtin_type): New field builtin_func_func.
6967 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6968 nodebug_got_plt_symbol.
6969 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6970 (in_gnu_ifunc_stub): New.
6971 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6972 mst_text_gnu_ifunc.
6973 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6974 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6975 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6976 in_gnu_ifunc_stub.
6977 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6978 * symtab.c (search_symbols): Likewise.
6979 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6980 and mst_slot_got_plt.
6981 (in_gnu_ifunc_stub): New declaration.
6982
d0fb5eae
JK
69832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6984
6985 Support a ring of related breakpoints.
6986 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6987 other functions, add gdb_assert.
6988 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6989 watchpoint_del_at_next_stop.
6990 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6991 (bpstat_stop_status): Handle ring in related_breakpoint.
6992 (set_raw_breakpoint_without_location): Initialize ring in
6993 related_breakpoint.
6994 (delete_breakpoint): Handle ring in related_breakpoint, use
6995 watchpoint_del_at_next_stop.
6996 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6997
9cded63f
TT
69982011-03-28 Tom Tromey <tromey@redhat.com>
6999
7000 PR symtab/12441:
7001 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7002 with `language_minimal'.
7003
467d42c4
UW
70042011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7005
7006 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7007 instead of checking for STT_ARM_TFUNC symbol type.
7008
62853458
TT
70092011-03-25 Tom Tromey <tromey@redhat.com>
7010
7011 * linespec.c (symbol_found): Restore line-based result for
7012 non-LOC_LABEL symbols.
7013
a7417d46
KT
70142011-03-25 Kai Tietz <ktietz@redhat.com>
7015
7016 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7017 instead of strcmp for comparison.
7018 (tui_source_is_displayed): Likewise.
7019 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7020
55f1336d
TT
70212011-03-24 Mark Wielaard <mjw@redhat.com>
7022
f33edef8
PP
7023 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7024 complaint.
7025 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7026 (find_partial_die_in_comp_unit): Likewise in comment.
7027 (read_attribute_value): Likewise.
7028 (lookup_die_type): Likewise.
7029 (dwarf_form_name): Likewise.
7030 (dump_die_shallow): Likewise.
7031 (follow_die_ref_or_sig): Likewise.
55f1336d 7032
9ef07c8c
TT
70332011-03-24 Tom Tromey <tromey@redhat.com>
7034
7035 PR breakpoints/11816:
7036 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7037 (decode_compound): Update.
7038 (find_function_symbol): New function.
7039 (decode_dollar): Update.
7040 (decode_label): Add 'function_symbol' parameter. Handle
7041 function-relative labels.
7042 (decode_variable): Update.
7043 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7044 not its line. Set `special_display' and canonical name for
7045 labels.
7046
56435ebe
TT
70472011-03-24 Tom Tromey <tromey@redhat.com>
7048
7049 * linespec.h (struct linespec_result) <special_display>: New
7050 field.
7051 * breakpoint.h (struct breakpoint) <display_canonical>: New
7052 field.
7053 * breakpoint.c (print_breakpoint_location): Respect
7054 display_canonical.
7055 (create_breakpoint_sal): Add 'display_canonical' parameter.
7056 (create_breakpoints_sal): Update.
7057 (create_breakpoint): Update.
7058
7efd8fc2
TT
70592011-03-24 Tom Tromey <tromey@redhat.com>
7060
7061 * symtab.c (decode_line_spec): Update.
7062 * linespec.c (build_canonical_line_spec): Change type of
7063 'canonical'.
7064 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7065 (find_method, decode_all_digits, decode_dollar, decode_label)
7066 (symbol_found): Likewise.
7067 (init_linespec_result): New function.
7068 * breakpoint.c (struct captured_parse_breakpoint_args)
7069 <canonical_p>: New field, replaces addr_string_p.
7070 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7071 'addr_string'.
7072 (parse_breakpoint_sals): Likewise.
7073 (do_captured_parse_breakpoint): Update.
7074 (create_breakpoint): Use struct linespec_result.
7075 (until_break_command): Update.
7076 (breakpoint_re_set_one): Update.
7077 (decode_line_spec_1): Update.
7078 * linespec.h (struct linespec_result): New.
7079 (init_linespec_result): Declare.
7080
788c8b10
PA
70812011-03-23 Pedro Alves <pedro@codesourcery.com>
7082
7083 * regcache.c (regcache_raw_read): If the target didn't supply a
7084 given raw register, mark it as unavailable.
7085
0ba1096a
KT
70862011-03-23 Kai Tietz <ktietz@redhat.com>
7087
7088 * breakpoint.c (clear_command): Use filename_cmp
7089 instead of strcmp for comparison.
7090 * buildsym.c (watch_main_source_file_lossage): Likewise.
7091 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7092 checking just for slash.
7093 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7094 strrchr and filename_cmp instead of strcmp for filenames.
7095 (add_old_header_file): Use filename_cmp
7096 instead of strcmp for comparison.
7097 * exec.c (exec_set_section_address): Likewise.
7098 * macrotab.c (macro_lookup_inclusion): Likewise.
7099 (macro_lookup_inclusion): Likewise.
7100 * elfread.c (_initialize_elfread): Likewise.
7101 (elfstab_offset_sections): Likewise.
7102 (elfstab_offset_sections): Use lbasename instead of
7103 strrchr.
7104 * mdebugread.c (parse_partial_symbols): Likewise.
7105 (arse_partial_symbols): Use filename_(n)cmp instead of
7106 str(n)cmp for comparison.
7107 * minsyms.c (lookup_minimal_symbol): Likewise.
7108 * psymtab.c (read_psymtabs_with_filename): Likewise.
7109 * solib.c (solib_read_symbols): Likewise.
7110 (reload_shared_libraries_1): Likewise.
7111 * symmisc.c (maintenance_print_symbols): Likewise.
7112 * symfile.c (separate_debug_file_exists): Likewise.
7113 (reread_symbols): Likewise.
7114 (find_separate_debug_file_by_debuglink): Likewise.
7115 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7116 * source.c (add_path): Likewise.
7117 * symtab.c (filename_seen): Likewise.
7118 (file_matches): Likewise.
7119 (print_symbol_info): Likewise.
7120 (maybe_add_partial_symtab_filename): Likewise.
7121 (make_source_files_completion_list): Likewise.
7122 * xml-syscall.c (init_sysinfo): Likewise.
7123 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7124 IS_DIR_SEPARATOR for checking for trailing path separator.
7125
dd90784c
JK
71262011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7127
7128 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7129 label abort_expression.
7130 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7131 DWARF_VALUE_OPTIMIZED_OUT.
7132
3167638f
JK
71332011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7134
7135 Code cleanup.
7136 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7137 to linkage_name. Invert its value. Update the function comment.
7138 (c_type_print_varspec_suffix): Invert it at the caller.
7139 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7140
ce406537
PA
71412011-03-22 Pedro Alves <pedro@codesourcery.com>
7142
7143 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7144 errors when reading the `stop_pc'.
7145 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7146 get_frame_pc.
7147
da5d4055
PM
71482011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7149
7150 * NEWS: Document gdb.Write stream keyword.
7151
29e0eb9c
JK
71522011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7153
7154 Revert:
7155 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7156 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7157 (dwarf2_add_field): Fix new_field->accessibility for
7158 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7159
05775840
PM
71602011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7161
f33edef8 7162 PR python/12183
05775840
PM
7163
7164 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7165 other error classes. Do not print stack trace.
7166
a0cb7835
JK
71672011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7168
7169 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7170 (dwarf2_add_field): Fix new_field->accessibility for
7171 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7172
d19f7eee
UW
71732011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7174
7175 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7176 encountering a load via a non-SP register.
7177
4a2fbb50
UW
71782011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7179
7180 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7181 field in returned unwinder.
7182
3489610d
JB
71832012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7184
7185 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7186
8c1a34e7
JB
71872012-03-21 Joel Brobecker <brobecker@adacore.com>
7188
7189 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7190 of xmalloc.
7191
8fbca658
PA
71922012-03-18 Pedro Alves <pedro@codesourcery.com>
7193
7194 * frame.c (frame_unwind_register): Throw an error if unwinding the
7195 register failed.
7196 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7197 an unwind stop reason.
7198 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7199 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7200 UNWIND_UNAVAILABLE>: New.
7201 * inline-frame.c (inline_frame_unwind): Install
7202 default_frame_unwind_stop_reason.
7203 * frame-unwind.c: Include "exceptions.h".
7204 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7205 (default_frame_unwind_stop_reason): New.
7206 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7207 (default_frame_unwind_stop_reason): Declare.
7208 (struct frame_unwind) <stop_reason>: New function pointer.
7209
7210 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7211 * dwarf2-frame.c: Include exceptions.h.
7212 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7213 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7214 computing the CFA. If such an error was thrown, set
7215 unavailable_retaddr.
7216 (dwarf2_frame_unwind_stop_reason): New.
7217 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7218 unavailable.
7219 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7220 (dwarf2_signal_frame_unwind): Ditto.
7221
7222 * amd64-tdep.c: Include "exceptions.h".
7223 (struct amd64_frame_cache): New field "base_p".
7224 (amd64_init_frame_cache): Clear it.
7225 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7226 Avoid reading registers with functions that throw if the register
7227 is not necessary to compute the frame base.
7228 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7229 swallowing NOT_AVAILABLE_ERROR.
7230 (amd64_frame_unwind_stop_reason): New.
7231 (amd64_frame_this_id): Don't build a frame id if the frame base
7232 was unavailable.
7233 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7234 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7235 base_p if the frame base was computable.
7236 (amd64_sigtramp_frame_unwind_stop_reason): New.
7237 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7238 frame base was unavailable.
7239 (amd64_sigtramp_frame_unwind): Install
7240 amd64_sigtramp_frame_unwind_stop_reason.
7241 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7242 base_p if the frame base was computable.
7243 (amd64_epilogue_frame_unwind_stop_reason): New.
7244 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7245 frame base was unavailable.
7246 (amd64_epilogue_frame_unwind): Install
7247 amd64_epilogue_frame_unwind_stop_reason.
7248 * i386-tdep.c: Include "exceptions.h".
7249 (struct i386_frame_cache): New field "base_p".
7250 (i386_init_frame_cache): Clear it.
7251 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7252 Avoid reading registers with functions that throw if the register
7253 is not necessary to compute the frame base.
7254 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7255 swallowing NOT_AVAILABLE_ERROR.
7256 (i386_frame_unwind_stop_reason): New.
7257 (i386_frame_this_id): Don't build a frame id if the frame base was
7258 unavailable.
7259 (i386_frame_prev_register): Handle unavailable SP.
7260 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7261 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7262 base_p if the frame base was computable.
7263 (i386_epilogue_frame_unwind_stop_reason): New.
7264 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7265 base was unavailable.
7266 (i386_epilogue_frame_unwind): Install
7267 i386_epilogue_frame_unwind_stop_reason.
7268 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7269 base_p if the frame base was computable.
7270 (i386_sigtramp_frame_unwind_stop_reason): New.
7271 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7272 base was unavailable.
7273 (i386_sigtramp_frame_unwind): Install
7274 i386_sigtramp_frame_unwind_stop_reason.
7275 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7276 type's size, not the register's.
7277 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7278
7279 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7280 default_frame_unwind_stop_reason.
7281 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7282 (alpha_heuristic_frame_unwind): Ditto.
7283 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7284 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7285 * avr-tdep.c (avr_frame_unwind): Ditto.
7286 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7287 Ditto.
7288 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7289 * frv-tdep.c (frv_frame_unwind): Ditto.
7290 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7291 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7292 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7293 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7294 (hppa_stub_frame_unwind): Ditto.
7295 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7296 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7297 (ia64_libunwind_frame_unwind)
7298 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7299 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7300 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7301 * m32c-tdep.c (m32c_unwind): Ditto.
7302 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7303 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7304 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7305 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7306 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7307 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7308 * mep-tdep.c (mep_frame_unwind): Ditto.
7309 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7310 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7311 (mips_stub_frame_unwind): Ditto.
7312 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7313 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7314 * mt-tdep.c (mt_frame_unwind): Ditto.
7315 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7316 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7317 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7318 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7319 (s390_sigtramp_frame_unwind): Ditto.
7320 * score-tdep.c (score_prologue_unwind): Ditto.
7321 * sh-tdep.c (sh_frame_unwind): Ditto.
7322 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7323 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7324 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7325 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7326 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7327 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7328 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7329 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7330 (sparc64obsd_trapframe_unwind): Ditto.
7331 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7332 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7333 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7334 * v850-tdep.c (v850_frame_unwind): Ditto.
7335 * vax-tdep.c (vax_frame_unwind): Ditto.
7336 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7337 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7338 * xtensa-tdep.c (xtensa_unwind): Ditto.
7339
f23d1b92
PA
73402011-03-18 Pedro Alves <pedro@codesourcery.com>
7341
7342 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7343 there's always a frame. Use get_frame_pc_if_available instead of
7344 get_frame_pc, and if there's no PC available, don't look up a
7345 symtab.
7346
1d4f5741
PA
73472011-03-18 Pedro Alves <pedro@codesourcery.com>
7348
7349 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7350 unavailable PC.
7351
dba09041
PA
73522011-03-18 Pedro Alves <pedro@codesourcery.com>
7353
7354 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7355 gracefully.
7356
9a26e44c
PA
73572011-03-18 Pedro Alves <pedro@codesourcery.com>
7358
7359 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7360 * frame.c (frame_unwind_caller_pc_if_available): New.
7361 * stack.c (frame_info): Handle unavailable PC.
7362
73632011-03-18 Pedro Alves <pedro@codesourcery.com>
7364
7365 * frame.c (frame_unwind_pc): Rename to ...
7366 (frame_unwind_pc_if_available): ... this. New `pc' output
7367 parameter. Change return type to int. Gracefully handle
7368 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7369 happened, or 1 otherwise.
7370 (frame_unwind_pc): Reimplement on top of
7371 frame_unwind_pc_if_available.
7372 (get_frame_func): Rename to ...
7373 (get_frame_func_if_available): New `pc' output parameter. Change
7374 return type to int. Gracefully handle the PC not being available.
7375 (get_frame_func): Reimplement on top of
7376 get_frame_func_if_available.
7377 (select_frame): Handle the PC being unavailable.
7378 (get_prev_frame): Handle the PC being unavailable.
7379 (get_frame_pc_if_available): New.
7380 (get_frame_address_in_block_if_available): New.
7381 (find_frame_sal): Handle the frame PC not being available.
7382 * frame.h (get_frame_pc_if_available): Declare.
7383 (get_frame_address_in_block_if_available): Declare.
7384 (get_frame_func_if_available): Declare.
7385 * stack.c (print_frame_info): Handle the PC being unavailable.
7386 (find_frame_funname): Ditto.
7387 (print_frame): Handle the PC being unavailable.
7388 (get_frame_language): Ditto.
7389 * blockframe.c (get_frame_block): Ditto.
7390 * macroscope.c (default_macro_scope): Ditto.
7391 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7392
73932011-03-18 Pedro Alves <pedro@codesourcery.com>
7394
7395 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7396 NOT_AVAILABLE_ERROR when evaluating the location expression.
7397
73982011-03-18 Pedro Alves <pedro@codesourcery.com>
7399
7400 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7401 returning that the register piece is unavailable/optimized out.
7402 (write_pieced_value): Handle get_frame_register_bytes returning
7403 that the register piece is unavailable/optimized out when doing a
7404 read-modify write of a bitfield.
7405 * findvar.c (value_from_register): Handle get_frame_register_bytes
7406 returning that the register piece is unavailable/optimized out.
7407 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7408 and `unavailablep'. Throw error on bad debug info. Use
7409 frame_register instead of frame_register_read, to fill in the new
7410 arguments.
7411 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7412 and `unavailablep'.
7413 * valops.c: (value_assign): Adjust, and handle
7414 get_frame_register_bytes failing.
7415 * spu-tdep.c: Include exceptions.h.
7416 (spu_software_single_step): Adjust, and handle
7417 get_frame_register_bytes failing.
7418 (spu_get_longjmp_target): Ditto.
7419 * gdbarch.sh (register_to_value): Change to return int. New
7420 parameters `optimizedp' and `unavailablep'.
7421 * gdbarch.h, gdbarch.c: Regenerate.
7422 * i386-tdep.c (i386_register_to_value): Adjust to new
7423 gdbarch_register_to_value interface.
7424 * i387-tdep.c (i387_register_to_value): Ditto.
7425 * i387-tdep.h (i387_register_to_value): Ditto.
7426 * alpha-tdep.c (alpha_register_to_value): Ditto.
7427 * ia64-tdep.c (ia64_register_to_value): Ditto.
7428 * m68k-tdep.c (m68k_register_to_value): Ditto.
7429 * mips-tdep.c (mips_register_to_value): Ditto.
7430 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7431
0fdb4f18
PA
74322011-03-18 Pedro Alves <pedro@codesourcery.com>
7433
7434 * findvar.c (value_of_register): Mark the value as unavailable, if
7435 the register is unavailable.
7436 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7437 (frame_register): New `unavailablep' parameter.
7438 (frame_register_read): Update comment.
7439 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7440 Set it if the register is unavailable. If the register is
7441 unavailable, clear the output buffer.
7442 (frame_register): New `unavailablep' parameter. Pass it down.
7443 (frame_unwind_register): Adjust.
7444 (put_frame_register): Adjust.
7445 (frame_register_read): Adjust. Also return false if the register
7446 is not available.
7447 (frame_register_unwind_location): Adjust.
7448 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7449 is unavailable, mark the value accordingly.
7450 * stack.c (frame_info): Handle unavailable registers.
7451
e69aa73e
PA
74522011-03-18 Pedro Alves <pedro@codesourcery.com>
7453
7454 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7455 simplify, using regcache_cooked_read.
7456
05d1431c
PA
74572011-03-18 Pedro Alves <pedro@codesourcery.com>
7458
7459 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7460 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7461 (regcache_raw_read_unsigned, regcache_raw_read_part)
7462 (regcache_cooked_read, regcache_cooked_read_signed)
7463 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7464 (regcache_cooked_read_ftype): Change return to enum
7465 register_status.
7466 * regcache.c: Include exceptions.h
7467 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7468 (do_cooked_read): Change return to enum register_status. Always
7469 forward to regcache_cooked_read.
7470 (regcache_raw_read): Change return to enum register_status. If
7471 the register is not REG_VALID, memset the buffer. Return the
7472 register's status.
7473 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7474 return the register's status.
7475 (regcache_raw_read_unsigned): Ditto.
7476 (regcache_cooked_read): Change return to enum register_status.
7477 Assert that with read-only regcaches, the register's status must
7478 be known. If the regcache is read-only, and the register is not
7479 REG_VALID, memset the buffer. Return the register's status.
7480 (regcache_cooked_read_signed): Change return to enum
7481 register_status. Handle non-REG_VALID registers and return the
7482 register's status.
7483 (regcache_cooked_read_unsigned): Change return to enum
7484 register_status. Handle non-REG_VALID registers and return the
7485 register's status.
7486 (regcache_xfer_part, regcache_raw_read_part)
7487 (regcache_cooked_read_part): Change return to enum
7488 register_status. Return the register's status.
7489 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7490 unavailable.
7491 (regcache_dump): Handle unavailable cooked registers.
7492 * frame.c (do_frame_register_read): Adjust interface to match
7493 regcache_cooked_read_ftype.
7494 * gdbarch.sh (pseudo_register_read): Change return to enum
7495 register_status.
7496 * gdbarch.h, gdbarch.c: Regenerate.
7497
7498 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7499 register_status.
7500 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7501 register_status. If reading a raw register indicates the raw
7502 register is not valid, return the raw register's status,
7503 otherwise, return REG_VALID.
7504 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7505 register_status. Handle non-REG_VALID raw registers and return
7506 the register's status.
7507 * arm-tdep.c (arm_neon_quad_read)
7508 (arm_pseudo_read): Change return to enum register_status. Handle
7509 non-REG_VALID raw registers and return the register's status.
7510 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7511 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7512 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7513 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7514 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7515 register_status.
7516 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7517 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7518 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7519 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7520 (m32c_pseudo_register_read): Change return to enum
7521 register_status. Adjust.
7522 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7523 enum register_status. Return the register's status.
7524 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7525 register_status. Return the register's status.
7526 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7527 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7528 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7529 * rs6000-tdep.c (move_ev_register_func): New typedef.
7530 (e500_move_ev_register): Use it. Change return to enum
7531 register_status. Return the register's status.
7532 (do_regcache_raw_read): New function.
7533 (do_regcache_raw_write): New function.
7534 (e500_pseudo_register_read): Change return to enum
7535 register_status. Return the register's status. Use
7536 do_regcache_raw_read.
7537 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7538 (dfp_pseudo_register_read): Change return to enum register_status.
7539 Return the register's status.
7540 (vsx_pseudo_register_read): Ditto.
7541 (efpr_pseudo_register_read): Ditto.
7542 (rs6000_pseudo_register_read): Ditto.
7543 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7544 register_status. Return the register's status.
7545 * sh64-tdep.c (pseudo_register_read_portions): New function.
7546 (sh64_pseudo_register_read): Change return to enum
7547 register_status. Use pseudo_register_read_portions. Return the
7548 register's status.
7549 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7550 register_status. Return the register's status.
7551 * sh-tdep.c (pseudo_register_read_portions): New function.
7552 (sh_pseudo_register_read): Change return to enum register_status.
7553 Use pseudo_register_read_portions. Return the register's status.
7554 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7555 enum register_status. Return the register's status.
7556 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7557 * spu-tdep.c (spu_pseudo_register_read_spu)
7558 (spu_pseudo_register_read): Ditto.
7559 * xtensa-tdep.c (xtensa_register_read_masked)
7560 (xtensa_pseudo_register_read): Ditto.
7561 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7562
e10abd8f
PM
75632011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7564
7565 * python/py-value.c (valpy_getitem): Fix formatting of error function
7566 call.
7567
7ea6d463
PM
75682011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7569
7570 ARI fixes: Add missing internationalization markups throughout
7571 C source files.
7572 * darwin-nat-info.c: Ditto.
7573 * record.c: Ditto.
7574 * remote.c: Ditto.
7575 * mi/mi-main.c: Ditto.
7576
001083c6
PM
75772011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7578
7579 ARI fixes: Add missing internationalization markups throughout
7580 yacc files.
7581 * c-exp.y: Ditto.
7582 * cp-name-parser.y: Ditto.
7583 * f-exp.y: Ditto.
7584 * m2-exp.y: Ditto.
7585 * objc-exp.y: Ditto.
7586 * p-exp.y: Ditto.
7587
4f1cdeec
PM
75882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7589
7590 ARI fixes: Messages should have no trailing new lines.
7591 * darwin-nat.c (mach_check_error): Remove trailing new line from
7592 warning function call message.
7593 * record.c (bfdcore_read): Idem for error call.
7594
28e698f1
PM
75952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7596
7597 * common/signals.c (target_signal_from_host): Add _ markup to error
7598 function call message.
7599 (target_signal_to_host): Add _ markup and remove trailing new line
7600 from warning call message.
7601 (target_signal_from_command): Add _ markup to error function call
7602 message.
7603
99c3dc11
PM
76042011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7605
f33edef8 7606 PR python/12149
99c3dc11
PM
7607
7608 * python/python.c (gdbpy_write): Accept a stream argument and
7609 operate to the appropriate stream.
7610 (gdbpy_flush): Likewise.
7611 (_initialize_python): Add stream constants.
7612 (finish_python_initialization): Add GdbOutputErrorFile class.
7613
c20800be
KY
76142011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7615
7616 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7617
f4a1794a
KY
76182011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7619
7620 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7621 to store_signed_integer. Add debug message when relocating CALL
7622 instructions. Fix formatting of debug message.
7623 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7624
d4862372
JB
76252011-03-17 Joel Brobecker <brobecker@gnat.com>
7626
7627 * target.h (struct target_ops): Remove to_lookup_symbol field.
7628 (target_lookup_symbol): Delete macro.
7629 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7630 (update_current_target, setup_target_debug): Remove handling
7631 of to_lookup_symbol target_ops field.
7632 * ada-tasks.c (get_known_tasks_addr): Remove use of
7633 target_lookup_symbol.
7634 * coffread.c (coff_symtab_read): Likewise.
7635 * dbxread.c (read_dbx_symtab): Ditto.
7636
d645e32e
JB
76372011-03-17 Joel Brobecker <brobecker@gnat.com>
7638
7639 PR gdb/12116:
7640 * configure.ac: Add getthrds declaration check.
7641 * configure, config.in: Regenerate.
7642 * aix-thread.c (getthrds): Declare only if not already declared
7643 in procinfo.h. More declaration out of get_signaled_thread to
7644 global scope.
7645
29703da4
PM
76462011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7647
7648 * python/py-symtab.c: Populate symtab_object_methods,
7649 sal_object_methods.
7650 (stpy_is_valid): New function.
7651 (salpy_is_valid): Ditto.
7652 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7653 (sympy_is_valid): New function.
7654 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7655 (objfpy_is_valid): New function.
7656 * python/py-inferior.c: Populate inferior_object_methods.
7657 (infpy_is_valid): New function.
7658 * python/py-infthread.c: Populate thread_object_methods.
7659 (thpy_is_valid): New function.
7660 * python/py-block.c: Declare block_object_methods. Populate. Declare
7661 block_iterator_object_methods. Populate.
7662 (blpy_is_valid): New function.
7663 (blpy_iter_is_valid): Ditto.
7664
c00f8484
KS
76652011-03-16 Keith Seitz <keiths@redhat.com>
7666
7667 * linespec.c (find_methods): Canonicalize NAME before looking
7668 up the symbol.
7669 (name_end): New function.
7670 (keep_name_info): New function.
7671 (decode_line_1): Use keep_name_info.
7672 (decode_compound): Likewise.
7673 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7674 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7675
7676 PR c++/12273
7677 * linespec.c (locate_first_half): Keep overload information, too.
7678 (decode_compound): Use a string to represent break characters
7679 to escape the loop.
7680 If P points to a break character, do not increment it.
7681 For C++ and Java, keep overload information and relevant keywords.
7682 If we cannot find a symbol, search the minimal symbols.
7683
7684 PR c++/11734
7685 * linespec.c (decode_compound): Rename SAVED_ARG to
7686 THE_REAL_SAVED_ARG.
7687 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7688 single-quotes.
7689 Pass a valid block to lookup_symbol.
7690 (lookup_prefix_sym): Likewise.
7691 (find_method): Construct search name based on SYM_CLASS instead
7692 of SAVED_ARG.
7693 * psymtab.c (lookup_partial_symbol): Add language parameter.
7694 (lookup_symbol_aux_psymtabs): Likewise.
7695 Don't assume that the psymtab we found was the right one. Search
7696 for the desired symbol in the symtab to be certain.
7697 (psymtab_search_name): New function.
7698 (lookup_partial_symbol): Use psymtab_search_name.
7699 Add language parameter.
7700 (read_symtabs_for_function): Add language parameter and pass to
7701 lookup_partial_symbol.
7702 (find_symbol_file_from_partial): Likewise.
7703
c91513d8
PP
77042011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7705
7706 PR gdb/12528
7707 * dwarf2read.c (noop_record_line): New function.
7708 (dwarf_decode_lines): Ignore line tables for GCd functions.
7709
b37520b6
PM
77102011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7711
7712 Fix ARI warnings about new lines at the end of messages, which
7713 are unneeded as there is a new line added at the end of the message
7714 automatically.
7715 * darwin-nat.c (darwin_stop_inferior): Ditto.
7716 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7717 * dfp.c (decimal_to_number): Ditto.
7718 * exec.c (print_section_info): Ditto.
7719 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7720 * osdata.c (get_osdata): Ditto.
7721 * record.c (bfdcore_write): Ditto.
7722 * remote-mips.c (mips_readchar): Ditto.
7723 * remote.c (read_ptid): Ditto.
7724 * ser-mingw.c (ser_windows_raw): Ditto.
7725 * tracepoint.c (add_local_symbols): Ditto.
7726 * windows-nat.c (fake_create_process): Ditto.
7727
b08ee6a2
TT
77282011-03-16 Tom Tromey <tromey@redhat.com>
7729
7730 * tracepoint.c (stop_tracing): Don't declare.
7731 * event-top.c (after_char_processing_hook): Add `(void)'.
7732
9a6f1302
PM
77332011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7734
7735 * NEWS: Add Parameter sub-classing description.
7736
7ceb86b1
KT
77372011-03-16 Kai Tietz <ktietz@redhat.com>
7738
7739 * MAINTAINERS: Update my e-mail address.
7740
efeff6cf
AT
77412011-03-15 Andreas Tobler <andreast@fgznet.ch>
7742
7743 * MAINTAINERS: Add myself for write after approval privileges.
7744
681c238c
MS
77452011-03-15 Michael Snyder <msnyder@vmware.com>
7746
f3df5b08
MS
7747 * frame.c (find_frame_sal): Assert sym is not null.
7748
13f6513c
MS
7749 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7750
50412521
MS
7751 * objc-lang.c (selectors_info): Check strchr for null result.
7752
681c238c
MS
7753 * stabsread.c (define_symbol): Guard against bad stabstring input.
7754
6ced1581
PM
77552011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7756
7757 Remove trailing spaces and tabulations from pascal language
7758 support sources.
7759 p-exp.y: Ditto.
7760 p-lang.c: Ditto.
7761 p-lang.h: Ditto.
7762 p-valprint.c: Ditto.
7763
9373cf26
JK
77642011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7765
7766 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7767 than LOW. Comment it.
7768 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7769 HIGHPC not strictly higher than LOWPC.
7770
9a1edae6
PM
77712011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7772
7773 Fix formatting of function declarations returning a pointer in
7774 previous commit.
7775 * varobj.c (varobj_add_child): Ditto.
7776 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7777 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7778
24e9cda0
UW
77792011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7780
7781 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7782 for the "generic" vector ABI used with GCC 4.3 and later.
7783 (ppc64_sysv_abi_return_value): Likewise.
7784
77852011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7786
7787 * infcall.c (call_function_by_hand): Function return value is
7788 always a non_lval, even when using struct_return.
7789
c9174737
PA
77902011-03-15 Pedro Alves <pedro@codesourcery.com>
7791
7792 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7793 (map_display_numbers): New.
7794 (do_delete_display): New.
7795 (undisplay_command): Use map_display_numbers.
7796 (do_enable_disable_display): New.
7797 (enable_disable_display_command): New function.
7798 (enable_display): Delete.
7799 (enable_display_command): New.
7800 (disable_display_command): Reimplement.
7801 (_initialize_printcmd): Adjust "enable display" command to use
7802 `enable_display_command' as callback.
7803
350c6c65
PM
78042011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7805
7806 * NEWS: Add Python breakpoint 'stop' operation.
7807
824446ad
PM
78082011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7809
7810 * NEWS: Delete duplicate entry. Fix typo.
7811
2021ad3a
PM
78122011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7813
7814 Fix ARI warning about function names in first column.
7815 Put prototype declaration on same line as return type.
7816 * objc-exp.y: Ditto.
7817 * p-exp.y: Ditto.
7818 * python/py-stopevent.h: Ditto.
7819 For long function names, split parameters to
7820 allow function name on same line as return type.
7821 * solib-pa64.c: Ditto.
7822 * varobj.c: Ditto.
7823 * varobj.h: Ditto.
7824 For long function declaration, use single line.
7825 * hppa-tdep.h: Ditto.
7826 * inferior.h: Ditto.
7827
7371cf6d
PM
78282011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7829
7830 * python/python.h: Declare gdbpy_should_stop and
7831 gdbpy_breakpoint_has_py_cond.
7832 * python/python.c: Add python.h to includes. Remove python.h from
7833 HAVE_PYTHON definition
7834 (gdbpy_should_stop): New dummy function.
7835 (gdbpy_breakpoint_has_py_cond): New dummy function.
7836 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7837 sub-classing capabilities.
7838 (gdbpy_should_stop): New function.
7839 (gdbpy_breakpoint_has_py_cond): New function.
7840 (local_setattro): New function.
7841 * breakpoint.c (condition_command): Add check for Python 'stop'
7842 operation.
7843 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7844 operation function as part of stop/continue tests.
7845
37b50a69
TT
78462011-03-14 Tom Tromey <tromey@redhat.com>
7847
7848 PR gdb/12576:
7849 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7850 (needs_frame_dwarf_call): Likewise.
7851
eeae04df
PM
78522011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7853
7854 Fix ARI warning about functions without parameters that do not
7855 use (void).
7856 * breakpoint.c (all_tracepoints): Replace () by (void).
7857 * f-exp.y (match_string_literal): Ditto.
7858 (yylex): Ditto.
7859 * m2-exp.y (yylex): Ditto.
7860 * mep-tdep.c (current_me_module): Ditto.
7861 (current_options): Ditto.
7862 (current_cop_data_bus_width): Ditto.
7863 (current_cr_names): Ditto.
7864 (current_cr_is_float): Ditto.
7865 (current_ccr_names): Ditto.
7866 * objc-exp.y (yylex): Ditto.
7867 * p-exp.y (yylex): Ditto.
7868 * remote.c (send_interrupt_sequence): Ditto.
7869 * tracepoint.c (current_trace_status): Ditto.
7870 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7871 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7872
6dc3565d
MS
78732011-03-11 Michael Snyder <msnyder@vmware.com>
7874
1427fe5e
MS
7875 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7876 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7877 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7878 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7879 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7880
60bc018f
MS
7881 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7882 (delete_async_event_handler): Ditto.
7883
f3be5b64
MS
7884 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7885
4c2d5724
MS
7886 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7887
6dc3565d
MS
7888 * top.c (set_verbose): Assert showcmd was found.
7889
4e6ca6d5
MG
78902011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7891
7892 * xtensa-tdep.c (warning_once): Correct style issues.
7893
815a83e4
YQ
78942011-03-11 Yao Qi <yao@codesourcery.com>
7895
7896 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7897
f2eb0bc8
AS
78982011-03-11 Andreas Schwab <schwab@redhat.com>
7899
7900 * common/aclocal.m4: Remove.
7901
b801de47
MG
79022011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7903
7904 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7905 (xtensa_write_register, xtensa_read_register): Likewise.
7906 (xtensa_hextochar): Removed.
7907 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7908
dbab50de
MG
79092011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7910
7911 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7912 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7913 (xtensa_alloc_frame_cache): Add initialization for new fields.
7914 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7915 (warning_once): New function.
7916 (xtensa_insn_kind): New item c0opc_and.
7917 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7918 (call0_track_op): Change arguments. New local variable litbase.
7919 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7920 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7921 in the prologue.
dbab50de 7922 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7923 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7924 Add the variety of updates to handle extended prologues, which now can
7925 conduct dynamic stack adjustments.
7926 (call0_frame_cache): Likewise.
7927 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7928 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7929
b2c04452
MS
79302011-03-10 Michael Snyder <msnyder@vmware.com>
7931
f8f67713
MS
7932 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7933 (cmd_qtframe): Ditto.
7934 (cmd_qtbuffer): Ditto.
7935 (cmd_bigqtbuffer): Ditto.
7936
197f0a60
TT
79372011-03-10 Tom Tromey <tromey@redhat.com>
7938
7939 * tracepoint.c (trace_actions_command): Update.
7940 * thread.c (thread_apply_command): Update.
7941 * reverse.c (delete_bookmark_command): Update.
7942 (bookmarks_info): Update.
7943 * printcmd.c (undisplay_command): Update.
7944 * memattr.c (mem_enable_command): Update.
7945 (mem_disable_command): Update.
7946 (mem_delete_command): Update.
7947 * inferior.c (detach_inferior_command): Update.
7948 (kill_inferior_command): Update.
7949 (remove_inferior_command): Update.
7950 * cli/cli-utils.h (struct get_number_or_range_state): New.
7951 (init_number_or_range): Declare.
7952 (get_number_or_range): Update.
7953 * cli/cli-utils.c (init_number_or_range): New function.
7954 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7955 static variables.
7956 (number_is_in_list): Update.
7957 * breakpoint.h (get_tracepoint_by_number): Update.
7958 * breakpoint.c (map_breakpoint_numbers): Update for change to
7959 get_number_or_range.
7960 (find_location_by_number): Use get_number, not
7961 get_number_or_range.
7962 (trace_pass_set_count): New function.
7963 (trace_pass_command): Update for change to get_number_or_range.
7964 Rework loop logic.
7965 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7966 'state' parameter.
7967
ecec24e6
PM
79682011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7969
7970 * python/py-param.c (add_setshow_generic): Add set/show callback
7971 parameters. Register Python object context.
7972 (get_show_value): New function.
7973 (get_set_value): New function.
7974 (call_doc_function): New function.
7975 (get_doc_string): Move behind get_show_value/get_set_value.
7976
6d6c6b1f
JK
79772011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7978
7979 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7980
68d6df83
MG
79812011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7982
dbab50de 7983 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7984 (xtensa_write_register): Likewise.
7985 (xtensa_hextochar): Add comment and update to match coding conventions.
7986 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7987 (execute_l32e, execute_s32e, execute_code): Update comments.
7988 (xtensa_exception_handler_t): Update to match coding conventions.
7989 (xtensa_insn_kind): Likewise.
7990
85c9d6a6
MS
79912011-03-09 Michael Snyder <msnyder@vmware.com>
7992
7993 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7994
91495617
PA
79952011-03-09 Pedro Alves <pedro@codesourcery.com>
7996
7997 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7998
eb8c0621
TT
79992011-03-09 Tom Tromey <tromey@redhat.com>
8000
8001 * thread.c (restore_selected_frame): Handle frame_level == -1.
8002 (make_cleanup_restore_current_thread): Use
8003 get_selected_frame_if_set.
8004 * frame.h (get_selected_frame_if_set): Declare.
8005 * frame.c (get_selected_frame_if_set): New function.
8006
9f37bbcc
PA
80072011-03-09 Pedro Alves <pedro@codesourcery.com>
8008
8009 * cli/cli-cmds.c (shell_escape): Use lbasename.
8010 * coffread.c (coff_start_symtab): Constify parameter.
8011 (complete_symtab): Constify `name' parameter.
8012 (coff_symtab_read): Constify `filestring' local.
8013 (coff_getfilename): Constify return and `result' local.
8014 Use lbasename.
8015 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8016 * linux-fork.c (info_checkpoints_command): Use lbasename.
8017 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8018 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8019 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8020 * procfs.c (procfs_make_note_section): Use lbasename.
8021 * tui/tui-io.c (printable_part): Constity return and parameter.
8022 Use lbasename.
8023 (print_filename): Constify parameters, and local `s'.
8024 (tui_rl_display_match_list): Constify local `temp'.
8025
f8de3c55
JK
80262011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8027
8028 Revert:
8029 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8030 Fix DWARF-3+ DW_AT_accessibility default assumption.
8031 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8032 cu->header.version >= 3.
8033
d9837b00
YQ
80342011-03-09 Yao Qi <yao@codesourcery.com>
8035
8036 * common/Makefile.in: Remove.
8037 * common/configure: Remove.
8038 * common/configure.ac: Remove.
8039
e637a4f5
YQ
80402011-03-09 Yao Qi <yao@codesourcery.com>
8041
8042 Revert:
8043 2011-02-11 Yao Qi <yao@codesourcery.com>
8044
8045 * common/Makefile.in: Add copyright header.
8046
8047 2011-02-11 Yao Qi <yao@codesourcery.com>
8048
8049 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8050 libcommon.a.
8051 * configure.ac: Add common to sub dir.
8052 * configure: Regenerate.
8053
f976a05d
MG
80542011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8055
8056 * xtensa-tdep.c (call0_ret): New function.
8057 (xtensa_skip_prologue): Speed up analysis.
8058
57041825
MG
80592011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8060
8061 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8062 while executing MI command -data-list-changed-registers.
8063
08b9c608
MG
80642011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8065
8066 * xtensa-tdep.c (xtensa_read_register): New function.
8067 (xtensa_write_register): New function.
8068 (xtensa_find_register_by_name): New function.
8069 (xtensa_windowed_frame_cache): Update comments in type description.
8070 (xtensa_frame_cache): Likewise.
8071 (xtensa_window_interrupt_insn): New function.
8072 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8073 (xtensa_insn_kind): Add new instructions.
8074 (rwx_special_register): New function.
8075 (call0_classify_opcode): Add new instructions to the analysis.
8076 (a0_saved, a7_saved, a11_saved): New variables.
8077 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8078 (execute_l32e): New function.
8079 (execute_s32e): New function.
8080 (xtensa_exception_handler_t): New type.
8081 (execute_code): New function.
8082 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8083 analysis for Xtensa Window Exception handlers.
8084
4d1acb11
MG
80852011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8086
98689b25
MG
8087 * xtensa-tdep.c (TX_PS): New.
8088 (windowing_enabled): Update to count for Call0 ABI.
8089 (xtensa_hextochar): New.
8090 (xtensa_init_reggroups): Make algorithm generic.
8091 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8092
80932011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8094
8095 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8096
d3f323f3
MS
80972011-03-08 Michael Snyder <msnyder@vmware.com>
8098
3dcabaa8
MS
8099 * i386-tdep.c (i386_follow_jump): Check return value of
8100 target_read_memory.
8101 (i386_analyze_struct_return): Ditto.
8102 (i386_skip_probe): Ditto.
8103 (i386_match_insn): Ditto.
8104 (i386_skip_noop): Ditto.
8105 (i386_analyze_frame_setup): Ditto.
8106 (i386_analyze_register_saves): Ditto.
8107 (i386_skip_prologue): Ditto.
8108 (i386_skip_main_prologue): Ditto.
8109
13b3fd9b
MS
8110 * target.c (read_whatever_is_readable): Fix memory leak.
8111
d3f323f3
MS
8112 * i386-tdep.c (i386_process_record): Document fall through.
8113
421d5c74
JK
81142011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8115
8116 Fix DWARF-3+ DW_AT_accessibility default assumption.
8117 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8118 cu->header.version >= 3.
8119
63154eca
PA
81202011-03-08 Pedro Alves <pedro@codesourcery.com>
8121
8122 * remote.c (remote_check_symbols): Skip if the target has no
8123 execution.
8124
f1a507a1
JB
81252011-03-08 Joel Brobecker <brobecker@adacore.com>
8126
8127 * target.c (read_whatever_is_readable): Reformat comment,
8128 with a minor typo fix. Minor reformatting of the code.
8129
36073a92
YQ
81302011-03-08 Yao Qi <yao@codesourcery.com>
8131
8132 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8133 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8134 Use cached result instead of calling displaced_in_arm_mode again.
8135 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8136 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8137 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8138 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8139 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8140 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8141 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8142 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8143 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8144 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8145 (arm_catch_kernel_helper_return): Likewise.
8146 * gdb/arm-tdep.h : Update function declarations.
8147
d3f323f3 81482011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8149
e0e40094
MS
8150 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8151
0b2381f5
MS
8152 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8153
0350914a
MS
8154 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8155
69feea6f
MS
8156 * elfread.c (elf_symtab_read): Stop memory leak.
8157
e6040cbd
MS
8158 * main.c (captured_main): Fix memory leak.
8159
052874e8
AS
81602011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8161
8162 * ada-lang.c (compare_names): Call is_name_suffix with string1
8163 instead of string2.
8164
b11896a5
TT
81652011-03-07 Tom Tromey <tromey@redhat.com>
8166
8167 * xcoffread.c (xcoff_sym_fns): Update.
8168 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8169 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8170 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8171 (symbol_file_add_with_addrs_or_offsets): Likewise.
8172 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8173 * somread.c (som_sym_fns): Update.
8174 * psymtab.h (require_partial_symbols): Declare.
8175 * psymtab.c (require_partial_symbols): New function.
8176 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8177 (ALL_OBJFILE_PSYMTABS): Undef.
8178 (ALL_PSYMTABS): Move from psympriv.h.
8179 (lookup_partial_symtab, find_pc_sect_psymtab)
8180 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8181 (find_last_source_symtab_from_partial)
8182 (forget_cached_source_info_partial)
8183 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8184 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8185 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8186 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8187 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8188 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8189 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8190 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8191 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8192 psymtabs.
8193 * mipsread.c (ecoff_sym_fns): Update.
8194 * machoread.c (macho_sym_fns): Update.
8195 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8196 (read_psyms): New function.
8197 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8198 (elf_sym_fns_lazy_psyms): New global.
8199 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8200 dwarf2_build_psymtabs.
8201 * dbxread.c (aout_sym_fns): Update.
8202 * coffread.c (coff_sym_fns): Update.
8203
fda326dd
TT
82042011-03-07 Tom Tromey <tromey@redhat.com>
8205
8206 * infrun.c (print_exited_reason): Include inferior id and pid in
8207 message.
8208
aeaec162
TT
82092011-03-07 Tom Tromey <tromey@redhat.com>
8210
8211 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8212 parameter.
8213 (target_has_execution_1): Update.
8214 (target_has_execution_current): Declare.
8215 (target_has_execution): Call target_has_execution_current.
8216 (default_child_has_execution): Update.
8217 * target.c (default_child_has_execution): Add 'the_ptid'
8218 parameter.
8219 (target_has_execution_1): Likewise.
8220 (target_has_execution_current): New function.
8221 (add_target): Update.
8222 (init_dummy_target): Update.
8223 * remote-m32r-sdi.c (m32r_has_execution): New function.
8224 (init_m32r_ops): Use it.
8225 * record.c (record_core_has_execution): Now static. Add
8226 'the_ptid' parameter.
8227 * inferior.c (have_live_inferiors): Don't save current thread.
8228 Use target_has_execution_1.
8229
08e14083
YQ
82302011-03-07 Yao Qi <yao@codesourcery.com>
8231
8232 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8233
c05d19c5
JB
82342011-03-07 Joel Brobecker <brobecker@adacore.com>
8235
8236 * elfread.c (elf_symtab_read): Minor reformatting.
8237
3e6ef9e4
JB
82382011-03-07 Joel Brobecker <brobecker@adacore.com>
8239
8240 * objc-lang.c (selectors_info): Minor reformatting.
8241
dbb8534f
JB
82422011-03-07 Joel Brobecker <brobecker@adacore.com>
8243
8244 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8245
dd70cc93
JB
82462011-03-07 Joel Brobecker <brobecker@adacore.com>
8247 Michael Snyder <msnyder@vmware.com>
8248
8249 * ada-valprint.c (ada_val_print_array): Move the declaration of
8250 "byte_order" and "elttype" inside the block where these variables
8251 are actually used. Remove some special handling for the case
8252 where "elttype" and "eltlen" are null. Replace by a comment
8253 and a couple of assertion checks.
8254
b27cf2b3
MS
82552011-03-05 Michael Snyder <msnyder@vmware.com>
8256
8257 * source.c (add_path): Replace semicolon at end of block.
8258 * dwarf2expr.c (execute_stack_op): Ditto.
8259
5387a0c6
MF
82602011-03-05 Mike Frysinger <vapier@gentoo.org>
8261
8262 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8263 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8264 (bfin-*-*): Likewise.
8265
e3aa49af
MS
82662011-03-05 Michael Snyder <msnyder@vmware.com>
8267
82ae4854
MS
8268 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8269 * mdebugread.c (parse_symbol): Ditto.
8270 * parse.c (parse_exp_in_context): Ditto.
8271 * source.c (add_path): Ditto.
8272 * utils.c (gnu_debuglink_crc32): Ditto.
8273 * varobj.c (variable_language): Ditto.
8274
e3aa49af
MS
8275 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8276
154f592e
MS
82772011-03-04 Michael Snyder <msnyder@vmware.com>
8278
da3ecdc6
MS
8279 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8280
9cc89665
MS
8281 * symfile.c (simple_overlay_update): Check for null return value
8282 from lookup_minimal_symbol.
8283
154f592e
MS
8284 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8285
63ffa6ee
TJB
82862011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8287
8288 * eval.c (parse_and_eval_address_1): Remove function.
8289 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8290 instead of parse_and_eval_address_1.
8291 * value.h (parse_and_eval_address_1): Remove prototype.
8292
a17d146e
MS
82932011-03-04 Michael Snyder <msnyder@vmware.com>
8294
8295 * remote.c (putpkt_binary): Document that case stmt falls through.
8296
1a6a67de
TJB
82972011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8298
8299 * breakpointc (print_it_typical): Move NULL check from here...
8300 (print_bp_stop_message): ... to here.
8301
488919c4
MS
83022011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8303
8304 * breakpoint.c (enable_command): Use break instead of continue,
8305 and fill in a missing break.
8306 (disable_command): Ditto.
8307
1e182ce8
UW
83082011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8309
8310 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8311 (terminal_save_ours): Remove misleading comment.
8312 (inflow_inferior_data_cleanup): Free ttystate.
8313 (inflow_inferior_exit): Likewise.
8314 (copy_terminal_info): Copy ttystate.
8315
8316 * serial.c (serial_copy_tty_state): New function.
8317 * serial.h (serial_copy_tty_state): Add prototype.
8318 (struct serial_ops): Add copy_tty_state callback.
8319 * ser-base.c (ser_base_copy_tty_state): New function.
8320 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8321 * ser-go32.c (dos_copy_tty_state): New function.
8322 (dos_ops): Install copy_tty_state callback.
8323 * ser-mingw.c (_initialize_ser_windows): Likewise.
8324 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8325 * ser-unix.c (hardwire_copy_tty_state): New function.
8326 (_initialize_ser_hardwire): Install it.
8327
b2c5f112
MS
83282011-03-04 Michael Snyder <msnyder@vmware.com>
8329
2abae994
MS
8330 * breakpoint.c (create_breakpoint): Add missing break statement.
8331
7f5936f9
MS
8332 Reverting this patch:
8333 * infcall.c (call_function_by_hand): Add break statements for lint.
8334
b2c5f112
MS
8335 Reverting this patch:
8336 * cli/cli-script.c (script_from_file): Add break for lint.
8337
42b1321c
MS
83382011-03-04 Michael Snyder <msnyder@vmware.com>
8339
8340 * solib.c (reload_shared_libraries_1): Close memory leak.
8341
3e2a0cee
TT
83422011-03-03 Tom Tromey <tromey@redhat.com>
8343
8344 PR gdb/12538:
8345 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8346 DW_STRING is NULL.
8347
58397cb7
MS
83482011-03-03 Michael Snyder <msnyder@vmware.com>
8349
2e3fd767
MS
8350 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8351 fields of struct 'st' to zero.
8352
58397cb7
MS
8353 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8354 sal.pspace before calling set_current_source_symtab_and_line.
8355
ced54c8f
YQ
83562011-03-03 Yao Qi <yao@codesourcery.com>
8357
8358 * Makefile.in (configure-common): Remove. Let Makefile
8359 in dir common to rebuild itself.
8360 (common/Makefile): Likewise.
8361
3351ea09
JB
83622011-03-03 Joel Brobecker <brobecker@adacore.com>
8363
8364 * utils.c (parse_escape): Add i18n markup in error message.
8365
bf9f652a
YQ
83662011-03-03 Yao Qi <yao@codesourcery.com>
8367
8368 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8369 ARM_PC_REGNUM.
8370 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8371 (displaced_write_reg, displaced_read_reg): Likewise.
8372 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8373 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8374 (cleanup_branch): Replace magic number 14 and 15 with
8375 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8376
d42de051
MS
83772011-03-02 Michael Snyder <msnyder@vmware.com>
8378
240f9570
MS
8379 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8380
10dd8b54
MS
8381 * cli/cli-script.c (script_from_file): Add break for lint.
8382
b98bd911
MS
8383 * mdebugread.c (parse_partial_symbols): Fix indent.
8384
3494b66d
MS
8385 * target-descriptions.c (tdesc_gdb_type): No need to call
8386 xstrdup, callee saves a copy.
8387
daac021a
MS
8388 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8389
c38d16a7
MS
8390 * infcall.c (call_function_by_hand): Add break statements for lint.
8391
905b671b
MS
8392 * utils.c (parse_escape): Escape the escape char.
8393
f2eb0bc8 8394 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8395 PyList_Append fails.
8396 (gdbpy_inferiors): Error out if build_inferior_list fails.
8397
8c6a60d1
MS
8398 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8399 a function call.
8400
d42de051
MS
8401 * record.c (record_restore): Move printf to before error return.
8402
4db71c0b
YQ
84032011-03-02 Yao Qi <yao@codesourcery.com>
8404
8405 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8406 is_thumb and insn_size.
8407 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8408 on both ARM and Thumb mode.
8409 (arm_process_displaced_insn): Set is_thumb and insn_size.
8410 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8411 (arm_displaced_step_fixup): Likewise.
8412
a9dc8dcc
MS
84132011-03-01 Michael Snyder <msnyder@vmware.com>
8414
53624a93
MS
8415 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8416
77766669
MS
8417 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8418
62d5b8da
MS
8419 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8420
5e9e105f
MS
8421 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8422
dc19db01
MS
8423 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8424 with xmalloc.
8425
5ce64950
MS
8426 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8427 which shadows function parameter.
8428
a0aa2878
MS
8429 * tracepoint.c (create_tsv_from_upload): Superfluous call
8430 to xstrdup. Callee already calls xstrdup.
8431
e325fb69
MS
8432 * linespec.c (decode_line_1): Remove unnecessary null check.
8433
21cbba77
MS
8434 * tracepoint.c (scope_info): Fix mem leak, remove underused
8435 variable.
8436
63360adc
MS
8437 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8438 superfluous null check.
8439
18ea20ac 8440 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8441 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8442
d014929c
MS
8443 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8444
6e9130cf
MS
8445 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8446 be null.
8447
5f01dbc0
MS
8448 * linespec.c (decode_line_1): Check for null before dereference.
8449
d684ab85
MS
8450 * reverse.c (record_restore): Move null-check to before pointer
8451 dereference.
8452
bfffb7e3
MS
8453 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8454
a9dc8dcc
MS
8455 * objc-lang.c (selectors_info): Add explanitory comment.
8456 (classes_info): Ditto.
8457
478fd957
UW
84582011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8459
8460 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8461 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8462 versions of the trampoline. Handle Thumb vs. ARM addresses.
8463 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8464 (arm_linux_init_abi): Install it.
8465 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8466 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8467
0480cefa
MS
84682011-02-28 Michael Snyder <msnyder@vmware.com>
8469
ac50ab3b
MS
8470 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8471 a little bigger, to avoid possibility of an overflow.
8472
f63fbe86
MS
8473 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8474 buffers a little bigger, to avoid possibility of an overflow.
8475
9e91a352
MS
8476 * coffread.c (coff_getfilename): Add check to avoid overflow.
8477
f2eb0bc8 8478 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8479 avoid overflow.
8480 (classes_info): Error out on too long REGEXP.
8481
098ab512
MS
8482 * infrun.c (handle_inferior_event): Remove unused function call.
8483
bcbd1de9
MS
8484 * fork-child.c (fork_inferior): Remove ifdef'd code and
8485 unused variable.
8486
2e456570
MS
8487 * linux-thread-db.c (attach_thread): Discard unused value.
8488
14571dad
MS
8489 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8490
a9cbf802
MS
8491 * remote.c (remote_get_noisy_reply): Discard unused value.
8492 (remote_vcont_resume): Ditto.
8493 (remote_stop_ns): Ditto.
8494
5715d26e
MS
8495 * linespec.c (decode_objc): Delete unused variable.
8496
4a9bca80
MS
8497 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8498
f47fb265
MS
8499 * dwarf2read.c (add_partial_symbol): Discard unused values.
8500 (read_base_type): Delete unused variable.
8501
e81cff30
MS
8502 * dbxread.c (read_dbx_symtab): Discard unused value.
8503
262acaeb
MS
8504 * eval.c (evaluate_subexp_standard): Delete unused variable,
8505 and discard unused values.
8506
df983543
MS
8507 * infcmd.c (_initialize_infcmd): Discard unused values.
8508
89acf84d
MS
8509 * stabsread.c (rs6000_builtin_type): Missing break statement.
8510
ab8b8aca
MS
8511 * dbxread.c (process_one_symbol): Discard unused value.
8512
6b4511ab
MS
8513 * coffread.c (coff_end_symtab): Delete unused variable.
8514
e8e80198
MS
8515 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8516 (dwarf2_add_typedef): Delete unused variable.
8517 (read_namespace): Ditto.
8518 (dwarf_decode_macros): Ditto.
8519
976aa66e
MS
8520 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8521
5b92b49f
MS
8522 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8523
91e8df85
MS
8524 * p-valprint.c (pascal_val_print): Discard unused value.
8525
899500d6
MS
8526 * utils.c (nquery): Call va_end before return;
8527 (yquery): Ditto.
8528 (query): Ditto.
8529
0480cefa
MS
8530 * proc-service.c (ps_plog): Call va_end before return.
8531
fb6a3ed3
TT
85322011-02-28 Tom Tromey <tromey@redhat.com>
8533
8534 * python/python.c (gdbpy_value_cst): New global.
8535 (_initialize_python): Initialize it.
8536 * python/python-internal.h (gdbpy_value_cst): Declare.
8537 * python/py-value.c (convert_value_from_python): Use
8538 gdbpy_value_cst.
8539
c05202a1
MS
85402011-02-28 Michael Snyder <msnyder@vmware.com>
8541
e463f587
MS
8542 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8543
c38eea1a
MS
8544 * breakpoint.c (catch_syscall_completer): Free malloced list.
8545
3ef09ab5
MS
8546 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8547
8f9a01ee
MS
8548 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8549 (lval_func_check_synthetic_pointer): Ditto.
8550 (lval_func_free_closure): Fix use-after-free.
c05202a1 8551
477d0d57
TT
85522011-02-28 Tom Tromey <tromey@redhat.com>
8553
8554 * psymtab.c (expand_partial_symbol_tables): Use
8555 ALL_OBJFILE_PSYMTABS.
8556
20937029
JK
85572011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8558
8559 * objc-lang.c (selectors_info): Error on too long REGEXP.
8560
907b7f4f
MS
85612011-02-28 Michael Snyder <msnyder@vmware.com>
8562
92e96192
MS
8563 * python/py-param.c (set_parameter_value): Add missing
8564 break statement.
8565
907b7f4f
MS
8566 * linux-record.c (record_linux_system_call): Add missing
8567 break statement.
8568
12c5a436
UW
85692011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8570
8571 * breakpoint.c (print_one_breakpoint_location): Remove unused
8572 argument PRINT_ADDRESS_BITS. Update callers.
8573 (print_one_breakpoint): Likewise.
8574
170b53b2
UW
85752011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8576
8577 * breakpoint.c (wrap_indent_at_field): New function.
8578 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8579 Allocate ui_stream locally instead of using STB argument.
8580 (print_one_breakpoint_location): Update call.
8581 * ui-out.c (ui_out_query_field): New function.
8582 * ui-out.h (ui_out_query_field): Add prototype.
8583
8ab1f94d
JB
85842011-02-28 Joel Brobecker <brobecker@adacore.com>
8585
8586 From Michael Snyder <msnyder@vmware.com>
8587 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8588
7d488639
MS
85892011-02-27 Michael Snyder <msnyder@vmware.com>
8590
ae179fba
MS
8591 * objc-lang.c (selectors_info): Prevent string overrun.
8592
086dbf66
MS
8593 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8594 error in strncpy.
8595
f2eb0bc8 8596 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8597 outer scope.
8598
7d488639
MS
8599 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8600 param with a local variable of the same name.
8601
3bd0f5ef
MS
86022011-02-27 Michael Snyder <msnyder@vmware.com>
8603
8604 * value.c (value_from_history_ref): New function.
8605 * value.h (value_from_history_ref): Export.
8606 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8607 to parse value history references.
8608 * cli/cli-utils.h (get_number_trailer): Update comment.
8609
86102011-02-27 Michael Snyder <msnyder@vmware.com>
8611
8612 * inferior.c (detach_inferior_command): Use get_number_or_range.
8613 (kill_inferior_command): Ditto.
8614 (remove_inferior_command): Ditto.
8615 (initialize_inferiors): Make command names plural.
8616 Update help strings.
8617
766062f6
MS
86182011-02-27 Michael Snyder <msnyder@vmware.com>
8619
8620 * darwin-nat-info.c: Fix comment typo.
8621 * dwarf2expr.h: Ditto.
8622 * fbsd-nat.c: Ditto.
8623 * fbsd-nat.h: Ditto.
8624 * frame-unwind.h: Ditto.
8625 * frame.h: Ditto.
8626 * hppa-hpux-tdep.c: Ditto.
8627 * i386-linux-nat.c: Ditto.
8628 * linux-nat.c: Ditto.
8629 * nbsd-nat.c: Ditto.
8630 * nbsd-nat.h: Ditto.
8631 * ppc-linux-tdep.c: Ditto.
8632 * serial.c: Ditto.
8633 * ui-file.h: Ditto.
8634 * tui/tui-winsource.c: Ditto.
8635
f2c4ead5
MS
86362011-02-26 Michael Snyder <msnyder@vmware.com>
8637
86b887df
MS
8638 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8639
66fd3b1e
MS
8640 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8641
8c814cdd
MS
8642 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8643 with a local variable of the same name.
8644
6d5e094a 8645 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8646 param with a local variable of the same name.
6d5e094a 8647 (i387_supply_xsave): Ditto.
e5b3d7d6 8648
5eee517d
MS
8649 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8650 that it does not shadow a function parameter.
8651
8fbf6b93
MS
8652 * i386-nat.c (i386_length_and_rw_bits): Document that case
8653 statement is meant to fall through.
8654
cb969d61
MS
8655 * expprint.c (dump_subexp_body_standard): Document that case
8656 statement is meant to fall through.
8657
f2c4ead5
MS
8658 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8659 dead if statement. Condition can't be false.
8660
b021a221
MS
86612011-02-25 Michael Snyder <msnyder@vmware.com>
8662
8663 * arm-tdep.c: Fix typos in comments.
8664 * bsd-uthread.c: Ditto.
8665 * completer.c: Ditto.
8666 * corelow.c: Ditto.
8667 * cp-namespace.c: Ditto.
8668 * cp-support.c: Ditto.
8669 * cris-tdep.c: Ditto.
8670 * dbxread.c: Ditto.
8671 * dwarf2read.c: Ditto.
8672 * frame.h: Ditto.
8673 * gdbtypes.h: Ditto.
8674 * inferior.h: Ditto.
8675 * mdebugread.c: Ditto.
8676 * mips-tdep.c: Ditto.
8677 * ppc-linux-nat.c: Ditto.
8678 * ppc-linux-tdep.c: Ditto.
8679 * printcmd.c: Ditto.
8680 * sol-thread.c: Ditto.
8681 * solib-frv.c: Ditto.
8682 * solist.h: Ditto.
8683 * sparc64-tdep.c: Ditto.
8684 * spu-tdep.c: Ditto.
8685 * stabsread.c: Ditto.
8686 * symfile.c: Ditto.
8687 * valops.c: Ditto.
8688 * varobj.c: Ditto.
8689 * vax-nat.c: Ditto.
8690 * python/py-block.c: Ditto.
8691 * python/py-symbol.c: Ditto.
8692 * python/py-symtab.c: Ditto.
8693 * python/py-value.c: Ditto.
8694 * tui/tui-win.c: Ditto.
8695
c82c0b55
MS
86962011-02-25 Michael Snyder <msnyder@vmware.com>
8697
8698 * inferior.c (print_inferior): Accept a string instead of an int
8699 for requested_inferiors, and use get_number_or_range to parse it.
8700 (info_inferiors_command): Pass args string to print_inferior.
8701 (initialize_inferiors): Change help string for info inferiors.
8702 * inferior.h (print_inferior): Export prototype change.
8703
ee00cd23
TT
87042011-02-25 Tom Tromey <tromey@redhat.com>
8705
8706 * common/ax.def (invalid2): Set to 0x31.
8707
0502ed8c
JK
87082011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8709
8710 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8711 L and plongest.
8712 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8713 use L and plongest.
8714 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8715
2c9de912
MS
87162011-02-24 Michael Snyder <msnyder@vmware.com>
8717
8718 * Makefile.in (clean): Make clean should remove generated files
8719 observer.h and observer.inc.
8720
a04b0428
JB
87212011-02-24 Joel Brobecker <brobecker@adacore.com>
8722
8723 Revert the following patch (not approved yet):
8724 2011-02-21 Hui Zhu <teawater@gmail.com>
8725 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8726 * ax-gdb.c (gen_printf_expr_callback): New function.
8727 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8728 * ax-general.c (ax_memcpy): New function.
8729 (ax_print): Handle "printf".
8730 (ax_reqs): Ditto.
8731 * ax.h (ax_memcpy): Forward declare.
8732 * common/ax.def (invalid2): Removed.
8733 (printf): New entry.
8734 * printcmd.c (printcmd.h): New include.
8735 (string_printf): New function.
8736 (ui_printf): Removed.
8737 (printf_command): Remove static. Call string_printf.
8738 (eval_command): Call string_printf.
8739 * printcmd.h: New file.
8740 * tracepoint.c (validate_actionline,
8741 encode_actions_1): handle printf_command.
8742
2b52013f
TT
87432011-02-23 Tom Tromey <tromey@redhat.com>
8744
8745 * ax-general.c (ax_pick): Add missing newline.
8746
e5a67952
MS
87472011-02-23 Michael Snyder <msnyder@vmware.com>
8748
8749 * breakpoint.c (breakpoint_1): Change first argument from an int
8750 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8751 breakpoints rather than just one. Use new function
e5a67952
MS
8752 'number_is_in_list' to implement.
8753 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8754 (watchpoints_info): Ditto.
8755 (tracepoints_info): Ditto.
8756 (maintenance_info_breakpoints): Ditto.
8757 (_initialize_breakpoint): Update help strings to reflect the fact
8758 that these functions can now take more than one argument.
8759 * cli/cli-utils.c (number_is_in_list): New function.
8760 * cli/cli-utils.h (number_is_in_list): Export.
8761
87622011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8763
8764 * memattr.c (mem_enable_command): Use get_number_or_range.
8765 (mem_disable_command): Ditto.
8766 (mem_delete_command): Ditto.
8767 (_initialize_mem): Tweak usage message to reflect multiple
8768 arguments.
8769
6e6fbe60
DE
87702011-02-22 Doug Evans <dje@google.com>
8771
8772 Add gdb.lookup_global_symbol python function.
8773 * NEWS: Add entry.
8774 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8775 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8776 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8777
79b97fa8
TT
87782011-02-22 Tom Tromey <tromey@redhat.com>
8779
8780 * language.c (language_class_name_from_physname): Rename
8781 'curr_language' argument to 'lang'; use in body.
8782
298f437a
MS
87832011-02-22 Michael Snyder <msnyder@vmware.com>
8784
8785 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8786
b7ea3126
PA
87872011-02-22 Pedro Alves <pedro@codesourcery.com>
8788
8789 * frame-unwind.h: Fix comment to mention the this frame, not the
8790 next.
8791
58ee6d60
TT
87922011-02-22 Tom Tromey <tromey@redhat.com>
8793
8794 * symfile.c (auto_solib_limit): Remove.
8795 * symfile.h (auto_solib_limit): Remove.
8796
36238dbc
JB
87972011-02-22 Joel Brobecker <brobecker@adacore.com>
8798
8799 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8800
aea5b279
MS
88012011-02-21 Michael Snyder <msnyder@vmware.com>
8802
8803 * gdbthread.h (print_thread_info): Change prototype.
8804 * thread.c (print_thread_info): Accept char* instead of int for
8805 requested_threads argument. Use new function number_is_in_list
8806 to determine which threads to list.
8807 (info_threads_command): Pass char* to print_thread_info.
8808 * cli/cli-utils.c (number_is_in_list): New function.
8809 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8810 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8811 print_thread_info.
8812 (print_one_inferior): Ditto.
8813 (mi_cmd_list_thread_groups): Ditto.
8814
8caa75ee
JK
88152011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8816
8817 * common/Makefile.in (CFLAGS): New.
8818 (COMPILE): Add $(CFLAGS).
8819
ea666128
TT
88202011-02-21 Tom Tromey <tromey@redhat.com>
8821
8822 * breakpoint.c (catch_syscall_command_1): Fix typo.
8823
e9cafbcc
TT
88242011-02-21 Tom Tromey <tromey@redhat.com>
8825
8826 * reverse.c: Include cli-utils.h.
8827 * printcmd.c: Include cli-utils.h.
8828 (string_printf): Use skip_spaces.
8829 * cli/cli-utils.h: New file.
8830 * cli/cli-utils.c: New file.
8831 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8832 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8833 * breakpoint.h (get_number, get_number_or_range): Move to
8834 cli-utils.h.
8835 * breakpoint.c: Include cli-utils.h.
8836 (get_number_trailer, get_number, get_number_or_range)
8837 (ep_skip_leading_whitespace): Move to cli-utils.c.
8838 (create_breakpoint_sal, find_condition_and_thread)
8839 (decode_static_tracepoint_spec, watch_command_1)
8840 (watch_maybe_just_location, ep_parse_optional_if_clause)
8841 (catch_fork_command_1, catch_exec_command_1)
8842 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8843 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8844 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8845 (HFILES_NO_SRCDIR): Add cli-utils.h.
8846 (cli-utils.o): New target.
8847
f67fd822
PM
88482011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8849
8850 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8851 before calling discard_all_inferiors.
8852
c9def01d
UW
88532011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8854
8855 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8856 (struct builtin_opencl_type): Remove.
8857 (builtin_opencl_type): Change return type to "struct type **".
8858 (lookup_opencl_vector_type): Update caller.
8859 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8860 (build_opencl_types): Install plain array of "struct type *"
8861 instead of "struct builtin_opencl_type".
8862
e3039479
UW
88632011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8864 Ulrich Weigand <uweigand@de.ibm.com>
8865
8866 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8867 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8868 (struct arm_linux_hwbp_cap): New type.
8869 (arm_linux_get_hwbp_cap): New function.
8870 (arm_linux_get_hw_breakpoint_count): Likewise.
8871 (arm_linux_get_hw_watchpoint_count): Likewise.
8872 (arm_linux_can_use_hw_breakpoint): Likewise.
8873 (arm_hwbp_type): New type.
8874 (arm_hwbp_control_t): Likewise.
8875 (struct arm_linux_hw_breakpoint): Likewise.
8876 (struct arm_linux_thread_points): Likewise.
8877 (arm_threads): New global variable.
8878 (arm_linux_find_breakpoints_by_tid): New function.
8879 (arm_hwbp_control_initialize): Likewise.
8880 (arm_hwbp_control_is_enabled): Likewise.
8881 (arm_hwbp_control_disable): Likewise.
8882 (arm_linux_hw_breakpoint_initialize): Likewise.
8883 (arm_linux_get_hwbp_type): Likewise.
8884 (arm_linux_hw_watchpoint_initialize): Likewise.
8885 (arm_linux_hw_breakpoint_equal): Likewise.
8886 (arm_linux_insert_hw_breakpoint1): Likewise.
8887 (arm_linux_remove_hw_breakpoint1): Likewise.
8888 (arm_linux_insert_hw_breakpoint): Likewise.
8889 (arm_linux_remove_hw_breakpoint): Likewise.
8890 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8891 (arm_linux_insert_watchpoint): Likewise.
8892 (arm_linux_remove_watchpoint): Likewise.
8893 (arm_linux_stopped_data_address): Likewise.
8894 (arm_linux_stopped_by_watchpoint): Likewise.
8895 (arm_linux_watchpoint_addr_within_range): Likewise.
8896 (arm_linux_new_thread): Likewise.
8897 (arm_linux_thread_exit): Likewise.
8898 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8899 related target callbacks. Register arm_linux_new_thread and
8900 arm_linux_thread_exit.
8901 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8902 * arm-tdep.c (arm_pc_is_thumb): Make global.
8903 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8904
b5db5dfc
UW
89052011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8906
8907 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8908 per-frame locations while within a function epilogue.
8909
e25b2cfa
PM
89102011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8911
8912 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8913 to GNU coding standards.
8914
4af53f97
PM
89152011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8916
8917 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8918 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8919 (ser_windows_close): Only call CancelIo if function exists.
8920 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8921 to check for existence of CancelIo function in kernel32 DLL.
8922
d0e92d82
HZ
89232011-02-21 Hui Zhu <teawater@gmail.com>
8924
8925 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8926 * ax-gdb.c (gen_printf_expr_callback): New function.
8927 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8928 * ax-general.c (ax_memcpy): New function.
8929 (ax_print): Handle "printf".
8930 (ax_reqs): Ditto.
8931 * ax.h (ax_memcpy): Forward declare.
8932 * common/ax.def (invalid2): Removed.
8933 (printf): New entry.
8934 * printcmd.c (printcmd.h): New include.
8935 (string_printf): New function.
8936 (ui_printf): Removed.
8937 (printf_command): Remove static. Call string_printf.
8938 (eval_command): Call string_printf.
8939 * printcmd.h: New file.
8940 * tracepoint.c (validate_actionline,
8941 encode_actions_1): handle printf_command.
8942
7d357efd
MS
89432011-02-19 Michael Snyder <msnyder@vmware.com>
8944
8945 * reverse.c (delete_one_bookmark): Argument is now bookmark
8946 id rather than pointer to bookmark struct.
8947 (delete_bookmark_command): Use get_number_or_range.
8948 (goto_bookmark_command): Parse with get_number instead of strtoul.
8949 (bookmark_1): New function. Print info for one bookmark.
8950 (bookmarks_info): Use get_number_or_range and bookmark_1.
8951
7a45ebd7
MS
89522011-02-18 Michael Snyder <msnyder@vmware.com>
8953
f2eb0bc8 8954 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8955 get_number_or_range.
65ebfb52 8956 (thread_apply_command): Ditto.
7a45ebd7 8957
94d5e490
TT
89582011-02-18 Tom Tromey <tromey@redhat.com>
8959
8960 * common/ax.def: New file.
8961 * ax.h (enum agent_op): Use ax.def.
8962 * ax-general.c (aop_map): Use ax.def.
8963
c7f96d2b
TT
89642011-02-18 Tom Tromey <tromey@redhat.com>
8965
8966 * ax-general.c (aop_map): Add pick and rot.
8967 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8968 <DW_OP_rot>: Implement.
8969 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8970 (ax_pick): Declare.
8971 * ax-general.c (ax_pick): New function.
8972
66694b75
TT
89732011-02-18 Tom Tromey <tromey@redhat.com>
8974
8975 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8976
eeaafae2
JK
89772011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8978 Tom Tromey <tromey@redhat.com>
8979
8980 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8981 make_symbol_overload_list_block with NULL BLOCK.
8982 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8983
3c3fe74c
PA
89842011-02-18 Pedro Alves <pedro@codesourcery.com>
8985
8986 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8987 * breakpoint.h (get_number_or_range): Declare.
8988 * printcmd.c (ALL_DISPLAYS): Declare.
8989 (delete_display): Reimplement taking a display pointer.
8990 (undisplay_command): Accept a range of displays to delete, using
8991 get_number_or_range.
8992
13163d80
PM
89932011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8994
8995 * c-valprint.c (c_val_print): Add embedded_offset to address
8996 for arrays of unspecified length.
8997 * p-valprint.c (pascal_val_print): Likewise.
8998
b434a28f
YQ
89992011-02-18 Yao Qi <yao@codesourcery.com>
9000
9001 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9002 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9003 (thumb_process_displaced_insn): New.
9004 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9005 call to arm_process_displaced_insn.
9006 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9007
9f6f94ff
TT
90082011-02-17 Tom Tromey <tromey@redhat.com>
9009
9010 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9011 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9012 compile_dwarf_to_ax. No longer static. Call
9013 dwarf2_compile_cfa_to_ax.
9014 (locexpr_tracepoint_var_ref): Update.
9015 (loclist_tracepoint_var_ref): Update.
9016 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9017 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9018 argument; add 'gdbarch' and 'pc'.
9019 (dwarf2_compile_cfa_to_ax): New function.
9020 (dwarf2_frame_cache): Update.
9021
e67ad678
JB
90222011-02-17 Joel Brobecker <brobecker@adacore.com>
9023
9024 * ada-lang.c (ada_type_of_array): Fix the size of the array
9025 in the case of an unconstrained packed array.
9026
946ebb0d
YQ
90272011-02-17 Yao Qi <yao@codesourcery.com>
9028
9029 * common/Makefile.in: Add more targets for make.
9030
1ba1b353
TT
90312011-02-16 Tom Tromey <tromey@redhat.com>
9032
9033 * dwarf2loc.c (unimplemented): Fix typo.
9034
b1bfef65
TT
90352011-02-16 Tom Tromey <tromey@redhat.com>
9036
9037 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9038 (compile_dwarf_to_ax) <default>: Use unimplemented.
9039 <DW_OP_deref>: Update.
9040 (disassemble_dwarf_expression): Update.
9041 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9042 (decode_locdesc): Update.
9043 * dwarf2expr.h (dwarf_stack_op_name): Update.
9044
5f1e6f19
TT
90452011-02-16 Tom Tromey <tromey@redhat.com>
9046
9047 * ax.h (struct aop_map) <name>: Now const.
9048
a0c78a73
PA
90492011-02-16 Tom Tromey <tromey@redhat.com>
9050
9051 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9052 than axs_rvalue.
9053
946ebb0d 90542011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9055
9056 * infrun.c (get_displaced_step_closure_by_addr): New.
9057 * inferior.h: Declare it.
9058 * arm-tdep.c: (arm_pc_is_thumb): Call
9059 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9060 returns non-NULL.
9061
08807d5a
PA
90622011-02-16 Pedro Alves <pedro@codesourcery.com>
9063 Jan Kratochvil <jan.kratochvil@redhat.com>
9064
9065 gdb/
9066 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9067
29976f3f
PA
90682011-02-16 Pedro Alves <pedro@codesourcery.com>
9069 Jan Kratochvil <jan.kratochvil@redhat.com>
9070
9071 * value.c (value_contents_copy_raw): Extend describing comment.
9072 Assert that the destination contents we're overwriting are wholly
9073 available.
fb68ae73 9074 (value_contents_copy): Extend describing comment.
29976f3f 9075
cd24cfaa
PA
90762011-02-16 Pedro Alves <pedro@codesourcery.com>
9077 Jan Kratochvil <jan.kratochvil@redhat.com>
9078
9079 * value.c (value_available_contents_eq): Remove redundant local
9080 variables. Fix available contents comparision.
9081 * value.h (value_available_contents_eq): Extend describing
9082 comment.
9083
60bbf338
YQ
90842011-02-16 Yao Qi <yao@codesourcery.com>
9085
9086 * thread.c (info_threads_command): Add missing i18n markup and remove
9087 trailing newline.
9088
17450429
PP
90892011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9090
9091 * breakpoint.c (longjmp_names): New variable.
9092 (struct breakpoint_objfile_data): New type.
9093 (breakpoint_objfile_key): New variable.
9094 (msym_not_found): New variable.
9095 (msym_not_found_p): New predicate.
9096 (get_breakpoint_objfile_data): New function.
9097 (create_overlay_event_breakpoint): Check per-objfile cache for
9098 symbols first.
9099 (create_longjmp_master_breakpoint): Likewise.
9100 (create_std_terminate_master_breakpoint): Likewise.
9101 (create_exception_master_breakpoint): Likewise.
9102 (_initialize_breakpoint): Register per-objfile data key.
9103
af02033e
PP
91042011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9105
9106 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9107 parameter value.
9108 (create_longjmp_master_breakpoint): Loop over longjmp names.
9109 (create_std_terminate_master_breakpoint): Const-propagate parameter
9110 value.
9111 (update_breakpoints_after_exec): Adjust.
9112 (breakpoint_re_set): Adjust.
9113
60f98dde
MS
91142011-02-15 Michael Snyder <msnyder@vmware.com>
9115
cdf99611
MS
9116 * thread.c (info_threads_command): Process arg as thread id,
9117 or list of thread ids.
9118 (thread_find_command): New command.
9119 (_initialize_thread): Document argument for info threads.
9120 Document 'thread find' command.
9121 * NEWS: Document new command "thread find".
60f98dde 9122
0feedb2c
JK
91232011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9124
9125 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9126 * aclocal.m4: Regenerated with aclocal-1.11.1.
9127 * common/configure: Regenerate with autoconf-2.64.
9128
648cd113
KW
91292011-02-15 Ken Werner <ken.werner@de.ibm.com>
9130
9131 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9132 bool data type to a size of one byte.
9133
5657161f
PA
91342011-02-15 Pedro Alves <pedro@codesourcery.com>
9135 Jan Kratochvil <jan.kratochvil@redhat.com>
9136
9137 * target.c (memory_xfer_live_readonly_partial): Document where to
9138 look for interface description.
9139
494e194e
YQ
91402011-02-15 Yao Qi <yao@codesourcery.com>
9141
9142 PR tdep/12352
9143 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9144 order to store PC value on stack instead of text section.
9145
d9492458
TJB
91462011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9147
9148 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9149 the EFP register set size.
9150 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9151 data from the VMX register.
9152 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9153 and write data from/to the VMX register.
9154
cdf99611
MS
91552011-02-14 Michael Snyder <msnyder@vmware.com>
9156
9157 * command.h (enum command_class): New class 'no_set_class', for
9158 "show" commands without a corresponding "set" command.
9159 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9160 * copying.c (_initialize_copying): Ditto for "show copying" and
9161 "show warranty".
9162 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9163 "show version".
9164 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9165 which there is no corresponding "set" command (eg. "show copying").
9166
424447ee
PA
91672011-02-14 Pedro Alves <pedro@codesourcery.com>
9168 Jan Kratochvil <jan.kratochvil@redhat.com>
9169
9170 * exec.c (section_table_available_memory): Change `len' parameter
9171 type to ULONGEST.
9172 * exec.h (section_table_available_memory): Ditto.
9173 * value.h (read_value_memory): Rename the `offset' parameter to
9174 `embedded_offset'.
9175
c0f61f9c 91762011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9177 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9178
9179 * memrange.c (compare_mem_ranges): Mention sort order in
9180 describing comment.
9181 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9182 * tracepoint.c (traceframe_available_memory): Extend comment to
9183 mention what happens to RESULT when the target does not support
9184 the query.
9185
6bfc80c7
PA
91862011-02-14 Pedro Alves <pedro@codesourcery.com>
9187 Jan Kratochvil <jan.kratochvil@redhat.com>
9188
9189 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9190 range.
9191
e7303042
PA
91922011-02-14 Pedro Alves <pedro@codesourcery.com>
9193
9194 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9195 No longer handle NULL values.
9196
8af8e3bc
PA
91972011-02-14 Pedro Alves <pedro@codesourcery.com>
9198
9199 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9200 * value.c: Include "exceptions.h".
9201 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9202 generic error.
9203 * cp-abi.c: Include gdb_assert.h.
9204 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9205 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9206 errors.
9207 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9208 parameters. No longer returns -1 on error.
9209 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9210 `val' parameters.
9211 * cp-valprint.c: Include exceptions.h.
9212 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9213 the baseclass_offset. Handle unavailable base classes. Use
9214 val_print_invalid_address.
9215 * p-valprint.c: Include exceptions.h.
9216 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9217 when fetching the baseclass_offset. No longer expect
9218 baseclass_offset returning -1. Handle unavailable base classes.
9219 Use val_print_invalid_address.
9220 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9221 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9222 `embedded_offset' and `val' parameters. Adjust.
9223 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9224 parameter, and change its type to gdb_byte pointer. Add
9225 `embedded_offset' and `val' parameters. Adjust. No longer expect
9226 baseclass_offset returning -1.
9227 (value_dynamic_cast): Use value_contents_for_printing rather than
9228 value_contents. Adjust.
9229 (search_struct_field): No longer expect baseclass_offset returning
9230 -1.
9231 (search_struct_method): If reading memory from the target is
9232 necessary, wrap it in a new value to pass to baseclass_offset. No
9233 longer expect baseclass_offset returning -1.
9234 (find_method_list): No longer expect baseclass_offset returning
9235 -1. Use value_contents_for_printing rather than value_contents.
9236 * valprint.c (val_print_invalid_address): New function.
9237 * valprint.h (val_print_invalid_address): Declare.
9238 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9239 and `val' parameters. No longer expect baseclass_offset returning
9240 -1. Adjust.
9241 * gnu-v2-abi.c: Include "exceptions.h".
9242 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9243 parameters. Handle unavailable memory. Recurse through
9244 gnuv2_baseclass_offset directly, rather than through
9245 baseclass_offset. No longer returns -1 on not found, instead
9246 throw an error.
9247 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9248 `val' parameters. Adjust.
9249
1b28d0b3
PA
92502011-02-14 Pedro Alves <pedro@codesourcery.com>
9251
9252 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9253 almost but not quite adjacent.
9254
ec0a52e1
PA
92552011-02-14 Pedro Alves <pedro@codesourcery.com>
9256
9257 * value.h (value_entirely_available): Declare.
9258 * value.c (value_entirely_available): New function.
9259 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9260 real type if the pointer is unavailable.
9261
24e6bcee
PA
92622011-02-14 Pedro Alves <pedro@codesourcery.com>
9263
9264 * valops.c (value_repeat): Use read_value_memory instead of
9265 read_memory.
9266
39d37385
PA
92672011-02-14 Pedro Alves <pedro@codesourcery.com>
9268
9269 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9270 * value.c (value_contents_copy_raw, value_contents_copy): New
9271 functions.
9272 (value_primitive_field): Use value_contents_copy_raw instead of
9273 memcpy.
9274 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9275 memcpy.
9276 (value_array, value_slice): Ditto.
9277 * valarith.c (value_subscripted_rvalue): Use
9278 value_contents_copy_raw instead of memcpy.
9279
a3d34bf4
PA
92802011-02-14 Pedro Alves <pedro@codesourcery.com>
9281
9282 <unavailable> references.
9283
9284 * valops.c (get_value_at): Use value_from_contents_and_address,
9285 avoiding read_memory.
9286
9fc6d940
PA
92872011-02-14 Pedro Alves <pedro@codesourcery.com>
9288
9289 * c-valprint.c (c_val_print): Print a string with unavailable
9290 contents as an array.
9291
5467c6c8
PA
92922011-02-14 Pedro Alves <pedro@codesourcery.com>
9293
9294 * value.h (unpack_bits_as_long): Delete declaration.
9295 (unpack_value_bits_as_long): Declare.
9296 (unpack_value_field_as_long): Declare.
9297 (value_field_bitfield): Declare.
9298 * value.c (unpack_bits_as_long): Rename to...
9299 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9300 value parameters. Return the extracted result in a new output
9301 parameter. If the value contents are unavailable, return false,
9302 otherwise return true.
9303 (unpack_value_bits_as_long): New.
9304 (unpack_field_as_long): Rename to...
9305 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9306 Add embedded_offset and value parameters. Return the extracted
9307 result in a new output parameter. If the value contents are
9308 unavailable, return false, otherwise return true.
9309 (unpack_value_field_as_long): New.
9310 (unpack_field_as_long_1): New.
9311 (unpack_field_as_long): Reimplement as wrapper around
9312 unpack_value_field_as_long_1.
9313 (value_field_bitfield): New function.
9314 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9315 unpack_value_bits_as_long. Mark the value as unavailable, if it
9316 is unavailable.
9317 * jv-valprint.c (java_print_value_fields): Use
9318 value_field_bitfield.
9319 * p-valprint.c (pascal_object_print_value_fields): Use
9320 value_field_bitfield.
9321 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9322
3158c6ed
PA
93232011-02-14 Pedro Alves <pedro@codesourcery.com>
9324
9325 * value.c (get_internalvar_integer): Also return the int value of
9326 TYPE_CODE_INT INTERNALVAR_VALUE values.
9327 (set_internalvar): Don't special case TYPE_CODE_INT.
9328
9fbdca0d
PA
93292011-02-14 Pedro Alves <pedro@codesourcery.com>
9330
9331 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9332 INTERNALVAR_POINTER.
9333 <pointer>: Delete.
9334 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9335 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9336 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9337
c8c1c22f
PA
93382011-02-14 Pedro Alves <pedro@codesourcery.com>
9339
9340 * value.h (value_available_contents_eq): Declare.
9341 * value.c (find_first_range_overlap): New function.
9342 (value_available_contents_eq): New function.
9343 * valprint.c (val_print_array_elements): Use
9344 value_available_contents_eq.
9345 * ada-valprint.c (val_print_packed_array_elements): Use
9346 value_available_contents_eq.
9347 * jv-valprint.c (java_value_print): Use
9348 value_available_contents_eq.
9349
e6e4e701
PA
93502011-02-14 Pedro Alves <pedro@codesourcery.com>
9351
9352 * target.c (target_read_live_memory): New function.
9353 (memory_xfer_live_readonly_partial): New.
9354 (memory_xfer_partial): If reading from a traceframe, fallback to
9355 reading unavailable read-only memory from read-only regions of
9356 live target memory.
9357 * tracepoint.c (disconnect_tracing): Adjust.
9358 (set_current_traceframe): New, factored out from
9359 set_traceframe_number.
9360 (set_traceframe_number): Reimplement to only change the traceframe
9361 number on the GDB side.
9362 (do_restore_current_traceframe_cleanup): Adjust.
9363 (make_cleanup_restore_traceframe_number): New.
9364 (cur_traceframe_number): New global.
9365 (tfile_open): Set cur_traceframe_number to no traceframe.
9366 (set_tfile_traceframe): New function.
9367 (tfile_trace_find): If looking up a traceframe using any method
9368 other than by number, make sure the current tfile traceframe
9369 matches gdb's current traceframe. Update the current tfile
9370 traceframe if the lookup succeeded.
9371 (tfile_fetch_registers, tfile_xfer_partial)
9372 (tfile_get_trace_state_variable_value): Make sure the remote
9373 traceframe matches gdb's current traceframe.
9374 * remote.c (remote_traceframe_number): New global.
9375 (remote_open_1): Set it to -1.
9376 (set_remote_traceframe): New function.
9377 (remote_fetch_registers, remote_store_registers)
9378 (remote_xfer_memory, remote_xfer_partial)
9379 (remote_get_trace_state_variable_value): Make sure the remote
9380 traceframe matches gdb's current traceframe.
9381 (remote_trace_find): If looking up a traceframe using any method
9382 other than by number, make sure the current remote traceframe
9383 matches gdb's current traceframe. Update the current remote
9384 traceframe if the lookup succeeded.
9385 * infrun.c (fetch_inferior_event): Adjust.
9386 * tracepoint.h (set_current_traceframe): Declare.
9387 (get_traceframe_number, set_traceframe_number): Add describing
9388 comments.
9389
e6ca34fc
PA
93902011-02-14 Pedro Alves <pedro@codesourcery.com>
9391
9392 Mark pieces of values as unavailable if the corresponding memory
9393 is unavailable.
9394
9395 * valops.c: Include tracepoint.h.
9396 (value_fetch_lazy): Use read_value_memory.
9397 (read_value_memory): New.
9398 * value.h (read_value_memory): Declare.
9399 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9400 * exec.c (section_table_available_memory): New function.
9401 * exec.h (section_table_available_memory): Declare.
9402
2a7498d8
PA
94032011-02-14 Pedro Alves <pedro@codesourcery.com>
9404
9405 * Makefile.in (SFILES): Add memrange.c.
9406 (HFILES_NO_SRCDIR): Add memrange.h.
9407 (COMMON_OBS): Add memrange.o.
9408 * memrange.c: New file.
9409 * memrange.h: New file.
9410 * tracepoint.c: Include memrange.h.
9411 (struct mem_range): Delete.
9412 (mem_range_s): Delete.
9413 (traceframe_available_memory): New function.
9414 * tracepoint.h (traceframe_available_memory): Declare.
9415
b3b9301e
PA
94162011-02-14 Pedro Alves <pedro@codesourcery.com>
9417
9418 * target.h (struct traceframe_info): Forward declare.
9419 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9420 (struct target_ops) <to_traceframe_info>: New field.
9421 (target_traceframe_info): New.
9422 * target.c (update_current_target): Inherit and default
9423 to_traceframe_info.
9424 * remote.c (PACKET_qXfer_traceframe_info): New.
9425 (remote_protocol_features): Register qXfer:traceframe-info:read.
9426 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9427 (remote_traceframe_info): New.
9428 (init_remote_ops): Install it.
9429 (_initialize_remote): Install "set/show remote traceframe-info"
9430 commands.
9431 * tracepoint.h (parse_traceframe_info): Declare.
9432 * tracepoint.c (struct mem_range): New.
9433 (mem_range_s): New typedef.
9434 (struct traceframe_info): New.
9435 (traceframe_info): New global.
9436 (free_traceframe_info): New function.
9437 (clear_traceframe_info): New function.
9438 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9439 info.
9440 (build_traceframe_info): New function.
9441 (tfile_traceframe_info): New function.
9442 (init_tfile_ops): Install tfile_traceframe_info.
9443 (traceframe_info_start_memory, free_result): New functions.
9444 (memory_attributes, traceframe_info_elements): New globals.
9445 (parse_traceframe_info, get_traceframe_info): New functions.
9446 * features/traceframe-info.dtd: New file.
9447 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9448
4e07d55f
PA
94492011-02-14 Pedro Alves <pedro@codesourcery.com>
9450
9451 Base support for <unavailable> value contents.
9452
4e07d55f
PA
9453 * value.h (value_bytes_available): Declare.
9454 (mark_value_bytes_unavailable): Declare.
9455 * value.c (struct range): New struct.
9456 (range_s): New typedef.
9457 (ranges_overlap): New function.
9458 (range_lessthan): New function.
9459 (ranges_contain_p): New function.
9460 (struct value) <unavailable>: New field.
9461 (value_bytes_available): New function.
9462 (mark_value_bytes_unavailable): New function.
9463 (require_not_optimized_out): Constify parameter.
9464 (require_available): New function.
9465 (value_contents_all, value_contents): Require all bytes be
9466 available.
9467 (value_free): Free `unavailable'.
9468 (value_copy): Copy `unavailable'.
9469 * valprint.h (val_print_unavailable): Declare.
9470 * valprint.c (valprint_check_validity): Rename `offset' parameter
9471 to `embedded_offset'. If printing a scalar, check whether the
9472 value chunk is available.
9473 (val_print_unavailable): New.
9474 (val_print_scalar_formatted): Check whether the value is
9475 available.
9476 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9477 pretty-printing unavailable values.
9478
bc9a5551
JK
94792011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9480
9481 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9482 * c-typeprint.c (c_type_print_args): Update the function comment. New
9483 variable param_type, initialize it. Remove const/volatile qualifiers
9484 for language_cplus and !show_artificial. Use param_type.
9485
93b55aa1
JK
94862011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9487
9488 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9489 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9490 * symtab.h (struct symtab) <next>: Comment extension.
9491
181d9476
YQ
94922011-02-12 Yao Qi <yao@codesourcery.com>
9493
9494 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9495
b708a5c7
JK
94962011-02-11 Yao Qi <yao@codesourcery.com>
9497
9498 * common/Makefile.in: Add copyright header.
9499
c5187ac6
PA
95002011-02-11 Pedro Alves <pedro@codesourcery.com>
9501
9502 * infrun.c (proceed): Move switching out and in of tfind mode from
9503 here ...
9504 (fetch_inferior_event): ... to here.
9505
4f3e6fb7
YQ
95062011-02-11 Yao Qi <yao@codesourcery.com>
9507
9508 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9509 libcommon.a.
9510 * configure.ac: Add common to sub dir.
9511 * configure: Regenerate.
9512
b708a5c7
JK
95132011-02-11 Yao Qi <yao@codesourcery.com>
9514
9515 Build libcommon.a.
9516
9517 * common/Makefile.in: New.
9518 * common/configure.ac: New.
9519 * common/aclocal.m4: New.
9520 * common/configure: Generate.
9521
2287cc7e
PA
95222011-02-10 Pedro Alves <pedro@codesourcery.com>
9523
9524 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9525 side of the parenthesis.
9526
9527 Merge from GCC:
9528 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9529 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9530
fd62cb89
MS
95312011-02-08 Michael Snyder <msnyder@vmware.com>
9532
9533 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9534
56d2815c
JK
95352011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9536
9537 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9538 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9539 psubd and paddd.
9540
4f7d61a8
JK
95412011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9542
9543 PR 12361.
9544 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9545 phsubsw.
9546 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9547 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9548
54fcddd0
UW
95492011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9550
9551 * dwarf2read.c (read_subroutine_type): Set special calling
9552 convention flag for functions compiled by IBM XL C for OpenCL.
9553 * ppc-sysv-tdep.c: Include "dwarf2.h"
9554 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9555 calling convention.
9556 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9557 IBM OpenCL vector types calling convention.
9558 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9559 (ppc_sysv_abi_broken_return_value): Likewise.
9560 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9561 types calling convention.
9562 (ppc64_sysv_abi_return_value): Likewise.
9563 * spu-tdep.c: Include "dwarf2.h"
9564 (spu_return_value): Implement IBM OpenCL vector types calling
9565 convention.
9566
d6dafb7c
UW
95672011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9568
9569 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9570 correct ABI for AltiVec vector arguments.
9571
32b72a42
PA
95722011-02-07 Pedro Alves <pedro@codesourcery.com>
9573
9574 * valprint.c (val_print): Extend comment.
9575 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9576 interface explanation to val_print.
9577 (ada_val_print_array): Adjust comment to current interface.
9578 (print_field_values): Adjust comment to current interface.
9579 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9580 explanation to val_print.
9581 * f-valprint.c (f_val_print): Ditto.
9582 * jv-valprint.c (java_val_print): Ditto.
9583 * m2-valprint.c (m2_val_print): Ditto.
9584 * p-valprint.c (pascal_val_print): Ditto.
9585
9998af43
TJB
95862011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9587
9588 * breakpoint.c (parse_breakpoint_sals): Fix description.
9589
505500db 95902011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9591 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9592
9593 * python/py-inferior.c (python_on_normal_stop): New function.
9594 (python_on_resume): New function.
9595 (python_inferior_exit): New function.
9596 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9597 inferior_exit observers.
9598 * python/py-evtregistry.c: New file.
9599 * python/py-threadevent.c : New file.
9600 * python/py-event.c: New file.
9601 * python/py-evts.c: New file.
9602 * python/py-continueevent.c: New file.
9603 * python/py-bpevent.c: New file.
9604 * python/py-signalevent.c: New file.
9605 * python/py-exetiedevent.c: New file.
9606 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9607 Move struct breakpoint_object from here...
9608 * python/python-internal.h: ... to here.
9609 * python/py-event.h: New file.
9610 * python/py-events.h: New file.
9611 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9612 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9613 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9614 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9615 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9616 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9617 Add build rules for all the above.
9618
9e0ac564
TT
96192011-02-04 Tom Tromey <tromey@redhat.com>
9620
9621 * dwarf2read.c (dwarf2_section_empty_p): New function.
9622 (dwarf2_read_section): Use dwarf2_section_empty_p.
9623 (dwarf2_section_size): New function.
9624 (dwarf2_get_section_info): Unconditionally read section.
9625 (dwarf2_read_index): Use dwarf2_section_empty_p.
9626 (partial_read_comp_unit_head): Use dwarf2_section_size.
9627 (dwarf2_symbol_mark_computed): Likewise.
9628
eee5b35e
DD
96292011-02-04 David Daney <ddaney@caviumnetworks.com>
9630
9631 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9632
385203ed
DD
96332011-02-04 David Daney <ddaney@caviumnetworks.com>
9634
9635 * mips-linux-tdep.c: Include xml-syscall.h.
9636 (mips_linux_get_syscall_number): New function.
9637 (mips_linux_init_abi): Add calls to
9638 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9639 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9640 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9641 * syscalls/mips-n32-linux.xml: New file.
9642 * syscalls/mips-n64-linux.xml: New file.
9643 * syscalls/mips-o32-linux.xml: New file.
9644
9277c30c
UW
96452011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9646
9647 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9648 Complain about inverted range entries.
9649 (dwarf2_record_block_ranges): Likewise.
9650
a3be7890
TJB
96512011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9652
9653 Fix some typos.
9654 * breakpoint.c (update_watchpoint): Fix name of the
9655 update_global_location_list function.
9656 (print_one_breakpoint): Fix typo.
9657 (_initialize_breakpoint): Remove extra space in hbreak help
9658 string.
9659 * breakpoint.h (struct bp_location) <length>: Fix field
9660 description.
9661
041274d8
PA
96622011-02-04 Pedro Alves <pedro@codesourcery.com>
9663
9664 * regcache.c (registers_changed_ptid): Don't explictly always
9665 clear `current_regcache'. Only clear current_thread_ptid and
9666 current_thread_arch when PTID matches. Only reinit the frame
9667 cache if PTID matches the current inferior_ptid. Move alloca(0)
9668 call to ...
9669 (registers_changed): ... here.
9670
c1c2ab58
UW
96712011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9672
9673 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9674 starts with __stack_chk_guard as stack guard symbol.
9675
9011945e
AB
96762011-02-03 Andrew Burgess <aburgess@broadcom.com>
9677
9678 * disasm.c (compare_lines): Handle the end of sequence markers
9679 within the line table to better support disassembling over
9680 compilation unit boundaries.
9681
e0634ccf
UW
96822011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9683
9684 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9685 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9686 implementation even if no symbols are available.
9687 (thumb_analyze_prologue): Update call to skip_prologue_function.
9688 (arm_analyze_prologue): Likewise.
9689
0e9e9abd
UW
96902011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9691
9692 * arm-tdep.c: Include "observer.h".
9693 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9694 (arm_exidx_data_key): New static variable.
9695 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9696 (struct arm_exidx_data): Likewise.
9697 (arm_exidx_data_free): New function.
9698 (arm_compare_exidx_entries): Likewise.
9699 (arm_obj_section_from_vma): Likewise.
9700 (arm_exidx_new_objfile): Likewise.
9701 (arm_find_exidx_entry): Likewise.
9702 (arm_exidx_fill_cache): Likewise.
9703 (arm_exidx_unwind_sniffer): Likewise.
9704 (arm_exidx_unwind): New global variable.
9705 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9706 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9707 observer. Register arm_exidx_data_key as objfile data.
9708
2e9e421f
UW
97092011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9710
9711 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9712 due to accessing uninitialized variable. Fix indentation.
9713
580688f3
PA
97142011-02-02 Pedro Alves <pedro@codesourcery.com>
9715
9716 * c-valprint.c (c_value_print): When doing virtual base pointer
9717 adjustment, create a new value with adjusted contents rather than
9718 changing the contents of the value being printed (and getting it
9719 wrong).
9720
3d2c1d41
PA
97212011-02-02 Pedro Alves <pedro@codesourcery.com>
9722
9723 * xml-support.c (xml_find_attribute): New.
9724 (xinclude_start_include): Use it.
9725 * xml-support.h (xml_find_attribute): Declare.
9726 * memory-map.c (memory_map_start_memory)
9727 (memory_map_start_property): Use xml_find_attribute.
9728 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9729 xml_find_attribute.
9730 * remote.c (start_thread): Use xml_find_attribute.
9731 * solib-target.c (library_list_start_segment)
9732 (library_list_start_section, library_list_start_library)
9733 (library_list_start_list): Use xml_find_attribute.
9734 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9735 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9736 (tdesc_start_field): Use xml_find_attribute.
9737
0af3e2db
UW
97382011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9739
9740 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9741 (BUILD_OCL_VTYPES): Update.
9742
c1039e3c
JB
97432011-02-02 Joel Brobecker <brobecker@adacore.com>
9744
9745 * configure.ac: Work around non-GNU sed limitation when computing
9746 python version number.
9747 * configure: Regenerate.
9748
600ea1be
JK
97492011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9750
9751 Fix debug printing of TYPE_INSTANCE.
9752 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9753 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9754
56c12414
JK
97552011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9756
9757 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9758 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9759 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9760 * ada-operator.inc: Rename the file to ...
9761 * ada-operator.def: ... here, wrap all the entries by macro OP.
9762 * expprint.c (op_name_standard): Remove all the entries. Include
9763 "std-operator.def" instead.
9764 * expression.h (enum exp_opcode): Include "std-operator.def" and
9765 "ada-operator.def". Move all the entries ...
9766 * std-operator.def: ... here, wrap all the entries by macro OP.
9767
c52b559d
PP
97682011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9769
9770 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9771 * breakpoint.c (remove_jit_event_breakpoints): New function.
9772 * jit.c (jit_descriptor_addr): Delete.
9773 (registering_code): Delete.
9774 (clear_int): Delete.
9775 (jit_inferior_data): New variable.
9776 (struct jit_inferior_data): New type.
9777 (get_jit_inferior_data): New function.
9778 (jit_inferior_data_cleanup): New function.
9779 (jit_read_descriptor): Adjust.
9780 (jit_register_code): Adjust.
9781 (jit_breakpoint_re_set_internal): New function; move code here ...
9782 (jit_inferior_init): ... from here.
9783 (jit_breakpoint_re_set): Adjust.
9784 (jit_reset_inferior_data_and_breakpoints): New function.
9785 (jit_inferior_created_observer): Adjust.
9786 (jit_inferior_exit_hook): Adjust.
9787 (jit_executable_changed_observer): New function.
9788 (jit_event_handler): Adjust.
9789 (_initialize_jit): Adjust.
9790
e839132d
MS
97912011-01-31 Michael Snyder <msnyder@vmware.com>
9792
9793 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9794 line.
9795
47a80e90
TT
97962011-01-31 Tom Tromey <tromey@redhat.com>
9797
9798 PR python/12216:
9799 * python/python.c (execute_gdb_command): Call
9800 prevent_dont_repeat.
9801 * top.c (suppress_dont_repeat): New global.
9802 (dont_repeat): Use it.
9803 (prevent_dont_repeat): New function.
9804 * command.h (prevent_dont_repeat): Declare.
9805
45a43567
TT
98062011-01-31 Tom Tromey <tromey@redhat.com>
9807
9808 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9809 * python/py-breakpoint.c (bppy_set_silent): Use
9810 breakpoint_set_silent.
9811 (bppy_set_thread): Use breakpoint_set_thread.
9812 (bppy_set_task): Use breakpoint_set_task.
9813 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9814 (breakpoint_set_task): Declare.
9815 (make_breakpoint_silent): Remove.
9816 * breakpoint.c (breakpoint_set_silent): New function.
9817 (breakpoint_set_thread): Likewise.
9818 (breakpoint_set_task): Likewise.
9819 (make_breakpoint_silent): Remove.
9820
09d682a4
TT
98212011-01-31 Tom Tromey <tromey@redhat.com>
9822
9823 * breakpoint.h (user_breakpoint_p): Declare.
9824 * breakpoint.c (user_breakpoint_p): New function.
9825 (breakpoint_1): Use it.
9826 (save_breakpoints): Likewise.
9827
9c4ea6c5
JB
98282011-01-31 Joel Brobecker <brobecker@adacore.com>
9829
9830 * configure.ac: Add handling of Python distribution on Windows.
9831 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9832 sysconfig variables are not defined, then do not use them.
9833 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9834 instead. On Windows, return all paths using forward-slashes
9835 rather than backslashes.
9836
ac534cba
JB
98372011-01-31 Joel Brobecker <brobecker@adacore.com>
9838
9839 * configure.ac: Remove fallback behavior for building
9840 against Python. Remove tweaking of Python include path.
9841 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9842 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9843 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9844 Always restore CPPFLAGS and LIBS after linking test.
9845 * configure: Regenerated.
9846 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9847 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9848 * python/python-internal.h: Adjust includes of Python .h files.
9849
c2f0d045
JB
98502011-01-31 Joel Brobecker <brobecker@adacore.com>
9851
9852 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9853 in error message.
9854
6b0c4c1f
JB
98552011-01-31 Joel Brobecker <brobecker@adacore.com>
9856
9857 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9858 value test.
9859
672c9795
YQ
98602011-01-31 Yao Qi <yao@codesourcery.com>
9861
9862 * arm-linux-nat.c: Update calls to regcache_register_status
9863 instead of regcache_valid_p.
9864 * aix-thread.c: Likewise.
9865 * i386gnu-nat.c: Likewise.
9866
80b23b6a
JK
98672011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9868
9869 Fix crash.
9870 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9871 touching TYPE_FIELD_ARTIFICIAL.
9872
4cd712bd
RE
98732011-01-28 Richard Earnshaw <rearnsha@arm.com>
9874
9875 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9876 Committers.
9877
ffd5ec24
PA
98782011-01-28 Pedro Alves <pedro@codesourcery.com>
9879
9880 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9881 selected, don't try iterating over the traceframe's blocks.
9882 (tfile_has_stack): If there's no traceframe selected, then there's
9883 no stack.
9884 (tfile_has_registers): If there's no traceframe selected, then
9885 there's no registers.
9886
e8c9e0a1
PA
98872011-01-28 Pedro Alves <pedro@codesourcery.com>
9888
9889 * target.c (memory_xfer_partial): No need to restore shadows if we
9890 haven't read anything.
9891
de15c4ab
PA
98922011-01-28 Pedro Alves <pedro@codesourcery.com>
9893
9894 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9895 and val_print_scalar_formatted.
9896
9f41c731
PA
98972011-01-27 Pedro Alves <pedro@codesourcery.com>
9898
9899 * tracepoint.c (tfile_read): New.
9900 (tfile_open): Use it.
9901 (tfile_get_traceframe_address): Use it.
9902 (tfile_trace_find): Use it.
9903 (walk_blocks_callback_func): New typedef.
9904 (match_blocktype): New function.
9905 (traceframe_walk_blocks): New function.
9906 (traceframe_find_block_type): New function.
9907 (tfile_fetch_registers, tfile_xfer_partial)
9908 (tfile_get_trace_state_variable_value): Use
9909 traceframe_find_block_type and tfile_read.
9910
cdefc55d
KB
99112011-01-26 Kevin Buettner <kevinb@redhat.com>
9912
9913 * remote-mips.c: Add internationalization mark ups. Remove
9914 trailing \n from already marked up strings.
9915
a81766d8
TT
99162011-01-26 Tom Tromey <tromey@redhat.com>
9917
9918 * python/py-prettyprint.c (print_string_repr): Clear
9919 'addressprint' option when calling val_print_string.
9920 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9921 option when calling val_print_string.
9922
74aedc46
TT
99232011-01-26 Tom Tromey <tromey@redhat.com>
9924
9925 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9926 GDB_PY_LL_ARG.
9927 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9928 macros.
9929 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9930 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9931 (gdb_py_long_as_ulongest): New defines.
9932 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9933 (gdb_py_int_as_long): Declare.
9934 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9935 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9936 (valpy_long): Add comment.
9937 * python/py-utils.c (get_addr_from_python): Use
9938 gdb_py_long_as_ulongest. Handle overflow properly.
9939 (gdb_py_object_from_longest): New function.
9940 (gdb_py_object_from_ulongest): Likewise.
9941 (gdb_py_int_as_long): Likewise.
9942 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9943 * python/py-symtab.c (salpy_get_pc): Use
9944 gdb_py_long_from_ulongest.
9945 (salpy_get_line): Use PyInt_FromLong.
9946 * python/py-param.c (set_parameter_value): Use
9947 gdb_py_int_as_long.
9948 * python/py-lazy-string.c (stpy_get_address): Use
9949 gdb_py_long_from_ulongest.
9950 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9951 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9952 * python/py-breakpoint.c (bppy_set_thread): Use
9953 gdb_py_int_as_long.
9954 (bppy_set_task): Likewise.
9955 (bppy_set_ignore_count): Likewise.
9956 (bppy_set_hit_count): Likewise.
9957 * python/py-block.c (blpy_get_start): Use
9958 gdb_py_object_from_ulongest.
9959 (blpy_get_end): Likewise.
9960 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9961
e4f6d2ec
TJB
99622011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9963
9964 PR/symtab 11766:
9965 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9966 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9967 equality test for objfile, initialize addr_low if needed.
9968
b30aa278
PA
99692011-01-25 Pedro Alves <pedro@codesourcery.com>
9970
9971 * tui/tui-regs.c (tui_register_format): Remove dead code.
9972
ab2188aa
PA
99732011-01-25 Pedro Alves <pedro@codesourcery.com>
9974
9975 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9976 instead of print_scalar_formatted.
9977 (print_scalar_formatted): Don't handle 's' format strings here,
9978 and add an assertion that we never see such format here.
9979 * valprint.h (val_print_scalar_formatted): Declare.
9980 * valprint.c (val_print_scalar_formatted): New.
9981 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9982 instead of print_scalar_formatted.
9983 * jv-valprint.c (java_val_print): Ditto.
9984 * p-valprint.c (pascal_val_print): Ditto.
9985 * ada-valprint.c (ada_val_print_1): Ditto.
9986 * f-valprint.c (f_val_print): Ditto.
9987 * infcmd.c (registers_info): Ditto.
9988 * m2-valprint.c (m2_val_print): Ditto.
9989
66d61a4c
PA
99902011-01-25 Pedro Alves <pedro@codesourcery.com>
9991
9992 * m2-valprint.c (print_unbounded_array): Pass
9993 value_contents_for_printing rather than value_contents, to
9994 m2_print_array_contents. Also pass in the value.
9995
831adc1f
JK
99962011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9999 (save_gdb_index_command): Switch to .gdb_index version 4.
10000
20622269
PA
100012011-01-25 Pedro Alves <pedro@codesourcery.com>
10002
10003 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10004 than frame_register, and always pass a valid value to val_print.
10005
585fdaa1
PA
100062011-01-25 Pedro Alves <pedro@codesourcery.com>
10007
10008 Centralize printing "<optimized out>".
10009
10010 * valprint.h (val_print_optimized_out): Declare.
10011 * cp-valprint.c (cp_print_value_fields): Use
10012 val_print_optimized_out.
10013 * jv-valprint.c (java_print_value_fields): Ditto.
10014 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10015 * printcmd.c (print_formatted): Ditto.
10016 * valprint.c (valprint_check_validity): Ditto.
10017 (value_check_printable): Ditto.
10018 (val_print_optimized_out): New.
10019
29ec5263
PA
100202011-01-25 Pedro Alves <pedro@codesourcery.com>
10021
10022 * infcmd.c (default_print_registers_info): Allocate values so to
10023 never pass a NULL value to val_print.
10024
de4127a3
PA
100252011-01-25 Pedro Alves <pedro@codesourcery.com>
10026
10027 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10028 boolean. Make sure to always pass a value that matches the
10029 contents buffer to callees. Preserve `address' for following
10030 iterations.
10031 * value.c (value_contents_for_printing_const): New.
10032 (value_address): Constify value argument.
10033 * value.h (value_contents_for_printing_const): Declare.
10034 (value_address): Constify value argument.
10035
ee99023e
PA
100362011-01-25 Pedro Alves <pedro@codesourcery.com>
10037
10038 * regcache.c (struct regcache_descr): Rename
10039 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10040 and sizeof_cooked_register_valid_p to
10041 sizeof_cooked_register_status.
10042 (init_regcache_descr): Adjust.
10043 (struct regcache): Rename register_valid_p field to
10044 register_status.
10045 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10046 (do_cooked_read): Adjust.
10047 (regcache_valid_p): Rename to ...
10048 (regcache_register_status): ... this. Adjust.
10049 (regcache_invalidate): Adjust.
10050 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10051 Adjust.
10052 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10053 as unavailable, not valid.
10054 (regcache_dump): Adjust.
10055 * regcache.h (enum register_status): New.
10056 (regcache_register_status): Declare.
10057 (regcache_invalidate): Delete declaration.
10058 * corelow.c (get_core_registers): Adjust.
10059 * tracepoint.c (tfile_fetch_registers): Adjust.
10060 * trad-frame.c (REG_VALUE): Rename to ...
10061 (TF_REG_VALUE): ... this.
10062 (REG_UNKNOWN): Rename to ...
10063 (TF_REG_UNKNOWN): ... this.
10064 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10065 * mi/mi-main.c (register_changed_p): Adjust.
10066
99e42fd8
PA
100672011-01-25 Pedro Alves <pedro@codesourcery.com>
10068
10069 * regcache.c (struct regcache_descr): Remove outdated comment.
10070 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10071 overallocate hack.
10072 (regcache_xmalloc): Rename to ...
10073 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10074 Allocate the regcache type accordingly.
10075 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10076 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10077 cooked registers, not raw.
10078 (regcache_dup_no_passthrough): Delete.
10079 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10080 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10081 mention obsolete write_register_bytes.
10082 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10083
f7605bc2
PA
100842011-01-25 Pedro Alves <pedro@codesourcery.com>
10085
10086 Stop remote_read_bytes from handling partial reads itself.
10087
10088 * remote-fileio.c: Include target.h.
10089 (remote_fileio_write_bytes): Delete.
10090 (remote_fileio_func_open, remote_fileio_func_write)
10091 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10092 target_read_memory.
10093 (remote_fileio_func_stat): Use target_read_memory and
10094 target_write_memory.
10095 (remote_fileio_func_gettimeofday): Use target_write_memory.
10096 (remote_fileio_func_system): Use target_read_memory.
10097 * remote.c (remote_write_bytes): Make it static.
10098 (remote_read_bytes): Don't handle partial reads here.
10099 * remote.h (remote_read_bytes): Delete declaration.
10100
efc0eabd
PA
101012011-01-25 Pedro Alves <pedro@codesourcery.com>
10102
10103 Simplify XML parsing a bit.
10104
10105 * xml-support.h (gdb_xml_parse_quick): Declare.
10106 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10107 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10108 parameter.
10109 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10110 gdb_xml_create_parser_and_cleanup_1.
10111 (gdb_xml_parse_quick): New.
10112 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10113 * osdata.c (osdata_parse): Ditto.
10114 * remote.c (remote_threads_info): Ditto.
10115 * solib-target.c (solib_target_parse_libraries): Ditto.
10116 * xml-syscall.c (syscall_parse_xml): Ditto.
10117 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10118
314d366a
KB
101192011-01-24 Kevin Buettner <kevinb@redhat.com>
10120
10121 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10122 with remote-mips.o added to gdb_target_obs.
10123 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10124
a491d753
PA
101252011-01-24 Pedro Alves <pedro@codesourcery.com>
10126
10127 * ada-valprint.c (val_print_packed_array_elements): Pass the
10128 correct struct value to val_print.
10129 (ada_val_print_1): Ditto.
10130
490f124f
PA
101312011-01-24 Pedro Alves <pedro@codesourcery.com>
10132
10133 Don't lose embedded_offset in printing routines throughout.
10134
10135 * valprint.h (val_print_array_elements): Change prototype.
10136 * valprint.c (val_print_array_elements): Add `embedded_offset'
10137 parameter, and adjust to pass it down to val_print, while passing
10138 `valaddr' or `address' unmodified. Take embedded_offset into
10139 account when checking repetitions.
10140 * c-valprint.c (c_val_print): Pass embedded_offset to
10141 val_print_array_elements instead of adjusting `valaddr' and
10142 `address'.
10143 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10144 embedded_offset to val_print_array_elements instead of adjusting
10145 `valaddr'.
10146 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10147 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10148 val_print_array_elements and pascal_object_print_value_fields
10149 instead of adjusting `valaddr'.
10150 (pascal_object_print_value_fields): Add `offset' parameter, and
10151 adjust to use it.
10152 (pascal_object_print_value): Add `offset' parameter, and adjust to
10153 use it.
10154 (pascal_object_print_static_field): Use
10155 value_contents_for_printing/value_embedded_offset, rather than
10156 value_contents.
10157 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10158 parameter, and adjust to use it. Use
10159 value_contents_for_printing/value_embedded_offset, rather than
10160 value_contents.
10161 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10162 (ada_val_print_array): Add `offset' parameter, and adjust to use
10163 it.
10164 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10165 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10166 Instead work with offsets. Use
10167 value_contents_for_printing/value_embedded_offset, rather than
10168 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10169 and use value_from_pointer to extract a target pointer, rather
10170 than value_from_longest.
10171 (print_variant_part): Add `offset' parameter. Replace
10172 `outer_valaddr' parameter by a new `outer_offset' parameter.
10173 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10174 (ada_value_print): Use
10175 value_contents_for_printing/value_embedded_offset, rather than
10176 value_contents.
10177 (print_record): Add `offset' parameter, and adjust to pass it
10178 down.
10179 (print_field_values): Add `offset' parameter. Replace
10180 `outer_valaddr' parameter by a new `outer_offset' parameter.
10181 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10182 Use value_contents_for_printing/value_embedded_offset, rather than
10183 value_contents.
10184 * d-valprint.c (dynamic_array_type): Use
10185 value_contents_for_printing/value_embedded_offset, rather than
10186 value_contents.
10187 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10188 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10189 (java_print_value_fields): Take `offset' into account. Don't
10190 re-adjust `valaddr'. Instead pass down adjusted offsets.
10191 (java_val_print): Take `embedded_offset' into account. Pass it to
10192 java_print_value_fields.
10193 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10194 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10195 down adjusted offsets.
10196 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10197 (f_val_print): Take `embedded_offset' into account.
10198
7bfc9434
JB
101992011-01-21 Joel Brobecker <brobecker@adacore.com>
10200
10201 * inflow.c: Include "gdbcmd.h".
10202 (interactive_mode): New static global, moved here from top.c.
10203 (show_interactive_mode): New function, moved here from top.c.
10204 use gdb_has_a_terminal instead of input_from_terminal_p to
10205 determine the current mode.
10206 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10207 setting.
10208 (_initialize_inflow): Add the "set/show interactive-mode"
10209 commands. Moved here from top.c, after having adjusted slightly
10210 the help text.
10211 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10212 to inflow.c.
10213 (input_from_terminal_p): Remove handling of "interactive-mode"
10214 setting, moved to infow.c.
10215 (init_main): Remove creation of the "set/show interactive-mode"
10216 commands, moved to inflow.c.
10217
44603653
JB
102182011-01-19 Joel Brobecker <brobecker@adacore.com>
10219
10220 * NEWS: Add entry for native ia64-hpux support.
10221
4694da01
TT
102222011-01-19 Tom Tromey <tromey@redhat.com>
10223
10224 PR mi/8618:
10225 * thread.c (free_thread): Free 'name'.
10226 (print_thread_info): Emit thread name. Change CLI output.
10227 (thread_name_command): New function.
10228 (do_captured_thread_select): Emit newline.
10229 (_initialize_thread): Register 'thread name' command.
10230 * target.h (struct target_ops) <to_thread_name>: New field.
10231 (target_thread_name): New macro.
10232 * target.c (update_current_target): Handle to_thread_name.
10233 * python/py-infthread.c (thpy_get_name): New function.
10234 (thpy_set_name): Likewise.
10235 (thread_object_getset): Add "name".
10236 * linux-nat.c (linux_nat_thread_name): New function.
10237 (linux_nat_add_target): Set to_thread_name.
10238 * gdbthread.h (struct thread_info) <name>: New field.
10239
10d44370
JB
102402011-01-18 Joel Brobecker <brobecker@adacore.com>
10241
10242 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10243 (ada_val_print_1): Likewise.
10244
e3acb115
JB
102452011-01-18 Joel Brobecker <brobecker@adacore.com>
10246
10247 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10248 upper limit address is not greater than the function end address
10249 when the upper limit could not be computed using the debugging
10250 info.
10251
dc92e161
TT
102522011-01-17 Tom Tromey <tromey@redhat.com>
10253
10254 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10255 get_regcomp_error.
10256 * utils.c: Include gdb_regex.h.
10257 (do_regfree_cleanup): New function.
10258 (make_regfree_cleanup): Likewise.
10259 (get_regcomp_error): Likewise.
10260 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10261
f55af66d
TT
102622011-01-17 Tom Tromey <tromey@redhat.com>
10263
10264 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10265 re_compile_fastmap.
10266
a5a44b53
PM
102672011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10268
10269 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10270 for internal variables.
10271 (last_was_structop): New static variable.
10272 (COMPLETE): New token.
10273 (field_exp): New rule to group all '.' suffix handling.
10274 Add mark_struct_expression calls when approriate to be able
10275 to correctly find fields for completion.
10276 (yylex): Adapt to handle field completion and set INTVAR when
10277 required.
10278
2c291032
YQ
102792011-01-14 Yao Qi <yao@codesourcery.com>
10280
10281 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10282 save_reggroup, restore_reggroup and all_reggroup.
10283
447b483c
JB
102842011-01-14 Joel Brobecker <brobecker@adacore.com>
10285
10286 * ada-valprint. (ada_printchar): Use the correct type length
10287 in call to ada_emit_char.
10288 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10289
7b64a93b
PM
102902011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10291
10292 * solib-som.h (hpux_major_release): Declare variable here.
10293 * solib-som.c: Remove <sys/utsname.h> header.
10294 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10295 (hpux_major_release): Make global, change default value to
10296 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10297 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10298 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10299 Add "solib-som.h" header.
10300 (set_hpux_major_release): New function.
10301 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10302
4e18c053
MF
103032011-01-14 Mike Frysinger <vapier@gentoo.org>
10304
10305 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10306
a9df6b22
JB
103072011-01-14 Joel Brobecker <brobecker@adacore.com>
10308
10309 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10310 new-line at end of warning message.
10311 (ia64_hpux_store_register): Remove trailing new-line at end of
10312 error message.
10313 * ia64-hpux-tdep.c: Rephrase comment.
10314 * solib-ia64-hpux.c (struct dld_info): Change type of field
10315 dld_flags from "long long" to ULONGEST.
10316
ecb956dd
PA
103172011-01-14 Pedro Alves <pedro@codesourcery.com>
10318
10319 * target.h (deprecated_child_ops): Delete declaration.
10320 * target.c (deprecated_child_ops): Delete definition.
10321
76adfcae
PA
103222011-01-14 Pedro Alves <pedro@codesourcery.com>
10323
10324 * Makefile.in (hpux-thread.o): Delete rule.
10325 * configure.ac: Don't check for HPUX DCE threads support.
10326 * configure, config.in: Regenerate.
10327 * hppa-hpux-nat.c (child_suppress_run): Delete.
10328 (hppa_hpux_child_can_run): Delete.
10329 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10330 * hpux-thread.c: Delete.
10331
042e866e
JB
103322011-01-13 Joel Brobecker <brobecker@adacore.com>
10333
10334 * hpux-thread.c (hpux_pid_to_str): Delete.
10335
4ffa5a33
JB
103362011-01-13 Joel Brobecker <brobecker@adacore.com>
10337
10338 * ada-valprint.c (ada_emit_char): Remove strange code.
10339 Check that c is <= UCHAR_MAX before passing it to isascii.
10340 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10341
de8fa76c
JB
103422011-01-13 Joel Brobecker <brobecker@adacore.com>
10343
10344 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10345 to the case where instream is stdin.
10346
c4de7027
JB
103472011-01-13 Joel Brobecker <brobecker@adacore.com>
10348
10349 * ia64-tdep.h (struct regcache): Forward declare.
10350 (struct ia64_infcall_ops): New struct type.
10351 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10352 and "infcall_ops".
10353 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10354 Renames ia64_find_global_pointer.
10355 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10356 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10357 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10358 methods.
10359 (ia64_infcall_ops): New static global constant.
10360 (ia64_gdbarch_init): Set tdep->infcall_ops.
10361 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10362 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10363 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10364 (ia64_hpux_dummy_code): New static global constant.
10365 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10366 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10367 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10368 New function.
10369 (ia64_hpux_infcall_ops): New static global constant.
10370 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10371 for inferior function calls to work properly on ia64-hpux.
10372
77ca787b
JB
103732011-01-13 Joel Brobecker <brobecker@adacore.com>
10374
10375 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10376 * ia64-tdep.h (struct frame_info): forward declaration.
10377 (struct gdbarch_tdep): Add field size_of_register_frame.
10378 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10379 to determine the size of the register frame.
10380 (ia64_size_of_register_frame): New function.
10381 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10382 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10383 (IA64_HPUX_UREG_REASON): New macro.
10384 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10385 New functions.
10386 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10387 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10388 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10389 objects.
10390
92c9a463
JB
103912011-01-13 Joel Brobecker <brobecker@adacore.com>
10392
10393 Add support for ia64-hpux.
10394 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10395 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10396
10397 * configure.host: Add handling for ia64-hpux hosts. Add associated
10398 floatformats.
10399 * configure.tgt: Add handling for ia64-hpux targets.
10400 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10401 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10402 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10403
f688d93f
JB
104042011-01-13 Joel Brobecker <brobecker@adacore.com>
10405
10406 [ttrace] Compute thread list immediately after attach.
10407 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10408 New subprogram.
10409 (inf_ttrace_attach): Use it.
10410
1b89e62f
JB
104112011-01-13 Joel Brobecker <brobecker@adacore.com>
10412
10413 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10414 if we could not determine the frame's function address. Instead,
10415 use the frame's PC, and then continue.
10416
3e5e6e2a
JB
104172011-01-13 Joel Brobecker <brobecker@adacore.com>
10418
10419 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10420 not already defined.
10421
825d6d8a
JB
104222011-01-13 Joel Brobecker <brobecker@adacore.com>
10423
10424 * ia64-tdep.c (ia64_struct_type_p): New function.
10425 (ia64_extract_return_value): Handle integral values that are
10426 less than 8 bytes long.
10427 (ia64_push_dummy_call): Likewise.
10428
7458e667
JB
104292011-01-13 Joel Brobecker <brobecker@adacore.com>
10430
10431 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10432 floatformat_ia64_ext.
10433 (floatformat_ia64_ext_big): New static const.
10434 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10435
1b05df00
TT
104362011-01-12 Tom Tromey <tromey@redhat.com>
10437
10438 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10439 messages.
10440 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10441 (mi_cmd_thread_list_ids): Likewise.
10442 (mi_cmd_data_list_changed_registers): Likewise.
10443 (mi_cmd_data_list_register_values): Likewise.
10444 (mi_cmd_data_write_register_values): Likewise.
10445 (mi_cmd_data_evaluate_expression): Likewise.
10446 (mi_cmd_data_read_memory): Likewise.
10447 (mi_cmd_data_read_memory_bytes): Likewise.
10448 (mi_cmd_data_write_memory): Likewise.
10449 (mi_cmd_enable_timings): Likewise.
10450 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10451 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10452 (mi_cmd_var_delete): Likewise.
10453 (mi_cmd_var_set_format): Likewise.
10454 (mi_cmd_var_show_format): Likewise.
10455 (mi_cmd_var_info_num_children): Likewise.
10456 (mi_cmd_var_list_children): Likewise.
10457 (mi_cmd_var_info_type): Likewise.
10458 (mi_cmd_var_info_expression): Likewise.
10459 (mi_cmd_var_show_attributes): Likewise.
10460 (mi_cmd_var_assign): Likewise.
10461 (mi_cmd_var_update): Likewise.
10462 (mi_cmd_enable_pretty_printing): Likewise.
10463 (mi_cmd_var_set_update_range): Likewise.
10464 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10465 messages.
10466 (mi_cmd_target_file_put): Likewise.
10467 (mi_cmd_target_file_delete): Likewise.
10468 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10469 messages.
10470 (mi_cmd_stack_info_depth): Likewise.
10471 (mi_cmd_stack_list_locals): Likewise.
10472 (mi_cmd_stack_list_args): Likewise.
10473 (mi_cmd_stack_select_frame): Likewise.
10474 (mi_cmd_stack_select_frame): Likewise.
10475 (mi_cmd_stack_info_frame): Likewise.
10476 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10477 messages.
10478 (mi_cmd_file_list_exec_source_files): Likewise.
10479 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10480 (mi_cmd_env_cd): Likewise.
10481 (mi_cmd_env_path): Likewise.
10482 (mi_cmd_env_dir): Likewise.
10483 (mi_cmd_inferior_tty_show): Likewise.
10484 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10485 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10486 (mi_cmd_break_watch): Likewise.
10487
ad422571
TJB
104882011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10489
10490 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10491 (ppc_linux_insert_hw_breakpoint): Likewise.
10492 (ppc_linux_remove_hw_breakpoint): Likewise.
10493 (ppc_linux_insert_watchpoint): Likewise.
10494
c2ff108b
JK
104952011-01-12 Andrew Burgess <aburgess@broadcom.com>
10496 Jan Kratochvil <jan.kratochvil@redhat.com>
10497
10498 PR fortran/11104 and DWARF unbound arrays detection.
10499 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10500 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10501 unspecified upper bound.
10502 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10503 variables array_size_array, tmp_type and offset_item. New variable
10504 array. Remove call to f77_get_upperbound. New variables array_type
10505 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10506 the final call to deprecated_set_value_type.
10507
41e8491f
JK
105082011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10509
10510 Make value allocations more lazy.
10511 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10512 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10513 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10514 instead of allocate_value and set_value_lazy.
10515 * findvar.c (value_of_register_lazy): Likewise.
10516 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10517 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10518 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10519 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10520 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10521 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10522 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10523 the end, remove set_value_lazy there.
10524 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10525 instead of allocate_value and set_value_lazy when possible.
10526 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10527 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10528 of allocate_value and set_value_lazy.
10529 (value_from_contents_and_address): Use allocate_value_lazy instead of
10530 allocate_value and set_value_lazy when possible.
10531
b716877b
AB
105322011-01-12 Andrew Burgess <aburgess@broadcom.com>
10533
10534 * disasm.c (dump_insns): Support dumping opcodes for MI.
10535 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10536 dumping of instruction opcodes.
10537
d5ae309f
JB
105382011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10539
10540 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10541 appropiately.
10542
98871305
TT
105432011-01-11 Tom Tromey <tromey@redhat.com>
10544
10545 * thread.c (do_captured_thread_select): Emit newline before
10546 printing frame.
10547
c378eb4e
MS
105482011-01-11 Michael Snyder <msnyder@vmware.com>
10549
10550 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10551 * score-tdep.c: Ditto.
10552 * score-tdep.h: Ditto.
10553 * ser-base.c: Ditto.
10554 * ser-go32.c: Ditto.
10555 * serial.c: Ditto.
10556 * serial.h: Ditto.
10557 * ser-mingw.c: Ditto.
10558 * ser-pipe.c: Ditto.
10559 * ser-tcp.c: Ditto.
10560 * ser-unix.c: Ditto.
10561 * sh64-tdep.c: Ditto.
10562 * shnbsd-nat.c: Ditto.
10563 * sh-tdep.c: Ditto.
10564 * sh-tdep.h: Ditto.
10565 * solib.c: Ditto.
10566 * solib-darwin.c: Ditto.
10567 * solib-frv.c: Ditto.
10568 * solib.h: Ditto.
10569 * solib-irix.c: Ditto.
10570 * solib-osf.c: Ditto.
10571 * solib-pa64.c: Ditto.
10572 * solib-som.c: Ditto.
10573 * solib-spu.c: Ditto.
10574 * solib-sunos.c: Ditto.
10575 * solib-svr4.c: Ditto.
10576 * solist.h: Ditto.
10577 * sol-thread.c: Ditto.
10578 * somread.c: Ditto.
10579 * source.c: Ditto.
10580 * source.h: Ditto.
10581 * sparc64-linux-tdep.c: Ditto.
10582 * sparc64-tdep.c: Ditto.
10583 * sparc-linux-nat.c: Ditto.
10584 * sparc-linux-tdep.c: Ditto.
10585 * sparc-sol2-nat.c: Ditto.
10586 * sparc-sol2-tdep.c: Ditto.
10587 * sparc-tdep.c: Ditto.
10588 * sparc-tdep.h: Ditto.
10589 * spu-tdep.c: Ditto.
10590 * stabsread.c: Ditto.
10591 * stabsread.h: Ditto.
10592 * stack.c: Ditto.
10593 * symfile.c: Ditto.
10594 * symfile.h: Ditto.
10595 * symmisc.c: Ditto.
10596 * symtab.c: Ditto.
10597 * symtab.h: Ditto.
10598 * target.c: Ditto.
10599 * target-descriptions.c: Ditto.
10600 * target-descriptions.h: Ditto.
10601 * target.h: Ditto.
10602 * target-memory.c: Ditto.
10603 * terminal.h: Ditto.
10604 * thread.c: Ditto.
10605 * top.c: Ditto.
10606 * tracepoint.c: Ditto.
10607 * tracepoint.h: Ditto.
10608 * trad-frame.h: Ditto.
10609 * typeprint.c: Ditto.
10610
581e13c1
MS
106112011-01-11 Michael Snyder <msnyder@vmware.com>
10612
10613 * ui-file.c: Comment cleanup, mostly periods and spaces.
10614 * ui-file.h: Ditto.
10615 * ui-out.c: Ditto.
10616 * ui-out.h: Ditto.
10617 * utils.c: Ditto.
10618 * v850-tdep.c: Ditto.
10619 * valarith.c: Ditto.
10620 * valops.c: Ditto.
10621 * valprint.c: Ditto.
10622 * valprint.h: Ditto.
10623 * value.c: Ditto.
10624 * value.h: Ditto.
10625 * varobj.c: Ditto.
10626 * varobj.h: Ditto.
10627 * vax-tdep.c: Ditto.
10628 * vec.c: Ditto.
10629 * vec.h: Ditto.
10630 * version.h: Ditto.
10631 * windows-nat.c: Ditto.
10632 * windows-tdep.c: Ditto.
10633 * xcoffread.c: Ditto.
10634 * xcoffsolib.c: Ditto.
10635 * xml-support.c: Ditto.
10636 * xstormy16-tdep.c: Ditto.
10637 * xtensa-tdep.c: Ditto.
10638 * xtensa-tdep.h: Ditto.
10639
90e4670f
TJB
106402011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10641
10642 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10643 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10644
e09342b5
TJB
106452011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10646 Thiago Jung Bauermann <bauerman@br.ibm.com>
10647
10648 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10649 * breakpoint.h
e09342b5
TJB
10650 (struct breakpoint_ops) <resources_needed>: New method.
10651 Initialize to NULL in all existing breakpoint_ops instances.
10652 (struct breakpoint) <exact>: New field.
10653 (target_exact_watchpoints): Declare external global.
10654 * breakpoint.c (target_exact_watchpoints): New global flag.
10655 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10656 b->enable_state to bp_enabled before calling
10657 hw_watchpoint_used_count.
10658 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10659 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10660 if available.
10661 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10662 if the watchpoint is exact.
10663 (resources_needed_watchpoint): New function.
10664 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10665 (watch_command_1): Set b->exact if the user asked for an exact
10666 watchpoint and one can be set.
10667 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10668 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10669 the user asks for an exact watchpoint and one can be set. Return
10670 number of needed debug registers to watch the expression.
10671 * gdbtypes.c (is_scalar_type): New function, based on
10672 valprint.c:scalar_type_p.
10673 (is_scalar_type_recursive): New function.
10674 * gdbtypes.h (is_scalar_type_recursive): Declare.
10675 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10676 handle regions when ranged watchpoints are available.
10677 (create_watchpoint_request): New function.
10678 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10679 create_watchpoint_request.
10680 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10681 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10682 `set powerpc' and `show powerpc' commands.
10683 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10684 Mention documentation comment in the target macro.
10685 (target_region_ok_for_hw_watchpoint): Document return value.
10686
9fa40276
TJB
106872011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10688
10689 * breakpoint.c (update_watchpoint): Decide on using a software or
10690 hardware watchpoint after the bp_locations are created.
10691
77b06cd7
TJB
106922010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10693
10694 Convert hardware watchpoints to use breakpoint_ops.
10695 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10696 <insert_location>: ... this. Return int instead of void.
10697 Accept pointer to struct bp_location instead of pointer to
10698 struct breakpoint. Adapt all implementations.
f2eb0bc8 10699 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10700 <remove_location>: ... this. Accept pointer to struct bp_location
10701 instead of pointer to struct breakpoint. Adapt all implementations.
10702 * breakpoint.c (insert_catchpoint): Delete function.
10703 (insert_bp_location): Call the watchpoint or catchpoint's
10704 breakpoint_ops.insert method.
10705 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10706 breakpoint_ops.remove method.
10707 (insert_watchpoint, remove_watchpoint): New functions.
10708 (watchpoint_breakpoint_ops): New structure.
10709 (watch_command_1): Initialize the OPS field.
10710 * inf-child.c (inf_child_insert_fork_catchpoint)
10711 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10712 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10713 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10714 Delete functions.
10715 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10716 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10717 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10718 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10719 * target.c (update_current_target): Change default implementation of
10720 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10721 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10722 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10723 to_set_syscall_catchpoint to return_one.
10724 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10725 (debug_to_insert_exec_catchpoint): Report return value.
10726 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10727 (to_insert_exec_catchpoint): Change declaration to return int instead
10728 of void.
10729
9b20d036
MS
107302011-01-11 Michael Snyder <msnyder@vmware.com>
10731
10732 * arm-tdep.c: Internationalization.
10733 * c-lang.c: Ditto.
10734 * charset.c: Ditto.
10735 * fork-child.c: Ditto.
10736 * nto-procfs.c: Ditto.
10737 * ppc-sysv-tdep.c: Ditto.
10738 * procfs.c: Ditto.
10739 * remote-mips.c: Ditto.
10740 * remote.c: Ditto.
10741 * rs6000-nat.c: Ditto.
10742 * rs6000-tdep.c: Ditto.
10743 * target.c: Ditto.
10744 * valops.c: Ditto.
10745 * value.c: Ditto.
10746 * xml-support.c: Ditto.
10747 * mi/mi-cmd-break.c: Ditto.
10748 * mi/mi-cmd-var.c: Ditto.
10749 * mi/mi-interp.c: Ditto.
10750 * mi/mi-main.c: Ditto.
10751
dae477fe
AB
107522011-01-11 Andrew Burgess <aburgess@broadcom.com>
10753
10754 * remote-sim.c (gdbsim_store_register): Update API to
10755 sim_store_register to check more error conditions.
10756
0df8b418
MS
107572011-01-10 Michael Snyder <msnyder@vmware.com>
10758
10759 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10760 * nto-tdep.c: Ditto.
10761 * nto-tdep.h: Ditto.
10762 * objc-exp.y: Ditto.
10763 * objc-lang.c: Ditto.
10764 * objfiles.c: Ditto.
10765 * objfiles.h: Ditto.
10766 * observer.c: Ditto.
10767 * opencl-lang.c: Ditto.
10768 * osabi.c: Ditto.
10769 * parse.c: Ditto.
10770 * parser-defs.h: Ditto.
10771 * p-exp.y: Ditto.
10772 * p-lang.c: Ditto.
10773 * posix-hdep.c: Ditto.
10774 * ppcbug-rom.c: Ditto.
10775 * ppc-linux-nat.c: Ditto.
10776 * ppc-linux-tdep.c: Ditto.
10777 * ppc-linux-tdep.h: Ditto.
10778 * ppcnbsd-tdep.c: Ditto.
10779 * ppcobsd-tdep.c: Ditto.
10780 * ppcobsd-tdep.h: Ditto.
10781 * ppc-sysv-tdep.c: Ditto.
10782 * ppc-tdep.h: Ditto.
10783 * printcmd.c: Ditto.
10784 * proc-abi.c: Ditto.
10785 * proc-flags.c: Ditto.
10786 * procfs.c: Ditto.
10787 * proc-utils.h: Ditto.
10788 * progspace.h: Ditto.
10789 * prologue-value.c: Ditto.
10790 * prologue-value.h: Ditto.
10791 * psympriv.h: Ditto.
10792 * psymtab.c: Ditto.
10793 * p-typeprint.c: Ditto.
10794 * p-valprint.c: Ditto.
10795 * ravenscar-sparc-thread.c: Ditto.
10796 * ravenscar-thread.c: Ditto.
10797 * ravenscar-thread.h: Ditto.
10798 * record.c: Ditto.
10799 * regcache.c: Ditto.
10800 * regcache.h: Ditto.
10801 * remote.c: Ditto.
10802 * remote-fileio.c: Ditto.
10803 * remote-fileio.h: Ditto.
10804 * remote.h: Ditto.
10805 * remote-m32r-sdi.c: Ditto.
10806 * remote-mips.c: Ditto.
10807 * remote-sim.c: Ditto.
10808 * rs6000-aix-tdep.c: Ditto.
10809 * rs6000-nat.c: Ditto.
10810 * rs6000-tdep.c: Ditto.
10811
0d7a18f7
MS
108122011-01-10 Michael Snyder <msnyder@vmware.com>
10813
10814 * charset.c (validate): Internationalization.
10815 * coffread.c (read_one_sym): Ditto.
10816 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10817 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10818 * inflow.c (new_tty): Ditto.
10819 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10820 * m32c-tdep.c (m32c_return_value): Ditto.
10821 * mep-tdep.c (mep_store_return_value): Ditto.
10822 * score-tdep.c (score7_fetch_insn): Ditto.
10823 * ser-mingw.c (pipe_windows_open): Ditto.
10824 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10825 * spu-tdep.c (spu_register_type): Ditto.
10826 * tracepoint.c (trace_find_command): Ditto.
10827 * valarith.c (value_pos): Ditto.
10828
9a153e0b
JB
108292011-01-10 Joel Brobecker <brobecker@adacore.com>
10830
10831 * ada-valprint.c (printstr): Minor comment reformatting.
10832
35ecd2d6
MS
108332011-01-08 Michael Snyder <msnyder@vmware.com>
10834
10835 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10836 markup.
10837
1777feb0
MS
108382011-01-08 Michael Snyder <msnyder@vmware.com>
10839
10840 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10841 * hppa-hpux-tdep.c: Ditto.
10842 * hppa-linux-nat.c: Ditto.
10843 * hppa-linux-tdep.c: Ditto.
10844 * hppanbsd-tdep.c: Ditto.
10845 * hppa-tdep.c: Ditto.
10846 * hppa-tdep.h: Ditto.
10847 * hpux-thread.c: Ditto.
10848 * i386-cygwin-tdep.c: Ditto.
10849 * i386-darwin-nat.c: Ditto.
10850 * i386gnu-nat.c: Ditto.
10851 * i386-linux-nat.c: Ditto.
10852 * i386-linux-tdep.c: Ditto.
10853 * i386-nat.c: Ditto.
10854 * i386-nat.h: Ditto.
10855 * i386nbsd-tdep.c: Ditto.
10856 * i386-sol2-nat.c: Ditto.
10857 * i386-stub.c: Ditto.
10858 * i386-tdep.c: Ditto.
10859 * i386-tdep.h: Ditto.
10860 * i387-tdep.c: Ditto.
10861 * ia64-linux-nat.c: Ditto.
10862 * ia64-linux-tdep.c: Ditto.
10863 * ia64-tdep.c: Ditto.
10864 * infcall.c: Ditto.
10865 * infcall.h: Ditto.
10866 * infcmd.c: Ditto.
10867 * inferior.c: Ditto.
10868 * inferior.h: Ditto.
10869 * infloop.c: Ditto.
10870 * inflow.c: Ditto.
10871 * infrun.c: Ditto.
10872 * interps.c: Ditto.
10873 * interps.h: Ditto.
10874 * iq2000-tdep.c: Ditto.
10875 * irix5-nat.c: Ditto.
10876 * jit.c: Ditto.
10877 * jit.h: Ditto.
10878 * jv-exp.y: Ditto.
10879 * jv-lang.c: Ditto.
10880 * jv-lang.h: Ditto.
10881 * jv-typeprint.c: Ditto.
10882 * jv-valprint.c: Ditto.
10883 * language.c: Ditto.
10884 * language.h: Ditto.
10885 * linespec.c: Ditto.
10886 * linux-fork.c: Ditto.
10887 * linux-nat.c: Ditto.
10888 * linux-thread-db.c: Ditto.
10889 * lm32-tdep.c: Ditto.
10890
025bb325
MS
108912011-01-08 Michael Snyder <msnyder@vmware.com>
10892
10893 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10894 * m2-lang.c: Ditto.
10895 * m2-typeprint.c: Ditto.
10896 * m2-valprint.c: Ditto.
10897 * m32c-tdep.c: Ditto.
10898 * m32r-linux-nat.c: Ditto.
10899 * m32r-rom.c: Ditto.
10900 * m32r-tdep.c: Ditto.
10901 * m32r-tdep.h: Ditto.
10902 * m68hc11-tdep.c: Ditto.
10903 * m58klinux-nat.c: Ditto.
10904 * m68k-tdep.c: Ditto.
10905 * m88k-tdep.c: Ditto.
10906 * m88k-tdep.h: Ditto.
10907 * machoread.c: Ditto.
10908 * macrocmd.c: Ditto.
10909 * macroexp.c: Ditto.
10910 * macrotab.c: Ditto.
10911 * main.c: Ditto.
10912 * maint.c: Ditto.
10913 * mdebugread.c: Ditto.
10914 * mdebugread.h: Ditto.
10915 * memattr.c: Ditto.
10916 * memattr.h: Ditto.
10917 * memory-map.h: Ditto.
10918 * mep-tdep.c: Ditto.
10919 * microblaze-rom.c: Ditto.
10920 * microblaze-tdep.c: Ditto.
10921 * minsyms.c: Ditto.
10922 * mips-irix-tdep.c: Ditto.
10923 * mips-linux-nat.c: Ditto.
10924 * mips-linux-tdep.c: Ditto.
10925 * mips-linux-tdep.h: Ditto.
10926 * mipsnbsd-nat.c: Ditto.
10927 * mipsnbsd-tdep.c: Ditto.
10928 * mipsread.c: Ditto.
10929 * mips-tdep.c: Ditto.
10930 * mips-tdep.h: Ditto.
10931 * mn10300-linux-tdep.c: Ditto.
10932 * mn10300-tdep.c: Ditto.
10933 * mn10300-tdep.h: Ditto.
10934 * monitor.c: Ditto.
10935 * monitor.h: Ditto.
10936 * moxie-tdep.c: Ditto.
10937 * moxie-tdep.h: Ditto.
10938 * mt-tdep.c: Ditto.
10939
1642781b
MF
109402011-01-08 Mike Frysinger <vapier@gentoo.org>
10941
10942 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10943
394b0adb
JB
109442011-01-08 Robert Millan <rmh@gnu.org>
10945
10946 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10947
b670013c
MS
109482011-01-07 Michael Snyder <msnyder@vmware.com>
10949
10950 * charset.c (_initialize_charset): Fix typo in string.
10951
a743e542
MS
109522011-01-07 Michael Snyder <msnyder@vmware.com>
10953
10954 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10955 for i18n.
f2eb0bc8 10956 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10957 Split line so that operator goes to beginning of line.
10958 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10959 assignment out of if statement.
10960
0963b4bd
MS
109612011-01-07 Michael Snyder <msnyder@vmware.com>
10962
10963 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10964 * ada-lang.h: Ditto.
10965 * ada-tasks.c: Ditto.
10966 * ada-valprint.c: Ditto.
10967 * aix-threads.c: Ditto.
10968 * alpha-linux-nat.c: Ditto.
10969 * alpha-linux-tdep.c: Ditto.
10970 * alpha-mdebug-tdep.c: Ditto.
10971 * alpha-nat.c: Ditto.
10972 * alpha-osf1-tdep.c: Ditto.
10973 * alpha-tdep.c: Ditto.
10974 * alphabsd-nat.c: Ditto.
10975 * alphabsd-tdep.c: Ditto.
10976 * amd64-darwin-tdep.c: Ditto.
10977 * amd64-linux-nat.c: Ditto.
10978 * amd64-linux-tdep.c: Ditto.
10979 * amd64-sol2-tdep.c: Ditto.
10980 * amd64-tdep.c: Ditto.
10981 * amd64-fbsd-tdep.c: Ditto.
10982 * amd64-nbsd-tdep.c: Ditto.
10983 * amd64-obsd-tdep.c: Ditto.
10984 * amd64-linux-nat.c: Ditto.
10985 * amd64-linux-tdep.c: Ditto.
10986 * arm-tdep.c: Ditto.
10987 * arm-tdep.h: Ditto.
10988 * armnbsd-nat.c: Ditto.
10989 * avr-tdep.c: Ditto.
10990 * bfin-tdep.c: Ditto.
10991 * bsd-kvm.c: Ditto.
10992 * c-typeprintc: Ditto.
10993 * c-valprint.c: Ditto.
10994 * coff-pe-read.h: Ditto.
10995 * coffreead.c: Ditto.
10996 * cris-tdep.c: Ditto.
10997 * d-lang.c: Ditto.
10998 * darwin-nat-info.c: Ditto.
10999 * darwin-nat.c: Ditto.
11000 * dbug-rom.c: Ditto.
11001 * dbxread.c: Ditto.
11002 * dcache.c: Ditto.
11003 * dcache.h: Ditto.
11004 * dec-thread.c: Ditto.
11005 * defs.h: Ditto.
11006 * demangle.c: Ditto.
11007 * dicos-tdep.c: Ditto.
11008 * dictionary.c: Ditto.
11009 * dictionary.h: Ditto.
11010 * dink32-rom.c: Ditto.
11011 * disasm.c: Ditto.
11012 * doublest.c: Ditto.
11013 * dsrec.c: Ditto.
11014 * dummy-frame.c: Ditto.
11015 * dwarf2-frame.c: Ditto.
11016 * dwarf2expr.c: Ditto.
11017 * dwarf2loc.c: Ditto.
11018 * dwarf2read.c: Ditto.
11019 * elfread.c: Ditto.
11020 * environ.c: Ditto.
11021 * eval.c: Ditto.
11022 * event-top.h: Ditto.
11023 * exceptions.c: Ditto.
11024 * exceptions.h: Ditto.
11025 * exec.c: Ditto.
11026 * expprint.c: Ditto.
11027 * expression.h: Ditto.
11028 * f-exp.y: Ditto.
11029 * f-lang.c: Ditto.
11030 * f-lang.h: Ditto.
11031 * f-typeprint.c: Ditto.
11032 * f-valprint.c: Ditto.
11033 * fbsd-nat.c: Ditto.
11034 * findvar.c: Ditto.
11035 * fork-child.c: Ditto.
11036 * frame.c: Ditto.
11037 * frame.h: Ditto.
11038 * frv-linux-tdep.c: Ditto.
11039 * frv-tdep.c: Ditto.
11040 * gcore.c: Ditto.
11041 * gdb-stabs.h: Ditto.
11042 * gdb_assert.h: Ditto.
11043 * gdb_string.h: Ditto.
11044 * gdb_thread_db.h: Ditto.
11045 * gdb_wait.h: Ditto.
11046 * gdbarch.sh: Ditto.
11047 * gdbcore.h: Ditto.
11048 * gdbthread.h: Ditto.
11049 * gdbtypes.c: Ditto.
11050 * gdbtypes.h: Ditto.
11051 * gnu-nat.c: Ditto.
11052 * gnu-nat.h: Ditto.
11053 * gnu-v2-abi.c: Ditto.
11054 * gnu-v3-abi.c: Ditto.
11055 * go32-nat.c: Ditto.
11056 * gdbarch.c: Regenerate.
11057 * gdbarch.h: Regenerate.
11058
ac74f770
MS
110592011-01-07 Michael Snyder <msnyder@vmware.com>
11060
11061 * ax-gdb.c: Adjust some long output strings.
11062 * breakpoint.c: Ditto.
11063 * charset.c: Ditto.
11064 * cp-abi.c: Ditto.
11065 * infcall.c: Ditto.
11066 * infrun.c: Ditto.
11067 * linux-nat.c: Ditto.
11068 * solib-pa64.c: Ditto.
11069 * solib-som.c: Ditto.
11070
d8e22779
TT
110712011-01-06 Tom Tromey <tromey@redhat.com>
11072
11073 PR python/12367:
11074 * NEWS: Add item.
11075 * python/python.c (GdbMethods): Add "newest_frame" method.
11076 * python/python-internal.h (gdbpy_newest_frame): Declare.
11077 * python/py-frame.c (gdbpy_newest_frame): New function.
11078
a255712f
PP
110792010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11080
11081 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11082 * jit.c (jit_debug): New variable.
11083 (show_jit_debug): New function.
11084 (struct target_buffer): Use ULONGEST.
11085 (bfd_open_from_target_memory): Likewise.
11086 (jit_register_code, jit_inferior_init): Add debug output.
11087 (_initialize_jit): Register "debug jit" command.
11088
ccfc3d6e
TT
110892011-01-06 Tom Tromey <tromey@redhat.com>
11090
11091 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11092 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11093 and ARCH_FRAME.
11094
57126e4a
TT
110952011-01-06 Tom Tromey <tromey@redhat.com>
11096
11097 * python/py-frame.c (frapy_block): Use get_frame_block.
11098
16dfc9ce
JB
110992011-01-06 Joel Brobecker <brobecker@adacore.com>
11100
11101 Do not stop on SIGPRIO signals by default
11102 * infrun.c (_initialize_infrun): Unset signal_stop and
11103 signal_print for TARGET_SIGNAL_PRIO.
11104
b1ce2347
JB
111052011-01-06 Joel Brobecker <brobecker@adacore.com>
11106
11107 * ada-tasks.c: Fix style violation in comment.
11108
8f7e195f
JB
111092011-01-06 Joel Brobecker <brobecker@adacore.com>
11110
11111 * linespec.c (decode_compound, find_method): Remove trailing \n
11112 at end of error string.
11113 * solib-irix.c (irix_current_sos): Likewise.
11114 * varobj.c (uninstall_variable): Likewise.
11115
e9bdf92c
JB
111162011-01-06 Joel Brobecker <brobecker@adacore.com>
11117
11118 * copyright.py: New script.
11119 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11120 Launch emacs without exec'ing. Call copyright.py afterwards.
11121
3e43a32a
MS
111222011-01-05 Michael Snyder <msnyder@vmware.com>
11123
11124 * addrmap.c: Shorten lines of >= 80 columns.
11125 * arch-utils.c: Ditto.
11126 * arch-utils.h: Ditto.
11127 * ax-gdb.c: Ditto.
11128 * ax-general.c: Ditto.
11129 * bcache.c: Ditto.
11130 * blockframe.c: Ditto.
11131 * breakpoint.c: Ditto.
11132 * buildsym.c: Ditto.
11133 * c-lang.c: Ditto.
11134 * c-typeprint.c: Ditto.
11135 * charset.c: Ditto.
11136 * coffread.c: Ditto.
11137 * command.h: Ditto.
11138 * corelow.c: Ditto.
11139 * cp-abi.c: Ditto.
11140 * cp-namespace.c: Ditto.
11141 * cp-support.c: Ditto.
11142 * dbug-rom.c: Ditto.
11143 * dbxread.c: Ditto.
11144 * defs.h: Ditto.
11145 * dfp.c: Ditto.
11146 * dfp.h: Ditto.
11147 * dictionary.c: Ditto.
11148 * disasm.c: Ditto.
11149 * doublest.c: Ditto.
11150 * dwarf2-frame.c: Ditto.
11151 * dwarf2expr.c: Ditto.
11152 * dwarf2loc.c: Ditto.
11153 * dwarf2read.c: Ditto.
11154 * elfread.c: Ditto.
11155 * eval.c: Ditto.
11156 * event-loop.c: Ditto.
11157 * event-loop.h: Ditto.
11158 * exceptions.h: Ditto.
11159 * exec.c: Ditto.
11160 * expprint.c: Ditto.
11161 * expression.h: Ditto.
11162 * f-lang.c: Ditto.
11163 * f-valprint.c: Ditto.
11164 * findcmd.c: Ditto.
11165 * frame-base.c: Ditto.
11166 * frame-unwind.c: Ditto.
11167 * frame-unwind.h: Ditto.
11168 * frame.c: Ditto.
11169 * frame.h: Ditto.
11170 * gcore.c: Ditto.
11171 * gdb-stabs.h: Ditto.
11172 * gdb_assert.h: Ditto.
11173 * gdb_dirent.h: Ditto.
11174 * gdb_obstack.h: Ditto.
11175 * gdbcore.h: Ditto.
11176 * gdbtypes.c: Ditto.
11177 * gdbtypes.h: Ditto.
11178 * inf-ttrace.c: Ditto.
11179 * infcall.c: Ditto.
11180 * infcmd.c: Ditto.
11181 * inflow.c: Ditto.
11182 * infrun.c: Ditto.
11183 * inline-frame.h: Ditto.
11184 * language.c: Ditto.
11185 * language.h: Ditto.
11186 * libunwind-frame.c: Ditto.
11187 * libunwind-frame.h: Ditto.
11188 * linespec.c: Ditto.
11189 * linux-nat.c: Ditto.
11190 * linux-nat.h: Ditto.
11191 * linux-thread-db.c: Ditto.
11192 * machoread.c: Ditto.
11193 * macroexp.c: Ditto.
11194 * macrotab.c: Ditto.
11195 * main.c: Ditto.
11196 * maint.c: Ditto.
11197 * mdebugread.c: Ditto.
11198 * memattr.c: Ditto.
11199 * minsyms.c: Ditto.
11200 * monitor.c: Ditto.
11201 * monitor.h: Ditto.
11202 * objfiles.c: Ditto.
11203 * objfiles.h: Ditto.
11204 * osabi.c: Ditto.
11205 * p-typeprint.c: Ditto.
11206 * p-valprint.c: Ditto.
11207 * parse.c: Ditto.
11208 * printcmd.c: Ditto.
11209 * proc-events.c: Ditto.
11210 * procfs.c: Ditto.
11211 * progspace.c: Ditto.
11212 * progspace.h: Ditto.
11213 * psympriv.h: Ditto.
11214 * psymtab.c: Ditto.
11215 * record.c: Ditto.
11216 * regcache.c: Ditto.
11217 * regcache.h: Ditto.
11218 * remote-fileio.c: Ditto.
11219 * remote.c: Ditto.
11220 * ser-mingw.c: Ditto.
11221 * ser-tcp.c: Ditto.
11222 * ser-unix.c: Ditto.
11223 * serial.c: Ditto.
11224 * serial.h: Ditto.
11225 * solib-frv.c: Ditto.
11226 * solib-irix.c: Ditto.
11227 * solib-osf.c: Ditto.
11228 * solib-pa64.c: Ditto.
11229 * solib-som.c: Ditto.
11230 * solib-sunos.c: Ditto.
11231 * solib-svr4.c: Ditto.
11232 * solib-target.c: Ditto.
11233 * solib.c: Ditto.
11234 * somread.c: Ditto.
11235 * source.c: Ditto.
11236 * stabsread.c: Ditto.
11237 * stabsread.c: Ditto.
11238 * stack.c: Ditto.
11239 * stack.h: Ditto.
11240 * symfile-mem.c: Ditto.
11241 * symfile.c: Ditto.
11242 * symfile.h: Ditto.
11243 * symmisc.c: Ditto.
11244 * symtab.c: Ditto.
11245 * symtab.h: Ditto.
11246 * target-descriptions.c: Ditto.
11247 * target-memory.c: Ditto.
11248 * target.c: Ditto.
11249 * target.h: Ditto.
11250 * terminal.h: Ditto.
11251 * thread.c: Ditto.
11252 * top.c: Ditto.
11253 * tracepoint.c: Ditto.
11254 * tracepoint.h: Ditto.
11255 * ui-file.c: Ditto.
11256 * ui-file.h: Ditto.
11257 * ui-out.h: Ditto.
11258 * user-regs.c: Ditto.
11259 * user-regs.h: Ditto.
11260 * utils.c: Ditto.
11261 * valarith.c: Ditto.
11262 * valops.c: Ditto.
11263 * valprint.c: Ditto.
11264 * valprint.h: Ditto.
11265 * value.c: Ditto.
11266 * varobj.c: Ditto.
11267 * varobj.h: Ditto.
11268 * vec.h: Ditto.
11269 * xcoffread.c: Ditto.
11270 * xcoffsolib.c: Ditto.
11271 * xcoffsolib.h: Ditto.
11272 * xml-syscall.c: Ditto.
11273 * xml-tdesc.c: Ditto.
11274
9a2b4c1b
MS
112752011-01-05 Michael Snyder <msnyder@vmware.com>
11276
11277 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11278 * cli/cli-decode.c: Ditto.
11279 * cli/cli-dump.c: Ditto.
11280 * cli/cli-logging.c: Ditto.
11281 * cli/cli-script.c: Ditto.
11282 * cli/cli-setshow.c: Ditto.
11283 * common/signals.c: Ditto.
11284 * mi/mi-cmd-break.c: Ditto.
11285 * mi/mi-cmd-disas.c: Ditto.
11286 * mi/mi-cmd-stack.c: Ditto.
11287 * mi/mi-cmd-var.c: Ditto.
11288 * mi/mi-cmds.c: Ditto.
11289 * mi/mi-common.h: Ditto.
11290 * mi/mi-console.c: Ditto.
11291 * mi/mi-interp.c: Ditto.
11292 * mi/mi-main.c: Ditto.
11293 * osf-share/cma_attr.c: Ditto.
11294 * osf-share/cma_deb_core.h: Ditto.
11295 * osf-share/cma_debug_client.h: Ditto.
11296 * osf-share/cma_handle.h: Ditto.
11297 * osf-share/cma_mutex.h: Ditto.
11298 * osf-share/cma_stack_int.h: Ditto.
11299 * osf-share/cma_tcb_defs.h: Ditto.
11300 * python/py-auto-load.c: Ditto.
11301 * python/py-breakpoint.c: Ditto.
11302 * python/py-cmd.c: Ditto.
11303 * python/py-frame.c: Ditto.
11304 * python/py-objfile.c: Ditto.
11305 * python/py-param.c: Ditto.
11306 * python/py-progspace.c: Ditto.
11307 * python/py-symbol.c: Ditto.
11308 * python/py-value.c: Ditto.
11309 * python/python-internal.h: Ditto.
11310 * python/python.c: Ditto.
11311 * tui/tui-data.c: Ditto.
11312 * tui/tui-disasm.c: Ditto.
11313 * tui/tui-hooks.c: Ditto.
11314 * tui/tui-io.c: Ditto.
11315 * tui/tui-layout.c: Ditto.
11316 * tui/tui-regs.c: Ditto.
11317 * tui/tui-source.c: Ditto.
11318 * tui/tui-stack.c: Ditto.
11319 * tui/tui-win.c: Ditto.
11320 * tui/tui-windata.c: Ditto.
11321 * tui/tui-winsource.c: Ditto.
11322
44944448
JB
113232011-01-05 Joel Brobecker <brobecker@adacore.com>
11324
11325 * configure.ac, gdb.1: Copyright year update.
11326
ebedcab5
JK
113272011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11328
11329 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11330 this_pc_in_block, morestack_msym and morestack_name. Check for
11331 "__morestack" minimal symbol there.
11332
e5cc9f32
JB
113332011-01-03 Joel Brobecker <brobecker@adacore.com>
11334
11335 * symfile.c (find_sym_fns): Add call to dont_repeat.
11336
7b6bb8da
JB
113372011-01-01 Joel Brobecker <brobecker@adacore.com>
11338
11339 Copyright year update in most files (performed by copyright.sh).
11340
71ce852c
JB
113412011-01-01 Joel Brobecker <brobecker@adacore.com>
11342
11343 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11344
c3c1ebe8 11345For older changes see ChangeLog-2010.
c906108c
SS
11346\f
11347Local Variables:
11348mode: change-log
11349left-margin: 8
11350fill-column: 74
11351version-control: never
57da7796 11352coding: utf-8
c906108c 11353End:
This page took 1.771479 seconds and 4 git commands to generate.