gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
744ab88c
SD
12011-11-27 Sanjoy Das <sdas@igalia.com>
2
3 Fix regression in jit.exp.
4 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
5 (jit_register_code): Set the jit_objfile_data field to the correct
6 value.
7
46ad3598
UW
82011-11-25  Uros Bizjak  <ubizjak@gmail.com>
9
10 * alpha-tdep.c (br_opcode): New.
11 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
12 (alpha_deal_with_atomic_sequence): New function.
13 (alpha_gdbarch_init): Handle single stepping of atomic sequences
14 with alpha_deal_with_atomic_sequence.
15
e4c5f296
TG
162011-11-24 Tristan Gingold <gingold@adacore.com>
17
18 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
19 fields. Add oso_sym, end_sym and nbr_syms.
20 (macho_register_oso): Change interface.
21 (macho_symtab_add_minsym): New function.
22 (macho_symtab_read): Rewritten.
23 (get_archive_prefix_len): Remove trailing blanks.
24 (oso_el_compare_name): Add comment.
25 (struct macho_sym_hash_entry): New structure.
26 (macho_relocate_common_syms): Remove.
27 (macho_sym_hash_newfunc): New function.
28 (macho_resolve_oso_sym_with_minsym): Likewise.
29 (macho_add_oso_symfile): Rewritten.
30 (macho_symfile_read_all_oso): Remove trailing blanks.
31 Adjust code to free oso vector.
32 (macho_symfile_read): Likewise.
33 Move code to initialize minimal symbol
34
130854df
MR
352011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
36
37 * mips-tdep.c (extended_offset): Fix formatting.
38
3d7bb9d9
DE
392011-11-23 Doug Evans <dje@google.com>
40
41 * dwarf2read.c (dw2_lookup_symtab): Add comment.
42 (dw2_expand_symtabs_with_filename): Ditto.
43 (dw2_expand_symtabs_matching): Ditto.
44 (dw2_map_symbol_filenames): Ditto.
45
1fbf5ada
JB
462011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
47
48 * ada-lang.c (assign_aggregate): Minor reformatting.
49
d984108d
JB
502011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
51
52 * ada-lang.c (assign_aggregate): Remove declaration of local
53 variable `i' which is shadowing another variable with the same
54 name declared in the outer scope.
55
18af8284
JB
562011-11-23 Joel Brobecker <brobecker@adacore.com>
57
58 * ada-lang.c (get_base_type): Renames base_type. Adjust all
59 calls throughout this file.
60
1fc7b5d7
JB
612011-11-23 Joel Brobecker <brobecker@adacore.com>
62
63 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
64 FormatMessage.
65
36dfb11c
TT
662011-11-22 Tom Tromey <tromey@redhat.com>
67
68 PR mi/8444:
69 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
70 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
71 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
72 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
73 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
74 (print_it_catch_syscall, print_it_catch_exec)
75 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
76 (bpstat_print): Add 'kind' argument. Handle
77 TARGET_WAITKIND_LOADED.
78 * infrun.c (normal_stop): Update for bpstat_print change. Don't
79 handle TARGET_WAITKIND_LOADED here.
80 * breakpoint.h (bpstat_print): Update.
81
5bd6aa83
TT
822011-11-22 Tom Tromey <tromey@redhat.com>
83
84 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
85
f5afdc18
TT
862011-11-22 Tom Tromey <tromey@redhat.com>
87
88 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
89 Use static_assert to check the size of
90 async_reason_string_lookup.
91 * common/gdb_assert.h (static_assert): New macro.
92
a3769e0c
AM
932011-11-22 Alan Modra <amodra@gmail.com>
94
95 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
96 destination calculation. Don't expect >> to sign extend. Don't
97 add a break if branch lands inside the sequence anywhere.
98
56767571
KS
992011-11-21 Keith Seitz <keiths@redhat.com>
100
101 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
102 -var-evaluate-expression of an enumeration and fix expected result.
103 * gdb.mi/mi2-varvdisplay.exp: Likewise.
104
8443c207
KY
1052011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
106
107 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
108 the case where osdata->items is empty. Rename column names to a
109 canonical form to avoid problems with unusual column names.
110
97643830
YQ
1112011-11-21 Yao Qi <yao@codesourcery.com>
112
113 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
114
f196051f
SS
1152011-11-20 Stan Shebs <stan@codesourcery.com>
116
117 * NEWS: Mention tracepoint additions.
118 * breakpoint.h (struct tracepoint): New field traceframe_usage.
119 * breakpoint.c (print_one_breakpoint_location): Identify
120 tracepoints as such when reporting hit counts, report
121 trace buffer usage.
122 (create_tracepoint_from_upload): Copy status info.
123 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
124 add fields user_name, notes, start_time, stop_time.
125 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
126 * tracepoint.c (trace_user): New global.
127 (trace_notes): New global.
128 (trace_stop_notes): New global.
129 (start_tracing): Add argument and trace note handling.
130 (stop_tracing): Ditto.
131 (trace_start_command): Add notes argument.
132 (trace_stop_command): Ditto.
133 (trace_status_command): Report additional status info.
134 (trace_status_mi): Similarly.
135 (trace_save): Update, record tracepoint status.
136 (set_disconnected_tracing): Call target method directly.
137 (send_disconnected_tracing_value): Remove.
138 (set_trace_user): New function.
139 (set_trace_notes): New function.
140 (set_trace_stop_notes): New function.
141 (parse_trace_status): Handle additional status.
142 (parse_tracepoint_status): New function.
143 (parse_tracepoint_definition): Call it.
144 (tfile_get_tracepoint_status): New function.
145 (init_tfile_ops): Use it.
146 (_initialize_tracepoint): Add new setshows.
147 * target.h (struct target_ops): New methods to_get_tracepoint_status
148 and to_set_trace_notes.
149 (target_get_tracepoint_status): New macro.
150 (target_set_trace_notes): New macro.
151 * target.c (update_current_target): Add new methods.
152 * remote.c (remote_get_tracepoint_status): New function.
153 (remote_set_trace_notes): New function.
154 (init_remote_ops): Add them.
155 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
156 (mi_cmd_trace_stop): Ditto.
157
3623dc3a
SD
1582011-11-20 Sanjoy Das <sdas@igalia.com>
159
160 * jit.c: Include regcache.h.
161 (jit_gdbarch_data, jit_frame_unwind): New static variables.
162 (jit_unwind_reg_set_impl, free_reg_value_impl)
163 (jit_unwind_reg_get_impl, jit_frame_sniffer)
164 (jit_frame_unwind_stop_reason, jit_frame_this_id)
165 (jit_frame_prev_register, jit_dealloc_cache)
166 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
167 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
168 jit_prepend_unwinder.
169 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
170
1825a88d
SD
1712011-11-20 Sanjoy Das <sdas@igalia.com>
172
173 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
174 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
175 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
176 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
177 (finalize_symtab, jit_object_close_impl)
178 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
179 (free_objfile_data): New functions.
180 (_initialize_jit): Register jit_objfile_data with a proper cleanup
181 function.
182
784c47ee
SD
1832011-11-20 Sanjoy Das <sdas@igalia.com>
184
185 * jit.c: Include gdb-dlfcn.h.
186 (loaded_jit_reader, reader_init_fn_sym): New static variables.
187 (jit_reader_load, jit_reader_load_command)
188 (jit_reader_unload_command): New functions.
189 (_initialize_jit): Add commands "jit-reader-load" and
190 "jit-reader-unload".
191
a2d08b9e
SD
1922011-11-20 Sanjoy Das <sdas@igalia.com>
193
194 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
195 * config.in: Add new #define HAVE_LIBDL.
196 * configure.ac: Add check for -ldl.
197 * configure: Re-generated by autoconf.
198 * gdb-dlfcn.c: New file.
199 * gdb-dlfcn.h: New file.
200
b8e0a31c
SD
2012011-11-20 Sanjoy Das <sdas@igalia.com>
202
203 * config.in: Add new #defines: JIT_READER_DIR and
204 JIT_READER_DIR_RELOCATABLE.
205 * configure.ac: New GDB directory entry for jit-reader-dir.
206 * configure: Re-generated by autoconf.
207 * jit.c: New static variable: const char *jit_reader_dir.
208 (_initialize_jit): Relocate jit_reader_dir.
209
f997c383
SD
2102011-11-20 Sanjoy Das <sdas@igalia.com>
211
212 * Makefile.in: Add jit-reader.h as a header. Have it installed in
213 $(includedir)/gdb.
214 * configure.ac: Generate a correct value for TARGET_PTR for
215 jit-reader.h. Tell configure to generate jit-reader.h from
216 jit-reader.in.
217 * configure: Re-generated by autoconf.
218 * jit-reader.in: New file.
219 * jit.c: Include jit-reader.h.
220
dc8c0494
SD
2212011-11-20 Sanjoy Das <sdas@igalia.com>
222
223 * MAINTAINERS (Write After Approval): Add myself to the list.
224
01efb936
UW
2252011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
226
227 * findvar.c (read_frame_register_value): Respect value_offset
228 of the register value. Remove big-endian special case.
229
732f3f12
TT
2302011-11-18 Tom Tromey <tromey@redhat.com>
231
232 PR build/7196:
233 * remote.c (putpkt_for_catch_errors): New function.
234 (remote_kill): Use it.
235
bfccc43c
YQ
2362011-11-18 Yao Qi <yao@codesourcery.com>
237
238 * breakpoint.c (create_breakpoint): Produce query message according to
239 breakpoint's type.
240 Allocate tracepoint per correct type.
241 Don't check SALs for pending fast tracepoints.
242 * tracepoint.c (process_tracepoint_on_disconnect): New.
243 (disconnect_tracing): Call process_tracepoint_on_disconnect.
244
3ea46bff
YQ
2452011-11-18 Yao Qi <yao@codesourcery.com>
246
247 * breakpoint.c (install_breakpoint): Add one more parameter so that
248 update_global_location_list is called conditionally.
249 (create_fork_vfork_event_catchpoint): Update.
250 (create_syscall_event_catchpoint): Update.
251 (create_breakpoint_sal): Update.
252 (create_breakpoint_sal): Update. Call do_cleanups before
253 install_breakpoint.
254 * ada-lang.c (create_ada_exception_catchpoint): Update.
255 * breakpoint.h (install_breakpoint): Update declaration.
256
598cfb71
UW
2572011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
258
259 * spu-tdep.c (spu_return_value): Fix handling of
260 TYPE_CALLING_CONVENTION annotation.
261
caf4328c
UW
2622011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
263
264 * skip.c (skip_function_command): Work around uninitialized
265 variable warning.
266
2b54dda2
DM
2672011-11-16 David S. Miller <davem@davemloft.net>
268
269 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
270 'tv_usec' to long for printf since these fields have a type which
271 varies.
272
93bf33fd
DE
2732011-11-15 Doug Evans <dje@google.com>
274
275 * buildsym.c (add_symbol_to_list): Delete outdated comment.
276
9cc10fd1
PK
2772011-11-15 Paul Koning <paul_koning@dell.com>
278
279 * python/py-type.c (typy_get_composite): New function.
280 (typy_nonzero): New function.
281 (typy_values): Rename from typy_fields.
282 (typy_fields): New function.
283 (typy_length): Raise exception if not struct, union, or enum type.
284 (typy_getitem): Ditto.
285 (typy_has_key): Ditto.
286 (typy_make_iter): Ditto.
287
c011a4f4
DE
2882011-11-15 Doug Evans <dje@google.com>
289
290 * NEWS: Mention new parameter basenames-may-differ.
291 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
292 ! basenames_may_differ.
293 * psymtab.c (lookup_partial_symtab): Ditto.
294 * symtab.c (lookup_symtab): Ditto.
295 (basenames_may_differ): New global.
296 (_initialize_symtab): New parameter basenames-may-differ.
297 * symtab.h (basenames_may_differ): Declare.
298
865ecab4
LM
2992011-11-15 Pedro Alves <pedro@codesourcery.com>
300 Luis Machado <lgustavo@codesourcery.com>
301
302 * auxv.c: Include observer.h.
303 (auxv_inferior_data_cleanup): New.
304 (invalidate_auxv_cache_inf): New.
305 (invalidate_auxv_cache): New.
306 (get_auxv_inferior_data): New.
307 (auxv_inferior_data): New static global.
308 (auxv_info): New structure.
309 (target_auxv_search): Use get_auxv_inferior_data instead of
310 target_read_alloc and don't free cached buffers.
311 (fprint_target_auxv): Likewise
312 (_initialize_auxv): Register per-inferior auxv cache and register
313 observers to invalidate auxv cache when needed.
314
ed59ded5
DE
3152011-11-14 Doug Evans <dje@google.com>
316
317 Make "!" an alias for "shell".
318 * NEWS: Add mention.
319 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
320 adding "!" command, always add it.
321 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
322 command of length one.
323
405f8e94
SS
3242011-11-14 Stan Shebs <stan@codesourcery.com>
325 Kwok Cheung Yeung <kcy@codesourcery.com>
326
327 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
328 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
329 the minimum instruction size for fast tracepoints.
330 * target.h (struct target_ops): Add new method
331 to_get_min_fast_tracepoint_insn_len.
332 (target_get_min_fast_tracepoint_insn_len): New.
333 * target.c (update_current_target): Set up new target operation.
334 * remote.c (remote_write_bytes_aux): Fix typo.
335 (remote_get_min_fast_tracepoint_insn_len): New.
336 (init_remote_ops): Initialize new field.
337
3e05895e
TT
3382011-11-14 Tom Tromey <tromey@redhat.com>
339
340 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
341 (encode_actions): Likewise.
342
1e4d1764
YQ
3432011-11-14 Yao Qi <yao@codesourcery.com>
344
345 * remote.c (struct remote_state): <install_in_trace> new field.
346 (PACKET_InstallInTrace): New enum value.
347 (remote_install_in_trace_feature): Support InstallInTrace.
348 (remote_supports_install_in_trace): Likewise.
349 (remote_protocol_features): Likewise.
350 (_initialize_remote): Likewise.
351 (remote_can_download_tracepoint): New.
352 * target.h (struct target): New field
353 `to_can_download_tracepoint'.
354 (target_can_download_tracepoint): New macro.
355 * target.c (update_current_target): Update.
356 * breakpoint.h (struct bp_location): Add comment on field
357 `duplicate'.
3ccd4ac6
YQ
358 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
359 and tracepoint.
1e4d1764
YQ
360 (remove_breakpoints): Don't remove tracepoints.
361 (tracepoint_locations_match ): New.
362 (breakpoint_locations_match): Call it.
363 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
364 (download_tracepoint_locations): New.
365 (update_global_location_list): Call it.
366 * tracepoint.c (find_matching_tracepoint): Delete.
367 (find_matching_tracepoint_location): Renamed from
368 find_matching_tracepoint. Return bp_location rather than
369 tracepoint.
370 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
371 tracepoint is found.
372
e8ba3115
YQ
3732011-11-14 Yao Qi <yao@codesourcery.com>
374
375 * target.h (struct target): <to_download_tracepoint> Change type
376 of parameter from tracepoint to bp_location.
377 * target.c (update_current_target): Update.
378 * tracepoint.c (start_tracing): Update.
379 * remote.c (remote_download_tracepoint): Remove loop for each location
380 of a tracepoint.
381
edcc485a
MR
3822011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
383
384 * i386-nat.c (i386_insert_hw_breakpoint): Call
385 i386_update_inferior_debug_regs.
386 (i386_remove_hw_breakpoint): Likewise.
387
3742cc8b
YQ
3882011-11-14 Yao Qi <yao@codesourcery.com>
389
390 * breakpoint.c (init_raw_breakpoint): Call
391 add_location_to_breakpoint to replace duplicated code.
392 (add_location_to_breakpoint): Adjust the breakpoint's
393 address prior to allocating a location.
394
71eba9c2 3952011-11-12 Matt Rice <ratmice@gmail.com>
396
397 * macrocmd.c (macro_no_macro_info): New function.
398 (macro_expand_command): Use macro_no_macro_info.
399 (macro_expand_once_command): Ditto.
400 (info_macro_command): Add argument processing,
401 move info_definitions_command here.
402 (_initialize_macrocmd): Remove info definitions command.
403 Add arguments to info macro help text.
404 * NEWS: Replace info definitions command with new info macro options.
405
731971ed
KS
4062011-11-11 Keith Seitz <keiths@redhat.com>
407
408 PR gdb/12843
409 * linespec.c (locate_first_half): Keep ':' if it looks
410 like it could be part of a Windows path starting with
411 a drive letter.
412
6953d224
PA
4132011-11-10 Pedro Alves <pedro@codesourcery.com>
414
415 * linux-nat.c (linux_nat_wait): Don't force waking up the event
416 loop when returning a TARGET_WAITKIND_NO_RESUMED.
417
0c94aa73
PA
4182011-11-10 Pedro Alves <pedro@codesourcery.com>
419
420 * target.c (target_waitstatus_to_string): Handle
421 TARGET_WAITKIND_NO_RESUMED.
422
f6b47be4
DE
4232011-11-10 Doug Evans <dje@google.com>
424
74e2f255
DE
425 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
426 `need_fullname'.
427 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
428 (map_partial_symbol_filenames): Ditto. All callers updated.
429 * psymtab.h (map_partial_symbol_filenames): Update prototype.
430 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
431 parameter need_fullname.
432
256f06f3
DE
433 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
434 * source.c (symtab_to_fullname): Ditto.
435
50f182aa
DE
436 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
437 * gdb-demangle.h: ... here. New file.
438 * demangle.c: #include "gdb-demangle.h".
439 (_initialize_demangler): Use initialize_file_ftype for prototype.
440 Move "set demangle" and "set asm-demangle" parameters here from utils.c
441 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
442 from utils.c
443 * utils.c: Update. #include "gdb-demangle.h".
444 * symtab.h (asm_demangle): Delete.
445 (demangle): Move declaration next to use.
446 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
447 * dwarf2read.c: #include "gdb-demangle.h".
448 * gnu-v2-abi.c: Ditto.
449 * jv-typeprint.c: Ditto.
450 * mdebugread.c: Ditto.
451 * p-typeprint.c: Ditto.
452 * stabsread.c: Ditto.
453 * printcmd.c: Ditto.
454 (asm_demangle): Delete declaration.
455 * tui/tui-stack.c: #include "gdb-demangle.h".
456
f6b47be4
DE
457 * python/py-type.c (typy_fields_items): Call check_typedef.
458
22355c90
JB
4592011-11-10 Joel Brobecker <brobecker@adacore.com>
460
461 * findvar.c (read_frame_register_value): Read the correct bytes
462 from registers on big-endian architectures.
463
bd119cf1 4642011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
465
466 * procfs.c (load_syscalls): Make a cleanup.
467 (open_procinfo_files): fd==0 is ok.
468
0a86f364
JB
4692011-11-10 Joel Brobecker <brobecker@adacore.com>
470
471 * procfs.c (iterate_over_mappings): Call do_cleanups before
472 returning.
473
9bc118a5
DE
4742011-11-09 Doug Evans <dje@google.com>
475
476 * gdbtypes.c (check_typedef): Document that this function can
477 throw an exception.
478
a7860e76
TT
4792011-11-09 Tom Tromey <tromey@redhat.com>
480
481 PR c++/13342:
482 * valops.c (value_full_object): Return early if real type is
483 smaller than the enclosing type.
484
60965737
YQ
4852011-11-08 Yao Qi <yao@codesourcery.com>
486
487 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
488
72a2e3dc
MI
4892011-11-08 Meador Inge <meadori@codesourcery.com>
490
491 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
492 register when the frame can't be determined.
493 * arm-tdep.c (arm_analyze_prologue): Ditto.
494
ce3b0ff7
SS
4952011-11-07 Stan Shebs <stan@codesourcery.com>
496
497 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
498
2b914b52
JB
4992011-11-07 Joel Brobecker <brobecker@adacore.com>
500
501 * infrun.c (handle_inferior_event): Minor reformatting.
502
6f809020
DE
5032011-11-05 Doug Evans <dje@google.com>
504
505 * source.c (forget_cached_source_info_for_objfile): Move call to
506 objfile->sf->qf->forget_cached_source_info outside of
507 ALL_OBJFILE_SYMTABS loop.
508 (forget_cached_source_info): Delete unused variable `s'.
509
75d12218
JK
5102011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
511
512 * i386-nat.c (dr_ref_count): Remove unused variable.
513
e565b837
DE
5142011-11-05 Doug Evans <dje@google.com>
515
516 * main.c (captured_main): Set lim_at_start before calling
517 make_command_stats_cleanup.
518
0a1c4d10
DE
5192011-11-04 Doug Evans <dje@google.com>
520
521 * utils.c: #include "timeval-utils.h".
522 (cmd_stats): Rename start_time to start_cpu_time.
523 New member start_wall_time.
524 (report_command_stats): Report wall time.
525 (make_command_stats_cleanup): Record start wall time.
526
a1d705ee
TT
5272011-11-04 Tom Tromey <tromey@redhat.com>
528
529 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
530
81de56be
RO
5312011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
532
533 * coff-pe-read.c: Include defs.h before bfd.h.
534
3ab1ec27
PM
5352011-11-04 Phil Muldoon <pmuldoon@redhat.com>
536
537 PR Python/13345
538
539 * python/python.c (python_run_simple_file): Expand tilde in path.
540
cd829959
PM
5412011-11-04 Phil Muldoon <pmuldoon@redhat.com>
542
543 PR Python/13363
544
545 * python/py-type.c (typy_lookup_type): Do not return a type in
546 an exception handler.
547
080ad648
JK
5482011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
549 Eli Zaretskii <eliz@gnu.org>
550
551 * linux-nat.c (_initialize_linux_nat): Improve help
552 for `info proc stat', `info proc status', `info proc cwd',
553 `info proc cmdline' and `info proc exe'.
554
3065dfb6
SS
5552011-11-02 Stan Shebs <stan@codesourcery.com>
556
557 String collection for tracepoints.
558 * NEWS: Mention string collection.
559 * common/ax.def (tracenz): New bytecode.
560 * ax-gdb.h (trace_string_kludge): Declare.
561 * ax-gdb.c: Include valprint.h and c-lang.h.
562 (trace_string_kludge): New global.
563 (gen_traced_pop): Add string case.
564 (agent_command): Add string case.
565 * tracepoint.h (decode_agent_options): Declare.
566 * tracepoint.c: Include cli-utils.h.
567 (decode_agent_options): New function.
568 (validate_actionline): Call it.
569 (encode_actions_1): Ditto.
570 * target.h (struct target_ops): New method to_supports_string_tracing.
571 (target_supports_string_tracing): New macro.
572 * target.c (update_current_target): Add to_supports_string_tracing.
573 * remote.c (struct remote_state): New field string_tracing.
574 (remote_string_tracing_feature): New function.
575 (remote_protocol_features): New feature tracenz.
576 (remote_supports_string_tracing): New function.
577 (init_remote_ops): Set to_supports_string_tracing.
578
f179e162
JK
5792011-11-02 Pedro Alves <pedro@codesourcery.com>
580 Jan Kratochvil <jan.kratochvil@redhat.com>
581
582 * linux-nat.c: Include cli/cli-utils.h.
583 (enum info_proc_what): New.
584 (linux_nat_info_proc_cmd): Rename to ...
585 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
586 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
587 status_f and stat_f from WHAT. Throw error on extra parameters.
588 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
589 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
590 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
591 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
592 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
593 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
594 `info proc cmdline', `info proc exe' and `info proc all' as real
595 subcommands of `info proc'.
596
7b35ec7f 5972011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
598
599 * Makefile.in: (SFILES): Add skip.c.
600 (HFILES_NO_SRCDIR): Add skip.h.
601 (COMMON_OBS): Add skip.o.
602 * skip.h, skip.c: New.
603 * breakpoint.h (set_default_breakpoint): Remove.
604 (get_sal_arch): Declare.
605 * breakpoint.c: Remove default_breakpoint_valid,
606 default_breakpoint_address, default_breakpoint_symtab,
607 default_breakpoint_line, default_breakpoint_pspace variables.
608 (get_sal_arch): Make public.
609 (set_default_breakpoint): Remove.
610 (parse_breakpoint_sals, create_breakpoint, clear_command,
611 decode_line_spec_1): Remove uses of default_breakpoint variables;
612 replaced with function calls into stack.c.
613 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
614 * cli/cli-cmds.c: Add skiplist.
615 (init_cmd_lists): Initialize skiplist.
616 (init_cli_cmds): Fix comment (classes of commands appear in
617 alphabetical order).
618 * infrun.c (handle_inferior_event): Add check that we don't step into
619 a function whose pc is marked for skip.
620 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
621 last_displayed_addr, last_displayed_symtab, last_displayed_line
622 variables.
623 (set_last_displayed_sal): New static function.
624 (print_frame_info): Switch call to set_default_breakpoint to call to
625 set_last_displayed_sal.
626 (clear_last_displayed_sal, last_displayed_sal_is_valid,
627 get_last_displayed_pspace, get_last_displayed_addr,
628 get_last_displayed_symtab, get_last_displayed_line,
629 get_last_displayed_sal): New public functions.
630 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
631 get_last_displayed_pspace, get_last_displayed_addr,
632 get_last_displayed_symtab, get_last_displayed_line,
633 get_last_displayed_sal): Declare.
634
b60e1588
JL
6352011-11-01 Justin Lebar <justin.lebar@gmail.com>
636
637 * MAINTAINERS (Write After Approval): Add myself to the list.
638
d31647d2
YQ
6392011-10-29 Yao Qi <yao@codesourcery.com>
640
641 * infcmd.c (disconnect_command): Call disconnect_tracing.
642
b1d96efd
JK
6432011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
644
645 Code cleanup.
646 * symtab.c (skip_prologue_sal): Code reformatting.
647
4dfb2365
JK
6482011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
649
650 PR symtab/13208
651 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
652 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
653 SAI.
654
0e5bf2a8
PA
6552011-10-28 Pedro Alves <pedro@codesourcery.com>
656
657 * linux-nat.c (linux_nat_filter_event): Remove `options'
658 parameter, and dead code that used it. If we're handling a
659 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
660 in our lwp list, re-add it.
661 (check_zombie_leaders): New.
662 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
663 wait for children with WNOHANG, and always wait for all children.
664 Don't check for no resumed children upfront. Simplify wait loop.
665 Check for zombie thread group leaders after handling all wait
666 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
667 unwaited-for children left.
668 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
669 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
670 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
671 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
672
821296b7
SA
6732011-10-28 Sterling Augustine <saugustine@google.com>
674
675 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
676 * symtab.c (free_completion_list): New function.
677 (do_free_completion_list): Likewise.
678 (default_make_symbol_completion_list_break_on): New variable
679 back_to. Call make_cleanup and discard_cleanups.
680 (make_source_files_completion_list): Likewise.
681
03c3051a
PK
6822011-10-28 Paul Koning <paul_koning@dell.com>
683
684 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
685 * NEWS: Mention deep_items.
686
8e7ebaf5
PA
6872011-10-28 Alen Skondro <askondro@gmail.com>
688
8de33dc2 689 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
690 defined.
691
e0c6ef61
MI
6922011-10-27 Meador Inge <meadori@codesourcery.com>
693
694 * MAINTAINERS (Write After Approval): Add myself to the list.
695
b56d6f31
JB
6962011-10-27 Joel Brobecker <brobecker@adacore.com>
697
698 * value.h (read_frame_register_value): Add declaration.
699 * findvar.c (read_frame_register_value): New function.
700 (value_from_register): Use read_frame_register_value
701 instead of get_frame_register_value + value_contents_copy
702 to get value contents.
703
d234ef5c
DE
7042011-10-27 Doug Evans <dje@google.com>
705
706 * cli/cli-cmds.c (source_script_with_search): Pass full path to
707 source_script_from_stream if it may have been found on the search path.
708 * python/py-auto-load.c (source_section_scripts): Pass full path to
709 source_python_script_for_objfile.
710 * python/python.c (source_python_script): Delete stream parameter.
711 All callers updated.
712 (source_python_script_for_objfile): Ditto.
713 * python/python-internal.h (source_python_script_for_objfile): Update.
714 * python/python.h (source_python_script): Update.
715
d849d44f
TT
7162011-10-27 Tom Tromey <tromey@redhat.com>
717
718 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
719 (ada_sals_for_line): Remove declarations.
720
2231f1fb
KP
7212011-10-27 Kevin Pouget <kevin.pouget@st.com>
722
723 Move unwind reasons to an external .def file
724 * frame.c (frame_stop_reason_string): Rewrite using
725 unwind_stop_reasons.def.
726 * frame.h (enum unwind_stop_reason): Likewise.
727 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
728 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
729 constants for bound-checking.
730 * unwind_stop_reasons.def: New file.
731 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
732 instead of a distinct value.
733
f77b9a5d
PM
7342011-10-27 Phil Muldoon <pmuldoon@redhat.com>
735
736 PR python/13331
737
738 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
739 (convert_values_to_python): Return on Python tuple allocation
740 failure. Return NULL on value conversion error.
741
76dce0be
PM
7422011-10-27 Phil Muldoon <pmuldoon@redhat.com>
743
744 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
745 (bppy_set_task): Ditto.
746 (bppy_delete_breakpoint): Ditto.
747 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
748 (gdbpy_lookup_global_symbol): Ditto.
749 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
750 * python/py-frame.c (frapy_is_valid): Ditto.
751 (frame_info_to_frame_object): Ditto.
752 * python/py-type.c (typy_lookup_type): Ditto.
753 (typy_getitem): Ditto.
754 (typy_has_key): Ditto.
755 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
756
f17b6955
JB
7572011-10-26 Joel Brobecker <brobecker@adacore.com>
758
759 * gdbarch.h: Regenerate.
760
86ba1042
JB
7612011-10-26 Meador Inge <meadori@codesourcery.com>
762
763 * gdbarch.sh (function_list): Use 'pstring' when printing
764 'gcore_bfd_target'.
765 * gdbarch.c: Regenerate.
766
c34fd852
UW
7672011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
768
769 * regcache.c (registers_changed_ptid): Invalidate thread architecture
770 and frame caches if PTID refers to all threads of a process.
771
931bb47f
UW
7722011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
773
774 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
775 to create_breakpoint.
776
88aed45e
UW
7772011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
778
779 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
780 (ppc_sysv_abi_push_dummy_call): Use it.
781 (do_ppc_sysv_return_value): Likewise.
782 (ppc64_sysv_abi_push_dummy_call): Likewise.
783 (ppc64_sysv_abi_return_value): Likewise.
784
3eaf3fa2
PK
7852011-10-26 Paul Koning <paul_koning@dell.com>
786
787 * python/lib/gdb/types.py (deepitems): New function.
788
913460fc
PK
7892011-10-25 Paul Koning <paul_koning@dell.com>
790
791 PR python/13327
792
793 * python/py-value.c (value_to_value_object): Remove fetching of
794 the value if it was lazy.
795 (valpy_get_is_lazy): New function.
796 (valpy_fetch_lazy): New function.
797
2b5b9d09
JB
7982011-10-24 Joel Brobecker <brobecker@adacore.com>
799
800 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
801 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
802
e21ffe51
PA
8032011-10-24 Pedro Alves <pedro@codesourcery.com>
804
805 * linux-nat.c (linux_handle_extended_wait): When handling a clone
806 event, in non-stop, if not stopping, make sure the new lwp has
807 last_resume_kind set to resume_continue. Assert that when we're
808 resuming the new lwp, its last_resume_kind is resume_continue.
809
7aee8dc2
PA
8102011-10-24 Pedro Alves <pedro@codesourcery.com>
811
812 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
813 already set when marking the event thread as not executing in
814 non-stop mode.
815
4b4e080e
PA
8162011-10-24 Pedro Alves <pedro@codesourcery.com>
817
818 * infrun.c (handle_inferior_event): Add debug output for
819 TARGET_WAITKIND_NO_HISTORY.
820
baacfb07
PM
8212011-10-24 Phil Muldoon <pmuldoon@redhat.com>
822
823 * NEWS: Move set/show extended-prompt to "New Options". Expand
824 description. Fix typos.
825
8432bc41
PM
8262011-10-24 Phil Muldoon <pmuldoon@redhat.com>
827
828 PR python/13310
829
830 * python/py-param.c (call_doc_function): Correctly deference on
831 function exit.
832
6cda5a20
JB
8332011-10-21 Joel Brobecker <brobecker@adacore.com>
834
835 * ada-tasks.c (print_ada_task_info): Fix computation of
836 number of tasks displayed in command output.
837
13294f7d
JK
8382011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
839 Ulrich Weigand <uweigand@de.ibm.com>
840
841 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
842 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
843 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
844 gdbarch_pc_regnum and frame_unwind_register_unsigned by
845 gdbarch_unwind_pc.
846
460c1c54
CC
8472011-10-20 Cary Coutant <ccoutant@google.com>
848
849 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
850 section to...
851 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
852 flag. Adjust all callers.
853 (process_psymtab_comp_unit): Remove adjustment for type section.
854
a10964d1
AR
8552011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
856
857 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
858 arguments by adding OBJFILE. Instead of getting objfile from
859 symbol's symtab, use new argument OBJFILE.
860 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
861 arguments by adding OBJFILE.
862 * gdb/dwarf2read.c (new_symbol_full): Change call to
863 cp_scan_for_anonymous_namespaces to match new signature.
864 * gdb/stabsread.c (define_symbol): Change call to
865 cp_scan_for_anonymous_namespaces to match new signature.
866
27ca1a5b
PM
8672011-10-20 Phil Muldoon <pmuldoon@redhat.com>
868
869 PR python/13308
870 PR python/13309
871
872 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
873 leak.
874 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
875 leak. Delete unused variables.
876
9df2fbc4
PM
8772011-10-20 Phil Muldoon <pmuldoon@redhat.com>
878
879 PR python/12656
880
881 * python/py-frame.c (frapy_read_var): Use const struct *block.
882 * python/py-type.c (typy_lookup_typename): Likewise.
883 (typy_lookup_type): Likewise.
884 (typy_legacy_template_argument): Likewise.
885 (typy_template_argument): Likewise.
886 (gdbpy_lookup_type): Likewise.
887 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
888 * python/py-block.c (blpy_block_object): Likewise.
889 (blpy_iter): Likewise.
890 (blpy_get_start): Likewise.
891 (blpy_get_end): Likewise.
892 (blpy_get_function): Likewise.
893 (blpy_get_superblock): Likewise.
894 (set_block): Likewise.
895 (block_to_block_object): Likewise.
896 (block_object_to_block): Likewise.
897 (blpy_is_valid): Likewise.
898 (blpy_get_global_block): New function.
899 (blpy_get_static_block): New function.
900 (blpy_is_global): New function.
901 (blpy_is_static): New function.
902 * blockframe.c (block_innermost_frame): Likewise.
903 * valops.c (value_of_variable): Likewise.
904 * frame.h: Update prototypes.
905 * python/python-internal.h: Likewise.
906 * value.h: Likewise.
907
4743b735
CC
9082011-10-19 Cary Coutant <ccoutant@google.com>
909
910 * dwarf2read.c (create_debug_types_hash_table): Fix size of
911 type_offset field.
912
6caca83c
CC
9132011-10-19 Cary Coutant <ccoutant@google.com>
914
915 * dwarf2read.c (peek_abbrev_code): New function.
916 (dw2_get_file_names): Check for dummy compilation units.
917 (create_debug_types_hash_table): Likewise.
918 (process_psymtab_comp_unit): Likewise.
919 (load_partial_comp_unit): Likewise.
920 (load_full_comp_unit): Likewise.
921
43136979
AR
9222011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
923
924 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
925 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
926 pt_phdr if PT_PHDR was found.
927
0a07729b
TT
9282011-10-17 Joost van der Sluis <joost@cnoc.nl>
929
930 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
931 type or "<unnamed type"> when there is no name assigned.
932 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
933 avoid a sigint when no name is assigned.
934
21ae7a4d
JK
9352011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
936
937 Revert:
938 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
939 * dwarf2expr.c (ctx_no_read_reg): New function.
940 * dwarf2expr.h (ctx_no_read_reg): New declaration.
941 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
942 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
943 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
944
32d1c362
DE
9452011-10-16 Doug Evans <dje@google.com>
946
947 * NEWS: Document python gdb.printing.register_pretty_printer's new
948 `replace' parameter.
949
da096638
KS
9502011-10-14 Keith Seitz <keiths@redhat.com>
951
952 PR c++/13225
953 * eval.c (evaluate_subexp_standard): Do not construct
954 an array of types; pass the value array directly to
955 find_overload_match.
956 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
957 (rank_function): Take an array of values instead of types.
958 (rank_one_type): Add struct value * parameter.
959 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
960 (rank_function): For each argument, pass the argument's
961 value to rank_one_type.
962 (rank_one_type): Add VALUE parameter.
963 If the parameter type is a pointer and the argument type
964 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
965 VALUE is zero.
966 Update all calls to rank_one_type, passing NULL for new
967 VALUE parameter.
968 * valarith.c (value_user_defined_cpp_op): Do not construct
969 an array of types; pass the value array directly to
970 find_overload_match.
971 * valops.c (find_overload_method_list): Take an array of
972 values instead of types.
973 Save the type of OBJP for later use.
974 Update calls to find_oload_champ, and find_oload_champ_namespace.
975 (find_oload_champ_namespace): Take an array of values instead
976 of types.
977 (find_oload_champ_namespace_loop): Likewise.
978 (find_oload_champ): Likewise.
979 (classify_oload_match): Inspect all arguments
980 until INCOMPATIBLE is found. Return the worst badness found
981 otherwise.
982 (compare_parameters): Update call to rank_one_type.
983 * value.h (find_overload_match): Take an array of values instead
984 of types.
985
3957565a
JK
9862011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
987
988 Drop lazy lm_info reading.
989 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
990 l_addr_inferior, l_ld, l_next, l_prev and l_name.
991 (lm_info_read): New function.
992 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
993 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
994 lm_dynamic_from_link_map.
995 (lm_next, lm_prev, lm_name): Remove.
996 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
997 initialization incl. read_memory. No longer use lm_name.
998 (svr4_free_so): Drop lm_info->lm freeing.
999 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1000 explicit lm_addr and lm initialization.
1001 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1002 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1003 lm_name.
1004
cb08cc53
JK
10052011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1006 Paul Pluzhnikov <ppluzhnikov@google.com>
1007
1008 * defs.h (struct so_list): New forward declaration.
1009 (make_cleanup_free_so): New declaration.
1010 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1011 (svr4_free_so): Move the function here from downwards. Handle NULL
1012 so->lm_info.
1013 (svr4_free_library_list): New.
1014 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1015 Use more cleanups. Use new parameter ignore_first instead of
1016 ignore_first_link_map_entry.
1017 (svr4_current_sos): New variable ignore_first, initialize it. New
1018 variable back_to, use it for svr4_free_library_list protection.
1019 (svr4_free_so): Remove - move upwards.
1020 * utils.c: Include solist.h.
1021 (do_free_so, make_cleanup_free_so): New functions.
1022
22c05d8a
JK
10232011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1024
1025 Fix internal error regression.
1026 * value.c (value_primitive_field): Handle value_optimized_out. Move
1027 packed bitfields comment.
1028
d930d06e
TT
10292011-10-13 Tom Tromey <tromey@redhat.com>
1030
1031 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1032 always released.
1033
2ff6b080
TT
10342011-10-13 Tom Tromey <tromey@redhat.com>
1035
1036 * python/py-type.c (typy_has_key): Make 'field' const.
1037
d6c5869f
LM
10382011-10-13 Luis Machado <lgustavo@codesourcery.com>
1039
1040 * remote.c (remote_save_trace_data): Invert comparison.
1041
a70633a2
LM
10422011-10-13 Luis Machado <lgustavo@codesourcery.com>
1043
1044 * tracepoint.c (trace_save_command): Use filename instead of
1045 args when printing.
1046
e103e986
JK
10472011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1048
1049 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1050 if .size is 0.
1051
db24da6d
YQ
10522011-10-13 Yao Qi <yao@codesourcery.com>
1053
1054 PR gdb/12703
1055 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1056 whether insn is a 32-bit Thumb-2 instruction.
1057 (thumb_in_function_epilogue_p): Likewise.
1058 (thumb_get_next_pc_raw): Likewise.
1059 (arm_breakpoint_from_pc): Likewise.
1060
1d6edc3c
JK
10612011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1062
1063 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1064 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1065 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1066 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1067 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1068 zero DATA.
1069 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1070 validity.
1071 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1072 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1073 clear DATA on zero SIZE.
1074
adabb602
DE
10752011-10-12 Doug Evans <dje@google.com>
1076
1077 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1078 header->first_die_offset here. All callers updated.
1079
5048e516
JK
10802011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1081
1082 Fix compatibility with texinfo versions older than 4.12.
1083 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1084 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1085 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1086 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1087 * configure: Regenerate.
1088 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1089 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1090 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1091
0574c78f
GB
10922011-10-12 Gary Benson <gbenson@redhat.com>
1093
1094 * breakpoint.h (pc_at_non_inline_function): Declare.
1095 * breakpoint.c (is_non_inline_function,
1096 pc_at_non_inline_function): New functions.
1097 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1098 if the stop is at a location where functions cannot be inlined.
1099
12d9289a
PA
11002011-10-12 Pedro Alves <pedro@codesourcery.com>
1101
1102 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1103 the core wanted them stopped, or if they now have a pending event
1104 to report.
ecf8e7f5
PA
1105 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1106 down to stop_and_resume_callback.
1107 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1108 having new pending events after calling linux_nat_filter_event.
12d9289a 1109
96408a79
SA
11102011-10-11 Sterling Augustine <saugustine@google.com>
1111
1112 * dwarf2read.c: Undo inadvertent changes in previous commit.
1113
9c6c53f7
SA
11142011-10-11 Sterling Augustine <saugustine@google.com>
1115
1116 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1117 logic.
1118
0e8aefe7
UW
11192011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1120
1121 * symfile.c (separate_debug_file_exists): Fix condition.
1122
349d1385
DM
11232011-10-11 David S. Miller <davem@davemloft.net>
1124
1125 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1126 static.
1127 * regcache.h (regcache_restore): Remove declaration.
1128
205c306f
DM
1129 * gdbarch.sh: New field 'long_long_align_bit'.
1130 * gdbarch.c, gdbarch.h: Regenerate.
1131 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1132 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1133
941b2081
JK
11342011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1135
1136 Revert this part of:
1137 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1138 Support @entry in input expressions.
1139 * c-exp.y (ENTRY, unknown_cpp_name): New.
1140 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1141 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1142 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1143 (name_not_typename: ENTRY): New.
1144 (yylex): Recognize ENTRY.
1145
1146 Reimplement @entry in input expressions.
1147 * c-exp.y (ENTRY): New.
1148 (variable: name_not_typename ENTRY): New.
1149 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1150
3c4d7e12
PA
11512011-10-11 Pedro Alves <pedro@codesourcery.com>
1152
1153 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1154 parent and child's pids as soon as we detect a clone event.
1155 Adjust another debug message.
1156
ea23808b
PA
11572011-10-11 Pedro Alves <pedro@codesourcery.com>
1158
1159 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1160 not zombie instead of reading the whole file.
1161
904578ed
JK
11622011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1163
1164 Fix separate debuginfo warning with "remote:" access.
1165 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1166 * symfile.c (get_file_crc): New function with the code moved from ...
1167 (separate_debug_file_exists): ... this function, specifically variables
1168 buffer and count. New variable verified_as_different, set it. Remove
1169 file_crc initialization. Verify also if both files are not the same
1170 manually, if needed.
1171
51370a33
YQ
11722011-10-11 Yao Qi <yao@codesourcery.com>
1173
1174 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1175 to get address.
1176
0838fb57
DE
11772011-10-10 Doug Evans <dje@google.com>
1178
1179 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1180 libthread_db when we load libpthread or the main symbol file.
1181 (thread_db_inferior_created): New function.
1182 (_initialize_thread_db): Attach inferior_created observer.
1183 * linux-nat.c (linux_child_post_attach): Remove call to
1184 check_for_thread_db.
1185 (linux_child_post_startup_inferior): Ditto.
1186 * objfiles.h (OBJF_MAINLINE): Define.
1187 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1188 allocate_objfile when appropriate.
1189
623bd5b7
UW
11902011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1191
1192 PR gdb/13218
1193 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1194 Remove unused variables.
1195 (get_linux_version): Remove function.
1196 (_initialize_arm_linux_nat): Do not call it.
1197
79395f92
PA
11982011-10-10 Pedro Alves <pedro@codesourcery.com>
1199
1200 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1201 new clone lwp if the core asked it to stop. Don't pass on
1202 unexpected signals to the new clone; leave them pending instead.
1203
eff3df78
PA
12042011-10-10 Pedro Alves <pedro@codesourcery.com>
1205
1206 * linux-nat.c (resume_lwp): Remove redundant debug output.
1207
4b60df3d
PA
12082011-10-10 Pedro Alves <pedro@codesourcery.com>
1209
1210 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1211 last_resume_kind before clearing it, and use the copy instead to
1212 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1213 resume_clear_callback in the non-stop path too.
1214
6501578c
YQ
12152011-10-09 Yao Qi <yao@codesourcery.com>
1216
1217 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1218 Honor OPTIONS and VAL's type.
1219 (common_val_print, value_print): Update to pass one more parameter.
1220
5a56e9c5
DE
12212011-10-09 Doug Evans <dje@google.com>
1222
1223 Add new "alias" command.
1224 * NEWS: Mention new command.
1225 * command.h (valid_user_defined_cmd_name_p): Declare.
1226 * defs.h (make_cleanup_dyn_string_delete): Declare.
1227 * utils.c: #include "dyn-string.h".
1228 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1229 * cli/cli-cmds.c: #include "dyn-string.h".
1230 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1231 (init_cli_cmds): Add new command.
1232 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1233
509f0fd9
JK
12342011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1235
1236 Fix compatibility with older GCCs.
1237 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1238 * stack.c (read_frame_arg): Initialize val_deref.
1239
2bda9cc5
JK
12402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 Entry values NEWS entries, DWARF disassembly support.
1243 * NEWS: New entry values entry.
1244 (set print entry-values, show print entry-values)
1245 (set debug entry-values, show debug entry-values): New entries.
1246 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1247 indent. Remove variable start. Move header printing out. Respect
1248 INDENT. Support DW_OP_GNU_entry_value.
1249 (locexpr_describe_location_1): Move the header printing here, extend
1250 the disassemble_dwarf_expression passed parameters.
1251
a471c594
JK
12522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1253
1254 Display @entry parameter values even for references.
1255 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1256 coerce_ref_if_computed.
1257 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1258 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1259 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1260 existing push_dwarf_reg_entry_value call. Add new detection calling
1261 dwarf_block_to_dwarf_reg_deref. Update the error message.
1262 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1263 * dwarf2expr.h
1264 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1265 parameter deref_size, describe it in the comment.
1266 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1267 (dwarf_block_to_dwarf_reg_deref): New declaration.
1268 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1269 deref_size, describe it in the function comment. New variables
1270 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1271 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1272 describe it in the function comment. Fetch the alternative block
1273 accoring to DEREF_SIZE.
1274 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1275 (entry_data_value_free_closure, entry_data_value_funcs): New.
1276 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1277 outer_val, target_val, val and addr. Try to fetch and create also
1278 referenced value content.
1279 (pieced_value_funcs): NULL value for coerce_ref.
1280 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1281 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1282 coerce_ref_if_computed.
1283 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1284 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1285 * stack.c (read_frame_arg): Compare also dereferenced values.
1286 * value.c (value_computed_funcs): Make the parameter v const, use
1287 value_lval_const for it.
1288 (value_lval_const, coerce_ref_if_computed): New function.
1289 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1290 * value.h (struct lval_funcs): New field coerce_ref.
1291 (value_computed_funcs): Make the parameter v const.
1292 (value_lval_const, coerce_ref_if_computed): New declarations.
1293
36b11add
JK
12942011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1295
1296 Support @entry in input expressions.
1297 * c-exp.y (ENTRY, unknown_cpp_name): New.
1298 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1299 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1300 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1301 (name_not_typename: ENTRY): New.
1302 (yylex): Recognize ENTRY.
1303 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1304 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1305 Likewise.
1306 * parse.c (operator_length_standard): Likewise.
1307 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1308
3343315b
JK
13092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1310
1311 Display referenced values in backtraces.
1312 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1313 * stack.c (print_frame_arg): Likewise.
1314
ac71a68c
JK
13152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1316
1317 Make some lval_funcs methods to default on NULL.
1318 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1319 NULL.
1320 (value_assign): Check if lval_computed write method is NULL.
1321 * value.h (struct lval_funcs): Comment NULL values for read and write
1322 methods.
1323
e18b2753
JK
13242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1325
1326 Display @entry parameter values (without references).
1327 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1328 New functions.
1329 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1330 New declarations.
1331 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1332 entry record.
1333 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1334 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1335 functions.
1336 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1337 (loclist_read_variable_at_entry): New function.
1338 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1339 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1340 DW_AT_location, call dwarf_block_to_sp_offset for it.
1341 * frame.h (print_entry_values_no, print_entry_values_only)
1342 (print_entry_values_preferred, print_entry_values_if_needed)
1343 (print_entry_values_both, print_entry_values_compact)
1344 (print_entry_values_default, print_entry_values): New declarations.
1345 (struct frame_arg): New field entry_kind.
1346 (read_frame_arg): New parameter entryargp.
1347 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1348 arg->entry_kind. Optionally print the `@entry' suffix.
1349 (list_args_or_locals): New variable entryarg, initialize it.
1350 Initialize also entry_kind of arg and entryarg. Conditionalize
1351 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1352 xfree for entryarg.error.
1353 * stack.c (print_entry_values_no, print_entry_values_only)
1354 (print_entry_values_preferred, print_entry_values_if_needed)
1355 (print_entry_values_both, print_entry_values_compact)
1356 (print_entry_values_default, print_entry_values_choices)
1357 (print_entry_values): New variables.
1358 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1359 print the `@entry' suffix, possibly in combination for
1360 print_entry_values_compact.
1361 (read_frame_arg): New parameter entryargp, new variables entryval,
1362 entryval_error and val_equal. Read in also entryargp, respect
1363 print_entry_values, compare the values using val_equal, fill in also
1364 argp->entry_kind (together with entryargp->entry_kind).
1365 (print_frame_args): New variable entryarg, initialize it.
1366 Conditionalize print_frame_arg for arg, add print_frame_arg for
1367 entryarg. Call xfree for entryarg.error.
1368 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1369 * symtab.h (struct symbol_computed_ops): New field
1370 read_variable_at_entry.
1371
93d86cef
JK
13722011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1373
1374 Code reshuffle.
1375 * frame.h (struct frame_arg): New definition.
1376 (read_frame_arg): New declaration.
1377 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1378 (list_args_or_locals): ... the code here. New variable arg, call
1379 read_frame_arg and list_arg_or_local with it. Unify the
1380 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1381 arg.error.
1382 * stack.c (print_frame_arg): New functiom from the code of
1383 print_frame_args.
1384 (read_frame_arg): New function.
1385 (print_frame_args): Remove variable val. New variable arg, call
1386 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1387
2d6c5dc2
JK
13882011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1389
1390 Protect entry values against self tail calls.
1391 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1392 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1393
111c6489
JK
13942011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1395
1396 Recognize virtual tail call frames.
1397 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1398 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1399 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1400 * dwarf2-frame-tailcall.c: New file.
1401 * dwarf2-frame-tailcall.h: New file.
1402 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1403 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1404 REGS.PREV only after CIE execution.
1405 (struct dwarf2_frame_cache): New field tailcall_cache.
1406 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1407 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1408 parts, try to find entry_cfa_sp_offset. Call
1409 dwarf2_tailcall_sniffer_first.
1410 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1411 when appropriate.
1412 (dwarf2_frame_dealloc_cache): New function.
1413 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1414 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1415 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1416 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1417 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1418 * dwarf2loc.c (func_addr_to_tail_call_list)
1419 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1420 (call_site_find_chain_1, call_site_find_chain): New.
1421 * dwarf2loc.h (struct call_site_chain): New.
1422 (call_site_find_chain): New declaration.
1423 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1424 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1425 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1426 * stack.c (frame_info): Support also TAILCALL_FRAME.
1427
bb984ff1
JK
14282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 Tail call sites reader implementation.
1431 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1432 fill in TYPE_TAIL_CALL_LIST.
1433 * gdbtypes.h (struct func_type): New field tail_call_list.
1434 (struct call_site): New field tail_call_next.
1435 (TYPE_TAIL_CALL_LIST): New definition.
1436
8e3b41a9
JK
14372011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 Implement basic support for DW_TAG_GNU_call_site.
1440 * block.c: Include gdbtypes.h and exceptions.h.
1441 (call_site_for_pc): New function.
1442 * block.h (call_site_for_pc): New declaration.
1443 * defs.h: Include hashtab.h.
1444 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1445 declarations.
1446 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1447 ctx_no_push_dwarf_reg_entry_value.
1448 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1449 (dwarf_block_to_dwarf_reg): New function.
1450 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1451 (ctx_no_push_dwarf_reg_entry_value): New function.
1452 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1453 push_dwarf_reg_entry_value.
1454 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1455 declarations.
1456 * dwarf2loc.c: Include gdbcmd.h.
1457 (dwarf_expr_ctx_funcs): New forward declaration.
1458 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1459 (dwarf_expr_reg_to_entry_parameter)
1460 (dwarf_expr_push_dwarf_reg_entry_value): New.
1461 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1462 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1463 (needs_dwarf_reg_entry_value): New function.
1464 (needs_frame_ctx_funcs): Install it.
1465 (_initialize_dwarf2loc): New function.
1466 * dwarf2loc.h (entry_values_debug): New declaration.
1467 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1468 (read_call_site_scope): New forward declaration.
1469 (process_full_comp_unit): Copy call_site_htab.
1470 (process_die): Support DW_TAG_GNU_call_site.
1471 (read_call_site_scope): New function.
1472 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1473 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1474 (cleanup_htab): Delete.
1475 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1476 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1477 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1478 FIELD_LOC_KIND_DWARF_BLOCK.
1479 * gdbtypes.h (enum field_loc_kind): New entry
1480 FIELD_LOC_KIND_DWARF_BLOCK.
1481 (struct main_type): New loc entry dwarf_block.
1482 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1483 (TYPE_FIELD_DWARF_BLOCK): New.
1484 * python/py-type.c: Include dwarf2loc.h.
1485 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1486 internal_error call on unknown FIELD_LOC_KIND.
1487 * symtab.h (struct symtab): New field call_site_htab.
1488 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1489 (core_addr_hash, core_addr_eq): New functions.
1490
b6cdc2c1
JK
14912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 Code reshuffle.
1494 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1495 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1496 calling_convention under func_stuff there.
1497 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1498 (init_type) <TYPE_CODE_FUNC>: Likewise.
1499 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1500 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1501 * gdbtypes.h (enum type_specific_kind): Change
1502 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1503 (struct main_type) <type_specific>: Change calling_convention to
1504 func_stuff. Move calling_convention to ...
1505 (struct func_type): ... this new struct.
1506 (INIT_FUNC_SPECIFIC): New #define.
1507 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1508
181cebd4
JK
15092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1510
1511 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1512 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1513 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1514 ctx->ref_addr_size. Handle its invalid value.
1515 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1516 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1517 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1518 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1519 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1520 (dwarf2_per_cu_ref_addr_size): New function.
1521
c471e790
JK
15222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1523
1524 Code cleanup.
1525 * dwarf2read.c (per_cu_header_read_in): New function.
1526 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1527 variables cu_header_local and cu_headerp.
1528
741f5e3c
JK
15292011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1530
1531 Fix initial language detection with -readnow.
1532 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1533 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1534 searches only for global symbols.
1535
a73d2258
JK
15362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1537
1538 Fix printed anonymous struct name.
1539 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1540 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1541 (anonymous_struct_prefix): New function.
1542 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1543 (dwarf2_name): Strip for anonymous structs any prefixes.
1544
749fd4ea
DE
15452011-10-07 Doug Evans <dje@google.com>
1546
1fa57852
DE
1547 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1548 `replace'.
1549
690a4937
DE
1550 * python/lib/gdb/printing.py: Whitespace cleanup.
1551
749fd4ea
DE
1552 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1553 warning.
1554
4c38200f
PA
15552011-10-07 Pedro Alves <pedro@codesourcery.com>
1556
1557 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1558 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1559 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1560 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1561 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1562 (arm_linux_remove_watchpoint): Adjust.
1563 * i386-linux-nat.c (i386_linux_dr_set_control)
1564 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1565 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1566 (ia64_linux_remove_watchpoint): Adjust.
1567 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1568 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1569 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1570 (ppc_linux_insert_mask_watchpoint)
1571 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1572 (ppc_linux_remove_watchpoint): Adjust.
1573 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1574 Adjust.
1575
b7ff339d
CV
15762011-10-07 Corinna Vinschen <vinschen@redhat.com>
1577
1578 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1579 (clear_win32_environment): New function for Cygwin to clear out
1580 Win32 environment.
1581 (windows_create_inferior): Prepare new environment from in_env
1582 for Cygwin, too.
1583
f287c1f3
PM
15842011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1585
5631e596 1586 PR python/13264
f287c1f3
PM
1587 * python/py-value.c (valpy_call): Check that arguments are
1588 a tuple.
1589 (is_intlike): Remove call to CHECK_TYPEDEF.
1590 (valpy_nonzero): Catch GDB exceptions.
1591 (valpy_absolute): Ditto.
1592 (valpy_lazy_string): Ditto.
1593 (valpy_call): Ditto.
1594 (valpy_get_is_optimized_out): Ditto.
1595 (valpy_long): Ditto.
1596 (valpy_float): Ditto.
1597 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1598 (valpy_richcompare): Ditto.
1599
03583c20
UW
16002011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1601
1602 * inferior.h (disable_randomization): Declare.
1603 * infrun.c (disable_randomization): New global variable.
1604 (show_disable_randomization): New function.
1605 (set_disable_randomization): Likewise.
1606 (_initialize_infrun): Install set/show disable-randomization
1607 commands.
1608 * linux-nat.c (disable_randomization): Remove.
1609 (show_disable_randomization): Likewise.
1610 (set_disable_randomization): Likewise.
1611 (_initialize_linux_nat): No longer install set/show
1612 disable-randomization commands here.
1613 (linux_nat_supports_disable_randomization): New function.
1614 (linux_nat_add_target): Install it.
1615 * remote.c (PACKET_QDisableRandomization): New enum value.
1616 (remote_protocol_packets): Support QDisableRandomization.
1617 (_initialize_remote): Likewise.
1618 (remote_supports_disable_randomization): New function.
1619 (init_remote_ops): Install it.
1620 (extended_remote_supports_disable_randomization): New function.
1621 (init_extended_remote_ops): Install it.
1622 (extended_remote_disable_randomization): New function.
1623 (extended_remote_create_inferior_1): Call it.
1624 * target.h (struct target_ops): Add to_supports_disable_randomization.
1625 (target_supports_disable_randomization): Add prototype.
1626 * target.c (target_supports_disable_randomization): New function.
1627 (find_default_supports_disable_randomization): Likewise.
1628 (init_dummy_target): Install it.
1629
20c168b5
KP
16302011-10-07 Kevin Pouget <kevin.pouget@st.com>
1631
1632 Allow Python notification of new object-file loadings.
1633 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1634 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1635 Add build rule for this file.
1636 * python/py-event.h (emit_new_objfile_event): New prototype.
1637 (newobjfile): New Python event emitter.
1638 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1639 Python event registry.
1640 * python/py-inferior.c: Include objfiles.h
1641 (python_new_objfile): New function.
1642 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1643 observers.
1644 * python/py-newobjfileevent.c: New file.
1645 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1646 prototype.
1647 * python/python.c (_initialize_python): Add
1648 gdbpy_initialize_new_objfile_event call.
1649 * NEWS: Add item for new Python event "gdb.newobjfile"
1650
b1c8db38
TG
16512011-10-05 Tristan Gingold <gingold@adacore.com>
1652
1653 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1654 Extract the ravenscar task name from the symbol for the atcb.
1655
0dab82e9
PK
16562011-10-04 Paul Koning <paul_koning@dell.com>
1657
1658 * python/py-type.c (typy_make_iter): Add forward declaration.
1659 (typy_fields_items): Use the gdb.Type iterator.
1660
84ad80e6
PK
16612011-10-04 Paul Koning <paul_koning@dell.com>
1662
1663 * NEWS: Add entry for Python gdb.Type mapping methods.
1664
cb6be26b
KP
16652011-10-04 Kevin Pouget <kevin.pouget@st.com>
1666
1667 PR python/12691: Add the inferior to Python exited event
1668 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1669 to exited_event.
1670 * python/py-event.h (emit_exited_event): Likewise
1671 * python/-inferior.c (python_inferior_exit): Likewise
1672
6005b210
JB
16732011-10-03 Joel Brobecker <brobecker@adacore.com>
1674
1675 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1676 in output of -ada-task-info GDB/MI command.
1677
75082e8c
JB
16782011-10-03 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-lang.h (struct inferior): Declare.
1681 (print_ada_task_info): Add declaration.
1682 * ada-tasks.c (print_ada_task_info): Make non-static.
1683 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1684 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1685 * mi/mi-main.c: #include "ada-lang.h".
1686 (mi_cmd_list_features): Add "ada-task-info" to the list
1687 of supported features.
1688 (mi_cmd_ada_task_info): New function.
1689
7ed7d719
JB
16902011-10-03 Joel Brobecker <brobecker@adacore.com>
1691
1692 * python/python.c (python_run_simple_file): New function.
1693 (source_python_script, source_python_script_for_objfile):
1694 Replace call to PyRun_SimpleFile by call to
1695 python_run_simple_file.
1696
3fcaed38
PK
16972011-10-03 Paul Koning <paul_koning@dell.com>
1698
1699 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1700 (value_to_value_object): Fetch value if it was lazy.
1701
8e5c319d
JK
17022011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 Code cleanup.
1705 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1706 Rearrange the code for it.
1707
dd11a36c
JB
17082011-10-02 Joel Brobecker <brobecker@adacore.com>
1709
1710 * breakpoint.c (bkpt_print_recreate): Add call to
1711 print_recreate_thread.
1712
723b724b
MF
17132011-09-29 Mike Frysinger <vapier@gentoo.org>
1714
1715 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1716 PTRACE_GETFDPIC_INTERP): Define.
1717
412946b6
YQ
17182011-09-28 Yao Qi <yao@codesourcery.com>
1719
1720 * symfile.c (add_symbol_file_command): Update message on usage.
1721
a73bb892
PK
17222011-09-28 Paul Koning <paul_koning@dell.com>
1723
1724 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1725 (typy_length, typy_get, typy_has_key, typy_make_iter)
1726 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1727 (typy_iterator_iter, typy_iterator_iternext)
1728 (typy_iterator_dealloc): New functions to implement standard
1729 Python mapping methods on gdb.Type object.
1730 (gdb.TypeIterator): New Python type.
1731 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1732
fe10a582
DM
17332011-09-28 David S. Miller <davem@davemloft.net>
1734
1735 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1736 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1737 * sparc-tdep.c (sparc_complex_floating_p): New function.
1738 (sparc32_store_arguments): Handle complex floats.
1739 (sparc32_extract_return_value): Likewise.
1740 (sparc32_store_return_value): Likewise.
1741 (sparc32_stabs_argument_has_addr): Likewise.
1742 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1743 (sparc64_store_floating_fields): Handle complex floats.
1744 (sparc64_store_arguments): Likewise.
1745 (sparc64_store_return_value): Likewise.
1746
c93dbcba
EZ
17472011-09-28 Eli Zaretskii <eliz@gnu.org>
1748
1749 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1750 before the change on 2006-12-09.
1751 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1752 generates the environment block for CreateProcessA, modulo the
1753 Cygwin-specific parts that are not needed here.
1754
f00c55f8
TG
17552011-09-27 Tristan Gingold <gingold@adacore.com>
1756
1757 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1758 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1759 (darwin_solib_get_all_image_info_addr_at_init): New function.
1760 (darwin_solib_read_all_image_info_addr): Likewise.
1761 (darwin_solib_create_inferior_hook): Use the above two functions.
1762 * darwin-nat.c (darwin_execvp): Renames retval to res.
1763 (darwin_read_write_inferior): Update comment.
1764 (darwin_read_dyld_info): New function.
1765 (darwin_xfer_partial): Handle DYLD_INFO.
1766
6710bf39
SS
17672011-09-27 Stan Shebs <stan@codesourcery.com>
1768
1769 Add return address collection for tracepoints.
1770 * tracepoint.c (encode_actions_1): Add case for $_ret.
1771 (validate_actionline): Check for $_ret.
1772 (trace_dump_actions): Ditto.
1773 * ax-gdb.h (gen_trace_for_return_address): Declare.
1774 * ax-gdb.c: Include arch-utils.h.
1775 (gen_trace_for_return_address): New function.
1776 (agent_command): Add return address special case.
1777 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1778 (amd64_gen_return_address): New function.
1779 (amd64_init_abi): Call it.
1780 * i386-tdep.c: Include ax.h and ax-gdb.h.
1781 (i386_gen_return_address): New function.
1782 (i386_init_abi): Call it.
1783 * arch-utils.h (default_gen_return_address): Declare.
1784 * arch-utils.c (default_gen_return_address): New function.
1785 * gdbarch.sh (gen_return_address): New method.
1786 * gdbarch.h, gdbarch.c: Regenerate.
1787
e04e5beb
JM
17882011-09-23 Joseph Myers <joseph@codesourcery.com>
1789
1790 PR gdb/13079
1791 * i386-tdep.c (i386_frame_align): New.
1792 (i386_gdbarch_init): Use i386_frame_align.
1793
f3d6df6d
YQ
17942011-09-23 Yao Qi <yao@codesourcery.com>
1795
1796 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1797 to get address.
1798
e69860f1
TG
17992011-09-22 Tristan Gingold <gingold@adacore.com>
1800
1801 * fork-child.c (fork_inferior): Add exec_fun parameter.
1802 Call exec_fun or execvp.
1803 * inferior.h: Adjust prototype.
1804 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1805 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1806 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1807 * procfs.c (procfs_create_inferior): Ditto.
1808 * darwin-nat.c (darwin_execvp): New function.
1809 (darwin_create_inferior): Use it.
1810
4b51d87b
YQ
18112011-09-22 Yao Qi <yao@codesourcery.com>
1812
1813 * infrun.c (context_switch): Print debug message when switching to
1814 a different thread.
1815
56b9d9ac
UW
18162011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1817
1818 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1819 complex and vector types.
1820 (s390_return_value_convention): Likewise.
1821
1822 (s390_value_from_register): Call check_typedef.
1823 (extend_simple_arg): Likewise.
1824 (alignment_of): Likewise.
1825 (s390_push_dummy_call): Likewise.
1826 (s390_return_value): Likewise.
1827
b2cd6b29
JM
18282011-09-21 Joseph Myers <joseph@codesourcery.com>
1829
1830 * event-top.c (async_disconnect): If an exception is thrown from
1831 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1832 catch_errors.
1833 * top.c (quit_cover): Return void and take no arguments.
1834 * top.h (quit_cover): Update prototype.
1835
67ba4e42
JM
18362011-09-20 Joseph Myers <joseph@codesourcery.com>
1837
1838 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1839 current_uiout, not uiout.
1840
562f943b
DE
18412011-09-19 Doug Evans <dje@google.com>
1842
1843 * python/py-auto-load.c (source_section_scripts): Fix file
1844 descriptor leak.
1845 * python/python.c (source_python_script_for_objfile): Tweak comments.
1846
34518530
YQ
18472011-09-18 Yao Qi <yao@codesourcery.com>
1848 Ulrich Weigand <ulrich.weigand@linaro.org>
1849
1850 Support displaced stepping for Thumb 16-bit insns.
1851 * arm-tdep.c (THUMB_NOP) Define.
1852 (thumb_copy_unmodified_16bit): New.
1853 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1854 (thumb_copy_alu_reg): New.
1855 (arm_copy_svc): Move some common code to ...
1856 (install_svc): ... here. New.
1857 (thumb_copy_svc): New.
1858 (install_pc_relative): New.
1859 (thumb_copy_pc_relative_16bit): New.
1860 (thumb_decode_pc_relative_16bit): New.
1861 (thumb_copy_16bit_ldr_literal): New.
1862 (thumb_copy_cbnz_cbz): New.
1863 (cleanup_pop_pc_16bit_all): New.
1864 (thumb_copy_pop_pc_16bit): New.
1865 (thumb_process_displaced_16bit_insn): New.
1866 (thumb_process_displaced_32bit_insn): New.
1867 (thumb_process_displaced_insn): process thumb instruction.
1868
1869 Support displaced stepping for Thumb 32-bit insns.
1870 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1871 (thumb2_copy_preload): New.
1872 (thumb2_copy_copro_load_store): New.
1873 (thumb2_copy_b_bl_blx): New.
1874 (thumb2_copy_alu_imm): New.
1875 (thumb2_copy_load_reg_imm): New.
1876 (thumb2_copy_load_literal): New
1877 (thumb2_copy_block_xfer): New.
1878 (thumb_32bit_copy_undef): New.
1879 (thumb_32bit_copy_unpred): New.
1880 (thumb2_decode_ext_reg_ld_st): New.
1881 (thumb2_decode_svc_copro): New.
1882 (decode_thumb_32bit_store_single_data_item): New.
1883 (thumb_copy_pc_relative_32bit): New.
1884 (thumb_decode_pc_relative_32bit): New.
1885 (decode_thumb_32bit_ld_mem_hints): New.
1886 (thumb2_copy_table_branch): New
1887 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1888 instructions.
1889
2b16b2e3
YQ
18902011-09-18 Yao Qi <yao@codesourcery.com>
1891
1892 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1893 (install_b_bl_blx): Likewise.
1894
0f6f04ba
YQ
18952011-09-17 Yao Qi <yao@codesourcery.com>
1896
1897 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1898 (install_load_store): ... this. New.
1899 Change parameter BYTE to SIZE.
1900 (arm_copy_ldr_str_ldrb_strb): Update caller.
1901 (arm_decode_ld_st_word_ubyte): Update caller.
1902
e2d96639
YQ
19032011-09-17 Yao Qi <yao@codesourcery.com>
1904
1905 * infrun.c (displaced_step_fixup): Move some code ...
1906 (displaced_step_restore): ... here. New function.
1907 (handle_inferior_event): Cleanup displaced stepping state for both
1908 child and parent when get forked or vforked event.
1909 * regcache.c (get_thread_arch_aspace_regcache): New function.
1910 get_thread_arch_regcache (): Call it.
1911
a8123151
JB
19122011-09-16 Joel Brobecker <brobecker@adacore.com>
1913
1914 * ada-tasks.c (print_ada_task_info): New function, merging
1915 short_task_info and info_tasks together. Reimplement using
1916 ui-out instead of printing to stdout directly. Move the code
1917 building and checking the task list here, instead of leaving it
1918 in info_tasks_command.
1919 (info_task): Move the code building and checking the task
1920 list here, instead of leaving it in info_tasks_command.
1921 (info_tasks_command): Delete code building and checking
1922 the task list - moved elsewhere. Update calls to info_tasks
1923 and info_task.
1924
fbf06824
JB
19252011-09-16 Joel Brobecker <brobecker@adacore.com>
1926
1927 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1928
34a0bc90
JB
19292011-09-16 Joel Brobecker <brobecker@adacore.com>
1930
1931 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1932
79779fa9
JB
19332011-09-16 Joel Brobecker <brobecker@adacore.com>
1934
1935 * ada-lang.h (ada_build_task_list): Remove parameter
1936 `warn_if_null'.
1937 * ada-tasks.c (ada_build_task_list): Remove parameter
1938 `warn_if_null'. Adjust implementation and documentation.
1939 (valid_task_id, ada_get_environment_task)
1940 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1941 (info_tasks_command): Adjust implementation.
1942 (task_command): Likewise.
1943 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1944 to ada_build_task_list.
1945
e225eb91
JB
19462011-09-16 Joel Brobecker <brobecker@adacore.com>
1947
1948 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1949 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1950 (ada_tasks_inferior_data_handle): New static global.
1951 (get_ada_tasks_inferior_data): New function.
1952 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1953 (ada_get_environment_task, iterate_over_live_ada_tasks)
1954 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1955 Adjust.
1956 (ada_set_current_inferior_known_tasks_addr): New function.
1957 (read_known_tasks, ada_build_task_list, short_task_info)
1958 (info_tasks, info_task, info_tasks_command, task_command_1)
1959 (task_command, ada_task_list_changed): Adjust.
1960 (ada_tasks_invalidate_inferior_data): New function.
1961 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1962 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1963 * ada-lang.h (struct inferior): Add declaration.
1964 (ada_task_list_changed): Update profile.
1965 * remote-wtx-pd.c: #include "inferior.h".
1966 (switch_to_pd_internal): Update call to ada_task_list_changed.
1967
6da9ca05
JB
19682011-09-16 Joel Brobecker <brobecker@adacore.com>
1969
1970 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1971 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1972 (atcb_fieldno): Delete these static globals.
1973 (struct ada_tasks_pspace_data): New struct.
1974 (ada_tasks_pspace_data_handle): New static global.
1975 (get_ada_tasks_pspace_data): New function.
1976 (ada_tasks_invalidate_pspace_data): New function.
1977 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1978 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1979 (_initialize_tasks): Create this module's per-progspace
1980 data handle.
1981
dccd3cbd
JB
19822011-09-16 Joel Brobecker <brobecker@adacore.com>
1983
1984 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1985
f877b031
TG
19862011-09-16 Tristan Gingold <gingold@adacore.com>
1987
1988 * fork-child.c (fork_inferior): Update comment. Use alloca
1989 instead of xmalloc for argv. Move len and shell_command
1990 declarations in the block where they are used.
1991 Only call execvp. Factorize failure code.
1992
ae0c443d
JK
19932011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1994
1995 Code cleanup.
1996 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1997 `exp_element' instead of an element of the same and make the function
1998 static.
1999 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2000 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2001 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2002 Change argument of `write_exp_elt' function call.
2003 Remove extra spaces from comments.
2004 * parser-defs.h (write_exp_elt): Remove prototype.
2005
5af65ec0
PK
20062011-09-15 Paul Koning <paul_koning@dell.com>
2007
2008 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2009 count of item appended to list.
2010 * python/py-type.c (typy_fields): Likewise.
2011
72be8ccc
PK
20122011-09-15 Paul Koning <paul_koning@dell.com>
2013
883640a8 2014 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2015
92f6badc
KP
20162011-09-15 Kevin Pouget <kevin.pouget@st.com>
2017
2018 PR threads/12628
2019 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2020 processes with multiple threads.
2021 (inf_has_multiple_thread_cb): New function.
2022 (inf_has_multiple_threads): New function.
2023
0672bf41 20242011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2025
2026 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2027 * python/py-inferior.c (GdbMethods): New Python method definition.
2028
6839b47f
KP
20292011-09-15 Kevin Pouget <kevin.pouget@st.com>
2030
2031 Handle multiple breakpoint hits in Python interface:
2032 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2033 variable to breakpoints.
2034 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2035 bps instead of single breakpoint. Fix some space typos.
2036 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2037 variable to breakpoints.
2038
672f9b60
KP
20392011-09-15 Kevin Pouget <kevin.pouget@st.com>
2040
2041 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2042 note if the breakpoint is internal.
2043
43675ae4
KP
20442011-09-15 Kevin Pouget <kevin.pouget@st.com>
2045
0672bf41 2046 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2047
15148d6a
PA
20482011-09-14 Pedro Alves <pedro@codesourcery.com>
2049
2050 * infrun.c (prepare_for_detach, wait_for_inferior)
2051 (fetch_inferior_event): Don't flush the register cache.
2052 * remote.c (struct stop_reply) <regcache>: Add comment.
2053
d83e736b
JK
20542011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2055
2056 Remove excessive DWARF expressions memory duplication.
2057 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2058 for block.data.
2059 (indirect_pieced_value): Remove variable result. Remove variable
2060 back_to and its use for baton.data.
2061 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2062 block.data.
2063 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2064 Update the function comment.
2065
c65b3e0d
PA
20662011-09-13 Pedro Alves <pedro@codesourcery.com>
2067
2068 * inferior.h (ALL_INFERIORS): New.
2069 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2070 for a stopped thread.
2071 (thread_db_find_new_threads): Look for threads in all inferiors.
2072
a1398e0c
PA
20732011-09-13 Pedro Alves <pedro@codesourcery.com>
2074
2075 * breakpoint.c (update_watchpoint): Handle the case of the
2076 watchpoint to update not being in the breakpoint list yet.
2077 (hw_watchpoint_use_count): New, factored out from
2078 hw_watchpoint_used_count.
2079 (hw_watchpoint_used_count): Rename to ...
2080 (hw_watchpoint_used_count_others): ... this. Add `except'
2081 parameter. Don't count resources of `except'. Use
2082 hw_watchpoint_use_count.
2083
30596231
PA
20842011-09-13 Pedro Alves <pedro@codesourcery.com>
2085
2086 * gdbthread.h (enum thread_state): Moved here.
2087 (struct thread_info): Rename `executing_' field to `executing' and
2088 `state_' to `state'.
2089 * thread.c (enum thread_state): Moved to gdbthread.h.
2090 (new_thread, add_thread_silent, delete_thread_1)
2091 (any_live_thread_of_process, thread_alive, set_running)
2092 (set_running, is_thread_state, any_running, is_executing)
2093 (set_executing, finish_thread_state, print_thread_info)
2094 (do_captured_thread_select): Adjust.
2095
bede5f5f
JK
20962011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2097
2098 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2099 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2100
4801a9a3
PA
21012011-09-12 Pedro Alves <pedro@codesourcery.com>
2102 Matt Rice <ratmice@gmail.com>
2103
2104 PR gdb/13175
2105
2106 * interps.c (struct interp) <interpreter_out>: Delete field.
2107 (interp_new): Remove the data and uiout parameters and adjust.
2108 (interp_set): Only set the current_uiout from the interpreter's
2109 uiout after initializing the interpreter. Adjust call to
2110 init_proc.
2111 (interp_ui_out): Adjust to call procs->ui_out_proc.
2112 (interp_data, interp_name): New.
2113 * interps.h (interp_init_ftype): Add `self' parameter.
2114 (interp_ui_out_ftype): New typedef.
2115 (struct interp_procs) <ui_out_proc>: New method pointer.
2116 (interp_new): Remove the data and uiout parameters.
2117 (interp_data, interp_name): Declare.
2118 * tui/tui-interp.c (tui_init): Adjust prototype.
2119 (tui_ui_out): New.
2120 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2121 tui_out here. Adjust call to interp_new.
2122 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2123 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2124 (cli_ui_out): New.
2125 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2126 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2127 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2128 Initialize mi->uiout depending on the mi_version as extracted from
2129 the interpreter's name.
2130 (mi_ui_out): New.
2131 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2132 interp_new. Don't allocate the ui_out's of the interpreters here.
2133
d0afda03 21342011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2135
d0afda03 2136 * solib.c (solib_used): New function.
59145f8c
AR
2137 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2138 by another so_list object before freeing it.
2139
bdaf8d4a
JK
21402011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2141
2142 Code cleanup.
2143 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2144 values.
2145
df15bd07
JK
21462011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2147
2148 Code cleanup.
2149 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2150 (amd64_skip_xmm_prologue): ... this new function. Describe its
2151 parameters. No longer use amd64_prologue_line_bug.
2152 * defs.h (producer_is_gcc_ge_4): New declaration.
2153 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2154 (process_full_comp_unit): Update its caller. Remove
2155 amd64_prologue_line_bug initialization.
2156 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2157 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2158
25289eb2
PA
21592011-09-09 Pedro Alves <pedro@codesourcery.com>
2160
2161 * linux-nat.h (enum resume_kind): New.
2162 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2163 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2164 resume_stop on the new lwp.
25289eb2
PA
2165 (add_lwp): Set last_resume_kind as resume_continue by default.
2166 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2167 (resume_lwp): New, factored out from resume_callback. Also check
2168 for pending status in lp->waitstatus.
2169 (resume_callback): Reimplement.
2170 (resume_clear_callback): Set last_resume_kind as resume_stop.
2171 (resume_set_callback): Set last_resume_kind as resume_continue.
2172 (linux_nat_resume, linux_handle_extended_wait): Set
2173 last_resume_kind.
2174 (running_callback): Also check lp->waitstatus for pending events.
2175 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2176 is resume_step.
2177 (stop_and_resume_callback): Don't re-resume if the core wanted the
2178 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2179 using an invalidated pointer.
2180 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2181 SIGSTOPs if the core wanted the LWP to stop.
2182 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2183 wanted the lwp to stop. If the core wanted the lwp to stop, and
2184 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2185 of TARGET_SIGNAL_STOP.
2186 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2187 here. Instead, signal the lwp, and set the last_resume_kind to
2188 resume_stop.
2189
f687d035
PA
21902011-09-09 Pedro Alves <pedro@codesourcery.com>
2191
2192 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2193 -1 (error), if the lwp exits right after attaching.
2194
bc587a6b
DE
21952011-09-08 Doug Evans <dje@google.com>
2196
63d97a20
DE
2197 * py-cmd.c: Some minor formatting fixes.
2198 (gdbpy_parse_command_name): Rename text arg to name, make const.
2199 All callers updated.
2200 * python-internal.h (gdbpy_parse_command_name): Update.
2201
bc587a6b
DE
2202 * cli/cli-decode.c (add_cmd): Add comment.
2203
08711b9a
JK
22042011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2205
2206 PR breakpoints/12435
2207 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2208 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2209 * dwarf2read.c (process_full_comp_unit): Initialize
2210 amd64_prologue_line_bug.
2211 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2212
b2e7f004
JK
22132011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2214
2215 Fix TUI screen corruption.
2216 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2217 batch_flag.
2218
8afd712c
JK
22192011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2220
2221 * findvar.c (read_var_value): Never return NULL, throw an error
2222 instead. Update the function comment. State symbol name in the error
2223 messages.
2224 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2225 read_var_value.
2226 * stack.c (print_frame_args): Likewise.
2227 * valops.c (value_of_variable): Likewise.
2228
b99b5f66
JK
22292011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2230
2231 * stack.c (print_frame_args): New variable except. Wrap
2232 read_var_value and common_val_print into TRY_CATCH.
2233
85bc8cb7
JK
22342011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2235
2236 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2237 caller to value_of_this.
2238 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2239 Twice.
2240 * valops.c (value_of_this): Remove parameter complain and variable ret.
2241 Update function comment. Never return NULL by this code.
2242 (value_of_this_silent): New function.
2243 * value.h (value_of_this): Remove parameter complain.
2244 (value_of_this_silent): New declaration.
2245
ede1849f
YQ
22462011-09-07 Yao Qi <yao@codesourcery.com>
2247
2248 * gdbthread.h (struct thread_info): Remove fields
2249 `stepping_through_solib_after_catch' and
2250 `stepping_through_solib_catchpoints'.
2251 * infrun.c (init_thread_stepping_state): Update.
2252 (process_event_stop_test, currently_stepping): Update.
2253 (currently_stepping_or_nexting_callback): Update.
2254
6aa27652
YQ
22552011-09-07 Yao Qi <yao@codesourcery.com>
2256
2257 * gdbthread.h (struct thread_info): Comment on field
2258 `step_after_step_resume_breakpoint'.
2259
00db5b94
PA
22602011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2261
2262 * remote.c (remote_console_output): Reindent.
2263
861152be
LM
22642011-09-06 Luis Machado <lgustavo@codesourcery.com>
2265
2266 * frame.c (has_stack_frames): Check for currently selected
2267 traceframe.
2268
ab821bc6
PA
22692011-09-06 Pedro Alves <pedro@codesourcery.com>
2270
2271 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2272 (set_async_annotation_level, set_async_prompt, pop_prompt)
2273 (push_prompt, new_async_prompt): Delete declarations.
2274 * top.h (get_prompt, set_prompt): Change prototype.
2275 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2276 declarations.
2277 * top.c (command_loop):
2278 (top_prompt): New global.
2279 (get_prefix, set_prefix, get_suffix, ): Delete.
2280 (get_prompt, set_prompt): Rewrite.
2281 (show_new_async_prompt): Rename to ...
2282 (show_prompt): ... this.
2283 (init_main): Adjust. Don't handle --annotate=2 here.
2284 * event-top.c (new_async_prompt): Delete.
2285 (the_prompts): Delete.
2286 (more_to_come): Make static.
2287 (display_gdb_prompt): Use top_level_prompt() to compute the top
2288 level prompt, and don't notify the before_prompt observers
2289 directly here. Always trick readline into not trying to display
2290 the prompt if sync_execution and displaying the primary prompt.
2291 If displaying a local/secondary prompt, always show it, even if
2292 sync_execution is set.
2293 (change_annotation_level): Delete.
2294 (top_level_prompt): New, based on change_annotation_level.
2295 (push_prompt, pop_prompt): Delete.
2296 (async_disable_stdin): No longer pushes prompt.
2297 (command_line_handler): No longer pushes or pops prompt. If more
2298 input is expected, call display_gdb_prompt with an explicit empty
2299 prompt.
2300 (async_stop_sig): Adjust.
2301 (set_async_annotation_level, set_async_prompt): Delete.
2302 * python/python.c (before_prompt_hook): Adjust.
2303
f1d90504
PA
23042011-09-05 Pedro Alves <pedro@codesourcery.com>
2305
2306 PR cli/13110
2307
2308 * infrun.c (fetch_inferior_event): Check if there's a selected
2309 thread before checking if the selected thread is executing.
2310
0f641c01
PA
23112011-09-05 Pedro Alves <pedro@codesourcery.com>
2312
2313 * inf-loop.c (execute_command): Don't check if the current thread
2314 if running before synchronously waiting for command completion.
2315 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2316 here.
2317 (normal_stop): Call async_enable_stdin here.
2318 * inf-loop.c (inferior_event_handler): Don't call
2319 async_enable_stdin, nor handle "set exec-done-display" here.
2320
30368258 23212011-09-04 Joel Brobecker <brobecker@adacore.com>
2322
2323 GDB 7.3.1 released.
2324
31916278
JB
23252011-09-04 Joel Brobecker <brobecker@adacore.com>
2326
2327 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2328
e8d56f18
JB
23292011-09-04 Joel Brobecker <brobecker@adacore.com>
2330
2331 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2332
5dd05d8c
JK
23332011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2334
2335 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2336
7d8e6458 23372011-09-02 Matt Rice <ratmice@gmail.com>
2338
2339 PR gdb/10720
2340 * event-top.c (cli_command_loop): Replace readline setup with
2341 direct call to display_gdb_prompt.
2342 (display_gdb_prompt): Do not call observer mechanism during
2343 synchronous execution.
2344
84636d28
PA
23452011-09-02 Pedro Alves <pedro@codesourcery.com>
2346
2347 * linux-nat.c (in_pid_list_p): New.
2348 (linux_record_stopped_pid): Delete.
2349 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2350 already attached to the LWP. Return an indication if so.
2351 (linux_nat_filter_event): Adjust.
2352 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2353 returning an indication to ignore this thread.
2354
b4a14fd0
PA
23552011-09-02 Pedro Alves <pedro@codesourcery.com>
2356
2357 * top.c: Include interps.h.
2358 (execute_command): If the target can async, but the interpreter is
2359 in sync mode, synchronously wait for the command to finish before
2360 returning.
2361 (execute_command_to_string): Force the interpreter to sync mode.
2362 * infrun.c: Include interps.h.
2363 (fetch_inferior_event): Don't restore the prompt yet if the
2364 interpreter is in sync mode.
2365 * interps.c (interpreter_async): New global.
2366 * interps.h (interpreter_async): Declare.
2367 * inf-loop.c: Include interps.h.
2368 (inferior_event_handler): Don't print the language change or run
2369 breakpoint commands yet if the interpreter in is sync mode.
2370 * main.c (captured_command_loop): Flip the interpreter to async
2371 mode.
2372 * cli/cli-script.c: Include interps.h.
2373 (execute_user_command, while_command, if_command): Force the
2374 interpreter to sync mode.
2375 * python/python.c: Include interps.h.
2376 (python_command, execute_gdb_command): Force the interpreter to
2377 sync mode.
2378
c709acd1
PA
23792011-09-02 Pedro Alves <pedro@codesourcery.com>
2380
2381 * value.c (show_convenience): Catch errors thrown while printing
2382 each internal variable.
2383 * infrun.c (validate_siginfo_access): New function.
2384 (siginfo_value_read, siginfo_value_write): Call it.
2385
9655e943
JK
23862011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2387
2388 Revert:
2389 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2390 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2391 attribute.
2392
cb457ae2
YQ
23932011-08-29 Yao Qi <yao@codesourcery.com>
2394
2395 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2396 (cmp_name): New.
2397 (enable_break2): Update caller.
2398 * solib-frv.c (bfd_lookup_symbol): Removed.
2399 (cmp_name): New.
2400 (enable_break2): Update caller.
2401 * solib-pa64.c (bfd_lookup_symbol): Removed.
2402 (cmp_name): New.
2403 * solib-svr4.c (bfd_lookup_symbol): Removed.
2404 (cmp_name_and_sec_flags): New.
2405 (enable_break): Update caller.
2406 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2407 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2408 (gdb_bfd_lookup_symbol): New.
2409 * solib.h: Functions declarations.
2410
83d1a36a
YQ
24112011-08-29 Yao Qi <yao@codesourcery.com>
2412
2413 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2414 and solib-dsbt.o.
2415
c04b3e8f
JK
24162011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2417
2418 Fix TUI stepi on code without symbols.
2419 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2420 current PC instead.
2421
cb0fd152
JK
24222011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2423
2424 Code cleanup.
2425 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2426 and the static keyword.
2427 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2428 Make prefix an array.
2429 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2430 * mi/mi-main.c (get_register): Remove stb initialization and the static
2431 keyword.
2432
91174723
JK
24332011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 Code cleanup - make mi_opt const.
2436 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2437 opts const.
2438 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2439 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2440 (mi_cmd_env_dir): Likewise.
2441 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2442 (mi_cmd_target_file_put): Likewise.
2443 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2444 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2445 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2446 (mi_valid_noargs): Make opts const.
2447 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2448 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2449 (mi_cmd_data_read_memory): Likewise.
2450 (mi_cmd_data_read_memory_bytes): Likewise.
2451 (mi_cmd_data_write_memory): Likewise.
2452
5068b8e8 24532011-08-26 Matt Rice <ratmice@gmail.com>
2454
2455 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2456 bcache_xmalloc, replace bcache_xmalloc with call to
2457 psymbol_bcache_init for psymbol_cache.
2458 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2459
a4f2ce05
JK
24602011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2461
2462 * inf-loop.c (inferior_event_handler): Add exception_print in
2463 INF_EXEC_COMPLETE.
2464
353d1d73
JK
24652011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2466
2467 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2468 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2469 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2470 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2471 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2472 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2473 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2474 * infrun.c (fetch_inferior_event): Call
2475 make_bpstat_clear_actions_cleanup.
2476 * top.c (execute_command): New variable cleanup_if_error, call
2477 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2478 * utils.c (do_bpstat_clear_actions_cleanup)
2479 (make_bpstat_clear_actions_cleanup): New functions.
2480
3ced3da4
PA
24812011-08-26 Pedro Alves <pedro@codesourcery.com>
2482
2483 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2484 either the parent or the child forks. Rename a couple locals.
2485
a9f4bb21
PA
24862011-08-26 Pedro Alves <pedro@codesourcery.com>
2487
2488 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2489 library call. Avoid reading the `status' local if all waitpid
2490 calls failed.
2491
e5798bef
PA
24922011-08-26 Pedro Alves <pedro@codesourcery.com>
2493
2494 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2495 opening /proc/PID/task always succeeds.
2496
edb2aadf
AR
24972011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2498
2499 * linespec.c (symtab_from_filename): Check for the end of string.
2500
0d932b2f
MK
25012011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2502
2503 PR mi/11912
2504 * varobj.c (cplus_describe_child): Add the keyword
2505 'class' to the output of the method when dealing
2506 with a cast to a base class.
2507
e93ca019
JK
25082011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 No functionality change.
2511 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2512 function comment a reference, new variables tp and bs, move here code
2513 from throw_exception.
2514 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2515 describe it in the comment.
2516 * exceptions.c (throw_exception): Remove variable tp, move the code for
2517 bpstat_clear_actions to bpstat_clear_actions.
2518
13da1c97
LM
25192011-08-24 Luis Machado <lgustavo@codesourcery.com>
2520
2521 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2522 * linux-nat.c: Include linux-procfs.h.
2523 (linux_proc_get_tgid): Move to ...
2524 * common/linux-procfs.c: ... here. New file.
2525 * common/linux-procfs.h: New file.
2526 * linux-thread-db.c: Include linux-procfs.h.
2527 * Makefile.in: Update dependencies.
2528 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2529 * config/arm/linux.mh: Likewise.
2530 * config/i386/linux.mh: Likewise.
2531 * config/i386/linux64.mh: Likewise.
2532 * config/ia64/linux.mh: Likewise.
2533 * config/m32r/linux.mh: Likewise.
2534 * config/m68k/linux.mh: Likewise.
2535 * config/mips/linux.mh: Likewise.
2536 * config/pa/linux.mh: Likewise.
2537 * config/pa/linux.mh: Likewise.
2538 * config/powerpc/linux.mh: Likewise.
2539 * config/powerpc/ppc64-linux.mh: Likewise.
2540 * config/powerpc/spu-linux.mh: Likewise.
2541 * config/sparc/linux.mh: Likewise.
2542 * config/sparc/linux64.mh: Likewise.
2543 * config/xtensa/linux.mh: Likewise.
2544
4e5c165d
HZ
25452011-08-24 Hui Zhu <teawater@gmail.com>
2546
2547 * tracepoint.c (cond_string_is_same): New function.
2548 (find_matching_tracepoint): Add condition check
2549 by cond_string_is_same.
2550
6e2f5b22
JK
25512011-08-23 Josh Matthews <josh@joshmatthews.net>
2552
2553 Fix build error in Darwin port.
2554 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2555
abf85f46
JK
25562011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2557
2558 Code cleanup.
2559 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2560 (command_line_is_silent): New function.
2561 (bpstat_do_actions_1): No longer use commands_left, use
2562 command_line_is_silent for commands.
2563 (bpstat_alloc): Remove clearing of commands_left.
2564 (bpstat_stop_status): Remove initialization of commands_left, use
2565 command_line_is_silent.
2566 * breakpoint.h (struct bpstats): Remove commands_left.
2567
3a93a0c2
KS
25682011-08-18 Keith Seitz <keiths@redhat.com>
2569
2570 PR c++/12266
2571 * cp-name-parser.y (struct demangle_info): Remove unused
2572 member PREV.
2573 (d_grab): Likewise.
2574 (allocate_info): Change return type to struct demangle_info *.
2575 Always allocate a new demangle_info.
2576 Remove unused PREV pointer.
2577 (cp_new_demangle_parse_info): New function.
2578 (cp_demangled_name_parse_free): New function.
2579 (do_demangled_name_parse_free_cleanup): New function.
2580 (make_cleanup_cp_demangled_name_parse_free): New function.
2581 (cp_demangled_name_to_comp): Change return type to
2582 struct demangle_parse_info *.
2583 Allocate a new storage for each call.
2584 (main): Update usage for cp_demangled_name_to_comp
2585 API change.
2586 * cp-support.h (struct demangle_parse_info): New structure.
2587 (cp_demangled_name_to_comp): Update API change for
2588 return type.
2589 (cp_new_demangle_parse_info): Declare.
2590 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2591 (cp_demangled_name_parse_free): Declare.
2592 * cp-support.c (cp_canonicalize_string): Update API
2593 change for cp_demangled_name_to_comp.
2594 (mangled_name_to_comp): Likewise.
2595 Return struct demangle_parse_info, too.
2596 (cp_class_name_from_physname): Update mangled_name_to_comp
2597 API change.
2598 (method_name_from_physname): Likewise.
2599 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2600 (cp_remove_params): Likewise.
2601 * python/py-type.c (typy_legacy_template_argument): Likewise.
2602
2603 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2604 (cp_merge_demangle_parse_infos): Declare.
2605 * cp-support.c (ignore_typedefs): New file global.
2606 (copy_string_to_obstack): New function.
2607 (inspect_type): New function.
2608 (replace_typedefs): New function.
2609 (replace_typedefs_qualified_name): New function.
2610 (cp_canonicalize_string_no_typedefs): New function.
2611 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2612 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2613 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2614 instead of cp_canonicalize_string.
2615 (find_method): Likewise.
2616 (decode_compound): Before looking up the name, call
2617 cp_canonicalize_string_no_typedefs.
2618 (decode_variable): Likewise.
2619
fa3a4f15
PM
26202011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2621 Tom Tromey <tromey@redhat.com>
2622 Matt Rice <ratmice@gmail.com>
2623
2624 * python/lib/gdb/prompt.py: New file.
2625 * python/lib/gdb/command/prompt.py: New file.
2626 * NEWS: Document set extended-prompt and gdb.prompt library
2627
85661b1e
YQ
26282011-08-16 Yao Qi <yao@codesourcery.com>
2629
2630 * tic6x-linux-tdep.c: Move const arrays definition from here...
2631 * tic6x-tdep.c: to here ...
2632
11315641
YQ
26332011-08-14 Yao Qi <yao@codesourcery.com>
2634
2635 * NEWS: New port to Texas Instruments TMS320C6x.
2636
8cd64e00
YQ
26372011-08-14 Andrew Jenner <andrew@codesourcery.com>
2638 Bernd Schmidt <bernds@codesourcery.com>
2639 Yao Qi <yao@codesourcery.com>
2640
2641 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2642 * solib-dsbt.c: New file. Support DSBT shared object.
2643 * tic6x-linux-tdep.c: New file.
2644 * tic6x-tdep.c: New file.
2645 * tic6x-tdep.h: New file.
2646
78d85199
YQ
26472011-08-14 Andrew Stubbs <ams@codesourcery.com>
2648 Yao Qi <yao@codesourcery.com>
2649
2650 * remote.c (PACKET_qXfer_fdpic): New enum value.
2651 (remote_protocol_features): Add qXfer:fdpic:read packet.
2652 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2653 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2654 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2655
224bbe49
YQ
26562011-08-14 Yao Qi <yao@codesourcery.com>
2657
2658 Target description for tic6x.
2659 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2660 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2661 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2662 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2663 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2664 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2665 * features/tic6x-c64xp-linux.xml: New.
2666 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2667 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2668 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2669 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2670 * regformats/tic6x-c64xp.dat,
2671 regformats/tic6x-c62x-linux.dat: Generated.
2672 * regformats/tic6x-c64x-linux.dat,
2673 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2674 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2675 features/tic6x-*.c files.
2676 Add regformats/tic6x-*.dat files.
2677
457e09f0
DE
26782011-08-12 Doug Evans <dje@google.com>
2679
2680 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2681 * python/py-symbol.c (sympy_get_type): New function.
2682 (symbol_object_getset): Add "type".
2683
d20c1c3f
PA
26842011-08-12 Pedro Alves <pedro@codesourcery.com>
2685
2686 PR tui/13073
2687
2688 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2689 empty name.
2690 (tui_show_register_group): Don't store a byte buffer in the data
2691 element's value.
2692 (tui_register_format): Skip registers with an empty name.
2693 (tui_get_register): Store a struct value in the data element's
2694 value field instead of a byte buffer holding the raw register
2695 contents. Account for optimized-out and unavailable registers
2696 when comparing register contents.
2697
9d8fa392
PA
26982011-08-09 Pedro Alves <pedro@codesourcery.com>
2699
2700 * printcmd.c (current_display_number): Update comment.
2701 (disable_current_display_cleanup): Delete.
2702 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2703 catch errors thrown while evaluating and printing the display.
2704
401a70b8
TT
27052011-08-09 Tom Tromey <tromey@redhat.com>
2706
2707 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2708
7f86f058
PA
27092011-08-09 Pedro Alves <pedro@codesourcery.com>
2710
94b71cca 2711 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2712 * maint.c (maintenance_command): Ditto.
2713 * somread.c (som_symtab_read): Ditto.
2714 * solib.c (solib_find, solib_map_sections, update_solib_list)
2715 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2716 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2717 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2718 * solib-irix.c (locate_base, disable_break, enable_break)
2719 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2720 (irix_current_sos, irix_open_symbol_file_object)
2721 (irix_special_symbol_handling): Ditto.
2722 * solib-sunos.c (locate_base, first_link_map_member)
2723 (sunos_current_sos, disable_break, enable_break)
2724 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2725 Ditto.
2726 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2727 (open_symbol_file_object, svr4_current_sos, enable_break)
2728 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2729 Ditto.
2730 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2731 (frv_current_sos, enable_break, frv_special_symbol_handling)
2732 (frv_solib_create_inferior_hook): Ditto.
2733 * solist.h (struct target_so_ops): Extend the comments of the
2734 special_symbol_handling, current_sos and open_symbol_file_object
2735 methods.
2736
5e239b84
PM
27372011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2738
2739 * python/lib/gdb/__init__.py: Auto-load files in command and
2740 function directories.
2741 * python/python.c (finish_python_initialization): Use
2742 os.path.join.
2743 * python/lib/gdb/command/pretty_printers.py: Self register
2744 command.
2745 * NEWS: Document auto-loading.
2746
b6cede78
JK
27472011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2748
2749 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2750 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2751 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2752
29d0bb3d
TT
27532011-08-08 Tom Tromey <tromey@redhat.com>
2754
2755 * breakpoint.c (clean_up_filters): Remove.
2756 (catch_syscall_split_args): Use VEC_cleanup.
2757
2f7fb8e4
JK
27582011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2759
2760 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2761 (main): Uncomment "Demangling error\n".
2762
d6c10e95
PP
27632011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2764
2765 * solib-target.c (segment_attributes): Make them static.
2766 (section_attributes, library_children, library_attributes): Likewise.
2767 (library_list_children, library_list_attributes): Likesise.
2768 (library_list_elements): Likewise.
2769
af6e93b2
PA
27702011-08-05 Pedro Alves <pedro@codesourcery.com>
2771
2772 * exceptions.c (throw_exception): Don't disable the current
2773 display.
2774 * printcmd.c (disable_current_display_cleanup): New function.
2775 (do_one_display): Install a cleanup to disable the current display
2776 if doing the display throws.
2777
6a1b1664
EZ
27782011-08-05 Eli Zaretskii <eliz@gnu.org>
2779
2780 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2781 initialization of the tp_new member to the corresponding
2782 gdbpy_initialize_* function.
2783 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2784 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2785 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2786 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2787 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2788
31a0ae49
JK
27892011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2792 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2793 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2794 references to current_uiout.
2795
e0dd0826
PA
27962011-08-04 Pedro Alves <pedro@codesourcery.com>
2797
2798 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2799 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2800 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2801 * top.c (gdb_readline_wrapper): Adjust.
2802 * tui/tui-interp.c (tui_command_loop):
2803 (_initialize_tui_interp): Don't install it.
2804
79a45e25
PA
28052011-08-04 Pedro Alves <pedro@codesourcery.com>
2806
2807 * ui-out.h (uiout): Rename to ...
2808 (current_uiout): ... this.
2809 * ui-out.c (uiout): Rename to ...
2810 (current_uiout): ... this.
2811 * ada-lang.c (print_it_exception, print_one_exception)
2812 (print_mention_exception): Adjust.
2813 * breakpoint.c (watchpoint_check): Adjust.
2814 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2815 (default_collect_info, watchpoints_info, print_one_catch_fork)
2816 (print_one_catch_vfork, print_one_catch_syscall)
2817 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2818 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2819 (print_it_watchpoint, print_mention_watchpoint)
2820 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2821 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2822 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2823 (bkpt_print_mention, momentary_bkpt_print_it)
2824 (tracepoint_print_mention, update_static_tracepoint)
2825 (tracepoints_info, save_breakpoints): Adjust.
2826 * cli-out.c (field_separator): Adjust.
2827 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2828 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2829 * frame.c (get_current_frame): Adjust.
2830 * infcmd.c (run_command_1, print_return_value): Adjust.
2831 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2832 * infrun.c (print_end_stepping_range_reason): Adjust.
2833 (print_signal_exited_reason, print_exited_reason): Adjust.
2834 (print_signal_received_reason, print_no_history_reason): Adjust.
2835 * interps.c (interp_set): Adjust.
2836 * osdata.c (info_osdata_command): Adjust.
2837 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2838 * remote-fileio.c (remote_fileio_request): Adjust.
2839 * remote.c (show_remote_cmd): Adjust.
2840 * solib.c (info_sharedlibrary_command): Adjust.
2841 * source.c (print_source_lines_base): Adjust.
2842 * stack.c (print_stack_frame): Adjust.
2843 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2844 * symfile-mem.c (add_vsyscall_page): Adjust.
2845 * symfile.c (load_progress, generic_load)
2846 (print_transfer_performance): Adjust.
2847 * thread.c (info_threads_command, restore_selected_frame)
2848 (thread_command): Adjust.
2849 * top.c (make_cleanup_restore_ui_file): Adjust.
2850 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2851 (print_one_static_tracepoint_marker): Adjust.
2852 * cli/cli-cmds.c (print_disassembly): Adjust.
2853 * cli/cli-decode.c (print_doc_line): Adjust.
2854 * cli/cli-interp.c (safe_execute_command): Adjust.
2855 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2856 (handle_redirections): Adjust.
2857 * cli/cli-script.c (show_user_1): Adjust.
2858 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2859 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2860 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2861 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2862 (mi_cmd_env_dir): Adjust.
2863 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2864 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2865 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2866 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2867 (list_args_or_locals): Adjust.
2868 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2869 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2870 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2871 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2872 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2873 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2874 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2875 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2876 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2877 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2878 (list_available_thread_groups, mi_cmd_list_thread_groups)
2879 (mi_cmd_data_list_register_names)
2880 (mi_cmd_data_list_changed_registers)
2881 (mi_cmd_data_list_register_values, get_register)
2882 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2883 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2884 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2885 (mi_execute_command, mi_load_progress): Adjust.
2886 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2887 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2888 Adjust.
2889 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2890 * tui/tui-interp.c (tui_command_loop): Adjust.
2891 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2892
f9679975
PA
28932011-08-04 Pedro Alves <pedro@codesourcery.com>
2894
2895 * exceptions.c (struct catcher): Remove saved_uiout field.
2896 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2897 no longer save/resvore the global ui_out builder.
2898 (catch_exceptions_with_msg): Save/override/restore the global
2899 ui_out builder manually instead of relying on TRY_CATCH to do it.
2900 (catch_errors): Save/restore the global ui_out builder manually
2901 instead of relying on TRY_CATCH to do it.
2902 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2903 parameter.
2904 (TRY_CATCH): Adjust.
2905 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2906 the global ui_out builder manually instead of relying on TRY_CATCH
2907 to do it.
2908
934709f0
PW
29092011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2910
2911 * breakpoint.c (update_global_location_list): Ensure
2912 invariant 'first loc marked not duplicated and inserted,
2913 following locs marked duplicated/not inserted' is respected
2914 for multiple locations at the same address.
2915 (unduplicated_should_be_inserted) New function.
2916 (swap_insertion) New function.
2917
2421fe6f
JK
29182011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2919
2920 * stack.c (print_frame_arguments_choices): Comment typo fix.
2921
3fbb6ffa
TJB
29222011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2923
2924 Revert:
2925 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2926 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2927 argument. Update callers.
2928
fbe12357
PP
29292011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2930
2931 PR gdb/13045
2932 * doublest.c (convert_doublest_to_floatformat): Pass correct
2933 mantissa length to put_field.
2934
b1d288d3
JK
29352011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2936
2937 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2938 exception_print code path.
2939 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2940 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2941 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2942
311b5970
JK
29432011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2944
2945 Code cleanup.
2946 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2947 Remove, merge them into ...
2948 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2949 variable args and its initialization.
2950 (struct print_args_args, print_args_stub): Remove, merge them into
2951 print_frame.
2952 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2953 them into ...
2954 (do_gdb_disassembly): ... here. Remove variable args and its
2955 initialization.
2956 (print_frame): Remove variable args and its initialization, new
2957 variable gdbarch and numargs (from print_args_stub), inline here
2958 print_args_stub with a TRY_CATCH.
2959 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2960 them into ...
2961 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2962 New variable e, remove variable btargs and its initialization.
311b5970 2963
484a26a8
TG
29642011-08-01 Tristan Gingold <gingold@adacore.com>
2965
2966 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2967
c30eee59
TJB
29682011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2969
2970 * breakpoint.c (insert_bp_location): Document return value.
2971 (insert_breakpoint_locations): Fix documentation.
2972 (remove_breakpoints): Add documentation.
2973
f116073b
TJB
29742011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2975
2976 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2977 argument. Update callers.
2978
65aa373f
JK
29792011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2980
2981 * stack.c (print_frame_info): Comment typo fix.
2982
a50242fb
SA
29832011-07-29 Sterling Augustine <saugustine@google.com>
2984
2985 * MAINTAINERS (Write After Approval): Add myself to the list.
2986
267f6504
TT
29872011-07-29 Tom Tromey <tromey@redhat.com>
2988
2989 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2990 (library_list_start_segment): Update.
2991 (library_list_start_section): Update.
2992
00bd41d6
PM
29932011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2994
2995 * varobj.c (value_get_print_value): Move hint check later into the
2996 function. Comment function. Free thevalue before reusing it.
2997
18a46dbe
JK
29982011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2999 Pedro Alves <pedro@codesourcery.com>
3000
3001 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3002 value_one.
3003 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3004 Assert the result kind.
3005 * value.h (value_one): Remove parameter lv.
3006
bb7da2bf
JK
30072011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3008
3009 Fix crash on lval_computed values.
3010 * valops.c (value_zero): Use not_lval for lval_computed.
3011
2d5213f8
TT
30122011-07-27 Tom Tromey <tromey@redhat.com>
3013
3014 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3015 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3016
11081198
JK
30172011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3018
3019 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3020 "ptype" by their typedefs difference.
3021
3c6e0cb3
JK
30222011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3023
3024 * dwarf2expr.c (ctx_no_read_reg): New function.
3025 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3026 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3027 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3028 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3029
523f3620
JK
30302011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3031
3032 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3033 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3034 file.
3035 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3036 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3037 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3038 (ctx_no_get_base_type): Move the functions here.
3039 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3040 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3041 (ctx_no_get_base_type): New declarations.
3042
24d3216f
TT
30432011-07-27 Tom Tromey <tromey@redhat.com>
3044
3045 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3046 entries.
3047 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3048 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3049
5005c8a9
PP
30502011-07-26 Sterling Augustine <saugustine@google.com>
3051
3052 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3053 ULONGEST.
3054 (dump_bfd_file): Likewise.
3055
480a3f21
PW
30562011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3057
3058 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3059 (remote_hw_watchpoint_length_limit): New variable.
3060 (_initialize_remote) add set,show cmds for this new variable.
3061 * gdb.texinfo: document these new commands.
3062 * NEWS: Mention these new commands.
3063
efa80663
PA
30642011-07-26 Pedro Alves <pedro@codesourcery.com>
3065
3066 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3067 true for software watchpoints.
3068
dbdaa232 30692011-07-26 Joel Brobecker <brobecker@adacore.com>
3070
3071 GDB 7.3 released.
3072
cf2c3c16
TT
30732011-07-26 Tom Tromey <tromey@redhat.com>
3074
3075 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3076 * dwarf2read.c (read_indirect_string_at_offset): New function.
3077 (read_indirect_string): Use it.
3078 (dwarf_decode_macro_bytes): New function, taken from
3079 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3080 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3081 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3082 New functions.
3083 (struct dwarf2_per_objfile) <macro>: New field.
3084 (dwarf2_elf_names): Add .debug_macro.
3085 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3086 (dwarf2_locate_sections): Handle new section.
3087 (read_file_scope): Handle DW_AT_GNU_macros.
3088 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3089
1a532630
PP
30902011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3091
3092 * NEWS: Mention dcache configuration.
3093 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3094 (dcache_size, dcache_line_size): New variables.
3095 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3096 (struct dcache_block): Make it expandable.
3097 (struct dcache_struct): New field.
3098 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3099 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3100 (dcache_poke_byte, dcache_print_line): Adjust.
3101 (set_dcache_size, set_dcache_line_size): New functions.
3102 (set_dcache_command, show_dcache_command): New functions.
3103 (_initialize_dcache): Add new commands.
3104
2eff07b3
PP
31052011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3106
3107 * progspace.h (struct program_space): Add solib_add_generation.
3108 * infcmd.c (post_create_inferior): Only call solib_add if not
3109 already done.
3110 * solib.c (solib_add): Increment solib_add_generation.
3111
543305c9
JK
31122011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3113
3114 Fix implicit pointer offsets.
3115 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3116 ptr.OFFSET.
3117
c0a91b2b
TT
31182011-07-25 Tom Tromey <tromey@redhat.com>
3119
3120 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3121 const.
3122 (ada_exception_sal): Make 'ops' const.
3123 (ada_decode_exception_location): Likewise.
3124 (ada_decode_assert_location): Likewise.
3125 (catch_assert_command): Update.
3126 (catch_ada_exception_command): Update.
3127 (create_ada_exception_catchpoint): Make 'ops' const.
3128 * breakpoint.c (set_raw_breakpoint_without_location)
3129 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3130 const.
3131 (create_internal_breakpoint): Update.
3132 (init_raw_breakpoint_without_location): Make 'ops' const.
3133 (init_raw_breakpoint, init_catchpoint)
3134 (create_fork_vfork_event_catchpoint)
3135 (create_syscall_event_catchpoint, init_breakpoint_sal)
3136 (create_breakpoint_sal, create_breakpoints_sal)
3137 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3138 * breakpoint.h (struct breakpoint) <ops>: Now const.
3139 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3140 const.
3141
6cb9b55b
PP
31422011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3143
3144 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3145
d9b3f62e
PA
31462011-07-25 Pedro Alves <pedro@codesourcery.com>
3147
3148 * breakpoint.h (print_recreate_thread): Declare.
3149 (struct breakpoint): Move step_count, pass_count,
3150 number_on_target, static_trace_marker_id,
3151 static_trace_marker_id_idx ...
3152 (struct tracepoint): ... to this new struct.
3153 (get_tracepoint, get_tracepoint_by_number_on_target)
3154 (get_tracepoint_by_number): Change return type to struct
3155 tracepoint pointer.
3156 * breakpoint.c (is_tracepoint_type): New, factored out from
3157 is_tracepoint.
3158 (is_tracepoint): Adjust.
3159 (print_one_breakpoint_location): Cast to struct tracepoint as
3160 necessary, and adjust.
3161 (print_recreate_catch_fork, print_recreate_catch_vfork)
3162 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3163 print_recreate_thread.
3164 (init_breakpoint_sal): New, factored out from
3165 create_breakpoint_sal.
3166 (create_breakpoint_sal): Reimplement.
3167 (create_breakpoint): Allocate a struct tracecepoint if the caller
3168 wanted a tracepoint. Use init_breakpoint_sal and
3169 install_breakpoint.
3170 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3171 (print_recreate_masked_watchpoint)
3172 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3173 (tracepoint_print_one_detail): Adjust.
3174 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3175 Dump the pass count here.
3176 (update_static_tracepoint): Adjust.
3177 (addr_string_to_sals): Adjust.
3178 (create_tracepoint_from_upload): Adjust. Change return type to
3179 struct tracepoint pointer.
3180 (trace_pass_set_count): Change parameter type to struct tracepoint
3181 pointer, and adjust.
3182 (trace_pass_command): Adjust.
3183 (get_tracepoint, get_tracepoint_by_number_on_target)
3184 (get_tracepoint_by_number): Change return type to struct
3185 tracepoint pointer, and adjust.
3186 (print_recreate_thread): New, factored out from save_breakpoints.
3187 (save_breakpoints): Don't print thread and task and passcount
3188 recreation here.
3189 * remote.c (remote_download_tracepoint): Adjust.
3190 * tracepoint.c (trace_actions_command, validate_actionline)
3191 (start_tracing, tfind_1, trace_find_tracepoint_command)
3192 (trace_dump_command): Adjust.
3193 (find_matching_tracepoint): Change return type to struct
3194 tracepoint pointer, and adjust.
3195 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3196 (tfile_trace_find, tfile_fetch_registers): Adjust.
3197 * tracepoint.h (create_tracepoint_from_upload): Change return type
3198 to struct tracepoint pointer.
3199 * ada-lang.c (print_recreate_exception): Call
3200 print_recreate_thread.
3201 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3202
3a5c3e22
PA
32032011-07-25 Pedro Alves <pedro@codesourcery.com>
3204
3205 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3206 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3207 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3208 watchpoint_thread, watchpoint_triggered ...
3209 (struct watchpoint): ... to this new struct.
3210 (is_watchpoint): Declare.
3211 (install_breakpoint): Add new `internal' parameter.
3212 * breakpoint.c (is_watchpoint): Delete declaration.
3213 (set_breakpoint_condition): Handle watchpoints.
3214 (is_watchpoint): Make public.
3215 (watchpoint_in_thread_scope): Change parameter type to struct
3216 watchpoint.
3217 (watchpoint_del_at_next_stop): Change parameter type to struct
3218 watchpoint. Remove assertion. Adjust.
3219 (update_watchpoint): Ditto.
3220 (insert_breakpoints, breakpoint_init_inferior)
3221 (watchpoints_triggered, watchpoint_check)
3222 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3223 (bpstat_stop_status, print_one_breakpoint_location)
3224 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3225 to struct watchpoint as necessary, and adjust.
3226 (install_breakpoint): Add `internal' argument. If true, don't
3227 mention the new breakpoint. Use set_breakpoint_number.
3228 (create_fork_vfork_event_catchpoint)
3229 (create_syscall_event_catchpoint): Adjust.
3230 (dtor_watchpoint): New.
3231 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3232 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3233 (print_it_watchpoint, print_mention_watchpoint)
3234 (print_recreate_watchpoint, insert_masked_watchpoint)
3235 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3236 (print_one_detail_masked_watchpoint)
3237 (print_mention_masked_watchpoint)
3238 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3239 necessary, and adjust.
3240 (watch_command_1): Allocate and initialize a struct watchpoint
3241 instead of a struct breakpoint. Use install_breakpoint.
3242 (catch_exec_command_1): Adjust.
3243 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3244 fields.
3245 (delete_breakpoint, enable_breakpoint_disp)
3246 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3247 as necessary, and adjust.
3248 (initialize_breakpoint_ops): Install dtor_watchpoint as
3249 watchpoints' dtor method.
3250 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3251 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3252 to struct watchpoint as necessary, and adjust.
3253
2060206e
PA
32542011-07-25 Pedro Alves <pedro@codesourcery.com>
3255
3256 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3257 the the base class ops table.
3258 (catch_exception_breakpoint_ops)
3259 (catch_exception_unhandled_breakpoint_ops)
3260 (catch_assert_breakpoint_ops): Don't statically initialize.
3261 (initialize_ada_catchpoint_ops): New.
3262 (_initialize_ada_language): Call it.
3263 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3264 (bkpt_breakpoint_ops): Forward declare.
3265 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3266 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3267 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3268 (masked_watchpoint_breakpoint_ops)
3269 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3270 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3271 base class ops table.
3272 (null_re_set, null_check_status, null_works_in_software_mode)
3273 (null_resources_needed, null_print_one_detail): Delete.
3274 (bkpt_dtor): Rename to ...
3275 (base_breakpoint_dtor): ... this. Make static.
3276 (bkpt_allocate_location): Rename to ...
3277 (base_breakpoint_allocate_location): ... this. Make static.
3278 (base_breakpoint_re_set): New.
3279 (internal_error_pure_virtual_called): New.
3280 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3281 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3282 (base_breakpoint_works_in_software_mode)
3283 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3284 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3285 (base_breakpoint_print_recreate): New functions.
3286 (base_breakpoint_ops): New global.
3287 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3288 (bkpt_breakpoint_hit): Make static.
3289 (bkpt_check_status): Delete.
3290 (bkpt_resources_needed): Make static.
3291 (bkpt_works_in_software_mode): Delete.
3292 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3293 static.
3294 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3295 (momentary_breakpoint_ops): Don't statically initialize.
3296 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3297 Delete.
3298 (tracepoint_insert_location, tracepoint_remove_location)
3299 (tracepoint_check_status, tracepoint_works_in_software_mode)
3300 (tracepoint_print_it): Delete.
3301 (tracepoint_breakpoint_ops): Don't statically initialize.
3302 (initialize_breakpoint_ops): New.
3303 (_initialize_breakpoint): Call it.
3304 * breakpoint.h (null_re_set, null_works_in_software_mode)
3305 (null_resources_needed, null_check_status, null_print_one_detail):
3306 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3307 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3308 (bkpt_check_status, bkpt_resources_needed)
3309 (bkpt_works_in_software_mode, bkpt_print_it)
3310 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3311 Delete declarations.
3312 (initialize_breakpoint_ops): Declare.
3313
001c8c33
PA
33142011-07-25 Pedro Alves <pedro@codesourcery.com>
3315
3316 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3317 (momentary_bkpt_print_it): Simplify.
3318
06edf0c0
PA
33192011-07-25 Pedro Alves <pedro@codesourcery.com>
3320
3321 Split internal, momentary and user breakpoints breakpoint_ops
3322 tables.
3323
3324 * breakpoint.c (internal_breakpoint_ops)
3325 (momentary_breakpoint_ops): Forward declare.
3326 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3327 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3328 (create_overlay_event_breakpoint)
3329 (create_std_terminate_master_breakpoint)
3330 (create_exception_master_breakpoint): Create breakpoints with
3331 internal_breakpoint_ops vtable.
3332 (set_longjmp_breakpoint): Create momentary breakpoints with
3333 momentary_breakpoint_ops vtable, using
3334 momentary_breakpoint_from_master.
3335 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3336 (create_solib_event_breakpoint): Create breakpoints with
3337 internal_breakpoint_ops vtable.
3338 (set_momentary_breakpoint): Create breakpoints with
3339 momentary_breakpoint_ops vtable.
3340 (momentary_breakpoint_from_master): New, factored out from
3341 clone_momentary_breakpoint.
3342 (clone_momentary_breakpoint): Adjust.
3343 (watch_command_1): Create scope breakpoints with
3344 momentary_breakpoint_ops vtable.
3345 (bkpt_re_set): Remove handling of internal and momentary
3346 breakpoints.
3347 (bkpt_print_mention, bkpt_print_recreate): New.
3348 (bkpt_breakpoint_ops): Adjust.
3349 (internal_bkpt_re_set, internal_bkpt_check_status)
3350 (internal_bkpt_print_it, internal_bkpt_print_mention)
3351 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3352 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3353 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3354 (momentary_bkpt_print_recreate): New.
3355 (momentary_breakpoint_ops): New.
3356
348d480f
PA
33572011-07-25 Pedro Alves <pedro@codesourcery.com>
3358
3359 Implement most breakpoint_ops methods for all breakpoint types,
3360 and move the default handlings to the proper callbacks.
3361
3362 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3363 works_in_software_mode method.
3364 (insert_bp_location): Go through breakpoint_ops->insert_location
3365 for software and hardware watchpoints.
3366 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3367 breakpoint_ops.
3368 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3369 for software and hardware watchpoints.
3370 (print_it_typical): Delete.
3371 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3372 method.
3373 (watchpoint_check): Adjust comment.
3374 (bpstat_check_location): Simply always call the breakpoint's
3375 breakpoint_hit method.
3376 (bpstat_stop_status): Always call the breakpoint's check_status
3377 method. Remove special cases for watchpoints and internal event
3378 breakpoints from here (moved to the check_status implementations).
3379 (print_one_breakpoint_location): Assume b->ops is never NULL.
3380 Remove static tracepoint marker id printing from here (moved to
3381 the print_one_detail callback implementation of tracepoints).
3382 (init_bp_location): Assert OPS is never NULL.
3383 (allocate_bp_location): Always call the breakpoint's
3384 allocate_location method, and remove the default code from here.
3385 (free_bp_location): Always call the location's dtor method, and
3386 remove the default code from here.
3387 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3388 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3389 parameter. Pass it down.
3390 (set_raw_breakpoint): Ditto.
3391 (print_it_catch_fork): Adjust to take a bpstat as argument.
3392 (catch_fork_breakpoint_ops): Install methods.
3393 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3394 (catch_vfork_breakpoint_ops): Install methods.
3395 (dtor_catch_syscall): Call the base dtor.
3396 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3397 (catch_syscall_breakpoint_ops): Install methods.
3398 (dtor_catch_exec): Call the base dtor.
3399 (print_it_catch_exec): Adjust to take a bpstat as argument.
3400 (catch_exec_breakpoint_ops): Install methods.
3401 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3402 the breakpoint's resources_needed method, and remove the default
3403 code from here.
3404 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3405 breakpoint_ops.
3406 (clone_momentary_breakpoint): Clone the original's ops.
3407 (mention): Always call the breakpoint's print_mention method, and
3408 remove the default code from here.
3409 (create_breakpoint_sal): Adjust to pass the ops to
3410 set_raw_breakpoint rather than setting it manually.
3411 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3412 ops to set_raw_breakpoint_without_location rather than setting it
3413 manually.
3414 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3415 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3416 (ranged_breakpoint_ops): Install methods.
3417 (break_range_command): Adjust to pass the ops to
3418 set_raw_breakpoint rather than setting it manually.
3419 (re_set_watchpoint, breakpoint_hit_watchpoint)
3420 (check_status_watchpoint, resources_needed_watchpoint)
3421 (works_in_software_mode_watchpoint, print_it_watchpoint)
3422 (print_mention_watchpoint, print_recreate_watchpoint): New
3423 functions.
3424 (watchpoint_breakpoint_ops): Install new methods.
3425 (print_it_masked_watchpoint): New function.
3426 (masked_watchpoint_breakpoint_ops): Install new methods.
3427 (watch_command_1): Adjust to pass the right breakpoint_ops to
3428 set_raw_breakpoint_without_location rather than setting it
3429 manually later. Record the current pspace.
3430 (print_it_exception_catchpoint): Adjust to take a bpstat as
3431 argument.
3432 (gnu_v3_exception_catchpoint_ops): Install new methods.
3433 (say_where): New function.
3434 (null_re_set, null_check_status, null_works_in_software_mode)
3435 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3436 New functions.
3437 (bp_location_ops): New global.
3438 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3439 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3440 (bkpt_check_status, bkpt_resources_needed)
3441 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3442 (bkpt_print_recreate): New functions.
3443 (bkpt_breakpoint_ops): New global.
3444 (tracepoint_re_set, tracepoint_insert_location)
3445 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3446 (tracepoint_check_status, tracepoint_works_in_software_mode)
3447 (tracepoint_print_it, tracepoint_print_one_detail)
3448 (tracepoint_print_mention, tracepoint_print_recreate): New
3449 functions.
3450 (tracepoint_breakpoint_ops): New global.
3451 (delete_breakpoint): Always call the breakpoint's dtor method, and
3452 remove the default handling from here.
3453 (breakpoint_re_set_default): Make static.
3454 (breakpoint_re_set_one): Always call the breakpoints re_set
3455 method, and remove the default handling from here.
3456 (trace_command, ftrace_command, strace_command)
3457 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3458 to create_breakpoint.
3459 (save_breakpoints): Always call the breakpoint's print_recreate
3460 method, and remove the default handling from here.
3461
3462 * ada-lang.c (dtor_exception): Call the base dtor.
3463 (re_set_exception): Call the base method.
3464 (print_it_exception, print_it_catch_exception): Adjust to take a
3465 bpstat as argument.
3466 (catch_exception_breakpoint_ops): Install methods.
3467 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3468 argument.
3469 (catch_exception_unhandled_breakpoint_ops): Install methods.
3470 (print_it_catch_assert): Adjust to take a bpstat as argument.
3471 (catch_assert_breakpoint_ops): Install methods.
3472
3473 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3474 to take a bpstat as argument.
3475 (enum print_stop_action): Add describing comments to each enum
3476 value.
3477 (breakpoint_re_set_default): Delete declaration.
3478 (null_re_set, null_works_in_software_mode, null_resources_needed)
3479 (null_check_status, null_print_one_detail): Declare.
3480 (bkpt_breakpoint_ops): Declare.
3481 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3482 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3483 (bkpt_check_status, bkpt_resources_needed)
3484 (bkpt_works_in_software_mode, bkpt_print_it)
3485 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3486 Declare.
3487
3488 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3489 bkpt_breakpoint_ops.
3490 * python/py-breakpoint.c (bppy_init): Ditto.
3491
be8f8133
PW
34922011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3493
3494 * MAINTAINERS (Write After Approval): Add myself to the list.
3495
3807f613
PP
34962011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3497
3498 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3499
1ced966e
PA
35002011-07-22 Pedro Alves <pedro@codesourcery.com>
3501
3502 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3503 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3504 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3505 adjust.
3506 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3507 (struct i386_debug_reg_state): New.
3508 (i386_init_dregs): New.
3509 (dr_mirror): New.
3510 (i386_cleanup_dregs): Use i386_init_dregs.
3511 (i386_show_dr): Add state parameter and adjust.
3512 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3513 the inferior here.
3514 (i386_remove_aligned_watchpoint): Likewise.
3515 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3516 (i386_update_inferior_debug_regs): New.
3517 (i386_insert_watchpoint): Work on a local mirror of the debug
3518 registers, and only update the inferior on success.
3519 (i386_remove_watchpoint): Ditto.
3520 (i386_region_ok_for_watchpoint): Adjust.
3521 (i386_stopped_data_address): Adjust.
3522 (i386_insert_hw_breakpoint): Adjust.
3523 (i386_remove_hw_breakpoint): Adjust.
3524
3543a589
TT
35252011-07-22 Tom Tromey <tromey@redhat.com>
3526
3527 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3528 from amd64_pseudo_register_read. Change arguments. Call
3529 mark_value_bytes_unavailable when needed.
3530 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3531 set_gdbarch_pseudo_register_read.
3532 * sentinel-frame.c (sentinel_frame_prev_register): Use
3533 regcache_cooked_read_value.
3534 * regcache.h (regcache_cooked_read_value): Declare.
3535 * regcache.c (regcache_cooked_read_value): New function.
3536 (regcache_cooked_read): Call
3537 gdbarch_pseudo_register_read_value if available.
3538 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3539 (i386_pseudo_register_read): Remove.
3540 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3541 i386_pseudo_register_read. Change arguments. Call
3542 mark_value_bytes_unavailable when needed.
3543 (i386_pseudo_register_read_value): New function.
3544 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3545 not set_gdbarch_pseudo_register_read.
3546 * gdbarch.sh (pseudo_register_read_value): New method.
3547 * gdbarch.c, gdbarch.h: Rebuild.
3548 * findvar.c (value_from_register): Call get_frame_register_value.
3549
95298e72
PM
35502011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3551
3552 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3553 get_prefix.
3554 (display_gdb_prompt): Likewise.
3555 (change_annotation_level): Likewise.
3556 (push_prompt): Likewise.
3557 (pop_prompt): Likewise.
3558 (handle_stop_sig): Use get_prompt with a level.
3559 * top.c (command_loop): Use get_prompt with a level.
3560 (set_async_annotation_level): Use set_prompt with a level.
3561 (get_prefix): New function.
3562 (set_prefix): Ditto.
3563 (set_suffix): Ditto.
3564 (get_suffix): Ditto.
3565 (get_prompt): Accept a level argument.
3566 (set_prompt): Accept a level argument. Free old prompts. Set
3567 new_async_prompt if level is 0.
3568 (init_main): Use set_prompt with a level. Do not set
3569 new_async_prompt.
3570 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3571 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3572 Modify set_prompt, get_prompt to account for levels.
3573 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3574 level.
3575 * python/python.c (before_prompt_hook): Use set_prompt.
3576
d26e3629
KY
35772011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3578
3579 * defs.h: Add guard against inclusion in gdbserver.
3580 (struct ptid, ptid_t): Move to common/ptid.h.
3581 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3582 xsnprintf, internal_error): Move to common/common-utils.h.
3583 (nomem): Delete.
3584 * gdb_assert.h: Move into common/ sub-directory.
3585 * gdb_locale.h: Ditto.
3586 * gdb_dirent.h: Ditto.
3587 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3588 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3589 Move into common/ptid.h.
3590 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3591 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3592 Change nomem to malloc_failure.
3593 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3594 * utils.c (nomem): Rename to malloc_failure.
3595 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3596 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3597 (gdb_buildargv): Change nomem to malloc_failure.
3598 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3599 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3600 ptid_is_pid): Move into common/ptid.c.
3601 (initialize_infrun): Delete initialization of null_ptid and
3602 minus_one_ptid.
3603 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3604 linux_common_xfer_osdata.
3605 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3606 common/ptid.c and common/buffer.c.
3607 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3608 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3609 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3610 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3611 rules.
3612 * common/gdb_assert.h: New.
3613 * common/gdb_dirent.h: New.
3614 * common/gdb_locale.h: New.
3615 * common/buffer.c: New.
3616 * common/buffer.h: New.
3617 * common/ptid.c: New.
3618 * common/ptid.h: New.
3619 * common/xml-utils.c: New.
3620 * common/xml-utils.h: New.
3621 * common/common-utils.c: New.
3622 * common/common-utils.h: New.
3623 * common/linux-osdata.c: New.
3624 * common/linux-osdata.h: New.
3625 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3626 * config/arm/linux.mh (NATDEPFILES): Ditto.
3627 * config/i386/linux.mh (NATDEPFILES): Ditto.
3628 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3629 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3630 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3631 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3632 * config/mips/linux.mh (NATDEPFILES): Ditto.
3633 * config/pa/linux.mh (NATDEPFILES): Ditto.
3634 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3635 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3636 * config/s390/s390.mh (NATDEPFILES): Ditto.
3637 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3638 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3639 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3640
edc84990 36412011-07-21 Matt Rice <ratmice@gmail.com>
3642
3643 * NEWS: Add info macros and info definitions commands.
3644
3a7bf607
PM
36452011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3646
3647 * NEWS: Document Python prompt substitution hook.
3648
9b158ba0 36492011-07-18 Matt Rice <ratmice@gmail.com>
3650
3651 PR macros/12999
3652 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3653 * macrotab.c (foreach_macro): Ditto.
3654 (foreach_macro_in_scope): Ditto.
3655 * macrocmd.c (print_macro_callback): New function.
3656 (info_macro_command): Move some code to print_macro_definition.
3657 (print_macro_definition): New function.
3658 (print_one_macro): Add new arguments to callback.
3659 (info_definitions_command): New function.
3660 (info_macros_command): Ditto.
3661 (_initialize_macrocmd): Add info macros and info definitions commands.
3662 * symtab.c (add_macro_name): Add new arguments to callback.
3663
d17b6f81
PM
36642011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3665 Tom Tromey <tromey@redhat.com>
3666
3667 * top.c (set_prompt): Rewrite to free previous prompt, free
3668 asynch_new_prompt and set both on new prompts.
3669 * event-top.c (display_gdb_prompt): Add prompt substitution
3670 logic.
3671 * python/python.c (before_prompt_hook): New function.
3672
1364323a 36732011-07-20 Matt Rice <ratmice@gmail.com>
3674
3675 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3676 arguments to store_unsigned_integer.
3677
8b70b953
TT
36782011-07-20 Tom Tromey <tromey@redhat.com>
3679
6c83ed52
TT
3680 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3681 in some declaration-only cases.
3682
36832011-07-18 Tom Tromey <tromey@redhat.com>
3684
8b70b953
TT
3685 PR symtab/12984:
3686 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3687 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3688 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3689 <debug_type_section>: New field.
3690 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3691 (load_cu): Use appropriate section.
3692 (create_signatured_type_table_from_index): Add 'section'
3693 argument.
3694 (dwarf2_read_index): Only allow a single .debug_types section.
3695 (dw2_get_file_names): Use appropriate section.
3696 (read_type_comp_unit_head): Add 'section' argument.
3697 (create_debug_types_hash_table): Loop over all .debug_types
3698 sections.
3699 (init_cu_die_reader): Use appropriate section.
3700 (process_psymtab_comp_unit, load_partial_comp_unit)
3701 (load_full_comp_unit, read_die_and_children, find_partial_die)
3702 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3703 (lookup_signatured_type_at_offset): Add 'section' argument.
3704 (read_signatured_type_at_offset): Add 'sect' argument.
3705 (read_signatured_type): Use appropriate section.
3706 (set_die_type, get_die_type_at_offset): Update.
3707 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3708 VEC.
3709 (write_psymtabs_to_index): Don't allow index with more than one
3710 .debug_types section.
3711
918dd910
JK
37122011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3713
3714 Fix crash if referenced CU is aged out.
3715 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3716 xfree of block.data.
3717 (indirect_pieced_value): New variable back_to, use to for xfree of
3718 baton.data.
3719 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3720 block.data.
3721 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3722 (load_cu): New function from ...
3723 (dw2_do_instantiate_symtab): ... the code here ...
3724 (process_full_comp_unit): ... and here.
3725 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3726 retval.data.
3727
0e37a63c
JK
37282011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3731 type.
3732
7e324e48
GB
37332011-07-19 Gary Benson <gbenson@redhat.com>
3734
3735 * infrun.c (struct execution_control_state): New member
3736 stop_func_filled_in.
3737 (clear_stop_func, fill_in_stop_func): New functions.
3738 (handle_inferior_event): Call clear_stop_func rather than
3739 manipulating the execution control state directly.
3740 Call fill_in_stop_func lazily as required rather than
3741 directly calling find_pc_partial_function in all cases.
3742
d48323d8
TT
37432011-07-18 Tom Tromey <tromey@redhat.com>
3744
3745 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3746 checking for variable-sized array.
3747
40591b7d
JCD
37482011-07-18 Jean-Charles Delay <delay@adacore.com>
3749
3750 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3751 of supported languages.
3752 * varobj.c: Add top definitions and basic implementation of the
3753 following callbacks: ada_number_of_children, ada_name_of_variable,
3754 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3755 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3756 (languages): Register Ada-specific callbacks.
3757 (variable_language): Add the Ada case in the language setter switch.
3758
2e424e08
JK
37592011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3760
3761 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3762
9e8b7a03
JK
37632011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3764
3765 Code cleanup.
3766 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3767 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3768 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3769 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3770 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3771 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3772 (struct dwarf_expr_context_funcs): New, move here methods from ...
3773 (struct dwarf_expr_context): ... here. New fields funcs.
3774 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3775 (dwarf_expr_ctx_funcs): New.
3776 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3777 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3778 (needs_frame_ctx_funcs): New.
3779 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3780
2b1260ab
FM
37812011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3782
3783 * MAINTAINERS (Write After Approval): Add myself to the list.
3784
8bd90839
FM
37852011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3786
3787 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3788 that CIE pointer of an FDE really points to a CIE .
3789
953b98d1
HZ
37902011-07-15 Hui Zhu <teawater@gmail.com>
3791
3792 * remote.c (remote_get_trace_status): Add comments.
3793
c8f2448a
JK
37942011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3795
3796 Code cleanup - constify struct lval_funcs.
3797 * dwarf2loc.c (pieced_value_funcs): Make it const.
3798 * infrun.c (siginfo_value_funcs): Likewise.
3799 * opencl-lang.c (opencl_value_funcs): Likewise.
3800 * valops.c (value_assign, value_ind): Make the funcs variable const.
3801 * value.c (struct value): Make location.computed.funcs target const.
3802 Rearrange the comments.
3803 (allocate_computed_value): Make the funcs parameter target const.
3804 (value_computed_funcs): Return the funcs target const.
3805 (value_free, value_copy, set_value_component_location): Make the funcs
3806 variable const.
3807 * value.h (allocate_computed_value): Make the funcs parameter target
3808 const.
3809 (value_computed_funcs): Return the funcs target const.
3810 * windows-tdep.c (tlb_value_funcs): Make it const.
3811
f652de6f
HZ
38122011-07-14 Hui Zhu <teawater@gmail.com>
3813
3814 * remote.c (remote_get_trace_status): Initialize p.
3815
67f41397
JK
38162011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3817
3818 Work around kgdb.
3819 * remote.c (remote_get_trace_status): New variable ex. Put
3820 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3821
d1b66e6d
TT
38222011-07-13 Tom Tromey <tromey@redhat.com>
3823
3824 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3825 value_from_contents for final conversion.
3826
1632a688
JK
38272011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3828
3829 Code cleanup.
3830 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3831 Indent prototypes so they do not get into tags.
3832
a7035dbb
JK
38332011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3834
3835 Code cleanup making also optimized out values lazy.
3836 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3837 allocate_optimized_out_value. Twice.
3838 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3839 * findvar.c (read_var_value): Likewise.
3840 * value.c (allocate_optimized_out_value): New function.
3841 * value.h (allocate_optimized_out_value): New declaration.
3842
d07ed419
JK
38432011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3844
3845 Fix occasional crash of CTRL-C during DWARF read in.
3846 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3847
86d31898
TT
38482011-07-11 Tom Tromey <tromey@redhat.com>
3849
3850 * regcache.c (struct regcache_descr): Fix typo.
3851 * i387-tdep.c (i387_supply_xsave): Fix typo.
3852
2ab95328
TT
38532011-07-11 Tom Tromey <tromey@redhat.com>
3854
3855 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3856 (read_file_scope, read_type_unit_scope): Use it.
3857
04ad99e6
JK
38582011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3861 `int'.
3862
713389e0
PM
38632011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3864
3865 PR python/12438
3866 * python/python.c: Set gdbpy_should_print_stack default to off.
3867 (set_python): Deprecate maint set python print-stack to
3868 class_deprecate.
3869 (_initialize_python): Deprecate maint set/show python print-stack.
3870 Add new prefix command, python. Add new setting, print-backtrace.
3871 * NEWS: Document set python print-stack. Document default change.
3872
754eadd1
PM
38732011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3874
3875 * python/py-inferior.c (infpy_dealloc): New function.
3876 (inferior_to_inferior_object): Return a new object, or a
3877 new reference to the existing object.
3878 (find_thread_object): Cleanup references to inferior.
3879 (delete_thread_object): Ditto.
3880 * python/py-infthread.c (create_thread_object): Do not increment
3881 inferior reference count.
3882
5e44ecb3
TT
38832011-07-08 Tom Tromey <tromey@redhat.com>
3884
3885 * dwarf2loc.c (locexpr_regname): New function.
3886 (locexpr_describe_location_piece): Use it.
3887 (disassemble_dwarf_expression): Add per_cu argument. Use
3888 locexpr_regname.
3889 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3890 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3891 New cases.
3892 (locexpr_describe_location_1): Add per_cu argument.
3893 (locexpr_describe_location): Update.
3894 (loclist_describe_location): Update.
3895
e0e9434c
TT
38962011-07-08 Tom Tromey <tromey@redhat.com>
3897
3898 * dwarf2expr.c (execute_stack_op): Add QUIT.
3899
26afc0d7
HZ
39002011-07-07 Hui Zhu <teawater@gmail.com>
3901
3902 Revert:
3903 2011-07-06 Hui Zhu <teawater@gmail.com>
3904 * remote.c (remote_start_remote): Add TRY_CATCH for
3905 remote_get_trace_status.
3906 * tracepoint.c (disconnect_tracing): Ditto.
3907
a40a111f
AB
39082011-07-07 Andrew Burgess <aburgess@broadcom.com>
3909
3910 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3911 variables as signed, not unsigned.
3912
e2bd3b15
JB
39132011-07-06 Joel Brobecker <brobecker@adacore.com>
3914
3915 * jit.c (jit_inferior_init): Reformat forward declaration.
3916
e3d961fe 39172011-07-06 Matt Rice <ratmice@gmail.com>
3918
3919 * MAINTAINERS (Write After Approval): Add myself to the list.
3920
0f3428f0
HZ
39212011-07-06 Hui Zhu <teawater@gmail.com>
3922
3923 * remote.c (remote_start_remote): Add TRY_CATCH for
3924 remote_get_trace_status.
3925 * tracepoint.c (disconnect_tracing): Ditto.
3926
fc9f3a69
TT
39272011-07-05 Tom Tromey <tromey@redhat.com>
3928
3929 * symtab.c (operator_chars): Now static.
3930 * linespec.c (operator_chars): Don't declare.
3931
26e519b9
TJB
39322011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3933
3934 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3935
eb2a6f42
TT
39362011-07-05 Tom Tromey <tromey@redhat.com>
3937
3938 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3939 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3940 (TYPE_CPLUS_REALLY_JAVA): New macro.
3941 * dwarf2read.c (process_structure_scope): Set
3942 TYPE_CPLUS_REALLY_JAVA.
3943
21083d0f 39442011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3945
3946 * ada-lang.c: Fix typos.
3947 * amd64-tdep.c: Likewise.
3948 * breakpoint.c: Likewise.
3949 * cli/cli-decode.c: Likewise.
3950 * findcmd.c: Likewise.
3951 * inline-frame.c: Likewise.
3952 * mi/mi-main.c: Likewise.
3953 * minsyms.c: Likewise.
3954 * monitor.c: Likewise.
3955 * monitor.h: Likewise.
3956 * prologue-value.c: Likewise.
3957 * reverse.c: Likewise.
3958 * s390-tdep.c: Likewise.
3959
3b2a0cf2
JB
39602011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3961
3962 * jit.c (jit_inferior_init): Forward declare.
3963 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3964
efae1d92
JB
39652011-07-04 Joel Brobecker <brobecker@adacore.com>
3966
3967 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3968
6040a59d
JB
39692011-07-04 Tristan Gingold <gingold@adacore.com>
3970
3971 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3972 (tcb_fieldno): Add activation_link field.
3973 (get_known_tasks_addr): Moved and rewritten.
3974 (get_tcb_types_info): Set activation_link field.
3975 (read_known_tasks_array): Add parameter. Rewritten.
3976 (read_known_tasks_list): New function.
3977 (read_known_tasks): New function.
3978 (ada_build_task_list): Call read_known_tasks instead of
3979 read_known_tasks_array.
3980 * ravenscar-thread.c: Add first_task_name constant.
3981 (has_ravenscar_runtime): Check for task list too.
3982
cb741e45
JB
39832011-07-04 Tristan Gingold <gingold@adacore.com>
3984
3985 * ada-tasks.c: Renames fieldno to actb_fieldno.
3986 (ada_get_task_number): Indentation.
3987 (get_tcb_types_info): Remove all parameters. Write directly
3988 the globals.
3989 (ptid_from_atcb_common): Adjust.
3990 (read_atcb): Adjust.
3991
7475b06c
TJB
39922011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3993
3994 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3995
15230f37
TJB
39962011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3997
3998 * ui-out.c (ui_out_field_core_addr): Mention that the function
3999 description is in the header file.
4000 * ui-out.h (ui_out_field_core_addr): Document function.
4001
65743aba
TJB
40022011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4003
4004 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4005 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4006
c37a5aab
TJB
40072011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4008
4009 * symtab.c (expand_line_sal): Remove empty line.
4010
59adf69e
TS
40112011-07-04 Thomas Schwinge <thomas@schwinge.name>
4012
4013 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4014 same way as ELFOSABI_NONE.
4015 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4016
e5dd4106
TJB
40172011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4018
4019 * breakpoint.c: Fix typos in comments.
4020 * linespec.c: Likewise.
4021 * symtab.c: Likewise.
4022
d40102a1
JB
40232011-07-04 Joel Brobecker <brobecker@adacore.com>
4024
4025 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4026 section in separate object files.
4027
2f741504
JK
40282011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4029
4030 Fix false GCC warning.
4031 * linespec.c (decode_line_1): Initialize values.
4032
418c7cf7
JK
40332011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4034
4035 * linespec.c (find_method): Accept the function type automatically only
4036 if it was specified with parameter types.
4037
3d50dd94
JK
40382011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 Stop on first linespec terminator instead of eating what we can.
4041 * linespec.c (is_linespec_boundary): New function.
4042 (name_end): Remove function.
4043 (keep_name_info): New parameter on_boundary, replace the body.
4044 (decode_line_1): Provide the parameter to keep_name_info.
4045 (decode_compound): Likewise. Drop the trailing java return type
4046 handling. Twice.
4047
dcf9f4ab
JK
40482011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4049
4050 Fall back linespec to minimal symbols.
4051 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4052 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4053 (find_method, symbol_found): Change error to cplusplus_error.
4054
3f542ed1
JK
40552011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4056
bc68c4e5 4057 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4058
900e11f9
JK
40592011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4060 Tom Tromey <tromey@redhat.com>
4061
4062 * dwarf2read.c (check_physname): New variable.
4063 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4064 (show_check_physname): New function.
4065 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4066
2301925d
JB
40672011-07-01 Joel Brobecker <brobecker@adacore.com>
4068
4069 * machoread.c (macho_symfile_read): Delete OBE comment.
4070
38947cca
JB
40712011-07-01 Joel Brobecker <brobecker@adacore.com>
4072
4073 * machoread.c (struct macho_oso_data): Delete.
4074 (current_oso): Delete.
4075 (macho_relocate_common_syms): New function, mostly extracted
4076 out of
4077 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4078 Remove code that sets and unset current_oso.
4079 (macho_symfile_relocate): Delete handling of common symbols,
4080 now moved to macho_relocate_common_syms.
4081
a7aa0d73
JB
40822011-07-01 Joel Brobecker <brobecker@adacore.com>
4083
4084 * darwin-nat.c (darwin_ptrace): Add documentation.
4085 Set errno to zero before calling ptrace. If ptrace returns
4086 -1 and errno is zero, then change then return zero.
4087 (darwin_kill_inferior): Issue a warning instead of triggering
4088 a failed assertion when the PT_KILL ptrace operations returned
4089 nonzero.
4090
5e9bc145
JB
40912011-07-01 Joel Brobecker <brobecker@adacore.com>
4092
4093 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4094 only when inf->private->no_ptrace.
4095
00eb2c4a
JB
40962011-07-01 Joel Brobecker <brobecker@adacore.com>
4097
4098 * ada-lang.c (print_it_exception): Print temporary catchpoints
4099 as "Temporary catchpoint".
4100 (print_mention_exception): Likewise.
4101
127c81bc
TT
41022011-07-01 Tom Tromey <tromey@redhat.com>
4103
4104 * jv-lang.c (java_language_defn): Use java_printchar,
4105 java_printstr.
4106 (java_get_encoding): New function.
4107 (java_emit_char): Use generic_emit_char.
4108 (java_printchar): New function.
4109 (java_printstr): Likewise.
4110
25552254
JB
41112011-07-01 Joel Brobecker <brobecker@adacore.com>
4112
4113 * ada-typeprint.c (print_record_type): If unable to decode
4114 the name of the parent type, use the encoded name.
4115
d2d43431
JB
41162011-07-01 Jean-Charles Delay <delay@adacore.com>
4117
4118 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4119 pointer to constrained packed array type output.
4120 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4121 packed array output.
4122
54ae186f
JB
41232011-07-01 Jean-Charles Delay <delay@adacore.com>
4124
4125 * ada-typeprint.c (print_array_type): removed if condition on show
4126 being negative for bounds printing.
4127
8f17729f
JB
41282011-07-01 Joel Brobecker <brobecker@adacore.com>
4129
4130 * ada-lang.c (ada_identical_enum_types_p): New function.
4131 (symbols_are_identical_enums): New function.
4132 (remove_extra_symbols): Do nothing if NSYMS < 2.
4133 Use symbols_are_identical_enums.
4134
f5aa6869
JB
41352011-07-01 Joel Brobecker <brobecker@adacore.com>
4136
4137 * ada-valprint.c (ada_value_print): Handle typedefs.
4138
8f465ea7
JB
41392011-07-01 Joel Brobecker <brobecker@adacore.com>
4140
4141 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4142
828292f2
JB
41432011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4144
4145 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4146 (decode_constrained_packed_array): Likewise.
4147 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4148
18920c42
JB
41492011-07-01 Joel Brobecker <brobecker@adacore.com>
4150
4151 * ada-exp.y (convert_char_literal): Handle typedef types.
4152
c90092fe
JB
41532011-07-01 Joel Brobecker <brobecker@adacore.com>
4154
4155 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4156
f748fb40
TT
41572011-06-30 Tom Tromey <tromey@redhat.com>
4158
4159 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4160 * valops.c (find_overload_match): Call do_cleanups on early exit
4161 path.
4162 * solib.c (solib_find): Call do_cleanups on early exit path.
4163
3bb47e8b
TT
41642011-06-30 Tom Tromey <tromey@redhat.com>
4165
4166 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4167 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4168 return paths. Defer final do_cleanups until last return.
4169 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4170 early return.
4171
4727bad3
TT
41722011-06-30 Tom Tromey <tromey@redhat.com>
4173
4174 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4175
bb361dbf
AB
41762011-06-30 Andrew Burgess <aburgess@broadcom.com>
4177
4178 * MAINTAINERS (Write After Approval): Add myself to the list.
4179
e0d00bc7
JK
41802011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4181
4182 Disable epilogue unwinders on recent GCCs.
4183 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4184 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4185 * dwarf2read.c (process_full_comp_unit): Initialize
4186 EPILOGUE_UNWIND_VALID.
4187 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4188 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4189 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4190
4632c0d0
JK
41912011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4192
4193 Code cleanup - reformatting.
4194 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4195 (producer_is_gcc_ge_4): ... here, change the return value.
4196 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4197 interpretation.
4198
32019081
JK
41992011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4200
4201 Fix non-only rename list for Fortran modules import.
4202 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4203 cp_add_using_directive caller.
4204 (cp_add_using_directive): New parameter excludes, describe it. New
4205 variables ix and param. Compare if also excludes match. Allocate NEW
4206 with variable size, initialize EXCLUDES there.
4207 (cp_lookup_symbol_imports): New variable excludep, test
4208 current->EXCLUDES with it.
4209 * cp-support.h: Include vec.h.
4210 (struct using_direct): New field excludes, describe it.
4211 (DEF_VEC_P (const_char_ptr)): New.
4212 (cp_add_using_directive): New parameter excludes.
4213 * defs.h (const_char_ptr): New typedef.
4214 * dwarf2read.c (read_import_statement): New variables child_die,
4215 excludes and cleanups, read in excludes.
4216 (read_namespace): Adjust the cp_add_using_directive caller.
4217
70c622a3
JK
42182011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4219
4220 Code cleanup.
4221 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4222 negative comparisons.
4223
39c4d40a
TT
42242011-06-29 André Pönitz <andre.poenitz@nokia.com>
4225
4226 * mi/mi-main.c (mi_cmd_list_features): Emit
4227 breakpoint-notifications.
4228
3b2b8fea
TT
42292011-06-29 Tom Tromey <tromey@redhat.com>
4230
4231 PR fortran/10036:
4232 * valprint.h (generic_emit_char, generic_printstr): Declare.
4233 * valprint.c (wchar_printable, append_string_as_wide)
4234 (print_wchar): Move from c-lang.c.
4235 (generic_emit_char): New function; mostly taken from c_emit_char.
4236 (generic_printstr): New function; mostly taken from c_printstr.
4237 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4238 represented as arrays.
4239 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4240 type.
4241 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4242 identically to TYPE_CODE_INT.
4243 * f-lang.c (f_get_encoding): New function.
4244 (f_emit_char): Use generic_emit_char.
4245 (f_printchar): Replace comment.
4246 (f_printstr): Use generic_printstr.
4247 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4248 "character" types specially.
4249 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4250 for Fortran.
4251 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4252 Move to valprint.c
4253 (c_emit_char): Call generic_emit_char.
4254 (c_printstr): Call generic_printstr.
4255
168e6d44
GB
42562011-06-29 Gary Benson <gbenson@redhat.com>
4257
4258 * breakpoint.c (bpstat_what): Removed duplicated case.
4259
1c033f8c
TT
42602011-06-28 Tom Tromey <tromey@redhat.com>
4261
4262 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4263
5fe41fbf
TT
42642011-06-27 Tom Tromey <tromey@redhat.com>
4265
4266 * valops.c (find_overload_match): Call do_cleanups before early
4267 return.
4268 * top.c (execute_command): Call do_cleanups before early return.
4269 (command_loop): Likewise.
4270 * stack.c (backtrace_command): Make a null cleanup early. Don't
4271 conditionally call do_cleanups.
4272 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4273 TRY_CATCH.
4274 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4275 so cleanups are always run.
4276 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4277 * findcmd.c (parse_find_args): Call do_cleanups on early return
4278 path.
4279 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4280 Don't conditionally call do_cleanups.
4281 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4282 later.
4283
e26bd57d
EB
42842011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4285
4286 * MAINTAINERS (Write After Approval): Use default email address.
4287
6c3097fc
JB
42882011-06-27 Joel Brobecker <brobecker@adacore.com>
4289
4290 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4291
369c397b
JB
42922011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4293
4294 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4295 saved_regs_mask and copied_regs_mask fields.
4296 (sparc_record_save_insn): New prototype.
4297 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4298 (sparc_record_save_insn): New function.
4299 (sparc_analyze_prologue): Add head comment. Recognize store insns
4300 of call-saved registers. Use OFFSET consistently. Recognize flat
4301 frames and cache their settings.
4302 (sparc32_skip_prologue): Handle flat frames.
4303 (sparc_frame_cache): Add frame_offset to the base address.
4304 (sparc32_frame_cache): Adjust to new frame description.
4305 (sparc32_frame_prev_register): Likewise.
4306 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4307 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4308 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4309 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4310 frame by calling sparc_record_save_insn.
4311 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4312 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4313 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4314
b315ab21
TG
43152011-06-27 Tristan Gingold <gingold@adacore.com>
4316
4317 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4318 field by map_addr and map_len.
4319 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4320 (munmap_section_buffer): Likewise.
4321
ddd49eee
TT
43222011-06-24 Tom Tromey <tromey@redhat.com>
4323
4324 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4325 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4326 * python/python.c (gdbpy_parameter): Make 'arg' const.
4327 (execute_gdb_command): Likewise.
4328 (gdbpy_decode_line): Likewise. Copy it.
4329 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4330 (gdbpy_write): Make 'arg' const.
4331 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4332 const.
4333 (gdbpy_lookup_type): Likewise.
4334 * python/py-prettyprint.c (print_children): Make 'name' const.
4335 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4336 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4337 Py_ssize_t.
4338 * python/py-function.c (fnpy_init): Make 'name' const.
4339 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4340 (gdbpy_string_to_argv): Make 'input' const.
4341 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4342 it.
4343 * gdbtypes.h (lookup_typename): Update.
4344 * gdbtypes.c (lookup_typename): Make 'name' const.
4345 (lookup_struct): Likewise.
4346 (lookup_union): Likewise.
4347 (lookup_enum): Likewise.
4348
5998129b
TT
43492011-06-24 Tom Tromey <tromey@redhat.com>
4350
4351 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4352 gdb_thread_db.h. Move all common/ entries to be together.
4353 (TAGS): Don't depend on DEPFILES.
4354
6e586cc5
YQ
43552011-06-23 Yao Qi <yao@codesourcery.com>
4356
4357 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4358 * remote.c (remote_start_remote): ... here.
4359 * monitor.c (monitor_open): ... here.
4360
86c3c1fc
AB
43612011-06-23 Andrew Burgess <aburgess@broadcom.com>
4362
4363 * gdbtypes.c (append_composite_type_field_aligned): Fix
4364 calculation of bit position based on alignment.
4365
28010a5d
PA
43662011-06-22 Pedro Alves <pedro@codesourcery.com>
4367
4368 * breakpoint.c (bpstat_stop_status): Call the check_status
4369 breakpoint_ops method.
4370 (print_one_breakpoint_location): Also print the condition for Ada
4371 exception catchpoints.
4372 (allocate_bp_location): New, factored out from
4373 allocate_bp_location.
4374 (allocate_bp_location): Adjust. Call the owner breakpoint's
4375 allocate_location method, if there is one.
4376 (free_bp_location): Call the locations's dtor method, if there is
4377 one.
4378 (init_raw_breakpoint_without_location): New breakpoint_ops
4379 parameter. Use it.
4380 (set_raw_breakpoint_without_location): Adjust.
4381 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4382 (set_raw_breakpoint): Adjust.
4383 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4384 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4385 re_set and check_status methods.
4386 (init_catchpoint): Don't memset, initialize thread, addr_string
4387 and enable_state. Pass the ops down to init_raw_breakpoint.
4388 (install_catchpoint): Rename to ...
4389 (install_breakpoint): ... this, and make extern.
4390 (create_fork_vfork_event_catchpoint): Adjust.
4391 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4392 re_set and check_status methods.
4393 (create_syscall_event_catchpoint): Adjust.
4394 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4395 (masked_watchpoint_breakpoint_ops): Install NULL
4396 allocate_location, re_set and check_status methods.
4397 (catch_exec_command_1): Adjust.
4398 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4399 re_set and check_status methods.
4400 (create_ada_exception_breakpoint): Rename to ...
4401 (init_ada_exception_breakpoint): ... this. Add a struct
4402 breakpoint parameter, and delete the exp_string, cond_string and
4403 cond parameters. Use init_raw_breakpoint, and don't install or
4404 mention the breakpoint yet. Don't clear breakpoint fields that
4405 init_raw_breakpoint already clears.
4406 (re_set_breakpoint): Delete, split into ...
4407 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4408 functions.
4409 (breakpoint_re_set_one): Call the breakpoint's
4410 breakpoint_ops->re_set implementation, if there's one. Adjust.
4411 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4412 (struct bp_location_ops): New type.
4413 (struct bp_location): New field `ops'.
4414 (struct breakpoint_ops): New `allocate_location', `re_set' and
4415 `check_status' fields. Make `breakpoint_hit''s description match
4416 reality.
4417 (init_bp_location): Declare.
4418 (breakpoint_re_set_default): Declare.
4419 (create_ada_exception_breakpoint): Rename to ...
4420 (init_ada_exception_breakpoint): ... this. Add a struct
4421 breakpoint parameter, and delete the exp_string, cond_string and
4422 cond parameters.
4423 (install_breakpoint): Declare.
4424 * ada-lang.c: Include exceptions.h.
4425 <Ada exceptions description>: Update.
4426 (struct ada_catchpoint_location): New type.
4427 (ada_catchpoint_location_dtor): New function.
4428 (ada_catchpoint_location_ops): New global.
4429 (ada_catchpoint): New type.
4430 (create_excep_cond_exprs): New function.
4431 (dtor_exception, allocate_location_exception, re_set_exception)
4432 (should_stop_exception, check_status_exception): New functions.
4433 (print_one_exception, print_mention_exception)
4434 (print_recreate_exception): Adjust.
4435 (dtor_catch_exception, allocate_location_catch_exception)
4436 (re_set_catch_exception, check_status_catch_exception): New
4437 functions.
4438 (catch_exception_breakpoint_ops): Install them.
4439 (dtor_catch_exception_unhandled)
4440 (allocate_location_catch_exception_unhandled)
4441 (re_set_catch_exception_unhandled)
4442 (check_status_catch_exception_unhandled): New functions.
4443 (catch_exception_unhandled_breakpoint_ops): Install them.
4444 (dtor_catch_assert, allocate_location_catch_assert)
4445 (re_set_catch_assert, check_status_catch_assert): New functions.
4446 (catch_assert_breakpoint_ops): Install them.
4447 (ada_exception_catchpoint_p): Delete.
4448 (catch_ada_exception_command_split)
4449 (ada_exception_catchpoint_cond_string): Rename exp_string
4450 parameter to excep_string. Adjust.
4451 (ada_parse_catchpoint_condition): Delete.
4452 (ada_exception_sal): Rename the exp_string parameter to
4453 excep_string. Delete the cond_string and cond parameters.
4454 Adjust.
4455 (ada_decode_exception_location): Rename the exp_string parameter
4456 to excep_string. Delete the cond_string and cond parameters.
4457 Adjust.
4458 (create_ada_exception_catchpoint): New function.
4459 (catch_ada_exception_command, ada_decode_assert_location)
4460 (catch_assert_command): Adjust.
4461 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4462
9ac4176b
PA
44632011-06-22 Pedro Alves <pedro@codesourcery.com>
4464
4465 * ada-lang.c: Include arch-utils.h.
4466 (ada_decode_exception_location): Make static.
4467 (catch_ada_exception_command): Moved here from breakpoint.c.
4468 (ada_decode_assert_location): Make static.
4469 (catch_assert_command): Moved here from breakpoint.c.
4470 (_initialize_ada_lang): Install the exception and assert
4471 catchpoint commands here.
4472 * ada-lang.h (ada_decode_exception_location)
4473 (ada_decode_assert_location): Delete declarations.
4474 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4475 breakpoint.h.
4476 (create_ada_exception_breakpoint): Make extern.
4477 (catch_ada_exception_command, catch_assert_command): Moved to
4478 ada-lang.c.
4479 (add_catch_command): Make extern.
4480 (_initilize_breakpoint): Don't install the exception and assert
4481 catchpoint commands here.
4482 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4483 breakpoint.c
4484 (add_catch_command, create_ada_exception_breakpoint): Declare.
4485
c56053d2
PA
44862011-06-22 Pedro Alves <pedro@codesourcery.com>
4487
4488 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4489 the breakpoint to the breakpoint chain here.
4490 (set_raw_breakpoint_without_location): Add the breakpoint to the
4491 breakpoint chain here.
4492 (init_raw_breakpoint): Adjust comments.
4493 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4494 here.
4495 (init_catchpoint): Don't set the catchpoint's breakpoint number
4496 here.
4497 (install_catchpoint): New function.
4498 (create_fork_vfork_event_catchpoint)
4499 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4500 use install_catchpoint.
4501
d2f3fc74
PA
45022011-06-22 Pedro Alves <pedro@codesourcery.com>
4503
4504 * breakpoint.c (create_catchpoint_without_mention)
4505 (create_catchpoint): Delete.
4506
b4d90040
PA
45072011-06-22 Pedro Alves <pedro@codesourcery.com>
4508
4509 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4510 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4511 reference to exec_pathname.
4512 (struct exec_catchpoint): New type.
4513 (dtor_catch_exec): New function.
4514 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4515 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4516 (catch_exec_command_1): Adjust to use init_catchpoint.
4517 (delete_breakpoint): Remove reference to exec_pathname.
4518
be5c67c1
PA
45192011-06-22 Pedro Alves <pedro@codesourcery.com>
4520
4521 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4522 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4523 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4524 reference to syscalls_to_be_caught.
4525 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4526 NULL `dtor'.
4527 (struct syscall_catchpoint): New type.
4528 (dtor_catch_syscall): New function.
4529 (insert_catch_syscall, remove_catch_syscall)
4530 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4531 (print_recreate_catch_syscall): Adjust.
4532 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4533 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4534 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4535 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4536 (masked_watchpoint_breakpoint_ops)
4537 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4538 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4539 there is one. Remove references to syscalls_to_be_caught.
4540 (catching_syscall_number): Adjust.
4541 * ada-lang.c (catch_exception_breakpoint_ops)
4542 (catch_exception_unhandled_breakpoint_ops)
4543 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4544
e29a4733
PA
45452011-06-22 Pedro Alves <pedro@codesourcery.com>
4546
4547 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4548 field.
4549 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4550 reference to forked_inferior_pid.
4551 (struct fork_catchpoint): New type.
4552 (breakpoint_hit_catch_fork, print_it_catch_fork)
4553 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4554 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4555 (create_fork_vfork_event_catchpoint): Adjust to use
4556 init_catchpoint.
4557
346774a9
PA
45582011-06-22 Pedro Alves <pedro@codesourcery.com>
4559
4560 * breakpoint.c (add_to_breakpoint_chain)
4561 (init_raw_breakpoint_without_location): New functions, factored
4562 out from ...
4563 (set_raw_breakpoint_without_location): ... this one.
4564 (init_raw_breakpoint): New function, factored out from
4565 set_raw_breakpoint and adjusted to use
4566 init_raw_breakpoint_without_location.
4567 (set_raw_breakpoint): Adjust.
4568 (init_catchpoint): New function, factored out from
4569 create_catchpoint_without_mention and adjusted to use
4570 init_raw_breakpoint.
4571 (create_catchpoint_without_mention): Adjust.
4572
c38c4bc5
TT
45732011-06-22 Tom Tromey <tromey@redhat.com>
4574
4575 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4576 argument of 0 specially.
4577
b138ce37
YQ
45782011-06-22 Yao Qi <yao@codesourcery.com>
4579
4580 * infrun.c (handle_inferior_event): Remove write-only local variable
4581 `sw_single_step_trap_p'.
4582
03de6823
TT
45832011-06-20 Tom Tromey <tromey@redhat.com>
4584
4585 * symtab.c (lookup_language_this): End loop if block is NULL.
4586
66a17cb6
TT
45872011-06-17 Tom Tromey <tromey@redhat.com>
4588
4589 * valops.c (value_of_this): Use lookup_language_this.
4590 * symtab.h (lookup_language_this): Declare.
4591 * symtab.c (lookup_language_this): New function.
4592 (lookup_symbol_aux): Use lookup_language_this.
4593 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4594
7518bff5
TT
45952011-06-17 Tom Tromey <tromey@redhat.com>
4596
4597 * value.h (value_of_this): Update.
4598 (value_of_local): Remove.
4599 * valops.c (value_of_this): Rename from value_of_local. Change
4600 parameters.
4601 * p-exp.y (exp): Update.
4602 (variable): Likewise.
4603 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4604
aee28ec6
TT
46052011-06-17 Tom Tromey <tromey@redhat.com>
4606
4607 * valops.c (value_of_local): Complain if NAME is NULL.
4608 * std-operator.def (OP_OBJC_SELF): Remove.
4609 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4610 * objc-exp.y (name_not_typename): Use OP_THIS.
4611 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4612 name for "this".
4613 <OP_OBJC_SELF>: Remove.
4614 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4615
eed8f803
TG
46162011-06-16 Tristan Gingold <gingold@adacore.com>
4617
4618 * python/py-events.h (gdb_py_events): Make it extern.
4619 * python/py-evtregistry.c (gdb_py_events): Declare.
4620
864ac8a7
HZ
46212011-06-16 Hui Zhu <teawater@gmail.com>
4622
4623 * remote.c (remote_trace_set_readonly_regions): Add check for
4624 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4625 output warning.
4626
ef7e8358
UW
46272011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4628
4629 * arm-linux-tdep.c: Include "auxv.h".
4630 (AT_HWCAP): Define.
4631 (ARM_LINUX_SIZEOF_VFP): Define.
4632 (arm_linux_supply_vfp): New function.
4633 (arm_linux_collect_vfp): Likewise.
4634 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4635 (arm_linux_fpa_regset_sections): New variable.
4636 (arm_linux_vfp_regset_sections): Likewise.
4637 (arm_linux_core_read_description): New function.
4638 (arm_linux_init_abi): Install arm_linux_core_read_description and
4639 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4640 appropriate for the architecture.
4641 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4642 (tdesc_arm_with_m): Declare.
4643 (tdesc_arm_with_iwmmxt): Likewise.
4644 (tdesc_arm_with_vfpv2): Likewise.
4645 (tdesc_arm_with_vfpv3): Likewise.
4646 (tdesc_arm_with_neon): Likewise.
4647 * arm-linux-nat.c: Move features/*.c includes ...
4648 * arm-tdep.c: ... here.
4649 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4650 target description data structures ...
4651 * arm-tdep.c (_initialize_arm_tdep): ... here.
4652 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4653 HWCAP_VFPv3D16): Move definitions ...
4654 * arm-linux-tdep.h: ... here.
4655
c2fa21f1
HZ
46562011-06-15 Hui Zhu <teawater@gmail.com>
4657
4658 * remote.c (remote_trace_set_readonly_regions): Add a check for
4659 target_buf_size.
4660
dd707e8e
TT
46612011-06-14 Tom Tromey <tromey@redhat.com>
4662
4663 * coffread.c (coffread_objfile): Rename from current_objfile.
4664 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4665 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4666
86cc0029
TT
46672011-06-14 Tom Tromey <tromey@redhat.com>
4668
4669 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4670 (class_symtab): Remove.
4671 (jv_dynamics_progspace_key): New global.
4672 (jv_per_objfile_free): Reset program space data. Update assert.
4673 Don't clear globals.
4674 (get_dynamics_objfile): Use and set program space data.
4675 (get_java_class_symtab): Use get_dynamics_objfile.
4676 (add_class_symbol): Likewise.
4677 (java_link_class_type): Likewise.
4678 (java_object_type, jv_clear_object_type, set_java_object_type):
4679 Remove.
4680 (get_java_object_type): Update. Don't cache result.
4681 (is_object_type): Don't call set_java_object_type.
4682 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4683 initialize jv_dynamics_progspace_key.
4684
91a81f69
TT
46852011-06-14 Tom Tromey <tromey@redhat.com>
4686
4687 * symtab.h (current_objfile): Don't declare.
4688 * objfiles.h (current_objfile): Don't declare.
4689 * objfiles.c (current_objfile): Remove.
4690 * mdebugread.c (current_objfile): New file-scope global.
4691 * dbxread.c (current_objfile): New file-scope global.
4692 * coffread.c (current_objfile): New file-scope global.
4693
dc7eb48e
PA
46942011-06-13 Pedro Alves <pedro@codesourcery.com>
4695
4696 * top.h (line): Rename to ...
4697 (saved_command_line): ... this.
4698 (linesize): Rename to ...
4699 (saved_command_line_size): ... this.
4700 * top.c (line): Rename to ...
4701 (saved_command_line): ... this.
4702 (linesize): Rename to ...
4703 (saved_command_line_size): ... this.
4704 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4705 * event-top.c (command_line_handler): Adjust.
4706 * main.c (captured_main): Adjust.
4707
0d6c2135
MK
47082011-06-12 Mark Kettenis <kettenis@gnu.org>
4709
4710 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4711 get_frame_func instead of get_frame_pc to determine the code
4712 address used to construct the frame ID.
4713 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4714 (i386_epilogue_frame_this_id): Likewise.
4715 (i386_epilogue_frame_prev_register): New function.
4716 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4717 (i386_stack_tramp_frame_sniffer): Fix coding style.
4718 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4719 (i386_gdbarch_init): Fix comments.
4720
8bbdd3f4
MK
47212011-06-12 Mark Kettenis <kettenis@gnu.org>
4722
4723 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4724 instruction when walking back through the instruction stream.
4725
533a737e
JK
47262011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4729 fullname parameters order.
4730
44b13c5a
JK
47312011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4732
4733 Code cleanup.
4734 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4735 for fun.
4736 * psymtab.c (map_symbol_filenames_psymtab)
4737 (map_partial_symbol_filenames): Likewise.
4738 * psymtab.h: Include symfile.h.
4739 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4740 * symfile.h (symbol_filename_ftype): New.
4741 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4742 map_symbol_filenames, clarify more the naming in comment.
4743
0b5574da
DE
47442011-06-07 Doug Evans <dje@google.com>
4745
4746 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4747 Look for ../../gdb, for fullname.exp.
0b5574da 4748
5be4dfca
JK
47492011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 Pedro Alves <pedro@codesourcery.com>
4751
4752 * cli/cli-cmds.c (shell_escape): Use waitpid.
4753 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4754
316a8b21
TG
47552011-06-07 Tristan Gingold <gingold@adacore.com>
4756
4757 * xcoffread.c (dwarf2_xcoff_names): New variable.
4758 (aix_process_linenos): Add a guard.
4759 (xcoff_symfile_finish): Free dwarf2.
4760 (xcoff_initial_scan): Add dwarf2 support.
4761
3dd5b83d
PA
47622011-06-06 Pedro Alves <pedro@codesourcery.com>
4763
4764 * infcall.c (run_inferior_call): Don't mask async. Instead force
4765 a synchronous wait, if the target can async.
4766
4767 * target.h (struct target_ops): Delete to_async_mask.
4768 (target_async_mask): Delete.
4769 * target.c (update_current_target): Delete references to to_async_mask.
4770 * linux-nat.c (linux_nat_async_mask_value): Delete.
4771 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4772 to linux_nat_async_mask_value.
4773 (linux_nat_async_mask): Delete.
4774 (linux_nat_async, linux_nat_close): Remove references to
4775 linux_nat_async_mask_value.
4776 * record.c (record_async_mask_value): Delete.
4777 (record_async): Remove references to record_async_mask_value.
4778 (record_async_mask): Delete.
4779 (record_can_async_p, record_is_async_p): Remove references to
4780 record_async_mask_value.
4781 (init_record_ops, init_record_core_ops): Remove references to
4782 record_async_mask.
4783 * remote.c (remote_async_mask_value): Delete.
4784 (init_remote_ops): Remove reference to remote_async_mask.
4785 (remote_can_async_p, remote_is_async_p): Remove references to
4786 remote_async_mask_value.
4787 (remote_async): Remove references to remote_async_mask_value.
4788 (remote_async_mask): Delete.
4789
4790 * infrun.c (fetch_inferior_event): Don't claim registers changed
4791 if the current thread is already not executing.
4792
64b9b334
JB
47932011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4794
4795 From Stephen Kitt <steve@sk2.org>
4796 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4797 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4798
325663dc
JB
47992011-06-03 Joel Brobecker <brobecker@adacore.com>
4800
4801 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4802 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4803
8cf64490
TT
48042011-06-03 Tom Tromey <tromey@redhat.com>
4805
4806 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4807 code fields.
4808 * python/py-exitedevent.c (create_exited_event_object): Change
4809 type of 'exit_code'. Optionally add exit_code attribute.
4810 (emit_exited_event): Change type of 'exit_code'.
4811 * python/py-event.h (emit_exited_event): Update.
4812 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4813 * infrun.c (handle_inferior_event): Set exit code fields on
4814 inferior.
4815 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4816 fields.
4817 * inferior.c (exit_inferior_1): Initialize new fields.
4818
8ddd9a20
TT
48192011-06-03 Tom Tromey <tromey@redhat.com>
4820
4821 * dwarf2expr.c (get_signed_type): New function.
4822 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4823
8dfd1e6d
KS
48242011-06-02 Keith Seitz <keiths@redhat.com>
4825
4826 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4827
65fdb766
PA
48282011-06-02 Pedro Alves <pedro@codesourcery.com>
4829
4830 * top.h (simplified_command_loop): Delete declaration.
4831
f4b8c29b
MF
48322011-06-01 Mike Frysinger <vapier@gentoo.org>
4833
4834 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4835 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4836
1706c199
YQ
48372011-06-01 Yao Qi <yao@codesourcery.com>
4838
4839 * objfiles.h (obj_section_addr): Update reference to objfile from
4840 `abfd' to `obfd'.
4841 (obj_section_endaddr): Likewise.
4842
d19cd713 48432011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4844
4845 * MAINTAINERS: Update my email address and affiliation. Also
4846 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4847
e8eb7bc5
KS
48482010-05-31 Keith Seitz <keiths@redhat.com>
4849
4850 PR c++/12750
4851 * linespec.c (get_search_block): New function.
4852 (find_methods): Add FILE_SYMTATB parameter and use it and
4853 get_search_block to pass an appropriate block to
4854 lookup_symbol_in_namespace.
4855 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4856 Check if *ARGPTR starts with a filename first.
4857 If it does, call locate_first_half again to locate the next
4858 "first half" of the linespec.
4859 Pass FILE_SYMTATB to decode_objc and decode_compound.
4860 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4861 (locate_first_half): Stop on the first colon seen.
4862 (decode_compound): Add FILE_SYMTAB parameter.
4863 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4864 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4865 get_search_block with lookup_symbol.
4866 (find_method): Add FILE_SYMTAB parameter and pass it to
4867 find_methods.
4868 (decode_objc): Use get_search_block.
4869
2b1dbab0
KS
48702010-05-31 Keith Seitz <keiths@redhat.com>
4871
4872 PR symtab/12704
4873 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4874 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4875 and CP_ANONYMOUS_NAMESPACE_LEN.
4876 (cp_is_anonymous): Likewise.
4877 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4878 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4879 * dwarf2read.c (namespace_name): Likewise.
4880 (fixup_partial_die): Likewise.
4881 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4882 seen in the input, keep it.
4883
6d549500
PA
48842011-05-30 Pedro Alves <pedro@codesourcery.com>
4885
4886 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4887 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4888 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4889 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4890 * remote.c (_initialize_remote): Register
4891 async_remote_interrupt_twice directly as
4892 sigint_remote_twice_token event.
4893
395bff70
PA
48942011-05-30 Pedro Alves <pedro@codesourcery.com>
4895
4896 * target.h (enum inferior_event_type): Delete INF_ERROR.
4897 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4898
97224164
PA
48992011-05-30 Pedro Alves <pedro@codesourcery.com>
4900
4901 * interps.c (interp_set): Don't cancel continuations.
4902
07e78767
JK
49032011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4906
fa4cd53f
PA
49072011-05-30 Pedro Alves <pedro@codesourcery.com>
4908
4909 * continuations.h (continuation_ftype): Add `err' parameter.
4910 Document parameters.
4911 (do_all_continuations, do_all_continuations_thread)
4912 (do_all_intermediate_continuations)
4913 (do_all_intermediate_continuations_thread)
4914 (do_all_inferior_continuations): Add `err' parameter.
4915 * continuations.c (do_my_continuations_1, do_my_continuations)
4916 (do_all_inferior_continuations, do_all_continuations_ptid)
4917 (do_all_continuations_thread_callback)
4918 (do_all_continuations_thread, do_all_continuations)
4919 (do_all_intermediate_continuations_thread_callback)
4920 (do_all_intermediate_continuations_thread)
4921 (do_all_intermediate_continuations): Add `err' parameter, and pass
4922 it down all the way to the continuations proper.
4923 * inf-loop.c (inferior_event_handler): If fetching an inferior
4924 event throws an error, don't pop the target, and still call the
4925 continuations, but with `err' set. Adjust all other continuation
4926 calls.
4927 * breakpoint.c (until_break_command_continuation): Add `err'
4928 parameter.
4929 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4930 issue another step if `err' is set.
4931 (struct until_next_continuation_args): New.
4932 (until_next_continuation): Add `err' parameter. Adjust.
4933 (until_next_command): Adjust.
4934 (struct finish_command_continuation_args): Add `thread' field.
4935 (finish_command_continuation): Add `err' parameter. Handle it.
4936 (finish_forward): Adjust.
4937 (attach_command_continuation): Add `err' parameter. Handle it.
4938 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4939 cancel the continuations.
4940 * interps.c (interp_set): Adjust to cancel the continuations.
4941 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4942 continuations rather than discarding.
4943 (free_thread): Don't clear thread inferior resources here.
4944 (delete_thread_1): Do it here instead. And do it before removing
4945 the thread from the threads list. Tag the thread as exited before
4946 clearing thread inferior resources.
4947
c2949be0
JB
49482011-05-30 Joel Brobecker <brobecker@adacore.com>
4949
4950 * infcall.c (call_function_by_hand): Rephrase error message.
4951
619cebe8
PA
49522011-05-27 Pedro Alves <pedro@codesourcery.com>
4953
4954 * defs.h (struct thread_info, struct inferior): Delete forward
4955 declarations.
4956 * breakpoint.h (struct thread_info): New forward declaration.
4957 * observer.sh (struct inferior): New forward declaration.
4958 * python/python-internal.h (struct inferior): New forward
4959 declaration.
4960
be34f849
PA
49612011-05-27 Pedro Alves <pedro@codesourcery.com>
4962
4963 * defs.h (struct continuation, continuation_ftype)
4964 (continuation_free_arg_ftype, add_continuation)
4965 (do_all_continuations, do_all_continuations_thread)
4966 (discard_all_continuations, discard_all_continuations_thread)
4967 (add_intermediate_continuation, do_all_intermediate_continuations)
4968 (do_all_intermediate_continuations_thread)
4969 (discard_all_intermediate_continuations)
4970 (discard_all_intermediate_continuations_thread)
4971 (add_inferior_continuation, do_all_inferior_continuations)
4972 (discard_all_inferior_continuations): Move to ...
4973 * continuations.h: ... this new file.
4974 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4975 infcmd.c, inferior.c, infrun.c, interps.c: Include
4976 continuations.h.
4977
432b4d03
JK
49782011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4979 Doug Evans <dje@google.com>
4980
4981 Fix PR 10970, PR 12702.
4982 * linux-nat.c (linux_lwp_is_zombie): New function.
4983 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4984 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4985
b0f260d6
PA
49862011-05-27 Pedro Alves <pedro@codesourcery.com>
4987
4988 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4989 typedefs.
4990 (add_continuation, add_intermediate_continuation)
4991 (add_inferior_continuation): Use them.
4992 * continuations.c (struct continuation): Use them.
4993 (make_continuation_ftype): Delete.
4994 (make_continuation, add_inferior_continuation, add_continuation)
4995 (add_intermediate_continuation): Use continuation_ftype and
4996 continuation_free_arg_ftype. Rename parameters to shorter names.
4997
af1e9a32
PA
49982011-05-27 Pedro Alves <pedro@codesourcery.com>
4999
5000 * continuations.c (make_continuation): Make it return void.
5001 (do_my_continuations): Rename to ...
5002 (do_my_continuations_1): ... this. Remove old_chain parameter and
5003 adjust.
5004 (do_my_continuations): New.
5005 (discard_my_continuations): Rename to ...
5006 (discard_my_continuations_1): ... this. Remove old_chain
5007 parameter and adjust.
5008 (discard_my_continuations): New.
5009 (add_inferior_continuation): Simplify.
5010 (do_all_inferior_continuations): Reimplement on top
5011 do_my_continuations.
5012 (discard_all_inferior_continuations): Simplify.
5013 (add_continuation): Simplify.
5014 (do_all_continuations_ptid): Simplify.
5015 (discard_all_continuations_thread_callback): Simplify.
5016 (add_intermediate_continuation): Simplify.
5017 (discard_all_intermediate_continuations_thread_callback):
5018 Simplify.
5019
50c0c017
PA
50202011-05-27 Pedro Alves <pedro@codesourcery.com>
5021
5022 * utils.c (struct continuation, add_continuation)
5023 (add_inferior_continuation)
5024 (do_all_inferior_continuations, discard_all_inferior_continuations)
5025 (restore_thread_cleanup, do_all_continuations_ptid)
5026 (do_all_continuations_thread_callback)
5027 (do_all_continuations_thread, do_all_continuations)
5028 (discard_all_continuations_thread_callback)
5029 (discard_all_continuations_thread, discard_all_continuations)
5030 (add_intermediate_continuation)
5031 (do_all_intermediate_continuations_thread_callback)
5032 (do_all_intermediate_continuations_thread)
5033 (do_all_intermediate_continuations)
5034 (discard_all_intermediate_continuations_thread_callback)
5035 (discard_all_intermediate_continuations_thread)
5036 (discard_all_intermediate_continuations): Move to ...
5037 * continuations.c: ... this new file, and adjust to no longer
5038 implement continuations on top of cleanups.
5039 * Makefile.in (SFILES): Add continuations.c.
5040 (COMMON_OBS): Add continuations.o.
5041
d8b34453
PA
50422011-05-26 Pedro Alves <pedro@codesourcery.com>
5043
5044 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5045 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5046 Internal error on invalid values.
5047 * reverse.c: Don't handle EXEC_ERROR.
5048 * mi/mi-main.c: Don't handle EXEC_ERROR.
5049
32231432
PA
50502011-05-26 Pedro Alves <pedro@codesourcery.com>
5051
5052 * record.c: Include event-loop.h, inf-loop.h.
5053 (record_beneath_to_async): New global.
5054 (tmp_to_async): New global.
5055 (record_async_inferior_event_token): New global.
5056 (record_open_1): Don't error out if async is enabled.
5057 (record_open): Handle to_async. Create an async event source in
5058 the event loop.
5059 (record_close): Delete the async event source.
5060 (record_resumed): New global.
5061 (record_execution_dir): New global.
5062 (record_resume, record_core_resume): Set them. Register the
5063 target on the event loop.
5064 (record_wait): Rename to ...
5065 (record_wait_1): ... this. Add more debug output. Handle
5066 TARGET_WNOHANG, and the target beneath returning
5067 TARGET_WAITKIND_IGNORE.
5068 (record_wait): Reimplement on top of record_wait_1.
5069 (record_async_mask_value): New global.
5070 (record_async, record_async_mask, record_can_async_p)
5071 (record_is_async_p, record_execution_direction): New functions.
5072 (init_record_ops, init_record_core_ops): Install new methods.
5073 * infrun.c (fetch_inferior_event): Temporarily switch the global
5074 execution direction to the direction the target was going.
5075 (execution_direction): Change type to int.
5076 * target.c (default_execution_direction): New function.
5077 (update_current_target): Inherit and de_fault
5078 to_execution_direction.
5079 * target.h (struct target_ops) <to_execution_direction>: New
5080 field.
5081 (target_execution_direction): New macro.
5082 * inferior.h (execution_direction): Change type to int.
5083
949dc678
PA
50842011-05-26 Pedro Alves <pedro@codesourcery.com>
5085
5086 * infcall.c (call_function_by_hand): Don't allow calling functions
5087 in reverse execution mode.
5088
c13bd2b5
PA
50892011-05-26 Pedro Alves <pedro@codesourcery.com>
5090
5091 * infcmd.c (finish_command): Allow async finish in reverse.
5092
6938fd34
YQ
50932011-05-26 Yao Qi <yao@codesourcery.com>
5094
5095 * gdb_thread_db.h: Delete. Move to ...
5096 * common/gdb_thread_db.h: ... here.
5097
9da8c2a0
PA
50982011-05-26 Pedro Alves <pedro@codesourcery.com>
5099
5100 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5101 function's entry point instead of a manually managed momentary
5102 breakpoint, and only ever issue one proceed call.
5103 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5104 doing a reverse-finish, switch to stepi mode, to do another step.
5105 (insert_step_resume_breakpoint_at_sal): Make public.
5106 (normal_stop): No need to save function value return registers if
5107 going reverse.
5108 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5109
2c03e5be
PA
51102011-05-26 Pedro Alves <pedro@codesourcery.com>
5111
5112 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5113 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5114 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5115 at the end.
5116 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5117 step-resume breakpoints.
5118 (print_it_typical): Handle bp_hp_step_resume.
5119 (bpstat_what): Ditto.
5120 (bptype_string): Ditto.
5121 (print_one_breakpoint_location): Ditto.
5122 (allocate_bp_location): Ditto.
5123 (mention): Ditto.
5124 (breakpoint_re_set_one): Ditto.
5125 * infrun.c (handle_inferior_event): Adjust. Split
5126 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5127 BPSTAT_WHAT_HP_STEP_RESUME.
5128 (insert_step_resume_breakpoint_at_sal): Rename to ...
5129 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5130 parameter. Handle it.
5131 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5132 insert_step_resume_breakpoint_at_sal_1.
5133 (insert_step_resume_breakpoint_at_frame): Rename to ...
5134 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5135 set a high-priority step-resume breakpoint.
5136 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5137 (insert_step_resume_breakpoint_at_caller): Ditto.
5138
51be5b68
PA
51392011-05-26 Pedro Alves <pedro@codesourcery.com>
5140
5141 * breakpoint.c (iterate_over_related_breakpoints): New.
5142 (do_map_delete_breakpoint): New.
5143 (delete_command): Pass do_map_delete_breakpoint to
5144 map_breakpoint_numbers.
5145 (do_disable_breakpoint): New.
5146 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5147 breakpoints.
5148 (do_enable_breakpoint): Rename to ...
5149 (enable_breakpoint_disp): ... this.
5150 (enable_breakpoint): Adjust.
5151 (do_enable_breakpoint): New.
5152 (enable_once_breakpoint): Delete.
5153 (do_map_enable_breakpoint): New.
5154 (do_map_enable_once_breakpoint): New.
5155 (enable_once_command, enable_delete_command)
5156 (delete_trace_command): Iterate over the breakpoint's related
5157 breakpoints.
5158
4a1be8d2
PA
51592011-05-26 Pedro Alves <pedro@codesourcery.com>
5160
5161 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5162 for ALPHA_ZERO_REGNUM.
5163 (alpha_supply_int_regs): Explicitly supply zero as the value for
5164 ALPHA_ZERO_REGNUM in the register cache.
5165 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5166
59d70315
YQ
51672011-05-26 Yao Qi <yao@codesourcery.com>
5168
5169 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5170
251d32d9
TG
51712011-05-26 Tristan Gingold <gingold@adacore.com>
5172
5173 * symfile.h (struct dwarf2_section_names): New type.
5174 (struct dwarf2_debug_sections): New type.
5175 (dwarf2_has_info): Add parameter.
5176 * dwarf2read.c (dwarf2_elf_names): New variable.
5177 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5178 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5179 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5180 (dwarf2_has_info): Add names parameter. Pass names
5181 to dwarf2_locate_sections.
5182 (section_is_p): Rewrite using the names parameter.
5183 (dwarf2_locate_sections): Use section names from the names parameter.
5184 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5185 * elfread.c (read_psyms): Ditto.
5186 * machoread.c (macho_symfile_read): Ditto.
5187
652c71b4
AS
51882011-05-25 Andreas Schwab <schwab@redhat.com>
5189
5190 PR gdb/8677
5191 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5192
f17170e5
KS
51932011-05-24 Keith Seitz <keiths@redhat.com>
5194
5195 PR breakpoint/12803
5196 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5197 (decode_compound): Unconditionally call keep_name_info.
5198
cdac0397
PA
51992011-05-24 Pedro Alves <pedro@codesourcery.com>
5200
5201 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5202 scope, clear its command list.
5203 (map_breakpoint_numbers): Don't walk the related breakpoints list
5204 of each breakpoint.
5205
91d4fe3f
TT
52062011-05-24 Tom Tromey <tromey@redhat.com>
5207
5208 * MAINTAINERS: Move Jim Blandy to past maintainers.
5209
3017a003
TG
52102011-05-24 Tristan Gingold <gingold@adacore.com>
5211
5212 * symfile.h (enum dwarf2_section_enum): New type.
5213 (dwarf2_get_section_info): New prototype.
5214 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5215 section_name by sect. Use a switch to select the info.
5216 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5217 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5218
c91c8c16
PA
52192011-05-24 Pedro Alves <pedro@codesourcery.com>
5220
5221 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5222 shared library event breakpoint if there's no execution.
5223
77bc418a
TJB
52242011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5225
5226 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5227 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5228
c50491a7
TT
52292011-05-23 Tom Tromey <tromey@redhat.com>
5230
5231 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5232 NULL.
5233
6d64e6d4
DE
52342011-05-23 Doug Evans <dje@google.com>
5235
5236 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5237 entry for RuntimeError to doc string.
5238
2067c8d4
JG
52392011-05-23 Jerome Guitton <guitton@adacore.com>
5240
5241 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5242 sequence for probing loops.
5243
b136cd05
PA
52442011-05-23 Pedro Alves <pedro@codesourcery.com>
5245
5246 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5247 comment.
5248
22e74ef9
MK
52492011-05-21 Mark Kettenis <kettenis@gnu.org>
5250
5251 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5252 zero as the value for %g0 in the register cache.
5253 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5254 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5255
842951eb
PA
52562011-05-20 Pedro Alves <pedro@codesourcery.com>
5257
5258 * infrun.c (proceed): Set previous_inferior_ptid here.
5259 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5260 inferior_ptid, not null_ptid.
5261 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5262 (fetch_inferior_event): Nor here.
5263
46cf51e6
PA
52642011-05-20 Pedro Alves <pedro@codesourcery.com>
5265
5266 * inf-loop.c (inferior_event_handler): Only output a message if
5267 verbose.
5268
29ef4c46
LM
52692011-05-20 Luis Machado <lgustavo@codesourcery.com>
5270
5271 * MAINTAINERS: Update my e-mail address.
5272
f148b27e
PA
52732011-05-20 Pedro Alves <pedro@codesourcery.com>
5274
5275 * infrun.c (proceed): Switch the inferior event loop to
5276 INF_EXEC_COMPLETE if the target refused to resume from a
5277 vfork/fork.
5278
09cee04b
PA
52792011-05-20 Pedro Alves <pedro@codesourcery.com>
5280
5281 * infcmd.c: Include "inf-loop.h".
5282 (step_once): When stepping into an inline subroutine, pretend the
5283 target has run. If the target can async, switch the inferior
5284 event loop to INF_EXEC_COMPLETE.
5285 * inferior.h (user_visible_resume_ptid): Declare.
5286 * infrun.c (user_visible_resume_ptid): New function, factored out
5287 from `resume'.
5288 (resume): Use it.
5289 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5290 that the current thread is running. Merge async and sync
5291 branches.
5292
751b8ce1
PA
52932011-05-20 Pedro Alves <pedro@codesourcery.com>
5294
5295 * infcmd.c (step_1): Simplify synchronous case.
5296
e93a69ed
PA
52972011-05-20 Pedro Alves <pedro@codesourcery.com>
5298
5299 * tracepoint.c: Include exceptions.h.
5300 (TFILE_PID): Move higher in file.
5301 (tfile_open): Delay pushing the tfile target until we're assured
5302 the tfile header is present in the file. Wrap reading the initial
5303 newline-terminated lines in TRY_CATCH. Pop the target if the
5304 initial setup failed. Add the tfile's thread immediately
5305 aftwards, before any non-essential setup. Don't skip
5306 post_create_inferior if there are no traceframes present in the
5307 file.
5308 (tfile_close): Remove redundant check for null before xfree call.
5309 (tfile_thread_alive): New function.
5310 (init_tfile_ops): Register it as to_thread_alive callback.
5311
6823e2b1
PA
53122011-05-20 Pedro Alves <pedro@codesourcery.com>
5313
5314 * tracepoint.c (tfile_open): Delete #if 0'd code.
5315
b3c8eb43
JK
53162011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5317
5318 Fix -readnow for -gdwarf-4 unused type units.
5319 * dwarf2read.c (struct signatured_type): Remove the field offset.
5320 (create_signatured_type_table_from_index): Remove its initialization.
5321 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5322 instead. Add a complaint call.
5323 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5324 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5325 (lookup_signatured_type_at_offset, read_signatured_type)
5326 (write_one_signatured_type): Update the field for per_cu.
5327
310afc76
TT
53282011-05-19 Tom Tromey <tromey@redhat.com>
5329
5330 * python/py-inferior.c (python_inferior_exit): Use
5331 target_gdbarch.
5332 (python_on_resume): Likewise.
5333
cf6c5ffb
TT
53342011-05-19 Matt Rice <ratmice@gmail.com>
5335
5336 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5337
fb80a3c5
HZ
53382011-05-19 Hui Zhu <teawater@gmail.com>
5339
5340 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5341
3672b1be
HZ
53422011-05-19 Hui Zhu <teawater@gmail.com>
5343
5344 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5345
ff355380
TT
53462011-05-18 Tom Tromey <tromey@redhat.com>
5347
5348 * dwarf2read.c (dwarf2_add_field): Constify.
5349 * value.c (value_static_field): Constify.
5350 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5351 Now const.
5352 * ax-gdb.c (gen_static_field): Constify
5353
ed731959
JK
53542011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5355
5356 * linux-nat.c (kill_callback): Use SIGKILL first.
5357
967cff16
JB
53582011-05-18 Joel Brobecker <brobecker@adacore.com>
5359
5360 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5361
1d06ead6
TT
53622011-05-18 Tom Tromey <tromey@redhat.com>
5363
5364 * value.c (value_fn_field): Constify.
5365 * symtab.c (gdb_mangle_name): Constify.
5366 * stabsread.c (update_method_name_from_physname): Make 'physname'
5367 argument const.
5368 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5369 const. Use explicit fputc_filtered loop.
5370 (pascal_type_print_base): Constify.
5371 * p-lang.h (pascal_type_print_method_args): Update.
5372 * linespec.c (add_matching_methods): Constify.
5373 (add_constructors): Likewise.
5374 * jv-typeprint.c (java_type_print_base): Constify.
5375 * gdbtypes.h (struct cplus_struct_type)
5376 <fn_fieldlist.fn_field.physname>: Now const.
5377 * dwarf2read.c (compute_delayed_physnames): Constify.
5378 (dwarf2_add_member_fn): Likewise.
5379 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5380
0d9a9a5f
PA
53812011-05-18 Pedro Alves <pedro@codesourcery.com>
5382
5383 * infrun.c (resume): Mention which is the current thread, and its
5384 current PC in debug output.
5385 (prepare_to_proceed): Mention the thread switching in debug
5386 output.
5387
05386e9e
TT
53882011-05-18 Tom Tromey <tromey@redhat.com>
5389
5390 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5391 path check. Use xmalloc and cleanups.
5392 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5393
ee86786c
TT
53942011-05-17 Tom Tromey <tromey@redhat.com>
5395
5396 * cp-valprint.c (cp_print_value_fields): Catch errors from
5397 value_static_field.
5398
9ff3b74f
TT
53992011-05-17 Tom Tromey <tromey@redhat.com>
5400
5401 * dwarf2read.c (dwarf2_get_die_type): Call
5402 get_die_type_at_offset.
5403 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5404 get_base_type function.
5405
cd3da28e
PA
54062011-05-17 Tomas Martinec <fyzmat@gmail.com>
5407
5408 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5409 trap_expected.
5410
fd20d931
DE
54112011-05-16 Doug Evans <dje@google.com>
5412
5413 * python/py-auto-load.c (source_section_scripts): Mention objfile
5414 name in warning.
5415
75fc9810
DE
54162011-05-15 Doug Evans <dje@google.com>
5417
290351b8
DE
5418 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5419 (try_thread_db_load_from_pdir): Call it. If unable to find
5420 libthread_db in directory of libpthread, see if we're looking at
5421 the separate-debug-info copy.
5422
75fc9810
DE
5423 * python/py-autoload.c (print_script): Print "Missing" instead of
5424 "No" for missing scripts.
5425 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5426
9f7bc587
DE
54272011-05-13 Doug Evans <dje@google.com>
5428
5429 * ui-file.c (stdio_file_write_async_safe): Add comment.
5430
093cee7d
HZ
54312011-05-14 Hui Zhu <teawater@gmail.com>
5432
5433 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5434
dbaefcf7
DE
54352011-05-13 Doug Evans <dje@google.com>
5436
98a5dd13
DE
5437 Support $pdir and $sdir in libthread-db-search-path.
5438 * NEWS: Mention $sdir,$pdir.
5439 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5440 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5441 (try_thread_db_load_from_sdir): New function.
5442 (try_thread_db_load_from_dir): New function.
5443 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5444 system directories if search of libthread-db-search-path fails,
5445 that is now done via $sdir.
5446 (has_libpthread): New function.
5447 (thread_db_load): Remove search for libthread_db in directory of
5448 libpthread, that is now done via $pdir.
5449
dbaefcf7
DE
5450 * NEWS: Mention "info auto-load-scripts".
5451 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5452 script_not_found_warning_printed.
5453 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5454 all callers updated. Initialize script_not_found_warning_printed.
5455 (get_auto_load_pspace_data_for_loading): New function.
5456 (maybe_add_script): New function.
5457 (source_section_scripts): Simplify. Only print one warning regardless
5458 of the number of auto-load scripts not found.
5459 (clear_section_scripts): Clear script_not_found_warning_printed.
5460 (auto_load_objfile_script): Record script in hash table.
5461 (count_matching_scripts): New function.
5462 (maybe_print_script): Renamed from maybe_print_section_script, all
5463 callers updated. Rewrite to use ui_out_*.
5464 (info_auto_load_scripts): Renamed from
5465 maintenance_print_section_scripts, all callers updated.
5466 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5467 renamed as "info auto-load-scripts".
5468
9930639c
TT
54692011-05-13 Tom Tromey <tromey@redhat.com>
5470
5471 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5472 (read_sleb128): Likewise.
5473
06826322
TT
54742011-05-13 Tom Tromey <tromey@redhat.com>
5475
5476 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5477 offset display.
5478
01124a23
DE
54792011-05-13 Doug Evans <dje@google.com>
5480
5481 * linux-nat.c (debug_linux_nat_async): Delete.
5482 Replace all references to use debug_linux_nat instead.
5483 (show_debug_linux_nat_async): Delete.
5484 (sigchld_handler): Call ui_file_write_async_safe instead of
5485 fprintf_unfiltered.
5486 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5487 * ui-file.c (struct ui_file): New member to_write_async_safe.
5488 (null_file_write_async_safe): New function.
5489 (ui_file_write_async_safe): New function.
5490 (set_ui_file_write_async_safe): New function.
5491 (ui_file_new): Initialize to_write_async_safe.
5492 (stdio_file_write_async_safe): New function.
5493 (struct stdio_file): New member fd.
5494 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5495 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5496 fileno.
01124a23
DE
5497 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5498 (set_ui_file_write_async_safe): Declare.
5499 (ui_file_write_async_safe): Declare.
5500
72fc29ff
TT
55012011-05-13 Tom Tromey <tromey@redhat.com>
5502
5503 * utils.c (do_value_free): New function.
5504 (make_cleanup_value_free): Likewise.
5505 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5506 freeing correctly.
5507 (dwarf2_loc_desc_needs_frame): Call
5508 make_cleanup_value_free_to_mark.
5509 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5510 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5511 value_free_to_mark.
5512 (new_dwarf_expr_context): Don't call value_mark.
5513 * dwarf2-frame.c (execute_stack_op): Call
5514 make_cleanup_value_free_to_mark.
5515 * defs.h (make_cleanup_value_free): Declare.
5516
028d0ed5
TJB
55172011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5518
5519 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5520 prepare_execute_command.
5521 * top.c (prepare_execute_command): Return cleanup.
5522 (execute_command): Use cleanup from prepare_execute_command.
5523 * top.h (prepare_execute_command): Change prototype to return
5524 cleanup.
5525 * defs.h (struct value): Add opaque declaration.
5526 (make_cleanup_value_free_to_mark): Add prototype.
5527 * utils.c (do_value_free_to_mark): New function.
5528 (make_cleanup_value_free_to_mark): Likewise.
5529
b087e0ed
TT
55302011-05-12 Tom Tromey <tromey@redhat.com>
5531
5532 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5533 cast left-hand-side to unsigned.
5534
8a9b8146
TT
55352011-05-12 Tom Tromey <tromey@redhat.com>
5536
5537 PR gdb/12617:
5538 * value.h (value_from_contents): Declare.
5539 * value.c (value_from_contents): New function.
5540 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5541 (dwarf2_get_die_type): New function.
5542 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5543 (allocate_piece_closure): Acquire reference to values.
5544 (read_pieced_value): Update for value-based expressions.
5545 (write_pieced_value): Likewise.
5546 (free_pieced_value_closure): Call value_free as needed.
5547 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5548 Update for value-based expressions.
5549 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5550 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5551 <get_base_type>: New field.
5552 (struct dwarf_expr_piece) <v.value>: Change type.
5553 <v.regno>: New field.
5554 (struct dwarf_expr_context) <mark>: New field.
5555 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5556 (dwarf_expr_pop, dwarf_expr_push): Remove.
5557 (dwarf_expr_push_address): Declare.
5558 * dwarf2expr.c (dwarf_arch_cookie): New global.
5559 (struct dwarf_gdbarch_types): New.
5560 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5561 functions.
5562 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5563 static.
5564 (dwarf_expr_push_address): New function.
5565 (dwarf_expr_pop): Now static.
5566 (dwarf_expr_fetch): Change return type.
5567 (dwarf_require_integral): New function.
5568 (dwarf_expr_fetch): Simplify.
5569 (add_piece): Update.
5570 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5571 functions.
5572 (execute_stack_op) <sign_ext>: Remove.
5573 Use values for DWARF stack.
5574 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5575 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5576 New cases.
5577 (_initialize_dwarf2expr): New function.
5578 (add_piece): Update.
5579 (new_dwarf_expr_context): Set new field.
5580 (free_dwarf_expr_context): Call value_free_to_mark.
5581 * dwarf2-frame.c (no_base_type): New function.
5582 (execute_stack_op): Set get_base_type field. Update.
5583
e8d28ef4
TT
55842011-05-12 Tom Tromey <tromey@redhat.com>
5585
5586 * dwarf2read.c (read_common_block): Fix formatting.
5587
d248b706
KY
55882011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5589
5590 * breakpoint.c (disable_breakpoint): Disable all locations
5591 associated with a tracepoint on target if a trace experiment is
5592 running.
5593 (disable_command): Disable a specific tracepoint location on target if
5594 a trace experiment is running.
5595 (do_enable_breakpoint): Enable all locations associated with a
5596 tracepoint on target if a trace experiment is running.
5597 (enable_command) Enable a specific tracepoint location on target if a
5598 trace experiment is running.
5599 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5600 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5601 to_disable_tracepoint.
5602 * target.h: Add declaration of struct bp_location.
5603 (struct target_ops): Add new functions
5604 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5605 to_disable_tracepoint to target operations.
5606 (target_supports_enable_disable_tracepoint): New macro.
5607 (target_enable_tracepoint): New macro.
5608 (target_disable_tracepoint): New macro.
5609 * remote.c (struct remote_state): Add new field.
5610 (remote_enable_disable_tracepoint_feature): New.
5611 (remote_protocol_features): Add new entry.
5612 (remote_supports_enable_disable_tracepoint): New.
5613 (remote_enable_tracepoint): New.
5614 (remote_disable_tracepoint): New.
5615 (init_remote_ops): Add remote_enable_tracepoint,
5616 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5617 to remote operations.
5618 * tracepoint.c (start_tracing): Allow tracing to start without any
5619 tracepoints enabled with just a warning if they can be re-enabled
5620 later.
5621 * NEWS: Add news item for the new behaviour of the enable and disable
5622 GDB commands when applied to tracepoints.
5623 Add news items for the new remote packets QTEnable and QTDisable.
5624
cc88a640
JK
56252011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5626
5627 * config.in: Regenerate.
5628 * configure: Regenerate.
5629 * configure.ac <--with-system-readline> (for readline_echoing_p):
5630 Remove the test.
5631 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5632 (tui_old_rl_echoing_p): ... here.
5633 (tui_setup_io): Rename extern declaration readline_echoing_p to
5634 _rl_echoing_p. Adjust assignments for the both renames.
5635
1f84b619
TJB
56362011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5637
5638 * symtab.c (lookup_symtab): Run cleanup before returning.
5639
74ac6d43
TT
56402011-05-11 Tom Tromey <tromey@redhat.com>
5641
5642 * dwarf2read.c (handle_data_member_location): New function.
5643 (dwarf2_add_field): Use it.
5644 (read_common_block): Likewise.
5645
5488dafb
JK
56462011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5647
5648 Make addrs->SECTINDEX always defined.
5649 * symfile.c (relative_addr_info_to_section_offsets): Check for
5650 SECTINDEX -1, not for zero ADDR.
5651 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5652 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5653 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5654 on its validity.
5655
84e578fb
DE
56562011-05-10 Doug Evans <dje@google.com>
5657
2471d008
DE
5658 * linux-thread-db.c: Whitespace cleanup.
5659 (try_thread_db_load_1): Fix comment.
5660
84e578fb
DE
5661 * linux-thread-db.c (set_libthread_db_search_path): New function.
5662 (_initialize_thread_db): Add setter for libthread-db-search-path.
5663
673c2bbe
DE
56642011-05-09 Doug Evans <dje@google.com>
5665
478aac75
DE
5666 * NEWS: Mention --with-iconv-bin.
5667 * configure.ac: New option --with-iconv-bin.
5668 * configure: Regenerate.
5669 * config.in: Regenerate.
5670 * defs.h (relocate_gdb_directory): Declare.
5671 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5672 removed progname parameter, and exported. All callers updated.
5673 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5674
673c2bbe
DE
5675 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5676 adding missing call to restore_child_signals_mask.
5677
e4c8541f
PA
56782011-05-09 Pedro Alves <pedro@codesourcery.com>
5679
5680 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5681 parameter.
5682 * infrun.c (proceed, start_remote): Adjust.
5683 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5684 and adjust to not handle it.
5685 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5686 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5687 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5688 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5689 * windows-nat.c (do_initial_windows_stuff): Adjust.
5690 * infcmd.c (attach_command): Adjust.
5691 (notice_new_inferior): Adjust.
5692
a536c6d7
UW
56932011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5694
5695 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5696 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5697 * spu-tdep.c (op_selb): Use correct value.
5698
7845b013
UW
56992011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5700
5701 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5702 "parent" parameter to symbol_file_add_from_bfd call.
5703
9c06b0b4
TJB
57042011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5705 Thiago Jung Bauermann <bauerman@br.ibm.com>
5706
5707 Implement support for PowerPC BookE masked watchpoints.
5708 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5709 section.
5710 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5711 method. Initialize to NULL in all existing breakpoint_ops instances.
5712 (struct breakpoint) <hw_wp_mask>: New field.
5713 * breakpoint.c (is_masked_watchpoint): Add prototype.
5714 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5715 breakpoint's breakpoint_ops.works_in_software_mode if available.
5716 (watchpoints_triggered): Handle the case of a hardware masked
5717 watchpoint trigger.
5718 (watchpoint_check): Likewise.
5719 (works_in_software_mode_watchpoint): New function.
5720 (insert_masked_watchpoint, remove_masked_watchpoint)
5721 (resources_needed_masked_watchpoint)
5722 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5723 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5724 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5725 functions.
5726 (masked_watchpoint_breakpoint_ops): New structure.
5727 (watch_command_1): Check for the existence of the `mask' parameter.
5728 Set b->ops according to the type of hardware watchpoint being created.
5729 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5730 (ppc_linux_remove_mask_watchpoint)
5731 (ppc_linux_masked_watch_num_registers): New functions.
5732 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5733 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5734 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5735 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5736 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5737 (target_masked_watch_num_registers): New functions.
5738 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5739 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5740 methods.
5741 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5742 (target_masked_watch_num_registers): Add prototypes.
5743
8be455d7
JK
57442011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5745
5746 PR 12573
5747 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5748 (producer_is_gcc_ge_4_0): New function.
5749 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5750 symtab->language code.
5751 (var_decode_location): Set cu->has_loclist.
5752 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5753 skip. Intialize force_skip from locations_valid. Move the prologue
5754 skipping code into two passes.
5755 * symtab.h (struct symtab): Make the primary field a bitfield. New
5756 field locations_valid.
5757
d8228535
JK
57582011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5759
5760 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5761 (classify_inner_name): Call cp_lookup_nested_type with
5762 yylval.tsym.type.
5763 * cp-namespace.c (cp_lookup_nested_type): New variable
5764 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5765 type_name_no_tag_or_error with saved_parent_type.
5766 * dwarf2read.c (load_partial_dies): Read in any children of
5767 DW_TAG_typedef with complaint in such case.
5768 * gdbtypes.c (type_name_no_tag_or_error): New function.
5769 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5770 * valops.c (destructor_name_p): New comment for parameter type. Remove
5771 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5772 * value.h (destructor_name_p): Remove type const.
5773
1976171a
JK
57742011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5775
5776 * symtab.c (compare_symbol_name): New function.
5777 (completion_list_add_name, expand_partial_symbol_name): Call it,
5778 remove the variable ncmp.
5779 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5780 gdb_assert it.
5781
a9634178
TJB
57822011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5783
5784 Demote to sw watchpoint only in update_watchpoint.
5785 * breakpoint.c (update_watchpoint): Change between software and
5786 hardware watchpoint for all kinds of watchpoints, not just
5787 read/write ones. Determine b->exact value here instead of
5788 in watch_command_1. Error out if there are not enough resources
5789 for a read or access hardware watchpoint.
5790 (watch_command_1): Remove logic of checking whether there are
5791 enough resources available, since update_watchpoint will do that
5792 work now. Don't set b->exact here. Catch exceptions thrown by
5793 update_watchpoint and delete the watchpoint.
5794 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5795 Use target_exact_watchpoints instead.
5796 (delete_breakpoint): Notify observers only if deleted watchpoint
5797 has a breakpoint number assigned to it.
5798
4c67c798
JJ
57992011-05-05 Janis Johnson <janisjo@codesourcery.com>
5800
5801 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5802
a3fcb948
JG
58032011-05-05 Jerome Guitton <guitton@adacore.com>
5804
5805 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5806 New functions.
5807 (i386_stack_tramp_frame_unwind): New static global.
5808 (i386_match_pattern): New function, extracted from i386_match_insn.
5809 (i386_match_insn): Use i386_match_pattern.
5810 (i386_match_insn_block): New function.
5811 (i386_tramp_chain_in_reg_insns)
5812 (i386_tramp_chain_on_stack_insns): New static variables.
5813 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5814 of unwinders.
5815
4d393d60
JM
58162011-05-04 Joseph Myers <joseph@codesourcery.com>
5817
5818 * configure.host (xscale*): Don't handle target.
5819 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5820 handle targets.
5821
f70bd40b
YQ
58222011-05-04 Yao Qi <yao@codesourcery.com>
5823
5824 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5825
dd3295ee
JB
58262011-05-03 Joel Brobecker <brobecker@adacore.com>
5827
5828 Revert:
5829 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5830 | * elfread.c (elf_symtab_read): Stop memory leak.
5831
90375a0e
PM
58322011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5833
5834 * nto-tdep.c (nto_target): Replace deprecated call to
5835 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5836
d07205c2
JK
58372011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5838
5839 Fix false GCC warning.
5840 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5841
1e718ff1
TJB
58422011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5843
5844 * breakpoint.c (update_watchpoint): Move code to change
5845 the enable state of breakpoint from here ...
5846 (do_enable_breakpoint): ... to here.
5847
35bef4fd
TT
58482011-04-26 Andrew Gontarek <andrewg@cray.com>
5849
78290264
PP
5850 * valprint.c (val_print_array_elements): Fixed poor performance
5851 of printing very large arrays with repeat_count_threshold set
5852 to unlimited. New comment.
35bef4fd 5853
38a714bb
TT
58542011-04-29 Tom Tromey <tromey@redhat.com>
5855
5856 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5857 (mi_parse): Likewise.
5858 * breakpoint.c (break_range_command): Use sizeof char*, not
5859 char**.
5860 (create_breakpoint): Likewise.
5861 (parse_breakpoint_sals): Likewise.
5862
eb73ad13
PA
58632011-04-29 Pedro Alves <pedro@codesourcery.com>
5864
5865 * linux-nat.c (linux_child_remove_fork_catchpoint)
5866 (linux_child_remove_vfork_catchpoint)
5867 (linux_child_remove_exec_catchpoint): New functions.
5868 (linux_target_install_ops): Install them.
5869
d65aec65
PM
58702011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5871
5872 PR mi/12531
5873
5874 * varobj.c (install_default_visualizer): Do not install a
5875 visualizer if the varobj is CPLUS_FAKE_CHILD.
5876 (construct_visualizer): Likewise.
5877
165195f4
JK
58782011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5879
5880 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5881 case insensitive comparison.
5882
30852783
UW
58832011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5884
5885 * infrun.c (proceed): Revert previous change.
5886 (resume): Instead, handle the case of signal delivery while stepping
5887 off a breakpoint location here, and only if software single-stepping
5888 is used. Handle nested signals.
5889
7ff120b4
YQ
58902011-04-28 Yao Qi <yao@codesourcery.com>
5891
5892 * arm-tdep.c (copy_unmodified): Rename to ...
5893 (arm_copy_unmodified): .. this. New.
5894 (copy_preload): Move common part to ...
5895 (install_preload): .. this. New.
5896 (arm_copy_preload): New.
5897 (copy_preload_reg): Move common part to ...
5898 (install_preload_reg): ... this. New.
5899 (arm_copy_preload_reg): New.
5900 (copy_b_bl_blx): Move common part to ...
5901 (install_b_bl_blx): .. this. New.
5902 (arm_copy_b_bl_blx): New.
5903 (copy_bx_blx_reg): Move common part to ...
5904 (install_bx_blx_reg): ... this. New.
5905 (arm_copy_bx_blx_reg): New.
5906 (copy_alu_reg): Move common part to ...
5907 (install_alu_reg): ... this. New.
5908 (arm_copy_alu_reg): New.
5909 (copy_alu_shifted_reg): Move common part to ...
5910 (install_alu_shifted_reg): ... this. New.
5911 (copy_ldr_str_ldrb_strb): Move common part to ...
5912 (install_ldr_str_ldrb_strb): ... this. New.
5913 (arm_copy_ldr_str_ldrb_strb): New.
5914 (copy_copro_load_store): Move some common part to ...
5915 (install_copy_copro_load_store): ... this. New.
5916 (arm_copy_copro_load_store): New.
5917 (copy_svc): Delete.
5918 (arm_copy_svc): Renamed from copy_svc.
5919 (copy_undef): Delete.
5920 (arm_copy_undef): Renamed from copy_undef.
5921 (decode_ext_reg_ld_st): Delete.
5922 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5923 (decode_svc_copro): Delete.
5924 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5925 (copy_copro_load_store, copy_alu_imm): update callers.
5926 (copy_extra_ld_st, copy_block_xfer): Likewise.
5927 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5928 (decode_miscellaneous, decode_dp_misc): Likewise.
5929 (decode_ld_st_word_ubyte, decode_media): Likewise.
5930 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5931 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5932 (decode_unconditional, decode_miscellaneous): Likewise.
5933 (decode_media, decode_b_bl_ldmstm): Likewise.
5934 (arm_process_displaced_insn): Likewise..
5935 (decode_misc_memhint_neon): Delete.
5936 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5937 (decode_miscellaneous): Delete.
5938 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5939 (decode_dp_misc): Delete.
5940 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5941 (decode_ld_st_word_ubyte): Delete.
5942 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5943 (decode_media): Delete.
5944 (arm_decode_media): Renamed from decode_media.
5945 (decode_b_bl_ldmstm): Delete.
5946 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5947 (decode_ext_reg_ld_st): Delete.
5948 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5949 (decode_unconditional): Delete.
5950 (arm_decode_unconditional): Renamed from decode_unconditional.
5951
559a7a62
JK
59522011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5953
5954 Case insensitive lookups implementation.
5955 * dwarf2read.c: Include ctype.h.
5956 (struct mapped_index): New field version.
5957 (mapped_index_string_hash): New parameter index_version. New comment
5958 for it. Call tolower appropriately.
5959 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5960 Choose the right index version for mapped_index_string_hash.
5961 (dwarf2_read_index): Support also the index version 5. Initialize the
5962 new struct mapped_index field version.
5963 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5964 (find_slot): Explain the version needs. Pass INT_MAX for the new
5965 parameter.
5966 (write_psymtabs_to_index): Produce version 5.
5967 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5968 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5969 * psymtab.c (lookup_partial_symbol): Find the
5970 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5971 entries.
5972 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5973 NAME lowercasing.
5974 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5975 (completion_list_add_name): New variable ncmp, initialize it, use it.
5976 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5977 * utils.c (strcmp_iw): Support case_sensitive_off.
5978 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5979 New function comment part. New variables saved_string1,
5980 saved_string2 and case_pass. Add a proper second pass.
5981
681bf369
JK
59822011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5983
5984 Replace re_comp/re_exec by regcomp/regexec.
5985 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5986 (search_symbols_name_matches): Use them, use regexec.
5987 (search_symbols): New variable retval_chain, adjust the use of
5988 old_chain against it. Replace re_comp by regcomp. Use the new struct
5989 search_symbols_data fields, use regexec instead of re_exec.
5990
b11b1f88
JK
59912011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5992
5993 Format the code for the next patch.
5994 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5995 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5996 New variables c1 and c2.
5997
2484c66b
UW
59982011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5999
6000 * infrun.c (proceed): Do not single-step into signal delivery
6001 when stepping off a breakpoint location.
6002 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6003 (insert_step_resume_breakpoint_at_caller): Likewise.
6004 (insert_step_resume_breakpoint_at_sal): Likewise.
6005 (insert_longjmp_resume_breakpoint): Likewise.
6006
47423772
YQ
60072011-04-27 Yao Qi <yao@codesourcery.com>
6008
6009 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6010
13bdd2e7
JB
60112011-04-27 Joel Brobecker <brobecker@adacore.com>
6012
6013 * procfs.c (procfs_pass_signals): Fix advance declaration.
6014
2455069d
UW
60152011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6016
6017 * target.h (struct target_ops): Remove to_notice_signals;
6018 add to_pass_signals.
6019 (target_notice_signals): Remove.
6020 (target_pass_signals): Add prototype.
6021 * target.c (update_current_target): Remove to_notice_signals;
6022 mention to_pass_signals.
6023 (target_pass_signals): New function.
6024 (debug_to_notice_signals): Remove.
6025 (setup_target_debug): Do not install debug_to_notice_signals.
6026
6027 * infrun.c (signal_pass): New global.
6028 (resume): Call target_pass_signals.
6029 (handle_inferior_event): Report all signals while stepping over
6030 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6031 are re-inserted when stepping over a signal handler.
6032 (signal_cache_update): New function.
6033 (signal_stop_update): Call it.
6034 (signal_print_update): Likewise.
6035 (signal_pass_update): Likewise.
6036 (handle_command): Call signal_cache_update and target_pass_signals
6037 instead of target_notice_signals.
6038 (_initialize_infrun): Initialize signal_pass.
6039
6040 * linux-nat.c (pass_mask): New global.
6041 (linux_nat_pass_signals): New function.
6042 (linux_nat_create_inferior): Report all signals initially.
6043 (linux_nat_attach): Likewise.
6044 (linux_nat_resume): Use pass_mask to decide whether to directly
6045 handle an inferior signal.
6046 (linux_nat_wait_1): Likewise.
6047 (linux_nat_add_target): Install to_pass_signals callback.
6048
6049 * nto-procfs.c (notice_signals): Remove.
6050 (procfs_resume): Do not call notice_signals.
6051 (procfs_notice_signals): Remove.
6052 (procfs_pass_signals): New function.
6053 (init_procfs_ops): Install to_pass_signals callback instead of
6054 to_notice_signals callback.
6055 (_initialize_procfs): Report all signals initially.
6056
6057 * procfs.c (procfs_notice_signals): Remove.
6058 (procfs_pass_signals): New function.
6059 (procfs_target): Install to_pass_signals callback instead of
6060 to_notice_signals callback.
6061 (register_gdb_signals): Remove.
6062 (procfs_debug_inferior): Report all signals initially.
6063 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6064
6065 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6066 parameters; use them instead of calling signal_..._state routines.
6067 (remote_notice_signals): Remove.
6068 (remote_start_remote): Report all signals initially.
6069 (remote_resume): Do not call remote_pass_signals.
6070 (_initialize_remote): Install to_pass_signals callback instead of
6071 to_notice_signals callback.
6072
46c6471b
PA
60732011-04-27 Pedro Alves <pedro@codesourcery.com>
6074
6075 * breakpoint.c (user_settable_breakpoint): Delete.
6076 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6077 (delete_command): Check user_breakpoint_p instead of looking at
6078 the breakpoint's type.
6079 (disable_command): Ditto.
6080 (enable_command): Ditto.
6081 (delete_trace_command): Use user_breakpoint_p instead of looking
6082 at the breakpoint number directly. When checking if there are
6083 user visible tracepoints, in order to know whether to ask the user
6084 for confirmation, check whether the breakpoint is actually a
6085 tracepoint.
6086
f6d90398
VP
60872011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6088
6089 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6090 compilation.
6091
8d3788bd
VP
60922011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6093
6094 MI breakpoint notifications.
6095
f33edef8
PP
6096 * annotate.c (breakpoint_changed): Adjust parameter type.
6097 * breakpoint.c (set_breakpoint_condition): Adjust to change
6098 in breakpoint_modified type.
6099 (breakpoint_set_commands): Likewise.
6100 (do_map_commands_command): Likewise.
6101 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6102 changed after bumping hit count.
6103 (bpstat_stop_status): Likewise.
6104 (print_one_breakpoint_location): Don't wrap in tuple here.
6105 (print_one_breakpoint): Always print individual locations.
6106 For locations, use unnamed tuple.
6107 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6108 has changed.
6109 (create_catchpoint, create_syscall_event_catchpoint): Call
6110 breakpoint_created obsever.
6111 (mention): Don't call breakpoint_created observer.
6112 (create_breakpoint_sal): Call breakpoint_created observer.
6113 (create_breakpoint, watch_command_1): Likewise.
6114 (create_ada_exception_breakpoint): Likewise.
6115 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6116 (locations_are_equal): New.
6117 (update_breakpoint_locations): If locations were changed, notify.
6118 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6119 Call breakpoint_modified observer.
6120
6121 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6122 (mi_cmd_break_insert): Don't set observers for modify and delete.
6123 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6124 (mi_breakpoint_created, mi_breakpoint_deleted)
6125 (mi_breakpoint_modified): New.
6126 (mi_interpreter_init): Hook the above.
6127 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6128 while -break-* commands are executing.
6129 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6130 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6131 (mi_redirect): New.
6132 (mi_ui_out_impl): Hook in mi_redirect.
6133 (mi_field_skip): True to the name, skip the field, don't output
6134 a field with an empty value.
6135
6136 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6137 (gdbpy_breakpoint_deleted): Adjust.
6138 * tui/tui-hooks.c (tui_event_create_breakpoint)
6139 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6140
a8f42b45
UW
61412011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6142
6143 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6144 (procfs_remove_hw_watchpoint): Likewise.
6145
57e12211
TT
61462011-04-26 Michael Walle <michael@walle.cc>
6147
6148 * remote.c (remote_start_remote): Ack packet after sending the
6149 interrupt sequence.
6150
af96c192
YQ
61512011-04-26 Yao Qi <yao@codesourcery.com>
6152
f33edef8
PP
6153 * linux-nat.c: Move common macros to ...
6154 Include linux-ptrace.h.
6155 * common/linux-ptrace.h: ... here. New.
af96c192 6156
3e03848b
JK
61572011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6158
6159 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6160 !objfile_has_partial_symbols. New comment.
6161 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6162 SYM_READ_PSYMBOLS is not present. Extend the comment.
6163 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6164
1ae0d051
JK
61652011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6166
6167 * defs.h (ENUM_BITFIELD): Remove.
6168
03f2bd59
JK
61692011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6170 Eli Zaretskii <eliz@gnu.org>
6171
6172 * NEWS: Document the new gdbserver --once option.
6173
4161fbb0
JZ
61742011-04-21 Jie Zhang <jzhang918@gmail.com>
6175
6176 * MAINTAINERS: Update my email address.
6177
bcb28afc
PM
61782011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6179
6180 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6181 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6182 function call if __STDC_ISO_10646__ macro is defined.
6183 (intermediate_encoding): New prototype.
6184 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6185 to generate compile time error for unsupported gdb_wchar_t size.
6186 (ENDIAN_SUFFIX): New macro.
6187 (intermediate_encoding): New function.
6188
7b08b9eb
JK
61892011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6190
6191 * ada-lang.c (struct add_partial_datum): Update the comment for
6192 expand_partial_symbol_name.
6193 (ada_add_partial_symbol_completions): Rename to ...
6194 (ada_expand_partial_symbol_name): ... here, change return type, update
6195 function comment, call symbol_completion_match instead of
6196 symbol_completion_add.
6197 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6198 and ada_expand_partial_symbol_name.
6199 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6200 FILE_MATCHER.
6201 (dw2_map_symbol_names): Remove.
6202 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6203 * psymtab.c (map_symbol_names_psymtab): Remove.
6204 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6205 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6206 order.
6207 (psym_functions): Unlist map_symbol_names_psymtab.
6208 (map_partial_symbol_names): Rename to ...
6209 (expand_partial_symbol_names): ... here, change the FUN type, call
6210 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6211 * psymtab.h (map_partial_symbol_names): Rename to ...
6212 (expand_partial_symbol_names): ... here, change the FUN type.
6213 * symfile.h (struct quick_symbol_functions): Update the description of
6214 expand_symtabs_matching. Remove map_symbol_names.
6215 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6216 (struct add_name_data): Update the comment for
6217 expand_partial_symbol_name.
6218 (add_partial_symbol_name): Rename to ...
6219 (expand_partial_symbol_name): ... here. Replace
6220 completion_list_add_name call by strncmp.
6221 (default_make_symbol_completion_list_break_on): Use now
6222 expand_partial_symbol_names and expand_partial_symbol_name.
6223 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6224
90476074
TT
62252011-04-20 Tom Tromey <tromey@redhat.com>
6226
6227 * dwarf2read.c (save_gdb_index_command): Replace format
6228 documentation with a pointer to the manual.
6229
c21236dc
PA
62302011-04-20 Pedro Alves <pedro@codesourcery.com>
6231
6232 * regcache.c: Include remote.h.
6233 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6234 (regcache_dump): Handle regcache_dump_remote.
6235 (maintenance_print_remote_registers): New function.
6236 (_initialize_regcache): Install "maint print remote-registers"
6237 command.
6238 * remote.c (map_regcache_remote_table): New function, factored out
6239 from ...
6240 (init_remote_state): ... here.
6241 (remote_register_number_and_offset): New.
6242 * remote.h (remote_register_number_and_offset): Declare.
6243
b78974c3
PA
62442011-04-20 Pedro Alves <pedro@codesourcery.com>
6245
6246 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6247 null_ptid, assume and allow a NULL address space, instead of
6248 asking the target for the ptid's address space.
6249 * infrun.c (ptid_is_pid): Remove assertion.
6250
7a9dd1b2
TT
62512011-04-19 Tom Tromey <tromey@redhat.com>
6252
6253 * windows-tdep.c (windows_xfer_shared_library):
6254 * windows-nat.c (get_module_name, windows_make_so):
6255 * v850-tdep.c (v850_handle_pushm):
6256 * utils.c (null_cleanup, gdb_realpath):
6257 * ui-out.c (get_next_header):
6258 * tracepoint.c (clear_traceframe_info):
6259 * symtab.c (lookup_symtab):
6260 * serial.h (struct serial_ops):
6261 * mipsread.c (read_alphacoff_dynamic_symtab):
6262 * infcmd.c (print_return_value):
6263 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6264 * f-exp.y (parse_number):
6265 * exceptions.c (catch_exceptions):
6266 * dummy-frame.c (dummy_frame_this_id):
6267 * defs.h (struct cleanup):
6268 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6269 * arm-tdep.c (arm_push_dummy_call):
6270 * amd64-tdep.h (amd64_collect_xsave):
6271 * amd64-tdep.c (amd64_collect_xsave):
6272 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6273 * README (typing): Remove duplicate words.
6274 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6275 * infrun.c (siginfo_value_read): Fix typo.
6276 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6277 * top.c (source_line_number): Add comma.
6278
9941e0c5
MK
62792011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6280
6281 * thread.c (any_live_thread_of_process): Prioritize threads
6282 that are not executing.
6283 * gdbthread.h (any_live_thread_of_process): Update comment
6284 as per above change.
6285
ed4b0e6a
AS
62862011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6287
6288 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6289 (scan_xcoff_symtab): Likewise.
6290
9b13a2db
PM
62912011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6292
6293 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6294 inside if clause.
6295
1c6e1b0d
PM
62962011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6297 Pedro Alves <pedro@codesourcery.com>
6298
6299 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6300 variables to simplify code and avoid == operator at end of
6301 line as this is against GNU coding standards.
6302
74de0234
PM
63032011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6304
6305 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6306 lm_name to name_lm to avoid conflict with lm_name function.
6307
b23518f0
PM
63082011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6309
6310 ARI fixes: Use only lowercase function name for static functions.
6311 * nto-tdep.c (LM_ADDR): Rename to...
6312 (lm_addr): New function name.
6313 (nto_relocate_section_addresses): Adapt to change above.
6314 * solib-sunos.c (LM_ADDR): Rename to...
6315 (lm_addr): New function name.
6316 (LM_NEXT): Rename to...
6317 (lm_next): New function name.
6318 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6319 function name changes above.
6320 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6321 (lm_addr_from_link_map): New function name.
6322 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6323 (has_lm_dynamic_from_link_map): New function name.
6324 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6325 (lm_dynamic_from_link_map): New function name.
6326 (LM_ADDR_CHECK): Rename to...
6327 (lm_addr_check): New function name.
6328 (LM_NEXT): Rename to...
6329 (lm_next): New function name.
6330 (LM_PREV): Rename to...
6331 (lm_prev): New function name.
6332 (LM_NAME): Rename to...
6333 (lm_name): New function name.
6334 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6335 (ignore_first_link_map_entry): New function name.
6336 (svr4_keep_data_in_core): Adapt to function name changes above.
6337 (svr4_current_sos): Likewise.
6338 (enable_break): Likewise.
6339 (svr4_relocate_section_addresses): Likewise.
6340
1448a0a2
PM
63412011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6342
6343 ARI cleanup.
6344 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6345 sprintf. Simplify code and avoid loosing memory.
6346 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6347 (call0_frame_cache): Remove && operator from end of line.
6348
02835898
JK
63492011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6350
6351 Fix libraries displacement if they change whether they were prelinked.
6352 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6353 does not match. Comment why.
6354
9a845ea2
JK
63552011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6356
6357 * corelow.c: Include wrapper.h.
6358 (core_open): Call now gdb_target_find_new_threads.
6359 * wrapper.c: Include target.h.
6360 (gdb_target_find_new_threads): New.
6361 * wrapper.h (gdb_target_find_new_threads): New declaration.
6362
254f582e
JK
63632011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6364
6365 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6366 even if !TARGET_HAS_EXECUTION.
6367
63524580
JK
63682011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6369
6370 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6371 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6372 bfd_get_synthetic_symtab.
6373 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6374 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6375 parameter parent, remove the call to add_separate_debug_objfile.
6376 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6377 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6378 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6379 parent, new comment for it, call add_separate_debug_objfile for it.
6380 (symbol_file_add_separate): Pass objfile as the parameter parent,
6381 remove the call to add_separate_debug_objfile.
6382 (symbol_file_add_from_bfd): New parameter parent, pass it.
6383 (symbol_file_add): Pass NULL to the new parameter parent.
6384 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6385
90359a16
JK
63862011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6387
6388 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6389 BSF_SYNTHETIC.
6390
626e7282
JK
63912011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6392
6393 Fix Python access to inlined frames.
6394 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6395 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6396
cf31e6f9
TT
63972011-04-15 Tom Tromey <tromey@redhat.com>
6398
6399 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6400
c8d895f1
GB
64012011-04-15 Gary Benson <gbenson@redhat.com>
6402
6403 * MAINTAINERS: Add myself to write-after-approval section.
6404
56a9aa1d
MF
64052011-04-14 Mike Frysinger <vapier@gentoo.org>
6406
6407 * remote-sim.c (sim_command_completer): New function.
6408 (_initialize_remote_sim): Set completer to sim_command_completer.
6409
ba770c9c
TJB
64102011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6411
6412 * breakpoint.c (print_exception_catchpoint): Rename to ...
6413 (print_it_exception_catchpoint): ... this.
6414 (gnu_v3_exception_catchpoint_ops): Update with new name
6415 for print_it_exception_catchpoint.
6416
51bf2553
EBM
64172011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6418
6419 * MAINTAINERS: Add myself for write after approval privileges.
6420
d242658c
MP
64212011-04-13 Marek Polacek <mpolacek@redhat.com>
6422
6423 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6424
4a4106ca
TJB
64252011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6426
6427 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6428
26063d49
TJB
64292011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6430
6431 * breakpoint.c (save_breakpoints): Verify whether
6432 breakpoint_ops.print_recreate is defined before calling it.
6433
7782b183
GB
64342011-04-11 Gary Benson <gbenson@redhat.com>
6435
6436 Fix failure with --enable-maintainer-mode.
6437 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6438
e8930875
JK
64392011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6440
6441 Code cleanup.
6442 * symtab.c (search_symbols): Reorder the KIND description in the
6443 function comment. Remove the unused 4th element of types, types2,
6444 types3 and types4. New gdb_assert on KIND.
6445 (symtab_symbol_info): Remove the unused 4th element of classnames.
6446 New gdb_assert on KIND.
6447 * symtab.h (enum search_domain): New warning in the enum comment.
6448 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6449 TYPES_DOMAIN.
6450
b4f2f049
JK
64512011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6452
6453 Fix crash of gdb save-index on a STABS file.
6454 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6455 PSYMTABS_ADDRMAP.
6456
60d5a603
JK
64572011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6458
6459 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6460 * dwarf2read.c: Include ctype.h.
6461 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6462 functions.
6463 (dwarf2_add_field): Fix new_field->accessibility by calling
6464 dwarf2_default_access_attribute. Restructure setting accessibility
6465 vs. virtuality.
6466 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6467 is_private and is_protected by calling
6468 dwarf2_default_access_attribute.
6469
e0f68161
KB
64702011-04-08 Kevin Buettner <kevinb@redhat.com>
6471
6472 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6473 to the initialization.
6474
2e1aae43
SE
64752011-04-08 Steve Ellcey <sje@cup.hp.com>
6476
6477 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6478 initalization.
6479
c6ca3dab
PM
64802011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6481
6482 Remove support for old Cygwin 1.5 versions.
6483 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6484 function on old Cygwin version.
6485 * windows-nat.c: Remove cygwin version check and always define
6486 __USEWIDE for Cygwin compilation.
6487
bd18283a
YQ
64882011-04-07 Yao Qi <yao@codesourcery.com>
6489
6490 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6491 and TO.
6492 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6493 (arm_copy_svc): Remove parameters INSN and TO.
6494 (decode_svc_copro): Update caller.
6495 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6496 from function pointer `copy_svc_os'.
6497
8c8dba6d
YQ
64982011-04-07 Yao Qi <yao@codesourcery.com>
6499
6500 * arm-tdep.c (cleanup_branch): Set a correct return address in
6501 LR for ARM and Thumb.
6502
59d7bcaf
JK
65032011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6504
6505 Code cleanup.
6506 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6507 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6508 in the function comment, a new note on values compatibility.
6509 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6510 * symtab.h (SYMBOL_HASH_NEXT): New.
6511
e7db58ea
TJB
65122011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6513
6514 * ppc-linux-nat.c (check_condition): Add len output parameter.
6515 Set it based on the memory region referenced in the condition
6516 expression. Update all callers.
6517
9f743ef6
JK
65182011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6519
6520 Fix crash regression on systems featuring .gdb_index.
6521 * objfiles.c (free_objfile): Move the
6522 forget_cached_source_info_for_objfile call earlier. Comment it.
6523 Extend the comment for objfile_free_data.
6524
9182c5bc
JK
65252011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6526
6527 Fix regression of displaying the debug format.
6528 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6529 subfile.
6530
04bd08de
TT
65312011-04-04 Tom Tromey <tromey@redhat.com>
6532
6533 * cli/cli-interp.c (struct captured_execute_command_args):
6534 Remove.
6535 (do_captured_execute_command): Remove.
6536 (safe_execute_command): Use TRY_CATCH.
6537 * cli/cli-script.c (struct wrapped_read_command_file_args):
6538 Remove.
6539 (wrapped_read_command_file): Remove.
6540 (script_from_file): Use TRY_CATCH.
6541 * exceptions.c (catch_exception): Remove.
6542 * exceptions.h (catch_exception): Remove.
6543 (deprecated_throw_reason): Update comment.
6544 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6545 argument to 'context'.
6546 (mi_execute_command): Use TRY_CATCH.
6547 * remote.c (struct start_remote_args): Remove.
6548 (remote_start_remote): Update; change arguments.
6549 (remote_open_1): Use TRY_CATCH.
6550
58438ac1
TT
65512011-04-04 Tom Tromey <tromey@redhat.com>
6552
6553 * tracepoint.c (scope_info): Update.
6554 * symtab.c (decode_line_spec): Update.
6555 * python/python.c (gdbpy_decode_line): Update.
6556 * linespec.h (decode_line_1): Update.
6557 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6558 (decode_compound, find_method, symtab_from_filename)
6559 (decode_variable): Likewise.
6560 * cli/cli-cmds.c (edit_command): Update.
6561 (list_command): Update.
6562 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6563 argument.
6564 (create_breakpoint): Update.
6565 (until_break_command): Update.
6566 (addr_string_to_sals): Update.
6567 (decode_line_spec_1): Update.
6568
b78a6381
TT
65692011-04-04 Tom Tromey <tromey@redhat.com>
6570
6571 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6572 (do_captured_parse_breakpoint): Remove.
6573 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6574 Use TRY_CATCH directly.
6575
00174a86
TT
65762011-04-04 Tom Tromey <tromey@redhat.com>
6577
6578 * symtab.h (free_symtab): Remove.
6579 (forget_cached_source_info_for_objfile): Declare.
6580 * symmisc.c (free_symtab): Remove.
6581 * source.c (forget_cached_source_info_for_objfile): New function.
6582 (forget_cached_source_info): Use it.
6583 * objfiles.c (free_objfile): Simplify check before calling
6584 clear_current_source_symtab_and_line. Call
6585 forget_cached_source_info_for_objfile.
6586
30cc903e
TT
65872011-04-04 Tom Tromey <tromey@redhat.com>
6588
6589 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6590 (new_symtab): Don't set `free_code' on symtab.
6591 (new_linetable): Properly handle size==0.
6592 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6593 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6594 free_func.
6595 * jv-lang.c (struct jv_per_objfile_data): New.
6596 (jv_per_objfile_free): Free the data.
6597 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6598 (get_java_class_symtab): Set the `dict' field on the
6599 jv_per_objfile_data.
6600 (free_class_block): Remove.
6601 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6602 the symtab.
6603
0c2e6019
TT
66042011-04-04 Tom Tromey <tromey@redhat.com>
6605
6606 * symfile.c (reread_symbols): Update.
6607 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6608 field.
6609 * objfiles.c (allocate_objfile): Update.
6610 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6611 declare.
6612 * cp-namespace.c (lookup_symbol_file): Don't call
6613 lookup_possible_namespace_symbol.
6614 (initialize_namespace_symtab, get_possible_namespace_block)
6615 (free_namespace_block, cp_check_possible_namespace_symbols)
6616 (check_possible_namespace_symbols_loop)
6617 (check_one_possible_namespace_symbol)
6618 (lookup_possible_namespace_symbol): Remove.
6619 (maintenance_cplus_namespace): Replace with notice.
6620 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6621
554d387d
TT
66222011-04-04 Tom Tromey <tromey@redhat.com>
6623
6624 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6625 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6626 * symmisc.c (free_symtab): Don't free debugformat.
6627 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6628 (record_debugformat, record_producer): Document.
6629 * buildsym.c (end_symtab): Don't save debugformat and producer
6630 names on obstack.
6631 (end_symtab): Don't free debugformat and producer fields.
6632 (record_debugformat): Don't call xstrdup.
6633 (record_producer): Likewise.
6634
d4d4db8a
TT
66352011-04-04 Tom Tromey <tromey@redhat.com>
6636
6637 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6638 (source_line_charpos, source_charpos_line): Remove.
6639
8903c50d
TT
66402011-04-04 Tom Tromey <tromey@redhat.com>
6641
6642 * symtab.h (domain_enum): Split in two...
6643 (enum search_domain): New.
6644 (search_symbols): Update.
6645 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6646 redundant declarations.
6647 (search_symbols): Change 'kind' argument to search_domain.
6648 Update.
6649 (print_symbol_info): Likewise.
6650 (symtab_symbol_info): Likewise.
6651 * symfile.h (struct quick_symbol_functions)
6652 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6653 <expand_symtabs_matching>: Likewise.
6654 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6655 (expand_symtabs_matching_via_partial): Update.
6656 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6657 (dw2_expand_symtabs_for_function): Update.
6658 * block.h: Moved anonymous enum...
6659 * defs.h (enum block_enum): ... here. Now named.
6660
d9351f5f 66612011-04-03 Joel Brobecker <brobecker@adacore.com>
6662
6663 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6664 * version.in: Bump version to 7.3.50.20110403-cvs.
6665
d6e00af6
JB
66662011-04-03 Joel Brobecker <brobecker@adacore.com>
6667
6668 * NEWS: Create a new section for the next release branch.
6669 Rename the section of the current branch, now that it has
6670 been cut.
6671
2b9e5ea6
UW
66722011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6673
6674 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6675 for "fpscr" in target description.
6676
0cf03b49
JK
66772011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6678
6679 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6680 initialize it. Delay HASH initialization. Strip the part after open
6681 parenthesis for languages with qualifiers. Call do_cleanups.
6682
5d901a73
TT
66832011-04-01 Tom Tromey <tromey@redhat.com>
6684
6685 * utils.c (report_command_stats): Don't print `-' for negative
6686 number.
6687
b0dd7688
JB
66882011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6689
6690 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6691 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6692 typedefs.
6693
956a9fb9
JB
66942011-04-01 Joel Brobecker <brobecker@adacore.com>
6695
6696 * breakpoint.h (bpdisp_text): Add declaration.
6697 * breakpoint.c (bpdisp_text): Make non-static.
6698 * ada-lang.c: #include "mi/mi-common.h".
6699 (print_it_exception): Rewrite to improve GDB/MI output.
6700
3352110b
PA
67012011-04-01 Pedro Alves <pedro@codesourcery.com>
6702
6703 * arm-tdep.h (struct address_space): Add forward declaration.
6704
18819fa6
UW
67052011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6706
6707 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6708 * arm-tdep.c (arm_override_mode): New global.
6709 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6710 execution mode heuristics.
6711 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6712 second single-step breakpoint if needed, using
6713 arm_insert_single_step_breakpoint.
6714 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6715 ARM execution mode, do not call thumb_get_next_pc_raw.
6716 (arm_get_next_pc): Encode execution mode in return value. Call
6717 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6718 (arm_insert_single_step_breakpoint): New function.
6719 (arm_software_single_step): Call it.
6720 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6721 argument to return execution mode of sigreturn target.
6722 (arm_linux_syscall_next_pc): Use it.
6723 (arm_linux_copy_svc): Update call.
6724 (arm_linux_software_single_step): Call
6725 arm_insert_single_step_breakpoint.
6726
a6e293d1
JK
67272011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6728
6729 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6730 the comment.
6731
a4c8e806
TT
67322011-03-31 Tom Tromey <tromey@redhat.com>
6733
6734 * varobj.c (update_dynamic_varobj_children): Properly handle
6735 errors from iterator.
6736
df5c6c50
JK
67372011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6738
6739 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6740 struct linkage name twice.
6741
1dae3efc
TT
67422011-03-31 Tom Tromey <tromey@redhat.com>
6743
6744 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6745 missing ">" to message.
6746
f4f7ab05
TT
67472011-03-31 Tom Tromey <tromey@redhat.com>
6748
6749 * varobj.c (instantiate_pretty_printer): Remove duplicate
6750 'return'.
6751
fcf250e2
UW
67522011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6753
6754 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6755 if neither saved value nor register available (e.g. signal frame).
6756
ee6436e3
TJB
67572011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6758
6759 * macroexp.c (expand): Avoid uninitialized variable
6760 compiler warning.
6761
423f41a5
TJB
67622011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6763
6764 * breakpoint.c (break_range_command): Fix typo in comment.
6765
f1310107
TJB
67662011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6767 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6768
6769 Implement support for PowerPC BookE ranged breakpoints.
6770 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6771 * breakpoint.h (struct bp_target_info) <length>: New member
6772 variable.
6773 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6774 instead of struct breakpoint as argument, and also add ASPACE
6775 and BP_ADDR arguments. Update all callers.
6776 (struct breakpoint_ops) <print_one_detail>: New method.
6777 (struct breakpoint) <addr_string_range_end>: New member variable.
6778 * breakpoint.c (breakpoint_location_address_match): Add function
6779 prototype.
6780 (insert_bp_location): Set bl->target_info.length.
6781 (breakpoint_here_p): Call breakpoint_location_address_match.
6782 (moribund_breakpoint_here_p): Likewise.
6783 (regular_breakpoint_inserted_here_p): Likewise.
6784 (breakpoint_thread_match): Likewise.
6785 (bpstat_stop_status): Likewise.
6786 (bpstat_check_location): Move call to
6787 breakpoint_ops.breakpoint_hit to the top.
6788 (print_one_breakpoint_location): Call
6789 breakpoint_ops.print_one_detail if available.
6790 (breakpoint_address_match_range): New function.
6791 (breakpoint_location_address_match): Likewise.
6792 (breakpoint_locations_match): Compare the length field of the
6793 locations too.
6794 (hw_breakpoint_used_count): Count resources used by all locations
6795 in a breakpoint, and use breakpoint_ops.resources_needed if
6796 available.
6797 (breakpoint_hit_ranged_breakpoint): New function.
6798 (resources_needed_ranged_breakpoint): Likewise.
6799 (print_it_ranged_breakpoint): Likewise.
6800 (print_one_ranged_breakpoint): Likewise.
6801 (print_one_detail_ranged_breakpoint): Likewise.
6802 (print_mention_ranged_breakpoint): Likewise.
6803 (print_recreate_ranged_breakpoint): Likewise.
6804 (ranged_breakpoint_ops): New structure.
6805 (find_breakpoint_range_end): New function.
6806 (break_range_command): Likewise.
6807 (delete_breakpoint): Free addr_string_range_end.
6808 (update_breakpoint_locations): Add SALS_END argument. Update
6809 all callers. Calculate breakpoint length if a non-zero SALS_END
6810 is given. Call breakpoint_locations_match instead of
6811 breakpoint_address_match.
6812 (reset_breakpoint): Find SaL of the end of the range if B is a
6813 ranged breakpoint.
6814 (_initialize_breakpoint): Register break-range command.
6815 * defs.h (print_core_address): Add function prototype.
6816 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6817 function.
6818 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6819 (ppc_linux_remove_hw_breakpoint): Likewise.
6820 (_initialize_ppc_linux_nat): Initialize
6821 to_ranged_break_num_registers.
6822 * target.c (update_current_target): Add comment about
6823 to_ranged_break_num_registers.
6824 (target_ranged_break_num_registers): New function.
6825 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6826 New method.
6827 (target_ranged_break_num_registers): Add function prototype.
6828 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6829 * utils.c (print_core_address): ... here.
6830
02d20e4a
UW
68312011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6832
6833 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6834 variable compiler warning.
6835
ef23e705
TJB
68362011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6837
6838 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6839 code from here ...
6840 (re_set_breakpoint): ... to here ...
6841 (addr_string_to_sals): ... and here.
6842
311e6ab3
PM
68432011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6844
6845 * Makefile.in (SFILES): Add missing C sources.
6846 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6847 Add missing headers.
6848
acd1d99c
MF
68492011-03-29 Mike Frysinger <vapier@gentoo.org>
6850
6851 * .gitignore: New file.
6852
66ee2731
MF
68532011-03-29 Mike Frysinger <vapier@gentoo.org>
6854
6855 * NEWS: Mention new cfi device simulation.
6856
53832f31
TT
68572011-03-29 Tom Tromey <tromey@redhat.com>
6858
6859 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6860 otherwise anonymous types.
6861 (dwarf2_name): Likewise.
6862 * valops.c (value_struct_elt_for_reference): Refine artificial
6863 type logic. Call error if j==-1.
6864
09b58708
JK
68652011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6866
6867 Fix false GCC warning.
6868 * infcall.c (find_function_addr): Initialize funaddr.
6869
6023c606
PM
68702011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6871
6872 Fix mingw compilation with --enable-targets=all.
6873 * remote-mips.c (gdb_usleep.h): Include header.
6874 (mips_enter_debug): Use gdb_usleep instead of sleep.
6875
0e30163f
JK
68762011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 Support resolution of STT_GNU_IFUNC via breakpoints.
6879 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6880 bp_gnu_ifunc_resolver_return.
6881 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6882 the loop. Support bp_gnu_ifunc_resolver and
6883 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6884 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6885 breakpoints.
6886 (bptype_string, print_one_breakpoint_location): Support
6887 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6888 (user_settable_breakpoint): Return true also for
6889 bp_gnu_ifunc_resolver.
6890 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6891 bp_gnu_ifunc_resolver_return.
6892 (set_breakpoint_location_function): New parameter explicit_loc,
6893 describe it. Call find_pc_partial_function_gnu_ifunc with new
6894 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6895 EXPLICIT_LOC is not set.
6896 (set_raw_breakpoint): Set EXPLICIT_LOC for
6897 set_breakpoint_location_function.
6898 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6899 set_breakpoint_location_function.
6900 (mention): Support bp_gnu_ifunc_resolver and
6901 bp_gnu_ifunc_resolver_return.
6902 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6903 set_breakpoint_location_function.
6904 (update_breakpoint_locations): Remove static.
6905 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6906 bp_gnu_ifunc_resolver_return.
6907 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6908 bp_gnu_ifunc_resolver_return.
6909 (update_breakpoint_locations): New declaration.
6910 * elfread.c: Include gdbthread.h and regcache.h.
6911 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6912 functions.
6913 (elf_gnu_ifunc_fns): Install them.
6914 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6915 (stub_gnu_ifunc_resolver_return_stop): New functions.
6916 (stub_gnu_ifunc_fns): Install them.
6917 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6918 and gnu_ifunc_resolver_return_stop.
6919 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6920
07be84bf
JK
69212011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6922
6923 STT_GNU_IFUNC reader implementation.
6924 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6925 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6926 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6927 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6928 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6929 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6930 (elf_gnu_ifunc_resolve_addr): New.
6931 (elf_symfile_read): Call elf_rel_plt_read.
6932 (elf_gnu_ifunc_fns): New.
6933 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6934 Install elf_gnu_ifunc_fns.
6935 * infcall.c (find_function_return_type): New function.
6936 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6937 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6938 (stub_gnu_ifunc_resolve_name): New functions.
6939 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6940 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6941 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6942
300f8e10
JK
69432011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6944
6945 Code cleanup for later STT_GNU_IFUNC support.
6946 * infcall.c (find_function_addr): Remove variable code, use explicit
6947 dereferences for it. Move VALUE_TYPE initialization later.
6948
11c81455
JK
69492011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6950
6951 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6952 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6953 (clear_pc_function_cache): Clear it.
6954 (find_pc_partial_function): Rename to ...
6955 (find_pc_partial_function_gnu_ifunc): ... this function. New
6956 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6957 (find_pc_partial_function): New wrapper for this function.
6958 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6959
0875794a
JK
69602011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6961
6962 GDB internal type support for STT_GNU_IFUNC.
6963 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6964 (elf_symtab_read): Set mst_text_gnu_ifunc for
6965 BSF_GNU_INDIRECT_FUNCTION.
6966 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6967 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6968 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6969 nodebug_got_plt_symbol.
6970 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6971 (TYPE_GNU_IFUNC): New.
6972 (struct main_type): New field flag_gnu_ifunc.
6973 (struct builtin_type): New field builtin_func_func.
6974 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6975 nodebug_got_plt_symbol.
6976 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6977 (in_gnu_ifunc_stub): New.
6978 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6979 mst_text_gnu_ifunc.
6980 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6981 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6982 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6983 in_gnu_ifunc_stub.
6984 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6985 * symtab.c (search_symbols): Likewise.
6986 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6987 and mst_slot_got_plt.
6988 (in_gnu_ifunc_stub): New declaration.
6989
d0fb5eae
JK
69902011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6991
6992 Support a ring of related breakpoints.
6993 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6994 other functions, add gdb_assert.
6995 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6996 watchpoint_del_at_next_stop.
6997 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6998 (bpstat_stop_status): Handle ring in related_breakpoint.
6999 (set_raw_breakpoint_without_location): Initialize ring in
7000 related_breakpoint.
7001 (delete_breakpoint): Handle ring in related_breakpoint, use
7002 watchpoint_del_at_next_stop.
7003 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7004
9cded63f
TT
70052011-03-28 Tom Tromey <tromey@redhat.com>
7006
7007 PR symtab/12441:
7008 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7009 with `language_minimal'.
7010
467d42c4
UW
70112011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7012
7013 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7014 instead of checking for STT_ARM_TFUNC symbol type.
7015
62853458
TT
70162011-03-25 Tom Tromey <tromey@redhat.com>
7017
7018 * linespec.c (symbol_found): Restore line-based result for
7019 non-LOC_LABEL symbols.
7020
a7417d46
KT
70212011-03-25 Kai Tietz <ktietz@redhat.com>
7022
7023 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7024 instead of strcmp for comparison.
7025 (tui_source_is_displayed): Likewise.
7026 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7027
55f1336d
TT
70282011-03-24 Mark Wielaard <mjw@redhat.com>
7029
f33edef8
PP
7030 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7031 complaint.
7032 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7033 (find_partial_die_in_comp_unit): Likewise in comment.
7034 (read_attribute_value): Likewise.
7035 (lookup_die_type): Likewise.
7036 (dwarf_form_name): Likewise.
7037 (dump_die_shallow): Likewise.
7038 (follow_die_ref_or_sig): Likewise.
55f1336d 7039
9ef07c8c
TT
70402011-03-24 Tom Tromey <tromey@redhat.com>
7041
7042 PR breakpoints/11816:
7043 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7044 (decode_compound): Update.
7045 (find_function_symbol): New function.
7046 (decode_dollar): Update.
7047 (decode_label): Add 'function_symbol' parameter. Handle
7048 function-relative labels.
7049 (decode_variable): Update.
7050 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7051 not its line. Set `special_display' and canonical name for
7052 labels.
7053
56435ebe
TT
70542011-03-24 Tom Tromey <tromey@redhat.com>
7055
7056 * linespec.h (struct linespec_result) <special_display>: New
7057 field.
7058 * breakpoint.h (struct breakpoint) <display_canonical>: New
7059 field.
7060 * breakpoint.c (print_breakpoint_location): Respect
7061 display_canonical.
7062 (create_breakpoint_sal): Add 'display_canonical' parameter.
7063 (create_breakpoints_sal): Update.
7064 (create_breakpoint): Update.
7065
7efd8fc2
TT
70662011-03-24 Tom Tromey <tromey@redhat.com>
7067
7068 * symtab.c (decode_line_spec): Update.
7069 * linespec.c (build_canonical_line_spec): Change type of
7070 'canonical'.
7071 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7072 (find_method, decode_all_digits, decode_dollar, decode_label)
7073 (symbol_found): Likewise.
7074 (init_linespec_result): New function.
7075 * breakpoint.c (struct captured_parse_breakpoint_args)
7076 <canonical_p>: New field, replaces addr_string_p.
7077 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7078 'addr_string'.
7079 (parse_breakpoint_sals): Likewise.
7080 (do_captured_parse_breakpoint): Update.
7081 (create_breakpoint): Use struct linespec_result.
7082 (until_break_command): Update.
7083 (breakpoint_re_set_one): Update.
7084 (decode_line_spec_1): Update.
7085 * linespec.h (struct linespec_result): New.
7086 (init_linespec_result): Declare.
7087
788c8b10
PA
70882011-03-23 Pedro Alves <pedro@codesourcery.com>
7089
7090 * regcache.c (regcache_raw_read): If the target didn't supply a
7091 given raw register, mark it as unavailable.
7092
0ba1096a
KT
70932011-03-23 Kai Tietz <ktietz@redhat.com>
7094
7095 * breakpoint.c (clear_command): Use filename_cmp
7096 instead of strcmp for comparison.
7097 * buildsym.c (watch_main_source_file_lossage): Likewise.
7098 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7099 checking just for slash.
7100 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7101 strrchr and filename_cmp instead of strcmp for filenames.
7102 (add_old_header_file): Use filename_cmp
7103 instead of strcmp for comparison.
7104 * exec.c (exec_set_section_address): Likewise.
7105 * macrotab.c (macro_lookup_inclusion): Likewise.
7106 (macro_lookup_inclusion): Likewise.
7107 * elfread.c (_initialize_elfread): Likewise.
7108 (elfstab_offset_sections): Likewise.
7109 (elfstab_offset_sections): Use lbasename instead of
7110 strrchr.
7111 * mdebugread.c (parse_partial_symbols): Likewise.
7112 (arse_partial_symbols): Use filename_(n)cmp instead of
7113 str(n)cmp for comparison.
7114 * minsyms.c (lookup_minimal_symbol): Likewise.
7115 * psymtab.c (read_psymtabs_with_filename): Likewise.
7116 * solib.c (solib_read_symbols): Likewise.
7117 (reload_shared_libraries_1): Likewise.
7118 * symmisc.c (maintenance_print_symbols): Likewise.
7119 * symfile.c (separate_debug_file_exists): Likewise.
7120 (reread_symbols): Likewise.
7121 (find_separate_debug_file_by_debuglink): Likewise.
7122 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7123 * source.c (add_path): Likewise.
7124 * symtab.c (filename_seen): Likewise.
7125 (file_matches): Likewise.
7126 (print_symbol_info): Likewise.
7127 (maybe_add_partial_symtab_filename): Likewise.
7128 (make_source_files_completion_list): Likewise.
7129 * xml-syscall.c (init_sysinfo): Likewise.
7130 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7131 IS_DIR_SEPARATOR for checking for trailing path separator.
7132
dd90784c
JK
71332011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7134
7135 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7136 label abort_expression.
7137 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7138 DWARF_VALUE_OPTIMIZED_OUT.
7139
3167638f
JK
71402011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7141
7142 Code cleanup.
7143 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7144 to linkage_name. Invert its value. Update the function comment.
7145 (c_type_print_varspec_suffix): Invert it at the caller.
7146 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7147
ce406537
PA
71482011-03-22 Pedro Alves <pedro@codesourcery.com>
7149
7150 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7151 errors when reading the `stop_pc'.
7152 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7153 get_frame_pc.
7154
da5d4055
PM
71552011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7156
7157 * NEWS: Document gdb.Write stream keyword.
7158
29e0eb9c
JK
71592011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7160
7161 Revert:
7162 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7163 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7164 (dwarf2_add_field): Fix new_field->accessibility for
7165 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7166
05775840
PM
71672011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7168
f33edef8 7169 PR python/12183
05775840
PM
7170
7171 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7172 other error classes. Do not print stack trace.
7173
a0cb7835
JK
71742011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7175
7176 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7177 (dwarf2_add_field): Fix new_field->accessibility for
7178 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7179
d19f7eee
UW
71802011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7181
7182 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7183 encountering a load via a non-SP register.
7184
4a2fbb50
UW
71852011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7186
7187 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7188 field in returned unwinder.
7189
3489610d
JB
71902012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7191
7192 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7193
8c1a34e7
JB
71942012-03-21 Joel Brobecker <brobecker@adacore.com>
7195
7196 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7197 of xmalloc.
7198
8fbca658
PA
71992012-03-18 Pedro Alves <pedro@codesourcery.com>
7200
7201 * frame.c (frame_unwind_register): Throw an error if unwinding the
7202 register failed.
7203 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7204 an unwind stop reason.
7205 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7206 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7207 UNWIND_UNAVAILABLE>: New.
7208 * inline-frame.c (inline_frame_unwind): Install
7209 default_frame_unwind_stop_reason.
7210 * frame-unwind.c: Include "exceptions.h".
7211 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7212 (default_frame_unwind_stop_reason): New.
7213 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7214 (default_frame_unwind_stop_reason): Declare.
7215 (struct frame_unwind) <stop_reason>: New function pointer.
7216
7217 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7218 * dwarf2-frame.c: Include exceptions.h.
7219 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7220 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7221 computing the CFA. If such an error was thrown, set
7222 unavailable_retaddr.
7223 (dwarf2_frame_unwind_stop_reason): New.
7224 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7225 unavailable.
7226 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7227 (dwarf2_signal_frame_unwind): Ditto.
7228
7229 * amd64-tdep.c: Include "exceptions.h".
7230 (struct amd64_frame_cache): New field "base_p".
7231 (amd64_init_frame_cache): Clear it.
7232 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7233 Avoid reading registers with functions that throw if the register
7234 is not necessary to compute the frame base.
7235 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7236 swallowing NOT_AVAILABLE_ERROR.
7237 (amd64_frame_unwind_stop_reason): New.
7238 (amd64_frame_this_id): Don't build a frame id if the frame base
7239 was unavailable.
7240 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7241 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7242 base_p if the frame base was computable.
7243 (amd64_sigtramp_frame_unwind_stop_reason): New.
7244 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7245 frame base was unavailable.
7246 (amd64_sigtramp_frame_unwind): Install
7247 amd64_sigtramp_frame_unwind_stop_reason.
7248 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7249 base_p if the frame base was computable.
7250 (amd64_epilogue_frame_unwind_stop_reason): New.
7251 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7252 frame base was unavailable.
7253 (amd64_epilogue_frame_unwind): Install
7254 amd64_epilogue_frame_unwind_stop_reason.
7255 * i386-tdep.c: Include "exceptions.h".
7256 (struct i386_frame_cache): New field "base_p".
7257 (i386_init_frame_cache): Clear it.
7258 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7259 Avoid reading registers with functions that throw if the register
7260 is not necessary to compute the frame base.
7261 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7262 swallowing NOT_AVAILABLE_ERROR.
7263 (i386_frame_unwind_stop_reason): New.
7264 (i386_frame_this_id): Don't build a frame id if the frame base was
7265 unavailable.
7266 (i386_frame_prev_register): Handle unavailable SP.
7267 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7268 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7269 base_p if the frame base was computable.
7270 (i386_epilogue_frame_unwind_stop_reason): New.
7271 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7272 base was unavailable.
7273 (i386_epilogue_frame_unwind): Install
7274 i386_epilogue_frame_unwind_stop_reason.
7275 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7276 base_p if the frame base was computable.
7277 (i386_sigtramp_frame_unwind_stop_reason): New.
7278 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7279 base was unavailable.
7280 (i386_sigtramp_frame_unwind): Install
7281 i386_sigtramp_frame_unwind_stop_reason.
7282 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7283 type's size, not the register's.
7284 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7285
7286 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7287 default_frame_unwind_stop_reason.
7288 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7289 (alpha_heuristic_frame_unwind): Ditto.
7290 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7291 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7292 * avr-tdep.c (avr_frame_unwind): Ditto.
7293 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7294 Ditto.
7295 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7296 * frv-tdep.c (frv_frame_unwind): Ditto.
7297 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7298 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7299 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7300 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7301 (hppa_stub_frame_unwind): Ditto.
7302 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7303 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7304 (ia64_libunwind_frame_unwind)
7305 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7306 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7307 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7308 * m32c-tdep.c (m32c_unwind): Ditto.
7309 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7310 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7311 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7312 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7313 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7314 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7315 * mep-tdep.c (mep_frame_unwind): Ditto.
7316 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7317 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7318 (mips_stub_frame_unwind): Ditto.
7319 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7320 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7321 * mt-tdep.c (mt_frame_unwind): Ditto.
7322 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7323 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7324 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7325 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7326 (s390_sigtramp_frame_unwind): Ditto.
7327 * score-tdep.c (score_prologue_unwind): Ditto.
7328 * sh-tdep.c (sh_frame_unwind): Ditto.
7329 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7330 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7331 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7332 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7333 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7334 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7335 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7336 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7337 (sparc64obsd_trapframe_unwind): Ditto.
7338 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7339 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7340 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7341 * v850-tdep.c (v850_frame_unwind): Ditto.
7342 * vax-tdep.c (vax_frame_unwind): Ditto.
7343 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7344 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7345 * xtensa-tdep.c (xtensa_unwind): Ditto.
7346
f23d1b92
PA
73472011-03-18 Pedro Alves <pedro@codesourcery.com>
7348
7349 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7350 there's always a frame. Use get_frame_pc_if_available instead of
7351 get_frame_pc, and if there's no PC available, don't look up a
7352 symtab.
7353
1d4f5741
PA
73542011-03-18 Pedro Alves <pedro@codesourcery.com>
7355
7356 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7357 unavailable PC.
7358
dba09041
PA
73592011-03-18 Pedro Alves <pedro@codesourcery.com>
7360
7361 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7362 gracefully.
7363
9a26e44c
PA
73642011-03-18 Pedro Alves <pedro@codesourcery.com>
7365
7366 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7367 * frame.c (frame_unwind_caller_pc_if_available): New.
7368 * stack.c (frame_info): Handle unavailable PC.
7369
73702011-03-18 Pedro Alves <pedro@codesourcery.com>
7371
7372 * frame.c (frame_unwind_pc): Rename to ...
7373 (frame_unwind_pc_if_available): ... this. New `pc' output
7374 parameter. Change return type to int. Gracefully handle
7375 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7376 happened, or 1 otherwise.
7377 (frame_unwind_pc): Reimplement on top of
7378 frame_unwind_pc_if_available.
7379 (get_frame_func): Rename to ...
7380 (get_frame_func_if_available): New `pc' output parameter. Change
7381 return type to int. Gracefully handle the PC not being available.
7382 (get_frame_func): Reimplement on top of
7383 get_frame_func_if_available.
7384 (select_frame): Handle the PC being unavailable.
7385 (get_prev_frame): Handle the PC being unavailable.
7386 (get_frame_pc_if_available): New.
7387 (get_frame_address_in_block_if_available): New.
7388 (find_frame_sal): Handle the frame PC not being available.
7389 * frame.h (get_frame_pc_if_available): Declare.
7390 (get_frame_address_in_block_if_available): Declare.
7391 (get_frame_func_if_available): Declare.
7392 * stack.c (print_frame_info): Handle the PC being unavailable.
7393 (find_frame_funname): Ditto.
7394 (print_frame): Handle the PC being unavailable.
7395 (get_frame_language): Ditto.
7396 * blockframe.c (get_frame_block): Ditto.
7397 * macroscope.c (default_macro_scope): Ditto.
7398 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7399
74002011-03-18 Pedro Alves <pedro@codesourcery.com>
7401
7402 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7403 NOT_AVAILABLE_ERROR when evaluating the location expression.
7404
74052011-03-18 Pedro Alves <pedro@codesourcery.com>
7406
7407 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7408 returning that the register piece is unavailable/optimized out.
7409 (write_pieced_value): Handle get_frame_register_bytes returning
7410 that the register piece is unavailable/optimized out when doing a
7411 read-modify write of a bitfield.
7412 * findvar.c (value_from_register): Handle get_frame_register_bytes
7413 returning that the register piece is unavailable/optimized out.
7414 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7415 and `unavailablep'. Throw error on bad debug info. Use
7416 frame_register instead of frame_register_read, to fill in the new
7417 arguments.
7418 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7419 and `unavailablep'.
7420 * valops.c: (value_assign): Adjust, and handle
7421 get_frame_register_bytes failing.
7422 * spu-tdep.c: Include exceptions.h.
7423 (spu_software_single_step): Adjust, and handle
7424 get_frame_register_bytes failing.
7425 (spu_get_longjmp_target): Ditto.
7426 * gdbarch.sh (register_to_value): Change to return int. New
7427 parameters `optimizedp' and `unavailablep'.
7428 * gdbarch.h, gdbarch.c: Regenerate.
7429 * i386-tdep.c (i386_register_to_value): Adjust to new
7430 gdbarch_register_to_value interface.
7431 * i387-tdep.c (i387_register_to_value): Ditto.
7432 * i387-tdep.h (i387_register_to_value): Ditto.
7433 * alpha-tdep.c (alpha_register_to_value): Ditto.
7434 * ia64-tdep.c (ia64_register_to_value): Ditto.
7435 * m68k-tdep.c (m68k_register_to_value): Ditto.
7436 * mips-tdep.c (mips_register_to_value): Ditto.
7437 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7438
0fdb4f18
PA
74392011-03-18 Pedro Alves <pedro@codesourcery.com>
7440
7441 * findvar.c (value_of_register): Mark the value as unavailable, if
7442 the register is unavailable.
7443 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7444 (frame_register): New `unavailablep' parameter.
7445 (frame_register_read): Update comment.
7446 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7447 Set it if the register is unavailable. If the register is
7448 unavailable, clear the output buffer.
7449 (frame_register): New `unavailablep' parameter. Pass it down.
7450 (frame_unwind_register): Adjust.
7451 (put_frame_register): Adjust.
7452 (frame_register_read): Adjust. Also return false if the register
7453 is not available.
7454 (frame_register_unwind_location): Adjust.
7455 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7456 is unavailable, mark the value accordingly.
7457 * stack.c (frame_info): Handle unavailable registers.
7458
e69aa73e
PA
74592011-03-18 Pedro Alves <pedro@codesourcery.com>
7460
7461 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7462 simplify, using regcache_cooked_read.
7463
05d1431c
PA
74642011-03-18 Pedro Alves <pedro@codesourcery.com>
7465
7466 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7467 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7468 (regcache_raw_read_unsigned, regcache_raw_read_part)
7469 (regcache_cooked_read, regcache_cooked_read_signed)
7470 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7471 (regcache_cooked_read_ftype): Change return to enum
7472 register_status.
7473 * regcache.c: Include exceptions.h
7474 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7475 (do_cooked_read): Change return to enum register_status. Always
7476 forward to regcache_cooked_read.
7477 (regcache_raw_read): Change return to enum register_status. If
7478 the register is not REG_VALID, memset the buffer. Return the
7479 register's status.
7480 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7481 return the register's status.
7482 (regcache_raw_read_unsigned): Ditto.
7483 (regcache_cooked_read): Change return to enum register_status.
7484 Assert that with read-only regcaches, the register's status must
7485 be known. If the regcache is read-only, and the register is not
7486 REG_VALID, memset the buffer. Return the register's status.
7487 (regcache_cooked_read_signed): Change return to enum
7488 register_status. Handle non-REG_VALID registers and return the
7489 register's status.
7490 (regcache_cooked_read_unsigned): Change return to enum
7491 register_status. Handle non-REG_VALID registers and return the
7492 register's status.
7493 (regcache_xfer_part, regcache_raw_read_part)
7494 (regcache_cooked_read_part): Change return to enum
7495 register_status. Return the register's status.
7496 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7497 unavailable.
7498 (regcache_dump): Handle unavailable cooked registers.
7499 * frame.c (do_frame_register_read): Adjust interface to match
7500 regcache_cooked_read_ftype.
7501 * gdbarch.sh (pseudo_register_read): Change return to enum
7502 register_status.
7503 * gdbarch.h, gdbarch.c: Regenerate.
7504
7505 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7506 register_status.
7507 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7508 register_status. If reading a raw register indicates the raw
7509 register is not valid, return the raw register's status,
7510 otherwise, return REG_VALID.
7511 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7512 register_status. Handle non-REG_VALID raw registers and return
7513 the register's status.
7514 * arm-tdep.c (arm_neon_quad_read)
7515 (arm_pseudo_read): Change return to enum register_status. Handle
7516 non-REG_VALID raw registers and return the register's status.
7517 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7518 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7519 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7520 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7521 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7522 register_status.
7523 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7524 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7525 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7526 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7527 (m32c_pseudo_register_read): Change return to enum
7528 register_status. Adjust.
7529 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7530 enum register_status. Return the register's status.
7531 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7532 register_status. Return the register's status.
7533 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7534 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7535 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7536 * rs6000-tdep.c (move_ev_register_func): New typedef.
7537 (e500_move_ev_register): Use it. Change return to enum
7538 register_status. Return the register's status.
7539 (do_regcache_raw_read): New function.
7540 (do_regcache_raw_write): New function.
7541 (e500_pseudo_register_read): Change return to enum
7542 register_status. Return the register's status. Use
7543 do_regcache_raw_read.
7544 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7545 (dfp_pseudo_register_read): Change return to enum register_status.
7546 Return the register's status.
7547 (vsx_pseudo_register_read): Ditto.
7548 (efpr_pseudo_register_read): Ditto.
7549 (rs6000_pseudo_register_read): Ditto.
7550 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7551 register_status. Return the register's status.
7552 * sh64-tdep.c (pseudo_register_read_portions): New function.
7553 (sh64_pseudo_register_read): Change return to enum
7554 register_status. Use pseudo_register_read_portions. Return the
7555 register's status.
7556 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7557 register_status. Return the register's status.
7558 * sh-tdep.c (pseudo_register_read_portions): New function.
7559 (sh_pseudo_register_read): Change return to enum register_status.
7560 Use pseudo_register_read_portions. Return the register's status.
7561 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7562 enum register_status. Return the register's status.
7563 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7564 * spu-tdep.c (spu_pseudo_register_read_spu)
7565 (spu_pseudo_register_read): Ditto.
7566 * xtensa-tdep.c (xtensa_register_read_masked)
7567 (xtensa_pseudo_register_read): Ditto.
7568 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7569
e10abd8f
PM
75702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7571
7572 * python/py-value.c (valpy_getitem): Fix formatting of error function
7573 call.
7574
7ea6d463
PM
75752011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7576
7577 ARI fixes: Add missing internationalization markups throughout
7578 C source files.
7579 * darwin-nat-info.c: Ditto.
7580 * record.c: Ditto.
7581 * remote.c: Ditto.
7582 * mi/mi-main.c: Ditto.
7583
001083c6
PM
75842011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7585
7586 ARI fixes: Add missing internationalization markups throughout
7587 yacc files.
7588 * c-exp.y: Ditto.
7589 * cp-name-parser.y: Ditto.
7590 * f-exp.y: Ditto.
7591 * m2-exp.y: Ditto.
7592 * objc-exp.y: Ditto.
7593 * p-exp.y: Ditto.
7594
4f1cdeec
PM
75952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7596
7597 ARI fixes: Messages should have no trailing new lines.
7598 * darwin-nat.c (mach_check_error): Remove trailing new line from
7599 warning function call message.
7600 * record.c (bfdcore_read): Idem for error call.
7601
28e698f1
PM
76022011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7603
7604 * common/signals.c (target_signal_from_host): Add _ markup to error
7605 function call message.
7606 (target_signal_to_host): Add _ markup and remove trailing new line
7607 from warning call message.
7608 (target_signal_from_command): Add _ markup to error function call
7609 message.
7610
99c3dc11
PM
76112011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7612
f33edef8 7613 PR python/12149
99c3dc11
PM
7614
7615 * python/python.c (gdbpy_write): Accept a stream argument and
7616 operate to the appropriate stream.
7617 (gdbpy_flush): Likewise.
7618 (_initialize_python): Add stream constants.
7619 (finish_python_initialization): Add GdbOutputErrorFile class.
7620
c20800be
KY
76212011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7622
7623 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7624
f4a1794a
KY
76252011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7626
7627 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7628 to store_signed_integer. Add debug message when relocating CALL
7629 instructions. Fix formatting of debug message.
7630 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7631
d4862372
JB
76322011-03-17 Joel Brobecker <brobecker@gnat.com>
7633
7634 * target.h (struct target_ops): Remove to_lookup_symbol field.
7635 (target_lookup_symbol): Delete macro.
7636 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7637 (update_current_target, setup_target_debug): Remove handling
7638 of to_lookup_symbol target_ops field.
7639 * ada-tasks.c (get_known_tasks_addr): Remove use of
7640 target_lookup_symbol.
7641 * coffread.c (coff_symtab_read): Likewise.
7642 * dbxread.c (read_dbx_symtab): Ditto.
7643
d645e32e
JB
76442011-03-17 Joel Brobecker <brobecker@gnat.com>
7645
7646 PR gdb/12116:
7647 * configure.ac: Add getthrds declaration check.
7648 * configure, config.in: Regenerate.
7649 * aix-thread.c (getthrds): Declare only if not already declared
7650 in procinfo.h. More declaration out of get_signaled_thread to
7651 global scope.
7652
29703da4
PM
76532011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7654
7655 * python/py-symtab.c: Populate symtab_object_methods,
7656 sal_object_methods.
7657 (stpy_is_valid): New function.
7658 (salpy_is_valid): Ditto.
7659 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7660 (sympy_is_valid): New function.
7661 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7662 (objfpy_is_valid): New function.
7663 * python/py-inferior.c: Populate inferior_object_methods.
7664 (infpy_is_valid): New function.
7665 * python/py-infthread.c: Populate thread_object_methods.
7666 (thpy_is_valid): New function.
7667 * python/py-block.c: Declare block_object_methods. Populate. Declare
7668 block_iterator_object_methods. Populate.
7669 (blpy_is_valid): New function.
7670 (blpy_iter_is_valid): Ditto.
7671
c00f8484
KS
76722011-03-16 Keith Seitz <keiths@redhat.com>
7673
7674 * linespec.c (find_methods): Canonicalize NAME before looking
7675 up the symbol.
7676 (name_end): New function.
7677 (keep_name_info): New function.
7678 (decode_line_1): Use keep_name_info.
7679 (decode_compound): Likewise.
7680 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7681 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7682
7683 PR c++/12273
7684 * linespec.c (locate_first_half): Keep overload information, too.
7685 (decode_compound): Use a string to represent break characters
7686 to escape the loop.
7687 If P points to a break character, do not increment it.
7688 For C++ and Java, keep overload information and relevant keywords.
7689 If we cannot find a symbol, search the minimal symbols.
7690
7691 PR c++/11734
7692 * linespec.c (decode_compound): Rename SAVED_ARG to
7693 THE_REAL_SAVED_ARG.
7694 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7695 single-quotes.
7696 Pass a valid block to lookup_symbol.
7697 (lookup_prefix_sym): Likewise.
7698 (find_method): Construct search name based on SYM_CLASS instead
7699 of SAVED_ARG.
7700 * psymtab.c (lookup_partial_symbol): Add language parameter.
7701 (lookup_symbol_aux_psymtabs): Likewise.
7702 Don't assume that the psymtab we found was the right one. Search
7703 for the desired symbol in the symtab to be certain.
7704 (psymtab_search_name): New function.
7705 (lookup_partial_symbol): Use psymtab_search_name.
7706 Add language parameter.
7707 (read_symtabs_for_function): Add language parameter and pass to
7708 lookup_partial_symbol.
7709 (find_symbol_file_from_partial): Likewise.
7710
c91513d8
PP
77112011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7712
7713 PR gdb/12528
7714 * dwarf2read.c (noop_record_line): New function.
7715 (dwarf_decode_lines): Ignore line tables for GCd functions.
7716
b37520b6
PM
77172011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7718
7719 Fix ARI warnings about new lines at the end of messages, which
7720 are unneeded as there is a new line added at the end of the message
7721 automatically.
7722 * darwin-nat.c (darwin_stop_inferior): Ditto.
7723 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7724 * dfp.c (decimal_to_number): Ditto.
7725 * exec.c (print_section_info): Ditto.
7726 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7727 * osdata.c (get_osdata): Ditto.
7728 * record.c (bfdcore_write): Ditto.
7729 * remote-mips.c (mips_readchar): Ditto.
7730 * remote.c (read_ptid): Ditto.
7731 * ser-mingw.c (ser_windows_raw): Ditto.
7732 * tracepoint.c (add_local_symbols): Ditto.
7733 * windows-nat.c (fake_create_process): Ditto.
7734
b08ee6a2
TT
77352011-03-16 Tom Tromey <tromey@redhat.com>
7736
7737 * tracepoint.c (stop_tracing): Don't declare.
7738 * event-top.c (after_char_processing_hook): Add `(void)'.
7739
9a6f1302
PM
77402011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7741
7742 * NEWS: Add Parameter sub-classing description.
7743
7ceb86b1
KT
77442011-03-16 Kai Tietz <ktietz@redhat.com>
7745
7746 * MAINTAINERS: Update my e-mail address.
7747
efeff6cf
AT
77482011-03-15 Andreas Tobler <andreast@fgznet.ch>
7749
7750 * MAINTAINERS: Add myself for write after approval privileges.
7751
681c238c
MS
77522011-03-15 Michael Snyder <msnyder@vmware.com>
7753
f3df5b08
MS
7754 * frame.c (find_frame_sal): Assert sym is not null.
7755
13f6513c
MS
7756 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7757
50412521
MS
7758 * objc-lang.c (selectors_info): Check strchr for null result.
7759
681c238c
MS
7760 * stabsread.c (define_symbol): Guard against bad stabstring input.
7761
6ced1581
PM
77622011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7763
7764 Remove trailing spaces and tabulations from pascal language
7765 support sources.
7766 p-exp.y: Ditto.
7767 p-lang.c: Ditto.
7768 p-lang.h: Ditto.
7769 p-valprint.c: Ditto.
7770
9373cf26
JK
77712011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7772
7773 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7774 than LOW. Comment it.
7775 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7776 HIGHPC not strictly higher than LOWPC.
7777
9a1edae6
PM
77782011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7779
7780 Fix formatting of function declarations returning a pointer in
7781 previous commit.
7782 * varobj.c (varobj_add_child): Ditto.
7783 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7784 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7785
24e9cda0
UW
77862011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7787
7788 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7789 for the "generic" vector ABI used with GCC 4.3 and later.
7790 (ppc64_sysv_abi_return_value): Likewise.
7791
77922011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7793
7794 * infcall.c (call_function_by_hand): Function return value is
7795 always a non_lval, even when using struct_return.
7796
c9174737
PA
77972011-03-15 Pedro Alves <pedro@codesourcery.com>
7798
7799 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7800 (map_display_numbers): New.
7801 (do_delete_display): New.
7802 (undisplay_command): Use map_display_numbers.
7803 (do_enable_disable_display): New.
7804 (enable_disable_display_command): New function.
7805 (enable_display): Delete.
7806 (enable_display_command): New.
7807 (disable_display_command): Reimplement.
7808 (_initialize_printcmd): Adjust "enable display" command to use
7809 `enable_display_command' as callback.
7810
350c6c65
PM
78112011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7812
7813 * NEWS: Add Python breakpoint 'stop' operation.
7814
824446ad
PM
78152011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7816
7817 * NEWS: Delete duplicate entry. Fix typo.
7818
2021ad3a
PM
78192011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7820
7821 Fix ARI warning about function names in first column.
7822 Put prototype declaration on same line as return type.
7823 * objc-exp.y: Ditto.
7824 * p-exp.y: Ditto.
7825 * python/py-stopevent.h: Ditto.
7826 For long function names, split parameters to
7827 allow function name on same line as return type.
7828 * solib-pa64.c: Ditto.
7829 * varobj.c: Ditto.
7830 * varobj.h: Ditto.
7831 For long function declaration, use single line.
7832 * hppa-tdep.h: Ditto.
7833 * inferior.h: Ditto.
7834
7371cf6d
PM
78352011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7836
7837 * python/python.h: Declare gdbpy_should_stop and
7838 gdbpy_breakpoint_has_py_cond.
7839 * python/python.c: Add python.h to includes. Remove python.h from
7840 HAVE_PYTHON definition
7841 (gdbpy_should_stop): New dummy function.
7842 (gdbpy_breakpoint_has_py_cond): New dummy function.
7843 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7844 sub-classing capabilities.
7845 (gdbpy_should_stop): New function.
7846 (gdbpy_breakpoint_has_py_cond): New function.
7847 (local_setattro): New function.
7848 * breakpoint.c (condition_command): Add check for Python 'stop'
7849 operation.
7850 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7851 operation function as part of stop/continue tests.
7852
37b50a69
TT
78532011-03-14 Tom Tromey <tromey@redhat.com>
7854
7855 PR gdb/12576:
7856 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7857 (needs_frame_dwarf_call): Likewise.
7858
eeae04df
PM
78592011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7860
7861 Fix ARI warning about functions without parameters that do not
7862 use (void).
7863 * breakpoint.c (all_tracepoints): Replace () by (void).
7864 * f-exp.y (match_string_literal): Ditto.
7865 (yylex): Ditto.
7866 * m2-exp.y (yylex): Ditto.
7867 * mep-tdep.c (current_me_module): Ditto.
7868 (current_options): Ditto.
7869 (current_cop_data_bus_width): Ditto.
7870 (current_cr_names): Ditto.
7871 (current_cr_is_float): Ditto.
7872 (current_ccr_names): Ditto.
7873 * objc-exp.y (yylex): Ditto.
7874 * p-exp.y (yylex): Ditto.
7875 * remote.c (send_interrupt_sequence): Ditto.
7876 * tracepoint.c (current_trace_status): Ditto.
7877 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7878 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7879
6dc3565d
MS
78802011-03-11 Michael Snyder <msnyder@vmware.com>
7881
1427fe5e
MS
7882 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7883 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7884 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7885 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7886 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7887
60bc018f
MS
7888 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7889 (delete_async_event_handler): Ditto.
7890
f3be5b64
MS
7891 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7892
4c2d5724
MS
7893 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7894
6dc3565d
MS
7895 * top.c (set_verbose): Assert showcmd was found.
7896
4e6ca6d5
MG
78972011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7898
7899 * xtensa-tdep.c (warning_once): Correct style issues.
7900
815a83e4
YQ
79012011-03-11 Yao Qi <yao@codesourcery.com>
7902
7903 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7904
f2eb0bc8
AS
79052011-03-11 Andreas Schwab <schwab@redhat.com>
7906
7907 * common/aclocal.m4: Remove.
7908
b801de47
MG
79092011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7910
7911 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7912 (xtensa_write_register, xtensa_read_register): Likewise.
7913 (xtensa_hextochar): Removed.
7914 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7915
dbab50de
MG
79162011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7917
7918 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7919 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7920 (xtensa_alloc_frame_cache): Add initialization for new fields.
7921 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7922 (warning_once): New function.
7923 (xtensa_insn_kind): New item c0opc_and.
7924 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7925 (call0_track_op): Change arguments. New local variable litbase.
7926 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7927 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7928 in the prologue.
dbab50de 7929 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7930 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7931 Add the variety of updates to handle extended prologues, which now can
7932 conduct dynamic stack adjustments.
7933 (call0_frame_cache): Likewise.
7934 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7935 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7936
b2c04452
MS
79372011-03-10 Michael Snyder <msnyder@vmware.com>
7938
f8f67713
MS
7939 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7940 (cmd_qtframe): Ditto.
7941 (cmd_qtbuffer): Ditto.
7942 (cmd_bigqtbuffer): Ditto.
7943
197f0a60
TT
79442011-03-10 Tom Tromey <tromey@redhat.com>
7945
7946 * tracepoint.c (trace_actions_command): Update.
7947 * thread.c (thread_apply_command): Update.
7948 * reverse.c (delete_bookmark_command): Update.
7949 (bookmarks_info): Update.
7950 * printcmd.c (undisplay_command): Update.
7951 * memattr.c (mem_enable_command): Update.
7952 (mem_disable_command): Update.
7953 (mem_delete_command): Update.
7954 * inferior.c (detach_inferior_command): Update.
7955 (kill_inferior_command): Update.
7956 (remove_inferior_command): Update.
7957 * cli/cli-utils.h (struct get_number_or_range_state): New.
7958 (init_number_or_range): Declare.
7959 (get_number_or_range): Update.
7960 * cli/cli-utils.c (init_number_or_range): New function.
7961 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7962 static variables.
7963 (number_is_in_list): Update.
7964 * breakpoint.h (get_tracepoint_by_number): Update.
7965 * breakpoint.c (map_breakpoint_numbers): Update for change to
7966 get_number_or_range.
7967 (find_location_by_number): Use get_number, not
7968 get_number_or_range.
7969 (trace_pass_set_count): New function.
7970 (trace_pass_command): Update for change to get_number_or_range.
7971 Rework loop logic.
7972 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7973 'state' parameter.
7974
ecec24e6
PM
79752011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7976
7977 * python/py-param.c (add_setshow_generic): Add set/show callback
7978 parameters. Register Python object context.
7979 (get_show_value): New function.
7980 (get_set_value): New function.
7981 (call_doc_function): New function.
7982 (get_doc_string): Move behind get_show_value/get_set_value.
7983
6d6c6b1f
JK
79842011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7985
7986 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7987
68d6df83
MG
79882011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7989
dbab50de 7990 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7991 (xtensa_write_register): Likewise.
7992 (xtensa_hextochar): Add comment and update to match coding conventions.
7993 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7994 (execute_l32e, execute_s32e, execute_code): Update comments.
7995 (xtensa_exception_handler_t): Update to match coding conventions.
7996 (xtensa_insn_kind): Likewise.
7997
85c9d6a6
MS
79982011-03-09 Michael Snyder <msnyder@vmware.com>
7999
8000 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8001
91495617
PA
80022011-03-09 Pedro Alves <pedro@codesourcery.com>
8003
8004 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8005
eb8c0621
TT
80062011-03-09 Tom Tromey <tromey@redhat.com>
8007
8008 * thread.c (restore_selected_frame): Handle frame_level == -1.
8009 (make_cleanup_restore_current_thread): Use
8010 get_selected_frame_if_set.
8011 * frame.h (get_selected_frame_if_set): Declare.
8012 * frame.c (get_selected_frame_if_set): New function.
8013
9f37bbcc
PA
80142011-03-09 Pedro Alves <pedro@codesourcery.com>
8015
8016 * cli/cli-cmds.c (shell_escape): Use lbasename.
8017 * coffread.c (coff_start_symtab): Constify parameter.
8018 (complete_symtab): Constify `name' parameter.
8019 (coff_symtab_read): Constify `filestring' local.
8020 (coff_getfilename): Constify return and `result' local.
8021 Use lbasename.
8022 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8023 * linux-fork.c (info_checkpoints_command): Use lbasename.
8024 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8025 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8026 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8027 * procfs.c (procfs_make_note_section): Use lbasename.
8028 * tui/tui-io.c (printable_part): Constity return and parameter.
8029 Use lbasename.
8030 (print_filename): Constify parameters, and local `s'.
8031 (tui_rl_display_match_list): Constify local `temp'.
8032
f8de3c55
JK
80332011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8034
8035 Revert:
8036 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8037 Fix DWARF-3+ DW_AT_accessibility default assumption.
8038 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8039 cu->header.version >= 3.
8040
d9837b00
YQ
80412011-03-09 Yao Qi <yao@codesourcery.com>
8042
8043 * common/Makefile.in: Remove.
8044 * common/configure: Remove.
8045 * common/configure.ac: Remove.
8046
e637a4f5
YQ
80472011-03-09 Yao Qi <yao@codesourcery.com>
8048
8049 Revert:
8050 2011-02-11 Yao Qi <yao@codesourcery.com>
8051
8052 * common/Makefile.in: Add copyright header.
8053
8054 2011-02-11 Yao Qi <yao@codesourcery.com>
8055
8056 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8057 libcommon.a.
8058 * configure.ac: Add common to sub dir.
8059 * configure: Regenerate.
8060
f976a05d
MG
80612011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8062
8063 * xtensa-tdep.c (call0_ret): New function.
8064 (xtensa_skip_prologue): Speed up analysis.
8065
57041825
MG
80662011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8067
8068 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8069 while executing MI command -data-list-changed-registers.
8070
08b9c608
MG
80712011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8072
8073 * xtensa-tdep.c (xtensa_read_register): New function.
8074 (xtensa_write_register): New function.
8075 (xtensa_find_register_by_name): New function.
8076 (xtensa_windowed_frame_cache): Update comments in type description.
8077 (xtensa_frame_cache): Likewise.
8078 (xtensa_window_interrupt_insn): New function.
8079 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8080 (xtensa_insn_kind): Add new instructions.
8081 (rwx_special_register): New function.
8082 (call0_classify_opcode): Add new instructions to the analysis.
8083 (a0_saved, a7_saved, a11_saved): New variables.
8084 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8085 (execute_l32e): New function.
8086 (execute_s32e): New function.
8087 (xtensa_exception_handler_t): New type.
8088 (execute_code): New function.
8089 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8090 analysis for Xtensa Window Exception handlers.
8091
4d1acb11
MG
80922011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8093
98689b25
MG
8094 * xtensa-tdep.c (TX_PS): New.
8095 (windowing_enabled): Update to count for Call0 ABI.
8096 (xtensa_hextochar): New.
8097 (xtensa_init_reggroups): Make algorithm generic.
8098 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8099
81002011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8101
8102 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8103
d3f323f3
MS
81042011-03-08 Michael Snyder <msnyder@vmware.com>
8105
3dcabaa8
MS
8106 * i386-tdep.c (i386_follow_jump): Check return value of
8107 target_read_memory.
8108 (i386_analyze_struct_return): Ditto.
8109 (i386_skip_probe): Ditto.
8110 (i386_match_insn): Ditto.
8111 (i386_skip_noop): Ditto.
8112 (i386_analyze_frame_setup): Ditto.
8113 (i386_analyze_register_saves): Ditto.
8114 (i386_skip_prologue): Ditto.
8115 (i386_skip_main_prologue): Ditto.
8116
13b3fd9b
MS
8117 * target.c (read_whatever_is_readable): Fix memory leak.
8118
d3f323f3
MS
8119 * i386-tdep.c (i386_process_record): Document fall through.
8120
421d5c74
JK
81212011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8122
8123 Fix DWARF-3+ DW_AT_accessibility default assumption.
8124 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8125 cu->header.version >= 3.
8126
63154eca
PA
81272011-03-08 Pedro Alves <pedro@codesourcery.com>
8128
8129 * remote.c (remote_check_symbols): Skip if the target has no
8130 execution.
8131
f1a507a1
JB
81322011-03-08 Joel Brobecker <brobecker@adacore.com>
8133
8134 * target.c (read_whatever_is_readable): Reformat comment,
8135 with a minor typo fix. Minor reformatting of the code.
8136
36073a92
YQ
81372011-03-08 Yao Qi <yao@codesourcery.com>
8138
8139 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8140 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8141 Use cached result instead of calling displaced_in_arm_mode again.
8142 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8143 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8144 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8145 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8146 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8147 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8148 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8149 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8150 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8151 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8152 (arm_catch_kernel_helper_return): Likewise.
8153 * gdb/arm-tdep.h : Update function declarations.
8154
d3f323f3 81552011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8156
e0e40094
MS
8157 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8158
0b2381f5
MS
8159 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8160
0350914a
MS
8161 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8162
69feea6f
MS
8163 * elfread.c (elf_symtab_read): Stop memory leak.
8164
e6040cbd
MS
8165 * main.c (captured_main): Fix memory leak.
8166
052874e8
AS
81672011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8168
8169 * ada-lang.c (compare_names): Call is_name_suffix with string1
8170 instead of string2.
8171
b11896a5
TT
81722011-03-07 Tom Tromey <tromey@redhat.com>
8173
8174 * xcoffread.c (xcoff_sym_fns): Update.
8175 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8176 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8177 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8178 (symbol_file_add_with_addrs_or_offsets): Likewise.
8179 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8180 * somread.c (som_sym_fns): Update.
8181 * psymtab.h (require_partial_symbols): Declare.
8182 * psymtab.c (require_partial_symbols): New function.
8183 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8184 (ALL_OBJFILE_PSYMTABS): Undef.
8185 (ALL_PSYMTABS): Move from psympriv.h.
8186 (lookup_partial_symtab, find_pc_sect_psymtab)
8187 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8188 (find_last_source_symtab_from_partial)
8189 (forget_cached_source_info_partial)
8190 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8191 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8192 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8193 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8194 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8195 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8196 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8197 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8198 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8199 psymtabs.
8200 * mipsread.c (ecoff_sym_fns): Update.
8201 * machoread.c (macho_sym_fns): Update.
8202 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8203 (read_psyms): New function.
8204 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8205 (elf_sym_fns_lazy_psyms): New global.
8206 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8207 dwarf2_build_psymtabs.
8208 * dbxread.c (aout_sym_fns): Update.
8209 * coffread.c (coff_sym_fns): Update.
8210
fda326dd
TT
82112011-03-07 Tom Tromey <tromey@redhat.com>
8212
8213 * infrun.c (print_exited_reason): Include inferior id and pid in
8214 message.
8215
aeaec162
TT
82162011-03-07 Tom Tromey <tromey@redhat.com>
8217
8218 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8219 parameter.
8220 (target_has_execution_1): Update.
8221 (target_has_execution_current): Declare.
8222 (target_has_execution): Call target_has_execution_current.
8223 (default_child_has_execution): Update.
8224 * target.c (default_child_has_execution): Add 'the_ptid'
8225 parameter.
8226 (target_has_execution_1): Likewise.
8227 (target_has_execution_current): New function.
8228 (add_target): Update.
8229 (init_dummy_target): Update.
8230 * remote-m32r-sdi.c (m32r_has_execution): New function.
8231 (init_m32r_ops): Use it.
8232 * record.c (record_core_has_execution): Now static. Add
8233 'the_ptid' parameter.
8234 * inferior.c (have_live_inferiors): Don't save current thread.
8235 Use target_has_execution_1.
8236
08e14083
YQ
82372011-03-07 Yao Qi <yao@codesourcery.com>
8238
8239 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8240
c05d19c5
JB
82412011-03-07 Joel Brobecker <brobecker@adacore.com>
8242
8243 * elfread.c (elf_symtab_read): Minor reformatting.
8244
3e6ef9e4
JB
82452011-03-07 Joel Brobecker <brobecker@adacore.com>
8246
8247 * objc-lang.c (selectors_info): Minor reformatting.
8248
dbb8534f
JB
82492011-03-07 Joel Brobecker <brobecker@adacore.com>
8250
8251 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8252
dd70cc93
JB
82532011-03-07 Joel Brobecker <brobecker@adacore.com>
8254 Michael Snyder <msnyder@vmware.com>
8255
8256 * ada-valprint.c (ada_val_print_array): Move the declaration of
8257 "byte_order" and "elttype" inside the block where these variables
8258 are actually used. Remove some special handling for the case
8259 where "elttype" and "eltlen" are null. Replace by a comment
8260 and a couple of assertion checks.
8261
b27cf2b3
MS
82622011-03-05 Michael Snyder <msnyder@vmware.com>
8263
8264 * source.c (add_path): Replace semicolon at end of block.
8265 * dwarf2expr.c (execute_stack_op): Ditto.
8266
5387a0c6
MF
82672011-03-05 Mike Frysinger <vapier@gentoo.org>
8268
8269 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8270 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8271 (bfin-*-*): Likewise.
8272
e3aa49af
MS
82732011-03-05 Michael Snyder <msnyder@vmware.com>
8274
82ae4854
MS
8275 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8276 * mdebugread.c (parse_symbol): Ditto.
8277 * parse.c (parse_exp_in_context): Ditto.
8278 * source.c (add_path): Ditto.
8279 * utils.c (gnu_debuglink_crc32): Ditto.
8280 * varobj.c (variable_language): Ditto.
8281
e3aa49af
MS
8282 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8283
154f592e
MS
82842011-03-04 Michael Snyder <msnyder@vmware.com>
8285
da3ecdc6
MS
8286 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8287
9cc89665
MS
8288 * symfile.c (simple_overlay_update): Check for null return value
8289 from lookup_minimal_symbol.
8290
154f592e
MS
8291 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8292
63ffa6ee
TJB
82932011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8294
8295 * eval.c (parse_and_eval_address_1): Remove function.
8296 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8297 instead of parse_and_eval_address_1.
8298 * value.h (parse_and_eval_address_1): Remove prototype.
8299
a17d146e
MS
83002011-03-04 Michael Snyder <msnyder@vmware.com>
8301
8302 * remote.c (putpkt_binary): Document that case stmt falls through.
8303
1a6a67de
TJB
83042011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8305
8306 * breakpointc (print_it_typical): Move NULL check from here...
8307 (print_bp_stop_message): ... to here.
8308
488919c4
MS
83092011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8310
8311 * breakpoint.c (enable_command): Use break instead of continue,
8312 and fill in a missing break.
8313 (disable_command): Ditto.
8314
1e182ce8
UW
83152011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8316
8317 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8318 (terminal_save_ours): Remove misleading comment.
8319 (inflow_inferior_data_cleanup): Free ttystate.
8320 (inflow_inferior_exit): Likewise.
8321 (copy_terminal_info): Copy ttystate.
8322
8323 * serial.c (serial_copy_tty_state): New function.
8324 * serial.h (serial_copy_tty_state): Add prototype.
8325 (struct serial_ops): Add copy_tty_state callback.
8326 * ser-base.c (ser_base_copy_tty_state): New function.
8327 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8328 * ser-go32.c (dos_copy_tty_state): New function.
8329 (dos_ops): Install copy_tty_state callback.
8330 * ser-mingw.c (_initialize_ser_windows): Likewise.
8331 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8332 * ser-unix.c (hardwire_copy_tty_state): New function.
8333 (_initialize_ser_hardwire): Install it.
8334
b2c5f112
MS
83352011-03-04 Michael Snyder <msnyder@vmware.com>
8336
2abae994
MS
8337 * breakpoint.c (create_breakpoint): Add missing break statement.
8338
7f5936f9
MS
8339 Reverting this patch:
8340 * infcall.c (call_function_by_hand): Add break statements for lint.
8341
b2c5f112
MS
8342 Reverting this patch:
8343 * cli/cli-script.c (script_from_file): Add break for lint.
8344
42b1321c
MS
83452011-03-04 Michael Snyder <msnyder@vmware.com>
8346
8347 * solib.c (reload_shared_libraries_1): Close memory leak.
8348
3e2a0cee
TT
83492011-03-03 Tom Tromey <tromey@redhat.com>
8350
8351 PR gdb/12538:
8352 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8353 DW_STRING is NULL.
8354
58397cb7
MS
83552011-03-03 Michael Snyder <msnyder@vmware.com>
8356
2e3fd767
MS
8357 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8358 fields of struct 'st' to zero.
8359
58397cb7
MS
8360 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8361 sal.pspace before calling set_current_source_symtab_and_line.
8362
ced54c8f
YQ
83632011-03-03 Yao Qi <yao@codesourcery.com>
8364
8365 * Makefile.in (configure-common): Remove. Let Makefile
8366 in dir common to rebuild itself.
8367 (common/Makefile): Likewise.
8368
3351ea09
JB
83692011-03-03 Joel Brobecker <brobecker@adacore.com>
8370
8371 * utils.c (parse_escape): Add i18n markup in error message.
8372
bf9f652a
YQ
83732011-03-03 Yao Qi <yao@codesourcery.com>
8374
8375 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8376 ARM_PC_REGNUM.
8377 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8378 (displaced_write_reg, displaced_read_reg): Likewise.
8379 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8380 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8381 (cleanup_branch): Replace magic number 14 and 15 with
8382 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8383
d42de051
MS
83842011-03-02 Michael Snyder <msnyder@vmware.com>
8385
240f9570
MS
8386 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8387
10dd8b54
MS
8388 * cli/cli-script.c (script_from_file): Add break for lint.
8389
b98bd911
MS
8390 * mdebugread.c (parse_partial_symbols): Fix indent.
8391
3494b66d
MS
8392 * target-descriptions.c (tdesc_gdb_type): No need to call
8393 xstrdup, callee saves a copy.
8394
daac021a
MS
8395 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8396
c38d16a7
MS
8397 * infcall.c (call_function_by_hand): Add break statements for lint.
8398
905b671b
MS
8399 * utils.c (parse_escape): Escape the escape char.
8400
f2eb0bc8 8401 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8402 PyList_Append fails.
8403 (gdbpy_inferiors): Error out if build_inferior_list fails.
8404
8c6a60d1
MS
8405 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8406 a function call.
8407
d42de051
MS
8408 * record.c (record_restore): Move printf to before error return.
8409
4db71c0b
YQ
84102011-03-02 Yao Qi <yao@codesourcery.com>
8411
8412 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8413 is_thumb and insn_size.
8414 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8415 on both ARM and Thumb mode.
8416 (arm_process_displaced_insn): Set is_thumb and insn_size.
8417 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8418 (arm_displaced_step_fixup): Likewise.
8419
a9dc8dcc
MS
84202011-03-01 Michael Snyder <msnyder@vmware.com>
8421
53624a93
MS
8422 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8423
77766669
MS
8424 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8425
62d5b8da
MS
8426 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8427
5e9e105f
MS
8428 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8429
dc19db01
MS
8430 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8431 with xmalloc.
8432
5ce64950
MS
8433 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8434 which shadows function parameter.
8435
a0aa2878
MS
8436 * tracepoint.c (create_tsv_from_upload): Superfluous call
8437 to xstrdup. Callee already calls xstrdup.
8438
e325fb69
MS
8439 * linespec.c (decode_line_1): Remove unnecessary null check.
8440
21cbba77
MS
8441 * tracepoint.c (scope_info): Fix mem leak, remove underused
8442 variable.
8443
63360adc
MS
8444 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8445 superfluous null check.
8446
18ea20ac 8447 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8448 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8449
d014929c
MS
8450 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8451
6e9130cf
MS
8452 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8453 be null.
8454
5f01dbc0
MS
8455 * linespec.c (decode_line_1): Check for null before dereference.
8456
d684ab85
MS
8457 * reverse.c (record_restore): Move null-check to before pointer
8458 dereference.
8459
bfffb7e3
MS
8460 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8461
a9dc8dcc
MS
8462 * objc-lang.c (selectors_info): Add explanitory comment.
8463 (classes_info): Ditto.
8464
478fd957
UW
84652011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8466
8467 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8468 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8469 versions of the trampoline. Handle Thumb vs. ARM addresses.
8470 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8471 (arm_linux_init_abi): Install it.
8472 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8473 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8474
0480cefa
MS
84752011-02-28 Michael Snyder <msnyder@vmware.com>
8476
ac50ab3b
MS
8477 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8478 a little bigger, to avoid possibility of an overflow.
8479
f63fbe86
MS
8480 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8481 buffers a little bigger, to avoid possibility of an overflow.
8482
9e91a352
MS
8483 * coffread.c (coff_getfilename): Add check to avoid overflow.
8484
f2eb0bc8 8485 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8486 avoid overflow.
8487 (classes_info): Error out on too long REGEXP.
8488
098ab512
MS
8489 * infrun.c (handle_inferior_event): Remove unused function call.
8490
bcbd1de9
MS
8491 * fork-child.c (fork_inferior): Remove ifdef'd code and
8492 unused variable.
8493
2e456570
MS
8494 * linux-thread-db.c (attach_thread): Discard unused value.
8495
14571dad
MS
8496 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8497
a9cbf802
MS
8498 * remote.c (remote_get_noisy_reply): Discard unused value.
8499 (remote_vcont_resume): Ditto.
8500 (remote_stop_ns): Ditto.
8501
5715d26e
MS
8502 * linespec.c (decode_objc): Delete unused variable.
8503
4a9bca80
MS
8504 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8505
f47fb265
MS
8506 * dwarf2read.c (add_partial_symbol): Discard unused values.
8507 (read_base_type): Delete unused variable.
8508
e81cff30
MS
8509 * dbxread.c (read_dbx_symtab): Discard unused value.
8510
262acaeb
MS
8511 * eval.c (evaluate_subexp_standard): Delete unused variable,
8512 and discard unused values.
8513
df983543
MS
8514 * infcmd.c (_initialize_infcmd): Discard unused values.
8515
89acf84d
MS
8516 * stabsread.c (rs6000_builtin_type): Missing break statement.
8517
ab8b8aca
MS
8518 * dbxread.c (process_one_symbol): Discard unused value.
8519
6b4511ab
MS
8520 * coffread.c (coff_end_symtab): Delete unused variable.
8521
e8e80198
MS
8522 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8523 (dwarf2_add_typedef): Delete unused variable.
8524 (read_namespace): Ditto.
8525 (dwarf_decode_macros): Ditto.
8526
976aa66e
MS
8527 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8528
5b92b49f
MS
8529 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8530
91e8df85
MS
8531 * p-valprint.c (pascal_val_print): Discard unused value.
8532
899500d6
MS
8533 * utils.c (nquery): Call va_end before return;
8534 (yquery): Ditto.
8535 (query): Ditto.
8536
0480cefa
MS
8537 * proc-service.c (ps_plog): Call va_end before return.
8538
fb6a3ed3
TT
85392011-02-28 Tom Tromey <tromey@redhat.com>
8540
8541 * python/python.c (gdbpy_value_cst): New global.
8542 (_initialize_python): Initialize it.
8543 * python/python-internal.h (gdbpy_value_cst): Declare.
8544 * python/py-value.c (convert_value_from_python): Use
8545 gdbpy_value_cst.
8546
c05202a1
MS
85472011-02-28 Michael Snyder <msnyder@vmware.com>
8548
e463f587
MS
8549 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8550
c38eea1a
MS
8551 * breakpoint.c (catch_syscall_completer): Free malloced list.
8552
3ef09ab5
MS
8553 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8554
8f9a01ee
MS
8555 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8556 (lval_func_check_synthetic_pointer): Ditto.
8557 (lval_func_free_closure): Fix use-after-free.
c05202a1 8558
477d0d57
TT
85592011-02-28 Tom Tromey <tromey@redhat.com>
8560
8561 * psymtab.c (expand_partial_symbol_tables): Use
8562 ALL_OBJFILE_PSYMTABS.
8563
20937029
JK
85642011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8565
8566 * objc-lang.c (selectors_info): Error on too long REGEXP.
8567
907b7f4f
MS
85682011-02-28 Michael Snyder <msnyder@vmware.com>
8569
92e96192
MS
8570 * python/py-param.c (set_parameter_value): Add missing
8571 break statement.
8572
907b7f4f
MS
8573 * linux-record.c (record_linux_system_call): Add missing
8574 break statement.
8575
12c5a436
UW
85762011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8577
8578 * breakpoint.c (print_one_breakpoint_location): Remove unused
8579 argument PRINT_ADDRESS_BITS. Update callers.
8580 (print_one_breakpoint): Likewise.
8581
170b53b2
UW
85822011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8583
8584 * breakpoint.c (wrap_indent_at_field): New function.
8585 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8586 Allocate ui_stream locally instead of using STB argument.
8587 (print_one_breakpoint_location): Update call.
8588 * ui-out.c (ui_out_query_field): New function.
8589 * ui-out.h (ui_out_query_field): Add prototype.
8590
8ab1f94d
JB
85912011-02-28 Joel Brobecker <brobecker@adacore.com>
8592
8593 From Michael Snyder <msnyder@vmware.com>
8594 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8595
7d488639
MS
85962011-02-27 Michael Snyder <msnyder@vmware.com>
8597
ae179fba
MS
8598 * objc-lang.c (selectors_info): Prevent string overrun.
8599
086dbf66
MS
8600 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8601 error in strncpy.
8602
f2eb0bc8 8603 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8604 outer scope.
8605
7d488639
MS
8606 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8607 param with a local variable of the same name.
8608
3bd0f5ef
MS
86092011-02-27 Michael Snyder <msnyder@vmware.com>
8610
8611 * value.c (value_from_history_ref): New function.
8612 * value.h (value_from_history_ref): Export.
8613 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8614 to parse value history references.
8615 * cli/cli-utils.h (get_number_trailer): Update comment.
8616
86172011-02-27 Michael Snyder <msnyder@vmware.com>
8618
8619 * inferior.c (detach_inferior_command): Use get_number_or_range.
8620 (kill_inferior_command): Ditto.
8621 (remove_inferior_command): Ditto.
8622 (initialize_inferiors): Make command names plural.
8623 Update help strings.
8624
766062f6
MS
86252011-02-27 Michael Snyder <msnyder@vmware.com>
8626
8627 * darwin-nat-info.c: Fix comment typo.
8628 * dwarf2expr.h: Ditto.
8629 * fbsd-nat.c: Ditto.
8630 * fbsd-nat.h: Ditto.
8631 * frame-unwind.h: Ditto.
8632 * frame.h: Ditto.
8633 * hppa-hpux-tdep.c: Ditto.
8634 * i386-linux-nat.c: Ditto.
8635 * linux-nat.c: Ditto.
8636 * nbsd-nat.c: Ditto.
8637 * nbsd-nat.h: Ditto.
8638 * ppc-linux-tdep.c: Ditto.
8639 * serial.c: Ditto.
8640 * ui-file.h: Ditto.
8641 * tui/tui-winsource.c: Ditto.
8642
f2c4ead5
MS
86432011-02-26 Michael Snyder <msnyder@vmware.com>
8644
86b887df
MS
8645 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8646
66fd3b1e
MS
8647 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8648
8c814cdd
MS
8649 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8650 with a local variable of the same name.
8651
6d5e094a 8652 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8653 param with a local variable of the same name.
6d5e094a 8654 (i387_supply_xsave): Ditto.
e5b3d7d6 8655
5eee517d
MS
8656 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8657 that it does not shadow a function parameter.
8658
8fbf6b93
MS
8659 * i386-nat.c (i386_length_and_rw_bits): Document that case
8660 statement is meant to fall through.
8661
cb969d61
MS
8662 * expprint.c (dump_subexp_body_standard): Document that case
8663 statement is meant to fall through.
8664
f2c4ead5
MS
8665 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8666 dead if statement. Condition can't be false.
8667
b021a221
MS
86682011-02-25 Michael Snyder <msnyder@vmware.com>
8669
8670 * arm-tdep.c: Fix typos in comments.
8671 * bsd-uthread.c: Ditto.
8672 * completer.c: Ditto.
8673 * corelow.c: Ditto.
8674 * cp-namespace.c: Ditto.
8675 * cp-support.c: Ditto.
8676 * cris-tdep.c: Ditto.
8677 * dbxread.c: Ditto.
8678 * dwarf2read.c: Ditto.
8679 * frame.h: Ditto.
8680 * gdbtypes.h: Ditto.
8681 * inferior.h: Ditto.
8682 * mdebugread.c: Ditto.
8683 * mips-tdep.c: Ditto.
8684 * ppc-linux-nat.c: Ditto.
8685 * ppc-linux-tdep.c: Ditto.
8686 * printcmd.c: Ditto.
8687 * sol-thread.c: Ditto.
8688 * solib-frv.c: Ditto.
8689 * solist.h: Ditto.
8690 * sparc64-tdep.c: Ditto.
8691 * spu-tdep.c: Ditto.
8692 * stabsread.c: Ditto.
8693 * symfile.c: Ditto.
8694 * valops.c: Ditto.
8695 * varobj.c: Ditto.
8696 * vax-nat.c: Ditto.
8697 * python/py-block.c: Ditto.
8698 * python/py-symbol.c: Ditto.
8699 * python/py-symtab.c: Ditto.
8700 * python/py-value.c: Ditto.
8701 * tui/tui-win.c: Ditto.
8702
c82c0b55
MS
87032011-02-25 Michael Snyder <msnyder@vmware.com>
8704
8705 * inferior.c (print_inferior): Accept a string instead of an int
8706 for requested_inferiors, and use get_number_or_range to parse it.
8707 (info_inferiors_command): Pass args string to print_inferior.
8708 (initialize_inferiors): Change help string for info inferiors.
8709 * inferior.h (print_inferior): Export prototype change.
8710
ee00cd23
TT
87112011-02-25 Tom Tromey <tromey@redhat.com>
8712
8713 * common/ax.def (invalid2): Set to 0x31.
8714
0502ed8c
JK
87152011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8716
8717 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8718 L and plongest.
8719 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8720 use L and plongest.
8721 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8722
2c9de912
MS
87232011-02-24 Michael Snyder <msnyder@vmware.com>
8724
8725 * Makefile.in (clean): Make clean should remove generated files
8726 observer.h and observer.inc.
8727
a04b0428
JB
87282011-02-24 Joel Brobecker <brobecker@adacore.com>
8729
8730 Revert the following patch (not approved yet):
8731 2011-02-21 Hui Zhu <teawater@gmail.com>
8732 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8733 * ax-gdb.c (gen_printf_expr_callback): New function.
8734 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8735 * ax-general.c (ax_memcpy): New function.
8736 (ax_print): Handle "printf".
8737 (ax_reqs): Ditto.
8738 * ax.h (ax_memcpy): Forward declare.
8739 * common/ax.def (invalid2): Removed.
8740 (printf): New entry.
8741 * printcmd.c (printcmd.h): New include.
8742 (string_printf): New function.
8743 (ui_printf): Removed.
8744 (printf_command): Remove static. Call string_printf.
8745 (eval_command): Call string_printf.
8746 * printcmd.h: New file.
8747 * tracepoint.c (validate_actionline,
8748 encode_actions_1): handle printf_command.
8749
2b52013f
TT
87502011-02-23 Tom Tromey <tromey@redhat.com>
8751
8752 * ax-general.c (ax_pick): Add missing newline.
8753
e5a67952
MS
87542011-02-23 Michael Snyder <msnyder@vmware.com>
8755
8756 * breakpoint.c (breakpoint_1): Change first argument from an int
8757 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8758 breakpoints rather than just one. Use new function
e5a67952
MS
8759 'number_is_in_list' to implement.
8760 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8761 (watchpoints_info): Ditto.
8762 (tracepoints_info): Ditto.
8763 (maintenance_info_breakpoints): Ditto.
8764 (_initialize_breakpoint): Update help strings to reflect the fact
8765 that these functions can now take more than one argument.
8766 * cli/cli-utils.c (number_is_in_list): New function.
8767 * cli/cli-utils.h (number_is_in_list): Export.
8768
87692011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8770
8771 * memattr.c (mem_enable_command): Use get_number_or_range.
8772 (mem_disable_command): Ditto.
8773 (mem_delete_command): Ditto.
8774 (_initialize_mem): Tweak usage message to reflect multiple
8775 arguments.
8776
6e6fbe60
DE
87772011-02-22 Doug Evans <dje@google.com>
8778
8779 Add gdb.lookup_global_symbol python function.
8780 * NEWS: Add entry.
8781 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8782 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8783 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8784
79b97fa8
TT
87852011-02-22 Tom Tromey <tromey@redhat.com>
8786
8787 * language.c (language_class_name_from_physname): Rename
8788 'curr_language' argument to 'lang'; use in body.
8789
298f437a
MS
87902011-02-22 Michael Snyder <msnyder@vmware.com>
8791
8792 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8793
b7ea3126
PA
87942011-02-22 Pedro Alves <pedro@codesourcery.com>
8795
8796 * frame-unwind.h: Fix comment to mention the this frame, not the
8797 next.
8798
58ee6d60
TT
87992011-02-22 Tom Tromey <tromey@redhat.com>
8800
8801 * symfile.c (auto_solib_limit): Remove.
8802 * symfile.h (auto_solib_limit): Remove.
8803
36238dbc
JB
88042011-02-22 Joel Brobecker <brobecker@adacore.com>
8805
8806 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8807
aea5b279
MS
88082011-02-21 Michael Snyder <msnyder@vmware.com>
8809
8810 * gdbthread.h (print_thread_info): Change prototype.
8811 * thread.c (print_thread_info): Accept char* instead of int for
8812 requested_threads argument. Use new function number_is_in_list
8813 to determine which threads to list.
8814 (info_threads_command): Pass char* to print_thread_info.
8815 * cli/cli-utils.c (number_is_in_list): New function.
8816 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8817 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8818 print_thread_info.
8819 (print_one_inferior): Ditto.
8820 (mi_cmd_list_thread_groups): Ditto.
8821
8caa75ee
JK
88222011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8823
8824 * common/Makefile.in (CFLAGS): New.
8825 (COMPILE): Add $(CFLAGS).
8826
ea666128
TT
88272011-02-21 Tom Tromey <tromey@redhat.com>
8828
8829 * breakpoint.c (catch_syscall_command_1): Fix typo.
8830
e9cafbcc
TT
88312011-02-21 Tom Tromey <tromey@redhat.com>
8832
8833 * reverse.c: Include cli-utils.h.
8834 * printcmd.c: Include cli-utils.h.
8835 (string_printf): Use skip_spaces.
8836 * cli/cli-utils.h: New file.
8837 * cli/cli-utils.c: New file.
8838 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8839 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8840 * breakpoint.h (get_number, get_number_or_range): Move to
8841 cli-utils.h.
8842 * breakpoint.c: Include cli-utils.h.
8843 (get_number_trailer, get_number, get_number_or_range)
8844 (ep_skip_leading_whitespace): Move to cli-utils.c.
8845 (create_breakpoint_sal, find_condition_and_thread)
8846 (decode_static_tracepoint_spec, watch_command_1)
8847 (watch_maybe_just_location, ep_parse_optional_if_clause)
8848 (catch_fork_command_1, catch_exec_command_1)
8849 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8850 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8851 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8852 (HFILES_NO_SRCDIR): Add cli-utils.h.
8853 (cli-utils.o): New target.
8854
f67fd822
PM
88552011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8856
8857 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8858 before calling discard_all_inferiors.
8859
c9def01d
UW
88602011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8861
8862 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8863 (struct builtin_opencl_type): Remove.
8864 (builtin_opencl_type): Change return type to "struct type **".
8865 (lookup_opencl_vector_type): Update caller.
8866 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8867 (build_opencl_types): Install plain array of "struct type *"
8868 instead of "struct builtin_opencl_type".
8869
e3039479
UW
88702011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8871 Ulrich Weigand <uweigand@de.ibm.com>
8872
8873 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8874 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8875 (struct arm_linux_hwbp_cap): New type.
8876 (arm_linux_get_hwbp_cap): New function.
8877 (arm_linux_get_hw_breakpoint_count): Likewise.
8878 (arm_linux_get_hw_watchpoint_count): Likewise.
8879 (arm_linux_can_use_hw_breakpoint): Likewise.
8880 (arm_hwbp_type): New type.
8881 (arm_hwbp_control_t): Likewise.
8882 (struct arm_linux_hw_breakpoint): Likewise.
8883 (struct arm_linux_thread_points): Likewise.
8884 (arm_threads): New global variable.
8885 (arm_linux_find_breakpoints_by_tid): New function.
8886 (arm_hwbp_control_initialize): Likewise.
8887 (arm_hwbp_control_is_enabled): Likewise.
8888 (arm_hwbp_control_disable): Likewise.
8889 (arm_linux_hw_breakpoint_initialize): Likewise.
8890 (arm_linux_get_hwbp_type): Likewise.
8891 (arm_linux_hw_watchpoint_initialize): Likewise.
8892 (arm_linux_hw_breakpoint_equal): Likewise.
8893 (arm_linux_insert_hw_breakpoint1): Likewise.
8894 (arm_linux_remove_hw_breakpoint1): Likewise.
8895 (arm_linux_insert_hw_breakpoint): Likewise.
8896 (arm_linux_remove_hw_breakpoint): Likewise.
8897 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8898 (arm_linux_insert_watchpoint): Likewise.
8899 (arm_linux_remove_watchpoint): Likewise.
8900 (arm_linux_stopped_data_address): Likewise.
8901 (arm_linux_stopped_by_watchpoint): Likewise.
8902 (arm_linux_watchpoint_addr_within_range): Likewise.
8903 (arm_linux_new_thread): Likewise.
8904 (arm_linux_thread_exit): Likewise.
8905 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8906 related target callbacks. Register arm_linux_new_thread and
8907 arm_linux_thread_exit.
8908 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8909 * arm-tdep.c (arm_pc_is_thumb): Make global.
8910 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8911
b5db5dfc
UW
89122011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8913
8914 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8915 per-frame locations while within a function epilogue.
8916
e25b2cfa
PM
89172011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8918
8919 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8920 to GNU coding standards.
8921
4af53f97
PM
89222011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8923
8924 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8925 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8926 (ser_windows_close): Only call CancelIo if function exists.
8927 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8928 to check for existence of CancelIo function in kernel32 DLL.
8929
d0e92d82
HZ
89302011-02-21 Hui Zhu <teawater@gmail.com>
8931
8932 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8933 * ax-gdb.c (gen_printf_expr_callback): New function.
8934 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8935 * ax-general.c (ax_memcpy): New function.
8936 (ax_print): Handle "printf".
8937 (ax_reqs): Ditto.
8938 * ax.h (ax_memcpy): Forward declare.
8939 * common/ax.def (invalid2): Removed.
8940 (printf): New entry.
8941 * printcmd.c (printcmd.h): New include.
8942 (string_printf): New function.
8943 (ui_printf): Removed.
8944 (printf_command): Remove static. Call string_printf.
8945 (eval_command): Call string_printf.
8946 * printcmd.h: New file.
8947 * tracepoint.c (validate_actionline,
8948 encode_actions_1): handle printf_command.
8949
7d357efd
MS
89502011-02-19 Michael Snyder <msnyder@vmware.com>
8951
8952 * reverse.c (delete_one_bookmark): Argument is now bookmark
8953 id rather than pointer to bookmark struct.
8954 (delete_bookmark_command): Use get_number_or_range.
8955 (goto_bookmark_command): Parse with get_number instead of strtoul.
8956 (bookmark_1): New function. Print info for one bookmark.
8957 (bookmarks_info): Use get_number_or_range and bookmark_1.
8958
7a45ebd7
MS
89592011-02-18 Michael Snyder <msnyder@vmware.com>
8960
f2eb0bc8 8961 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8962 get_number_or_range.
65ebfb52 8963 (thread_apply_command): Ditto.
7a45ebd7 8964
94d5e490
TT
89652011-02-18 Tom Tromey <tromey@redhat.com>
8966
8967 * common/ax.def: New file.
8968 * ax.h (enum agent_op): Use ax.def.
8969 * ax-general.c (aop_map): Use ax.def.
8970
c7f96d2b
TT
89712011-02-18 Tom Tromey <tromey@redhat.com>
8972
8973 * ax-general.c (aop_map): Add pick and rot.
8974 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8975 <DW_OP_rot>: Implement.
8976 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8977 (ax_pick): Declare.
8978 * ax-general.c (ax_pick): New function.
8979
66694b75
TT
89802011-02-18 Tom Tromey <tromey@redhat.com>
8981
8982 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8983
eeaafae2
JK
89842011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8985 Tom Tromey <tromey@redhat.com>
8986
8987 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8988 make_symbol_overload_list_block with NULL BLOCK.
8989 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8990
3c3fe74c
PA
89912011-02-18 Pedro Alves <pedro@codesourcery.com>
8992
8993 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8994 * breakpoint.h (get_number_or_range): Declare.
8995 * printcmd.c (ALL_DISPLAYS): Declare.
8996 (delete_display): Reimplement taking a display pointer.
8997 (undisplay_command): Accept a range of displays to delete, using
8998 get_number_or_range.
8999
13163d80
PM
90002011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9001
9002 * c-valprint.c (c_val_print): Add embedded_offset to address
9003 for arrays of unspecified length.
9004 * p-valprint.c (pascal_val_print): Likewise.
9005
b434a28f
YQ
90062011-02-18 Yao Qi <yao@codesourcery.com>
9007
9008 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9009 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9010 (thumb_process_displaced_insn): New.
9011 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9012 call to arm_process_displaced_insn.
9013 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9014
9f6f94ff
TT
90152011-02-17 Tom Tromey <tromey@redhat.com>
9016
9017 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9018 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9019 compile_dwarf_to_ax. No longer static. Call
9020 dwarf2_compile_cfa_to_ax.
9021 (locexpr_tracepoint_var_ref): Update.
9022 (loclist_tracepoint_var_ref): Update.
9023 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9024 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9025 argument; add 'gdbarch' and 'pc'.
9026 (dwarf2_compile_cfa_to_ax): New function.
9027 (dwarf2_frame_cache): Update.
9028
e67ad678
JB
90292011-02-17 Joel Brobecker <brobecker@adacore.com>
9030
9031 * ada-lang.c (ada_type_of_array): Fix the size of the array
9032 in the case of an unconstrained packed array.
9033
946ebb0d
YQ
90342011-02-17 Yao Qi <yao@codesourcery.com>
9035
9036 * common/Makefile.in: Add more targets for make.
9037
1ba1b353
TT
90382011-02-16 Tom Tromey <tromey@redhat.com>
9039
9040 * dwarf2loc.c (unimplemented): Fix typo.
9041
b1bfef65
TT
90422011-02-16 Tom Tromey <tromey@redhat.com>
9043
9044 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9045 (compile_dwarf_to_ax) <default>: Use unimplemented.
9046 <DW_OP_deref>: Update.
9047 (disassemble_dwarf_expression): Update.
9048 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9049 (decode_locdesc): Update.
9050 * dwarf2expr.h (dwarf_stack_op_name): Update.
9051
5f1e6f19
TT
90522011-02-16 Tom Tromey <tromey@redhat.com>
9053
9054 * ax.h (struct aop_map) <name>: Now const.
9055
a0c78a73
PA
90562011-02-16 Tom Tromey <tromey@redhat.com>
9057
9058 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9059 than axs_rvalue.
9060
946ebb0d 90612011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9062
9063 * infrun.c (get_displaced_step_closure_by_addr): New.
9064 * inferior.h: Declare it.
9065 * arm-tdep.c: (arm_pc_is_thumb): Call
9066 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9067 returns non-NULL.
9068
08807d5a
PA
90692011-02-16 Pedro Alves <pedro@codesourcery.com>
9070 Jan Kratochvil <jan.kratochvil@redhat.com>
9071
9072 gdb/
9073 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9074
29976f3f
PA
90752011-02-16 Pedro Alves <pedro@codesourcery.com>
9076 Jan Kratochvil <jan.kratochvil@redhat.com>
9077
9078 * value.c (value_contents_copy_raw): Extend describing comment.
9079 Assert that the destination contents we're overwriting are wholly
9080 available.
fb68ae73 9081 (value_contents_copy): Extend describing comment.
29976f3f 9082
cd24cfaa
PA
90832011-02-16 Pedro Alves <pedro@codesourcery.com>
9084 Jan Kratochvil <jan.kratochvil@redhat.com>
9085
9086 * value.c (value_available_contents_eq): Remove redundant local
9087 variables. Fix available contents comparision.
9088 * value.h (value_available_contents_eq): Extend describing
9089 comment.
9090
60bbf338
YQ
90912011-02-16 Yao Qi <yao@codesourcery.com>
9092
9093 * thread.c (info_threads_command): Add missing i18n markup and remove
9094 trailing newline.
9095
17450429
PP
90962011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9097
9098 * breakpoint.c (longjmp_names): New variable.
9099 (struct breakpoint_objfile_data): New type.
9100 (breakpoint_objfile_key): New variable.
9101 (msym_not_found): New variable.
9102 (msym_not_found_p): New predicate.
9103 (get_breakpoint_objfile_data): New function.
9104 (create_overlay_event_breakpoint): Check per-objfile cache for
9105 symbols first.
9106 (create_longjmp_master_breakpoint): Likewise.
9107 (create_std_terminate_master_breakpoint): Likewise.
9108 (create_exception_master_breakpoint): Likewise.
9109 (_initialize_breakpoint): Register per-objfile data key.
9110
af02033e
PP
91112011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9112
9113 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9114 parameter value.
9115 (create_longjmp_master_breakpoint): Loop over longjmp names.
9116 (create_std_terminate_master_breakpoint): Const-propagate parameter
9117 value.
9118 (update_breakpoints_after_exec): Adjust.
9119 (breakpoint_re_set): Adjust.
9120
60f98dde
MS
91212011-02-15 Michael Snyder <msnyder@vmware.com>
9122
cdf99611
MS
9123 * thread.c (info_threads_command): Process arg as thread id,
9124 or list of thread ids.
9125 (thread_find_command): New command.
9126 (_initialize_thread): Document argument for info threads.
9127 Document 'thread find' command.
9128 * NEWS: Document new command "thread find".
60f98dde 9129
0feedb2c
JK
91302011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9131
9132 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9133 * aclocal.m4: Regenerated with aclocal-1.11.1.
9134 * common/configure: Regenerate with autoconf-2.64.
9135
648cd113
KW
91362011-02-15 Ken Werner <ken.werner@de.ibm.com>
9137
9138 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9139 bool data type to a size of one byte.
9140
5657161f
PA
91412011-02-15 Pedro Alves <pedro@codesourcery.com>
9142 Jan Kratochvil <jan.kratochvil@redhat.com>
9143
9144 * target.c (memory_xfer_live_readonly_partial): Document where to
9145 look for interface description.
9146
494e194e
YQ
91472011-02-15 Yao Qi <yao@codesourcery.com>
9148
9149 PR tdep/12352
9150 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9151 order to store PC value on stack instead of text section.
9152
d9492458
TJB
91532011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9154
9155 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9156 the EFP register set size.
9157 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9158 data from the VMX register.
9159 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9160 and write data from/to the VMX register.
9161
cdf99611
MS
91622011-02-14 Michael Snyder <msnyder@vmware.com>
9163
9164 * command.h (enum command_class): New class 'no_set_class', for
9165 "show" commands without a corresponding "set" command.
9166 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9167 * copying.c (_initialize_copying): Ditto for "show copying" and
9168 "show warranty".
9169 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9170 "show version".
9171 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9172 which there is no corresponding "set" command (eg. "show copying").
9173
424447ee
PA
91742011-02-14 Pedro Alves <pedro@codesourcery.com>
9175 Jan Kratochvil <jan.kratochvil@redhat.com>
9176
9177 * exec.c (section_table_available_memory): Change `len' parameter
9178 type to ULONGEST.
9179 * exec.h (section_table_available_memory): Ditto.
9180 * value.h (read_value_memory): Rename the `offset' parameter to
9181 `embedded_offset'.
9182
c0f61f9c 91832011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9184 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9185
9186 * memrange.c (compare_mem_ranges): Mention sort order in
9187 describing comment.
9188 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9189 * tracepoint.c (traceframe_available_memory): Extend comment to
9190 mention what happens to RESULT when the target does not support
9191 the query.
9192
6bfc80c7
PA
91932011-02-14 Pedro Alves <pedro@codesourcery.com>
9194 Jan Kratochvil <jan.kratochvil@redhat.com>
9195
9196 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9197 range.
9198
e7303042
PA
91992011-02-14 Pedro Alves <pedro@codesourcery.com>
9200
9201 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9202 No longer handle NULL values.
9203
8af8e3bc
PA
92042011-02-14 Pedro Alves <pedro@codesourcery.com>
9205
9206 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9207 * value.c: Include "exceptions.h".
9208 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9209 generic error.
9210 * cp-abi.c: Include gdb_assert.h.
9211 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9212 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9213 errors.
9214 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9215 parameters. No longer returns -1 on error.
9216 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9217 `val' parameters.
9218 * cp-valprint.c: Include exceptions.h.
9219 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9220 the baseclass_offset. Handle unavailable base classes. Use
9221 val_print_invalid_address.
9222 * p-valprint.c: Include exceptions.h.
9223 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9224 when fetching the baseclass_offset. No longer expect
9225 baseclass_offset returning -1. Handle unavailable base classes.
9226 Use val_print_invalid_address.
9227 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9228 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9229 `embedded_offset' and `val' parameters. Adjust.
9230 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9231 parameter, and change its type to gdb_byte pointer. Add
9232 `embedded_offset' and `val' parameters. Adjust. No longer expect
9233 baseclass_offset returning -1.
9234 (value_dynamic_cast): Use value_contents_for_printing rather than
9235 value_contents. Adjust.
9236 (search_struct_field): No longer expect baseclass_offset returning
9237 -1.
9238 (search_struct_method): If reading memory from the target is
9239 necessary, wrap it in a new value to pass to baseclass_offset. No
9240 longer expect baseclass_offset returning -1.
9241 (find_method_list): No longer expect baseclass_offset returning
9242 -1. Use value_contents_for_printing rather than value_contents.
9243 * valprint.c (val_print_invalid_address): New function.
9244 * valprint.h (val_print_invalid_address): Declare.
9245 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9246 and `val' parameters. No longer expect baseclass_offset returning
9247 -1. Adjust.
9248 * gnu-v2-abi.c: Include "exceptions.h".
9249 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9250 parameters. Handle unavailable memory. Recurse through
9251 gnuv2_baseclass_offset directly, rather than through
9252 baseclass_offset. No longer returns -1 on not found, instead
9253 throw an error.
9254 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9255 `val' parameters. Adjust.
9256
1b28d0b3
PA
92572011-02-14 Pedro Alves <pedro@codesourcery.com>
9258
9259 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9260 almost but not quite adjacent.
9261
ec0a52e1
PA
92622011-02-14 Pedro Alves <pedro@codesourcery.com>
9263
9264 * value.h (value_entirely_available): Declare.
9265 * value.c (value_entirely_available): New function.
9266 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9267 real type if the pointer is unavailable.
9268
24e6bcee
PA
92692011-02-14 Pedro Alves <pedro@codesourcery.com>
9270
9271 * valops.c (value_repeat): Use read_value_memory instead of
9272 read_memory.
9273
39d37385
PA
92742011-02-14 Pedro Alves <pedro@codesourcery.com>
9275
9276 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9277 * value.c (value_contents_copy_raw, value_contents_copy): New
9278 functions.
9279 (value_primitive_field): Use value_contents_copy_raw instead of
9280 memcpy.
9281 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9282 memcpy.
9283 (value_array, value_slice): Ditto.
9284 * valarith.c (value_subscripted_rvalue): Use
9285 value_contents_copy_raw instead of memcpy.
9286
a3d34bf4
PA
92872011-02-14 Pedro Alves <pedro@codesourcery.com>
9288
9289 <unavailable> references.
9290
9291 * valops.c (get_value_at): Use value_from_contents_and_address,
9292 avoiding read_memory.
9293
9fc6d940
PA
92942011-02-14 Pedro Alves <pedro@codesourcery.com>
9295
9296 * c-valprint.c (c_val_print): Print a string with unavailable
9297 contents as an array.
9298
5467c6c8
PA
92992011-02-14 Pedro Alves <pedro@codesourcery.com>
9300
9301 * value.h (unpack_bits_as_long): Delete declaration.
9302 (unpack_value_bits_as_long): Declare.
9303 (unpack_value_field_as_long): Declare.
9304 (value_field_bitfield): Declare.
9305 * value.c (unpack_bits_as_long): Rename to...
9306 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9307 value parameters. Return the extracted result in a new output
9308 parameter. If the value contents are unavailable, return false,
9309 otherwise return true.
9310 (unpack_value_bits_as_long): New.
9311 (unpack_field_as_long): Rename to...
9312 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9313 Add embedded_offset and value parameters. Return the extracted
9314 result in a new output parameter. If the value contents are
9315 unavailable, return false, otherwise return true.
9316 (unpack_value_field_as_long): New.
9317 (unpack_field_as_long_1): New.
9318 (unpack_field_as_long): Reimplement as wrapper around
9319 unpack_value_field_as_long_1.
9320 (value_field_bitfield): New function.
9321 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9322 unpack_value_bits_as_long. Mark the value as unavailable, if it
9323 is unavailable.
9324 * jv-valprint.c (java_print_value_fields): Use
9325 value_field_bitfield.
9326 * p-valprint.c (pascal_object_print_value_fields): Use
9327 value_field_bitfield.
9328 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9329
3158c6ed
PA
93302011-02-14 Pedro Alves <pedro@codesourcery.com>
9331
9332 * value.c (get_internalvar_integer): Also return the int value of
9333 TYPE_CODE_INT INTERNALVAR_VALUE values.
9334 (set_internalvar): Don't special case TYPE_CODE_INT.
9335
9fbdca0d
PA
93362011-02-14 Pedro Alves <pedro@codesourcery.com>
9337
9338 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9339 INTERNALVAR_POINTER.
9340 <pointer>: Delete.
9341 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9342 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9343 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9344
c8c1c22f
PA
93452011-02-14 Pedro Alves <pedro@codesourcery.com>
9346
9347 * value.h (value_available_contents_eq): Declare.
9348 * value.c (find_first_range_overlap): New function.
9349 (value_available_contents_eq): New function.
9350 * valprint.c (val_print_array_elements): Use
9351 value_available_contents_eq.
9352 * ada-valprint.c (val_print_packed_array_elements): Use
9353 value_available_contents_eq.
9354 * jv-valprint.c (java_value_print): Use
9355 value_available_contents_eq.
9356
e6e4e701
PA
93572011-02-14 Pedro Alves <pedro@codesourcery.com>
9358
9359 * target.c (target_read_live_memory): New function.
9360 (memory_xfer_live_readonly_partial): New.
9361 (memory_xfer_partial): If reading from a traceframe, fallback to
9362 reading unavailable read-only memory from read-only regions of
9363 live target memory.
9364 * tracepoint.c (disconnect_tracing): Adjust.
9365 (set_current_traceframe): New, factored out from
9366 set_traceframe_number.
9367 (set_traceframe_number): Reimplement to only change the traceframe
9368 number on the GDB side.
9369 (do_restore_current_traceframe_cleanup): Adjust.
9370 (make_cleanup_restore_traceframe_number): New.
9371 (cur_traceframe_number): New global.
9372 (tfile_open): Set cur_traceframe_number to no traceframe.
9373 (set_tfile_traceframe): New function.
9374 (tfile_trace_find): If looking up a traceframe using any method
9375 other than by number, make sure the current tfile traceframe
9376 matches gdb's current traceframe. Update the current tfile
9377 traceframe if the lookup succeeded.
9378 (tfile_fetch_registers, tfile_xfer_partial)
9379 (tfile_get_trace_state_variable_value): Make sure the remote
9380 traceframe matches gdb's current traceframe.
9381 * remote.c (remote_traceframe_number): New global.
9382 (remote_open_1): Set it to -1.
9383 (set_remote_traceframe): New function.
9384 (remote_fetch_registers, remote_store_registers)
9385 (remote_xfer_memory, remote_xfer_partial)
9386 (remote_get_trace_state_variable_value): Make sure the remote
9387 traceframe matches gdb's current traceframe.
9388 (remote_trace_find): If looking up a traceframe using any method
9389 other than by number, make sure the current remote traceframe
9390 matches gdb's current traceframe. Update the current remote
9391 traceframe if the lookup succeeded.
9392 * infrun.c (fetch_inferior_event): Adjust.
9393 * tracepoint.h (set_current_traceframe): Declare.
9394 (get_traceframe_number, set_traceframe_number): Add describing
9395 comments.
9396
e6ca34fc
PA
93972011-02-14 Pedro Alves <pedro@codesourcery.com>
9398
9399 Mark pieces of values as unavailable if the corresponding memory
9400 is unavailable.
9401
9402 * valops.c: Include tracepoint.h.
9403 (value_fetch_lazy): Use read_value_memory.
9404 (read_value_memory): New.
9405 * value.h (read_value_memory): Declare.
9406 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9407 * exec.c (section_table_available_memory): New function.
9408 * exec.h (section_table_available_memory): Declare.
9409
2a7498d8
PA
94102011-02-14 Pedro Alves <pedro@codesourcery.com>
9411
9412 * Makefile.in (SFILES): Add memrange.c.
9413 (HFILES_NO_SRCDIR): Add memrange.h.
9414 (COMMON_OBS): Add memrange.o.
9415 * memrange.c: New file.
9416 * memrange.h: New file.
9417 * tracepoint.c: Include memrange.h.
9418 (struct mem_range): Delete.
9419 (mem_range_s): Delete.
9420 (traceframe_available_memory): New function.
9421 * tracepoint.h (traceframe_available_memory): Declare.
9422
b3b9301e
PA
94232011-02-14 Pedro Alves <pedro@codesourcery.com>
9424
9425 * target.h (struct traceframe_info): Forward declare.
9426 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9427 (struct target_ops) <to_traceframe_info>: New field.
9428 (target_traceframe_info): New.
9429 * target.c (update_current_target): Inherit and default
9430 to_traceframe_info.
9431 * remote.c (PACKET_qXfer_traceframe_info): New.
9432 (remote_protocol_features): Register qXfer:traceframe-info:read.
9433 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9434 (remote_traceframe_info): New.
9435 (init_remote_ops): Install it.
9436 (_initialize_remote): Install "set/show remote traceframe-info"
9437 commands.
9438 * tracepoint.h (parse_traceframe_info): Declare.
9439 * tracepoint.c (struct mem_range): New.
9440 (mem_range_s): New typedef.
9441 (struct traceframe_info): New.
9442 (traceframe_info): New global.
9443 (free_traceframe_info): New function.
9444 (clear_traceframe_info): New function.
9445 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9446 info.
9447 (build_traceframe_info): New function.
9448 (tfile_traceframe_info): New function.
9449 (init_tfile_ops): Install tfile_traceframe_info.
9450 (traceframe_info_start_memory, free_result): New functions.
9451 (memory_attributes, traceframe_info_elements): New globals.
9452 (parse_traceframe_info, get_traceframe_info): New functions.
9453 * features/traceframe-info.dtd: New file.
9454 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9455
4e07d55f
PA
94562011-02-14 Pedro Alves <pedro@codesourcery.com>
9457
9458 Base support for <unavailable> value contents.
9459
4e07d55f
PA
9460 * value.h (value_bytes_available): Declare.
9461 (mark_value_bytes_unavailable): Declare.
9462 * value.c (struct range): New struct.
9463 (range_s): New typedef.
9464 (ranges_overlap): New function.
9465 (range_lessthan): New function.
9466 (ranges_contain_p): New function.
9467 (struct value) <unavailable>: New field.
9468 (value_bytes_available): New function.
9469 (mark_value_bytes_unavailable): New function.
9470 (require_not_optimized_out): Constify parameter.
9471 (require_available): New function.
9472 (value_contents_all, value_contents): Require all bytes be
9473 available.
9474 (value_free): Free `unavailable'.
9475 (value_copy): Copy `unavailable'.
9476 * valprint.h (val_print_unavailable): Declare.
9477 * valprint.c (valprint_check_validity): Rename `offset' parameter
9478 to `embedded_offset'. If printing a scalar, check whether the
9479 value chunk is available.
9480 (val_print_unavailable): New.
9481 (val_print_scalar_formatted): Check whether the value is
9482 available.
9483 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9484 pretty-printing unavailable values.
9485
bc9a5551
JK
94862011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9487
9488 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9489 * c-typeprint.c (c_type_print_args): Update the function comment. New
9490 variable param_type, initialize it. Remove const/volatile qualifiers
9491 for language_cplus and !show_artificial. Use param_type.
9492
93b55aa1
JK
94932011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9494
9495 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9496 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9497 * symtab.h (struct symtab) <next>: Comment extension.
9498
181d9476
YQ
94992011-02-12 Yao Qi <yao@codesourcery.com>
9500
9501 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9502
b708a5c7
JK
95032011-02-11 Yao Qi <yao@codesourcery.com>
9504
9505 * common/Makefile.in: Add copyright header.
9506
c5187ac6
PA
95072011-02-11 Pedro Alves <pedro@codesourcery.com>
9508
9509 * infrun.c (proceed): Move switching out and in of tfind mode from
9510 here ...
9511 (fetch_inferior_event): ... to here.
9512
4f3e6fb7
YQ
95132011-02-11 Yao Qi <yao@codesourcery.com>
9514
9515 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9516 libcommon.a.
9517 * configure.ac: Add common to sub dir.
9518 * configure: Regenerate.
9519
b708a5c7
JK
95202011-02-11 Yao Qi <yao@codesourcery.com>
9521
9522 Build libcommon.a.
9523
9524 * common/Makefile.in: New.
9525 * common/configure.ac: New.
9526 * common/aclocal.m4: New.
9527 * common/configure: Generate.
9528
2287cc7e
PA
95292011-02-10 Pedro Alves <pedro@codesourcery.com>
9530
9531 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9532 side of the parenthesis.
9533
9534 Merge from GCC:
9535 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9536 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9537
fd62cb89
MS
95382011-02-08 Michael Snyder <msnyder@vmware.com>
9539
9540 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9541
56d2815c
JK
95422011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9543
9544 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9545 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9546 psubd and paddd.
9547
4f7d61a8
JK
95482011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9549
9550 PR 12361.
9551 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9552 phsubsw.
9553 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9554 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9555
54fcddd0
UW
95562011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9557
9558 * dwarf2read.c (read_subroutine_type): Set special calling
9559 convention flag for functions compiled by IBM XL C for OpenCL.
9560 * ppc-sysv-tdep.c: Include "dwarf2.h"
9561 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9562 calling convention.
9563 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9564 IBM OpenCL vector types calling convention.
9565 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9566 (ppc_sysv_abi_broken_return_value): Likewise.
9567 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9568 types calling convention.
9569 (ppc64_sysv_abi_return_value): Likewise.
9570 * spu-tdep.c: Include "dwarf2.h"
9571 (spu_return_value): Implement IBM OpenCL vector types calling
9572 convention.
9573
d6dafb7c
UW
95742011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9575
9576 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9577 correct ABI for AltiVec vector arguments.
9578
32b72a42
PA
95792011-02-07 Pedro Alves <pedro@codesourcery.com>
9580
9581 * valprint.c (val_print): Extend comment.
9582 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9583 interface explanation to val_print.
9584 (ada_val_print_array): Adjust comment to current interface.
9585 (print_field_values): Adjust comment to current interface.
9586 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9587 explanation to val_print.
9588 * f-valprint.c (f_val_print): Ditto.
9589 * jv-valprint.c (java_val_print): Ditto.
9590 * m2-valprint.c (m2_val_print): Ditto.
9591 * p-valprint.c (pascal_val_print): Ditto.
9592
9998af43
TJB
95932011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9594
9595 * breakpoint.c (parse_breakpoint_sals): Fix description.
9596
505500db 95972011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9598 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9599
9600 * python/py-inferior.c (python_on_normal_stop): New function.
9601 (python_on_resume): New function.
9602 (python_inferior_exit): New function.
9603 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9604 inferior_exit observers.
9605 * python/py-evtregistry.c: New file.
9606 * python/py-threadevent.c : New file.
9607 * python/py-event.c: New file.
9608 * python/py-evts.c: New file.
9609 * python/py-continueevent.c: New file.
9610 * python/py-bpevent.c: New file.
9611 * python/py-signalevent.c: New file.
9612 * python/py-exetiedevent.c: New file.
9613 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9614 Move struct breakpoint_object from here...
9615 * python/python-internal.h: ... to here.
9616 * python/py-event.h: New file.
9617 * python/py-events.h: New file.
9618 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9619 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9620 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9621 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9622 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9623 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9624 Add build rules for all the above.
9625
9e0ac564
TT
96262011-02-04 Tom Tromey <tromey@redhat.com>
9627
9628 * dwarf2read.c (dwarf2_section_empty_p): New function.
9629 (dwarf2_read_section): Use dwarf2_section_empty_p.
9630 (dwarf2_section_size): New function.
9631 (dwarf2_get_section_info): Unconditionally read section.
9632 (dwarf2_read_index): Use dwarf2_section_empty_p.
9633 (partial_read_comp_unit_head): Use dwarf2_section_size.
9634 (dwarf2_symbol_mark_computed): Likewise.
9635
eee5b35e
DD
96362011-02-04 David Daney <ddaney@caviumnetworks.com>
9637
9638 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9639
385203ed
DD
96402011-02-04 David Daney <ddaney@caviumnetworks.com>
9641
9642 * mips-linux-tdep.c: Include xml-syscall.h.
9643 (mips_linux_get_syscall_number): New function.
9644 (mips_linux_init_abi): Add calls to
9645 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9646 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9647 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9648 * syscalls/mips-n32-linux.xml: New file.
9649 * syscalls/mips-n64-linux.xml: New file.
9650 * syscalls/mips-o32-linux.xml: New file.
9651
9277c30c
UW
96522011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9653
9654 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9655 Complain about inverted range entries.
9656 (dwarf2_record_block_ranges): Likewise.
9657
a3be7890
TJB
96582011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9659
9660 Fix some typos.
9661 * breakpoint.c (update_watchpoint): Fix name of the
9662 update_global_location_list function.
9663 (print_one_breakpoint): Fix typo.
9664 (_initialize_breakpoint): Remove extra space in hbreak help
9665 string.
9666 * breakpoint.h (struct bp_location) <length>: Fix field
9667 description.
9668
041274d8
PA
96692011-02-04 Pedro Alves <pedro@codesourcery.com>
9670
9671 * regcache.c (registers_changed_ptid): Don't explictly always
9672 clear `current_regcache'. Only clear current_thread_ptid and
9673 current_thread_arch when PTID matches. Only reinit the frame
9674 cache if PTID matches the current inferior_ptid. Move alloca(0)
9675 call to ...
9676 (registers_changed): ... here.
9677
c1c2ab58
UW
96782011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9679
9680 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9681 starts with __stack_chk_guard as stack guard symbol.
9682
9011945e
AB
96832011-02-03 Andrew Burgess <aburgess@broadcom.com>
9684
9685 * disasm.c (compare_lines): Handle the end of sequence markers
9686 within the line table to better support disassembling over
9687 compilation unit boundaries.
9688
e0634ccf
UW
96892011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9690
9691 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9692 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9693 implementation even if no symbols are available.
9694 (thumb_analyze_prologue): Update call to skip_prologue_function.
9695 (arm_analyze_prologue): Likewise.
9696
0e9e9abd
UW
96972011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9698
9699 * arm-tdep.c: Include "observer.h".
9700 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9701 (arm_exidx_data_key): New static variable.
9702 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9703 (struct arm_exidx_data): Likewise.
9704 (arm_exidx_data_free): New function.
9705 (arm_compare_exidx_entries): Likewise.
9706 (arm_obj_section_from_vma): Likewise.
9707 (arm_exidx_new_objfile): Likewise.
9708 (arm_find_exidx_entry): Likewise.
9709 (arm_exidx_fill_cache): Likewise.
9710 (arm_exidx_unwind_sniffer): Likewise.
9711 (arm_exidx_unwind): New global variable.
9712 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9713 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9714 observer. Register arm_exidx_data_key as objfile data.
9715
2e9e421f
UW
97162011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9717
9718 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9719 due to accessing uninitialized variable. Fix indentation.
9720
580688f3
PA
97212011-02-02 Pedro Alves <pedro@codesourcery.com>
9722
9723 * c-valprint.c (c_value_print): When doing virtual base pointer
9724 adjustment, create a new value with adjusted contents rather than
9725 changing the contents of the value being printed (and getting it
9726 wrong).
9727
3d2c1d41
PA
97282011-02-02 Pedro Alves <pedro@codesourcery.com>
9729
9730 * xml-support.c (xml_find_attribute): New.
9731 (xinclude_start_include): Use it.
9732 * xml-support.h (xml_find_attribute): Declare.
9733 * memory-map.c (memory_map_start_memory)
9734 (memory_map_start_property): Use xml_find_attribute.
9735 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9736 xml_find_attribute.
9737 * remote.c (start_thread): Use xml_find_attribute.
9738 * solib-target.c (library_list_start_segment)
9739 (library_list_start_section, library_list_start_library)
9740 (library_list_start_list): Use xml_find_attribute.
9741 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9742 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9743 (tdesc_start_field): Use xml_find_attribute.
9744
0af3e2db
UW
97452011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9746
9747 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9748 (BUILD_OCL_VTYPES): Update.
9749
c1039e3c
JB
97502011-02-02 Joel Brobecker <brobecker@adacore.com>
9751
9752 * configure.ac: Work around non-GNU sed limitation when computing
9753 python version number.
9754 * configure: Regenerate.
9755
600ea1be
JK
97562011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9757
9758 Fix debug printing of TYPE_INSTANCE.
9759 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9760 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9761
56c12414
JK
97622011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9763
9764 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9765 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9766 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9767 * ada-operator.inc: Rename the file to ...
9768 * ada-operator.def: ... here, wrap all the entries by macro OP.
9769 * expprint.c (op_name_standard): Remove all the entries. Include
9770 "std-operator.def" instead.
9771 * expression.h (enum exp_opcode): Include "std-operator.def" and
9772 "ada-operator.def". Move all the entries ...
9773 * std-operator.def: ... here, wrap all the entries by macro OP.
9774
c52b559d
PP
97752011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9776
9777 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9778 * breakpoint.c (remove_jit_event_breakpoints): New function.
9779 * jit.c (jit_descriptor_addr): Delete.
9780 (registering_code): Delete.
9781 (clear_int): Delete.
9782 (jit_inferior_data): New variable.
9783 (struct jit_inferior_data): New type.
9784 (get_jit_inferior_data): New function.
9785 (jit_inferior_data_cleanup): New function.
9786 (jit_read_descriptor): Adjust.
9787 (jit_register_code): Adjust.
9788 (jit_breakpoint_re_set_internal): New function; move code here ...
9789 (jit_inferior_init): ... from here.
9790 (jit_breakpoint_re_set): Adjust.
9791 (jit_reset_inferior_data_and_breakpoints): New function.
9792 (jit_inferior_created_observer): Adjust.
9793 (jit_inferior_exit_hook): Adjust.
9794 (jit_executable_changed_observer): New function.
9795 (jit_event_handler): Adjust.
9796 (_initialize_jit): Adjust.
9797
e839132d
MS
97982011-01-31 Michael Snyder <msnyder@vmware.com>
9799
9800 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9801 line.
9802
47a80e90
TT
98032011-01-31 Tom Tromey <tromey@redhat.com>
9804
9805 PR python/12216:
9806 * python/python.c (execute_gdb_command): Call
9807 prevent_dont_repeat.
9808 * top.c (suppress_dont_repeat): New global.
9809 (dont_repeat): Use it.
9810 (prevent_dont_repeat): New function.
9811 * command.h (prevent_dont_repeat): Declare.
9812
45a43567
TT
98132011-01-31 Tom Tromey <tromey@redhat.com>
9814
9815 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9816 * python/py-breakpoint.c (bppy_set_silent): Use
9817 breakpoint_set_silent.
9818 (bppy_set_thread): Use breakpoint_set_thread.
9819 (bppy_set_task): Use breakpoint_set_task.
9820 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9821 (breakpoint_set_task): Declare.
9822 (make_breakpoint_silent): Remove.
9823 * breakpoint.c (breakpoint_set_silent): New function.
9824 (breakpoint_set_thread): Likewise.
9825 (breakpoint_set_task): Likewise.
9826 (make_breakpoint_silent): Remove.
9827
09d682a4
TT
98282011-01-31 Tom Tromey <tromey@redhat.com>
9829
9830 * breakpoint.h (user_breakpoint_p): Declare.
9831 * breakpoint.c (user_breakpoint_p): New function.
9832 (breakpoint_1): Use it.
9833 (save_breakpoints): Likewise.
9834
9c4ea6c5
JB
98352011-01-31 Joel Brobecker <brobecker@adacore.com>
9836
9837 * configure.ac: Add handling of Python distribution on Windows.
9838 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9839 sysconfig variables are not defined, then do not use them.
9840 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9841 instead. On Windows, return all paths using forward-slashes
9842 rather than backslashes.
9843
ac534cba
JB
98442011-01-31 Joel Brobecker <brobecker@adacore.com>
9845
9846 * configure.ac: Remove fallback behavior for building
9847 against Python. Remove tweaking of Python include path.
9848 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9849 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9850 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9851 Always restore CPPFLAGS and LIBS after linking test.
9852 * configure: Regenerated.
9853 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9854 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9855 * python/python-internal.h: Adjust includes of Python .h files.
9856
c2f0d045
JB
98572011-01-31 Joel Brobecker <brobecker@adacore.com>
9858
9859 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9860 in error message.
9861
6b0c4c1f
JB
98622011-01-31 Joel Brobecker <brobecker@adacore.com>
9863
9864 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9865 value test.
9866
672c9795
YQ
98672011-01-31 Yao Qi <yao@codesourcery.com>
9868
9869 * arm-linux-nat.c: Update calls to regcache_register_status
9870 instead of regcache_valid_p.
9871 * aix-thread.c: Likewise.
9872 * i386gnu-nat.c: Likewise.
9873
80b23b6a
JK
98742011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9875
9876 Fix crash.
9877 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9878 touching TYPE_FIELD_ARTIFICIAL.
9879
4cd712bd
RE
98802011-01-28 Richard Earnshaw <rearnsha@arm.com>
9881
9882 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9883 Committers.
9884
ffd5ec24
PA
98852011-01-28 Pedro Alves <pedro@codesourcery.com>
9886
9887 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9888 selected, don't try iterating over the traceframe's blocks.
9889 (tfile_has_stack): If there's no traceframe selected, then there's
9890 no stack.
9891 (tfile_has_registers): If there's no traceframe selected, then
9892 there's no registers.
9893
e8c9e0a1
PA
98942011-01-28 Pedro Alves <pedro@codesourcery.com>
9895
9896 * target.c (memory_xfer_partial): No need to restore shadows if we
9897 haven't read anything.
9898
de15c4ab
PA
98992011-01-28 Pedro Alves <pedro@codesourcery.com>
9900
9901 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9902 and val_print_scalar_formatted.
9903
9f41c731
PA
99042011-01-27 Pedro Alves <pedro@codesourcery.com>
9905
9906 * tracepoint.c (tfile_read): New.
9907 (tfile_open): Use it.
9908 (tfile_get_traceframe_address): Use it.
9909 (tfile_trace_find): Use it.
9910 (walk_blocks_callback_func): New typedef.
9911 (match_blocktype): New function.
9912 (traceframe_walk_blocks): New function.
9913 (traceframe_find_block_type): New function.
9914 (tfile_fetch_registers, tfile_xfer_partial)
9915 (tfile_get_trace_state_variable_value): Use
9916 traceframe_find_block_type and tfile_read.
9917
cdefc55d
KB
99182011-01-26 Kevin Buettner <kevinb@redhat.com>
9919
9920 * remote-mips.c: Add internationalization mark ups. Remove
9921 trailing \n from already marked up strings.
9922
a81766d8
TT
99232011-01-26 Tom Tromey <tromey@redhat.com>
9924
9925 * python/py-prettyprint.c (print_string_repr): Clear
9926 'addressprint' option when calling val_print_string.
9927 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9928 option when calling val_print_string.
9929
74aedc46
TT
99302011-01-26 Tom Tromey <tromey@redhat.com>
9931
9932 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9933 GDB_PY_LL_ARG.
9934 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9935 macros.
9936 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9937 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9938 (gdb_py_long_as_ulongest): New defines.
9939 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9940 (gdb_py_int_as_long): Declare.
9941 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9942 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9943 (valpy_long): Add comment.
9944 * python/py-utils.c (get_addr_from_python): Use
9945 gdb_py_long_as_ulongest. Handle overflow properly.
9946 (gdb_py_object_from_longest): New function.
9947 (gdb_py_object_from_ulongest): Likewise.
9948 (gdb_py_int_as_long): Likewise.
9949 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9950 * python/py-symtab.c (salpy_get_pc): Use
9951 gdb_py_long_from_ulongest.
9952 (salpy_get_line): Use PyInt_FromLong.
9953 * python/py-param.c (set_parameter_value): Use
9954 gdb_py_int_as_long.
9955 * python/py-lazy-string.c (stpy_get_address): Use
9956 gdb_py_long_from_ulongest.
9957 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9958 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9959 * python/py-breakpoint.c (bppy_set_thread): Use
9960 gdb_py_int_as_long.
9961 (bppy_set_task): Likewise.
9962 (bppy_set_ignore_count): Likewise.
9963 (bppy_set_hit_count): Likewise.
9964 * python/py-block.c (blpy_get_start): Use
9965 gdb_py_object_from_ulongest.
9966 (blpy_get_end): Likewise.
9967 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9968
e4f6d2ec
TJB
99692011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9970
9971 PR/symtab 11766:
9972 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9973 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9974 equality test for objfile, initialize addr_low if needed.
9975
b30aa278
PA
99762011-01-25 Pedro Alves <pedro@codesourcery.com>
9977
9978 * tui/tui-regs.c (tui_register_format): Remove dead code.
9979
ab2188aa
PA
99802011-01-25 Pedro Alves <pedro@codesourcery.com>
9981
9982 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9983 instead of print_scalar_formatted.
9984 (print_scalar_formatted): Don't handle 's' format strings here,
9985 and add an assertion that we never see such format here.
9986 * valprint.h (val_print_scalar_formatted): Declare.
9987 * valprint.c (val_print_scalar_formatted): New.
9988 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9989 instead of print_scalar_formatted.
9990 * jv-valprint.c (java_val_print): Ditto.
9991 * p-valprint.c (pascal_val_print): Ditto.
9992 * ada-valprint.c (ada_val_print_1): Ditto.
9993 * f-valprint.c (f_val_print): Ditto.
9994 * infcmd.c (registers_info): Ditto.
9995 * m2-valprint.c (m2_val_print): Ditto.
9996
66d61a4c
PA
99972011-01-25 Pedro Alves <pedro@codesourcery.com>
9998
9999 * m2-valprint.c (print_unbounded_array): Pass
10000 value_contents_for_printing rather than value_contents, to
10001 m2_print_array_contents. Also pass in the value.
10002
831adc1f
JK
100032011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10004
10005 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10006 (save_gdb_index_command): Switch to .gdb_index version 4.
10007
20622269
PA
100082011-01-25 Pedro Alves <pedro@codesourcery.com>
10009
10010 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10011 than frame_register, and always pass a valid value to val_print.
10012
585fdaa1
PA
100132011-01-25 Pedro Alves <pedro@codesourcery.com>
10014
10015 Centralize printing "<optimized out>".
10016
10017 * valprint.h (val_print_optimized_out): Declare.
10018 * cp-valprint.c (cp_print_value_fields): Use
10019 val_print_optimized_out.
10020 * jv-valprint.c (java_print_value_fields): Ditto.
10021 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10022 * printcmd.c (print_formatted): Ditto.
10023 * valprint.c (valprint_check_validity): Ditto.
10024 (value_check_printable): Ditto.
10025 (val_print_optimized_out): New.
10026
29ec5263
PA
100272011-01-25 Pedro Alves <pedro@codesourcery.com>
10028
10029 * infcmd.c (default_print_registers_info): Allocate values so to
10030 never pass a NULL value to val_print.
10031
de4127a3
PA
100322011-01-25 Pedro Alves <pedro@codesourcery.com>
10033
10034 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10035 boolean. Make sure to always pass a value that matches the
10036 contents buffer to callees. Preserve `address' for following
10037 iterations.
10038 * value.c (value_contents_for_printing_const): New.
10039 (value_address): Constify value argument.
10040 * value.h (value_contents_for_printing_const): Declare.
10041 (value_address): Constify value argument.
10042
ee99023e
PA
100432011-01-25 Pedro Alves <pedro@codesourcery.com>
10044
10045 * regcache.c (struct regcache_descr): Rename
10046 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10047 and sizeof_cooked_register_valid_p to
10048 sizeof_cooked_register_status.
10049 (init_regcache_descr): Adjust.
10050 (struct regcache): Rename register_valid_p field to
10051 register_status.
10052 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10053 (do_cooked_read): Adjust.
10054 (regcache_valid_p): Rename to ...
10055 (regcache_register_status): ... this. Adjust.
10056 (regcache_invalidate): Adjust.
10057 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10058 Adjust.
10059 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10060 as unavailable, not valid.
10061 (regcache_dump): Adjust.
10062 * regcache.h (enum register_status): New.
10063 (regcache_register_status): Declare.
10064 (regcache_invalidate): Delete declaration.
10065 * corelow.c (get_core_registers): Adjust.
10066 * tracepoint.c (tfile_fetch_registers): Adjust.
10067 * trad-frame.c (REG_VALUE): Rename to ...
10068 (TF_REG_VALUE): ... this.
10069 (REG_UNKNOWN): Rename to ...
10070 (TF_REG_UNKNOWN): ... this.
10071 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10072 * mi/mi-main.c (register_changed_p): Adjust.
10073
99e42fd8
PA
100742011-01-25 Pedro Alves <pedro@codesourcery.com>
10075
10076 * regcache.c (struct regcache_descr): Remove outdated comment.
10077 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10078 overallocate hack.
10079 (regcache_xmalloc): Rename to ...
10080 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10081 Allocate the regcache type accordingly.
10082 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10083 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10084 cooked registers, not raw.
10085 (regcache_dup_no_passthrough): Delete.
10086 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10087 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10088 mention obsolete write_register_bytes.
10089 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10090
f7605bc2
PA
100912011-01-25 Pedro Alves <pedro@codesourcery.com>
10092
10093 Stop remote_read_bytes from handling partial reads itself.
10094
10095 * remote-fileio.c: Include target.h.
10096 (remote_fileio_write_bytes): Delete.
10097 (remote_fileio_func_open, remote_fileio_func_write)
10098 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10099 target_read_memory.
10100 (remote_fileio_func_stat): Use target_read_memory and
10101 target_write_memory.
10102 (remote_fileio_func_gettimeofday): Use target_write_memory.
10103 (remote_fileio_func_system): Use target_read_memory.
10104 * remote.c (remote_write_bytes): Make it static.
10105 (remote_read_bytes): Don't handle partial reads here.
10106 * remote.h (remote_read_bytes): Delete declaration.
10107
efc0eabd
PA
101082011-01-25 Pedro Alves <pedro@codesourcery.com>
10109
10110 Simplify XML parsing a bit.
10111
10112 * xml-support.h (gdb_xml_parse_quick): Declare.
10113 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10114 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10115 parameter.
10116 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10117 gdb_xml_create_parser_and_cleanup_1.
10118 (gdb_xml_parse_quick): New.
10119 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10120 * osdata.c (osdata_parse): Ditto.
10121 * remote.c (remote_threads_info): Ditto.
10122 * solib-target.c (solib_target_parse_libraries): Ditto.
10123 * xml-syscall.c (syscall_parse_xml): Ditto.
10124 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10125
314d366a
KB
101262011-01-24 Kevin Buettner <kevinb@redhat.com>
10127
10128 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10129 with remote-mips.o added to gdb_target_obs.
10130 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10131
a491d753
PA
101322011-01-24 Pedro Alves <pedro@codesourcery.com>
10133
10134 * ada-valprint.c (val_print_packed_array_elements): Pass the
10135 correct struct value to val_print.
10136 (ada_val_print_1): Ditto.
10137
490f124f
PA
101382011-01-24 Pedro Alves <pedro@codesourcery.com>
10139
10140 Don't lose embedded_offset in printing routines throughout.
10141
10142 * valprint.h (val_print_array_elements): Change prototype.
10143 * valprint.c (val_print_array_elements): Add `embedded_offset'
10144 parameter, and adjust to pass it down to val_print, while passing
10145 `valaddr' or `address' unmodified. Take embedded_offset into
10146 account when checking repetitions.
10147 * c-valprint.c (c_val_print): Pass embedded_offset to
10148 val_print_array_elements instead of adjusting `valaddr' and
10149 `address'.
10150 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10151 embedded_offset to val_print_array_elements instead of adjusting
10152 `valaddr'.
10153 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10154 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10155 val_print_array_elements and pascal_object_print_value_fields
10156 instead of adjusting `valaddr'.
10157 (pascal_object_print_value_fields): Add `offset' parameter, and
10158 adjust to use it.
10159 (pascal_object_print_value): Add `offset' parameter, and adjust to
10160 use it.
10161 (pascal_object_print_static_field): Use
10162 value_contents_for_printing/value_embedded_offset, rather than
10163 value_contents.
10164 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10165 parameter, and adjust to use it. Use
10166 value_contents_for_printing/value_embedded_offset, rather than
10167 value_contents.
10168 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10169 (ada_val_print_array): Add `offset' parameter, and adjust to use
10170 it.
10171 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10172 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10173 Instead work with offsets. Use
10174 value_contents_for_printing/value_embedded_offset, rather than
10175 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10176 and use value_from_pointer to extract a target pointer, rather
10177 than value_from_longest.
10178 (print_variant_part): Add `offset' parameter. Replace
10179 `outer_valaddr' parameter by a new `outer_offset' parameter.
10180 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10181 (ada_value_print): Use
10182 value_contents_for_printing/value_embedded_offset, rather than
10183 value_contents.
10184 (print_record): Add `offset' parameter, and adjust to pass it
10185 down.
10186 (print_field_values): Add `offset' parameter. Replace
10187 `outer_valaddr' parameter by a new `outer_offset' parameter.
10188 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10189 Use value_contents_for_printing/value_embedded_offset, rather than
10190 value_contents.
10191 * d-valprint.c (dynamic_array_type): Use
10192 value_contents_for_printing/value_embedded_offset, rather than
10193 value_contents.
10194 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10195 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10196 (java_print_value_fields): Take `offset' into account. Don't
10197 re-adjust `valaddr'. Instead pass down adjusted offsets.
10198 (java_val_print): Take `embedded_offset' into account. Pass it to
10199 java_print_value_fields.
10200 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10201 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10202 down adjusted offsets.
10203 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10204 (f_val_print): Take `embedded_offset' into account.
10205
7bfc9434
JB
102062011-01-21 Joel Brobecker <brobecker@adacore.com>
10207
10208 * inflow.c: Include "gdbcmd.h".
10209 (interactive_mode): New static global, moved here from top.c.
10210 (show_interactive_mode): New function, moved here from top.c.
10211 use gdb_has_a_terminal instead of input_from_terminal_p to
10212 determine the current mode.
10213 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10214 setting.
10215 (_initialize_inflow): Add the "set/show interactive-mode"
10216 commands. Moved here from top.c, after having adjusted slightly
10217 the help text.
10218 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10219 to inflow.c.
10220 (input_from_terminal_p): Remove handling of "interactive-mode"
10221 setting, moved to infow.c.
10222 (init_main): Remove creation of the "set/show interactive-mode"
10223 commands, moved to inflow.c.
10224
44603653
JB
102252011-01-19 Joel Brobecker <brobecker@adacore.com>
10226
10227 * NEWS: Add entry for native ia64-hpux support.
10228
4694da01
TT
102292011-01-19 Tom Tromey <tromey@redhat.com>
10230
10231 PR mi/8618:
10232 * thread.c (free_thread): Free 'name'.
10233 (print_thread_info): Emit thread name. Change CLI output.
10234 (thread_name_command): New function.
10235 (do_captured_thread_select): Emit newline.
10236 (_initialize_thread): Register 'thread name' command.
10237 * target.h (struct target_ops) <to_thread_name>: New field.
10238 (target_thread_name): New macro.
10239 * target.c (update_current_target): Handle to_thread_name.
10240 * python/py-infthread.c (thpy_get_name): New function.
10241 (thpy_set_name): Likewise.
10242 (thread_object_getset): Add "name".
10243 * linux-nat.c (linux_nat_thread_name): New function.
10244 (linux_nat_add_target): Set to_thread_name.
10245 * gdbthread.h (struct thread_info) <name>: New field.
10246
10d44370
JB
102472011-01-18 Joel Brobecker <brobecker@adacore.com>
10248
10249 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10250 (ada_val_print_1): Likewise.
10251
e3acb115
JB
102522011-01-18 Joel Brobecker <brobecker@adacore.com>
10253
10254 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10255 upper limit address is not greater than the function end address
10256 when the upper limit could not be computed using the debugging
10257 info.
10258
dc92e161
TT
102592011-01-17 Tom Tromey <tromey@redhat.com>
10260
10261 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10262 get_regcomp_error.
10263 * utils.c: Include gdb_regex.h.
10264 (do_regfree_cleanup): New function.
10265 (make_regfree_cleanup): Likewise.
10266 (get_regcomp_error): Likewise.
10267 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10268
f55af66d
TT
102692011-01-17 Tom Tromey <tromey@redhat.com>
10270
10271 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10272 re_compile_fastmap.
10273
a5a44b53
PM
102742011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10275
10276 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10277 for internal variables.
10278 (last_was_structop): New static variable.
10279 (COMPLETE): New token.
10280 (field_exp): New rule to group all '.' suffix handling.
10281 Add mark_struct_expression calls when approriate to be able
10282 to correctly find fields for completion.
10283 (yylex): Adapt to handle field completion and set INTVAR when
10284 required.
10285
2c291032
YQ
102862011-01-14 Yao Qi <yao@codesourcery.com>
10287
10288 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10289 save_reggroup, restore_reggroup and all_reggroup.
10290
447b483c
JB
102912011-01-14 Joel Brobecker <brobecker@adacore.com>
10292
10293 * ada-valprint. (ada_printchar): Use the correct type length
10294 in call to ada_emit_char.
10295 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10296
7b64a93b
PM
102972011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10298
10299 * solib-som.h (hpux_major_release): Declare variable here.
10300 * solib-som.c: Remove <sys/utsname.h> header.
10301 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10302 (hpux_major_release): Make global, change default value to
10303 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10304 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10305 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10306 Add "solib-som.h" header.
10307 (set_hpux_major_release): New function.
10308 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10309
4e18c053
MF
103102011-01-14 Mike Frysinger <vapier@gentoo.org>
10311
10312 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10313
a9df6b22
JB
103142011-01-14 Joel Brobecker <brobecker@adacore.com>
10315
10316 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10317 new-line at end of warning message.
10318 (ia64_hpux_store_register): Remove trailing new-line at end of
10319 error message.
10320 * ia64-hpux-tdep.c: Rephrase comment.
10321 * solib-ia64-hpux.c (struct dld_info): Change type of field
10322 dld_flags from "long long" to ULONGEST.
10323
ecb956dd
PA
103242011-01-14 Pedro Alves <pedro@codesourcery.com>
10325
10326 * target.h (deprecated_child_ops): Delete declaration.
10327 * target.c (deprecated_child_ops): Delete definition.
10328
76adfcae
PA
103292011-01-14 Pedro Alves <pedro@codesourcery.com>
10330
10331 * Makefile.in (hpux-thread.o): Delete rule.
10332 * configure.ac: Don't check for HPUX DCE threads support.
10333 * configure, config.in: Regenerate.
10334 * hppa-hpux-nat.c (child_suppress_run): Delete.
10335 (hppa_hpux_child_can_run): Delete.
10336 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10337 * hpux-thread.c: Delete.
10338
042e866e
JB
103392011-01-13 Joel Brobecker <brobecker@adacore.com>
10340
10341 * hpux-thread.c (hpux_pid_to_str): Delete.
10342
4ffa5a33
JB
103432011-01-13 Joel Brobecker <brobecker@adacore.com>
10344
10345 * ada-valprint.c (ada_emit_char): Remove strange code.
10346 Check that c is <= UCHAR_MAX before passing it to isascii.
10347 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10348
de8fa76c
JB
103492011-01-13 Joel Brobecker <brobecker@adacore.com>
10350
10351 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10352 to the case where instream is stdin.
10353
c4de7027
JB
103542011-01-13 Joel Brobecker <brobecker@adacore.com>
10355
10356 * ia64-tdep.h (struct regcache): Forward declare.
10357 (struct ia64_infcall_ops): New struct type.
10358 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10359 and "infcall_ops".
10360 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10361 Renames ia64_find_global_pointer.
10362 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10363 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10364 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10365 methods.
10366 (ia64_infcall_ops): New static global constant.
10367 (ia64_gdbarch_init): Set tdep->infcall_ops.
10368 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10369 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10370 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10371 (ia64_hpux_dummy_code): New static global constant.
10372 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10373 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10374 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10375 New function.
10376 (ia64_hpux_infcall_ops): New static global constant.
10377 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10378 for inferior function calls to work properly on ia64-hpux.
10379
77ca787b
JB
103802011-01-13 Joel Brobecker <brobecker@adacore.com>
10381
10382 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10383 * ia64-tdep.h (struct frame_info): forward declaration.
10384 (struct gdbarch_tdep): Add field size_of_register_frame.
10385 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10386 to determine the size of the register frame.
10387 (ia64_size_of_register_frame): New function.
10388 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10389 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10390 (IA64_HPUX_UREG_REASON): New macro.
10391 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10392 New functions.
10393 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10394 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10395 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10396 objects.
10397
92c9a463
JB
103982011-01-13 Joel Brobecker <brobecker@adacore.com>
10399
10400 Add support for ia64-hpux.
10401 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10402 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10403
10404 * configure.host: Add handling for ia64-hpux hosts. Add associated
10405 floatformats.
10406 * configure.tgt: Add handling for ia64-hpux targets.
10407 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10408 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10409 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10410
f688d93f
JB
104112011-01-13 Joel Brobecker <brobecker@adacore.com>
10412
10413 [ttrace] Compute thread list immediately after attach.
10414 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10415 New subprogram.
10416 (inf_ttrace_attach): Use it.
10417
1b89e62f
JB
104182011-01-13 Joel Brobecker <brobecker@adacore.com>
10419
10420 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10421 if we could not determine the frame's function address. Instead,
10422 use the frame's PC, and then continue.
10423
3e5e6e2a
JB
104242011-01-13 Joel Brobecker <brobecker@adacore.com>
10425
10426 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10427 not already defined.
10428
825d6d8a
JB
104292011-01-13 Joel Brobecker <brobecker@adacore.com>
10430
10431 * ia64-tdep.c (ia64_struct_type_p): New function.
10432 (ia64_extract_return_value): Handle integral values that are
10433 less than 8 bytes long.
10434 (ia64_push_dummy_call): Likewise.
10435
7458e667
JB
104362011-01-13 Joel Brobecker <brobecker@adacore.com>
10437
10438 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10439 floatformat_ia64_ext.
10440 (floatformat_ia64_ext_big): New static const.
10441 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10442
1b05df00
TT
104432011-01-12 Tom Tromey <tromey@redhat.com>
10444
10445 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10446 messages.
10447 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10448 (mi_cmd_thread_list_ids): Likewise.
10449 (mi_cmd_data_list_changed_registers): Likewise.
10450 (mi_cmd_data_list_register_values): Likewise.
10451 (mi_cmd_data_write_register_values): Likewise.
10452 (mi_cmd_data_evaluate_expression): Likewise.
10453 (mi_cmd_data_read_memory): Likewise.
10454 (mi_cmd_data_read_memory_bytes): Likewise.
10455 (mi_cmd_data_write_memory): Likewise.
10456 (mi_cmd_enable_timings): Likewise.
10457 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10458 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10459 (mi_cmd_var_delete): Likewise.
10460 (mi_cmd_var_set_format): Likewise.
10461 (mi_cmd_var_show_format): Likewise.
10462 (mi_cmd_var_info_num_children): Likewise.
10463 (mi_cmd_var_list_children): Likewise.
10464 (mi_cmd_var_info_type): Likewise.
10465 (mi_cmd_var_info_expression): Likewise.
10466 (mi_cmd_var_show_attributes): Likewise.
10467 (mi_cmd_var_assign): Likewise.
10468 (mi_cmd_var_update): Likewise.
10469 (mi_cmd_enable_pretty_printing): Likewise.
10470 (mi_cmd_var_set_update_range): Likewise.
10471 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10472 messages.
10473 (mi_cmd_target_file_put): Likewise.
10474 (mi_cmd_target_file_delete): Likewise.
10475 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10476 messages.
10477 (mi_cmd_stack_info_depth): Likewise.
10478 (mi_cmd_stack_list_locals): Likewise.
10479 (mi_cmd_stack_list_args): Likewise.
10480 (mi_cmd_stack_select_frame): Likewise.
10481 (mi_cmd_stack_select_frame): Likewise.
10482 (mi_cmd_stack_info_frame): Likewise.
10483 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10484 messages.
10485 (mi_cmd_file_list_exec_source_files): Likewise.
10486 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10487 (mi_cmd_env_cd): Likewise.
10488 (mi_cmd_env_path): Likewise.
10489 (mi_cmd_env_dir): Likewise.
10490 (mi_cmd_inferior_tty_show): Likewise.
10491 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10492 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10493 (mi_cmd_break_watch): Likewise.
10494
ad422571
TJB
104952011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10496
10497 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10498 (ppc_linux_insert_hw_breakpoint): Likewise.
10499 (ppc_linux_remove_hw_breakpoint): Likewise.
10500 (ppc_linux_insert_watchpoint): Likewise.
10501
c2ff108b
JK
105022011-01-12 Andrew Burgess <aburgess@broadcom.com>
10503 Jan Kratochvil <jan.kratochvil@redhat.com>
10504
10505 PR fortran/11104 and DWARF unbound arrays detection.
10506 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10507 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10508 unspecified upper bound.
10509 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10510 variables array_size_array, tmp_type and offset_item. New variable
10511 array. Remove call to f77_get_upperbound. New variables array_type
10512 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10513 the final call to deprecated_set_value_type.
10514
41e8491f
JK
105152011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10516
10517 Make value allocations more lazy.
10518 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10519 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10520 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10521 instead of allocate_value and set_value_lazy.
10522 * findvar.c (value_of_register_lazy): Likewise.
10523 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10524 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10525 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10526 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10527 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10528 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10529 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10530 the end, remove set_value_lazy there.
10531 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10532 instead of allocate_value and set_value_lazy when possible.
10533 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10534 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10535 of allocate_value and set_value_lazy.
10536 (value_from_contents_and_address): Use allocate_value_lazy instead of
10537 allocate_value and set_value_lazy when possible.
10538
b716877b
AB
105392011-01-12 Andrew Burgess <aburgess@broadcom.com>
10540
10541 * disasm.c (dump_insns): Support dumping opcodes for MI.
10542 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10543 dumping of instruction opcodes.
10544
d5ae309f
JB
105452011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10546
10547 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10548 appropiately.
10549
98871305
TT
105502011-01-11 Tom Tromey <tromey@redhat.com>
10551
10552 * thread.c (do_captured_thread_select): Emit newline before
10553 printing frame.
10554
c378eb4e
MS
105552011-01-11 Michael Snyder <msnyder@vmware.com>
10556
10557 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10558 * score-tdep.c: Ditto.
10559 * score-tdep.h: Ditto.
10560 * ser-base.c: Ditto.
10561 * ser-go32.c: Ditto.
10562 * serial.c: Ditto.
10563 * serial.h: Ditto.
10564 * ser-mingw.c: Ditto.
10565 * ser-pipe.c: Ditto.
10566 * ser-tcp.c: Ditto.
10567 * ser-unix.c: Ditto.
10568 * sh64-tdep.c: Ditto.
10569 * shnbsd-nat.c: Ditto.
10570 * sh-tdep.c: Ditto.
10571 * sh-tdep.h: Ditto.
10572 * solib.c: Ditto.
10573 * solib-darwin.c: Ditto.
10574 * solib-frv.c: Ditto.
10575 * solib.h: Ditto.
10576 * solib-irix.c: Ditto.
10577 * solib-osf.c: Ditto.
10578 * solib-pa64.c: Ditto.
10579 * solib-som.c: Ditto.
10580 * solib-spu.c: Ditto.
10581 * solib-sunos.c: Ditto.
10582 * solib-svr4.c: Ditto.
10583 * solist.h: Ditto.
10584 * sol-thread.c: Ditto.
10585 * somread.c: Ditto.
10586 * source.c: Ditto.
10587 * source.h: Ditto.
10588 * sparc64-linux-tdep.c: Ditto.
10589 * sparc64-tdep.c: Ditto.
10590 * sparc-linux-nat.c: Ditto.
10591 * sparc-linux-tdep.c: Ditto.
10592 * sparc-sol2-nat.c: Ditto.
10593 * sparc-sol2-tdep.c: Ditto.
10594 * sparc-tdep.c: Ditto.
10595 * sparc-tdep.h: Ditto.
10596 * spu-tdep.c: Ditto.
10597 * stabsread.c: Ditto.
10598 * stabsread.h: Ditto.
10599 * stack.c: Ditto.
10600 * symfile.c: Ditto.
10601 * symfile.h: Ditto.
10602 * symmisc.c: Ditto.
10603 * symtab.c: Ditto.
10604 * symtab.h: Ditto.
10605 * target.c: Ditto.
10606 * target-descriptions.c: Ditto.
10607 * target-descriptions.h: Ditto.
10608 * target.h: Ditto.
10609 * target-memory.c: Ditto.
10610 * terminal.h: Ditto.
10611 * thread.c: Ditto.
10612 * top.c: Ditto.
10613 * tracepoint.c: Ditto.
10614 * tracepoint.h: Ditto.
10615 * trad-frame.h: Ditto.
10616 * typeprint.c: Ditto.
10617
581e13c1
MS
106182011-01-11 Michael Snyder <msnyder@vmware.com>
10619
10620 * ui-file.c: Comment cleanup, mostly periods and spaces.
10621 * ui-file.h: Ditto.
10622 * ui-out.c: Ditto.
10623 * ui-out.h: Ditto.
10624 * utils.c: Ditto.
10625 * v850-tdep.c: Ditto.
10626 * valarith.c: Ditto.
10627 * valops.c: Ditto.
10628 * valprint.c: Ditto.
10629 * valprint.h: Ditto.
10630 * value.c: Ditto.
10631 * value.h: Ditto.
10632 * varobj.c: Ditto.
10633 * varobj.h: Ditto.
10634 * vax-tdep.c: Ditto.
10635 * vec.c: Ditto.
10636 * vec.h: Ditto.
10637 * version.h: Ditto.
10638 * windows-nat.c: Ditto.
10639 * windows-tdep.c: Ditto.
10640 * xcoffread.c: Ditto.
10641 * xcoffsolib.c: Ditto.
10642 * xml-support.c: Ditto.
10643 * xstormy16-tdep.c: Ditto.
10644 * xtensa-tdep.c: Ditto.
10645 * xtensa-tdep.h: Ditto.
10646
90e4670f
TJB
106472011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10648
10649 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10650 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10651
e09342b5
TJB
106522011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10653 Thiago Jung Bauermann <bauerman@br.ibm.com>
10654
10655 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10656 * breakpoint.h
e09342b5
TJB
10657 (struct breakpoint_ops) <resources_needed>: New method.
10658 Initialize to NULL in all existing breakpoint_ops instances.
10659 (struct breakpoint) <exact>: New field.
10660 (target_exact_watchpoints): Declare external global.
10661 * breakpoint.c (target_exact_watchpoints): New global flag.
10662 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10663 b->enable_state to bp_enabled before calling
10664 hw_watchpoint_used_count.
10665 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10666 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10667 if available.
10668 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10669 if the watchpoint is exact.
10670 (resources_needed_watchpoint): New function.
10671 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10672 (watch_command_1): Set b->exact if the user asked for an exact
10673 watchpoint and one can be set.
10674 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10675 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10676 the user asks for an exact watchpoint and one can be set. Return
10677 number of needed debug registers to watch the expression.
10678 * gdbtypes.c (is_scalar_type): New function, based on
10679 valprint.c:scalar_type_p.
10680 (is_scalar_type_recursive): New function.
10681 * gdbtypes.h (is_scalar_type_recursive): Declare.
10682 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10683 handle regions when ranged watchpoints are available.
10684 (create_watchpoint_request): New function.
10685 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10686 create_watchpoint_request.
10687 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10688 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10689 `set powerpc' and `show powerpc' commands.
10690 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10691 Mention documentation comment in the target macro.
10692 (target_region_ok_for_hw_watchpoint): Document return value.
10693
9fa40276
TJB
106942011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10695
10696 * breakpoint.c (update_watchpoint): Decide on using a software or
10697 hardware watchpoint after the bp_locations are created.
10698
77b06cd7
TJB
106992010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10700
10701 Convert hardware watchpoints to use breakpoint_ops.
10702 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10703 <insert_location>: ... this. Return int instead of void.
10704 Accept pointer to struct bp_location instead of pointer to
10705 struct breakpoint. Adapt all implementations.
f2eb0bc8 10706 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10707 <remove_location>: ... this. Accept pointer to struct bp_location
10708 instead of pointer to struct breakpoint. Adapt all implementations.
10709 * breakpoint.c (insert_catchpoint): Delete function.
10710 (insert_bp_location): Call the watchpoint or catchpoint's
10711 breakpoint_ops.insert method.
10712 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10713 breakpoint_ops.remove method.
10714 (insert_watchpoint, remove_watchpoint): New functions.
10715 (watchpoint_breakpoint_ops): New structure.
10716 (watch_command_1): Initialize the OPS field.
10717 * inf-child.c (inf_child_insert_fork_catchpoint)
10718 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10719 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10720 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10721 Delete functions.
10722 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10723 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10724 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10725 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10726 * target.c (update_current_target): Change default implementation of
10727 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10728 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10729 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10730 to_set_syscall_catchpoint to return_one.
10731 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10732 (debug_to_insert_exec_catchpoint): Report return value.
10733 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10734 (to_insert_exec_catchpoint): Change declaration to return int instead
10735 of void.
10736
9b20d036
MS
107372011-01-11 Michael Snyder <msnyder@vmware.com>
10738
10739 * arm-tdep.c: Internationalization.
10740 * c-lang.c: Ditto.
10741 * charset.c: Ditto.
10742 * fork-child.c: Ditto.
10743 * nto-procfs.c: Ditto.
10744 * ppc-sysv-tdep.c: Ditto.
10745 * procfs.c: Ditto.
10746 * remote-mips.c: Ditto.
10747 * remote.c: Ditto.
10748 * rs6000-nat.c: Ditto.
10749 * rs6000-tdep.c: Ditto.
10750 * target.c: Ditto.
10751 * valops.c: Ditto.
10752 * value.c: Ditto.
10753 * xml-support.c: Ditto.
10754 * mi/mi-cmd-break.c: Ditto.
10755 * mi/mi-cmd-var.c: Ditto.
10756 * mi/mi-interp.c: Ditto.
10757 * mi/mi-main.c: Ditto.
10758
dae477fe
AB
107592011-01-11 Andrew Burgess <aburgess@broadcom.com>
10760
10761 * remote-sim.c (gdbsim_store_register): Update API to
10762 sim_store_register to check more error conditions.
10763
0df8b418
MS
107642011-01-10 Michael Snyder <msnyder@vmware.com>
10765
10766 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10767 * nto-tdep.c: Ditto.
10768 * nto-tdep.h: Ditto.
10769 * objc-exp.y: Ditto.
10770 * objc-lang.c: Ditto.
10771 * objfiles.c: Ditto.
10772 * objfiles.h: Ditto.
10773 * observer.c: Ditto.
10774 * opencl-lang.c: Ditto.
10775 * osabi.c: Ditto.
10776 * parse.c: Ditto.
10777 * parser-defs.h: Ditto.
10778 * p-exp.y: Ditto.
10779 * p-lang.c: Ditto.
10780 * posix-hdep.c: Ditto.
10781 * ppcbug-rom.c: Ditto.
10782 * ppc-linux-nat.c: Ditto.
10783 * ppc-linux-tdep.c: Ditto.
10784 * ppc-linux-tdep.h: Ditto.
10785 * ppcnbsd-tdep.c: Ditto.
10786 * ppcobsd-tdep.c: Ditto.
10787 * ppcobsd-tdep.h: Ditto.
10788 * ppc-sysv-tdep.c: Ditto.
10789 * ppc-tdep.h: Ditto.
10790 * printcmd.c: Ditto.
10791 * proc-abi.c: Ditto.
10792 * proc-flags.c: Ditto.
10793 * procfs.c: Ditto.
10794 * proc-utils.h: Ditto.
10795 * progspace.h: Ditto.
10796 * prologue-value.c: Ditto.
10797 * prologue-value.h: Ditto.
10798 * psympriv.h: Ditto.
10799 * psymtab.c: Ditto.
10800 * p-typeprint.c: Ditto.
10801 * p-valprint.c: Ditto.
10802 * ravenscar-sparc-thread.c: Ditto.
10803 * ravenscar-thread.c: Ditto.
10804 * ravenscar-thread.h: Ditto.
10805 * record.c: Ditto.
10806 * regcache.c: Ditto.
10807 * regcache.h: Ditto.
10808 * remote.c: Ditto.
10809 * remote-fileio.c: Ditto.
10810 * remote-fileio.h: Ditto.
10811 * remote.h: Ditto.
10812 * remote-m32r-sdi.c: Ditto.
10813 * remote-mips.c: Ditto.
10814 * remote-sim.c: Ditto.
10815 * rs6000-aix-tdep.c: Ditto.
10816 * rs6000-nat.c: Ditto.
10817 * rs6000-tdep.c: Ditto.
10818
0d7a18f7
MS
108192011-01-10 Michael Snyder <msnyder@vmware.com>
10820
10821 * charset.c (validate): Internationalization.
10822 * coffread.c (read_one_sym): Ditto.
10823 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10824 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10825 * inflow.c (new_tty): Ditto.
10826 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10827 * m32c-tdep.c (m32c_return_value): Ditto.
10828 * mep-tdep.c (mep_store_return_value): Ditto.
10829 * score-tdep.c (score7_fetch_insn): Ditto.
10830 * ser-mingw.c (pipe_windows_open): Ditto.
10831 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10832 * spu-tdep.c (spu_register_type): Ditto.
10833 * tracepoint.c (trace_find_command): Ditto.
10834 * valarith.c (value_pos): Ditto.
10835
9a153e0b
JB
108362011-01-10 Joel Brobecker <brobecker@adacore.com>
10837
10838 * ada-valprint.c (printstr): Minor comment reformatting.
10839
35ecd2d6
MS
108402011-01-08 Michael Snyder <msnyder@vmware.com>
10841
10842 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10843 markup.
10844
1777feb0
MS
108452011-01-08 Michael Snyder <msnyder@vmware.com>
10846
10847 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10848 * hppa-hpux-tdep.c: Ditto.
10849 * hppa-linux-nat.c: Ditto.
10850 * hppa-linux-tdep.c: Ditto.
10851 * hppanbsd-tdep.c: Ditto.
10852 * hppa-tdep.c: Ditto.
10853 * hppa-tdep.h: Ditto.
10854 * hpux-thread.c: Ditto.
10855 * i386-cygwin-tdep.c: Ditto.
10856 * i386-darwin-nat.c: Ditto.
10857 * i386gnu-nat.c: Ditto.
10858 * i386-linux-nat.c: Ditto.
10859 * i386-linux-tdep.c: Ditto.
10860 * i386-nat.c: Ditto.
10861 * i386-nat.h: Ditto.
10862 * i386nbsd-tdep.c: Ditto.
10863 * i386-sol2-nat.c: Ditto.
10864 * i386-stub.c: Ditto.
10865 * i386-tdep.c: Ditto.
10866 * i386-tdep.h: Ditto.
10867 * i387-tdep.c: Ditto.
10868 * ia64-linux-nat.c: Ditto.
10869 * ia64-linux-tdep.c: Ditto.
10870 * ia64-tdep.c: Ditto.
10871 * infcall.c: Ditto.
10872 * infcall.h: Ditto.
10873 * infcmd.c: Ditto.
10874 * inferior.c: Ditto.
10875 * inferior.h: Ditto.
10876 * infloop.c: Ditto.
10877 * inflow.c: Ditto.
10878 * infrun.c: Ditto.
10879 * interps.c: Ditto.
10880 * interps.h: Ditto.
10881 * iq2000-tdep.c: Ditto.
10882 * irix5-nat.c: Ditto.
10883 * jit.c: Ditto.
10884 * jit.h: Ditto.
10885 * jv-exp.y: Ditto.
10886 * jv-lang.c: Ditto.
10887 * jv-lang.h: Ditto.
10888 * jv-typeprint.c: Ditto.
10889 * jv-valprint.c: Ditto.
10890 * language.c: Ditto.
10891 * language.h: Ditto.
10892 * linespec.c: Ditto.
10893 * linux-fork.c: Ditto.
10894 * linux-nat.c: Ditto.
10895 * linux-thread-db.c: Ditto.
10896 * lm32-tdep.c: Ditto.
10897
025bb325
MS
108982011-01-08 Michael Snyder <msnyder@vmware.com>
10899
10900 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10901 * m2-lang.c: Ditto.
10902 * m2-typeprint.c: Ditto.
10903 * m2-valprint.c: Ditto.
10904 * m32c-tdep.c: Ditto.
10905 * m32r-linux-nat.c: Ditto.
10906 * m32r-rom.c: Ditto.
10907 * m32r-tdep.c: Ditto.
10908 * m32r-tdep.h: Ditto.
10909 * m68hc11-tdep.c: Ditto.
10910 * m58klinux-nat.c: Ditto.
10911 * m68k-tdep.c: Ditto.
10912 * m88k-tdep.c: Ditto.
10913 * m88k-tdep.h: Ditto.
10914 * machoread.c: Ditto.
10915 * macrocmd.c: Ditto.
10916 * macroexp.c: Ditto.
10917 * macrotab.c: Ditto.
10918 * main.c: Ditto.
10919 * maint.c: Ditto.
10920 * mdebugread.c: Ditto.
10921 * mdebugread.h: Ditto.
10922 * memattr.c: Ditto.
10923 * memattr.h: Ditto.
10924 * memory-map.h: Ditto.
10925 * mep-tdep.c: Ditto.
10926 * microblaze-rom.c: Ditto.
10927 * microblaze-tdep.c: Ditto.
10928 * minsyms.c: Ditto.
10929 * mips-irix-tdep.c: Ditto.
10930 * mips-linux-nat.c: Ditto.
10931 * mips-linux-tdep.c: Ditto.
10932 * mips-linux-tdep.h: Ditto.
10933 * mipsnbsd-nat.c: Ditto.
10934 * mipsnbsd-tdep.c: Ditto.
10935 * mipsread.c: Ditto.
10936 * mips-tdep.c: Ditto.
10937 * mips-tdep.h: Ditto.
10938 * mn10300-linux-tdep.c: Ditto.
10939 * mn10300-tdep.c: Ditto.
10940 * mn10300-tdep.h: Ditto.
10941 * monitor.c: Ditto.
10942 * monitor.h: Ditto.
10943 * moxie-tdep.c: Ditto.
10944 * moxie-tdep.h: Ditto.
10945 * mt-tdep.c: Ditto.
10946
1642781b
MF
109472011-01-08 Mike Frysinger <vapier@gentoo.org>
10948
10949 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10950
394b0adb
JB
109512011-01-08 Robert Millan <rmh@gnu.org>
10952
10953 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10954
b670013c
MS
109552011-01-07 Michael Snyder <msnyder@vmware.com>
10956
10957 * charset.c (_initialize_charset): Fix typo in string.
10958
a743e542
MS
109592011-01-07 Michael Snyder <msnyder@vmware.com>
10960
10961 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10962 for i18n.
f2eb0bc8 10963 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10964 Split line so that operator goes to beginning of line.
10965 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10966 assignment out of if statement.
10967
0963b4bd
MS
109682011-01-07 Michael Snyder <msnyder@vmware.com>
10969
10970 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10971 * ada-lang.h: Ditto.
10972 * ada-tasks.c: Ditto.
10973 * ada-valprint.c: Ditto.
10974 * aix-threads.c: Ditto.
10975 * alpha-linux-nat.c: Ditto.
10976 * alpha-linux-tdep.c: Ditto.
10977 * alpha-mdebug-tdep.c: Ditto.
10978 * alpha-nat.c: Ditto.
10979 * alpha-osf1-tdep.c: Ditto.
10980 * alpha-tdep.c: Ditto.
10981 * alphabsd-nat.c: Ditto.
10982 * alphabsd-tdep.c: Ditto.
10983 * amd64-darwin-tdep.c: Ditto.
10984 * amd64-linux-nat.c: Ditto.
10985 * amd64-linux-tdep.c: Ditto.
10986 * amd64-sol2-tdep.c: Ditto.
10987 * amd64-tdep.c: Ditto.
10988 * amd64-fbsd-tdep.c: Ditto.
10989 * amd64-nbsd-tdep.c: Ditto.
10990 * amd64-obsd-tdep.c: Ditto.
10991 * amd64-linux-nat.c: Ditto.
10992 * amd64-linux-tdep.c: Ditto.
10993 * arm-tdep.c: Ditto.
10994 * arm-tdep.h: Ditto.
10995 * armnbsd-nat.c: Ditto.
10996 * avr-tdep.c: Ditto.
10997 * bfin-tdep.c: Ditto.
10998 * bsd-kvm.c: Ditto.
10999 * c-typeprintc: Ditto.
11000 * c-valprint.c: Ditto.
11001 * coff-pe-read.h: Ditto.
11002 * coffreead.c: Ditto.
11003 * cris-tdep.c: Ditto.
11004 * d-lang.c: Ditto.
11005 * darwin-nat-info.c: Ditto.
11006 * darwin-nat.c: Ditto.
11007 * dbug-rom.c: Ditto.
11008 * dbxread.c: Ditto.
11009 * dcache.c: Ditto.
11010 * dcache.h: Ditto.
11011 * dec-thread.c: Ditto.
11012 * defs.h: Ditto.
11013 * demangle.c: Ditto.
11014 * dicos-tdep.c: Ditto.
11015 * dictionary.c: Ditto.
11016 * dictionary.h: Ditto.
11017 * dink32-rom.c: Ditto.
11018 * disasm.c: Ditto.
11019 * doublest.c: Ditto.
11020 * dsrec.c: Ditto.
11021 * dummy-frame.c: Ditto.
11022 * dwarf2-frame.c: Ditto.
11023 * dwarf2expr.c: Ditto.
11024 * dwarf2loc.c: Ditto.
11025 * dwarf2read.c: Ditto.
11026 * elfread.c: Ditto.
11027 * environ.c: Ditto.
11028 * eval.c: Ditto.
11029 * event-top.h: Ditto.
11030 * exceptions.c: Ditto.
11031 * exceptions.h: Ditto.
11032 * exec.c: Ditto.
11033 * expprint.c: Ditto.
11034 * expression.h: Ditto.
11035 * f-exp.y: Ditto.
11036 * f-lang.c: Ditto.
11037 * f-lang.h: Ditto.
11038 * f-typeprint.c: Ditto.
11039 * f-valprint.c: Ditto.
11040 * fbsd-nat.c: Ditto.
11041 * findvar.c: Ditto.
11042 * fork-child.c: Ditto.
11043 * frame.c: Ditto.
11044 * frame.h: Ditto.
11045 * frv-linux-tdep.c: Ditto.
11046 * frv-tdep.c: Ditto.
11047 * gcore.c: Ditto.
11048 * gdb-stabs.h: Ditto.
11049 * gdb_assert.h: Ditto.
11050 * gdb_string.h: Ditto.
11051 * gdb_thread_db.h: Ditto.
11052 * gdb_wait.h: Ditto.
11053 * gdbarch.sh: Ditto.
11054 * gdbcore.h: Ditto.
11055 * gdbthread.h: Ditto.
11056 * gdbtypes.c: Ditto.
11057 * gdbtypes.h: Ditto.
11058 * gnu-nat.c: Ditto.
11059 * gnu-nat.h: Ditto.
11060 * gnu-v2-abi.c: Ditto.
11061 * gnu-v3-abi.c: Ditto.
11062 * go32-nat.c: Ditto.
11063 * gdbarch.c: Regenerate.
11064 * gdbarch.h: Regenerate.
11065
ac74f770
MS
110662011-01-07 Michael Snyder <msnyder@vmware.com>
11067
11068 * ax-gdb.c: Adjust some long output strings.
11069 * breakpoint.c: Ditto.
11070 * charset.c: Ditto.
11071 * cp-abi.c: Ditto.
11072 * infcall.c: Ditto.
11073 * infrun.c: Ditto.
11074 * linux-nat.c: Ditto.
11075 * solib-pa64.c: Ditto.
11076 * solib-som.c: Ditto.
11077
d8e22779
TT
110782011-01-06 Tom Tromey <tromey@redhat.com>
11079
11080 PR python/12367:
11081 * NEWS: Add item.
11082 * python/python.c (GdbMethods): Add "newest_frame" method.
11083 * python/python-internal.h (gdbpy_newest_frame): Declare.
11084 * python/py-frame.c (gdbpy_newest_frame): New function.
11085
a255712f
PP
110862010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11087
11088 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11089 * jit.c (jit_debug): New variable.
11090 (show_jit_debug): New function.
11091 (struct target_buffer): Use ULONGEST.
11092 (bfd_open_from_target_memory): Likewise.
11093 (jit_register_code, jit_inferior_init): Add debug output.
11094 (_initialize_jit): Register "debug jit" command.
11095
ccfc3d6e
TT
110962011-01-06 Tom Tromey <tromey@redhat.com>
11097
11098 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11099 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11100 and ARCH_FRAME.
11101
57126e4a
TT
111022011-01-06 Tom Tromey <tromey@redhat.com>
11103
11104 * python/py-frame.c (frapy_block): Use get_frame_block.
11105
16dfc9ce
JB
111062011-01-06 Joel Brobecker <brobecker@adacore.com>
11107
11108 Do not stop on SIGPRIO signals by default
11109 * infrun.c (_initialize_infrun): Unset signal_stop and
11110 signal_print for TARGET_SIGNAL_PRIO.
11111
b1ce2347
JB
111122011-01-06 Joel Brobecker <brobecker@adacore.com>
11113
11114 * ada-tasks.c: Fix style violation in comment.
11115
8f7e195f
JB
111162011-01-06 Joel Brobecker <brobecker@adacore.com>
11117
11118 * linespec.c (decode_compound, find_method): Remove trailing \n
11119 at end of error string.
11120 * solib-irix.c (irix_current_sos): Likewise.
11121 * varobj.c (uninstall_variable): Likewise.
11122
e9bdf92c
JB
111232011-01-06 Joel Brobecker <brobecker@adacore.com>
11124
11125 * copyright.py: New script.
11126 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11127 Launch emacs without exec'ing. Call copyright.py afterwards.
11128
3e43a32a
MS
111292011-01-05 Michael Snyder <msnyder@vmware.com>
11130
11131 * addrmap.c: Shorten lines of >= 80 columns.
11132 * arch-utils.c: Ditto.
11133 * arch-utils.h: Ditto.
11134 * ax-gdb.c: Ditto.
11135 * ax-general.c: Ditto.
11136 * bcache.c: Ditto.
11137 * blockframe.c: Ditto.
11138 * breakpoint.c: Ditto.
11139 * buildsym.c: Ditto.
11140 * c-lang.c: Ditto.
11141 * c-typeprint.c: Ditto.
11142 * charset.c: Ditto.
11143 * coffread.c: Ditto.
11144 * command.h: Ditto.
11145 * corelow.c: Ditto.
11146 * cp-abi.c: Ditto.
11147 * cp-namespace.c: Ditto.
11148 * cp-support.c: Ditto.
11149 * dbug-rom.c: Ditto.
11150 * dbxread.c: Ditto.
11151 * defs.h: Ditto.
11152 * dfp.c: Ditto.
11153 * dfp.h: Ditto.
11154 * dictionary.c: Ditto.
11155 * disasm.c: Ditto.
11156 * doublest.c: Ditto.
11157 * dwarf2-frame.c: Ditto.
11158 * dwarf2expr.c: Ditto.
11159 * dwarf2loc.c: Ditto.
11160 * dwarf2read.c: Ditto.
11161 * elfread.c: Ditto.
11162 * eval.c: Ditto.
11163 * event-loop.c: Ditto.
11164 * event-loop.h: Ditto.
11165 * exceptions.h: Ditto.
11166 * exec.c: Ditto.
11167 * expprint.c: Ditto.
11168 * expression.h: Ditto.
11169 * f-lang.c: Ditto.
11170 * f-valprint.c: Ditto.
11171 * findcmd.c: Ditto.
11172 * frame-base.c: Ditto.
11173 * frame-unwind.c: Ditto.
11174 * frame-unwind.h: Ditto.
11175 * frame.c: Ditto.
11176 * frame.h: Ditto.
11177 * gcore.c: Ditto.
11178 * gdb-stabs.h: Ditto.
11179 * gdb_assert.h: Ditto.
11180 * gdb_dirent.h: Ditto.
11181 * gdb_obstack.h: Ditto.
11182 * gdbcore.h: Ditto.
11183 * gdbtypes.c: Ditto.
11184 * gdbtypes.h: Ditto.
11185 * inf-ttrace.c: Ditto.
11186 * infcall.c: Ditto.
11187 * infcmd.c: Ditto.
11188 * inflow.c: Ditto.
11189 * infrun.c: Ditto.
11190 * inline-frame.h: Ditto.
11191 * language.c: Ditto.
11192 * language.h: Ditto.
11193 * libunwind-frame.c: Ditto.
11194 * libunwind-frame.h: Ditto.
11195 * linespec.c: Ditto.
11196 * linux-nat.c: Ditto.
11197 * linux-nat.h: Ditto.
11198 * linux-thread-db.c: Ditto.
11199 * machoread.c: Ditto.
11200 * macroexp.c: Ditto.
11201 * macrotab.c: Ditto.
11202 * main.c: Ditto.
11203 * maint.c: Ditto.
11204 * mdebugread.c: Ditto.
11205 * memattr.c: Ditto.
11206 * minsyms.c: Ditto.
11207 * monitor.c: Ditto.
11208 * monitor.h: Ditto.
11209 * objfiles.c: Ditto.
11210 * objfiles.h: Ditto.
11211 * osabi.c: Ditto.
11212 * p-typeprint.c: Ditto.
11213 * p-valprint.c: Ditto.
11214 * parse.c: Ditto.
11215 * printcmd.c: Ditto.
11216 * proc-events.c: Ditto.
11217 * procfs.c: Ditto.
11218 * progspace.c: Ditto.
11219 * progspace.h: Ditto.
11220 * psympriv.h: Ditto.
11221 * psymtab.c: Ditto.
11222 * record.c: Ditto.
11223 * regcache.c: Ditto.
11224 * regcache.h: Ditto.
11225 * remote-fileio.c: Ditto.
11226 * remote.c: Ditto.
11227 * ser-mingw.c: Ditto.
11228 * ser-tcp.c: Ditto.
11229 * ser-unix.c: Ditto.
11230 * serial.c: Ditto.
11231 * serial.h: Ditto.
11232 * solib-frv.c: Ditto.
11233 * solib-irix.c: Ditto.
11234 * solib-osf.c: Ditto.
11235 * solib-pa64.c: Ditto.
11236 * solib-som.c: Ditto.
11237 * solib-sunos.c: Ditto.
11238 * solib-svr4.c: Ditto.
11239 * solib-target.c: Ditto.
11240 * solib.c: Ditto.
11241 * somread.c: Ditto.
11242 * source.c: Ditto.
11243 * stabsread.c: Ditto.
11244 * stabsread.c: Ditto.
11245 * stack.c: Ditto.
11246 * stack.h: Ditto.
11247 * symfile-mem.c: Ditto.
11248 * symfile.c: Ditto.
11249 * symfile.h: Ditto.
11250 * symmisc.c: Ditto.
11251 * symtab.c: Ditto.
11252 * symtab.h: Ditto.
11253 * target-descriptions.c: Ditto.
11254 * target-memory.c: Ditto.
11255 * target.c: Ditto.
11256 * target.h: Ditto.
11257 * terminal.h: Ditto.
11258 * thread.c: Ditto.
11259 * top.c: Ditto.
11260 * tracepoint.c: Ditto.
11261 * tracepoint.h: Ditto.
11262 * ui-file.c: Ditto.
11263 * ui-file.h: Ditto.
11264 * ui-out.h: Ditto.
11265 * user-regs.c: Ditto.
11266 * user-regs.h: Ditto.
11267 * utils.c: Ditto.
11268 * valarith.c: Ditto.
11269 * valops.c: Ditto.
11270 * valprint.c: Ditto.
11271 * valprint.h: Ditto.
11272 * value.c: Ditto.
11273 * varobj.c: Ditto.
11274 * varobj.h: Ditto.
11275 * vec.h: Ditto.
11276 * xcoffread.c: Ditto.
11277 * xcoffsolib.c: Ditto.
11278 * xcoffsolib.h: Ditto.
11279 * xml-syscall.c: Ditto.
11280 * xml-tdesc.c: Ditto.
11281
9a2b4c1b
MS
112822011-01-05 Michael Snyder <msnyder@vmware.com>
11283
11284 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11285 * cli/cli-decode.c: Ditto.
11286 * cli/cli-dump.c: Ditto.
11287 * cli/cli-logging.c: Ditto.
11288 * cli/cli-script.c: Ditto.
11289 * cli/cli-setshow.c: Ditto.
11290 * common/signals.c: Ditto.
11291 * mi/mi-cmd-break.c: Ditto.
11292 * mi/mi-cmd-disas.c: Ditto.
11293 * mi/mi-cmd-stack.c: Ditto.
11294 * mi/mi-cmd-var.c: Ditto.
11295 * mi/mi-cmds.c: Ditto.
11296 * mi/mi-common.h: Ditto.
11297 * mi/mi-console.c: Ditto.
11298 * mi/mi-interp.c: Ditto.
11299 * mi/mi-main.c: Ditto.
11300 * osf-share/cma_attr.c: Ditto.
11301 * osf-share/cma_deb_core.h: Ditto.
11302 * osf-share/cma_debug_client.h: Ditto.
11303 * osf-share/cma_handle.h: Ditto.
11304 * osf-share/cma_mutex.h: Ditto.
11305 * osf-share/cma_stack_int.h: Ditto.
11306 * osf-share/cma_tcb_defs.h: Ditto.
11307 * python/py-auto-load.c: Ditto.
11308 * python/py-breakpoint.c: Ditto.
11309 * python/py-cmd.c: Ditto.
11310 * python/py-frame.c: Ditto.
11311 * python/py-objfile.c: Ditto.
11312 * python/py-param.c: Ditto.
11313 * python/py-progspace.c: Ditto.
11314 * python/py-symbol.c: Ditto.
11315 * python/py-value.c: Ditto.
11316 * python/python-internal.h: Ditto.
11317 * python/python.c: Ditto.
11318 * tui/tui-data.c: Ditto.
11319 * tui/tui-disasm.c: Ditto.
11320 * tui/tui-hooks.c: Ditto.
11321 * tui/tui-io.c: Ditto.
11322 * tui/tui-layout.c: Ditto.
11323 * tui/tui-regs.c: Ditto.
11324 * tui/tui-source.c: Ditto.
11325 * tui/tui-stack.c: Ditto.
11326 * tui/tui-win.c: Ditto.
11327 * tui/tui-windata.c: Ditto.
11328 * tui/tui-winsource.c: Ditto.
11329
44944448
JB
113302011-01-05 Joel Brobecker <brobecker@adacore.com>
11331
11332 * configure.ac, gdb.1: Copyright year update.
11333
ebedcab5
JK
113342011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11335
11336 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11337 this_pc_in_block, morestack_msym and morestack_name. Check for
11338 "__morestack" minimal symbol there.
11339
e5cc9f32
JB
113402011-01-03 Joel Brobecker <brobecker@adacore.com>
11341
11342 * symfile.c (find_sym_fns): Add call to dont_repeat.
11343
7b6bb8da
JB
113442011-01-01 Joel Brobecker <brobecker@adacore.com>
11345
11346 Copyright year update in most files (performed by copyright.sh).
11347
71ce852c
JB
113482011-01-01 Joel Brobecker <brobecker@adacore.com>
11349
11350 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11351
c3c1ebe8 11352For older changes see ChangeLog-2010.
c906108c
SS
11353\f
11354Local Variables:
11355mode: change-log
11356left-margin: 8
11357fill-column: 74
11358version-control: never
57da7796 11359coding: utf-8
c906108c 11360End:
This page took 1.763681 seconds and 4 git commands to generate.